这是我的项目:https://github.com/kenpeter/my_hak_news,这是直接拷贝https://github.com/grigio/HAgnostic-News.
Git clone https://github.com/kenpeter/my_hak_news,然后运行react-native run-android
得到此错误:
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.hagnosticnews signatures do not match the previously installed version; ignoring!
Run Code Online (Sandbox Code Playgroud)
相关问题:https://github.com/grigio/HAgnostic-News/issues/1,我遵循各种方式,但无法解决此问题.
所以我尝试将sql文件导入rds(1G MEM,1个CPU).sql文件就像1.4G
mysql -h xxxx.rds.amazonaws.com -u user -ppass --max-allowed-packet = 33554432 db <db.sql
它陷入了困境:
ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Run Code Online (Sandbox Code Playgroud)
实际的sql内容是:
/*!50003 CREATE*/ /*!50017 DEFINER=`another_user`@`1.2.3.4`*/ /*!50003 TRIGGER `change_log_BINS` BEFORE INSERT ON `change_log` FOR EACH ROW
IF (NEW.created_at IS NULL OR NEW.created_at = '00-00-00 00:00:00' OR NEW.created_at = '') THEN
SET NEW.created_at = NOW();
END IF */;;
Run Code Online (Sandbox Code Playgroud)
another_user 在rds中不存在,所以我这样做:
GRANT ALL PRIVILEGES ON db.* TO another_user@'localhost';
Run Code Online (Sandbox Code Playgroud)
仍然没有运气.
有时用户将来自不同来源的文本复制并粘贴到CKEditor,但我想限制他们可以复制到CKEditor的标签.
我只需要在CKEditor中使用某些标签:list标签,break标签等......
我可以在CKEditor中定义它们并禁用其他标签吗?
我用create-react-native-app创建了一个应用程序,但我不确定如何将其发布到Google Play商店.
错误1
看完这篇文档后.
; exp build:android
[exp] Making sure project is set up correctly...
/[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
\[exp] Warning: 'react-native' peer depencency missing. Run `npm ls` in /var/www/html/test/testme/osmosis-seek-android to see full warning.
[exp]
[exp] If there is an issue running your project, please run `npm install` in /var/www/html/test/testme/osmosis-seek-android and restart.
[exp] Your project looks good!
[exp] Checking if current build exists...
[exp] No currently active or previous builds for …Run Code Online (Sandbox Code Playgroud) 当运行yarn test在package.json这
CI=true react-app-rewired test --coverage
我收到以下错误
Test suite failed to run
Cannot find module 'react' from 'pure.js'
However, Jest was able to find:
'./pure.js'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].
See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
at Object.<anonymous> (../../node_modules/@testing-library/react/dist/pure.js:28:37)
Run Code Online (Sandbox Code Playgroud)
不知道为什么react从pure.js,知道吗?
基本上,访问"/"和"/ a"正在浏览器上工作.Acess"/ testme"无效.错误是
2016-03-13 15:04:37.709 ERROR 1933 --- [io-8080-exec-57] osboot.context.web.ErrorPageFilter:由于异常而转发到请求[/ testmenull]的错误页面[圆形视图路径[ testme.html]:将再次发送回当前处理程序URL [/XXXX/testme.html].检查您的ViewResolver设置!(提示:由于默认的视图名称生成,这可能是未指定视图的结果.)]
我做一个字符串grep,但找不到"ViewResolver".我不知道为什么"/"和"/ a"有效.任何的想法?
的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxxxx</groupId>
<artifactId>Monitor</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<!--<name>Monitor</name>-->
<url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.1.9.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId>
<version>1.1</version>
<scope>provided</scope> <!--for web socket-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
<dependency>
<groupId>org.springframework.hateoas</groupId>
<artifactId>spring-hateoas</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>Monitor</finalName> …Run Code Online (Sandbox Code Playgroud) 我尝试将库ESP8266WebServer安装到platformio IDE中.我收到此错误"功能:没有这样的文件或目录".关于"功能"的一些研究,http://www.cplusplus.com/reference/functional/
In file included from configMode.cpp:13:0:
.pioenvs/uno/ESP8266WebServer/ESP8266WebServer.h:27:22: fatal error: functional: No such file or directory
#include <functional>
^
compilation terminated.
Run Code Online (Sandbox Code Playgroud) 我试图SSH到服务器并收到以下错误:“未指定的GSS故障。次要代码可能提供更多信息,没有Kerberos凭据可用”
我不确定这是什么意思。(仍然尝试使用Google)
; ssh -vT -p 1234 root@mysite.com
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to mysite.com [1.2.3.4] port 1234.
debug1: Connection established.
debug1: identity file /home/kenpeter/.ssh/id_rsa type 1
debug1: identity file /home/kenpeter/.ssh/id_rsa-cert type -1
debug1: identity file /home/kenpeter/.ssh/id_dsa type -1
debug1: identity file /home/kenpeter/.ssh/id_dsa-cert type -1
debug1: identity file /home/kenpeter/.ssh/id_ecdsa type -1
debug1: identity file /home/kenpeter/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/kenpeter/.ssh/id_ed25519 type -1
debug1: …Run Code Online (Sandbox Code Playgroud) 我看到了这个面试问题,然后开始了.我被困.面试问题是:
给出一个字符串
Run Code Online (Sandbox Code Playgroud)var s = "ilikealibaba";和一本字典
Run Code Online (Sandbox Code Playgroud)var d = ["i", "like", "ali", "liba", "baba", "alibaba"];试着用最小空间给s
输出可能是
- 我喜欢阿里巴巴(2个车位)
- 我喜欢阿里巴巴(3个空格)
但是选择1号
我有一些代码,但卡在打印中.如果您有更好的方法来解决这个问题,请告诉我.
function isStartSub(part, s) {
var condi = s.startsWith(part);
return condi;
}
function getRestStr(part, s) {
var len = part.length;
var len1 = s.length;
var out = s.substring(len, len1);
return out;
}
function recPrint(arr) {
if(arr.length == 0) {
return '';
} else {
var str = arr.pop();
return str + recPrint(arr);
}
}
// NOTE: have trouble to …Run Code Online (Sandbox Code Playgroud) 基于此主题:使用Google跟踪代码管理器跟踪事件
我创建了自己的版本,该版本位于例如http://test.site.com
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'event':'GAevent',
'eventCategory': 'App4',
'eventAction': 'Click',
'eventLabel': 'iOS4'
});
</script>
</head>
<body>
<!-- Start google tag manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'//www.googletagmanager.com/gtm.js?id=' + i + …Run Code Online (Sandbox Code Playgroud) javascript ×2
react-native ×2
reactjs ×2
algorithm ×1
amazon-rds ×1
android ×1
arduino ×1
c++ ×1
ckeditor ×1
dictionary ×1
eclipse ×1
expo ×1
iot ×1
java ×1
jestjs ×1
maven ×1
mysql ×1
spring-boot ×1
spring-mvc ×1
ssh ×1
unit-testing ×1