Today I was trying to upgrade the OS X on my Mac mini via the AppStore which seems harmless and seamless like every other small OS X updates. Unluckily it turned into a nightmare (almost).
I was not paying attention to the details of the Update, it was something like Command Line Tools, Combined update and an update on the Recovery Partition. The install was smooth, after I restart the computer Continue reading “Software update failure saved by OSX Time Machine!”
Envoy is a simple tool developed by the Laravel team. It is designed to perform task like deploying a website on a remote server, e.g. your VPS.
How does it work?
Continue reading “Using Envoy to deploy website on the remote server”
Bootstrap is a great starter framework, I use it almost everyday. However sometimes you want to customize it to your needs. While you can use the Customize tool on the official website which is very handy, but you may want to automate the build and integrate with your workflow, this is the tutorial for you. Continue reading “Customize your own version of Bootstrap”
WP-CLI is a tool for managing your WordPress website via the command line. This may come in handy if you want to manage your WP instance without going through the web interface, or automate certain operations (change of Settings, perform backup etc.)
For example, here is a sequence of commands for installing a fresh copy of wordpress:
$ mkdir myWordpress && cd myWordpress
$ wp core download
$ wp core config --dbname=mywordpress --dbuser=wordpress --dbpass=wordpress1234 --dbhost=localhost --dbcollate=utf8_general_ci
$ wp core install --url=http://mywordpress.com/ --title=MyWordpress --admin_user=admin --admin_password=admin1234 --firstname.lastname@example.org
Continue reading “WordPress command line interface (WP-CLI) guide”
You want to click on an icon to start a new Terminal instance.
1. open up the “AppleScript Editor”, you can do so by firing up the Spotlight search and type “AppleScript Editor”
2. The script you’ll need is presented below, paste it to the editor, then you can press “Run” to test it out. Continue reading “Create a “New Terminal” shortcut App in OSX”
I have written a small tool to compile your Latex code into PNG image files
Please only use it for good 😉
Any comments are appreciated. If you like to have the source code, or ask me detailed about the implementation, please leave a comment down below, or sending me an email email@example.com.
I want to share a little script I wrote that check if two directory is identical rather efficiently. First you may need to understand what sha1sum does.
The sha1sum tool
As the name may suggest, sha1sum compute the SHA-1 checksum of a particular file / text string.
[jason@madcoda ~]# echo "Hello World" | sha1sum
[jason@madcoda ~]# echo "Hello World" > hello.txt
[jason@madcoda ~]# sha1sum hello.txt
You can see from the above example that sha1sum produce a hash of the content, Continue reading “Check if two directory is identical with sha1sum”
I guess it’s been a busy week for Apple’s staffs (with the iPhone 6 launch and iOS 8 release). iOS 8 update is finally here, here is the full description of the updates Continue reading “iOS8 is here”
After moving one of my node from Linode to DigitalOcean, I have experienced strange crash that appears to be random. After I reboot the process it works for about a week and fails suddenly.
Tools for checking the data in the database
After some research, I think it could be caused by the data inside the database, since I moved all data from the old VPS to the new node and now I’m using a newer version of MySQL (Actually MariaDB). It could run into some compatibility problem.
I strongly recommand you to backup the database before running any checks, upgrade, repairs and optimize actions. You can do so with the command:
# cd ~
# mysqldump -A -p > mysql-all-databases.sql
This would check the status of all databases in the DB:
# mysqlcheck -aA -u root -p
This would repair the databases and tables if anything go wrong:
# mysqlcheck -rA -uroot -p
This would upgrade the data if you have upgraded the Mysql version:
# mysql_upgrade -uroot -p
So it’s FIFA time, you may need this software. 😀 SopPlayer 3.8.3 for Windows.
Download SopCast.zip from:
This site: SopCast-3.8.3