Google

Home
Most Popular
Petals

|
*
2003/05/22
 03:04:12
Not to unusual of a day at work, other than this meeting this morning that didn't seem to really get anything accomplished other than yes, stuff isn't perfect and we should probably see about doing something. Then a bunch of us decided to go to lunch, and brooke somehow even convinced her roommate to come with. All around lunch (not during it though), Dave was having way too much fun with his digital camera, and has lots of pictures to show for it. After work I decided for some reason to work on my DAAP Proxy again. It was just getting too big for all the data to fit in IPC memory (it was chewing upwards of 20MB), so I moved it to an SQL backend. This also had the benefit that I can hardcode the servers in there and have it better automate the connections, as well as doing song consolidation. That's probably my favorite feature of all. Basically I give it a list of servers to pull from, and at any time there's a master playlist, with one of each unique song (sorted alphabetically). These are of course just numeric keys back into the guts of the proxy, which then knows which servers contain that song, sorts them by the least used/fastest, and finds the first one which is currently active to stream from. The more people with the same song, the more resiliant the system gets... I also totally separated the session initiation and streaming, so if the session isn't currently active, it instantly transitions to the next song. I also rewrote the actual media code using sockets rather than LWP, so the songs start streaming even faster than iTunes streams them. In other words, I had way too much fun, and something of which I'll definitely make use. I'm even streaming from work back to home and haven't had it skip yet, but doubt I'll do that too often. Hopefully I can get up on time tomorrow...