Friday, December 12, 2014

Removing commons-logging Dependency from Spring with Ivy

Let's say you want Spring to use SLF4J instead of commons-logging.

First you need to remove the dependency from spring-core:

[TODO]

In the unlikely event you are already not loading transitive dependencies:

<dependency org="org.springframework" name="spring-core" rev="3.2.8.RELEASE" transitive="false"/>

you need to to nothing.

Then add the following dependencies to specify the framework you want to use:

<dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.7.7" transitive="false"/>
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.7" transitive="false"/>
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.7" transitive="false"/>

Ant: Class not found: javac1.8

This error is known to happen with Apache Ant versions less than 1.9.0, which aren't compatible with Java 8.
Upgrade!
Worked for me.

Thanks to Kristian.

Wednesday, December 10, 2014

Find out which applications are using port x on Windows

Find out which applications are using port x on Windows:
> netstat -aon | findstr 0.0:8080

Tuesday, August 19, 2014

Google Drive: Failed to Schedule 1 File for Upload

If your Google drive application for an Android mobile device gives you this message and you have the Developer Options enabled, try to uncheck Do not keep activities before trying anything else.

Thanks to bbell67.

Friday, June 27, 2014

Wireshark: The NPF driver isn't running

The NPF driver isn't running. You may have trouble capturing or listing interfaces.

You run Wireshark occasionally and don't want to start the NPF driver automatically at start up.

Open a command shell with administrator rights and type:

> sc start npf

You can [stop] the service in the same way.

Run a Command as Administrator on Windows

I didn't know this but since I'm a Linux guy, I'm not ashamed.
On windows, if you log in as a user with administrator privileges but want to run a command shell with administrator's rights, you still need to run it in a special way:
  1. Go to the start bar search box
  2. Type cmd
  3. Right-click on cmd.exe and choose "Run as administrator"
Thanks to Olav.

Tuesday, June 10, 2014

Building with Ant from Eclipse: "Specified VM install not found"

After an update of the JDK and successive removal of the old version, when I tried to build with Ant from Eclipse I got:

Specified VM install not found: type Standard VM, name jdk1.7.0_55

Yeah, right, OK, but where do I update the JDK that's used by Ant??
Here:
Run -> External Tools -> External Tools Configurations -> JRE

Thanks to Michael Borgwardt

Monday, June 09, 2014

Windows Keeps Forgetting the Wi-Fi Connection Password

One possible cause of the problem is that the Intel PROSet/Wireless WiFi Connection Utility is somehow conflicting with the OS.
Try to disable it and go back to Windows  managing the connections.

Once you're opened the Intel WiFi connection utility, choose: Advanced, then something like Let Windows Manage the WiFi Connections.

You're done.

Windows: Choose What is Started at Startup

Run:
> msconfig

then switch to the Startup tab.

Wednesday, May 07, 2014

Windows 7 Taskbar Icons Not Displaying Properly After Repair

If some of your icons display like empty boxes after a repair to the system because of some reset, then follow these instructions. They worked for me.
  1. Open the task manager in the processes tab.
  2. Kill explorer.exe.
  3. From the File menu in the task manager, choose New task (run...)
  4. Execute the following:  
    1. cmd /c del %userprofile%\AppData\Local\IconCache.db /a
  5. And restart explorer running: 
    1. explorer.exe
Everything should be fine now!
Tested on Windows 7

Thanks to bhadri.

Sunday, April 27, 2014

Add a Program to the Send To Menu

If you need to use Windows and would like to add some more user-friendliness to the super user-friendly MS GUI, like, adding some other program to the Send To menu, here it is what you need to do:
  1. Open Windows explorer and type: shell:sendto in the text field.
  2. Create a link, ehm shortcut for the program you plan to add in some place (directory, desktop).
  3. Cut and paste it into the Windows explorer directory.
  4. You're done! 
Updated for Windows 10 in May 2016.

Thursday, April 24, 2014

Specified VM install not found: type Standard VM ...

Specified VM install not found: type Standard VM, name jdk1.7.0_45

You installed a new JDK, configured Eclipse to recognize it but the old one still pops up when you compile or do something else.
Try removing the following file: \.metadata\.plugins\org.eclipse.debug.core\.launches\projectname build.xml.launch

Thanks to Mujahed

Monday, March 17, 2014

Mercurial: abort: uncommitted local changes

If you're using TortoiseHg Workbench: go to Repository --> Terminal.
Otherwise simply open a console and cd to the root directory of your repository.
Type: 
 
> hg update --clean -r tip

That should solve the problem.
Thanks to Mike here.

Friday, February 21, 2014

Annoying Eclipse Validation Errors

Sometimes you run into these Unknown validation errors in Eclipse which you seem not to be able to get rid of.
The Maven build is running fine even from within Eclipse but the messages won't go away even if you:
  • Right-click on the project --> Validate
  • Project --> Clean
  • Close and re-open it
What worked for me is: select them all, right-click and delete them.
If there was no real reason for them to show up because in the meantime you had removed the reason for them to exist, then they'll not be generated again.

Thanks to pelotom!