Saturday, 23 April 2011

Python 2.7 Mac OS X uninstall

The complete list is documented at http://bugs.python.org/issue7107. The following steps are done inside a terminal session and assume you know how to use the command line. All the terminal command lines below are single lines, even if they appear as two lines in your web browser or this blog post.

To completely remove Python 2.7 from my Mac OS X 10.6:

Remove the entry from the PATH variable by reverting my .bash_profile, edit or delete the file:
nano .bash_profile (remove the PATH lines added by the Python installer, they are commented, so you'll se them easily)
Remove the Python 2.7 framework:
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
Remove the Python 2.7 applications directory
sudo rm -rf "/Applications/Python 2.7"
Remove the symbolic that point back to the 2.7 framework in /usr/local/bin:
Find them with the following ls command, then remove with sudo rm -rf like in the previous steps.
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7'
In my case, I typed the following commands following the output of the previous ls line:
cd /usr/local/bin 
sudo rm -rf 2to3 idle idle2.7 pydoc pydoc2.7 python python-32 python-config pythonw pythonw-32 smtpd.py smtpd2.7.py


Information taken from:
http://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4
Credits to the users listed there, especially Ned, who answered the question in such a clear and concise way.

Python on Macs


If you need or want to install and use the latest versions of Python (2.7.1 and 3.2 at the time of writing this post) on Mac OS X, please make sure you read the following web page that contains essential information on what do download and install in order to have a better experience.

http://www.python.org/download/mac/tcltk/

In a nutshell:

"Important
Do not use IDLE or tkinter with the Python 3.2 64-bit/32-bit installer for Mac OS X 10.6 unless you can install ActiveTcl 8.5. Otherwise use the 3.2 32-bit-only installer instead.

Do not use IDLE or Tkinter with the Python 2.7.1 64-bit/32-bit installer for Mac OS X 10.6. Install the 2.7.1 32-bit-only installer instead.

Do not use IDLE or Tkinter with the Apple-supplied Python 2.6.1 in Mac OS X 10.6. Install a newer version of Python 2.6 or later.

Python's integrated development environment, IDLE, and the tkinter GUI toolkit it uses, depend on the Tk GUI toolkit which is not part of Python itself. For best results, it is important that the proper release of Tcl/Tk is installed on your machine." (IDLE and tkinter with Tcl/Tk on Mac OS X)

Wednesday, 26 January 2011

Power Supplies

Power Supply Units, or PSUs, are among the most important components of a computer.



It's not the most famous item, though, with processors, memory, motherboards, graphic cards and hard drives/solid state drives fighting for the spotlight...

Anyway, here are a couple of links that validate both my experience, observation, and yes -- blunders, too.
Titles should be self-explanatory.


Hope you find these links useful!

Saturday, 1 January 2011

Disable hibernation in Windows 7

http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html

Great tutorial, short and sweet. Why would you want to disable hibernation? To save hard disk space. If your computer has 4 Gb of RAM, the system will create a 4 Gb file in order to be able to hibernate.

Therefore, you'd want to disable hibernation especially if you have a desktop computer and/or don't need to use the hibernation feature, which is mainly aimed at laptops.

In a nutshell, you just need to run the command prompt as administrator(AKA elevated command prompt, see screenshot at the end of this post) and type
powercfg -h off
and then press Enter. That's all, folks!

Right-click on the Command Prompt icon and left-click on "Run as administrator"

Thursday, 30 December 2010

Flash for 64 bit Linux

Short post. If you're using a Linux distro for the x64 (x86-64) architecture, this page from Adobe Labs has all the info and istructions you need to install it.

I've tried it and works very fast! So far, haven't had any problems with it.


The way I've done it is to extract the libflashplayer.so from the file (i.e. flashplayer10_2_p3_64bit_linux_111710.tar.gz, just right click on it and choose 'Extract here') and then move it to the /usr/lib64/mozilla/plugins/ folder via the following terminal commands:
cd ~/Downloads
sudo cp libflashplayer.so /usr/lib64/mozilla/plugins/
Of course this is assuming you downloaded the file to your home folder's Downloads folder (the usual case). If you're using Konqueror, you may need to add the Flash plugin by going to Settings>Configure Konqueror>Plugins (last item), then select the Plugins tab, and click on the "Scans for plugins" button.

*Notes*
  • The Adobe Labs link was updated as the preview of  the 64-bit Adobe Flash Player Square is now available for Linux, Mac OS X, and Windows).
  • More information is available at this Ubuntu Documentation page (removal of non-64 bit Flash plugins, alternative way of installing it, and such)

Hope this helps.

Thursday, 9 December 2010

My Online Footprints

Not only technomess keeps me busy. Probably that is why you do not see a large amount of posts on this blog, which is more like a notebook to me.


Although they are more closely related to my work as a Computer Technology teacher, they may be useful, or interesting:

  • An old blog managed and created by a former colleague ("magicpockets") and myself ("Delta"), now an archive of resources, ideas and notes from the time I had the privilege of working with him:  the HSTech blog.
  • My current new blog to provide additional information and resources for my students, Curious Computer Tech.
  • My tasty delicious bookmarks containing the treasures I have found online

And well, the rest is actually personal (facebook, twitter, flickr, and such) that I keep, well, personal and private.

Sunday, 7 November 2010

Ubuntu 10.10 and Lenovo Ideapad S10-3

Lenovo Ideapad S10-3

If you have a Lenovo Ideapad S10-3 (depicted above), and you want to test or install shiny new Ubuntu 10.10 on it, you need to take a couple of considerations.
  1. Use UNetbootin to create the bootable USB drive or SD card with Ubuntu 10.10
  2. When booting the flashdrive or SD card, pres TAB key quickly so you may add the following kernel boot parameter (add this to the end of the line starting with the word "kernel"):
intel_idle.max_cstate=0
Install Ubuntu (or any of its variants). You will need to manually add the additional kernel boot parameter once more when you see this screen:


Press the 'E' key as stated and edit the line that contains the words "quiet splash --" (or similar) and add:
intel_idle.max_cstate=0
right before the word "quiet" (after or in the middle may also work, but I did it this way), so it reads
intel_idle.max_cstate=0 quiet splash  --

Now let's see how to permanently change this boot parameter after you have installed Ubuntu to your computer's hard disk.

Open up the Terminal and type
sudo nano /etc/default/grub
You will see something like this:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
. . .

Change the 9th line so it reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=0"

Press Control+X, save the changes by saying Yes (Y key)
Now type the following in the Terminal, and we're done. Next time you'll boot as per normal.
sudo update-grub


Reference:

Optimise Windows 10/11

How to optimise your Windows setup Just in case you need it. If you want a safe and conservative approach, just disable the background apps ...