Sunday, September 20, 2009

ROLEX en chiffres

60000 Le nombre de compartiments du stock automatique de Rolex à Plan-les-Ouates
510000 Le prix, en dollars, de l'Oyster Perpetual GMT-Master II Ice
1908 La date de dépôt de la marque Rolex
72 HEURES La réserve de marche du Cosmograph Daytona
56000 Lenombre d'éléments de mosaïque nécessaires pour réaliser les décors des vitrines à la Foire de Bâle en 2008
360 Le nombre de pièces inclues dans le mouvement calibre 4160, entièrement conçu et réalisé par Rolex
3200 L'ensemble des combinaisons possibles, réalisables à partir des 170 modèles de la gamme Oyster

Wednesday, September 16, 2009

tada...aaaaa

[14:20:55] host bin> ./new1_minor.sh
Executes something minor......
[ADMISSION RULE] Modify resource description with type constraints
Generate a job key...
OAR_JOB_ID=18953
[14:21:00] host bin> ll
total 36
-rw-r--r-- 1 ... 11248 2009-09-16 12:54 createConfigFile.class
-rwxr-xr-x 1 ... 823 2009-09-16 14:20 new1_minor.sh
-rw-r--r-- 1 ... 529 2009-09-16 14:21 OAR.18953.stderr
-rw-r--r-- 1 ... 315 2009-09-16 14:21 OAR.18953.stdout
-rw-r--r-- 1 ... 11783 2009-09-16 12:53 somethingArray.class
[14:21:03] host bin> cat OAR.18953.stderr
Exception in thread "main" java.io.FileNotFoundException: ...

Tuesday, September 15, 2009

ยุภาวรรณ อุทิศกุล ชั้นฝันถึงเธอ

ยังหาตัวไม่เจอเลยเฟ้ย เมล์ไปที่หนังสือพิมพ์ของคนเอเชียที่ดี.ซี.ก็โดนตีกลับ ไว้ว่างๆชั้นจะลองตามตัวเธอดูอีกทีนะ

get pwd into parameter

var=`pwd`
var=$(pwd)

Ps. this is my short note now lol

Tuesday, September 8, 2009

default path in Mac OS X



Actually it's for bash setups.
Depending on the type of working environment, in Mac, there are two different ways you need to complete.

1) work on only Terminal:

~/.profile -- personalize personal initialization such as classpath. Within this file you have

PATH=$PATH:...:...
export PATH

Ps. :... is additional path you put into PATH

~/.bashrc -- personalize personal bash option such as defining alias ls='ls -G'


2) work by using GUI too:
In this case, you need to set up normal path in .profile or .bashrc and also in
/.MacOSX/environment.plist

2.1 create .MacOSX folder
$mkdir .MacOSX
$cd .MacOSX/

2.2 create 'environment.plist' file
$touch environment.plist
$open environment.plist

A window of this file will pop up to you

Then, specify 'PATH' as Key and the value of PATH which is already defined in .profile into Value column.

Thursday, August 20, 2009

easy all-in-one instant messaging!!!

 
เพื่อนๆหันมาใช้ pidgin กันไหม มันรวมโปรแกรมแชทเอาไว้ในหนึ่งเดียว ทำให้เพื่อนๆเห็นซีออนไลน์ได้จาก เฟสบุค เอ็มเอสเอ็น ยาฮู้ และอื่นๆ

สำหรับเพื่อนที่ใช้แมค ขอแนะนำ Adium

http://pidgin.im

อันนี้เป็น ปลั้คอิน เพื่อเฟสบุคโดยเฉพาะ

http://code.google.com/p/pidgin-facebookchat/

อันนี้คือ อะเดียม

http://www.adium.im/

Sunday, August 16, 2009

รายการอาหาร ในโอกาสฉลองที่เพื่อนแต่งงาน Julien&Caroline

หนึ่ง. แกงเขียวหวานไก่
สอง. ไก่ผัดเม็ดมะม่วงหิมพานต์
สาม. ข้าวผัดกุนเชียง
สี่. แหนมทอด
ห้า. ยำเนื้อ (น้ำตก ประมาณนั้น)
หก. ไข่เจียว
เจ็ด. ข้าวเปล่า

กินกันเกลี้ยงจนไม่สามารถเอารูปมาอวดได้ สายเกินที่จะถ่าย มันฟาดกันเร็วมาก ฮ่าๆๆๆๆๆ

Wednesday, July 8, 2009

เฮ้อ เรียนภาษาไม่ง่ายเล้ยยยยยยย

วันนี้เรามาเรียนภาษาฝรั่งเศสกันหน่อย...
ที่เวปนี้ เค้ามีวัสดุ (ตูแปลจากอังกฤษเป็นไทยซะงั้น - materials) ช่วยการเรียนภาษาฝรั่งเศส
วันนี้เราจะมานั่งแปลศัพท์กัน

transcription

Voix off

C'est avec un avant-goût d'indépendance que les Groenlandais ont hissé leur drapeau ce dimanche, une cérémonie en présence de la famille royale danoise. Après 300 ans d'administration par le Danemark, le grand territoire arctique renforce son autonomie. Les Groenlandais en ont décidé ainsi en novembre dernier : consultés par référendum, ils ont approuvé par plus de 75 % des voix leur statut d'autonomie élargie.

Jonathan Motzfeldt, porte-parole de la Commission sur l'autonomie

C'est essentiel, quand on négocie avec d'autres nations, d'avoir notre propre voix, mais aussi notre propre identité.

Voix off

Désormais, le Groenland va posséder sa propre police et ses propres tribunaux, la langue des Inuits, qui représentent la grande majorité des 57 000 habitants, devrait également devenir une des deux langues officielles du territoire aux côtés du danois. Mais surtout grâce à son nouveau statut, le Groenland va pouvoir exploiter les richesses de son sous-sol. De l'or, du gaz, de l'uranium entre autres, mais surtout du pétrole qui attise toutes les convoitises.

Les Groenlandais comptent sur cette manne pour pouvoir à terme accéder à une indépendance totale. Mais l'extraction de l'or noir, une activité très polluante, pourrait bouleverser l'écosystème fragile du Groenland. À cause du changement climatique, l'île fait déjà face à une importante fonte des glaces qui met en péril son activité de pêche, la principale ressource du pays. Un défi économique et écologique qui dépasse ses frontières, le Groenland renferme en effet 10 % des réserves d'eau douce de la planète.


เริ่มกันที่คำแรกเล้ย...
voix (n.) articulation, interpreter, representative, spokesperson, vocalization, voice, vote, poll
hissé = hisser (v.) hoist, lift, run up, wind
drapeau (n.) banner, colors, ensign, flag, signal flag
renforce = renforcer (v.) strengthen
autonomie (n.) autonomy, home rule, liberty, self-determination, self-government
ainsi (adv.) hence, so, thereby, thus
consulter (v.) confab, confabulate, confer, consult, look up, refer, refer to
référendum (n.) referendum (the principle or practice of submitting to popular vote a measure passed on or proposed by a legislative body or by popular initiative)
élargie = élargir (v.) branch out, broaden, diversify, expand, stretch, widen
porte-parole (n.) interpreter, mouthpiece, representative, spokesman, voice

désormais (adv.) from now on, from this moment on, from this time on, henceforth, henceforward, in future
tribunaux = tribunal (n.) bar, bench, court, court of justice, court of law, judicature, law
devrait = devoir (v.) be, owe; have to, must, need, ought to, should
devoir (n.) assignment, burden, duty, encumbrance, function, homework, part, responsibility, role
devenir (v.) become, get, go, grow, maturate, mature, mellow, ripen, run, turn
surtout (adv.) chiefly, especially, mainly
statut (n.) position, rank, standing, status, state
pouvoir (n.) authority, control, force, leverage, might
pouvoir (v.) be able to, can, may
attise = attiser (v.) dig up, fan, fuel, pick up, rake up, snap up
convoitise (n.) anxiety, desire
comptent = compter (v.) charge, count, enumerate, include, matter, number

Tuesday, June 23, 2009

Note on Multi-objective optimization (??? objective space vs. decision space)

not clear yet...

Though there is a subtle difference in the way that a criterion function and an objective function is defined,
in a broad sense we treat them here as identical. ...

One of the striking difference between single-objective and multi-objective optimization is that in multi-objective optimization the objective functions constitute a multi-dimensional space, in addition to the usual decision variable space. This additional space is called the objective space, Z.

For each solution x in the decision variable space, there exists a point in the objective space, denoted by f(x) = z = (z1, z2, ..., zm)T
The mapping takes place between an n-dimensional solution vector and an M-dimensional objective vector.

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

Multi-objective optimization is sometimes referred to as vector optimization, because a vector of objectives, instead of a single objective, is optimized.

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

Linear and Nonlinear MOOP
- multi-objective linear program (MOLP): all objective functions and constraint functions are linear
- nonlinear problems: the solution techniques often do not have convergence proofs. Since most real-world multi-objective optimization problems are nonlinear in nature, we do not assume any particular structure of the objective and constraint functions here.

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

Convex and nonconvex MOOP
- for a convex function, a local minimum is always a global minimum
- ...???

The convexity of an MOOP is an important matter, which we shall see in subsequent chapters. There exist many algorithms which can handle convex MOOPs well, but face difficulty in solving nonconvex MOOPs. Since an MOOP has two spaces, the convexity in each space (objective and decision variable space) is important to a multi-objective optimization algorithm. Moreover, although the search space can be nonconvex, the Pareto-optimal front may be convex.

???

Note on Multi-objective optimization (The duality principle)

The inequality constraints are treated as `greater-than-equal-to' types, although a `less-than-equal-to' type inequality constraint is also taken care of. In the latter case, he constraint must be converted into a `greater-than-equal-to' type constraint by multiplying the constraint function by -1 (Deb, 1995).

The duality principle (deb, 1995; Rao, 1984; Reklaitis et al., 1983), in the context of optimization, suggests that we can convert a maximization problem into a minimization one by multiplying the objective function by -1.

The duality principle has made the task of handling mixed type of objectives much easier. Many optimization algorithms are developed to solve only one type of optimization problems, such as e.g. minimization problems. When an objective is required to be maximized by using such an algorithm, the duality principle can be used to transform the original objective for maximization into an objective for minimization.

ความละอาย...อยู่ที่ไหนหนอ: Where are you, ashamed?

เรื่องนึงที่รู้สึกอึดอัดมากมาย และยังไม่สามารถเข้าใจและยอมรับมันได้ก็คือความรับผิด รับชอบ ของคนสมัยนี้ ถ้าจะพูดให้ถูก คำว่าผิด ในยุคนี้มันมีความหมายอะไร หรือกับใครบ้างไหม

เรารู้สึกว่า คำว่าผิดจะมีความหมายต่อเมื่อ ถูกจับได้โดยคนที่มีอำนาจเหนือกว่า และอาจส่งผลเสียต่อคนที่ทำผิด

การทำผิด ทำความเลว ไม่ใช่เรื่องที่ต้องละอายกันอีกต่อไป
สิ่งที่เห็นตลอดเวลาตอนนี้คือ คนที่ทำผิด ทำนิสัยไม่ดี ก็แค่เชิดหน้า ่ว่าชั้นไม่ได้ทำอะไร ว่าเรื่องแค่นี้เอง แล้วก็มองคนที่ตัวเองทำร้ายด้วยสายตาเหยียดหยาม เพิกเฉย ประหนึ่งว่า แกไม่มีสิทธิ์มาว่าชั้นที่ชั้นได้ทำเรื่องเลวร้ายแบบนี้กับแก... กลายเป็นคนที่ถูกทำร้าย ทำไม่ถูกไปซะอย่างนั้นเอง

จิตสำนึกของคนเรามันหายไปไหน นับวัน ยิ่่งรู้จักคนมากขึ้นเท่าไร ก็ยิ่งรู้สึกว่า โลกนี้มันไม่น่าอยู่เอาซะเลย นักปรัชญาทั้งหลาย ศาสนาหลักๆทุกศาสนาที่พรำ่หาทางสอนให้คนในโลกนี้อยู่กันอย่างสันติ สงบสุข พยายามให้มนุษย์ ลด ละ ความโลภ ความเห็นแก่ตัว และความขี้เกียจ แต่ปัจจุบันกลายเป็นว่า ทุกคนเห็นคำสอน ความจริงเหล่านั้นเป็นแค่เรื่องในตำรา เป็นข้อเท็จจริง แต่ไม่สนใจ ไม่มีค่าอะไรให้ทำตาม

การประท้วง จะทำกันอย่างสันตินั้นไม่ได้อีกแล้ว เหตุผลคือไม่มีใครสนใจ นักประท้วงจึงต้องทำให้เหตุการณ์มันรุนแรงเข้าไว้ กระทบคนส่วนใหญ่ได้มากเท่าไรย่ิงดี โดยที่ไม่ได้คิด สำนึกเลยว่า ตัวเองเดือดร้อนยังไม่พอใจ จนลุกขึ้นมาประท้วงได้ แล้วชาวบ้านที่เดือดร้อนเพราะความรุนแรงที่พวกตนก่อขึ้น เค้าจะรู้สึกกันอย่างไร จะต้องให้เกิดการประท้วงซ้ำซ้อนหรือไม่

ฝ่ายนักปกครองเอง ก็ไม่ทำหน้าที่ให้ดี ให้ครอบคลุม ไม่ต้องถึงกับทำให้ทุกคนมีความสุข แต่เมื่อใดที่เกิดการประท้วง เกิดความไม่พอใจ นักปกครองเองก็ควรจะเร่งแก้ไขอย่างจริงจัง อย่างน้อยก็ไม่ทำให้ผู้ที่เดือนร้อนรู้สึกว่าถูกมองข้าม ถูกละเลย หากนักปกครองดูแลให้ทั่วถึง คิดถึงประโยชน์ส่วนรวม มากกว่าหน้าตา และสิ่งที่เกินพอดี เกินความจำเป็นสำหรับการเป็นคน นักประท้วงก็คงจะไม่ต้องลุกขึ้นมาก่อความรุนแรง หากเพียงนั่งหารือกัน แล้วปัญหาก็คลี่คลายได้ มีความพยายามร่วมกันได้

สิ่งที่ควรจะเป็นมันไม่เป็นไปอย่างนั้น เพราะคนไม่ยืดถึอความถูกต้อง และความจริงเป็นหลัก แต่กลับยึดถึอตัวเอง ตัวเงิน ตัวอำนาจ ตัวผลประโยชน์

ฉันคิดว่ามีคนมากมายที่คิดเพียงว่า ขอให้มีความสุข จะบนความทุกข์ใครก็ช่าง
ความละอาย...คำนี้ยังมีความหมายอีกไหมหนอ

Friday, June 19, 2009

Note on Multi-objective optimization (why evolutionary)

The evolutionary algorithm (EA) mimics nature's evolutionary principles to drive its search towards an optimal solution. One of the most striking differences to classical search and optimization algorithms is that EAs use a population of solutions in each iteration, instead of a single solution. Since a population of solutions are processed in each iteration, the outcome of an EA is also a population of solutions. If an optimization problem has a single optimum, all EA population members can be expected to converge to that optimum solution. However, if an optimization problem has multiple optimal solutions, an EA can be used to capture multiple optimal solution in its final population.

Note on Multi-objective optimization (ideal MO)

principle for an ideal multi-objective optimization procedure:

Step 1: Find multiple trade-off optimal solutions with a wide range of values for objectives.

Step 2: Choose one of the obtained solutions using higher-level information

1. Multi-objective optimization problems
- minimize f1
- minimize f2
- .
- .
- .
- minimize fk

subject to constraints

2. IDEAL Multi-objective optimizer

3. Multiple trade-off solutions found

4. Higher-level information

5. Choose one solution

Thus, there is a fundamental difference in using the problem information in both approaches. In the preference-based approach, a relative preference vector needs to be supplied without any knowledge of the possible consequences. However, in the proposed ideal approach, the problem information is used to choose one solution from the obtained set of trade-off solutions.

Thursday, June 18, 2009

Julien and Guillaume are the best colleagues  <-- Said by Julien [Mafia ZLeon]

Note on Multi-objective optimization (preference-based MO)

A book of Kalyanmoy Deb gives me some interesting points for the beginner of this MOEAs (Multi-objective Optimization using Evolutionary Algorithms) area.
Tracing back to when I studied Decision Making System, I leant about optimizing multi-constraint or multi-goal. However, I sense that somehow what I've learn are definitely different from Multi-objective optimization. The book of Deb leads me well to inside knowledge.

According to what I've learned, the solution need to be a maximum or minimum value of the problem using many constraints or objectives. However, these constraints and goals are the weighted sum of the objectives where a weight for an objective is proportional to the preference factor assigned to that particular objective. This is a so-called the scalarized method, scalarizing an objective vector into a single composite objective function converts the multi-objective optimization problem into a single-objective optimization problem. When such a composite objective function is optimized, in most cases it is possible to obtain one particular trade-off solution.

This procedure of handling multi-objective optimization problems is much simpler, yet still being more subjective than the ideal procedure. We call this procedure a preference-based multi-objective optimization.

A schematic of this procedure is described as follows.
"Based on the higher-level information, a preference vector w is first chosen. Thereafter, the preference vector is used to construct the composite function, which is then optimized to ind a single trade-off optimal solution by a single-objective optimization algorithm. Although not often practiced, the procedure can be used to find multiple trade-off solutions by using a different preference vector and repeating the above procedure."

1. Multi-objective optimization problems
- minimize f1
- minimize f2
- .
- .
- .
- minimize fk

subject to constraints

2. Higher-level information

3. Estimate a relative importance vector (w1, w2, ..., wm)

4. Single-objective optimization problem

F = w1.f1 + w2.f2 + ... + wm.fm
or
a composite function

5. Single-objective optimizer

6. One optimum solution

It is important to realize that the trade-off solution obtained by using the preference-based strategy is largely sensitive to the relative preference vector used in forming the composite function. A change in this preference vector will result in a (hopefully) different trade-off solution.

Beside this difficulty, it is intuitive to realize that finding a relative preference vector itself is highly subjective and not straightforward. This requires an analysis of the non-technical, qualitative and experience-driven information to find a quantitative relative preference vector. Without any knowledge of the likely trade-off solutions, this is an even more difficult task.

The ideal multi-objective optimization procedure is less subjective.

Monday, June 15, 2009

Le futur

Le futur sert à formuler des prévisions ou à faire des prédictions.

- Demain, il fera soleil sur tout le pays.
- Dans 30 ans, nous mercherons sur Mars.

Il sert aussi à faire des promesses.

- Demain, je viendrai te chercher à 16 heures.
- Cet appareil vous facilitera la vie.

**********************************************

Bientôt, ...
Demain, ...
Dans 5 jours/mois... nous serons plus heureux.
Au siècle prochain, ... (siècle = century)
Le mois prochain, ...

**********************************************

Verbes réguliers

Je manger- -ai
Tu étudier- -as
Il/elle/on finir- -a
Nous  manger- -ons
vous étudier- -ez
ils/elles écrir- -ont
prendr-

Verbes irréguliers

Je Être ser- -ai
tu Avoir aur- -as
il/elle/on Faire fer- -a
nous Savoir saur- -ons
vous Pouvoir pourr- -ez
ils/elles Devoir devr- -ont
Voir verr-


Décrire un objet

un sac en ...
- papier
- tissu
- cuir
- plastique

une boîte en ...
- carton
- bois
- porcelaine
- fer
- verre

C'est petit.
C'est grand
C'est plat
C'est long
C'est rond
C'est carré
C'est rectangulaire
C'est triangulaire
C'est lavable
C'est jetable (disposable)
C'est incassable (unbreakable)
C'est imperméable (waterproof)

ça se lave facilement
ça s'ouvre tout seul
ça se mange

ça sert à écrire
C'est utile pour ouvrir une bouteille
ça permet d'écouter de la musique
ça marche avec des piles (battery), de l'électricité, de l'essence

Pronoms relatifs: qui et que
C'est un objet qui permet de laver le linge.
(=l'objet permet de laver...)

C'est une chose qui sert à griller le pain.
(=la chose sert à...)

C'est un objet que vous portez dans votre sac. 
(=vous portez l'objet...)

C'est une chose que l'on utilise pour manger.
(=on utilise cette chose pour...)

c'est un objet qui coupe

1. Alors, c'est quelque chose qui sert à écrire ou à dessiner, qui est retangulaire et blanc, que vous utilisez en classe, et qui est en papier. (une feil)

2. C'est un objet que vous utilisez pour effacer une faute, mais seulement quand vous avez écrit au crayon, qui mesure 5 cm plus ou moins, et qui parfois est bleu et rouge. (une gomme)

3. C'est quelque chose que vous mettez en hiver, qui est chaud, qui est en laine, qui est rectangulaire et que vous mettez autour du cou. (une écharpe)

4. C'est un vêtement que vous mettez pour skier par exemple, qui est en laine et que vous mettez sur la tête. (un bonnet)

5. C'est un objet qui fonctionne avec de l'électricité, qui permet de voir dans l'obscurité, qui est en verre, qui se casse très facilement. (une ampoule)

obscurité = darkness

6. C'est un objet que les hommes utilisent, qui est jetable, et qui coupe. (un rasoir)

jetable = disposable

des objets pour...

1. des objets pour jouer: 
un pion = chess
un jeu de cartes, 
une pièce de monnaie

2. des objets pour la cuisiné: 
un micro-onder, 
une fourchette, 
un verre, 
un couteau, 
un tube de colle = bath tub
une armoire = cupboard / wardrope
un robinet = tab / faucet

3. des objets dans la chambre:
un réveil-matin
une lampe
une armoire
des pantoufles = slippers

4. des objets pour le bureau:
une bibliothèque
une lampe
un journal
un cadre de photo
une lettre d'amour
une photo
un ordinateur

**********************************
le stylo BIC 1925
les plats surgelés 1953
le ruban adhésif (scotch) 
la carte à puce 1981
l'ordinateur personnel (PC) 1974

L'invention

Construction identique
Avant
Autrefois
Il y a à peine (barely, hardly)
deux décennies
aujourd'hui

Avant l'invention de l'avion, voyage était très long, très difficile et dangereux. Ensuit/Aussi/De plus, ça coûtait beaucoup d'argent. Mais aujourd'hui, on peut voyager plus rapidement et moins cher.

mouchoir = handkerchief
Avant d'avoir les mourchoirs en papier nous devions laver beaucoups

un béret / un bonnet(หมวกไหมพรม)
une gomme (ยางลบ)
une écharpe (ผ้าพันคอ)
des ciseaux (scissors)
un raseur en plastique
une feil

pandant le voyage = en voyagant
bon marché /= pas chère

Avant l'invention de l'avion, voyager était plus compliqué et n'était pas comfortable. Au début, l'avinon était prévu pour une ou deux personnes et l'utilisation était plus chère. Aujourd'hui grâce à lui, nous avons beaucoup de possibilités pour voyager parce-qu'il y a beaucoup d'entreprises qui proposent de voyager du manière.



French exams!!! - Les plats sur surgelés

^^" I just recall that I have french exam today, lucky...
Well so I will review a bit here.

L'ordinateur personel
téléphone portable
lentilles de contact
micro-ondes
digital-télévision
L'internet
Satelite
Les repas préparés pour micro-onde
RFID
GPS (navigateur de bord)
Le D.V.D
Le T.G.V
Les produire surgelés (frozen foods)

Les plats sur surgelés
Avant, la préparation d'un boeuf bourguignon ou d'un cassoulet demandait beaucoup de travail. Aujourd'hui, les plats congelés facilitent la vie des personnesqui n'aimet pas faire la cuisine ou qui n'ont pas le temps. L'avantage de cette technique de conservation est que les qualités nutritive restent intactes.

Monday, May 25, 2009

พันทะมิด หรือ 1000 ทมิฬ

กำลังจะตั้งพรรคกันซะแล้ว...
เราไม่แน่ใจว่าเป็นการเปลี่ยนแปลงทางการเมือง หรือมันจะกลายเป็นแค่การเปลี่ยนขั้วอำนาจ และการเปลี่ยนขั้วครั้งนี้ดูจะน่ากลัวกว่าทุกครั้ง
หลังจากที่คุณสนธิ กล่าวปราศรัยคลับคล้ายกับเผด็จการ ยิ้มเยาะ เยาะเย้ย คนอื่น
เราไม่แน่ใจว่าคนนี้ควรเป็นผู้แทน

4 days in da paradise... (my own room)

What a happy life within a (not) so small room of mine...
Now I have a dining table (for real this time, not a children table anymore), plus plus a new set of table knifes, spoons, and forks.

Yum yum, I also bought two new bowls, beige color, and they are very suit to hold 'Tom Yum Kung'. Actually the first thing I put into it was 'MA-MA Tom Yum Kung' (555 too lazy to cook the real one -*-). However, the very next meal I had 'Pa-nang Moo' in it, ei ei. This Pa-nang, I cooked a lot for Julien too but he didn't come to office on Friday (and I didn't go on that day), so it's his fault ^^".

Well well, I had enough Pa-nang Moo for 4 meals :D

What's next?... Oh in my terrace, Strawberries, Cocktail Tomatoes and Paprika plants are laid down under this hot and sunny weather. I hope you little baby will grow fast and give me the fruit soon... A-men

Saturday, May 2, 2009

Tips สำหรับการทำอาหารไทย ตอนที่ หนึ่ง

ผัดพริกขิงหมูกับถั่วฝักยาว
ให้หมักหมูกับน้ำปลาเล็กน้อยก่อน
ต้มถั่วฝักยาวพอสุกพักไว้
แล้วผัดหมูพอสุกพักไว้
ผัดน้ำพริกเครื่องแกงให้พอหอม แล้วค่อยใส่หมู ปรุงรส ใส่ถั่ว ยกขึ้น

พะแนง
ไก่
ให้รวนไก่พอสุกพักไว้
ผัดพริกแกงกับน้ำมันให้หอม เติมกะทิ ใช้ไฟอ่อน ให้แตกมัน
ใส่ไก่และส่วนผสมอื่น ปรุงรส เคี่ยวไฟอ่อนให้ไก่นุ่ม ตามด้วยโหระพายกขึ้น
เนื้อ
ต้องเคี่ยวเนื้อกับหางกะทิให้เปื่อยก่อนผัดกับพริกแกงแตกมัน

แกงจืดวุ้นเส้น
รากผักชี พริกไทย กระเทียมโขลกละเอียด แล้วเอาไปผัดให้หอม
ตามด้วยหมู หรือหมูสับ
ปรุงรสด้วยน้ำปลา
แล้วเติมน้ำซุปนิดหน่อย
ใส่วุ้นเส้นที่แช่น้ำไว้ และเครื่องผักอื่นๆ ผัดประมาณห้านาที
เติมน้ำซุปที่เหลือตั้งไฟให้เดือด แล้วใส่น้ำปลาชิมรส
ปิดท้ายด้วยใส่ต้นหอมหั่นท่อนสั้น แล้วยกลง

แกงจืดมะระยัดไส้หมูสับ
รากผักชี พริกไทย กระเทียมโขลกละเอียด ผสมกับหมูสับ และซีอิ๊วขาวนิดหน่อย

Thursday, April 9, 2009

9th day of my diet

Ok! It works!
Almost two weeks ago I had 65 kg. Now I have 63.3 kg ;-)
For me this is a really good pace, not too fast but some weight are gone.

What happened in the first week is that I reduced my dinner to either salad or soup or apple(s) during work days. Anyway, I couldn't help eating more during week-end as it is a way for relaxing with friends. My second week start with some exercises, i.e. jogging, swimming and playing Wii.
Oh I had a real dinner after swimming too. I was so deadly hungry but finally I couldn't finish my dish. I guess that my stomach size is reduced a bit from this diet (cool!).

BTW, today I will have another real dinner again with my Thai friend (but in chinese restaurant). I swear not to eat more than what I need ^^".




Monday, March 30, 2009

my first diet day!

Now I've 65 kg. It's too much for me indeed. I want to reduce to 55 kg. in 6 months. Hope this is not too rapid :-)

Anyway, today I start out with cereal, followed by one set of sushi. The hardest part may be the dinner. I shall have only salad. Let's see what will happen tonight!!!

I hope I can sleep.... meowwwww.

Sunday, March 8, 2009

เทียบอัตราส่วนแบบต่างๆ ในการทำอาหาร และขนม

แบบที่1
1 ช้อนโต๊ะ=3 ช้อนชา
1 ถ้วย=16 ช้อนโต๊ะ
1 กิโลกรัม=2.21 ปอนด์
1 ปอนด์=454 กรัม
1 ปอนด์=16 ออนซ์

เนย
1 ออนซ์=2 ช้อนโต๊ะ
1 ถ้วย=8 ออนซ์
1 ถ้วย=1/2 ปอนด์
1 ถ้วย=227 กรัม

น้ำตาลทรายขาวละเอียด
1 ถ้วย=180 กรัม
2 1/2 ถ้วย=1 ปอนด์

น้ำตาลทรายแดง
1 ถ้วย=185 กรัม
2 2/5 ถ้วย=1 ปอนด์

เม็ดมะม่วงหิมพานต์
1ถ้วย(ยังไม่บด) เท่ากับ 130กรัม
1ถ้วย(บดแล้ว) เท่ากับ140กรัม

ถั่วลิสงคั่ว
1ถ้วย(ยังไม่บด) เท่ากับ120กรัม
1ถ้วย(บดแล้ว) เท่ากับ 125กรัม

แป้งเค้ก โดยเฉลี่ย
1 ถ้วย(ยังไม่ร่อน) เท่ากับ 105กรัม
1ถ้วย (ร่อนแล้ว) เท่ากับ 90กรัม

แป้งเอนกประสงค์โดยเฉลี่ย
1ถ้วย(ยังไม่ร่อน) เท่ากับ 115กรัม
ถ้วย(ร่อนแล้ว) เท่ากับ 100กรัม

ผงฟู
1ช้อนชา เท่ากับ 2.5กรัม

โซดาไบคาร์บอเนต
1ช้อนชา เท่ากับ 3กรัม

ลูกเกด
1ถ้วย(ยังไม่หั่น) เท่ากับ 145กรัม
1ถ้วย (หั่นแล้ว) เท่ากับ 150กรัม

อินทผลัม
1ถ้วย (แกะแต่เนื้อ) เท่ากับ120กรัม
1ถ้วย (แกะและหั่น) เท่ากับ 135กรัม

น้ำ
1ถ้วย เท่ากับ 220กรัม


แบบที่2

มาตราส่วนทั่วไป

3 ช้อนชา = 1 ช้อนโต๊ะ
2 ช้อนโต๊ะ = 1 / 8 ถ้วยตวง
4 ช้อนโต๊ะ = 1/ 4 ถ้วยตวง
12 ช้อนโต๊ะ = 3/ 4 ถ้วยตวง
16 ช้อนโต๊ะ = 1 ถ้วยตวง
1 ไพน์ = 2 ถ้วย
1 ควอท = 4 ถ้วย
1 แกลลอน = 4 ควอท
1 ออนซ์ (ของเหลว) = 2 ช้อนโต๊ะ
1 ถ้วย = 8 ออนซ์
1 ออนซ์ (ของแห้ง) = 28.3 กรัม
1 ปอนด์ = 16 ออนซ์ หรือ 454 กรัม
1 กิโลกรัม = 2.2 ปอนด์

มาตราส่วนสำหรับแป้งสาลี
แป้งขนมปัง (ตราห่าน) 1 ถ้วย = 110 กรัม
แป้งเอนกประสงค์ (ตราว่าว) 1 ถ้วย = 95 กรัม
แป้งเค้ก (ตราพัดโบก) 1 ถ้วย = 90 กรัม
แป้งสาลีชนิดเบาที่สุด (ตราบัวแดง)
ถ้วย = 90 กรัม
แป้ง Whole Wheat 1 ถ้วย = 70 กรัม
แป้งข้าวโพด 1 ถ้วย = 100 กรัม
ข้าวโอ๊ต 1 ถ้วย = 75 กรัม

มาตราส่วนสำหรับส่วนผสมชนิดอื่น ๆ
(1) น้ำตาล
น้ำตาลทราย 1 ถ้วย = 185 กรัม
น้ำตาลทรายแดง 1 ถ้วย = 180 กรัม
น้ำตาลไอซิ่ง 1 ถ้วย = 85 กรัม
น้ำผึ้ง 1 ถ้วย = 300 กรัม

(2) ไขมัน
เนยสด (หรือมาการีน) 1 ถ้วย = 200 กรัม
เนยขาว 1 ถ้วย = 185 กรัม
Peanut Butter 1 ถ้วย = 240 กรัม
Pastry Margarine 1 ถ้วย = 200 กรัม
น้ำมันพืช 1 ถ้วย = 200 กรัม

(3) ไข่
ไข่ไก่ (ขนาดกลาง) 1 ฟอง = 50 กรัม
ไข่แดง 1 ฟอง = 17 กรัม
ไข่ขาว 1 ฟอง = 33 กรัม

(4) นมและผลิตภัณฑ์นม
นมข้นจืดระเหย 1 ถ้วย = 240 กรัม
นมผงขาดมันเนย 1 ถ้วย = 120 กรัม
ครีมข้น 1 ถ้วย = 225 กรัม
วิปปิ้งครีมสด 1 ถ้วย = 200 กรัม

(5) สารขึ้นฟู
ยีสต์แห้ง 1 ช้อนโต๊ะ = 7 กรัม
โซดาไบคาร์บอเนต (Baking Soda) 1 ช้อนโต๊ะ = 10 กรัม
ผงฟู (Baking Powder) 1 ช้อนโต๊ะ = 8 กรัม
ครีมออฟทาร์ทาร์ (Cream of Tartar) 1 ช้อนโต๊ะ = 7 กรัม
แอมโมเนีย (เช้าก่า) 1 ช้อนโต๊ะ = 10 กรัม

(6) เบ็ดเตล็ด
ผงโกโก้ 1 ถ้วย = 65 กรัม
Chocolate สำเร็จรูป 1 ถ้วย = 200 กรัม
Chocolate สำเร็จรูปสำหรับแต่งหน้า 1 ถ้วย = 120 กรัม

น้ำ 1 ถ้วย = 225 กรัม
วานิลา 1 ช้อนโต๊ะ = 10 กรัม
กาแฟสำเร็จรูป 1 ช้อนโต๊ะ = 2 กรัม
น้ำใบเตยคั้นข้น 1 ช้อนโต๊ะ = 15 กรัม
เกลือ 1 ช้อนโต๊ะ = 10 กรัม


แบบที่3
มาตรส่วนเปรียบเทียบน้ำหนักและการตวง ของ UFM

แป้งพัดโบก,บัวแดง 1 ถ.= 90 ก. , 3/4 = 67.5 , 2/3 = 60 , 1/2 = 45 , 1/3 = 30 , 1/4 = 22.5 ,
1ช.ต. = 5.6

แป้งว่าว 1 ถ.= 95 ก., 3/4 = 71.3 , 2/3 = 60 , 1/2 = 47.5 , 1/3 = 31.6 , 1/4 = 23.8 , 1 ช.ต. = 5.9

แป้งห่าน 1 ถ. = 110 ก., 3/4 = 82.5 , 2/3 = 73.3 , 1/2 = 55 , 1/3 =36.6 , 1/4 = 27.5 , 1 ช.ต. = 6.8

น้ำตาลทราย 1 ถ. = 185 ก., 3/4 = 138.8 , 2/3 = 123.3 , 1/2 = 92.5 , 1/3 = 61.6 , 1/4 = 46.3 ,
1 ช.ต. = 11.5

น้ำตาลทรายแดง 1 ถ. = 180 ก., 3/4 = 135 , 2/3 = 120 , 1/2 = 90 , 1/3 = 60 , 1/4 = 45 , 1 ช.ต. = 11.3

ไอซิ่ง 1 ถ. = 100 ก., 3/4 = 75 , 2/3 = 66.6 , 1/2 = 50 , 1/3 = 33.3 , 1/4 = 25 , 1 ช.ต. = 6.2

เนยสด,มาร์การีน 1 ถ. = 200 ก., 3/4 = 150 , 2/3 = 133.3 , 1/2 = 100 , 1/3 = 66.6 , 1/4 = 50 ,
1 ช.ต. = 12.5

เนยขาว 1 ถ. = 185 ก., 3/4 = 138.8 , 2/3 = 123.3 , 1/2 = 92.5 , 1/3 = 61.6 , 1/4 = 46.3 , 1 ช.ต. = 11.5

นมสด 1 ถ. = 244 ก., 1/2 = 122 , 1/3 = 81 , 1/4 = 61 , 1 ช.ต. = 12

นมผง 1 ถ. = 120 ก., 3/4 = 90 , 2/3 = 80 , 1/2 = 60 , 1/3 = 40 , 1/4 = 30 , 1 ช.ต. = 7.5

น้ำ 1 ถ. = 225 ก., 3/4 =168.7 , 2/3 = 150 , 1/2 = 112.5 , 1/3 = 75 , 1/4 = 56.2 , 1 ช.ต. = 14.06

ผงโกโก้ 1 ถ. = 65 ก., 3/4 = 48.7 , 2/3 = 43.2 , 1/2 = 32.5 , 1/3 = 21.6 , 1/4 = 16.2 , 1 ช.ต. = 4.06

ยีสต์ 1 tbsp = 7 g , 1 tsp = 2.3 , 1/2 tsp = 1.1 , 1/4 tsp = 0.5

เบคกิ้งโซดา 1 tbsp = 10 , 1 tsp = 3.3 , 1/2 tsp = 1.6 , 1/4 tsp = 0.8

ผงฟู 1 tbsp = 8 , 1 tsp = 2.6 , 1/2 tsp = 1.3 , 1/4 tsp = 0.6

น้ำหอม,เกลือ,น้ำมะนาว 1 tbsp = 10 , 1 tsp = 3.3 , 1/2 tsp = 1.6 , 1/4 tsp = 0.8

พริกไทยป่น 1 tbsp = 6 , 1 tsp = 2 , 1/2 tsp = 1 , 1/4 tsp = 0.5

อบเชยป่น 1 tbsp = 3 , 1 tsp = 1 , 1/2 tsp = 0.5 , 1/4 tsp = 0.25

แป้งตราห่าน -- แป้งทำขนมปังค่ะ
แป้งตราว่าว (อันนี้คือ All-purpose ใช่ป่าวเอ่ย) -- ถูกต้องนะค้าบบบบ
แป้งตราบัวแดง -- แป้งสาลีชนิดพิเศษ เห็นว่าเหมาะกับการทำปุยฝ้ายค่ะ
แป้งตราพัดโบก-- แป้งเค้กค่ะ

ขอขอบคุณข้อมูลจากกระทู้นี้คะ

Tuesday, February 10, 2009

L'art de préparer poissons, crustacés et mollusques

Préparer des petits poissons en filet

Coupez la tête
COUPER (vt) cut

puis incisez le poisson en deux sur toute la longueur du ventre.
INCISER (vt) make an incision in ^^ ผ่ากลางตัวคร้าบพี่น้อง
VENTRE (nm) stomach, belly, womb


Videz-le et jetez les entrailles.

VIDER (vt) 1. empty, throw out 2. (poisson) gut
JETER (vt) throw away
ENTRAILLES (nf. pl.) ensemble des organes enfermés dans l'abdomen de l'homme ou des animaux


Aplatissez le poisson sur toute sa longueur en appuyant sur l'arête centrale
APLATIR
APPUYER SUR (vi) press (on)


avec le pouce ou à l'aide d-un pertit rouleau à pâtisserie.


Passez délicatement un couteau bien aiguisé sous l'arête


pour lever les filets sans entailler la chair.

Friday, January 30, 2009

optimization/approximation algorithms/polynomial time/... NP-HARD

NP-hard optimization problems exhibit a rich set of possibilities, all the way from allowing approximability to any required degree, to essentially not allowing approximability at all. Despite this diversity, underlying the process of design of approximation algorithms are some common principles. We will explore these in the current chapter.

An optimization problem is polynomial time solvable only if it has the algorithmically relevant combinatorial structure that can be used as "footholds" to efficiently home in on an optimal solution. The process of designing an exact polynomial time algorithm is a two-pronged attack: unraveling this structure in the problem and finding algorithmic techniques that can exploit this structure.

Although NP-hard optimization problems do not offer footholds for finding optimal solutions efficiently, they may still offer footholds for finding near-optimal solutions efficiently. So, at a high level, the process of design of approximation algorithms is not very different from that of design of exact algorithms. It still involves unraveling the relevant structure and finding algorithmic techniques to exploit it. Typically, the structure turns out to be more elaborate, and often the algorithmic techniques result from genralizating and extending some of the powerful algorithmic tools developed in the study of exact algorithms.

On the other hand, looking at the process of designing approximation algorithms a little more closely, one can see that it has its own general principles.

ref: Vijay V. Vazirani, Introduction, 'Approximation algorithms', Springer2003.