»

search

ma.tthi.eu

 pense-bête

  •  

    February 2012
    M T W T F S S
    « Jul    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Archives

    • July 2011
    • February 2011
    • November 2010
    • June 2010
    • May 2010
    • May 2009
  • Tags

    as3 debian flash linux os x symfony
  • PHPStorm Theme

    Here is my theme for PHPStorm : weebox.xml (copy the file in ~/Library/Preferences/WebIDE10/colors/)  

  • convert HTML from TinyMCE to HTML readable by Flash

    This as3 class is usefull to convert HTML from TinyMCE to HTML readable by Flash TODO : find a way to center images The class is available on this repository : http://www.wbxdev.com/svn/TinyMCEHtmlParser/

  • Symfony : Fatal error: Call to undefined function content_tag()

    If you get this error Fatal error: Call to undefined function content_tag() in (…)/lib/vendor/symfony/lib/helper/JavascriptBaseHelper.php on line 82 when trying to output HTML from an action like this : $this->getResponse()->setContentType(‘text/html’); $this->getResponse()->setContent(“Hello World”); return sfView::NONE; that’s because you need to include the Tag helper : sfContext::getInstance()->getConfiguration()->loadHelpers(‘Tag’);

  • CKEditor to Flash HTML

    This as3 class is usefull to convert HTML from CKEditor to HTML readable by Flash It doesn’t process the <image> tag and the class attribute yet. package com.weebox {   public class CKEditorHtmlParser {   public static function parse(p_str:String):String { var xml:XML= new XML("<html>"+p_str+"</html>");   calcXml(xml);   var str:String= xml.children().toString();   str= str.replace(/<([\/]*)em>/gi, "<$1I>"); str= [...]

  • flash compilation problem : white screen

    if error “5005: Unknown error optimizing byte code” and white screen at compilation, we can increase the memory given to the compilator : create the file ~/.MacOSX/environment.plist and copy : <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>JAVA_TOOL_OPTIONS</key> <string>-Xmx512m</string> </dict> </plist> then log out for the change to take [...]

  • Using a Debian Virtual Machine as local server in OS X (2)

    install debian virtualbox preferences > network > adapter : 192.168.3.1 dhcp server : off settings > network : adapter 1 : host-only adapter adapter 2 : NAT settings > storage : CD/DVD : VBoxGuestAdditions restart virtualbox start vm nano /etc/network/interface auto eth0 iface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 auto eth1 iface eth1 inet [...]

  • GeekTool for Snow Leopard

    calendrier : cal | sed “s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed ‘s/./#/g’) /” date : date +’%A %d %B %H:%M:%S’ OS : echo `sw_vers -productName` `sw_vers -productVersion` `sw_vers -buildVersion` IP externe : echo “External :” `curl –silent http://checkip.dyndns.org | awk ‘{print $6}’ | cut -f 1 -d “<”` IP ethernet : [...]

  • Using a Debian Virtual Machine as local server in OS X

    old -> updated version This post will explain how to use a Debian virtual machine as a local server in OS X instead of the LAMP packaged by Apple. If you’re like me and use OS X as your workstation but have a Debian production server, it could be very useful to be able to [...]

  • PageFlip with shadows

    I took the very good PageFlip class from Didier Brun and added support for shadows. It adds 3 different shadows : one shadow on the fixed page side one shadow on the inside of the flipped page one shadow on the outside of the flipped page It doesn’t work with the vertical mode (!ish) but [...]

  •  

Wordpress // Photon by Jacob Andreas