On the Road: Chicago

Not too shabby of a view

So I find myself on the road in Chicago as of Sunday, doing a round of technical interviews in my effort to take the next step in my career progression. Not a very long stay but the view from my hotel room at night was great, really captured the feel of the city at night I think. As much as I miss being at home and sleeping in my own bed I kind of wish I could have at least one more day if only to take a trip to a few landmarks and hit up a nearby fountain pen shop.

New Digs

So I am moving and took the opportunity to change my desk setup to something a lilttle more focused from my previously insane configuration. Behold an actual matched pair of 24″ screens on a mount where I will hopefully be churning out all sorts of new projects (like YeRP – Yet another Ripping Portal that uses flask and youtube-dl to present a mobile friendly interface.

Patching CentOS 7 (and overcoming problems)

So I was working on patching some of my Icinga infrastructure at work, and it seems that sometimes libyajl breaks things, as illustrated below

root@icingasatellite ~]# yum update
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile

  • epel: mirror.optus.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package icinga2.x86_64 0:2.10.4-1.el7.icinga will be updated
    ---> Package icinga2.x86_64 0:2.10.5-1.el7.icinga will be an update
    ---> Package icinga2-bin.x86_64 0:2.10.4-1.el7.icinga will be updated
    ---> Package icinga2-bin.x86_64 0:2.10.5-1.el7.icinga will be an update
    --> Processing Dependency: libyajl.so.2()(64bit) for package: icinga2-bin-2.10.5-1.el7.icinga.x86_64
    Traceback (most recent call last):
    File "/bin/yum", line 29, in
    yummain.user_main(sys.argv[1:], exit_code=True)
    File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 239, in main
    (result, resultmsgs) = base.buildTransaction()
    File "/usr/lib/python2.7/site-packages/yum/
    init.py", line 1198, in buildTransaction
    (rescode, restring) = self.resolveDeps()
    File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 893, in resolveDeps
    CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
    File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1025, in _resolveRequires
    (checkdep, missing, errormsgs) = self._processReq(po, dep)
    File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 350, in _processReq
    CheckDeps, missingdep = self._requiringFromTransaction(po, requirement, errormsgs)
    File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 680, in _requiringFromTransaction
    rel=pkg.rel)
    File "/usr/lib/python2.7/site-packages/yum/
    init.py", line 5280, in update
    availpkgs = self._compare_providers(availpkgs, requiringPo)
    File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1648, in _compare_providers
    bestnum = max(pkgresults.values())
    ValueError: max() arg is an empty sequence

Turns out the secret is simply to install yaljl and yajal-devel and then I can patch successfully, really surprised nobody else out there has run into this yet but its the second time in a month I have had it happen when patching.

Project: hockey-info

So I don’t always have great cell phone service, sometimes its weak 4G or even not 4G at all so modern designed apps suffer when bandwidth is a trickle at best. I would be away from home trying to find out whats going on with a Caps game and the NHL app would just be painfully slow or not work at all sometimes. Eventually I decided the only reasonable thing a hockey nerd such as myself could do was write something to fill this void, ideally something simple and effective to get me the information I wanted without a lot of overhead and frilly extra stuff I didn’t really care about.

The repos are still in high flux right now as I don’t even have a readme file yet for the main one, however this page can serve to sort of explain the bits and pieces.

nhlapi – This is what started it all for me really, I wanted more information about games (for an IRC bot) and threw myself into pulling various bits of information together about the NHL API in an easy to read and access way so others didn’t have to spend the hours I did looking for how to do things.

hockey-info – A super simple website written in Python utilizing the Flask framework. The focus is to be fast, simple and mobile friendly. It directly queries the NHL API for all its information and is formatted in a way that works well on mobile

hockey-info-docker – A bare bones Dockerfile to deploy the latest release of hockey-info. The container is based on Alpine and is as trimmed down as possible, makes deployment super simple and easy for anybody to run their own instance with only a few commands (provided you already have a Docker host to run it on).

Naturally I make no warranty about this app or any of the code I have written, its purely something neat I built in my spare time and am tossing out there for others to enjoy, modify and extend to their hearts content. If you do happen to have input, ideas, or feedback hit me up on twitter or just open an issue on Gitlab if its a purely technical issue to address with the code.

Open links from iTerm2 in a specific browser

So by default iTerm2 uses whatever is the default browser, which I generally use Chrome for work related things, however I like to use Firefox for personal stuff.  I had to look around for a while to find this since I am not an OSX person really, figured someone else will find it useful.

Go to Preferences > Profiles > Advanced > and in the Smart Selection area hit Edit.

Select HTTP URL and hit the Edit Actions button

Add the following entry:

Title: Open in Firefox

Action: Run Command

Parameter: open -a Firefox \0

Hit OK and you should be good to go, now if you hold ⌘ and click on a link (say within Weechat) it will kick it over to Firefox specifically.

 

Its Over

EDIT: So according to this it was an employer that tipped off the police, but my rant still stands

Michele Catalano was looking for information online about pressure cookers. Her husband, in the same time frame, was Googling backpacks. Wednesday morning, six men from a joint terrorism task force showed up at their house to see if they were terrorists. Which prompts the question: How’d the government know what they were Googling?

 

policestate

I wish I could say this was from The Onion, or maybe some other satirical blog but sadly its a real 
thing. The picture above this from the confrontation by ‘local police’ with the Catalano family, all over what two people (probably on different computers in different rooms) searched for.  Backpacks and Pressure cookers are now verboten searches under the watchful eyes of the National Security Agency it seems and if you look for them too close together you will be paid a visit.  Since I fit the profile of most ‘lone wolfs’ I wonder if they would visit me if I started reading up on pressure cookers for canning (cause hey, who doesn’t like to save some money) and camping packs because I work a sedentary IT job and should probably get out of the house more often and into nature for exercise.  

I can’t even really properly express how angry and sick this story makes me.  We are lead to believe that we are having our privacy forcefully taken for our own good, yet supposedly there are 99 out of 100 incidents where this was just a wild goose chase initiated by an over-zealous spy agency who gets its jollies off monitoring every single thing we do online.  At this point I am angry at more people than I can count; Congress for letting this happen and implicitly endorsing it, and the people of the country as a whole for not demanding and GETTING an end to this blatant violation of our rights.  We have had larger protests over more niche issues like gay rights or abortion than things that impact all of us like PRISM and the spying on of every single man, woman and child in this country.  If that doesn’t show the cracks in the foundation of our society then I don’t know what does; our priorities are so screwed up we can’t even see the water as it continues to boil us collectively.  Sadly I know this rant falls on deaf ears; chances are one day my nephew or his children will look back and wonder why we left them such a fucked up world and the only mercy will be that I wont be alive to have to try to make some kind of excuse for why my generation proved to be the most spineless in the history of the nation and failed to right a terrible wrong when we had our noses rubbed in it like a dog who shit in the house.

Score!

http://www.cnn.com/2013/04/17/politics/senate-guns-vote/index.html?hpt=hp_c2

I hope Senator Feinstein cries her self to sleep tonight and Obama drinks himself to sleep, for once congress actually gets it right!

Inauguration Waste

I may harp on a lot of shit the government does but nothing quite tops the senseless waste that is the Inauguration.  Some absurd levels of spending go on every 4 years even when its a 2nd term for the sitting POTUS, its not like we need to be introduced to him for the first time; even sister-fucking rednecks deep in the hollers of god-knows-where know who the hell he is.  Yet we still insist on throwing a weekend long fucking party like he just cinched an upset win in November.  Its no wonder we have such a fucked up economy when we are out throwing parties that, after a coupe hundred years one would hope we as a nation quit behaving like drunken college kids who cant set priorities but I guess such is not the case.

Bitnami