Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday, March 1, 2008

Oracle Hardware Design

Planning the server environment

The minimum hardware requirements for the Oracle server environment are determined by three factors:
  • Type of application (OLTP, DSS, Data Warehouse)
  •  Expected maximum transactions per second
  •  Number of users

Note: The size of the database should NOT be one of the factors used to select a hardware/OS configuration. The disk I/O subsystem determines database size. This will be discussed further in the next chapter, along with other database issues.
Oracle Hardware Design Server CPU
(links starting at least from phys_26.htm and up to phys_40.htm are available. You may try further numbers - phys_41.html phys_42.htm ...)

Blogged with Flock

Sunday, February 24, 2008

MySQL and UTF-8

After reading the article (Live aus der Marschrutka » MySQL and UTF-8 — no more question marks!) I’ve noticed that specifying this (I’m using cp1251 user interface and UTF-8 database):
init_connect = ‘SET CHARACTER SET cp1251′
in my.ini file doesn’t work for me.

Where as executing ‘SET CHARACTER SET cp1251′ query at the beginning of SQL session works fine.


I'm reposting here a small chunk of the article:

UTF-8, a Unicode encoding, is probably already the most used character encoding for new web applications, except maybe for Asia. The most popular open source database is MySQL. (But don’t miss the most advanced open source database, which I prefer.)

Communication with the database
The other side of the problem is the data that comes from and gets sent to the client. MySQL offers a lot of features here; you can have different character sets at almost every stage of data processing. To be all UTF-8, issue the following statement just after you’ve made the connection to the database server:

SET NAMES utf8;

This sets the character_set_client, character_set_connection and character_set_results variables to utf8. See below for the meaning of each of these variables.

Communication with the database also concerns SQL files you read with the MySQL command line client, or upload with phpMyAdmin. Put the statement at the top of every SQL file, like this:

SET NAMES utf8;
INSERT INTO TABLE gadgets (name, rating) VALUES ('iPod', 45);

If you’re talking to mysql from a command line that doesn’t understand UTF-8 (likely in Windows and older Linuxes), use the following statement to tell MySQL which character set you’re using on the client side:

SET CHARACTER SET cp1250;

This sets the character_set_client and character_set_results variables to cp1250. Upon arriving on the server, your data will be converted from CP1250 to UTF-8. Results returned to you will be converted from UTF-8 to CP1250.


For russian speaking  folks there's another (in some extent more detailed) article on the same topic: http://www.phpfaq.ru/charset

Blogged with Flock

Thursday, February 21, 2008

The Joel Test: 12 Steps to Better Code - Joel on Software

The Joel Test
1. Do you use source control?
2. Can you make a build in one step?
3. Do you make daily builds?
4. Do you have a bug database?
5. Do you fix bugs before writing new code?
6. Do you have an up-to-date schedule?
7. Do you have a spec?
8. Do programmers have quiet working conditions?
9. Do you use the best tools money can buy?
10. Do you have testers?
11. Do new candidates write code during their interview?
12. Do you do hallway usability testing?

A score of 12 is perfect, 11 is tolerable, but 10 or lower and you've got serious problems. The truth is that most software organizations are running with a score of 2 or 3, and they need serious help, because companies like Microsoft run at 12 full-time.
The Joel Test: 12 Steps to Better Code - Joel on Software

Blogged with Flock

The Guerrilla Guide to Interviewing (version 3.0) - Joel on Software

15 years of experience interviewing programmers has convinced me that the best programmers all have an easy aptitude for dealing with multiple levels of abstraction simultaneously.
The Guerrilla Guide to Interviewing (version 3.0) - Joel on Software

Blogged with Flock

The Guerrilla Guide to Interviewing (version 3.0) - Joel on Software

If the basic concepts aren’t so easy that you don’t even have to think about them, you’re not going to get the big concepts.
The Guerrilla Guide to Interviewing (version 3.0) - Joel on Software

Blogged with Flock