A good number of Macbook Pros and Mac Minis can be upgraded fairly easily. Here are some links for upgrades.
Crucial MX100 256GB SATA 2.5" 7mm (with 9.5mm adapter) Internal Solid State Drive CT256MX100SSD1
Crucial 8GB Kit (4GB x 2) DDR3 1066 MT/s (PC3-8500) CL7 SODIMM 204-Pin Mac Memory CT2C8G3S160BM
Thursday, October 23, 2014
If you ever want to be able to swap environments easily (for zero downtime deployments) you need to get your DNS right.
Suppose you have the website http://www.example.com/ and http://example.com/.
Route 53 you need to have the following setup:
example.com (A Record) w/ special Amazon Alias to production-eb.example.com.
production-eb.example.com is an A record with Alias to your load balancer -->
Sunday, October 5, 2014
HWRaid is probably the best set of packages for Ubuntu:
sudo add-apt-repository "deb http://hwraid.le-vert.net/ubuntu lucid main"
wget -O - http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add -
apt-get install megactl
I was pretty confused when I first started creating virtual machines. Between Xen, VirtualBox, VMWare, LXC, Docker there are a ton of technologies for virtualization.
I decided to go with KVM. A library called libvirt helps a lot in creating virtual machines (aka domains). Libvirt has a tool called virsh which is what we will be using.
virsh uses xml files for the configuration of the domains. To create one easily you can use the virt-install command. The files are stored are in /etc/libvirt/qemu/
--name moloko \
--disk /var/kvm/moloko,size=32 \
--ram 1024 \
--graphics vnc,password=password,listen=0.0.0.0,port=5910 \
--cdrom /var/kvm/ubuntu-14.04.1-server-amd64.iso \
To delete the domain:
virsh destroy moloko
virsh undefine moloko
Wednesday, January 15, 2014
Getting mobile data to work in Cusco was fairly easy. You should make sure you have an unlocked phone that can take a SIM card. I was using a Nexus 4 so it comes unlocked.
Basically you can buy a SIM card at a Claro store. It will cost you 8 soles and will come with no money on it.
There are lots of places that say "Claro" in a big red logo but only some of them are actually official stores that sell the SIM card. When you ask for it they will ask for your passport.
After you get the SIM card you will need to recharge it or put money on it. This is the easiest part because you can then go to any of the shops that say "Claro Recharga". They are like everywhere. The process to put money on a card for a merchant only seems to require a cell phone so almost any merchant can do it.
Now for pricing. It can be found on claro.com at http://www.claro.com.pe/wps/portal/pe/sc/personas/internet/internet-movil#info-03 You are looking for prepaid internet plans or "Paquetes de Internet". What package you decide to purchase depends on how long you are staying in Peru and how much data you use.
For me I was on T-Mobile back in the US, $50 per 30 days, 500MB worth of 4G internet then drops to 3G. 500MB carried me about the end of the month. I wish it was like 600 or 700MB. Of course that is with only light uploading and streaming.
The thing with Claro is that you have to buy a data pack and it will be good for only a certain amount of time. So the data packs come in 1 hour, 1 day, 3 day, 5 day, 10 day, 15 day, and 30 day amounts. I purchased the 5 day amount at 200MB.
To purchase you first give money to a recharging person. 3 soles is the minimum. I recommend you put 10 soles to buy the 5 day pack. After it is loaded you will get an SMS saying it is successful.
Here are the SMS messages I got. I actually did it 3 times for 5 soles, 5 soles, and the minimum 3 soles.
After your account is loaded then the trick is to SMS the phone number 779 with the text "5d" or "1h" or "3d" depending on what plan you want. This will activate the data pack. It is case sensitive by the way.
After this you should be able to configure your APN settings. These are settings specific to Claro used to access their data network. If you don't have them you can go here http://www.unlockit.co.nz/mobilesettings/settings.php?id=149.
That should be it. The 3G is stupid fast in Cusco. Much faster than in the US.
Thursday, May 23, 2013
Startups Live and Die by Data Analysis
How often have you been in a startup and someone comes up and asks for you to pull "a few quick numbers" ?
One of common themes when running any company is the need for data analytics.
- When do your customers buy?
- How much do they buy?
- When do they come back?
The faster they can get this information the better the startup will be.
Developer Time is a Scarce Commodity
All to often the responsibility of generating and producing these reports falls on a developer. They rae the ones that understand the underlying data model.
The problem is that development time is valuable. Sure there are complex reports that only a developer may be able to put together. However there are a plethora of other common questions that I am sure could easily be answered with a few hours of SQL training:
- How many users signed up today? Last week? Last month?
- How many users do we have total?
- Who are our top purchasers?
Data Empowerment is a "Good Thing"
By teaching non-technical people SQL they will end up asking better and harder questions. A lot of businesses can be analyzed through just their data model. What objects are in the system? How are they stored?
Exposing this knowledge can yield valuable insights into the business.
How to Get Started
From a technical standpoint there is some risk in giving non technical individuals access to run arbitrary SQL queries. A good setup is to replicate to a read only slave and give them read only access to that database.
I still haven't figured out a good tool for storing the SQL queries and sharing them though so if anyone has any suggestions I'd love to hear them.