Ubuntu Linux on Acer Aspire AO751h
August 9th, 2010Don’t use the Ubuntu Netbook Remix but the Desktop version.
To fix the monitor resolution:
https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/
Wi-fi should work out of the box
Don’t use the Ubuntu Netbook Remix but the Desktop version.
To fix the monitor resolution:
https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/
Wi-fi should work out of the box
Command Line with PHP
_ Introduced with PHP 4.3 (2002-12-27)
_ PHP packed with very useful functions: exec, shell_exec, passthru
_ PEAR package Console_CommandLine to easily handle arguments and options
_ You can do system administration and release management with a language you already know
_ Bad: if you run very long and complex processes (i.e. Parsing XML files into database), you can experience memory leaks
_ Bad: PHP is mainly for running short scripts to serve web pages so core developers focus time on that
_ Those issues are going to be addressed soon (something already done as of 5.3)
MultiProcess programming with PHP
_ ps auxf to see the parent/child process tree
_ There are basically 2 methods:
__ pcntl_fork()
__ exec
This is to see whether you server is CPU-bound or RAM-bound.
We have to stress it and see which one of those components gets saturated first.
If that is the RAM, we can add easily more RAM. The amount of RAM to add depends of the share of the CPU that can still be used before the website becomes slow.
ab -n 300 -c 1 http://www.mywebsite.com
This are the command to run during the stress test
_ uptime
_ free
_ ps -ylC httpd –sort:rss > number_of_apache_processes.txt
_ netstat -nt | grep :80 | wc -l
And obviously check how quick the website is.
_ recordmydesktop (CONTROL-C to stop)
_ mencoder out.ogv -o out.avi -ovc lavc -oac pcm
_ avidemux
__ cut start
__ cut end
__ don’t crop the video
__ video: mpeg4 (x264)
__ format: AVI
__ add subtitles (if any)
__ save
__ upload to Youtube
Copy a file from a remote location to a local directory (for example to burn a backup on DVD):
scp backups@server1:backup20100105 local/path
This is to change the device used by the emulator
Run button > its menu > Run configurations > Target tab
This is to change the actual API used for the application:
Menu > Project > Properties > Android >
Free notes from the PHP London Conference 2010 - http://www.phpconference.co.uk
Lost art of Simplicity by Josh Holmes (working in Microsoft) - http://www.slideshare.net/joshholmes/the-lost-art-of-simplicity - http://www.joshholmes.com/blog/2009/04/29/TheLostArtOfSimplicity.aspx
_ NIH (not invented here) syndrome - people want to develop everything internally
_ The focus shouldn’t be creating something from ground-up but putting together technologies in a way even their inventors didn’t think of
_ Simplicity is not a goal. It is the by-product of a good idea and modest expectation.
_ If it is right, you can explain it to non-technical people. Otherwise it means you haven’t understood it very well.
_ Don’t let the future complicate your present. Maybe that future you are envisaging is not going to happen
_ Get your users in the room. Be with you user while building a system to see what *they* need and expect
AntiPHPPatterns by Stefan Priebsch (PHP consultant)
__ proliferation of global constants
public function setBasePath($path)
{
…
}
}
instead of:
class Something
{
protected $basePath;
public function setBasePath($path)
{
…
}
}
Basically, remove the constant from the class, and require the caller to supply a sensible value for the base path.
_ Sensio employ 70 people
__ anonymous functions
by Ian Barber (PHP consultant for Ibuildings)
_ You can develop a search engine for your website using Google but:
___ Google can’t see your intranet
___ the Google crawler will not index new content immediately
___ maybe you want more control over the indexing
_ Technologies for implementing a search:
_ MySQL fulltext (not so good but easy)
_ Swish-e
_ Lucene (as it is written in PHP you can have problem with memory with very big datasets)
_ Xapian
_ Sphinx
_ Solr
___ High-scale: Nutch
___ High-scale: Hadoop
_ D-BUS is part of the Freedesktop.org
_ D-BUS to talk with desktop apps
_ derick at php.net
_ Cross-Android-API testing
_ Securing Your Private Key
_ Versioning Your Application
http://developer.android.com/guide/publishing/versioning.html
_Specifying Your Application’s System API Requirements
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
_ http://developer.android.com/guide/publishing/preparing.html
_ http://developer.android.com/guide/publishing/publishing.html
This is a very good post:
http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
We have test it in the office and it works great!