Monday, August 28, 2006

some filipino homonyms ambiguity

http://video.yahoo.com/video/play?vid=18bc876987a407d3ce81d2b4195ce0d1.667581&cache=1 <-- aso nanghahabol ng naka-bisikleta

Saturday, August 26, 2006

original article:
http://www.dvorak.org/blog/?p=6557

Tokyo tops the ‘Big Mac’ index — USA NOT Number One


Residents of Tokyo have the highest purchasing power in the world, edging out people in Los Angeles, Sydney, London and Toronto, according to a new survey by the Swiss banking giant UBS that uses the “Big Mac” as its benchmark.

“Wages only become meaningful in relation to prices — that is, what can be bought with the money earned,” it said.

The bank calculated the “weighted net hourly wage in 14 professions” and divided it into the local price of “a globally available product,” for which it chose McDonald’s flagship hamburger.

“On a global average, 35 minutes of work buys a Big Mac,” it said. “But the disparities are huge: in Nairobi, 1 1/2 hours’ work is needed to buy the burger with the net hourly wage there. In the U.S. cities of Los Angeles, New York, Chicago and Miami, a maximum of 13 minutes’ labor is needed.”

In Tokyo, it takes a mere 10 minutes. Bogota, Colombia, came in last among the 70 cities surveyed at 97 minutes.

Of course, you should add the cost of having your arteries defatted every 20 years or so.

Wednesday, August 16, 2006

Slashdot | Did Humans Evolve? No, Say Americans: ". Show me a single person who is both an aetheist AND against evolution. The problem with religious people is that they have an agenda, and logic usually takes a back seat"

Tuesday, August 15, 2006

For your eyes only


http://research.microsoft.com/university/ntsrclicensees.asp


Windows® Source Code Licensees

North America

Arizona State University
Boston University
Brigham Young University
Brown University
Capitol College
Cogswell College North
Columbia University
Cornell University
Dartmouth College
Eastern Kentucky University
Evangel University
Florida Institute of Technology
Georgia Institute of Technology
Howard University
Lamar University
Louisiana State University at Shreveport
Loyola College in Maryland
Massachusetts Institute of Technology
McGill University
New York University
Oregon Graduate Institute of Science and Technology
Princeton University
Rice University
Saginaw Valley State University
San Jose State University
Seattle Pacific University
Stanford University
Stevens Institute of Technology
SUNY/Stony Brook
Texas A&M University
The Johns Hopkins University
University of Alabama at Birmingham
University of California at Irvine
University of California at Los Angeles
University of California at Riverside
University of California at San Diego
University of California at Santa Cruz
University of Colorado at Boulder
University of Florida
University of Houston at Clear Lake
University of Idaho
University of Illinois
University of Kentucky
University of Memphis
University of Michigan
University of Notre Dame
University of Rochester
University of Southern California
University of Southern Mississippi
University of Texas at Austin
University of Virginia
University of Washington
University of Wisconsin
Vanderbilt University
Walla Walla College
Washington University
Wayne State University
Western Illinois University

International

Brandenburg University of Technology
Budapest University of Technology
Carlos III University of Madrid
Chalmers University of Technology
Czech Technical University
ETH Zentrum
Hebrew University
Humboldt-Universität
INRIA LORRANE
INRIA RENNES
INRIA RHONE-ALPES
INRIA ROCQUENCOURT
KAIST
Keio University
LAAS-CNRS
Lancaster University
MS Institute (MS Australia)
National University of Singapore
Queensland University of Technology
Slovak University of Technology
Swinburne University of Technology
Technion
Technische Universität Darmstadt
Technische Universität Graz
Technische Universität Hamburg-Harburg
Technische Universität München
Technische Universität Wien
Tel Aviv University
Trinity College Dublin
Universidade de Lisboa
Università di Genova
Università di Milano
Universität Kaiserslautern
Universität Karlsruhe
Universität Potsdam
Universität Zu Köln
University College London
University of Aarhus
University of Aizu
University of Alberta
University of Cambridge
University of Cape Town
University of Greenwich at Medway
University of Kent
University of Linz
University of Oslo
University of Patras
University of Salford
University of Southampton
University of Tromsø
University of West Bohemia
Is Full Disclosure Advisable?: "'loose lips sink ships.'"

some patent problem

Slashdot | What's Fedora Up To? Ask the Project Leader: "NTFS support in Fedora/RedHat.
(Score:5, Interesting)
by Anonymous Coward on Monday August 07, @11:58AM (#15859337)
If Fedora is actually not controlled by Red Hat anymore, and Fedora is user-oriented, why are both the only general-purpose GNU/Linux distributions that disable the NTFS driver from the Linux kernel?

Users do need this option (unlike RedHat's customers, which are organizations as far as I know), and for evidence, Linux-NTFS is one of the projects with the most downloads on sourceforge.

I would like to add that NTFS is part of the mainline kernel. Compiling it as a module will cause it to not take any memory resources other than the few kilobytes on disk that any un-used hardware module is taking, unless of course the user has a mounted NTFS partition.

RedHat's reason for disabling NTFS support was that RedHat is a US-based organization and that they fear patenting problems from MS. No law action was ever taken, and no actual patent was referenced. As far as I know, NTFS is not even patented or patentable. Fedora is not RedHat as you say, so this old reasoning is not exactly valid for Fedora. The IBM/SCO saga also cleared the issue about patents in the mainline kernel.

Unless Fedora will change this simple flag in the kernel config file, I assume it is still controlled (and not only sponsered as some would say) by RedHat."
Slashdot | Google Sends Legal Threats to Media Organizations: "Googling woes
(Score:5, Funny)
by Rob T Firefly (844560) on Monday August 14, @09:09AM (#15901979)
(http://robvincent.net/ | Last Journal: Wednesday April 27, @09:22AM)
Once I was feeling artistic, so I Googled how best to Xerox my head onto a Playboy Bunny, maybe using some Scotch Tape, but found out I could Photoshop it instead. So, I had a Coke, grabbed some Kleenex, and got to work.. but was disturbed by my mom coming in to Hoover. So I quickly shut down the PC, and decided to use Crayolas and Play-Doh instead."

Sunday, August 13, 2006

Does PLDT really suck? » @ Ambot ah! [ technology news and reviews ]: "I switched to BayanDSL and have been using it for almost 2 years now. Its a dedicated line (no phone - from the poste, straight to the ADSL MODEM) 384kbps at two-thirds the price I was paying for PLDT’s 256kbps. NO COMPLAINTS - they have 24 hr. service crew and they guarantee a technician at your door in 1 day kung hindi ma-resolve through phone ang problem. I can’t really account for other horror stories out there about Bayan DSL (if any) pero as for me, its been peaches and cream ever since."

Saturday, August 12, 2006

Slashdot | MS .net vs Mono, Open Source: "you've been duped
(Score:4, Informative)
by g4dget (579145) on Wednesday December 25, @09:32PM (#4958666)
(i) Sun has supported third party implentations to the point where they used a third party implementations themself. What's the original linux jvm a third party jvm ( name was black-something, I can't remember).

It's Blackdown Java. It is not a third party implementation. Sun simply dumped their source code onto a bunch of people outside Sun who then fixed a bunch of bugs and ported it to Linux.

IBM has had it's JVM for eons now. There are lots of embedded JVMs.

IBM does not have its own Java implementation--they have a license to Sun's Java implementation, and they replace some of Sun's components with their own.

(ii) Sun has tolerated those implementations for years now.

Sun hasn't tolerated anything. As far as I can tell, anybody who is shipping anything remotely resembling a Java platform implementation has a contractual agreement with Sun. In fact, merely to claim that something is Java, you need a contractual agreement with Sun (because of their trademark).

(iii) In the past, Sun has never shown to be anti-competitive as microsoft. They don't defend or promote Solaris at any cost the way microsoft does.

I see no basis for that statement. Sun simply isn't leveraging their monopoly because they don't have one. As a 15 year Sun customer, all the indications I have seen are that Sun is worse than Microsoft when it comes to cut-throat competition and intellectual property, they are simply not as successful."
Slashdot | MS .net vs Mono, Open Source: "Re:Eclipse and SWT on Monster
(Score:4, Insightful)
by 1000StonedMonkeys (593519) on Wednesday December 25, @08:19PM (#4958463)
Most users' experience with swing can be summed up with the following:

1. Open any swing application
2. Right click the mouse button somewhere a context menu should appear, or click on one of the file menus.
3. Wait 3 seconds
4. Form the incorrect conclusion that Java is slow
5. Go back to using native win32 programs

Sun's been trying to 'fix swing' for the last 5 years, and they've had no luck. What makes you think IBM has the magic bullet?

Swing will never be fast. The same abstractions that make it such a joy to program with make it terribly inefficiant. Print out a stack trace in a event handler function in swing and take a look at how deep it is. Every one of those functions had to be called before the event was process, and ever call had to be done through a table lookup. I'll avoid going into the whole native vs. non-native widgets debate, but forgive me if I remain skeptical about the non-native approach sun has been using with swing.

IBM (well, the company that wrote eclipse that IBM bought) did the right thing when they started from scratch to design SWT. Eclipse is amazingly responsive when compared to any swing application I've seen. Try it out yourself, I think you'll be impressed."
More than an open-source curiosity | Newsmakers | CNET News.com: "The problem with J2EE really is that it became very, very academic and the complexity of all these perfectly designed systems in schools does not necessarily map when you have deadlines and all kinds of other things"

Thursday, August 10, 2006

commandline clipboard under gnome

http://uwstopia.nl/blog/2006/05/command-line-and-the-clipboard

A few days ago I stumbled upon a question in a newsgroup: how to put text on the Gnome clipboard from the command line?

In response, I wrote a small Python script (using PyGTK) that can be used as a pipe in your command line scripts. It puts all data from stdin on the clipboard. For this to work, you will need the correct $DISPLAY environment variable set (which will be the case most of the time, but it doesn’t work from cron for example).

CLI lovers, download copy-to-clipboard here and rejoice!

Update: Sure, there’s also tons of other solutions like xclip and of course the script could be more like a one-liner, but I like to demonstrate the ease of use Python and PyGTK offer.

---------


#!/usr/bin/env python

import sys

import pygtk
pygtk.require('2.0')
import gtk

buffer = []
for line in sys.stdin:
buffer.append(line)

c = gtk.Clipboard()
c.set_text(''.join(buffer))
c.store()
How to redirect output to "clipboard" on command line: "

#:912674 12:42 am on Dec. 26, 2004 (utc 0)

For those not using Cygwin, there is an X-Windows utility called 'xclip' which reads STDIN and puts the input into an X clipboard.

cat filename ¦ xclip

X clipboards are not the same as Gnome or KDE clipboards, however. Someone wrote a bash function for KDE called 'klip' that uses the KDE utility 'klipper' to do the same thing (search for it).. I didn't find anything similar for Gnome, but some Gnome apps play nicely with X clipboards...so maybe xclip would work?

So it will depend on which application are you pasting into, unfortunately. "

Wednesday, August 09, 2006

Find the most recently changed files (recursively) [linux] [find] [command] [line] [morten] [recently] [changed]: "Find the most recently changed files (recursively) (See related posts)

find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort"

Monday, August 07, 2006

open a port

Just in case you need it in the future, I use this for opening a port:
Code:
iptables -I INPUT -p tcp --dport $1 -j ACCEPT
Where $i is the port number you wish to open.

Like the others said, it sounds to me like telnet is not even running, and the connection refused is because there isn't actually a service to connect to.

backup tomboy notes

[tomboy-list] Backup files:

Hi Shannon,

Tomboy stores all your notes in ~/.tomboy/*.note. It keeps a few simple
settings in GConf, but nothing major.

-Alex

On Fri, 2004-12-10 at 20:43 +0000, Shannon Baker wrote:
> I move data and reinstall on my machines fairly frequently but don't want to
> lose my Tomboy notes. What files do I need to back up to transfer them to
> another machine? Is there any special process or procedure to reimport them
> on the new machine?
>
> Thanks
>
> Shannon T. Baker
>

linux equivalent

c:\documents and settings\start menu

/usr/share/applications/

-----------------

system-wide startup folder

/etc/xdg/autostart

linux

c:\documents and settings\start menu

/usr/share/applications/

-----------------

system-wide startup folder

/etc/xdg/autostart

Sunday, August 06, 2006

system wide startup programs

aiken@aiken-laptop:/etc/xdg/autostart$ ls
compiz.desktop gnome-volume-manager.desktop
gnome-power-manager.desktop update-notifier.desktop
aiken@aiken-laptop:/etc/xdg/autostart$
this solved the gset-compiz settings problem

aiken@aiken-laptop:~/.gconf/apps$ chmod 777 %gconf.xml
aiken@aiken-laptop:~/.gconf/apps$
/etc/gconf/gconf.xml.defaults$ sudo gedit %gconf-tree.xml
Howto Install xorg-aiglx + compiz (packages) - Ubuntu Forums:

Howto Install xorg-aiglx + compiz (packages)

All packages as based on Kristian Høgsberg fixes, forums compiz packages and official packages.

They provide to get compiz run on aiglx.

I'm running it on my i915 laptop, and the performance is actually quite impressive. For those people using NVidia should continue to use Xgl server. compiz-aiglx don't work on this card !

1. Download packages

aiglx :
First you should add reggaemenu compiz repository in you source.list
Code:
deb http://xgl.compiz.info/ dapper aiglx
deb http://xgl.compiz.info/ dapper main

and update all deb
Code:
sudo apt-get update
sudo apt-get dist-upgrade

you should install latest dri modules packages :
Code:
sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r`

if after a linux-restricted-modules or linux-image update you have some troubles, start this command to regenerate modules.dep :
Code:
sudo /sbin/ldm-manager

compiz:

compiz aiglx are now partially official, compiz-vanilla or compiz-quinn packages work now on xorg-aiglx. All compiz-aiglx packages are now deprecated, well first uninstall all compiz-aiglx packages

Code:
sudo aptitude purge compiz-aiglx compiz-aiglx-gnome
you can then either install compiz-vanilla packages :
Code:
sudo apt-get install compiz-vanilla-aiglx compiz-vanilla compiz-vanilla-gnome
or compiz-quinn packages:
Code:
sudo apt-get install compiz-quinn-aiglx compiz compiz-gnome

2. Configure Xorg

Good news you can rework in 24 depth mode
Edit your Screen section and modify your DefaultDepth
Quote:
DefaultDepth 24

Warning this options are necessary !

first activate dri,dbe, glx and all necessary modules like this :
Quote:
Section "Module"
# Load "GLcore"
Load "bitmap"
Load "ddc"
Load "dbe"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

add Option "XAANoOffscreenPixmaps" and remove all other option in device section like this :
Quote:
Section "Device"
Identifier "Intel Corporation Intel Default Card"
Driver "i810"
Option "XAANoOffscreenPixmaps"
BusID "PCI:0:2:0"
EndSection

add AIGLX option in your ServerLayout section like this :
Quote:
Section "ServerLayout"
Option "AIGLX" "true"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

uncomment all dri section
Quote:
Section "DRI"
Mode 0666
EndSection


and you must have:
Quote:
Section "Extensions"
Option "Composite" "Enable"
EndSection

is required.


3. Configure gdm

Create or modify /etc/gdm/gdm.conf-custom to change your xorg server like this:
Quote:
[servers]
0=aiglx

[server-aiglx]
name=aiglx server
command=/usr/bin/Xorg-air :0
flexible=true

and restart gdm
Quote:
sudo /etc/init.d/gdm restart

4. Compiz-aiglx start script
the compiz-aiglx start script is now in package and automatically started on all gnome session startup. If you have some trouble with it you can remove compiz-aiglx.desktop file in /etc/xdg/autostart.

5. Fix totem playback

To have an optimised video playing on xorg-aiglx :

-> if you have totem-gstreamer :
launch gstreamer-properties and select on default video playback "XWindow (NoXv)" in video tab.

-> if you have totem-xine :
edit ~/.gnome2/totem_config and replace this line :
Quote:
#video.driver:auto
by
Quote:
video.drivershm

Have fun

Friday, August 04, 2006

how to install wine and cabextract

Ubuntu Dapper 6.06

You have to enable universe packages first. It is also recommended that you use the official winehq ubuntu package:

1) Open /etc/apt/sources.list
Code:
sudo gedit /etc/apt/sources.list


2) Uncomment following lines:
Code:
deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe


3) Add this line:
Code:
deb http://wine.budgetdedicated.com/apt breezy main


4) Close gedit and run an update:
Code:
sudo apt-get update


5) Install wine and cabextract:
Code:
sudo apt-get install wine cabextract
Following on from my last post about PostgreSQL, i've found a couple of things were 'off' with the setup, so this is a quick re-write and update... on with the show!

So, if the last guide worked, what's different with this set-up...

* We now enable and use the default 'postgres' user account to administrate our database server (saves creating a new one)!
* We also fix a couple of issues with the networking set-up.
* We now use the latest build of PostgreSQL - v8.1.
* This set-up is less of a 'hack', than the last guide (i've been reading since then).

Before we move on, this guide was tested on (and intended for) the current stable build of Ubuntu (5.04 - Breezy Badger), but it should also work fine on any other build of Ubuntu/Debian (6.06 - Dapper Drake etc).

First off, PostgreSQL 8.1 isn't in the main repositories in Breezy, you'll need to have backports enabled to get hold of the latest packages. Once you've done that, let's move on.

Right, now let's install the database server. At the command-line, enter the following (Or you can do all this in Synaptic - just search for and install the packages listed in the commands):

> sudo apt-get install postgresql-8.1 postgresql-client-8.1
> sudo apt-get install pgadmin3 pgadmin3-data

This installs the database server, and the pgAdmin administration application (If you don't really get on with the pgAdmin GUI, there is an alternative in the form of phpPgAdmin - a web-based administration interface. A quick 'How To' on getting this up will be coming shortly! ;) ).

Now we need to reset the password for the 'postgres' admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):

> sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD '*password*';
template1=# \q

Then, from here on in we can use pgAdmin to run the database server. To get a menu entry for pgAdmin do the following...

> sudo gedit /usr/share/applications/pgadmin.desktop

Then paste the following into the file:

[Desktop Entry] Comment= PostgreSQL Administrator III
Name=pgAdmin III
Encoding=UTF-8
Exec=pgadmin3
Terminal=false
Comment[en_GB]=PostgreSQL Administrator III
Icon=/usr/share/pixmaps/pgadmin3.xpm
Type=Application
Categories=GNOME;Application;Database;System;
Name[en_GB]=pgAdmin III

Then save the file and exit gedit. You should find the launcher in the System Tools section of the Applications menu. Alternatively, you could just type 'pgadmin3' at the shell. The wizards to connect to the database should be pretty simple to figure out.

Finally, we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine (The guidelines here are for opening up your server on a secure LAN - if you are not on a secure LAN you may want to look into adding SSL authentication before proceeding with these steps).

To do this, first, we need to edit the postgresql.conf file:

> sudo gedit /etc/postgresql/8.1/main/postgresql.conf

Now, to edit a couple of lines in the 'Connections and Authentication' section...

Change the line:

#listen_addresses = 'localhost'

to

listen_addresses = '*'

and also change the line:

#password_encryption = on

to

password_encryption = on

Then save the file and close gedit.

Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.

> sudo gedit /etc/postgresql/8.1/main/pg_hba.conf

Now add the following lines to the file:

# Allow any user on the local system to connect to any database under
# any user name using Unix-domain sockets (the default for local
# connections).
#
# Database administrative login by UNIX sockets
local all all trust

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all md5

# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ip address] [subnet mask] md5

and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).

That's it, now all you have to do is restart the server and all should be working!
> sudo /etc/init.d/postgresql-8.1 restart

Tuesday, August 01, 2006

vmware installation

ftvcs
April 13th, 2005, 03:26 PM
I got te same problem, but i found a solution:
as root i did:

apt-get install linux-headers-2.6.10-5-386

and then entered on the vmware installation:

/usr/src/linux-headers-2.6.10-5-386/include

I hope this helps some of you.

corefile
April 16th, 2005, 08:08 PM
if you have the correct headers installed all you have to do is create a symlink for the missing /usr/src/linux


for instance for me

in the /usr/src directory I did:

ln -s linux-headers-2.6.10-5-k7/ linux

and every thing was fine after that.
building kopete

problem:
Can't find X includes. Please check your installation and add the correct paths!


solution:
install kde-dev

chikka dependency problem

To solve my problem, I did a "sudo dpkg -i --force-depends package-name.deb" so that version problems will be ignore
put this in /etc/bash.bashrc for monodevelop to work:

export MOZILLA_FIVE_HOME=/usr/bin/mozilla

If your laptop takes too long to configure network interfaces, especially when you are not on an network, you can stop it from waiting by hitting Ctrl+C. This will cause this step to be skipped.

On a more permanent basis, you can modify the amount of time your computer waits for network configuration as follows:

Edit /etc/dhcp3/dhclient.conf

Edit the line that says:
#timeout 60
to read
timeout 20

Now your laptop will only try for 20 seconds to configure the network interfaces. 20 seconds is ample time for my laptop’s network interfaces to get configured. (I actually use nm-applet, but that is another story…)

If you want to disable the configuration of the ethernet network interface (eth0) at startup, edit “/etc/network/interfaces” and comment out the line “auto eth0“. You will have to bring up eth0 manually later, by doing $sudo ifup eth0 whenever you are plugged into the network.