自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

禅与计算机程序设计艺术

资深程序员。著有《ClickHouse入门、实战与进阶》(最新上架)《Kotlin 极简教程》《Spring Boot 开发实战》《Kotlin 从入门到进阶实战》等技术畅销书。

  • 博客(52)
  • 资源 (6)
  • 收藏
  • 关注

原创 Spring Boot 实现json和jsonp格式数据接口

Spring boot 实现json和jsonp格式数据接口1.新建一个类继承AbstractJsonpResponseBodyAdvice,重写父类构造方法,传入callback和jsonp参数。package com.alibaba.sinfo.h5.agent.advice;import org.springframework.web.bi...

2017-05-31 22:06:00 9117 1

原创 Kotlin 极简教程 目录

目录第0章 JVM语言家族编程语言简史程序的三种执行方式编译执行解释执行第1章 Kotlin简介第2章 快速开始:HelloWorld第3章 kotlinc编译过程分析第4章 类型系统第5章 语法基础第6章 面向对象编程(OOP)第7章 函数式编程(FP)第8章 Kotlin与Java混合调用第9章 集成Spring Boot开...

2017-05-31 21:52:00 8540 3

原创 《Kotlin 程序设计》第十四章 使用Kotlin开发Android程序

第十四章 使用Kotlin开发Android程序正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/ite...

2017-05-30 17:55:00 8563

原创 《Kotlin 程序设计》第十二章 Kotlin的多线程:协程(Coroutines)

第十二章 Kotlin的多线程:协程(Coroutines)正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.c...

2017-05-29 13:15:00 8697

原创 《Kotlin 程序设计》第十三章 使用Kotlin开发JavaScript代码

第十三章 使用Kotlin开发JavaScript代码正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/...

2017-05-29 04:18:00 8778

原创 《Kotlin 程序设计》第十一章 Kotlin实现DSL

第十一章 Kotlin实现DSL正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm?id...

2017-05-29 03:57:00 8442

原创 《Kotlin 程序设计》第十章 Kotlin Native介绍

第十章 Kotlin Native介绍正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm...

2017-05-29 03:55:00 8305

原创 《Kotlin 程序设计》第九章 Kotlin与Java混合调用

第九章 Kotlin与Java混合调用正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm...

2017-05-29 03:51:00 8595 2

原创 Kotlin 源代码编译过程分析

Kotlin 源代码编译过程分析正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm?id...

2017-05-29 03:41:00 9058

原创 《Kotlin 程序设计》第八章 Kotlin 集成Spring Boot开发

第八章 Kotlin 集成Spring Boot开发正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/i...

2017-05-29 03:41:00 8637

原创 《Kotlin 程序设计》第六章 Kotlin 函数式编程(FP)

第六章 Kotlin 函数式编程(FP)正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.ht...

2017-05-29 03:38:00 8592

原创 《Kotlin 程序设计》第五章 Kotlin 面向对象编程(OOP)

第五章 Kotlin 面向对象编程(OOP)正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item....

2017-05-29 03:38:00 8493 2

原创 《Kotlin 程序设计》第四章 Kotlin 语法基础

第四章 Kotlin 语法基础正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm?id=...

2017-05-29 03:37:00 8450

原创 《Kotlin 程序设计》第三章 Kotlin 类型系统

第三章 Kotlin 类型系统正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm?id=...

2017-05-29 03:36:00 8911

原创 《Kotlin 程序设计》第二章 快速开始:HelloWorld

第二章 快速开始:HelloWorld正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm...

2017-05-29 03:34:00 8438

原创 《Kotlin 程序设计》第一章 Kotlin简介

第一章 Kotlin简介正式上架:《Kotlin极简教程》Official on shelves: Kotlin Programming minimalist tutorial京东JD:https://item.jd.com/12181725.html天猫Tmall:https://detail.tmall.com/item.htm?id=558...

2017-05-28 23:52:00 8823 7

原创 午安时光

吃饭者众,赏景者少也。此处正是微风拂面,天朗气清;仰观蓝天白云,宇宙之大,大地之博;俯察水池游鱼,鱼翔浅底,春风十里尽自由;聆鸟鸣林间,欢歌笑语,舞动枝头;蒲叶摇曳,袅袅颦颦,弱叶扶风……图片发自简书App图片发自简书App图片发自简书App ...

2017-05-25 12:50:00 8699

原创 吏者,治人者也

从一,从史。图片发自简书App

2017-05-18 23:29:00 8636

原创 adb shell 启动,停止 android 应用程序

一、adb启动 应用程序(1)查看app包名:进入android操作系统adb shell在root@android:/ # 后边,输入cd data/data然后输入ls这样就能看见android系统上安装的安装包 包名:例如:cn.com.conversant.swiftsync.androidcom.android.backu...

2017-05-12 15:26:00 8407

原创 Android Studio 调试会出现安装两个相同的APP?

默认打开的activity如: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </in...

2017-05-12 14:09:00 8542

原创 Frida JAVA API 文档

JavaJava.available:a boolean specifying whether the current process has the a Java VM loaded, i.e. Dalvik or ART. Do not invoke any other Java properties or methods unless this ...

2017-05-09 23:45:00 9452

原创 Frida hook带handler的method

有些Class里面有Handler对象,就必须在 主线程里执行,否则报错E/AndroidRuntime( 2434): java.lang.ExceptionInInitializerErrorE/AndroidRuntime( 2434): at dalvik.system.NativeStart.run(Native Method)E/A...

2017-05-09 23:39:00 8569

原创 frida hook重载函数的几种写法

apply argumentsMyClass.MyFunc.overload("java.util.List").implementation = function() { this.MyFunc.overload("java.util.List").apply(this, arguments);}argments下标MyClass.My...

2017-05-09 14:15:00 9344

原创 android 在一个应用中启动另一个应用

android 在一个应用中启动另一个应用在程序开发过程当中,常遇到需要启动另一个应用程序的情况,比如在点击软件的一个按钮可以打开地图软件。 startDingAppButton = (Button) findViewById(R.id.start_ding_app_button); startDingAppButton....

2017-05-09 13:37:00 8471

原创 在非Activity中使用startActivity:Calling startActivity() from outside of an Activity context requires the...

在非Activity中使用startActivity:Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag问题描述在APP 1中启动APP 2中的Activity。Intent intent = new...

2017-05-08 16:40:00 8479 1

原创 浅谈android hook技术

安全博客 > 技术研究 > 浅谈android hook技术浅谈android hook技术您当前的位置: 安全博客 > 技术研究 > 浅谈android hook技术浅谈android hook技术2017年03月17日 10:06 1249前言在测试android过程中,能对函数进行hook能帮助更加深入的...

2017-05-07 22:38:00 8553

原创 13.14 SpringBoot集成JSP模板引擎:JSP页面样式乱掉

13.14 SpringBoot集成JSP模板引擎:JSP页面样式乱掉关键词:JS编码&解码&HTML转义escape , unescapeBlog功能模块,显示文章详情,文章内容中有jsp代码,页面乱掉。如下图所示原因分析在如下的HTML/JSP源代码中,有特殊字符(比如说,html标签,</textare...

2017-05-07 03:42:00 8427

原创 JSP页面样式乱掉:JS编码&解码&HTML转义escape , unescape

JSP页面样式乱掉:JS编码&解码&HTML转义escape , unescapeBlog功能模块,显示文章详情,文章内容中有jsp代码,页面乱掉。如下图所示原因分析在如下的HTML/JSP源代码中,有特殊字符(比如说,html标签,</textarea>)<textarea>HTML/JSP源...

2017-05-07 03:41:00 9208

原创 mongodb 中的like 怎么使用

LIKE模糊查询userName包含A字母的数据(%A%)SQL:SELECT * FROM UserInfo WHERE userName LIKE "%A%"MongoDB:db.UserInfo.find({userName :/A/})LIKE模糊查询userName以字母A开头的数据(A%)SQL:SELECT * FROM U...

2017-05-06 23:15:00 8706

原创 13.13 java.util.ConcurrentModificationException

13.13 java.util.ConcurrentModificationException问题描述在H5性能测试平台系统的开发过程中,客户端调用服务端API,写入性能数据的时候,报了如下错误:java.util.ConcurrentModificationException at java.util.ArrayList$ArrayListIte...

2017-05-06 18:52:00 8492

原创 13.12 Spring Boot集成Security中遇到的问题

13.12 Spring Boot集成Security中遇到的问题问题1:Spring Boot集成Security使用数据库用户角色权限用户名问题问题描述代码package com.springboot.in.action.daoimport java.util.Listimport com.springboot.in.action.en...

2017-05-06 18:51:00 8752

原创 13.11 Scala混用Java的集合类调用scala的foreach遍历问题

13.11 Scala混用Java的集合类调用scala的foreach遍历问题问题描述[ERROR] /Users/jack/book/lightsword/src/main/scala/com/springboot/in/action/service/LightSwordUserDetailService.scala:31: error: valu...

2017-05-06 18:49:00 8473

原创 13.9 SpringBoot集成Swagger2中遇到的问题

13.9 SpringBoot集成Swagger2中遇到的问题我们在使用SpringBoot集成Swagger2中,访问:http://127.0.0.1:8188/swagger-ui.html问题描述可能出现两种错误:1.页面显示默认报错页面。后台报错:No handler found for GET /swagger-ui.html2....

2017-05-06 18:45:00 8553 8

原创 13.4 库依赖冲突问题:Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path...

13.4 库依赖冲突问题:Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path问题描述引入第三方库'org.raml:raml-parser:0.8.12',导致slf4j依赖冲突。java.lang.IllegalStateException...

2017-05-06 18:45:00 8607

原创 13.10 Scala中使用JSON.toJSONString报错:ambiguous reference to overloaded definition

13.10 Scala中使用JSON.toJSONString报错:ambiguous reference to overloaded definition问题描述:[ERROR] /Users/jack/book/lightsword/src/main/scala/com/springboot/in/action/filter/LoginFilte...

2017-05-06 18:44:00 8736 4

原创 13.1 Spring MVC 关于controller的字符编码

13.1 Spring MVC 关于controller的字符编码问题描述在使用springMVC框架构建web应用,返回http请求json格式的数据,中文乱码。原因分析我们通常使用@ResponseBody注解使 controller回应相应的数据而不是去渲染某个页面。如果请求的是非英文格式的字符串,往往在客户端显示的是乱码。原因是sprin...

2017-05-06 18:43:00 8460

原创 13.8 java.lang.IllegalArgumentException: Request header is too large

13.8 java.lang.IllegalArgumentException: Request header is too large问题日志:java.lang.IllegalArgumentException: Request header is too largejava.lang.IllegalArgumentException: Reque...

2017-05-06 18:43:00 8532

原创 13.6 SpringBoot集成Mongodb开发问题@EnableMongoRepositories路径配置

13.6 SpringBoot集成Mongodb开发问题@EnableMongoRepositories路径配置APPLICATION FAILED TO STARTDescription:Parameter 0 of constructor in com.restfeel.controller.BlogController required a...

2017-05-06 18:43:00 8962

原创 13.2 Spring Boot启动报错:Whitelabel Error Page

13.2 Spring Boot启动报错:Whitelabel Error Page问题描述Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Tue Mar 28 22:25:4...

2017-05-06 18:43:00 9591

原创 13.7 SpringBoot集成日志系统logback的几个问题

问题1: Logging system failed to initialize using configuration from 'logback.xml 'application.properties配置文件中value后面有空格。logging.config=logback.xml 让人感到疑惑的是,SpringBoot居然没有对appl...

2017-05-06 18:43:00 8883

ClickHouse 高性能、可扩展和低成本的OLAP数据库 陈光剑 20230912

ClickHouse 设计哲学 具体问题具体分析 use good algorithms in a good context; 深入细节 dig into details; 度量指标 measure everything; 贴近生产环境 be close to production; 基准测试 do benchmarks, more of them; 不断试验、实践never stop experimenting; 大规模测试 test at scale; 大胆创新 do weird stuff; have fun! It is a database: A database has both a storage engine and a query engine. ClickHouse can efficiently ingest data from various sources and its query engine provides low-latency query responses. It is an OLAP database: An On-Line Analytic

2023-09-14

Will AI Fix Work? 工作节奏超过了我们的跟上能力 人工智能有望创造一种全新的工作方式

The pace of work is outpacing our ability to keep up. AI is poised to create a whole new way of working. 工作节奏超过了我们的跟上能力。人工智能有望创造一种全新的工作方式。 微软工作趋势指数年度报告( Work Trend Index Annual Report ) Key findings: The data points to three urgent insights business leaders must know now as they look to quickly and responsibly adopt AI. 1. Digital debt is costing us innovation: 64% of people have struggled with finding time and energy to get their work done, and those workers are 3.5x more likely to say they

2023-05-17

THE AI INDEX REPORT 人工智能指数报告 Measuring trends in Artificial Inte

THE AI INDEX REPORT 人工智能指数报告 Measuring trends in Artificial Intelligence 衡量人工智能的趋势 TOP TAKEAWAYS 最重要的要点 Industry races ahead of academia. 工业界领先于学术界。 Until 2014, most significant machine learning models were released by academia. Since then, industry has taken over. In 2022, there were 32 significant industry-produced machine learning models compared to just three produced by academia. Building state-of-the-art AI systems increasingly requires large amounts of data, compute, and money, resources

2023-04-06

四大常用限流算法原理详解:计数器固定窗口、计数器滑动窗口、漏桶、令牌桶算法.pdf

四大常用限流算法原理详解:计数器固定窗口、计数器滑动窗口、漏桶、令牌桶算法.pdf

2021-05-28

Kotlin Coroutines by Tutorials (1st Edition)

Kotlin Coroutines by Tutorials (1st Edition)

2021-04-28

Principles of programming languages by Gilles Dowek (auth.) (z-lib.org).pdf

Principles of programming languages by Gilles Dowek (auth.) (z-lib.org).pdf

2021-04-28

A Brief History of Artificial Intelligence

A Brief History of Artificial Intelligence What It Is, Where We Are, and Where We Are Going by Michael Wooldridge (z-lib.org).pdf

2021-04-28

An introduction to functional programming through lambda calculus.PDF.zip

Author: Michaelson, Greg Functional programming is rooted in lambda calculus, which constitutes the world's smallest programming language. This well-respected text offers an accessible introduction to functional programming concepts and techniques for students of mathematics and computer science. The treatment is as nontechnical as possible, and it assumes no prior knowledge of mathematics or functional programming. Cogent examples illuminate the central ideas, and numerous exercises appear throughout the text, offering reinforcement of key concepts. All problems feature complete solutions.

2019-09-22

《Kotlin项目实战开发》第3章+类型系统与可空类型

《Kotlin项目实战开发》 第3章 类型系统与可空类型 跟Java、C和C ++ 一样, Kotlin也是“静态类型编程语言”。 通常,编程语言中的类型系统中定义了  如何将数值和表达式归为不同的类型  如何操作这些类型  这些类型之间如何互相作用 我们在编程语言中使用类型的目的是为了让编译器能够确定类型所关联的对象需要分配多少空间。 在每一个编程语言中,都有一个特定的类型系统。静态类型在编译时期时,就能可靠地发现类型错误。因此通常能增进最终程序的可靠性。 类型系统在各种语言之间有非常大的不同,主要的差异存在于编译时期的语法,以及运行时期的操作实现方式。 本章我们简单介绍一下Kotlin的类型系统。

2017-09-30

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除