Wordpress - ykyuen.wordpress.com - Eureka!
General Information:
Latest News:
phpMyAdmin – SQL import timeout 27 Aug 2013 | 01:00 pm
If you have problem on importing the SQL in phpMyAdmin. First, try increasing the following two values in php.ini. max_execution_time max_input_time Second, Add the following line in the phpMyAd...
Composer – Manage your PHP dependencies 26 Aug 2013 | 09:00 am
Mess up with the PHP dependencies in different environments? Composer is a PHP dependency manager where all the dependencies information are stored in the JSON file called composer.json. Similar to th...
陶傑 – 不可比較 25 Aug 2013 | 09:15 am
特區「行政會議」出現大幅面積潰爛跡象,社會有識之士,包括立法會主席,都指出殖民地時代的「港督會同行政局」,形象權威,都比現在什麼「當家作主」的好得多。 特區「行政會議」的局中人,自然有點不舒服。有人不服氣,說:行政會議不可以與從前「港英」的行政局比較。 為什麼不可以比較?三十年前中國的鄧小平宣布收回香港主權的時候,就豪氣干雲地邀請香港人將來多比較:「英國人做得到的,中國人也能做到,而且比英國人...
陶傑 – 歷史文化 24 Aug 2013 | 09:00 am
梁班子又爆出「張震遠事件」,特區香港的「行政會議」,十六年來,由「中國人當家作主」,砸毀得七七八八,今日成為笑話集中營。 正如特區的「大紫荊勳章」是抄襲自英國人的皇室授勳制,「行政會議」也是全盤模仿英國殖民地的行政局。但是無一例外,種種抄襲仿模英國人的中國式山寨版,正如成龍大哥說的:「中國製造的電視機會爆炸」,都無不例外地以失敗告終。 英國殖民地的行政局,是很莊嚴的管治高層。「港督會同行政局」...
Git – Ignore some folders and files in the current working copy 23 Aug 2013 | 09:00 am
We can always use the .gitignore to exclude files which we do not want to check in into the repository. But sometimes the repository is only read only and you dun want your files to be appeared in the...
名言八十一 22 Aug 2013 | 09:00 am
If you’re trying to achieve, there will be roadblocks. I’ve had them; everybody has had them. But obstacles don’t have to stop you. If you run into a wall, don’t turn around and give up. Figure out ho...
PHP – Sort a multidimensional array by specific key 21 Aug 2013 | 10:00 am
Assume you have the following array in PHP. You can simple sort it by the order key by implementing the following array_sort_by_column() function. Done =) Reference: StackOverflow – Sort mult...
Javascript – Clone an Array 20 Aug 2013 | 09:00 am
Here is a simple way to copy an array, which contains primitive data types like string and integer, by value in Javascript. But if myArray contains objects, those objects will be copied by referen...
CSS – Resize and Crop Image 19 Aug 2013 | 09:00 am
You could use CSS to resize and crop the image. Assume you have the following HTML. Apply the following styles to crop and resize your image. Done =) Reference: StackOverflow – CSS Display an...
陶傑 – 大混亂 18 Aug 2013 | 09:00 am
香港特區十六年,一年比一年亂得一塌糊塗。除了經濟無出路,普選無法度,最新的混亂,是所謂的「思想混亂」、「論述混亂」、「邏輯混亂」。沒有邏輯的社會,最好不要講甚麼「論述」,不然,太多三流的「論述」,就造成一個城市,甚或整個民族的思想困惑。最新的例證,是「香港好在有廉政公署」的「湯顯明飲食酬詐醜聞」。甚麼叫「香港好在有ICAC」?廉政公署,是英國人為貪污成性的中國人社會的殖民地度身訂做的。英國本土沒有...