Joe Enos

Phoenix, AZ

jtenos.com

Age: 33

Software developer and architect, focused on .NET technologies. Aspiring entrepreneur, working on multiple startup projects.

Twitter: http://twitter.com/jtenos/

21h
comment JavaScript start file/URL download and close current window when download has completed?
possible duplicate of File download complete callback
23h
comment How to check if text box max length has been exceeded?
You've probably got the cleanest solution for what you're looking for with LarsTech's answer - there are other ways, maybe handling KeyPress or KeyDown, but I think this one's going to be much simpler. About MaxLength, the property is persistent, so setting it in your event handler every time was redundant - once you set it, it's now the same as if you would have done it as design time - which is apparently not what you want to do in order to get your expected behavior.
1d
comment How to check if text box max length has been exceeded?
MaxLength should be a design-time property, so you don't have to worry about the user exceeding the maximum, since they won't be able to.
1d
comment zlib.gzip produces different results for same input on different OSes
To me, line-endings are not something a compression algorithm should worry about - CR and LF are just bytes, just like any other byte, so CRLF shouldn't compress any different from any other common pair of bytes, and CR or LF alone would be no different from "E" or any other single byte. And I would expect that the raw bytes of the pre-compressed input and the post-decompressed output should always be identical, regardless of the convention of the OS you're currently running. But I guess there must be scenarios where that isn't true, otherwise this wouldn't have been done.
1d
comment zlib.gzip produces different results for same input on different OSes
Makes sense. But that OS-byte seems pretty worthless, if it's just metadata that has zero impact on the output. Maybe it's just me, but if I'm writing a compression algorithm whose purpose is to make data smaller, I'm not going to waste a byte like that. Imagine how many trillions of gzip files are out there in the world, each with an unnecessary byte - those really add up. Won't someone please think of the children? :)
1d
comment How to get selector type using javascript or jquery for use in switch statement
Where does this code live, and how does selector get populated? I'm guessing there's a better way before you even get this far.
1d
comment How can I populate a page with AJAX generated HTML before JQuery applies functionality
jQuery's ajax function has an async: false option, which I believe would do what you're looking for, but that would probably be a lousy user experience since it would lock up the screen and probably take longer to load the page.
1d
comment How to convert all columns value to rows and then check for a particular column?
Is there a fixed number of groups, or is that dynamic?
1d
comment How can I test a regular variable against a specific array value?
Be careful when using for .. in - if you've defined anything in the prototype, you'll get unexpected results - see this question
1d
comment How can I test a regular variable against a specific array value?
If you're just talking simple strings, see this question for lost of ways to do a "contains" in javascript.
1d
comment zlib.gzip produces different results for same input on different OSes
Does it decompress properly between environments? For example, if you compress on Windows and decompress on Mac, is it correct?
1d
answered Compare date in linq
Oct
17
reviewed Close How to display id and item both in one row on dropdownlist using android and json
Oct
17
reviewed Close How to add hindi language in prestashop?
Oct
17
reviewed Close VPN not connecting shows error 720 or 800
Oct
17
reviewed Close can use spring 2.5.6 with quartz 2.2.1?
Oct
16
comment Unforseen Dictionary behavior
Is anything static? If the field that gets written to in the ANumeric or AString constructors was static, you'd see this behavior since you'd be overwriting the same static field from different objects' constructors.
Oct
11
comment How to sum time spans stored in a varchar column?
I'd recommend a one-time cleanup of your data and actually store the data numerically (maybe NumMinutes int) to make this easy to work with. Then create a function to convert the number of minutes to the readable format, and use that when you need it.
Oct
9
awarded Famous Question
Oct
9
comment IE skips a <td>
Incredibly hard to believe that this kind of flaw exists, but I just ran into the exact same thing, and it was also fixed by removing the space between each </td> and the next <td>. Must be the dumbest IE bug I've seen all week.
1 2 3 4 5