Home » Archive by category "Uncategorized" (Page 3)

This gallery contains 1 photos.

Dew drops orderly formed, thawing in the spring sun… (I took this photo back in 2010 I believe…)

Would-be employers ask for candidates’ FB passwords

On the scale of Ridiculous, this one ranks pretty high… The Guardian reports that some would-be and current employers (in the US and UK certainly, elsewhere I am not sure) are asking for the login name and password of candidates and employees… Clearly this is not on.

In a further step, in the US state college athletes have been required to grant their coaches not only access, but full control over their social media accounts. The state of Maryland is introducing legislation to end this practice.

On one hand, it is good that investigations on this practice are being called for, but we should be appalled that it should be necessary in the first place, that there be any doubt that asking not only for access, but actual control of someone’s identity, be at all acceptable.

There is no reason, whatsoever, to give your login details to a third party. To ask for this is insulting and pernicious; if you acquiesce you may as well also give them the keys to your apartment.


In the mean time, legal definitions and boundaries pending, I would like to outline the course of action I believe to be the most suitable to counter this trend.

First off, the first rule of data protection is: trust NOBODY, not even people you trust. Then evaluate whether making an exception to the rule is warranted for what you stand to gain.

Secondly, should a person from ANY organization, no matter what they claim to do or how valid they say their claim is, ask for one of your passwords, DO NOT GIVE IT TO THEM. The only reasonable exception being the police, if a criminal investigation requires it. Pray you never end up in that situation.

Insidious Employers

Should a prospective employer ask to log in to any account of yours, leave the interview immediately. You stand more to lose by handing over control of your identity than not getting that specific job. If they can be that invasive from the start, you do not want them to have authority over you.

Email the company’s HR department, CEO or VP as soon as possible, with the exact phrasing of the request made to you and the name of the interviewer. Any sane person in HR will recognize that this was out of order and look into it; executives have a brand to protect.

If however they decide to defend the request, get that in writing, and forward it to the most appropriate channel. Until we have clarity on the legal front, the most appropriate person would be your local government representative – MP, Senator, etc.

If nothing gets done there, advise them you will be writing to a news organization (TV, local/national paper, radio – whichever you want). That will give them incentive to act – and if they still don’t, then do write to a place that will give your views visibility. Chances are you won’t be the only one at this point.

Complex URLs and Punycode

☃.net !!

I just discovered Punycode addressing. My goodness. If you come accross a URL that has an odd symbol, or foreign characters, in it, then it’s a Punycode-encoded URL.

Example: http://xn—n3h.net/ is exactly equal to: http://☃.net/ in terms of web-addresses.

What happened? And how do we make our own??

When you ask your browser to go to ☃.net, it takes the “☃” and “net” parts and analyzes them…

“☃” has a special character in it, so it figures out its Punycode – which is “xn—n3h”. “net” has no special characters, so it remains the same.

The browser can then ask for “xn—n3h.net” and you get shown a snowman.

But here’s the cool bit: you can do this with any name that becomes part of the domain name! ( “http://” + domain.name + “/whatever/else” )

So for instance:

  • There’s this person: http://❤.tumblr.com/ (which is xn—qei)
  • Then there’s this person: http://☠.deviantart.com/ (which is xn—h4h)
  • Even this one: http://☺.blogspot.com/ (which is xn—74h)

(technical note: since Tumblr does not return its pages with the <meta charset=“utf-8” /> tag, UTF-8 URLs become invalid. On most sites, it is thus better to leave the funky URLs to be copied most of the time. Facebook does return the correct <meta> header though.)

But this would not work on something like say, Flickr or Facebook, whose usernames are not part of the domain name.

So how to use them for yourself?

  1. Check the Unicode Wikipedia page for Miscellaneous symbols (or any other symbols for that matter!)
  2. Copy one of them. For example, ◒ (“circle with lower black half”) would be suitable for a Pokémon fan…
  3. Just got to a site that has username subdomains using your web browser: “◒.deviantart.com” for example (I did this with Firefox FYI)
  4. In the above case, deviantArt tells me the user can’t be found. But if you look at the address bar, you will see ◒ has been changed to “xn—81h” which is its Punycode
  5. If you register the name “xn—81h” at deviantArt.com, and afterwards paste “◒.deviantart.com” all over the net – the page will be found and you’ll be the envy of many a Pokémon fan…!

I am tempted to register http://.com/ (xn—fxw) – which uses 泰, my Chinese name…

Or http://ಠ_ಠ.net/ (xn—_-ncfb) the Look of Disapproval (ಠ_ಠ) emoticon… But you can’t use “_” in some user names, so maybe just settle for “ಠೃಠ”

So much fun… xn—74h!


  • Funny: Zoom! Enhance! State-of-the-art software!
  • Ridiculous: Take the combination of algorithms to the next level!
  • Cringe-King: Have you got an image enhancer that can bitmap?

This type of geek moan is probably over-repeated and done to the death, and yet it keeps on being used in Sci-Fi… I guess it really is a worthy dream to hope that a blurred image, without any extra data, could be “un-blurred” to reveal fine detail. Alas, that’s not how it works.

To illustrate the above “enhancement” by analogy, it’s like telling the computer: here’s the number {15}; what combination of other numbers could I do complicated math on to get that number? Answer: (an infinite combination)

The reality is that if you zoom in on pixels, you just get bigger pixels.

Some may point out that new Lytro cameras can enhance the blurry sections. Unfortunately, wrong. A Lytro capture is not in itself an image, but a capture of the state of the light at the source (light field if you prefer), rather than the state of the projection of the light onto a plane (compare geometric projection). It’s not enhancing blurred sections of the image, it’s blurring details that it already has of the image.

A more visual example would be to imagine a pyramid and a cube. Both can project a shadow with a square shape – but if you only saw the shadows, would you know which one was which? Detail has been lost. A bitmap image then is like a shadow, fixed in its way; whereas a Lytro capture would be the 3D object, from which different shadows can be made.

Maybe if we had multiple Lytro cameras at various angles in the room, the captures could be combined to do that rotating effect the video is showing… Maybe, when the price of a terabyte of memory reaches a handful of cents. Inflation notwithstanding.

I can only imagine the guys in the graphics & special effects teams for each of these films were thinking… 🙂

An example of bad use of XML #rant

XML – the eXtended Markup Language – was designed with the express intent to be able to organize data into closely-associated structures, and to easily access this structured data.

Used in the right way and in the proper contexts (some purposes really only need INI), XML can be a very versatile and powerful tool both as a data structuring language and as a protocol carrier.

The Document Object Model (DOM) specification provides an API for manipulating XML documents loaded for parsing, and implementations for nearly every language have been implemented.

So you may yet understand why when I came across the following snippet, I was horrified…

<key>Track ID</key><integer>1548</integer>
<key>Artist</key><string>Chris Vrenna</string>
<key>Composer</key><string>Chris Vrenna</string>
<key>Album</key><string>American McGee’s Alice</string>
<!— skipped some ….. —>

I extracted the above from my iTunes Music Library.xml file when I was looking into parsing it for a duplicates-finding and removing script. As you can see, each piece of data relies on its positional relation relative to another piece, rather than their structural relation. XML was MADE for this structuring, to make parsing it easier. Using positional relations becomes not just bad practice, but stupidity. I’m sorry, but it does.

Examine what happens when the above becomes structured the way XML is supposed to be used (note, the following is just one way of doing it right):

<track id=”key1548”>
<tid type=”integer”>1548</tid>
<Name type=”string”>Track04</Name>
<Artist type=”string”>Chris Vrenna</Artist>
<Composer type=”string”>Chris Vrenna</Composer>
<Album type=”string”>American McGee’s Alice</Album>
<!— skipped some ….. —>

At least two advantages arise from using the correct form:

1) Now we can use the DOM Level 1 method getElementById on each track.

var track = ituneslib.getElementById(“1548”);

Accessing it previously would have required iterating through the nodes sequentially until reaching the ID, and then accessing the next node to get the actual track data. This is the required code to access the data in the badly structured version:

var track;
for(key in ituneslib.getElementsByTagName(“key”)) {
if(key.firstChild.nodeValue == “1548”) {
track = key.nextSibling;

DOM parsers come with the search methods built in. Might as well use them!

2) each child node is named so that it can be accessed directly. Changeable properties of the node are now a “type” attribute, the value is the direct child.

var name = track.getElementsByTagName(“Name”)[0].nodeValue;
var artist = track.getElementsByTagName(“Artist”)[0].nodeValue;

Accessing it previously would have meant iterating over each “key” node until one with a child value of the right content was found; then accessing the next node (of changeable name) before accessing the value we want.

var name;
var artist;
for(key in track.childNodes) {
if(key.firstChild.nodeValue == “Name”) {
name = key.nextSibling.nodeValue;
} else if(key.nextSibling.nodeValue == “Artist”) {
artist = key.nextSibling.nodeValue;

I can only fathom that the reasons iTunes uses this sloppy structure are that

  • the entire Library gets loaded anyway when iTunes starts up into an in-memory database, so that the appropriate sorting can happen during the use of the application. It’s a one-time parse during the life of the process.
  • Apple do not want anyone else parsing their data. So they make it really annoying.

I still can’t believe the structure, as it is, is even documented in a DTD…!

I’m not sure if it would even be possible to write an XSLT to turn the bad XML into good XML…!

“Social Media Explained”

A recent meme

“I’m sorry, but as you do not have a Twitter account, we can’t offer you this position.” This is what, my friend confided to me today, she was told at an interview for a job in media a few months back. At first I was surprised at such a requirement, but then again, if you want to be in media, I guess you do need to get your hands dirty every once in a while… But I was thinking, “what on earth would she have tweeted about?”

Not everyone needs to actively use all the mainstream services, but I must suppose it helps at least reserving your name on them – if only to keep your identity clean. There are some that will be used more than others, and recently, in ensuring the “cleanliness” of my online identity, I was confronted with logging in to many old accounts and checking what had been going on… Why did I have so many? Are they at all relevant to me now? What are they FOR? (and can I find kittens there??)

1) Identity

Examples: Facebook, LinkedIn, Google+

Reason to join: for any profile that has your name, other people will think it actually is you. Keep one aside that is indeed.

I believe most people know by now what each of these sites are. You can’t get away from them. If you don’t have an account, you’ve at least heard of them in the press.

These socnets are purposed to be your online “You”, the one that represents who you are, that connects you with those people you actually know, where your interests are laid bare and where, more often than not (and for G+ as a requirement) you use your Real Name.

I’d advise anyone looking to go into media to have an account on each of these. Even if you never use it. Just claim the space. Before someone else does.

Photos of Kittens: Not too many, unless they belong to your friends. A recent explosion of memes on Facebook is seeing them creeping in now though…

2) Sharing

Examples: Twitter, Pinterest

Reason to join: if you want to keep an eye on trends and “interestingness” in your area of interest, you could do worse than get the feed from the many who share those interests.

These are the “hey world, this is the interesting stuff!” sites. There are probably more of the same, but these are, it seems, the main players.

I’ll note that they are markedly different in purpose however, in that Pinterest is centred around sharing around full online content, whereas Twitter is aimed at sharing snippets and bites – which, with being accessible through SMS, is how it has been so popular in the mass-organization of protests, demonstrations… and parties.

Photos of Kittens: probably plenty on Pinterest, filed under “kittens”

3) Blog

WordPress, Tumblr, LiveJournal, Blogger, Blogspot, any website that has a “recent news [about us]” section…

Reason to join: if you enjoy writing, voicing opinions, and providing analysis, or simply entertaining, a good blog will let you build something to show for. If you’re just going to read – then just read 🙂

If you have not heard the term “blogging,” you’ve been living under a rock. The things are everywhere. You’re reading one right now.

The purpose, purportedly, of a formal blog is to provide news article-like postings for the general public to read – and sometimes even comment on. The BBC and CNN have blog sections; Apple, Adobe and Microsoft too; smaller companies around the world keep their latest news there… There are professional bloggers such as Cory Doctorow, an advocate of the Free (libre) Internet, Stephen Fry of television fame, Gary Marshall, a satirical technology writer…

… and then there the denizens. People who try to emulate the Great Bloggers by writing hopefully meaningful stuff. People who post pointed – and no so pointed – opinions online to be seen by few. People who post about events in their lives for friends and family. People who vent their spleen. People who just talk about their breakfast…

The blog is the vehicle of the in-depth analysis, the nattering mundanities, the lengthy diatribes. It is the preferred method of long texts.

Photos of Kittens: Probably on Tumblr, thanks to the “reblog” functionality. You may need to hunt a bit more on the others.

4) Pictures

Flickr, Instagram, deviantART, Picasa, Photobucket

Reason to join: if ever you want/need to share those holiday pics with friends and family, you’ll already have a space.

It seems like nearly everyone is taking photos now, and there needs to be a space to file them. For public and for private consumption. For the most part, the aim is not only to store photos, but to share them, to gain visibility.

Aside from the casual users who make up the bulk of Picasa, Flickr, Instagr.am and Photobucket, there some sites catering to more serious endeavours such as SmugMug.

And again, in all places, there are the denizens. You can find them in all places. But there are sites where the divide between the best contributors and the worst is eminently palpable. deviantART is one. But nearly anyone who wants their work seen by a wide audience has to foray into that murky place…

Always remember to enable Safe Mode on dA – or only look at the “popular” items if not. Both the crafts and the photography sections are littered with “artistic” nudes of… things.

Photos of Kittens: dA will try to claim having the cutest in the galaxy!

5) Multimedia

Examples: ReverbNation, Spotify, Last.fm, MySpace, YouTube, Vimeo

Reason to join: for content creators, to display content. For content consumers: to make playlists.

Some people create, most people consume. Under the multimedia banner there are two fairly distinct groups divided that way.

For original content creators, ReverbNation (music), MySpace (music) and Vimeo (video) are fertile grounds, and consumers looking for new obscure stuff to blow their minds should definitely go there.

Mainstream content consumers, on the other hand, are best served by Spotify (music), Last.fm (music) and YouTube (video). The latter is also a content creators’ platform – but I list it under consumers because, lets face it: nearly all the content there are mashups of other peoples’ content. Should a Vimeo video gain traction, it will probably find its way to YouTube. Think of it as “incubation” and “public release.”

Having an account on the first trio: good idea if you create original content. On the second trio? Not really necessary.

Videos of Kittens: not too many. Apart from Nyan Cat.

Animated Kitten Backgrounds: dammit, MySpace!

Sounds of Kittens: now there’s a thought for a new meme…

Which ones do I need?

For the regular person, I think the only thing needed is an email address with a good password. It’s a key to accessing any other site out there. It’s also your main vocal chord in the digital world when all else fails.

When travelling, it’s probably not a bad idea to have a Twitter with protected tweets (only people you approve can see what you post, get your nearest and dearst to keep an eye out for you), so that you can update it in the most circumstances possible and as necessary.

For people who enjoy writing, I cannot insist more: get a blog. Having something to point to can always come in handy should you need to showcase easily. Then, if you really are of the pen-and-paper persuasion… Know that Google will not find you.

Original Content Creators: I’d recommend Vimeo. There is a strong community, and I have mostly seen very good work on there. Know however that it’s a top notch crowd, so if you’re unsure, stick to YouTubing.

Companies: the first two are pretty much essential as these are the places people will virally share the most. You can cut costs by hosting videos on YouTube, you can share videos and blog posts/news articles through status updates and tweets (same thing, really) and use Tumblr re-blogging to spread marketing material. If the message is desireable, the people will share it.

Anything else… Ask yourself: how much time do you want to waste spend with the kittens?

This gallery contains 1 photos.

An example of a rule of thirds composition using nearly all the lines… This one was taken in Barbados, January 2012.

This gallery contains 1 photos.

This is me. Just so that I have a self portrait on this stream.

I do not own this music or video, all rights belong to [OTHER]

It always baffles me when people put these kinds of remarks on their videos. It makes me wonder if anyone even understands the idea of copyright? Early indications point at: no.

A good part of the YouTube “pirating” that is going on is kids (and probably grown-ups too) who simply just don’t know better… It’s a Hanlon’s Razor: Never attribute to malice that which can be adequately explained by stupidity

Either don’t say it, or don’t post it.

This gallery contains 1 photos.

Add matcha tea powder to your recipes to turn food green….