[Event Report] Magit @ Pune Emacs Users' Group, India, February 22, 2013
by Shakthi Kannan
Hi,
I had presented an introduction to Magit [1], "Emacs + Magit = Git
Magic", at the Pune Emacs Users' group meetup [2] on Friday, February
22, 2013. Magit is an Emacs mode that interfaces with Git [3]. Magit
doesn't provide all the interfaces of Git, but the frequently used
commands. The user manual [4] was used as a reference. Magit is
available in Fedora. You can install it using:
$ sudo yum install emacs-magit
The talk was centered around the notion of writing a poem on Emacs in
Emacs, and using magit to revision it. I started an Emacs session,
created a directory with Dired [5] mode, and used magit (M-x
magit-status) to initialize a git repo. After adding a stanza in the
poem, I used the magit commands to stage (s) and commit the same (c,
C-c C-c) from the magit-buffer. Another stanza and a README file were
then added, and the different untracked, and tracked section
visibility options (TAB, S-TAB, {1-4}, M-{1-4}) were illustrated.
After adding the third stanza, and committing the same, the short (l
l) and long (l L) history formatted outputs were shown. The return
(RET) key on a commit in the magit-log history buffer opens a new
magit-commit buffer, displaying the changes made in the commit. The
sha1 can be copied using the (C-w) shortcut.
The reflogs are visible with the (l h) option from the magit-buffer.
The (d) command was used to show the difference between the master and
a revision, and (D) for the diff between any two revisions. Annotated
tags (t a) and lightweight tags (t t) can be created in magit.
Resetting the working tree and discarding the current changes is
possible with (X). Stashing (z z) the present changes, applying a
stash (a), and killing the stash (k) were demonstrated. An org branch
was then created (b n) to write a stanza on org-mode, and then merged
(m m) with the master branch. An example of rebasing (R) was also
illustrated. The magit-buffer can be refreshed (g) to check the
current status of the git repo. Anytime, the magit buffers can be
closed with the (q) command. A git command can be invoked directly
using (:), and the corresponding output can be viewed with ($), which
is shown in a magit-process buffer.
A summary of the various shortcuts are available in the presentation
[6]. The poem that I wrote on Emacs, and used in the talk:
Emacs is, an operating system
Which unlike many others, is truly, a gem
Its goodies can be installed, using RPM
Or you can use ELPA, which has already packaged them
You can customize it, to your needs
You can also check EmacsWiki, for more leads
Your changes work, as long as reload succeeds
And helps you with, your daily deeds
People say, it lacks a decent editor
But after using its features, they might want to differ
Using Magit's shortcuts, you might infer
That it is something, you definitely prefer
Plan your life, with org-mode
You don't necessarily need, to write code
TODO lists and agenda views, can easily be showed
Reading the documentation, can help you come aboard
Emacs is, a double-edged sword
Its powerful features, can never be ignored
Customization is possible, because of Free Software code
And this is, my simple ode
SK
[1] Magit. https://github.com/magit/magit
[2] Pune Emacs User Group. http://www.meetup.com/the-peg
[3] Git. http://git-scm.com/
[4] Magit user manual. http://magit.github.com/magit/magit.html
[5] Dired mode.
http://www.gnu.org/software/emacs/manual/html_node/emacs/Dired.html
[6] Emacs + Magit = Git Magic.
http://shakthimaan.com/downloads.html#emacs-magit-git-magic
--
Shakthi Kannan
http://www.shakthimaan.com
10 years, 9 months
[Event Report] GNUnify 2013, SICSR, Pune, India, February 15-17, 2013
by Shakthi Kannan
Hi,
GNUnify 2013 [1] was held at Symbiosis Institute of Computer Studies
and Research (SICSR) [2], Pune, Maharashtra, India between February 15
to 17, 2013. I attended day one of the unconference.
The first talk that I listened to was by Oyunbileg Baatar on
"Screencasting Demos and HowTos". He mentioned the various free/open
source, desktop recording software available. He also gave a demo of
recordMyDesktop [3], and video editing using PiTiVi [4].
After a short break, and a formal introduction, I began my session for
the day - "Introduction to GCC" [5]. Fedora 17 was installed in the
labs for the participants to use. I started with a simple hello world
example and the use of header files. I also explained the concepts of
compilation and linking, and briefed them on the syntax of Makefiles.
Examples on creating and using static and shared libraries were
illustrated. We also discussed the different warning and error
messages emitted by GCC. The platform-specific and optimization
options were shown with examples. Students were not familiar with
touch typing, and I had to demonstrate the use of Klavaro [6] typing
tutor.
The preliminary round for the programming contest was held in the
afternoon. Thirty questions on C and systems programming were given to
the participants to be answered in thirty minutes. I helped evaluate
the answers. The practical test was to be conducted the following day.
Thanks to Neependra Khare [7] and Kiran Divarkar for organizing the
programming contest.
I also attended the OpenStack mini-conf session in the evening where a
demo of OpenStack was given by Kiran Murari. This was followed by a
session on "OpenStack High Availability" by Syed Armani. Aditya
Godbole's closing session for the day on an "Introduction to Ruby" was
informative. Few photos that were taken are available in my /gallery
[8].
Regards,
SK
[1] GNUnify 2013. http://gnunify.in/
[2] SICSR, Pune. http://sicsr.ac.in/
[3] recordMyDesktop. http://recordmydesktop.sourceforge.net/about.php
[4] PiTiVi. http://www.pitivi.org/
[5] Introduction to GCC.
http://shakthimaan.com/downloads.html#introduction-to-gcc
[6] Klavaro. http://klavaro.sourceforge.net/en/index.html
[7] Neependra Khare. http://neependra.net/
[8] Photos. http://www.shakthimaan.com/Mambo/gallery/album87
--
Shakthi Kannan
http://www.shakthimaan.com
10 years, 9 months
Devendorize desktop file- Proven packagers help
by Rahul Sundaram
Hi
If you are a proven packager, this is something you can help out with
https://fedoraproject.org/wiki/User:Toshio/Devendorize_desktop_files
Remove the vendor prefix from the desktop file and push a new build for
Rawhide for the above packages. Will help us be become moer closer to
upstream and fixes some bugs on software that expects the desktop filenames
to match what upstream provides by default. Fairly easy but you can
potentially do some spec file cleanup along the way
If you need more specific instructions, let me know
Thanks!
Rahul
10 years, 9 months
how to reset root password in Fedora 10
by Sanjeev Kumar Mittal
Hi,
I am finding this strange problem, that on booting it dont stop for options
and straight away login without asking any credentials and I guess it logs
in as user mode.
However, I wanted to install few updates, etc and hence needed the root
password. Unfortunately I forgot the root password that I would had set at
time of installation.
I did an initial search on net on how to reset the root password, however I
am not able to halt the boot grub and it dont allow me at all, I mean I
dont get any option to edit or append the boot to go in run level 1.
Kindly could any one let me know any clues that what is wrong in my
approach or my installation.
Thanks a lot in advance!
--
~ Best Regards, sanjeev
10 years, 9 months
[Event Report] Fedora Workshop, SITRC, Nashik, Maharashtra, India, February 2-3, 2013
by Shakthi Kannan
Hi,
A Fedora workshop was organized at Sandip Institute of Technology and
Research Center (SITRC) [1], Nashik [2], Maharashtra, India between
February 2-3, 2013.
Day I
I began the day's proceedings with the "i-want-2-do-project.
tell-me-wat-2-do-fedora" [3] presentation in the seminar hall at
SITRC. The participants were introduced to mailing list, communication
and effective project guidelines when working with free/open source
software. This was followed by an introduction on window managers, and
demo of the Fedora desktop, GNOME, Fluxbox, and console environments.
After lunch, I gave an introduction on system architecture, and
installation concepts. Basics of compilation and cross-compilation
topics were discussed. An introduction on git was given using the
"di-git-ally managing love letters" [4] presentation. After a short
tea break, we moved to the labs for a hands-on session on GCC. This is
a presentation [5] based on the book by Brian Gough, "An introduction
to GCC" [6]. Practical lab exercises were given to teach students
compilation and linking methods using GCC. I also briefed them on the
use of Makefiles. C Language standards, platform-specific and
optimization options with GCC were illustrated.
Day II
Lab exercises from the GCC presentation were practised on the second
day, along with the creation and use of static and shared libraries.
The different warning options supported by GCC were elaborated. A
common list of error messages that newbies face were also discussed.
After the lab session, I introduced them to cloud computing and
OpenStack [7], giving them an overview of the various components,
interfaces, and specifications. I also gave them a demo of the
OpenStack Essex release running on Fedora 17 (x86_64) with the Horizon
web interface.
The college was affiliated to University of Pune, and had deployed
GNU/Linux labs for their coursework. Now they are autonomous, and want
to explore and expand their activities. They have a local user group
called SnashLUG [8]. The college is 15 km away from the city of
Nashik, which is around 200 km from Pune. The bus journey from Pune to
Nashik takes six hours, and you can book tickets online through
Maharashtra State Road Transport Corporation (MSRTC) [9]. There is
frequent bus service between Pune and Nashik.
Thanks to Rahul Mahale for working with me for the past three months
in planning and organizing this workshop. Thanks also to the
Management, and Faculty of SITRC for the wonderful hospitality, and
their support for the workshop.
Few photos taken during the workshop are available in my /gallery [10].
Regards,
SK
[1] Sandip Institute of Technology and Research Center (SITRC),
Nashik. http://sitrc.sandipfoundation.org/
[2] Nashik. http://en.wikipedia.org/wiki/Nashik
[3] Contributing to Fedora.
http://shakthimaan.com/downloads.html#i-want-2-do-project-tell-me-wat-2-do
[4] Introduction to Git.
http://shakthimaan.com/downloads.html#di-git-ally-managing-love-letters
[5] GCC presentation. http://shakthimaan.com/downloads.html#introduction-to-gcc
[6] Brian Gough. An Introduction to GCC.
http://www.network-theory.co.uk/gcc/intro/
[7] OpenStack Lab Guide.
http://fedorapeople.org/~russellb/openstack-lab-rhsummit-2012/index.html
[8] SnashLUG. http://snashlug.wordpress.com/
[9] MSRTC. http://www.msrtc.gov.in/
[10] Photos. http://www.shakthimaan.com/Mambo/gallery/album86
--
Shakthi Kannan
http://www.shakthimaan.com
10 years, 9 months