- 数据结构 1
五花肉村长
数据结构算法开发语言c语言visualstudio
1.什么是数据结构数据结构(DataStructure)是计算机存储和组织数据的方式,是指相互之间存在的一种或多种特定关系的数据元的集合。2.什么是算法算法(Algorithm)就是定义良好的计算过程,他取一个或一组的值为输入,并产生出一个或一组值作为输出。简单来说算法就是一系列的计算步骤,用来将输入数据转化成输出结果。3.数据结构和算法的书籍资料学习完数据结构知识,可以去看《剑指offer》和《
- 21天|生如夏花组合《蔡康永的说话之道》
summer_8f83
【day12】今日阅读《蔡康永的说话之道》p1-p30这本书在前几年读过,当时没有留下深刻的印象,记忆里就是一个影视名人趁红出的一本书。前几天看到一位老铁推荐这本书,又找出来读一读,没想到读了以后跟以前相比有了很深刻的感悟和认同。会说话坚持太重要了,我觉得这本书叫跟《非暴力沟通》有异曲同工之处。“良言一句三冬暖”,“一样话百样说”所以,说话时候技巧的,是可以练习的。作者提示我们:每天我们说那么多话
- day12 控制流程 if switch while do...while 猜数字游戏
卓越小Y
JAVA学习日志游戏java开发语言
控制流程顺序结构所有的程序都是按顺序执行if语句选择结构单选择语句if(a>0){System.out.println(“hello”);}packagecom.ckw.blog.select;importjava.util.Scanner;publicclassdemo01{publicstaticvoidmain(String[]args){intscore=0;Scannerscanner=
- 《剑指offer第二版》面试题7:重建二叉树(java)
castlet
题目描述输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果都不包含重复数字。例如,输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建的二叉树为:1/\23//\456\/78解题思路:以前序遍历序列A:{1,2,4,7,3,5,6,8}和中序遍历序列B:{4,7,2,1,5,3,8,6}为例。前序遍历的
- 剑指offer 面试题05. 替换空格
Hubhub
题目描述leetcode地址代码classSolution{public:stringreplaceSpace(strings){stringans="";for(autoe:s){if(e==''){ans+="%20";}else{ans+=e;}}returnans;}};
- 面试题 链表相交 -剑指offer简单
努力搬砖的小王
日常杂记链表leetcode数据结构
面试题链表相交题目链接给你两个单链表的头节点headA和headB,请你找出并返回两个单链表相交的起始节点。如果两个链表没有交点,返回null。图示两个链表在节点c1开始相交:题目数据保证整个链式结构中不存在环。注意,函数返回结果后,链表必须保持其原始结构。示例1:输入:intersectVal=8,listA=[4,1,8,4,5],listB=[5,0,1,8,4,5],skipA=2,ski
- 代码随想录算法训练营第八天| 344.反转字符串 541. 反转字符串II 剑指Offer 05.替换空格 151.翻转字符串里的单词 剑指Offer58-II.左旋转字符串
书痴熊
代码随想录训练营算法leetcode
Leetcode344.反转字符串思路分析:反转字符串直观思路是对称交换两端的字符,即双指针法。代码实现:classSolution{public:voidreverseString(vector&s){inti=0,j=s.size()-1;while(istr:return"".join(reversed(s.split()))Leetcode剑指Offer58-II.左旋转字符串思路分析:直
- 剑指offer----C语言版----第六天
姬如祎
剑指offerleetcode算法职场和发展c语言数据结构
目录1.用栈实现队列1.1题目描述1.2栈和队列的基础知识1.3思路分析2.扩展题目——用队列实现栈2.1题目描述2.2思路分析1.用栈实现队列原题链接:剑指Offer09.用两个栈实现队列-力扣(LeetCode)https://leetcode.cn/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/submissions/1.1题目描述用两个
- 力扣刷题记录(一)剑指Offer(第二版)
乘凉~
求职过程记录leetcode链表算法
1、本栏用来记录社招找工作过程中的内容,包括基础知识学习以及面试问题的记录等,以便于后续个人回顾学习;暂时只有2023年3月份,第一次社招找工作的过程;2、个人经历:研究生期间课题是SLAM在无人机上的应用,有接触SLAM、Linux、ROS、C/C++、DJIOSDK等;3、参加工作后(2021-2023年)岗位是嵌入式软件开发,主要是服务器开发,Linux、C/C++、网络编程、docker容
- CCF-CSP认证考试准备第十二天 201903-3 损坏的RAID5(大模拟)
爱coding的橙子
CCF-CSP认证算法c++开发语言
今天开始第3题大模拟,加油!###Day12:1.201903-3####1.201903-3:损坏的RAID5(大模拟)(1)本题的难点为理解题意(**比较难**)然后找规律和异或运算题目可以这样理解:1.先介绍**RAID5基本算法**,基本原理是异或运算,即在p与a1…an这(n+1)个数中,由任意n个可以推知其余的一个2.介绍硬盘的基本单位为**块**3.介绍条带:**条带**是指连续、等
- 剑指offer-顺序打印矩阵
yyming
题目:输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字,例如,如果输入如下4X4矩阵:12345678910111213141516则依次打印出数字1,2,3,4,8,12,16,15,14,13,9,5,6,7,11,10.解题思路:定义矩阵最大最小值,然后从第一行第一个到第一行最后一个访问,从右列第二个到最后一个访问,依次类推;假设每次访问周期为一个圈,内部为剩下没有访问的矩阵;可
- 剑指offer 48- 礼物的最大价值
顾子豪
在一个m×n的棋盘的每一格都放有一个礼物,每个礼物都有一定的价值(价值大于0)你可以从棋盘的左上角开始拿格子里的礼物,并每次向右或者向下移动一格直到到达棋盘的右下角。给定一个棋盘及其上面的礼物,请计算你最多能拿到多少价值的礼物?注意:m,n>0样例:输入:[[2,3,1],[1,7,1],[4,6,1]]输出:19解释:沿着路径2→3→7→6→1可以得到拿到最大价值礼物。分析:(1)状态表示:dp
- #育人宝贝教师百日行动派#day12
程羽记录美好
#育人宝贝教师百日行动派#day12图片发自App每日5000步✔️今日所读《3-6岁儿童学习与发展指南》【二】具有一定的力量和耐力1.能双手抓杠悬空吊起10秒左右!2.能单手将沙包向前头郑2米左右3.能单脚连续向前跳2米左右4.能快跑15米左右5.能行走1公里左右
- Day12
小熊饼干吃不完
贡布里希认为“一切艺术都源出人类的心灵,出自我们对世界的反映,而非出自可见世界的本身”。今天来一起回顾欣赏下我国秦代之前——夏商周的美学思想。虽然这些古早的时代离我们过于遥远,对它们的了解甚至还带有一定的神话色彩,但是这不妨碍我们对其进行有关美的探索。我国光耀璀璨的五千年文化,其中有很多东西值得我们细细品味。与其在当下时尚的洪流中随波逐流,不如向内挖掘,尝试塑造出一个更有华夏特色的审美风格。审美在
- 2020-03-03
佐佐要成长
日精进56/100精进人:培先见:今天任务完成得比较少,单词和运动,网课,阅读没有完成感:今天对成长型思维更认同了,因为今天学的课里就涵盖了这个知识的用途。也让我更有信心改变了。思:处理事情一定要冷静情况下遇到事情先找原因,找源头,然后对源头处理改善,这才是根本的解决问题的正确方法。今天学的课程让我收获很多嘻嘻。行:明天往后把每天的计划都前一天晚上写下来,具体可执行。放开了去做。感恩日志:❤️感谢
- 2022-02-02
朱嬿橦幼儿园创始人
感恩日记Day12我是平风,孕妈妈的陪伴教练,美好的一天,以感恩结束!!感恩感恩的力量,今天回娘家,我的老爸老妈忙了一桌子的美味可口的饭菜,无论你有多大,只要回到爸妈家,你永远都是孩子,我老妈生怕把我饿着,让我吃这让我吃那,听父母的唠叨声,想想那种场面,幸福感满满,感恩我的父母,感恩生命中有你们,在你们面前我永远都是幸福的孩子!感恩感恩的力量,家人在一起就是一种幸福,午饭过后姐姐一家陪我们在湿地公
- 数据结构集训day12(适合考研、自学、期末和专升本)
摆烂的小白
数据结构考研算法链表
习题来自B站up:白话拆解数据结构今日题目如下:(1)判断带头结点的循环双链表是否对称(2)判断单链表是否有环,有就返回环的入口点,否则返回Null题1首先是结构体,比单链表多了一个前驱指针域。typedefstructDLnode{intdata;DLnode*next;DLnode*prior;}DLnode,*DLinklist;所以建表的过程也需要对前驱进行操作。DLinklistlist
- 求1+2+3+...+n
Waitt_
剑指OFFERC++
剑指OFFER题6------按牛客网通过率排序时间:2018.10.16.2036作者:Waitt题目求1+2+3+…+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。时间限制:1秒空间限制:32768K热度指数:128539解答1+2+3+…+n的公式结果为:(n2+n)/2;由于题目要求不可使用一些语句,则考虑利用mat
- 力扣基础速攻题单(排位刷分适用)
0
leetcode算法职场和发展
Leetcode速攻题单一部分:1.算法入门100讲系列,C语言入门系列算法零基础100讲1.2的幂2.3的幂3.4的幂4.斐波那契数5.第N个泰波那契数6.剑指offer.求1+2+…+n7.单调数列8.最富有客户的资产总量9.二进制矩阵中的特殊位置10.翻转图像11.旋转图像12.转置矩阵13.将一维数组转变为二维数组14.判断矩阵经轮转后是否一致15.二维网络迁移16.杨辉三角17.杨辉三角
- 【C++】二维数组传参方式
虚拟笔记使
C++c++开发语言
最近刚开始刷剑指offer,刚做到第三题的时候,发现C++二维数组的传参方式和C语言略有些不同,所以在这篇博客中,会列出C/C++常见的二维数组传参方式。(本方式和代码都是基于vs环境所编写)一.C语言二维数组传参方式C语言二维数组传参一般有三个方式。1.指针形式接收#includevoidPrint1(int*parr,introws,intcols)//指针,行数,列数{for(inti=0;
- 剑指Offer - 5 - 用两个栈实现队列
vouv
题目描述用两个栈实现队列思路用一个栈来保存数据,其中栈底是队尾,栈顶是队头push时,需要先把数据栈中数据都弹出然后推入数据,再把弹出的数据推回pop则直接弹出栈顶即可CodePython#-*-coding:utf-8-*-items=[]tmp=[]classSolution:defpush(self,node):whilelen(items)!=0:tmp.append(items.pop(
- Leetcode 剑指 Offer II 064. 实现一个魔法字典
随便发挥
Leetcodeleetcodelinux算法
题目难度:中等原题链接今天继续更新Leetcode的剑指Offer(专项突击版)系列,大家在公众号算法精选里回复剑指offer2就能看到该系列当前连载的所有文章了,记得关注哦~题目描述设计一个使用单词列表进行初始化的数据结构,单词列表中的单词互不相同。如果给出一个单词,请判定能否只将这个单词中一个字母换成另一个字母,使得所形成的新单词存在于已构建的神奇字典中。实现MagicDictionary类:
- 剑指 Offer II 092. 翻转字符 / 剑指 Offer II 093. 最长斐波那契数列
彼淇梁
力扣刷题记录动态规划算法leetcodejava刷题记录
剑指OfferII092.翻转字符【中等题】思路:【动态规划】二阶dp数组dp[i][0]表示将第i位翻转为0后,数组保持递增的最小翻转次数dp[i][1]表示将第i位翻转为1后,数组保持递增的最小翻转次数初始状态:dp[0][0]=s.charAt(0)=='0'?0:1dp[0][1]=s.charAt(0)=='1'?0:1转移方程:dp[i][0]=dp[i-1][0]+s.charAt(
- LeetCode 剑指 Offer II 093. 最长斐波那契数列
大涛小先生
LeetCode解题报告leetcode算法动态规划
LeetCode剑指OfferII093.最长斐波那契数列文章目录LeetCode剑指OfferII093.最长斐波那契数列题目描述一、解题关键词二、解题报告1.思路分析2.时间复杂度3.代码示例2.知识点总结相同题目题目描述如果序列X_1,X_2,…,X_n满足下列条件,就说它是斐波那契式的:n>=3对于所有i+2<=n,都有X_i+X_{i+1}=X_{i+2}给定一个严格递增的正整数数组形成
- 王琳|能量感恩日记Day12
王琳linda
感恩给力的琦哥,总是在我需要任何时候拿出十二分不错的成果。支持我学习,带着宝宝玩又给我做好吃的,还要安排隔离期间工厂产品的事。感恩宝宝特别乖巧的玩了一天,给我更多的时间和空间来充盈大脑。感恩自己几乎全情投入的充电了一天,并且根据所学的知识列出了可行性计划。明天结束后做到年度规划中。感恩萌姐今天干货满满又生动有趣的知识盛宴感恩私聊宝宝今天认真的打卡和反馈感恩老师温柔的教导和恰到好处的提醒感恩郑总的鼓
- JavaScript——leetcode剑指offer 53 - I. 在排序数组中查找数字 I
周三有雨
算法leetcodejavascript排序算法
JavaScript——leetcode剑指offer53-I.在排序数组中查找数字I题目描述统计一个数字在排序数组中出现的次数。示例1:输入:nums=[5,7,7,8,8,10],target=8输出:2示例2:输入:nums=[5,7,7,8,8,10],target=6输出:0代码片/***@param{number[]}nums*@param{number}target*@return{
- 《剑指offer第二版》面试题49:丑数(Ugly Number)(java)
castlet
题目描述题目描述:我们把只包含2,3,5的数称为丑数(uglynumber),求从小到大的顺序的第1500个丑数。例如6,8是丑数,但14不是,因为它包含因子7。习惯上我们把1称为第一个丑数。解题思路根据丑数的定义,丑数应该是丑数乘以2、3或者5的结果。可以创建一个数组A,数组里的数字是排好序的丑数。假设数组里最大的丑数是M,则接下的一个丑数则是之前的某个丑数乘以2、3或者5的结果。记录三个下标,
- 给女儿的信 day12 一切皆有可能
笑傲江湖吧
亲爱的宝贝,你知道吗?滑雪是在10年前我就很恐惧的一件事情。我们今天也做了一个非常明智的选择,就是请了一位教练。我们在教练的指导下做了一次比一次好。没想到你学了两遍就会了,而我要学好多遍。有教练在会让我们的人生少走很多弯路。我们经过一次一次的刻意练习,没有想到你居然是上了中级道,和你一起来的小朋友他的话说技术跟你现在差不多啦,妈妈觉得你身上有无穷的潜能。妈妈懂得了,人也是一样的,为什么呢?是在练习
- 100-days-Coding - day12
亨利何
day12-0827html-刮刮奖startpainting刮刮奖的整体思路,就是canvas的动态绘制「事件驱动」使用两个canvas,下层为最终展示层「刮完后的涂层」,上层为「刮层,银色层」每次移动手指时,绘制图形「原型,三角形,等」,特点是透明,可以使得下层显现重点:透明涂层绘画this.ctx.globalCompositeOperation="destination-out";//设置
- 思考 day12
残雪孤鸿
世人都主张宠辱不惊,老子另辟蹊径“故贵以身为天下者,若可寄天下。爱以身为天下者,若可托天下”常人大多很少能做到宠辱不惊的,贵大患若身倒是常见得多,若是做到宠辱不惊则自得。若在工作中可做到贵大患若身,则能成事。若是人人能做到以身为天下,则天下安。
- 项目中 枚举与注解的结合使用
飞翔的马甲
javaenumannotation
前言:版本兼容,一直是迭代开发头疼的事,最近新版本加上了支持新题型,如果新创建一份问卷包含了新题型,那旧版本客户端就不支持,如果新创建的问卷不包含新题型,那么新旧客户端都支持。这里面我们通过给问卷类型枚举增加自定义注解的方式完成。顺便巩固下枚举与注解。
一、枚举
1.在创建枚举类的时候,该类已继承java.lang.Enum类,所以自定义枚举类无法继承别的类,但可以实现接口。
- 【Scala十七】Scala核心十一:下划线_的用法
bit1129
scala
下划线_在Scala中广泛应用,_的基本含义是作为占位符使用。_在使用时是出问题非常多的地方,本文将不断完善_的使用场景以及所表达的含义
1. 在高阶函数中使用
scala> val list = List(-3,8,7,9)
list: List[Int] = List(-3, 8, 7, 9)
scala> list.filter(_ > 7)
r
- web缓存基础:术语、http报头和缓存策略
dalan_123
Web
对于很多人来说,去访问某一个站点,若是该站点能够提供智能化的内容缓存来提高用户体验,那么最终该站点的访问者将络绎不绝。缓存或者对之前的请求临时存储,是http协议实现中最核心的内容分发策略之一。分发路径中的组件均可以缓存内容来加速后续的请求,这是受控于对该内容所声明的缓存策略。接下来将讨web内容缓存策略的基本概念,具体包括如如何选择缓存策略以保证互联网范围内的缓存能够正确处理的您的内容,并谈论下
- crontab 问题
周凡杨
linuxcrontabunix
一: 0481-079 Reached a symbol that is not expected.
背景:
*/5 * * * * /usr/IBMIHS/rsync.sh
- 让tomcat支持2级域名共享session
g21121
session
tomcat默认情况下是不支持2级域名共享session的,所有有些情况下登陆后从主域名跳转到子域名会发生链接session不相同的情况,但是只需修改几处配置就可以了。
打开tomcat下conf下context.xml文件
找到Context标签,修改为如下内容
如果你的域名是www.test.com
<Context sessionCookiePath="/path&q
- web报表工具FineReport常用函数的用法总结(数学和三角函数)
老A不折腾
Webfinereport总结
ABS
ABS(number):返回指定数字的绝对值。绝对值是指没有正负符号的数值。
Number:需要求出绝对值的任意实数。
示例:
ABS(-1.5)等于1.5。
ABS(0)等于0。
ABS(2.5)等于2.5。
ACOS
ACOS(number):返回指定数值的反余弦值。反余弦值为一个角度,返回角度以弧度形式表示。
Number:需要返回角
- linux 启动java进程 sh文件
墙头上一根草
linuxshelljar
#!/bin/bash
#初始化服务器的进程PId变量
user_pid=0;
robot_pid=0;
loadlort_pid=0;
gateway_pid=0;
#########
#检查相关服务器是否启动成功
#说明:
#使用JDK自带的JPS命令及grep命令组合,准确查找pid
#jps 加 l 参数,表示显示java的完整包路径
#使用awk,分割出pid
- 我的spring学习笔记5-如何使用ApplicationContext替换BeanFactory
aijuans
Spring 3 系列
如何使用ApplicationContext替换BeanFactory?
package onlyfun.caterpillar.device;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import
- Linux 内存使用方法详细解析
annan211
linux内存Linux内存解析
来源 http://blog.jobbole.com/45748/
我是一名程序员,那么我在这里以一个程序员的角度来讲解Linux内存的使用。
一提到内存管理,我们头脑中闪出的两个概念,就是虚拟内存,与物理内存。这两个概念主要来自于linux内核的支持。
Linux在内存管理上份为两级,一级是线性区,类似于00c73000-00c88000,对应于虚拟内存,它实际上不占用
- 数据库的单表查询常用命令及使用方法(-)
百合不是茶
oracle函数单表查询
创建数据库;
--建表
create table bloguser(username varchar2(20),userage number(10),usersex char(2));
创建bloguser表,里面有三个字段
&nbs
- 多线程基础知识
bijian1013
java多线程threadjava多线程
一.进程和线程
进程就是一个在内存中独立运行的程序,有自己的地址空间。如正在运行的写字板程序就是一个进程。
“多任务”:指操作系统能同时运行多个进程(程序)。如WINDOWS系统可以同时运行写字板程序、画图程序、WORD、Eclipse等。
线程:是进程内部单一的一个顺序控制流。
线程和进程
a. 每个进程都有独立的
- fastjson简单使用实例
bijian1013
fastjson
一.简介
阿里巴巴fastjson是一个Java语言编写的高性能功能完善的JSON库。它采用一种“假定有序快速匹配”的算法,把JSON Parse的性能提升到极致,是目前Java语言中最快的JSON库;包括“序列化”和“反序列化”两部分,它具备如下特征:  
- 【RPC框架Burlap】Spring集成Burlap
bit1129
spring
Burlap和Hessian同属于codehaus的RPC调用框架,但是Burlap已经几年不更新,所以Spring在4.0里已经将Burlap的支持置为Deprecated,所以在选择RPC框架时,不应该考虑Burlap了。
这篇文章还是记录下Burlap的用法吧,主要是复制粘贴了Hessian与Spring集成一文,【RPC框架Hessian四】Hessian与Spring集成
 
- 【Mahout一】基于Mahout 命令参数含义
bit1129
Mahout
1. mahout seqdirectory
$ mahout seqdirectory
--input (-i) input Path to job input directory(原始文本文件).
--output (-o) output The directory pathna
- linux使用flock文件锁解决脚本重复执行问题
ronin47
linux lock 重复执行
linux的crontab命令,可以定时执行操作,最小周期是每分钟执行一次。关于crontab实现每秒执行可参考我之前的文章《linux crontab 实现每秒执行》现在有个问题,如果设定了任务每分钟执行一次,但有可能一分钟内任务并没有执行完成,这时系统会再执行任务。导致两个相同的任务在执行。
例如:
<?
//
test
.php
- java-74-数组中有一个数字出现的次数超过了数组长度的一半,找出这个数字
bylijinnan
java
public class OcuppyMoreThanHalf {
/**
* Q74 数组中有一个数字出现的次数超过了数组长度的一半,找出这个数字
* two solutions:
* 1.O(n)
* see <beauty of coding>--每次删除两个不同的数字,不改变数组的特性
* 2.O(nlogn)
* 排序。中间
- linux 系统相关命令
candiio
linux
系统参数
cat /proc/cpuinfo cpu相关参数
cat /proc/meminfo 内存相关参数
cat /proc/loadavg 负载情况
性能参数
1)top
M:按内存使用排序
P:按CPU占用排序
1:显示各CPU的使用情况
k:kill进程
o:更多排序规则
回车:刷新数据
2)ulimit
ulimit -a:显示本用户的系统限制参
- [经营与资产]保持独立性和稳定性对于软件开发的重要意义
comsci
软件开发
一个软件的架构从诞生到成熟,中间要经过很多次的修正和改造
如果在这个过程中,外界的其它行业的资本不断的介入这种软件架构的升级过程中
那么软件开发者原有的设计思想和开发路线
- 在CentOS5.5上编译OpenJDK6
Cwind
linuxOpenJDK
几番周折终于在自己的CentOS5.5上编译成功了OpenJDK6,将编译过程和遇到的问题作一简要记录,备查。
0. OpenJDK介绍
OpenJDK是Sun(现Oracle)公司发布的基于GPL许可的Java平台的实现。其优点:
1、它的核心代码与同时期Sun(-> Oracle)的产品版基本上是一样的,血统纯正,不用担心性能问题,也基本上没什么兼容性问题;(代码上最主要的差异是
- java乱码问题
dashuaifu
java乱码问题js中文乱码
swfupload上传文件参数值为中文传递到后台接收中文乱码 在js中用setPostParams({"tag" : encodeURI( document.getElementByIdx_x("filetag").value,"utf-8")});
然后在servlet中String t
- cygwin很多命令显示command not found的解决办法
dcj3sjt126com
cygwin
cygwin很多命令显示command not found的解决办法
修改cygwin.BAT文件如下
@echo off
D:
set CYGWIN=tty notitle glob
set PATH=%PATH%;d:\cygwin\bin;d:\cygwin\sbin;d:\cygwin\usr\bin;d:\cygwin\usr\sbin;d:\cygwin\us
- [介绍]从 Yii 1.1 升级
dcj3sjt126com
PHPyii2
2.0 版框架是完全重写的,在 1.1 和 2.0 两个版本之间存在相当多差异。因此从 1.1 版升级并不像小版本间的跨越那么简单,通过本指南你将会了解两个版本间主要的不同之处。
如果你之前没有用过 Yii 1.1,可以跳过本章,直接从"入门篇"开始读起。
请注意,Yii 2.0 引入了很多本章并没有涉及到的新功能。强烈建议你通读整部权威指南来了解所有新特性。这样有可能会发
- Linux SSH免登录配置总结
eksliang
ssh-keygenLinux SSH免登录认证Linux SSH互信
转载请出自出处:http://eksliang.iteye.com/blog/2187265 一、原理
我们使用ssh-keygen在ServerA上生成私钥跟公钥,将生成的公钥拷贝到远程机器ServerB上后,就可以使用ssh命令无需密码登录到另外一台机器ServerB上。
生成公钥与私钥有两种加密方式,第一种是
- 手势滑动销毁Activity
gundumw100
android
老是效仿ios,做android的真悲催!
有需求:需要手势滑动销毁一个Activity
怎么办尼?自己写?
不用~,网上先问一下百度。
结果:
http://blog.csdn.net/xiaanming/article/details/20934541
首先将你需要的Activity继承SwipeBackActivity,它会在你的布局根目录新增一层SwipeBackLay
- JavaScript变换表格边框颜色
ini
JavaScripthtmlWebhtml5css
效果查看:http://hovertree.com/texiao/js/2.htm代码如下,保存到HTML文件也可以查看效果:
<html>
<head>
<meta charset="utf-8">
<title>表格边框变换颜色代码-何问起</title>
</head>
<body&
- Kafka Rest : Confluent
kane_xie
kafkaRESTconfluent
最近拿到一个kafka rest的需求,但kafka暂时还没有提供rest api(应该是有在开发中,毕竟rest这么火),上网搜了一下,找到一个Confluent Platform,本文简单介绍一下安装。
这里插一句,给大家推荐一个九尾搜索,原名叫谷粉SOSO,不想fanqiang谷歌的可以用这个。以前在外企用谷歌用习惯了,出来之后用度娘搜技术问题,那匹配度简直感人。
环境声明:Ubu
- Calender不是单例
men4661273
单例Calender
在我们使用Calender的时候,使用过Calendar.getInstance()来获取一个日期类的对象,这种方式跟单例的获取方式一样,那么它到底是不是单例呢,如果是单例的话,一个对象修改内容之后,另外一个线程中的数据不久乱套了吗?从试验以及源码中可以得出,Calendar不是单例。
测试:
Calendar c1 =
- 线程内存和主内存之间联系
qifeifei
java thread
1, java多线程共享主内存中变量的时候,一共会经过几个阶段,
lock:将主内存中的变量锁定,为一个线程所独占。
unclock:将lock加的锁定解除,此时其它的线程可以有机会访问此变量。
read:将主内存中的变量值读到工作内存当中。
load:将read读取的值保存到工作内存中的变量副本中。
- schedule和scheduleAtFixedRate
tangqi609567707
javatimerschedule
原文地址:http://blog.csdn.net/weidan1121/article/details/527307
import java.util.Timer;import java.util.TimerTask;import java.util.Date;
/** * @author vincent */public class TimerTest {
 
- erlang 部署
wudixiaotie
erlang
1.如果在启动节点的时候报这个错 :
{"init terminating in do_boot",{'cannot load',elf_format,get_files}}
则需要在reltool.config中加入
{app, hipe, [{incl_cond, exclude}]},
2.当generate时,遇到:
ERROR