Content
Friday 3 September 2010
-
Filed under
Tips + Tools
I’ve just started using Sass to code CSS. I really like it because it has greatly boosted my ego as a programmer, “I can put programming logic inside my CSS!” And of course, it makes it much easier to manage a complicated CSS. However, I can’t edit scss files with Dreamweaver and I miss seeing the colorful syntax. After searching for a while, I found the solution.
less-scss-syntax-highlighting-in-dreamweaver
It’s quite easy. All you need to do is to find this file Dreamweaver CS?/Configuration/DocumentTypes/MMDocumentTypes.xml and change this line macfileextension=”css” to this macfileextension=”css,scss”.
::
Share or discuss
::
2010-09-03 ::
5566
Friday 3 September 2010
-
Filed under
Tips
I spent hours trying to solve this problem. If you need to load an swf which runs away3d inside it, the loaded swf may get cropped off on the right and bottom sides. Don’t try to set the clipping attributes of the View3D instance. I’ve tried all sorts of clippings but had no luck. The problem lies with the swf’s document dimension. Once that’s set correctly, the cropping problem will be fixed.
::
Share or discuss
::
2010-09-03 ::
5566
Wednesday 21 July 2010
-
Filed under
Experimental
Very hard!
In short, you need a very high frame rate to make it look smooth. 120 is a good number. I’ve tried on 4 different platforms, Flash, JavaScript, Processing and OpenFrameworks. Needless to say, OpenFrameworks can do it without a sweat. Javascript’s result is almost as good as OF in Firefox, Chrome and Safari (IE not tested). Flash looks good in stand alone player but failed miserably when embedded into browsers. Processing or Java did a bad job in this. It only renders somewhat OK in OPENGL mode but failed in all other modes. When it’s embedded into an Applet, it can’t even produce 60 fps.
Flash | Javascript | Processing | OpenFrameworks (Mac Download)
More details (Based on my own understanding. May not be true)
The problem is because the animation and the display screen have different frame rates. What’s worse, the animation doesn’t get rendered at a consistent frame rate. Which means even you set the animation’s frame rate as the same as the display you still won’t get a smooth scrolling because sometimes the animation is rendered a bit slower and some frames are dropped.
::
Share or discuss
::
2010-07-21 ::
5566
Thursday 8 July 2010
-
Filed under
Tips
To have 2 glows, you need to apply the inner glow first then the outer glow. If not, the inner glow will not be activated. It’s true for both timeline based filters and scripted filters.
1 comment ::
Share or discuss
::
2010-07-08 ::
5566
Monday 4 January 2010
-
Filed under
Experimental + Tools
Download Now!
The story behind
As a web developer, I often need to resize images into a specific dimension to suit the website’s design. I used to resize images in Photoshop but I find it tedious to record actions again and again for different websites. Besides that, Photoshop is not cheap and not everyone has a (legal) copy. I tried some existing software but none of them satisfied me. Therefore, I decided to write one myself .
I’ve been searching and testing with many different platforms to develop it, C++, Java, Python and Perl. None of the above can achieve what I wanted, a single executable file without any extra libraries or dll files, no installation required. Finally I landed on PHP and I used bamcompile to generate an executable file. I still have troubles to get a Mac or Linux version of any PHP compiler to work. I may re-use my C++ code for Mac in the future and wrap it up as an .app.
2 comments ::
Share or discuss
::
2010-01-04 ::
5566
Thursday 3 December 2009
-
Filed under
Tips
From: tech-bits.com
“Some hosting providers are still using php 4 as their default for scripts, but offer php5 as well. To force your scripts to all use php5, you can try adding this to a .htaccess file on your site:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
“
::
Share or discuss
::
2009-12-03 ::
5566
Tuesday 10 November 2009
-
Filed under
Experimental + Tips
I’ve never seen such clear webcams before! The PS3 Eye is truly amazing!
By default, PS3 Eye is not supported by Windows or Mac OSX. Luckily there are drivers ready for you to grab. For PC, use this driver. For Mac OSX, use this driver.
To get PS3 Eye working for openframeworks in windows, you need to edit one line in file “ofVideoGrabber”. The solution is found in this thread, changing
bool bOk = VI.setupDevice(device, width, height);
into
bool bOk = VI.setupDevice(device, width, height, VI_COMPOSITE);
Remember to clean the project first and compile it to reflect the changes.
For Mac OSX, all you need to do is to copy “maccam.component” into “Library\QuickTime\”, no changes on the source code needed.
Enjoy!
::
Share or discuss
::
2009-11-10 ::
5566
Sunday 1 November 2009
-
Filed under
Experimental + Maths&Physics
I gave a mini tutorial on Box2D during A-SFUG meeting. You can download it here. Have fun!
1 comment ::
Share or discuss
::
2009-11-01 ::
5566
Monday 26 October 2009
-
Filed under
Experimental + Maths&Physics
Data visualization for join the pact campaign. Click to view.

::
Share or discuss
::
2009-10-26 ::
5566
Thursday 15 October 2009
-
Filed under
Experimental + Maths&Physics
Messing around with Box2D. Quite fun.

1 comment ::
Share or discuss
::
2009-10-15 ::
5566