Translate

Image of Android Wireless Application Development
Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of Operating System Concepts
Image of Beginning Google Maps API 3

Linux Shell Script to Download YouTube Videos

Here is a bash shell script which downloads a YouTube video and plays it using GNOME’s Totem movie player which is based on the GStreamer open source multimedia framework. #!/bin/bash # # Author: Finnbarr P. Murphy # Date: July 27th, 2010 # # Copyright (c) Finnbarr P. Murphy 2010 # echo -n "Enter the YouTube ID to copy: " read ID [[ -z $ID ]] && exit 1 TMP=/var/tmp/yt.$$ #QUIET="-q" QUIET="–progress=bar" WGET=/usr/bin/wget SED=/bin/sed TR=/usr/bin/tr $WGET ${QUIET} -O ${TMP} "http://www.youtube.com/watch?v=${ID}" [[ $? > 0 ]] && exit 2 VIDEOFILE=$($SED -n "/fmt_url_map/{s/[\’\"\|]/\n/g;p}" ${TMP} | \ $SED -n ‘/^fmt_url_map/,/videoplayback/p’ | \ $SED -e

Localizing Korn Shell Scripts

In response to recent messages on the ast-users mailing list asking for a how-to or FAQ on how to localize Korn Shell (ksh93) shell scripts, I decided to write this post as there is a paucity of good information available on the Internet or in print on this particular topic. First of all what is meant by localization? Internationalization (internationalisation, I18N) and localization (localisation, L12N) are means of adapting software applications to different languages and cultural differences. Internationalization is the process of designing and engineering a software application so that it can readily support various languages and regions differences without

Installing Sybase ASE 15.5 on Fedora 13

Recently I wanted to use Sybase ASE (Adaptive Server Enterprise) on GNU/Linux to test some DDL (Data Definition Language) scripts I had written. I decided to put Sybase ASE on a system that is running 64-bit Fedora 13. In this post I will walk you through what you need to know in order to successfully install the product and get it operational on both 32-bit and 64-bit Fedora 13. Sybase, like Oracle and other DBMSs, requires a separate user. Therefore create a new user named sybase whose home directory is /opt/sybase and who is a member of the default users