Category Archives: programming

How to select the second non-empty child element with just CSS

I’ve spent a lot of time trying to figure out the title question out yesterday, and decided that I might as well post the solution here as a helpful hack. The backstory here is that I’m using the AdBlock Firefox … Continue reading

Posted in html, programming | Comments Off on How to select the second non-empty child element with just CSS

Three of the highest-paid programming languages

Have you ever wondered which computer language gives the highest salary to computer programmers? Programmers are very much in-demand now, earning around $100,000 a year, thanks to the boom of mobile adoption.

Posted in java, programming | Comments Off on Three of the highest-paid programming languages

Powershell, SVN Log, and Encodings

To automate packaging changes for our system, we use Powershell in conjunction with the default SVN client to extract relevant commits and then export all files therein to a package directory. After upgrading from SVN 1.6.12 to 1.8.1, however, I … Continue reading

Posted in powershell, svn | 2 Comments

How to import user group memberships from AD to an SQL Server database

I am currently setting up an Active Directory import for a non-.NET system at work with a very limited set of tools. Essentially, I only have what the standard LDAP query can fetch me and what little logic I can … Continue reading

Posted in active directory, sql, sql server | 2 Comments

How to install JDK from PowerShell silently

A couple of days ago, I have fought long and hard battle against JDK (Java Developer Kit) installation packages. The goal was to deploy the JDK offline to a custom path on a Windows (XP + 7) system using a … Continue reading

Posted in java, msi, powershell | 20 Comments

How to copy HTML tables to MS Excel

A quite simple question, really, but I’ve had some trouble with it today.

Posted in html, ms office | Comments Off on How to copy HTML tables to MS Excel

How to wait for a remote process in PowerShell

A short one today. I’ve been scripting in PowerShell (v1) recently, and had enormous trouble working on remote PCs (the full remoting functionality has not been enabled in our environment yet, so things like Enter-PSSession don’t work). One thing that … Continue reading

Posted in powershell | Comments Off on How to wait for a remote process in PowerShell

How to generate a deterministic GUID from two strings in Java

Currently working on MSI packaging for our software and using WiX tool suite to automate the process. Since it was decided that we don’t want to use patches, I had to implement pseudo-major upgrades for each version.  Now, the problem … Continue reading

Posted in java | 4 Comments