Notes on handling identi.ca group spam accounts

As admin for the identi.ca group Friends of W3C, I spent several hours today blocking spam member accounts. Because I could, thanks to the US Thanksgiving holiday which blesses us with a couple quiet days.

A few notes:

  • It isn’t easy a task. It has to be done from the members page, one at a time, by clicking ‘Block’ and confirm the action in the next page. And it’s really boring.
  • Homepage links that contain ‘buy’, ‘cheap’, ‘best’, ‘reviews’, ‘price’ are a sure sign of a spam account. Ah, and ‘forex’ too.
  • Also, ‘deals’ especially when that follows ‘blackfriday’ in the URI. But this is seasonal spamming.
  • Homepage links which end in ‘sitemap.xml’ and ‘sitemap.php’ all turned out to belong to spam accounts.
  • Homepage links which contained ‘sexy’ turned out to be pretty disappointing. I AM KIDDING, I didn’t look.
  • Those which Bio contains ‘SEO’ most often are spam accounts. Same for Bio that contains ‘increase your’. And ‘toys’; you get the idea.
  • Some trends: identifying ‘Thailand’ as location, promotional links around SLR cameras, watches, TVs. Vaccum cleaners too.
  • While most of spam accounts show the default avatar, a small number of them do have an avatar. Most likely, an image depicting landmarks in Thailand. Or Thai masks. Or Thai temples. After a while I got the feeling they were familiar; they use a very limited pool of images. That’s why.
  • I have nothing against Thailand.
  • Is it a coincidence that some spam accounts have a Bio written in Thai? I’m asking.
  • I was fooled. Nickname ‘cutecat’, avatar of the most adorable sleepy kitteh, Bio ‘I like snow and cats’. A couple inconspicuous micro-blog entries and bam! one that points to an obscure promotional website. Dated a year ago. Blocked.
  • I reached the awkward series of those accounts which joined en masse and which homepage links contained NSFW words. They made me miss the SLRs, watches, shoes and TVs links! I looked at none. Honest.
  • There was a ‘JustinBieberPhotos’ account. Didn’t take the bait!

I’ve been at it more then 3 hours and blocked 830 spam member accounts. I have more than twice that number to go over still. I’m done for now. Next time I’ll do it for a half-hour maybe, and I’ll do it once a week. Till we’re rid of our historical spam member accounts.

These days we get a dozen new spam accounts joining that group. I hope the folks at StatusNet would look for patterns and block them as soon as the accounts are created.

First impressions on Mac OS X 10,7 Lion

I upgraded less than a week ago.

I don’t remember how long it took to download because I was working at the same time. Also, the Mac App Store put the download in the dock and only showed a little progress bar and no information such as total size, completed download, estimated time.

When the download was done, it took me 1h10 to install the new system (an installation window appeared, saying installation would take about 33 minutes, which took slightly more than 40, and then a new window appeared, similar to the first one, indicating installation would take about 20 minutes, which took 30).

And then, everything looked the same. The obvious difference was that the scroll bar of some windows appears at launch and disappears, the bar revealed only when the window is scrolled. At the top right corner of some windows, there is the new icon for “full screen”, in case I want my screen real estate consumed by just this one window. Windows are now resize-able by each side and corner (woohoo!). Back in 2004 when I used a mac for the first time I was looking for that feature.

Mission control is the new exposé and virtual screens. It’s nicely done. The layout in exposé view is pretty (that is, every window of every program minified and stacked behind the program’s icon) and useful: the icon of the program in the foreground of each stack, and then the window(s) opened belonging to that program are stacked. If I put the mouse pointer on a window and click space, I remain in the exposé view but the window maximises and the effect is similar to quick look. Active corners remain active. I had set them up for a particular Exposé action, and I keep using them as before.

The biggest change is natural scrolling on the touchpad. They’ve unified scrolling on Apple devices, bringing the iPhone and iPad scrolling to the touchpad. I’m still not used to it! As though my brain is cabled to adapt my scrolling direction based on the device. Anyway. When I want to read down a document, I’ve got to pull it (scroll up), and when I want to read up a document, I’ve got to push it (scroll down). In the systems preferences, one can choose old-skool scrolling.

I didn’t notice any improvement in system memory, cpu and battery consumption; it seems no better and no worse than OS X 10.6.

I gave Mail.app a try for one full day. I set it up with IMAP with the same config I have on my iPhone. It didn’t work for me, I’m too used to Opera mail, which I resumed using the next day.

iCal presented me with one disappointment. I don’t mind their aesthetic choice of faux-leather and torn paper line below the leather pad, I really miss the left panel that showed the calendars and allowed me to display as many months I could fit in that space. This was convenient to quickly check, uncheck, select + refresh given calendars, and the small months view was convenient when planning, next to the main window in which I showed the current week. They added a year view which is pretty (small months featuring my calendar colours and the more stuff I have on a given day, the darker the colour), but doesn’t make up for the loss of the left panel. The calendars I created or I’m subscribed to appear in some popup window when I click “Calendars” at the top left of the iCal window and stays on while I mouse-over, click a cal, refresh, etc, until I click somewhere else.

I almost forgot to install XCode! But I had to because I you run stuff like CVS or make. This took me ages and I even feared it would never complete. The Mac App Store let me download XCode (it used to be, I think, on one of the installation DVDs), put the dl in progress in the dock, and when it was done, I was shown Launchpad. It looks like my iPad welcome screen, with icons of all my apps. I clicked on install XCode, entered my system password and waited, waited. Waited. Something went wrong, it was stuck, I had to force quit the installation, do it again, and wait, wait. I think it took more than a couple hours (by that time, I was busy doing other stuff, like cooking, entertaining guests, eating, so it may have just taken 2 hours).

Some apps like TextEdit have active window bars; if I click on the document title on that bar I see light grey text, for example “ – Edited” and if I mouse over, I see an arrow. Click the arrow to lock the file, duplicate the file, revert to last opened version and browse all versions. It might make some use of a my local CVS moot.

Amaya works fine. Quicksilver too.

That’s all folks.

The mds process was too greedy


Every now and then when my mac is slow, I take a peek in the Activity Monitor, to find out what is the culprit. Today I didn’t find any usual suspect and the only odd bit was the process mds. While it was using barely 10% of the CPU, the memory it used was outrageous. I remember having only 1MB free memory left, and that mds was using 14GB of the virtual memory (this figure stuck, while the real memory one didn’t).

I had learnt that mds is in use for Spotlight indexing. I have no use for Spotlight indexing, because I use other tools or tricks. So I searched for the way to disable Spotlight and did it in the Terminal:

sudo mdutil -a -i off
Password:
/:
 	Indexing disabled.

All of a sudden the process mds jumped from using 14GB of virtual memory to 77MB of virtual memory, whee! And the system memory, of which 1MB was free, reached the comfortable level of 1.7GB, re-whee!

If I ever need Spotlight, the command above is reversed by using “on”.

You’re welcome!

Update of the day after:
It turns out I need that Spotlight indexing after all, if only to search in iCal. <sigh />
mds is on again! until it gets too greedy, that is.

sudo mdutil -a -i on
Password:
/:
 	Indexing enabled.

How to check a CVS repo for integrity


Here’s a funny exchange I just read in one of our IRC work channels. I didn’t ask their permission to blog their little exchange, so I’ve anonymised the nicknames of my colleagues.

2010-10-05T21:00:13Z <joe> Anyone know a convenient way to
 check a CVS repository for integrity?
2010-10-05T21:03:49Z <jane> give it $20 in change for a $10
 and see if it takes the money or returns it?