Saturday, November 15, 2008

HOW TO MAKE WEB PAGE DISPLAY HTML CODE

sHTMLc (show HTML code) is meant for those who write HTML tutorials published on the Internet and therefore have to present HTML code to the reader. This means that some code must be changed in order to show correctly. sHTMLc converts the code you copy to the clipboard.

Example:

If you want to show this HTML code:

<img src="graphics/with_cat.gif" width=75 height=75 alt="Me & my cat">

you can't just use that code (that would put a picture on the page), you have to change some characters (code pieces), making it look like this:

<img src="graphics/with_cat.gif" width=75 height=75 alt="Me & my cat">

Now it will show up correctly on the page.


What does it do?

sHTMLc converts certain HTML code pieces to special characters:


HTML code = Special characters

< = & lt;
> = & gt;
" = & quot;
& = & amp;



It also converts carriage returns to <br> or <br />.


How do I use it?
First write the HTML-code in the normal way.
Select the code (1 or more lines) and copy it to the clipboard.
Select XHMTL to make get <br />; instead of <br>.
Select Add <html> and <body> to make the code into a complete web page.
Start up sHTMLc and pick a font color and/or enter a font size if needed. Then click the Convert code button.
Paste the converted code back into your document.

How to install

Just unzip the zip-file in an empty folder.


How to uninstall

Delete shtmlc.exe, shtmlc.hlp, shtmlc.cnt, shtmlc.ini and the folder. sHTMLc doesn't use the registry at all.

HOW TO COMMENT ON HTML

Since HTML is officially an SGML application, the comment syntax used in HTML documents is actually the SGML comment syntax. Unfortunately this syntax is a bit unclear at first.

The definition of an SGML comment is basically as follows: 
A comment declaration starts with . A comment starts and ends with "--", and does not contain any occurrence of "--". 

This means that the following are all legal SGML comments: 


<!-- Hello --> 
<!-- Hello -- -- Hello-->
<!----> 
<!------ Hello --> 

<!> 


Note that an "empty" comment tag, with just "--" characters, should always have a multiple of four "-" characters to be legal. (And yes, <!> is also a legal comment - it's the empty comment). 

Not all HTML parsers get this right. For example, "<!------> hello-->" is a legal comment, as you can verify with the rule above. It is a comment tag with two comments; the first is empty and the second one contains "> hello". If you try it in a browser, you will find that the text is displayed on screen. 

There are two possible reasons for this: 
The browser sees the ">" character and thinks the comment ends there. 
The browser sees the "-->" text and thinks the comment ends there. 
There is also the problem with the "--" sequence. Some people have a habit of using things like "<!-------------->" as separators in their source. Unfortunately, in most cases, the number of "-" characters is not a multiple of four. This means that a browser who tries to get it right will actually get it wrong here and actually hide the rest of the document. 

For this reason, use the following simple rule to compose valid and accepted comments: 
An HTML comment begins with "<!--", ends with "-->" and does not contain "--" or ">" anywhere in the comment.

HOW TO ADD METAG TO BLGSPOT.COM

In your blogger.com dashboard, navigate to your setting then LAYOUT then Edit HTML tab and add your code directly below the <head> tag:

eg
<meta content='ADD YOUR SITE DESCRIPTION HERE' name='description'/>
<meta content='ADD YOUR KEYWORDS HERE' name='keywords'/>
<meta content='ADD YOUR NAME HERE' name='author'/>


 

when Google does index your site the listing on your home page should appear with what ever name you use to replace the ADD YOUR …. Above

TEN WAYS TO MARRY THE WRONG PERSON

With the divorce rate over 50%, too many are apparently making a serious mistake in deciding whom to spend the rest of their life with. To avoid becoming a “statistic”, try to internalize these 10 insights.

1. You pick the wrong person because you expect him/her to change after you’re married. The classic mistake! NEVER MARRY POTENTIAL!! The Golden rule is , if you can’t be happy with the person the way he or she is now, don’t get married. As a colleague of mine so wisely put it, “You actually can expect people to change after they are married……for the worst!”. So when it comes to the other person’s spirituality, character, personal hygiene, communication skills, and personal habits, make sure you can live with these as they are now..

2. You pick the wrong person because you focus more on chemistry than on character. Chemistry ignites the fire but good character keeps it burning. Beware of the “I’m in love” syndrome. “I’m in love” often means “I’m in lust”. Attraction is there, but have you actually checked out this person’s character? Here are four characteristics to definitely check for:
Humility:
Does this person believe that “doing the right thing” is more important than personal comfort?
Kindness:
Does this person enjoy giving pleasure to other people? How does she/he treat people she/he doesn’t have to be nice to? Does she/he do volunteer work? Give to charity?
Responsibility:
Can I depend on this person to do what she/he says she/he is going to do?Happiness:
Does this person like himself/herself? Does she/he enjoy life? Is she/he emotionally stable? Ask yourself: Do I want to be more like this person? Do I want to have a child with this person? Would I like my child to turn out like him or her?

3. You choose the wrong person because you do not share a common life goal and priorities. There are three basic ways we connect with another person:
Chemistry and compatibility
Shared common interest
Shared common life goal
Make sure you share a deeper level of connection that sharing life goals provide.
After marriage, the two of you will either grow together or grow apart. To avoid growing apart, you must figure out what you’re living for while you are single and then find someone who has come to the same conclusion as you. This is the true definition of a soul mate. A soul mate is a goal mate…two people who ultimately share the same understanding of life’s purpose and therefore share the same priorities, values and goals.

4. You pick the wrong person because you do not have deeper emotional connection. To evaluate whether you have a deeper emotional connection or not, ask; “Do I respect and admire this person?” This does not mean, “Am I impressed by this person?” We are impressed by a Mercedes. We do not respect someone because they own a Mercedes. Yes, you should be impressed by qualities of creativity, loyalty, determination, etc but do you actually respect and admire this person who possesses these qualities? Also ask: “Do I trust this person?” This also means, “Is he/she emotionally stable? Do I feel I can rely on him/her?

5. You pick the wrong person because you choose someone with whom you don’t feel emotionally safe. Ask yourself the following questions: Do I feel calm, peaceful and relaxed with this person? Can I fully be myself and express myself with this person? Does this person make me feel good about myself? Do you have a really close friend who does make you feel this way? Make sure the person you marry makes you feel the same way! Are you afraid of this person in any way? You should not feel you need monitor what you say because you are afraid of how the other person will view it. If you’re afraid to express your feelings and opinions openly, there’s a problem with the relationship.

Another aspect of feeling safe is that you don’t feel the other person is trying to control you. Controlling behaviors are a sign of an abusive person. Be on the look out for someone who is always trying to change you. There is a big difference between “controlling” and “making suggestions”. A suggestion is made for your benefit; a control statement is made for their benefit.

6. You pick the wrong person because you don’t put everything on the table. Anything that bothers you about the relationship must be brought up for discussion. Bringing up the uncomfortable stuff is the only way to evaluate how well the two of you communicate, negotiate, and work together. Over the course of a lifetime, difficulties will inevitably arise.

You need to know now, before making a commitment: Can you resolve your differences and find compromises that work for both of you? Never be afraid to let the person know what bothers you. This is also a way for you to test how vulnerable you can be with this person. If you can’t be vulnerable, you can’t be intimate. The two go hand in hand.

7. You pick the wrong person because you use the relationship to escape from personal problems and unhappiness. If you are unhappy and single, you’ll probably be unhappy and married, too. Marriage does not fix personal, psychological and economical problems. If anything, marriage will exacerbate them. If you are not happy with yourself and your life, take responsibility to fix it now while you are single. You’ll feel better and your future spouse will thank you.

8. You choose the wrong person because you get involved sexually too quickly. This can be a big problem because it often precludes a fully honest exploration of important issues. Sexual involvement tends to cloud ones mind. And a clouded mind is not inclined to make good decisions. It is not necessary to “test drive” in order to find out if a couple are sexually compatible. If you do your homework and make sure you are intellectually and emotionally compatible, you don’t have to worry about sexual compatibility. Of all the studies on divorce sexual incompatibility is never cited as a main reason why people divorce.

9. You pick the wrong person because the man doesn’t understand what a woman needs most. Men and women have unique emotional needs and more often than not, it is the man who just doesn’t get it. Jewish tradition places the onus on the man to understand the emotional needs of the woman and to satisfy them. The unique need of a woman is to be loved. To feel that she is the most important person in her husband’s life. The husband needs to give her consistent, quality attention.

This most apparent is Judaism’s approach to sexual intimacy. The Torah obligates the husband to meet the sexual needs of his wife. Sexual intimacy is always on the woman’s terms. Men have two speeds: “on” and “off”. Women are experience oriented. When a man is able to switch gears and become more experience-oriented, he will discover what makes his wife very happy. When the man forgets about his own needs and focuses on giving his wife pleasure, amazing things will happen.

10. You pick the wrong because he/she is involved in a triangle. To be “triangulated” means a person is emotionally dependent on someone or something else while trying to develop another relationship. A person who hasn’t separated from his or her parents is a classic example of triangulation. People can also be triangulated with things as well, such as work, drugs, internet, hobbies, sports or money. Be careful that you partner are free of triangles. The person caught in a triangle cannot be fully emotionally available to you. You’ll not be their number one priority. And that’s not basis for a marriage.

Ability is what you’re capable of doing……..
Motivation determines what you do……
Attitude determines how well you do it!
Do what you have to do about your relationship,....... and do it NOW!

APPLYING FOR A JOB

Hi there
When applying for a job you need to prepare yourself for some awkward questions, which might be asked, and which are difficult to answer.

These questions look easy but when you are at the interview you might find that they are not that easy to answer.

Tell me about yourself?
What do you know about our company?
Why should we hire you?
What can you do for us that someone else can't?
What do you look for in a job?

If you prepare yourself in advance you would be able to make a good impression, don't forget you may only have one chance to make a good impression.

Regards