Le blog de pingou

To content | To menu | To search

Tag - Fedora-planet

Entries feed

Monday, June 18 2012

Java JPA and rollback on MySQL

source.png

We (b8e5n and I) have been fighting for too long for this, so there it is dear lazy web.

Using the eclipse JPA (Java Persistence API) to connect to a MySQL database you might experienced some troubles.

Using the following piece of code:

transaction = manager.getTransaction();
transaction.begin();
try {
     // Add here your logic
     transaction.commit();
} finally {
     if (transaction.isActive()) {
           transaction.rollback();
     }
}

We kept running into the fact that the rollback never happened. The commit was performed or at least started and if something was going wrong at the database level (like an already existing primary key), the data already commited to the database would remain in there.

So yay for the half-commited data :-s

It took us a while but we finally ended up finding the solution on a lost corner of the web:

** Please take special note for MySQL database users: do make sure that your tables are InnoDB tables instead of MyISAM. If not, rollback will not occur.

Switching from MyISAM to InnoDB solved the problem for us, the transaction is either fully commited or not at all.

Hope this can help.

Tuesday, May 22 2012

pyRdfa

source.png

A bit of fooling around with the pyRdfa library

Continue reading...

Sunday, May 20 2012

PostgreSQL vs MongoDB

source.png

A comparative tests of postgresql vs mongodb

Continue reading...

Thursday, April 26 2012

Easyfix

English version

When someone new wants to join the community, often he/she does not know where to start. They are willing to learn and eager to help but they do not know where and how they can help.

easyfix aims at providing this information.

The idea is to have the developer/admin of projects hosted on fedorahosted marking tickets which they judge are easy to fix (ie: someone can come and fix the bug/request without a very deep understanding of the system). These tickets are then aggregating and presented in the easyfix page.

From this, it is easy to pick a ticket that looks interesting, contact the person in charge either by email or directly on the ticket and start helping :-)



Note: If you are maintaining/developing a project which is hosted on fedorahosted and would like to see your project added to this page, consult the wiki page it contains the information you need (and bug me if you do not understand them!).

Saturday, March 31 2012

Fedora - easyfix

English version

It is Sunday... Lazy Sunday... Your are home and beside doing the usual TV, couch and groceries, you are not doing much.

Suddenly, you get out of the couch and want to do something. But, hey, if you want to do something, why not doing something useful?

No, really, there is a bunch of projects outside which are only waiting for your help to improve and thus improve everyone's life.

I know, you are going to say, "but I'm don't know out to program/draw/translate/write documentation/package/<insert here what you like to do>". That's not the important thing, the important is that you are eager to learn!

Now, you say, "But I don't know where or how to start" and this is where the magic comes.

Sometime ago Ankur mentioned on his blog the use of the easyfix key word on the bugzilla. This is indeed a great resources and a great way to get started. But it covers only the bugzilla while there are many more projects on Fedora waiting for you.

Easyfix is a page agregating all kinds of easy tasks for all kinds of different project within Fedora. These tasks can be on the FAS, of the fedora infrastructure or any project hosted on Fedora Hosted.

This page is a door, a door to a new world.

How to use it ?

That's pretty simple.

Go there, find a task or a project that you would like to work on. Contact the person in charge either on the ticket, or by email or IRC and just get started ;-)

I know, you had planned to moan the grass today, but you'll see it feels rewarding to feel useful to the whole communty ;-)



PS: You have a project of yours on Fedora Hosted and you would like to be part of this project? That's an easyfix (;-)) just add yourself to the easyfix wiki page.

Friday, March 16 2012

Mailman archives and mongoDB

source.png

The results of my fooling around with mailman archives and mongodb

Continue reading...

Tuesday, March 13 2012

Python notes to self

source.png

Small python optimization that I should really follow

Continue reading...

Sunday, January 8 2012

fedora-create-review

source.png

A small tool to automatically generate review request.

Continue reading...

Tuesday, January 3 2012

GitSync - 2

source.png

A home-made dropbox-like using git, cron and python - with multi-folder support

Continue reading...

Monday, January 2 2012

GitSync

source.png

A home-made dropbox-like using git, cron and python

Continue reading...

Wednesday, November 23 2011

R update to 2.14.0

rpm.png

R 2.14.0 is out and gave quite a bit of work.

Continue reading...

Sunday, November 13 2011

Radicale, host your own calendar

rpm.png

Install and configure Radicale on your Fedora/RHEL server

Continue reading...

Fedora-review, help yourself!

rpm.pngsource.png

Fedora-review is a tool to speed up review process

Continue reading...

Saturday, November 12 2011

New R2spec \ó/

rpm.pngsource.png

Re-write of R2spec in the version 4.0.0

Continue reading...

Thursday, November 10 2011

Retrieve specific source from github

rpm.png

URL to tarball for github projects

Continue reading...

Sunday, November 6 2011

Backup a symbian operated phone on Fedora

source.png

Small hacking to backup a symbian operated phone on Fedora.

Continue reading...

Saturday, November 5 2011

Some stats on the Fedora-fr forum

source.png

There are some statistics on the forums from Fedora-fr.org

Continue reading...

Wednesday, October 12 2011

Jena, virtuoso and option transitive

Virtuoso has a specific syntax option(transitive) which need a little trick for Jena.

Continue reading...

Wednesday, September 14 2011

CLI for revelation

source.png

A small CLI for the password manager tool, revelation

Continue reading...

Friday, August 19 2011

Parrallel programming in python

source.png

A small example on basic parallel programming in python

Continue reading...

- page 5 of 6 -