Sybase: Update TEXT/IMAGE columns using dbwritetext
Similar to the writetext command, you can use the dbwritetext function of the Open Client DB Library to update a text or image column. Here is a short sample how to do it: // Defines the entry point...
View ArticleJava: Distributing/Deploying the JRE using Windows Group Policies
Download the JRE you want to distribute from the Oracle Java SE Downloads page. I used the Java SE Runtime Environment 6 Update 33. Start the downloaded JRE installation package (in my case:...
View ArticleWindows: Installing the Group Policy Management Console (GPMC)
The Group Policy Management Console (GPMC) is a Microsoft Management Console (MMC) snap-in used to administrate group policies in a Windows domain controller. Although it’s actually part of Windows...
View ArticleSecurely connect to a Linux server with putty and ssh key
First you need to download PuTTY and PuTTYgen from the PuTTY Download Page. Then start puttygen: Make sure the type of key to generate is SSH-2 RSA and click on the Generate button: As instructed,...
View ArticleWindows: Change first day of the week
On my machine, since I’m using the US regional settings, the week starts on Sunday: Windows clock first day of week sunday It’s usual for the US and Australia but in Europe everybody considers the week...
View ArticleWindows: log first login and last logout (and sleep) time every day
Since I have to keep track of when I started working and when I stopped working (because of some legal regulations), I was using an app on my iphone to check in and out of work. But often I either was...
View ArticleWindows: Port 80 is already in use
I wanted to start the Apache web server using XAMPP and got an error message that port 80 was already in use. My first thought was that IIS might be running on port 80. But on this machine I hadn’t...
View ArticleThis file requires _WIN32_WINNT to be #defined at least to 0×0403. Value...
While building a product originally written with Visual Studio 6 on my machine (Windows 7 and Visual Studio 2010), I got for a few sub-projects the following error message: c:\Program Files...
View ArticleJava: Could not find main class. Program will exit.
In order to make a runnable (executable) JAR file which can be started by double clicking the JAR file, you just need to add a manifest file to the JAR file which references the main class to be...
View ArticleGenerating new certificate in XAMPP for Windows
Since I had an older version of XAMPP for Windows installed, it was still using openssl 1.0.1e in which the heartbleed vulnerability was not yet fixed. So I installed the latest version and since the...
View ArticleOleViewer: STG_E_FILENOTFOUND and IDataObject interface viewer only supports...
I had some problems loading a type library (TLB file) when building a Visual C++ project, so I wanted to have a look at the TLB file using the OleViewer. So I started the OleViewer as Administrator...
View ArticleVisual C++: module unsafe for SAFESEH image, unable to generate SAFESEH image
Using Visual Studio 2012, I was building from the command line a software which was built until now using an older version (guess it was Visual Studio 2005). There were of course many things I had to...
View ArticleVisual Studio 2012: mspdb110.dll is missing when executing editbin.exe
I was having some issues using an OCX in an old application I had recompiled using Visual Studio 2012. One thing I found is that it might be related to a compatibility issue with Data Execution...
View ArticleWindows: Network connections timing out too quickly on temporary connectivity...
If you have a rather unstable network where you tend to loose connectivity for a short time frequently, you might notice that established connections (e.g. ssh connections using putty) will get lost....
View ArticleMicrosoft Word 2007: Bullets and numbering in unprotected sections
Let’s assume you have a template where you only want users to be able to write to a few sections of the document but not in the rest e.g. because the rest is automatically generated, you would protect...
View ArticleC#: Query active directory to get a user’s roles
There are a few different ways to get the roles/groups of user from Active Directory. Here are 3 different ways to do it. The first way to do it is to use UserPrincipal.FindByIdentity: private static...
View ArticleActive Directory Authentication and Authorization in Orchard CMS
Since Orchard CMS doesn’t (yet) support authentication and authorization of domain users against an Active Directory, you have to install a module to achieve this. There are handful of modules which...
View ArticleOrchard CMS: NullReferenceException when adding roles
When clicking on “Add a role” in the Users administration, I got the following exception: System.NullReferenceException: Object reference not set to an instance of an object. at...
View ArticleASP.NET: Slow first loading time
You might have experienced the problem that when you first load a large ASP.NET application (e.g. a CMS), it takes quite some time to load. If you then reload the page or even restart the browser and...
View ArticleWindows 7: empty pages displayed in CHM file
When opening a CHM file downloaded from Internet on a Windows Vista or Windows 7 machine, the file may not render properly and just show empty pages. All you’ll see no matter which page you select is...
View Article