• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






liguangsunls

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 177 178 179 180 181 182 183 184 185 ··· 188 下一页

2017年4月14日

[Linux小技巧] 一行命令让CPU占用率达到100%
摘要: for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done 说明: cat /proc/cpuinfo |grep "physical id" | w 阅读全文
posted @ 2017-04-14 18:32 liguangsunls 阅读(1163) 评论(0) 推荐(0)
 
android在OnCreate中获取控件的宽度和高度.
摘要: 一个demo。在xml布局中。某一行的高度为其它行的一半。之前用layout_weight,得出的效果也不太理想。 <?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.c 阅读全文
posted @ 2017-04-14 17:28 liguangsunls 阅读(628) 评论(0) 推荐(0)
 
Codeforces 558C Amr and Chemistry 暴力 - -
摘要: 点击打开链接 Amr and Chemistry time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Amr loves Chemis 阅读全文
posted @ 2017-04-14 17:15 liguangsunls 阅读(246) 评论(0) 推荐(0)
 
棋盘覆盖问题
摘要: #include<iostream> #include<iterator> #include<algorithm> using namespace std; /* *棋盘覆盖问题 */ static int t=0; void ChessBoard(int **map,int r,int l,int 阅读全文
posted @ 2017-04-14 16:21 liguangsunls 阅读(122) 评论(0) 推荐(0)
 
EJB_开发单表映射的实体bean
摘要: 开发单表映射的实体bean 实体bean 它属于java持久化规范(JPA)里的技术,实体bean通过元数据在Javabean和数据库表之间建立起映射关系,然后Java程序猿就能够随心所欲的使用面向对象的编程思想来操纵数据库。 JPA的出现主要是为了简化现有的持久化开发工作和整合ORM技术,眼下实现 阅读全文
posted @ 2017-04-14 15:37 liguangsunls 阅读(238) 评论(0) 推荐(0)
 
使用平台调用(P/Invoke)
摘要: 使用平台调用 P/Invoke。它的全名叫平台调用(platform invoke)。用于调用dll 中实现的非托管的单调(flat)编程接口。被称为使用C或C++ 调用约定(calling conventions)。最有名的样例是Win32 编程接口,这是一个巨大的库,它公开了Windows 全部 阅读全文
posted @ 2017-04-14 15:02 liguangsunls 阅读(260) 评论(0) 推荐(0)
 
cocos2dx3.2利用ProgressTimer组合成评分控件
摘要: 一、制作背景 如今非常多游戏或者应用须要评分,就是一般来说满分10分,一般用星星来表示。 那么cocos2dx里面怎样制作评分这种控件呢? 我的打算是进度条组合成即可了。 二、材料准备 如上图所看到的,即2颗小星星就可以。 三、终于效果 四、代码实现 //////////////////////// 阅读全文
posted @ 2017-04-14 14:47 liguangsunls 阅读(317) 评论(0) 推荐(0)
 
推断iframe里的页面载入完毕
摘要: //推断iframe是否载入完毕,RMid为iframe的ID document.getElementById("RMid").onload = function () { alert("载入完毕"); } //在父框架操作iframe页面里的AddReceipt2方法 window.frames[ 阅读全文
posted @ 2017-04-14 14:26 liguangsunls 阅读(192) 评论(0) 推荐(0)
 
C++类的实例化对象的大小之sizeof()
摘要: 之所以写这篇《C++类的实例化对象的大小之sizeof()》。是由于在參加笔试的时候遇到例如以下这么一道题,当时感觉就是这个一个坑,但。我还是义无反顾的跳了下去,由于存在知识点盲区啊。现,总结一下。你不知道的C++类的实例化对象的大小之sizeof()。 class D { public: D() 阅读全文
posted @ 2017-04-14 14:11 liguangsunls 阅读(373) 评论(2) 推荐(0)
 
datanode启动失败
摘要: 当我动态加入一个hadoop从节点的之后,出现了一个问题: [root@hadoop current]# hadoop-daemon.sh start datanode starting datanode, logging to /usr/local/hadoop1.1/libexec/../log 阅读全文
posted @ 2017-04-14 13:20 liguangsunls 阅读(450) 评论(0) 推荐(0)
 
上一页 1 ··· 177 178 179 180 181 182 183 184 185 ··· 188 下一页