swan tron dot com

Twitter CLI Teaser

I sort of forget what my original project entailed…something about tweeting via the command line, for Arduino purposes. You can pretty much just toss a bunch of words in a hat, and add ‘Arduino’ and ‘Command Line’ to them, and there you have one of my typical projects. Anyhow, here we find ourselves. I am missing some dependencies with OAuth, but have managed to get twitter working from an interactive python shell: cli twitter This section is as much for my reference as it is for public knowledge…I snagged the commands that I ran to snag my comments. It first prints swantr0n (my dev account) and then my primary Twitter feed, @swantron

swantron@mini9:~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. »> import twitter »> api = twitter.Api() »> feedSwantron = api.GetUserTimeline(‘swantron’) »> feedSwantr0n = api.GetUserTimeline(‘swantr0n’) »> print [ x.text for x in feedSwantr0n] [‘development account for @swantron | tune into http://t.co/SpDFBkK for projects’, ‘hello world’] »> print [ x.text for x in feedSwantron] [’@vftb …you better believe it’, ‘Twitter Project Teaser : http://t.co/7ZrOLUn | one step closer to tweeting from the #CLI … might take a run at make it tweet’, ‘Might need to implement some sleeves into my wardrobe… @adafruit just flipped the script with open source cuff links’, ‘unsafe at any speed… updating #ubuntu on the road http://t.co/Q8gfc56', ‘Upgrading Mini 9 to #Ubuntu Natty http://t.co/7yT9w81 | posting to kill time… review here ( http://t.co/RM675lX ) lunch-aft on the morrow’, ‘https://swantron.com/basic-mower-cord-repair/ #DIY lawn mower repair from a #math major. spoiler: it works’, “#arduino no you didn’t https://swantron.com/html-to-python-to-arduino-to-lcd/ #LCD project, stepped up a bit”, ‘working on a python script to dump info from web to LCD https://swantron.com/python-teaser/ #arduino’, ‘http://youtu.be/MpomhE6dgww video of #boc unboxing (for the win)’, ‘#woot bag-o-crap unboxing @ https://swantron.com/woot-boc-unboxing/ not too shabby’, ‘https://swantron.com/compiz-error-in-ubuntu-natty/ still finding some compiz issues in #ubuntu 11.04’, ‘#Arduino project @ https://swantron.com/command-line-lcd-arduino-interface/ | driving LCD screen via command line’, ‘@RobotGrrl… what version are you running? I had no problems with IOIO / Droid 2 (froyo 2.2)’, ‘Easy LCD #Arduino Display | https://swantron.com/easy-lcd-arduino-display/ | feels good to have a warm soldering iron and functional hardware’] »> I will keep plugging away until I get this thing hammered out. If not, I can print this suff to my LCD for a real-time Twitter display. Could be cool either way.

Satellite Internet Basics

Q) What would make a guy throw caution to the wind, and void a (quite significant) warranty on a piece of technology? A) An internet addiction. I rooted my Droid 2 a while back, largely due that answer above. That power-thirsty screen, with all of its hi-def beauty, is awesome for web browsing. My project requirements often find myself hammering out code on either my netbook or notebook, in dire need of an internet connection. Poor wi-fi signals just don’t cut it…I rooted my phone for access to that lovely Verizon 3G. Don’t tell Verizon. Do tell Verizon that my battery life is easily doubled, now that their bloat-wear has been removed. Nuked from orbit. But, I digress. There are many, many places that have either awful cell reception or no reception at all. What is a guy to do? Connect from orbitsatellite internet Say you have just moved to a new house. Say you are in a trough of garbage cell coverage…out in the country, maybe. You will find yourself with two likely options: low speed dial-up internet, or high speed [link removed]. I bet you know which one I would chose. Hit that link to see what I am talking about. It is the only viable option for a decent connection at times. If you want some numbers, with these connections you can see download speeds up to 1.5Mbp…which is roughly 30 times faster than dial-up. See…no joke here. The weird thing is that these packages are pretty much the same price as my connection with Bresnan. Sort of puzzling how they can offer deals like this. Hit that link to see what I am getting at. I’m off to feed my internet addiction.

Twitter Project Teaser

A while back, I tossed a little concept video out to the nets regarding CLI interface with my site’s comments and an LCD screen. I figured that I could do a similar thing with my Twitter account…spurred largely by Adafruit’s Make it Tweet challenge. Well, it turns out that Twitter has a few hurdles to jump, in regards to posting tweets to an account. My failed usage from the command line was utilising curl > curl -u swantron:pass -d status=“command line test” http://twitter.com/statuses/update.xmlI was getting an error message, that basic authentication was not supported. For the loss. It turns out that you need a few keys in order to authenticate, which requires registering an app with Twitter… like this twitter dev account There we go…keys in hand. Now, I need to figure out how to sew this together using curl or wget. If all else fails, I am pretty sure there is a py library that I can snag. Stay tuned…this one could be fun.

Ubuntu Natty Netbook Review

I have had Natty on my Mini 9 for a few days. It runs like a top. natty narwhal on a dell mini 9 netbook Solid state HD equates to a sub double digit boot time…be sure to configure compiz via: sudo apt-get install compizconfig-settings-managerThat is about it. Plus 1. I would rattle on about 11.04, but I already have a few posts back. Besides, I have bigger fish to fry. Namely, Gannon… ocarina of time gannon I’m in my 30s, and just now getting around to beating Ocarina of Time. Katie and Man-Dawg are watching the Bachelor (or Bachelorette; no effing idea) downstairs…here goes nothing

Makeshift Linux Heads-Up Display

Per my last post, I began upgrading my Dell Mini 9 last night…from Ubuntu 10.10 to 11.04. Well, at some point, it tossed a fit about not being able to snag a package, and hung on a dialogue box all night. No worries…I’ll finish this install on the way to work. ubuntu linux netbook on my silverado dashboard Who said netbooks are passe? Looks like that guy was designed to ride on the dash of a Silverado if you ask me. For the record, I was not doing 110 MPH by the MSU campus. I have an issue with my speedometer. I was doing 90 MPH, tops. My install was a success for the record. I will see if all functions are fully functional soon, and put together a post.

Ubuntu Natty Netbook

As my primary notebook has proven that can run several terminals, a Firefox tab or four, Eclipse, and the Arduino IDE simultaneously without shitting the bed, it is time for my netbook to follow suit. Q: What suit? A: The Ubuntu 11.04 suit…you know, Natty Narwhal? Q: I don’t know cards. This is cards, with the suit thing, right? A: Busted. No idea…very unsure of the spelling of ‘suit’ too FWIW ubuntu natty Tune in tomorrow to see how it all ends up. Wear a suit.

Basic Mower Cord Repair

I snapped our lawnmower cord. Oh snap. As it happens, I can fix anything. Without exception. math major repairs Hit the fold for details, four action pics, and a video. (more…)

Trustworthy Online Brokerage Account & Services

So. I may be one of the only people in the world left who listen to talk radio. More embarrassing than that, I would, without a doubt, be considered a dedicated listener. There is nothing worse than the audio quality of AM radio, except for AM radio in a truck with all sorts of metal accelerating around…big pistons, questionable wiring, and a poor antenna make for very, very poor radio reception. Interference, for the loss. I used to be all over antenna theory back in my undergrad days…KD7NZI. Yep. Licensed HAM radio dude. I promise to touch on that one of these days. Or threaten. Now, I am pretty much on the AM radio, and on my talk shows. The heart of the matter for today lies in ways to handle finances. My beloved, awful AM radio is nearly wall-to-wall advertisements for gold purchasing firms. Places of ill repute, when compared to legitimate stock account joints. It may be tough to consider, but it is very important to do so. Money of all nature has (inherently) value, and that is not to be taken lightly. Pause for picture. online money consolitadaion I do 100% of my money work online. In fact, my Wells Fargo accounts have embarrassingly small rates of return…interest takes second base to online access for me, for what it is worth. That is where it is…from my IRA, to my stocks, to my savings and DDA accounts, it is all accessed/managed online. The question remains, what do you do to juggle all of these balances? Is there some sort of service that you can find to consolidate stuff of this nature? Yes, there is. Hint: that link back there <— Take a look. Do what you will. Drop me a line with any suggestions you may have….and good luck.

HTML to Python to Arduino to LCD

Last week found me standing tall upon my shell script soapbox, shouting command line praises to all who would listen. Thou ought direct thine output aftways, to-wards thine USB port of thee. And that is well and righteous. Well, that still is the case. My latest project has made it glaringly obvious that sometimes a little Python script will render a whole bunch of shell scripting moot. Namely, parsing HTML. Let’s see a picture… outdoor hacking Lunch hour project: parse the comments from swantron.com; feed said comments to an LCD screen. I was horsing around with wget from a CLI a few days ago. I found myself trying to smash through the resultant file via pure regular expressions…which is incredibly clumsy. Well, as luck would have it, my go-to after my main go-to is Python, and this type of thing has been issue enough to warrant a library. BeautifulSoup. It acts to parse the HTML info into items, that can be smashed around as I see(med) fit. My setup was simple: py script to snag my comments and write serial, Arduino sketch to drive a LCD and read/write serial. And a source of shade. And a WiFi signal to snag. mobile mobile Check, check, check, etc. Video time: Pretty slick…hit the fold for the code, as promised, and a summary. (more…)

Python Teaser

After a deal of success with the command line interface-to-Arduino project, I am in the middle of stepping it up a notch. I ended up on a few blogs due to that last effort, which indicates that I am doing something worthy of note. Hats off to me, perhaps. Well, my tool belt is what it is…if I can’t do it via shell scripting, I reach next for Python. In an attempt to parse stuff that I have been ‘getting’ via wget, I found myself trying to do some clunky regex from the command line. Guess what…I can do that without as much heartache via Python via BeautifulSoup… beautiful soup Thus far, I have python doing the website getting and Beautiful Soup doing the parsing of my site…basically just grabbing some info at this point that I can modify. I have my LCD driven via my trusty Arduino, and that is that. Instead of redirecting standard out to serial, I am writing to serial via python. Easy breezy. I have some sloppy sloppy code at this point, and need to add some hardware and stuffs to my prototype. Stay tuned…this could be a good one.