LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices



Old

Pinguy OS 11.04 Pre-Alpha Released

Posted 03-15-2011 at 05:24 AM by sridhar11

Pinguy OS an out-of-the-box working operating system for everyone, not just geeks.This OS is for people that have never used Linux before or for people that just want an out-of-the-box working OS without doing all the tweaks and enhancements that everyone seems to do when installing a fresh copy of Ubuntu or other Linux based Distro's.

Full Story
Member
Posted in Uncategorized
Views 601 Comments 0 sridhar11 is offline
Old

template in vim

Posted 03-15-2011 at 03:36 AM by sumeet inani

I found this -> http://code.google.com/p/lh-vim/wiki/muTemplate

I downloaded 4 vimballs namely - lh-map-tools-1.1.2.vba , lh-vim-lib-2.2.4 , searchInRuntime-2.1.8.vba & mu-template-2.2.1.vba
Then opened them in vim & ran
Code:
:source %
Now if you create new file ending in c then it will be filled with

Code:
//========================================================================
  2 /**@file
...
Member
Posted in Uncategorized
Views 320 Comments 0 sumeet inani is offline
Old

usb detection

Posted 03-15-2011 at 03:04 AM by sumeet inani

Code:
sudo lshw | grep -i usb
you will see
Quote:
bus info: usb@1:number_varying_with_port
configuration: driver=usb-storage
Obviously lshw (as super-user) will show all info like serial number,signature,capacity etc. of pendrive
Member
Posted in Uncategorized
Views 343 Comments 0 sumeet inani is offline
Old

my dvdrip

Posted 03-15-2011 at 02:38 AM by sumeet inani
Updated 03-15-2011 at 02:56 AM by sumeet inani

Formula to calculate video bitrate
Code:
bitrate(in kb\s) = (target_size_in_Mbytes - sound_size_in_Mbytes) * 1024 * 1.024 * 8 / length_in_secs
sound_size is obtained from
Code:
mencoder INPUT_video_file -of rawaudio -oac mp3lame -ovc copy  -o sound_size.mp3
rip it
Code:
ffmpeg -i Input_video_file  -s widthxheight -f avi -vcodec mpeg4 -b from_formula -g 300 -bf 2 -acodec libmp3lame -ab 96k dvdrip.avi
If ffmpeg gives 'segmentation error' , 'cannot resample...'...
Member
Posted in Uncategorized
Views 418 Comments 0 sumeet inani is offline
Old

how to compile c program in linux

Posted 03-15-2011 at 02:25 AM by sumeet inani

In windows , I used to run borland C++ compiler which also provides help on all functions defined in various libraries.

In ubuntu 10.04 I do
Code:
gcc c_program.c
It will provide error output , if any. Otherwise produce a.out in current folder which can be executed
Code:
./a.out
In one of my threads I learnt that you should end printf with '\n' so that buffered output is flushed on screen.
You can also use 'fflush(stdout);'...
Member
Posted in Uncategorized
Views 2386 Comments 1 sumeet inani is offline

  



All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration