Moving to WordPress.com
After being annoyed by the Blogger interface, I'm moving to my new blog at WordPress.com.
I hope one day they will support importing Blogger blogs again, so I could import this blog to there.
My thoughts and discoveries regarding code writing
After being annoyed by the Blogger interface, I'm moving to my new blog at WordPress.com.
That's weird. When I used Blogger's spell checker to check for spelling, it didn't recognized the word "blog". Go figureā¦
Joel on Software blog sometimes links to Joel articles and the articles have a "Printer Friendly Version" link below the subtitle. But the posts themselves, which are sometimes quite long, don't have a "printer friendly version". At least I didn't find one.
For a long time, we've experienced a problem in which we saw that no request to our ISAPI extension was written to the IIS log. This only happened in IIS 5 and not in IIS 6, so we thought this is an IIS 5 problem.
I finally set down to write the Paul Graham for Print user script.
Here is a nice IE bug I just found.
I finally sat down to find a solution to a problem that been bothering me for a while now. Sometimes I see a URL in a web site (this mostly happens in forums or blogs), which is not a link, so if you want to see it, you must copy and paste it.
<script>
external.menuArguments.open(external.menuArguments.document.selection.createRange().text);
</script>
I really need to understand how to format properly in the blog. The blogger editor kind of drivinig me nuts.
I really don't know what to write on my first post, but Joel says I should write one (great article, by the way. As usual. I should really get to read the JoS book sometime), so I guess I should just start.
function getXMLHTTP()It is called from the main page to update the list, but when an event is being updated in popup, the popup called opener.sendRequest() with the updated URL, to update the list, and then window.close(). This works well in IE, but for some reason, Firefox decided to stop the download and set the readyState to true without any data in the time that popup closed itself. I don't know exactly why it is, but the solution was to write:
{
try
{
return new ActiveXObject("Msxml2.XMLHTTP")
}
catch(e)
{
try
{
return new ActiveXObject("Microsoft.XMLHTTP")
}
catch(oc)
{
}
}
return (typeof XMLHttpRequest == "undefined") ? null : new XMLHttpRequest();
}
function updateEventList(szJSUpdateCode)
{
if(gXMLHTTP.readyState == 4)
{
if(gXMLHTTP.responseText && gXMLHTTP.responseText.charAt(0) != "<")
{
eval(gXMLHTTP.responseText); // call retrieved JS code to get events
} else {
alert("Failed to download '" + gszURL + "'");
}
gszURL = null;
}
}
var gXMLHTTP = null;
var gszURL = null;
function sendRequest(szURL)
{
if(gXMLHTTP == null)
gXMLHTTP = getXMLHTTP();
if(gXMLHTTP == null)
return false;
if(gXMLHTTP.readyState != 0)
gXMLHTTP.abort()
gXMLHTTP.onreadystatechange = updateEventList;
gszURL = szURL;
gXMLHTTP.open("GET", szURL, true); // true means work asynchronically
gXMLHTTP.send(null);
}
function delayedRequest(szURL)
{
setTimeout("sendRequest('" + szURL.replace(/\'/g, "\\\'") + "');", 1);
}