Posts

Grep option from Jua

Today tasks, when we want to grep something we use >> ls -l | grep Jua tell me, if i need everything except >> ls -l | grep -v    # I think it's come from exclude by help said invert match!!! ### Thank Jua :) Anyway, we can use some simple regular expression by >> ls -l | grep -e [regex] such as >> ls -l | grep -e ^B

Clean chroot manually

I mess around schroot, chroot and mkschroot(  https://github.com/KayEss/mkschroot  ). Done something with blind but do not want to remove them with blind So!!! thank for link at the page's bottom. The instruction below are what I have done for remove unwanted chroot. 1. Check mounted sys by     >> df -ah     * you will see chroot mount path. 2. Goto /var/lib/schroot     - remove your's chroot inside session's dir     - do unmount  proc sys dev/pts dev tmp  in your's chroot from mount's dir     * I'd use     >> for f in proc sys dev/pts dev tmp;do sudo umount $f;done;     - do unmount your's chroot     thank for  http://manpages.ubuntu.com/manpages/natty/man7/schroot-faq.7.html

Write a better python with Guide

I found this during i sit down in Lib of Burapha U. http://docs.python-guide.org/en/latest/ , it look like interesting guide and worth to read. :) thanks, hitchhiker

Pygame dependencies

http://www.pygame.org/wiki/CompileUbuntu Python 2.x #install dependencies sudo apt-get install mercurial python-dev python-numpy ffmpeg \ libsdl-image1. 2 -dev libsdl-mixer1. 2 -dev libsdl-ttf2. 0 -dev libsmpeg-dev \ libsdl1. 2 -dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev   # Grab source hg clone https://bitbucket.org/pygame/pygame   # Finally build and install cd pygame python setup.py build sudo python setup.py install

Wireless card looping write log

If you found these line in your kern.log, syslog Jan 27 13:54:51 xango3 kernel: [98499.658770] ERROR @wl_cfg80211_ get_station : Could not get rate (-1) Jan 27 13:54:51 xango3 kernel: [98499.658778] ERROR @wl_cfg80211_ get_station : Could not get rssi (-1) Jan 27 13:54:52 xango3 dhclient: DHCPREQUEST of 192.168.1.133 on eth2 to 192.168.1.2 port 67 Jan 27 13:54:56 xango3 kernel: [98504.646146] net_ratelimit: 22 callbacks suppressed Jan 27 13:54:56 xango3 kernel: [98504.646152] ERROR @wl_cfg80211_ get_station : Could not get rate (-1) Jan 27 13:54:56 xango3 kernel: [98504.646158] ERROR @wl_cfg80211_ get_station : Could not get rssi (-1) Jan 27 13:54:57 xango3 kernel: [98505.562569] ERROR @wl_cfg80211_ get_station : Could ... That mean something happen like in  https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1107155 and Oedipe point me to the exit " Well, after some hours trying to solve the issue, i found the trick ! (it does work for me on a Lenovo with a BCM4...

My current xorg.conf 20130319

Compiz Fusion -> compiz selected Enabled -> Additional Drivers for ATI/AMD, Broadcom STA wireless driver  ================ Begin Section "ServerLayout"         Identifier     "amdcccle Layout"         Screen      0  "amdcccle-Screen[2]-0" 0 0     Screen      1  "amdcccle-Screen[2]-1" 0 0         EndSection Section "Module"         Load  "glx" EndSection Section "ServerFlags"         Option      "Xinerama" "off" EndSection Section "Monitor"         Identifier   "0-LVDS"         Option      "VendorName" "ATI Proprietary Driver"         Option      "ModelName" "Generic Autodetecting Monitor"         Option      "DPMS" "true"       ...

Mysql Command Pages Links

http://www.pantz.org/software/mysql/mysqlcommands.html  ( thank pantz )