Youget – My take at downloading youtube videos

10 01 2009

hey there,
i recently changed my broadband plan to HOME 500C(BSNL) and get 2am to 8am free download.So i wrote a small shell script to download the videos during free time, can be used with “at” linux command.
please see the code, use it and post comments,
the file:ftp.kunalghosh.net46.net/my_files/youget.sh

kunalghosh





IDEs in LINUX the good bad and the not so ugly !!

4 10 2008

TARGET AUDIENCE:HIGH SCHOOL & UNDER GRADUATE COLLEGE STUDENTS

Well in undergraduate college courses we all are taught to write programs in C/C++ etc we all are very happy and enthusiastic about it but little do we know about the stark realities of real word programming !!
the TURBO C++ IDE used in most colleges and homes by students is though easy ( if i may call it so :) ) to learn doesn’t teach us good project management skills. I know that project management skill like code reuse , splitting the code into many files etc can be done even in this IDE but the point is that it doesn’t enforce it !!

So let me point out a few popular IDEs

(i will not feature CODE::BLOCKS as i myself have not used it fellow developers are welcome to leave comments about the use of CODE::BLOCKS IDE)

that are available to students using linux

( i am a staunch supporter of linux )

1.GEANY

it is a very simple IDE and IDEAL for beginners if you are using UBUNTU you’ll most probably find it in the repositories.

NOTE: it does not have a debugger built in.And has very elementary project management features.

to compile a sample C code

/*————hello world.c————–*/

#include <stdio.h>

int main()

{

printf(“Hello, World !!\n”);

return(0);

}

/*——————————-*/

step 1.click on File->New

step 2.replace all the text with the code given above.

step 3.save the file

step 4.click Build->compile (it should not give any errors)

step 5.click Build->build (it should not give any errors)

step 6.click Build->execute.

Voila !! there you have your output.

Note: incase you are using math.h header file

goto build->set includes & arguments

and change the compile entry to gcc -Wall -c -lm “%f”

and build entry to gcc -Wall -lm “%f”

2.Anjuta

It is a very mature and stable and useful and …. IDE ideal for many practical uses but for now i will explain only how to write and compile a sample C code

1.click on File->New->project

2.forward

3.Project Type select “Generic” under the C tab.

4.give a relevant project name (***without spaces***) and forward

5.destination :select the path of an empty folder.

6.Apply

7.in the files sidebar select “src”->”main.c”

8.you are by default given a sample hello world program

9.click on Build->compile

10.Build->build

11.Build->execute program.

you should be able to see the “Hello world” output in a seperate window

NOTE:in case you are using the math.h header file

in files sidebar select “src”->MakeFile

in that replace the entry on the 86th line

“CPP = gcc -E” with “CPP = gcc -E -lm”

and save the makefile you may need to change the g++

entries if you are using c++ to code.

I am leaving KDEVELOP and NETBEANS for you to practice on.

incase this article of mine has been of any use to you please leave a message.

(you could help me monitarily by taking a survey by clicking the add snippet at the bottom right

when you make an account i will be credited with 1.25USD)

regards and Best of Luck

kunal ghosh

(kunalghosh)





having a tough time adopting LINUX for my C programming :(

7 09 2008

I accept the fact that linux is a brilliant and a very promising platform for every day use ! but I often find it very hard to use it for my elementary C programming needs . I use UBUNTU 8.04 and gcc for compiling my C programs.Also I do understand the fact that GCC is not giving me problems ( which many people donot understand ;-P) it is the header files. I am used to many outdated header files like CONIO.H and DOS.H , Graphics.H and ironically it is still being taught in college :( . Surfing around the web got me some solutions and a set of new problems :( (what the heck !!)

1.Use ncurses.h instead of conio.h for most of my needs i.e getch() etc !

2.Dos.h is obsolete because it was for single user OS and is not suitable for an Multiuser, Multiprocessing OS like LINUX.

3.Graphics.h is obsolete and we are encouraged to use GTK and other APIs for graphics programming which are far more capalbe.

PROBLEMS

1.well not as many as solutions but i cannot find ncurses.h in my installation CAN ANYBODY PLEASE HELP ME OUT WITH THIS !!

well that was my “SUKH DUKH ki BATEIN” and hope i get some solutions to them.

IF you happen to have any solutions please leave entries at my guest book

well i also found this article to be a bit of help :)

http://math.hws.edu/orr/s04/cpsc225/curses.html





check out the link for getting apt-get like power in OPENsuse10.3

14 04 2008

http://www.blogtoplist.com/out.php?id=27192&article=1801715

This is a link to a site called “SathyaSays.com” which has articles on Linux and open Source topics.This particular topic in specific deals with configuring “SMART” a command line package management toolfor openSUSE (i wonder if it works for versions before 10.3). it works pretty much the same way as apt-get in DEBIAN with minor syntax differences.

by

kunal ghosh

(kunalghosh)