Feed on Posts or Comments

Frustrations & Windows & Programming Daantje on 09 Mar 2010

PHP session doesn’t work in IE8, phishing filter problem?

I found a real strange bug. A client of mine has two sites. One I host, the other is hosted by a 3th party. Now the client has a domain control panel for the other site and rerouted the other domain to the one I host, but the system just makes a frameset. Not real SEO, but okay. After a few days bug reports came in. Can not log in etc. Can only be the sessions? But after testing I found that the bug only appears in Internet Explorer (tested only 8) and only on the rerouted domain, not the one I host. Fix was easy. Just added a little javascript to break out of the top frameset and everyting was working again. I think it’s Microsoft’s Phishing filter that is kicking in, but have to test further.

Here’s my litte fix: :-)

if(top.frames.length){
top.location.href = self.location.href;
}

PHP & Programming Daantje on 15 Feb 2010

Bug in EZPDF using sessions.

Found bug in ezpdf (009) when using sessions and an older php 5.2.0 version. Loose the session and pdf file will parse correctly. Strange that this bug is not appearing with php 5.2.6


iPhone & Frustrations Daantje on 02 Sep 2009

Fixed (replaced) my broken iPhone touch screen

Yes! My love is working again! I broke my touch screen last month and had to fall back on my Nokia 9300i. Not nice when you are used to an iPhone! After some calls to some iCenters and Apple stores, I found that it was not possible to fix my iPhone trough regular channels. After some googling I found a small company here in the Netherlands that was happy to send me a new screen for €49,- excl. €7,- shipping. So I ordered one and within two days I had my screen! Best service ever! So if some part of your iPhone is broken, check this site for parts: www.ipod-service.nl The company can fix your phone too, if you want to send your iPhone to them, so give them an e-mail if you have questions! Real nice people!

iPhone Daantje on 17 Jun 2009

iPhone 3.0 simlocked? Restart your phone!

I’ve just upgraded my iPhone to the latest 3.0 release… It was immediately simlocked! “Simlock active.” Why?! My iPhone is from Czech Republic, where they are sold simlock free! After a panic I found a way to get around this… Just restart the phone without a simcard. Open up iTunes, put back in the simcard and wait for iTunes to unlock the card. And we are happy campers! The phone restarts automaticly… And after boot, all files are synced back to the phone… Need a drink now. Stress full moments…

chopper & bicycles Daantje on 15 Jun 2009

Chopper Photo Shoot.

Last saturday Pat and I had a photo shoot with our bicycles. Here one of the photos. Me on my rat bike chopper. (Will add more photo’s l8er.)

photoshoot chopper

More info on http://cyclingindustries.nl

Here me in action on that chopper last year…

jQuery & PHP & Programming Daantje on 10 Jun 2009

Filter webpages server side with rhino and jquery…

I’m now busy with writing a filter, to grep data out of an large based HTML website, build back in the old days. Luckily they’ve used class names to point out the right table cells. I thought it would be a great job for jquery… But server-side… Could it be possible?
After some googling I found this very interesting blog post: “Bringing the Browser to the Server“. A real great way to use a javascript lib like jquery or prototype server side!
I use PHP to grep the HTML and transfer it to valid XHTML so I can use it in rhino.

./html2xml.php [path/to/file.html]

#!/usr/bin/php -q
<?php
        $doc = new DOMDocument();
        $doc->loadHTMLFile($argv[1]);
        $html = $doc->saveXML();

        $html = str_replace('<script','<noscript',$html);
        $html = str_replace('</script','</noscript',$html);

        echo $html;
?>

Than I use jquery to grep all data and do an ajax request to a PHP file to insert the data into a database.

After some testing, my scripts only work wit an older version of jquery. I use 1.2.6, the later ones all give errors…

I’ll try to post more info and code later ;) Check my tweets for info too!

iPhone & iPod Daantje on 11 May 2009

iPhone.

Forgot to post that I have my iPhone. I have it for a month now and it is really the best phone i’ve owned ever! Some drawbacks… Only apps from the appstore can be installed without jailbreaking. There is not a free IRC client in the appstore. There is not a free SSH client in the appstore. When you want to develop your self, to get your app on the appstore, you’ll have to pay Apple $200 for a free app and $500 and 30% of all income for a payed app. No copy paste function (yet). Rest it is realy the best toy ever!

Update: check this article on Slashdot… “Apple Refusing Any BitTorrent Related Apps?”

Personal Daantje on 11 May 2009

Twitter 2 me…

Finaly i’m using my twitter account ;) You can follow me at https://twitter.com/daantje_nl. Later I will put up a rss feed of my tweet.

Debian & Tech & Personal Daantje on 10 Mar 2009

Convert Axis webcam stream to Flash (.swf/.flv) Revised!

I’ve revised my post on how to convert an Axis webcam stream to Flash (.swf/.flv). Check my post: http://www.daantje.nl/2007/05/07/convert-axis-webcam-stream-to-flash-swfflv/

eee & Debian & Linux Daantje on 25 Feb 2009

Installed Debian Lenny on my EEE-pc

After installing Mac-OS X Tiger, Ubuntu-eee and Xandros on my Asus EEE-pc 900, I now swiched to Debian Lenny. Installing was easy. Running a normal Gnome now. For the wireless I used these links:
http://www.thinkwiki.org/wiki/Installing_Debian_5.0_(Lenny)_on_a_ThinkPad_X200#Atheros_Chipset
http://wiki.debian.org/NetworkManager
http://wiki.debian.org/WiFi/HowToUse
Everything else worked out of the box ;) Nice and easy installer too! I think this one is a keeper. And I love Debian!

Next Page »