Linux Blog

Free Linux & Tech Related Books.

Filed under: The Linux Blog News — TheLinuxBlog.com at 3:34 am on Tuesday, September 16, 2008

Share photos on twitter with Twitpic Hey there, this is Owen from TheLinuxBlog.com
Was just wondering, if any of you guys would be interested in some free books. I’ve got a ton of Linux and tech related books, I’m not ready to give them all up but here are two books I just got given. I want to read the VI/EX one and may keep it around. But I have another copy of the Perl one that’s in a little better shape, so the Perl one is definitely going. Leave a comment here or on twitter if your interested. You’ll have to pay shipping but it shouldn’t be expensive with media mail.

I’ve got a bunch of other books that I’d like to trade, sell or give away, but haven’t found a good “books” module for WordPress yet. Does any one else have books they no longer want or need? Would you guys be interested in trading or getting free books if you pay shipping? If there is interest, I’ll start a forum. I have access to a ton of non tech related books, but I’d rather keep it to a topic that I know. I’ll be posting more free books in the future so follow me on twitter and sign up for the RSS feed.

Why you should sign up for my RSS Feed!

Filed under: The Linux Blog News — TheLinuxBlog.com at 5:46 am on Friday, August 22, 2008

Why should you subscribe to my RSS feed?

Thats a good question and there are a couple of reasons I can think of off the top of my head.

For the longest time there was an application that I couldn’t remember the name of but thought the concept was as cool as the other side of the pillow. I remembered the name once an update to that application came into my subscribed feeds. I’m not saying I’ll keep you posted on every application or update that comes out, but I may jog your memory, spark some interest in something, help you figure something out or perhaps give you some ideas of your own.

You’ll be better able to participate, tell me how good/crappy my posts are and tell me I’m wrong or stupid. Either way, participation is good!

By subscribing to my RSS Feed I can tell how many actual readers I have. This is somewhat a measure of achievement or an ego booster for me to know that I have more than one reader.

Quite frankly I think results will vary from person to person and these outcomes are all just speculations but if you feel like making me happy whilst getting some useful information go ahead and click on the subscribe button. While your at it, if you have a Twitter go ahead and follow me on that too.

Just remember to keep your RSS reader open and if you choose not to subscribe to the RSS feed or following me then consider bookmarking thelinuxblog.com, or making it part of your daily routine. If you have any questions or complaints you can always e-mail me at: owen @<thelinuxblog.com> or drop me a comment. Thanks Guys!

Linux Cranks Podcast

Filed under: The Linux Blog News — TheLinuxBlog.com at 4:55 am on Thursday, August 21, 2008

If you haven’t heard the Linux Cranks have a podcast and a live show. They’ve been around for a while so I’d be surprised if you haven’t heard about them, but this is for those that haven’t. The show is basically a bunch of Linux nerds talking about Linux and generally hating on everything.

They currently go live on Saturday nights at midnight eastern and I think that all if not most are welcome. The last time I listened to them live it was quite fun and they have some good topics to talk about and a a fair share of crankyness.

The podcast is well put together from the show and is all in good fun (I think) but be warned there may be some language some may consider to be foul, vulgar or repulsive. Some people such as young children, co-workers and even animals (mostly cats) with sensitive feelings may not be suited to listen, but if you think you can hack it, give it a shot.

After all it is the intrawebs, and if you don’t like it you don’t have to listen.

They asked if I was going to give them a bad review since there were some technical problems with TalkShoe when I said I wouldn’t they then said I was going to ruin their reputation, so this is more of a recommendation or a notice to let you know that you should listen to it and get your crank on. Look forward to seeing you there some time.

Info:
Website: http://www.linuxcranks.info
Twitter: http://twitter.com/LinuxCranks
irc: irc.freenode.net #linuxcranks

Logging Sessions to Twitter

Filed under: Linux Software — TheLinuxBlog.com at 12:01 am on Wednesday, August 20, 2008

If you follow me on Twitter you would know I asked everyone if there was anything that they wanted me to write about. @Ben_Marvin responded and asked about logging the commands you type to Twitter.At first, I thought that this could be done with history, which it probably can be, but does everything you type really have to be echo’ed to Twitter? I don’t think that you’d have many friends, Twitter would probably hate you and you’d most likely hit your maximum requests per hour pretty quickly.The Script command is another option, and this works quite well for this purpose. Read the script man page to find out more about this program. It basically (when ran) takes the I/O from your terminal and logs it to a file. Its a very handy utility.So, how do we get this data into Twitter? First of all, Twitter doesn’t allow very long posts so echoing out the data that the commands you type is not really practical. The best way to do it is to use script to log the session, exit the session and grep for the “]0\;” string for stuff you typed & not the responses.Here is the code:

script; grep ]0\; typescript 

You can then copy and paste it to your favorite Twitter application or pipe it to a scrubbing script to remove the formatting and do the correct HTML stuff, then post it via the http interface. Either way, it can be done even though I don’t think it really should.

tweeting from the command line

Filed under: Shell Script Sundays — TheLinuxBlog.com at 12:25 pm on Sunday, June 29, 2008

This is a subject that has been covered time and time again but I don’t think that it will hurt one more time. Twitter is a very popular “Microblogging” site where you can constantly change your status to let those who “follow” you know what you are doing. Since I just signed up for twitter for The Linux Blog I figured I’d write this post on how I update my twitter feed. While I’m at it I might as well invite you over to my feed URL: http://twitter.com/linuxblog

So here is the script:

#!/bin/bash
echo “Enter Tweet: “;
read inputline; TWEET=”$inputline”;
curl -u user:password -s -F status=”$inputline” http://twitter.com/statuses/update.xml http://twitter.com/account/end_session

This is a very basic twitter script, it does no error checking and probably doesn’t escape characters properly. None the less it works. The part that gets input from the shell is the following line:

read inputline; TWEET=”$inputline”;

If you’d like more information on how this works read this article: Shell Script to get user input

Curl is used to send the data to Twitter, to view curl tutorials and how-to’s visit the Curl Man Page which has a wealth of information at the bottom.

Until next time, happy tweeting!