when I sent a post with {"username":"blah"} as the payload I need a response of
{
"title": /.*@blah.*/i,
"$or": [
{
"body": /.*@blah.*/i
}
```bash | |
# rvm --trace info system | |
+ [[ -n '' ]] | |
+ set -o errtrace | |
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ 1363308397.211471000 /scripts/cli : __rvm_parse_args() 715 > [[ -z '' ]] | |
+ 1363308397.213078000 /scripts/cli : __rvm_parse_args() 715 > [[ -n '' ]] | |
+ 1363308397.214566000 /scripts/cli : __rvm_parse_args() 718 > [[ error == '' ]] | |
+ 1363308397.217151000 /scripts/cli : __rvm_parse_args() 718 > [[ 0 -eq 1 ]] |
Mar 14 19:05:41 flux shutdown[28624]: shutting down for system halt | |
Mar 14 19:05:41 flux init: Switching to runlevel: 0 | |
Mar 14 19:05:49 flux xinetd[1625]: Exiting... | |
Mar 14 19:05:50 flux exiting on signal 15 | |
Mar 14 19:06:06 flux syslogd 1.4.1: restart. | |
Mar 14 19:06:08 flux kernel: klogd 1.4.1, log source = /proc/kmsg started. | |
Mar 14 19:06:08 flux iscsid: iSCSI logger with pid=1557 started! | |
Mar 14 19:06:08 flux iscsid: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting... | |
Mar 14 19:06:08 flux nsd[1590]: nsd started (NSD 3.2.14), pid 1590 | |
Mar 14 19:06:10 flux xinetd[1628]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in. |
php app/console assetic:dump | |
php app/console assetic:dump --env=prod --no-debug |
sudo pear channel-discover pear.pdepend.org | |
sudo pear remote-list -c pdepend | |
sudo pear install pdepend/PHP_Depend-1.1.4 | |
sudo pear channel-discover pear.phpmd.org | |
sudo pear remote-list -c phpmd | |
sudo pear install phpmd/PHP_PMD-1.5.0 | |
sudo pear install pdepend/PHP_CodeSniffer_Standards_PDepend2-1.0.0 | |
sudo service php5-fpm restart | |
Check the video to configure PHPMD and PHPCS with PHPStorm. |
<?php | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$builder | |
->add('status', 'choice', array('choices' => array( | |
'PENDING' => 'PENDING', | |
'APPROVED' => 'APPROVED', | |
'DENIED' => 'DENIED', | |
'REVOKED' => 'REVOKED' | |
))) |
An exception has been thrown during the rendering of a template ("Error parsing YAML.") in kernel.root_dir/Resources/views/forms.html.twig at line 81. | |
500 Internal Server Error - Twig_Error_Runtime | |
TypeError: Cannot call method 'charAt' of undefined | |
at Object.LocationHashbangUrl.$$parse (http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:15705:49) | |
at http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:16199:39 | |
at Scope.$eval (http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:18939:44) | |
at Scope.$digest (http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:18765:53) | |
at http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:16208:61 | |
at http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:11217:17 | |
at Array.forEach (native) | |
at forEach (http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:7265:21) | |
at fireUrlChange (http://local/Simulator/assets/lib/js/ionic/ionic.bundle.js:11216:13) |
var app = angular.module("MyApp", ['ngResource', 'ngRoute']); | |
app.config(['$routeProvider', function($routeProvider) { | |
$routeProvider | |
.when( '/bundles/', { templateUrl: '../templates/bundlesIndex.html', controller: 'BundlesCtrl' } ) | |
.when( '/bundles/:nameSlug', { templateUrl: '../templates/bundlesView.html', controller: 'BundlesCtrl' } ) | |
.otherwise({ templateUrl: '../templates/homeIndex.html', controller: 'MainCtrl' } ); | |
}]); |
when I sent a post with {"username":"blah"} as the payload I need a response of
{
"title": /.*@blah.*/i,
"$or": [
{
"body": /.*@blah.*/i
}
obj: { title: /.*@followbtcnews.*/i, | |
'$or': [ { body: /.*@followbtcnews.*/i } ] } | |
stringify: {"title":{},"$or":[{"body":{}}]} | |
parsed: { title: {}, '$or': [ { body: {} } ] } | |
{ title: /.*@followbtcnews.*/i, | |
'$or': [ { body: /.*@followbtcnews.*/i } ] } |