Learning Linux

Thursday, February 18, 2010

The 25 Most Dangerous Programming Errors

Hugh Pickens writes "The Register reports that experts from some 30 organizations worldwide have compiled 2010's list of the 25 most dangerous programming errors along with a novel way to prevent them: by drafting contracts that hold developers responsible when bugs creep into applications. The 25 flaws are the cause of almost every major cyber attack in recent history, including the ones that recently struck Google and 33 other large companies, as well as breaches suffered by military systems and millions of small business and home users. The top 25 entries are prioritized using inputs from over 20 different organizations, who evaluated each weakness based on prevalence and importance. Interestingly enough the classic buffer overflow ranked 3rd in the list while Cross-site Scripting and SQL Injection are considered the 1-2 punch of security weaknesses in 2010. Security experts say business customers have the means to foster safer products by demanding that vendors follow common-sense safety measures such as verifying that all team members successfully clear a background investigation and be trained in secure programming techniques. 'As a customer, you have the power to influence vendors to provide more secure products by letting them know that security is important to you,' the introduction to the list states and includes a draft contract with the terms customers should request to enable buyers of custom software to make code writers responsible for checking the code and for fixing security flaws before software is delivered."

Sunday, March 1, 2009

cutmp3

get rmp at http://www.puchalla-online.de/cutmp3.html
for all distro
http://www.puchalla-online.de/cutmp3-1.9.4-2.i386.rpm

rpm –ivh cutmp3-1.9.4-2.i386.rpm

replace "ab 192" with "ab 192k"
sudo sed -i 's/-ab 192/-ab 192k/g' /usr/bin/dvd-slideshow

http://slcreator.sourceforge.net/ sl creator - slideshow

Re: How do I install Dvd-slideshow from the subversion repository
Open up a terminal (Applications--Accessories--Terminal) and paste in these commands:
Code:

sudo apt-get updtate
sudo apt-get install subversion
svn co https://svn.sourceforge.net/svnroot/dvd-slideshow dvd-slideshow-svn

That will download it to your home directory under dvd-slideshow-svn. Then just:
Code:

cd dvd-slideshow-svn/
./dvd-slideshow

To run it.

Saturday, February 21, 2009

Multi Session Burner for Linux

Brasero is also known previously as bonfire could burn multisession. Being searching for a solution for burning multisession for quite awhile and I just found out that I could use yum to install it on my fedora. For fedora, just $yum install brasero.

http://www.movingtofreedom.org/2007/04/08/brasero-does-the-cd-burning-job-in-gnome-ubuntu/
http://linuxappfinder.com/package/bonfire

gnome-baker or yum install kb3

Don't know if Nero7 can do it, but Gnome Baker, Brasero, Graveman and a bunch of other programs from the repositories can.

I'm bonfire author and I can confirm that bonfire does multisession for both CD and DVD.
NOTE: nautilus-cd-burner is not used for burning, bonfire relies on its own library.

xcd-roast is the short simple answer to your problems. It will do multisession and it does not require kdelibs.


try neroLINUX. works well apparently.


try neroLINUX. works well apparently.

never had any probs with GnomeBaker

Wednesday, February 18, 2009

Video Edit Using mencoder

mencoder -ss 00:10:10 -endpos 00:02:00 -ovc copy -oac copy "Outlander 2008.avi" -o "test.avi"
mencoder -vf scale -zoom -xy 400 -ovc lavc -lavcopts vcodec=mpeg4 -oac copy "test.avi" -o "t-size.avi"

$mencoder -ovc lavc start.avi end.avi -o complete.avi
mencoder -oac copy -ovc copy part1.avi part2.avi part3.avi -o WHOLE-THING.avi
mencoder -oac copy -ovc copy t*.avi -o tt.avi

mencoder dvd://2 -vf scale -zoom -xy 512 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4

Tuesday, February 17, 2009

Remote Access to Linux Box

Remote desktop access enables you, or another person to view and interact with your desktop environment from another computer system either on the same network or over the internet.

1) Activating Remote Desktop Access
System menu, select Preferences followed by Internet and Network and click on Remote Desktop

vncviewer hostname:0

example ip: 192.168.1.101
vncviewer 192.168.1.101:0

2) Establishing a Secure Remote Desktop Session

ssh -L 5900:localhost:5900 192.168.1.101

if vnc is not installed yet, root$yum install vnc

Monday, February 16, 2009

Assigning shorcuts/functions to keys

Gnome Desktop Environment maps all multimedia keys by default and you can re-assign those with gconf-editor and Keyboard Shortcuts.

In KDE, you have to do it yourself.
Execute xev command and note down keycode of key. Execute xmodmap command to assign whatever application/function you want to invoke.
Code:

xmodmap -e 'keycode 115=Menu'
xmodmap -e 'keycode 174=XF86AudioLowerVolume'
xmodmap -e 'keycode 176=XF86AudioRaiseVolume'
xmodmap -e 'keycode 160=XF86AudioMute'
xmodmap -e 'keycode 162=XF86AudioPlay'
xmodmap -e 'keycode 162=XF86AudioPause'
xmodmap -e 'keycode 161=XF86Calculator'
xmodmap -e 'keycode 178=XF86WWW'
xmodmap -e 'keycode 237=XF86AudioMedia'
xmodmap -e 'keycode 236=XF86Mail'
xmodmap -e 'keycode 235=XF86MyComputer'
xmodmap -e 'keycode 230=XF86Terminal'

Save above code in file, let say, key_map.sh and move it to ~/.kde/env folder. It will be autoexecuted on every login.
Edit any/all shorcuts according to your needs.

Followers