Essentials for getting a desktop app up and running using Electron and React. JUST THE SETUP For the purpose of this tutorial we’ll call the new app “newapp” Start by creating a React app Now you need to cd into the newly created directory and install Electron and the other stuff. Both wait-on and concurrently […]
Reading a file using Flask – Python
This took me ages to figure out, and it was tough getting a simple straightforward answer… BTW – I’m assuming that you know all the Flask basics, so I won’t be covering that. If you don’t, I suggest you go through their amazing tutorial. This is what I want: I want my web app to […]
I was data scraping the other day and saving the output to a JSON file, but the text in one of the entries was coming out wrong. Instead of “Antal Dovcsák”, it was coming out as “Antal Dovcs\u00e1k” instead. For context, my code looked something like this: And the output was this… After some googling […]
Clustering and forces in D3JS
The objective is to use D3JS’ network visualisation to cluster groups of nodes based on the link value. The full code and output of this example can be found here. First, I started with heybignick’s awesome network which itself is an adaptation of Mike Bostock’s network – but with node labels. The bit that we […]
So yeah, I’m back in this. Very simple script to turn an adjacency matrix to a D3js network json file. This is the file that we start with: node1 node2 node3 node1 0 8 1 node2 8 0 3 node3 1 3 0 As you can see, this is an undirected graph. This next bit […]
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 […]
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
Submitted my PhD thesis
I’ll have more time to post now. :)
Git log formatted
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
You must be logged in to post a comment.