OSX crashed on me while i was trying to update firmware. Instead of recovering it, i decided to install Fedora 18 on my MacBook.
I had made couple of Fedora 18 x86_64 DVD’s for the Fedora freemedia program. I grabbed one of them and started the installation to find myself dropping into a prompt. Apparently it is one of known issues with the Fedora 18 CD/DVD. After typing in ‘(cd0,apple3)/EFI/BOOT/grub.cfg’ the installation started. There was no problem with the installation.
I am used to natural scrolling, enabled it using the following setting
$ cat /etc/X11/xorg.conf.d/99-wt-natural-scroll.conf
Identifier “Natural Scrolling”
Option “ZAxisMapping” “5 4″
I like my function keys, following sets the fn keys as primary in the apple keyboard
$ cat /etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2
Above option also can be passed using kernel command line. You will have to edit the grub.cfg for that /boot/efi/EFI/fedora/grub.cfg
By default Fedora 18 didn’t detect my broadcom wireless network card (Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02) to be exact) It needed a proprietary firmware. I downloaded b43-firware module from “russian fedora” http://pkgs.org/fedora-18/russian-fedora-nonfree-i386/b43-firmware-5.100.138-1.fc17.noarch.rpm.html and installed it. After the reboot things started working.
The proprietary driver doesn’t seem to support power management, it may cause problems during suspend/resume operation. So i instructed the power manager to unload the module while suspending the machine
$ cat /etc/pm/config.d/defaults
GNOME 3 Desktop often doesn’t get show up after unlocking the screen https://bugzilla.redhat.com/show_bug.cgi?id=878736 If it happens press CTRL+ALT+F2 , login via tty and run ‘DISPLAY=:0 gnome-shell –replace’
The new kernel kernel-3.8.2-206.fc18.x86_64 panics while booting on MacBook Pro https://bugzilla.redhat.com/show_bug.cgi?id=922175
The newest version of python-requests now supports python 3. The python 3 version of requests is available as python3-requests package. Thanks Rex Dieter for the patch https://bugzilla.redhat.com/show_bug.cgi?id=807525 . I have also decided to maintain python-requests for EL6, i have pushed the latest version 0.11.1 to EL6.
Though it violates the updates policy https://fedoraproject.org/wiki/Updates_Policy, i have updated python-requests from 0.6.6 to 0.10.8 in Fedora 16 as python-requests is a fast moving young project.
All the packages should land in updates-testing in a few days. Please visit https://admin.fedoraproject.org/updates/python-requests to learn more about the updates.
I was invited to visit Sastra university – Trichy for a workshop on Free Software. I joined with Aditya and Srishti at KPN office bangalore. We boarded an air-conditioned sleeper coach by 11.30 P.M and reached Trichy by 6 AM. The road was bit bumpy, i couldn’t sleep much. As expected Trichy was much warmer than Bangalore in the morning. Trichy main bus stand has couple of Kamaraj statues. Sristi was surprised to see the ‘Golden’ statues of kamaraj.
While we were discussing about kamaraj, our cab arrived. The Sastra university is 45 minutes drive from Trichy. It is located between Trichy and Tanjore. We were asked to stay at the Guest house.
By 10 A.M i started my session on Free Software at one of their ‘smart classrooms’. I explained students about free software and its importance. My second talk was on GNU/Linux Commands, the talk was based on Stanford universities open classroom session on PracticalUnix. Students tried various commands on their laptops as i explained them. Aditya introduced python and Srishti introduced QT to students on the first day.
We had a good dinner at ‘Canopy’ Sastra’s canteen which is being managed by students. We finished the dinner with a tasty creamy cold coffee sponsored by Srishti. I was very tired after travel; so i went to bed early.
After a good sleep, I started the second day by introducing Django to students. I explained Django by creating a small blogging application. Many students tried to follow my instructions and came up with the small blogging website (Yay!). Next I joined with Sristi and introduced git revision control system to students using Shakthi‘s ‘di-git-ally-managing-love-letters‘ presentation. The students loved it! Aditya did a workshop on puppet on the second day. We also met the I.T department professor and had a little talk. She presented us with a memento .
By 6.30 P.M we left the college by saying good bye. We had to board the bus at Tanjore. Tanjore is famous for its Brihadeeswarar Temple. It was built on 11th century. We visited the temple and spent some time there. After dinner , we boarded the bus back to Bangalore. Srishti took lot of pictures during the visit (will be uploaded soon)
My flight reached at Pune 15 minutes before the schedule. Vaidik and I planned over IRC to share the cab from airport to the hotel. His flight was 30 mins late. I was not able to reach his mobile phone even after his flight landed. We never seen each other before. Finally i noticed a guy with a ‘Drupal’ T-shirt, i decided to bite the bullet and asked him “Are you vaidik?” Fortunately the answer was a ‘Yes’. By the way vaidik helped us with the fudcon.in website.
While i was waiting for Vaidik to book a cab, I heard some one asking me “Are you going to FUDCon?” that was .Srishti Sethi Gcompris contributor and GSOC student . Apparently she too identified us using our “Geeky” T-Shirts. We three ended up sharing the cab.
Moral : Wear a geeky T-shirt when you are going to a Technical conference.
We all had breakfast at the hotel and hopped into a van to reach the FUDCon venue. We were welcomed by Amit, Shakthi, Rahul and others Day 1 of FUDCon started with jared’s talk. He only used pictures in his presentation and did all the talking. His talk was thought provoking. After the keynote address i went to speaker’s lounge to prepare for my afternoon workshop. I met Joerg there. I introduced myself as maintainer of sqlninja. Joerg gave me commit access to security spin’s repository. I promised to help him with the future security spin releases..
In the afternoon, I did a workshop on “Practical GNU/Linux” for the students of college of engineering Pune. The workshop was inspired by Stanford’s open classroom session named “practical unix” I managed to pull most of crowd from auditorium’s to my workshop (evil grin). The slides are available here
After attending Harish’s talk on community, I started my talk on Django. I explained folks on how to create web apps using Django using a simple blog application. The slides are available here. My talk was followed by rtnpro‘s “Testing Django apps” talk. He extended by blog application and added test cases to it. The code is available here . After the talk to our pleasant surprise some one from COEP approached us with half written Django app. We happily helped her fix the issue. In the afternoon i attened jsmith’s “publican” talk and Srishti’s “cute hacks using pygoocanvas”.
In the evening we left for FUDPub. FUDPub was awesome , everything happened on a roof top with DJ and dance.
Day 3: – Hackfest’s
Rahul was late to the venue on Day 3 (FUDPub?). I introduced askbot on behalf of Rahul to the people and invited them to join our hackfest. Most of them joined us were new to Django so we had to help them a bit. Then i started working on “Export questions and answers as pdf” feature of askbot. I ended up using “Reportlab” python library for pdf generation. A lot need to be done to complete this feature. I hope i can make most out of my upcoming weekends.
FUDcon was awesome, It was nice to see lot of people face to face.
I had lot of memorable moments at FUDCon, Rahul played a prank on how i stole pair of baby pink coloured slippers from srishti :-) (the baby pink slippers are now talk of the town, read other’s blog posts ) The mini push up’s competition at FUDPub. Taste of my first beer/cocktail ( i have no plans to drink again ). I am sure events like FUDCon will help bring people together and instrumental in creating a strong community. Thanks Red Hat for sponsoring my travel and accommodation .
sqlninja – http://sqlninja.sourceforge.net/download.html a candidate for Fedora security spin is now available in updates-testing repository
yum install –enablerepo=updates-testing sqlninja
The package currently does not include any payload binaries, they can be downloaded from http://sqlninja.svn.sourceforge.net/viewvc/sqlninja/scripts/
According to http://docs.python-requests.org/en/latest/index.html
Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s builtin urllib2 module provides most of the HTTP capabilities you should need, but the api is thoroughly broken. It requires an enormous amount of work (even method overrides) to perform the simplest of tasks.
Things shouldn’t be this way. Not in Python
>>> r = requests.get(‘https://api.github.com’, auth=(‘user’, ‘pass’))
The same sample , without using requests would look like https://gist.github.com/973705. Requests library indeed reduces the lines of code we have to write to set up HTTP requests.
The new library is available as python-requests in Fedora. You can test the packaging using the following command
yum –enablerepo=updates-testing install python-requests