Tuesday, December 16, 2008

Issue #3 of The init magazine published

This issue of magazine has covered lots of national & international FOSS related events and news. Tips & Tricks, Q&A sections are really helpful and has something to teach. Besides these there articles related to hardware and softwares too.
For more details download and read it

You can download it from the links mentioned below
Direct Link: http://ioefoss.ioelive.com/theinitmagazine/theinitmag03.pdf
Mirror: http://www.meronepalma.com/initmag

Please do send your articles and suggestions at
ioefossnewsletter@gmail.com

We have Q&A section in the magazine so for any problem you are facing, you can send to us in the email above.
Please forward the link of the magazine to your friends.

Wednesday, December 3, 2008

Freedom has been moved to Advanced

I am talking about the new chapter of FOSS-Nepal has been established in the Advanced College of Engineering And Management.
Yesterday (December 2, 2008) I, Jitendra & Kailash has given presentation on FOSS introduction in the college. There were Department Head of Electronics and Computer department, teachers and more than 80 students from first to fourth year present in the presentation. The presentation was all about FOSS introduction,why we need it?, what are the available FOSS? and all. Teachers and students were enthusiastic to know about FOSS. They put on lots of questions about it.
Finally we had a talk with Head of Department of Electronics and Computer Department. He was very positive towards our motive. We were pleased to know that their server was in Linux and some labs do have Linux in their computers.
He promised us to install Linux in most of their computers.

Thursday, November 27, 2008

FOSS Nepal SFD 2008 - competition winners!!!

FOSS Nepal has won the best SFD 2008 award. Its the second time in row, we are awarded best SFD.Its all hard work and efforts of the volunteers that make it possible. I would like to appreciate Bibek Paudel for his impressive report.

SFD (Software Freedom Day) is world wide celebration of Free and Open Source Software that is celebrated every year on third Saturday of the September. It was celebrated on the 20th September this year. Over 500 teams in almost 90 countries has celebrated SFD this year.

The theme “Create, Share, Collaborate” was chosen for this year's SFD.
If you have missed it, you can have a glance of it here.

Wednesday, November 26, 2008

Installing Grub From Linux Live CD

Actually one of the frequently asked questions to me is grub problem. It is the solution to Linux users who get grub error or whose Linux boot option disappears.

Cause

  • When you install Windows after installing Linux. Because grub installed at MBR is overwritten by the Windows MBR ( without considering the other OS)
  • Some time grub file get corrupted
  • You add the new hard disk then mounting point might change
Solution
  1. Boot From Linux Live CD (Ubuntu or some other distro)
  2. Go to Applications -> Accessories -> Terminal
  3. Type sudo grub you will prompted to grub prompt
  4. Type "find /boot/grub/stage1" at grub prompt it will return hd?,? where '?' = 0 - 9
  5. Now type root (hd?,?)
  6. Then type setup (hd?)
  7. Finally quit and then reboot

Saturday, November 22, 2008

The init Magazine Issue #2 released

Second issue of The init magazine has been released on 15th of Nov. Issues of the magazine is released on 15th of every month according to English calendar.
It is published by the IOE FOSS Community.


You can grab your copy from
Link: http://ioefoss.ioelive.com/theinitmagazine/theinitmag02.pdf
Mirror: http://www.meronepalma.com/initmag/

You can download the older versions too from
Link: http://ioefoss.ioelive.com/theinitmagazine

Please send your articles/suggestion at ioefossnewsletter@gmail.com

Thursday, November 13, 2008

Ubuntu Intrepid Ibex Release Party

Nov. 10, 2008

Here releases next version of freedom, Ubuntu marks its 8.10 version named “Intrepid Ibex”. Ubuntu Release its newer version on April and October and the newer version was released on 31st October.
IOE-FOSS community has organised the Ubuntu release party on November 9 in the local premises of the pulchowk college.



Programme started at around 4:30 as scheduled. Party was joined by the students of Pulchowk college, Informatics College, and people from FOSS Nepal community.
Bibek Shrestha, one of the member of IOE FOSS community started the talk on Ubuntu Relase and its features.

We also have the words from sponser, Janaki Technology Pvt. Ltd.(website) and Ankur Sharma, a member of FOSS Nepal Community.

We have the warm coffee and cookies (not the one that is stored in browsers) and informal talk to different peoples present there.
First 10 people registered were awarded with the free CD Ubuntu 8.10. Finally we had the candlelight vigil, candles were arranged to form logo of Ubuntu. The candle were lightening brighter to mark the bright future of Ubuntu and FOSS.




Programme was concluded with the lucky draw for the 10 lucky people to get the key ring engraved with Ubuntu-np.
Truly said by Jwalanta, release party was as good as the new version of Ubuntu!

Monday, October 6, 2008

How to write mozilla extension

Introduction
A Mozilla extension is an installable enhancement to the Mozilla browser that provides additional functionality.For e.g firebug is one of the powerful extensions i have used. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page with it.

Extensions actually contains ZIP files or Bundles, with the XPI (pronounced “zippy”) file extension.

Basic Structure

An example of the content within a typical XPI file:
example.xpi:
/install.rdf
/chrome.manifest
/content/*.xul
/defaults/preferences/*.js
/locale/en-US/*.dtd *.properties prefwindow.dtd
/skin/*.css

Now we will create a folder for e.g. my_extension and create above files and folders inside it.

Creating install.rdf
Open install.rdf in text editor and add following lines to it.

<?xml version="1.0" encoding="UTF-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>format@email</em:id><!--unique for extension -->
<em:name>Name of extension (optional)</em:name>
<em:version>Version of extension (optional)</em:version>
<em:creator>Name of author (optional)</em:creator>
<em:description>Description of extension (optional)</em:description>
<em:homepageURL>Home page of extension (optional)</em:homepageURL>
<em:updateURL>Available updates location (optional)</em:updateURL>
<em:iconURL>Icon for extension in the format chrome://ifeed/content/*.png (optional)</em:iconURL>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- id of firefox -->
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.0.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>


Understanding the browser user interface
Firefox's user interface is written in XUL and JavaScript. XUL is an XML grammar that provides user interface widgets like buttons, menus, toolbars, trees, etc. User actions are bound to functionality using JavaScript.

To extend the browser, we modify parts of the browser UI by adding or modifying widgets. We add widgets by inserting new XUL DOM elements into the browser window and modify them by using script and attaching event handlers.
Open chrome://browser/content/browser.xul in your browser you will see the browser inside the browser
The browser is implemented in a XUL file called browser.xul ($FIREFOX_INSTALL_DIR/chrome/browser.jar contains content/browser/browser.xul). In browser.xul we can find the status bar, which looks something like this:


<statusbar id="status-bar">
... <statusbarpanel>s ...
</statusbar>

<statusbar id="status-bar"> is a "merge point" for a XUL Overlay.i.e we can create our own xul file to overlay our component on the status bar.


Example XUL Overlay

<xml version="1.0"?>
<overlay id="sample"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<statusbar id="status-bar">
<statusbarpanel id="my-panel" label="Hello, World"/>
</statusbar>
</overlay>


Take this sample code above and save it into a new file called sample.xul inside the content folder you created

Create a Chrome Manifest
Open the file called chrome.manifest that you created and these lines to it

content example content/
locale example en-US locale/en-US/
skin example classic/1.0 skin/
overlay chrome://browser/content/browser.xul chrome://example/content/sample.xul


We have completed our hello world extension for mozilla. Now we will select the all files & folders (i.e. content,defaults,locale,skin,chrome.manifest,install.rdf) and create a zip file named example.zip. We will change the extension of example.zip to example.xpi

example.xpi is our extension now we can drag n drop example.xpi to firefox browser to install it.
Once it is installed it will ask to restart the browser.
After you restart the browser you will see Hello World in the right corner of your status bar.


References:
Extension Development Documentation
XUL Tutorials

For Help
Extension Development IRC