Don't wanna be here? Send us removal request.
Text
CSRF in AJAX
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/
0 notes
Text
Nice date range picker for twitter bootstrap
http://www.dangrossman.info/2012/08/20/a-date-range-picker-for-twitter-bootstrap/
0 notes
Text
Mysql Workbench reverse engineer fails
At times mysql reverse engineer bombs with an error - Operation failed: Cannot load from mysql.proc. The table is probably corrupted How to fix? a) Run mysql_upgrade running this has fixed the error for many if that doesn't help from the mysql prompt run mysql> show create table mysql.proc\G; check the comment column type if that is char(64) change to text you should be good to reverse engineer
0 notes
Text
APC going to end, ZendOptimizer to rise
The INSTALL file in the latest APC (3.1.13) from http://pecl.php.net/package/APC says: "This version of APC should work on PHP 4.3.0 - 4.4.x and 5.1.0 - 5.2.x." …. So that's it - there is no support for 5.3.x and greater But hang on we aren't abandoned, we have https://github.com/zend-dev/ZendOptimizerPlus So if you are using PHP 5.3.x and greater use this, it is available via PECL, but still on the beta state How to install 1) Via PECL (http://pecl.php.net/package/ZendOpcache) sudo pecl install ZendOpcache-beta Once it is installed, please update the php.ini as suggested in here https://github.com/zend-dev/ZendOptimizerPlus/blob/master/README 2) Via chef php_pear LWRP php_pear "opcache" do action :install preferred_state :beta package_name "ZendOpcache" zend_extensions ['opcache.so'] directives(:memory_consumption => 128, :enable_cli => 1, :max_accelerated_files => 4000, :revalidate_freq => 60, :fast_shutdown => 1) end # We need to fix up the entries bash "Fixup the Zendopcache ini" do code <<-EOF sed -i 's/ZendOpcache\./opcache\./g' /etc/php5/conf.d/ZendOpcache.ini EOF end ----- enjoy :)
0 notes
Text
X-editable for Yii
Demo: http://x-editable.demopage.ru/index.php Source: https://github.com/vitalets/x-editable-yii Based on : https://github.com/vitalets/x-editable
0 notes
Text
Count of related items Yii Grid
http://www.yiiframework.com/wiki/319/searching-and-sorting-by-count-of-related-items-in-cgridview/
0 notes
Text
Remove the leading slash(/) Ruby
1.9.3p194 :014 > s = "/hello/world" => "/hello/world" 1.9.3p194 :015 > s.gsub!(/^\//, "") => "hello/world" 1.9.3p194 :016 > s => "hello/world" 1.9.3p194 :017 >
0 notes
Text
Rename git branch
git branch -m old_name new_name ref: http://ariejan.net/2010/08/09/rename-a-git-branch/
2 notes
·
View notes
Text
Tar and symbolic links
http://www.apl.jhu.edu/Misc/Unix-info/tar/tar_75.html
0 notes
Text
Searching and Sorting by Count of Related Items in CGridView
http://www.yiiframework.com/wiki/319/searching-and-sorting-by-count-of-related-items-in-cgridview/
0 notes
Text
Date Range in Yii Grid view
http://www.yiiframework.com/forum/index.php/topic/20941-filter-date-range-on-cgridview-toolbar/
0 notes
Link
Working example http://yiitryout.site90.net/ManyMany/
0 notes
Text
Add back the constriant
ALTER TABLE <tablename> ADD CONSTRAINT <constraintname> FOREIGN KEY (`<keyfield>`) REFERENCES <othertable>(<keyfield>);
0 notes
Text
Change foriegn key in Mysql
Remove foreign key: ALTER TABLE <tablename> DROP FOREIGN KEY <keyname>; Then remove index ALTER TABLE <tablename> DROP INDEX <keyname>;
0 notes