27

Jan

Command-Line Javascript (CLI) On Mac OS-X

14

Dec

Configurar el Huawei E1756 de Movistar en Mac OS X 10.7

Movistar no da soporte para el uso de su Internet Móvil en Mac OS X 10.7 (Lion), solamente soportan desde 10.4 hasta 10.6. Sin embargo, si funciona, he aquí lo que yo hice para configurarlo:

De la página de Movistar sigues las instrucciones para descargar e instalar el Escritorio Movistar

Cuando lo instales es muy probable que te de un error como me ocurrió a mi

No te preocupes, hazle un restart a la máquina y en tus aplicaciones vas a tener el “Escritorio movistar Latam”, arranca la aplicación, en mi caso la aplicación detectaba el modem Huawei pero no se conectaba, si te ocurre lo mismo, ve a “Escritorio Movistar Settings” y vas a “My Internet connections”, ahi editas la conexión por defecto o creas una nueva (y la luego la marcas como por defecto).

Los cambios que hay que hacer en la conexión son:

  • Identification: Username y Password dejarlos en blanco 
  • APN: ingresas internet.movistar.ve 
  • DNS: ingresas 200.35.65.3 y 200.35.65.4 
  • Proxy: “Do not use proxy” 

Guardas los cambios (recuerda que la conexión debe ser la usada por defecto) Y eso es todo, ya deberías poder conectarte

14

Nov

Rails 3 :: Not abandon sending mail within ActionMailer action

In ActionMailer (Rails 3) you can’t decide not to send an email. For instance, you have the following mailer:

class FooMailer < ActionMailer::Base
  def bar_email
    if some_condition
      mail(...)
    else
      # Can I do nothing? No :-(
    end
  end
end

If you invoke FooMailer.bar_email.deliver!, when same_condition is false you will get the following error:

ArgumentError: A sender (Return-Path, Sender or From) required to send a message

The workaround for that is move the condition to the place where you are making the call to FooMailer.bar_email.deliver!

10

Nov

How to link your git project with an existing Heroku app

To add your Heroku application as a remote in your git repository, use the following command:

git remote add heroku-remote git@heroku.com:project.git

Where project.git is your heroku application, and heroku-remote the name you want for the remote, in my case I usually have several remotes, one for production, staging and dev

Introduccion a NoSQL

Esta es la presentacion que di en el BogotaConf (@bogotaconf) sobre NoSQL

17

Oct

SublimeText2 - Check ruby syntax after save

Edit the file: /path/to/SublimeText2/Packages/Ruby/Ruby.sublime-build to contain this:

{
    "cmd": ["/path/to/ruby/bin/ruby", "-cw", "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.ruby"
}

Then create the following file /path/to/SublimeText2/Packages/User/ruby_check.py:

import sublime, sublime_plugin

class rubyCheck(sublime_plugin.EventListener):
    def on_post_save(self, view):
        if view.file_name()[-3:] == '.rb':
            view.window().run_command("build")

Now when you save your ruby file automatically the syntax will be checked

Here the gist

06

Oct

I’m still a work in progress

from: me

to: my future me

02

Oct

All things in the universe start from a point and return to a point. One point calls up a new point, and extends into a line. Everything is a scene of gathering and dispersal of points and lines. Existence is a point and life is a line, so I am also a point and a line
Lee Ufan

29

Sep

Git pull from a wrong branch?

If you’re working in your feature-branch:

git checkout feature-branch

and by mistake you pull from a wrong branch (usually master or develop):

git pull origin different-branch

You can fix it with this:

git reset --hard origin/feature-branch

09

Sep

Google: ✔

Google: ✔