The code above mines the buy and sell recommendations of CNBCs Jim Booyah! Cramer stored them in a CSV (with the --op=get parameter) and then analyzes how his picks turned out the next day (with the --op=check option). I would like to write the data to/from a SQL database and generate a report using LaTeX and let skeedaddy know. Ideally, this little project would get a shout-out on the show, but before that happens, I'd like to finish the two things above. The code is in perl, only because there is no better way to parse HTML than HTML::TreeBuilder.
August 5, 2015
First things first, duplicate the layer and add a strong Gaussian Blur (under "Filter" -> "Blur") of around 70px and mode "IRR". This will blow up your highlights. Add a white layer mask and change your foreground colour to a pale grey. Choose the paintbrush tool, setting the brush to a circle/19, zoom to 200% and paint over the eyeball only on both eyes. Now, apply Gaussian blur again, this time at 20.0px and keep the blending mode. To remove wrinkles, use the healing brush (the bandaid in the tools selection) to paint over splotchy skin, wrinkles, etc. Finally, Image => Flatten and save the image. Both images are below:
August 4, 2015
July 26, 2015
The second facet of Joel's software test is can you make build in one step?. The rake task below will push all changes to heroku and your secondary upstream ("origin"), run migrations on heroku, and deploy it there, Without further ado, the task is pasted below...
July 12, 2015
Code above will let you take an nmh folder, save a message to a file, upload it to a remote server, and remove the message from the local mailbox to be viewed with a web browser. I use nmh for my work mailbox, where messages often come encrypted using PGP and therefore can't be viewed on webmail. No matter how many times I tell them, senders insist on HTML mail, so I had to get a workaround.
July 10, 2015
I've been away from writing for around a week, but not from coding. I've been working on notes, an anonymous blogging site, not with python (because a prolific programmer does not live by a pirate call and a serpent alone). This site is written using ruby on rails and the admin GUI is in java, with console output, as shown above.
June 29, 2015
I woke up at a loss, as the notes build was broken, I'd updated my checkouts and pushed the broken code, and the heroku toolbelt wasn't behaving. This was on all my systems, except for an old checkout I had on NetBSD. However, the heroku gem wouldn't install on it. But it was missing from jsplugin, so I added it in. And presto, it started to work!
June 14, 2015
For now, it only supports one site, I'll probably add multiple site support in the near future.
May 27, 2015
I share a lot of links -- by email, I tweet their aggregate statistics, I provide them in json, RSS, and compressed csv. Tonight, I added the option of getting them as well-formed, simple xml for Ibrahim. The entire method is 15 lines and embedded below:
May 21, 2015
There may very well be a clever way to refactor the if statement, but this does work, so I can't be bothered.