Yesterday my dad brought my whole family for an outing. Firstly, he brought me and my mom to a malay stall downstairs for breakfast, as my sisters were in basketball training. Then when my sisters came home, we changed. I wore OP shirt and jeans as usual. We went to Ngee Ann City's Kinokuniya, while my mother shopped at other shops(probably shoes, bags and clothes). I browsed through computer books and a Javascript book atracted me. I sat down there and started reading it. I thought it was very useful, and it thought a lot on logical expresions that needs you to verify your user and pass:
Note I will not put < > in certain parts so as to disallow any errors in viewing
script language="Javascript" type="text/javascript"
var userID
var password
userID = prompt('Enter user ID'), ' ')
password = prompt('Enter password', ' ')
if (userID == 'ScubaBob' && password == 'diving')
{
alert ('Valid Login')
}
else if (userID == 'ScubaBob')
{
alert('Invalid password')
}
else
{
alert('Invalid User ID')
}
As you can see, this string of javascript will produce a pop-up asking you to type in your userId and password, in this case, Scubabob and diving. And you can see, the 'if...else...if..else' is used here. Statement in the first part compares if what you typed as password and userID matches Scubabob or diving. If the pass is wrong, Invalid password will be shown. Likewise, if the userID is wrong, Invalid User will be shown.
This is one of the basic scripts in the book. There are many more. But if using this method to block access from others to your web, I fear that people might just switch off Javascript and access your source code to find out the password and user. The only way to counter this is to make your source code locate another source code, which is the real one, and use it, so people would only see the link to the real source instead of the whole chunk of code. I read that it would need to be uploaded on your web server, which I do not have so I cannot do. And your real code must be saved in a .js file before uploading to be linked. So I think I can forget about doing it.
After this, we went to pay at the counter and my sister(Joy) bought 4 joke books and my dad bought a Coffee book. I bought the Javascript book(Javascript Demystified). Because Kinokuniya was having a sale: Located in newspapers are Kinokuniya coupons and each can allow 2 books to get a 20% discount. And we had 3 coupons so 6 books just right. Mine was 30 bucks at first but after discount it cost $24 only. Not bad. My mother came into Kinokuniya with a newly bought red leather handbag. She said it costed $180+. O-M-G. With $180 I can easily buy a top 2.1 speaker!! Sigh, women, never spend money wisely..
After Kinokuniya, we went to eat downstairs. My dad wanted to try a stall called Central Chinese restaurant. It is located beside a Ramen restaurant. I tell you, never ever go that restaurant! The food are damnit expensive. I bought a plate of fried rice(XO sauce seafood fried rice) and it costed $7.50. Worst still, the standard is the same as my house's hawker centre! My sisters ate fried spaghetti, mom ate noodles and my dad also ate fried rice. The receipt printed $39.15
At this time it is about 4+. We started arguing about which place to go next. My dad suggested East Coast park, but my mother wanted to shop around longer. In the end, we still went to East Coast Park lol, because my sisters and I did not want to shop.
Reaching East Coast Park, we went to the beach and walked around. My dad and mom sat down and chatted to each other while my sister(Joy) read her joke book and my the other sister(Joline) went to the beach and started writing her name with a stick. I got interested and joined her and wrote my name with a Copyright sign, followed by a SOS HELP sign. Soon we grew tired and started making footprints on the sand. There were also some chickens running around on grassy patches and I chased them here and there. I even wanted to cover them with a basin I found, but they would run away when I approached. Then my sisters began walking near the edge of the shore. You know, when the tide splashes out and back, they stood and walked on the wet spot. I went there and made a sort of shield of sand to protect my feet from getting wet. Initially it absorbed some waves, but suddenly, a extra large wave came and hit all of use near our ankles. my jeans were wet and my shoes were soaked. Damn! For dinner, we ate at Long beach seafood restarant, next to threee other seafood restaurants. One of them was called NO SIGNBOARD Restaurant. What kind of restaurant was called that. And the people inside were all wearing black. Maybe they thought it would attract younger crowds. But no, the old boards(lao zhao pai) which is Longbeach, had much better business. The NO Signboard practically was empty.
My mother ordered a 5-dish dinner, consisted of a fish, pot of vegetable, steamed prawns, fried tofu and fried squid. I ate 1 2/3 bowls of rice and drank 8 cups of tea plus a can of Scheweppes tonic water which contains Quinine, whatever that is.
After our delicious meal, we went home. My dad asked if we wanted to go anywhere else(8pm at that time), and my mother suggested Parkway, but my sister(Joy) refused, so we went home and watched Wu chu cai hong.
Didn't get to dismantle my Win98, so i am going to do it today.. Wahahaha.
Family Outing
Thursday, December 15, 2005 | Posted by jonathan at 9:46 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment