Posts

Clojure: The Main-Class specified does not exist within the jar.

The Main-Class specified does not exist within the jar. It may not be executable as expected. A gen-class directive may be missing in the namespace which contains the main method, or the namespace has not been AOT-compiled. While there are many posts (and bug reports out there regarding this `Warning`, what none of them mention is that it could also mean that everything is perfect, but that your file might have the wrong extension.

`.cljs`, instead of `.clj`, for example. Hopefully this note will help others troubleshoot this warning a bit faster if this is the case.

PSR-0 and PSR-4 autoloader for php 5.4 on linux

The PHP build-in auto-loader can't handle namespace paths on Linux.

It also seems to have issues with case.

The easiest way is to lower-case all class files, and add a file containing the following code and include it.
<?php
spl_autoload_register(
  function ($pClassName) {
spl_autoload(strtolower(str_replace("\\", "/", $pClassName)));
  }
);
Source: http://php.net/manual/en/function.spl-autoload-register.php#111875

JetBeans IntelliJ invalid javaHome on Windows 8

Just copying the JRE contents from the normal folder into C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.4\jre seems best.

Installing Bugzilla under Hostgator Cpanel

When installing Bugzilla under Hostgator (and possibly GoDaddy) you may run into issues where the following errors occurs:
Can't locate Math/Random/ISAAC.pm in @INCTo fix this, add the following line to Bugzilla.pm at the top of the use section:
use cPanelUserConfig;  This tells all the Bugzilla cgi files to reference the Cpanel path to find the installed perl modules.

(Thanks to http://mozilla.6506.n7.nabble.com/Software-error-Can-t-locate-Math-Random-ISAAC-pm-td277586.html#a277593)

Adding Feedly to Google's RSS Subscription Extension

Add the following: http://www.feedly.com/home#subscription/feed%2F%s

How to mark a partition INACTIVE in Windows 7

When you install Windows 7 SP 1 on a dual-boot system you may receive Error: 0x800F0A12


This error means that the update can not find the 'active' or system partition where the boot files are stored. This partition is to required to start Windows, so it exists, the system just doesn't know which one it is.


http://windows.microsoft.com/en-US/windows7/Mark-a-partition-as-active explains how to set the partition as active, but what if you have more then one partition flagged? Microsoft says that only one partition per drive can be flagged 'active, so what happens if you flag more then one by mistake? Windows Update has no idea which one is correct.

Here are the steps needed to 'unmark' a partition as active:

Open up a command prompt and type DISKPART.Type LIST DISKType SELECT DISK n (where n is the number of the old Win98 drive)Type LIST PARTITIONType SELECT PARTITION n (where n is the number of the active partition you wish to make inactive)Type INACTIVEType EXIT t…

Reinstalling libgcc on openwrt

So it appears that the developers of openwrt won't mark libgcc as a dependancy of opkg.

That means you can remove it...and then be able to do nothing

Thank to http://bredsaal.dk/trust-nobody-or-nothing, here are the instructions to get libgcc back.


Login to your router with sshEnter the following commands:
cd /tmp wget http://downloads.openwrt.org/kamikaze/8.09.1/brcm-2.4/packages/libgcc_3.4.6-14.1_missel.ipk tar xzf libgcc_3.4.6-14.1_mipsel.ipk tar xzf data.tar.gz ln -s /tmp/lib/libgcc_s.so.1 /lib/libgcc_s.so.1 opkg install libgcc
Be happy!