Heisenbug

Posted on May 31st, 2008 in Castalia, Delphi | No Comments »

On the list of things that make me crazy: When you’re debugging code, and can’t seem to figure out the cause of a problem.  So, you write in some test code to help find the error, and somehow the test code makes the error go away.

I may now be looking at a true Heisenbug.

Attention Delphi Webmasters

Posted on May 22nd, 2008 in Business, Delphi | 2 Comments »

If you run a website, be it a blog, informational site, or something else, this is for you.  If not, feel free to skip.

The last few weeks I’ve been head-down with a partner starting a new business: The Wingspan Advertising Network. Wingspan is a new genre-specific advertising network that helps put brands together with people who are interested in their products.  Today, we’re beginning signups for beta testing, and we’re beta testing with a Delphi advertising network.

In a nutshell, we want you to sign up with us and host advertisements that we’ll provide.

And we want to pay you to do it.

Here’s how it works (directly from the wingspan website):

Each month, a portion of the advertising fees paid by advertisers is placed in “the pot.” At the end of the month, we review the number of impressions (views) and clickthroughs generated by your website, and determine what percentage of all the impressions and clickthroughs for your network is represented by you. You then receive a proportionate part of the pot.

For example, if the pot for your network this month is $5000, and you generate 10% of the impressions and clickthroughs for the month, you will receive 10% of $5000, or $500. Both ad impressions and clickthroughs are counted, so as long as people are looking at your website, you are sure to generate revenue through Wingspan.

Wingspan is currently invitation-only, but if you’re a webmaster who’s running a website about Delphi (the programming language), then you’re invited.

To sign up, head over to http://adserver.wingspanadnet.com/signup/invitation?invite=1 and follow the directions.

There is more information at http://www.wingspanadnet.com.

Backscatter

Posted on April 30th, 2008 in Business, TwoDesk | 3 Comments »

The spam problem has officially gotten out of control.

We all know that there are programs out there that mine email addresses from the web.  We also know that when you get spam, the “reply-to” address is never valid - it’s just someone else’s address being “spoofed” in the mail headers.

Well, this morning the public TwoDesk contact address became someone’s spoof, and now we’re getting thousands of “Message Undeliverable” and other such messages.  This is called “Backscatter,” and it’s VERY annoying.  We’re going to see if it subsides in a day or two, and if it doesn’t, we’ll have to turn that address off and come up with a “cleaner” way of dealing with public contacts.

In the meantime, we’re just trying to stay on top of it and create some rules to get rid of the majority of the backscatter messages.  Of course, it’s possible that a rule may catch something you send us, so if you send us an email and don’t get a response within 24 hours, assume you got caught in the backscatter and try again.

I’d also be interested in people’s suggestions on how to deal with backscatter, or spam in general.

Released: Castalia 2008.2

Posted on April 29th, 2008 in Castalia, Delphi, TwoDesk | No Comments »

Castalia 2008.2 is now available.  Current subscribers can download it from the customer service web site at http://subscribe.twodesk.com.  A 30-day free trial is available for everyone else at http://www.twodesk.com/castalia

New in this version

  • Editor Splitter - Adds a secondary read-only source view that can be split from the editor, so you can view two locations in the same file, or two different files at the same time in a single window

Enhanced features

  • Modeless text search handles high-order ASCII characters (like umlauts) in the Delphi 2005 and later IDEs
  • Modeless text search can be properly enabled and disabled
  • Error correction hints show the line number of the error to be corrected

Fixed Bugs

  • Code templates stored in a location that is incompatible with Vista UAC
  • Advanced syntax highlighting draws in the gutter when the editor is scrolled horizontally
  • F3 doesn’t quite work right with the embedded modeless text search
  • Navigation toolbar can become too wide for the editor under some circumstances
  • Ctrl+C, Ctrl+X, Ctrl+V don’t work in the embedded text search toolbar
  • Embedded text search toolbar becomes unresponsive after switching units

About Castalia

Castalia transforms the Delphi IDE into an amazing development platform.  Castalia lives on the bleeding edge of IDE technology, giving you cutting edge tools to write better code faster, understand code more accurately, and improve code you’ve already written.

Castalia is available at http://www.twodesk.com/castalia

Getting ready for Castalia 2008.2

Posted on April 28th, 2008 in Castalia, Delphi, TwoDesk | No Comments »

Castalia 2008.2 is coming very soon.  If you’re using Windows Vista, and have not disabled UAC, you’ve probably seen a little problem with Castalia trying to write to the Program Files folder.  Castalia 2008.2 will fix this, but if you’ve got custom code templates, you’ll need to do a little bit of plumbing to keep them:

Open RegEdit, and navigate to the HKEY_CURRENT_USER\Software\TwoDesk\Castalia key.  You’ll find a value there called “StorageDir.”  It will tell you a folder.  In that folder, you’ll find a file called castalia.templates.

Copy this file to a location you’ll remember, then delete the StorageDir value from the registry. (Right-click on “StorageDir” and choose “Delete”).  When you start Delphi with Castalia 2008.2, the value will be recreated with a Vista-Friendly file location.  Close Delphi and copy the castalia.templates file you saved earlier into the new directory.  Restart Delphi and you’ll have all your custom templates back, with no more Vista problems.

Castalia 2008.2 Sneak Peek

Posted on April 23rd, 2008 in Castalia, Delphi, TwoDesk | No Comments »

Here’s a sneak peek at Castalia 2008.2, which is just around the corner:

Castalia Split Editor Preview

That image is probably going to wreak havoc on this site’s layout…

Castalia 2008.2 will include an editor splitter - allowing you to view two locations in the same file at once, or even two different files. The secondary view is read-only, but is fully scrollablle and clipboard-enabled.

The return of the Delphi Puzzles

Posted on April 7th, 2008 in Delphi | No Comments »

The Delphi Puzzles are back!

Installing Castalia for a non-administrator user

Posted on April 3rd, 2008 in Castalia, Delphi, TwoDesk | 2 Comments »

If you’re using Delphi as a non-administrative user on Vista, installing Castalia can be a bit of a pain, because the installer does require administrative rights (because it writes files to Program Files, which is where Vista wants the files to be.

Delphi, on the other hand, loads its settings (including which plugins to load up) from the HKEY_CURRENT_USER registry key, so that’s where Castalia inserts itself.  Of course, when you switch users and open Delphi, it doesn’t read the Administrator’s HKCU, so you’ll have Delphi without Castalia for any other user.

Enabling Castalia for a non-administrative account is pretty simple though.  Off the top of my head, here are steps:

  1. Install Castalia as administrator
  2. Open regedit, and find the appropriate registry key for your version of Delphi (seethe list at the end of this post
  3. Choose file | export and export this key to a file on the hard drive that is accessible to both the administrator and the non-admin user that you are installing Castalia for.
  4. Open the file in notepad, and delete every line that starts with $(DELPHI) or $(BDS).  You should be left with the lines identifying the key, and the lines describing Castalia
  5. Save the file
  6. Switch to the non-admin user, close Delphi if it’s open, and find the file you just created.  Double-click it to import it into the user’s registry.
  7. Start Delphi.  Castalia should install itself and you’re done!

Which registry key to export:

  • Delphi 5: HKCU\Software\Borland\Delphi\5.0\Known IDE Packages
  • Delphi 6: HKCU\Software\Borland\Delphi\6.0\Known IDE Packages
  • Delphi 7: HKCU\Software\Borland\Delphi\7.0\Known IDE Packages
  • Delphi 2005: HKCU\Software\Borland\BDS\3.0\Known IDE Packages
  • Delphi 2006: HKCU\Software\Borland\BDS\4.0\Known IDE Packages
  • Delphi 2007: HKCU\Software\Borland\BDS\5.0\Known IDE Packages

As always, messing with the registry can cause damage to the system if you make a mistake.  Do it at your own risk, your mileage may vary, etc….

R.I.P Arthur C. Clarke

Posted on March 19th, 2008 in Random | 2 Comments »

Science fiction author Arthur C. Clarke died today. It’s a good day to remember one of his most famous quotes:

“Any sufficiently advanced technology is indistinguishable from magic.”

Castalia 2008.1.1 Now available

Posted on February 29th, 2008 in Castalia, Delphi | No Comments »

Castalia 2008.1.1 is a critical bugfix release for Castalia 2008.1

The following issues are fixed:

  • Castalia incorrectly steals the Ctrl+1 shortcut key
  • Castalia may crash Delphi 5-7 when changing projects
  • Castalia may crash Delphi 5-7 when exiting

This release is available to all current subscribers at http://subscribe.twodesk.com.