This Hamilton guy is a serious writer, dude! Just having finished the first volume of this story, Pandora's Star, I was blogging desperately about how the scifi writer manages a huge book, with many characters and with colliding story arches. Now, I have finished the second and last part, Judas Unchained, which I personally think is not so good as the first, but still a damn solid scifi.
I did find myself feeling a bit of pleasure seeing how the author fails to escape cliche in the end of the story and the story lines just become accelerated and the actors predictable. But after writing this humongous book, I guess the inner emotions could not be stilled anymore and the ending had to lose some cohesion.
Bottom line: a very good book, one that shows how stories should be written: with a considerate, serious, prolonged effort to give the tale logic as well as create emotion in the soul of the reader. I would have gone for a different ending, but hey, I don't write anymore, I have no right to complain!
The historical figure most associated with Dracula, the Wallachian prince Vlad Tepes, had this castle, called Poenari, near Curtea de Arges, and the way to get to it is to climb a 1400 steps stair. Apparently, the Step-Master is also a Romanian invention.
But to start from the beginning: my wife was terribly upset by the 40+ Celsius temperatures in Bucharest. That after telling me so many times that she likes it when it's warm. Now 40C... that's warm for you. But no, she really would have liked to exit the city (for the first time in our new Mitsubishi Colt car) and go to the seaside. The sea being that wet big thing where dirty sweaty people go to dive in while other sweaty dirty people are either stealing their money from the wallets on the beach or stealing their money by selling overpriced bottom of the barrel products and services. Oh, and there is sand there.
So I've convinced her to go to the mountains. Me, in my typical optimism, thinking "the mountains" would be a nice little cool resort like Busteni or Sinaia or Predeal, where climbing the mountain is synonymous with walking the mountain. But no, she wanted Poenari, Dracula's bloody castle.
So we've spent 4 hours getting there, the Colt performed admirably and the air conditioning system made my day. Then I was informed that seeing the castle involved the inhuman endeavour of walking The Stairs to Hell. Well, I ride a bike, 1400 steps is like... 100 floors in a bloc of flats. How hard can that be?
After 15 minutes of pure agony while my body was producing my own private sea water version and trying to reach the top by filling the mountain valley and floating me up, we reached the castle. Which is a damn ruin of a castle, with no people getting you water or food or anything. There was one guy, though, who was kind enough to charge us for the privilege to see the castle and had his own private stash of aspirin to counteract the thermal shock of going from a 19C air conditioned car to a 35C stair climb.
Vlad Tepes Dracula has had his revenge and keeps on having it. Somewhere in his grave, the body of this usually negative person must be grinning.
A Perfect Circle has the same lead man as Tool, James Maynard. As far as I see they do really nice lyrics and music. Personally I preferred the cover of John Lennon's song Imagine, but I couldn't find the video for it in all the anime+9/11+Iraq war home made video crap that clogs YouTube.
Check out Judith, which was inspired by the illness of the singer's mother, paralysed in bed, but still praying and thanking Christ. Although if you want to see anything and witness Maynard's weirdness, check out this video of a live TV appearance.
Update:The 30 September 2009 release of the AjaxControlToolkit doesn't have the error that I fix here. My patch was applied in July and from September on the bug is gone in the official release as well. Good riddance! :)
==== Obsolete post follows
Update: On June 20th 2009, Codeplex notified me that the patch I did for the ACT has been applied. I haven't tested it yet, though. Get the latest source (not latest stable version) and you should be fine.
This post was updated on the 1st of July 2008 with some clearer explanations and some error corrections thanks to Santoé who pointed out some mistakes.
My ASP.Net app uses a TabContainer, with a TabPanel in the *x code and with additional TabPanels added dynamically in codebehind.
Well, I got a lot of errors so I've decided to debug and change the control in order to fix it.
Step 1: download the AjaxControlToolKit with source included and open the project locally.
First error : Specified argument was out of the range of valid values. Parameter name: index, somewhere in the TabPanelCollection indexer. The problem actually occurs in TabContainer in LoadClientState(string clientState) where there is a for (int i = 0; i < tabState.Length ; i++). It doesn't take into account the possibility that the number of Tabs and the number of values taken from the tabState can be different. So the code must look like this: for (int i = 0; i < tabState.Length && i < Tabs.Count; i++).
Step 2: In the AjaxControlToolkit\AjaxControlToolkit\Tabs\ folder there is a TabContainer.cs file. Change for (int i = 0; i < tabState.Length ; i++) to for (int i = 0; i < tabState.Length && i < Tabs.Count; i++).
The second error is actually a thrown error in the ActiveTabIndex property setter: if (value >= Tabs.Count) { throw new ArgumentOutOfRangeException("value"); }, but it all comes from this: if (Tabs.Count==0 && !_initialized), because it doesn't take into account the possibility that the Tabs.Count is smaller than the ActiveTabIndex, but not zero. So that should look like this: if (value >= Tabs.Count && !_initialized).
I've downloaded the latest AjaxControlToolKit (version Version 1.0.20229 - Feb 29 2008) and the scratched fix above doesn't seem to work anymore. Instead, try patching the ActiveTabIndex property like this:
In other words, remove the ArgumentException code block and move the condition inside the next block, where you set the real _activeTabIndex to the highest legal value, yet you put the real value in _cachedActiveTabIndex.
Step 3: in the AjaxControlToolkit\AjaxControlToolkit\Tabs\ folder there is a TabContainer.cs file. Change the ActiveTabIndex property with the code above.
The same thing must be done in Javascript, in the Tabs.js file, if you intend to use a TabContainer with no static tabs defined. In case you do that, you will get a javascript error "Microsoft JScript runtime error: Sys.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: value". The fix is to change the set_activeTabIndex function of the TabContainer in the file tabs.js to this:
set_activeTabIndex : function(value) { if (!this.get_isInitialized()) { this._cachedActiveTabIndex = value; } else { if (this._activeTabIndex != -1) { this.get_tabs()[this._activeTabIndex]._set_active(false); } if (value < -1 || value >= this.get_tabs().length) { this._activeTabIndex = this.get_tabs().length-1; this._cachedActiveTabIndex=value; } else { this._activeTabIndex = value; this._cachedActiveTabIndex=-1; } if (this._activeTabIndex != -1) { this.get_tabs()[this._activeTabIndex]._set_active(true); } if (this._loaded) { this.raiseActiveTabChanged(); } this.raisePropertyChanged("activeTabIndex"); } },
Step 4: in the AjaxControlToolkit\AjaxControlToolkit\Tabs\ folder there is a tabs.js file. Change the set_activeTabIndex function with the code above.
This fixed it for me for now.
Step 5: Compile the now patched AjaxControlToolKit and use the resulting dll in your project instead of the default one.
As a reference, my test app does the following things:
Starts with a TabContainer with single TabPanel defined in the aspx
Has a button that adds new tabs to the TabContainer dynamically on the Click event
The panels have buttons in them that can be clicked
The active tab must be preserved during postbacks
The page must work both on synchronous and asynchronous postbacks
A while ago I was recommending you the female vocalist band theStart. They have released another album, entitled Ciao, Baby. Go to their mySpace page to listen to four of the ten tracks on the album or buy the tracks directly, 1$ each.
It seems to me that the band is moving away from rock and going towards electro-pop, which would suck, but the songs are still nice.
In order to debug SQL many people open new windows in Query Analyser or Management Studio trying to see where the errors come from and opening transactions and rolling them back and basically be miserable.
Yet, even from Microsoft SQL 2000 stored procedures had debug support. You would use Query Analyser, open Object Browser, right click a stored procedure and select Debug.
However, in SQL 2005 you can't do that anymore. Query Analyser is no longer available, the Management Studio doesn't have debug options and the SQL 2000 Query Analyser doesn't allow you to debug stored procedures on SQL 2005 servers. But there is support for SQL debugging in Visual Studio .NET, in the Professional and Team versions. Let me rephrase: If you have the Express or Standard editions you are out of luck. No SQL 2005 debugging for you. I did some queries on the web searching for third party sql debuggers, maybe something from Microsoft, like their Javascript Debugger (which works better than the in-built javascript debugging in Visual Studio, btw)
Well, you can! But you need to use the sp_OA* stored procedures and VBScript. Here is a link to the user defined function that allows you to regex in sql: Regular Expressions in T-SQL
You may get this error while trying to use the OLE Automation : Msg 15281, Level 16, State 1, Line 1 SQL Server blocked access to procedure 'sys.sp_OACreate' of component 'Ole Automation Procedures' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ole Automation Procedures' by using sp_configure. For more information about enabling 'Ole Automation Procedures', see "Surface Area Configuration" in SQL Server Books Online.
The solution I've found is use sp_configure to enable Ole Automation Procedures like this:
EXEC sp_configure 'show advanced options', 1 -- make them available reconfigure
EXEC sp_configure 'Ole Automation Procedures', 1 -- turn on OLE reconfigure
EXEC sp_configure -- to see the new value EXEC sp_configure 'show advanced options', 0 -- make them unavailable reconfigure
I've first noticed her while she was playing with Sneaker Pimps, making the soundtrack for The Saint (Val Kilmer version). She looked so interesting with her vibrato voice, weird teeth and Asian features. I've even downloaded the whole Sneaker Pimps discografy before I found out that she was with Sneaker Pimps only briefly.
Now I was listening to the remix version of Linkin Park's My December featuring Kelli Ali and I recognized the voice immediately, even if she was singing faintly in the background. So I thought I would share her with you. Below is the video I think makes her look best, even if you can find a lot of videos with her playing live either as herself , either with TigerMouth or with Japanese bands Buck-Tick or Dropz. Also some links to her site and the Wikipedia entry.
I've accidentally stumbled upon the concept of Text Readability while I was searching some books on Amazon. They have this feature to show you how easy it is to read by the use of some automated indexing and analysis methods. I've researched a little and I came up with this collection of links:
SMOG (Simple Measure Of Gobbledygook) estimates the years of education needed to understand a text. As input data it uses the number of polysyllables (words with 3 or more syllables) and number of sentences. Note: if your text needs a PhD to read it doesn't mean it's smart, but that it is difficult.
Flesch-Kincaid Readability Tests - the Reading Ease and Grade Level tests. They both use as input values the number of words, sentences and syllables.
Automated Readability Index - also tries to determine the years of US education needed to understand a text. It uses as input values characters/word and words/sentence.
Fry Readability Formula - it is a graphical method of determining the education level needed to understand a text. It computes the number of sentences and syllables over a hundred words and the values are plotted onto a graph.
Gunning fog index - same thing. Uses words/sentence and number of complex words and total words. A complex word is the same thing as a polysyllable, only with a higher readability index :)
Coleman-Liau Index - like the ARI and not the others, it uses characters to compute readability. Uses total number of characters, words and syllables.
Linsear Write - Uses number of simple and complex words and the number of sentences.
Zipf's law - an empirical law (based on observation rather than determined theoretically) it states that the frequency of any word in a natural language text is roughly inversely proportional to it's rank in the frequency table.
This text for example has the following stats: Gunning Fog index : 12.93 Coleman Liau index : 11.25 Flesh Kincaid Grade level : 11.39 ARI (Automated Readability Index) : 10.21 SMOG : 12.72 Flesch Reading Ease : 44.16
Which means that if you didn't finish high-school, you're pretty much screwed :)
Funny enough, I was considering starting writing again. I even had this story in my head and I was considering the three parts it must have, maybe even three books. But how will I ever write three books, with my notorious impatience and lack of interest for details? And then I've stumbled upon this book, Pandora's Star. Just the first part of a larger, two books, story, it amounted to 2Mb of text. That's like four slim books or two large ones. The author didn't even bother making the first part stand alone, I mean it is not a book that you can read and know it's over, but it can still be continued. It just stops in mid story and you have to read the other book (Judas Unleashed) to understand anything. So what this actually is... is a single story that has the size of about five normal sized novels.
The plot is also interesting, with many distinct arches that touch occasionally within a coherent world. Placed somewhere in the 24Th century, the human kind has spread to hundreds of worlds using artificial wormholes and has found the secret of rejuvenation. More than this, electronic implants make death obsolete, as anyone can be cloned and their memory restored even if their body is destroyed. So everything is nice and beautiful until they find a Hive-type alien who considers any other species a threat to be eliminated and the peace loving Commonwealth must now do battle with an expanding mind with no conscience, limits or the concept of pain.
I've just started Judas Unleashed, but my reading will probably be slower this time around. A very nice book, a bit humbling for any aspiring writer, it will hopefully end at least as well as it started.
It seems I have been challenged to a blog game that involves following some silly rules and getting out a post. I dutifully did that, that is: answer questions with randomly selected playlist items, and this is the result: 1. How are you feeling today? Limp Bizkit - Hot Day
2. Will you get far in life? Theatre of Tragedy - Cassandra
3. How do your friends see you? AudioVent - The Energy
4. Will you get married? Guano Apes - Quietly
5. What is your best friend’s theme song? Sepultura - We who are not like others
6. What is the story of your life? The Start - Trinity
7. What was high school like? Savage Garden - I want You
8. How can you get ahead in life? Ill Nino - Turns to Gray
9. What is the best thing about your friends? Nigthwish - Two for Tragedy
10.What is in store for this weekend? Muse - Citizen Erased
11.What song describes you? 3 - Alien Angel
12.To describe your grandparents? System of a Down - X
13.How is your life going? Breed - Happy Again
14.What song will they play at your funeral? Moby - Everytime You Touch Me
15.How does the world see you? Tsunami Bomb - A Lonely Chord
16.Will you have a happy life? Red Flags - Crash Course
17.What do your friends really think of you? System of a Down - Johnny
18.Do people secretly lust after you? Anouk - R U Kiddin' Me
19. How can I make myself happy? Muse - Endlessly
20.What should you do with your life? Black Atmosphere - Muscle in Plastic
Now, the funny thing is that these were really randomly chosen. I had nothing to do with it! And it fits! :D
An American company has developed a microwave system that decomposes hydrocarbon into something resembling the oil it came from. That means it converts plastics of almost any kind and rubber into fuel!
I really enjoyed the Warcraft and Starcraft ministories in the game and I was happy to hear that books have been written that take place in those parallel worlds. One of these is Starcraft Uprising.
I am disapointed to say that the book sucks. It is like a fast forward screenwrite test, with ideas that are both boring and badly conceived. The entire book can be read online, but I've lost the link, but I tell you this: it is not worth it. And the action takes place just after humans discover the Zerg, but have no idea what they are, a prequel to the Starcraft storyline.