Monthly Archive for July, 2008

Einen Antrag auf Erteilung eines Antragformulars

Dass man als Student beim Besuchen des Studierendensekretariats, des Akademischen Auslandsamt oder des Prüfungsamts viel Zeit mitbringen sollte, ist mittlerweile bekannt. Oft sind die Warteschlange vor den Büros kilometerlang, da vermutlich die Uni/das Land/der Bund einfach kein weiteres Personal zur Verfügung stellen kann. Witzig fand ich deshalb die folgende Nachricht, die ein Kommilitone an eine Bürotür geklebt hatte, vor der er vermutlich schon etwas länger als üblich stand:

Hmm, da hat wohl jemand etwas überreagiert… :)

AdBlock for Safari and Firefox

Many years ago Webwasher was the first tool for blocking ad’s within Web Browser’s. It’s been a long time :) As you know, Webwasher used a proxy server installed on your machine for filtering all the incoming HTML data. Nowadays there’re a lots of plugins for Browsers that can block ad’s as well – without a proxy server and for free. Here I’d like to give you two links for those kind of tools both for my favourite Web Browsers:


AdBlock for Safari


Adblock Plus for Firefox

Ein Wunderwerk der Technik…

…dachte ich mir, als ein Techniker letztens den Kaffeevollautomaten in unserer Firma wartete:

Und irgendwie erinnert mich das Foto an die folgende Szene aus Star Wars (Episode I), in der Qui-Gon Jinn versucht, beim Schrotthändler Watto Ersatzteile für das Raumschiff zu kaufen. Der Krempel, der in der Watto’s Werkstatt herumliegt, hat nach meiner Meinung den gleichen Charme wie die Innereien unserer Kaffeemaschine. Verrückt, ich weiß.

Converting Data From CLongBinary To CString

Regarding my recent post I’d like to give you the following 2 code snippets. The first one converts a long binary into a string. And the second takes a string and delivers a long binary.

1
2
3
4
5
6
7
8
9
10
11
12
CString CStringFactory::LongBinaryToString(const CLongBinary &pkLongBinary)
{
	CString s;
 
	if ( pkLongBinary.m_dwDataLength > 0 )
	{
		s = (LPSTR)GlobalLock(pkLongBinary.m_hData);
		GlobalUnlock(pkLongBinary.m_hData);
	}
 
	return s.Left(pkLongBinary.m_dwDataLength);
}
1
2
3
4
5
6
7
8
9
void CStringFactory::StringToLongBinary(const CString &psString, CLongBinary &pkLongBinary)
{
	pkLongBinary.m_dwDataLength = psString.GetLength();
 
	HGLOBAL lhGlobal = GlobalAlloc(GPTR, psString.GetLength());
	pkLongBinary.m_hData = GlobalLock(lhGlobal);
	CopyMemory(pkLongBinary.m_hData, (LPCTSTR)psString, psString.GetLength());
	GlobalUnlock(lhGlobal);
}