Have you looked at the HTML markup of the new Yahoo homepage? Then you should. The markup (although it won’t validate) is a piece of semantic art. Lists are lists, tabs are lists, only one table to be seen (obviously plugged-in coming from a different site) The total number of markup elements on the page […]
Some new music, well new for me, I’m listening to: Charlotte Gainsbourg’s 5:55, very nice, helps me with concentration 🙂 Air contributed to this album, I love Air, saw them live in Montreal maybe a year or so ago. Beck’s The Information. Makes a Sunday midnight, spent in reviewing and deleting 896 comments held for […]
http://www.ddj.com/dept/opensource/193500812 Microsoft has formed a technical partnership with Zend Technologies to optimize its open-source scripting language PHP to work better with Windows Information Server. Further in the article there are some lines that can always make you smile, like … “Yeah, that’s ma boy” 😀 For example: PHP is now the leading scripting language on […]
After living in Montreal, QC, Canada for a little more than 4 years, yesterday me and my wife passed the citizenship exam and we’re almost Canadians now. What’s left is waiting for another invitation in the following weeks for a ceremony, including pledging allegiance to Ellizabeth II, the Queen of England and singing O Canada! […]
So what I’ve been up to recently? Having a bit of a break, I guess. First, I’m not currently writing a book, after the last one for which I completed my chapter back in June. That’s some free time (There is a very exciting book project on the horizon though, we’ll see). Then, I’m not […]
Text_Highlighter is one of my favourite PEAR packages, seems like I’m addicted to highlighting source code. After adding BB code and simple HTML renderers and an ABAP code syntax definition, today I played with adding a JSON renderer. Useful in case you want to get highlighted source code in your new shiny AJAX app. Array […]
The problem in question is how to find out a dynamically included JavaScript file is actually loaded. The concept of JavaScript includes is here, the IE-only solution is here. The IE solution is to use the onreadystatechange event that is fired when a new script is included. It also works for dynamically loaded CSS files […]
So it turns out one can defer scripts, meaning give the browser a hint that a script will not mess up with the page right now, so it won’t affect the rendering and can be delayed for later. This could give you increased performance during the initial page load and rendering, since you’re giving the […]
This is a follow up to my article (the most popular on my blog based on the comments) about the JavaScript includes, the technique to include new .js files after the page is loaded, by using DOM to create a new script tag. The problem that is discussed in the comments is how to find […]
In case you’ve missed it – the PEAR book hit the streets! The exact title is “PHP Programming with PEAR” and it’s co-written by Stephan Schmidt, Carsten Lucke, Aaron Wormus and yours truly. Aaron also put up a Wiki for book and PEAR-related updates, it’s at thepearbook.com I tried to put up a list of […]
Previously I’ve mentioned how I do image searches with my bigger daughter, hunting for images of Cinderella, Ariel the little mermaid, and other equally beautiful princesses. So I thought why not build a custom little app for the little kid to do this, I mean, her, being the good (and beautiful) girl that she is, […]
Earlier today in a discussion with the lovely Amy Stephen, I thought of posting the RSS feeds I read. So I was thinking I would need to approach this in a good old web 1.0. way, finding a way to scrap content from the Google Reader. Luckily for me, I saw they have an Export […]
Here’s a list of RSS feeds I’m subscribed to, I’m using the Google Reader thing and check these usually once a day, sometimes several times a day, if I feel I need a break and don’t have anything in mind. These have become de facto the way I get informed of what’s up, my pretty […]
The question is – what will a browser do, given a page with several stylesheets, each of them probably overwriting definitions from the previous ones? Will the browser render the page using the first received css file, while downloading the other ones and after that partially re-rendering where required? The answer is: no, the browser […]
Introduction JavaScript is a very flexible object-oriented language when it comes to syntax. In this article you can find three ways of defining and instantiating an object. Even if you have already picked your favorite way of doing it, it helps to know some alternatives in order to read other people’s code. It’s important to […]
Just published my previous posting and saw that apart from putting it in the JSON and JS categories, I’ve forgotten to take out the WordPress’ default “Uncategorized” category. For a moment I wondered how many other people are making the same mistake, so I did a tag search in Technorati for Uncategorized. 7,102,321 posts! Compared […]
Here’s a little thing I came up with, which hopefully can make reading/writing cookies with JavaScript easier. The big idea The idea is to keep a JavaScript object (a hash array) of all little variable things you want to store in a cookie. Then, once ready, you encode the object into a JSON string and […]
This post talks about how to make the snowflakes effect using YUI.
Here’s a bookmarklet that will tell you whether or not the browser renders your page in Standards Complaiance Mode or Quirks Mode. The bookmarklet will figure this out for the page as well as for all the frames (and their frames) recursively. Enjoy! Install Drag this to your bookmarklets/favorites or right click and add to […]
Just finished and eager to share – I added a new syntax definition to the Text_Highlighter PEAR package (see also here). It’s for highlighting code written in the SAP’s own ABAP programming language. A live demo is available at the hiliteme.com site, just pick ABAP from the drop-down of programming languages. Any feedback is appreciated, […]
This is sort of a framework thing to create AJAX applications, based on the MVC design pattern. Yep, I have a lot of buzzwords here, I admit, but this shouldn’t be taken too seriously. I was doing a bunch of small projects lately and I found myself using something like this little framework, without even […]
Here’s this HTML-2-DOM service – http://www.html2dom.com What it does is pretty simple – you paste some HTML code and the output is JS script code that uses DOM functions to produce the same result. Could be useful when you’re working on an AJAX-style app that generates new content using JavaScript. I build this simple script, […]
Here’s the link to publisher’s page dedicated to the PHP Programming with PEAR. Guess who wrote the chapter for MDB2? 😉 It’s an honour to me to be in the company of the other authors, people who have done a lot for the PEAR community: Stephan Schmidt Aaron Wormus Carsten Lucke Here’s what the book […]
Following from here, I’m proud to announce an update to HiLiteMe.com. With two custom renderers for Text_Highlighter, the service now offers you: – BB code for your source, so you can post beautiful code to bulletin boards and others that use BB code for formatting – simple HTML code – the formatting is using only […]
If you want to try executing custom local scripts on any page you visit, try Greasemonkey. Here’s a 10 seconds tut. The task is to create a custom script and to make sure it’s executed every time you leave a page on phpied.com (prerequisite) Get Firefox! Install Gresemonkey from here Create a file phpied.user.js (all […]