So, after a long time, I think it's a dear diary moment again. Not because something happened today - no it's the usual totally loaded day at kgp with project deadlines breathing down your neck the first week of the sems - no, it's just that I happened to sign into blogger today.
OK, so what have I been up to these days? Well, I got a new room (B-216). I feel as if I have lots of free space (like when you get a TeraByte hard-disk). It's quite comfy, given the southern window with the easy-draw curtain on it, and the super smooth celing fan.
Ya, ya, blah blah, but what have I been up to on the programming frontier? Well, mmm, I have two courses this semester that are absolutely related to programming, and guess what? The language that I was yearning to learn Assembly for the Intel Pentium 4, will be taught in our core course! That is so fundoo. We will be directly targetting the P4 and it is so cool. When I was looking at the assembly code generated by the gcc compiler, everything seemed to be in order and efficienty handled. Hats off to Robo for opening my eyes. TIMTOWTDI - never forget it! (In case you are wondering, TIM•TOW•TDI /'timto'di/ abbreviation. There is more than one way to do it.) OK, so gcc is not very obvious, but I am not sure whether it's way was not the more efficient of the two. But Robo's comments have now forced me to think deeper for every asm code.
And the other course? It's a jam-packed course about Fuzzy Logic, Neural Networks and Genetic Algorithms. There would be three term papers, one huge project, apart from the mid sems and end sems.
On the personal front, well, I got Avalon istalled and running. (By the way, let me just say that the name for Longhorn, Windows Vista, is just bad. Microsoft must have been in a common drunken state when the decision was made, this is not a name that I feel comfortable with. What is your OS, Sushovan? Vista. What? Vista. That's an OS? Yes. Oh. (under his breath) hasta-la-vista) Avalon is really cool with all the vector graphics and stuff. Looks pretty good. Seperation of code from presentation in such a complete manner is tremendously helpful and logical.
I have been trying to make my own paint, copying the functionality of MSPaint. Never have I realized that it was pretty advanced. Like, it is simple to take pictures and apply transformations to it, but giving tool for a WYSIWIG picture manipulation is difficult! Once I get through the basic stuff, I am planning to integrate anti-aliasing into the program, so that it will be one big step ahead of paint. Also, in case you did not know already, keeping the SHIFt key pressed while using the different tools gives you quite good stuff, including the eternal problem of drawing absolutely horizontal and vertical lines.
Another thing that I have been working on is a LAN chatting app based on FileSystemWatcher. It would be quite a useful app as and when I finish it. The FileSystemWatcher class is inherently very helpful and innovative applications can be thought of from it.
Another secret I want to leak out - I am not programming as much as I would like to - acads ka load hai bhai.
So, hasta-la-Vista™ till we meet again.
Popular posts from this blog
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
So Google has recently publicized the "+1" button for websites, which "competes"  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
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 fi
Well... its kinda bittersweet when after 10 minutes composing a compelling post on a technical problem, you figure out the problem right before you hit submit. The tide turns on the bitter side when you spent most of your time formatting the post than composing the text. So... to precent wastage of "knowledge", I post my question, as well as the answer, in the hope that it will help somebody. I was tinkering with the CD-burning API in the Windows Vista SDK, and one of the basic classes needed for that is MsftDiscMaster2 . The MSDN example is in VBScript and does this to create an object of type MsftDiscMaster2 : WScript .CreateObject( "IMAPI2.MsftDiscRecorder2" ) Now, to port this to C-Sharp, the first thing that I tried was this: MsftDiscMaster2 g_DiscMaster = ( MsftDiscMaster2 ) Activator .CreateInstance( typeof ( MsftDiscMaster2 )); It showed me a runtime excption: Cannot create an instance of an interface. However, when I try this round-about way, it works!
Today Kshitij, an aggregation of equally stupid minded fellows is happening in our college, with a record accumulation of sponsors and money being thrown down the drain. It is the tech-fest of our college. Yes, I am participating, but in just one event, Ataxia, that too because Loadu (Swarnavo Sarkar) forced me to. He was one short of a team member. Funny to think of it, our Ataxia team is the same group of guys in Electronics lab first year. Me, loadu and Sovik Kumar Nath. A couple of important things happened today. Well, I woke up a 8:20, which is a perfectly reasonable (hoo-haa in fact) on a Saturday, thinking that Soumitra will come to discuss the Quine McCluskey Algorithm. What I had forgotten was that we had decided to go to Gol-bazaar to get ourselves some of the amazing digital chips we found in digi lab. We went to Tech-Market, Soumitra and I. We found our marked out shop closed, so we had a sweet and Soumitra was wanting to withdraw money from the bank which had not yet open
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
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.
Now that Visual Studio 2010 is out, you obviously need a dark background for it. The problem with other dark backgrounds out there is that they change too much - for me, if comments aren't green the universe pretty much collapses. So here is a 9KB settings file which will simply change the background of your text editor to black, keeping keywords blue and comments green. Certain other elements' colors were changed to match. Enjoy, and leave a comment if you found it useful. OnlyFonts_2010.vssettings
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
EDIT: The error is back :( These instructions did not help. EDIT 2: The error is mysteriously gone :) I think Microsoft did some magic on their end. I am back on automatic updates! For a long time, I was having trouble installing KB2881553: Update for the English Input Personalization Dictionary on Windows 8.1. These are rough notes on how I resolved it . The problem: KB2881553 is supposed to be only offered on machines that have a touch keyboard with lots of usage. I think it was offered on my desktop accidentally, because I also use a tablet PC with touch on the same Microsoft Account. If you hide the update, it doesn't go away, because a new version of the file is offered on Windows Update within a few days, on the same KB number. The error code was 6B2. The solution: I was mostly guided by this very helpful post . The gist of the problem is that the previous update .msi cannot be found, so you have to convince Microsoft that either (i) your package is up to