"; */ ?>

software


24
Feb 08

Install Maven Plugin for Eclipse

Installing a Maven Plugin for Eclipse can be a bit tricky if you want to get the whole spectrum of features. By default you would go to “Eclipse -> Help -> Software Updates -> Find and Install”, then “Search for new features to install”, then click on “New Remote Site”, and enter the Maven Projects name (e.g. Maven2Plugin) and its home URL there “http://m2eclipse.codehaus.org/“.

Once you install it at first everything would seem quite right. However, if you try “Import” a Maven Project, you will not see such an option in under the “General” menu, since it would be missing.

The reason for that is that “http://m2eclipse.codehaus.org/” brings in an old version of the plugin. (At the moment of writing) It brings in “Maven 2 Plugin 0.0.9”, whereas what you need is 0.0.12.

Hence you read the “Maven Integration for Eclipse” installation guide and point your “New Remote Site” to “http://m2eclipse.codehaus.org/update/” instead of “http://m2eclipse.codehaus.org/“. The one thing to be cautious about is an “update” link will try to also bring “subclipse” and “mylin” projects, hence you will need to “uncheck” them if you do not want to bring them:

Choosing only Maven dependency while installing Maven Plugin for Eclipse

Happy Maving everybody! :)


2
Feb 08

Discover Owners of SVCHOST.EXE

Microsoft Windows (any flavor) is known to be very secretive and dishonest when it comes to telling its user/client/owner what is taking up sooo much system resources, and answer the question “why is my Windows so slow?“.

If you take a closer look at your Windows system you will notice that many CPU cycles and megabytes of RAM belongs to the process with very non-descriptive name “svchost.exe“. You can go to windows task manager by pressing “Ctrl+Alt+Del” and choosing task manager (if it does not come up by itself), or by running “taskmgr” command in your run window “Start -> Run” (more about the second approach in this arcticle “Windows Commands: Think You Know It All !?). So here is an example of a Windows Task Manager:

windows task manager processes

(click on “Processes” tab to get to the same view)

This is a snapshot of a “clean” Windows that has just started with NO custom applications running (well besides “mspaint.exe” to get a snapshot, which is ultra small). And already you can see there are 6(!) “svchost.exe” processes that take up RAM and will take up a lot of CPU when you start your Internet Browser, e-mail client, MS Office, Games, etc…

But if you ask what these “svchost.exe” processes responsible for, who started them, and who is their owner, Windows will say: “You are an average Windows user, we exposed everything you need through window managers, if you are unhappy, well.. tough luck”. And that happens to most of people who use Windows, because most people who are technical enough will use something like Linux or if budget allows people would go for Mac.

So here is a simple howto, for all people who are still on Windows, on identifying and disabling owners of “svchost.exe”.

To see the owners follow these two simple steps:

  • Go to “Start->Run”
  • Type “cmd” and press “Enter”. Black command screen will pop up. (Don’t be afraid of it – it is your friend :) )
  • In this back command prompt (what people call it) type “tasklist /svc” and press “Enter”

You should see something similar to the picture below:

tasklist /svc - Discover owners of svchost.exe

Now you can actually see the “services” that are hidden behind this meaningless name “svchost.exe”. Well, that is one step forward, but now what?

Now you can go to Windows Service manager and read about each service that is using “svchost.exe”. Let’s do together:

  • Go to “Start->Run”
  • Type “services.mcs” and press “Enter”

windows start->run services.mcs

After you press “Enter”, you should see windows services manager:windows services manager

Browsing through the services you can read their description and decide whether or not you want the service to run.

There is another quicker way to enable/disable services, but without their descriptions:

  • Go to “Start->Run”
  • Type “msconfig” and press Enter

windows start->run msconfig

After pressing “Enter”, you should see “System Configuration Utility”:

msconfig -> System Configuration Utility

Click on “services” tab to get the above view. As you can see you can “check/uncheck” desired services to change their state from “Running” to “Stopped”. But if you unfamiliar with a particular service, read its description first in “windows services manager”, or google it, if it is not there.

Keep up a “clean” and fast Windows system, and good luck!


12
Jan 08

Make Internet Explorer Behave Like a Standard-Compliant Browser

Internet Explorer by W3 Standards

If you have ever done web development, especially web design, you know that almost 50% of all development time goes to make CSS work for all the browsers. And, of course, Internet Explorer is the most non-complaint browser out there. Not only that, but it also lacks backward compatibility – so some features that work in IE6, would either break or what they call it “work differently” in IE7 and of course work another way in IE5.

One way around that would be to write a custom Java Script redirector that would determine what browser the client uses and redirected to the correct CSS. Another one, is to write a custom JavaScript that actually implements the functionality of all different browsers and makes sure everything is W3 compliant no matter what browser the client uses.

The problem in a second approach is that usually developers tend to write that JavaScript file only for a limited set of features that their application (web site) uses, and hence their JavaScript files are hardly reusable by others.

However, recently one of my good friends and developers discovered an open source JavaScript library – ie7-js, which is hosted on code.google.com and has an MIT License. This 70Kb library implements all the W3 features, which means it is highly reusable, and it makes web development to be a much much easier task, since developers do not need to worry about cross browser (at least from IE perspective), as this library supports ALL versions of Internet Explorer (5.0, 6.0, 7.0, 8.0 +). Which makes it universal for any web development project.

Enjoy and reuse the cross-browser wisdom!


2
Jan 08

Slow GMAIL Fix

gmail logo
Since GMAIL changed its user interface from version 1.0 to 2.0, there were a lot of complaints from all over the world, from users of different browsers (Firefox, IE, Safari, Opera, etc..), that their GMAIL works very and very slow.

PROBLEM:

The first and the most frequent slow behavior is discovered by gmail users during login in to their accounts from http://www.gmail.com. This is mostly due to the fact that by default they are using a 2.0 version of Gmail’s User Interface (UI).

It seems that the 2.0 UI was not well “stress tested” and hence it is far from being as scalable as its previous, proven to scale, 1.0 version.

SOLUTION:

Since GMAIL code belongs to GOOGLE and they are actively working on it, it would make sense to trust them with fixing gmail’s 2.0 UI in near future – it is GOOGLE, and it just makes sense to trust them, at least for now it does.

However until that moment comes, when GMAIL 2.0 UI is fixed, here is a quick workaround for the “slow gmail” problem: Instead of going to http://www.gmail.com which brings up 2.0 UI, go to https://mail.google.com/mail/?ui=1 which explicitly tells gmail to use 1.0 version of UI. This will work as fast as before, and will get you back on track with loving gmail. :)

Good luck!


7
Dec 07

X11 Forwarding with SSH

xorg
Here is how to configure X11 forwarding with ssh.
Takes under a minute to configure:

1. On the SERVER: set “X11Forwarding yes” in your

	/etc/ssh/sshd_config

2. On the SERVER in the USER’s home dir:

	sudo rm -f .Xauth*

3. On the client:

	ssh -2 -4 -C -X -v USER@SERVER

4. Once logged in to the SERVER run “xclock” to confirm

done :)