I was working on a prototype for consuming from nsq to the Hadoop HDFS file system with Apache Flume. I couldn’t find much information, so I made a small project. Below are a few extra notes about nsq and the project. docker-flume/Dockerfile builds a container which includes Flume, nsq and Hadoop core necessary for persisting […]
Contents Install Pyenv, pyenv-virtualenv and pyenv-virtualenvwrapper Pyenv Installer Usage List Available Python Versions Install a specific version Create A New virtualenv Based on a Specific Python Version Customize pip.conf Other Useful Commands Pyenv is a tool for easily switching between multiple versions of Python. One way to use the tool is in conjunction with the […]
Environment: OSX, AMMPS Maybe caused by the particular version of PHP shipped with AMMPS and symlinked by default (PHP 5.3.21 at this time). For example this command: /Applications/AMPPS/php/bin/php ~/wp-cli.phar –info Prints: ???p? To fix it, update AMMPS to the latest. This includes PHP 5.4.11, but does not link it as the default. Now this command: […]
Temporarily repoint mydomain.com to localhost during development. This means you can develop mydomain.com, and when deploying to production you can be confident there are no ‘localhost’ references in your source. There are three elements to this: Edit your hosts file: sudo vi /etc/hosts Add the line: 192.168.50.1 mydomain.com (the IP address is the IP of […]
Steps for setting up a clustered DNS with the cPanel DNSONLY product.
First follow this reference: http://wiki.centos.org/HowTos/Network/SecuringSSH However, if it doesn’t work you might also need to update iptables: iptables -I INPUT -m state –state NEW -p tcp –dport NEW_PORT -j ACCEPT iptables -I INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT /etc/init.d/iptables save service sshd stop service sshd start
(env = cygwin) 1. Download Sonar server 2. Download sonar-runner 3. Edit sonar-runner.bat so it doesn’t throw “java.lang.OutOfMemoryError: Java heap space” These settings work for me: set SONAR_RUNNER_OPTS=-Xmx512m -XX:MaxPermSize=512m set SONAR_RUNNER_HOME=C:\\Dev\\Frameworks\\sonar-runner-2.2 Also remove the lines at the end of the file which kill the terminal. Leave the Sonar server process running in the background and […]
Use this formula: =(A1/86400)+25569+(-5/24) (replace the 5 with the timezone offset) See here for more info.
set ANT_OPTS=-Xms256M -Xmx512M