Google Entices Job Searchers...

Mysterious banners at a Cambridge, Mass., subway stop have commuters scratching their heads. The signs, challenging passers-by to solve a complicated math problem, are actually a cryptic pitch by Google, which is looking to hire more brainy engineers.

The message at Harvard Square also appears on a billboard in California's Silicon Valley, but Google's name is nowhere to be found on the ads. It simply states:

{first 10-digit prime found in consecutive digits of e}.com

In case you're wondering -- or forgot -- e is the base of the natural system of logarithms, having a numerical value of about 2.71828 (though the number goes on forever).

AlternC Hosting Software

AlternC is a set of user-friendly automatic hosting software suite available in French, English, and Spanish. It features a PHP-based administration interface, shell and Perl scripts that manage server contents. It is easy to install and open-source software based on the Debian GNU/Linux system ('Woody' version), and requires other softwares such as Apache, Postfix, Mailman... It also contains a documented API, so you can customize your web panel quickly and easily.

Frequently used SCREEN reference commands

# open screen session
screen 

# list screen sessions
screen -ls 

# reattach to screen session
screen -r <name of screen session> 

# attach to a not detached session
screen -x <name of screen session> 

# detach from unattached session
screen -d 

Note: ^A = Ctrl-a (Press the "a" key while holding down Control key)

detach from screen session attached to
^A d 

# open another session
^A c 

list the screen windows
^A w 

# print screen and save a hardcopy
^A h 

# go to next window
^A n 

# go to previous window
^A p

# lock screen
^A x

Linspire Desktop

Interstesting article about Linux - no longer for techies...

http://www.linuxplanet.com/linuxplanet/reviews/5546/1/

Also, recently NRP.org featured the ABCs of Linux mentioning Linspire on 8-27-04, Talk of the Nation .

http://www.npr.org/features/feature.php?wfId=3875409

Linspire, was originally named Lindows (Linux + Windows) and had Microsoft chasing them which eventually resulted in a name change.

Some frequently used MySQL commands for reference...

# Create User
CREATE USER user [IDENTIFIED BY [PASSWORD] 'password'];

# Create Database
$ mysqladmin -u <username> -p create <nameOfDatabase>

# Drop/Delete Database
$ mysqladmin -u <username> -p drop <nameOfDatabase>

# Check Process List
$ mysqladmin -u root -p proc

# Check Status at 5 seconds interval
$ mysqladmin -u root -p -i 5 status

# Dump Database
$ mysqldump --opt -u <username> -h <hostname> <nameOfDatabase> -p > /path/to/file    

$ mysqldump --opt -u <username> -h <hostname> --all-databases -p > /path/to/file 

# Import Database
$ mysql -h <host> -u <username> <nameOfDatabase> -p < /path/to/file

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON <dbname>.* TO <dbuser@localhost> [IDENTIFIED BY '<password>'];

REVOKE ALL ON <dbname> FROM <dbuser@localhost>;

CREATE DATABASE <dbname>;

DROP DATABASE <dbname>;

DROP TABLE <tablename1[, table2, table3...]>;

# To activate new permissions
FLUSH PRIVILEGES; 

USE <nameOfDatabase>;

SHOW DATABASES;

# show tables begining with the prefix
SHOW TABLES LIKE 'prefix%'; 

SELECT * FROM <nameOfTable>;

DESCRIBE <nameOfTable>;

INSERT INTO <table> <username, password, name1, name2, ...> VALUES ('user', password('pass'), 'value1', 'value2' ...);

CREATE TABLE <newtable> AS SELECT DISTINCT <field> FROM <oldtable>;

INSERT INTO <database.table> SELECT * FROM <database.table> WHERE <field> = <value>;

ALTER TABLE <tableOldName> RENAME <tableNewName>;

UPDATE <tableName> SET <field1> = <newValue> [WHERE <field2> = <currentValue>];

Technical Reference eLibrary

Came across this great technical reference elibrary while doing some code searches on google.

Please share your findings...

How do I find the dynamically allocated IP address on a remote bridge ->Linux

I'm sure it's obvious to someone.

How to determine the application listening to a particular port

For example, I run nmap and find that port 712 is open:

712/tcp    open        unknown

But it's easily identified:

# fuser 712/tcp
712/tcp:  2098

# ps -fp 2098
     UID    PID    PPID  C    STIME TTY    TIME   CMD
    root   22098   8999  0    Aug18 ?      22:33  /usr/etc/customd

# man -k customd
custom (1M)           - Custom daemon

Download images from Sony Cyber-shot DSC-F88 to Fedora Linux

Here is a tip/hint that could hopefully help others having some difficulty with cameras that support "PTP".

PTP is the acronym for the "Picture Transfer Protocol". That protocol has a strong standards basis, in ISO and in terms of the USB Still Imaging class specification. Many upcoming digital cameras should support it.

The vision is that there will be enough new PTP-enabled cameras that it'll be much easier for you to just use them. You won't need to install new software and deal with its quirks each time you borrow or buy a new camera. Instead, you will be able to acquire images (and other media objects), reprocess them, (cropping, turning them right side up, signing them, applying steganograpy or other image transforms, etc.) and share them (printing, web publishing, etc) using whatever tools you prefer.

Enough with the PTP jabber... and here is how:

1. Install gPhoto, a free ready to use set of digital camera software applications.
2. Plug in your camera which supports PTP via USB.
3. Change to PTP mode instead of normal usb data transfer.
4. Run the command, `gphoto2 --get-all-files` to download your images.
5. It's as easy as that !!

Installing Firefox Web Browser and some Essential Plugins for Linux...

Here are some notes on installing Firefox and plugins for Flash, Java and Mplayerplug-in:

Installing Firefox:

  1. Download the latest Firefox installer via http://www.mozilla.org/products/firefox/
  2. untar the archive, `tar -xvzf firefox-x.x.x-x-linux-gtk2+xft-installer.tar.gz`
  3. `cd firefox-installer`
  4. Login as root before doing the install, `su`
  5. Run the installer, `./firefox-installer`
  6. Change the destination install directory to be "/usr/lib/firefox"
  7. Create a Launcher on your desktop after installation.

Note: All of the .so plugin files go to the "/usr/lib/firefox/plugins" folder...

Comment