Friday, June 18, 2010

install deb packages in terminal, Ubuntu

Open terminal & write the following :
sudo dpkg -i

Sunday, June 13, 2010

Trash bin on Ubuntu Desktop

Run Terminal & write the following command to run the Configuration Editor :

  • $ sudo gconf-editor

Then go to apps/nautilus/desktop and select 'trash_icon_visible'.

Sunday, June 06, 2010

Take a snapshot of an area on your Desktop

This command ran in the terminal allows you to select an area on the desktop and have a snapshot of it ... very handy for making guides :-)

  • user@computer:~$ import test.png
After this you will have a file called test.png created on your desktop which contains a snapshot of selected area.

Chrome 5.0 ready for Linux

My tips about browsers for Linux, is Google Chrome. I love Firefox myself, but Chrome for Linux is perfect. While Firefox is pretty slow under Linux, Chrome is a fast reliable tools for your everyday surfing. This doesn't mean that you should throw away Firefox though, because Chrome still has its downsides. When it comes to running certificated Java applications on Internet banks still Chrome is not working properly :-(, but in everyother place, it works just perfect ...


Latest News : Chrome 5.0 is ready for Linux :
Source : About.com

The web browser Chrome, developed by Google, has finally been released as an official stable release for Linux. Google Chrome 5.0 for Linux is described by the developers as solid, high performance, and fully-featured.
Highlights of the latest version include HTML 5 functionality, such as geolocation programming interfaces, application caching, and drag-and-drop capability. Using Google accounts, you can now copy browser preferences to other machines, so you don't have to manually customize your Chrome browser on every computer you are using.

How is Chrome different from other browsers? The first item would be speed. Like the Google search engine, Chrome has been designed for speed. This shows for example in the start-up time, which is several times shorter than that of Firefox.

Another interesting feature is the "incognito" mode, which allows you to surf the Internet without the browser tracking where you are going or what you are doing. That is, it won't save your browsing history.

Chrome tries to integrate the Internet with your PC by making it easy to add short-cuts to web sites to your desktop. Not surprisingly, web search is tightly integrated as well, so that you can alternatively enter a URL or a search phrase in the address field on the "Omnibar".

However you are not limited to using Google as search engine. By typing another common search tool, such as Yahoo or Live Search in front of your search phrase you are engaging that web service instead.

Another one of Chrome's novel features is "tab isolation". This means, if the web page in one particular tab causes trouble or crashes, it does not affect the other tabs. Furthermore, you can monitor CPU and memory usage of each tab and kill it if its requirements get out of hand. You can access the Chrome task manager through the "page" menu to the right of the search/address field. From there you would go to Developer and select Task manager.

Changing your Desktop on your local linux computer to another directory


The default location of your Desktop folder is ~/Desktop. You might want to have it pointing to another location(online home directory forexample). Run the terminal and run the follwoing command :
gedit ~/.config/user-dirs.dirs
Find : XDG_DESKTOP_DIR. Change it to the right path that you like: 

XDG_DESKTOP_DIR="$HOME/Desktop" 
change it to :
XDG_DESKTOP_DIR="$HOME/Test/NewDesktop"


After changing it to the right address, again run the follwoing command in the terminal :
killall nautilus 
OR simply log off and log in again.

Change your desktop to your home directory

to change your simple default desktop to your homedir :
  1. open gconf-editor
  2. browse to /apps/nautilus/preferences entry in it
  3. set desktop_is_home_dir flag

Thursday, May 13, 2010

Virtual drive in Ubuntu

You do not need a virtual "drive". ISOs are supported directly by the Linux kernel itself. Google Search Result.

Monday, May 10, 2010

Create your own channel in IRC


You can easily become the operator of your own IRC channel. You can create your own channel by typing /join #channel-name where the channel name doesn't already exist on that network, as in:
/join funfunfun
When you create a channel, you are automatically made the operator of the channel. You can then invite friends across theInternet to join the channel, or wait and see if others join of their own accord.
When you create a channel, you should use the /topic command to specify a one sentence description of the channel's topic. This topic will be displayed to anybody executing a /list command, and may be your best chance to get people to investigate the channel.
/topic #quantum This channel is about einstein
If you need to sign off the channel, or wish to give up operator status, you can assign operator status to someone else with the/op command. You can make more than one person an operator if you want:
/op ivan
/op pierre
/op jane
The /mode command lets you designate a channel that you have created to be secret or private.
/mode #mychannel +s
/mode #mychannel +p
As an operator, you can kick people off.
/kick stupidperson
Source : http://www.livinginternet.com/r/ra_create.htm

Saturday, May 08, 2010

Black box vs. White box testing


Black box testing
  • takes an external perspective of the test object to derive test cases. These tests can be functional or non-functional, though usually functional. The test designer selects valid and invalid input and determines the correct output. There is no knowledge of the test object's internal structure.
White box testing
  • uses an internal perspective of the system to design test cases based on internal structure. It requires programming skills to identify all paths through the software. The tester chooses test case inputs to exercise paths through the code and determines the appropriate outputs. In electrical hardware testing, every node in a circuit may be probed and measured; an example is in-circuit testing (ICT).

Sunday, May 02, 2010

Getting your last session in Chrome

Under setting, choose "Options", then the "Basics" tab, and under "On startup:", you should see a choice "Restore the pages that were open last".

Tuesday, April 20, 2010

Setting default email program at windows xp

  • Right-click on the Start 
  • Select Properties 
  • Click on Customize... next to the selected Start menu. At the bottom, you see E-mail and you can choose the e-mail program 
  • you are done & just click OK

Killing programs from CMD

Killing programs from CMD in Windows without opening taks manager graphically :

C:\>Tasklist
LIST OVER ALL PROGRAMS
C:\> tskill notepad(or program ID, e.g. 1476)

Sunday, April 18, 2010

What is CopyGator ?

What is CopyGator ?

This is a free service designed to monitor your RSS feed and find where your content has been republished in the blogosphere. We automatically notify you when a new post of yours is copied to another feed, we also build an overview page you can view to see how/when/where your content is being duplicated, quoted or plagiarized. This is an entirely free service and is powered by the feed spidering power of ://URLFAN. Learn more on how the CopyGator does what he does. or view an example of our content overview page for Gizmodo.com

Wednesday, April 14, 2010

Sunday, April 11, 2010

Sticky Notes, Ubuntu Desktop


Ubuntu comes in with an integrated Sticky Notes. You just need to right click the top or bottom bar and pick add to panel and add the sticky notes icon will be where you want it. 

After it you need to right click on the icon to make new and you can stick them to the screen. The cool thing about it is that you can go into the prefrences and ask the sticky notes to leave the notes on whichever desktop(Linux can have several desktops) that you created it(my case I have one for coding, one for surfing and one for my robotics stuffs).

* This note is written according to Gnome 2.28.1

Teamviewer, for Linux

Teamviewer can be run under Linux as well. This is not supported by Teamviewer, but there are ways around it. I have been using Teamviewer now for a while to administrate my/my friends computers and the result is just perfect. The program does not need any configuration at all and can be installed and used easily. More than all it is FREE of charge for non commercial use and as it doesn't need any setup or any other configuration, it is much better than the MS RDP(Remote Desktop Protocol, Microsoft).

The program is supported under MS Windows and Mac OSX, but there are ways around it to use it at Linux. The trick is to use a program called Wine which lets one to use applications developed for MS Windows under semi Unix operating systems(Linux). I have tested Teamviewer 5.0 with Wine 1.0.1 and the result is that things work one way. You can connect/administrate/send and receive files from your Linux machine to the target computer but not vice versa. I have tried from Ubuntu 9.10 Linux to MS Windows XP and Win 7.

Teamviewer, a better solution instead of MS remote desktop




TeamViewer is a computer software package for remote control, desktop sharing, and file transfer between computers. The software operates with both Microsoft WindowsMac OS X and iPhone(and Linux with help of Wine), and is able to function while the computers are protected by firewalls and NAT proxy. It is also possible to access a machine running Teamviewer with a web browser.While the main focus of the application is to facilitate desktop support and remote control of computers, collaboration and presentation features are included within the package.
TeamViewer GmbH was founded in 2005 in Uhingen, Germany. According to the company's press releases, TeamViewer has over 60 million users operating in 50 countries worldwide.
-------
*My comment : The real benefit in Teamviewer is that you can use it overall. You don't need any configuration, port forwarding or anything at all. You even do not need a static IP. You just need to install Teamviewer on both sides and you are done. You can make secure sessions sending, receiving files and controlling/fixing the target computer. Read my post about Teamviewer at Linux if you are wondering how to get it to work under Linux.

Thursday, April 08, 2010

Foreach statement C# & Java

Java : 


double[] ar = {1.2, 3.0, 0.8};
int sum = 0;
for (double d : ar) {  // d gets successively each value in ar.
    sum += d;
}



C# :
using System;
class ForEachLoop
{
    public static void Main()
    {
        string[] names = {"Cheryl", "Joe", "Matt", "Robert"};
        foreach
 (string person in names)
        {
            Console.WriteLine("{0} ", person);
        }
    }
}

Wednesday, April 07, 2010

How to open Gnome terminal in full screen mode


If you are wondering how to have your Gnome terminal opened in full screen mode as default follow these steps.

Make a shortcut on your top panel.
Right click on the Terminal icon up there and click properties.
Then in the command box instead of just "gnome-terminal" type the following :
gnome-terminal --full-screen