“I just need to setup my dev environment”
seen from Russia
seen from United Kingdom
seen from Netherlands
seen from Germany

seen from United States

seen from India
seen from China
seen from India
seen from Australia
seen from United Kingdom
seen from United States
seen from India
seen from India

seen from United States

seen from United States

seen from Russia
seen from United States
seen from Greece
seen from Australia
seen from Sweden
“I just need to setup my dev environment”
How to Use EditorConfig
EditorConfig allows you to define the indentation style (spaces vs. tabs) in your code. To use, first install the EditorConfig plugin into your text editor (Sublime). Next add an .editorconfig file to your project’s root directory. It’s in this file that you will define your preferred indentation settings.
root = true
[*.{css,html}] indent_style = space indent_size = 4
What this says is
yes, I’m am located in the root of the directory
each indent (tab) will be rendered as four space characters
these settings should be applied to all css and html files
This is great because it ensures consistent indentation style in your directory even if multiple people are contributing to the project or if you copy and paste someone else’s code.
Note: If you add an editorconfig file to a project, the existing files should update their indentation size. However, it won’t convert existing tab characters to space characters. If you are using Sublime Text, go to the bottom right hand corner of the screen and select “convert indentation to spaces”.
Resource https://stackoverflow.com/questions/26350689/what-are-hard-and-soft-tabs
Install & config Apache, MySQL and PHP on your Mac (MAMP)
Install & config Apache, MySQL and PHP on your Mac (MAMP)
There’s a Mac computer that I want to use as local development server for web apps. I don’t want to use bundled installers like XAMPP or MAMP because I feel that I will learn more about Apache if I install each component of the LAMP stack separately. By the way, one of my goals is to be an expert in the LAMP stack. And prior to writing this blog entry, I had only been concerned about the actual…
View On WordPress
Elixir 1.2 on Ubuntu 16.04 on Vagrant 1.8
To update my previous post on getting Elixir on Ubuntu 15.10, I tried setting up the same project on the latest LTS version Ubuntu, 16.04, unsuccessfully over the weekend.
I had planned to do this as part of getting the project ready for production anyway. With 16.04 being out for a month or so now, I figure this is a good time. However, after destroying the old vmbox and trying to bring up the new one using the base ubuntu/xenial64, I ran into vairous networking issues including setting up the hostname, as well as mounting the project folder to the default /vagrant path.
This seems to be a known issue to the vagrant team with many related tickets open in vagrant's Github page, which if you want to take a look, I'd recommend starting from here.
At the end of it all, I had to revert back to using 15.10 which isn't bad but I would like to eventually run the project on a LTS version and 14.04 is just a little too old for my liking. I'll just have to keep an eye out for a fix from Vagrant team.
Friday June 27 2014
Now have Ansible set up for NBEC.
cd project sh ansible/provision.sh
Vagrant
I'm an Impatient Rails Developer
...okay...I'm impatient when it comes to everything. Yesterday, I told my girlfriend she needed to get home at 5:00 to make our dinner reservation. She showed up at 5:30. Obviously, I was not too happy. However, being the compassionate, understanding and forgiving boyfriend that I am, I was able to get over it quickly. When it comes to me and my development environment, I possess none of these redeeming personality traits. I can't stand waiting for anything.
Rails is so fast when I create a new project. However, as time passes (or you inherit an already massive project), then the project slows down to the point where I notice some lag. Now, these lags may be 100% my fault (code bloat, poorly structured DB queries, etc.), but when I see the same transaction take 10x less time to complete on my production server, my eyebrows start inching up my forehead.
Eventually, I focused my frustrations to a google search and I stumbled upon this little gem: https://github.com/thedarkone/rails-dev-boost (if you're a nerd like me, you're really enjoying that double entrendre right about now). It sped me up by a factor of about 5x (according to my Rails log). Sweet!
I have had problems where I change my models and weird things start happening, so I have to restart my server. However, the documentation for the gem seems to cover some situations that fit that description, so it looks like it's me and it's fixable (whenever I get to it).
Sam (@samwduvall)
Other than a patch to include a commit SHA, I think this is probably one of the cooler(and better looking) solutions I've seen to this issue.