elranu-blog
elranu-blog
Ranu's blog
276 posts
Catching ideas
Don't wanna be here? Send us removal request.
elranu-blog · 11 years ago
Text
Git line endings in windows
Git was changing my line endings in my Visual Studio solutions. Specially the line endings of the files in the packages folder. I turned off clrf,   with git config --global core.autocrlf false, but it did not work. I have tried several things. But I could not find how to prevent that git not change the line endings of the files I did not touch.
Finally here is the solution:  
git config --global core.autocrlf true
git config --global core.safecrlf true
Safecrlf must be in true!
0 notes
elranu-blog · 11 years ago
Text
Check nullness in javascript
I have seen many code that check nullness or string empty. Like the following:
if(someVar === null || someVar === undefined || someVar === ""){ //some code } You can have the same result like this:
if(!someVar){}
Check it working if you don't believe me:
JS Bin
0 notes
elranu-blog · 12 years ago
Link
Install tight VNC: “sudo apt-get install tightvncserver”
Run the program: “tightvncserver”
Start a VNC session: “vncserver :1 -geometry 1280x720 -depth 16”
0 notes
elranu-blog · 12 years ago
Text
Json to html form
If you want to transform a json quickly into a form just execute this script:
link
JS Bin
0 notes
elranu-blog · 12 years ago
Photo
Tumblr media
Naming is the Key form: geek and poke
2 notes · View notes
elranu-blog · 12 years ago
Photo
Tumblr media
from: http://geek-and-poke.com/
0 notes
elranu-blog · 12 years ago
Link
Lately I have been very frustrated with RequireJS. I have a feeling that I have to fork almost every third party library I’m using in my projects. So I started investigating Browserify as an alternative. Here’s what I found.
Link - 
http://esa-matti.suuronen.org/blog/2013/03/22/journey-from-requirejs-to-browserify/
0 notes
elranu-blog · 12 years ago
Video
youtube
Cool video in HD - Best of Web 4 
0 notes
elranu-blog · 12 years ago
Text
Some tuning apps and shortcuts for Ubuntu
I'm using again Ubuntu and here some apps you should download to tune Ubuntu and some shortcuts to move cool in Ubuntu.
Main menu or Alacarte: is an app to easily modify the the main menu  and create shortcuts in Ubuntu. sudo apt-get install alarcarte
Unity tweak tool: great tool to modify behaviors in the Ubuntu desktop, like to activate workspaces. sudo apt-get install unity-tweak-tool
 Compizconfig: tool to modify keyboard and mouse shortcuts and to modify a lot of Ubuntu desktop behavior and configuration. sudo apt-get install compizconfig-settings-manager
Some shortcuts to move smart in Ubuntu
Ctrl + Alt + Left or Right or Up or Down Arrow: to move between workspaces
Super + s : split desktop with all available workspaces and move between them
Super + w: split desktop with all open windows
Shift+ Ctrl + Alt + Left or Right or Up or Down Arrow: to move current focus window from one workspace to another
Ctrl + Alt + D: Show desktop
Ctrl + Alt + L: Lock screen
0 notes
elranu-blog · 12 years ago
Text
Algunos buenos machetes para GIT
http://www.git-tower.com/files/cheatsheet/Git_Cheat_Sheet_grey.pdf
http://rogerdudler.github.com/git-guide/files/git_cheat_sheet.pdf
0 notes
elranu-blog · 13 years ago
Text
TableMapper: Automatic Table Mapper for Dynamics Ax
TableMapper maps fields from one table to another automatically, if the field has the same name in both tables. It is great to easily create initFrom methods and to populate temporal tables.
Features: 1- Automatic bindings between tables with a few lines. 2- Manual field bindings with the method Bind. 3- Ignore automatic bindings with the method Ignore.
Download: Xpo for Ax 2012 Xpo for Ax 2009 (soon)
To learn how to use it read the test class and the following example:
0 notes
elranu-blog · 13 years ago
Text
No al aborto explicación racional, sin religión y simple
Hace tiempo que tengo ganas de escribir esto aunque mi blog no es de este tipo de conversaciones. Me tome un segundo y lo hice. Esta explicación sale de una discusión con un amigo (@elGranMarco). Para explicar mi argumento tenemos que estar de acuerdo en las siguientes cosas:
Los derechos del niño son superiores a los de cualquier adulto.  Aparte de que lógicamente el 1er derecho del niño es a la Vida.
Cometer un aborto a los entre los 7-9 meses de embarazo es un asesinato.
Matar el embrión, no es asesinato.  Es semejante a matar una célula. Ejemplos: rascarse la piel, masturbarse
El estado debe proteger al más débil
Si estamos de acuerdo con esto, la razón es simple. Hoy no se sabe a partir de que momento la vida celular se transforma en vida humana.  Pero la mayoría, creo, de la gente estaría de acuerdo como los ítems de arriba,  de que hay vida humana en los 7-9 meses y no hay vida humana en las 1eras 4-6 semanas. Aunque la gente religiosa cree que hay vida humana desde que se une el óvulo con el espermatozoide. Razón Si el estado debe proteger al más débil y los derechos de los niños son superiores a los de los adultos. En aquellas zonas grises donde no se sabe si es vida celular o humana.  Se debe optar siempre por proteger al supuesto niño. Equivocarse es muy riesgoso, si el estado se equivoca esta autorizando un asesinato. Aunque la mujer haya sido violada,  sus derechos son inferiores que los de un niño o supuesto niño. Argumentos abortistas Los abortistas son súper racionales y pragmáticos. Que seguramente en otra discusión donde no corra en riesgo la vida de un supuesto niño, estaría de acuerdo. Pero el riesgo es muy grande.
Las clases altas “tienen derecho al aborto” y las clases bajas no. Lógicamente las clases altas salen impunes ante este crimen y una mujer de bajo recursos arriesga su vida si quiere intervenir el embarazo.  Que esto suceda y que gente salga impune, nos les da derecho a otros a hacerlo. Que otra persona cometa un delito no te da razón para vos hacerlo. Se debe perseguir a doctores que hacen estas prácticas, como a cualquier delincuente.
Una mujer violada es una victima. Si, es cierto.  Pero recordemos que los derechos de un niño son superiores. Y la vida de un niño es un derecho superior a los derechos de la madre.
Soluciones
El estado debe mejorar, la educación sexual y garantizar medios anticonceptivos en zonas de bajos recursos.
Mejorar tratamientos para interrumpir el embarazo antes de las 6 semanas. Como píldora del día después. Para eso el estado debe fomentar la investigación médica de estos temas.    
Existen hoy pastillas abortivas. Que funcionan antes de 12 semanas. Para mi es mucho tiempo, ya el feto tiene forma de humano, claramente eso ya podría ser vida humana. Pero considero que son mucho mejores que un aborto clandestino. Tienen menos riegos y son mas baratos. Hay mucha desinformación del tema, inclusive. Si existe esto, para que crear una ley abortista? El gobierno y los medios de comunicación deberían darle mas propaganda a estos métodos y regalarlos.
Más información sobre las pastillas: Link 1 - Link 2
0 notes
elranu-blog · 13 years ago
Text
AX 2012 Finance Relations
I’m starting with Ax 2012, and there are a lot of changes in the code. Almost all the tables of General Ledger are new in Dynamics AX 2012.  It was difficult to understand how the ledger posts are now inserted and their relations. Below some important relations of GL that might help.
How a Ledger post (GeneralJournalEntry) is related with a General Journal Ledger.
How a General Journal Line is related with a  Ledger post (GeneralJournalEntry)
0 notes
elranu-blog · 14 years ago
Text
monogDB support for etherpad-lite
I wrote the following code so that etherpad-lite supports MongoDB. Is a support package for ueberDB project.
0 notes
elranu-blog · 14 years ago
Text
RedisStore and rooms with Socket.IO
Here is my base code I used at my startup PeopleRooms, using RedisStore instead of MemoryStore in Socket.IO. So that the application is capable to scale. And the also the "rooms" feature of Socket.io
0 notes
elranu-blog · 14 years ago
Text
Finalmente entregue la Tesis
Ya había terminado de cursar mi carrera de Ingeneria Informática en el 2005, pero nunca di la tesis, di los finales que me faltaban pero esto entre pitos y flautas siempre lo pateaba.  Bueno ayer por suerte después de tanto tiempo entregue la tesis y la defindi. Así que contento de terminar algo que emprendí hace mucho tiempo.
Para los que les interese mi humilde tesis:
Sistemas de componentes con mínimo acoplamiento
Presentación
Código fuente: http://compactplugs.codeplex.com/
0 notes
elranu-blog · 14 years ago
Text
Muy buenos screencast de .Net en castellano
La gente de la comunidad de Alt.Net Hispano, vienen haciendo mucho screencast  muy piolas de tecnologias, en especial lógicamente de .Net  pueden ver mas de 50 screencast aquí.
0 notes