小编Raf*_*raz的帖子

任何控制器angularjs中的火灾通知烤面包机

我正在使用此服务进行通知:https://github.com/jirikavi/AngularJS-Toaster
工作正常.已经在我的应用程序中的任何位置配置了我创建一个pop()按钮,单击触发通知烤面包机.
我现在需要的是我的应用程序中的任何控制器,都可以调用触发通知方法.
例如,在控制器ProductController中,我随时调用pop(),然后触发通知.
尽管有任何视图,控制器中的pop()方法函数根本不起作用.
有没有我不看的细节?

我的index.html

<!DOCTYPE html>
<html lang="en" data-ng-app="app">
<head>
  <meta charset="utf-8" />
  <title>My App</title>
  <meta name="description" content="app, web app, responsive, responsive layout, admin, admin panel, admin dashboard, flat, flat ui, ui kit, AngularJS, ui route, charts, widgets, components" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
  <link rel="stylesheet" href="css/animate.css" type="text/css" />
  <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="css/simple-line-icons.css" type="text/css" />
  <link rel="stylesheet" href="css/font.css" type="text/css" />
  <link rel="stylesheet" href="css/app.css" …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs

13
推荐指数
2
解决办法
3万
查看次数

使用cordova构建时无效的JAVA_HOME

我试图在OpenSuse Leap 42.1中使用cordova模拟我的设备上的应用程序.
但是当我尝试使用cordova run以下错误模拟应用程序时:

cordova run
Running command: /home/soufraz/Projects/apps/myproject/platforms/android/cordova/run 
ERROR: Error: Failed to run "java -version", make sure that you have a JDK installed.
You can get it from: http://www.oracle.com/technetwork/java/javase/downloads.
Your JAVA_HOME is invalid: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0

ERROR running one or more of the platforms: Error: /home/soufraz/Projects/apps/myproject/platforms/android/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
Run Code Online (Sandbox Code Playgroud)

我安装了java并设置了路径~/.profile.
我的环境中的配置错误是哪个?

我的下面.profile:

JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0
export JAVA_HOME

ANDROID_HOME=/home/soufraz/Install/android-sdk-linux
export ANDROID_HOME …
Run Code Online (Sandbox Code Playgroud)

java android opensuse cordova

13
推荐指数
4
解决办法
1万
查看次数

我无法在linux上启动MySQL - 错误mysqld_safe

我在网络上的许多论坛中找到了,但我找不到我的解决方案.当我在linux ubuntu server 12.04中启动服务mysql时,我收到此错误:

root@stroke:/# mysqld_safe &
[1] 5789
root@stroke:/# 131001 10:12:29 mysqld_safe Logging to syslog.
131001 10:12:29 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131001 10:12:29 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Run Code Online (Sandbox Code Playgroud)

我已经给了mysql文件夹的权限,我也尝试为root mysql创建一个新密码.但到目前为止还没有任何效果.

感谢帮助.

一些信息:

root@stroke:/# /etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. …
Run Code Online (Sandbox Code Playgroud)

mysql linux

10
推荐指数
1
解决办法
5万
查看次数

vimrc函数中的错误字符

我正在尝试运行我的vimrc中的函数来在php类中插入依赖项.
脚本必须在我的类的构造中输入参数类型提示,并将此参数的结果分配给本地类的属性.
我正在使用Linux,我在一些帖子中发现函数中的这些类型的字符不适用于Linux.但对于Mac.

功能:

function! AddDependency()
    let dependency = input('Var Name: ')
    let namespace = input('Class Path: ')

    let segments = split(namespace, '\')
    let typehint = segments[-1]

    exec 'normal gg/construct^M:H^Mf)i, ' . typehint . ' $' . dependency . '^[/}^>O$this->^[a' . dependency . ' = $' . dependency . ';^[?{^MkOprotected $' . dependency . ';^M^[?{^MOuse ' . namespace . ';^M^['

    " Remove opening comma if there is only one dependency
    exec 'normal :%s/(, /(/g'

endfunction
Run Code Online (Sandbox Code Playgroud)

当我尝试运行此功能时,我得到:

Error detected while processing …
Run Code Online (Sandbox Code Playgroud)

vim

8
推荐指数
1
解决办法
219
查看次数

标签 统计

android ×1

angularjs ×1

cordova ×1

java ×1

javascript ×1

linux ×1

mysql ×1

opensuse ×1

vim ×1