Khoa
Member since Oct 14, 2009
- Profile: /members/4528-khoa.htm
- URL: http://blog.vinhkhoa.com/
- Comments: 14
Recent Blog Comments By Khoa
-
SQL Optimization And ON Clause vs WHERE Clause
Posted on Oct 10, 2010 at 5:21 PM
@Ben, I think my point is more about the number of times the subquery is executed which is where the performance gain is. And you are right the final comparison still needs to be run for each row. Same here. I also love using ON as I think it makes the query more organised and beautiful :-)... read more »
-
SQL Optimization And ON Clause vs WHERE Clause
Posted on Oct 6, 2010 at 8:32 PM
I think the speed depends on what you are trying to compare. If it's simple comparison like 'age < 25' then I dont think it makes much difference between WHERE and ON but when those comparisons require complicated calculations like resulting in a subquery, it does matter. I'm pulling this out of... read more »
-
Exploring Javascript's parseInt() And parseFloat() Functions
Posted on Sep 17, 2010 at 8:07 AM
@Jim That's a lot simpler. Thanks :-)... read more »
-
Exploring Javascript's parseInt() And parseFloat() Functions
Posted on Sep 16, 2010 at 11:29 PM
I'm surprised that parseInt() will attempt to parse in base8 when the string has a leading 0. I gotta remember to remove them before using parseInt() next time. It also does the same when there are multilpe leading zeros, like "000012".... read more »
-
Reading In File Data One Line At A Time Using ColdFusion's CFLoop Tag Or Java's LineNumberReader
Posted on Sep 15, 2010 at 9:27 PM
@Matthew, If I understand your method correctly, you use indexOf() to find the position of the newline character (or whatever char), mark it as the start, then find the next position of the same char, mark it as end and then use mid() to get the portion. Is that correct? If so, why not use list wit... read more »
-
Reading In File Data One Line At A Time Using ColdFusion's CFLoop Tag Or Java's LineNumberReader
Posted on Sep 15, 2010 at 6:16 PM
@Peter, @Ben hahaha, sorry, stupid me, look like I missed the point of the article :-) I always read the whole file in. I think my applications are just not big enough that I encounter that overflow scenario :-p Thanks for the article Ben. Next time my app hangs when it reads a file, I know why and... read more »
-
Reading In File Data One Line At A Time Using ColdFusion's CFLoop Tag Or Java's LineNumberReader
Posted on Sep 15, 2010 at 12:04 PM
Hey Ben, I just got a quick thought while reading your post, what about reading the whole file into memory (using cffile action=read) and then we use list or maybe better regular expression to split the content string into chunks that we need. For the first case, they can be split into list items us... read more »
-
Campaign Monitor API Connection Failure With CFHTTP And GZIP Compression
Posted on Aug 2, 2010 at 8:40 AM
The server I tried to access does not have gzip available. When I checked in the header response, it said: Content-Encoding: deflate (They are different aren't they?) But that doesn't matter, what matters is your trick solved my problem too! :-) Thanks Ben & Dan, Khoa... read more »
-
Mastering The ColdFusion Application Framework
Posted on Jun 1, 2010 at 10:09 AM
I find "framework" kind of a buzz word where people tend to use it quite loosely. Some guys who have been coding with CF for 10 years without using any "frameworks" like Coldspring, Fusebox, (or cfTrigger :-P) etc. and slowly develop his own coding styles, then he calls it his framework :-) If you ... read more »
-
Mastering The ColdFusion Application Framework
Posted on Jun 1, 2010 at 9:52 AM
Very nice slides Ben. tbh, I find looking at the presentation slides without any voice over it is a little...weird :-P Looking forwards to your video! You made a good point that many people don't realize CF is already a framework by itself. But there seems to have no clear tutorials of how to set u... read more »
-
3rd Annual (Inter)?National Regular Expression Day (And Prizes) - June 1st, 2010
Posted on May 21, 2010 at 11:23 AM
Just to join the "name conversation", my first name is in fact 2 words as well. They are "Vinh Khoa". My last name is Nguyen but I usually just use Vinh Khoa as I prefer to keep it short. Many people don't know that and they just call me Vinh as they think that is my first name :-( Although I sort ... read more »
-
3rd Annual (Inter)?National Regular Expression Day (And Prizes) - June 1st, 2010
Posted on May 21, 2010 at 3:20 AM
Haha, can't belive you could come up with such an idea Ben! Very...crazy :-P My reg exp is not very good though. But even before thinking of reg exp, might have to go back and read books about "talking to the ladies" first ;-) BTW, the O'Reilly books look very compelling to me, thinking of grabbin... read more »
-
Building Single-Page Applications Using jQuery And ColdFusion With Ben Nadel (Video Presentation)
Posted on Oct 14, 2009 at 2:08 AM
Great presentation Ben, A combination of jQuery and coldfusion is always awesome. They are the best frameworks out there imo. Khoa... read more »