Here is my theme for PHPStorm : weebox.xml (copy the file in ~/Library/Preferences/WebIDE10/colors/)
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/
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’);
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= [...]
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 [...]
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 [...]
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 : [...]
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 [...]
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 [...]