This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function lastUpdated($id) { | |
//Set up new Shift model only if not already set (fixes problems with testing) | |
if(!$this->Shift) { | |
App::uses('Shift', 'Model'); | |
$this->Shift = new Shift(); | |
} | |
$calendar = $this->findById($id, array( | |
'start_date', 'end_date')); | |
$lastUpdated = $this->Shift->find('all', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function testsendOriginator() { | |
$this->_TradeRequest = new TradeRequest(); | |
App::uses('CakeEmail', 'Network/Email'); | |
$CakeEmail = $this->getMock('CakeEmail' , array('send')); | |
$CakeEmail->expects($this->any()) | |
->method('send') | |
->will($this->returnValue(true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppModel', 'Model'); | |
/** | |
* Trade Model | |
* | |
* @property Users $Users | |
* @property Shifts $Shifts | |
* | |
* Status legend: | |
* 0 - Unprocessed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="float: left"><a href="http://www.sjhc.london.on.ca/"><img alt="" src="/sites/emlondon/files/homepage_blocks/xsjhc.png" style="width: 75px; height: 75px;" /><br /> | |
SJHC</a></div> | |
<div style="float: left"><a href="http://www.lhsc.on.ca/About_Us/Childrens_Hospital/"><img alt="" src="/sites/emlondon/files/homepage_blocks/xchlhsc.png" style="width: 75px; height: 75px;" /><br /> | |
Children's</a></div> | |
<div style="float: left"><a href="http://www.lhsc.on.ca/"><img alt="" src="/sites/emlondon/files/homepage_blocks/xlhsc.png" style="width: 75px; height: 75px;" /><br /> | |
LHSC</a></div> | |
<div style="float: left"><a href="http://www.schulich.uwo.ca/"><img alt="" src="/sites/emlondon/files/homepage_blocks/xuwosmd.png" style="width: 75px; height: 75px;" /><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AppController extends Controller { | |
public $uses = array('User', 'Usergroup', 'Group'); | |
var $components = array('Session', | |
'Auth' => array( | |
'loginAction' => array( | |
'controller' => 'users', | |
'action' => 'login', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT `Trade`.`status`, `Trade`.`user_id`, `Trade`.`user_status`, `Trade`.`token`, `Trade`.`shift_id`, `Shift`.`date`, `Shift`.`shifts_type_id`, `Shift`.`id`, `Trade`.`id` FROM `kitab`.`trades` AS `Trade` LEFT JOIN `kitab`.`shifts` AS `Shift` ON (`Trade`.`shift_id` = `Shift`.`id`) LEFT JOIN `kitab`.`trades_details` AS `TradesDetail` ON (`Trade`.`id` = `TradesDetail`.`trade_id`) WHERE ((`Trade`.`user_id` = 294) OR (`TradesDetail`.`user_id` = 294)) ORDER BY `Trade`.`status` ASC LIMIT 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 9 dovecot: lda(vmail): Error: User vmail doesn't have home dir set, disabling duplicate database | |
Apr 9 postfix/smtpd[9951]: disconnect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat main.cf | |
# See /usr/share/postfix/main.cf.dist for a commented, more complete version | |
# Debian specific: Specifying a file name will cause the first | |
# line of that file to be used as the name. The Debian default | |
# is /etc/mailname. | |
#myorigin = /etc/mailname | |
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CONFIGURATION_H | |
#define CONFIGURATION_H | |
// This configuration file contains the basic settings. | |
// Advanced settings can be found in Configuration_adv.h | |
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration | |
//=========================================================================== | |
//============================= DELTA Printer =============================== | |
//=========================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -l /var/run/mysqld/mysqld.sock | |
srwxrwxrwx 1 mysql mysql 0 Mar 8 20:39 /var/run/mysqld/mysqld.sock | |
$ sudo rake db:migrate | |
rake aborted! | |
Can't connect to local MySQL server through socket 'mysql socket path (/var/run/mysqld/mysqld.sock)' (2) | |
/var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect' | |
/var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize' | |
/var/lib/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new' |