phpbb Listener list

I’ve transformed the phpbb Event list wiki to a public google docs spreadsheet. it’s easier to navigate.

phpbb Event wiki

Posted in programming

Installing Sympfony 2.7 on MAMP

firstly, make sure mamp is in your path.

Nix$ export PATH="/Applications/MAMP/bin/php/php5.6.10/bin:$PATH"
verify by .profile
Nix$ pico .profile

You can also add it to your .bash_login file.

Now test it.

Nix$ which php

We’re going to install Symfony in ou MAMP installation, so:

Nix$ sudo curl -LsS -o /Applications/MAMP/bin/php/php5.6.10/bin/symfony

Nix$ sudo chmod a+x /Applications/MAMP/bin/php/php5.6.10/bin/symfony

Now, head to your usual htdocs directory and start a new Symfony2 project.

Nix$ cd /Users/Nix/Sites
Nix$ symfony new my_project

And the installer launches.

If you then head to the app url, the standard startup page is there.

Posted in programming

Slow finder in Mavericks

There have been alot of posts about people with this issue on the

here’s what worked for me.
1) disable automount for -hosts
sudo nano /etc/auto_master
/net -hosts -nobrowse,hidefromfinder,nosuid
#/net -hosts -nobrowse,hidefromfinder,nosuid
save & exit.
to activate, run this.
sudo automount -vc

2) disable Appnap for Finder
sudo defaults write NSAppSleepDisabled -bool YES

Posted in programming

getting an old file from Git

today i needed to get an old file from my repository.
That is actually quite easy with Git.

git show HEAD~8:root/adm/style/dkp/acp_mainpage.html > ~/oldfile.html

where “8” is the number of revisions you want to go back
pipe the output to a new file, and voila.

Posted in programming

Interactive Rebasing in Git

Rebasing is a neat method to clean up your commit history.

Keep your commits in a separate feature branch. here i use “newfeature”.

Silver:bbDKP Nix$ git status
# On branch newfeature
nothing to commit (working directory clean)

My latest PR to the remote branch was 9 commits ago. I want to squash my latest 8 commits into one with interactive rebasing to make them liik good and then make a new PR. 😉

Silver:bbDKP Nix$ git rebase -i HEAD~8

This command will throw you into your editor. I use Pico. it’s just simple and good.
interactive rebasing

Since i want to squash everything into the oldest commit, i change the first part of the lines from “pick” to “squash”, like this :

pick 670e551 fix in log count
squash 6ff8e37 viewing the detail of the log
squash 95b3dc0 logging class now fully debugged, assed new/delete game logging
squash 6a15d1a new Roles table, replaces recruitment block columns in classes tables
squash c206110 recruitment block setup moved to Guild acp, logic placed in roles class
squash aa8ac45 added logging to game, class, race, faction, settings updating
squash 2ac5e17 acp listmember logging
squash 7959d01 Events class created

rebase 2

Then I save this Pico document and Git does some maginc in the background and then forwards this screen :

rebase 3
It’s where you write the commit message. all text not preceded by “#” will be in the commit message. so start editing until you have a proper message.

rebase 4

Then save the document (ctrl-x in Pico) and your rebase is committed.
But as you can see i made an error in the commit message.

So i’m correcting this with :

correct git commit message

And now i’m ready to push..

git network

So you can see that the one commit in the feature branch has all my 8 changes in the v130 branch.

and after the PR, it’s much cleaner 😉

Posted in programming
October 2016
« Dec