Genius, smart, scientist and inventor, worship in the head, ideas factory

phpMyAdmin localhost

Tip: in the $cfg['PmaAbsoluteUri'] variable in config.inc.php file, you should not leave localhost written, because it will not refer to the server localhost, but on the uri from the client. Even if on the left side on the phpMyAdmin page will show databases from the server, on the right frame in the browser it will access your clientside localhost.

jQuery slideviewer modification

I have modified slideViewer 1.2 to hide the numbers strip if there is only one image shown in the gallery. It was displaying the number [1] tile which was not needed. With red color is what I have added:

var counter = 0;
container.find(”ul”).css(”width” , stripViewerWidth);
container.css(”width” , pictWidth);
container.css(”height” , pictHeight);
container.each(function(i)
{

jQuery(this).after(”<div class=’stripTransmitter’ id=’stripTransmitter” + (j) + “‘><ul><\/ul><\/div>”);
jQuery(this).find(”li”).each(
function(n)
{
jQuery(”div#stripTransmitter” + j + ” ul”).append(”<li><a title=’” + jQuery(this).find(”img”).attr(”alt”) + “‘ href=’#'>”+(n+1)+”<\/a><\/li>”);
counter++;
});
if (counter<2) { document.getElementById(”stripTransmitter0″).style.display = ‘none’; }
jQuery(”div#stripTransmitter” + j + ” a”).each(
function(z)
{
jQuery(this).bind(”click”, function()
{
jQuery(this).addClass(”current”).parent().parent().find(”a”).not(jQuery(this)).removeClass(”current”); // wow!
var cnt = -(pictWidth*z);
container.find(”ul”).animate({ left: cnt}, settings.easeTime, settings.easeFunc);
return false;
});
});

The jQuery slideViewer can be found here.
Hope it is of help for others too!

Can’t find hosts file on Windows 7 ?

Here is the tip on how to access your hosts file: sayed short, the path to the hosts file in Vista/Windows 7 is: C:\Windows\Sysnative\Drivers\Etc\hosts. (or better  said: %systemroot%\sysnative\drivers\etc\hosts.). If you do not have the Sysnative folder, create it and respect the capital letter in the beggining: “Sysnative”.
I searched for it in System32, then in SysWOW64, tought the hosts file does not exist anymore in Windows 7, but is a folder redirect trick. More details about accesing hosts file are to be found here.

Thinkpad T61 14.1″ wide 9-cell battery

Officialy 9-cell battery for the Lenovo T61 14.1″ wide display is not available, but you can find compatible replacements made in China. They have a very good price, you can find them on eBay at around 50$. I’ve buyed one and it reports as having SANYO cells inside. In the pictures you can see how it looks installed on my laptop and how much time it takes to charge (approx. 5 hours). From what I’ve read on the forums it should power the laptop for 5 hours if you have onboard Intel Graphics and just 3.5 hours if you have the nVidia Quadro. The genuite 4-cell battery does not stick out of the laptop, the 5-cell and 7-cell are sticking out and this replacement 9-cell sticks out and up too.

How to install Terratec DMX 6Fire drivers in Windows 7

Terratec didn’t yet released the DMX 6Fire USB drivers for Windows7, so installing may be a problem.

dmx-6fire-usb-windows7-drivers-notThe provided executable driver for XP/Vista detects operating system and show a window saying that the OS is unsupported.

Although drivers would have to be available, as said on their website, they are not.

What can be done is to run installer in Compatibility mode. Right-click/Properties on it, Compatibility tab, Run in Vista /SP1/SP2 compatibility.
I installed them like this and the only problem I have is that the Volume controls from the Windows Mixer are not controlling the volume, but all the controls from the DMX 6Fire Panel seem to be working.

In the About box of the 6Fire panel, the detected OS is Media Center Edition  (Build 7600). Before the first restart it was showing what I have selected in Compatibility mode (Vista SP2).

Quotes keys delay problem

Quotes keys delay problem when input language set to English US International.

If you installed the Windows OS and selected “English (United States – International)” as the input language (i think it is by default in Windows 7), you will probably be annoyed by the delay present when pressing the quotes keys [ " ], [ ' ], [`]. This is actually a stupid feature which forces you to double press those symbols or press space key after them for single instances.

To get rid of this crap, just change the input language in the control panel to anything else, for example “English (United States – US)”.

Also notified here: devshed archive

Download Need for Speed Shift Demo

Need for Speed Shift was launched almost a week ago, on 17th of September, 2009.

I must admit that from NFS Porsche until today, except a little Most Wanted, I haven’t played much of those:
Need for Speed™ SHIFT, Need for Speed™ ProStreet, Need for Speed™ SHIFT Mobile, Need for Speed™ Carbon, Need for Speed™ NITRO, Need for Speed™ Most Wanted, Need for Speed™ Undercover, they all seemed glossy-looking garbage to me.

The decline of well-known racing series from Electronic Arts in recent years is not a surprise to fans of the genre. Need for Speed has seen many “Transfigurations” over time, finally reaching a point of maximum for the car’s tuning phenomenon. Another thing is that they given too much attention to the illegal racing underground, promoted especially by the “Fast and Furious”, so something is not quite good under the hood.

NFS SHIFT appears very changed from Undercover, coming with the philosophy of “driver experience”.

You can download the demo version from the Need for Speed website.
There is also a mobile version available.

A Michael Jackson Dance Tribute in Bucharest

Around 200 people gathered to bring an homage to the unique Michael Jackson on his birthday, the 29th of August.

The movement was inspired from the official clip made in Stockholm by BOUNCE & Friends, where more than 300 dancers met, quickly learned the choreography and later that day they performed it.

Be aware of the watchdog!

That is what my colleague said when I told him a server from one of our clients buyed not from us, keeps on restarting after a fixed time interval. And I told him it could be the watchdog function activated in BIOS and the software not installed in the operating system.

Be aware of the.. watch-dog!

The only one who deserves to be voted

We have a new candidate for the presidentials: Remus Cernea.

Remus Cernea

Remus Cernea

Be a star and give him an autograph, helping him to collect the necessary number of signatures.

The legislation in Romania, to protect the actual political class, requires the candidates to collect an enormous number of signatures: 200.000, overcoming the maximum limit admitted by the European Council.

You can find more about him, about the reasons for which he is candidating, about how he can help us, but also about how we can help him: http://remuscernea.ro