Skip to content

Instantly share code, notes, and snippets.

mount | grep $(df -P /var/www | awk '/^\// { print $1 }'):
/dev/sda1 on / type ext3 (rw)
fstab setting:
/dev/sda1 / ext3 defaults 1 1
also tried:
/dev/sda1 / ext3 acl 1 1
/dev/sda1 / ext3 acl,defaults 1 1
Command /home/mjhale/VirtualEnvs/gridcontrol/bin/python -c
"importsetuptools;__file__='/home/mjhale/VirtualEnvs/gridcontrol/build/bitarray/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-cyjYsr-record/install-record.txt --single-version-externally-managed --install-headers
/home/mjhale/VirtualEnvs/gridcontrol/include/site/python2.7 failed with error code 1 in /home/mjhale/VirtualEnvs/gridcontrol/build/bitarray
Running setup.py install for bitarray
Running command /home/mjhale/src/venv/bin/python -c "import setuptools;__file__='/home/mjhale/src/venv/build/bitarray/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3kbAmj-record/install-record.txt --single-version-externally-managed --install-headers /home/mjhale/src/venv/include/site/python2.7
running install
running build
running build_py
running build_ext
building 'bitarray._bitarray' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c bitarray/_bitarray.c -o build/temp.linux-x86_64-2.7/bitarray/_bitarray.o
bitarray/_bitarray.c:1900: warning: implicit declaration of function âPyLong_Che ckâ
bitarray/_bitarray.c:1903: warning: implicit declaration of function âIntBool_As Intâ
bitarray/_bitarray.c:1910: error: âPyExc_IndexErrorâ undeclared (first use in th is function)
bitarray/_bitarray.c: At top level:
bitarray/_bitarray.c:1915: error: expected â=â, â,â, â;â, âasmâ or â__attribute_ _â before â*â token
@mjhale
mjhale / GridControl-001.gridlang
Last active December 10, 2015 22:29
GridControl Attempt 001
GOTO << @MAIN
@MAIN
CALLFF << @PUSH @NORTH 2
CALLFF << @PUSH @EAST 2
CALLFF << @PUSH @WEST 2
CALLFF << @PUSH @SOUTH 2
<table class="table properties" cellspacing="10" cellpadding="10">
<tbody>
{% for i in 1..course.columns %}
<tr>
{% for i in 1..course.rows %}
<td class="span2">
###########
Rent: 0
</td>
{% endfor %}
if ($request->isMethod('POST'))
{
$form->bind($request);
if ($form->isValid())
{
$em = $this->getDoctrine()->getManager();
$totalProperties = $request->request->get('columns') * $request->request->get('rows');
for ($i = 0; $i < $totalProperties; $i++) {
Users can have multiple properties. ??
Users can have multiple courses. Many-To-Many, Bidirectional
Courses can have multiple properties. ??
Courses can have multiple users. Many-To-Many, Bidirectional
Properties can belong to one user. One-To-Many, Unidirectional
Properties can belong to one course. One-To-Many, Unidirectional
Users can have multiple properties. ?
Users can have multiple courses. Many-To-Many, Bidirectional
Courses can have multiple properties. Many-To-Many, Bidirectional
Properties can belong to one user and one course. ?
<?php
namespace Slumlords\Bundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Slumlords\Bundle\Entity\bank
*
* @ORM\Table()