Posted by admin on March 8, 2014
The official instructions to install the Yii2 Framework will give you everything you need to get started, but if you're using the codebase in a Git project environment, here's a better way to get things installed (I'm using the advanced project as an example here):
- Create your project dir and clone the repo: "git clone https://github.com/yiisoft/yii2-app-advanced.git <project dir here>"
- Navigate to the project directory and simulate the dependencies install using Composer: "php composer.phar install --prefer-dist --dry-run". By default, Composer will save everything into the vendor folder, and in the future, if you need to update your dependencies, just run a simple "php composer.phar update" in the root folder of your project. Once you're satisfied with the dry run, go ahead and execute the install: "php composer.phar install --prefer-dist"
- Create a new Git branch to begin your new doodad project and snapshot your install in a clean state: "git checkout -b doodadBranch master"
- Proceed with the "Getting Started" section of the official instructions to get your project up and running.
In the future, to update the Yii2 installation base, here are those steps:
- Commit your latest branch changes: git commit -m "your comments here"
- Switch to your original master branch: "git checkout master"
- Pull the latest changes: "git pull origin master"
- Switch back to your project branch: "git checkout doodadBranch"
- Rebase the branch to the new master: "git rebase master"
Posted by admin on January 26, 2014
I ran into this bug when I was trying to add netbeans to the quick launcher in KDE. The normal method of selecting the 'Show a launcher when not running' option when you right click the taskbar entry will add a nonworking 'java' icon entry, and clicking on it does nothing. So how do you work around this? Turns out the solution is pretty simple.
- Open up ~/.kde/share/config/plasma-desktop-appletsrc in a suitable text editor.
- Find the line starting with 'Items='. This should be a CSV line showing all of your quick launcher items.
- Locate the part where it references 'java' in the line and replace everything before the '?wmClass' with the path to /usr/share/applications/***.desktop file.
- Save and restart kde.
- You should see two icons of the app in the quick launcher, one being the original and one being your modified entry. Remove the original 'java' entry.
Posted by admin on May 7, 2012
This error started showing up in my Debian Linux VM. To solve, follow the steps in my previous entry VirtualBox: piix4_smbus Error [fix], but this time blacklist snd-pcspin the second step. Voilà!