Alex Filatov
Web Development on Steroids
I’ve faced an issue whive making an SQL import on my Ubuntu Lucid Lynx on my macbook pro 6,2.
To make it working fast you need to disable writing barrier for the ext4 fs :
$ sudo vi /etc/fstab
you’ll see there something like:
/dev/sda3 / ext4 errors=remount-ro 0 1
Just add there barrier=0 :
/dev/sda3 / ext4 errors=remount-ro,barrier=0 0 1
and reboot.
After that change my SQL import performed very fast.
<?php
include(dirname(__FILE__) . '/../../bootstrap/functional.php');
$browser = new sfTestFunctional(new sfBrowser());
$limeTest = $browser->test();
$browser->setHttpHeader("X-Requested-With", "XMLHttpRequest");
$browser->post('/ajax/uri', array('param_name' => 'param_value'))->
with('request')->begin()->
isParameter('module', 'someModule')->
isParameter('action', 'someAction')->
end()->
with('response')->begin()->
isStatusCode(200)->
end();
?>
$browser->setHttpHeader("X-Requested-With", "XMLHttpRequest");
$ git svn clone http://svn.symfony-project.com/branches/1.4 lib/vendor/symfony-1.4
$ git svn rebase
$ git clone git://git-sue.git.sourceforge.net/gitroot/git-sue/git-sue lib/vendor/git-sue $ cd lib/vendor/symfony-1.4 $ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony -V
PHP Fatal error: require(): Failed opening required '/home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/event_dispatcher/sfEventDispatcher.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php on line 99
$ ../git-sue/git-svn-update-externals
$ lib/vendor/symfony-1.4/data/bin/symfony generate:project {project_name}
register_shutdown_function(create_function('', 'touch("cache/.ignore");
touch("log/.cache");'));
$ ./symfony generate:app {app_name}
$ git init
$ git config user.name {real_name}
$ git config user.email {email_address}
$ # git config user.signingkey {gpg_key}
$ # git remote add origin {repo_url}
~ cache/* !cache/.ignore log/* !log/.ignore
$ touch cache/.ignore log/.ignore
$ git add . $ git commit -a -m 'Initial commit.' $ # git push origin master