{October 31, 2007}   qt and gpl3

I’m confused here. I feel like there’s something I’m not getting.
see, we have this problem: qt is gpl2-only. samba is gpl3. kde is gpl2-only because it links to qt. gpl2-only code cannot link to gpl3 code because of the way gpl2 is written. the result: kde stuff can’t link to samba stuff.

however, qt has actually added some extra freedoms to its open source version, which allow the kde libraries to be lgpl instead of gpl, and allow code using an assortment of other opensource licenses to link to qt too.

so, why can’t trolltech just add gpl3 to that list of alternative licenses?
if it did that, then theoretically kde could begin switching to gpl3, still be allowed to link to qt, and gain the legal ability to link to samba code and whatever else is on its way to gpl3-land.

it seems like a much simpler action for the lawyers to approve than changing all of qt to be gpl3. wouldn’t it be easier to do this asap, and then return to pondering the implications of gpl3’d qt?

of course, IANAL, so perhaps it’s not as simple as all this. trolltech must have already considered it, right? if it was so simple they’d have already done it, right? but I figured I’d mention it anyways. just in case.

[edit] Luis is right; you just can’t link a gpl2 library and a gpl3 library into the same program. the result would have to satisfy both licenses, and that’s impossible. I knew it couldn’t be this simple. oh well… that’s what I get for blogging when I should be sleeping.

{October 30, 2007}   food n’stuff

I’m not really here still. just a bit of blogging to make up for my lack of long-term memory. :)

trying to balance coding and school wasn’t as easy as I’d hoped. whenever something unexpected happens (which seems to be almost every day, lately) one or the other has to be sacrificed. sometimes both. that sucks. I’m also a lot less interested in actually studying at all when there’s an endless amount of coding I could be doing instead…
I ended up feeling far too frustrated about it, and then there was silly online drama, and I ate some bad food *again*, so I decided I had to get away from the computer to try and clear my head, and get back in the habit of studying properly. I really don’t want to end up being another person who starts working on code and then vanishes. I’m not in a great position right now, though. guess I’ll have to see how things work out.

anyways, even though I’ve barely been online at all in the last week, I still haven’t been paying enough attention to school. it seems a lot of us are just in a slump right now. it’s harder and harder to bother with going to class. however, I think things are likely to improve soon. I hope. there’s a midterm and the HSK exam coming up in a few weeks, so if we don’t start studying more, exam-panic will eventually take over. :)

on thursday, me and pete went out and bought a hot plate, plus various cooking utensils. we used the “kitchen” area near his room, which is just a tiled room with tables, a fridge full of mystery foods, a sink, and a hot water dispenser. he cooked a simple veggie stew, and while the food itself was nothing special, it was incredibly good to have a home-cooked meal. food that was non-greasy, healthy, simple… a quiet place to eat… sitting around reading while waiting for the food to cook… even having veggies to chop and dishes to wash was just wonderful. I felt so calm and peaceful and, well, sane. kinda surprising that something as simple as cooking dinner can be so satisfying. :) I just wish we’d tried this sooner.

on friday jon joined us for dinner, and decided he had to buy a toaster oven. on saturday the three of us went to some fancy import store – jon got his toaster oven, and we also got an assortment of other useful things, like flax seeds (the best vegetarian source of omega-3s, which hardly anyone gets enough of). I found a box of muesli, which besides being delicious is probably the only source of whole grains in this whole darn country. we forgot balsamic vinegar, though, so we’ll have to go back. we ended up going to KTV (karaoke) afterwards which was fun – but by the time we got home the veggie market was closed, so we just went to the mexican restaurant for dinner.

sunday evening, jon used his new toaster oven to make some bread to go with dinner. omfg. delicious, delicious bread. it was soft, and fresh, and not loaded with sugar, and it was perfectly cooked, and had herbs and salt and garlic on it… mmmmm. I never knew a toaster oven could be used to make bread – let alone such quick, delicious bread. some of the other ddp students showed up to get some bread, and ended up sticking around to get help with their C assignment (they had only just been taught about functions, but the assignment seemed to require use of malloc n’stuff. wtf).

yay food! everything’s better when you have control over your food. it looks like pete, jon and I will be cooking most nights from now on. :) there’s also a lot of talk about what the toaster oven could be used for – cookies, lasagna, quesadillas… so many delicious ideas.

the weather’s been changing a lot lately too. temperatures are dropping quite fast. I think I might have to go shopping for some warmer clothes – they don’t heat the buildings here, and the classroom was uncomfortably cold today.
aand speaking of class, I’d better get some sleep before my alarm goes off. doh.

{October 26, 2007}   taking a break

I’m trying to take a break from the interwebs right now. I’ll probably be back in a week or something.

btw, typing on dvorak isn’t all that hard :) just slooow.

{October 11, 2007}   progress

whee! today I finally fixed the issue with stuff not being drawn right on the panel. I’ve got a taskbar and lots of clocks, and they’re not vanishing at all :)

you might notice a few regressions if you check out the code tonight – panel only being on one desktop, not being able to drag&drop applets onto the desktop, no wallpaper – but those are caused by aaron being in the middle of more awesomeness, so I bet they’ll be fixed again in a day or two. :) we’re getting a new toolbox, and… I forget what other shiny things.

I should go do my homework now, I guess. darn homework. the holiday’s over, but I haven’t actually been to class much, for various reasons.
monday there was a typhoon – actually, it started on sunday. we went out sunday afternoon to zijingang, and it was just raining a bit when we got on the bus – but when we got off, it was pouring. we spent a couple of hours hanging out in the library with chinese people, but there wasn’t anything good to eat there, so eventually we had to head to a cafeteria… in the rain and wind and dark… I had a disposable raincoat instead of an umbrella, and I’m not sure which one was better. the wind was pretty strong, and the rain was just crazy. I’m very glad I wore sandals – having to sit around in soggy shoes would suck. we had to wade through a couple inches of water at times. I rolled my pants up to the knees, since the raincoat was about that long, but the wind pushed it up so the ends of my pants got wet anyways. still, I was probably the least soaked. :) pete, on the other hand, was definitely the most soaked. poor guy took a wrong turn (not surprising – the wind and rain were so bad that at times all I could see was my friend’s feet in front of me) and had to phone us and find his way over while we already ordering food.
the weather was just as bad after dinner, so we decided to take a taxi home – probably a good idea, but getting to and from the taxi still meant getting soaked.

this crazy weather continued all through monday. I went to my first class – had to wade through a river to get to the store, then passed a couple of waterfalls on the way to class – and discovered the entrance to the building had turned into a lake. I’ve never seen so much rain in my life. by the end of class I realised that sitting around in damp clothes was just going to make me sick (in retrospect, I think I already *was* sick) and skipped my second class – it was in a different building, so I had to go outside either way.

tuesday morning the sun was shining – but I didn’t go to class because I felt crappy. then I found out that thursday’s class was cancelled – yay :) so wednesday was the only day I went to all my classes. judging by the headache I got in the last class, maybe I should have rested an extra day. :P but I feel fairly good now. I just have to get that homework done before the morning. I guess I can go back to coding after class… wow, it’ll be the weekend again already. time really flies when you’re programming :)

{October 4, 2007}   bloody mondays

this week’s libs monday lasted an incredibly long time. now apparently we’ve got another one starting on friday – and in my timezone it’s been friday for 45 minutes already. :) looked like everyone was in panic-mode, getting in all those last-minute oh-so-important API changes.

this was quite amusing to watch on irc, but it did cause me a few inconveniences. I somehow ended up with a mostly-working build, except that keyboard shortcuts and konsole weren’t working, and decided that I’d rather not risk getting something more broken, so I left it at that and only updated the plasma folders for a few days.

after poking around in the code and banging my head against a wall for a long time, I finally realised the source of one of the bugs I was seeing – and once I fixed that, something in my head clicked :) I feel like I’m beginning to understand plasma now. yesterday I learnt about how the systray works, and got it to behave properly when stuff was removed.
as for today, after updating in the morning I found that the new desktop containment had broken the desktop right-click menu for me – and since my keyboard shortcuts weren’t working, this meant I had no way to run programs. I tried putting stuff in kde’s autostart, but that didn’t work, and somehow it wasn’t until the afternoon that I tried getting my xinitrc to run xterm for me :P I spent far, far too long investigating the cause of this problem, but at least I learnt more about plasma, and got a bit of experience with gdb too. :)

seeing as I’ve been on the computer all day every day since monday, I figured I should get out into the real world this evening. I went to the night market with some other students, and ended up buying sunglasses. I paid 3 times what they’re apparently worth, which isn’t bad seeing as I had no clue what they were worth while I was bargaining. :) but considering how often I lose sunglasses, it was a bit more than I should have paid. I guess next time I’ll be able to get a fair price.

right now I’m waiting for kdelibs et al to compile, and hoping that my keyboard shortcuts will magically return when everything’s updated. hopefully tomorrow I can go squash some more plasma bugs. :) although I guess I really should do some of my homework before the holiday is over…

et cetera