Monday, February 18, 2008
Databases and sessions
Haiz after some testing, having 1 session per user might not be such a great idea after all. It's fantastic in the sense that dirty checking is done automatically and such, but if there's any problems with the graph, you're pretty much screwed. Not sure how easy it would be to ensure that there are no errors in the graph. Technically speaking, there shouldn't be any errors at all, otherwise the app won't work. Also, is there a way to test first? Hmmm. Sigh. Going to work on 1 with mini sessions and detached objects and see how it is. But I'm not sure how the detached objects will function in a multi user environment. The Hibernate folk also say don use detached objects... Haiz... Hmmm...
Friday, February 15, 2008
Is it so hard...?
To find a free mobile offline rss reader? Well, I can hear you say, there's tonnes of them arnd! Yes I know, I'm using Nokia's widsets and it's pretty good. But what I want is a reader which will download everything and cache them for true offline reading. I want to simply launch the program, do my stuff, it downloads automatically, so when I'm on the train or something, I can just go through the articles. Just tried out news gator, which promises to be an offline rss reader. Well, I can launch it offline, I can read stuff offline, only problem is I'd need to have clicked on the items when I had a connection first, otherwise it's empty. Grrr! Don't tell me I have to really write one myself? Urgh
Thursday, February 14, 2008
Of bugs and gory
Spent the day checking, checking, and hunting bugs. The Application does work, but if you were to liken it to a house, then it'd be ... Look there! An ant! Look there! A few cockroaches! It's always times like this where this sense of hopelessness comes in... So many bugs.. Tucked everywhere... Fix one, find another two... How do those professional systems get released? But then again, all systems have bugs. :P
Had a revelation on Tues while with Ad. The lectures teaches us, in software engineering, that many projects are delivered late, due to wrongful interpretations of specs. After some experience, I'd be more inclined to say (at least for gov projects) that the bulk of the delays are at client side. Ppl squeezing vendors, but sitting on their asses when they are supposed to input. But that's government for you... Haiz
Had a revelation on Tues while with Ad. The lectures teaches us, in software engineering, that many projects are delivered late, due to wrongful interpretations of specs. After some experience, I'd be more inclined to say (at least for gov projects) that the bulk of the delays are at client side. Ppl squeezing vendors, but sitting on their asses when they are supposed to input. But that's government for you... Haiz
Wednesday, February 13, 2008
The day before V day
Finally... After 2+ weeks of struggling and banging head on keyboards, The Application, with database support is starting to become meaningful. Monday and yesterday were the days of great battle. Finally sat down and wrestled with The Beast, The Connection Leak. Now she's running trim and slim.
But of course, there's still tonnes of work to be done... After so long, she's still far from ship shape. Still too many queries being run, a bunch of spurious save queries begging to be removed, bugs to be fixed, missing functionalities to be patched, and proper methods to be called at the proper times... The latter goes hand in hand with the first. But so many calls to trace through @_@ good thing she works even with these issues.
Well, at least patched a few bugs today... Will have to verify it tomorrow, but it feels right, logically. Just need to streamline the solution. Then at the end of it all... Still need to neaten things up and see if stuff needs refactoring. @_@ zzz
But I digress, this should be a V day post, lest the readers complain ü but hmmm nothing much to mention about it, just feel blase about the whole thing. I'm afterall, practical :p
Need to get started on entry 2 of my story soon... Was meaning to do it after this post, but apparently this took long enough for me to reach my stop. Heh
But of course, there's still tonnes of work to be done... After so long, she's still far from ship shape. Still too many queries being run, a bunch of spurious save queries begging to be removed, bugs to be fixed, missing functionalities to be patched, and proper methods to be called at the proper times... The latter goes hand in hand with the first. But so many calls to trace through @_@ good thing she works even with these issues.
Well, at least patched a few bugs today... Will have to verify it tomorrow, but it feels right, logically. Just need to streamline the solution. Then at the end of it all... Still need to neaten things up and see if stuff needs refactoring. @_@ zzz
But I digress, this should be a V day post, lest the readers complain ü but hmmm nothing much to mention about it, just feel blase about the whole thing. I'm afterall, practical :p
Need to get started on entry 2 of my story soon... Was meaning to do it after this post, but apparently this took long enough for me to reach my stop. Heh
Monday, February 11, 2008
Things I've learnt today
So today, I finally found out why The Application was hanging randomly. Oh it has been doing it a few times, but somehow either I get distracted by another pressing crisis or it just goes away. But today, it decided to rear its ugly head, and what best time to do so but at 6pm?
Sessions shouldn't be the problem, I thought. After all I AM closing the query session. The account with fewer contacts was fine too. After some debugging, I found the location of the hang, an innocent query statement which had been called a number of times with no problems at all. My initial gut feel was that it was a null pointer somewhere, but after staring at the innocent function, I decided, on a whim, close to 715, to increase the connection pool. Being the lavish sort, I bumped it up to 2000, from a meagre 10. Ran the test case again, and it didn't hang. Yay go home!
Of course... Still need to look into it. The solution is simple. Not enough Vespine gas. Well that belies a bigger problem. You're saying, 1 user with 20 over contacts can't survive using a connection pool of 10? I don't know how Hibernate manages its connections, but I think 10 should have been enough. Also, The Application is issuing a distressing amount of queries, repeated ones too. It shouldn't be doing that. Well I guess that's the penalty of designing without a database and tacking it on later... Whoever said grafting was easy?
Sessions shouldn't be the problem, I thought. After all I AM closing the query session. The account with fewer contacts was fine too. After some debugging, I found the location of the hang, an innocent query statement which had been called a number of times with no problems at all. My initial gut feel was that it was a null pointer somewhere, but after staring at the innocent function, I decided, on a whim, close to 715, to increase the connection pool. Being the lavish sort, I bumped it up to 2000, from a meagre 10. Ran the test case again, and it didn't hang. Yay go home!
Of course... Still need to look into it. The solution is simple. Not enough Vespine gas. Well that belies a bigger problem. You're saying, 1 user with 20 over contacts can't survive using a connection pool of 10? I don't know how Hibernate manages its connections, but I think 10 should have been enough. Also, The Application is issuing a distressing amount of queries, repeated ones too. It shouldn't be doing that. Well I guess that's the penalty of designing without a database and tacking it on later... Whoever said grafting was easy?
Thursday, February 07, 2008
Tuesday, February 05, 2008
Dinner!
Went over to Liang Court to have dinner. Look at that big plate of sashimi! No I didn't eat any of it, I don't eat raw stuff! The rest of the food was good though... Too bad didn't take pictures of the rest :p was totally ala carte for once. But deeply regret not ordering a bowl of rice at least, they serve good rice!
Urgh...
So... After a long time of head banging, I've managed to graft version 1 of the db. Tacked it on like the skin of a created Chaos Space Marine... Will need some optimizations but basic usage is there. So I decided to get some stress testing done, well at least if even if not a lot of stress, some reads and writes would be good. So I asked ck for his class, since he wrote a stress test package then.
Added it into the project and gave it a whirl... Single client was fine... But the stress test was horrible, exceptions here and there. And the horrible strange error of encryption, which was causing errors if too many clients connected at once.
Managed to fix that bug... Apparently a single Cipher object did not like being called in different objects.
After fixing it, I started to take a look at the mysterious exceptions which were coming from the stress test. To his credit, I probably patched some stuff which were lying dormant. After patching everything I could think of though, the damn thing was still giving off exceptions, and worst of all, it was at random spots. The worst bugs are them random ones, and I was partially traumatised. Why does this come up at this run, but it doesn't on another? Finding it strange, I looked at his logic. To my surprise... It was random... Apparently once the client had signed in, it could run any of a set of methods. It was pretty dumbfounding. Well, being random is fine.... But not when some methods have prerequisites. How can it be correct for a client to send a message to another when it hasn't even downloaded the contact list yet? The aim for this class, if I'm not mistaken, is to form an idea on how much load the server can handle. To do that, you need clients as close to real ones as possible... Gah! <_<
Added it into the project and gave it a whirl... Single client was fine... But the stress test was horrible, exceptions here and there. And the horrible strange error of encryption, which was causing errors if too many clients connected at once.
Managed to fix that bug... Apparently a single Cipher object did not like being called in different objects.
After fixing it, I started to take a look at the mysterious exceptions which were coming from the stress test. To his credit, I probably patched some stuff which were lying dormant. After patching everything I could think of though, the damn thing was still giving off exceptions, and worst of all, it was at random spots. The worst bugs are them random ones, and I was partially traumatised. Why does this come up at this run, but it doesn't on another? Finding it strange, I looked at his logic. To my surprise... It was random... Apparently once the client had signed in, it could run any of a set of methods. It was pretty dumbfounding. Well, being random is fine.... But not when some methods have prerequisites. How can it be correct for a client to send a message to another when it hasn't even downloaded the contact list yet? The aim for this class, if I'm not mistaken, is to form an idea on how much load the server can handle. To do that, you need clients as close to real ones as possible... Gah! <_<
Monday, February 04, 2008
Misty Mountains
Ok... No more jioing disinterested ppl into doing things or watching movies. If you're not interested, just say no. I'll either catch it myself or via other means.
Edit: zz this was supposed to be the first post.. not the last .. damn emails!
Did I mention that I have a splitting headache ><
Edit: zz this was supposed to be the first post.. not the last .. damn emails!
Did I mention that I have a splitting headache ><
Anger Management
It's shocking to myself too, the depth of reaction. For a long moment my thoughts were clouded and I had a headache. Not sure what's going on too, it's probably yet another geyser of repressed stuff reaching its maximum pressure.
Someone remarked a few days ago that I always sound so cheerful. Ha ha, it's kinda funny. The exterior is completely out of sync with the interior. The typed words sound as bright as day, but deep in it's cold and dark.
The sense of loss is here again... Everything I've loved, everything I've lost... Hmmm so many things lost. So many which can't be regained.
Been feeling restless too... Feel like how Eldaris would feel, being trapped in a cage, how he would stretch his wings against the boundaries, chafting at his bounds. The sense of restlessness and entrapment. Feels odd.
Someone remarked a few days ago that I always sound so cheerful. Ha ha, it's kinda funny. The exterior is completely out of sync with the interior. The typed words sound as bright as day, but deep in it's cold and dark.
The sense of loss is here again... Everything I've loved, everything I've lost... Hmmm so many things lost. So many which can't be regained.
Been feeling restless too... Feel like how Eldaris would feel, being trapped in a cage, how he would stretch his wings against the boundaries, chafting at his bounds. The sense of restlessness and entrapment. Feels odd.
Eye Poker
... Have you ever had the thought, whenever you held a particularly sharp pen or a screwdriver, of poking someone in the eye with it? <_< Thoughts like that always come to me when I'm holding something like that. Today's one was pretty vivid: I was looking over at the screwdriver I had on my table and it occurred to me... What would happen if I took it, walked up to somebody, said Hey, and then poked him in the eye with it... Would I miss? Would he be able to block it? Would it go into the brain? My mental picture showed me a ruined eye, with bits of stuff ... Flowing out. Then after that... What would happen? Shall I go back and sit calmly at my seat? Or just walk out. Keep walking till someone catches me. <_< kinda weird huh... Never thought of it go such a graphical sense before too...
Friday, January 25, 2008
So... Do I look like I care?
It's been something I've known for some time... Just, like many other things, not acted upon. The time feels close though. Almost everything has been boiled down to a professional level of detachment (I hope). Of course things will thought through and evaluated first. Remuneration will definitely play a big factor. Time's short, make as much $ as possible, no? $ first, satisfaction later. :P
Thursday, January 24, 2008
About cks and cks
Seems like ck is a pretty popular blog subject. Hypothetical question. Suppose if someone, your colleague, asks you if you'd like to order drinks. You say yes, and name your drink. Upon returning to your seat you find said drink there. What's the first thing you do?
Most would probably say, ask who paid and settle. What did he do? He just sat down and started drinking. Yes I guess I should have asked him to pay. But I was feeling too incensed to do so. That action also reminded me to the fact that it has happened before -_- well I better remember it this time. Not going to help him buy drinks anymore.
Today was another ck suprise too. I was standing at the doors, waiting for ppl to finish their businesses so we could go for lunch. Ck was there too. I just stood there, fiddling with a new Snööks application, when he came up to me, and started flicking snööks' dangling hand phone strap. He flicked and flicked until it landed on the screen. Throughout this I was looking at him, with a totally not amused expression on my face. He chuckled, and on seeing that I did not share his mirth, wandered away. -_- so annoying.
In other news, I had to hard reset snööks. Installed the font package for oggplay, and contrary to the read me, snööks took an extremely adverse reaction and refused to boot. Had to totally reset him. Grrr
Been trying to find a good rss reader too, but cant really find any. Using widsets now, but it sadly doesn't download everything for offline viewing. Zzz. Mobispine's not bad, but you need a working connection for it to start. Zzz is it so hard? Blah
Most would probably say, ask who paid and settle. What did he do? He just sat down and started drinking. Yes I guess I should have asked him to pay. But I was feeling too incensed to do so. That action also reminded me to the fact that it has happened before -_- well I better remember it this time. Not going to help him buy drinks anymore.
Today was another ck suprise too. I was standing at the doors, waiting for ppl to finish their businesses so we could go for lunch. Ck was there too. I just stood there, fiddling with a new Snööks application, when he came up to me, and started flicking snööks' dangling hand phone strap. He flicked and flicked until it landed on the screen. Throughout this I was looking at him, with a totally not amused expression on my face. He chuckled, and on seeing that I did not share his mirth, wandered away. -_- so annoying.
In other news, I had to hard reset snööks. Installed the font package for oggplay, and contrary to the read me, snööks took an extremely adverse reaction and refused to boot. Had to totally reset him. Grrr
Been trying to find a good rss reader too, but cant really find any. Using widsets now, but it sadly doesn't download everything for offline viewing. Zzz. Mobispine's not bad, but you need a working connection for it to start. Zzz is it so hard? Blah
Friday, January 11, 2008
Back!
I'm back! Didn't have the time to post. Heh. Nowadays posting all done on snööks, hardly ever use the website anymore.
Anyways, twas a good trip! Went to vegas and sadly didn't make $... Next time sure will win! The hotels at vegas were super over the top type. I stayed over at Luxor, an egyptian themed hotel. Met a couple of friends there... Was fun :p
Then afterwards it was days on days of slacking in Tucson ... Haiz so good. Air super dry though. Even now... Legs and arm still peeling. Urgh. Cold too. I preferred the cold in England, at least the humidity was higher.
Oh and I'm not going to take United anymore man... So crappy one. My plane from LA to HK was delayed for 2ish hours cos of some technical fault... That time when I went to States in March also like that, though it was the Sg to Japan leg. Anyways thanks to that delay, I landed at Sg at 330 am, 3.5 hours later than appointed time. Service was so bad too. The hk sg one was better but the la hk one was so bad. Food was horrible too. Air plane food bad enough liao, but they had to over heat the rice, so it was crunchy... Not in a good way. The butter was completely melted too, one watery mess at the corner of the tray. Zzz. Yep no more United. Well maybe only for short distance flights. Thinking of maybe trying sia next time... But so ex. Haiz. If only can convert my United miles to sia... Zzz
Anyways, twas a good trip! Went to vegas and sadly didn't make $... Next time sure will win! The hotels at vegas were super over the top type. I stayed over at Luxor, an egyptian themed hotel. Met a couple of friends there... Was fun :p
Then afterwards it was days on days of slacking in Tucson ... Haiz so good. Air super dry though. Even now... Legs and arm still peeling. Urgh. Cold too. I preferred the cold in England, at least the humidity was higher.
Oh and I'm not going to take United anymore man... So crappy one. My plane from LA to HK was delayed for 2ish hours cos of some technical fault... That time when I went to States in March also like that, though it was the Sg to Japan leg. Anyways thanks to that delay, I landed at Sg at 330 am, 3.5 hours later than appointed time. Service was so bad too. The hk sg one was better but the la hk one was so bad. Food was horrible too. Air plane food bad enough liao, but they had to over heat the rice, so it was crunchy... Not in a good way. The butter was completely melted too, one watery mess at the corner of the tray. Zzz. Yep no more United. Well maybe only for short distance flights. Thinking of maybe trying sia next time... But so ex. Haiz. If only can convert my United miles to sia... Zzz
Friday, December 14, 2007
Flying away!
Waiting to board at the moment. Finally after so long :p good break too... Been working too much :p need to blog more too... Lotsa stuff... Will do it asap!
Sent by pfingoACTIVE .
Sent by pfingoACTIVE .
Wednesday, December 12, 2007
The Wedding
So... I'm invited to my old classmate's wedding. I'm like thinking...
Ok... I have to go but sadly I won't know anyone at all. And well,
here I am sitting at a table with no one that I know or seen in may
years.
Ba it's started... More later!
Ok... I have to go but sadly I won't know anyone at all. And well,
here I am sitting at a table with no one that I know or seen in may
years.
Ba it's started... More later!
Tuesday, November 13, 2007
Rhythm Emotion
Maybe the seed was planted by yj's question, or maybe it was just a
coincidence. Was hurrying off to meet someone for dinner when the
answer suddenly struck me (of course it's rather odd to have an answer
without a question)...
But the answer is... You know you love someone if you think about
meeting him, and that thought is enough to bring a smile to your face
and erase any dark clouds. =)
coincidence. Was hurrying off to meet someone for dinner when the
answer suddenly struck me (of course it's rather odd to have an answer
without a question)...
But the answer is... You know you love someone if you think about
meeting him, and that thought is enough to bring a smile to your face
and erase any dark clouds. =)
Friday, November 09, 2007
Oops he did it again
Grrr. Today's another ck aggravation day. Never mind the last one...
Which was him kicking my chair to get my attention... Dude. There are
more ways than one to get attention.
As fate would have it, both of us have to plan dept outing.
So he says let's do it now... I'd have preferred monday but ok... Then
he suggested ice skating. Sounded like a good idea, so i pulled up
google and found the relevant info. The moment that happened he said,
ok! I came up with an idea, and went back to his place.
I was thinking... Er... Hello? Besides that we have to plan date, and
dinner plans. You think one place can liao huh. No need to find out
other info etc liao right? Come up with 2 places... You come up with 1
think can just pat backside and go liao? Wtf
Really annoyed. Stupid ck. He's not escaping from this. Very
convenient let me 'lead' then can liao right? Grrr!
Which was him kicking my chair to get my attention... Dude. There are
more ways than one to get attention.
As fate would have it, both of us have to plan dept outing.
So he says let's do it now... I'd have preferred monday but ok... Then
he suggested ice skating. Sounded like a good idea, so i pulled up
google and found the relevant info. The moment that happened he said,
ok! I came up with an idea, and went back to his place.
I was thinking... Er... Hello? Besides that we have to plan date, and
dinner plans. You think one place can liao huh. No need to find out
other info etc liao right? Come up with 2 places... You come up with 1
think can just pat backside and go liao? Wtf
Really annoyed. Stupid ck. He's not escaping from this. Very
convenient let me 'lead' then can liao right? Grrr!
Subscribe to:
Posts (Atom)
