News

Darkserver in production

Friday, March 23rd, 2012 | Fedora, News, Python | No Comments

In the last few days we managed to get Darkserver live in production. Thanks to Nirik and Dgilmore, without their help it was not possible.

This service is providing the API(s) based on which other developers can write tools to query details of build-ids. We Have build-id in every ELF we build from Fedora 8, but there was no good way to query them. More details on why we need the service can be found at the wiki page.

For now it is handling only primary architecture builds. Within last 4 days we have around 118k build-id(s) in the database.

I am working on a small command line client for the same, called darkclient. Hope to have the first release out in next week.
API details can be found at the home page of the service.

Tags: ,

Michael Foord’s python-mock for testing

Thursday, March 22nd, 2012 | Fedora, News, Python | No Comments

The project page is here.

Why you need it ?
Say you are writing unittests for your favourite application  and in some function you are using xmlrpclib module to interact with a web-application. Now for testing you can easily mock that interaction out, which will help to run your code in fast and easy way. Mocking database calls can be another example.

Example:

import unittest
import xmlrpclib
from mock import patch

class TestFoo(unittest.TestCase):
    """
	A simple test
    """
    @patch('xmlrpclib.Server')
    def test_first(self, mock_xmlrpc):
        m = mock_xmlrpc.return_value
        m.multiply.return_value = 6
        server = xmlrpclib.Server("http://kushaldas.in/")
        res = server.multiply(2, 3)
        self.assertEqual(res, 6)

if __name__ == '__main__':
    unittest.main()

In Fedora you can just yum install python-mock.

2 days of Fedora and python workshops in Durgapur

Monday, March 5th, 2012 | dgplug, Fedora, FOSS, News | No Comments

With help from local dgplug members we had 2 days of workshops on February 17th and 18th.

The idea was to introduce Fedora to the new students and various tools which they can use to develop their skills. This time we tried to get only interested students into the workshops.

Day1: We started around 11am in the seminar hall, had around 45 students attending the first talk on FOSS in general and then about Fedora. Existing contributors like Sayan, Biraj also talked about their experience, how they started their journey.
After lunch break we started python workshop, we had to introduce the terminal and various commands to them before I started talking about python. Most of them were being able to catch up and solve the small problems I gave. We closed for the day around 5:30pm. I stayed back in the Boy’s Hostel and had chats about various projects students are working on.

Day2:
Though we started a bit early but we had almost every participant from previous day. First workshop of the day was on Vi.
In the second half we again started with python but going into more details. Showing them how they can start working on a project, how to do their lab assignments using existing tools in Fedora.
These students can see their seniors who already started contributing to various projects. I hope some of them will follow the path.

 

I am going to FUDCON Pune

Monday, October 31st, 2011 | Fedora, News | No Comments

FUDCON PUNE

Colour colour everywhere :)

Monday, March 21st, 2011 | life, News, Photography | 2 Comments

It was time for Holi once again :)

Was in the action with my new 24-70. Found people totally drowned in colour

DSC_0098

DSC_0296

Little kids enjoying as much as they can

DSC_0167

Among all the chaos and fun and colours, still found people alone while trying to dry up.

DSC_0204

Many smiling faces also.

DSC_0267

DSC_0317

People dancing with all crazy styles.

DSC_0367

DSC_0424

One can find the whole set here.

Tags: ,

How to use lekhonee-gnome for multiple blogs with the same wordpress account ?

Friday, June 11th, 2010 | Community, News | 1 Comment

I was looking into this feature request yesterday, good news is lekhonee-gnome already supports this. Lets say your wordpress username is foobar.

So, in the accounts in Preferences window you add the first account with your username and password and WordPress as service. 
Then add another account with same username and password but service as other and type the full url of your 2nd blog following /xmlrpc.php (example: http://secondblog.wordpress.org/xmlrpc.php). 
Now you can access both the blogs from lekhonee-gnome

Tags: ,

Search

Archives

Categories