Category: Uncategorized
Error when resizing VirtualBox disk on Windows
I recently needed to resize my CentOS VDI using the following command: “c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” modifyhd “c:\CentOS\CentOS.vdi” –resize 20480 Unfortunately it kept failing with this error message: VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) – Server execution failed (extended info not available) VBoxManage.exe: error: Most…
Webalizer on Windows
This post is really only some notes for me on how to use Webalizer on Windows to parse IIS log files (w3c format). If you have any questions about this please DO NOT ASK ME. Download and extract the Windows binaries Download and unzip/untar the latest GeoDB to the same directory…
Crashplan GUI Crashing
We had a machine with a very large backup set (~3TB) with some large DV files (~4GB). For a while our backups were running fine but recently whenever we tried launching the Crashplan GUI it would run for a little bit, hang and then finally crash. Nothing showed up in…
Allow WordPress to update itself without using FTP
Quick and simple, if you want to avoid putting FTP credentials into WordPress every time that you perform an update add this to your wp-config.php file somewhere before the magic stop line (“That’s all, stop editing!”) define(‘FS_METHOD’, ‘direct’); More from the codex here You might also need to mess with…
Install Visual Web Developer 2011 Beta without using the Web Platform Installer
Microsoft’s Web Platform Installer is great but for some reason I prefer to install things the harder way. Here’s the official Microsoft link to download the Visual Studio 11 Express Beta for Web installer. Its still a bootstrap downloader but if I find an ISO I’ll update this post.
Convert iTextSharp Hyperlink from remote webpage to local page number
This post is in response to a comment here. Let’s say you have a PDF with hyperlinks pointing to URLs like http://www.bing.com and you want to make these instead point to a page internal to the PDF. (Personally I can’t think of why this would be needed but someone apparently…
How to recompress images in a PDF using iTextSharp
(I originally posted this on Stack Overflow) iText and iTextSharp have some methods for replacing indirect objects. Specifically there’s PdfReader.KillIndirect() which does what it says and PdfWriter.AddDirectImageSimple(iTextSharp.text.Image, PRIndirectReference) which you can then use to replace what you killed off. In pseudo C# code you’d do: Below is a full working…
Getting color information from iTextSharp’s TextRenderInfo and ITextExtractionStrategy
In order to get color information when using an ITextExtractionStrategy in iTextSharp (5.1.1.0) you need to make the following changes to main iTextSharp code. Once you make these changes you can follow my SO post here for getting font information as well. iTextSharp.text.pdf.parser.GraphicsState.cs iTextSharp.text.pdf.parser.PdfContentStreamProcessor.cs iTextSharp.text.pdf.parser.TextRenderInfo.cs This code is very experimental…
Don’t bother with TcpClient.Connected
The TcpClient has a Connected property that is very convenient to use but unfortunately it doesn’t do what you think it should do. A better name for this property would be WasConnected or WasLastOperationSuccessful. The problem is that this property only tells you the status of the last operation. For…