- Web
- Images
- News
- Froogle
- Video
- Maps
- Music
12.02.2006
All your google are belong to us
I'm a google-whore. I freely admit this. I use a ton of their tools. Gmail. Calendar. The personalized search home page complete with widgets (or whatever google calls them, probably googets). Yahoo has the same tools and Ask.com is catching up with some neat stuff but still, google rules. Their tools are just dead simple to use. However, today I realized that their Search History tool is now saving my data for all of the following searches:
11.17.2006
How to create and use multiple profiles using the Profile Manager of Firefox
What's cool about this is that you can use one profile with all your nice web developer extensions set up and another for quick browsing with no extensions installed. I find using a few extensions tends to bog Firefox down (even still today) so doing without some when I'm just cruising around killing time is quite nice.
The following was lifted from the mozilla site if memory serves me.
In order to create a new profile, you use the Profile Manager.
To start the Profile Manager in Windows, follow these steps:
On Linux or Mac, start Firefox with the -ProfileManager switch, e.g. ./firefox -ProfileManager (this assumes that you're in the firefox directory)
// end lift
The following was lifted from the mozilla site if memory serves me.
In order to create a new profile, you use the Profile Manager.
To start the Profile Manager in Windows, follow these steps:
- Close Firefox completely (select File > Exit from the main menu of Firefox).
- Select Start > Run... from the Windows Start menu.
- Enter firefox.exe -ProfileManager and press OK.
On Linux or Mac, start Firefox with the -ProfileManager switch, e.g. ./firefox -ProfileManager (this assumes that you're in the firefox directory)
// end lift
10.05.2006
DB2 Creating (faking) a Boolean datatype
When creating a table in DB2, to create a Boolean datatype column (since DB2 doesn’t have this natively) you have to use a check constraint on a smallint column. So if you have a column named “ACTIVE” that you want to be Boolean, you would create the that col like so:
ACTIVE SMALLINT NOT NULL,
CONSTRAINT CCACTIVE1 CHECK (ACTIVE in(0,1))
Then obviously, when you use that field, you can only insert/update using 1 and 0 respectively for your true and false values.
DB2 Creating Sequences to use with Primary Key ID fields
Well, another job and another database system to learn. I've got practically all of them under my belt now ;-)
I finished reading this article on sequences vs key managers vs identity columns and decided I needed to go with a sequence.
To create a new sequence called “USERS_SEQ” for a schema named “TEST”
CREATE SEQUENCE TEST.USERS_SEQ
AS BIGINT
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO CYCLE;
To use that sequence to generate unique, incremented, primary key IDs for a table:
INSERT INTO TEST.USERS (id, name_first)
VALUES (NEXTVAL FOR TEST.USERS_SEQ, 'Rich');
To use that generated id value, you can use PREVVAL to get it back
Subscribe to:
Posts (Atom)