Friday, August 7, 2009

Operands

In all computer languages, expressions consist of two types of components: operands and operators. Operands are the objects that are manipulated and operators are the symbols that represent specific actions. For example, in the expression

5 + x



x and 5 are operands and + is an operator. All expressions have at least one operand.

Read More...

Saturday, August 1, 2009

how to fix zawgyi font for gmail chat

When I use GMail Chat, I see ?? or rectangle box in Zawgyi Font. I already installed Zawgyi Font packeage. But it doesn't not resolve this issue.
Saturngod suggested as followed-
At FirFox Browser, type about:config in Browser Address bar, then search serif.x-unicode.
Put Zawgyi-one in front of default font.

  1. Double-click on font.name.sans-serif.x-unicode and change - Zawgyi-one, Arial.
  2. Double-click on font.name.serif.x-unicode and change - Zawgyi-one, Times New Roman.
In this way you see those web sites that don't not use Zawgyi in as default .

Read More...

Wednesday, July 22, 2009

Vista Explorer Shortcut

Windows Vista Explorer Shortcut are as followed

Note that this is also the quickest way to get to the Desktop folder… just keep hitting Alt+Up until you get to the right folder.
Other interesting keyboard shortcuts for Explorer:

  • Alt+Right - Go forward
  • Alt+Left- Go back
  • Alt+D – Focus the address bar and select the current path.
  • F4 – Pop up the dropdown in the address bar, actually somewhat useful.
  • Alt+Enter – Properties of the selected file
  • Ctrl+Mousewheel – change the size of the icons
  • F11 - Put explorer into Fullscreen mode. Actually kinda weird, and I have no idea why this function is even there.

Read More...

Saturday, July 4, 2009

Thouands of thousand records

ဒီေန႕ Database ထဲက Row ေပါင္း ၇ ေသာင္းေလာက္ ကို ဘယ္လို Display ျပရင္ေကာင္းမလဲဆိုတာ စဥ္းစားမိတယ္။ အခု လုပ္ေနတဲ့ Project က row ေပါင္း ၇ ေသာင္းေက်ာ္မယ္တဲ့။

အခုစမ္းေနတာ ၂၀၀၀ ေလာက္တင္ Datagridview မွာ သိပ္အဆင္မေျပဘူး။ ေနာက္ေတာ့ web မွာလို page ေတြ ခြဲထုတ္ဖုိ႕ ဆံုးျဖတ္လုိက္တယ္။ Access မွာေတာ့ MySQL Limit မရိွဘူး။ wiki [1] အကူအညီနဲ႕ Top နဲ႕ လုပ္ရတယ္ ဆိုတာ သိသြားတယ္။
Access မွာpage 1 မွာ ၅၀ ျပျပီးသြားရင္ page 2 ကိုselect top 50 * from table where ID Not IN (select top 50 * from table)
အဲလိုေလး ျပန္ထိန္းရတယ္။ ေနာက္ကေတာ့ where နဲ႕ filter ျပန္လုပ္ရတယ္။ ပါျပီးသား ID ေတြ မဟုတ္တာဆိုျပီး ေရြးထုတ္လိုက္တဲ့ ပံုေလးေပါ့။ page ခြဲပံု idea ကိုေတာ့
http://code.mysteryzillion.org/article/separate-page-from-row-record
မွာ ဖတ္ႏိုင္ပါတယ္။ ကၽြန္ေတာ္တို႕ေတြအေနနဲ႕ record ေတြမ်ားလာေလေလ… အမ်ားၾကီးကို တစ္ခါတည္း တန္းမျပပဲ page ေလးေတြ ခြဲလိုက္ျခင္းဟာ အသံုးျပဳသူအတြက္ ေတာ္ေတာ္အဆင္ေျပေစပါတယ္။ Memory သံုးတာ ေတာ္ေတာ္သက္သာသြားတယ္။ Database သံုးတာ ေတာ္ေတာ္သက္သာသြားတယ္။ အခုေတာ့ အဆင္ေျပသြားပါျပီဗ်ာ။
http://en.wikipedia.org/wiki/Select_(SQL)#Limiting_result_rows

Related Posts
MySQL Reference Book
CSV to Mysql
Database Charset UTF-8

Read More...

Friday, June 5, 2009

Vista AppData

In Vista, the biggest change in the arrangement of a user's settings is the creation of the AppData folder. Furthermore, this AppData folder has three subfolders, Local, LocalLow and Roaming. As with Local Settings, a folder called Application Data exists in Vista for backwards compatibility with XP.

If you look closely at the icons under the Users folder, you will notice that some subfolders have a shortcut arrow. These arrows indicate a Junction point or Symbolic link. For ordinary mortals stick with the idea that these folders represent shortcuts, for example, the 'All Users' settings are now actually stored here --> C:\ProgramData. As far as Microsoft's technical explanation of Junction Points and Symbolic links, it was a case of 'Guy is reading, but Guy is not understanding'.


source : http://www.computerperformance.co.uk

Read More...

Fix corrupted user profile

Assume in this example that the username is 'atiensivu', the domain is 'staff', and the user profile is located in %systemdrive%\users\atiensivu. %systemdrive% is typically C: on standard Vista installs. Replace every instance 'atiensivu' with the username of the corrupt profile.

1. If you can log into the profile, make note of the %USERPROFILE% environment variable value. Most likely it will be 'C:\Users\atiensivu' or 'C:\Users\atiensivu.staff'. Logoff.

2. If you have logged in with the profile at any point since your last reboot or you suspect there are files in use within the profile, reboot. The important part is to make sure there are no open files within the broken profile directory.

3. Login as administrator or another account with local admin rights.

4. Run 'takeown /r /a /d y /f %systemdrive%\users\atiensivu'.

5. From %systemdrive%\users, rename 'atiensivu' to 'atiensivu.old'.

6. Within %systemdrive%\users, create a directory called 'atiensivu'.

7. Run 'takeown /r /u staff\atiensivu /f %systemdrive%\users\atiensivu'.

8. Run regedit and go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList and delete the SID key for the corrupt profile. Easiest way to find the correct SID is to search from the 'ProfileList' key for the directory mentioned in %USERPROFILE% in step #1.

9. Logoff.

10. Log into the 'atiensivu' account. A new profile should be created. Copy over any files you might want from the old profile directory.

The 'takeown' commands might be overkill but I don't like getting permission errors.

Read More...

Thursday, June 4, 2009

Only Member can enter

Let only member view your wordpress blog
Plugin Name : Members Only

Source:
http://wordpress.org/extend/plugins/members-only/


Read More...