Archive for the Python RULES! Category

Talk about Serendipity

Posted in Python RULES!, Rant on December 8, 2016 by asteriondaedalus

So, I am writing another paper to see if I can get to a conference, next year, in Italy.

I was chasing a comment made by Jeff Southerland around software quality stats kept at Palm Inc that (apparently) showed how if you fixed a bug in your code 3 weeks are you found it, instead of the first hour after you found it, you were more or less guaranteed of taking 24 times longer to fix it.

Now, I was interested in tracking down any likely papers from Palm Inc on the subject.

Go figure the guy you invented the Palm Pilot (I had one, I saw their potential … at the time at least) has gone into AI with numenta.org a python brain thingy.

So there is some solace now with the Curie “defunctionality” – note I claim authorship of this word!

It can mean delivery of dead functionality.

We can muse over whether that is deliberate or unintentional.

But I digress.

I wonder how NuPIC compares with TensorFlow?

NuPIC is interesting because of the claim it is embeddable.

Hmmm.

 

Winding down

Posted in Open Source can be professional, Python RULES! on November 22, 2016 by asteriondaedalus

ipython

Now this is what I am talking about.

See Claus for SLAM videos using Python whohoooo!

Get yourself some ipython so you can get access to the web based notebook.

Easy enough to embed Claus in the notebook page and then doodle learning SLAM in Python in ipython notebooks because you can.

Finally!

Posted in Agent, Erlang, Python RULES!, RabbitMQ, XMPP on June 8, 2015 by asteriondaedalus

So, sorted the BlackWidow and likely the YellowJacket connectivity. The socket approach seems to be the better option, and that is TCP based, so porting of mqtt code might still be possible – although the application is simple enough so a Python adaptor on the host between the boards and the mqtt server would do just as well.

Now, the other side is that I opted for moving from emqttd to RabbitMQ as the mqtt broker.  This is due to the fact that there is likely a way to get RabbitMQ talking to Spade agents via XMPP (with some work).  This might be a way of integrating Profeta agents into the picture without deep integration into Spade that I have been currently investigating.

Not to mention likely being able to use the same inter-agent communication for eJason base experiments.

Essentially using mqtt as a ‘blackboard‘.

And they’re OFF!!!!!

Posted in Python RULES!, Uncategorized on November 13, 2014 by asteriondaedalus
muybridge_GallopingHorse(2)_

This is a famous photograph. More or less invention of moving pictures that we all know and love. Look at it, scroll your mouse wheel up and down quickly, just a quarter of a turn to go back in history two turns of a century.

So, FINALLY got the call from the nephew.

Project has changed somewhat.

The original thought was a touch screen monitor based kiosk for students to pick up daily messages held in a csv file somewhere on the network.

The change was to use Android tablets (must grate as me nephew is a true blue Appleyte), and to parse data out of a html dump!

Parse data out of a html dump?

Turns out the skool system can turn out a webpage report (so I am a little dim as to why they need do much more that set up a browser looking at that webpage).  Anyway, my nephew is excited to be working with his uncle (and I needed an excuse to by four odroid-w, the wife you know).

So, his teacher pointed him at BeautifulSoup which is a python library for sucking data out of html files.

Beautiful is right.

Here is our first experiments (the whoopses excluded):

Untitled

Basically if there are tables within the html the code can pick them out.  He had the idea himself of just reusing the html for the table in our file – brilliant.  So, only problem is other data is buried in nondescript <p> tags.

Will need to sleep on that.

I know, bad bad bad

Posted in Hardware, Python RULES! on August 20, 2014 by asteriondaedalus

Got a little distracted and now the final push for my Masters – Dissertation.

So, I will have an excuse for patchy hobby bits

In the meantime, my Micropython card came.  So dabbling with that.

Looking at a DCM based IMU although this has enough grunt (I think) for Kalmen filtering.

Missing threads though.

Pity.

Ah ha! moment

Posted in Android, Python RULES! on July 23, 2014 by asteriondaedalus

I am having a problem with python libraries in QPython as I found that libraries seem to be visible to the script menu but not to the console.  The libraries were not turning up where I was expecting so I poked around using AndroZip which has a search function.

I worked out that, as I hadn’t put SD cards into any of my newer Android devices, the libraries were going into a cache that essentially was pretending to be the SD card.  For whatever reason, only the script menu could see the libraries at that location.  The QPython team promise they will look into fixing that but there is no reason for me not to bulk out my devices with SD cards.

I’ll buy a swag of SD cards this weekend and try uninstalling and then re-installing everything.

Python Agents, SPADE and QPython

Posted in Android, Open Source can be professional, Python RULES! on July 13, 2014 by asteriondaedalus
Gotta love open source ... sometimes

Gotta love open source … sometimes

So, I pulled together PyDev and a mystical FTP plugin (from general tools under Indego) to get access to my Android devices when writing QPython code.  I tried a couple of FTP servers on Android (including the neat FTP server that comes with QPython) but there was a road block.

The default port for FTP appears to be 21 and the Eclipse FTP plugin doesn’t let you change this.

The FTP server built into QPython will let you set the port to 21 (it defaults to 2121) but it won’t start.  Android won’t let you run ports below a certain level without root permission.

A couple of other FTP servers I downloaded had the same problem until I came across FTPDroid which allows use of port 21 if you have root access – which comes with by JXD S7800B and I have also rooted my old Galaxy Samsung SII, so all good.

Additionally, I had a little problem (sorted by QPython authors) with missing modules that stopped installing SPADE into QPython but that all appears good as I had a couple of agents running on the JXD S7800B with the server on my PC.  So, code above is me hacking SPADE agents on an Android device running QPython.