- update apt-get
cd /etc/apt/sources.list.d/
wget http://archive.cloudera.com/impala/ubuntu/precise/amd64/impala/cloudera.list
sudo apt-get update
- Install Impala [found here [1]]
cd /etc/apt/sources.list.d/
wget http://archive.cloudera.com/impala/ubuntu/precise/amd64/impala/cloudera.list
sudo apt-get update
| <?php | |
| namespace Foo\Bar; | |
| use Monolog\Handler\SwiftMailerHandler; | |
| use Monolog\Logger; | |
| /** | |
| * SwiftMailerHtmlHandler uses Swift_Mailer to send emails with text/html body | |
| */ |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y dist-upgrade | |
| sudo apt-get -y install git make python-dev python-setuptools libblas-dev gfortran g++ python-pip python-numpy python-scipy liblapack-dev | |
| sudo pip install ipython nose | |
| sudo apt-get install screen | |
| sudo pip install --upgrade git+git://github.com/Theano/Theano.git | |
| wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
| sudo apt-get update |
As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.
You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :
| import time | |
| import uuid | |
| import redis | |
| import datetime | |
| import mongoengine as mongo | |
| from mongoengine.django.auth import User | |
| from socialq import log as logging | |
| from django.core.mail import EmailMultiAlternatives | |
| from django.template.loader import render_to_string | |
| from django.core import mail |
| # Sometimes is it is required to add logging of all guzzle requests into log file via Monolog | |
| # You need to add https://github.com/guzzle/log-subscriber to your project | |
| # app/config/config.yml | |
| monolog: | |
| channels: ["guzzle"] | |
| handlers: | |
| main: | |
| channels: ["!guzzle"] |
| # BAD: | |
| from production import * | |
| # Good (my personal preference): | |
| from myproject.settings.production import * | |
| # Good (probably your choice): | |
| from .production import * |
by alexander white ©