04.08.2009

Sidebar bug resolved

posted by Karsten

Richard Hussey kindly pointed out, that there was a small bug in the sidebar (the area underneath Profile pictures) when viewing your personal page.

Normally there shouldbe a section called "Forum & Blogs", however this didn't show on personal pages. This has now been resolved. It was a bug in the ELGG code, where a piece of code was inside an ELSE part of an IF statement. I have now moved it outside this block, and it seems to work fine. Yay!

Share
Tags:
20.07.2009

Login code changed

posted by Karsten

I've had a few complaints coming in, that it can take a long time to authenticate from outside the Uni, especially when using a non-Uni account.

I've made a small change to the authentication code, which hopefully should rectify this. Most users should not feel a difference, but if you do, please notify my.

Share
01.04.2009

Captcha

posted by Karsten

After a nugde by Phil I was re-ignited to do something about our captcha system. It really doesn't make sense that logged in users have to verify that they can read letters, when they have already shown the ability of writing a valid password.

So I've changed it so that only comments from anonynous users need captcha verification…

Share
Tags:
05.03.2009

Xmpp connection from within Firefox extensions

posted by Karsten

In the MeAggregator project I need an Xmpp chat connection from plugins to the central FFS (don't mind if you don't know what an FFS is…) And I have tried using several Javascript libraries (Xmpp4js, JSJaC and Strophe) from within XUL, all of which ended up in hilarious fun and no resulting xmpp connections to the openfire server I'm running.

I've now found that I probably should  have used the Firefox add-on search instead of google to find these libraries, as this morning I found Xmpp4moz which is a library dedicated for xmpp connections from within Mozilla extensions (also other than firefox extensions), so I now have a connection through to the openfire server and the real deveolpment can commence…

Share
04.02.2009

RedGloo – New notification functionality

posted by Karsten

I've just implemented a notification option for communities. If you are a member of a community, you can now choose to recieve notifications when a new blog has been created.

Just click the option underneath the community picture, and you'll receive notifications. (Remember to turn on general notifications if you have turned them off previously.)

I hope this will be useful for group work within communities!

Share
14.12.2008

MeAggregator server problems

posted by Karsten

I'm working on a MeAggregator Server, which has been causing me great problems. The biggest problems have been with getting the roster functionality of xmpp4r to work under rails.

The need for this is to validate and display the actual status of the FFS. This is quite important is this will allow code to start and stop the services of the MeAggregator.

Unfortunately this hasn't been easy. First off I started developing on a Windows box at work. I coded in the roster in each function call. This didn't work as the xmpp4r library only keeps a running status of registered users, thus if the roster was created for each call, the roster would be empty each time used, this resulted in the code showing an offline FFS even though it was online.

This lead me to think that I should create a service running along side rails handling the xmpp connection. I found the rails plugin backgrounDRb which should do exactly this. I installed it, and discovered after a while, that for the same reasons that a abadoned creating a bespoke solution this didn't work! BackgrounDRb apparently doesn't work on Windows machines.

Luckily I'm not tied in to any computer systems (as long as I don't have to use Mac which I would regard a degrading OS for a developer 😀 – not really…) so I decided to set up a development environment on my ubuntu laptop.

This didn't take long. But this was the only thing that didn't take time. I couldn't get backgrounDRb to work on my machine. Nothing worked. I kept getting strange internal exception from backgrounDRb. I found the http://mayurjain.wordpress.com/2008/08/08/no-such-file-to-load-log_wor which claimed that the solution would be to use version 0.1.5 of packet instead of later versions. This was odd, as the documentation claimed that v 0.1.7 or later was neccesary for backgrounDRb to run. And obviously this didn't work… Although the background server did start, which was more than before, it simply didn't work when starting p the actual service.

So I started digging into the mailing list of backgrounDRb, and there I found a poor soul, which had similar problmes on a Mac. The suggestion there was that parts of packet seemed to be outside the path, and thus didn't work.

Now I would have hoped that a gem like packet once installed, and a plugin like background using it, would be able to use it without the need of it to be on the path! But todays work has shown that this simply isn't an assumption which can be made!!?? Because when I did a PATH=$PATH:/var/lib/gems/1.8/gems/packet-0.1.14/bin/ in my terminal where running backgrounDRb it worked!!

I am obviously happy it works, although if this issue had not been the re, I would have had this result probably 4-5 days ago, leaving me with these days to do something productive, rather than debugging like this!

Share
25.11.2008

PDF files not shown in IE

posted by Karsten

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

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

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

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