Saturday, March 03, 2012

Dark Fonts and Colors for light theme in VS 11

Update: The VS 2012 Color Theme editor has a lot more options and subsumes the functionality of this settings file. Check it out!

———————————————

Visual Studio 11 comes in two themes: dark and light. I like how the code looks in the dark theme (since it is easy on the eyes), but I like how the menus and toolbars look in the light theme (the buttons look sufficiently different from each other.)

So if you want to use the colors and fonts of the dark theme with the light theme UI, you would think you could just export out the fonts, change the theme, and import them back in. However, this has the bizarre side effect of causing all the fonts to become bold.

So I went into the theme file and manually changed all the BoldFont="Yes" invocations, and finally I have a theme I like. You can download this settings file if you like, it has only the Fonts and Colors, so it should not mess up any of your other settings.

Download Visual Studio 11 Dark Fonts and colors settings file for the light theme.

Here is a screenshot of the result, thanks for suggesting it, Quaiche of Dragonblight.

Sunday, January 22, 2012

Rhyming Harry Potter kweezz

A long time ago, I had made a Rhyming Harry Potter kweezzz. It was archived on kweezzz.com, but it has since been domain squatted. So I decided to post it here for safekeeping, thanks to archive.org for the data.

Theme: Harry Potter Rhyming Quiz (All questions will rhyme, the answers may or may not)
Date: 16th Oct, 2010
Kweezzz-master: @sushovande

Thursday, June 09, 2011

Don't let Google track your entire browsing history

So Google has recently publicized the "+1" button for websites, which "competes"[1] with the Facebook [Like] button and the Twitter tweet button. This is a much more worrisome phenomenon than we give it credit for.

Notice how the Facebook like button is instantly able to tell you which of your friends have liked that page? That is because Facebook is able to correlate your Facebook login with every page you visit. In order to see if any of your friends have liked that page, Facebook has to correlate the URL to your friend list. So even if you haven't clicked [Like], even if none of your friends have clicked [Like], just to be sure of that fact, Facebook will send the URL and your Facebook login to its servers, building up your entire browsing history.

And now Google has done it. Twitter did it even before Facebook.

I implore you, do not let these corporations track you everywhere you go. This will only end badly. Fortunately there is an easy fix. Add the following URLs to your AdBlock / InPrivate Filtering lists[2]:

http://www.facebook.com/plugins/like.php*

http://platform.twitter.com/widgets.js

https://apis.google.com/js/plusone.js

*s7.addthis.com/static/*

https://plusone.google.com/u/

This does not mean sharing stuff with your friends has to get harder. You can just use any of the share bookmarklets: Here is the one for twitter, and here is the one for facebook. There isn't one for Google +1, because it is not a sharing service at it's core, but there is a bookmarklet for sharing on Google Buzz, if that is your thing.

EDIT: Added iFrame-based URLs for Google +1 and Tweet button. Akshay's comment below discusses some other alternatives too.

EDIT 2: I have made a Tracking Protection List against social network tracking for IE9. Go there for a one-click setup.

[1] They don't really 'compete', per se. Each of them crops up on every website out there.

[2] I am working on getting those URLs, in addition to the LinkedIn, Digg and StumbledUpon share into an AdBlock/InPrivate filtering list. Until then, you need to do this manually.

Saturday, January 08, 2011

How to import facebook birthdays to your WIndows Phone calendar

Step 1: Use the Birthday Exporter facebook app http://apps.facebook.com/ical_exporter/

Step 2: Save the ICS file that it generates

Step 3: Open up the ICS file in a text editor. Preferably one that can record macros. To each VEVENT entry in the ICS file (demarcated by BEGIN:VEVENT and END:VEVENT) add the following two tags:
X-MICROSOFT-CDO-BUSYSTATUS:FREE
TRANSP:TRANSPARENT

Step 4: Go to the Windows Live Calendar that is linked to your Windows Phone account. Click on “Subscribe”, click “Import from an ICS file” and then import the file into your calendar.

Step 5: Wait a while. Your calendar on the phone will reflect the new entries shortly

 

Note 1: Step 3 is important, otherwise you will be shown as busy on the calendar, and windows phone will report conflicts on the calendar (shown with two arrows pointing towards each other diagonally)

Note 2: Currently windows phone only syncs the primary calendar of the live id. If you don’t want to mess up the primary calendar, create a new throwaway live id and import it into that calendar. Add that account on your phone, and choose to sync only the calendar.

Thursday, January 06, 2011

Sometimes programs delight you

So I bought an Xbox controller for the PC, and plugged it in while Mafia II was running. It installed the drivers, and as soon as I pressed a button on the controller, it instantly responded, the on-screen menu items changed to reflect the new control scheme, and force feedback started working.

It’s some of these experiences that keeps one interested in engineering and inspires one to bring a bit more joy to people’s lives.

Monday, January 03, 2011

Undeletable folders on Windows 7 after move (part of library)

So the other day I was doing regular housekeeping on my Win 7 desktop, and I was moving stuff around, to make space for all these games I acquired from the steam sale. I move the “Movies” folder from drive G to drive S. The move completes, but there is still a Movies folder in my G drive.

I can’t open it. I can’t takeown it. I can’t icacls it. And I am an admin.

Turns out – that folder was referenced from a library (the videos library). I opened the video library, clicked on the (8 locations) link, and removed the G:\Movies from the list. Poof! the folder vanished.

Tuesday, November 09, 2010

Importing contacts from iPhone to Windows Phone 7

So you moved from an iPhone to a Windows Phone 7. How do you move your contacts over?

Step 1: Sync your iPhone to your computer, and make sure you sync your contacts (look under data or information in iTunes). Exporting to Outlook or to Windows Contacts would work best.

Step 2: If using outlook, go to contacts and export all the contacts to CSV. If using Windows Contacts, go to your Contacts folder on your computer, and hit the “Export” button in the toolbar, and save as CSV. Be SURE to export the Mobile number, which is not selected by default.

Step 3: Browse to contacts.live.com, and sign in using the same live id your Windows phone is tied to. Click Manage, then click “Import”. Click Outlook, and then import the file you created earlier.

You’re done! The contacts you just added will appear on your phone within the next 30 mins (by default).

Update: It appears that there is no easy way to export the phone numbers marked as "iPhone" in your iPhone contacts. Will update if I find a way / make a tool to do so.