我正在尝试在数据库中进行简单的插入,并且我得到以下错误
call_user_func_array()期望参数1是有效的回调,没有给定的数组或字符串
插入代码如下所示
DB::insert('insert into users (id, name) values (?, ?)', array(1, 'Dayle'));
Run Code Online (Sandbox Code Playgroud)
这是laravel的基本查询,但它不起作用的原因?
我是Cloud9的新手,我正在尝试使用Protractor进行e2e测试.我正在运行angular-phonecat示例.
错误如下:
Using ChromeDriver directly...
/home/ubuntu/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109
  var template = new Error(this.message);
                 ^
UnknownError: chrome not reachable
  (Driver info: chromedriver=2.10.267518,platform=Linux 3.14.13-c9 x86_64)
    at new bot.Error (/home/ubuntu/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)
..
Run Code Online (Sandbox Code Playgroud)
我安装了chromedriver.唯一的问题是如何在cloud9上安装实际的Chrome并运行测试?
先感谢您,
干杯,Haytham
我在模拟器上运行以下代码,我没有听到任何声音:
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"pageflip" ofType:@"mp3"];
NSURL *soundUrl = [NSURL fileURLWithPath:soundPath];
AudioServicesCreateSystemSoundID((__bridge CFURLRef) soundUrl, &_soundEffect);
AudioServicesPlaySystemSound(_soundEffect);
Run Code Online (Sandbox Code Playgroud)
代码已在xCode 5和iOS 7上成功测试.根据需要导入库.
我已经记录了soundPath,它返回了文件系统上的正确位置.
有没有人遇到过类似的问题?