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
Chain FORWARD (policy DROP) | |
target prot opt source destination | |
DROP all -- anywhere anywhere ctstate INVALID | |
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED |
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
def self.mega_team_plot_data(app_results) | |
results_by_task = {} | |
results_by_task["name"] = "Mega Team" | |
rng_0_back = Distribution::Normal.rng(70, 4).call | |
rng_1_back = Distribution::Normal.rng(60, 5).call | |
rng_2_back = Distribution::Normal.rng(50, 6).call | |
rng_3_back = Distribution::Normal.rng(30, 7).call | |
divisor = 600 |
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
* Adding handle: conn: 0x7ff280803a00 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7ff280803a00) send_pipe: 1, recv_pipe: 0 | |
* About to connect() to localhost port 8080 (#0) | |
* Trying ::1... | |
* Trying 127.0.0.1... | |
* Connected to localhost (127.0.0.1) port 8080 (#0) | |
> GET / HTTP/1.1 |
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
# Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY' | |
array( | |
(int) 0 => array( | |
'user_id' => '4f2951b0-0040-4b61-accf-596240c828e4', | |
'term' => ' #still', | |
'image_id' => '56', | |
'comment_id' => '176' | |
), | |
(int) 1 => 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
# Add Action in Controller | |
/** | |
* add method | |
* | |
* @return void | |
*/ | |
public function add() { | |
if ($this->request->is('post')) { | |
$this->Image->create(); |
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
/** | |
* Use the DS to separate the directories in other defines | |
*/ | |
// This results in all webroot assets failing on windows via helpers, but when the path to say, an image is hardcoded and uses 'DS' those images are found. | |
if (!defined('DS')) { | |
define('DS', '/'); | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^$ app/webroot/ [L] | |
RewriteRule (.*) app/webroot/$1 [L] | |
</IfModule> |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?/$1 [QSA,L] | |
</IfModule> |
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
echo $this->Html->link( | |
$this->Html->tag('i', '', array('class' => 'icon-th')) . | |
' Image View', | |
array('action' => 'index', 'image'), | |
array('escape' => false) | |
); |
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 | |
/** | |
* This file is loaded automatically by the app/webroot/index.php file after core.php | |
* | |
* This file should load/create any application wide configuration settings, such as | |
* Caching, Logging, loading additional configuration files. | |
* | |
* You should also use this file to include any files that provide global functions/constants | |
* that your application uses. | |
* |