July 14, 2016
Karma refers to scoring comments on Reddit and the service does not sort the scores by date, just the comments themselves. The script above runs through and grabs all of your comments, keeps their scores and shows those comments whose scores have changed in the past 24 hours (86400 seconds). I do hope you find this useful and I look forward to your suggestions as to how to enhance it further.
June 28, 2016
% python3.5 receipts.py -p [password] $ 151.73Next step is to support that other large payment processor on the Internet, along with any other suggestions users have.
June 22, 2016
While I am a big consumer of podcasts, I am most decidedly not an iTunes user. However, a few podcasts don't list their feed urls on their homepages. It turns out there is a sneaky way to find out what the feed url is. I say sneaky only because Apple does not link to the feed on their site. And the output is in fairly standard JSON.
May 21, 2016
Unfortunately, I use an ISP that doesn't let me host services at home. So, I've taken to using hidden services to host said services, which leads to the problem of keeping track of the hostnames. Solution, provide the hostnames in JSON on the web uploaded from home on boot. So, if you want to find the onion hosts, look here. Remember to add ".to" if you aren't using the TorBrowser.
May 19, 2016
I've been using LaTeX for a little while now. And, I've been wanting to share what I've created with the world. So, what's a so-called "prolific programmer" to do? Why, write one's own system to share one's creations, of course. Oh, and it's live too.
April 25, 2016
I just added named-entity recognition to the news summariser. Named-entity recognition is the identification of nouns in a piece. It further involves classifying these nouns. In this case, I've classified them into locations, people, and organisations (or rather, the Stanford NLP group has). It involved downloading named entity package, trimming the fat out of that and putting it into my filesystem. I then activated it in nltk and got some results. I would like a better training set, as all artificial intelligence of this sort rests on how accurate a training set you have. No demo, but you can download the linked script, and install the dependencies, and run it yourself to see how great (or horrible) the training set is. If you find a better one, please leave it in the comments. Thanks!
April 16, 2016
I've been posting news summaries on a subreddit (of one) for testing purposes. In the past 30 minutes or so, I wrote the console script above to post the news summaries to one's console. Sample output follows:
April 9, 2016
The gist above is an update on the previous post to implement one-time passwords. This one uses Flask along with 4-digit passcodes. It also uses units instead of random.org and has a 5-minute expiration, like paypal. The service is live for your use. I'd appreciate a comment if find this useful. Functionality demo:
March 28, 2016
Recently, I've done a fair amount of work in java and its insanely huge class library. Like a TV sales pitch, but wait, there's more. However, given that this was never intended to be used by the world outside of academia and was, the good lords granted us a build system to alleviate long commands typed again and again. In keeping with its verbose design goals, every jar your project uses must be listed on its classpath, which became unwieldy, impractical and annoying. The solution to this were dependency management systems, like maven, ivy, gradle, or sbt.
But, while that solved the problem of compiling the project, it did not solve the problem completely. The good Java developers then came up with the concept of the fat jar, a jar with all dependencies included. And, again, every build tool had its own method (or methods) of achieving this. Ivy's is the most transparent, while maven hides the same thing in its shade plugin, which bolts itself onto the package, so as to try to be transparent. Gradle is similar to ivy in that there's a requirement of a custom task. And sbt also has an assembly plugin.
This is a mere outline of the state of java development infrastructure, circa Q1 2016. We are currently using all of these approaches in different projects, all of which are still supported. When I want to add, say, a better date handling class, how do I remember the specific syntax for the specific build tool? I could use go through links to figure it out, or I could use units to find it and copy the correct syntax for the build system straight into the build file and have it work once and for all time.