Latest Art Work

Friday, May 09, 2008

ASP.Net - Close window after download prompt

0 comments
Source: Madalina's Blog

I spent the whole morning before I finally found my solution in this blog. Eternally grateful for such a simple solution considering I tried everything from javascript to startupscript.

As quoted:
So what is the answer? It is simple yet not easy to be found - because you always have in mind the premise that the user must have the option of Opening/Saving the file. The answer is:

Response.AddHeader("Content-Disposition", "inline; filename=" + [file].NewFileName);

How come? Well, if you select Inline, the application will try to write the file directly to the browser. If the browser has a plugin for that type of file (for eg PDFs) the file will be opened in the new window. (Y) If the user wants to save it, the plugin has a menu bar and options for saving on disk. If the browser does not have a plugin for the file, the Open Save dialog will appear and upon any choice the new empty window will be automatically closed.

adapted from Madalina's Blog

Thursday, May 08, 2008

Happy Muse

0 comments
Hmm I still have not started on my themed post.. maybe will just write one and a half of them after this (depends whether my hair dries).

Just that I'm quite happy today. Still recovering especially since I'm not the only one that felt this semester is tedious. XX felt it too. And while we had been complaining that we got classes later for the past few months, suddenly we were gathered together for a post-exam dinner. I really don't know how I endured it, and how much I am actually looking forward to the upcoming public holiday which is my first real PH where I don't need to spend on school work. Err hopefully not on work either though sometimes I have to admit I prefer to go back office when there is nobody and I'm in casual wear plus the car is available.

To jio my ex-classmate and TC was a good choice haha. Together with XX, we had ordered 2 sides (mushroom & spicy chicken wings) and one main course (some steak dish). And we shared a brownie too. Surprisingly my ex-classmate ate little too plus TC wants to slim down and I'm ever conscious about my weight thus the portion actually seem just right for us. I think I can skip my gym tomorrow. A bit lazy, and tired as in for the whole week, I still have not been home early. Plus maybe I want to stay in office a bit later tomorrow.

Talking about office, hmm I'm just glad the people I trust, are truly trustworthy. I admit there was really this 5% that I thought I mistrusted somebody especially since it felt that the person will not go around telling people what she had emailed me. Because it is something that she proposed which I did not comment nor revert back ever since I got back office. But after morning's conversation and finding out it is indeed the person who spread the message herself, I totally heck care about the whole saga in a sense. To my conscious, I never once demanded anything and never will. I admit I can be outspoken and seek clarification if I see a need for it. But I will never demand for something which they felt I am not ready for, and which they give reasons e.g. I'm laid back in my attitude. Something I never once denied because I had slowed down purposefully when I chose to study as my initial pace was too fast and they were not ready to give me the responsibilities. So I decided to just study and blocked my thinking for the past 2.5 years. At least I will not feel so exasperated, or so I thought.

I know there will be people who will not know the full picture and thought I demanded for certain changes for myself. In fact comically, one of them had emailed me to congratulate me on something that I do not even know and might not come true. Of which I can only say "shi mu yi dai" bah. I have no wish to defend myself anyway except to those close to me. I know I'm overdue but seriously, if management does not want to do something, they can give you 100 possible reasons to reject and there is just nothing you can do about. Haha I also learnt what my friend always enforce on, that there are no secrets in office. It was a matter I did not mention to anybody in my department due to my own principles but which I have no control too if spread through other sources.

Oops I'm tired... think the post can wait again ... I'm just happy with today.
Thanks to XX for organising, and to TC for the lift home and to all for the insights and stories and life experience shared. So happy!

p/s: I suddenly recall about the article I was reading on Jolin Tsai in i-weekly... Did not realise she's a Virgo. But the other guy (both were advertising Taiwan which is why I'm reading because mum and colleague has been asking me if I'm interested to go or not) was saying that Taiwanese girls are very hardworking and thrifty as compared to the guys and that the guys better buck up. Hmm is it true?

Then he proceed to say especially virgos are extremely hard at work. Err.. but I did find it a coincidence that both Jolin and I valued intelligence alot. Sighz the problem with me though is I think I want to learn too much but I can't absorb and end up I don't remember what I learnt. Hmm.. so I'm still pondering if I should take that French class or not.. My friends will most probably shake their head saying first German (barely remember much already), then Japan (skuoshi) and now French haha... Well has to do with my love for Switzerland ... and Japan (though I have been strongly advised not to work in Japan due to gender discrimination)...

pp/s: Hmm and after a night's sleep, just want to say no matter what, I still appreciate my current work environment. Because .. I'm just thankful for certain things bah.

Wednesday, May 07, 2008

O.O.S

0 comments
I'm O.O.S (Out of school, a term borrowed from bro's gf... haha).. though not officially because I'm still so worried about my last paper. Basically the effect is still on me though it had been 24 hours later.

Network security has been my only worry this whole semester to the extent I almost thought of dropping it which render a fail immediately because I thought no difference already. Anyway come 30th May or so, I should be able to know if I can graduate successfully and proceed with my commencement though this time, I don’t really bother so much. Such occasion is meant to make parents happy only. Actually when I went through my undergrad’s commencement, I never thought I would step into it for a second time. But I definitely will not go through it the third time here. (Err please don’t play a joke on me kies.)

Anyway as much as I was stoned to death and the only thing I know what to murmur was “I’m so dead” after the paper… managed to gain some conscious today to do some work and get pissed off by some comments (usual) and finally worked out (a bit cos really no stamina).. YEAH!

And read some papers which got me thinking.. for e.g. I did not realise the full impact of Cyclone Nargis on Myanmar till today. Sigh to read that the rice price might be impacted again, to see the damages incurred (while in gym), saddens me. Such that I couldn’t bear to throw away the bread that was holding the soup even though it was so tough. Thank goodness my friend finished it for me… note to self: do not ever order the soup bread in Swenson again. Also got me thinking of something else…

Then the mummy editor (haha I forgot her name, just know she’s the lady who usually write articles related to parenting) was discussing about teaching her child to be bilingual. I remembered the day before the lady passenger besides me was reading a Korean language book and I was thinking I should buck up on my mandarin now that I’m free. Oh ya she also ever discussed about blogging about her child online and what’s the impact as in, when the child grows up one day and starts to google himself/herself (assuming Google is still the number 1 search engine in the future heehee) and saw how his/her parents described him/her.. what would be the reaction. Seriously, I think it would be as shocked as if a child in the future decides to google search his/her parents and see what they had blogged about in the past on themselves during their teenage/young adult days?

Anyway I got 3 more separate themed posts to write.. hmm but I’m tired so I shall zzzz now. Afterall I think I’m too high considering initially I did not want to participate so actively in the post-exam dinner because I thought of going gym. But I ended up going gym today, and coz I jioed my ex classmate… then later his ex-colleague… then later my T.C. .. (initially I only just conveyed the message to my proj mates robotically as I was still preparing for my last paper).. and I suddenly realise if I don’t go there on time (which I planned not to initially), I might be hammered by them sia haha. And coz I jioed too many people, I became abit too excited about tomorrow’s dinner. Most importantly is because I get to try a restaurant I wanted to try before haha..

Oh ya, and I was high enough to secure a month end movie date with my friend.. yeah Sex and the City.. Waited for it for a long time manz! And to agree to all her other suggestions which include a massage session somewhere??? I better re-evaluate what I have agreed haha.. think the rest is nothing much though. Just accepting her suggestions on certain matters. But for now, I am anticipating Feet Unbound.. think I shall watch alone (prove QR wrong??? haha.. j/k). See how on Saturday.

Friendship

0 comments

Source: Facebook - Forever Friends Application

Haven't really been checking my Facebook for a real long time... saw a friend engaged, some friends wishing not to go back to work (think they enjoyed their trip too much haha)... And lots of notifications which I have not really look into. But I happen to saw this notification and upon clicking "Accept", I saw a cute little bear wishing to brighten my day.. Aww.. so sweet. Thanks "Tues Chauffeur".. think that name will stick with you for a real long time even though we no longer have lessons on Tues haha.

Reminded me about a "joke" I heard from the radio. Think it was Dan&Young show.. Not sure is Dan or Young asked the other whether they ever hear a joke that will make them go "Aww". Coz jokes usually make one laugh supposedly. Then he proceed to ask "What ship will never sink?"... the answer.. indeed makes me to "Aww...".. Touched to the Max!

Oh I also accepted all the plants I received in (Lil) Green Patch... Saw they had new plants.. so cute too.. Thanks!!

Still got a lot of cute stuff sent to me which I have not accepted.. gosh Facebook always make me touched to the max haha..

李圣杰 - 最近

0 comments
MTV Source: Youtube

最近
- 李圣杰

你最近不说话
怎麽了为什麽
是不是有什麽事让你不快乐
听说你最近很孤单
有点乱有点慌
可是我却不能够在你的身旁
你想要的
我却不能够给你我全部
我能给的
却又不是你想要拥有的
我们不适合也不想认输
好几次我们抱着彼此都是想要哭
你常解释这样的一切都只是开始
我觉得是所有的一切早就已结束
不想再约束
不要再痛苦
下一次会有更好的情路

爱我却不能给你我全部
我能给的
却又不是你想要拥有的
我们不适合也不想认输
好几次我们抱着彼此都是想要哭
你常解释这样的一切都只是开始
我觉得是所有的一切早就已结束
不想再约束
不要再痛苦
下一次会有更好的情路
这一次我们都能很幸福

Bflygal's comments:
Someone in youtube commented "love...is it worth dying for?"
When I heard this song, I pondered why the guy couldn't give the girl everything, and why what he could give is not what the girl wants. Only till I watched the MTV did I realise why...
Is it worth killing someone who no longer loves you?
Are human dependable? Are human faithful?
Guess not...

Note to self: 忘了一切,闭门修炼,修身养性。

Monday, May 05, 2008

Security Intoxicated

0 comments
Sleep deprivation attack:
Exhaust the batteries of the sensor nodes (belonging to the wireless network) with whom the captured node shares keys by excessive communication.
>> And I was sleep depriving myself to read this article.. how apt!

Selfish behaviour:
Fundamental in the p2p model. Selfish people is probably the majority.
>> Minimum upload limit, Maximum download limit...

Honor among thieves:
And here comes Samsara, to force all to play fair in p2p storage systems.
>> Seriously, why do I want to save my file in your disk and your file in my disk... Bizarre...

Sybil attack:
Single user pretends many fake/sybil identities
>> "sybil" is from a book "Sybil" depicting a woman with 16 personalities (multiple personality disorder).. WAH.. I need to use my toes to count.. zzz

ARGH.. most importantly, I want to ask.. why do technical research papers keep putting me to sleep... Cries upon seeing the thick stack of unread research papers...

Suddenly I feel like a little girl.... hmm wish I have power too..

Little Superhero Girl
- Corrinne May

I feel like a little girl
Trying to conquer the whole wild world
Everybody wants a piece of me
And I just don't know where to run
I've got work piled up to my head
All I want to do is jump into bed
And wash away my troubles with lemonade
Play hide and seek with the boy next door
Take a trip to Singapore
And imagine how I'll make the world a better place

All I need is a good disguise
One where nobody can recognize
That I'm feeling so small
All I need is a secret weapon
I've gotta have faith
Zapping monsters into outer space
I'm gonna be a Superhero

Na-na-na-na...

If I were a little girl
Trying to clean up the whole wide world
I'd kick the bad boys back to school
Teach them fighting's just not cool
I'd give every kid a teddy bear
Turn starving people into millionaires
Break glass ceilings with dynamite
Sprinkle a little sugar and spice
Turn the bullies that terrorize
Into pink poodles that bark but don't bite

All I need is a good disguise
One where nobody can recognize
That I'm feeling so small
All I need is a secret weapon
I've gotta have faith
Zapping monsters into outer space
I'm gonna be a Superhero

Na-na-na-na...

Little Superhero Girl
Little Superhero Girl
Save me
Little Superhero Girl
Little Superhero Girl
Save me from myself

I feel like a little girl
Trying to conquer the whole wide world

p/s: That reminds me, Blogger's scheduled post doesn't work well with Multiply though.. hmm I might de-link Multiply.. might not.. see if I use the scheduling post often or not. Lots to do after my exams over.. but.. but.. *see left, see right*, it's not over yet leh hahahha.. I'm impatient and yet I haven't read finish so... *gives up on what I really want*

Friday, May 02, 2008

Oil Price

0 comments
Source The New York Times

Not sure what article my lecturer wanted me to read when he gave me this link but I read this instead and it is a worrisome article. Because rising oil prices doesn't bodes well to economy. And it definitely doesn't bodes well to the environment. With people trying to find more oil mines, I wonder in the process, did they take precaution to ensure no damage is done to the environment...

It is also making me think carefully if I should drive to work.. sighz sometimes I think the car is more expensive to maintain than me.

Hmm anyway lecture was stating that some people believe that with fuel price increasing, the transport will be more expensive as everything will goes up. In this article, it has also state the point that an increase in oil price will curb demand and induce oil supplies (usually) but such scenarios are not happening currently. In other words, hmm.. one can only hope for the best.

Quote of the day

0 comments
Source: The Negotiation Skills Company, Inc

"The art of being wise is the art of knowing what to overlook."
-- William James


How apt.. how apt...

On another note... lecturer had asked why would anyone buy a "Royal Salute" scotch whisky in one of his lecture. Hmm at that time I did not pay attention because I'm not a wine person. But it is said they are buying for the label... so.. how come my dad just recently acquire one... such a coincidence... shall ask him later... hmm but I like the free gift haha...

(Note: Photo provided by me. Link provided by lecturer.)

Thursday, May 01, 2008

Never stop asking why...

0 comments
Source: BW Online

Anyone bedeviled by a small child constantly asking "Why?" will forever be put to shame by Edwin Land, best known as the inventor of instant photography and founder of Polaroid Corp. On a sunny winter day in Santa Fe, N.M., in 1943, Land's three-year-old daughter Jennifer asked why she couldn't see the picture Land had just taken of her, right then and there. According to a speech Land gave many years later, "Stimulated by the dangerously invigorating plateau air, I thought, 'Why not, why not design a picture that can be developed right away?'"
- Mike Brewster, "Instant Photos, Lasting Fame"


Thanks to the little girl's Why.. came the invention of Polaroid... though I much prefer my digital camera..

And sigh, I kinda feel sad at how the inventor's demise came about.. why do great people end in such way? Although I feel they are humble people too who would like to leave the world quietly.. but .. sighz maybe I'm too emotional and self-perceived in my own world for my own good..

Stand out?

2 comments
Sometimes I think I’m too rigid, too stubborn in my pursuit of a life that most might not agree upon.

Events like being rebuked even though in a mild tone might irked me the whole day (...) because even though I could see why I might have been wrong, I just feel that if instructions were not handed in clearly, I should have my right of way. This of course doesn’t work in the real world due to human emotional entanglements. That’s where the stakeholder’s theory came about with factors like obligations and trust factors to consider.

And when instructions were sent out last minute, but written clearly, as much as I grumbled that it is just too last minute and that I’m already on leave, I cannot and am unable to ignore the instructions. Even if I have been told countless of times that I DO NOT need to return back to finish my testing by Friday since I’m on leave already.

I know most will either say I’m
1) stupid
2) stubborn
But to say I wish to stand out.. was something I tried to avoid and am quite hurt about it. The fact that the whole plan was not clearly distributed black and white other than verbally in a fortnightly meeting has already make me disinterested in the system, which I admit is my fault. The fact that I did not take an initiative to change my connection file and waited for my colleague to do so since it is going to be a common file used by all, and I did not rush him to do so, is also my fault. So the last thing I want to be faulted is to be the cause for any parts of the plan to be affected. And even if nothing will be affected, I cannot take my leave in peace if I know someone had wanted me to finish my testing by Friday. It just bugs me the whole of yesterday that I cannot study in peace as much as my colleague already assured me that I am allowed to drag the testing since I’m on leave.

Yes, I’m stubborn. I don’t want anybody to have a handle against me. Because I have enough handles by my boss already. It is a known fact that they know clearly what I’m doing. In fact, I have been part of the gossip subject albeit unintentionally which at that time hurts me (...). But all these I asked for it, so I can’t complain. Thus why do I want to add one more handle when I can avoid. To finish the testing of the system takes me just two hours. The fact that the car is available for use and that it is a Labour Day thus nobody is in the office and I can be in casual wear, sounds good for me to go back.

What I did not expect is that no proper transport request has been generated yet. Thus all I did was to clarify with my colleague only to have him say what I did is trying to stand out. Sigh times like this I really find the real world too complicated to handle and wish to just go somewhere less developed but also less complicated to avoid all these hated office politics.

Many years ago, I had told myself to stop worrying about people’s view of me (...)… even till now, I am still trying very hard to accomplish it.