Saturday, August 13, 2011

Install Python Code Coverage in Ubuntu 11.04

Just started to learn using Python on Linux. For me, the most troubling stuffs is to get the program installed over Linux.


Anyhow, these are prerequisites,

  • You have Python installed. Ubuntu comes with Python2.7. But, you can install Python 3.2 following another post 
  • Python Setuptools. If you don't have this, you can install it by 
  • $ sudo apt-get install python-setuptools
    


These are steps to install Python Code Coverage
  1. Download the Python Code Coverage from http://pypi.python.org/pypi/coverage. As of writing, the version is 3.5
  2. extract the tarball to a folder, .e.g. ~/Downloads/coverage-3.5
  3. In Ubuntu, the default python is 2.7. It will install to /usr/local/lib/python2.7/dist-packages/
newgear@ubuntu:~/Downloads/coverage-3.5$ sudo python setup.py install -v

Or, you can do this to install to Python 3.2. It will install to /usr/local/lib/python3.2/dist-packages/

newgear@ubuntu:~/Downloads/coverage-3.5$ sudo python3.2 setup.py install -v

Monday, August 8, 2011

Install Python 3.2 on Ubuntu 11.04

Ubuntu comes with Python 2.7, but I want to try out Python 3.2.x. After some google searches, I cannot just remove Python 2.7 and install 3.2.x, as Ubuntu's other modules requires 2.7


But, you can have Python 3.2.x coexist with Python  2.7. This is how:





Launch Ubuntu Software Center, then search Python 3.2. Select Python 3.2 and install





After that, you can run Python 3.2 in terminal like this


newgear@ubuntu:~$ python3.2
Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=2, micro=0, releaselevel='final', serial=0)




Friday, August 5, 2011

ASUS U43JC: Upgrade to Intel Advanced-N 6205 or 6200 Wireless Card

I just recently upgraded the my ASUS U43JC's wireless card to Intel Advanced N 6205. The benefit, comparing to stock Intel Wireless 1000 card, is

  1. Support dual band: 62xx support both 2.4Ghz and 5Hz frequency band.
  2. Better wireless performance:
    • 1000 is 1x2 300mbps receive, 150mbps transmit
    • 6200 is 2x2 300mbps receive, 300mbps transmit


Instructions

  1. Buy a compatible wireless card : The ASUS U43JC has only two antennas, so your best bet is Intel 62xx series. 6300 would need 3 antennas, hence it will be waste -- unless you want to mod your U43JC to add a 3rd antenna.  You have several options on 62xx,
    1. 6200 and 6205: Reading the product brief, I did not see any differences in terms of feature sets. So, I end up buying Intel Advanced-N 6205 (62205AN.HMWWB) from ebay for $18 + $4 shipping, as it's the cheaper than 6200. 
    2. 6230: has integrated Bluetooth. If you want  Bluetooth option, you can try this. Though I have NOT tested it.
    3. 6250: has WiMax. Don't know if this will work. Plus, I don't need WiMax servies anyway.
  2. Download software and driverGoogle "intel wireless 6205 driver download" should lead the Intel Driver download site. My U43JC is running Windows 7, 64 bits, so I downloaded "ICS_s64.exe".
  3. Remove Screws : Remove battery, and disconnect power adapter first. Then, start to removes all screws. The screws are in various sizes,  so make sure you keep track where the screws are removed. I lined them up on the table, just like the orientation on the notebook. 
    1. Remove all the visible screws in the back.
    2. Remove DVD burner,  the screws behind the DVD burner  
    3. Take out hard drive bay cover, and hard driver. Then, remove the screws behind the hard drive.
    4. Take out memory bay cover, and remove the screws near the memory
    5. Remove the screws behind the two rubber feet near the hinge.
  4. Lift up the keyboard
    1. Starting from the corner, I use a plastic card to pry open the keyboard slowly. You only need little force to lift up the entire keyboard. If it gets stuck, it is more likely the screws are not completely removed.
  5. Replace the wireless card
    1. You don't have to remove any ribbon cables. Remove the 2 screws around the  wireless card and antenna cables. Then, replace with new card.
  6. Install Driver and Testing
    1. Temporarily put back the hard drive, connects to the power adapter. Your U43JC will boot up, then install the new software driver. After the software driver installation completed, do some testing to make sure the new card is good. In my master bedroom, I used to get poor reception. With the new card, I can get around 24Mbps speed.
  7. Put the screws back.
    1. At this point, you are all set. Just put everything back, Hard Disk, DVD burner, and .. etc.