Turistane mine har reist ned igjen. Eg har vondt i kontoen. Snøen har byrja å smelta.
Det finst noko som heiter geotagging. Det betyr at du legg inn info i eit bilete om kor du var då du tok det. Så kan du t.d. få fotosamlingsprogrammet ditt eller web-galleriet ditt (jadå, eg veit) til å lenkja automatisk til t.d. Google Maps. (At dei har elendig Svalbard-dekning ser eg vekk frå akkurat no.)
Dette kan gjerast manuelt, eller ved hjelp av ein GPS. GPS er sjølvsagt enklast, men det er eit par ting å passa på, i alle fall viss du har ein Garmin GPSMAP 60CSx. Denne er nemleg så viseleg innretta at han ikkje berre automatisk lagrar alle stader du har vore (med GPSen slått på) heilt til sporminnet går fullt, men han er også så smart at når du lagrar sporet ditt for å ta betre vare på det, så krympar han det ved å ta vekk punkt der du har gått i rett linje eller gått sakte, slik at sporet ikkje tek opp stor plass. Og for å vera ekstra lur så filtrerer dingsen vekk uvesentleg info så som høgde over havet og klokkeslett.
Utan klokkeslettet er det ikkje mogleg å kopla fotografi med GPS-sporet. Takk skal de faen meg ha.
Løysinga er ei av:
- Last ned den aktive (og dermed ufiltrerte) sporloggen før du lagrar på GPSen, og bruk denne i geotagging-programmet ditt.
- Bruk funksjonen som i alle fall min GPS har, og sikkert eit par andre av dei nyare Garmin-modellane har, som er at han lagrar GPS-sporet kontinuerleg til minnekortet i tillegg til den vanlege sporloggen. Dermed har du ein separat sporkopi som GPSen ikkje gjer noko meir med.
Eit veldig fint Mac-program til å leggja inn GPS-info i fotografi er GPSPhotoLinker (gratis, lukka kjeldekode). Det kan lasta ned spor frå GPSen sjølv, og kan skriva til RAW-filer (risikabelt, men fint). Eg veit ikkje heilt kva som finst til Windows eller Linux, sidan eg ikkje har leita.
It turns out FreeCol is starting to look quite good. Yay free software!
int main (int argc, char **argv)
{
void * handle;
void * cli;
handle = dlopen("./brugs.so", RTLD_LAZY);
if (handle)
{
*(void **) (&cli) = dlsym(handle, "CLI");
*cli();
dlclose(handle);
}
return 0;
}
Varför gör dom på detta viset?
I’m back. It was a hectic week. But fun. Seems I know what BLAST does now. Nice to have my ideas adjusted by the experts.
So, I’ve been in Cold Spring Harbor Laboratory (NY) since Tuesday, learning about computational and comparative genomics. It`s been very interesting. Lots of information-dense lectures and workshops about things I need or will need to work with when I return to Oslo. And the culture shock hasn’t been too bad. Food as expected: Sweet and greasy. But frequently good. Lecturers very good. And the other participants are an interesting bunch, plus the lab itself is a nice place. I have some pictures in my camera, that magical place they seem to never leave.
Snart kjem Firefox i versjon 2. Mykje nytt og fint, og det beste er nynorskomsetjinga.
Bloody vikings.
The spam bastards have found me again, but the spamcatcher built-in in Wordpress seems to work nicely. Very nicely. Not that I had much legitimate comment traffic in the first place.
I need to use MySQL in one of the projects at work. Fair enough, databases are useful little thingies. Big thingies. Frustrations mount quickly, though.
Example.
- Dataset in text file contains N unique rows which I may want to update now and then.
- N is large.
- No column value is unique to each row, so there is no natural primary key.
- Every row is guaranteed to be unique.
- Does MySQL have some operator, procedure, function or command I can use to avoid duplicate rows when updating database from new text source? Can’t find any.
Okay. Listen up. For any project worthy of a FAQ, the first, the first question answered is the following: What is this?
Got that? Right. Now behave, or the wall is next.
LaTeX is full of wonderful features, many of them slightly hackish to make us feel 1337. But some minor issues are rather annoying. My favourite peeve: Fonts. Installing a font in LaTeX is too painful. I avoid the issue. What about familiar TrueType? Or easily available and frequently high quality OpenType fonts? No, no. Not in teTeX. Too… easy. Too… modern. So I use whatever is available. Which one’d think was perfectly fine, since UiO has many wonderful text fonts available in its LaTeX. But, alas, not many math fonts. I’d prefer to do my M.Sc thesis in Concorde or Garamond, but there are simply no math fonts available to go with them. The Euler font is a no-go. It’s too different from any sane text font. It’ll make separate math environments warm and cuddly to behold, and inline math constructs ugly ugly. So I’m stuck with Palatino and Math Pazo, which are at least free and don’t print as badly on a standard printer as do the Computer Modern fonts. (I could have used Lucida Bright fonts, if I liked them.)
I dag hatar eg datamaskinar. Dei som har lyst til å vita kvifor kan prøva å få convert(1) til å konvertera ei EPS-fil til høgoppløyst PNG.