me looking so small in this world

29 2009f July, 2009

Flash CS3 and AS3 Error message

Filed under: web — rudyegenias @ 8:08 am
Tags: , ,

Error message: String passed to URLVariables.decode() must be a URL-encoded query string It’s been long since I’ve got my foot soaked in flash and this time it’s ActionScript 3.

I then got this error message from a callback function that’s supposed to say if the input has been processed successfully. Been pondering about why that could happen and has reverted back the code to it’s original format. This time I did check the PHP file on the server and see it’s code if it’s the main culprit. Alas, it is the main problem. A missing semi-colon made PHP throw an error message in front of the status (query string).

The status should be:

success=true or success=false

This status has been pre-pended with an error that Flash intercepted before the accepted value.

Other say that this code fixed the problem (source):

loaderFunction.dataFormat = URLLoaderDataFormat.TEXT;


wrapping a pre tag using css3 in ie, opera, mozilla firefox

Filed under: web — rudyegenias @ 7:52 am
Tags: , , , , ,

pre {
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

src: http://ajaxian.com/archives/wrapping-the-pre-tag

9 2009f March, 2009

how to compile greasemonkey script

Filed under: greasemonkey, javascript, programming — rudyegenias @ 10:20 am

I also code in Greasemonkey to save a few clicks of the mouse while working. Idea for what I have coded is: save at least few clicks of mouse, hundred clicks/day, that’s about 3000 clicks per months. That’s an anti-RSI initiative :D

While creating and giving out the script to other user is ok, it’s another issue when you need to ask them to install GM since it’s needed. Did try to create an extension, but creating takes quite a time. While learning how to, I then bumped into idea of creating an extension out of it. Turned to Google to check out ideas, as I practice DRY, turned out that there’s someone who already created a compiler. Here’s the link:

User Script Compiler

4 2008f November, 2008

how to enable innodb in xampp

Filed under: innodb, programming, web apps, xampp — rudyegenias @ 9:31 pm

Reference: The InnoDB Storage Engine

Find the file name my.cnf on xampp directory on C: drive. Uncomment the line that says:

#skip-innodb

and make sure that it will look like this:

skip-innodb

***
There are at least other setup option for innodb next to this line, just follow the helpful hints and you’re off. I can’t provide definite lines on this coz sadly my computer has broken down again? *Me thinks, am I worthy to be called a tech?* EVIL GRIN!

12 2008f August, 2008

xpath

Filed under: greasemonkey, javascript, programming, web apps, xpath — rudyegenias @ 12:13 pm

XPath 教程

I have been developing tools(for my current job) that will save me some few ‘clicks’ of mouse(at least on the long run). This time I bump into a tool/standard that offers a lot of possibility when coding in Javascript and learning DOM. And yes, I don’t usually code in JS. This time I need it. The link above gives enough example on how they work(by example).

[UPDATE 1]
Additional links:

XpathResult – http://www.xulplanet.com/references/objref/XPathResult.html
Mozilla XPath Documentationhttp://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html

The tool that I’ve developed by the way is based on Greasemonkey.

Have fun with it.

5 2008f August, 2008

batch file programming

Filed under: XP, batch scripting, links, programming, windows — rudyegenias @ 2:05 pm

1 2007f March, 2007

programmer sins, so am i

Filed under: programming, woes — rudyegenias @ 9:47 am

Prashanth’s scribblings: The seven sins of programmers

I have sinned, I therefore want to repent.. hehehe

powered by performancing firefox

Blog at WordPress.com.