-
兜兜转转
真是风水轮流转,兜兜转转,大家又用回WordPress?
-
VideoPress is awesome
-
‘rsync’ command source and destination explained
rsync command is super useful because it could incrementally sync files between locations without the overhead of compressing and transferring. There are heaps of tutorials about how to use it, how very few cover the point that how to sync two folders, which I believe is the most common use. I’d run rsync -avzP dir1 […]
-
Role transition to a Frontend Developer
There are only two hard problems in Computer Science: cache invalidation and naming things. Phil Karlton I recently started a frontend role at Automattic. Just in case any of you still don’t know the company, it’s the company behind WordPress.com, Tumblr, Simplenote etc. Developers at A8C are all kinda full stack engineers. I was mostly […]
-
10 Years Anniversary
Freak! It’s been 10 years already since I first wrote a post ….
-
Add permanent route for VPN connections on Windows 10
Add-VpnConnectionRoute -ConnectionName “YPC” -DestinationPrefix “10.1.1.0/24” -PassThru
-
Fix! Unable to Remove bluetooth devices/mouse/keyboard/speaker issue for Windows 10
This is the only working solution for me. Enjoy. My symptoms: – Previously working bluetooth speaker (UE BOOM 2 in my case) stops connecting – Windows 10 ‘Bluetooth and other devices’ menu shows the device as Paired – Pressing connect makes it attempt to connect but fails then it goes back to Paired – Remove […]
-
Example of Sending SMS in PHP Using AWS SNS
$client = AWS::createClient(‘Sns’); $sms = [ ‘Message’ => ‘sms_content’, ‘PhoneNumber’ => ‘sms_recipient’, ‘MessageAttributes’ => [ ‘AWS.SNS.SMS.SenderID’ => [ ‘DataType’ => ‘String’, ‘StringValue’ => ‘AD’ ], ‘AWS.SNS.SMS.SMSType’ => [ ‘DataType’ => ‘String’, ‘StringValue’ => ‘Transactional’ ], ] ]; $result = $client->publish($sms);
-
[CI] Bulb Switcher
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off or turning off if it’s on). For the nth round, you only toggle the last bulb. Find how […]