#PHP and #Ruby developer
OOP in PHP 4 and 8 https://goo.gl/fb/iG9rPX #php4 #php8
Deprecation of class name constructors means that you no longer can write OOP code that works both in PHP 4 and PHP 8 without some hackery. This works however: <?php class WorksIn4And8 { var $int
PHP 8.0 Syntax Showcase https://goo.gl/fb/wQHSqf #php8
Since RC1 is released today, I decided to make a small demonstration of PHP 8.0 syntax features. <?php #[FuncAttribute] function func(SplHeap|ArrayObject|null $object, mixed $value = null): ArrayAcce
#OTP Links https://goo.gl/fb/GQJhvR #2factor
Have you ever seen an one time password link in a regular <a> tag? Here is an example TOTP link from Google Authenticator repo: otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=E
Method Calls with Arbitrary Names https://goo.gl/fb/Ro9USW
A discovery of the day. Many people know that you can define and read an object property with an arbitrary name: <?php $s = new stdClass(); $s->{'any string here'} = 123; echo $s->{'any string here'}
Kernel#send Should Be Removed https://goo.gl/fb/2fHsiL
Opinion: Kernel#send should be deprecated and removed from future rubies. send always felt weird when I was an active ruby developer but I have never seen any strong criticisms on it. It's either an a
I rarely visit this account so I'm putting a bot mark on it because it just automatically receives posts from my blog
I still participate passively and I will respond to comments to my toots here
I released the first PHP 8 library ever https://goo.gl/fb/i8fu5s #php8
At least among the libraries listed on the Packagist. On this Tuesday sandfoxme/bencode was updated to 2.0 that requires PHP 8 as a minimum. While it was meant mostly as an experiment and a joke, it a
#PoliceLifesMatter
sabre/#xml https://goo.gl/fb/XEgMY7 #sabredav
An awesome discovery of today was made in an article titled An XML library for PHP you may not hate. As an unexpected twist I really didn't hate it, in fact it helped me to solve a problem that I had.
Is #NEON a Better #YAML? https://goo.gl/fb/MRwExr
Short answer: NO. If you know what I mean. It seems that YAML's drawbacks have created a niche for alternative better YAMLs. NEON is developed as a part of the Nette Framework and also gained some po
What's Wrong with #StrictYAML https://goo.gl/fb/W2pxCr #yaml
While I'm still delaying my position on TOML vs YAML holy war let's look at the StrictYAML. StrictYAML is a type-safe YAML parser that parses and validates a restricted subset of the YAML specificati
Free Domain Names https://goo.gl/fb/rYRvF9 #dns
Just created a list of free domain name zones that still work if you need one for whatever reason.
Install #Composer in #Docker https://goo.gl/fb/816zEU
Here is a small snippet adapted from the official instruction:
I Don’t Like #JavaScript https://goo.gl/fb/ys2rCV #leverage
When you created a cool tool in a language you don’t like.
Small #Personal Update https://goo.gl/fb/GAWt6E #social #keybase #packagist #github
A small personal update about services and social networks.
It is proven! I am arokettu on Keybase: https://keybase.io/arokettu/sigchain#33dc3fecf2f8cd546c81f55f05aaa12d08e633d6c25bc91fdf0c5d3c4dcbc3650f
arokettu (Sand Fox) is now on Keybase, an open source app for encryption and cryptography.
@libravatar Done. Sorry for slow response :)
@libravatar Why the email in the profile is not editable?
#GitHub Signatures in #Gitea https://goo.gl/fb/UoVqeC #gpg #lifehack
A small lifehack for the Gitea owners. As you may know, GitHub signs commits done with its web interface with its GPG key. These commits may end up on your Gitea server. It looks rather unconvincing:
Dark Theme for the #Blog https://goo.gl/fb/VnuUg6 #css #darktheme #preferscolorscheme #nightmode
Just finalized the dark theme for the blog. The idea is simple, use prefers-color-scheme media query and wrap dark style elements with it:
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.