June 3rd, 2013
In Technology
No Comments
This is an important tip about ssh and Github. I redid my ssh keys like 5 times before I finally found out what the real problem was.
A common mistake is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking the ssh button left to the URL field and updating the URL of your origin remote like this:
git remote set-url origin git@github.com:username/repo.git
Source
May 28th, 2013
In Technology
No Comments
This conversation is good. Some highlights:
There are two phases which seem, in java land at least, to get conflated.
1. Poking an API to learn it’s capabilities and behaviour.
2. Writing tests to prove the correctness of your use of the API.
These are quite different phases, each important in their own way
1. is the ‘kicking the tyres’, open the bonnet, boot etc when you’re looking at car to see if it’s what you want to buy.
2. is the MOT, looking at ...
Read More
Source
May 16th, 2013
In Technology
No Comments
The most abstracted and de-coupled and object-oriented framework that I have worked with is Symfony, and it is also the framework that has broken backwards compatibility the most often, during the last 5 years. I started working with Symfony in early 2008, and it has been constantly refactored during that time, and each refactoring has broken something important.
It is difficult to explain why I dislike Symfony so much. For awhile I would have said it was their envy of ...
Read More
Source
May 16th, 2013
In Technology
No Comments
My co-worker Erick sends me this:
Yea, if you go to ifconfig.me you get all sorts of info from the view of the internet. You can even get the info from command line. For example curl ifconfig.me/ip will give you the public IP address (See the Command Line Interface section from the website).
However do note, that this IP address represents the Internet address for the entire office. If a specific server should only be allowed to access a ...
Read More
Source
May 14th, 2013
In Technology
No Comments
This tutorial is good. I am now sad that I wasted days finding this information in scattered places, because this one tutorial brings it all together in one place. I am going to link to it in the hopes that Google will rank it more highly in the future.
Source
May 14th, 2013
In Technology
No Comments
I was a fanatic proponent of PHP, back around 2000. If I wanted to build a website, I could use Java or Perl or PHP. The choice was straightforward. Java was complex, and any change demanded that the code be recompiled. Perl had a small core and a million libraries that you needed to bundle in, so it was a little bit like Java in that you had to assemble a lot of different pieces. PHP was a light weight, ...
Read More
Source
May 9th, 2013
In Technology
No Comments
Spent some serious time trying to track down this answer. My company has a Sinatra app running via Heroku. I just started working at a new office that has never had access to these apps. How do I whitelist my IP address so I can reach the AWS server and run a command like mysqldump? Can I do that via the Heroku toolset? No. Apparently I need to log into the AWS console. These are useful resources:
Connecting Your ...
Read More
Source
May 6th, 2013
In Technology
No Comments
This is a great post on how to restore MongoDb from backups.
Source
May 4th, 2013
In Technology
No Comments
A friend sends me this in an email:
The unfortunate bit is that IMO, the DevOps role was created to handle the headache part, so the engineers can spend more time doing the fun parts.
This is an anti-pattern. When your company does this, it is making a mistake.
Source
May 3rd, 2013
In Technology
No Comments
This killed a whole day for me. I kept running:
heroku db:pull –app ny-offers
I needed a local copy of this database. The download would get halfway and then die:
I did some research and decided the problem was net_read_timeout or net_write_timeout in MySql. So I adjusted both:
set @@net_write_timeout = 1800;
set @@net_read_timeout = 1800;
That didn’t help.
So then I thought I could use mysqldump. I followed the directions in that post. But my IP was not whitelisted so I was not allowed ...
Read More
Source
May 1st, 2013
In Technology
No Comments
I am surprised by the continued rise of Javascript, a somewhat flawed language that has now become a universal target for dozens of other languages. I am stunned by the thought that creating Javascript might become the “killer app” that brings Clojure into the mainstream.
I was highly resistant to learning ClojureScript, but I want to experiment with LightTable, so I guess I need to learn ClojureScript (which I gather is the language for writing plugins for LightTable).
Source
April 25th, 2013
In Technology
No Comments
I have started using Expectations, which is a testing system created by Jay Fields. I really like Expectations. It is very minimalist, which I like a great deal.
Source
April 23rd, 2013
In Technology
No Comments
A great writeup of several different process managers, that help with daemonization and restarts:
Monit is an established player in the process management game. Its sole purpose is to monitor daemon processes, files, directories, filesystems, etc on your server and respond with appropriate actions whenever something is not as it should be.
Sample
Here’s a simple configuration to monitor an SSH server daemon process:
1
2
3
4
5
6
set daemon 60 #check interval in seconds
check process ssh with pidfile “/var/run/sshd.pid”
start ...
Read More
Source
April 23rd, 2013
In Business, Technology
No Comments
I just went through something just like this. Interesting:.
It was the , and I was a young developer 1. In college, I had aced coding exercises, as a junior dev I had cranked out code to solve whatever problems someone specified for me, quicker than anyone expected. I could learn a new language and get productive in it over a weekend (or, so I believed).
And thus, in the natural course of things, I got to run my own project. ...
Read More
Source
April 23rd, 2013
In Technology
No Comments
Haven’t needed to do this yet but at some point I will.
Source
April 23rd, 2013
In Technology
No Comments
GDB lets you tap into a running process and see what is happening with your app, while your app is live.
That includes stuff like running Ruby or Python processes.
Source
April 17th, 2013
In Technology
No Comments
I just sent them $100. I am wholly reliant on Monger for everything I do at this point.
ClojureWerkz was started in mid-2011 because we were frustrated with a couple of database and messaging libraries that were very popular in the Clojure community at the time. We were also frustrated with the “culture” of not documenting projects. So developed a library the way we wanted. Then another one. And another one. Today, we find ourselves with dozens of projects that ...
Read More
Source
April 17th, 2013
In Technology
No Comments
by Vladimir Momirov: This is an awesome script:
The biggest problem is that I used GridFS to store uploaded files. After unsuccessfully searching online I decided to write my own bash export script. How to export all the files out of mongodb gridfs? Here’s the script:
#! /bin/bash
_host=”${1:?Usage: gridfs host db}”
_db=”${2:?Usage: gridfs host db}”
while read -r line; do
file=$(echo “$line” | awk -F’\t’ ‘{ print $1 }’)
[[ $file == 'connected to'* ]] && continue
...
Read More
Source
April 16th, 2013
In Technology
No Comments
This is a very good write up by Lukasz Wrobel, about different cache techniques.
Instead of mixing cache logic into your methods, try to wrap method calls with cache handler. This shouldn’t be difficult, especially in view of some nice Ruby’s features.
Let’s wrap method call with a block like this:
posts = cached(‘posts’) do
get_posts()
end
It looks much more cleaner than the previous example, but when does the caching and retrieving data from cache takes place? Let’s try to implement the ...
Read More
Source
January 10, 2012 1:09 pm
From lawrence on Fred Dewey is misunderstood
"Thank you, Charlotte. But what is the main advantage of Kachingle for you? You could perhaps find a more direc..."