sarcilav
sarcilav
Sebastian Arcila-Valenzuela
33 posts
Programmer, Nerd and Pizza lover :)
Don't wanna be here? Send us removal request.
sarcilav · 11 years ago
Text
BH - Brasilia - Cuiaba - Rio - Fortaleza ? BH ? Rio
Será será, que damos la vuelta completa?
0 notes
sarcilav · 11 years ago
Text
Brasilia o_O
Después de pasar las emociones del primer juego contra Grecia y estar en Brasilia, un poco más tranquilo de haber alejado los fantasmas de las pasadas fases de grupos.
Espero mañana volver a salir con la misma alegría del partido anterior más la alegría de estar en octavos =)
Por el otro lado Brasilia no puede ser más aburrida :P
1 note · View note
sarcilav · 11 years ago
Text
Vuelve a nacer una nueva ilusión
Después de 16 años y haber visto la ultima vez a Colombia jugar en Francia con casi 10 años, hoy siento una mezcla de alegría y tristeza, es una sensación que no se como describir creo que es como volver a casa después de mucho tiempo, o comer esa comida de casa que no sea probado por muchos años.
Con gran pasión espero poder disfrutar el mundial, pero también espero que esos fantasmas de los mundiales pasados desaparezcan.
1 note · View note
sarcilav · 11 years ago
Text
Partiu pra copa! / Me quede encerrado en el Benito
Por más increíble que parezca, uno se puede quedar encerrado en un aeropuerto porque una aerolínea crea que este itinerario tiene lógica y más sabiendo que yo no compre el tiquete por trayectos sino un viaje a Brasil, lo más increíble es que no veo como se le puede pasar a una persona o un software un error de ese estilo.
Además justamente ayer me llego el trip reminder 'bueno'.
En fin, espero que esto solo sea un mal paso, para mi primer mundial
0 notes
sarcilav · 11 years ago
Link
UICollectionViewAndTeaCupExample - A simple example on how to use rubymotion with UICollectionView and TeaCup
0 notes
sarcilav · 11 years ago
Text
Emacsclient not working after updating to Mavericks
Today I finished my update to Mavericks and for some reason emacsclient was saying that it can’t find a socket.
After rechecking and restarting my emacs server it kept saying the same, so for a couple of seconds I thought that my compiled version of emacs decided (https://github.com/sarcilav/dotemacs) to stop working, because when I tried to use the default emacs version of OS X, emacsclient worked again, so it was clear that something had changed and it was my emacsclient version, because for some reason after the update, it removed my symbolic link to the emacsclient-v24 and put its very own version of emacsclient-v22.
So my solution was just to replace (again) the 22 version by my own version.
0 notes
sarcilav · 12 years ago
Text
Authy Clojure
I've been studying clojure, and this is my first project/lib https://github.com/sarcilav/authy-clojure
Here is the entry at clojars https://clojars.org/authy-clojure
PD: I'm still learning clojure and about it's community, please let me know what do you think
0 notes
sarcilav · 12 years ago
Text
Magick Round Corners
Sometimes you will need to generate assets with round corners.
For example for mobile devices or so, to serve from an api or whenever you can't use css.
For these cases you can use https://github.com/sarcilav/magick_round_corners
It is easy to use. Just look:
require 'RMagick' require 'magick_round_corners' image = Magick::Image.read('sample.png').first # => sample.png PNG 300x300 300x300+0+0 DirectClass 8-bit 976b rounded_corners_image = image.round_corners(50) # => sample.png PNG 300x300 300x300+0+0 DirectClass 8-bit rounded_corners_image.write('output.png') # => sample.png=>output.png PNG 300x300 300x300+0+0 DirectClass 8-bit
0 notes
sarcilav · 12 years ago
Text
Postgis doesn't provide a postgis template (-__-)
Today I was trying to use postgis adapter on a rails project but I got the following when tried to create a new DB with postgis
PG::Error: ERROR: template database "template_postgis" does not exist
After looking into the error it was pretty clear that I was lacking that template
This blog post http://abdulzahraalameri.blogspot.com/2011/05/create-templatepostgis-database.html was exactly why I needed to solve
#pg
0 notes
sarcilav · 12 years ago
Link
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.
0 notes
sarcilav · 13 years ago
Photo
Tumblr media Tumblr media
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:
Related articles
Tata commercializing an air-powered car (reviews.cnet.com)
Tata Brings Air Powered Car to India, Calls it AirPod (Video) (onlygizmos.com)
Flat Tire! Mayor Bloomberg Says Citi Bike Share Program Will Not Launch Until Spring, Blames Software (observer.com)
Are Air Cars Really An Option, Or The Next Alt-Fuel Joke? (greencarreports.com)
11K notes · View notes
sarcilav · 13 years ago
Text
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').
Code, Assembly Video and
Video of controlling a servo using my keyboard:
6 notes · View notes
sarcilav · 13 years ago
Text
Hello World!
Today I bought my Arduino starter kit
  And I used the Fade example as Hello World
My running example:
1 note · View note
sarcilav · 13 years ago
Link
0 notes
sarcilav · 13 years ago
Text
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 ```
4 notes · View notes
sarcilav · 13 years ago
Text
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?
1 note · View note
sarcilav · 13 years ago
Text
Trying clojure-koans
Let's see if [clojure koans](https://github.com/functional-koans/clojure-koans "Clojure Koans") is a good approach to clojure as [ruby koans](http://rubykoans.com/ "Ruby Koans") is to ruby. #### Why I like ruby koans approach *[Koan](http://en.wikipedia.org/wiki/K%C5%8Dan "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
1 note · View note