Linux4us.org

Use Linux, Share Linux

FUDCon KL 2012 — Summary of 3 Days of Paticipation

FUDCon which also stands for Fedora User and Developer Conference was held in Kuala Lumpur from 18th of May till 20th of May 2012. I, as a Fedora user and Malaysian surely didn’t miss the chance participating and meeting up with Fedora Contributors.

It’s a long journey (4 hours+) to go all the way from my university campus in Penang to KL attending the conference. The registration session started at 830am on 18th May but I registered slightly late since I missed the bus from LRT station to the conference venue. The opening keynote presented by Christoph Wickert is about the leadership in open system and how is it different from the common company closed system. The keynote introduce a few new ideas to me like “leadership by example“, “every member in the open system is equal” and etc, which is simply impressive!

The first day of the conference doesn’t have a fix talk/workshop schedule but instead it’s running in a barcamp style. I attended a few meaningful quick talk for example LaTex, Fedora for Students, GIT, Fedora Spins and remixing and etc. The talk was quick but it open ups a beginners mind on how an open source operating system and software looks and feels like.

The second day of the conference started with a keynote from Joshua Wulf on which is about the “4 keys of contribution in open source projects” (not sure if it is the title of the keynote, but should be something like that). This keynote introduce a few terms which includes “treat your user as co-developer” and “treat your co-developer as user” and also the ramp in software designing. It’s a brilliant keynote which helps me to think a lot on the strategy and time & energy management when developing software/application in the future.

The second day of the conference has a fix schedule of talks and I did attended quite a few number of nice talk, for instance “Free Software, Open Source and Creative Commons” which talk about copyright, copyleft and licensing; “Ask Fedora” which introduce us on a stack overflow like question and answer system called Ask Fedora; and etc

The last day of the conference started without an opening keynote, instead, I was late for a few minutes for the first talk I’ve attended which is “RPM Packaging Basic” which is a talk on how to create an RPM package for beginners. I attended a great talk by Victor on the creative FLOSS applications which cover a huge range of FLOSS software ranging from graphic designing to audio industry and paper publishing.

The afternoon sessions (talks and workshops) has been re-schedule due to the low amount of attendees. I’ve attended the “Fighting Spam with Postscreen” and “Systemd Introduction” talk. The FUDConKL 2012 is wrapped up with an closing keynote.

An ordinary academic conference might be just about talk and gaining knowledge on certain field, but FUDCon is totally different in every single aspect. It enables users to meet up face-to-face with the developer, package maintainer and Fedora Ambassadors. Idea and Knowledge is shared everywhere during the conference. Users learnt how open governance and open system works which is way different than the closed system they used to ( in the Microsoft Brainwash Syndrome old days). Contributions is the main idea distributed during the conference cause without the contribution from the Ambassadors, package maintainer, developer, translator, artist and etc, Fedora (and any other open source OS and software) would not be as great as it is.

Yes, it makes up my mind to contribute more to Fedora and any other Open Source Software and OS, how about you? Are you ready to make the world a better place?

 

P/S: At here I would also like to thank the organizing committee and volunteers, thanks for organizing this brilliant event in such a short period and thanks again for all your helps/assists during the 3 days conference. ;)

No Comments »

Why Linux for Desktop is Not Dead and Why I Use Linux

I like to read news via Google News and recently I came across a news with title “Why Linux on the Desktop is Dead”. Honestly, it’s a good article but I just can’t agree with that, that’s why I decided to write a post voicing out my own opinion on why I think Linux for Desktop is not dead and why I use Linux for my daily task, but not Microsoft Windows and MacOS. The content in this article is meant for voicing out my own opinion, no offence and I will try to keep it to a user’s point of view.

I’m an ordinary teenager, a engineering student and a part time programmer. Most of the time I use my computer for web browsing, checking my mail box, entertainment(audio + video), gaming, help me with my assignments and writing some programs. I started using Linux around 7 years ago and the first distro I used was Mandrake Linux 10.1 (the former name for Mandrive Linux). Since then, I’m in love with using Linux because it’s fast, brilliant in detecting hardware and give me the flexibility to configure anything!

Talking about why Linux for desktop is not dead, well, it’s not as hard to use as most people think it is. The fully terminal (command prompt in MS Windows context) operated system had over long time ago, now everything can be done using GUI in linux, and there’s a wide variety or DE (desktop environment) available for Linux. To list out a few, there’s KDE, razor-qt that’s Qt based, Gnome, Unity for Ubuntu Linux, Cinnamon for Linux Mint, XFCE, LXDE for lightweight distro and much more. Each of the DE has it’s own specific target user and I can say that it covers most of the target audience from an ordinary office guy to a scientist.

Leave aside the choices available for DE, there’s also a wide variety of great software for everything that you need, LibreOffice and KOffice for office suite, Amarok for music player, various Mplayer based software for watching video, Kdevelop, QtCreator, Geany for IDE, Firefox, Chrome, Opera for web browsing and etc, the list will become too long if I list all the great application available in Linux and best of all, what you need to do to install these application is just a click on the software manager of the distro of your choice! It’s so convenience isn’t it?

Some may said even with so many DE and applications available in Linux, it’s still not usable because it’s not user friendly! Hmm… I strongly disagree with this point. Everything you need to do is just 1 click away! For instance, just a click on the software manager will have an application install and setup on your PC, a click on the system setting in let’s say KDE will assist you to edit all the properties for your DE (wallpaper, theme, screensave, power settings and etc), a click on the Ubuntu’s restricted driver application will help you installed the video and wifi driver in your system, a click on the Gwenview (KDE’s default photo viewer) side bar will crop and/or resize your photo and much more. So far there’s nothing that I can’t do in a Linux system!

There are choices for DE as well as applications and Linux is a user friendly system, which I think Linux for desktop is not dead, but gets improved every second because there are hell lots of developer cracking their head everyday trying to build a better security, feature rich yet user friendly as well as free and open source operating system.

End of the part which I think Linux for desktop is not dead, here comes my own sharing on why I use Linux everyday. My full-time job is a engineering student and my part time job is a programmer. I like to use my programming language to assist my engineering work, for example, the EV Modeling software for modeling the electric vehicle driving condition and some software for communication + monitoring + logging the sensor output, the micro-controller (Arduino) and my computer for data analysis. IMO, using Linux for carrying the job listed above is faster, easier and more reliable than accomplish it inside MS Windows. This is because I heavily rely on some libraries for coding my software, for example, PySerial module for serial communication, QwtPlot and PyQwt for plotting graph, PyQt module for building the GUI and etc. Installing these libraries in MS Windows is just… painful while I can install it in Linux with a quick “yum install …” command.

If you think the task above is too technical, then imagine, the default photo viewer in MS Windows is not able to crop and resize photo but I can do all the crop, resize and convert operation in Gwenview (the default photo viewer in KDE)! Moreover, there’s only a single desktop in MS Windows but there’s virtually unlimited desktops in some DE (KDE, Gnome, Unity…) where I can categorize the running software and put it in desktops so that if I want to pause the music while writing blog, all I have to do is switch desktop apart from browsing through tens of application that’s running, it’s definitely faster isn’t it?

I think Linux for Desktop is definitely not DEAD!! Users have variety of choices, great usability and reliability, the only thing that’s missing in the world of Linux is million dollar marketing, apart from that, it’s everything. I enjoy using Linux as much as I enjoy my life, knowledge is free, open and shared in the world of Linux and imagine how good this world will be, if knowledge is available for free and everywhere just like Linux.

6 Comments »

EV Modeling v0.1, What Is It?

Two weeks since my last post on my blog, some may suspect that I’ve MIA, hope you miss me :P . I’ve been busy working on my FYP (Final Year Project) for my Mechanical Engineering Undergraduate. FYI, my FYP title is “Electric Drive Optimization” which I would try to optimize the electric drive train of the electric vehicle which gonna participate in the upcoming SEM (Shell Eco-Marathon) Asia 2012 Urban category. SEM is a race for efficiency meaning that it’s not a race that need speed, but fuel efficient (which is less electric power, more distance in this context).

For the first part of optimizing the electric drive train, I decided to compose a set of strategy which make the 4 laps journey completed within the time limit as well as use the least amount of energy. This race will be taking place in Sepang International Circuit, North Track which is a 2.8km circuit with lots of uphill and downhill route. Therefore, composing a set of good strategy is crucial since driving the car at full speed on every section will waste more energy than letting it cruise during downhill section. Composing strategies needs modeling and so far the most common modeling tool used is Microsoft Excel or any other spreadsheet software.

I’m not a great fan of Microsoft Office Suite and I’m not a spreadsheet power user either, furthermore, I think that modeling using spreadsheet program will limit the level of customization I can get if compared to writing my own software. Therefore, I’ve decided to write my own software specially for modeling the driving condition and adjust the strategy based on the data.

That’s it, the born of EV Modeling software written using Qt Framework and Qwt Widget, it has the following feature:

- Model the driving condition with taking the air drag, rolling resistance and uphill/downhill force into consideration.

- Initialize the vehicle with setting the vehicle’s weight, wheel size, Cd, Crr, frontal area and the overall coefficient.

- Track and motor can be configured using *.inf configuration file

- The modeling result is shown in a table view

- The distance step for modeling the result can be set from 1m per step to 25m per step.

- All parameters can be plot using the build in plotting tools.

- The graph can be exported to *.svg format

- The modeling data can be exported to *.cvs format

Here’s a few screenshot that shows EV Modeling in action:

This software is released under GPLv2 License. The source of this software is available at gitorious, feel free to download and use it (compile yourself as binary package is not provided) for modeling usage. If you would like to build yourself a similar modeling software, you can always download the source code and make it a building base for your software.

Apart of showing off this software, I will write several explanation blog posts so that it would be beneficial for those who would like to do the same but stuck in the middle of no way. Stay tuned and please mail me if you need any further assist. :)

No Comments »

Home Screen Background Settings v0.1.2 Release and It’s Future

It’s been few weeks since my last blog post due to heavy final year project workload at my university and slow internet connection at campus. I think it’s time for me to update the “Home Screen Background Settings” application and it’s status.

First of all, I would like to thank some users for sending feedback about this application and offering some help (Diego, @sugardad, and etc). Version 0.1.1 that was previously available at Nokia Store has been un-published due to the “Change of system file issue” with v0.1.1. I have tried to fix the issue by following Vesa’s guide which adds an import line to the “/usr/share/themes/blanco/meegotouch/meegotouchhome/style/meegotouch.css” file rather than the base theme css file (which is the v0.1.2). But the update doesn’t pass Nokia Store QA for the same reason, “Change of system file”.

I think that it’s quite impossible to change the home screen backgrounds without at least adding the import line to the theme file. Therefore, I would like to announce that this application will not be available at Nokia Store anymore (:( ).

I know much of the users like to customize and tweak their phone (n9/n950). The ease of customization is one of the features of MeeGo (Harmattan/Maemo6) that makes us unique from other close and restricted phone (IOS and/or WinPho), therefore, I would like to release the version 0.1.2 update for those adventurous users that like to customize their phone. I would also like to warn users that this application has been down-graded as experimental applications which may void your phone or the application itself do not function as expected.

Nevertheless, as usual, support will be provided by me should you choose to use this application but it’s user’s responsibility when you choose to use this application and if your phone is void. Please read the through the warning message at this post before you install this application.

v0.1.2 has the same function as v0.1.1 except for the fact that it changes the blanco theme css file compare to the previous version that changes the base css file.

The deb package is available for download here: http://linux4us.org/downloads/homescreenbg_0.1.2_armel.deb

Last, there would be no future update for this application available except there are critical bugs found. This application has been down-graded to experimental application and use it at your own risk. As usual, do email or leave a message here should you face any problem installing and using this application. Thanks for your support and I’m looking forward to create other good apps for N9/N950 users as well as writing blog post. Thank you.

2 Comments »

Home Screens Background Settings v0.1.1 available at Nokia Store

Home Screens Background Settings finally make it’s way to Nokia Store. Before go through the installation link, I would like to warn users one more time that:

  • This application is strictly meant for adventurous users only
  • This application is for PR1.2 only
  • This application is reported to change the base meegotouch theme css file (actually it only adds a “import” line to the css file). It’s true, therefore, it’s for adventurous users who would like to customize their home screens background.
  • Please, install at your own risk, but as always, do drop me a comment or email me should you face any problem, I’ll try my best to assist you.

Version 0.1.1 differs with v0.1.0 which it adds the import line to the base meegotouchhome.css file instead of the blanco theme meegotouchhome.css file. Therefore, the background still applies even when you change the theme. (for example, using theme changer from apps.formeego.com).

But as previous edition, there’s always a risk where the application fail to work or the home screens is void after upgrade to newer version (PR1.3 perhaps) due to the update of base meegotouchhome.css file. With the mechanism used in v0.1.1 which only adds a “import” statement to the base meegotouchhome.css file, upgrading the css file would only makes the application not working instead of spoil the home screens (as previous edition did, because of the restoration of old version css files). A re-installation of the application should solve the problem

All and all, it’s still a risk for some users as “it changes the base meegotouchhome.css file” which considered as not safe compared to “changes/create to the blanco meegotouchhome.css”. Therefore, please use this application if and only if you are a real adventurous user.

End of the long warning part, here is the link to the store. http://store.ovi.com/content/255033

P/S: Please don’t confused by this application and the application “home screen settings”. The later application can assist you to set the home screens orientation and have blur wallpaper and sine wave function which differs from this application, which only enables you to customize backgrounds for all your 3 home screens + 2 orientation.

5 Comments »

Home Screen Background Settings 0.1.0

v0.1.1 available at Nokia Store. Please read the release/guide here

Greetings, first of all, I would like to apologize for the problem this application brought to you during upgrade from PR1.1 to PR1.2. If you face those problem, please read the solution here.

Problems exists and solved, and the application updates should be continued. Before I go in deep about this major update (from v0.0.5 to 0.1.0), I would like to re-state that:

  • This application is for adventurous users only, who would like to take a little risk to customize your phone.
  • Before you start using this application, you should read through the explanation of how it works so that you know what the problem is and report/fix it should you have some issue with it.
  • This application is reported only works with developer mode enable. Therefore, if you do not want to enable developer mode in your phone, please don’t use it.
  • This version is recommended to work for PR1.2 and above. Please make sure your phone is upgraded to PR1.2 and developer mode enabled before you install this application.
  • Since this application needs developer mode enabled to work, it will not be appear on Nokia Store (unless the developer mode enabled problem is solved)
  • If you installed this application before, please remove the previous version, restore the PR1.2 css file if you found it ruin your home screen before you install this version.
  • Last but not least, this application may void your phone’s home screens, and as always, the developer of this application (me) will try my best to assist you should you face any problem after installing this application.

Thanks for Vesuri’s tips, the mechanism of changing the home screen background has been reworked completely so that it wouldn’t change the base css file, instead, it changes the blanco theme css file.

Here’s the download link for this application: http://linux4us.org/downloads/homescreenbg_0.1.0_armel.deb . You must have developer mode enabled for it to work.

Again, please be warn that this application is strictly for adventurous users only. Happy using and do comment here if you face any problem.

No Comments »

[URGENT] Restore The PR1.2 CSS Files for Your N9!

Hi, This is a very URGENT blog post about the application “Home Screens Background Settings” which will void your home screens once you’ve updated it to PR1.2!

Here’s the detail of the situation:

Having the application installed in your N9 ( with PR1.1), without removing the application, you’ve upgraded your N9 to PR1.2. Once upgraded it to PR1.2, and you remove this application, the application pre-remove script will restore the PR1.1′s css files to your phone, which will break your phone!!

Here’s the solution, and millions of thanks to Vesuri for providing the solution.

  1. Please remove the application before you upgrade to PR1.2.
  2. If you have upgraded your phone to PR1.2. Download the package “restore-home-css” provided here, remove the application home screen background settings and install the package “restore-home-css” that you’ve downloaded.
  3. Restart your phone.

Conclusion, I would like to state here that the application “Home Screens Background Settings” is for adventurous users (which would like to customize their phone) only. It’s not an official application hence may not go well with official updates. It changes the systems css files which I’ve already explained here. Hence, please don’t use this application if you worry that this application will break your device. I would also like to apologize for not being told you all this statement earlier when this application’s released. Sorry for that.

P/S: here’s the solution in case you are unable to go to talk.maemo.org for some reason:
Uninstall the application home screens background settings and install this package http://vesuri.jormas.com/restore-home-css/restore-home-css_1.2.0-1_armel.deb. Once you installed this package, the css files will be restored and you can uninstall this application and re-install home screens background settings if you wish to. :)

18 Comments »

Home Screens Background Settings v0.0.4 Release for Testing

[URGENT] This application is reported to break your device when you upgraded your N9 from PR1.1 to PR1.2. Please read the solution here

v0.1.1 available at Nokia Store. Please read the release/guide here. v0.0.4 is deprecated, please don’t download and use this version.

As promised earlier, I’ve been working on v0.0.4 update for “Home Screens Background Settings” application. It took me awhile longer than expected to finish up this update as this is an major update which brings some additional features and hopefully settles the random unable to copy problem reported by users.

Here is the changelog for v0.0.4:

- change the theme to dark theme
– added a confirmation dialog for resetting all to default
– change back the apply button to restart phone on confirm
– thumbnails on homepage shrink by 10% and added white borders
– jpeg files cant be browse and selected in gallery
– added a image converter (python script) to convert jpeg images to png
– added a new edit page for editing photo before copy
– the edit page include a image preview that is live and the orientation follow the to be set home screen orientation
– added a blur function to the image edit
– added a black mask function to the image edit
– added a menu and a menu item “about”
– updating from previous version doesn’t remove the existing wallpaper starting from this version
– the machanism used in this release for copying background is no longer copy using root priviledge but chown the background files on the meegotouch backgrounds folder to user:users and copy using user’s priviledge, hoping to be more reliable

Please note that you will be prompt for installing additional dependencies when you updating which will install python-imaging package which is used to manipulate those background file.

Know problems are:

- There is a slight lag when you select an image from gallery because it’s converting and copying image to a new and temporary file name.
- There is also a slight lag when you select or reset blur effect and applying the changes in the edit image page as the program needs some time to process the blur image and/or applying the mask and also copy it to the destination directory.

The phone will be automatically restarted once the update is done to eliminate the red background problem.

Below are some screenshot of v0.0.4, more can be found on my flickr photo album:

Please download the deb package here: http://linux4us.org/downloads/homescreenbg_0.0.4_armel.deb

As this is a testing release, please do test it out and report any bugs/problem by commenting on this post. I’ll try to fix it before we move on to stable release v0.0.5. Hope you enjoying this update :)

18 Comments »

Blur, Mask and Convert Image using Python

I’m still a newbie to Python and would like to learn Python Imaging Library(PIL) with some small project. After thinking awhile, I decided to take PIL a ride to convert image from Jpeg to Png, blur it and mask it with a semi opaque black layer.

Here’s how I do it:


#!/usr/bin/python
import sys, os
import Image
import ImageFilter

inputFile = sys.argv[1]
outputFile = os.path.splitext(inputFile)[0] + ".png"
im = Image.open(inputFile)
im = im.filter(ImageFilter.BLUR)
mask = Image.new((im.mode), (im.size))
out = Image.blend(im, mask, 0.3)
out.save(outputFile)

save the code in a file called xxx.py which xxx is the filename of your choice. Image.open() opens a image as an object(im). You can apply a filter (blur) using Image.filter(ImageFilter.BLUR).

The Image.new() function takes 3 parameter which is the image mode, image size and colour. For example if you want to create a blue colour rectangular with size 400×300, use Image.new((“RGB”), (400,300), (0,0,255)). Please note that if you leave the colour parameter as empty, it will create a black (default) colour image.

The function Image.blend() blends the two images (first and second parameter). The 2 images must have the same size and mode. The 3rd parameter refers to percentage of blending. For instance, 0.0 refers to 100% im and 0% mask and so on.

The last line out.save(outputFile) saves the out image object as outputFile filename.

If you want to make this python file executable, in terminal, cd to the directory containing this python file and enter:

chmod +x xxx.py

So if you want to blur, mask and convert a Jpeg file called scene.jpg, just enter in terminal:

./xxx.py scene.jpg

You will notice there is a image file called scene.png at the same directory. If you wonder how it looks like, here’s the before and after comparison.

Here it is, a simple introduction tutorial to PIL. Have fun :)

P/S: If you get error message like “no module Image found”, you need to install the PIL module, for example, in fedora, type in terminal sudo yum install python-imaging

No Comments »

Home Background Settings Explain Part 4: How to Make it Works for PR1.1 and PR1.2?

This is the final part of the explanation of “Home Screens Background Settings” application. In this part, I’ll explain the trick (a dirty trick indeed) of how to make it working on current N9′s PR1.1 and N950′s PR1.2

The initial release of this application (v0.0.1) saw that it works perfectly in my N950 but screwed the feed screen and offset of launcher icon in N9. The problem arises because the CSS file for Meegotouchhome are different in PR1.1 and PR1.2. The injection of PR1.2′s css file into PR1.1 will cause problems with the events screen as well as launcher screen.

Therefore, I need to come up with a solution that makes this application works on PR1.1 as well as PR1.2 without required user to download different deb package for different PR. So, here’s the trick.

The kernel version in PR1.1 is 2.6.32.39 whereas it is 2.6.32.48 in PR1.2. Therefore, by writing a post-installation script for debian package, the script will look for the kernel version, identify it’s PR1.1 or PR1.2 and inject the related version of CSS files. Hence making it work for both PR1.1 and PR1.2. Here’s the script:


kernelver=$(uname -r)

case "$kernelver" in
 *2.6.32.39*) cp -fv /opt/homescreenbg/data/css/PR1.1/libmeegotouchhome-default.css /usr/share/themes/base/meegotouch/libmeegotouchhome/style/libmeegotouchhome-default.css && cp -fv /opt/homescreenbg/data/css/PR1.1/meegotouchhome.css /usr/share/themes/base/meegotouch/meegotouchhome/style/meegotouchhome.css && echo "PR1.1 detected!";;
 *2.6.32.48*) cp -fv /opt/homescreenbg/data/css/PR1.2/libmeegotouchhome-default.css /usr/share/themes/base/meegotouch/libmeegotouchhome/style/libmeegotouchhome-default.css && cp -fv /opt/homescreenbg/data/css/PR1.2/meegotouchhome.css /usr/share/themes/base/meegotouch/meegotouchhome/style/meegotouchhome.css && echo "PR1.2 detected!";;
 *) cp -fv /opt/homescreenbg/data/css/PR1.1/libmeegotouchhome-default.css /usr/share/themes/base/meegotouch/libmeegotouchhome/style/libmeegotouchhome-default.css && cp -fv /opt/homescreenbg/data/css/PR1.1/meegotouchhome.css /usr/share/themes/base/meegotouch/meegotouchhome/style/meegotouchhome.css && echo "Assuming it is PR1.1!";;
esac

That’s it. Hope this 4 parts of home background settings explanation will help you understand how this application works and probably will help you a little bit in solving problems if you are developing application. Thanks :)

No Comments »

Switch to our mobile site