Thursday, October 31, 2013

Coding and Encryption

C, C#, Java, VB.NET, Pascal, Bring it On!

During my 3 week course (started last week), we were told to write a Chat Program. Seems like it's Socket Programming and I'm not familiar with it, so instead of enhancing the UI and features, I'll just add a simple login to the program.

To have a login feature, you'll need a database. I've wanted to use either Oracle or Microsoft SQL Server but it's not available. I'll just have to stick with Microsoft Access I guess, being not able to use stored procedures in a pain. I made a pretty simple database for the program, just one table lol. After which, They can create account by using my form I made, nothing fancy and very simple to implement.




After creating the account, you'll get to the login page where you login(duh). The program will check if you type in anything into the username box and password box. If there's nothing, the program will prompt you to type in something. After that, the program will connect to the database and check if the username and password matches. It it matches, you'll get into the chat program. If it does nothing, then you will be prompt with wrong username or password. The password stored in the database is encrypted with SHA-1 though hence it will appear to be random gibberish.


I am still not used to VB.NET yet, need more experience and training with this language. It's very different from C, C# and Java where you end with semicolons (;), instead they end with, well the word End in everything, even with If Else, Try Catch statements. Still, most of my work are using VB.NET and I will need to work on this to contribute more to my company. Also, while surfing the net I found a very interesting picture as a programmer, useful and funny to know.


Sorry about having technical posts like this but I just can't help it when I am coding, it's my passion I suppose? Also, I realise it's a joy to code when it's raining, you will have a very 127.0.01 feeling, if you know what I mean (:Last but not least, an awesome song I've been hearing on air for the past few days, oh yea!









Wednesday, October 30, 2013

Ordinary Day


Today is just an ordinary day, with a bit of a twist. I was driving by this road outside Sembawang airbase which has traffic light so close to each other that it can only fit maybe 8 to 10 cars in it. As I drove through the first traffic light, the second one starts to turn yellow and then red. I was just halfway through it and decided to just drive past it. However, I realised I could not do that fast enough. Hence I started braking till the ABS light came out and stopped right after the traffic light. Half fked stop, I had no choice but to continue driving away, ignoring the red lights. The braking sound was not your usual one, it was screeching. For once, I am afraid of my car getting torn up by myself, and I hope not to get the 12 demerit points you'll get for beating the red light.

Maybe I was tired because of not having enough sleep, or maybe I was just having too much thoughts when driving, probably. Regardless, I have told myself to drive more safely in the future, don't want that to happen again.

I am also really happy to see friends finally reconciling between themselves too, things finally turn out the way they were before.

Tuesday, October 29, 2013

Changing


Many things are changing nowadays. Things come and things go, some people get rich and some goes low. Some find happiness, while some met sorrow. Life's never fair since the day we were born. I am pretty lucky to be born somewhere far away from war and hunger. People born in places like Congo and Afghanistan are not so fortunate though. Count yourself lucky to be living in Singapore. I wish I can help and end sorrow in the world, but that's not achievable without money and power. Pretty bold ambition eh? 

Enough about saving the world, I could not even help friends who are having trouble. Perhaps all I can ever do is to give moral support and be a listening ear. Pretty lame eh? I just hope time itself will heal their wounds.

This week seems fast too, it's already Tuesday damn. And finally Thor will be out in 2 days. Can't wait for the sequel, hope it's good. Oh yea ate some vegetable noodles yesterday thanks to one of my friend's 好介绍, was damn nice with all the peanut and almond sauce. Also, I found out that Garden by the Bay is an awesome place to chat, nice ambinence with a peaceful environment, well thanks to my friend again. If anyone needs somewhere to talk your heart out, that might just be the damn place for it.

I don't usually listen to slow songs, but this will be an exception, awesome song.

Thursday, October 24, 2013

Fighting Spirit

The greatest things in life doesn't come easy, that's why we have to fight for what we love.
Nothing is worth having if we don't fight for it.

It was a pretty fast week and tomorrow is Friday already. Seems like time is getting quicker and quicker. Exactly 90 days to Chinese New Year, my gosh. Chinese New Year  used to be my favorite time of the year because I get to stay late up at night, have nice food to eat and of course getting angpaos! However, things seemed dull as I get older. Not sure why, perhaps I am getting used to adult life now. I wish time can slow down because in another 10 years time I will be 31 years old already, damn.

Loving someone is when you always want to be together with her, and when you're not, you're thinking about being together because you need that person; and without them, your life feels incomplete. It's when you trust the other with your life; and when you would do anything for each other. When you love someone, you want nothing more than for them to be really happy- no matter what it takes because their needs come before your own. It's when they're the last thing you think about before you go to sleep- and when they're the first thing you think of when you wake up. Love is giving someone the power to destroy you, and trusting them not to. When they're with you, your heart races. It's when you can't get the smile off your face when you are thinking about her; and you feel like you've been touched by an angel. That's what I am feeling right now, and I will fight for it.

Monday, October 21, 2013

Confusion

Most misery started with apparent happiness.
It's been a fun, yet hectic week for me. Been to Genting Highlands with my friends and oh boy, how I wish I can travel back in time to go back there again.

Climate over there is superb compared to Singapore, accommodation is alright, entertainment is surprisingly plentiful even though the outdoor theme park had closed down. The only problems are that food is scarce for Veggie Lovers like me and OHT and it's quite inconvenient to travel around that area without you own transport. Typical taxi rides cost around 80MYR to 120 MYR (31 SGD to 47 SGD). Ouch, that's quite alot. Still, a trip worth the money and those moments will definitely be staying in my memory bank for quite some time.


Back to reality I guess, time to work hard for what you want, although the list is increasing for me. Next investment will be braces. My set of teeth are horrible, like seriously, it's time to change those shit. That will cost me around S$4k to S$5k, though it's not a problem since my Year End Bonus are coming. Oh yea, after one short damn course for my career, my pay will be increasing again. Just the right moment for the Year End Bonus too.

Next up, time to gain some mass. Gonna be eating alot more and hitting the gym at least 2 times per week to prepare myself for next year's IPPT. I will need to do something now if I still want to maintain my Sliver, lol. Besides, getting a little more mass in my body will help me look better for sure.

Finally, it's time to not feel upset about anything now. No time to get heart pains and stuff, all that will just pull me down. NO, I won't feel down anymore, just stay focus and put in more effort of what I do. Seems like I do get this type of feelings annually, like seriously lol, no more. It's tough loving someone, but is it worth it? What I do now will just be true feelings, no more motives whatsoever. It's just gonna make you think alot.


Percentage to S$1,000,000: 2% (lol)









Sunday, October 6, 2013

Vacation


It's been quite a hectic year for me. I was still waiting to get enlisted into the army more than a year ago. Things didn't turn out well for me last year, was a sad one because of various incidents. Oh well, time flies and without knowing I'm already an 1 year soldier.

It's time to let loose and go for a short getaway, and it's gonna happen in 2 week's time. Will be travelling to god knows where (plan not finalized) with my friends and just get away from the busy life in Singapore.

Perhaps it's time to pick up a camera before the trip since I don't have any, or I will just get this detachable lens cum camera for my phone. Basically you just hook this device up with your phone via WIFI and NFC and viola, your phone has just became an DSLR. Pretty cool eh? Heard it cost USD $499 though.