Showing posts from June, 2010

Microsoft Robotics Studio 2008 R3–Its Free

The Microsoft Robotics Developer Studio 2008 R3 (Microsoft RDS) is a Windows-based environment for academic, hobbyist, and commercial developers to easily create robotics applications across a wide variety of hardware. All previous editions of Microsoft RDS 2008 R2 (Express, Standard and Academic) have been combined into one new version, RDS 2008 R3 and can be downloaded at no charge. The Microsoft CCR and DSS Toolkit 2008 R2 is no longer available as a standalone product and is now included for no charge with RDS 2008 R3. RDS 2008 R3 includes a lightweight asynchronous services-oriented runtime, a set of visual authoring and simulation tools, as well as templates, tutorials, and sample code to help you get started. So, all of those who are interested in Robotics development can make use of it Source:

http_proxy in ubuntu

If you are working in the internet with ubuntu, you may need some software to be installed before it is being used actually. If you install ubuntu with a live CD, you will not have VLC Media player, etc. Proxy setup needed to install/update software in ubuntu 1. proxy support for Synaptic package manager Go to Settings-> preferences –> Network Tab, click manual proxy configuration and then set the proxy ip and port 2. proxy support for apt-get Open the file /root/.bashrc and type the following line export http_proxy=http://username:password@host:port/ If your proxy server does not have username/password combination then include the following line export http_proxy=http://host:port/ for example, export http_proxy= (NB: .bashrc file is available for all the users of ubuntu, for example if the Linux user login name is “pradeepkumar” then there will be a .bashrc file at /home/pradeepkumar/ , but setting the http_proxy in those files wil

Logitech Webcam Device driver for Ubuntu 8.04,8.10,9.04,9.10,10.04

I have Logitech C120 Webcam and the driver for windows is quite good and it is perfectly working fine. However, if you are trying to find out the driver for the webcam for ubuntu (most of the recent distros), you can execute the following command.. in the shell prompt # sudo apt-get update # sudo apt-get install luvcview once it is installed, execute the command to capture with the camera. # luvcview This is tested under 9.04,9.10 and 10.04 also. however you can try with other versions also UVC means, USB Video Compatibility. So this driver will be working fine not only with logityech with other products also…. enjoy!!!!

Printing Environmental Variables and CPU Time using C

  To print the environmental variables of Linux using C. To print the system uptime and system idle time. Requirements : GCC compiler Suse Linux (Sun V20Z Linux Server) Theory: Linux provides each running program with an environment . The environment is a collection of variable/value pairs. Both environment variable names and their values are character strings. By convention, environment variable names are spelled in all capital letters. You're probably familiar with several common environment variables already. For instance: USER contains your username. HOME contains the path to your home directory. PATH contains a colon-separated list of directories through which Linux searches for commands you invoke. DISPLAY contains the name and display number of the X Window server on which windows from graphical X Window programs will appear. Program: //Printing the Execution Environment #include <stdio.h> /* The ENVIRON variable contains the environment. */ extern char** environ; i

File Handling using Shell Scripts

File handling using Shell Scripts to prepend a line to a file to develop a temporary file name generator to compare two files Requirements:     Suse Linux, BASH Scripting Program (a) Prepending a line to a file   #!/bin/bash # Add text at beginning of file.   E_NOSUCHFILE=65   read -p "File: " file # -p arg to 'read' displays prompt. if [ ! -e "$file" ]     then # Bail out if no such file.     echo "File $file not found."     exit $E_NOSUCHFILE fi   read -p "Title: " title cat - $file <<<$title > $ echo "Modified file is $" exit 0   (b) to develop a temporary file name generator #!/bin/bash # temp filename generator BASE_STR=`mcookie` # 32-character magic cookie. POS=11 # Arbitrary position in magic cookie string. LEN=5 # Get $LEN consecutive characters. prefix=temp # This is, after all, a "temp" file. # For more &q