perspective Technology

Phishing Is Fraud

Words are powerful, no argument there. Words shape what we see (not just what we look at) and words shape our understanding of the world around us. Some words have been beautifully chosen while others remain questionably in existence only to serve confusion and engender ambiguity. Once such example is the word “hacker”.

In days of old, ok, not that old, a hacker was someone who lived, eat and breathed binary. They were the geeks of the day and relished their 10000 hours on the computer with zeal. They were not necessarily deviant or trying to overthrow governments, banks or universities. They just (mostly) coded. And then somewhere between 1980 and 2000, the meaning of the word changed and now a hacker is largely understood to be a “bad” person. And I use the term “bad” loosely because one man’s terrorist is another man’s freedom fighter. Heck, these days, just participating in a DDoS (even unknowingly- ha!) can get you labelled a “hacker”. Oooo…

Phishing is another one. I have trouble with the word phishing. Just coming up with the term and calling ‘it’ by something else robs the essence of what ‘it’ is. Let’s face it, phishing is fraud- on so many levels.

If someone knocked on your door, dressed as a policeman, claiming to be a policeman, flashed a policeman badge and requested to enter your house on the premise of official police business (but he wasn’t a policeman)- he would be arrested, tried, found guilty and sent to jail for doing only that. He wouldn’t even need to enter your house to make new chums in the block. He just needs to pretend to be someone he’s not in order to gain something that’s not his. He’s a conman. A fraud. A liar. A cheat. A decepticon.

Do this online (or via text) and you’re only phishing. Happily, justice departments see through the thin veil that the word phishing tries to hide. They apply existing criminal codes which match the behaviour of the phishing agent(s) and go to trial based on that but we tend to be blasé about the word despite very real consequences. Only when there’s a consequence do we upgrade our language and start calling it for what it is: fraud.

Hopefully, with time, the word phishing will convey a stronger sense of immorality. That way, when we are confronted with phishing emails, sms, phone calls, we take them a little more seriously. Not just, “Oh. Spam. Delete”. If some “policeman” was walking around your neighbourhood knocking on everybody’s door, asking to come in, would you just: “Oh. Fake. Close door.” and carry on as you were? Or would you: “Uh-oh. Call the real cops. There’s a phony on the prowl”?

Continuing with cliche abuse, evil reigns when good men do nothing. With Data Protection Day coming up (28 January 2010), think for a moment about your contribution to the battle against fraud.


Right-Align Text On BlackBerry BasicEditField

It would seem a simple thing to do, no? In fact, positioning/aligning text has become such an abundant demand over the last few years, that the ability to do so in most environments is fairly trivial. And if you’re working predominantly in the web field, it’s a no-brainer. The native Java components for BlackBerry are a little different however.

An exhaustive search on RIMs support forums and in general, “the internet” reveals many a frustrated developer struggling with the right-alignment of text within a field. I’m emphasizing that since there’s also a lot of confusion with right-aligning the field itself; an entirely different and altogether more straightforward task.

The gritty: you need to handle drawing the text yourself.
The algorithm:
* blank out the field entirely (i.e. fill the background with white paint)
* drawText() in your label at 0, 0
* drawText() in your text with DrawStyle.RIGHT
* fillRect() a cursor at the right hand side of the input field

The catch:
maintain a local copy of the text value of the field

The bonus:
Along the way I started stumbling across other ideas for highlighting the input field and making it a little more catchy for the user.

Here’s a screenshot of my custom input field with the focus.

Right Aligned Input Field
Right Aligned vs Default

You’ll notice the default field below it (R120) is the BlackBerry standard BasicEditField. The R1234 field is my custom field, with highlighted background, slightly pronounced text and right-aligned with a dark cursor on the right edge.

Kudos, references and inspiration drawn from: