32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions
comment 14y ago · link · parent
This probably won't matter to most people, but if you're the kind of person that has tutorials or examples or any other kind of thing you try to keep up to date in a blog post over the years, things like TOhtml make it hard to quickly edit and maintain the code, while WordPress plugins invariably do a poor job, add too much to the processing time (though you should be using a caching solution), and break on upgrade. For me, GitHub's Gists were a godsend.
comment 14y ago · link · parent
With his custom software he's solving a completely different problem with a different algorithm that was only possible based on observations unique to his dataset:
I originally started with code very similar to the C++ STL set intersection code and was dissatisfied with the results. By observing that the longer sequences will skip more items than the shorter sequences, I wrote a 2-level loop that skips over items in the longer sequence before performing comparisons with the shorter sequence. That got me roughly a 2x performance advantage over the STL variant.
Let's call this apples. Then he talks about how using C++ STL wouldn't do the trick since he doesn't care about the data, only the count (oranges). And how bloom filters applied naïvely to the raw data would still take longer (zebras).
He's solving a completely different problem, and lambasting perfectly viable technologies for taking longer to solve a completely different problem.
Now obviously there's a good blog post and moral in there: don't solve the wrong problem. Generic algorithms can't be both generic and special at once - they're not always going to give you what you're looking for and only what you're looking for, and that's a cost to be taken into consideration at any time that you're trying to choose a solution. But don't criticize them for being slow, and then in a postscript say "and I don't need the actual results of this algorithm, anyway."
comment 14y ago · link · parent
Each time you go buy a weapon you pay an extra 5 dollars (at least here in Illinois) to cover a background check (the results of which are instantly available). (You still have to wait 3 days in case other info hasn't yet entered the system, and then they check again, and give you your weapon).
comment 14y ago · link · parent
I just finished writing and filing my own - for normal entities, a normal patent is around $2000 dollars to file with the USPTO, for "small entity" inventors its $600. But that's before the ~two years it takes for the USPTO to review your case and the costs of fixing and refiling. With rush fees, and to get the USPTO to actually review your application in this lifetime (just kidding.. well kinda), add another 10k.
If you want to go with a lawyer (and these days, unless you're willing to literally spend months drafting your application and researching previous claims, it's really hard to avoid) you'll spend anywhere from $5k for a basic patent to $20k for something building on existing tech for a "real world" product.
Whereas copyright is a) instantaneous and self-evident (you don't need to "file" for copyright) and b) actually a much more powerful protection. With patents from small inventors, you have a lot more at stake (enough that it was worth it to go through that process), a lot more has already been invested (so there's more to protect), but simultaneously protecting it against bogus claims is also more expensive.
comment 14y ago · link · parent
If you stream a 720p YouTube video inside a VM and access it from Chrome or Firefox on a modern PC, you should see near-native quality and framerates. It’s not as fast streaming to an iPad just yet, but you’ll see some impressive changes there before long.
VNC isn't capable of providing a near-native experience for anything because it works from the top-down instead of from the bottom-up. Have you ever tried streaming 720p videos via VNC? The bandwidth it takes is ridiculous, and even on a gigabit LAN it doesn't provide the desired experience, let alone over the internet.
Also, I don't think there's a browser-based VNC implementation that will work on iOS or even Android (I don't mean Java plugins!) so there's that, too.
comment 14y ago · link · parent
It cycles on the "uploading bookmarks" page for a couple of minutes (I only have 50 or so!) and then
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
comment 14y ago · link · parent
My ntpq -p output:
remote refid st t when poll reach delay offset jitter
==============================================================================
time.apple.com .INIT. 16 u - 512 0 0.000 0.000 0.000comment 14y ago · link · parent
<removed NTP stuff>
I simply don't have any clocks that aren't part of electronic devices, my wristwatch being the exception (but it's analog (Roman numerals, even :P) and only has second accuracy anyway, so I don't fuss about it).
Simply put, all my devices take care of all this for me. My MacBook and Windows 7 work desktop are both configured to sync to the Apple NTP servers (lowest ping for me, AND they're always up. Microsoft's are down a good 10% of the time in my experience). My cell phone gets its signal from God knows where (iPhone 4S - it could technically be using one of 4 different sources) but is always more or less in sync with the rest (I just checked with time.is for what little that is worth, however, and while my MacBook says that my time is within the margin of error "The difference from Time.is was -0.007 seconds (±0.018 seconds).", my iPhone returns "Your clock is 0.5 seconds slow" - but I would trust my iPhone's NTP implementation over time.is' response as its the same OS X NTP that got it "right" on my MacBook) as it can theoretically use a) GPS b) GSM/CDMA towers c) NTP d) time from PC sync.
All my other electronic devices fall in the same category. Garmin nüvi (GPS), Kindle (NTP, auto configured), Cisco IP Phone (NTP, manually configured), Brother printer (NTP, manually configured). I purposely do not set my microwave clock because a) I'll never get it right, and b) any time the power cuts, it resets and in 2012 they're still too stupid to add a 5 cent battery to keep the time in case of power outage.
comment 14y ago · link · parent
I am not going to give my money in exchange for a product I'll trust with my health to a company that thinks "U LEARNED RUBY? Y TAKE SO LONG" is proper/fitting advertisement.
comment 14y ago · link · parent
I think they could have caught on at least as well as BrowserID will.
comment 14y ago · link · parent
Regardless, "No, executables made with Visual Studio 2010 run on Windows XP SP3. They don't run on Windows 2000" and "No, executables made with Visual Studio 2010 run on Windows XP SP3. They don't run on Windows XP SP2" are entirely different statements.
comment 14y ago · link · parent
When the entire world is using your OS, the onus is on you to either make upgrades people will be happy to use (and then happy enough to pay for), or continue to support the last "proper" release you made that literally half your customers still use.
comment 14y ago · link · parent
With free or 30 dollar major OS upgrades, upgrades that are consistently better than their predecessors (or at the very least (Lion?) not noticeably worse!), great and constant innovation to make the upgrades compelling and appealing, smooth/streamlined and automated "SP" deployments over the net, and many other things that I won't bother listing, they ensure that their users are, by and large, using the latest version of their OS.
They can break compatibility every time, for all I care. But when Windows 7 (or for all we know, Windows 8 too) provides no real enhancements over XP (at the very least, in the eyes of a consumer) except bloat and a confused interface, then and only then do I complain about how "evil" they are for (possibly purposely, if you look into the details of the hack I posted in another comment, you'll see why) breaking support for older operating systems.
comment 14y ago · link · parent
Assuming it's the same, then adding this ASM file to your project should solve the problem:
https://github.com/NeoSmart/UtfRedirect/blob/master/UtfRedir...
comment 14y ago · link · parent
Unfortunately, yes. The B2C desktop software market is such a cutthroat environment both in terms of what users expect and how much competition there is. It's an entirely different beast and the devil really is in the details. For some reason, bloggers, software review sites, magazines, etc. will really run desktop software through the mill and pick at the nitty-gritties in a way that they don't with webapps. Perhaps because with webapps the user experience is rather ephemeral and can be easily patched or fixed whereas with desktop apps everything has a very "final" feel to it.
comment 14y ago · link · parent
It's by far one of the most deceivingly difficult problems I've worked on. If anyone cares for more info, this is what the restore process looked like:
* Single thread that determines the list of files that need to be restored, asynchronously feeding to
* Multiple threads that download the files from our servers as ZIP files, then each queue their results to either
* A thread pool with a dynamically adjusted number of worker threads for the unzip and decrypt process, extracting the files to their final destination, OR
* A different thread pool with a fixed number of threads that does block-level (byte-level differential) restore, which may, when processing a file, need to add files to the first thread mentioned in this list
To pull this off, we had to modify the backup process to store enough info to be able to calculate, immediately when the user presses "start restore," the total number of files to be restored, the total number of files to be downloaded (which may be different because ZIP files can contain many small files to minimize latency and overhead, and also because the byte-level differential backup has "backup run" outputs), the total bytes to be restored, the total bytes to be downloaded, the total bytes to be unzipped, etc. etc. etc.The progress bar had to move "smoothly enough" across the entire backup. If you're restoring a hundred and one files, 100 of which are tiny and in a single zip file, and the 101st being a huge differentially-backed-up file, the 101st will take forever and the progress should reflect that. For multi-GB restores, the math could give you 100% (with rounding) for over 10 minutes - need to jam the progress bar at 99% until it's actually done or you'll get complaints. Likewise can't keep it stuck at 0% even if it rounds down to 0% or you'll get complaints.
At the end of the day, the formula I came up with weighted for the following:
* The number of files to be downloaded
* The number of files to be restored
* The size of the files to be restored
* The number of files to be decrypted
* The number of files to be differentially restored
* The number of files required to differentially restore a single file
* The size of the files required to differentially restore a single file
* The size of files cached locally that can skip download
* The number of files coalesced in a single ZIP archive
* The destination drive (externals are slower than internals)
* The average download speed
Fringe cases such as attempting to restore a single file that was contained in a single ZIP with a hundred other files when tested with a naïve algorithm would end up giving negative progress as if you adjust for the factors listed above you'll end up needing to factor in a (relatively) "huge" number of bytes for download while you're actually only grabbing a single "small" file from the ZIP. Basically, if you adjust the weight of one factor for one case, you'll end up getting non-smooth progress bars for other cases as a result. Took a lot of charting, a lot of trial and error, a lot of user feedback (each time from people that had never participated in the test before to prevent any sort of bias or preconceived notions) to finally get it right. That code is now classified as "no one touch it, no matter how trivial (you think) a bug you found would be fix."So, yes. Progress bars lie. It takes a shitload of work to make pull these lies off, and if they told the truth, your users would really make sure you never heard the end of it. Even if you've already technically done 80% of the work, if only 20% of the required time has elapsed, that progress bar had damn well not say 80%. Or 20% either, for that matter.