work hard work smart

专注于AI+Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 61 下一页

2017年3月11日

摘要: 一、cordova-plugin-console控制台插件的使用 1、进入工程路径后,输入如下命令: cordova plugin add cordova-plugin-console 2. 查看插件列表 cordova plugin list 3.移除插件 cordova plugin remov 阅读全文

posted @ 2017-03-11 16:53 work hard work smart 阅读(325) 评论(0) 推荐(0)

摘要: 一、创建 Phonegap项目 1. cd workspace 2.创建phonegap项目 cordova create 目录 识别符 显示名 例如:cordova create hello com.example.hello myhello 目录结构如下: 1) 其中www就是目录程序的主目录 阅读全文

posted @ 2017-03-11 16:46 work hard work smart 阅读(270) 评论(0) 推荐(0)

2017年2月22日

摘要: 1. BroadcastReceiver 在UI thread? BroadcastReceiver 总是在UI thread, If you register your BroadcastReceiver using a valid Handler running on a different t 阅读全文

posted @ 2017-02-22 15:59 work hard work smart 阅读(317) 评论(0) 推荐(0)

2017年2月16日

摘要: 一、1xx(临时响应) 表示临时响应并需要请求者继续执行操作的状态码。SC_CONTINUE = 100; 100(继续)请求者应当继续提出请求。服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。 SC_SWITCHING_PROTOCOLS = 101; 101(切换协议)请求者已要求服 阅读全文

posted @ 2017-02-16 14:37 work hard work smart 阅读(313) 评论(0) 推荐(0)

2017年2月10日

摘要: 1. 查看所有端口占用 netstat -ano 2. 查看指定端口占用 netstat -ano | findstar "8080" 其中11152 对应为进程号 3. 查看进程号对应的进程 tasklist | findstr "11152" 4. 结束进程 taskkill /f /t /im 阅读全文

posted @ 2017-02-10 10:07 work hard work smart 阅读(221) 评论(0) 推荐(0)

2016年12月30日

摘要: 进程和线程的区别: 进程是重量级的任务,需要分配给它们独立的地址空间。进程间通信是昂贵和受限的。进程间的转换也是很需要花费的。 另一方面,线程是轻量级的选手。它们共享地址空间并且共享同一个进程。线程间通信是便宜的,线程间的转换也是低成本的。 线程的生命周期 一个线程从创建到消亡的过程。线程的生命周期 阅读全文

posted @ 2016-12-30 16:10 work hard work smart 阅读(3294) 评论(0) 推荐(0)

2016年12月21日

摘要: 使用spymemcached.jar 阅读全文

posted @ 2016-12-21 19:41 work hard work smart 阅读(358) 评论(0) 推荐(0)

摘要: 一、memcache配置 1. 下载memcache 32位系统 1.2.5版本:http://static.runoob.com/download/memcached-1.2.5-win32-bin.zip 32位系统 1.2.6版本:http://static.runoob.com/downlo 阅读全文

posted @ 2016-12-21 14:17 work hard work smart 阅读(236) 评论(0) 推荐(0)

2016年10月12日

摘要: 如下面的Code,分别介绍了GET,POST,以及使用XMLHttpRequest的Get请求。 阅读全文

posted @ 2016-10-12 19:26 work hard work smart 阅读(423) 评论(0) 推荐(0)

摘要: Demo Test Get Test Post 阅读全文

posted @ 2016-10-12 14:06 work hard work smart 阅读(498) 评论(0) 推荐(0)

2016年10月10日

摘要: 一. 环境搭建 1. JDK更新 http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html 使用最新的JDK或者8u91版本 2.Android SDK Tools/Android SDK Tools 阅读全文

posted @ 2016-10-10 15:06 work hard work smart 阅读(197) 评论(0) 推荐(0)

2016年10月8日

摘要: -- 查看系统变量 show variables like '%general%'; set global general_log=on; 阅读全文

posted @ 2016-10-08 14:59 work hard work smart 阅读(234) 评论(0) 推荐(0)

2016年9月27日

摘要: PHP使用JSON通信 php中使用JSON的Code如下 输出的结果如下图 阅读全文

posted @ 2016-09-27 09:49 work hard work smart 阅读(373) 评论(0) 推荐(0)

2016年9月26日

摘要: PHPStorm 调式JS /同时调式PHP和jS 一、PHPStorm 调式Javascript 在PHP Storm中创建test.html 在test.html 文件中右键 选择Debug ‘test.html' . 此时Chorme浏览器会提示安装JetBrain IDE Support。选 阅读全文

posted @ 2016-09-26 18:54 work hard work smart 阅读(8243) 评论(0) 推荐(1)

摘要: PHP list,explode的使用 1.header("Content-type: text/html; charset=utf-8"); 解决中文乱码问题。 输出结果: explode 使用ZhangsanLisilist 使用ZhangsanLisiWangwu 阅读全文

posted @ 2016-09-26 14:29 work hard work smart 阅读(1704) 评论(0) 推荐(1)

摘要: "100","2"=>"200","3"=>"300"); foreach ($arr as $key=> $value){ echo "Key: ".$key." Value: ".$value."\n"; } 阅读全文

posted @ 2016-09-26 14:06 work hard work smart 阅读(306) 评论(0) 推荐(0)

摘要: PHP eof的使用 也就是heredoc技术,来部分实现界面与代码的分离 以<<<EOT开头, 以EOT;结尾, $name 为定义的变量。使用EOF比起一行一行 echo 如 ,显然EOF便于阅读。 阅读全文

posted @ 2016-09-26 11:49 work hard work smart 阅读(1656) 评论(0) 推荐(0)

2016年9月21日

摘要: 使用Spring缓存的简单Demo 1. 首先创建Maven工程,在Pom中配置 2. 创建Student类和StudentServer 类 StudentServer 注意:getStudent方法要定义为Public才能使用缓存。 有条件的缓存 condition = "#id < 2",表示只 阅读全文

posted @ 2016-09-21 19:45 work hard work smart 阅读(1008) 评论(0) 推荐(1)

2016年9月8日

摘要: android源码的目录结构 【以下网络摘抄】 |-- Makefile ! l/ a5 n% S% @- `0 d# z# a$ P4 V3 o7 R|-- bionic (bionic C库) |-- bootable (启动引导相关代码) |-- build (存放系统编译规则及generic 阅读全文

posted @ 2016-09-08 17:53 work hard work smart 阅读(599) 评论(0) 推荐(0)

2016年8月29日

摘要: 1.安装Ubuntu上安装LAMP 2.安装过程中设置MySql密码 3.测试 创建index.php var/www/html/index.php index.php的内容为 重启apache, service apache2 restart 在浏览器中输入 或者localhost改为IP地址 5 阅读全文

posted @ 2016-08-29 18:13 work hard work smart 阅读(255) 评论(0) 推荐(0)

上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 61 下一页