FreeSoftware to the fullest!

Category: my projects (Page 7 of 8)

KAlgebra Everywhere

Today when I got home I felt like doing something big, something new and something fast. As many other times, this turned into some KAlgebra coding rush but today it was a bit different, because it involved a new project in KDE: Cantor.

So what happened? Cantor is an interface for mathematical engines (supports Maxima, Sage and R) that works on worksheets instead of just a console as we do in KAlgebra currently, like many other programs that you might know like Maple for instance. What I did was to implement a KAlgebra backend for Cantor.
I have to say it was quite straightforward. Alexander Rieder, the developer, has been helpful and everything worked fine, which is great and surprising for such a young project, so kudos for Cantor! 🙂

This backend already supports code completion, syntax highlighting and some embedded help, it doesn’t support plotting or latex exporting ¿yet? though, but I hope this will be added at some point. I’d like to remark that it’s good to have such backend because it makes Cantor a project that properly integrates the tools that KDE-Edu provides and doesn’t just rely on (probably better) choices from 3rd parties.

So now we have 4 KAlgebra interfaces: GUI, Console, Plasmoid and Cantor. What’s next?

Here you can see what it looks like:
Cantor with KAlgebra

Cantor with KAlgebra showing help

Enjoy!

KDevelop4’s Documentation Integration

I’m back to you today to show something that we have been baking lately for KDevelop. It is its new documentation integration.

With KDevelop 4 we have been focusing on putting together the information that the user will be willing to read every moment. Until now, while browsing the code, we were only showing the information gathered by the C++ support. Since the last week this is no longer true, we can now show the documentation provided by the different documentation plugins. We only have a QtHelp plugin for now, but I hope the architecture will be flexible enough for the new plugins we will have on the future, such as, maybe, a Doxygen’s, cmake’s or anything the reader can imagine.

Here you can see a couple of screenshots that might give you an idea of how does it work so that you can see KDevelop 4, love it and try it.

– The information shown when hovering the DUChain:
Documentation support integration on tooltip

– The tool view on the right showing the requested information:
Documentation tool view inside KDevelop

🙂

CMake Help

After having been working on cmake so much during summer I having used so much the cmake console help interface (aka cmake –help-command-list and cmake –help-command , which is quite useful) I decided to build a little interface program so it could be used in a different/more intuitive way.

If someone wants to try it, you can check it here. It is written in Python and PyQt4, its my first project using PyQt actually. 🙂

PS: I only writed the interface and the cmake command calls, the texts are from cmake.

Back to blog

There has passed a lot of days since the last time I blogged. Meanwhile, I have been working on my Summer Of Code (which is CMake support for KDevelop). Now it seems to work, at least someone can load any KDE project and it loads successfully, and it should work with every CMake project, but I have used KDE as to test and it works, obviously there are some missing features but I am working on it to have them soon available.

The last few days I have been working on KAlgebra, I have brought support to piecewise to be able to run conditional operations which is quite good when someone work with libraries :). If someone want to try it just ask me and I will help you, I will give you just a couple of examples :).

fib:=n->piecewise { eq(n,0)?0, eq(n,1)?1, ?fib(n-1)+fib(n-2) }
fact:=n->piecewise { eq(n,1)?1, ? n*fact(n-1) }

The next days I would like to bring multiline input for KAlgebra (yes, have everything in 1 line is ugly) and I will add some new operators such as =,<,> etc to work with it.

See you!

Updating myself

Something like a month has passed since the last time I posted and someone asked me for a little update, then here we go.

Last month some important things (in my KDE life) happened. The first one is that KAlgebra was moved to KDE-Edu leaving kdereview module. I’m feel very excited with that, I’ve worked a lot on it and i like that someone uses it. Said that, I’d like to thank Anne-Marie Mahfouf for supporting me and the KAlgebra idea. If someone wants to know more about KAlgebra, you can try it from svn :P. I’ll talk about KAlgebra in the Akademy’s Edu and School day.

The second one is that I’ve begun working on my Summer of Code project and it is taking shape.

My main problem now is that I’ll be very busy in the next 20 days. Next week I begin exams and they will last until the 25th.

Bye!

C/C++ dependencies

So I decided that I wasn’t busy enough and I began to work with a little geeky project. I already don’t have a name for it (if someone has an idea please tell me!) but its goal is to graphically represent the recursive dependencies of every file in your C/C++ project.

I used the gnu c preprocessor to parse the files and Java to write it. Yes! Java to write a C-related project, it is a bit bizarre but it has its explaination. I used a module to represent these graphs that I made last quarter for the university and I didn’t want to write anything else.
Just to know, anybody knows a free nice and cool widget for Java or C++ that lets me represent graphs?

Anyway, you can find this project here, I’m planning to ask for a liitle room on sourceforge but I don’t know if I’ll keep on it so I haven’t asked for it yet. Some screenshots here.

Let’s play a bit

Yes, finally KAlgebra entered (with a dot hit🙂 to KDE edu’s playground with the intention to enter KDE edu in some way. I don’t know where KAlgebra is going to go, whether extragear or merged with Kmplot. If you want to try it, you’ll need cmake now and Qt4 as well of course. kdelibs4 is not still needed for KAlgebra, but for compiling the rest of playground/edu it is needed.

If you want to install it, you just have to install it as kde3to4 says or whatever you want. If you have any questions you can ask me here, by mail or by plane :).

KAlgebra organization

Hello World! Quite a lot of time has passed since the last post, too much I think… Well, I’ll try to explain a bit the KAlgebra’s file organization as I promised…
What do you think about calling the language: WASLE?
Continue reading

« Older posts Newer posts »

© 2024 TheBlindCow

Theme by Anders NorenUp ↑