During this week, was working on the usage of local database for caching of values. Using C#, we decided to use System.Data.SQLite found here. Using a relationship oriented database, i had trouble with some concurrency issues. The database file would be locked when the it is being utilized. Basically, SQLite allows for multiple reads but single writes. To play safe, and due to the use case, i decided to segregate the writes and reads, simulating it like the Dining Philosophers Problem. I created a controller class to act as a waiter, wrappers for read and write. On creation / query, the wrapper will ask permission from the controller class. Thereafter, once it completes, a closing event will invoke and un block any queue.
Still require some addition checks and some minor tweaks. Hopefully this works out fine.
Been busy with lots of stuff – especially with work. Thus, unable to update as frequently as I would like. Sorry ya.
Anyway, been catching up with some backlogs. I did a simple conversion of part of my FYP into python (django). And have hosted in here: http://analytics.weeyoung.com/sa/analysis.
Well, what it does is you submit some words and it breaks them up and see the overall sentiment of your words.
Still lots of parts not done. lots of breakages. still figuring out which is better – drawing with matplotlib or jquery. Analysis of the words are still immature (e.g. no spelling checks)
But its a start! Looking into consolidating with rss feed. Found this site useful and will try it out.
All in all. If there’s anything u like to see, or any ideas. Feel free to let me know @ weiyang13@gmail.com..
Cheers.
No amount of observations of white swan can allow the inference that all swans are white, but the observation of a single black swan can refute that conclusion. – David Hume (1711-76)
Was reading “What the Dog Saw” by Malcolm Gladwell and came across this quote which I found pretty enlightening.
From my perspective, things are unpredictable, especially human nature. Its also similar in a certain sense to the quote on “What will go wrong will go wrong”. I guess I am the type that will prepare for the existence of the black swan than continue hoping that all swans remain white.
Cheers.
