ThePanda

April 28, 2006

SMART, Math and Computing

Filed under: article — aurojit @ 1:40 am

I got my computer back a little more than a week ago, Apple was pretty good with the timing on its service, taking much less than the expected weeks, and in fact had the computer for under a day, and thus made sure that I spent four days from failure to having a functional machine, one of those days being spent reporting damage, digging through information, attempting home-brew repairs and the like. This is indeed a good thing, and is one of the reasons I am happy to be using an Apple. That being said my computer failed because of a hard drive failure, and any moder piece of computing machinery should be including some form of S.M.A.R.T, and having received no warnings from the motherboard, running fsck or much of anything else in the past days, when my computer had begun thrashing around a little, I am disconcerted and unhappy. That being said, I seemingly had also blown out the cable which connects my hard drive to the logic board, blown out the cable, what the hell.

A long time ago I used to read random books for fun, OK I still read random stuff for fun, books not so much, they take long, and I don’t have all that much time left from everything else, and sleeping. One of these random books that I read was this gigantic book on Operating Systems, well actually I read two in the pre-board 10th grade euphoria, and this was the bigger and more interesting of the two. Well perhaps my levels of interest are weird, because it really didn’t involve that much code, and umm I don’t remember enough about it to actually be able to find it on Amazon. If anyone who’s still in Exun visits this blog, that books somewhere in school, probably in Exun’s control, since it was donated to Exun, and it has a white cover. Well anyways, years passed, I came to Brown, I took a class on computer hardware and the like (the reasons for taking that class are a story in themselves), and we revisited a lot of what that book had spoken about, including virtual memory, which back when I was reading that book sounded really cool. Like really, think about it, you go from having limited amounts of memory, to lots of memory per program, you have a little overhead, but you can fit the world in your computer. Most modern operating systems use virtual memory, this is a good thing, usually, every now and then you get programs which start thrashing, and then you go on to cuss about the virtual memory, but know what, at the end of the day, VMem keeps things going, paging algorithms are an interesting, and not entirely solved problem, and they are fun. One of the things my big book mentioned, and seemed to think highly of was the Solaris paging algorithm. Know what, Solaris, and now OpenSolaris are both Sun projects, they are or were big, and though they don’t run on Macs (I am going on an operating system trial spree once I buy a new computer sometime at the end of summer, this one’s probably going to be running Linux or OpenBSD), they were big news. Know what else Sun makes, Java, they publish some of the best works on garbage collection and such, and some (people who are not me) believe that Java has gotten most of it right. Well Java’s cool, it is all cool until you try handling images, or other huge pieces of data, because as much as Java is cool, it works on a limited heap, and once you run out of it, it fails. Why can Java’s VM not allocate new memory, not give me some of the benifits of paging, even if it slows the program down. Why must I worry about not being able to fit everything in, and such things, why must Java not do such things. I am angry at Java, well OK so I am mostly angry at a lot of things, and am mock considering going and becoming a history concentrator, because I am pretty darn good at that. Java angers me, I shall not be using it next semester, I am happy about that. I have a project to complete in Java, this clearly sucks.

Hmm so post attempts at watching cartoons and weird discussions with my roommate, I have a list of things I’d like to watch again, or perhaps own on DVD in cases, and most of them are animated, old and things I sometimes still watch while at home. In the ways of this country, old cartoons aren’t broadcast very often, at least not on university run cable networks. TerraHawks, the Rescue Rangers, TaleSpin and perhaps the Looney Tunes would be much appreciated in case anyone wants to send them, old Bugs Bunny stuff would be appreciated too.

I took a short 5 minute break, like 20 minutes ago. Not doing too hot on keeping myself motivated on this math stuff, it’s like finally making lots of sense, and as we pass through more topological things, is even sounding like fun, it is just that I’d rather sleep, or read this fun book I bought when I wasn’t thinking about the effects of doing such things. It has been too long, want, or more like need break, yet must finish (start rahter) writing about Japanese Propaganda in the Pacific War and about semantic networks. I sat through my last Japanese history discussion section today, we discussed stuff about what we had learnt, and how it tied back to what Japan was today, which was fun, and somewhat disturbing. I’d like to do one of these informally about India, except not with people back home, some of them are scarily complicit, and it is hard to do it without walking over someone’s closely held beliefs. It was also sort of nice because it made sense with my questioning what I had learnt all of last semester, I can answer that this semester, and the answer’s deeper than Lie Groups, tensors, dual spaces, manifolds and generalized analytic views on differnetial form and stoke’s theorem. Those are important, but I learnt something which made me feel like I understand a little more, this is good, the next semester should be quite excellent with whatever I am doing.

I am TAing a course on computational models next semester, the first intro course I have TAed in the CS department, well sort of, and it promises to be fun. Oh finite state machines and turing machines.

So I actually finished the gigantic quantities of analysis I was faced with, umm modulo a question, this feels nice. Don’t get me wrong, analysis is fun, it always has been, it is just not that much fun to do it as homework when faced with other things. I am sort of ready for next semester’s break from math, oh well, at this point I have enough math done to actually be able to get myself one of those math degrees. Hmm math degrees :D

Another two days have gone by, I really should put this up, perhaps. We had some fun earlier today with people from outside the house, that was a nice break from all the work. The CS project’s beginning to fall into place, sort of, there’s more work to do, but some of it is working well now. Oh well, sleep time.

Ze Panda

April 25, 2006

SubEthaEdit

Filed under: article — aurojit @ 9:33 am

I have the beginnings of a bigger post somewhere, but this is advertising to get myself cheaper software. SubEthaEdit from Coding Monkeys is one of those many editors which I have used on and off for a while, and now it has gotten to be paid. Well the folks at MacZot are running BLOGZOT 2.0 on MacZOT.com and claim that MacZOT and TheCodingMonkeys will award $105,000 in Mac software. Having downloaded AppZapper from a previous such event, I sort of decided that I needed to give this entire thing a little nudge, to lower prices and all.

April 11, 2006

Communication Blackout

Filed under: article — aurojit @ 7:50 pm

I am dropping out of the world, my computer’s failed, and it needs to make a round trip to California. Or more like instead of spending something less than 60 bucks on a replacement Hard Drive, I am sending my computer out to Cupertino so Apple can do it for free. The urge to buy a MacBook Pro, even though I haven’t gotten money from the summer, has never been greater.

Ze Panda

April 10, 2006

Amazon, TextEditor, jwz, random crap

Filed under: CS, article — aurojit @ 4:48 pm

I am told people don’t need moral lessons about the real world, and are aware of the real world. This is a strange observation, especially when made by someone I am TAing, but whatever, this is not meant to be an object lesson on the real world, or perhaps it is meant to be one, but who the hell cares, you are the one reading my blog, much like he was the one reading my e-mail. Either ways, I shudder to think what the RIAA or MPAA would think, should they hear that I have been providing people with “moral” lessons on breaking DRM in the “real world”. Bah, sucks, all this while I believed being in academics was all about ignoring the real world, hmph.

Anyways, interesting as this weekend has been (it involved sleeping at unnatural hours, missing meals, and other fun things), I can finally claim to have dabbled for a bit in webservices and AJAX, and have come out appreciating webservices, and PHP to an extent, and not really liking AJAX too much, it has its uses, JavaScript is a cooler language than I remember it to be, but everything remaining constant, I would rather not design an AJAX thing, but then again, I have never really been a big fan of webdesign and the like. That being said, PHP seemed like a fun language, I plan on learning more about, if only to add it to the list of languages I have dabbled in, and because it has certain cute features which make me happy. That being said, having functions which might or might not return values, depending on input parameters, is something I find mildly scary, but then again, I am easily frightened.

Darn, I have too much work, and no real motivation to do any of it, perhaps this is all about the beautiful weather out there and the fact that it is spring, but nopes, it’s not like I have been out there that much, unless being in the CS department means being out there. I received a gigantic package today from one of my father’s friends who had been to India, and the mailroom guy made a comment about how it seemed to be packed solid. For a while there it even looked like I was walking back home with a care package, funny how that works out, another experience to add to a growing list of things. Well anyways, not doing much in terms of work, umm I need to do work, will probably do it soon, since some of this is some really pretty math, I have been surfing the internet thing, not that work has ever prevented me from doing this in the past. Along with focusing on the many parts of the Nature, Britannica debate, looking up Francisco Franco (this was work, he comes up somewhere in the Japanese decission to go to war in China), and other things, I noticed my roommate looking at a Matrix-like hex dump, and I went on to explore it and read his nerd documents (there are many more than there seem to be, just look through the ones he lists and follow the links), and I really like this guys writings, he rants about things I haven’t liked in the past, speaks of things I hadn’t known of, and the like. He’d make a good Netscape counterpart to Andy Hertzfeld and the Folklore project.

Some time ago, when I needed to come up with a CS final project, me and my roomate had seriously considered making a text editor, one that we’d want to use, and which would do some of the cool things Emacs does, but alas, we got drawn into photo managers, and one whose final specs I am not completely convinced with, and I am sort of wishing making software decissions and text editors weren’t contentious issues. Two group projects down, and into a project, I have come to the conclusion that there is such a thing as too small a project to do as a group. You sort of want a project which is big enough to be easily divided, and yet not be something which any one person can take over and finish, and like really software development teams, perhaps like research groups, need to be dictatorial and not democratic. Also I hate design meetings where multiple people thinking at different levels have to come up with a design. It isn’t always very simple, and it annoys me. It’s been a while since I have screamed at anyone, this not being acceptable social behaviour, but I am coming close to the point where I am going to start screaming at people, I am tired, in general, and I seem to be in this sort of always annoyed frame of thinking, except during those parts of the weekend when I am doing fun things, and perhaps when everyone else is gone so I can just concentrate on watching TV, and doing fun stuff, and eating good food. Hmm, perhaps I’d make a better code monkey than code monkey manager, I don’t seem to do well with telling people what I want done.

I am going to try and write a text editor, even a simple one, which does like just a little more than TextEdit, and yet is not as funky as SubEthaEdit where the colors sort of distract me, and in general does all the things I want. I guess I just want a text editor written for me, or for someone to get me a copy of BBEdit ($199.00), so that I don’t have to use TextWrangler, which is great, but doesn’t do like a fraction of the things I’d like it to do. In the mean time I have been trying out AquaMacs which is pretty much EMacs, but is faster than my last Aqua based Emacs installation, which now refuses to run on my computer. I want to go back to writing software for myself, I like hacking, I want more time.

Earlier today while going through a TA interview I was asked what I did in my free time, and was mildly embarassed to admit that I wasn’t really sure I had any, but oh well, I guess this counts as free time, except I should be doing other things. There’s always this thing about doing other things. I need to find something I can mention in reply to these pesky hobby questions, I used to have hobbies, I used to do stuff, it has been a while.

So it turns out that everyone other than me knows how to get cover art from Amazon (programatically), and no one seems to document this, leading to issues when I needed to implement this as a part of one of my group projects. Like really no one has much support code up there, and the ones they do have seem to like take too many lines doing not too intelligent things. Thus, I am going to place my function to do this online, it ain’t very long, works in PHP 4.3, I believe there are better ways to do this in PHP5, the CS department doesn’t have PHP5. You need to get an Amazon Web Service account, and need to set

$ACCESS_KEY

to your Amazon Access Key, but you should be set once you are done with that. The code’s provided without copyright or licensing requirements, I was planning on saying it was LGPLd or GPLd, but both those statements require much frameworking to be put in place. Oh and don’t use this in anything like a space ship, missle defence system or a critical piece of machinery in a hospital, it’s not designed to be mission critical.

That’s pretty much it for now, I need to go work on math, and other things, and try to not procastinate, and other things.

Ze Panda

PS: All moral lessons in this blog were unintentional.

Powered by WordPress