Home
LiveJournal for Jim Turner.

View:User Info.
View:Friends.
View:Calendar.
View:Website (My Website).
View:Memories.
You're looking at the latest 20 entries. Missed some entries? Then simply jump back 20 entries.

Thursday, November 26th, 2009

Subject:The Animated Capitalist
Time:11:38 pm.
This carton, circa. 1948, is very prophetic and would probably NEVER be done today, but should probably be aired EVERY Saturday morning!

For your viewing pleasure:

Comments: Add Your Own.

Tuesday, November 10th, 2009

Subject:DBD::LDAP v.0.20 released
Time:5:29 am.
DBD::LDAP v. 0.20 is hereby released and is now making it's way around CPAN. This release, among other things, closes bug#50709 (rt.cpan.org).

Changes )
Comments: Add Your Own.

Monday, November 9th, 2009

Subject:Twenty years of FREEDOM - We will NEVER FORGET!
Time:2:11 pm.
Mood: nostalgic.
For those of us who remember, those of us who wish to remember, and those who need a gentle reminder:


Comments: Add Your Own.

Sunday, November 8th, 2009

Time:1:52 am.
This strip rocks!



(http://xkcd.com/224/)
Comments: Add Your Own.

Thursday, September 17th, 2009

Subject:Perl Module Updates
Time:5:27 pm.
I am happy to announce the release of updates to 2 CPAN Perl modules: DBD::LDAP v. 0.10 (bugfix release) and Net::xFTP v0.3b1 (rewritten to be modular making addition of new protocols easier). I've also added 3 new protocols to Net::xFTP: Net::SFTP::Foreign, Net::OpenSSH, and Net::FSP. There's also a corresponding update to ptkftp (Perl/Tk gui wrapper for Net::xFTP) for compatability and minor bugfixes.
Comments: Add Your Own.

Sunday, September 6th, 2009

Subject:Firefox DeWindowsification & other hacks
Time:3:48 pm.
For some reason, Firefox keeps trying to become more like IE, which is causing it to suck more like IE!  Example, after upgrading to 3.5.x, there's now a new "Open New Tab" button just right of your last tab - yucksters!  This is useless if you don't show tabs unless there are more than 1 tab open (browser.tabs.autoHide)!  Anyway, googling led to this solution, c/o:  http://www.freelists.org/post/hllug/Remove-New-Tab-ButtonFrom-Firefox-35:

Add following line to ~/.mozilla/firefox/<your-profile>/chrome/userChrome.css:

.tabs-newtab-button {display: none}

Now in other hackory news - I found this to speed up Adobe Flash in FF:

The Flash plugin does support hardware acceleration on cards with accelerated drivers, but looks for a string in the GL support that Intel (and possibly other) cards do not support. This can be overridden by adding

OverrideGPUValidation = 1

to the /etc/adobe/mms.cfg file.

I had to create both the /etc/adobe folder and mms.cfg file on my system, but it does seem to help a lot. Adobe warns that it may crash your browser (even more than Flash does already!).

source: http://wiki.debian.org/DebianAcerOne#EnableHardwareAccelerationinAdobeFlashPlugin
Comments: Add Your Own.

Friday, September 4th, 2009

Subject:Recompile custom Mepis kernel
Time:12:17 am.
Just upgraded my main computer to a shiny new custom Mepis Linux kernel (2.6.27-31). This allows me to keep my existing, working one (if there's a pbm).  Here's how:

View Details )
Comments: Add Your Own.

Monday, August 31st, 2009

Subject:Yet another useful script (see POD comments)
Time:11:26 pm.

I wrote this one to replace the IVMAN daemon, which somehow became foobarred on my daughter's Linux box:

View Details )
Comments: Add Your Own.

Subject:Geolocation script
Time:11:19 pm.
I wrote this script in order to allow my TkWeather program to find the "local weather" wherever my laptop is connected to the internet via geolocation of the ISP providing me service. It first looks up the user's true IP-address, then tries to determine his zip-code or city-state location. The best-guess zip-code is then returned.

View Details )
Comments: Add Your Own.

Wednesday, June 17th, 2009

Subject:IPv6 elimination details
Time:11:23 pm.
View Details )
Comments: Add Your Own.

Sunday, May 10th, 2009

Subject:Non-computer Hack
Time:1:47 pm.
Sometimes you just see something and immediately assume that it works a certain way and when you later find out that it doesn't and at the same time realize that it may lay within your power to change, then if you're like me, your inner "hacker" child takes over! I actually did this a while back, but just now decided to post it here.

View Details / Image )
Comments: Add Your Own.

Wednesday, April 22nd, 2009

Subject:Audacious Patch
Time:11:49 am.
I really liked the old, now defunct "xmms" music player software.  A fork of it seems to have replaced it called "Audacious".  I gave it a try, and it seems to really work and sound well, much better than "vlc".  Anyway, a couple of annoyances have crept into it as of the latest version 1.5.1:

1) The "File Open" window pops up when specifying the cdrom (cdda://) as the play target on the command-line.

2) Starting Audacious without a play target (music files, playlist file, url, or cdd*:// device) causes the last played playlist to start up automatically. That's well and good, but I wanted a way to start up Audacious with an empty playlist.

3) For some strange reason, you can stream audio, at least mp3 from a url, but NOT from STDIN?!

I found a patch here that partially addresses (1) here: http://atheme.org/attachments/15/1.5.1-commandline-options.patch Thanks Tony Vroon! I applied this, but it did not fix 1 completly, so I developed another patch based from this one to fix (1) and add a "-c/--clear" command-line option to address (2).  I also patched the plugin file (stdio.c) to address 3.  Whilst I was at it, I decided to also add the ability to pipe in a playlist (list of files/urls to play) into STDIN as well!  For piping a song, one needs to append the extension to the STDIN filename ("-) in indicate to Audacious what type of file it's processing.    I ended up having to hack several of the plugins, so that it now works (tested) for ogg, wav, and mp3-ish files.

I ended up having to also include the "file://" prefix since otherwise Audacious thinks "-.mp3" is an option.  Anyway, these patches are against Audacious v. 1.5.1 (audacious_1.5.1.orig.tar.gz) and Plugins, v. 1.5.1 (audacious-plugins_1.5.1.orig.tar.gz). 

     To pipe in a song, do:

cat ~/mymusic/coolsong.mp3 | audacious file://-.mp3

     To pipe in a play list, do:

ls ~/mymusic | audacious -

Now I can do cool things like stream radio that is in a format that Audacious can't play, like "asf" through Audacious without filling up my hard disk, ie.: 

rm -f /tmp/fifo.wav
mkfifo /tmp/fifo.wav
cat /tmp/fifo.wav | audacious file://-.wav &
sleep 1
mplayer -msglevel all=-1 -nojoystick -nolirc http://68.142.72.75:80/citadelcc_WBAP_AM?MSWMExt=.asf -vc null -vo null -ao pcm:waveheader:file=/tmp/fifo.wav &


View Details )

Recompiled from source obtained here: http://packages.debian.org/source/testing/audacious

Also found this cool streaming radio site while testing: http://scfire-ntc-aa03.stream.aol.com:80/stream/1018
Comments: Add Your Own.

Thursday, April 16th, 2009

Subject:Building custom firefox (like swift{fox|weasel}
Time:1:37 pm.
UPDATED 2009/9/8:  Swiftfox is now available at v. 3.5.2 (incl. PGO build for Prescott) and is again being actively updated, but I still think my custom build is FASTER (non-PGO build specifically for Intel Core Duo Prescott) + I'm a control freak who would prefer not to use a binary blob as a browser, for security reasons, if nothing else! ;)

I have long been a fan of Swiftfox, a prebuilt binary version of Firefox optimized for specific processor platforms. I seems though that Swiftfox is no longer being updated (v3.0.4pre1 is latest). I then tried "swiftweasel", a similar program for "iceweasel" that is more current, but, even though faster than Firefox, gives me some scrolling problems (page sometimes keeps scrolling after releasing mouse-wheel and sometimes scrolls up and down, which is very annoying). So, I took the plunge and downloaded the source for Firefox and built with similar options to Swiftfox (see "about:buildconfig"). This seems to work well for me so far! Here's what I did:
View Details )
Comments: Add Your Own.

Thursday, April 9th, 2009

Subject:6 days = 15 billion years?
Time:10:44 pm.
This is just a theory, but it's cool, and rather mind-bending!

http://aish.com/societywork/sciencenature/Age_of_the_Universe.asp
Comments: Add Your Own.

Thursday, April 2nd, 2009

Subject:Lovers of Liberty, check out this video!
Time:5:55 pm.
This says it very well (Democracy vs Republic)!

http://www.flixxy.com/political-systems.htm
Comments: Add Your Own.

Thursday, March 5th, 2009

Subject:A Conservative stands up & WINS! Now That's CHANGE to believe in!
Time:8:02 pm.
For anyone else starved to hear a true conservative stand up and articulate truth in this era of lies, give this a listen! Milton Friedman vs. Phil Donahue; Milton Friedman > Phil Donanue!

http://www.popmodal.com/video/347/Milton-Friedman-Owns-Phil-Donahue
Comments: Add Your Own.

Tuesday, March 3rd, 2009

Subject:Quote of the Day
Time:12:41 am.
"If a Nation expects to be ignorant and free in a state of civilization, it expects what never was and never will be ... If we are to guard against ignorance and remain free, it is the responsibility of every American to be informed."

Thomas Jefferson
Comments: Add Your Own.

Thursday, February 12th, 2009

Subject:Speeding up Intel graphics
Time:11:16 pm.
UPDATE (2009/04/27):

Changed "AccelMethod" from "EXA" to "UXA".

--------------------------------------

I found this sped up my intel graphics by about 45% from 1100fps to over 1550fps:

1 (xorg.conf):

Right under
  Driver "intel"

Add line:
  Option "DRI" "true"

Note:  a 2nd line (Option "PageFlip" "true") did not work (was not honored by xorg).

2 (xorg.conf):

In the "Screen" section, added (4 lines, just after "DefaultColorDepth 24"):

  Option "AccelMethod" "EXA"
  Option "ExaNoComposite" "false"
  Option "MigrationHeuristic" "greedy"
  Option "Accel" "true"

3)  /etc/environment (created this file to contain the following 1 line):

INTEL_BATCH="1"


That's it!
Comments: Add Your Own.

Wednesday, January 28th, 2009

Subject:Facebook Photo Decompression
Time:11:30 pm.
Script to perform photo compression:

    I wrote this script to auto-compress the huge images that my daughter downloads from our digital camera and uploads to Facebook.  It automatically reduces any new image added to ~/images/Facebook/ by about 85%.  I include it in a shell-script that first invokes gthumb (the program she uses to download and view photos) so that when gthumb exits, this script is invoked.

JP

View Details )
Comments: Read 1 or Add Your Own.

Tuesday, January 20th, 2009

Subject:Cool Bash Decompression Script
Time:8:00 pm.
I found this today at: http://linuxshellaccount.blogspot.com/2009/01/extracting-different-file-types-on.html

Courtesy of: Mike Tremell

This will uncompress just about any file type (add to ~/.bashrc):


function extract()
{
if [ -f "$1" ] ; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.tar.Z) tar xzf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.rar) unrar x "$1" ;;
*.gz) gunzip "$1" ;;
*.jar) unzip "$1" ;;
*.tar) tar xf "$1" ;;
*.tbz2) tar xjf "$1" ;;
*.tgz) tar xzf "$1" ;;
*.zip) unzip "$1" ;;
*.Z) uncompress "$1" ;;
*) echo "'$1' cannot be extracted." ;;
esac
else
echo "'$1' is not a file."
fi
}
Comments: Add Your Own.

Advertisement

LiveJournal for Jim Turner.

View:User Info.
View:Friends.
View:Calendar.
View:Website (My Website).
View:Memories.
You're looking at the latest 20 entries. Missed some entries? Then simply jump back 20 entries.