A couple of useful snippets for web developing. The list will grow over the years. Jumping to anchors with JS If we want to jump to an anchor dynamically (using javascript): /* dont use this!!! */ //location.href = location.href +…
Is your website IPv6 ready?
Is your (CakePHP) website ready for the new protocol version? Some time this year your provider will probably change to IPv6. Usually it will then provide both. Why now? Due to the IPv4 exhaustion it is now time to act….
Useful PHP coding tips
I hope the following tips help some of the newer php coders and prevent errors I either had to face or did myself. Don’t use private attributes/methods without a good reason There are some libs or classes that use private…
Widgets and CSRF – How To
Outline Did you ever try to create a widget like "Facebook Like Box" or whatever for your website? Did you try to include it in a foreign page with some JS code? If you use iframes, this is trivial. But…
Enrich your website with Rich Snippets
Why? For details see the Google info page. One nice effect is the rating (displayed as yellow stars) in the search result: Microformat, Microdata, RDFa, …? Many new formats, many different styles. There are so many because they have been…
Coding Standards in PHP
I feel about this very strongly. At least about some particular topics. It is very important for every group project (even for a one man project – you never know when sobody might join you) to have some common guidelines…
Prevent friendly error page
You don’t like the friendly error page of MSIE or Chrome? It is believed to be the length of the 404 html code which decided whether Google auto-changes the error page ("I believe if Google Chrome sees a very short,…
Prevent disposable emails to register
If you have a small social network site (or any other site for that matter), you usually want to keep the spammers and fakers outside. There are hundreds of temporary email services out there which provide you with a garbage…
SVN and Auto Checkout after Commit
VersionControl is a great thing. But if you work as a web developer you got one problem. Often its better to view a web page in the production environment. And in the most cases its a grate think to have…
New CakePHP Resources
Video Tutorials I stumpled upon it by accident today: tv.cakephp.org A great new cake site devoted to all kinds of video tutorials related to CakePHP. There are not only screencasts for beginners but also for more experienced developers, as well…