Stock Spam

It would be kind of interesting for someone to see what happened (or rather, the magnitude of the losses incurred) if you bought $1000 of every stock which you received a stock spam about, and held on to it for 1 month. Would you make money out of any of them at all? Or would every single one be a loser?

Of course, you would do this using the web and a bit of paper, not with real money :-) If anyone wants to try it, I have a multi-hundred-megabyte file of spam they could use…

Mugs Wanted

One important component of phishing scams are “mules” – people who accept transfers from hijacked accounts and export the money abroad, either by further bank transfers or by going to the ATM and then slipping wads of cash into brown envelopes. Such people are often recruited by spam or websites offering job opportunities – “Work From Home”, “A Few Hours A Week”, “Lucrative Rewards”, “Financial Managers Wanted” etc.

I recently received an email in this vein:

Hello! I am Simon Nicolas, a general manager of international company IFSD Inc. (http://www.ifsd-company.com) and I have a favorable offer for you.

Now it is a little about our company. We are engaged the organization of plans of reception of payments for private persons and the companies. Our services are demanded by those who has requirement to accept remittances from clients in other countries.

Our company conducts wide international activity; we work with the organizations and private persons from the various countries worldwide. Our activity constantly extends, we enter new services, we expand staff of employees we open representations of the company in the territory of the various countries.

In connection with constant expansion of our international activity we feel necessity of new employees in the territories of the various countries. Now we have announced a set of employees on a post “the Regional Financial Manager”.

Working on this post, our colleagues produce work with the bank transfers and the checks. Our clients are private persons and the companies of the different countries and for simplification of remittances we use our Regional Financial managers.

The functions of the Regional Financial Manager:
– reception of bank payments on a bank account
– transfer of money resources to our representatives in other countries

The scheme of work is those: the Regional Financial Manager receives money resources and informs us on this. We in turn at once enroll the necessary sum on the account of our client. It allows you to save a lot of time – now the client does not need to wait for reception of money from abroad. As such scheme allows you to save money. From the sum of each transaction lead through you our company pays 5 %.

The basic requirements:
– age of 21-60 years
– access to the Internet, e-mail
– opportunity to work not less than 3 hours per day

It is your really favorably chance to earn!
Start to work right now! For the beginning with us you need to fill works only labour agreement

—
Best regards,
Simon Nicolas.

http://www.ifsd-company.com

However, what amazed me most was the quality of the website. It’s a very slick Flash-based number. I would almost think this was a real international organisation, if the slightly dodgy English and over-vagueness didn’t give it away. And despite saying their main office is in Miami (and even giving phone numbers, which are probably redirected or VoIP or somesuch), the WHOIS info for the domain has it registered with a Fastmail email address to a PO Box in Amsterdam. Phishers get more slick every day.

Their employee login (“Account” link, top right) has a “register” option! If anyone wants to register, have a poke around and let us know what they find, that might be quite interesting :-)

We’re Hiring

The company I work for when I’m not working for the Mozilla Foundation, Data Connection, is looking to hire four to six software developers (either new graduates, or people with existing experience) at their offices in Enfield, North London, where I work.

I can’t promise you would get to work on or with Free software, but you would get to work with smart people for a company who are very good to their employees, and have a great culture of technical excellence. The fact that they are such a good company to work for is one of the reasons I’m currently attempting to do two jobs at once. ;-) You don’t have to be a graduate in a numerate discipline – we already have classicists, linguists and others.

If you are interested, you can find out more and perhaps apply online. Please say that I sent you :-)

If you’re not a UK citizen, that’s not necessarily a showstopper, but this post is aimed mostly at UK residents.

Calling schlund.de

If you work, or someone you know works for the system administration team at the ISP schlund.de, who I believe are part of 1 & 1, please can you get in touch? I have a question about the SSL configuration on sites they host, and I can’t read German.

Thanks. :-)

EULAs Wanted

I am looking for online copies of the EULAs which came with Microsoft Visual Studio 6, and Microsoft Visual Studio .NET 2003, specifically the parts which deal with redistributing bits of it such as the C runtimes (MSVC6.dll, MSVC70.dll etc.). I can find several things on the web which might be it, but I can’t be certain. Therefore, someone who owns a copy of Visual Studio needs to do the search and to confirm that the paper or electronic copy they got with it matches the URL they are giving to me :-)

If anyone has a copy of either of these two bits of software, I’d be very grateful if they’d do some Googling and try and find a match.

Update: if someone could also give me or point me to a definitive list of all recent and known future MS Visual Studio/C++ versions, with all their possible names and version numbers, that would also be very helpful.

Cargo Cult Software Engineering

Today, a classic for your reading pleasure: “Cargo Cult Software Engineering” by Steve McConnell.

Cargo cult software engineering is easy to identify. Cargo cult software engineers justify their practices by saying, “We’ve always done it this way in the past,” or “our company standards require us to do it this way” – even when those ways make no sense. They refuse to acknowledge the tradeoffs involved in either process-oriented or commitment-oriented development. Both have strengths and weaknesses. When presented with more effective, new practices, cargo cult software engineers prefer to stay in their wooden huts of familiar, comfortable and-not-necessarily-effective work habits. “Doing the same thing again and again and expecting different results is a sign of insanity,” the old saying goes. It’s also a sign of cargo cult software engineering.

XHTML 1.0 Compatibility Guidelines

The XHTML 1.0 standard has a non-normative appendix of Compatibility Guidelines – ways to code your XHTML to make it render reasonably well in HTML user agents. Of course, being the browser-neutral standards body that they are, the document doesn’t say exactly which browsers require which compatibility workarounds.

It would be rather cool if someone were to knock up a test page which used each of the possibly-problematic constructs (e.g. <br/> without the space, checked=”checked”, line breaks in attributes) and then made a matrix from the results people sent in when they pointed different browsers at it. This would give web developers some idea of which of the requirements were only for the benefit of long-dead browsers like, er, Netscape 4.

Any volunteers? :-)

Curvy Corners

MSDN has a new article on doing rounded corners in IE (via IEBlog). None of the solutions they suggest really separates content and presentation well – they all involve extra markup of one sort or another. It’s amusing that they criticise the four-divs-and-CSS solution as being “difficult to read”, having just suggested a table-based solution which is a lot more markup-heavy.

My current favourite method is the Nifty Corners JavaScript library. (Note that the version I link to is free software; later versions are not.) After all, if JS is turned off, you just get square corners. No big deal.

I also note with interest the following quote from the article:

So, you’re staring at your Web site. It all looks very boxy, and you’re thinking that it would be nice if you could add some rounded corners. Perhaps you’re tired of waiting for the W3C to release the CSS3 Recommendations, which will include specifications for rounded corners, and – even better – several border properties. The good news is that you don’t have to wait any longer…

I am glad that Microsoft is committed to supporting CSS3 as soon as it is released, as it’s clear from this quote that the unfinished nature of the spec is the only thing holding them back.

CSS Distress

I’m a big fan of CSS, and CSS positioning. I’ve always heard and believed the mantra “Use CSS for positioning; use tables only for tabular data”. It seemed wise to my young and innocent ears. However, I’ve recently been having some doubts, brought on by considering a common layout case.

Here’s my scenario. I want to have a series of labelled widgets, e.g. for a “Preferences” page. Quick ASCII art diagram:

Foo:          [ Freeform Text   ]
Bar Setting:  [ Sometimes Bar |V]
Baz?          ( ) Yes, Baz
(.) No, don't Baz
Quux:         [X]

(No, you don’t need to point out the number of UI design principles broken in this diagram. It’s an example.)

Doing this with CSS would involve something like two divs, one for the left side and one for the right, either floated or absolutely positioned, and a lot of messing about with vertical margins and padding trying to get the widgets to line up exactly with their descriptions at various font sizes. And, even if I managed it, is it the right thing to do? Would a screen reader read all the descriptions and then all the widgets?

Should I (whisper it) be using tables for this, even though it’s not really tabular data? Or is it?

LugRadio Live

LugRadio is an online UK Linux/free software radio show, which was podcasting before podcasting was cool. They are having their first one-day conference, beer drinking session and live recording event (hopefully not in that order) in Wolverhampton this coming Saturday, called LugRadio Live. I’m speaking on “Phishing: conning the unwary for fun and profit” at 3.05pm in the “Lightning Talks” track.

This is Linux conferencing at the cheap and cheerful end – tickets are only £5. See you there :-)

Controlling JS From CSS

Separation of content and presentation is an important principle of modern web design. It is generally accomplished by styling semantic HTML or XML (content) with CSS (presentation). However, there are some occasions where CSS is unable to provide the presentational effect required, and one is forced to fall back on scripting. Adding curved corners to boxes is one example of something which usually cannot be done cross-browser without extra markup or scripting.

Recently I was thinking about accesskeys, and decided that accesskey underlining, while very desirable, was arguably also presentation – after all, you don’t need the underlining on a printed copy of the document. So putting <u> tags in HTML is a violation of the separation. Also, if your web application is localisable, you don’t want to be scattering <u> tags through your strings file either.

CSS doesn’t provide a facility which would allow me to underline individual letters without adding extra markup, so I wrote a JavaScript library, the Accesskey Underlining Library, to dynamically underline the correct key. Using the principles of unobtrusive JavaScript, all you have to do to use it is include the script in your page. However, there still isn’t a clean separation because there’s no way to turn the script’s effect on or off using CSS.

So (and this is the new bit; thanks for keeping reading), I came up with the idea of using CSS to style the script element itself, and having the script check that styling when deciding whether to run. This allows control of the script’s function from the presentation layer. Styling the script element itself avoids creating a dependency on having any other particular markup in the page, and you can style almost anything you like about it because it’s invisible.

So, the upshot of all that is that if you are using AUL, you can turn the accesskey underlining effect off by putting the following in your print stylesheet:

#accesskeyUnderline {
visibility: hidden;
}

Check out the code.

Video Using Table Background Colours

If any of you have ever idly wondered whether it would be possible to do web page video using a large table with very small cells and messing with the background colours, wonder no longer – it doesn’t work.

Having spent a random 45 minutes messing around with the idea this morning before breakfast, it turns out that my 3GHz Pentium can do about 5000 table cell background colour changes a second in Deer Park alpha 1, which isn’t nearly enough for video of any decent size, frame rate and movement. Our DOM is good, but not that good :-)

If anyone wants my test code, let me know.