Saturday, December 6, 2014

Links and app finds of the week

Links of the week


After having a child, I joined the scores of parents around the world grimacing when checking out the rising prices of children books, so this link was a god send:

bookdash.org

Easy way to share a file and set up a chat session ? aka. "Why didn't I think of this first ?!"

Volafile

Insightful article of the week :

Spiritual Project Management

This one will be another one of those sites, which I will go to from time to time for a pick me up from a spiritual perspective. What is unique about this site is that he, the author tackles some of life hardest questions with easy to understand writing with great illustrations to boot.  Wish I had this resource during my awkward growing up phase. Well, guess it's never too late since I am just in the middle of that phase now!

Oliver Emberton

Watch anime online ! Nuff said!

KissAnime

Currently watching Ghost Hunt and Parasyte. Tokyo Ghouls was great but then the ending a bit too abrupt and dangling for my taste.

Apps of the week


Another one of those apps so simple to use and made so much sense, I am still beating my head wondering why I did not think of it first ...

Cheat Sheet

Fancy a great gui tool for tangling with github on a Mac, then you can't do worse than use their own tool ! There is however me thinks a missing link in my workflow when working with this app however which is the ability to fork the project from the app itself. For that you are better off using hub for github.

Github for Mac

I have always wanted to create a childrens' book and lately the urge just got stronger, yet searching for a self publishing tool for children book brings you through the seedier part of the Interwebs. Ironic if you ask me. Anyway, I found a somewhat usable tool for this from, please note this is a heavy install.

Amazon's Kindle Book Creator

Yes you guessed it, YET ANOTHER EDITOR ... this time written (partly) in Scala, presenting, claim to fame ? Welll, it's a lot like Emacs ?

Scaled

Wednesday, December 3, 2014

Re-look at circleci part duex a review ?

One great comment from part 1 of this post is the fact that circleci does not really support parallelism like they promised for Open Source projects.

Finding no information on any searches on how to enabled it, I finally contacted their support team on their "hip chat" app and got response immediately. Turns out it's a bug on circleci itself and they have since enabled it.

I can now have 4 parallel cores or instances or whatever you want to call it for my project which is good. As supports go, I feel ... uh supported well by circleci group of support folks. They are responsive and they get back to you quickly.

After parallelism, I want to try deployment for my project next to see how that performs.  However, as my project itself is so simple with just one test, would be rather big of a stretch trying to parallelism to work on it. Perhaps should try parallelism on some other project that I have. 

Checkout the screen below for what the parallelism screen should look like for an open source project:


Saturday, November 29, 2014

Re-look at circleci

Recently got an email from circleci.com announcing that they were changing some of their pricing models effectively making OpenSource projects free to run on circleci. Well let me just directly quote them:

While on the free plan you can run 1 build for private repositories and 3 builds for public repositories simultaneously. All other builds will queue and run once the earlier ones finish. You can always add additional containers to run more builds simultaneously or take advantage of parallelism and get your test suite running faster.

For the full link to their announcement fly on here


On the band wagon I was in less than 2 seconds. I had to scratch that niggling itch I had initially of not being able to get it to work with Radpath, my Elixir baby.

I am glad I did. There are some things I really like about it:

  1. The main thing. Cache folders period. The ability for me to set cache folders greatly cuts down on the time it takes to run tests. For Radpath, it completed first way ahead of Travis and Drone. This to me is the main reason I started paying attention again.
  2. Ability to let you open up a ssh session to check on running test by just the flick on an option. It's slightly rough and induced a few minutes of head scratching, but I am glad this is there.
  3. Parallelism sounds just great to me, and I am itching to try this feature next. 
  4. The configuration file does not require you to understand rocket science and is pretty much self explanatory. See below
  5. Great support. I got personal emails from some of their devels even though I was still pretty much a freeloader up until now. 
Check out the sample configuration file below:



For those running Elixir projects, you can use my ci scripts as a sample:

https://github.com/lowks/Radpath/

They do support quite a wide range of languages out of the gate:
  1. Ruby/Rails
  2. Python
  3. Node.js
  4. PHP
  5. Java and even
  6. Haskell
Other languages you can still get at it using custom installations
So, yes second time around testing with CircleCI, they have got my attention. I am curious to see what they are up to next. Try it, who knows you might just be pleasantly surprised. Happy CI-ing!


Friday, March 28, 2014

Elixir and breakage on Travis

Development on Elixir is still moving at break neck speed and currently they have bumped up their Erlang version to support RB17-r1 for the map support.

There is a lot of delicious goodness that will eventually come but this also causes a lot of fun breakage on Travis and Drone.io if you test your projects there.

Currently while Travis supports RB17-r1 in their otp_release, you might want to choose not to test your apps against that. If that is the case, you can change your .travis.yml from using trunk to using a release by changing the steps a little bit:

 
otp_release:
     - R16B03-1
before_install: 
     - git clone git://github.com/elixir-lang/elixir
     - cd elixir && make && cd ..
 before_script:
    - "export PATH=`pwd`/elixir/bin:$PATH"
    - export PATH=`pwd`/elixir/bin:$PATH
     - MIX_ENV=test mix do deps.get
 script:
     - MIX_ENV=test mix test
 
To:
 
otp_release:
    - R16B02
before_install:
    - wget -c https://github.com/elixir-lang/elixir/archive/v0.12.5.tar.gz
    - tar -xvzf v0.12.5.tar.gz
    - cd elixir-0.12.5 && make && cd ..
before_script:
    - export PATH=`pwd`/elixir-0.12.5/bin:$PATH
    - MIX_ENV=test mix do deps.get
    - MIX_ENV=test mix do deps.compile
script:
    - MIX_ENV=test mix amrita --trace 

 
 
The drone.io settings should be something similar. 
 
Found a better way of doing this which is you don't really have to use the manual wget method but you can just clone the repo then check out a branch within it. That way you don't have to tangle with all the version string messiness. Check out my final version:

https://raw.githubusercontent.com/lowks/Radpath/master/.travis.yml

Monday, March 17, 2014

Eixir: Radpath -> A library inspired by Python's enhpath.py

Have not been spending a lot of quality time with Python these days, rather have been trying my hand at being a polyglot and trying out a few of them new languages over the horizon like:

I tried these languages mostly through the exercises in exercism.io which was really a refreshing time away from my beloved Python who I have used for years. Taking a holiday away from the true and tried sometimes and going on the path of least traveled can provide refreshing view on what you are doing and bring you back charged up with ideas. 

Out of all of them, Elixir with it's famous "|>" pipe-lining stuck with me and seemed to map with the noggin' the most with it's root mostly planted on the Ruby sphere with some Erlang love sprinkled here and there.

While using it's File and Path library, though I missed a lot of the OO style Python libraries, and seeing as how there didn't seem to be any good ones out there, I decided to go home one weekend and roll my own! There and behold, Radpath was born! I have only implemented some very basic functions like file listing with filtering, directory listing, and tempfiles.

While this is not really a Python post per-say, but I would say that the main inspiration for this library is the multitudes of great OO path libraries I have had the pleasure of using for all my time in Python, so enjoy the library and don't forget to leave a suggestion or two.

Monday, January 13, 2014

hsandbox: REPL-ing where there is none!

Yesterday while tinkering around with the go language and in the process of finding a nice REPL shell for it, I found this delightful little project called hsandbox. It's written in Python and employs a screen session with some clever engineering in the back end to provide you a nice REPL screen without installing anything extra on your machine. Just what I needed. Currently, hsandbox supports:


  •     C (hsandbox c)
  •     C++ (hsandbox cc)
  •     Clojure (hsandbox clj)
  •     C# (mono) (hsandbox cs)
  •     Erlang (hsandbox erl)
  •     Go (hsandbox go)
  •     Haskell (ghc) (hsandbox hs)
  •     Java (hsandbox java)
  •     Javascript (Node) (hsandbox js)
  •     Lua (hsandbox lua)
  •     Objective C (hsandbox m)
  •     Pascal (gpc) (hsandbox pas)
  •     PHP (hsandbox php)
  •     Perl (hsandbox pl)
  •     Python (hsandbox py)
  •     Ruby (hsandbox rb)
  •     Shell (sh) (hsandbox sh)
A screenshot of hsandbox running lua is shown below. The one thing that would be nice which I have asked for is the ability to clear the screen with a switch.


Ingenuity with the available tools always gets my respect! Bravo! Try it and see what you think.

Wednesday, November 6, 2013

Daily usecases for a torchlight in a geek's life


Recently I purchased a Fenix PD-32 torchlight and have been getting endless questions about the whys and the uses I have for my torchlight, especially when people see it peeking out ever so slightly from my pocket, so in order to put these questions or part of them to rest let me list down here the use cases my torch sees throughout a typical day.

The Fenix range of EDC (Every Day Carry) torchlights are not your typical torchlights. They are of higher end quality and are built tougher than the free torchlight that comes together in the package of batteries you bought at your local mini mart. 

  1. As a "lantern" during those late nights when you family is asleep and you are still in owl mode. Scenario: The room is dark and you don't really want to switch on any lights so as not to wake up your wife and your baby when you are groping around trying to look for that damn thumbdrive which you copied your movie into. Trust me during this time a torch is invaluable.
  2. During the day when you are driving around suddenly you want to check what is that rank coming out of your car's AC system. Nothing works better than a good torch in these conditions. Great for checking if your car is okay too after you scraped through a particularly bad road bump.
  3. The torch is built with higher end steel, with higher end material. In some really boring long meetings, I just want something something warm and non threatening to hold and play around in my hands. I tried using a folding knife for this end but let's just say the outcome of the meeting not to mention the look of the other participants of the meeting was not that favorable. 
  4. As a source of light instead of using your iPhone during the night. Come on, using your phone as the light source is so-un-geek and yesterday. Besides, moving around my house during the night with the Fenix makes me feel like a badass cat burglar or a cop investigating a crime scene. You might have to do a bit of explaining though if your neighbors happen to think the same thing when they see the light of your torch.
  5. You are not a fully qualified geek when you did not have to go into a dark server room after a blackout to restart back servers. The ideal server room is fully lit and after the electricity is restored you should never have to use a torch, but then ideal case ? In this world ? Under the floor paneling ? Get a torch!
  6. Get the right kind of torch, like in my case and you give yourself reason to get more geeky hardware like a lithium battery charger! Great fun! More stuff to hide away from the Missus or SWMBO.
  7. Great way to impress other geeks by submerging your torch in water or throwing it 1 meter away only to reveal it's unscathed. 
  8. I run barefoot at night and sometimes the wee mornings and while I do not really encounter broken glass on the road all the time, the ones that I do see are usually the sharp brown type which is nearly invisible in some of the times I run. Little torch has saved my soles on numerous such occasions.