Compdigitec Labs


Disable dragging of an element in JSXGraph

Sunday, July 20th, 2014

Set the attribute ‘fixed‘ to true in JXG.GeometryElement: or

Solving “Only Content controls are allowed directly in a content page that contains Content controls”

Friday, February 3rd, 2012

While debugging and creating a new ASP.NET User Control, I stumbled across the following error, “Only Content controls are allowed directly in a content page that contains Content controls” that I did not encounter before. The culprit: an invalid assembly in the custom ASP.NET User Control registration section of “web.config“: The first thing I tried, […]

Launch non-exe extension files as executables

Sunday, May 1st, 2011

Windows does not come with a built-in way of launching executables that are without the exe extension. However, we have written a small tool called “anylaunch” which allows one to execute any file as if it were an executable. (Non-PE files will still give an error since they are not executables “XYZ is not a […]

Microsoft Word 2010 and colour depth

Saturday, February 5th, 2011

Normally, the appearance of the Office 2010 application on the Windows operating system is the one with a high colour depth with the modern icons. However, if you are accessing an Office 2010 application through a remote access application like VNC or Remote Desktop or if you have a graphics card which is not capable […]

Quickly generate CRUD (Create, read, update, delete) stored procedures in SSMS with SSMS Tools Pack

Thursday, December 23rd, 2010

Normally, in SQL Server Management Studio to generate some stored procedures one would have to go through series of dialogs and manual actions using the “Script To” menu. This process is both painful to do by hand and is also very error-prone. Now there is an automated tool that can automate the process of writing […]

Converting between int and std::string in C++

Saturday, November 20th, 2010

Connecting to a network Samba PDF converter

Thursday, September 30th, 2010

The Samba team does not supply any existing PDF drivers for connecting Windows machines to networked PDF converters such as cups-pdf. As a result, the technique to print to the PDF “printer” involves using the drivers for the built-in Windows HP LaserJet. Here is a step-by-step method to print to PDF from your Windows computer. […]

ASP.NET GridView All-In-One Quick Reference

Saturday, July 17th, 2010

Here is a quick collection of snippets where one can quickly lookup the necessities of setting up a GridView for the purposes of displaying information to the viewer through a database (for example, MySQL): Adding Columns of Data Binding the Data (and storage across sessions) Paging Note: This needs AllowPaging to be set to “true”. […]

Solving Could not find stored procedure dbo.aspnet_CheckSchemaVersion in ASP.NET Membership

Tuesday, July 13th, 2010

Normally, as usual, one would not see the error Could not find stored procedure ‘dbo.aspnet_CheckSchemaVersion’ if one has a good database already setup with everything good to go. However, sometime the annoying error Could not find stored procedure ‘dbo.aspnet_CheckSchemaVersion’ crops up one can check the steps below to determine the root cause of the error: […]

Solving Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in ASP.NET 4.0

Monday, July 12th, 2010

If you have just installed Visual Studio 2010 or the .NET 4.0 Framework and trying to host ASP.Net 4.0 applications doesn’t work for you and results in the following error message: Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” It means that you haven not yet run the aspnet_iisreg.exe executable needed to register the ASP.NET 4 […]

« Previous Entries