PHP unserialize “unknown type”

Posted: September 2nd, 2010 | Author: Michal Holub | Filed under: Uncategorized | No Comments »

I’m using cross-domain con­cept for two appli­ca­tions both writ­ten in dif­fer­ent back­ends.
I ran across a prob­lem where appli­ca­tion A seri­al­izes cer­tain classes to ses­sion and appli­ca­tion B needs to access some infor­ma­tion from those seri­al­ized classes.

Read the rest of this entry »


Better prototyping with FlairBuilder

Posted: July 28th, 2010 | Author: Michal Holub | Filed under: goodies | No Comments »

I’m sure you’ll find reviews on many dif­fer­ent web pro­to­typ­ing tools out there, but a review is not what I want.
My path to Flair­Builder looks sort of like this…
Read the rest of this entry »


Delete files that are older than x days

Posted: July 27th, 2010 | Author: Michal Holub | Filed under: bash, linux, oneliners | No Comments »
find /usr/local/hrm/cache* -mtime +x -exec rm {} \;

Must have tools & apps for a developer

Posted: July 23rd, 2010 | Author: Michal Holub | Filed under: Uncategorized | No Comments »

List of tools I wouldn’t sur­vive devel­op­ment on daily basis…for Win­dows only. I’ll skip the obvi­ous ones and go to less known pieces.
Read the rest of this entry »


Sort directories by size in Linux

Posted: July 22nd, 2010 | Author: Michal Holub | Filed under: bash, linux, oneliners | No Comments »

Another one­liner…

du -s ./* | sort -n| cut -f 2-|xargs -i du -sh {}

Crossdomain cookies tutorial in Nette

Posted: July 21st, 2010 | Author: Michal Holub | Filed under: nette, php | 1 Comment »

For a por­tal project we needed some way of shar­ing ses­sion data between dif­fer­ent domains. Ses­sion id is typ­i­cally stored in a cookie. To put it generic, we need to be able to have a cookie that’s acces­si­ble to dif­fer­ent domains.
Read the rest of this entry »


tar and others: Argument list too long

Posted: July 21st, 2010 | Author: Michal Holub | Filed under: bash, linux, oneliners | No Comments »

Sim­ple tip, if tar and oth­ers refuse to do the job giv­ing out Argu­ment list too long, try find instead…

find -name '*' -exec tar -cvf doc.tgz {} \;

Will tar every­thing in the cur­rent direc­tory. If that fails try to save the files in a filelist

find -name '*' -print > fileList.txt && tar czvf files.tgz --files-from fileList.txt

IE7 debugging

Posted: June 16th, 2010 | Author: Michal Holub | Filed under: browser, jQuery | No Comments »

Final­iz­ing work on project www.pickwilsbrain.com I came across two inter­est­ing issues in IE7. Most of my work is around intranet sys­tems so I can afford the lux­ury of rec­om­mended browser. Unfor­tu­nately not always.
Read the rest of this entry »


Connected Slider(s) — Nette Component

Posted: May 16th, 2010 | Author: Michal Holub | Filed under: php | No Comments »

One project required a serie of con­nected slid­ers, so why not to share…
It uses the stan­dard jQuery UI slider, so UI Core and Slider must be both included.
Read the rest of this entry »


SpinButton — Nette component

Posted: April 16th, 2010 | Author: Michal Holub | Filed under: php | Tags: , | 3 Comments »

A sim­ple com­po­nent for Nette Frame­work that adds up/down but­tons next to a stan­dard text field for eas­ier numeric input. Based on JQuery Spin­But­ton plu­gin.
Read the rest of this entry »