Powered By Blogger

Samstag, 14. April 2012

Firefox 11: Catastrophic usability (add-ons upgrade)


What the f*** is that??? Does Mozilla want to loose even more users? Haven't they lost enough yet? If they continue that way, I'll go away from Mozilla Firefox to some other browser. To develop a shit like the new add-on update behavior is a huge provocation! If you have about 10 add-ons and three or four designs, like I have, you have to check "Allow this installation", click "Continue" and then close the tab (otherwise it would restart Firefox after every (!) installation) for every add-on! This is complete crap. Previously, there was a dialog where you could see all your add-ons in a list with check marks and could decide, which add-ons you would like to keep and those were updated. So simple. But now Mozilla decided to make it that complicated. Poor.

Mittwoch, 11. April 2012

Bauarbeiten Bruck/Mur und Graz Hbf

In Bruck/Mur ist seit einigen Tagen der Bahnsteig 1 wieder geöffnet, dafür sind jetzt die Bahnsteige 2 und 3 gesperrt.


Auch am Grazer Hauptbahnhof wird emsig gearbeitet. Momentan sind dort die Bahnsteige 4 und 5 gesperrt. Der IC 718 fährt momentan Bahnsteig 6 weg und der REX 1995 kam heute morgen ebenfalls Bahnsteig 6 an, was nicht gerade erfreulich ist, da die Bahnsteige 6/7 die "Sparbahnsteige" mit nur einer Rolltreppe sind.




Dienstag, 10. April 2012

GCC: 100.000 files is too much

For my bachelor thesis, I do some performance comparisons of compilers. Today I wanted to see what happens if gcc 4.5.3 has to include 100.000 header files with just a simple printf inside. At least in Cygwin under Windows Server 2008 R2, this was too much, as you can see in the picture below. Now I have to find out the maximum number of header files gcc can process and hope that the other testees can also manage the same amount of files.

Samstag, 7. April 2012

SOLVED: Compilation does not work in VisualD: msobj80.dll not found

Recently I've installed VisualD in Visual Studio 2010 on my Windows Server 2008 R2 machine and although the same version works perfectly in Visual Studio 2005 on Windows XP, it doesn't work for the "Debug" profile in VS2010 on Win2008. It always says it could not find "msobj80.dll". In my case, copying the DLL to the "bin" directory of the Windows SDK solved the problem:

C:\>copy "C:\Program Files (x86)\Common Files\microsoft shared\VSA\9.0\VsaEnv\msobj80.dll" "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin"
1 file(s) copied.

I got this hint through the file "...build.cmd" in the "Debug" directory of my D solution.

Donnerstag, 23. Februar 2012

Shortest URLs of the Internet

Some TLD operators have DNS entries of type "A" directly on their DNS, so these are the shortest possible URLs in the Internet. I wrote a small program in just ten minutes that finds all of them using a list from IANA:

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;

namespace TldDns
{
class Program
{
static void Main(string[] args)
{
WebClient wc = new WebClient();
string TldList = "http://data.iana.org/TLD/tlds-alpha-by-domain.txt";
string[] allTlds;
using (StreamReader sr = new StreamReader(wc.OpenRead(TldList)))
{
allTlds = sr.ReadToEnd().Split('\n');
}
int cnt = 0;
IPAddress[] addresses;
foreach (string tld in allTlds)
{
if (cnt > 0)
{
try
{
addresses = Dns.GetHostAddresses(tld + ".");
if (addresses.Length > 0)
{
Console.WriteLine("Entries for {0}", tld);
foreach (IPAddress address in addresses)
{
Console.WriteLine(" " + address.ToString());
}
}
}
catch (Exception ex)
{
Console.WriteLine("Quering host entry for {0} caused an error.", tld);
}
}
cnt++;
}
Console.WriteLine("\nFinished.");
Console.ReadKey(true);
}
}
}

Unfortunately, if a domain has no A entry, Dns.GetHostAddresses throws an exception which slows execution down dramatically. The programs needs about 15 minutes (!) on my PC to run.

Here are the TLDs I found and if a web site is available too (having an A entry doesn't necessarly mean that a web server runs on that address):

http://ac/
http://ai/
cm (points to 195.24.205.60, no web site available)
http://dk/
gg (points to 87.117.196.80, no web site available)
http://io/
je (points to 193.223.78.212, no web site available)
kh (points to 203.223.32.21, no web site available)
ph (points to 203.119.4.7, no web site available)
http://pn/ (404?)
http://sh/ (forwards to http://www.nic.sh/)
tk (points to 217.119.57.22, no web site available)
http://tm/
to (points to 216.74.32.107, no web site available)
http://uz/
vi (points to 193.0.0.198, no web site available)
http://ws/ (forwards to http://www.website.ws/)
XN--O3CW4H (that's a IDN in some non-ASCII coding)

Interesting, isn't it? :-)

Mittwoch, 15. Februar 2012

Grazer Hauptbahnhof Februar 2012

Heute habe ich vom 10. OG des Bauamts aus Fotos vom Grazer Hauptbahnhof gemacht und vorgestern und gestern vor dem neuen Bahnhofvorplatz.


Blick vom 10 OG des Bauamts auf die Straßenbahnunterführung und den neuen Bahnhofvorplatz (15.02.2012)



Blick zur Baustelle von ca. 1 OG des Bauamts (14.02.2012)


Blick auf die Baustelle vom nordseitigen Ausgang aus (13.02.2012)


Blick auf die Baustelle von der temporären Bushaltestelle der Linien 58/58E/63 aus