Posts

The beginning of my's Elixir

Introduction I just start new job. All work I assigned about elixir. Currently, i'm working on replacing rail's service with elixir( use phoenix framework as api endpoint ). It's quite good now because I came from python's background. Elixir 's Installation - We need erlang installed [linux] sudo apt-get install erlang [osx] brew install erlang Then [linux] Goto https://www.erlang-solutions.com/downloads/download-elixir, you may download deb file for ubuntu or whatever distro you have. [osx] brew install elixir [ping me, if i'm wrong :p] If you come to this line, let's >> mix help mix                   # Run the default task (current: mix run) mix app.start         # Start all registered apps mix archive           # List all archives mix archive.build     # Archive this project into a .ez file mix archive.install   # Install an archive locally mix archi...

Using "wget" to check web server status

Please use this # wget -O - | grep -O : indicate output filename - : send content to std output ref www.terminalinflection.com/using-wget-to-test-web-server-connectivity/

Backup my kubuntu 14.10 settings

Before I get other machine, I want to thank to my x230, you're so cool!!! Style widget style : QtCurve Icon theme : numix circle Font liberation use anti-aliasing : enabled use sub-pixel  rendering : RGB hinting-style : slight Window Decorations QtCurve Desktop Theme Glaze

Connect Oracle from Django 1.7 (Linux)

Hi, today I'm gonna create new Oracle's related Project with Django 1.7.  My setup is  Kubuntu 14.10 First thing I will have to have installed oracle-client. You should download these files below from oracle website oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-jdbc-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-odbc-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-tools-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm Then we would use 'alien', which is linux application that can convert rpm to deb. By doing this >>> sudo alien *.rpm Then use dpkg install them all >>> sudo dpkg -i *.deb Next , edit your bashrc file, by add export ORACLE_HOME=/usr/lib/oracle/12.1/client64 PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib Create virtuaenv or pip to your env >>...

Setup environment for python developer in windows :)

Hi my friend :)     Sometime I may have a change to develop something in window, this is a guide to get python development up! Actually I just found powershell, interesting!!! http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/ https://pip.pypa.io/en/latest/installing.html

Try ubuntu 14.04 on my old macbook pro late 2009 (Part2)

Try ubuntu 14.04 on my old macbook pro late 2009 (Part2) I trying to do something to make touchpad feel same as in OSX This is one I can find Section "InputClass"         Identifier "touchpad catchall"         Driver "synaptics"         MatchIsTouchpad "on"         Option "FingerHigh" "10"         Option "FingerLow" "1"         Option "TapAndDragGesture" "off"         Option "PalmDetect" "on" EndSection Section "InputClass"     Identifier         "Touchpad"     Driver             "synaptics"     MatchIsTouchpad    "on"     Option         "ClickFinger3" "2"     Option         "HorizTwoFin...

Try ubuntu 14.04 on my old macbook pro late 2009 (Part1)

Aha, This is what I dream for long time to get Linux on MacBookPro. This is what I have done Start with DVD Ubuntu 14.04 I found a loud noise of fan, so I did     sudo apt-get install lm-sensors fancontrol     sudo pwmconfig (don't know what this command did, but I notice nothing)     sudo sensors-detect (last step, did allow it to auto load) I found that I can't adjust brightness so I did     edit /etc/rc.local         put this             echo '1' > /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness             echo '5' > /sys/class/backlight/apple_backlight/brightness     for 2 steps above, I'm not sure if they work or not but I did more         sudo nvidia-xconfig ( got invalid xorg.conf )  ...