- 每日健身,从练习两个俯卧撑
苏斐涵
万事开头难,健身也不例外。昨天订立的目标是:4组力量训练,80个俯卧撑,80个卷腹,40个波速球上的深蹲。35分钟动感单车。昨天广州的温度室内达到了将近三十八,九度左右。昨天外出,感觉又像中暑似的,热到你头脑都不能去思考了。昨天的力量训练和动感单车的训练任务都没有达标。今天到现在19:40,完成力量训练:80个俯卧撑,80个卷腹。有没有练习俯卧撑,自己手摸到后腰部是有感觉,每天练习80个俯卧撑,腰
- 2018-12-05
赵轩妈妈
2018125天气雪星期三亲子日记八十篇早上起来喊儿子起床,儿子很不舒服的说不想起,我就找体温表给儿子量一下体温,天哪,竟然都到了三十九度了!(昨天晚上儿子就有点儿发烧,给他吃了点感冒药早早的就睡了。)以为睡一晚上应该就没事儿了!结果还更严重了!赶紧把老公叫起来让他跟儿子去医院看看用不用打针什么的!爷俩穿好衣服就走了,我也收拾收拾去上班了!还没到厂子呢老公就给我打电话说已经没事儿了,我给他拿着药让
- 8月14日本周复盘总结
风雨过后见彩虹llc
一、本周完成1.早起6天2.阅读6天3.运动6次4.日更7篇5.听书4篇二、本周总结早起,由于本周坚持早睡早起,所以精神状态比较好,工作、学习、运动各项打卡都不是问题,让我更加坚信早睡早起这个习惯是多么重要,继续保持。运动,本周坚持得很好,打卡6天,共跑30.24公里,平均配速6’16”,一边是三十九度的高温天气考验着我的毅力,一边是自己不断地鼓励自己,坚持就能熬过这个三伏天。阅读,本周阅读《欧亨
- 狐狸
海绵_2aab
气温逼近九十九度,没有人应该活下来。我想起暴死的车夫,误饮了人间的汤药。我的皮肤和文字一样空洞,空虚,空无一物。在夏天,整个城市都是死去的,虽然蔷薇,已开满你的院子。熟透的灰尘侵犯窗子,滋滋的冒着热气,谁的手指又被烧红了呢,轻抚脸颊的时候,留下惊艳的弧度。土地是弯曲的。你如水,又似火,绕过我的脖颈,一圈又一圈,撕下我的皮肤,填补时间的缺口。在冰火两重,我亦有树的年轮。皈依了么?诗经中的蒹葭何其苍苍
- 九度 题目1254:N皇后问题
小白龙v5
九度C++N皇后
题目描述:N皇后问题,即在N*N的方格棋盘内放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在同一斜线上。因为皇后可以直走,横走和斜走如下图)。你的任务是,对于给定的N,求出有多少种合法的放置方法。输出N皇后问题所有不同的摆放情况个数。输入:输入包含多组测试数据。每组测试数据输入一个整数n(3usingnamespacestd;intn,sum;booldps
- 三年
浅浅人生
一下雨天总是让人心里空落落的特别容易伤感二这一年数着三九度五月糜烂春秋夏竟离冬甚远三是否昨夜最美微凉夜色伴着雨滴全然风不清梦外梦里是否昨夜最美你竟三更不寐是迷茫又或窃喜挑拨着月色撒入我心底四梦醒时分枯黄了四季苍白了春秋亲手撕开右边的肋骨竟滴血未流五每个人的内心都是孤立的被海水所困的小岛任何一个人的心底都有自己的隐秘无法触及六休想,再烈的酒也浸不透我的魂魄;狂妄,索性乘着夜色偷袭我的心脏?痴心妄想,
- 清明随笔
喵喵小世界
清明是二十四节气之一,每到这个时节,总忍不住让人想起杜牧的那首《清明》:清明时节雨纷纷,路上行人欲断魂。借问酒家何处有?牧童遥指杏花村。印象中几乎每年清明都是阴雨绵绵,但是今年的清明却出奇的晴朗而干热,几天前还是十几度,有点阴冷。今天就忽然骤升到二十九度。现在的天气经常诡异的失常,骤升骤降十几度就像家常便饭,真心体质不好的人,遇到这样孩子脸的天气,恐怕没几个能抗住的,总会感个冒,上个火什么的。昨天
- 变天了,希望阴天快过去。
瑄瑄妍妍的妈咪
昨天还是晴空万里,天气暖和了,中午的时候棉服都可以脱掉了,我都准备把睡衣和羽绒服收起来,把春装翻出来穿,还没等我行动,天气就变了,刮起大风,好像要下雨似的,天气就冷了。今天距离春节还有三天,立春已经过去,今年的冬天最冷的时候已经过去,大概是在十一月前后吧,只记得最冷的时候零下八九度,那时候我要送孩子上学,每天早起的时候冻的不得了,现在想起来还觉得真冷。熬过了寒冬,总于迎来了暖春,真的不想在体会寒冬
- 今天真冷
风色寒
风呼呼的吹着,树猛烈的摇晃着。这个冬天真冷,出奇的冷,冷出了这些年的最高境界。破纪录啦!好心问儿冷不冷,被翻了个白眼。人都快被刮跑了!好吧,谁让咱没出门去试试呢?体会不到别人的冷,问了遭人数落。零下十九度,也不知道是不是真的。快点暖和起来吧,孩子们受不了啊!
- 开学第一周
陈虹廷
总算是开学了,上周星期天就是我们报名的日子,那天下午的一点多钟,我就早早的收拾好了行李提早在校门口等着了。好不容易等到了我们报名的时间,可是班主任却迟迟没有来,头顶上的太阳也晒的让人心急。等了一会儿,刘老师终于来了,我们就开始报名,先是量体温,然后填表,就可以进校了。到了我测体温的时候,居然测出来三十九度的体温,这可把我和老师都吓了一跳,又测了一遍手腕上的体温,这才正常了。由于我的行李有点多,有个
- 总有雨过天晴的那一天
思诺虹
这几天气温有些回升,最低在零下八九度,最高在0度左右,房间里不再有凉气了,每天看温度计都在21度左右,有了一丝温暖的感觉,我感觉我的心里也温暖了很多。我的房子因为是在靠山墙最外侧面,所以夏暖冬凉。最大的那间卧室根本就不能住人,温度只有十几度。尽管我已经把所有的窗户贴了密封条,又蒙了一层塑料布,比去年要提升一两度,但是在气温最低零下十五六度的时候,那个房子简直就是一个天然的冰箱了。为了提升房间的温度
- 猫爸给女儿的信Day 841: 冬日晨跑
猫爸带娃
亲爱的思莹、思澄:今天早上,室外气温只有零下九度,不过爸爸还是晨跑了10公里。这几年,虽然爸爸喜欢跑步,但是每每进入隆冬季节,都没有再跑步,因为外面太冷了,客观条件不允许跑步。但是,最近两周没有跑步,身体不太适应,还是想去跑,于是今天早上就试着去跑了。慢慢跑起来,身体开始发热,迎面的寒风也不觉得冷了,并脱下羽绒服系在腰间。整个跑步很顺利,跑了一身大汗,身体感觉很舒畅,这两天感受到的工作压力和焦虑一
- 2018年的第一场雪
恬静安然
今年的冬天不算太冷,大多数时候,太阳温暖的照耀着大地,虽然时不时雾霾会来骚扰我们的宁静!最近两天天气预报说要降温了,降温幅度将达到十度左右,真正的冬天就要来了!今天早晨天阴的厉害,临出门看看天气预报最低气温达到了零下九度,这应该是今年冬天以来的最低温度了。忙不迭的把羽绒服穿上,把长围巾围上,才踏出家门。不到六点钟的冬日的早晨漆黑一片,隐隐约约听到扫帚扫地的声音,原来是辛苦的环卫工人已经在开始工作了
- 2019.5.11
十八k
很多时候,事情和人一样,喜欢结伴而行。也许是害怕孤独,也许是注定他们就要交织在一起而生。现在的我心情有些复杂。孩儿发烧四天了,都是往三十九度冲……学习进度就从原地开始后退。节奏一慢下来,就很难立即再快起来。本就慵懒,这一缓就更沉了。单位面临改革,由于历史遗留的身份问题,现在很不乐观。即将进行的直选,又引出以前的矛盾,只能后悔和无望。这一后悔,就想到孩儿,可是我的斗志来了,他却又开始发烧了。有时候真
- 二十七日雨
柚子的薄荷
文/柚子的薄荷雨天雨摄氏六到九度空气的水分子穿过片片的云层飘落️️️。天仿佛是漏了,还不知是遇上了什么太过于伤心的事了,这雨下的是越来越没完没了。近两个月的时间,有阳光的日子估计两只手就能数的过来吧。这样的阴雨天,心情就是莫名的好不起来,仿佛这样的日子就应该配上那淡淡的忧伤才是应景的。越发想出去走走,去到阳光明媚的地方散散心,可又觉得自己好像刚旅游回来,着实不该这么快又踏上旅程。然后又在纠结和矛盾
- 2022年12月13日 星期二 晴 / 没完没了的发烧
刘一鸣妈妈
昨天夜里还是带一鸣去发热门诊打了退烧针,高烧四十度,退到三十九度还烧上来,一晚上了,退烧药已经彻底失去作用。我也撑不住了,趁着我还有点劲儿出门,劝着一鸣穿好衣服,打个退烧针吧,再这样烧下去真烧傻了。又睡晚了,到家以后精疲力尽。一鸣也累了,没退烧也睡着了。夜里醒了两次,一鸣喝水,后来我连眼都睁不开,说什么我也记不得。八点我才醒,赶紧给一鸣请假。一鸣终于不发烧了,可是折腾了一天两宿,上午没法儿上课,正
- 看样子秋天真正的到了_2022年8月28日跑步日记
跑渣汤姆
跑步时间:2022年8月28日06:12跑步地点:马路上当时气温:十九度左右污染指数:30(空气质量为优)跑步距离:7.36里跑步时长:54分51秒平均配速:7分27秒平均心率:146次/分钟(数据错误)平均步频:188步/分钟平均步幅:71厘米跑完后手测即时心率:22*6=132次/分六十秒后手测即时心率16*6=96次/分今天又是一个凉爽的早上,跑步的时间温度仅十九度,也是这个夏天如今温度最低
- 白露,天凉好个秋
雪痕517
昨夜子时,我冲凉后在后院小憩,感觉到了秋凉;回房睡觉时,还是有点燥热,想起今天已到白露节气。凌晨六点,我在线上参加高级班培训,到七点半才叫醒熟睡的女儿,她一出门就叫到:爸爸,好凉爽啊。阴沉的天空,真的是天凉好个秋了。白露,水土湿气凝而为露,秋属金,金色白,白者露之色,而气始寒也。在鸿雁归来的雁城,低温到二十五摄氏度;关注着北京的女儿说,还是北京好啊,秋高气爽,艳阳天的气温只有十九度。我也想起在北方
- 气温终于回升了
欧阳之家
从过年到今天,一直都是阴天。中午时分,太阳终于出来了,有太阳的时候气温回升到了九度左右。可能是山上的冰雪还在融化阶段,一到夜晚气温还是比较低,也许是太久没有遇到这么寒冷的天气,着实吃不消,南方不像北方那样有暖气供着,否则只能开空调。记得以前下雪天,没有感觉冷得这么难受。是不是体质有了些变化,记得以前遇到天冷的日子,一杯高度酒喝下,一般暖流就从心窝里扩散到全身上下。飘飘然的感觉很舒服,但现在我对酒似
- 碎碎念(二):去大理?
村中夏花
酷暑难耐的时候,最是想念大理的时候。从17到19年,连续三个夏天都在大理度假,习惯了大理凉爽的气候,于是身心都害怕和拒绝炎热。尤其害怕湿热天气,人被黏黏腻腻的一大团气流包裹着,头脑意识都是粘腻的,糊里糊涂的不清醒。这几天刚刚热到35度,我就有点不淡定了。更炎热的天气还在后面,这让我不得不思考一个严肃的问题:要不要再去大理?当家里热到三十八九度甚至更高时,六七月份的大理,最高温度一般不超过30度。据
- 孩子发烧要狠心
无奈是多情
图片发自App孩子在幼小的时候,经常会在季节交替之时感冒、发烧。这时,大部分家长会去医院或诊所就诊。烧到三十八、九度时,甚至会给孩子输液、打针,吃药。一家子围着转,紧张地不得了。这是当前很多家庭的真实情况。有一次邻居来串门,见我儿子无精打采的坐在沙发上喝水,嘴唇干裂、面色通红。就问:“是不是感冒啦,怎么不去医院看看。”我嘿嘿笑道:“才三十八度二,烧烧再说。”邻居惊讶的神情和眼神告诉我,他怀疑这是不
- 28个有关夏天的句子
悠悠雨露
夏天,终是来了!1、冬天的盛大都有所克制,只有夏天,不管不顾,倾其所有。2、我爱夏天,因为,我恰好也爱生活。3、盛夏白瓷梅子汤,碎冰碰壁当啷响。——《穆玄英挂帅》4、你是我三十九度的风,风一样的梦。——陈粒《种种》5、玻璃晴朗,橘子辉煌。——北岛《过节》6、在夏天,我们吃绿豆、桃、樱桃和甜瓜。在各种意义上都漫长且愉快,日子发出声响。——罗伯特·瓦尔泽《夏天》7、夏日悠长,绿意昂扬。8、夏天的晚风,
- 陪美女邻居一起龟速五公里_2022年6月6日跑步日记
跑渣汤姆
跑步时间:2022年6月6日06:06跑步地点:马路上当时气温:二十九度左右污染指数:37(空气质量为优)跑步距离:5.42公里跑步时长:44分41秒平均配速:8分15秒平均心率:123次/分钟(数据错误)平均步频:184步/分钟平均步幅:66厘米跑完后手测即时心率:20*6=120次/分六十秒后手测即时心率16*6=96次/分最近几天一直在打羽毛球,没有怎么好好跑步。今天和美女邻居一起龟速跑了五
- 王道出版的机试指南_王道论坛计算机考研机试指南 四 排版题
王鹏鹏ken
王道出版的机试指南
例2.7输出梯形(九度教程第14题)时间限制:1秒**内存限制:32兆**特殊判题:否题目描述:输入一个高度h,输出一个高为h,上底边为h的梯形。输入:一个整数h(1<=h<=1000)。输出:h所对应的梯形。样例输入:4样例输出:****************************提示:梯形每行都是右对齐的,sample中是界面显示问题#includeintmain(){inth;while
- 题目1432:叠筐 九度OJ
寻找如意
考研机试(C++)C++考研机试C++
题目1432:叠筐时间限制:1秒内存限制:128兆特殊判题:否提交:7897解决:1924题目描述:把一个个大小差一圈的筐叠上去,使得从上往下看时,边筐花色交错。这个工作现在要让计算机来完成,得看你的了。输入:输入是一个个的三元组,分别是,外筐尺寸n(n为满足0#includeusingnamespacestd;charbasket[82][82];intmain(){intn;chara,b;w
- 喜
07e4ff276106
他喜欢喝九度,但她从不喝啤酒,少喝红、白酒。好多,她喜欢的他也不喜欢。他也从不迁就她,20年如一日的坚持他的喜欢。他喜欢长头发,但她没有长发。她发量少,又因为当前工作原因,她很少留长发。她想着:再过五六年吧,工作不在了,她会试着留长发,因为她知道她喜欢。他不知道,他自己的好多喜欢或不喜欢,她都知道的。而他以为,她不知道:他的喜欢或不喜欢。这就是:男的,不会因为她的喜欢或不喜欢而去体验她的喜或不喜;
- 孩子感染后,一定注意几点,不要悲剧重演
cxmx118
今天讲孩子感染后一周的变化,以及在家的一些注意事项,还有用药情况。因为儿童和成人他这一周期的生理变化是完全不同的。第一天婴幼儿会出现这种高热,一般三十九到四十度。六岁以上的儿童的中高热,三十八度五到三十九度五左右,间隔四小时烧一次。在这期间,其实身体别的没有明显不适出现,第二天仍然是高烧,但是间隔是五到六小时烧一次了。这个时候婴幼儿可能会出现这种呼吸急促,六岁以上的儿童可能会出现干咳,第三天体温将
- 随想
a迎春
昏睡了一天一夜,终于好点了,只是感觉头还是很重,咳嗽,想来也没那么快好了。昨晚先生回来,给我量了下体温,三十九度,迷糊中他泡了退烧药给我喝下,才知是半夜十二点多了。一躺床上,什么事都不知道了,晚饭孩子们自己煮的面条,儿子说姐姐煮的很美味,听起来比我煮的好吃多了。看来以后不能万事包办,得给他们露手艺的机会。孩子们比想象中的能干。最近脑子里很多疑虑,有些朋友的做法总让我无法理解。比如那个把老婆孩子留在
- 孩子被惊吓到了怎么办?
邵_小五
小孩如果说身体冷,不舒服头疼,首先判断是发烧,有低烧高烧两种。一般喝葱姜蒜水就行。有往脑袋上贴的退烧的。买贵的。便宜的沾不住。一般发烧就是有炎症。去医院开退烧药。如果不严重,多吃维C类多的水果,猕猴桃,柠檬。橙子。然后多喝温水.促进新陈代谢,排毒。还有一种是免疫球蛋白。好像不到两百八片。芋头里含有免疫球蛋白含量高。多吃。拔丝芋头最好吃。小孩高烧不到四十度没有生命危险。三十九度多就要注意危险了。会烧
- 太难受了
丁建
今天是感染新冠病毒第三天,一直没有退烧的迹象,非常难受,希望早点退烧。昨天发烧到39°多,后来降低到37°多,本以为就这样度过,没想到昨天晚上体温突然上升,又回到了三十九度多,并没有退烧的迹象。因此,今天非常难过,希望早日退烧。
- ASM系列五 利用TreeApi 解析生成Class
lijingyao8206
ASM字节码动态生成ClassNodeTreeAPI
前面CoreApi的介绍部分基本涵盖了ASMCore包下面的主要API及功能,其中还有一部分关于MetaData的解析和生成就不再赘述。这篇开始介绍ASM另一部分主要的Api。TreeApi。这一部分源码是关联的asm-tree-5.0.4的版本。
在介绍前,先要知道一点, Tree工程的接口基本可以完
- 链表树——复合数据结构应用实例
bardo
数据结构树型结构表结构设计链表菜单排序
我们清楚:数据库设计中,表结构设计的好坏,直接影响程序的复杂度。所以,本文就无限级分类(目录)树与链表的复合在表设计中的应用进行探讨。当然,什么是树,什么是链表,这里不作介绍。有兴趣可以去看相关的教材。
需求简介:
经常遇到这样的需求,我们希望能将保存在数据库中的树结构能够按确定的顺序读出来。比如,多级菜单、组织结构、商品分类。更具体的,我们希望某个二级菜单在这一级别中就是第一个。虽然它是最后
- 为啥要用位运算代替取模呢
chenchao051
位运算哈希汇编
在hash中查找key的时候,经常会发现用&取代%,先看两段代码吧,
JDK6中的HashMap中的indexFor方法:
/**
* Returns index for hash code h.
*/
static int indexFor(int h, int length) {
- 最近的情况
麦田的设计者
生活感悟计划软考想
今天是2015年4月27号
整理一下最近的思绪以及要完成的任务
1、最近在驾校科目二练车,每周四天,练三周。其实做什么都要用心,追求合理的途径解决。为
- PHP去掉字符串中最后一个字符的方法
IT独行者
PHP字符串
今天在PHP项目开发中遇到一个需求,去掉字符串中的最后一个字符 原字符串1,2,3,4,5,6, 去掉最后一个字符",",最终结果为1,2,3,4,5,6 代码如下:
$str = "1,2,3,4,5,6,";
$newstr = substr($str,0,strlen($str)-1);
echo $newstr;
- hadoop在linux上单机安装过程
_wy_
linuxhadoop
1、安装JDK
jdk版本最好是1.6以上,可以使用执行命令java -version查看当前JAVA版本号,如果报命令不存在或版本比较低,则需要安装一个高版本的JDK,并在/etc/profile的文件末尾,根据本机JDK实际的安装位置加上以下几行:
export JAVA_HOME=/usr/java/jdk1.7.0_25  
- JAVA进阶----分布式事务的一种简单处理方法
无量
多系统交互分布式事务
每个方法都是原子操作:
提供第三方服务的系统,要同时提供执行方法和对应的回滚方法
A系统调用B,C,D系统完成分布式事务
=========执行开始========
A.aa();
try {
B.bb();
} catch(Exception e) {
A.rollbackAa();
}
try {
C.cc();
} catch(Excep
- 安墨移动广 告:移动DSP厚积薄发 引领未来广 告业发展命脉
矮蛋蛋
hadoop互联网
“谁掌握了强大的DSP技术,谁将引领未来的广 告行业发展命脉。”2014年,移动广 告行业的热点非移动DSP莫属。各个圈子都在纷纷谈论,认为移动DSP是行业突破点,一时间许多移动广 告联盟风起云涌,竞相推出专属移动DSP产品。
到底什么是移动DSP呢?
DSP(Demand-SidePlatform),就是需求方平台,为解决广 告主投放的各种需求,真正实现人群定位的精准广
- myelipse设置
alafqq
IP
在一个项目的完整的生命周期中,其维护费用,往往是其开发费用的数倍。因此项目的可维护性、可复用性是衡量一个项目好坏的关键。而注释则是可维护性中必不可少的一环。
注释模板导入步骤
安装方法:
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Code-->Code
- java数组
百合不是茶
java数组
java数组的 声明 创建 初始化; java支持C语言
数组中的每个数都有唯一的一个下标
一维数组的定义 声明: int[] a = new int[3];声明数组中有三个数int[3]
int[] a 中有三个数,下标从0开始,可以同过for来遍历数组中的数
- javascript读取表单数据
bijian1013
JavaScript
利用javascript读取表单数据,可以利用以下三种方法获取:
1、通过表单ID属性:var a = document.getElementByIdx_x_x("id");
2、通过表单名称属性:var b = document.getElementsByName("name");
3、直接通过表单名字获取:var c = form.content.
- 探索JUnit4扩展:使用Theory
bijian1013
javaJUnitTheory
理论机制(Theory)
一.为什么要引用理论机制(Theory)
当今软件开发中,测试驱动开发(TDD — Test-driven development)越发流行。为什么 TDD 会如此流行呢?因为它确实拥有很多优点,它允许开发人员通过简单的例子来指定和表明他们代码的行为意图。
TDD 的优点:
&nb
- [Spring Data Mongo一]Spring Mongo Template操作MongoDB
bit1129
template
什么是Spring Data Mongo
Spring Data MongoDB项目对访问MongoDB的Java客户端API进行了封装,这种封装类似于Spring封装Hibernate和JDBC而提供的HibernateTemplate和JDBCTemplate,主要能力包括
1. 封装客户端跟MongoDB的链接管理
2. 文档-对象映射,通过注解:@Document(collectio
- 【Kafka八】Zookeeper上关于Kafka的配置信息
bit1129
zookeeper
问题:
1. Kafka的哪些信息记录在Zookeeper中 2. Consumer Group消费的每个Partition的Offset信息存放在什么位置
3. Topic的每个Partition存放在哪个Broker上的信息存放在哪里
4. Producer跟Zookeeper究竟有没有关系?没有关系!!!
//consumers、config、brokers、cont
- java OOM内存异常的四种类型及异常与解决方案
ronin47
java OOM 内存异常
OOM异常的四种类型:
一: StackOverflowError :通常因为递归函数引起(死递归,递归太深)。-Xss 128k 一般够用。
二: out Of memory: PermGen Space:通常是动态类大多,比如web 服务器自动更新部署时引起。-Xmx
- java-实现链表反转-递归和非递归实现
bylijinnan
java
20120422更新:
对链表中部分节点进行反转操作,这些节点相隔k个:
0->1->2->3->4->5->6->7->8->9
k=2
8->1->6->3->4->5->2->7->0->9
注意1 3 5 7 9 位置是不变的。
解法:
将链表拆成两部分:
a.0-&
- Netty源码学习-DelimiterBasedFrameDecoder
bylijinnan
javanetty
看DelimiterBasedFrameDecoder的API,有举例:
接收到的ChannelBuffer如下:
+--------------+
| ABC\nDEF\r\n |
+--------------+
经过DelimiterBasedFrameDecoder(Delimiters.lineDelimiter())之后,得到:
+-----+----
- linux的一些命令 -查看cc攻击-网口ip统计等
hotsunshine
linux
Linux判断CC攻击命令详解
2011年12月23日 ⁄ 安全 ⁄ 暂无评论
查看所有80端口的连接数
netstat -nat|grep -i '80'|wc -l
对连接的IP按连接数量进行排序
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
查看TCP连接状态
n
- Spring获取SessionFactory
ctrain
sessionFactory
String sql = "select sysdate from dual";
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();
String[] names = wac.getBeanDefinitionNames();
for(int i=0; i&
- Hive几种导出数据方式
daizj
hive数据导出
Hive几种导出数据方式
1.拷贝文件
如果数据文件恰好是用户需要的格式,那么只需要拷贝文件或文件夹就可以。
hadoop fs –cp source_path target_path
2.导出到本地文件系统
--不能使用insert into local directory来导出数据,会报错
--只能使用
- 编程之美
dcj3sjt126com
编程PHP重构
我个人的 PHP 编程经验中,递归调用常常与静态变量使用。静态变量的含义可以参考 PHP 手册。希望下面的代码,会更有利于对递归以及静态变量的理解
header("Content-type: text/plain");
function static_function () {
static $i = 0;
if ($i++ < 1
- Android保存用户名和密码
dcj3sjt126com
android
转自:http://www.2cto.com/kf/201401/272336.html
我们不管在开发一个项目或者使用别人的项目,都有用户登录功能,为了让用户的体验效果更好,我们通常会做一个功能,叫做保存用户,这样做的目地就是为了让用户下一次再使用该程序不会重新输入用户名和密码,这里我使用3种方式来存储用户名和密码
1、通过普通 的txt文本存储
2、通过properties属性文件进行存
- Oracle 复习笔记之同义词
eksliang
Oracle 同义词Oracle synonym
转载请出自出处:http://eksliang.iteye.com/blog/2098861
1.什么是同义词
同义词是现有模式对象的一个别名。
概念性的东西,什么是模式呢?创建一个用户,就相应的创建了 一个模式。模式是指数据库对象,是对用户所创建的数据对象的总称。模式对象包括表、视图、索引、同义词、序列、过
- Ajax案例
gongmeitao
Ajaxjsp
数据库采用Sql Server2005
项目名称为:Ajax_Demo
1.com.demo.conn包
package com.demo.conn;
import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;
//获取数据库连接的类public class DBConnec
- ASP.NET中Request.RawUrl、Request.Url的区别
hvt
.netWebC#asp.nethovertree
如果访问的地址是:http://h.keleyi.com/guestbook/addmessage.aspx?key=hovertree%3C&n=myslider#zonemenu那么Request.Url.ToString() 的值是:http://h.keleyi.com/guestbook/addmessage.aspx?key=hovertree<&
- SVG 教程 (七)SVG 实例,SVG 参考手册
天梯梦
svg
SVG 实例 在线实例
下面的例子是把SVG代码直接嵌入到HTML代码中。
谷歌Chrome,火狐,Internet Explorer9,和Safari都支持。
注意:下面的例子将不会在Opera运行,即使Opera支持SVG - 它也不支持SVG在HTML代码中直接使用。 SVG 实例
SVG基本形状
一个圆
矩形
不透明矩形
一个矩形不透明2
一个带圆角矩
- 事务管理
luyulong
javaspring编程事务
事物管理
spring事物的好处
为不同的事物API提供了一致的编程模型
支持声明式事务管理
提供比大多数事务API更简单更易于使用的编程式事务管理API
整合spring的各种数据访问抽象
TransactionDefinition
定义了事务策略
int getIsolationLevel()得到当前事务的隔离级别
READ_COMMITTED
- 基础数据结构和算法十一:Red-black binary search tree
sunwinner
AlgorithmRed-black
The insertion algorithm for 2-3 trees just described is not difficult to understand; now, we will see that it is also not difficult to implement. We will consider a simple representation known
- centos同步时间
stunizhengjia
linux集群同步时间
做了集群,时间的同步就显得非常必要了。 以下是查到的如何做时间同步。 在CentOS 5不再区分客户端和服务器,只要配置了NTP,它就会提供NTP服务。 1)确认已经ntp程序包: # yum install ntp 2)配置时间源(默认就行,不需要修改) # vi /etc/ntp.conf server pool.ntp.o
- ITeye 9月技术图书有奖试读获奖名单公布
ITeye管理员
ITeye
ITeye携手博文视点举办的9月技术图书有奖试读活动已圆满结束,非常感谢广大用户对本次活动的关注与参与。 9月试读活动回顾:http://webmaster.iteye.com/blog/2118112本次技术图书试读活动的优秀奖获奖名单及相应作品如下(优秀文章有很多,但名额有限,没获奖并不代表不优秀):
《NFC:Arduino、Andro