"; */ ?>

tutorials


9
Mar 08

Get Higher-Resolution YouTube Videos with a URL Hack

YouTube High Resolution URL HackYouTube announced in November that they would be testing out encoding videos at higher resolutions (and with higher-quality audio encoding). Now it appears that a small sampling of uploaded videos can already be seen at their higher resolutions, simply by adding a little tag to the end of the video’s URL. To get a noticeable bump in resolution on some clips, add &fmt=6 to the end of the address line. The trick, according to YouTube watchers, seems to work primarily with newer videos, and bumps the resolution from 320×240 to 448×336. Add &fmt=18 to the end of the URL, and you might get an MP4-encoded version, with better audio and a 480×360 resolution. Update: Now the Better YouTube Firefox extension includes this feature.


original source – “Google Systems
article source – “lifehacker.com


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!


16
Jan 08

How to Setup a Hookah

how to set up hookah. mya - paragonIt is quite a challenge to setup a hookah (shisha/ sheesha/ water pipe/ nargeela/ nargile/ narghile/ nargileh/ argeela/ arghileh/ okka/ kalyan/ ghelyoon/ ghalyan/ goza…) correctly – in a way that it will produce a maximum taste, smoke, length of the session and overall human pleasure. Biggest problems usually come from a lack of experience. But there are very and ultra experienced Earth Beings that can help.

Today I had a pleasure to talk to Kyle from Hookah-Shisha.com who is one of ultra hookah people. Kyle was very forthcoming and gladly shared the correct recipe of preparing the hookah. Here, I give the microphone to Kyle:

“Regarding your taste question, I’ll walk you through how I load my bowls and see if this helps a bit. Generally, you really want to use as high a quality shisha as possible, as this really plays a large role in the overall taste that you experience. So, assuming your hookah is airtight and you have clean water in the base to just above the bottom of the downstem (about 1″ above the bottom of the downstem is good), you should be able to proceed with loading the bowl as I describe below.

Start by breaking the shisha into small clumps and drop them into the bowl loosely. I prefer to load my bowl to just below the rim, so the tobacco will not be bulging or overflowing when you put the foil on. Try not to pack the shisha into the bowl too much. A little packing is okay, but you want the bowl to breathe well so all the air will be getting to the shisha. I put the foil on, shiny side down, and make sure it’s pulled nice and taught over the rim of the bowl. I take extra time to smooth out the foil that’s been folded over the side of the bowl so everything is nice and clean and as air-tight as possible.

I then poke a whole bunch of really small holes using something fine like a safety pin, or a really sharp toothpick or something of the sort. The idea is to have as many holes as possible so the foil will breathe really well, but make sure the holes are not so big that ash falls through them as your coals burn. Once you have the holes poked, you should take the bowl and put your mouth over the opening at the bottom, blowing through the tobacco and foil, then gently sucking back in. You’ll want to keep your hand tight over the rim of the bowl while doing this so your foil stays nice and tight. This is a pretty important part of the process, as it helps you determine how well the bowl breathes. The better the airflow, the better your smoke quality.

At this point it’s time to put the bowl on the hookah and get your coals ready (if you haven’t already had them warming up). When using the Golden Coals, I usually suggest using 2 x 33mm coals or 1 x 40mm coal. Shisha varies from brand to brand as to the amount of coal needed to get a perfect smoke, and you will need to experiment with the amount of coal you use. In general, I say that a little more coal is a little better than too little… and if the flavor gets harsh and makes you cough, that’s an indication that the heat is too strong and the shisha is burning. At that point, you want to take the coal off the bowl and let the shisha rest a little. You should also be moving the coal around the outside of the bowl as you’re smoking.. maybe move it every 10 or 15 minutes.

As long as you’re following the instructions above, you’ll be loading your bowl properly and your hookah should smoke well.”

Thank you Kyle,

Happy Hooking Everybody! :)


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 :)