How to recover deleted local files from Git repository?


I have a good habit of storing all my development projects and source code in a git repo.
I do commit often and once a new feature is implemented in development branch.
Will test for the feature and merge with master and push to remote git.

https://git-scm.com/images/logos/downloads/Git-Logo-1788C.png

This habit saved my life recently.

I am working on a python project.
When cleaning up the folders, wanted to delete all the python compiled files. *.pyc

I wanted to execute the command

rm *.pyc

But, My C key in keyboard was stuck and it was omitted.

The executed command was

rm *.py

 

Alas!

All my python files were deleted 😦

Git and my habit of committing often saved me here.

Searched for restoring deleted files from git and found the following link.
https://stackoverflow.com/questions/11956710/git-recover-deleted-file-where-no-commit-was-made-after-the-delete/11956744

The answer to restore all the deleted files from git repo is as below.

To recover all unstaged deletions at once, automatically, without specifying each single path:

git ls-files -d | xargs git checkout —

To recover all staged deletions at once, automatically, without specifying each single path:

git status | grep ‘deleted:’ | awk ‘{print $2}’ | xargs git checkout —

 

I used this command
git ls-files -d | xargs git checkout —

Thank God. All my python files are restored now.

My humble request to all my dear readers is,
“Make a habit of using Git or any version control. Do commit often, always. It will save your life for sure”

Thanks to Git developers for saving life of developers.

 

 

Advertisements

Indian Linux Users Group Chennai – december 2017 meet – minutes


We had our last meet of the year 2017 on December 9, 2017 at IIT Madras.

Magesh started the show with his experiences on emacs.
He explored the key bindings, buffers and usage of emacs.

Explained on Emacs plugin system https://melpa.org
and emacs bundles http://spacemacs.org/

Then, Shakthi Kannan explored the NoSQL database Aerospike.
It is useful for faster access and can span upto 128 nodes.
Unlike having a master node, which communicates to other nodes,
it sends info about all the nodes to the clients.
So the clients can directly contact the node where the desired data resides.
It has more optimised for SSD hard disks.

He explained its architecture, how to connect and query, its dashboard,
performance features etc. Get more info here – https://www.aerospike.com/

Then, Siva explained Bitcoin. He spoke about its history, architecture, mining,
wallets, buying and selling methods, advantages, disadvantages and threats.

Senthil joined with him to explain the internals of Blockchain mechanism.

Then, we continued our discussions at nearby cafteria.

Its is good to meet the old friends of ILUGC.
We had Akilan, Mohan, Shakthi Kannan and Shrini.

We discussed about bitcoin, aadhaar, and other social issues.

Thanks for all the 25 participants and speakers.
Special thanks to students of Jaya Engineering College for their regular support.

More Photos are here
https://photos.app.goo.gl/PGOBBqpfnuvXd0aK2

Morning ride in bicycle for openstreetmaps.org


Today, got up early and thought of riding bicycle for fun.

Thought of adding few point of interests to openstreetmaps.org while riding.

From east tambaram, ride to camp road, till agaram then village and came back.

It was 14 km in total. Took 2.5 hours as it was slow ride to explore the roads and nature. The route is clean, less traffic and village areas give much peace.

Agaram then is a small village. Found a library, water tank, few temples, a lake, etc.

Used maps.me android apps to add POI. Added bus stops, temples, banks, ATMs, marriage halls, water towers, schools, hospitals on the way to openstreetmaps.org using maps.me app. Added few photos via mapillary app.

Happy to see that most of the main and sub roads in chennai are already drawn. Thanks to the contributors.

We have many ways to contribute to collaborative open knowledge bases like writing articles to wikipedia, writing code for any open source software.

we can do them all with our computer, on our chair itself. But, this openstreetmaps.org make us to come out of our home, our comfort zone, roam around the streets.

Bicycling and openstreetmaps made my morning useful.

ILUG-C monthly meet – Saturday, 14 Oct 2017


Hi,

Indian Linux Users Group, Chennai [ ILUGC ] is spreading awareness on
Free/Open Source Software (F/OSS) in Chennai since January 1998.

We usually meet on the second Saturday of every month, and for the
month of October we shall meet on Saturday, October 14, 2017 at 1500
IST.

Venue: Classroom No 1,
Aerospace Engineering,
Near Gajendra Circle,
IIT Madras.
Link for the Map: http://bit.ly/iitm-aero

Time  : OCt 14, 2017  3.00 – 6.00 PM

Talk Details:

Talk – 1

Topic – Install/demo Tamil TTS

Description :
Recently, we found ways to install Tamill TTS provided by IITM donlab
and SSN college of Engineering, Chennai

Here is the install script  – https://github.com/tshrinivasan/tamil-tts-install

Will demonstrate the install process

Duration : 30 min

About speaker – T Shrinivasan tshrinivasan@gmail.com , Ebooks
publisher at FreeTamilEbooks.com

Talk – 2

Mini workshop using a TelegramBOT to translate strings for OpenStreetMaps.org

We are dreaming about Maps in Tamil, for long time.

Imagine your mobile phone or GPS device, shows the maps in Tamil,
displays the roads, interesting places in Tamil, It shows routes and
says the street names and directions in Tamil while driving.

The dream can come into real as we have most of the required technologies.
OpenStreetMaps to provide maps, many apps like streetcomplete,
osmcontribute to add streetname and interesting places, Tamil TTS to
say everything in tamil.

The major thing we need is we need all the strings in Tamil.
OSM supports language tags and we can give any string in any language,
along with its translation on other languages.

To enable the translation process of existing strings in OSM, we are
working on a telegram bot. Now, it is easy to contribute to OSM via
translation, with mobile or with web browser.

The bot will be released for public tomorrow with its source code.

It will ask for your osm username, and  then for translate or verify.
The strings will be translated by google translator as first step.
That is not perfect fully. so, we need people to verify it,

You can see a string with its translation. Then say it right or wrong.
once three people confirmed a string it as right, it will be
confirmed. The incorrect strings will be displayed for translation.

Once the strings are completed, they will be uploaded to OSM using a
bot account.

Will release the bot tomorrow.

Come with
your smartphone.
Install Indic Keyboard or Sellinam for Tamil Typing.
Register at openstreetmaps.org

Let us have a translation workshop for openstreetmaps.org

Thanks for the team.

Dinesh Karthik – dineshkarthik.r@gmail.com
Srikanth Logic – srik.lak@gmail.com
Syed Khaleel Jageer – jskcse4@gmail.com
Shrinivasan – tshrinivasan@gmail.com

Duration – one hour

Topic – 3:

Any lighting talks, QA session, etc.

Entry Free. All are welcome.

Installation script for Tamil Text to speech System


The Tamil TTS system provided by IITM and SSN College of Engineering, has a lengthy installation process.

I have written them here. https://goinggnu.wordpress.com/2017/09/20/how-to-compile-tamil-tts-engine-from-source/

It may not be easy to follow and you may find some issues. To make the life easier, I have created shell script, to automate the entire process.

Here it is – https://github.com/tshrinivasan/tamil-tts-install

System requirements:

Ubuntu 16.04

How to execute:

git clone https://github.com/tshrinivasan/tamil-tts-install.git

cd tamil-tts-install

Edit the file, install-tamil-tts.sh

Fill the following details.

DOWNLOAD_PATH=/home/ubuntu/tts/packages #to download the required packages

COMPILE_PATH=/home/ubuntu/tts/compiled # to place the compiled files and folders

Register here http://htk.eng.cam.ac.uk/download.shtml and get a username and password

HTKUSER=htkuserchennai

HTKPASSWORD=sgqY=t=M

Then, execute the file as

bash install-tamil-tts.sh

How to convert a text to audio?

export FESTDIR=/usr

cd COMPLIE_PATH ssn_hts_demo/scripts/complete “தமிழ் வாழ்க” linux

This will convert the text and store as wav in

ssn_hts_demo/wav/1.wav

you can play it with any audio player.

The full details of what is on the compile process is explained here. https://goinggnu.wordpress.com/2017/09/20/how-to-compile-tamil-tts-engine-from-source/

To hear a demo on how the tamil TTS system sounds, click here

Thanks for IITM Team – Prof Hema  and Anju for their great support on helping us to get installed the tamil TTS system.

 

How to compile Tamil TTS engine from source?


IITMadras and SSN College of Engineering team have released a Open Source Text to speech conversion engine for Tamil and other indian languages.

Check their efforts at https://www.iitm.ac.in/donlab/tts

In this blog post, let us see how can we compile and install the tamil tts system in a ubuntu 16.04 machine.

 

Go to this link

https://www.iitm.ac.in/donlab/tts/voices.php

It will ask for Signup.
Register by giving username and email address.

Soon, you will get an email with the password to login.

If you dont’ get any password, send an email to hema@cse.iitm.ac.in

 

Once you got a password, login to the same link.

Now, you will get two select drop down lists.

Select Language = Tamil
Select Voice type = HTS-2.3

Click “Agree & Download”

It will download a file ssn_hts_demo_tamil_male.tgz

 

gunzip ssn_hts_demo_tamil_male.tgz
tar xvf ssn_hts_demo_tamil_male.tar

cd ssn_hts_demo

Read the README.txt

as step 1, it says as
Step 1: Configure the folder
./configure –with-fest-search-path=/$FESTDIR/examples/ –with-sptk-search-path=/usr/local/SPTK/bin/ –with-hts-search-path=/usr/local/HTS-2.2beta/bin/ –with-hts-engine-search-path=/PATH TO hts_engine_API-1.06/bin/

 

It requires, following software

1. Festival – we can install it using apt-get
2. SPTK
3. HTS
4. hts_engine_api

2,3, and 4 should be downloaded from respective sites as source and they should be compiled.

 

1. To install festival, run the below command

sudo apt-get install festival

 

Install few required packages

sudo wget festival libx11-dev build-essential g++-4.7 csh gawk bc sox tcsh default-jre -y

2. Download SPTK source from http://sp-tk.sourceforge.net/

https://nchc.dl.sourceforge.net/project/sp-tk/SPTK/SPTK-3.10/SPTK-3.10.tar.gz

 

tar xvzf SPTK-3.10.tar.gz

cd SPTK-3.10
./configure –prefix=/home/ubuntu/tts/sptk
make
make install

 

 

3. HTS-HTK
Download from http://hts.sp.nitech.ac.jp/?Download

 

mkdir hts-htk
cd hts-htk
wget http://hts.sp.nitech.ac.jp/archives/2.3/HTS-2.3_for_HTK-3.4.1.tar.bz2

tar xvjf HTS-2.3_for_HTK-3.4.1.tar.bz2

The INSTALL file says few things to do.

let us do them

Download HTK from
http://htk.eng.cam.ac.uk/download.shtml

it requires to register with username, email, organization and address.
Once registered, you will get password in mail.

using that you can download the packages

http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz

 

wget http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz –user=htkuserchennai –password=sgqY=t=M

 

download HDecode from
http://htk.eng.cam.ac.uk/prot-docs/hdecode.shtml

wget http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz –user=htkuserchennai –password=sgqY=t=M

tar -zxvf HTK-3.4.1.tar.gz
tar -zxvf HDecode-3.4.1.tar.gz

cd htk

patch -p1 -d . < ../hts-htk/HTS-2.3_for_HTK-3.4.1.patch

./configure –prefix=/home/ubuntu/tts/hts

make

 

Now, I got the following error.

 

(cd HTKLib && make HTKLib.a) \
|| case “” in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory ‘/home/ubuntu/htk/HTKLib’
gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c
HGraf.c:118:77: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target ‘HGraf.o’ failed
make[1]: *** [HGraf.o] Error 1
make[1]: Leaving directory ‘/home/ubuntu/htk/HTKLib’
Makefile:141: recipe for target ‘HTKLib/HTKLib.a’ failed
make: *** [HTKLib/HTKLib.a] Error 1

To solve this, run the below command

sudo apt-get install libx11-dev

https://stackoverflow.com/questions/5299989/x11-xlib-h-not-found-in-ubuntu

Thanks to the s.t.o community for the answer.

 

run make again

make

Got another error as below.

 

gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o esignal.o esignal.c
In file included from /usr/include/string.h:630:0,
from esignal.h:34,
from esignal.c:29:
esignal.c: In function ‘ReadHeader’:
esignal.c:974:29: error: ‘ARCH’ undeclared (first use in this function)
if (strcmp(architecture, ARCH) == 0) /* native architecture */
^
esignal.c:974:29: note: each undeclared identifier is reported only once for each function it appears in
esignal.c: In function ‘WriteHeader’:
esignal.c:1184:25: error: ‘ARCH’ undeclared (first use in this function)
architecture = ARCH;
^
esignal.c: In function ‘GetLine’:
esignal.c:1760:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, len+1, file);
^
esignal.c: In function ‘GetLong’:
esignal.c:1808:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, len+1, file);
^
<builtin>: recipe for target ‘esignal.o’ failed
make[1]: *** [esignal.o] Error 1
make[1]: Leaving directory ‘/home/ubuntu/htk/HTKLib’
Makefile:141: recipe for target ‘HTKLib/HTKLib.a’ failed
make: *** [HTKLib/HTKLib.a] Error 1

Again s.t.o helped.

https://stackoverflow.com/questions/37719890/install-hts-2-3-for-htk-3-4-1-on-ubuntu-16-04-has-error

Run the below commands

sudo apt-get install g++-4.7
export CC=gcc-4.7 CXX=g++-4.7
./configure CFLAGS=”-DARCH=linux” –prefix=/home/ubuntu/tts/hts
make
make install

 

Next is hts_engine_API

download from https://sourceforge.net/projects/hts-engine/files/hts_engine%20API/hts_engine_API-1.10/

wget https://nchc.dl.sourceforge.net/project/hts-engine/hts_engine%20API/hts_engine_API-1.10/hts_engine_API-1.10.tar.gz

tar xvzf hts_engine_API-1.10.tar.gz
cd hts_engine_API-1.10
./configure –prefix=/home/ubuntu/tts/hts_engine_api
make
make install

 

Then, few more commands.

cd /usr/share/doc/festival/examples/
sudo gunzip dumpfeats.gz

sudo gunzip dumpfeats.sh.gz
sudo chmod a+rx /usr/share/doc/festival/examples/dumpfeats

Thats all. We install all the dependancies of ssn_hts_demo.
Let us install it now.

cd ssn_hts_demo

./configure –with-fest-search-path=/usr/share/doc/festival/examples –with-sptk-search-path=/home/ubuntu/tts/sptk/bin/ –with-hts-search-path=/home/ubuntu/tts/hts/bin/ –with-hts-engine-search-path=/home/ubuntu/tts/hts_engine_api/bin/

sudo mv /usr/share/festival/radio_phones.scm /usr/share/festival/radio_phones.scm-old

sudo cp ~/ssn_hts_demo/radio_phones.scm /usr/share/festival/

sudo cp ~/ssn_hts_demo/Slurp.pm /usr/share/perl5/File/

gcc scripts/tamil_trans.c -o scripts/tamil_trans

 

Thats all. Done with all the compilation works.

Let us invoke the command to make the tamil text to audio.

export FESTDIR=/usr
ssn_hts_demo/scripts/complete “தமிழ் வாழ்க” linux

This will make audio file as ssn_hts_demo/wav/1.wav

I can now play the file with any audio player and hear a good voice of the text in tamil.

 

I tried with a little huge text.

here is the demo

The text I gave is

என் சரித்திரம், உ. வே. சாமிநாதையர் எழுதிய தன்வரலாறு ஆகும். இதில் 1855ஆம் ஆண்டு முதல் 1898ஆம் ஆண்டு வரை அவருடைய வாழ்வில் நிகழ்ந்தவை பதியப்பட்டுள்ளன. இதில் அவர் தமிழ் கற்ற வரலாறு, தமிழ் நூல்களைப் பதிப்பித்த வரலாறும் பதிவுசெய்யப்பட்டு உள்ளன.தமிழ்த்தாத்தா டாக்டர் உ.வே.சா. அவர்கள் எழுதிய தன் வரலாற்று நூல் இது. இந்நூலைக் கற்றால் ‘பெருக்கத்து வேண்டும் பணிதல்’ என்ற இலக்கணத்துக்கு இதுதான் சரியான இலக்கியம் என்ற உண்மை தெளிவாகும். பேதங்களுக்கு அப்பாற்பட்ட போதம்தான் தமிழ்ஞானம் என்பது இந்நூலின் தொகுமொத்தப் பொருள் என்றால் அது மிகையாகாது. ’நன்றிக்கு வித்தாகும் நல்லொழுக்கம்’ என்ற தொடரை விளக்குவதற்காக இவர் மண்ணுலகில் பிறந்தார் என்று கொள்ள வேண்டி இருக்கிறது. டாக்டர் உ.வே.சா. அவர்களின் என் சரித்திரமும் மகாத்மா காந்திஜி அவர்களின் சத்திய சோதனையும் ஒரேதரம் உடையவை. இவற்றின் ஒவ்வோரெழுத்தும் வாய்மை நிரம்பிய வைர எழுத்துக்கள்.என் சரித்திரம் கற்றால் தமிழார்வம் வரும். வந்த தமிழார்வம் வளரும். பத்துப்பாட்டும், எட்டுத்தொகையுள் ஐந்தும், மூன்று பெரும் காப்பியங்களும், ஐம்பதிற்கும் மேற்பட்ட பிற இலக்கியங்களும், இலக்கண நூல்களும் நின்று நிலவுவதற்குக் காரணம், டாக்டர் உ.வே.சா. அவர்களின் அயரா உழைப்பே என்பதை, இந்த மன்பதை அறியும். அந்த நூல்களைக் கற்கும் முன், ’என் சரித்திரம்’ என்னும் இந்த நூலைக் கற்க வேண்டும். இதனைக் கற்றால் தமிழ் நூல்களை அச்சுக்குக் கொண்டுவர அவர்பட்ட இன்னல்கள் புரியும்.1. எங்கள் ஊர்சற்றேறக்குறைய இருநூறு வருஷங்களுக்கு முன்பு தஞ்சாவூர் ஸமஸ்தானத்தை ஆண்டு வந்த அரசர் ஒருவர் தம்முடைய பரிவாரங்களுடன் நாடு முழுவதையும் சுற்றிப் பார்க்கும் பொருட்டு ஒருமுறை தஞ்சாவூரிலிருந்து புறப்பட்டார். அங்கங்கே உள்ள இயற்கைக் காட்சிகளை யெல்லாம் கண்டு களித்தும், ஸ்தலங்களைத் தரிசித்துக்கொண்டும் சென்றார். இடையில், தஞ்சைக்குக் கிழக்கே பதினைந்து மைல் தூரத்திலுள்ள பாபநாசத்திற்கு அருகில் ஓரிடத்தில் தங்கினார். வழக்கம்போல் அங்கே போஜனம் முடித்துக்கொண்ட பிறகு தாம்பூலம் போட்டுக்கொண்டு சிறிது நேரம் சிரம பரிகாரம் செய்திருந்தார்; தம்முடன் வந்தவர்களோடு பேசிக்கொண்டு பொழுதுபோக்குகையில் பேச்சுக்கிடையே அன்று ஏகாதசி யென்று தெரிய வந்தது. அரசர் ஏகாதசியன்று ஒரு வேளை மாத்திரம் உணவுகொள்ளும் விரதமுடையவர்; விரத தினத்தன்று தாம்பூலம் தரித்துக்கொள்வதும் வழக்கமில்லை. அப்படியிருக்க, அவர் ஏகாதசி யென்று தெரியாமல் அன்று தாம்பூலம் தரித்துக்கொண்டார். தஞ்சாவூராக இருந்தால் அரண்மனை ஜோதிஷர் ஒவ்வொரு நாளும் காலையில் வந்து அன்றன்று திதி, வார, நக்ஷத்திர, யோக, கரண விசேக்ஷங்கள் இன்னவையென்று பஞ்சாங்கத்திலிருந்து வாசித்துச் சொல்வார். அதற்காகவே அவருக்கு மான்யங்களும் இருந்தன.அரசருடைய பிரயாணத்தில் ஜோதிஷர் உடன் வரவில்லை. அதனால் ஏகாதசியை அரசர் தெரிந்துகொள்ள முடியவில்லை. எதிர்பாராதபடி விரதத்திற்கு ஒரு பங்கம் நேர்ந்ததைப் பற்றி வருந்திய அரசர் அதற்கு என்ன பரிகாரம் செய்யலாமென்று சில பெரியோர்களைக் கேட்கத் தொடங்கினர்.(மேலும் படிக்க…)

 

Here the audio now.

 

 

Yes. This is the best open source text to speech engine for tamil, so far.

Tons of thanks for IITM team and SSN College of Engineering for making the TTS engine and releasing as open source and for free.

Working on making the installation easier with a shell script.

Will share once done.

 

 

Build your own Story Books for kids in your Language with Story Weaver


Last week, I got an opportunity to attend a workshop on building story books for Children using http://storyweaver.org.in/

Storyweaver beta

This portal is developed by Pratham Books, a Not-for-profit organization, which is helping Indian kids to get more story books in their own languages. They started with creating story books, print, sell them, but with Creative Commons CC-By license. Anyone can copy their books, print, share and sell.

Pratham books

Now, with story weaver platform, they enable any one to create stories for kids. We can build stories or translate existing stories to our language.

I knew this platform few months ago. But did not explored much. Suddenly, received an email from Pratham Books from their blog, as they organize a workshop on storyweaver platform in Chennai. Registered immediately.

On the event day, reached the venue at T.Nagar. It was a good meeting hall with projector. We got around 50 participants. Except me, most of them are directly with children as teacher/trainer/StoryTeller.

We got participants from many organizations like Vazhai, Isha Vidhya, Katha & Ratha, Teach for India, Vidyarambam and more. Got a bunch of people from Villupuram Coimbatore too. Most of them are using books by Pratham books on their class rooms and activities.

The workshop was to explore the storyweaver platfrom. They explored the platform. We can read 4700 stories available. They support 84 languages. The portal has 7461 images to make wonderlands.

After the demo, tasks were given to create a story book or translate. I got to translate. We formed a team and translated a book. At the end of the event, the demo session was interesting. With a small introduction, people made stunning stories.

The images uploaded should be self made. We should not upload other’s work. As all the works, text and images are released in creative Commons CC-By license, any one use it for any purpose, including selling them. Hence, they are very keen on ensuring about the license of the works, text and illusions/images.

But, with available 7000 images, we can make wonderlands for our kids easily.

I invite you to explore the site, read few books and share it with the children you know. I made few books, flashcards and wordless stories to check how my kid Viyan likes them. He enjoyed them. He started to create his own stories on seeing the images. He even understood (or made his own stories) for the books on other languages too.

I was searching for books for kids in Tamil for many years. We dont get much much even in TamilNadu. All the bookshops have only many English books. One or two books only available in Tamil. Check in your nearby shop and look for the books that introduce alphabets, numbers, vegetables, vehicles, climate, animals, flowers etc. You can get all in english. Only alphabets and numbers are available in Tamil. I think the same will be for other languages too. The globalization kills all the native languages. To give new life to our languages, it is our duty to introduce the world of books to our kids in our language. Story books, flashcards are best vehicles to bring languages to kids.

StoryWeaver makes this possible to all the languages.

Let us weave more stories for our kids.

Thanks to pratham books for the wonderful platform and great workshop. Will contribute for Tamil Books. Planning to make a screencast on how to use storyweaver in Tamil. Will make it soon and conduct events to introduce it to local communities of parents, teachers and kids lovers.

 

Happy 4th birthday for FreeTamilEbooks.com


Happy Birthday

source : http://www.publicdomainpictures.net/view-image.php?image=172102&picture=happy-birthday

Today, our FreeTamilEbooks.com completes 4 years and enters into 5th year.

303 ebooks, 48 lakh downloads, thousands of readers, hundreds of writers, more new contributors are the wonders of the projects.

We are planning for 5th year, to bring more new ebooks, competition,prizes for writers, contributors, and new action plans etc.

Stay tuned for the announcements.

Thanks for being with us.

Share your thoughts in our discussion forum.
https://groups.google.com/forum/#!forum/freetamilebooksforum

 

 

 

 

Notes : Wikipedia Mini Hackathon Chennai July 23, 2017


Today, from Indian Linux Users Group, Chennai, we conducted a mini hackathon on Wikipedia.
We asked for ideas to the Tamil wiki community.
Collected the ideas here – https://ta.wikipedia.org/s/6t7w

We got 7 people. Balaji is a second year CS student. Syed Abuthahir is joining his first company as Python programmer tomorrow. His college senior Ajees is working. Neechalkaran is a well known contributor for wikipedia for his bots. Padmakumar is a C/C++ expert. Sankar is a full stack programmer. Myself a python kid.

With this energetic team with various skillsets, today’s hackathon got some interesting contributions.

Balaji hacked the UI of Tamil wikisource to show the wiki editing tools to left side bar. He is exploring on adding Tamil typewriting keyboard to Jquery.ime of “Universal Language Selector” extension of mediaiwki.

Padma Kumar explored the process of installing Tamil Text to speech system provided by IIT Madras. With very less and confusing documentation, he was downloading huge amount of software stack and compiling them for the entire day. Found that they had many hardcoded paths for various files in the code. Have to find and fix them manually. He will be exploring on this, further.

Syed Abuthahir explored the features of wikitools, a python library. He started to build a reporting tool to list out the contributions by all the TamilNadu School Teachers. The tool is still backing. He will complete it soon.

Neechalkaran explained and demonstrated his bots using Google Script Engine. He explained how mediawiki api works. He learned working with wikitools and python.

Sankar started to explore wikipedia as he is very new to it. Myself was helping the participants to understand the requirements and to get into hacking easily.

Will followup with the team to get the repo links and documentation.

Thanks for Raja Manohar for providing the venue. Thanks for Sankar and Vasanth for nice hospitality.

Thanks for all the participants. Hoping to see them all as great contributors to wikipedia. Let us conduct such events often. Meet you all soon.

Photos are here – https://photos.app.goo.gl/SEjPkJUvF30qGUWg2

ILUGC Hackathon – 2 – Wikipedia Hackathon – July 23, 2017


Announcing our second hackathon on July 23. This time it is all about Wikipedia.

Venue :

Hexolabs Interactive Tech Pvt Ltd, Type II/17, Dr.VSI Estate,
Thiruvanmiyur, Chennai 41. Phone – 044 42169699  Near NIFT, Opposite
to Origin Towers.

https://goo.gl/maps/XtTZXXDf3Ku
https://www.openstreetmap.org/node/4978570060#map=17/12.98271/80.25278

Date : July 23, 2017
Time : 10.00 AM – 5.00 PM

Must:

* Bring your laptop
* Knowledge in any programming language

Good:

* To bring any internet device like dongle or 4g smartphone to get your own internet, as there is limited speed in available internet

Pre-Learning:

Exploring these links and installing them is desired.

Installing medaiwiki-
https://www.digitalocean.com/community/tutorials/how-to-install-mediawiki-on-ubuntu-14-04

https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_XAMPP

wikitools – Python Library
https://github.com/alexz-enwp/wikitools/wiki/Documentation

Mediawiki API https://www.mediawiki.org/wiki/API:Main_page

Gadgets https://www.mediawiki.org/wiki/Gadget_kitchen

Hack Ideas:

If you, or Tamil or any other language wiki needs any programming solutions, share the ideas here.

Examples :
1. Report of contributions of all TN school teachers. Usernames will
start as TNSE. Need a report like https://ta.wikipedia.org/s/6s9e

2. Fixing the titles, moving the pages automatically, if they have
errors on page title.

3. Install Tamil TTS – https://www.iitm.ac.in/donlab/tts/index.php
and try to use it for wiki pages.

Registration :

To register, add your name in the following wiki page.
bit.ly/2u5AnT1

If you dont know tamil, just mail me your interest to attend.

Contact:

T Shrinivasan  tshrinivasan@gmail.com 98417 9546 Eight