Search Results: "radu"

10 December 2005

Radu Spineanu: Google expanding

Well, someone just submitted an article on our local slashdot like news site saying that Google is coming to Romania, Poland and Russia, and is now looking for 'talented people'.

I mean, why wouldn't they want to come ? Cheap and loyal labour. The interesting thing they are going to find is our educational system, which is still living the 90's. I still remember one of our most influential professor at my uni stating that he doesn't understand all this linux 'hype' and we should be learning Visual * and Java, of course concentrating on Windows. Out of 8 subjects per semester (i am a CS student), 6 are hardware. One is software and the other one is optional history or management or whatever. Well in the 4th uni year i heard we can choose some more software.

I'm not saying hardware is not important, but still it's a CS specialization, it should at least be a balance.

Anyway, it's mostly influential. Almost all graduates are hired at Siemens VDO, the "leading international supplier of automotive electronics and mechatronics", and the rest at Alcatel.
.

I live in Timisoara which is second after the capital Bucharest. Most companies go to Bucharest because there are more money there. IBM is there, Cisco is there etc. Probably Google will go there. I will study hardware another two and a half years, and in my free time work and learn for things i actually want to do in the future...

Then move to Bucharest :)

7 December 2005

Radu Spineanu: Maps

I was thinking of building a web application on top of Google Local, however i couldn't find out for sure if i can ask money for some kind of service like this. It would probably be a free version and a subscription based one. All i found on google laws was something like:
"Except where you have been specifically licensed to do so by Google, you may not use Google Local with any products, systems, or applications installed or otherwise connected to or in communication with vehicles, capable of vehicle navigation, positioning, dispatch, real time route guidance, fleet management or similar applications".

Does anybody know if this is possible ? If not with Google Maps, maybe with something different (Microsoft has something as i recall, Yahoo too).

Frank Sinatra is cool...

Radu Spineanu: Mailman madness

A couple of days ago, a client decided that he wanted one click unsubscribe for all his mailing lists. We used mailman and from what i found googling about it, this is mostly an idea in the minds of the developers. Unfortunately i could not wait until Mailman 3 or 10 appeared. I had to implement it this week.

Actually in the end, the result was pretty simple to do, even though it's rather basic. The idea was that the client did not like the mailman web interface, and wanted to integrate it with his own website (just basic subscribe unsubscribe features).

So i wrote a small patch (3 or so lines) to mailman, that adds a new field to decorate called %(hash) that is the users password crypted.

The interface between the web address in the mail and mailman is done through a directory where requests are placed. For example when a user clicks a link, a php script does some basic checking and places a file in $client_web/list_requests, or a global requests directory. The idea for this part was to be very easy for the user to implement.

Another small python script looks (through cron) in those directories, checks hashes in case of unsubscribing, and procceses the requests.

6 December 2005

John Goerzen: Speaking of criticizing universities in blogs...

While I'm on the subject, Wichita State University is apparently giving personal information about me to military recruiters. I've received numerous calls, from at least two different branches of the military. Some of them know nothing but my name and home phone number. Others appear to know my age, and still others how close I am to graduation and that I'm taking evening classes. WSU never informed me that they would be sharing this information with the military. I am quite troubled that they do so without my informed consent, and I will be letting them know this.

28 November 2005

Radu Spineanu: Shoot the movie industry

A couple of years ago i watched a really interesting movie. It was apparently about nothing, but in fact it was rather deep, and not a cliche. The story of two persons, stuck in an unfamiliar place who found each other and started spending time together in this pretty magic place. The action was placed in Tokyo, and the whole idea was based around it's beatiful scenery. The movie is called 'Lost in Translation'.
'.

I really enjoyed the movie, and most of all the two actors. One of them was Bill Murray, and the other one Scarlet Johansson. Scarlet Johansson, even though she was only 18 (i think) when she shot the movie, portreyed a young woman left alone in this unknown universe, who tries to find herself (sounds cheesy, but it's not).

And then came this day, when i had some free time and dediced to see 'The Island'. I have never wanted to kill myself more. Basically ObiWan finds out he's a clone, escapes from the military bunker while in the proccess taking his cloned girlfriend with him, and then frees all the other clones. Also in the movie you can find out that MSN will rule the world, Cisco the telephony, and Puma the shoes industry.

Now about Obiwan's girlfriend who is interpreted by miss Johansson. She is the regular stupid innocent blonde (too many adjectives?), who everyone wants to have sex with. Her role in the movie is probably to look good and have a sex scene with Obi. I mean what the hell ?

The movie thing is probably nothing new under the sun, and i accept the quality of today's movies. I think it was just sad to see somebody i really liked, and thought maybe i would enjoy nice movies with, become another random actor.

Bleah...

25 November 2005

Daniel Burrows: Music for everyone

Several years ago (it seems like more than three) I was a student at Brown University. In addition to studying computer science and mathematics, I also took a bunch of courses in the music program, including three years of piano lessons. When I graduated, I gave a recital for friends and family, plus any members of the public who happened to wander in (not many did). And, this being the 21st century, we recorded it and I got a CD of the recording. I edited it, split it into tracks, and handed some copies out to my friends and professors as a going-away present.

Now I'm no longer a student of any sort, and Brown seems a lifetime away, but the music is still sitting on my hard drive. I've always meant to make it available for download, but I couldn't figure out how to get past technical issues of space or bandwidth. A few days ago, though, I had a rather belated bright idea: maybe the Creative Commons project would have links to places where you can host your music for free. Lo and behold, it turns out that the Internet Archive lets anyone upload audio to their server! Better yet, they're even willing to store lossless encodings -- more than willing, actually; FLAC is the preferred encoding of uploads.

So, to make a long story short, click here to hear my bad piano playing. :-)

24 November 2005

Benjamin Mako Hill: "You May Go About Your Business"

Access and borrowing privileges at Harvard libraries is one perk of being an MIT graduate student. Actually taking advantage of the privileges of course is a borderline Kafka-esque quest that involves 5 forms, several databases, two universities, a rather impressive MIT libraries official stamp, and three geographically separated offices on opposite ends of Cambridge. Only once all those obstacles are triumphantly overcome can one go through the two card swipes and/or manual verifications necessary to get into the Widener stacks. The webpage makes it sound easy and, in all fairness, nothing about the process is threatening or difficult. While the libraries are worth the effort, it is long and tortuous: by no means for the bureaucratically faint of heart. The high point of the process, in my opinion, is picking up one's ID from the Harvard ID office. The ID office is appropriately located on the ninth floor of a building that requires ID to enter.

20 November 2005

Radu Spineanu: Boring everything

Honestly... It's saturday night and if you don't want to go to a noisy club you really can't do anything interesting after 2 in the morning.

Well, throw a party ? Sure, but where ? Where i live the walls are so thin i can hear my upstairs lady neighbour do about everything(EVERYTHING...). In the dorms ? Somebody always calls the police about the noise.

All the places in this town are either caffes or clubs, and i am really bored of clubs.

I wonder what other people do when they have a free night, reserved for fun.

In other news, we are probably going to get a new IBM server for work (don't know exactly the model yet) and i have to decide on using either vservers or xen. I've only worked with vservers but heard great things about xen. Maybe we can finally bring ftp.timisoara.roedu.net back online, hurray...

14 November 2005

Radu Spineanu: Crazy people

This is just wrong.

"The bill, which has bipartisan support, would change the basis for awarding patents from the current method which credits the person or company that can prove they invented something first to one that credits the person or company who first applies for the patent."

Preparing to patent the wheel...

12 November 2005

Radu Spineanu: New Faithless Fan

I recently discovered Faithless sounds pretty nice. By some weird circumstances i got my hands on a Faithless Live At Alexandra Palace DVD.
Knowing only a couple of their songs, i was pretty convinced the show would be boring. I was so totally wrong. I've watched it about 10 times already, and i'm not bored yet.

In other news, i had to take an asm test thursday. It was pretty weird, since i woke up that morning not having read any of the material. Thank God for Google, and the couple of asm tutorials out there. The subjects were easy (count the number of times a character appears in a string, reverse a string).
Still, I didn't make everything perfect. Having little time, i just read through the tutorials and didn't actually write any code until the test. In the end i remembered something wrong from the examples, and the program was not ending properly...

About having great ideas in weird moments. In my case it usually happens right before i fall asleep. At least with showers you can take as many as you want :).

11 November 2005

Robert McQueen: On contributing to Gaim

Whilst I can’t claim to have done anywhere near as much for Gaim as Christian Hammond has, I did contribute to Gaim some time ago, and for my efforts I managed at least to attain the status of “Crazy Patch Writer”. However, I gave up trying to contribute to Gaim about three years ago. After starting out as the Debian package maintainer, and one of the founders of #gaim (yes, I know, I’m sorry, it wasn’t always like that), I spent about two years submitting patches which were ignored by almost all of the developers, being forced to beg people with access (including the support/bug triaging guy, who doesn’t really code C) to review and commit them. At the time, nobody was being given CVS access because of a recalcitrant and unresponsive former developer holding the reigns of the Sourceforge project. A few developers came and went, and in what I thought was a miracle, the now lead developer was made an administrator of the Sourceforge project and gradually started handing out access to other people who had been contributing. Except… I was passed over time and time again, and other contributors who had around for less time than myself were given access. I could accept this if I was given some justification, but I was ignored when I asked about getting CVS access and never given any reasons, despite having contributed hours and hours of my time and helped rewrite and clean up sizeable chunks of code. It actually had me close to tears on several occasions, and still upsets me a huge deal that no explanation was ever offered to me. After starting out with packaging work in Debian, Gaim was the first project where I became involved with actual development, and I learnt a great deal from hacking on it, but when I started at university I decided I’d spent enough time pouring my heart into such an unwelcoming recipient, and I moved on quietly.

5 November 2005

Anthony Towns: Britney's Memory Management

One of the things about the whole money thing and free software is the question of whether it’ll take all the fun and spontaneity out of hax0ring. As it turns out, that doesn’t even work when you try; so instead of doing dak work last weekend, like I’d planned and like the market was indicating, I ended up hacking on britney until about 5am Sunday morning, leaving the dak stuff to be spread over the week, instead. (After the last post, dak might seem cursed, but trust me it’s not. More on that RSN, but not just yet) For those playing along at home, britney is the name of the scripts used to update Debian’s testing distribution; basically it automates some of the hard problems of Debian release management. Naturally, this is a pretty tricky job – there’re over 200,000 packages in Debian unstable (spread across eleven architectures), with fairly complicated sets of interdependencies amongst them. It gets complicated enough, in fact, that the core analysis britney undertakes isn’t just too processor intensive to do in perl or python, it’s too memory intensive to use standard malloc for its data structures. (Cynical and Coding, and the UQ CS228 class of ‘98 will probably have some idea of the fun to come at this point…) The problem is that britney uses an absurd number of linked lists to resolve dependency issues, with each entry in the list being an independent block of a dozen or so bytes; and adding the usual malloc overhead to this can effectively double the memory usage. Worse, britney also likes to reuse memory quite a lot, does a fair bit of backtracking, and generally acts like the prima donna she is. Up until last week, britney’s memory was managed by the use of a parallel bitfield indicating whether memory was free or not: so britney would first allocate a 128kB block using standard malloc, note it’s all free, then every request for 12 or 52 bytes would result in some bits being twiddled; and every free would twiddle the bits back, so they could be reused later. This means two things: one is that the free invocation has to include the size of the memory to be freed as well as the address, and the other is that finding an appropriate sized block of freed memory can be awkward, leading to some degree of fragmentation. This fragmentation seemed to lead to britney having a gradual memory leak, which would mean that if the release managers were doing some complicated transitions gigabytes of memory would end up being used and OOMing; or, since britney runs on ftp-master and it’s probably not a good idea to have the OOM killer start on the machine that ensures the Debian archive’s integrity, the ulimit is reached, and britney aborts unhappily. Unfortunately, though, the use of a “roll your own” malloc means you can’t use the standard memory checkers to see what’s going on, so you’re left with guessing and hoping. And as a consequence the memory leak’s been around for ages, causing fairly regular minor annoyance. This changed last week when Micha Nelissen (neli) got into the act:
<neli> why does it need so much memory ?
<aba> neli: because it needs to check how the changes affect the installability count
<neli> aba: ok…but still does not seem like a big deal
<neli> how large trees are we talking then?
<aj> it has to do a lot of backtracking
<aj> how large is the longest dependency tree in debian?
<neli> backtracking only takes time, not space, right?
<aj> you need a list of things to backtrack over
<aba> neli: it also consumes memory, at least with the current dpkg-implem ntation
<aba> (well, there are ideas how to avoid this memory fragmentation, but that’s something else)
<aj> (it’s not actually memory usage, it’s memory fragmentation)
<neli> hmm, bad memory manager ?
<aj> imperfect, *shrug*
After poking around at getting britney to run locally, and doing some basic analysis on how it was used, neli decided to rewrite the memory manager to use chunk-size pools – so that a separate pool would be used for 4 byte allocations, for 8 byte allocations, for 12 byte allocations, etc. That’s possible due to two factors: one is that the special memory allocation is only needed for data structures which are all made from fairly small sizes, and are a multiple of the word size. It also means that fragmentation can be avoided completely – since you can use the “free” elements to store a free list taking up no extra space. Happily, that change also made the memory allocation much simpler. (It also shows the benefits of a fresh look at code; I’d been thinking of doing something similar for ages, but always been stopped because I couldn’t figure how to make it cope with the various different sized blocks I’d need. As it turned out though, I’d solved that problem ages ago when I wrote a separate allocator to deal with strings, which would’ve required my malloc to cope with a much larger variety of sizes) What it didn’t do was actually solve the memory leak. Which was pretty confusing, since the old memory checker had some tests to ensure that memory wasn’t really being leaked, and if the memory’s not being lost due to a missing free, or being lost to fragmentation, where is it going? At this point, the real benefit of having a simpler malloc implementation came across; because suddenly it was plausible to add some debugging code to allocate a separate pool for every memory allocation, and to report how much memory is being used at any point, per line of code. That gave me output like:
pool 8B/1:751; 1962683 used 1965960 allocated (99.8% of 22 MiB)
So I knew that line 751 (of dpkg.c), was allocating 8B chunks, had used up to 22MiB in the past, and was currently using 99.8% of that. (Actually, I made an off by one error initially, so the “8B” above is actually 12B, as you can see if you divide 22MiB by 1965960) That let me see two “leaks”. One turned out to be fairly easy to diagnose; as an optimisation, when I say “package foo is installable”, I note that “but we used bar to see that, so if we later update/remove bar, note that we’ll have to see if foo is still installable”. So the datastructure for bar ends up with a linked list of all the packages, foo, that relied on it. But I don’t check that list for dupes, so if I note that both bar and baz were required for foo to be installable, then update bar, when I recheck foo, I’ll add it to both bar’s and baz’s lists; which is fine for bar, whose list I cleared when I updated it; but not so fine for baz, because it’s now got two entries for foo. Having already added a check for dupes when trying to see if my guess was right, extending that check to skip the addition was pretty easy. The other leak required a little more investigation. It was in a fairly tight loop which could reasonably be using a fair amount of memory; but by the end of the loop it should all be freed. Adding some more debug code to the allocation functions confirmed the problem:
<aj> pool 8B/11:1231; 1618157 used 1703936 allocated (95.0% of 13 MiB, 9.05% current)
<aj> so it looks like ~9% of those allocations are never freed to me
<aj> 9.05% = used/alloc
<aj> where used is incrememnted on b_m, decremented on b_f
<aj> alloc is incrememneted on b_m, never decremented
The code was meant to either add the allocated block to a larger list that’s being traversed, or to free it immediately – the problem turned out to be that there were some nested ifs, and an internal if was lacking an else that should have freed the block. Fixing that changed the results to:
pool 8B/11:1228; 160 used 131072 allocated (0.1% of 1 MiB, 0.01% current)
Which both dropped the leak – only allocating a maximum of 130,000 nodes instead of almost 2,000,000 – and resulted in almost all the allocations that had ever been made, having been freed once britney had been running for even a fairly short while. As it turned out, though, the cure for the first leak was worse than the disease – checking for duplicates in a linked list turned out to take too long, and the memory wasted in that section wasn’t that big a deal. Using a red-black tree or similar instead would’ve been a solution, but so far doesn’t seem necessary. There haven’t been any OOMs since, happily; and even better, the reduced bloat seems to have made the overall checking a bit faster. Sweet.

3 November 2005

Radu Spineanu: Fun projects

Being almost friday and having a little bit of time and all i decided to create a new blog. Since my debian account was created recently i though 'why not' and added it to Planet Debian, among the best of the best.

Reading today the slashdot article about Nokia and opensource i remember about a project i did this summer. Following a question i posted about handling private keys on debian-security sometime in june someone emailed with this reply, which i found very interesting. And i actually wrote that, even though it's pretty rudimentary (authentication using mobile devices and assymetric keys).

Basically when you enter a username at the login prompt, the PAM modules looks up information about that user from a configuration file which contains the hwaddress of his assigned device and a path to a public key (either GPG or SSL). The PAM module then generates a temporary password, encrypts it with the users public key and sends it via bluetooth to the mobile device.

The Symbian part was a little tricky, and my first encounter with java. I implemented only SSL decryption capabilities because it's a faster decryption time (~4 sec on my 6630) , and because BouncyCastle's cryptography support for pgp is impossible to port to j2me with my java knowledge. Anyway i haven't seen assymetric key cryptography (oss) on mobile devices until this. Being in java it doesn't really use anything fancy, and it _should_ work on any mobile device supporting FileConnection API (jsr-75).

If you feel adventurous, you can find the source code here.

28 October 2005

Sean Harshbarger: 28 Oct 2005

Busy busy busy! Was on vacation last week and spent most if not all that time just relaxing with friends and family. Went up to New York City last weekend and had a good time. We went up there to visit colleges for my sister who plans to move up there after she graduates High School this year. Will post pictures and videos later on. Probably will be silent the next two weeks as work needs me there for almost 12 hours each day. It will be nice in the money factor, but not so much in the fun factor. Hopefully once that is said and done, Bryan will have most of the Coaster stuff done for me to start munching on.

16 October 2005

Wouter Verhelst: Job applications

Daniel Burrows mentions how he hasn't gotten any reply from potential employers where he sent cover letters that are written like the Rules require. Reading that reminds me how I never ever got hired after writing such a letter myself, either.

Next.

Previous.