If..Else Blog

Random thoughts of a Devops Engineer

P vs NP

I read a really good article about the P vs NP problem. Although, it would be really great to speed up the internet by knowing the most efficient way to route packets or UPS being able to deliver all packages in the most efficient way, I don’t think breaking all the internet encryption would work out so well for us. We might need to label this problem as one that does not need to be solved at the present time.

Lets Learn Go

I have several new languages that I want to learn, but Go is at the top of the list at the moment. I bought The Go Programing Language by Donovan and Kernighan to start the process. I think it will also help to work through some Project Euler problems. I will be posting some code to the exercises in the book when I complete them. So without further ado:

1
2
3
4
5
6
7
package main

import "fmt"

func main() {
    fmt.Println("Hello Go ")
}

RethinkDB

Went to a great Meetup last night. One of the founders of RethinkDB, Michael Glukhovsky, gave a great presentation. I can’t wait to try out RethinkDB on my next project. If you need to have real-time data presented to your users, it is definitely the way to go. I will post some of my experiences with it later on.

Pro Git

So I was just browsing around today and stumbled on the book Pro Git. It is available for free online and can be downloaded to your favorite e-reader.

Quantum Hard Drive

In a link from HackerNews, phys.org is reporting that “Physicists developing a prototype quantum hard drive have improved storage time by a factor of more than 100.” Check it out!

How Do We Write a Function in Elisp

Today I was working on creating a blog post and discovered that I need a function to automatically insert the date of the post in a Emacs buffer. It is a real simple task to write one, but I thought I would share it here. I have named my function post, but it could be anything you want. I used this link to get the syntax for the string formating.

1
2
3
4
(defun post ()
       (interactive)
       (insert (format-time-string "%Y-%m-%d %H:%M:%S"))
)