My requirements for organizing a huge number of PDF e-books:- - An automated way of renaming all of these e-books to their actual titles. - Removing all duplicate files. My solution:- - git clone https://github.com/sayak-sarkar/pdf-title-rename - export PYTHONPATH=${PYTHONPATH}:$(pwd)/xmp.py - python pdf-title-rename/pdf-title-rename.py /* - ./remove_duplicate.sh
-
-
Working around untrusted certificate errors in Express JS
Quick workaround for Error: DEPTH_ZERO_SELF_SIGNED_CERT and UNABLE_TO_VERIFY_LEAF_SIGNATURE while using express requests.
-
Using Vim to generate HTML output of code
This is an interesting bit that I learnt about from an email in a mailing list by James Pryor. To generate html output for code within a shell script you can use: vim myscript.sh '+syntax on' '+ set nu' '+set background=light' +TOhtml '+w myscript.html' '+qall!' If you don’t want numbers…
-
Installing EditorConfig on Sublime Text
To install Editor Config on Sublime Text all you need to do is to follow the following steps:- Go the Preferences tab -> Package Control. Select Install Package from the drop down menu. Wait for the list to load, once it loads it will show you a list of packages.…
-
Coding Best Practices – With a tinge of CSS!
For the curious: What made me write this post: A very good friend of mine called me up today and asked me to go through a web portal that their company is developing to gather some feedback about it. When I opened the page I was quite impressed at first…
-
Programming on Mobile Devices
This is a thought that’s been rather bugging me for sometime now: Is writing code (programming) via mobile devices really not a very feasible idea? In the current scenario, almost all conventional programming is done on desktop computers (PCs, laptops and the likes), wherein we have a standard keyboard which…