daniel

This user hasn't shared any biographical information

Homepage: http://stinebaugh.info


Posts by daniel

Talking MP3 Players!

So I have recently purchased a sanza Fuze but my mom’s already taken it for her to listen to some audible books, and I’ve had it for less then 2 weeks…

Yea that didn’t take long!

So I stumbled onto this site Talking MP3 Players and I had to give it a shot.

I’ve played a bit with the older rockbox on a series 1 ipod so needless to say it was a while ago, and I had forgotton about rockbox and what players it supported (and if your wondering why I chose the sanza fuze, it’s because I run linux and finding an MP3 player that’s supported is harder then you think!) then I saw that they now also support Talking directory and song titles!

Wait, OMG! An mp3 player that even the blind could use? This is a great idea! So to support them (and get me a new mp3 player!) I’ve ordered a new sanza fuze 8gb and am anxiously awaiting it’s arrival with rockbox and voicebox support already installed and configured! SWEET! I’ll post some pics of it when I get it unwrapped!

death-cleaned

Spellcheck using the commandline

If your anything like myself, I find I use google as a spellchecker more often then anything else, however having to wait for firefox to load when I’m trying to type in irc and don’t know the spelling of a word takes up alot of my time and slows the conversation down as well.

A great post from Stormdragon has shown me a great and easy way to do this using a program called hunspell.

Following most of his steps you can do this as well on any debian / Ubuntu / Linux Mint pc.

First install hunspell and it’s english library.

  1. sudo apt-get install hunspell hunspell-en-us

then cd over to your ~/bin/ directory

  1. cd ~/bin/

create and edit a file named “spellcheck”

  1. sudo touch spellcheck
  2. sudo gedit spellcheck

Enter in the following script

  1. #!/bin/bash
  2. echo “$@| hunspell
  3. exit 0

then save and close gedit.

Now we need to make the file executable

  1. sudo chmod 755 spellcheck

Then just close and reopen your terminal of choice (I prefer terminator myself) and try out your new spellchecker!

  1. spellcheck whatever you cant spell

Correctly spelled words will just respond with an “*” if a word is misspelled it will offer you suggestions! Just that easy! Yea BASH!

Simplify extracting files in the commandline with this alias for your .bashrc file.

This is a straight forward example of using bash script’s to make everyday use so much easier.

Open your .bashrc file in your favorite editor and add this below the alias section.

  1. extract () {
  2.   if [ -f $1 ] ; then
  3.     case $1 in
  4.           *.tar.bz2)     tar xvjf $1    ;;
  5.           *.tar.gz)      tar xvzf $1    ;;
  6.           *.bz2)         bunzip2 $1     ;;
  7.           *.rar)         rar x $1       ;;
  8.           *.gz)          gunzip $1      ;;
  9.           *.tar)         tar xvf $1     ;;
  10.           *.tbz2)        tar xvjf $1    ;;
  11.           *.zip)         unzip $1       ;;
  12.           *.Z)           uncompress $1  ;;
  13.           *.7z)          7z x $1        ;;
  14.           *)             echo "don't know how to extract '%1'…"
  15.       esac
  16.     else
  17.       echo "'$1' is not a valid file!"
  18.     fi
  19. }

Now when you want to extract an archive in the terminal, just type in “extract filename” obviously replacing filename with your actual filename.extention and hit enter :)

Isn’t linux beautiful!?!

Record your soundcard using sox and this script :)

First we install sox.

  1. sudo apt-get install sox

Next we build the recording script. I can’t remember where I got this from but it’s a great script!
In your home directory create a new blank file and open it with gedit or the likes.

  1. #!/bin/bash
  2.  
  3. TIME=$(date +%d-%b-%y_%H%M-%Z)
  4.  
  5. # Get sink monitor:
  6. MONITOR=$(pactl list | grep -A2 '^Source #' | \
  7.     grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1)
  8.  
  9. # Record it raw, and convert to a wav
  10. echo "Recording. Ctrl-C or close window to stop"
  11. parec -d "$MONITOR" | sox -t raw -r 44100 -sLb 16 -c 2 – ~/Music/Recordings/Taped_Recording_$TIME.wav

Of course you can set your own recording directory if you like.

Save and name the file.

Right click on it and choose “properties” then go to the permissions tab and check the box that says “Allow executing file as program” and let’s add a section in our .bashrc file.

Open .bashrc with gedit (or the likes) and add the following to your alias section:

  1. alias tape="~/Documents/tape-recorder.sh"

Now when you have something playing through your soundcard that you’ld like to record, just open a terminal window and type in “tape” and it will begin recording!

download

Ninite make’s re-installing a plethora of apps a breeze!

(windows only)

Have you recently re-installed windows yet again, just to have to individually install all those apps you need and use every day all over again?

You need to go and check out ninite.com your one stop shop for most of the apps and codecs you’ll be needing with only one installer needed, as it’s automated the install for quite a few of your favorite apps.

Just visit the website, check in the boxes for the apps you want to download and install, and click the go button on the bottom of the page to get your own customized installer.

It will automatically install (without common annoying things like toolbars) the proper app for your system (32 or 64 bit) and in no time your system is back where you wanted it to be!

Awesome!