Autism and me

I just took a quick test on the internet, called the AQ test. I got 26 points where 16 is average and 32 is autistic. I suspected this for a long time. Now I’m relieved. Should I search for a cure? Or is it just the way I am? Maybe the test is too superficial and short?

http://www.wired.com/wired/archive/9.12/aqtest.html

The AQ Test

Psychologist Simon Baron-Cohen and his colleagues at Cambridge’s Autism Research Centre have created the Autism-Spectrum Quotient, or AQ, as a measure of the extent of autistic traits in adults. In the first major trial using the test, the average score in the control group was 16.4. Eighty percent of those diagnosed with autism or a related disorder scored 32 or higher. The test is not a means for making a diagnosis, however, and many who score above 32 and even meet the diagnostic criteria for mild autism or Asperger’s report no difficulty functioning in their everyday lives.


cakephp reserved words

careful not to use “folder” or “file” as table names or models. This can cause weird error messages. cake bake will complain even if other parts of the app work great. In general, don’t use any of the class names from this list: http://api.cakephp.org/classes

Instead of file and folder, use leaf and branch.

Just remember that the plural of leaf is leafs and not leaves… So says cakephp, and who are we to argue?

cake bake in version 2.1 warning about file permissions – fixed

Warning Error: SplFileInfo::openFile(…/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in [...lib/Cake/Cache/Engine/FileEngine.php, line 297]

I get this error when trying to run the cake console. I’m in the app folder and running:


./Console/cake

This is the fix:


sudo chown -R myuser tmp/cache/persistent/

Quick and Dirty cakephp translation update


cd to the app folder

cake i18n

select extract and accept all defaults

open the previous po file for the language is poedit and select from the menu – update from pot file and use the new pot file, add translations and save po file.
delete tmp files to see the change.

ffmpeg – converting video files easily

Although the command line tool is intimidating at first, using it is easy!


ffmpeg -i rawvideo.mov -b 1500k -s 640x360 1.webm

ffmpeg -i rawvideo.mov -b 1500k -s 640x360 1.swf

ffmpeg -i rawvideo.mov -b 1500k -s 640x360 1.mp4

ffmpeg will guess the rest and do the right thing for you, its all you need to make videoforall  web scripts work.

 

 

 

Out of disk free space in remote ubuntu server

I received a cron email from the server I have at linode, saying I ran out of disk space.
I installed lsof using:

sudo apt-get install lsof

Then I ran:

lsof | grep '(deleted)'

to see the source of the problem since

df
du -h --max-depth=1 ./

didn’t show the problem.

After suspecting the mysql I did a

sudo reboot

and now I consider adding this as a nightly cron job.