Backdropping jQuery functions into PrototypeJS

One of the functions I use quite regularly when working with jQuery is .attr(). Right now – at work – I’m fiddling around in Prototype, and noticed I kept on writing .attr() which – quite evidently – doesn’t exist. Okay, I can use Prototype’s .readAttribute() and .writeAttribute() but that’s quite a hassle: I want one […]

MySQL: Get next AUTO_INCREMENT value from/for table

Note to self: To get the next auto_increment value from a table run this query: SELECT AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = "databaseName" AND TABLE_NAME = "tableName" Don’t forget it (again). Did this help you out? Like what you see?Consider donating. I don’t run ads on my blog nor do I do this for profit. […]

PS_BRAMUS.TextExport 1.3 – Automatically export all Text layers from Photoshop PSD to a Text file (PSD2TXT)

Colleague Johan asked whether someone could knock up a script which exports all text layers from a Photoshop document to a text file (viz. a PSD2TXT tool/script), enabling one to slice even faster than he already can. Last week I released the first version of the script (v 1.2), now it’s time for an update. […]

PS_BRAMUS.TextExport 1.2 – Automatically export all Text layers from Photoshop PSD to a Text file

Colleague Johan asked whether someone could knock up a script which exports all text layers from a Photoshop document to a text file. Since I’ve scripted Photoshop before (heck, I even steered Photoshop from within C#) it was no biggie for me to knock up a simple script, which I dubbed TextExport

Javascript html_entity_decode

Dirty, but it works 😛 function html_entity_decode(str) { var ta = document.createElement(“textarea”); ta.innerHTML=str.replace(/</g,”&lt;”).replace(/>/g,”&gt;”); toReturn = ta.value; ta = null; return toReturn; } Did this help you out? Like what you see?Consider donating. I don’t run ads on my blog nor do I do this for profit. A donation however would always put a smile on […]

How to find the original Flickr Photo URL and User from a Static Flickr Image URL/Permalink

Got a link like //farm3.static.flickr.com/2085/2177060015_258bcfaff9_m.jpg and want to find out which user posted it, more images by that user, see the full-size version, etc? Seek no longer, the answer is very simple!

TinyMCE CSS Classes and IDs Plugin : bramus_cssextras 0.5.0 hits the net!

Huzzah! bramus_cssextras 0.5.0 has been released! No new features have been added, yet this version differs a lot from the previously released versions of bramus_cssextras: Under the hood bramus_cssextras has been totally rewritten to make it TinyMCE 3.0 compatible.