Feed on
Posts
comments

Basic Syntax of Regular Expressions (as from PHPBuilder.com)
First of all, let’s take a look at two special symbols: ‘^’ and ‘$’. What they do is indicate the
start and the end of a string, respectively, like this:

“^The”: matches any string that starts with “The”;
“of despair$”: matches a string that ends in the substring “of despair”;
“^abc$”: a string that starts and ends with “abc” — that could only be “abc” itself!
“notice”: a string that has the text “notice” in it.
You can see that if you don’t use either of the two characters we mentioned, as in the last example,
you’re saying that the pattern may occur anywhere inside the string — you’re not “hooking” it to any of the edges.

There are also the symbols ‘*’, ‘+’, and ‘?’, which denote the number of times a character or a sequence of
characters may occur. What they mean is: “zero or more”, “one or more”, and “zero or one.” Here are some examples:

“ab*”: matches a string that has an a followed by zero or more b’s (”a”, “ab”, “abbb”, etc.);
“ab+”: same, but there’s at least one b (”ab”, “abbb”, etc.);
“ab?”: there might be a b or not;
“a?b+$”: a possible a followed by one or more b’s ending a string.
You can also use bounds, which come inside braces and indicate ranges in the number of occurences:

“ab{2}”: matches a string that has an a followed by exactly two b’s (”abb”);
“ab{2,}”: there are at least two b’s (”abb”, “abbbb”, etc.);
“ab{3,5}”: from three to five b’s (”abbb”, “abbbb”, or “abbbbb”).
Note that you must always specify the first number of a range (i.e, “{0,2}”, not “{,2}”). Also, as you might
have noticed, the symbols ‘*’, ‘+’, and ‘?’ have the same effect as using the bounds “{0,}”, “{1,}”, and “{0,1}”,
respectively.

Now, to quantify a sequence of characters, put them inside parentheses:

“a(bc)*”: matches a string that has an a followed by zero or more copies of the sequence “bc”;
“a(bc){1,5}”: one through five copies of “bc.”
There’s also the ‘|’ symbol, which works as an OR operator:

“hi|hello”: matches a string that has either “hi” or “hello” in it;
“(b|cd)ef”: a string that has either “bef” or “cdef”;
“(a|b)*c”: a string that has a sequence of alternating a’s and b’s ending in a c;
A period (’.') stands for any single character:

“a.[0-9]“: matches a string that has an a followed by one character and a digit;
“^.{3}$”: a string with exactly 3 characters.
Bracket expressions specify which characters are allowed in a single position of a string:

“[ab]“: matches a string that has either an a or a b (that’s the same as “a|b”);
“[a-d]“: a string that has lowercase letters ‘a’ through ‘d’ (that’s equal to “a|b|c|d” and even “[abcd]“);
“^[a-zA-Z]“: a string that starts with a letter;
“[0-9]%”: a string that has a single digit before a percent sign;
“,[a-zA-Z0-9]$”: a string that ends in a comma followed by an alphanumeric character.
You can also list which characters you DON’T want — just use a ‘^’ as the first symbol in a bracket expression
(i.e., “%[^a-zA-Z]%” matches a string with a character that is not a letter between two percent signs).

In order to be taken literally, you must escape the characters “^.[$()|*+?{\" with a backslash ('\'), as
they have special meaning. On top of that, you must escape the backslash character itself in PHP3 strings, so,
for instance, the regular expression "(\$|¥)[0-9]+” would have the function call: ereg(”(\\$|¥)[0-9]+”, $str)
(what string does that validate?)

Example 1. Examples of valid patterns

* //

* |(\d{3})-\d+|Sm

* /^(?i)php[34]/

* {^\s+(\s+)?$}

Example 2. Examples of invalid patterns

* /href=’(.*)’ - missing ending delimiter

* /\w+\s*\w+/J - unknown modifier ‘J’

* 1-\d3-\d3-\d4| - missing starting delimiter

ASCII Table

[logo] ASCII Table

Non-Printing Characters Printing Characters
Name Ctrl char Dec Hex Char Dec Hex Char Dec Hex Char Dec Hex Char
null ctrl-@ 0 00 NUL 32 20 Space 64 40 @ 96 60 `
start of heading ctrl-A 1 01 SOH 33 21 ! 65 41 A 97 61 a
start of text ctrl-B 2 02 STX 34 22 66 42 B 98 62 b
end of text ctrl-C 3 03 ETX 35 23 # 67 43 C 99 63 c
end of xmit ctrl-D 4 04 EOT 36 24 $ 68 44 D 100 64 d
enquiry ctrl-E 5 05 ENQ 37 25 % 69 45 E 101 65 e
acknowledge ctrl-F 6 06 ACK 38 26 & 70 46 F 102 66 f
bell ctrl-G 7 07 BEL 39 27 71 47 G 103 67 g
backspace ctrl-H 8 08 BS 40 28 ( 72 48 H 104 68 h
horizontal tab ctrl-I 9 09 HT 41 29 ) 73 49 I 105 69 i
line feed ctrl-J 10 0A LF 42 2A * 74 4A J 106 6A j
vertical tab ctrl-K 11 0B VT 43 2B + 75 4B K 107 6B k
form feed ctrl-L 12 0C FF 44 2C , 76 4C L 108 6C l
carriage feed ctrl-M 13 0D CR 45 2D - 77 4D M 109 6D m
shift out ctrl-N 14 0E SO 46 2E . 78 4E N 110 6E n
shift in ctrl-O 15 0F SI 47 2F / 79 4F O 111 6F o
data line escape ctrl-P 16 10 DLE 48 30 0 80 50 P 112 70 p
device control 1 ctrl-Q 17 11 DC1 49 31 1 81 51 Q 113 71 q
device control 2 ctrl-R 18 12 DC2 50 32 2 82 52 R 114 72 r
device control 3 ctrl-S 19 13 DC3 51 33 3 83 53 S 115 73 s
device control 4 ctrl-T 20 14 DC4 52 34 4 84 54 T 116 74 t
neg acknowledge ctrl-U 21 15 NAK 53 35 5 85 55 U 117 75 u
synchronous idel ctrl-V 22 16 SYN 54 36 6 86 56 V 118 76 v
end of xmit block ctrl-W 23 17 ETB 55 37 7 87 57 W 119 77 w
cancel ctrl-X 24 18 CAN 56 38 8 88 58 X 120 78 x
end of medium ctrl-Y 25 19 EM 57 39 9 89 59 Y 121 79 y
substitute ctrl-Z 26 1A SUB 58 3A : 90 5A Z 122 7A z
escape ctrl-[ 27 1B ESC 59 3B ; 91 5B [ 123 7B {
file separator ctrl-\ 28 1C FS 60 3C 92 5C \ 124 7C |
group separator ctrl-] 29 1D GS 61 3D = 93 5D ] 125 7D }
record separator ctrl-^ 30 1E RS 62 3E > 94 5E ^ 126 7E ~
unit separator ctrl-_ 31 1F US 63 3F ? 95 5F _ 127 7F DEL

reff :
http://www.ascii-code.com/

http://www.physics.udel.edu/~watson/scen103/ascii.html

KeyBoard Shortcuts XP

Getting used to using your keyboard exclusively and leaving your mouse behind will make you much more efficient at performing any task on any Windows system. I use the following keyboard shortcuts every day:

Windows key + R = Run menu

This is usually followed by:cmd = Command Promptiexplore + “web address” = Internet Explorercompmgmt.msc = Computer Managementdhcpmgmt.msc = DHCP Managementdnsmgmt.msc = DNS Managementservices.msc = Serviceseventvwr = Event Viewerdsa.msc = Active Directory Users and Computersdssite.msc = Active Directory Sites and ServicesWindows key + E = Explorer

ALT + Tab = Switch between windows

ALT, Space, X = Maximize window

CTRL + Shift + Esc = Task Manager

Windows key + Break = System properties

Windows key + F = Search

Windows key + D = Hide/Display all windows

CTRL + C = copy

CTRL + X = cut

CTRL + V = paste

Also don’t forget about the “Right-click” key next to the right Windows key on your keyboard. Using the arrows and that key can get just about anything done once you’ve opened up any program.

Keyboard Shortcuts

[Alt] and [Esc] Switch between running applications

[Alt] and letter Select menu item by underlined letter

[Ctrl] and [Esc] Open Program Menu

[Ctrl] and [F4] Close active document or group windows (does not work with some applications)

[Alt] and [F4] Quit active application or close current window

[Alt] and [-] Open Control menu for active document

Ctrl] Lft., Rt. arrow Move cursor forward or back one word

Ctrl] Up, Down arrow Move cursor forward or back one paragraph

[F1] Open Help for active application

Windows+M Minimize all open windows

Shift+Windows+M Undo minimize all open windows

Windows+F1 Open Windows Help

Windows+Tab Cycle through the Taskbar buttons

Windows+Break Open the System Properties dialog box

acessability shortcuts

Right SHIFT for eight seconds…….. Switch FilterKeys on and off.

Left ALT +left SHIFT +PRINT SCREEN……. Switch High Contrast on and off.

Left ALT +left SHIFT +NUM LOCK……. Switch MouseKeys on and off.

SHIFT……. five times Switch StickyKeys on and off.

NUM LOCK…… for five seconds Switch ToggleKeys on and off.

explorer shortcuts

END……. Display the bottom of the active window.

HOME……. Display the top of the active window.

NUM LOCK+ASTERISK……. on numeric keypad (*) Display all subfolders under the selected folder.

NUM LOCK+PLUS SIGN……. on numeric keypad (+) Display the contents of the selected folder.

NUM LOCK+MINUS SIGN……. on numeric keypad (-) Collapse the selected folder.

LEFT ARROW…… Collapse current selection if it’s expanded, or select parent folder.

RIGHT ARROW……. Display current selection if it’s collapsed, or select first subfolder.

Type the following commands in your Run Box (Windows Key + R) or Start Run

devmgmt.msc = Device Managermsinfo32 = System Informationcleanmgr = Disk Cleanupntbackup = Backup or Restore Wizard (Windows Backup Utility)mmc = Microsoft Management Consoleexcel = Microsoft Excel (If Installed)msaccess = Microsoft Access (If Installed)powerpnt = Microsoft PowerPoint (If Installed)winword = Microsoft Word (If Installed)frontpg = Microsoft FrontPage (If Installed)notepad = Notepadwordpad = WordPadcalc = Calculatormsmsgs = Windows Messengermspaint = Microsoft Paintwmplayer = Windows Media Playerrstrui = System Restorenetscp6 = Netscape 6.xnetscp = Netscape 7.xnetscape = Netscape 4.xwaol = America Onlinecontrol = Opens the Control Panelcontrol printers = Opens the Printers Dialog

internetbrowser

type in u’re adress “google”, then press [Right CTRL] and [Enter]add www. and .com to word and go to it

One of my friend bought Compaq Presario V3908 a few days ago, he has some question about it…

my friend = A
me = B

A : Yesterday I bought Compaq V3908, it has no OS can I install Windows XP on it?
B : Yes you can
A : ?? I already tried to install windows XP but Windows XP can’t detect HDD ???
B : go to BIOS and change sata mode to IDE mode
A : ok, wait a minute…
A : there is no option about change sata mode in BIOS… what should I do?
B : you should insert ahci driver to Windows XP CD using nLite read this
http://komku.blogspot.com/…/integrate-driver-into-windows.html
A : can I use driver from Acer laptop ?
B : yes you can, since your Compaq Presario V3908 has Intel 965 as motherboard chipset,
i think the sata controller is exactly the same and you can use this driver

http://cahya.prastyanto.googlepages.com/driver-sata-ahci-4920.zip (it is from Acer Aspire 4920)
A : is it really ok to use that driver ?
B : yes :)
A : ok, thanks
…..after about one hour of waiting….blogger-emoticon.blogspot.com
A : Windows XP installed !!! thanks :)
A : but I have problem with XP drivers, can you make compaq presario V3908 windows XP driver list in your blog ?
A : I know that your blog is all about Acer… but I hope you can help me and help people out there who have same problem like me
B : ok..


Compaq Presario V3908 specifications (may vary depending on country)

Compaq Presario V3908
Intel® Core™ 2 Duo Processor T5750-2.0GHz (2MB Cache,667MHz FSB), 1024MB DDR2 SDRAM, 160GB HDD SATA (5400rpm), 14.1″Wide Bright View, Supermulti DVD+RW DL, Bluetooth, Integrated 802.11a/b/g, Firewire, Intel Graphics Media Accelerator X3100, NVIDIA 8400M GS, 5-In-1 Media Card Reader, DOS, Integrated Compaq WEBCAM. Weight 2.4Kg.

Compaq Presario V3908 Windows XP Drivers :

Wireless Intel (Download)
HP Wireless Assistant (Download)
HP WWAN Connection Manager (Download)
Mobile Intel 965 Express Chipset Family Video Driver (Download)
NVIDIA 8400M GS Windows XP Driver (Download)
ALPS Touchpad Pointing Device Drive (Download)

MS UAA (required with a reboot before Conexant) (Download)
Audio Driver Conexant SmartAudio (Download)
note from HP website :
Unzip to a folder..make note of location.
From Device Manager,right click “Audio Device on High Def Bus”,choose Update driver,
No to connect,
Install from a list or specific location,
Select Don’t Search, I will choose the driver to install,
For the Hardware Type select ‘Show All Devices’
Remove the check from “Show Compatible Hardware” and click on “Have Disk”.
Next…browse to the unzipped folder and choose the “WiSVHe5.inf”.
Ignore XP when it complains.
Reboot.

Quick Launch button driver (Download)
note : you must install Microsoft .NET Framework 2.0 (Download) before install Quick Launch.
It’s hard to find win XP drivers for this laptop.. but I promise will update the driver list
blogger-emoticon.blogspot.commore drivers… soon
blogger-emoticon.blogspot.comUPDATE 1:
My friend gave me this ….

this is Compaq v3800 series driver CD….
Download HP Compaq v3800 series (compatible with v3908) :All Card Readers (Download)AUDIO 3717,3736,3802 Conexant(Download)
Audio Series 35-36(Manual) (Download)
Bluetooth driver (Download)
Intel Chipset Software Installation Utility (Download)
Intel Graphics Media Accelerator Driver (Download)Microsoft UAA Bus Driver for HD Audio (Download)

Modem driver (Download)
NIC Yukon (Download)
HP Quick Launch Button (Download)
Webcam driver and Application (Download)
Wireless Broadcom (Download)
blogger-emoticon.blogspot.comblogger-emoticon.blogspot.comblogger-emoticon.blogspot.com

By the way, Acer still number one for me … blogger-emoticon.blogspot.com

http://komku.blogspot.com/2008/09/compaq-presario-v3908-windows-xp.html

aku ingin bertanya..
apakah ini sebuah nasib..
ketika orang bisa kuliah tanpa seberapa jerih payah
padahal kita tidak?

apakah ini sebuah nasib..
ketika orang bisa makan tanpa seberapa memeras keringat
padahal kita tidak?

apakah ini sebuah nasib..
ketika orang diam dan kita harus kelelahan?

apakah ini sebuah nasib..
kitika kita melihat saudara2 kita, kerabat2 kita, mengeluh keresahan, menangis kesusahan
padahal kita terdiam, dan takbisa berbuat apa2
sungguh hati ini sakit, menangis, berlinang berjuta perasaan.
pedih oleh keibaan yang tersentuh yang tidak bisa membalik keadaan
itu kah juga?

entah,.. entahlah…
inikah yang harus kujalani atau inikah yang telah kujalani..?
mungkin lampauku terlalu suram.. atau ini sebuah nasib?
aku benar2 tidak mengerti

seribu pikiran tentang segala kemungkinan
seribu kebingungan ketika tidak tahu harus berbuat apa
seribu kali ku berpikir tuk melangkah

Tuhan,, kuatkanlah hamba dengan ini
semuga inilah yang membuatku bangkit
semuga inilah yang membuatku kuat
semuga inilah yang bisa membuatku ingat padaMu
dan semuga inilah yang membawaku padaMu..

oh Tuhan..
terima kasih karena Kau masih memberiku kebahagiaan
Kau masih membuatku tersenyum..
meski seribu banding satu

Cape de…

duhai.. engkau yang tak pernah tahu
betapa aku ingin selalu ingin bersama mu

ask: do u feel alike with what i feel?
answer = your answer..

if (answer = yes) then
    let’s go !!!!
    to hell
    not me
    u only
else
    Cape de…

4:36 PM 3/18/2008

seharian lihat coding ASP…jadi  ngantuk!

Suara Hati

Ya Allah sungguh hamba tidak tahu malu selalu meminta kepada Engkau padahal hamba tidak sepenuhnya ikhlas menjalankan kewajiban2 hamba,,,padahal hamba tidak pernah memberi yang terbaik..sebagaimana menjalankan sunanah2Mu.. tapi ya Allah kepada siapa lagi hamba minta tolong kecuali kepada Enkau…
Ya Allah kalo memang dengan panjang umur dan diusia tua hamba akan lebih durhaka kepadaMu hamba mohon,, matikanlah hamba di usia muda,, ya Allah hamba berlindung kepadaMu dari hal yang demikian.. dan kalo dengan panjang umur hamba dapat memperbaiki kesalah2 hamba berilah hampa umur panjang.. matikanlah hamba dalam keadaan Syahid…
ya Allah hama tidak tahan melihat makhlukmu yang cantik.. hamba mohon jauhkanlah hamba dari Zina dan sirik..
ya Allah hilangkanlah sifat sombong, iri hati,,bohong,,dan rasa tidak bersyukur.. anugrahkanlah hamba dengan ilmu yang manfaat bagi hamba dan bagi sekitar hamba.. yaa Allah berilah hamba istri yang cantik, sholeha, berakhlak baek dan sejalan dengan tujuan hamba ya Allaah.. tujuan hamba bukan pahala,,bukan syurga,, tapi tiada lain hanya ridloMu, cintaMu ya Allah, hanya dengan mengingatMu akan didapat ketentraman hati.. Ya rabbi berikanlah kemudahan pd urusan2 hamba.. Amiin..Istajib Du’a ana ya Allah.. begitu banyak permintaan2 hamba tetapi hamba tidak kuat menahan godaan2 syetan.. Aku berlindung kepada Allah dari godaan Syetan yang terkutuk!!! kabulkanlah permohonan hamba, kabulkanlah ya rabbii habibii… Amiiin..

Seorang mukmin yang kuat lebih baik dan lebih disukai Allah dari pada seorang mukmin yang lemah dalam segala kebaikan. Periharalah apa yang menguntungkan kamu dan mohonlah pertolongan Allah, dan jangan lemah semangat (PATAH HATI). Jika ditimpa musibah janganlah berkata, “Oh andai kata aku tadinya melakukjan itu tentu berakibat begini dan begitu”, tetapi katakanlah, “ini takdir Allah dan apa yang dikehendaki Allah pasti dikerjakanNya“. ketahuilah, sesungguhnya ucapan: “andaikata” dan “jikalau” membuka peluang bagi karya setan. (HR. Muslim)

Perempuan

Perempuan
Perempuan itu lebih cepat dewasa dari pada laki - laki
Perempuan itu lebih banyak bijaknya dari pada laki - laki
Perempuan itu lebih berperasaan dari pada laki - laki
Perempuan itu lebih banyak malunya dari pada laki - laki
Perempuan itu lebih peka dari pada laki - laki
Perempuanku.. seandainya saya punya salah entah apa itu.. perkataan yang kurang menyenangkan,  perlakuan yang kurang baek, atau hanya sekedar pesan yang tidak sopan. saya moohon maaf. munkin itu tidak gampang bagimu.. tapi saya mohon maaf dengan sangat, yang sesangat2nya. kalaupun teman mau memaafkanku dengan syarat,..  saya akan lakukan selagi saya bisa..
saya sadar apa yang saya lakukan itu kurang sopan dan munkin itu mengganggu your privacy. saya ini lemah, sangat lemah… dan  kurang bijak dalam melakukan segala hal.

Ma nu sia Ke ra Kus

insyaangomong si gampang siapa aja bisa kecuali mereka yang bisu, betul gak? lidah tidak bertulang man!! semuanya ingin diraih, segalanya ingin di capai tanpa mengenal siapa anda, tanpa mengerti siapa saya, tanpa mengetahui siapa kita, kita bukan tuhan yang sekali berkata seketika itu ada, berkacalah dalam keheningan malam Agar TAu!! kita ini adalah kera yang rakus