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
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1130] Host 'REDACTED' is not allowed to connect to this MySQL server' in /Users/Thinkscape/Documents/Projects/REDACTED/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 909 | |
PDOException: SQLSTATE[HY000] [1130] Host 'REDACTED' is not allowed to connect to this MySQL server in /Users/Thinkscape/Documents/Projects/REDACTED/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 43 | |
Call Stack: | |
0.0002 227872 1. {main}() /Users/Thinkscape/Documents/Projects/REDACTED/shell:0 | |
0.0004 231880 2. include('/Users/Thinkscape/Documents/Projects/REDACTED/public/index.php') /Users/Thinkscape/Documents/Projects/REDACTED/shell:4 | |
0.0037 525376 3. Zend\Mvc\Application::init() /Users/Thinkscape/Documents/Projects/REDACTED/public/index.php:10 | |
0.0605 4600776 4. Zend\Mvc\Application->bootstrap() /Users/Thinkscape/Documents/Projects/REDACTED/vendor/zendframework/ |
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 | |
function flattenExceptionBacktrace(\Exception $exception) { | |
$traceProperty = (new \ReflectionClass('Exception'))->getProperty('trace'); | |
$traceProperty->setAccessible(true); | |
$flatten = function(&$value, $key) { | |
if ($value instanceof \Closure) { | |
$closureReflection = new \ReflectionFunction($value); | |
$value = sprintf( | |
'(Closure at %s:%s)', |
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 support for configurable filter "property" | |
*/ | |
Ext.define('Ext.bugfix.GridFilterBase', { | |
override: 'Ext.grid.filters.filter.Base', | |
config: { | |
/** | |
* @cfg {String} property | |
* The property name to use when creating a filter |
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
/** | |
* Work around trees/grids that will not render correctly in case they are hidden from the view (i.e. in a Tab) but | |
* data has changed. | |
*/ | |
Ext.define('Ext.bugfix.BufferedRenderer', { | |
override: 'Ext.grid.plugin.BufferedRenderer', | |
getLastVisibleRowIndex: function() { | |
var result = this.callParent(arguments); |
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
/** | |
* Fix reading of entities containing "length" property | |
* | |
* @link http://www.sencha.com/forum/showthread.php?292395-data.Reader-throwing-exception-when-model-contains-quot-length-quot-field.&p=1067807 | |
* @link https://fiddle.sencha.com/#fiddle/at6 | |
*/ | |
Ext.define('Ext.bugfix.Reader', { | |
override: 'Ext.data.reader.Reader', | |
extractData: function(root, readOptions) { |
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
/** | |
* Allow configurable date format when creating a store filter. | |
* | |
* To set a global default app-wise, include this fix and use something like: | |
* | |
* Ext.grid.filters.filter.Date.prototype.dateWriteFormat = 'c'; | |
* | |
*/ | |
Ext.define('Ext.bugfix.GridFilterDate', { | |
override: 'Ext.grid.filters.filter.Date', |
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 | |
use Doctrine\ORM\EntityManager; | |
/** | |
* Retrieve one random item of given class from ORM repository. | |
* | |
* @param EntityManager $em The Entity Manager instance to use | |
* @param string $class The class name to retrieve items from | |
* @return object | |
*/ |
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 | |
/** | |
* Usage: | |
* | |
* php speedTest.php [ITERATIONS] [CONCURRENCY] | |
* | |
* ITERATIONS - (optional) Number of iterations (PI digits) to compute. | |
* Values above 10000 can seriously hog your machine. | |
* CONCURRENCY - (optional) Number of CPU cores to use. If empty, | |
* it's going to attempt to detect the number. |
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
module.directive('tooltipGroup', [ | |
var popoverRegistry = {}; | |
var suspend = false; // semaphore used to prevent circular calling of hide triggers | |
function(){ | |
return { | |
restrict : 'A', | |
priority : 1, | |
link : { | |
pre : function ($scope, el, attrs, formCtrl) { | |
// $scope.artifactPickerSelectOptions = artifactPicker.getSelectOptions(); |
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
#!/usr/bin/osascript | |
# Name of the device as visible in Safari->Develop menu | |
set deviceName to "iPhone Simulator" | |
# Number of seconds to wait for the simulator window to show up | |
set maxWait to 30 | |
# --------------------------------------- | |
# You shouldn't modify anything below here |