I guess its pretty strange to see me back here again.
Written blog had been part of me since 2009 or 2008 as I recalled. However, due to some busyness, probably many many busyness, I kinda left of what I started. Well, I'm trying to make a come back now. But now, probably it wont be Java anymore. I'm moving towards C# as I write but still the same MVC architecture.
Well. What should I say now? Welcome back? :)
Finally, I've found a Spot!
~~ to Talk About Something about the RoJaK-RoJaK of LifE~~
Tuesday, September 30, 2014
Sunday, December 26, 2010
Malaysian Need More Common Sense
In Malaysia, many of the drivers does not have enough awareness against the privileges for the disables, they basically does not have the respect and the pity towards the disables. In Klang Valley, these awareness does seems better than other states, although such assholes still persist. Even so, many people do not understand what emergency lanes are for too.
I'm now sitting around the parking at the new Aeon Melaka parking bays. It is still very early, and there are plenty of parking spot around. 1 old aunty came down the car, moved the cone out, and another young aunty nicely parked her car in the disable parking bay. An old man then walked down the car, and they happily lock the car and walk into the shopping complex. I was looking at them, and they look back. I shook my head, but they just don't care. Gosh, I guess I'm not the enforcer, so nothing matters.
But why do these people still want to park at the disable spot? Is it that it is so troublesome to walk an extra 20 steps further? Why do people use the emergency lane when traffic jam starts? Using the emergency lane will just cause more jam because some stalled cars or lorries will force them to reenter the road, and they will cause other caring drivers to slow down their car for these selfish drivers.
1 clear indication I see that they are indeed very selfish, because disable parkings are always in shade and very near to the entrance. Some may argue, there are many more spaces left for the disables, why should I care and why do you mind? Laws are laws, common sense are common sense. Why do you shit in the toilet and not outside when there are no one around?
Most people nowadays are educated, but not their common sense and basic awareness. Not only in themselves, the government and the premise owners also need to do their part. Why are the roads are build in such a way where jams are always unavoidable? Even new roads are the same. Why don't they clamp those stupid cars? Why don't they place more traffic polices beside the emergency lanes to summon all cars that uses such ways to jump queue?
I'm now sitting around the parking at the new Aeon Melaka parking bays. It is still very early, and there are plenty of parking spot around. 1 old aunty came down the car, moved the cone out, and another young aunty nicely parked her car in the disable parking bay. An old man then walked down the car, and they happily lock the car and walk into the shopping complex. I was looking at them, and they look back. I shook my head, but they just don't care. Gosh, I guess I'm not the enforcer, so nothing matters.
But why do these people still want to park at the disable spot? Is it that it is so troublesome to walk an extra 20 steps further? Why do people use the emergency lane when traffic jam starts? Using the emergency lane will just cause more jam because some stalled cars or lorries will force them to reenter the road, and they will cause other caring drivers to slow down their car for these selfish drivers.
1 clear indication I see that they are indeed very selfish, because disable parkings are always in shade and very near to the entrance. Some may argue, there are many more spaces left for the disables, why should I care and why do you mind? Laws are laws, common sense are common sense. Why do you shit in the toilet and not outside when there are no one around?
Most people nowadays are educated, but not their common sense and basic awareness. Not only in themselves, the government and the premise owners also need to do their part. Why are the roads are build in such a way where jams are always unavoidable? Even new roads are the same. Why don't they clamp those stupid cars? Why don't they place more traffic polices beside the emergency lanes to summon all cars that uses such ways to jump queue?
Saturday, September 25, 2010
Scratch and Win... what?
I read about a small news today and some "scratch and win" company had been ordered to refund RM6000 to a guy after the guy failed to received the prize he is promised.
A few things came into my mind:
1. This guy is does not read news or he is greedy or he is just plain stupid;
2. This is not the first case somebody is being cheated, and how come such company still exist legally?
3. The story of myself being the "victim".
Few months back, I was walking along Bukit Jalil temporary bus terminal when a young girl (girl) approach me. The conversation was actually in Mandarin, below is the translation of our conversation.
Girl: Sir sir... Do you go to Midvalley? I have some discount with some shops.
Me: (When I saw what she was holding, I knew she was from those scratch and win company. I was rather free that time, so I just play along) Yes?
Girl: Sir, help me earn some money lah. If you peel open inside got things, then you can have discount. If you see a word "Thank You" like the sample here, then you did not win anything.
Me: Ok. (So I took one and peel it off)
Girl: Oh, it's a "Thank You", so you did not win anything. But wait, there is another price. You see, there is some color here. Red means bla bla bla... blue is bla bla bla... (She purposely missed the last grey color out).
Me: oh... hmm..
Girl: Lets see what is your colour. Oh, yours is... wah wah wah... grey colour! Sir sir.. You know what is this... wah wah wahh...
Suddenly another young boy (boy) came into the conversation.
Boy: Wah wah wah...
Girl: You see you see...
Boy: Wah wah wah...
Both of the look super excited, and they made me excited too, because I know things are getting interesting here.
Boy: Sir sir.. Congratulation... wah... You know what you won?
Girl: Sir... You very lucky ler.. wah... You see, grey colour.. wah wah wah...
Me: Yakah? Before you tell me anything, do you know what is "Gua Gua Le" (Gua Gua Le = 刮刮乐, means Scratch and Win)?
Girl: No sir no sir... This is not fake one...
Boy: You see you see... This one cannot scratch one (and he really scratching the card to show me).
Me: I know this cannot scratch. Because this is not "Gua Gua Le" mah... This is "Pa Pa Le" (Pa Pa Le = 拔拔乐, to me, it means Peel and Win).
Then both of them start to look blank.
Me: I can bet with you, if you peel one more, I guarantee is the same thing.
Girl: Ah... I no more liao...
Boy: I also no more liao...
Me: Nah... See you cannot prove it. Since you so happy about it, I give it back to you, you go claim prize ya...
After that, I walked off and left both of them disappointed. Haha.. Me so bad...
A few things came into my mind:
1. This guy is does not read news or he is greedy or he is just plain stupid;
2. This is not the first case somebody is being cheated, and how come such company still exist legally?
3. The story of myself being the "victim".
Few months back, I was walking along Bukit Jalil temporary bus terminal when a young girl (girl) approach me. The conversation was actually in Mandarin, below is the translation of our conversation.
Girl: Sir sir... Do you go to Midvalley? I have some discount with some shops.
Me: (When I saw what she was holding, I knew she was from those scratch and win company. I was rather free that time, so I just play along) Yes?
Girl: Sir, help me earn some money lah. If you peel open inside got things, then you can have discount. If you see a word "Thank You" like the sample here, then you did not win anything.
Me: Ok. (So I took one and peel it off)
Girl: Oh, it's a "Thank You", so you did not win anything. But wait, there is another price. You see, there is some color here. Red means bla bla bla... blue is bla bla bla... (She purposely missed the last grey color out).
Me: oh... hmm..
Girl: Lets see what is your colour. Oh, yours is... wah wah wah... grey colour! Sir sir.. You know what is this... wah wah wahh...
Suddenly another young boy (boy) came into the conversation.
Boy: Wah wah wah...
Girl: You see you see...
Boy: Wah wah wah...
Both of the look super excited, and they made me excited too, because I know things are getting interesting here.
Boy: Sir sir.. Congratulation... wah... You know what you won?
Girl: Sir... You very lucky ler.. wah... You see, grey colour.. wah wah wah...
Me: Yakah? Before you tell me anything, do you know what is "Gua Gua Le" (Gua Gua Le = 刮刮乐, means Scratch and Win)?
Girl: No sir no sir... This is not fake one...
Boy: You see you see... This one cannot scratch one (and he really scratching the card to show me).
Me: I know this cannot scratch. Because this is not "Gua Gua Le" mah... This is "Pa Pa Le" (Pa Pa Le = 拔拔乐, to me, it means Peel and Win).
Then both of them start to look blank.
Me: I can bet with you, if you peel one more, I guarantee is the same thing.
Girl: Ah... I no more liao...
Boy: I also no more liao...
Me: Nah... See you cannot prove it. Since you so happy about it, I give it back to you, you go claim prize ya...
After that, I walked off and left both of them disappointed. Haha.. Me so bad...
Sunday, August 08, 2010
Should Be The Way Of Malaysian?
I Used to go restaurant, coffeeshops and even mamak. I normally raised my hand or call out "boss boss... kira....". But, I used to see others using the "zut zut" sound to call the waiter or waitress. Is this the way we treat those Chinese, Indian, Burmas, Vietnamese, Indonesian waiters and waitresses?
Is this kind of mentality we Malaysian posses? We are supposingly living in a multiracial country, and respecting each other is the basic thing we are supposed to know. Why are we calling out to these, although foreigners, in such inhumane way? Aren't they human also? Why are we calling them like a dog or a cat? Shouldn't they be respected as well? Don't mentioned that how many of them are lowly paid.
These are not the only things that happened. This is just a minor things that happened. Talking about the cruelty that some of the employees treated these foreigner. Aren't there the same as those Americans, Europeans? They are too foreigners in our Malaysian land. It is just not fair that because they are from a undeveloped or poorer countries.
Likewise, what are we when many of us who are working in Singapore? Are they treated in such a lowly manner? Malaysians, we should be doing something better than others if we are going to compete in the world arena.
Is this kind of mentality we Malaysian posses? We are supposingly living in a multiracial country, and respecting each other is the basic thing we are supposed to know. Why are we calling out to these, although foreigners, in such inhumane way? Aren't they human also? Why are we calling them like a dog or a cat? Shouldn't they be respected as well? Don't mentioned that how many of them are lowly paid.
These are not the only things that happened. This is just a minor things that happened. Talking about the cruelty that some of the employees treated these foreigner. Aren't there the same as those Americans, Europeans? They are too foreigners in our Malaysian land. It is just not fair that because they are from a undeveloped or poorer countries.
Likewise, what are we when many of us who are working in Singapore? Are they treated in such a lowly manner? Malaysians, we should be doing something better than others if we are going to compete in the world arena.
Saturday, August 29, 2009
Scam or no Scam? You Judge. - part 3 (end)
No, I was not in the meeting. I actually said that because I just wanted to make sure its a scam, or not a scam. I found the name of Kebajikan that she mentioned online and eventually found one really matching.
I gave them a call to clarify the matter. The receiptionist ask me to called a guy by the name of "Subra" when I mentioned about the word "Hadiah". Seems she know what I want. Maybe alot people had also called up for this matter?
Nevertheless, I called "Subra" as told. I told him somebody called me on this and that. Is it true? His reply, "Yes. We are promoting bla bla bla...". What he told me on the phone is almost similar with the Indian Lady (IL). The difference is that "Subra" tell me upfront about the VIP card, flight tickets and so on. Finally understand why they called me.
1/2 hours passed. And the IL really called back hoping to get my so call "nombor giliran".
IL : Hello, ini Mr. Gary ya?
Me : Yes. So what else you want?
IL : Itu nombor giliran apa nombor?
(You won't quit talking about the nombor giliran will ya?)
Me : Sebelum tu hor, saya mau tanya ya. Itu ticket kapal terbang kena bayar de?
IL : Oh tidak tidak. Itu ticket semua free, tetapi, you need to apply for VIP card for RM495 (Somewhere around that price).
(Oh. Means I need to pay also la!)
Me : Wah... Itu macam means saya pun kena bayar lor.
IL : Mr. Gary, itu VIP card hor, you boleh pergi Bali, Philippine....
(Well, now I know this IL is trying to get my credit card info, so she can squeeze the amount out of me with or without my knowledge. Am I a fool? The whole lot of conversation is a waste of my time. Guess its payback time and an extra few more minutes chatting with her wouldn't be all bad.)
Me : Itu macam hor, saya mau itu ticket, tapi tak nak itu VIP card. Kalau free saya nak la, bayar punya saya tak nak.
IL : Mr. Gary, sakarang hor, mana ada free punya benda lagi? You pergi tandas pun kena bayar la.
(See! Now she say its not free. The first time she told me I am one of the choosen, got free ticket. Now she say where got free things.)
Me : Siapa cakap. Saya pergi tandas rumah tak payah duit la!
IL : Tapi Mr. Gary kalau kerja dekat luar pun kena bayar ma.
Me : Itu saya kerja saya pun pakai office punya tandas pun free ler.
(She starting to get frustrated at me.)
IL : (Sounded got pissed off) So itu macam Mr. Gary pergi shopping tak pergi tandas ke?!
Me : Betul! Saya pergi luar memang tak pergi tandas. (Haha! This one really got her!)
IL : (Bad mood cause cannot get sales) Itu macam tak apa la Mr. Gary. Mr. Gary punya hadiah saya bagi lain orang.
Me : Ok la. You bagi saja la. Thank you for offering ya. Bye bye...
And then she ended the phone without even saying bye bye at all. What a rude irresponsible telemarketing person. Ha ha~~~
I gave them a call to clarify the matter. The receiptionist ask me to called a guy by the name of "Subra" when I mentioned about the word "Hadiah". Seems she know what I want. Maybe alot people had also called up for this matter?
Nevertheless, I called "Subra" as told. I told him somebody called me on this and that. Is it true? His reply, "Yes. We are promoting bla bla bla...". What he told me on the phone is almost similar with the Indian Lady (IL). The difference is that "Subra" tell me upfront about the VIP card, flight tickets and so on. Finally understand why they called me.
1/2 hours passed. And the IL really called back hoping to get my so call "nombor giliran".
IL : Hello, ini Mr. Gary ya?
Me : Yes. So what else you want?
IL : Itu nombor giliran apa nombor?
(You won't quit talking about the nombor giliran will ya?)
Me : Sebelum tu hor, saya mau tanya ya. Itu ticket kapal terbang kena bayar de?
IL : Oh tidak tidak. Itu ticket semua free, tetapi, you need to apply for VIP card for RM495 (Somewhere around that price).
(Oh. Means I need to pay also la!)
Me : Wah... Itu macam means saya pun kena bayar lor.
IL : Mr. Gary, itu VIP card hor, you boleh pergi Bali, Philippine....
(Well, now I know this IL is trying to get my credit card info, so she can squeeze the amount out of me with or without my knowledge. Am I a fool? The whole lot of conversation is a waste of my time. Guess its payback time and an extra few more minutes chatting with her wouldn't be all bad.)
Me : Itu macam hor, saya mau itu ticket, tapi tak nak itu VIP card. Kalau free saya nak la, bayar punya saya tak nak.
IL : Mr. Gary, sakarang hor, mana ada free punya benda lagi? You pergi tandas pun kena bayar la.
(See! Now she say its not free. The first time she told me I am one of the choosen, got free ticket. Now she say where got free things.)
Me : Siapa cakap. Saya pergi tandas rumah tak payah duit la!
IL : Tapi Mr. Gary kalau kerja dekat luar pun kena bayar ma.
Me : Itu saya kerja saya pun pakai office punya tandas pun free ler.
(She starting to get frustrated at me.)
IL : (Sounded got pissed off) So itu macam Mr. Gary pergi shopping tak pergi tandas ke?!
Me : Betul! Saya pergi luar memang tak pergi tandas. (Haha! This one really got her!)
IL : (Bad mood cause cannot get sales) Itu macam tak apa la Mr. Gary. Mr. Gary punya hadiah saya bagi lain orang.
Me : Ok la. You bagi saja la. Thank you for offering ya. Bye bye...
And then she ended the phone without even saying bye bye at all. What a rude irresponsible telemarketing person. Ha ha~~~
Tuesday, August 25, 2009
Scam or no Scam? You Judge. - part 2
Finally, Wednesday had come. No luck, she is not calling back. Not on Thurday either. But I waited only till Friday only to receive a call from the Indian Lady (IL) who promise to call back.
IL : Hello, ini Mr. Gary?
Me : Ah ya saya.
IL : Mr. Gary, ini dari Kebajikan Pekerja-Pekerja something something (KPP). Kami ada.... bla bla bla...
(She was explaining all the way from last week... -_-")
Me : Ok. You boleh sebut sekali lagi tak, slow slow punya.
She while she was talking about the name, I quietly went to google this so call "Kebajikan". It was a company located in Subang alright. Then she started to ask for my company name and address again. I willingly gave her those info. After that, she start to verify my credit card again.
IL : Mr Gary pakai credit card bank apa?
Me : Maybank, Visa.
IL : Ok. Saya nak verify credit card Mr. Gary. Mr. Gary boleh baca expiry date credit card Mr. Gary?
Me : XX/XX.
IL : Ok. Itu nombor kad Mr. Gary?
Me : Har?
IL : Itu depan punya 16 digit.
Me : (So troublesome?) 1234 5678 9098 7654.
IL : Ok terima kasih Mr. Gary. Mr. Gary boleh baca nombor giliran di belakang credit card?
I didn't even know we have serial number on credit card. So I just mum...
IL : Mr. Gary. You tengok itu signature sana. Tepi sana ada itu 3 nombor. Itu nombor giliran.
WTF? Now they are showing its true colour. Asking for my security code. I'm a goner if I gave them that.
Me : Itu mana nombor giliran? Itu security code credit card.
IL : Bukan. Itu nombor giliran.
She on went defending herself and keep on saying that the 3 digit is serial number.
Me : Itu tak boleh la.
IL : Mr. Gary tak percaya saya? Saya datang dari... bla bla bla...
She start explaining the company and the free gift, and I was browsing the net on this company. I don't . Then I remember i heard her saying something about VIP card and RM490+ to get this package.
I started to read the Internet and suspicious. No information can be found on the net. Then I bullshit her that I have a meeting and ask her to call back in 30 minutes.. more to come...
IL : Hello, ini Mr. Gary?
Me : Ah ya saya.
IL : Mr. Gary, ini dari Kebajikan Pekerja-Pekerja something something (KPP). Kami ada.... bla bla bla...
(She was explaining all the way from last week... -_-")
Me : Ok. You boleh sebut sekali lagi tak, slow slow punya.
She while she was talking about the name, I quietly went to google this so call "Kebajikan". It was a company located in Subang alright. Then she started to ask for my company name and address again. I willingly gave her those info. After that, she start to verify my credit card again.
IL : Mr Gary pakai credit card bank apa?
Me : Maybank, Visa.
IL : Ok. Saya nak verify credit card Mr. Gary. Mr. Gary boleh baca expiry date credit card Mr. Gary?
Me : XX/XX.
IL : Ok. Itu nombor kad Mr. Gary?
Me : Har?
IL : Itu depan punya 16 digit.
Me : (So troublesome?) 1234 5678 9098 7654.
IL : Ok terima kasih Mr. Gary. Mr. Gary boleh baca nombor giliran di belakang credit card?
I didn't even know we have serial number on credit card. So I just mum...
IL : Mr. Gary. You tengok itu signature sana. Tepi sana ada itu 3 nombor. Itu nombor giliran.
WTF? Now they are showing its true colour. Asking for my security code. I'm a goner if I gave them that.
Me : Itu mana nombor giliran? Itu security code credit card.
IL : Bukan. Itu nombor giliran.
She on went defending herself and keep on saying that the 3 digit is serial number.
Me : Itu tak boleh la.
IL : Mr. Gary tak percaya saya? Saya datang dari... bla bla bla...
She start explaining the company and the free gift, and I was browsing the net on this company. I don't . Then I remember i heard her saying something about VIP card and RM490+ to get this package.
I started to read the Internet and suspicious. No information can be found on the net. Then I bullshit her that I have a meeting and ask her to call back in 30 minutes.. more to come...
Sunday, August 23, 2009
Scam or no Scam? You Judge. - part 1
2 weeks ago, someone called me direct via my office number. She spoke in Malay, but with some Indian accent. No offence, but I assumed that she is an Indian Lady (IL). She never introduce herself, only saying that she is calling from Kebajikan Pekerja-Pekerja something something (KPP). When I ask her that is this Kebajikan is from from the Govt body, she say yes.
Our teleconference is as such:
IL : Hello, ini Mr. Gary?
Me : Yes, saya.
IL : Oh, Mr. Gary. Tahniah ya. Mr. Gary teleh dipilih oleh KPP untuk menerima ticket kapal terbang percuma. Kita ada information Mr. Gary dan semua maklumat credit card Mr. Gary juga. Mr. Gary boleh bagi tau alamat Mr. Gary untuk saya hantar hadiah Mr. Gary?
Me : Ok. Boleh send to my office address. Alamat saya...
IL : Oh, Mr. Gary boleh bagi nama company dulu?
Me : XXXXX Sdn Bhd. Alamat 123, Jln 123, Off Jalan Kuchai Lama, 58200 KL.
IL : Ok. Mr. Gary. Mr. Gary ada credit card apa? Saya nak buat verification saja.
Me : Hmm... Saya ada Maybank Visa...
IL : Mr. Gary boleh baca expiry date credit card ini?
I started feeling suspicious. This is the first time I heard verification using expiry data.
Me : Errr... Itu saya tak tau ler. Saya punya dompet hilang hari itu. So saya punya credit card pun kena buat replacement. You next week call balik boleh tak? Saya perlu pergi bank collect credit card baru dulu.
IL : Ok. Minggu depan Wednesday boleh?
Me : Boleh. No problem. Bye bye.
After ended the call, the curiousity rise even more when they called me just after I lost my wallet less than 1 week ago. Ok la. Nevermind, I wait see how.
Our teleconference is as such:
IL : Hello, ini Mr. Gary?
Me : Yes, saya.
IL : Oh, Mr. Gary. Tahniah ya. Mr. Gary teleh dipilih oleh KPP untuk menerima ticket kapal terbang percuma. Kita ada information Mr. Gary dan semua maklumat credit card Mr. Gary juga. Mr. Gary boleh bagi tau alamat Mr. Gary untuk saya hantar hadiah Mr. Gary?
Me : Ok. Boleh send to my office address. Alamat saya...
IL : Oh, Mr. Gary boleh bagi nama company dulu?
Me : XXXXX Sdn Bhd. Alamat 123, Jln 123, Off Jalan Kuchai Lama, 58200 KL.
IL : Ok. Mr. Gary. Mr. Gary ada credit card apa? Saya nak buat verification saja.
Me : Hmm... Saya ada Maybank Visa...
IL : Mr. Gary boleh baca expiry date credit card ini?
I started feeling suspicious. This is the first time I heard verification using expiry data.
Me : Errr... Itu saya tak tau ler. Saya punya dompet hilang hari itu. So saya punya credit card pun kena buat replacement. You next week call balik boleh tak? Saya perlu pergi bank collect credit card baru dulu.
IL : Ok. Minggu depan Wednesday boleh?
Me : Boleh. No problem. Bye bye.
After ended the call, the curiousity rise even more when they called me just after I lost my wallet less than 1 week ago. Ok la. Nevermind, I wait see how.
Tuesday, August 18, 2009
Dev : Upload File Mimetype
Storing an uploaded file to the database is not as easy as just storing string information. Storing the attachment as just a physical file and other info such as path, file name, mimetype and size is much easier.
But how come, all these while uploading file was never an issue, only until recently? Clients complaint that whenever they upload a ".docx" file, error will occur. After some findings on the log file, the error is actually the mimetype size that I have set for the database table was insufficient. Mine was varchar(50), but yet insufficient. So how long do you actually need? As for me, I have increased my original varchar(50) to varchar(100).
Why this long? After reading this, you will know why. This is the problem with MS. I don't even know why they need it to be so long. Here's a list of office extension with its mimetype from the Net.
Extension MIMEType
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.sldx application/vnd.openxmlformats-officedocument.presentationml.slide
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
But how come, all these while uploading file was never an issue, only until recently? Clients complaint that whenever they upload a ".docx" file, error will occur. After some findings on the log file, the error is actually the mimetype size that I have set for the database table was insufficient. Mine was varchar(50), but yet insufficient. So how long do you actually need? As for me, I have increased my original varchar(50) to varchar(100).
Why this long? After reading this, you will know why. This is the problem with MS. I don't even know why they need it to be so long. Here's a list of office extension with its mimetype from the Net.
Extension MIMEType
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.sldx application/vnd.openxmlformats-officedocument.presentationml.slide
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
Dev : Download File With Semicolon
Created a spreadsheet, named as wifes_acc;children_acc.xls. Uploaded to an webapplication, and try to download it using IE7. WTF?! How come my spreadsheet became wifes_acc only after I click download. Where is there remaining name? How come the file was not found on the server?
Damn, what happened. Try with mozilla. Wow, it downloaded just fine. What happened?
We came across such problem when dealing with upload and download of attachment. After some finding on the Net, I realized that the actual problem lies with IE7. When ever user click the download button, we will execute "response.setHeader("xxxx")" on our coding to set the file name. In such, IE will always read the semicolon ";" in the header data as a delimiter for others parameters. Therefore, the name was actually splited into 2 parts.
Damn, an IE7 bug, hopefully such problem will be resolved in IE8.
Damn, what happened. Try with mozilla. Wow, it downloaded just fine. What happened?
We came across such problem when dealing with upload and download of attachment. After some finding on the Net, I realized that the actual problem lies with IE7. When ever user click the download button, we will execute "response.setHeader("xxxx")" on our coding to set the file name. In such, IE will always read the semicolon ";" in the header data as a delimiter for others parameters. Therefore, the name was actually splited into 2 parts.
Damn, an IE7 bug, hopefully such problem will be resolved in IE8.
Wednesday, July 08, 2009
Dev : Informix Inner Select
What if you are trying to create a virtual table for SQL?
As per standard database query, usually we would write something like:
SELECT some_fields FROM (SELECT selected_fields FROM table1) vtable
But in Informix, one of the much used relational database worldwide (but which I do not really like to use), had to be written in a slightly different way:
SELECT some_fields FROM TABLE(MULTISET(SELECT selected_fields FROM table1)) vtable
That's all. Not too much difference, but gosh, why on earth it has to be so complicating. Haha~~~
As per standard database query, usually we would write something like:
SELECT some_fields FROM (SELECT selected_fields FROM table1) vtable
But in Informix, one of the much used relational database worldwide (but which I do not really like to use), had to be written in a slightly different way:
SELECT some_fields FROM TABLE(MULTISET(SELECT selected_fields FROM table1)) vtable
That's all. Not too much difference, but gosh, why on earth it has to be so complicating. Haha~~~
Subscribe to:
Posts (Atom)