Javascript support in anjuta

21. December 2009

Finally, after far too long time I found time today to merge Maxim’s great Javascript support patches from GSoC 2009 into master. You find screenshots and more information on his blog.

Thanks a lot for your work Maxim!

P.S.: Remember that scipting is for loosers while C is for real (wo)men 😉

The great people from gedit/gtksourceview finally implemented a new completion engine for GtkSourceView which allows us to drop lot of ugly custom code in Anjuta. But it also has some cool features:

  • Combine auto-completions from different sources (called “providers”)
  • Add auto-completions in an asynchronous way
  • Support to add extra information to the auto-completions

For now, Anjuta uses only the first two but it’s really planned to add API Help for symbols.

Despite having a more stable and tested code and a nicer UI that means that he will never be disturbed while typing because the editor is searching for auto-completions to appear. Instead all this now happens in background and it really feels fast. This also gives us a possibility to add macros/snippets directly into the auto-completion framework. Screenshot:

completion

There are also some other interesting things coming soon:

  • a better engine for C++ (auto-completion of class-members, etc.)
  • GSoc JavaScript plugin which needs to be merged
  • a new bison/flex based automake parser as project-manager backend (probably won’t be finished until 3.0)
  • a completely rewritten git UI

GtkNotebook action widgets

9. November 2009

Remember the good old days when bug nummers started with 1xxxxx? Well, now we have one bug less in this area, GtkNotebook finally supports widgets in the tabs area:

GtkNotebook with action widgets

GtkNotebook with action widgets

(Note that the buttons here are just examples and this was done mainly for testing purposes).

Why could this be useful:

  • Firefox-style “Add tab”-buttons
  • Saving space when dealing with notebooks that have a constant (and low) page number
  • probably much more

There is nothing in the HIG yet of course and you should use it with care. I hope it’s useful though.

Credits go to Carlos Garnacho for the original patch and to Mathias Clasen for reviewing my patch and adding GtkBuilder support. Also thanks to Openismus for letting me finish this!

FedEx woke me up today…

22. September 2009

…and brought the new Google Summer of Code Shirt:
New GSoc T-Shirt

The main feature of the T-Shirt is being not black and actually really looking kind of non-geeky which makes it possible to wear it outside geek areas.

Glom on maemo fremantle

5. September 2009

Glom now bascially starts up on maemo fremantle which means that gtkmm, libgda, libgdamm and pygda are working together now on the maemo platform. Of course lots of bug-fixing and UI work left to make this really cool.

Screenshot:glom-shot

(Disclaimer: This is a political statement, so only read on if you can cope with it)

It all came into my mind again when seeing all the reports about the phase out of light bulbs starting from 1st of september in European countries. Apparently this isn’t a major issue for most people except the Germans who always fear to loose something.

Anyway, in all this reports it was talked about that this moster called “EU” has decided that no more light bulbs may be purchased. It was never talked about that the EU doesn’t decide anything but contrary as in every democracy, it is the people who decide.

In this case the proposal was made from the european commission which consists of 27 commissioners from the European countries approved by the European Parliament. A few months ago all Europeans had the right to elect their MPs though actually not so many did (less than 50%). If they had wanted to keep the light bulbs then they could have voted for it, but they didn’t.

I am writing this to conscientize people that sentences like “Brussels has decided…”, “the EU demands…”, etc. simply are not the truth. YOU ARE THE EU, YOU DECIDE!. And if you are dissatisfied with the decision it is up to you to change the European government.

Do you really want a light bulb to light your room that needs more energy than your laptop?

Update:  Some people state correctly that this is an indirect democracy so you can’t influence the decisions directly – that’s true. But it is the way most countries are governed because otherwise things become difficult to organize. And yes, you don’t vote the commissioner directly, but indirectly through your local parliament.

Update2: About this Mercury thing – there is excellent information available on this –  please use google.

in ehttp://en.wikipedia.org/wiki/Phase-out_of_incandescent_light_bulbs

In case someone is wondering why I am not responding to mails or in general constributed only very few things in the last weeks I was mostly full-time working on our second year formula student car:

This is the first year we are participating both in Silverstone (FSAE UK) and Hockenheim (Formula Student Germany). After we failed horribly in Hockenheim last year with a half-finished overengeenered car our big aim this year was to have a running car. And actually things worked really good, we finished all disciplines.

We had some technical problems in acceleration and the drivers need more practice for skid pad, so we did not yet get good results there (look for car 74 – University of Erlangen). But after we already had a good pace in the sprint, we managed to offer an absolutely fantastic endurance result in difficult (english) weather conditions and finished in 3rd position. Overall this puts us on the 16th place in the overall results which is better than we could ever dreamt off.

We have two busy test weeks until Hockenheim and hope to be lucky again there and probably even improve our results further!

Links:

Things started nice with a normal flight from Las Palmas to Madrid yesterday even though the organisation could have been better on the Gran Canaria Airport. After arriving in Madrid I was heading to the gate for the flight to Frankfurt. I eventually made it in time and boarded Iberia flight 3516 schedules on 16:00. We then taxied to the runway and the aircraft was accelerating and suddenly after about 1/4 or the runway, the pilot reduced thrust and the takeoff was aborted.

While this was not really a quite nice thing to notice, things started getting worse now. After some discussion with people from the technical department of Iberia we taxied back to the gate with the pilot speaking of not further defined technical problems (he probably said some more interesting things in spanish though, which I didn’t understand).  After another half and hour we were asked to leave the airplane and proceed to another gate at the other end of the airport.

About an hour later we borded another aircraft there and things looked like it could finally work out. After the usually security advise we taxied again to the runway but in the end never reached it and got back to the gate which a rather annoyed and angry pilot telling us that we have technical problem again. (Some people metioned to me that he said “I won’t fly with this aircraft” in spanish but I cannot say that for sure). Half an hour later we also left this aircraft and where still stuck in Madrid with people getting nervous and others that suffer of aviophobia starting to cry.

Sorting out our options that using the train to Frankfurt would take about 19 hours and that a proper Lufthansa flight would cost us more than 1000 Euros most of the people got back to waiting for things to come while the first now decided to leave Iberia forever and try to find some more luck elsewhere.

Two and a half hours later and after we got a free sandwhich from Iberia (which was never announced but people found out somehow) yet another aircraft (the third one…) left Madrid at 22:00 and luckily arriving in one piece at about 24:00 in Frankfurt. This of course made me miss the last possibility to go home by train by about 2 hours so I was stuck in Frankfurt until the first train left in the early morining. Luckily by that time I knew most of the passengers of the flight personally and spent the time having a nice conversation with a girl who had started her journey 48 hours earlier in Honduras and was now also waiting for finishing the last 200km

Just a few of the reasons I will never use Iberia for any flight again:

  • There was absolutely no information on the technical problems nor was there any member of the crew which could make announcements in proper english
  • Service was bad on all flights and they didn’t even give people something to drink for free after getting stuck in two aircrafts
  • They refused to give any reimbursement for the inconvenience (have to go into that though)
  • The seat pitch is absolutely ridiculous

As I write this I got a message from André that after waiting 90 minutes in Las Palmas their aircraft got eventually evacuated.

Have a nice flight – but use sane companies…

Anjuta UI work

12. June 2009

Based on the awesome work from Joel Holdsworth making it possible to add custom widgets to the dock item grips, I finally patched anjuta to use this ability. This can save quite a bunch of pixels:

Anjuta with new buttons in grip feature

Anjuta with new buttons in grip feature

Old pixel-wasting version

Old pixel-wasting version

There may be still some style issues especially for the message window tabs. Suggestions welcome!

I just created a tiny ppa which contains anjuta and gdl 2.26.2 as Ubuntu is a bit slow in updating those. If you are a jaunty user I really recommend an update to the latest stable version which contains some important bug-fixes:

PPA for Johannes Schmid