Posts

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 )  ...

Cannot change brightness setting using function button or the brightness

I'm got new machine from new workplace, It's HP Probook. It's look quite good but I have got a problem about changing screen brightness doesn't work. So I google and found this https://askubuntu.com/questions/332657/cannot-change-brightness-setting-using-function-buttons-or-using-the-brightness, This blog put me through that problem. So this is my note sudo vi /etc/default/grub for this var GRUB_CMDLINE_LINUX="", set value "acpi_backlight=vendor" sudo update-grub restart then , yeh, many thanks for https://askubuntu.com/users/183206/aaditya-bagga

9 Awesome Google features we should use [memo]

9 Awesome Google features we should use Google Flight Search usage : "flight from to Google Public Data Explorer usage : "unemployment in the u.s." Google Translate usage : "translate to " Google Nutrition Comparison Search usage : "compare broccolli and asparagus" Google Definition usage : "define " Google Convertion usage : "convert eight ounces to cups" Google nGrams : We can search how many times specific words occur. Google Sky Exclude Search Term usage : "puppies -sales" ; you don't want sites that sales in the result. Reference  and thank to (Kim Komando - www.komando.com)

Using git with my case #1

Using git with my case #1 Display branch >>> git branch -a -v >>> git branch -r ; display remote branches >>> git remote update origin --prune Delete branch >>> git branch -d ; delete local branch >>> git push origin : ; delete remote after delete local branch >>> git push origin --delete ; delete remote Get data from remote ( origin ) >>> git fetch origin ; get info of remote branch to our local machine note*     git pull do         1. git fetch         2. git merge Diff local with remote or others >>> git diff >>> git diff ; diff local branch with remote branch Fetching >> git fetch ; fetch all branches heads >> git fetch --tags ; fetch all tags Start Hotfix 1. Check latest tag     >> git fetch --tags 2. Start hotfix tags     >> git tags ; check latest tags     >...

Think of using Xvfb

Xvfb - X Virtual Frame Buffer Xvfb  is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. ผมค้นพบโปรแกรมนี้ เนื่องจากความต้องการที่จะทำ UI Test ซึ่งเป็นส่วนประกอบย่อยของระบบ Continuour Integration ที่ผมพัฒนาอยู่ (ตอนที่เขียนบทความนี้ โครงงานที่ทำอยู่หันไปใช้ phantomjs แล้ว :P ) ผมเห็นความเป็นไปได้ในการเอาโปรแกรมนี้ไปใช้ซึ่งมีคนเอาไปทำแล้วอย่างเช่น plugin ที่ใช้ใน jenskin (CI). และแน่นอนผมคาดว่ามันจะสามารถทำงานกับ selenium ทีเวลาที่ตัว selenium ทำงานจะเปิดหน้า webbrowser ขึ้นมา สำหรับงานเทสระบบเว็ป โปรแกรมนี้น่าจะเป็นอะไรที่เข้าทางเลยทีเดียว :) Reference xvfb -> http://www.x.org/archive/X11R7.7/doc/man/man1/Xvfb.1.xhtml buffer - > http://en.wikipedia.org/wiki/Buffer_(computer_science) frame buffer -> http://en.wikipedia.org/wiki/Framebuffer jenskin-xvfb-plugin -> https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin