My very own emacs setup

After years of using a fork of emacs-starter-kit, today I decided to start a fresh setup.

Please feel free to do comments and suggestions on what I should use or what I’m missing.

stoweboyd:

The Tata AirPod is a city car running on compressed air (as well as a battery-powered electric motor). The ease of converting air into an energy source using simple compressors means charging stations can be placed anywhere, and they require no provisioning — no trucks delivering gas, ethanol, or hydrogen — and they produce no emissions, just discharge of the air.

The AirPod can run 125mi (200k) at a top speed between 28 to 43mph (45 to 70kph). The car is intended for a single rider, and has a small cargo area in the back.

This is breakthrough design: it undercuts most of the negatives of the system it is designed to replace. And unlike other alternatives to traditional cars, it does not require an entire supply chain to exist before becoming practical in a single location. A city like New York could roll out a citywide fleet of AirPods Just like it is rolling out a bike sharing program (although the city’s bike share program has been delayed). It doesn’t need to build nuclear reactors, or deal with some hard-to-transport alternative fuel. In fact, New York City could simply repurpose existing gas stations or parking lots with compressors, and card readers. 

Totally awesome. Here’s the future. There Just need to make them stackable, like this:

My servo controlled by serial input

My first ‘real’ project, in which I’m planning to use Arduino is the use of a motor to move my blackout synchronized with my snooze.

So I decided that my first step is to control a servo using serial communication to move forward or backward the motor, accordingly with my keyboard input (’s’ and ‘w’).

CodeAssembly Video and

Video of controlling a servo using my keyboard:

Hello World!

Today I bought my Arduino starter kit

 

And I used the Fade example as Hello World

My running example:

Personal Memo

install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib ~/.rvm/gems/ruby-1.9.3-p125\@MIMO/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle

clojure koans first stopper solved

Yesterday, I started the clojure koans, and all the koans related with the data structures were to easy and showed how easy and cool data structures are at clojure, but I got my first stopper :) when I was faced with a higher order function that I’d completely forgot.

What are higher order functions?

They are functions that have at least one of the following properties

  • Return functions (for example functions that are mapped to other functions like Integration - Calculus)
  • Take at least one function as a paramater (function composition g(f(x)))

From my examples looks like I hadn’t forgot what is a mathematical higher function, and the functions composition case remember me, the C/C++ feature to receive functions pointers as parameters ;) quick example at http://www.cplusplus.com/reference/clibrary/cstdlib/qsort/

My solution for the first higher order function koan https://github.com/sarcilav/clojure-koans/commit/cd2f89e5620a4a195c03d7e71e8bc8827b045345

You could check my solutions at https://github.com/sarcilav/clojure-koans/tree/solutions

Thoughts? Suggestions?

Trying clojure-koans

Let’s see if clojure koans is a good approach to clojure as ruby koans is to ruby.

Why I like ruby koans approach

Koan is used in Zen-practice to provoke the “great doubt”, and test a student’s progress in Zen practice.

Basically because they let you learn by examples and show the corner cases of situations that you will find in the wild when you are working with the language.

Other reasons are:

  • It introduces unexperienced developers to the red-green cycle, that we will use later on projects (TDD).
  • They usually show how to test/code in more than one way the same piece of code
  • It introduce important things as debugging and error handling

I’ll update later this week, with my thoughts on clojure koans

The Dynamic Hungarian Algorithm for the Assignment Problem with Changing Costs

After postponing this read like a year, is time to face it