I did a little experiments with Ruby class dynamic loading/unloading/updating as implementing plugins infrastructure. I found a few points: If loading new version of same class without first unloading it, the new one essentially 'top' or 'merge' with previous version. All existent objects created with previous version would get their class definition 'updated'. Unloading a class does not affect existent objects created with this class. Existent objects stay with whatever version just unloaded. (class cannot be used anymore but not the objects already created) If loading new version after unloading of previous version, new objects created would be of the new version. However, old objects created before the loading of new version would not be affected and would still be of the old version. My question is, is there an easy way to make existent object created from the old class version 'switch' to the new version (but not a merged version of the old & new version)? It seems to me the...
- Bryan Tsai
1. Configure the web server to return 304 for every image request. The HTTP status code 304 means that the file is not modified and this means that the browser will fetch the file from its cache if it is present there. (credit: this SuperUser answer) 2. In every page in the website, add a small script to capture the image data and send it to the server. 3. Save the image data in the server.
- Bryan Tsai
from Bookmarklet
Windows Mobile has lost nearly a third of its smartphone market share since 2008, research firm Gartner reports. Windows Mobile had 11 percent of the global smartphone market in the third quarter of 2008, according to Gartner, and last quarter Windows Mobile’s market share plummeted to 7.9 percent. Meanwhile, Apple’s global market share grew from 12.9 percent to 17.1 percent, and RIM saw a rise from 16 percent to 20.8 percent, according to Gartner’s figures.
- Bryan Tsai
from Bookmarklet
This article reviews the good theory: regular expressions, finite automata, and a regular expression search algorithm invented by Ken Thompson in the mid-1960s. It also puts the theory into practice, describing a simple implementation of Thompson's algorithm. That implementation, less than 400 lines of C, is the one that went head to head with Perl above. It outperforms the more complex real-world implementations used by Perl, Python, PCRE, and others. The article concludes with a discussion of how theory might yet be converted into practice in the real-world implementations.
- Bryan Tsai
While it is not very common for an application’s scalability requirement to exceed that which can be handled by a single WebSphere Application Server cluster, it can happen. For these scenarios, one technique that can be used to overcome the implicit cluster size limit is to define a super cluster or "cluster-of-clusters" topology. A super cluster is a hierarchical cluster that you can think of as a generalization of the classic WebSphere Application Server cluster.
- Bryan Tsai
Depending on what your if .. else .. actually do. Also, whether this is only 1 kind or many different operations. http://stackoverflow.com/questio... might be helpful.
- Bryan Tsai
Just experimented with implementing TraverseListener in the dialog class, but it turns out the event would go to individual widget first, then 'maybe' go to the containing dialog (not sure, since I can't observe this behavior). Anyway, globally defining in dialog class doesn't seem to be a solution.
- Bryan Tsai
"One of the best expandable surge protectors we've used yet. It's incredibly useful on road trips (CES) as well as at home, and beats even the Power Squid in our eyes in a general comparison. The special thing about Socket Sense is that it can be expanded from 13 to 18 inches and has 6 angled outlets, allowing you to fit more adapters on one strip."
- Bill Sodeman
from Bookmarklet
I saw that in the Times today. Of those 200 CEOs, only 6 CEOs made less than Eric Schmidt (of Google). Of those 6, five made less than $100K in a year. It boggled my mind how much some of the other 193 CEOs got paid.
- Matt Cutts
A lot of white men.. Top woman: Andrea Jung, Avon, number 23
- Nick Lothian
Antonio++. "Pay for performance" is a pure myth at the executive level. When things go south, their compensation contracts actually get re-adjusted so they STILL get paid, big time.
- Andrew C
Ugh. This just makes me want to give up on the "corporate ladder". I'll never even get their daily pay as a yearly salary. I'll work harder on my own stuff.
- Kamilah Gill