Myo Kyaw Htun . com
Me

Upload photos to Twitter via Flickr

Flickr did not tell that they have a new service to post your photos to Twitter from Flickr directly. If you have both Flickr and Twitter account, just login to Flickr and follow this link (http://www.flickr.com/account/blogs/add/twitter) and allow Flickr service in your Twitter account. Then Flickr will give you the email address to you that you can sent to Twitter. Attach the photo in your email and sent to the email address provided by Flickr.

via: Digital Insipiration

SEO Tip: Bold, Italic tags and Search Engine Optimization

bold text and SEO

Nowadays, many bloggers are trying to optimize their blogs in search engine as well as blogging. I myself also tried some of the techniques that I learned from internet to optimize my site too. Today, I just came across an interesting article about the basic of Search Engine Optimization explained that

Bold text <b>/<strong> is given more weight than ordinary text but not as much as H tags. As much as is reasonable, enclose the search term in bold tags when it appears on the page.

Another article explained that italic (<i>)/emphasic (<em>) tag is also important as well as bold tag.

When mentioning your keywords throughout the page, it’s helpful to put them into italics, bold, or emphasis (<em>) to make sure the search engines know that these words are important.

CSS <span> tags to format text, but search engines don’t have an easy way of determining either of these. Why make the search engines work harder than they need to? Use these basic HTML tags and help yourself (and the engines) out!

How much they will effect in SEO? It is hard to say that those are not really important but they are needed when optimizing the site.

Further reading

How to allow more than one port for SSH in Linux

Normally we’re using port number 22 for SSH. If you want to change default port number from 22 to other port number or add another ports for SSH, you can edit in sshd_config under /etc/ssh. To edit sshd_config file, type the following in Terminal or SSH client (SSH Secure Shell or Putty).

nano /etc/ssh/sshd_config

or

vi /etc/ssh/sshd_config

Find “Port“. And change 22 to any port number you want or add another port numbers below.

SSH Port

How to remove image caption in WordPress 2.6

image captionNew version of wordpress 2.6 includes Image captioning feature that automatically adds caption under your images like in BBC and CNN news site. It is pretty good if you like. But what if you don’t want to put little caption under your image? Here is a very simple trick.

  1. Switch to HTML mode
  2. Remove the code something like this (before img HTML tag)
    [   caption id="attachment_605" ...]
    <img src=….. />
    [   /caption]

remove caption html

Download media files with Safari Browser

Safari browser has powerful tool called Activity that tracks all the activities running behind the page. That makes you easier to download media files from the page you’re visiting.

First, open Safarai browser and browse the address you like to download media file (mp3 or flv). For example : YouTube.

Safari Browser

Click Activity menu under Windows in Safari browser. Or press Ctrl+Alt+L.

Safari Browser Activity Menu

Select the url or media file that more than MB. And double click on it. Safari will launch new browser window and start downloading that file.

Safari Browser Activity Window

For those who want to convert FLV to Audio and Video files you can try FLV Extract program from Moitah.net

via: mm.it.lad (in Burmese language)

How to run php script in shell

If you want to run php script in shell, simply put the following line at the beginning of your php file.

#!/path/to/php

#!/path/to/php is the path you installed php in linux. If you don’t know where php is installed in your linux. Type the following command

which php

This will output the php path from your linux. The output will be something like this

/usr/bin/php

For example: hello.php

#!/usr/bin/php
<?php
echo “Hello World!”;
?>

Make your php script executable by typing

chmod +x hello.php

And then run it

./hello.php

You’ll see

Hello World!

What’s your 404 ?

404 Not FoundYour visitor will probably see “Not found” or “The page cannot be found” while they are visitng your site. The reasons might be one of the following:

  • they follow an incorrect link (from some of the sites that refer to yours)
  • they typed link incorrectly
  • Or your page have been moved or deleted.

The error number 404 or Page not found error message occurs when the server could not find the page what the client requested. For this case, you should an 404 error document that useful for your visitors and let them know that they’re visiting wrong page and explain what’s 404 Error as much as you can. Or you can redirect to your main site.

For windows IIS server, follow the steps from Microsoft support to create a custom 404 error file and for Linux, create .htaccess under your directory and write the following code:

ErrorDocument 404 /error/404.html #file must be your own one.

WordPress has a feature to display 404 error when your visitors visit your delete posts or wrong page . To create 404 error page, create a file named 404.php under your current theme and put helpful information for your visitors. Alexking created a 404 notifier wordpress plugin that can keeps a log of 404 and notify you by email notifications of these hits.

Check out my 404 error page and what’s yours ?

Hidden administrator account in Vista

If you want to login as administrator account in Windows Vista, you can use the following steps.

1. Run the command prompt as an administrator.

Run Command Prompt As Administrator in Vista

2. Type the following command in command prompt.

command prompt in Vista

net users administrator /active:yes

3. Then log off or switch user and you’ll see the administrator account in Vista Login.

Windows Vista Logon Screen

If you want to hide the administrator account back, just type following command

net users administrator /active:no

Note : You can also use the same technique for other account name too. Use ” ” for the name contains white spaces.

Missing files-names and folder-names in Vista

I was faced a problem in Vista today. The problem is that all of the folder-names and file-names were missing in large folder view under my drive in Vista. But I can see under sub folders. Strange ? huh. Take a look at the following snapshot.

Missing Folders names in Vista

That is always happened when we hold the SHIFT key while we’re opening the drive or folder in Vista. To solve this problem, follow the steps.

1. Switch to detail view.

Switch to detail view

2. Hold down SHIFT key and change to “Medium Icons”.

SHIFT key Medium Icons

3. Close the Explorer and re-open it again. There you’ll get your folder names and file names back.

Larget FOlder views Vista

[via this thread]

update: It is also happened in XP.

How to reset regional language to English in Windows Live Writer

doesn’t have an option to change the default language where you’re living to other language in setting. When I download Live writer from Thailand, it gives me which is Thai version. I don’t see any option to select the language in download page.

During setup, I requested my friend to install it because setup is also in Thai language so I did not understand. After I installed, I see all the menus and setting are in Thai language.

read more …

Customization for Kontera Text Links

KonteraKontera double underline
Kontera is an In-Text Advertising service lets you to monetize your content in real-time, enabling an incremental increase in ad revenue by providing a new source of untapped ad inventory that does not compete with the other ad programs running on the site. ContentLink™ also creates a valuable user experience by serving relevant and informational ads that match the user’s interest and frame of mind.

read more …

XHTML and somethings about tags elements you should know

Sometimes, It is not good to see the following message when some of your visitors check your web page with W3 XHTML/HTML validator.

Not valid XHTML 1.0

I used to do mistakes about XHTML and CSS when I start learning web programming. Normally, I wrote an application and run in browser and check whether it works or not without looking up my web pages are XHTML valid. And CSS too. But I do care when I start learning XHTML, CSS and blogging especially creating theme for wordpress. Now I want to share my knowledge about XHTML and it’s some tags that can change your my web not validated XHTML.

read more …

Setting up root password for Ubuntu

Ubuntuubuntu has no password for root user as default. If you want to reset root password, you need to use sudo passwd command in shell. To Open shell, click Applications » Accessories » Terminal. In shell, type sudo passwd. It will ask you password. Type your login password. read more …

Change single post title in wordpress

Basically, WordPress outputs the blog’s post title as “Blog Title >> Blog Archive >> Blog Post Title”.

For example :

Myo Kyaw Htun . com >> Blog Archive >> Hello World !

But most of the bloggers , they want to get the highest rank in Search Engine. This following code will boost in search engine ranking of your blog. So, if you want to change the way that I made, fine the <title> tag in header.php located in your default template. (Presentation >> Theme Editor). Replace the following codes between <title> and </title> tag.

<?php if ( is_single() ) { wp_title(' '); ?> » Blog Archive - <?php } ?><?php bloginfo('name'); ?>

So it will look something like that :

Hello World ! » Blog Archive » Myo Kyaw Htun . com