11 december 2009

Timeout

A strange problem rose with the release of Firefox 3. Pages takes forever to load.

After alot of thinking and testing weve come to the conclusion that its the http timeout value in about:config (which defaults to 300). Its in conflict with the timeout value of our firewall for the HTTP-Protocol.

The setting in the firewall is 60 seconds which means that if a http-connection lasts more then 60 seconds in firefox (it will last 300 seconds) the firewall expects a TCP-SYN packet to start a new http-connection, firefox however will NOT start a new connection since it thinks it is still connected. The firewall will look at the next packet and think its out-of-state, which makes firefox "load" the page until it reaches its timeout value (300).

The solution to this specific problem is to set the http timeout value in firefox lower then the one in the firewall to make firefox initiate a new conneciton before the firewalls timeout ends.


10 november 2009

iPhone & Contacts

Having a list of contacts in my iPhone is a bit of a problem.

I can have a LDAP-contactlist BUT i dont have a button to import the LDAP-contact into my iPhone contactlist. Why is this?

9 november 2009

iPhone & eGroupware 1.4.002

I just got an iphone at work and ive been trying to get it to sync my calendar. It didnt matter if its a 2-way sync or just a readonly calendar in my phone. I just want to know whats happening during work hours.

iPhone OS 3.1.2 has support for CalDAV calendars, eGroupware 1.4.002 has not.

After playing around for a while (and browsing app store for a few hours) i suddenly noticed, u can subscribe to calendars. This works with eGroupware 1.4.002. Just insert ur /icalsrv.php/username/whatever/events.ics (or default.ics) and ur back on track! Your calendar in your iphone!

28 september 2009

Checkpoint NGX Firewall

H.323 connections timeout after 60 minutes no matter if there is traffic.

In Checkpoint's Smartdefense module there is a setting that changes the timeout for H.323. This is independent of the global timeout.

23 september 2009

ZENworks agent not registering

Agent wont register during PreAgent installation.

See TID 7002122

27 april 2009

Obtain IPAddress in C# .NET 2.0

public static String getIPAddress()
{
foreach (IPAddress testIP in Dns.GetHostEntry(getComputername()).AddressList) {
return testIP.ToString();
}
}

Check for bit in byte

bool inByte(byte a, byte b) {
if ((a | b) == b) {
return true;
}
return false;
}

Read windows registry in c++

DWORD readReg(HKEY myKey, char* path, char* value) {
struct HKEY__* reghandle;
DWORD readValue;
DWORD size = 8192;
if (RegOpenKeyEx(myKey,path,0,KEY_READ,&reghandle) != ERROR_SUCCESS)
{
printf("Couldn't read key.");
}
DWORD ret;
ret = RegQueryValueEx(reghandle, value, NULL, NULL, (LPBYTE)&readValue, &size);
if (ret != ERROR_SUCCESS)
{
printf("Couldn't get value.");
}
RegCloseKey(reghandle);
return readValue;
}