How to setup mock quickly? yum install mock The default configuration is already set for you: ls -l /etc/mock/default.cfg If not then this will do: sudo ln -s /etc/mock/fedora-15-x86_64.cfg /etc/mock/default.cfg As is clearly stated in mock(1) man page, you need to add the relevant user to mock group: sudo /usr/sbin/usermod -a -G mock $USER Thats all for the setup. Now lets use it: mock --init # this populates the build root with the required pacakges and repositories mock --rebuild hello-2.

Read more →

Rinari is an Emacs minor mode that is aimed towards making Emacs into a top-notch Ruby and Rails development environment. Rails reloaded is the minor mode for editing Ruby On Rails code with Emacs. This minor mode makes your work much easier and user friendly. Lets first install rinari: cd ~/.emacs.d/ git clone git://github.com/eschulte/rinari.git cd rinari git submodule init git submodule update ( Curious about git submodules? Read here http://book.

Read more →

My involvement with FUDCon Pune 2011 started since the initial days of its planning. I wasn’t much involved until I took the task of managing a website for the event. My idea was to have a fully dynamic website where users could login, submit talks, vote for talks and we could manage the content all in a single website. The plan is available here. After a few initial discussion about FUDCon websites here and there, Rahul arranged for a domain fudcon.

Read more →

As of today over 100 delegates have already signed up for the event and 33 proposed sessions registered with us already. FUDCon Pune is an international event and we have speakers from many parts of the world. We are also listed on opensource.com now! Submission Deadline - Midnight, 23rd of October, 2011 IST. 6 more days to go! Reference: http://fudcon.in/content/fudcon-pune-pacing

Read more →

We managed to pull off the event website for FUDCon Pune 2011. This website has successfully been used for organizing a Fedora Activity Day i.e. FAD - II. However its primary motive is to manage the event FUDCon Pune 2011. Needless to mention, this website is built in collaborative fashion, using Free and Open Source software. Based on COD - a Drupal based Conference Ogranizing Distribution, we added extra modules for our needs.

Read more →

Yay! I am going to FUDCon Pune 2011!

Read more →

It is sometimes very irritating why directory listing is not working for per user ( UserDir ). There are only to two main steps to remedy that: Enable UserDir module Enable directory listing All modifications to be done in /etc/httpd/conf/httpd.conf file. Step 1: Enable UserDir module UserDir enabled tuxdna UserDir public_html Step 2: Enable directory listing AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Thats all for UserDir.

Read more →

Comparison on Lucene/Solr and NoSQL http://stackoverflow.com/questions/3215029/nosql-mongodb-vs-lucene-or-solr-as-your-database NoSQL, Lucene and Solr http://www.lucidimagination.com/blog/2010/04/30/nosql-lucene-and-solr/ For The Guardian, Solr is the new database http://www.lucidimagination.com/blog/2010/04/29/for-the-guardian-solr-is-the-new-database/

Read more →

Here is how I created a simple Do Nothing object in python. class DoNothing(): def __getattr__(self, name): def k(*a, **b): pass return k log = DoNothing() log.debug("asdfa", 'asdf"') Now I can still have log.debug() statements throughout the code-base, in case I want them to do nothing. All I would do is re-assign log to a DoNothing object. log = DoNothing() I am sure there are some flaws with which approach, however this all I need for now.

Read more →

History of Web Back in the year 1989, Tim Berners-Lee ( at CERN ) wrote a proposal based on ENQUIRE, to write an information system. This system was targeted to meet the need of Physists at CERN to share information with each other. Web is a «Side Effect» of the 40 years of Particle Physics Experiments. On August 6, 1991, the first website was built at CERN. On the same date Tim also posted a short summary of the World Wide Web project on the alt.

Read more →

CONF@JMILUG The day started with setting-up of Linux Adda. While we were still setting it up, for around an hour everyone was sharing laughter with Kumar Vishwas - a poet of IIT fame. As soon as his humorous poems were over, crowd rushed to the stalls, one of which was Linux Adda. It takes only a glace for someone to get attracted to the Fedora DVDs and Fedora Badges spread over a white-cloth-covered table i.

Read more →

I have been thinking about this question: Is NoSQL database an alternative for a search engine? I think I just found an answer here. Lets talk about some terms and definitions first. NoSQL - Not only SQL means that a NoSQL database differs from a RDBMS in some way. IR - Information Retieval is the science of searching documents, their metadata, and retrieval. Here we compare a NoSQL storage engine MongoDB, and Information Retrieval library Apache Lucene.

Read more →

I couldn’t install pylucene simply by following command: yum install pylucene Nor did following work: easy_install pylucene Nor the following :-( pip-python install pylucene So. I had to build it myself. Here, I list those steps: Install JCC $ JCC_JDK=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 pip-python install jcc Download pylucene pylucene wget -c http://apache.mirrors.pair.com//lucene/pylucene/pylucene-2.4.1-1-src.tar.gz tar zxf pylucene-2.4.1-1-src.tar.gz cd pylucene-2.4.1-1 Build and install http://lucene.apache.org/pylucene/documentation/install.html pushd jcc # edit setup.py to match your environment JCC_JDK=/usr/lib/jvm/java-1.

Read more →

http://foss.in/ I was looking at content faces. They all had made it. Some laughing, some teasing, some pondering and recollecting the past - greeting each other with a hearty welcome «Hi!». And there some were observing tenderly the atmosphere which was animate instantly, as everyone from far off places finally arrived at FOSS.IN 2010 service apartment. Rahul had reached the airport earlier than us and we met him there. We - I, Shreyank, Siddhesh, Amit, Rahul, Neependra and Anand - were at the airport three hours ago.

Read more →

I just configured feeds aggregator on JMILUG.ORG. Right now this link shows feeds aggregated from various sites related to FOSS or Development blogs. I noticed issues with Drupal ( version 6 ) that it doesn’t work well with ATOM feeds ( specially with blogger.com ). I am not clear if its a bug in Drupal itself, although RSS feeds work perfectly fine. Any pointers to fix this will be highly appreciated.

Read more →

While building {OpenGrok from source I came across a common error. {OpenGrok also needs JFlex to be present on the classpath as mentioned in the README.TXT file. $ sudo yum install jflex $ hg clone ssh://anon@hg.opensolaris.org/hg/opengrok/trunk/ opengrok-dev $ cd opengrok-dev $ CLASSPATH=$CLASSPATH:/usr/share/java/JFlex.jar Compilation failed giving the following error. BUILD FAILED java.lang.NoClassDefFoundError: java_cup/runtime/lr_parser at JFlex.anttask.JFlexTask.execute(JFlexTask.java:71) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.

Read more →

I was surprized to find that following command reboots my Fedora 13 x86_64 system: cat /dev/watchdog Wait for around 30-50 seconds and Linux reboots! This happens even with a non-root user. Then I googled it I found this is a pretty interesting thread on the subject. Bottom line is It’s a watchdog device, it’s meant to reboot the machine if whatever task is poking the watchdog dies. So consider that in any installation if /dev/watchdog support is present in the default Linux kernel and the file has read permission to all users.

Read more →

Debugging Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? - Brian Kernighan

Read more →

Here is a simple looking C++ program, which has two classes A and B ( which derives from A ). A has a function fun() which B tries to overload as fun(int). Sounds simple and the program looks correct but it doesn’t compile. Have a look at http://codepad.org/NQ3JNuRr . Its hard to digest for it is an obvious code to compile in C++. The code listing is as below: #include<iostream> using namespace std; class A{ public: void fun(){cout<<"fun\n";} }; class B: public A{ void fun(int i){cout<<"funB\n";} }; int main() { B b; b.

Read more →

FAD - Fedora Activity Day I was excited to know what it would be like but I had no clue as it was one of my first such gathering in Fedora Community. Day 1 I reached there at 10:00am feeling that I would be just on time but to my surprise I was an hour late. I snapped into the room and took a seat quietly. What a beginning! Autotools workshop was in progress.

Read more →