Icon

Following the Footsteps of Heros, Never Lead to the Straight and Grey Roads. (Oh, Sleeper)

Frodosghost

GitHub Ignore standard symfony files/folders

I use OS X as a development environment for my home projects – and yes, I have made better decisions in my life so lets not get too caught up on that one – so there are many fun times when it comes to programming, to stop the frustration I use the command line to do fancy easy stuff everyday things you can do without programs to ruin it.

The benefits are two-fold:

  1. It works. SometimesApple programs feel the need to run the show, and that is frustrating on so many levels.
  2. It makes me feel cool, like I know what I am doing. I am still not overly comfortable with command line, but we’re becoming good friends.

To setup the ignore files for a git repository just jump into the command line in the new symfony project. I use nano because it comes on OS X, but you can use VI, if you are a command-line warrior.

1
sudo nano .gitignore

01
# GIT IGNORE
02
 
03
# Ignore all .DS_Store files that appear
04
*.DS_Store
05
 
06
# Ignore log files that appear
07
*.log
08
 
09
# Ignore all directories and files in cache
10
cache/**/*
11
 
12
nbproject/**/*
13
nbproject/private/private.properties
14
nbproject/project.properties
15
nbproject/project.xml
16
nbproject/private/private.xml

As you can see by the last bit, I use NetBeans as an IDE. So far I am enjoying it.

CakePHP : Toggle a BitWise status field

I had a problem. I have been using BitWise status indicators for sometime now, in fact after reading Mark Story’s article they have been a staple of development ever since. In my latest work there was a need to turn on or off an item from a menu. I came across this Nice Trick to toggle Model, which seemed to be perfect but because it is on or off it wasn’t quite what I was looking for. Read the rest of this entry »

Setting Up XAMPP for subdomains

It has evaded me for many moons. Long time playing, waiting and researching – biding my time to get the subdomains happening locally. I have been looking at working on a Symfony tutorial as it is something I must learn – unsure if willingly yet. And I decided I must get this down before moving on. Read the rest of this entry »