If you have to work on MS Windows 7 / 8 with Internet Explorer for the reason websites you're forced to work are only properly working under IE. This is common in big companies like my employer Hewlett Packard or IBM for instance. You certainly have been annoyed by default Internet Explorer 7 / Internet Explorer 8 or EI 9 behaviour to open each new link in separate Windows. By default normal browsers like Opera, Firefox and Google Chrome does not behave in such irritating ways but open each new link in separate tab. If you're like me used to work most of your life with Firefox, this IE behavior can quickly drive you "crazy" so you will look for fastly to change that abnormal browser actions. What makes things with default IE behavior even more messy is the fact that there are sites which automatically open in Separate tab (for they were javascripted) to do so and ones that open in new Window making the whole browsing experience a "pure windows hell".
Thanks God IE new window page popups can be easily changed
1. Open Internet Explorer and Click on Tools -> Internet Options
(Note: if your version of Internet Explorer is hiding menus press Alt key to make it visualize menus) 2. In General (tab) select on (Change how webpage is displayed in Tabs) Settings
3. Under field When a popup is encountered: Choose radio button of ( Always Open Pop-ups in new tab )
After Apply and OK press finally Pages will start opening in a "human readable" way 🙂 in new Tabs. Hope this hint helps someone. Enjoy 🙂
I've recently wanted to use PHP's embedded system(""); – external command execute function in order to use ls + wc to calculate the number of files stored in a directory. I know many would argue, this is not a good practice and from a performance view point it is absolutely bad idea. However as I was lazy to code ti in PHP, I used the below line of code to do the task:
<?
echo "Hello, ";
$line_count = system("ls -1 /dir/|wc -l");
echo "File count in /dir is $line_count \n";
?>
This example worked fine for me to calculate the number of files in my /dir, but unfortunately the execution output was also visialized in the browser. It seems this is some kind of default behaviour in both libphp and php cli. I didn't liked the behaviour so I checked online for a solution to prevent the system(); from printing its output.
What I found as a recommendations on many pages is instead of system(); to prevent command execution output one should use exec();. Therefore I used instead of my above code:
<?
echo "Hello, ";
$line_count = exec("ls -1 /dir/|wc -l");
echo "File count in /dir is $line_count \n";
?>
By the way insetad of using exec();, it is also possible to just use ` (backtick) – in same way like in bash scripting's “.
Hence the above code can be also written for short like this:
<?
echo "Hello, ";
$line_count = `ls -1 /dir/|wc -l`;
echo "File count in /dir is $line_count \n";
?>
The default picture viewer on Xubuntu's XFCE is risterroro. Risterroro is quite lightweight, but anyways is lacking even basic functionality with reading a number of pictures in a directory and showing, them one by one lacks any picture automated slider. The lack of picture back/forward functionality makes picture viewing very inconvenient on those Linux distro.
Thanksfully this kind of unconfortable default behaviour on Xubuntu can easily be changed to use a handy picture viewer program called gpicviewxubuntu-linux:~# apt-get install --yes gpicview
Gpicview is a good minimalistic program which has all the functionality of the default GNOME picture viewer program eog – (eye of the Gnome). If you're aaccustomed to GNOME's eog you can always install and use eog instead 🙂
The day before yesterday, I was in a pretty bad mood and decided to went out. I went to the Mino’s coffee and accidently it happened that Geri a friend of mine had a birthday it was refreshing to spend some timewith real people even thought I thought about all’s behaviour and particularly “how hipocrity they are”.I drinked two glasses of wine for which Miro (Geri’s husband) said it smells like socks. Good heavens my nose was stalled. Yesterday I was out for a coffee with Lily :).
The weekend was a sort of peaceful.Servers and everything runs fine thanks to the Lord! (ofcourse). I’ll end the post with a quote fromthe bible through the small program called “verse”.
Here is the quote” “For the eyes of the LORD run to and fro throughout the whole earth, to show himself strong in the behalf of them whose heart is perfect toward him…” II Chronicles 16:9 :)END—–
By default latest Debian GDM does not provide an automatic way to login using user AVATARS (like Windows does). This is pretty strange, especially if you compare to Ubuntu and many other Linux distributions which already has support for AVATAR login via GDM
The reason for this is that currently Debian is shipped with old version of gdm2 and this gdm version does not have support for clickable login avatars. Debian looks by default like this:
Thanksfully this non-user friendly GNOME login screen behaviour can be changed by simply installing gdm3
root@debian:~# apt-get --yes install gdm3
...
This will remove the old gdm installed package as well as fast-user-switch-applet and install the gdm3.
Having installed the gdm3 with configured a background will look like so:
I was quite stunned that gdm3 does not have included support for themes . As far as I've spoken with some ppl in irc.freenode #gnome the reason for this oddity is it crashed a lot when a theme is configred.
By default the gdm2 themes are provided by a package called gdm-themes, since gdm3 does not support themes (yet), the package gdm3-themes is missing.
I had to create a number of Facebook and Twitter accounts for one of the companies where I am employed. As I had to put Avatars to each and every new account. I therefore had to resize the company logos to fit the to the avatar dimensions.. It took me a bit of research until I found the proper picture dimensions. Here are the dimensions:
For facebook page Avatar the good picture width / height dimensions is a square like:
151x151 pixels
If however you prefer to have a sky scraper picture in Facebook, this is possible as thumbnail pictures up to 180×540 w/h pixels are showing up in FB. At most cases FaceBook automatically resizes the uploaded picture and generates a thumbnail which in most pictures looks okay, however in some odd picture dimensions the picture preview might be messy, so its better to ship the profile pic in standard square size like 151×151, 256×256, 313×313 etc.
For Twitter page Avatar the fixed picture width / height dimensions is:
73x73 pixels
In Twitter again the avatar picture should be a square like, to have twitter during upload automatically resize and make a good looking pic thumbnail. If some picture with a non square dimensions is uploaded as an Avatar for twitter account usually, twitter's pic auto resize server side program chops parts of the picture. This is not a bug but expected behaviour. In Twitter another requirement is that the uploaded avatar image does not exceed 700kb, trying to puload a picture over 700k fails.
In both Facebook and Twitter the uploaded Avatar logo should be in format JPEG, GIF or PNG . To resize the company logo pictures for FB and Twitter, I used GIMP 's:
Image -> Scale Image
menus.
I've red some people claiming the size of the Avatar logo in Facebook could have some impact in terms of e-marketing, but I'm not sure if this is a fact or some false rumour. Anyways it is sure that a wide sky scraper like picture allows you to show more even from the profile and maybe through the picture have larger influence over the audience.
If you're using Debian GNU/Linux wheezy/sid, you have already figured out GNOME3 settings to start GNOME in Classic mode (like in GNOME 2), starts gnome in a mode where the desktop is not showing the usual Computer, Home, Trash etc.
Besides that in that strange back-compitability Classic GNOME mode its impossible to add any program as a link in desktop like in the good old GNOME 2.
Thanksfully this abusive behaviour of the backwards compitability mode is easily fixable by two simple steps, here they are:
1. Install gnome-tweak-tool – (Tool to adjust advanced configuration settings for GNOME
root@debian:~# apt-get install gnome-tweak-tool
2. Start gnome-tweak tool
Press ALT+F2 and run gnome-tweak-tool or run it via xterm / gnome-terminal:
moonman@Moon:~$ gnome-tweak-tool
Change in Desktop, Have file manager handle the desktop the settings to ON
Once the Screenshot Handle Desktop is set to ON, further drag and dropping any application to the Desktop will be working. Something really irritating is that launching applications in GNOME 3 does not work properly if you just press ALT+F2 and type in lets say gnome-terminal , to work around this weirdity you will have to install gnome-shell package.
I'm managing few wordpress installations which requires me to type in: Hostname , FTP Username and FTP Password , every single time a plugin update is issued and I want to upgrade to the new version. Below is a screenshot of this annoying behaviour:
As you can see in the above screenshot, there is no way through Update Plugins web interface to store the password permanently. Hence the only option to store it permanently is to manually edit wp-config.php (file located in wordpress docroot, e.g. /path/to/wordpress/wp-config.php , inside the file find the line:
Change the above defines: path/to/wordpress/ – with your wordpress location directory. Username and Password – with your respective FTP username and password. The localhost
That's all, from now onwards the User/Password prompt will not appear anymore. Consider there is a security downside of storing the FTP User/Pass in wp-config.php , if someone is able to intrude the wordpress install and access the documentroot of the wordpress install he we'll be able to obtain the ftp user/pass and log in the server directly via FTP protocol.