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;
}