- 博客(1290)
- 资源 (11)
- 问答 (1)
- 收藏
- 关注

原创 JobShow裁员加班实况
如何写一份好的简历?写在前面在内推的时候很多同学问到如何能够让自己的简历更出彩,在帮助修改简历的过程中,发现了一些通用的问题,简单写个帖子总结下,如有错误请批评指正格式好的简历能够让HR一眼看到最重要的内容,而好的格式能够有效突出重点,且简洁凝练1. 不要混用中英文标点符号,不要增加奇怪的空格对于逗号、冒号、句号等标点符号,中英文是不一样的,混用会导致看上去很奇怪,有的同学会在中文逗号后加一个空格,就更奇怪了。2. 不要随意加粗只针对大标题以及内容中的关键...
2021-10-28 21:08:05
1656
2

原创 呕心沥血,悉心打磨-开发的产品
1.历时3个月,北大师兄开发的一款小程序【大头记账本】,生活花销,便捷清晰。永久免费提供服务。2.同时还有一款小程序【恋爱花销】,记录谈恋爱相关的花销3.更多企业内的技术应用和使用技巧,请移步至我的公众号【程序员实用技能】...
2021-08-30 18:54:59
602
1

原创 mysql 不走索引的情况
1 or (待确认)、in(待确认)2 like '%abc' 或者 like‘%abc%’3 where num/2=100 或者 subString(a,1,3)='ab'4 where id !=2 或者 where id <> 25 where name is null6 复合索引a-b-c,a用到,b用不到,c用不到,ab有效,ba有效,a or b无效,...
2019-04-18 21:31:40
8015

原创 js 对象数组添加属性、修改属性
var kvArray = [{key: 1, value: 10}, {key: 2, value: 20}, {key: 3, value: 30}];var reformattedArray = kvArray.map(function(obj,index) { console.log(index) var rO...
2018-10-12 19:24:14
31516

原创 线程池ExecutorService空闲线程的个数
keepAliveTime:表示线程没有任务执行时最多保持多久时间会终止。默认情况下,只有当线程池中的线程数大于corePoolSize时,keepAliveTime才会起作用,直到线程池中的线程数不大于corePoolSize,即当线程池中的线程数大于corePoolSize时,如果一个线程空闲的时间达到keepAliveTime,则会终止,直到线程池中的线程数不超过corePoolSize。但...
2018-06-28 20:02:33
22239
1

原创 Mysql decimal(m,d)的说明
看了一些博客,觉得很多都是复制的,不如自己亲测一篇: create table decimal_test(id int auto_increment PRIMARY key,score decimal(5,2) -- 取值范围是 -999.99 到 999.99);-- 整数的位数必须小于等于m-d,不然报错。小数的位数可以大于d位。多...
2018-02-02 14:27:20
34345
13

原创 java二维数组A.length和A[i].length的区别
public static void main(String[] args) { //// write your code here int[][] A=new int[][]{{1,2},{4,5},{7,8,10,11,12},{}}; System.out.println(A.length);//4,表示数组的行数 System.out.p
2017-08-11 21:04:30
30476
原创 Hive date/timestamp/date_sub/date_add/date_format/日期时间格式转换
务必注意输入类型和返回类型!Hive函数-官方文档。
2022-07-16 17:52:57
3687
原创 Hive sum over partition preceding following 累计求和
有重复,不符合预期 按月份累计时partition by不能再出现month字段!符合预期符合预期 把month加上后,是精确到month粒度了,就看不出累加的效果了:partition by与group by的不同点:1 over(partition by)时select中可以出现多个字段(比如相关的维度字段或不相关的其他字段);但是如果是写[group by 维度字段]时,前面select中需要出现相同的维度字段才行(不然报错),比partition by多了一个限制!2 par
2022-07-14 16:15:53
3050
原创 FlinkSQL 列转行/解开map array/unnest/lateral table udtf
将Map展开为多列多行。基于UDTF结果示例2 将数组展开为单列多行。基于UNNEST基于UDTF结果示例3 将Array展开成多列多行end
2022-07-14 11:06:44
7517
原创 Flink 窗口迟到很久的消息处理/side outputs 旁路输出/防止数据丢失
Flink 数据源分流/一个数据源分成多个/使用filter/使用split / select(已废弃)/side outputs 旁路输出_二十六画生的博客的博客-CSDN博客_flink 多个filterFlink(29):Flink中对迟到数据的处理(Allowed Lateness 和 SideOutput)_电光闪烁的博客-CSDN博客_flink迟到数据处理.sideOutputLateData(outputTag) Flink-处理乱序数据和迟到数据的总结和解决办法_Knight_AL的博客-
2022-06-14 21:30:59
1081
原创 堆外内存 jvm
换句话说:堆外内存就是把内存对象分配在Java虚拟机的堆以外的内存,这些内存直接受操作系统管理(而不是虚拟机),这样做的结果就是能够在一定程度上减少垃圾回收对应用程序造成的影响。JVM堆外内存 - 晓风残月的博客Full GC时才会回收堆外内存。----Java 内存之直接内存(堆外内存) · 日常学习 · 看云----Major GC和Full GC的区别是什么?触发条件呢? - 知乎针对HotSpot VM的实现,它里面的GC其实准确分类只有两大种:Major GC通常是跟full GC是等价的,收集整
2022-06-13 16:00:18
726
原创 Clickhouse优点 缺点 / Doris 优点 缺点
ch优点:查询速度快,利用多核并行处理单个查询列式存储+压缩,节省空间内置数较多(例如IP转化,URL分析等,预估计算/HyperLoglog等);缺点:不支持事务不支持UPDATE/DELETE操作聚合结果必须小于一台机器的内存大小,否则失败Clickhouse 优点与缺点 (个人测评) - 知乎----Doris支持Array,ch支持Array/嵌套类型/枚举类型等。Doris支持事务和幂等性导入数据,ch不支持。Doris的join性能比较好,ch的单表
2022-05-26 15:53:26
6384
原创 Clickhouse IPv4StringToNum用法与原理/URL函数 protocol domain
selectIPv4StringToNum('1.1.1.1') -- 16843009IPv4的字符串转为十进制数字:IP函数 | ClickHouse Docs
2022-05-26 13:56:31
839
原创 Flink 新加source后 发布前需要修改checkpoint的namspace/报错:作业拓扑发生改变,无法使用现有Checkpoint
之前是:source_a union all source_b ;新加source_c:source_a union all source_b source_c;会报错:Flink任务Checkpoint检查报错:作业拓扑发生改变,无法使用现有CheckpointCheckpoint verification error: org.apache.flink.client.program.ProgramInvocationException: The main method ca
2022-05-21 13:48:36
444
原创 Clickhouse groupArray/groupUniqArray/arrayJoin/splitByChar
行列转置一般由由行转为列,或者由列转为行。CREATE TABLE datasets.t_city( `province` String, `city` String, `createtime` DateTime, `city_level` Int8)ENGINE = MergeTree()ORDER BY provinceSETTINGS index_granularity = 8192; insert into t_city values.
2022-05-15 15:06:56
2447
原创 Leetcode_40_CombinationSumII--数组元素组合,和为目标值,一个元素只可用一次,输出每种组合,每种组合唯一
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations incandidateswhere the candidate numbers sum totarget.Each number incandidatesmay only be usedoncein the combination.Note:The solutio...
2022-05-02 10:41:44
384
原创 Leetcode 35. Search Insert Position--在有序数组中,查找目标值的插入位置。如果tar存在,则返回tar的下标;如果tar不存在,则返回插入tar的正确的下标
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You mustwrite an algorithm withO(log n)runtime complexity.Example 1:I...
2022-05-01 17:05:10
292
原创 Flink AggregateFunction窗口函数,merge何时执行(三)
前言在我们使用Flink DataStream API编写业务代码时,aggregate()算子和AggregateFunction无疑是非常常用的。编写一个AggregateFunction需要实现4个方法:public interface AggregateFunction<IN, ACC, OUT> extends Function, Serializable { ACC createAccumulator(); ACC add(IN value, ACC ac...
2022-04-15 14:20:03
2932
原创 Flink AggregateFunction窗口函数,自定义UDAF,UDF(一)
AggregateFunction 比 ReduceFunction 更加的通用,它有三个参数:输入类型(IN)、累加器类型(ACC)和输出类型(OUT)。
2022-04-15 14:10:45
640
原创 Java,重写Comparable比较方法,重写equals方法, Long 与 Long equals,Long 与 Long == ,Long 与 long ==
jdk1.8,1 重写Comparable比较方法2 重写equals方法3 Long 与 Long equals,Long 与 Long == ,Long 与 long ==
2022-04-13 17:25:54
1384
原创 Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())
Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())
2022-04-11 22:46:50
652
原创 Java list1=list2;list2=null ? list1=list2;list2.clear()?
Java list1=list2;list2=null ? list1=list2;list2.clear()?
2022-04-10 13:27:57
1017
原创 Leetcode 412. Fizz Buzz-蜂鸣器
Leetcode 412. Fizz Buzz-蜂鸣器;Given an integern, returna string arrayanswer(1-indexed) where:answer[i] == "FizzBuzz"ifiis divisible by3and5.answer[i] == "Fizz"ifiis divisible by3.answer[i] == "Buzz"ifiis divisible by5.answer[i] == i(a
2022-04-09 12:13:52
547
原创 Java char int 转换/char[]char数组 字符串 转换 String.valueOf/Arrays.sort/int[]数组初始0/Integer[]数组初始null
public static void main(String[] args) { int[] crr = new int[200]; char a = 'a'; System.out.println(crr[a]);//0 System.out.println(crr[a]--);//0 System.out.println(crr[a] + 2);//1 /////////////////////...
2022-04-08 23:13:10
419
原创 Leetcode 171. Excel Sheet Column Number-Excel的列名转换为具体的数字AB->28,ZY->701
Leetcode 171. Excel Sheet Column Number-Excel的列名转换为具体的数字AB->28,ZY->701
2022-04-08 11:28:35
315
原创 Leetcode 328. Odd Even Linked List-奇数位节点放前面,偶数位节点放后面,按照原来的顺序
Given theheadof a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and returnthe reordered list.Thefirstnode is consideredodd, and thesecondnode iseven, and so on.Note that the relative...
2022-04-05 19:11:38
354
原创 Leetcode 116. Populating Next Right Pointers in Each Node--完全二叉树层次遍历后放入队列链表--Queue,LinkedList
You are given aperfect binary treewhere all leaves are on the same level, and every parent has two children. The binary tree has the following definition:struct Node { int val; Node *left; Node *right; Node *next;}Populate each next pointe..
2022-04-05 16:12:16
601
原创 Leetcode 237. Delete Node in a Linked List-删除链表的指定节点,不给链表的头节点
Write a function todelete a nodein a singly-linked list. You willnotbe given access to theheadof the list, instead you will be given access tothe node to be deleteddirectly.It isguaranteedthat the node to be deleted isnot a tail nodein the li...
2022-04-05 10:55:55
855
原创 Leetcode 234. Palindrome Linked List--判断是否是回文链表,返回中间节点,反转链表
Given theheadof a singly linked list, returntrueif it is a palindrome.Example 1:Input: head = [1,2,2,1]Output: trueExample 2:Input: head = [1,2]Output: falseConstraints:The number of nodes in the list is in the range[1, 105]....
2022-04-04 23:52:01
347
原创 Leetcode 82. Remove Duplicates from Sorted List II--删除链表中的重复节点,重复的节点均删除掉
Given theheadof a sorted linked list,delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Returnthe linked listsortedas well.Example 1:Input: head = [1,2,3,3,4,4,5]Output: [1,2,5]Example 2:...
2022-04-03 23:05:05
537
原创 Leetcode 83. Remove Duplicates from Sorted List-从有序链表中删除重复节点,重复的节点只保留一个
* 每次:head与head.next值相等时,pre.next = head.next * head与head.next值不相等时,pre=最后一个重复值,head=下一个值
2022-04-03 22:46:44
547
原创 flinksql的 / 的结果只会保留整数部分,flinksql 不支持 div运算符。hive、 mysql : / 结果是小数, div 结果只会保留整数部分
flinksql的 / 的结果只会保留整数部分,flinksql 不支持 div运算符。hive、 mysql : / 结果是小数, div 结果只会保留整数部分mysql> select 3/2 ;+--------+| 3/2 |+--------+| 1.5000 |+--------+1 row in set (0.00 sec)mysql> mysql> mysql> select 3 div 2 ;+---------+| 3 ..
2022-03-29 10:16:53
3430
原创 SQL 10位时间戳 除以60 得到整分钟;group by event_ts/60<==> group by 1min
1648519200 2022-03-29 10:00:00/60 = 274753201648519260 2022-03-29 10:01:00/60= 274753211648519300 2022-03-29 10:01:40/60= 27475321.6666666666666671648519320 2022-03-29 10:02:00/60= 274753221648519360 2022-03-29 10:02:40/60= 27475322.6666666666
2022-03-29 10:10:12
826
原创 分位数 算法
1p分位数的原理及计算_juliarjuliar的博客-CSDN博客_分位数2性能指标里的80分位是什么? - 掘金本以为很简单,没想到那么复杂.....
2022-03-08 16:56:45
2869
mhd raw metaimage java读取类
2017-10-18
commons-lang-2.5.jar
2016-07-08
commons-configuration-1.6.jar
2016-07-08
android通过servlet与服务器验证用户信息
2016-03-26
全国省市县区域名称
2015-11-17
android布局中用到dimension,这样的作用是什么?好处是?
2015-12-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人