Tag: python

  1. Simple things can be hard.

    24 September 2018

    As the title of this post implies, I've been working on some stuff lately that's been taking up enough compute cycles that I haven't been around to post much.  Some of this is due to work, because we're getting into the really busy time of year and when I haven't been at work I've been relaxing.  Some of this is due to yet another run of dental work that, while it hasn't really been worth writing about has resulted in my going to bed and sleeping straight through until the next day.  And some of it's due to my hacking …

    Read more...

  2. Parsing simple commands in Python.

    07 February 2017

    A couple of weeks ago I ran into some of the functional limits of my web search bot, a bot that I wrote for my exocortex which accepts English-like commands ("Send me top 15 hits for HAL 9000 quotes.") and runs web searches in response using the Searx meta-search engine on the back end.  This is to say that I gave my bot a broken command ("Send hits for HAL 9000 quotes.") and the parser got into a state where it couldn't cope, threw an exception, and crashed.  To be fair, my command parser was very brittle and it was …

    Read more...

  3. Upgrading Ubuntu Server 14.04 to 16.04.

    02 November 2016

    A couple of days ago I got it into my head to upgrade one of my Exocortex servers from Ubuntu Server 14.04 LTS to 16.04 LTS, the latest stable release. While Ubuntu long-term support releases are good for a couple of years (14.04 LTS would be supported until at least 2020) I had some concerns about the packages themselves being too stale to run the later releases of much of my software. To be more specific, I could continue to hope that the Ruby and Python interpreters I have installed could be upgraded as necessary but at …

    Read more...

  4. Exocortex: Halo

    29 March 2016

    In my last post on the topic of exocortices I discussed the Huginn project, how it works, what the code for the agents actually look like, and some of the stuff I use Huginn's agent networks for for in my everyday life. In short, I call it my exocortex - an extension of the information processing capabilities of my brain running in silico instead of in vivo. Now I'm going to talk about Halo, a separate suite of bots which augment Huginn to carry out tasks that Huginn by itself isn't designed to carry out very easily, and thus extend my …

    Read more...

  5. HTTP Log Messenger v1.0

    23 July 2011

    One of the problems hacktivists ran into when trying to disseminate useful information to people in Syria and Egypt was how to get through to people when DNS and web access are being filtered or outright blocked. Putting up web pages containing phone numbers of ISPs volunteering dialup access was something of a crapshoot because there was no guarantee that people would be able to view them. Someone (I don't remember whom) hit on the idea of contacting sysadmins in the Middle East by leaving messages in the access and error logs of their web servers. This works but pumping …

    Read more...

  6. nia_eeg_chart.py - Convert data captured from the NIA into an EEG chart.

    07 June 2009

    Well, I finally got it working. After a lot of trial and error I was able to figure out how to set up a panel of six strip charts, one per channel of electrical activity in the brain that the OCZ NIA picks up. The application I wrote takes output captured from nia_number_dumper.py and displays it as one would expect an EEG to look. Python is required to run this software.

    Next up: turning it into a realtime display from the NIA.

    of the app in action.

    Download nia_eeg_chart.zip here

    Test data set for nia_eeg_chart …

    Read more...

  7. Python: as simple as possible but no simpler.

    06 June 2009

    When coding something in Python, it's said that your logic should be as simple as possible because the language does the heavy lifting for you. The nice thing about Python is that it makes it very easy to implement complex functionality because all the fiddly stuff that you normally spend ages coding and debugging (like linked lists and sorting algorithms) is already done for you. Also, the basic data types/objects that Python gives you are as orthogonal as you can get without throwing your hands up and using sticky notes instead.

    In short, I spent two weeks debugging a …

    Read more...

  8. Pirates, pants, pets, Python, and Push.

    01 June 2009

    After many months of near misses and scheduling conflicts, Kyrin finally got Lyssa and I to join him for a Friday evening at Piratz Tavern (8402 Georgia Avenue; Silver Spring, MD; 20910; phone 301-588-9001 to cap off a long work week. Hasufin, Lyssa, and I piled into the TARDIS and set course for Silver Spring around 1900 EST5EDT, which we figured would be late enough to dodge weekend traffic on the Beltway.

    It wasn't, actually, but we still made decent time without actually being fashionably late.

    Piratz Tavern is a very small, unassuming place on a corner across the street …

    Read more...

  9. OCZ NIA hacking, now with Python!

    25 May 2009

    Disclaimer the first: I don't know a whole lot about USB or device drivers. Those of you who do will no doubt point and laugh.

    Disclaimer the second: Where applicable, I've given credit for and linked to the work of others. I've independently discovered a few things that others have already figured out, so one or two things may not be attributed. In that case, please let me know and I'll put a reference where applicable.

    Over the past few weeks I've been playing with my OCZ NIA on and off. My first attempt at getting anything out of it …

    Read more...

  10. That coughing you hear isn't from consumption.

    25 February 2009

    At first scratch, it would appear that respiratory troubles are fast becoming part and parcel of my winters in the DC metroplex. Two weeks ago I was fighting off a cold, and rather successfully, or so I thought. Last week I developed a persistant dry cough that now has has my cow-orkers wondering if I have tuberculosis, keeps Lyssa awake at night (even if I sleep on the couch), and busily ties knots in the muscles of my neck and stomach. It isn't one of those coughs that clear your lungs and sound disgusting, but at least mean that you …

    Read more...

3 / 4