Pimp your WebSite with an Halloween Bat
Time for some Halloween silliness: here is a quick & dirty JavaScript to pimp your website, blog or whatever with a randomly moving vampire bat animation.
Or a dozen. Or a whole flock.
Tips, Hints and Documentation Posts for SamplingProfiler and other Delphi Tools
Time for some Halloween silliness: here is a quick & dirty JavaScript to pimp your website, blog or whatever with a randomly moving vampire bat animation.
Or a dozen. Or a whole flock.
As a followup to the String Concatenation article, let’s take a look at a less trivial case: what if instead of concatenating a couple strings, you want to concatenate a few hundred?
Sounds like a task at which TStringBuilder should excel, but one should never assume, and always measure.
You may all know about String concatenation in Delphi, but do you know about the implicit String variables the compiler may create for you?
Along with the implicit variables come implicit exception frames, and a whole lot of hidden stack juggling, which can quickly become hidden complexity bottlenecks.
Chrome for Android 31 (currently in the beta channel) added the ability to add a web application to the home screen, which iOS fans will notice it had been available for years on their fruity phones.
Upgrading a SmartMS application to allow installing on the Android Home Screen is very straightforward.
(more…)
As noted in a recent post, Unicode is not so straightforward. Namely claims of utf-16 being simpler than utf-8, or that you do not have to care about Unicode complexities.
Maybe that was the case ten years ago, but The Unicode jungle is much closer to home these days.
Here are a few dangers lurking in the not-so-dark shadows.
(more…)
Work and processing classes are typically short-lived, created to perform one form of processing or another then freed. They can be simple collections, handle I/O of one kind of another, perform computations, pattern matching, etc.
When they’re used for simple workloads, their short-lived temporary nature can sometimes become a performance problem.
(more…)
In DWScript WebServer in the metered cloud, I mentioned setting up a light weight Windows 2008 r2 Virtual Private Server to serve as web server host.
A parallel series of articles deals with the DWScript Web Server itself, and this is a mini-series about setting up Windows 2008 with minimal memory, CPU, storage and vulnerability surface.
Implementing an efficient worker thread pool in Windows can be achieved through the use of IOCP, which is the barbaric acronym for (just as barbaric) Input/Output Completion Port API introduced by Microsoft a while ago.
To make use of IOCP, one has to deal with further barbaric API functions, but the principles are (somewhat) more civilized, and the implementation is quite straightforward.
A pre-compiled server executable is available from google code (1008 kB), built from current trunk version.
edit 2013-08-30: the zip has now been replaced by a proper installer
Below is a quick start guide to playing with that server, I hope to later find time for more complete guide up to setting up a complete “production server”.