Wednesday, October 24, 2007

Our Wedding Invitation



Dear Friend

Sebentar lagi kami akan melepaskan masa-masa kesendirian kami, masa-masa pencarian selama ini, dan masa-masa tersebut mengajarkan kami tuk setia satu sama lain, dan menghormati & menghargai satu sama lain.

Syukur pada Tuhan yang telah mempertemukan kami dalam ikatan cinta kasih dan berkenan menyatukan kami berdua, tuk menjadi satu, sebentar lagi kami akan menempuh bahtera hidup kami dan perkenankanlah kami mengundang teman-teman untuk menjadi bagian dalam acara bahagia kami yakni pernikahan kami, maafkan kami bila kami tidak bisa mengirimkan undangan secara fisik karena keterbatasan yang kami miliki.

Mohon doa dari teman-teman sekalian semoga semuanya dapat berjalan dengan baik, dan kami dapat mengarungi bahtera hidup kami dengan baik.

PEMBERKATAN PERNIKAHAN :
=============================
Sabtu, 27 Oktober 2007
Pukul 10.00 WIB – Selesai
Gereja Santo Arnoldus Yanssen
Jl. Ir. H. Juanda No.164
Bekasi

RESEPSI PERNIKAHAN :
=============================
Sabtu, 27 Oktober 2007
Pukul 19.00 – 21.00 WIB
Harapan Indah Club
Jl. Raya Harapan Indah,
Medan Satria
Bekasi

“Ia membuat segala sesuatu indah pada waktu-Nya”

Best Regard

Deddy & Ika

Wednesday, October 10, 2007

Regular Expression Matching a Valid Date - Regex

When i learn about regex, at first i look this script nothing on my head =(, and after i look an information for this, i get the point, and may this information will
help you

(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01]) Analyze this regular expression with RegexBuddy matches a date in yyyy-mm-dd format from between 1900-01-01 and 2099-12-31, with a choice of four separators. The year is matched by (19|20)\d\d. I used alternation to allow the first two digits to be 19 or 20. The round brackets are mandatory. Had I omitted them, the regex engine would go looking for 19 or the remainder of the regular expression, which matches a date between 2000-01-01 and 2099-12-31. Round brackets are the only way to stop the vertical bar from splitting up the entire regular expression into two options.
The month is matched by 0[1-9]|1[012], again enclosed by round brackets to keep the two options together. By using character classes, the first option matches a number between 01 and 09, and the second matches 10, 11 or 12.
The last part of the regex consists of three options. The first matches the numbers 01 through 09, the second 10 through 29, and the third matches 30 or 31.
Smart use of alternation allows us to exclude invalid dates such as 2000-00-00 that could not have been excluded without using alternation. To be really perfectionist, you would have to split up the month into various options to take into account the length of the month. The above regex still matches 2003-02-31, which is not a valid date. Making leading zeros optional could be another enhancement.
If you want to require the delimiters to be consistent, you could use a backreference. (19|20)\d\d([- /.])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01]) will match 1999-01-01 but not 1999/01-01.
Again, how complex you want to make your regular expression depends on the data you are using it on, and how big a problem it is if an unwanted match slips through. If you are validating the user's input of a date in a script, it is probably easier to do certain checks outside of the regex. For example, excluding February 29th when the year is not a leap year is far easier to do in a scripting language. It is far easier to check if a year is divisible by 4 (and not divisible by 100 unless divisible by 400) using simple arithmetic than using regular expressions.
Here is how you could check a valid date in Perl. Note that I added anchors to make sure the entire variable is a date, and not a piece of text containing a date. I also added round brackets to capture the year into a backreference.

sub isvaliddate {
my $input = shift;
if ($input =~ m!^((?:19|20)\d\d)[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$!) {
# At this point, $1 holds the year, $2 the month and $3 the day of the date entered
if ($3 == 31 and ($2 == 4 or $2 == 6 or $2 == 9 or $2 == 11)) {
return 0; # 31st of a month with 30 days
} elsif ($3 >= 30 and $2 == 2) {
return 0; # February 30th or 31st
} elsif ($2 == 2 and $3 == 29 and not ($1 % 4 == 0 and ($1 % 100 != 0 or $1 % 400 == 0))) {
return 0; # February 29th outside a leap year
} else {
return 1; # Valid date
}
} else {
return 0; # Not a date
}
}

To match a date in mm/dd/yyyy format, rearrange the regular expression to (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d Analyze this regular expression with RegexBuddy. For dd-mm-yyyy format, use (0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d Analyze this regular expression with RegexBuddy.

Monday, October 8, 2007

IFRAME without src attribute on HTTPS in Internet Explorer

Problem :
This took me quite some time to debug this problem, i think from the images source, but from code also, yess i found this problem solving.

If you have a webpage on a HTTPS server with the following iframe code where you leave the src out:
< iframe id="if">< /iframe>
and you view the page in Internet Explorer you'll get the following very descriptive warning.
This page contains both secure and nonsecure items
Clicking on the More Info button doesn't give you which items it's referring to, but just a help file.

Leaving the src attribute out of the iframe is common, when you want to fill the src attribute programmatically.

Solution :
Create a blank.html page and then write:
< iframe id="if" src="blank.html">< /iframe>
The blank.html only contains < html>< /html >

ps: no need to create blank.html is also work

DropDownList Selected Item - With Javascript

This code will help you to get text value from dropdownlist object

function ShowPPSalesmanUniformImage()
{
var ddlUnifDistributionCode = document.getElementById("ddlUnifDistributionCode");
// mengambil dropdown text dengan javascript
var strVal = ddlUnifDistributionCode.options[ddlUnifDistributionCode.selectedIndex].text;
showPopUp('../PopUp/PopUpSalesmanUniformImage.aspx?Distribution='+strVal,'',500,760,'');
}

Friday, October 5, 2007

Turn off "Do you want to display the nonsecure items?" in Internet Explorer

This is some tips for you

Turn off "Do you want to display the nonsecure items?" in Internet Explorer

Problem :
The images are all in a nonsecure location. It's not feasible for me to put the images in the secure directory.
So, every time I try to insert an image, I get the prompt "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"
I really want to get rid of that prompt. I've tried adding the site to the "Trusted Sites" in my Internet Explorer settings, but that didn't work.
Is it possible to turn off this message?

Solution :
goto Tools>Internet Options>Security>select Internet Zone and click on Costum Level
look under
Miscellaneous heading
- option called Display Mixed Content
is it set to Prompt? if yes then set it to Disable and apply

Hukum Tabur Tuai

Ingatlah hukum dasar ini, dalam kehidupanmu  Barang siapa yang menanam, dia pula yang akan menuai