. The new features of WordPress revisions can be controlled and set via define global WP_POST_REVISION . Its definition can be inserted in the file wp-config.php :
Category 'D'
WordPress: revision management and dell'autosave
How I did it: the logo Saidmade
When I was asked to draw and design the logo for Saidmade , as often happens for His creatures, I was quite agitated. However it was not possible to rely on the inventiveness of others, it was necessary to express what was to come into being and personal self. In the end I am very satisfied with the final result. The symbol that came out is exactly what we needed!
Very short trick: ADDED_TO_STAGE
per capire quando il nostro MovieClip è disegnato effettivamente sulla stage: As we have seen several times in the constructor of a class that extends MovieClip may be necessary to add the event ADDED_TO_STAGE to understand when our MovieClip is actually drawn on the Stage:
Very short trick: duplicate or clone one or more rows in MySQL
To duplicate the contents of a table full of itself, just use:
1 | * FROM MYTABLE INSERT INTO SELECT * FROM MyTable MYTABLE |
You can also use the Claus WHERE if necessary:
1 | * FROM MYTABLE WHERE a = b INSERT INTO SELECT * FROM MyTable WHERE MYTABLE a = b |
If the table has any index or unique key, which would cause an error, you can filter the fields to be duplicated:
1 | field1 , field2 , ... ) SELECT field1 , field2 , ... FROM MYTABLE INSERT INTO MYTABLE (field1, field2, ...) SELECT field1, field2, ... FROM MyTable |
Even you can duplicate a record and change a value, such as dual field and add 1:
1 | field1 , field2 , ... ) SELECT ( field1 + 1 ) , field2 , ... FROM MYTABLE INSERT INTO MYTABLE (field1, field2, ...) SELECT (field1 + 1), field2, ... FROM MyTable |
Very short trick: addEventListener () AS3, a handler more events
In Actionscript 3.0 you must use addEventListener() to intercept any event:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | / ** * Given a MovieClip mc, you set events and handlers * / ( MouseEvent . CLICK , on_click ) ; mc. addEventListener ( MouseEvent . CLICK, on_click); ( MouseEvent . ROLL_OVER , on_roll_over ) ; mc. addEventListener ( MouseEvent . ROLL_OVER, on_roll_over); ( MouseEvent . ROLL_OUT , on_roll_out ) ; mc. addEventListener ( MouseEvent . ROLL_OUT, on_roll_out); / ** * Functions hander for the above events * / e : MouseEvent ) : void { on_click function (e: MouseEvent ): void { / / Click } e : MouseEvent ) : void { on_roll_over function (e: MouseEvent ): void { / / Roll over } e : MouseEvent ) : void { on_roll_out function (e: MouseEvent ): void { / / Roll-out } |
WordPress: wp_parse_args ()
The function wp_parse_args() (like many other undocumented) issue a string in the format:
1 | var1 = value1 & var2 = value2 ... Varn = valueN |
WordPress Plugin: Flash Feed Scroll Reader
Taking a cue from post Create a simple Feed Reader with SimplePie and jQuery I created the first Plugin WordPress weblog Saidmade . Flash Feed Scroll Reader uses SimplePie to create a PHP proxy to access the different feed addresses.
Very short trick: proxy RSS with SimplePie
If you use Flash or Ajax to read RSS feeds from other domains, you need to equip yourself with a proxy (tunneling) because of the protections imposed by both technologies (see tunneling and proxy servers for Ajax and beyond ). If your site or blog is already SimplePie , you can write a simple proxy like this:
jQuery Cheat Sheet and the first patch pending beta 1.3
Internet Explorer 6: eliminate the double margin bug
Among the various funny "interpretations" that Internet Explorer 6 can do with HTML / CSS, that of the "double margin" is certainly the most tedious and often. In practice (hear, hear ...) Good Microsoft browser can - mysteriously - to double margins on items that are set to float! : As such the following CSS applied to a div with the id box :






Latest Comments
Simon : It annoys disturbed again and use that space for these things ... however it does not work ...
Giovambattista Fazioli : @ Simon: what could be due to the syntax I used, specifically for PHP 5 +,...
Simon : I tried last night putting everything into functions.php, okay, jquery forms, and tabs jQueryUI them ...
Giovambattista Fazioli : @ Simon: I recommend cleaning to enter a code like that in ...
Simon : @ Giovambattista Fazioli: Thank you for your patience, it's all clear ... now I feel now, ...