d e v o n
🩵 avery cochrane 🩵
almost home

❣ Chile in a Photography ❣
Fai_Ryy

shark vs the universe
ojovivo
YOU ARE THE REASON
🪼
hello vonnie
Game of Thrones Daily
Color Me Curious
No title available

Kiana Khansmith
noise dept.

gracie abrams
h
No title available
KIROKAZE
sheepfilms
seen from United States
seen from United Kingdom

seen from United States
seen from United States
seen from United States

seen from Spain

seen from Japan
seen from Israel
seen from United States
seen from Lebanon
seen from United States

seen from France
seen from United States

seen from Malaysia
seen from United States
seen from United States
seen from China

seen from United Kingdom

seen from United States
seen from United States
@crypted-data
Draft -- phpQuery anonymous each
in a class :
$this->test = ''; $self = $this; phpQuery::each( $doc['div.class_doe'], function($index, $value) use($self){ $self->test .= "\t\t".pq($value)->parent()->parent()->attr('id')."\r\n"; } ); echo $this->test."\r\n";
Easy sortable for list in admingen
You need a model and a path var, jquery + jquery ui / sortable
if(typeof(model)!='undefined') { var data = new Array(); $( ".sf_admin_list_td_id a" ).each(function(index){ $(this).parent().parent().attr('id', $(this).text()); }) $( ".sf_admin_list tbody" ).sortable({ axis: 'y', items: 'tr', containment: 'parent', update: function(event, ui) { i=0; $( ".sf_admin_list tbody tr" ).each(function(){ data[i++] = $(this).attr('id'); })
$.post(path+'updatePosition', {'data': data,'model': model}); } }); $( ".sf_admin_list tbody" ).disableSelection(); }
ctrl+s in form edit symfony 1.4 admingen
$(window).keypress(function(event) { if (!(event.which == 115 && event.ctrlKey) && !(event.which == 19)) return true; $('.sf_admin_action_save input').click(); event.preventDefault(); return false; });
double click on double select
Listen your users !
$('select[class^=double_list_select]').dblclick(function (){ var source_id = $(this).attr('id'); var target_id = $('select[class^=double_list_select]').not('#'+source_id).attr('id'); sfDoubleList.move(source_id, target_id); })
Install APC for PHP5 on Ubuntu
sudo apt-get update
sudo apt-get install libpcre3-dev
sudo pecl install apc
Very buggy with debugging enabled :(
I have finally installed the package php-apc
You should add "extension=apc.so" to php.ini
Dans le cadre de manipulation de grandes quantités de données avec doctrine, il arrive souvent que l’hydratation des objets pose problème, dans le sens ou l’occupation mémoire devient vite énorme.
Exemple :
avec ce schema :
Category: columns: name: { type: string(255) } Product: columns: ...
specialized in shrubbery
How to display vertical results with mysql console
You may know that in the postgres console, you can switch display mode between horizontal and vertical with the simple command \x. Mysql shell is verbose and not very friendly to use when you have big numbers of columns to display horizontally If you type help in your mysql console, you get a list of commands, with that excerpt : Note that all text commands must be first on line and end with ';' The ego command seems to be nice : ego (\G) Send command to mysql server, display result vertically. ok, so let's try : ego select * from my_table; >not working
ego; select * from my_table; >not working The only way to get this working: select * from my_table \G semi-colon is not required ;)
License to kill
yohan-giarelli:
Discover the dark power of the singleton