Categories
data science Uncategorized

Dealing with dates in pandas – Python

First thing first, import the pandas module and read the csv file So, we have a simple data frame like this… …and we want to calculate the amount of time between the start and the end. The main problems is that the dates are read as string (when read from a file), and therefore there […]

Categories
data science Uncategorized

MAMP installation through Brew

This is an amazing tutorial on how to install and configure Apache, MySQL, and PHP on a Mac. https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew

Categories
data science Uncategorized

Submitted my PhD thesis

I’ll have more time to post now. :)

Categories
data science Uncategorized

Git log formatted

Categories
data science Uncategorized

Pandoc latex to docx – Latex

A simple reminder of how to use pandoc to turn a latex file to docx. -f from format -t to format -o output file –bibliography where the bib link goes although you don’t have to include the from and to format options. So a simpler version would look like this. Simple

Categories
Uncategorized

Range of Dates – Python

This short script will help you create a range of dates that look like this 201203,201205,201306….

Categories
Uncategorized

Three years ago today.

Categories
Uncategorized

Activity in CyanogenMod’s IRC

One of the problems of IRCs, as well as other forms of synchronous forms of communications, is that you can sometimes log into an empty room and find yourself a very lonely individual. After monitoring CyanogenMod’s IRC for a few weeks, I’ve figured out which days are and which times see the most activity. First, […]

Categories
Uncategorized

Latex to Word via HTML using Vim

One of the best ways to convert a Latex file to a word document is to first convert it to html using latex2html and then open the html file using word. Although there are other programs (such as latex2rtf) that can do the same job, I find that latex2html is slightly better at keeping most […]

Categories
Uncategorized

Checking out a Sub-Reddit’s Front Page – Python

This code uses Reddit’s own API, praw, to download all the post titles, karma counts, position, and reddit id of each post within a sub reddit. This example collects all the info from the top 100 posts in r/technology at on hour intervals and then saves it to a file.