uncategorized

If you are using os rename src dest…

19 Dec 2016 - 1 minute read
categories: uncategorized tags: python

If you are using os.rename(src,dest) outside the current working directory, you can’t simply use os.rename(filename, “output.mp3”) since it will move the file to the current working directory. You should rather, path.dirname to get the file’s directory and then rename the file. For example you can use `os.rename(file_name, os.path.dirname(file_name) + ‘/{song_title}.mp3’.format(song_title=song_title))`

At last I am now on Fedora 25…

14 Dec 2016 - 1 minute read
categories: uncategorized tags: linux misc

At last, I am now on Fedora 25. It’s great to again be able to use VLC and TexStudio without having to do use any workarounds! Still need to test the Optimus improvements but can’t seem to be able to get Nvidia module to start. bbswitch is loaded. Need some time to figure this one out. I guess will have to try Dota 2 7.00 on WinDoze. **Edit: **It now works perfectly.

Fixing my zsh history

25 Nov 2016 - 1 minute read
categories: uncategorized tags: zsh

I recently corrupted my zsh history and was facing this error. After a reboot, I started seeing a message when loading the shell: zsh: corrupt history file /home/myusername/.zsh_history I fixed it using: mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history

Getting ready for updating my system to Fedora…

23 Nov 2016 - 1 minute read
categories: uncategorized

Getting ready for updating my system to Fedora 25. Updating and backing up Fedora 24. Side by side, studying for my final exams and trying to cope with submission deadlines.

Toured Seville today thanks to FeelTheCityTours

13 Nov 2016 - 1 minute read
categories: uncategorized tags: aceu16

Toured Seville today thanks to https://www.feelthecitytours.com/en/tours/sevilla/ . They are an amazing company with a great tour of this beautiful city. Got to learn a lot about the city along with a bunch of great stories about the city. One of them was the story of Carmen (http://www.geocities.jp/wakaru_opera/englishcarmen.html) which is a pretty nice story. The TAC meeting was pretty nice and was followed by the TAC team dinner at a Tapas restaurant.

Reached the Melia Sevilla Spain tonight Pretty excited…

12 Nov 2016 - 1 minute read
categories: uncategorized tags: aceu16

Reached the Melia Sevilla, Spain tonight. Pretty excited about ApacheCon. Am planning on finalizing the presentations about Allura by tomorrow night and discuss them with @brondsem on Monday. It was a long trip to Sevilla via Madrid and London with @gauravsaini03, he will be speaking about Apache OFBiz which is a complete enterprise solution. Met Dr Paul King(@paulk_asert), who is working on Apache Groovy and has worked on the “Groovy in Action” book by Manning publications.

Feeling excited about attending ApacheCon Big Data and…

08 Nov 2016 - 1 minute read
categories: uncategorized tags: aceu16 allura

I’m excited about attending ApacheCon Big Data and ApacheCon 16 at Seville, Spain. Only a few days are left. Talked with my mentor at Apache Allura, @brondsem today about his experiences at ApacheCon NA Denver 14 and what all I could do at ACEU 16. We’re hoping for improving the exposure of Apache Allura within the Apache community and trying to get some projects in the incubator to try Allura. I’ll try to present a lightning talk and host a demo session for Allura at the conference.

A tip on using fsck

07 Nov 2016 - 1 minute read
categories: uncategorized tags: linux

A tip on using fsck when you are stuck in emergency mode. Whenever you are using `fsck -y` and it does not allow you to run because a certain device (say /dev/sdaX) is mounted, it does not mean you can’t run `fsck -y /dev/sdaY`. That is you don’t unmount that device.

Gitconfig tip for github

01 Nov 2016 - 1 minute read
categories: uncategorized tags: git

Today’s git tip In .gitconfig: [url “[email protected]:”] insteadOf = gh: Now you can do, eg: $ git clone gh:kisielk/errcheck https://twitter.com/kisielk/status/793133952542191616

Just installed a new theme for the blog…

31 Oct 2016 - 1 minute read
categories: uncategorized tags: ajax wordpress

Just installed a new theme for the blog called P2. I’m using a child theme called Mercury. Also installed and played with a bunch of plugins. Want to try micro blogging and also live blogging during my coding sessions. Also, learnt that AJAX requests don’t seem to work behind proxies. P2 sends an initial Ajax request when you click on post from the front-end and it was failing, scourged the internet but couldn’t find a solution.