Wednesday, April 29, 2009

UHLL (Universal Hospitality Language Layer)

Looking on UHLL specifications. UHLL is a language that was developerd for the hospitality industry. It is expandable message-based language that enables a Property Management System (PMS) to interface with Lodging Link through one simple, well defined interface. For more information

Lock Verizon Cellphone

I locked cellphone accidently. Called Verizon Support - to unlock cellphone (enter 4 last digits of phone number). Also, Verizon will get iphone. I still use my old cellphone for about 2 years

Saturday, April 25, 2009

lard

the rendered fat of hogs, esp. the internal fat of the abdomen.

Wednesday, April 22, 2009

BASH (PATH setup)

PATH=$PATH:/data/myscripts
export PATH

1. One User ($HOME/.bash_profile)
2. All users except root /etc/profile
3. root /root/.bash_profile

FOR JAVA:
$JAVA_HOME=/usr/java/jdk1.6.0_13 (java location)
$PATH=/usr/java/jdk1.6.0_13/bin (for javac and java)

Tuesday, April 21, 2009

adolescence

- the process or state of growing to maturity
- a period or stage of development
- the transitional period between puberty and adulthood in human development

culprit

- a person or other agent of or responsible for an offense or fault
- a person arraigned for an offense

Monday, April 20, 2009

AKA for XML

DTD - Document Type Definition
PCDATA - Parsed Character Data (text)
CDATA - Character Data (unparsed Data)
PI - Processing Instructions (sticky notes)
SAX - Simple API for XML
BNF - Backus-Naur Form (define Grammars)
DOM - Document Object Model

whim

whim (noun)
- An odd or capricious notion or desire
- A sudden or freakish fancy
- A sudden whim to take a midnight walk
- Capricious humor
- To be swayed by whim

Sunday, April 19, 2009

feeble, vigorous, irresolute and scarcity

feeble - physical or intellectual weak
vigorous - strong, active, robust, energetic, powerful in action
scarcity - shortness of supply
irresolute - not resolute, doubtful
vowel - a,e,i,o,u and sometimes w and y
consonant - opposite of vowel

The Psychology Influence of Persuasion



The book was recommended by Joel Spolsky. I like the book. The book is divided into 6 parts (Reciprocation, Commitment and Consistency, Social Proof, Liking, Authority and Scarcity) and it has plenty examples and researches.

Few phrases from the book:

Everything should be made as simple as possible, but not simpler - Albert Einstein

It is easier to resist at the beginning that at the end - Leonardo DA Vinci

Where all thin alike, no one thinks very much - Walter Lippmann

The main work of a trial attorney is to make a jury like his client - Clarence Darrow

The way to love anything is to realize that it might be lost - G.K. Chesterton

Adjust Car Mirrors

Here is good articles how to adjust car mirrors. I would need to make changes on my car to avoid blind spots. We'll make the adjustment tomorrow and see how it works.
In any case here are few materials for the topic:

Set your car sideview mirrors
Adjust SideView Mirror Video - YouTube
Adjust Mirrors - Ehow.com

Isaac Asimov and sport phrase

I'm reading "The Psychology Influence of Persuasion" boom by Robert B. Caildini.
Here is good phrase by Isaac Asimov in the book "All things being equal , you root for you own sex, your own culture, your own locality... and what you want to prove is that you are better the other person. Whomever you root for represents you; and when he wins, you win". I agree with the saying!!

Note: I would get few books of Isaac Asimov to read.

Friday, April 17, 2009

New Words - April 17

Here are few words that I found for last few days:


Here is few new words that I found today:
1. vat - large container
2. drudge - a feeling of ill will or resentment.
To hold a drudge against a former opponent.
3. lowball - to deliberately estimate a low price
4. tardy - late behind time
5. dichotomous - divided or dividing into 2 parts.
6. efficacy - capacity for providing a desired result or effect.
7. placebo - a substance that have no pharmaceutical effect

Binge Eating

I have craving from time to time to clean up refrigerator and eat everything.
The term for such thing is Binge eating
Definition: is a pattern of disordered eating which consists of episodes of uncontrollable overeating. It is sometimes a symptom of binge eating disorder. During such binges, a person rapidly consumes an excessive amount of food.

Main Reasons:
- Cortisol Cravings
- Social Eating
- Nervous Energy
- Childhood Habits
- Stuffing Emotions

Rumination

I just found new word that I would like to add to my dictionary - Rumination.
Definition: This human tendency to obsess, trying to work things out in one's mind, is common.
When these thougns turn more negative and brooding, that's known as rumination.

The word is actual psychological state. Rumination has several negative effects:
- Stress
- Negative Frame of Mind
- Less Proactive Behavior
- Self Sabotage (binge eating, self-sabotaging)
- Hypertension

For more information there is good article

How Can I Clear My Mind?

About two weeks ago I started to make changes to my life Live Stressful Live. I start to see some progress. Also, I realized that my mind is not clear. So searching on Google I found interesting article How Can I clear My Mind?

I see that I have the symptoms therefore I should try to resolve it. Here are the methods how ti clean my mind:
- Try Mediation
- Cultivate Mindfulness
- Try Expressive Writing
- Distract Yourself

I also realize that I have "Type A" personality. Here is explanation and advice for the Type A

Negative Effects of Type A Behavior:
- Hypertension
- Heart Disease
- Job Stress
- Social Isolation

What Can Be Done for Type A's:

- Change Your Work Life
- Change Thought Patterns
a). Fake It Till You Make It
b). Start Journaling
1). Keep a record
2). Write about your feelings
3). Write about solutions
4). Face Your Fears:
- Long Lines in the Grocery Store
- Make It A Game
- Breathing Exercises
- Love Your Pets
- Gardening

Wednesday, April 15, 2009

AKA for mail

MUA - Mail User Agent
MTA - Mail Transport Agent
MDA - Mail Delivery Agent
POP3 - Post Office Protocol
IMAP - Internet Message Access Protocol

Tuesday, April 14, 2009

PHP objects, Patterns, and Practice


The book is about OOP and design patterns specifically for PHP5. It also includes chapters for CVS, PHPUnit, Phing, Pear and phpDocumentor. I pleased with reading and information in the book. The book is a good programmer reference.

Monday, April 13, 2009

The Ten Commandments


1. I'm the Lord your God, you shall have no other gods before me.
2. You shall not take the name of the Lord your God in vain.
3. Keep holy the Sabbath day.
4. Honer your father and your mother.
5. You shall not kill.
6. You shall not commit adultery.
7. You shall not steal.
8. You shall not bear false witness.
9. You shall not covet your neighbor's wife.
10. You shall not covet your neighbor's goods.


Source: Predictable Irrational (Dan Ariely)

Sunday, April 12, 2009

Predictable Irrational (Dan Ariely)


I start reading the book yesterday and I like it so far. It shows how to look on thing rational. Here is good word by Woody Allen : "The most expensive sex is free sex" (laugh)

I finished reading the book. The book was interested and informal for me. I would highly recommend the book.

Friday, April 10, 2009

new AKA - EULA, SaaS, OSS

Few new aka for the week:
EULA - End User License Agreement
SaaS - Software as a Service
OSS - Open Source Software

PS: A promise to update on living less stressful life.
I drink regular water, focus on one thing at a time(NO MULTITASKING), almost didn't check email/phone at work, looking for gym membership and bought furniture for parents.

Thursday, April 9, 2009

Bigtable: A Distributed Storage System for Structured Data

I just found an interesting article that I'll read tomorrow:
Here is a link

RFC - 40 years

on April 6, 2009 the 40th anniversary of what is known as Request for Comments. Here is article in New York Times (How the Internet Got Its Rules

Bash Script to check internet connectivity

Today I decided to search for Linux website/blog LinuxScrew.

Here is example from website of very simple bash script to check internet connection:

#!/bin/bash

WGET="/usr/bin/wget";

$WGET -q --tries=10 --timeout=5 http://www.google.com -O /tmp/index.google &> /dev/null
if [ ! -s /tmp/index.google ];then
echo "no"
else
echo "yes"
fi

Tuesday, April 7, 2009

Singleton Pattern

Singleton Pattern is designed to restrict instantiation of a class to one object. The pattern can be used for global variables or database connection.

class Preferences {
private $props = array();
private static $instance;

// cannot be instantiated
private function __construct();

public static function getInstance() {
if ( empty( self::$instance )) {
self::$instance = new Preferences();
}
return self::$instance;
}

public function setProperty( $key, $val ) {
$this->props[$key] = $val;
}

public function getProperty( $key ) {
return $this->props[$key];
}
}

Monday, April 6, 2009

UML - Unified Modeling Language

UML stands for Unified Modeling Language. Abstract classes are represented either by italicizing the class name or by adding {abstract} to the class name. Interfaces are defined in the same was as classes, except they must include a stereotype (<< interface >>). Visibility Symbols:
+ (Public, Available to all code)
- (Private, Available to the current class only)
# (Protected, Available to the current class and its subclasses only)

The UML describes the inheritance relationship as generalization. This relationship is signified by a line leading from the subclass to its parent. The line is tipped with an empty closed arrow.

The UML describes the relationship between an interface and the classes that implement it as realization(- - - |>)

An association occurs when a class property is declared to hold a reference to an instance (or instances) of another class).

Sequence Diagram is object based rather than class based. It is used to model a process in a system step by step.

Encapsulation

Encapsulation simply means the hiding of data and functionality from a client. On the simplest level, we encapsulate data by declaring properties private or protected. By hiding a property from client ode, we enforce an interface and prevent the accidental corruption of an object's data.

Polymorphism

Polymorphism, or class switching, is a common feature of object-oriented systems. Polymorphism is the maintenance implementations behind a common interface. Polymorphism illustrates another kind of encapsulation. By placing different implementations behind a common interface, we hide these underlying strategies from the client. This means that any changes that are made behind this interface are transparent to the wider system.

Sunday, April 5, 2009

Words Definition: ubiquitos, IRA, transient, piffle, astute, aphorism

1. IRA - Individual Retirement Arrangement
2. ubiquitous - existing, being elsewhere
3. transient:
adjective: not lasting, lasting short time, staying only short time
noun: a function that tends to zero as the independent variable tends to infinity
4. velcro a brand of fastening tape consisting of opposing pieces of fabric, one with a dense arrangement of tiny nylon hooks and the other with a dense nylon pile, that interlock when pressed together, used as a closure on garments, luggage, etc., in place of buttons, zippers, and the like.
5. piffle - nonsense as trivial
6. astute - clever, cunning
7. aphorism - a terse saying embodying a general truth, a brief statement of a principle
8. levy - to impose a tax

Friday, April 3, 2009

Less Stressful Life

Because of recent changes in my personal life I'm experience stress. I'm not feeling
good for some time - today I search for some advices online. So I decided try to make changes to my life and make it less stressful. Here is list of recommended items for the article

1. One thing at a time.
2. Simplify your schedule.
3. Get Moving.
4. Develop one healthy habit this month.
5. Do something calm
6. Simplify your finances.
7. Have a blast!
8. Get creative.
9. Declutter
10. Be early.

For next few weeks I will try to do the following:
1. Check email at night (ONCE a day).
2. Drink Water (no juice or coke)
3. Going to gym (sign for membership in Local gym) and Walking
4. Focus on one thing at once (1)
5. Don't listen to radio (instead listen to music)
6. No Political news online (except www.slashdot.org)
7. Have schedule for a day.
8. Eat healthy.

I'll promise to update the post weekly.

Binary Editor/Viewer

I was trying to view '/bin/ls' binary file on linux using VIM. So searching on the internet I found two good tools to binary view file.

1. Binary Visual Editor. Easy to compile from source.

2. Hexedit

Thursday, April 2, 2009

Dual-Core


Dual-core (DP) refers to a CPU that includes two complete execution cores per physical processor. It has combined two processors(cache and cache controllers) onto single integration circuit (silicon chip). DP processors are well-suited for multitasking environments because there are two complete execution cores instead of one, each with an independent interface to the front side bus. Since each core has its own cache, the operating system has sufficient resources to handle most compute intensive tasks in parallel.

Multi-core is similar to dual-core in that it is an expansion to the dual-core technology which allows for more than two separate processor.

Google Server

Google Data Center - 1AAA shipping containers packaged with 1160 servers each, with many containers in each data center. Each server has its own 12-volt battery to supply power is there''s a problem with the main source of electricity.

For more information Google unlocks once a secret server - CNET

Wednesday, April 1, 2009

vimdiff


A useful command called vimdiff is bundled with the Vim package. Using vimdiff, you can display multiple files next to each other, similar to sdif. See below the screenshot.

Honeypot

Honeypot - is a trap set to detect, deflect, or in some manner contract attempts at unauthorized use of information systems. A honeypot is valuable as a surveillance and early-warning tool.