Windows SMB printer on Mac OS X Sierra
Quick tutorial how to add SMB printer on Mac OS X Sierra.
Quick tutorial how to add SMB printer on Mac OS X Sierra.
This article is related to my previous one about setting up PHPCodeSniffer with CodeIgniter coding standards.
Installation on Linux boxes is pretty yeasy:
sudo pear channel-update pear.php.net
yum install php-pear-PHP-CodeSniffer php-phpunit-phpcpd
On Mac OS X you have couple options. Pear or Homebrew:
brew install php-code-sniffer
And following that, on regular boxes CodeSniffer will be here:
/usr/share/pear/PHP/CodeSniffer/Standards
on Mac OS CodeSniffer will be located here:
/usr/lib/php/pear/PHP/CodeSniffer/Standards
or… /usr/local/Cellar/php-code-sniffer/1.5.6/CodeSniffer/Standards
CodeIgniter standard can be downloaded from this location https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer
Quick tutorial how to setup proper unit testing with PHPUnit and CodeIgniter 3.0.
We need couple elements
If you don’t have phpunit installed globally, you can go with composer, just add section to your composer.json
{
"require-dev": {
"phpunit/phpunit": "4.1.*"
}
}
and thencomposer.phar install
and after while we have./vendor/bin/phpunit
working phpunit.
let’s create phpunit.xml.dist
next step will require create separate bootstrap file for PHPUnit. Just copy cp index.php tests/Bootstrap.php
We have to make 2 small amends.
It’s just a short instructions how to run Apache and PHP on OS X Yosemite.
PHP and Apache are already there – just need to run Apache and enable PHP. Video showing up whole process is available here:
Here you can check out exact changes.
Firsting first – we have to run Apache
sudo apachectl start
Then make some changes in httpd.conf file
sudo nano /etc/apache2/httpd.conf
Node.js is like space shuttle – very sophisticated, very fast but one simple mistake and… it goes down.
So recently i tried The Go Language which is advertised as
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Because google is a creator of this langauge documentation sucks. Plenty of random documents of everwhere, no clean how to documentation.