Archive: 2006

Alcohol…What is it good for?

Alcohol causes so many problems. In fact most problems can probably be traced back to drunken stupidity. Perhaps the biggest problem is that I like these problems. This causes me to ask the question, “what is alcohol good for?”

- Alcohol is NOT a good excuse to cheat on someone.
- Alcohol is a good excuse for a one night stand (or even a one-week-stand).
- Alcohol is a good reason to drink more alcohol.
- Alcohol is a good way to kill time when you can’t sleep.
- Alcohol is a good way to forget about your problems.
- Alcohol is NOT a good excuse to makeout with your cousin!

Please drink responibly.

XO Hennessy

Genius

The function of genius is not to give new answers, but to pose new questions which time and mediocrity can resolve.


– Hugh Trevor-Roper in “Men and Events”


Blogged with Flock

Yes I’m cynical

Yeah, I took this survey. needless to say I was not suprised at all by the result.


You Are 56% Cynical
Yes, you are cynical, but more than anything, you’re a realist.You see what’s screwed up in the world, but you also take time to remember what’s right.
How Cynical Are You?

Blogged with Flock

Net Neutrality

Senator Ted Stevens –


powered by ODEO

This guy is buy far the biggest idiot in Alaska. Maybe the country, I don’t know…..

Thats funny to ME

    You know how sometimes people get so excited to tell a story or tell you about something funny that happened to them today? You can tell that they’re excited because their eyes light up when they start telling it, and they start talking faster and breathing less as the story progresses. They look so excited about it that you just smile and nod because you don’t want to interrupt them. Well this happens to me sometimes; probably because they think that I’m gonna listen. So I just go through the motions and smile and nod until they actually stop for a breath and it looks like they are waiting for some kind of response from me…..Thats when I turn my head to the right and ask them to say it again in my good ear. Cause thats funny to me.

Sadistic Bastard (I AM an ASS)

    I wouldn’t go as far as to say that I’m proud of it. But I’m not afraid to admit it. I am an ASS. well, sometimes, anyway. I’ve always known this about myself, and for the most part I’m okay with it. But last tuesday really reminded me just how much of an ASS I am. Even I had to kinda step back and shake my head.
    Last week at work our entire network crashed due to a power-outage (Thanks HawaiianElectric). That crash completely fried one of our servers, and that server just happened to be the one that controlled the entire domain as well as our email server. So, basically nobody in the company could login to their computer or get email for about a week. After working 16 hr days to rebuild the network, the last thing we had to do on tuesday was reconfigure EVERY workstation’s email. yes, all 200+ of them. Believe me, I took a mental note of everyone that was irritating me all week.
    So I’m going around and reconfiguring everyones workstation one by one, and was making everyone that irritated me wait to get their email fixed. I would fix one, then tell the next person that I gotta go back to my office to do something. Back in my office I would check my email, listen to a song, or send a sadistic myspace message to Jenn, then go back out and help the next person. For the people that really bothered me I would work on their computer for a little bit but not actually fix it, and tell them that there’s something wrong and fix the person next to them. I would come back in about an hour and fix it for real. Thats funny to me. They had no idea that I was just being an ass. Everyone just thought that I was really busy (which I actually was). But it still made me feel a little bit better to make the irritating people, who think the world revolves around them, wait.
    All of that crap actually made more work for me, but like I said, thats funny to me. And somehow that made it all worth it. I know I’m kinda messed up, but I AM an ass……I’ve made peace with that.

Thoughts…..

“They use thought only to justify their injustices, and speech only to disguise their thoughts.”
–Voltaire

MacBook Pro Shipped!

I never thought that I would be pissed to find out that the new MacBook Pro that I ordered has been shipped ahead of schedule. I ordered a MacBook Pro from Apple’s website because the local apple store told me that they do not sell the custom configured 2.16 Ghz version. They told me that its a built to order computer. So yesterday (two days after I ordered my MBP) I stopped by the apple store on my way home from work and the have a 2.16ghz MBP in stock with the exact same configuration that I ordered. I could’ve been going home with my shinny new MacBook Pro yesterday. I tried to cancel my online order, but it had just shipped. so it looks like I’ve still gotta wait a few more days.

Technorati Tags:

Setup GRANT Tables for MySQL on Linux

I tried every tutorial out there on how to set up users to use MySQL with the GRANT Tables. The Tutorials almost got me there, but I kept getting the same error even after following the various tutorials to the “T”.

“Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in…”

I tried everything that I could think of but still nothing. I finally got a solution on on a forum that I use a lot, frihost.net/forums. This was the simplest solution to a problem that Haunted me for a long time. So I thought that I would post it here.

If you still get the error Above after following these steps, just issue this command from the MySQL command-line as root:

SET PASSWORD FOR user@localhost = OLD_PASSWORD(‘yourpassword’);

These are the instructions that I followed to set the grant tables:
You can add new users to MySQL in two different ways: by using the GRANT statement or my manipulating the MySQL grant tables directly. The preferred method is to use the GRANT statement because they are more concise and less error-prone.
The following examples show how to use the mysql client to set up new users. These examples assume that privileges are set up according to the defaults provided in the previous MySQL DBA Tip, “Setting Up the Initial MySQL Privileges”. This means that to make changes, you must be on the same machine where mysqld is running, you must connect as teh MySQL root user, and the root user must have the insert privilege for the mysql database and the reload administrative privilege. Also, if you have changed the root user password, you must specify it for the following mysql commands:
You can add new users by issuing GRANT statements:

% mysql -u root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO oracle@localhost
-> IDENTIFIED BY ‘manager’ WITH GRANT OPTION;

mysql> GRANT ALL PRIVILEGES ON *.* TO oracle@”%”
-> IDENTIFIED BY ‘manager’ WITH GRANT OPTION;

mysql> GRANT RELOAD, PROCESS ON *.* TO admin@localhost;

mysql> GRANT USAGE ON *.* TO dummy@localhost;
The GRANT statements (above) create and set up three new users:
0. oracle
0. A full superuser who can connect to the server from anywhere, but who must use a password ‘manager’ to do so. Note that we must issue GRANT statements for both oracle@localhost and oracle@”%”. If we don’t add the entry with localhost, the anonymous user entry for localhost that is create by mysql_install_db will take precedence when we connect from the local host because it has a more specific Host field value and thus comes earlier in the user table sort order.
0. admin
0. A user who can connect from localhost without a password and who is granted the reload and process administrative privileges. This allows the user to execute the mysqladmin reload, mysqladmin refresh, and mysqladmin flush_* commands, as well as mysqladmin processlist. No database-related privileges are granted. (They can be granted later by issuing additional GRANT statements.)
0. dummy
0. A user who can connect without a password, but only from the local host. The global privileges are all set to ‘N’ – the usage privilege type allows you to create a user with no privileges. It is assumed that you will grant database-specific privileges later
You can also add the same user access information directly by issuing INSERT statements and then telling the server to reload the grant tables:
$ mysql -u root mysql

mysql> INSERT INTO user VALUES(‘localhost’, ‘oracle’, PASSWORD(‘manager’),
-> ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

mysql> INSERT INTO user VALUES(‘%’, ‘oracle’, PASSWORD(‘manager’),
-> ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

mysql> INSERT INTO user SET Host=’localhost’, User=’admin’,
-> Reload_priv=’Y', Process_priv=’Y';

mysql> INSERT INTO user (Host, User, Password)
-> VALUES(‘localhost’, ‘dummy’, ”);

mysql> FLUSH PRIVILEGES;
Depending on you version of MySQL, you may have to use a different number of ‘Y’ values (versions prior to Version 3.22.11 had fewer privilege columns). For the admin user, the more readable extended INSERT syntax that is available starting with Version 3.22.11 is used.
Note that to set up a superuser, you need only create a user table entry with teh privilege fields set to ‘Y’. No db or host table entries are necessary.
The privilege columns in the user table were not set explicitly in the last INSERT statement (for the dummy user), so those columns are assigned the default value of ‘N’. This is the same thing that GRANT USAGE does.
The following example adds a user custom who can connect from hosts localhost and sundev5.comanage.net. He wants to access the bankaccount database only from localhost , the expenses database only from sundev5.comanage.net, and the customer database from both hosts.
To set up this user’s privileges using GRANT statements, run these commands:

% mysql -u root mysql

mysql> create database bankaccount;

mysql> create database expenses;

mysql> create database customer;

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP
-> ON bankaccount.*
-> TO custom@localhost
-> IDENTIFIED BY ‘manager’;

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP
-> ON expenses.*
-> TO custom@sundev5.comanage.net
-> IDENTIFIED BY ‘manager’;

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP
-> ON customer.*
-> TO custom@’%’
-> IDENTIFIED BY ‘manager’;
We do this to grant statements for teh user ‘custom’ because we want to give the user access to MySQL both from the local machine with Unix sockets and from the remote machine sundev5.comanage.net over TCP/IP.
To set up the user’s privileges by modifying the grant tables directly, run these commands:

$ mysql -u root mysql

mysql> create database bankaccount;

mysql> create database expenses;

mysql> create database customer;

mysql> INSERT INTO user (Host, User, Password)
-> VALUES(‘localhost’, ‘custom’, PASSWORD(‘manager’));

mysql> INSERT INTO user (Host, User, Password)
-> VALUES(‘sundev5.comanage.net’, ‘custom’, PASSWORD(‘manager’));

mysql> INSERT INTO db
-> (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
-> Create_priv, Drop_priv)
-> VALUES
-> (‘localhost’, ‘bankaccount’, ‘custom’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

mysql> INSERT INTO db
-> (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
-> Create_priv, Drop_priv)
-> VALUES
-> (‘sundev5.comanage.net’, ‘expenses’, ‘custom’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

mysql> INSERT INTO db
-> (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
-> Create_priv, Drop_priv)
-> VALUES
-> (‘%’, ‘customer’, ‘custom’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

mysql> FLUSH PRIVILEGES;
The first two INSERT statements add user table entries that allow user custom to conect from the various hosts with the given password, but grant no permissions to him (all privileges are set to the default value of ‘N’). The next two INSERT statements add db table entries that grant privileges to custom for the bankaccount, expenses, and customer databases, but only from the proper hosts. As usual, when the grant tables are modified directly, the server must be told to reload them (with FLUSH PRIVILEGES) so that the privilege changes take effect.
If you want to give a specific user access from any machine in a given domain, you can issue a GRANT statement like the following:

mysql> GRANT …
-> ON *.*
-> TO myusername@”%.mydomainname.com”
-> IDENTIFIED BY ‘mypassword’;
To do the same thing by modifiying the grant tables directly, use the following:

mysql> INSERT INTO user VALUES (‘%.mydomainname.com’, ‘myusername’,
-> PASSWORD(‘mypassword’), …

mysql> FLUSH PRIVILEGES;

AdWords

I just read an article that I found on digg.com that lists the top paying 230 AdWords from google. I thought that it was interesting that almost all of the high paying words had something to do with “Mesothelioma”, “Tax Lawyers”, or “Mortgage Refinancing”. I never would’ve guessed any of these. But I guess thats why I’m not in advertising.

Here are some links to “Mesothelioma”:
http://www.mesotheliomaweb.org/mesothelioma.htm

http://www.mesolink.org/

http://www.mesotheliomaresourceonline.com/

Web 2.0

I’m slowly starting to implement Web 2.0 elements into my development and design. Its kind of hard to do since I spend most of my time doing in-house programming for my company. I have to focus on building practical and functional for internal use. Naturally that doesn’t leave a lot of room for creative experimenting in my development and design.

I was starting to feel like I was going to be left behind in the whole “Web 2.0 revolution.” So I added some AJAX to my last application that I built. It wasn’t anything special, but I was excited about it because it was “AJAX and Web 2.0″, and I see all of the possibilities with this new style of development.

I was just fooling around and decided to try out one of the simple tutorials on drag-n-drop AJAX applications. This is what I came up with. Kind of cool.

New PowerBook Hard Drive

I just got my replacement hard drive from the apple store for my powerbook yesterday. I just did a fresh install on a fresh partition. surprisingly I was able to restore all of my apps and configurations before I left for the mix that same night. the only thing that I wasn’t able to install was MySQL which I did today. My PowerBook is making me proud again. It is running so much faster and smoother now. I’m glad that I got that new Hard Drive.

SUSE Linux 10

I’ve been playing around with SUSE 10 for about a week now, and I’m starting to get a little more familiar with the OS than I was before. I’m still pretty lost, but I’m making some improvements. Today I found how much easier life is with YaST.  I’ve been having a really hard time compiling and installing from source code.  Just when I was about to giveup I realized that yast could do all of that for me.  of course installing Apache, PHP, and MySQL from yast kind of defeats the purpose of using this linux box to ‘learn’ how to do that stuff.  but it work, so what the hell.

Technorati Tags: , , ,

Irritating People

Some people just irritate the hell out of me!

Nissan concept Terranaut

This is the coolest Concept car from Nissan or anyone for that matter, that I’ve seen in a while. If I were rich, I would buy this. The only thing I would change is I would have the back ‘lab’ area loaded with serious computing power, and a WiMax or WiFibre link.

MacBook Pro core duo

My PowerBook G4 is on its last leg. This computer has taken me pretty far, and I owe a lot to it. this G4 has helped me make a clean switch to mac. since switching, I’ve even blown away my windows laptop for a SUSE linux 10 system.
well my powerbook isn’t exactly ‘dead’ yet. but the hard drive is about to die. I’m getting it replaced by apple care on saturday. However, this does strengthen my rationale to put the cash down for a new MacBook Pro asap. I’m even thinking of going all out and getting a G5 quad at the same time. worked out my budget and everything today at work.

Seriously, I do love this PowerBook. I don’t think that I could even part with it after an upgrade. I have a hard time parting with my hardware after I’ve upgraded and moved on. my Dell Inspiron is now a Linux box, and my PowerBook will most likely be my stay-at-home desktop system, while my MacBook Pro will be my workhorse. We’ll see how this whole upgrade process goes.

Ambition

“Ambition is the last refuge of the failure.”
-Oscar wild

Ok, I was watching ‘CSI’ tonight and at the very end of the show Grism says that ‘Ambition is the last refuge of failure.’ This stuck out to me as a very wise and insightful quote. however, it was slightly miss-quoted (refuge of THE failure).

Valentines day

Valentines day is by far the worst holiday that I can think of. Valentines day is not a good reason for ‘romance.’ The best thing about romance in that its spontaneous and unpredictable. Romance on Valentine’s Day is about as predicable as you can get. So where the fun in Valentine’s Day? there is none. No guy wants to be expected to make a huge romantic gesture on a specific day just because of some commercialized holiday. There’s way too much pressure to make a big deal out of it. When in reality its virtually impossible to surprise anyone on this day. The only reason women want their boyfriend or husbands to do anything on Valentine’s day is because all of their friends are getting things and doing things and they don’t want to feel left out, or un-speciall on that day. I think its an over commercialized and insignificant holiday.

Undefined v 0.3

Ok this is the official release of ‘UNDEFINED V 0.3′. I don’t know why its taken me so long to design a blog of my own. I’ve been working professionally as a web developer / programmer for a few years now and I’ve never even gotten around to making a blog. sure I use myspace to keep in touch with my (less computer literate) friends. for some reason the average user doesn’t use the internet and email as a regular form of communication as often as you would think.

It seems to me like there’s a miss-conception that email is solely for spreading chain letters and spam. But for some odd reason the average user doesn’t feel threatened by myspace. so I end up having to default to myspace messages and comments to keep in touch with a certain demigraphic of friends.

I’m not even sure what this blog is going to be used for. probably just to post and share ideas, discoveries, and code that I develop. enjoy.
Mahalo for stopping by.

Technorati Tags:

Melissa at the mix

Good memories at the Kava Mix. This is just Melissa and me having a conversation. I think she was tipsy… and I was having fun. video was compliments of Foki on my camera.
Love you Melis


Technorati Tags: