Archive for the ‘RedGloo’ Category


25.11.2008

PDF files not shown in IE

posted by Karsten

in elggcontent, RedGloo

Phil Flynn brought to my attention that pdf files couldn't be viewed when saved in RedGloo's filesystem. This came as a surprise to me, as I definately could view them. I tried for sanity sake to view the file using IE (I use Firefox) and it didn't show…

This really surprised me, and I tried to look for several options. By chance I found a MS bug report where it was tied to the https protocol (MS claiming it as expected behaviour). I tried to view the pdf file using the http protocol. This worked!

I have now removed https from the default url, and only use https for login purposes. This is something I wanted to do for some time, but didn't get around until now…

Share
Tags: , ,
04.11.2008

Smack Library Bug

posted by Karsten

in RedGloo

For the better part of 1.5 days I’ve been bug hunting a problem in the MeAggregator code base. The problem arised when accessing a Smack library bespoke client using the Ruby xmpp4r library utilising the the Smack ChatManager (via threadid feature of Xmpp). Every so often the Smack client would seem forgetfull and forget about the thread and create a new one, even though the thread clearly was in use.

I tried everything debugging-wise, believe me, and was starting to give up. But I can now, gladly, declare that I found the bug. 8)

The Smack library store all the treads in a ReferenceMap using new ReferenceMap<String, Chat>(ReferenceMap.HARD, ReferenceMap.WEAK);

Unfortunately this allows the garbage collector of Java to remove the thread if it can’t find any references to the thread string in the memory. Obviously as all other references to the string isin Ruby these will be thrown out.

I’ve now added a simple hashmap to the code which stores the string / chat combination on the java side, and it works!!

I can see why Smack would like to free the memory, but I really believe this behaviour ought to be documented in the javadocs of Smack, so that the code can make provisions for it.

I probably should let them know…

Share
Tags: , ,
20.10.2008

Better Facebook Advertising

posted by Karsten

in RedGloo

I've always been a bit puzzled as to how bad FB is at advertising. They've offered me dating site well knowing I'm married. They've offered me stuff I didn't understand just because I surfed from a boring hotel in Athens… etc…

Today I was surprised. I've just arrived home from Copenhagen and I'm going to Holland tomorrow for another conference. So I thought I'd update my facebook status to something like "back from Copenhagen – Tomorrow Holland". The first advert to be shown after this, was for a hotel website with free accommodation in Holland.

Extra points to Facebook!!

Share
Tags:
18.09.2008

Hej – Me speaks no Englsih, Me speaks Denmark

posted by Karsten

in RedGloo

Hi All

Seriousely – I do speak English – but – yes, I do speak Danish as well, although not as well as I used to…

I moved to England 6 years ago, and started studying CS here at the Uni in a relative old age of 32. This will not be focussing so much on the age issues, afterall ageism is apparently illegal these days, so that shouldn't affect you too much 😉

I'll try and remember now it was being a "foreigner" in a British University. I say try as I've been working for 3 years as a researcher, so I am turning more and more British every day…

There are certain aspects of studying / living here that for Europeans – read non-Brits – are quite different. I'll try and list the differences in no particular order here:

  • It is all in English. In your home country the books might have been English, but here they speak it as well. Seems obvious, but actually it isn't, as many of the lecturers are from parts of Britain with "funny" accents or even foreign as yourself. Try and focus especially in the beginning. You'll probably get extreemely tired the first couple of weeks.
  • NUS is the students union – not a workers union, a place to hang out, buy your snacks, party, play sports and / or get advice if you have no clue what to do.
  • Halls – students live here – it is also a part of a house, just not in this context.
  • Address – The University keeps wanting your home address. This is NOT the address you live, but the address of your parents. Although you have moved away the government in the UK still believe you live home. This is actually not as bad as you think, because you don't get to pay the same rate in tax (most likely nothing), and the parents aren't here to watch you anyway. The only thing you have to make sure is, that they don't send important information to this address. The Uni thinks you will be at you parents in the holidays, which might and might not be true
  • Cars drive on the left side of the road – if you try to use a bike, please do the same.
  • Car drivers generally don't know how to react to bikes – so if you come from a country with many bike riders, chances are that you have to re-learn the traffic pattern of biking.
  • There are many strange sports on the tv, embrace them, they are actually better than football. Football, although popular, is mostly shown on pay tv, so go to a pub, or even better go to a stadium.
  • Don't say 14 o'clock -this confuses the Brits – say 2 PM
  • Half 2 is the same as half past 2 – not half past one.
  • Cheers is both something you say when drinking and a way to say thanks.
  • British food, contrary to the rumour, is extraordinarily good. Try it – don't just eat Italian or Indian. I can recommend Sweeney and Todd's downtown for pies, and most pubs makes good decent brit food. Kebabs are best in the evening…

This is what I can think of from the top of my head. Most of all, enjoy it here!!

Share
11.09.2008

MeA vs Mono grievances

posted by Karsten

in RedGloo

Out of the blue I’ve started getting a dll exception when running the MeA code! This is definately the last thing I needed as I’ve now got to reinstall Mono, and fiddle with annoying unproductive things!!

Share
Tags: ,
22.08.2008

MeAggregator and Ajax Extensions for ASP.NET

posted by Karsten

in RedGloo

I post this here, because it probably isn't an issue for the MeAggregator not Ajax Extensions, however a glitch on my computer, which could have importance for others.

 

Yesterday I had problems with the code he had committed showing a multitude of errors. I notified him from home, and he told he that the client view, that hehas developed, is using the Ajax Extensions for ASP.NET. This shouldn't be a problem as Mono has an implemented version, and MS provides it in .NET3.5 and has installers available for older versions.

On my home computer this library was already installed, and I jumped up to test it. It worked – celebrations!

This morning I began installing the library on my work computer, but it turned out I already had it installed!! Checking the GAC, for sanities sake, it was there. But VS2005 couldn't find it!!?! I unstalled the library and re-installed – no luck!

So in desparation I went into the references in Rob's code, removed the reference and re-added it. Now it is found!!

So it works – I think – but this is a bit of a scare, and I've written this for future reference… 

Share
13.08.2008

Spam

posted by Karsten

in RedGloo

I just had a spam comment on one of my blog entries. We probably ought to look at tightening up the captcha

Share
Tags:
03.08.2008

Google rating survey

posted by Karsten

in RedGloo

I was surprised to see somebody advertising chocolate here at our beloved RedGloo. I thought I'd better check how high we "rank" on the words "chocolate tasting", and we are number 8!! Maybe one should start a pro blog here…..

Share
18.06.2008

Yet another Un-Conference blog

posted by Karsten

in RedGloo

So I attended an un-conference for the first time in my life. I’ve always been intriged about the concept, both because it seems odd that it should work (no agendas! Can academics really do that?!), and because I would like the concept to work.

I’m pretty sure now that the concept of un-conferences can work. It certainly did for us. We had a very free flow of interesting ideas and discussion of them in the two small groups (at least in ours, and from the sound of it also in the other) I think the reason it did work are manyfold, but especially because we were all interested in the same area of digital identity, and reasonably open in sharing experiences. I liked that the fast exchange and flow almost made it into a brainstorm session.

This fast pace was hampered a bit in the afternoon, because we decided to go with only one group. It did work, however I found it a bit frustrating at times, because it was difficult to air one’s own opinions and ideas. Some of the intimacy of a small group was gone too. For instance when sharing something personal (and we did, afterall we were using examples from our own identities) in a small group, it feels easier to do, because you have more time to elaborate and discuss it, whereas in the bigger group it seemed “digested” faster, thus perhaps scewed a little bit from the intention of the “sharer”.

My brain was full after the day was over, which is a very good sign, and I want to have more of these kind of sessions!

Share
Tags:
23.05.2008

Gtk.TreeStore

posted by Karsten

in RedGloo

I think I've found an error in the Gtk library. I'm using a Gtk.TreeStore to store information, and as this could be many different kinds of objects I set the type to object. But nothing would work properly. I'd spent the better of 6 hours toying with all kinds of setting, before I tried changing the type to string and use the tostring on the different objects. Voila now it stores everything…

 

This is bizarre, because the documentation states that any object can be stored in the storage… At the moment I can't be fussed to look into the library to find the cause, but I write this merely so that I might remember 😉 

Share
Tags: ,