cnhome的专栏

浪淘沙
私信 关注
cnhome
码龄19年

Empty

  • 1,249,430
    被访问量
  • 154
    原创文章
  • 2,834
    作者排名
  • 143
    粉丝数量
  • 于 2002-05-22 加入CSDN
获得成就
  • 获得72次点赞
  • 内容获得124次评论
  • 获得207次收藏
荣誉勋章
兴趣领域
  • #后端
    #Spring
TA的专栏
  • DB-Engine
    3篇
  • 微服务
    18篇
  • GIS
    17篇
  • ACE
    2篇
  • ICE中间件框架
    6篇
  • Java编程
    110篇
  • Linux C++
    44篇
  • Linux平台应用技术
    150篇
  • LVS
    4篇
  • VC
    35篇
  • OpenNMS技术应用
    8篇
  • 互联网应用
    36篇
  • 硬件应用
    13篇
  • 移动开发
    9篇
  • 算法
    5篇
  • 软件应用
    6篇
  • 软件版本管理
    5篇
  • Big Data
    7篇
  • web开发
    7篇
  • 最近
  • 文章
  • 资源
  • 问答
  • 课程
  • 帖子
  • 收藏
  • 关注/订阅

java调用dll或so动态库文件(c++/c)

一篇老文章,拿来用一下。开发平台:Eclipse3.3.1.1+CDT(cdt-master-4.0.3)+MinGW(MinGW-5.1.4)1. java调用dll的实现1.1 环境准备1.1.1 下载并安装cdthttp://www.eclipse.org/cdt/downloads.php选择自己eclipse 支持的cdt插件,下载,并且通过eclipse–>software update–>find and install 安装cdt。1.1.2 下载并安装mingw
转载
90阅读
0评论
0点赞
发布博客于 3 月前

OpenPGP Integration (Java and JavaScript)

这是一组OpenPGP应用的文章,很值得学习了解。对于高强度的安全要求的环境还是很值的应用的。这一组文章由四部分构成:Java keys generationJava PGP encryptionFront end PGP encryptionPGP messages exchange between Java and JavaScriptJava keys generationIf you’ve read my previous post, you probably already kn
翻译
148阅读
0评论
0点赞
发布博客于 6 月前

Apache Traffic Control介绍

Apache Traffic Control 是一个分布式、可扩展的冗余解决方案,可用于构建、监视和配置大型内容交付网络(CDN)。项目起源于 Traffic Server ,实现了现代 CDN 的所有核心功能。借助 Traffic Control,运营商可以设置一个内容分发网络,为用户快速高效地提供高质量的 Live 和 VOD 流媒体视频。功能特性:降低延迟:找到更靠近用户的缓存和内容可减少传送内容所需的往返时间。降低带宽成本:在内存和磁盘上缓存内容可减少原始服务器和瓶颈链接上的负载。..
原创
258阅读
0评论
0点赞
发布博客于 8 月前

ubuntu16.04下安装配置coturn

一、安装软件包apt updateapt install coturn二、配置coturn1、复制DTLS、TLS支持的证书文件:cp /usr/share/coturn/examples/etc/turn_server_cert.pem /etc/turn_server_cert.pemcp /usr/share/coturn/examples/etc/turn_server_pkey.pem /etc/turn_server_pkey.pem2、编辑/etc/turnserver.co
转载
206阅读
0评论
0点赞
发布博客于 8 月前

Debezium引擎

Debezium引擎通常,通过将Debezium连接器部署到Kafka Connect服务并配置一个或多个连接器来监视上游数据库并为它们在上游数据库中看到的所有更改生成数据更改事件来进行操作。这些数据更改事件被写入Kafka,在那里它们可以被许多不同的应用程序独立使用。Kafka Connect具有出色的容错性和可扩展性,因为它作为分布式服务运行,并确保所有已注册和配置的连接器始终处于运行状态。例如,即使集群中的一个Kafka Connect端点发生故障,其余的Kafka Connect端点也将重新启动以
翻译
307阅读
0评论
0点赞
发布博客于 8 月前

nginx中配置ssl双向认证详解

nginx中配置ssl双向认证详解修改openssl配置的参数使用openssl制作CA的自签名证书准备服务器端证书准备客户端证书nginx的配置客户端证书格式转换撤销用户证书[转自](https://blog.csdn.net/yuanlin65/article/details/53187710)需求说明:公司内部一些业务系统对安全性要求比较高,例如mis、bi等,这些业务系统只允许公司内...
转载
555阅读
0评论
0点赞
发布博客于 10 月前

Debezium

Debezium是一个开源项目,为更改数据捕获(CDC)提供了低延迟的数据流平台。您设置并配置Debezium来监视数据库,然后您的应用程序会使用对数据库进行的每个行级更改的事件。仅显示已提交的更改,因此您的应用程序不必担心事务或回滚的更改。Debezium提供了所有变更事件的单一模型,因此您的应用程序不必担心每种数据库管理系统的复杂性。此外,由于Debezium会在持久的复制日志中记录数据更改的...
翻译
2145阅读
0评论
1点赞
发布博客于 2 年前

ObjectMapper忽略未知字段

转自ObjectMapper objectMapper = new ObjectMapper();objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
转载
1766阅读
0评论
0点赞
发布博客于 2 年前

官网关于GridFS操作的说明文档

转自GridFSGridFS is a specification for storing and retrieving files that exceed the BSON document size limit of 16MB. Instead of storing a file in a single document, GridFS divides a file into parts,...
转载
449阅读
1评论
0点赞
发布博客于 2 年前

Java PDF转换成图片并输出给前台展示

首先需要导入所需工具类<dependency><groupId>org.apache.pdfbox</groupId><artifactId>fontbox</artifactId><version>2.0.1</version></dependency><dependency>...
转载
399阅读
0评论
0点赞
发布博客于 2 年前

java pdf转为image

转自public static void convertPdf2Image(String pdfFilepath,String imgFilepath) throws IOException{ File file; file = new File(pdfFilepath); String filename = file.getName().substri...
转载
315阅读
0评论
0点赞
发布博客于 2 年前

Introduction to BouncyCastle with Java

引自1. OverviewBouncyCastle is a Java library that complements the default Java Cryptographic Extension (JCE).In this introductory article, we’re going to show how to use BouncyCastle to perform cryp...
转载
103阅读
0评论
0点赞
发布博客于 2 年前

Spring Cloud Gateway - Creating Custom Route Filters (AbstractGatewayFilterFactory)

转自On Spring Cloud Gateway, we can apply some filters for each route. Whenever a request matches a route’s path, the filters defined for that route will be executed. There are many things can be done ...
转载
545阅读
0评论
0点赞
发布博客于 2 年前

Creating a modern Web app using Vue.js and Spring Boot with JHipster

原文Vue.js is the new trending framework in the Javascript front-end world, and its simplicity lets you build web applications pretty fast. The structure of a Vue.js application is very similar to an A...
转载
244阅读
0评论
1点赞
发布博客于 2 年前

如何使用Spring Data Solr做空间检索并排序

解决方法一To set fl you have to use query.addProjectionOnField(String fieldname). SimpleQuery query = new SimpleQuery(conditions); query.addProjectionOnField("*"); query.addProjectionOnField("...
原创
344阅读
0评论
0点赞
发布博客于 2 年前

在Spring Data MongoDB下做空间检索

彻底搞懂Spring Data MongoDB在空间检索方面的支持。Recently I was intrigued about a project discussion in which a high volume REST API was needed to store and retrieve location based information. A performant solut...
翻译
179阅读
0评论
0点赞
发布博客于 2 年前

Spring Data MongoDB:使用GridFS保存二进制文件

转自GridFSTemplate已经很多在使用的了,对于没有什么编写经验的同学,本文值得一看。在MongoDB中,可以使用GridFS保存二进制文件。本文介绍如何使用GridFsTemplate保存和读取图片文件。1. GridFS - 保存(使用Spring注解方式)import org.springframework.context.annotation.Bean;import o...
转载
267阅读
0评论
1点赞
发布博客于 2 年前

Spring Cloud OpenFign简介

原文1. 概述在本教程中,我们将描述 Spring Cloud OpenFeign一个用于Spring Boot应用程序的声明性REST客户端。Feign使用可插入的注释支持更轻松地编写Web服务客户端,其中包括Feign注释和JAX-RS注释。此外,Spring Cloud还增加了对Spring MVC注释的支持,并使用了与 Spring Web中使用的相同的 HttpMessage...
翻译
1101阅读
0评论
3点赞
发布博客于 2 年前

基于Ionic3实现微信支付和支付宝支付

转载当下开发中更多采用Hybird APP进行快速开发,使用Cordoava的不在少数。下边的文章内容,对于新入开发做支付口的同学有极大的参考价值。在Ionic应用里实现支付并不难,但是有的坑真是不爬不知道。1. 支付宝支付网上关于支付宝支付cordova插件真是非常多,但是大多会报一些让你很无语的错误。比如sdk早已过时不是最新的,或者没有出来效果。我也是经过大量试错,最终选择了以下这...
转载
401阅读
0评论
1点赞
发布博客于 2 年前

使用Multipass在Windows上利用Ubuntu Linux的全部功能

转自Canonical今天宣布推出用于Microsoft Windows操作系统的Ubuntu Linux虚拟实例的Multipass业务流程工具。Multipass是一个开源命令行实用程序,允许用户协调Ubuntu Linux虚拟机的创建,管理和维护,以简化应用程序的开发。它可以在Linux和macOS操作系统上使用,并且截至今天,它也可用于Windows平台。“继我们的macOS发布之后...
转载
8402阅读
1评论
1点赞
发布博客于 2 年前

哪些开源协议可以商用

转自1. 常用的开源协议:Apache License 2.0要点:Apache Licence是对商业应用友好的许可。使用者也可以在需要的时候修改代码来满足需要并作为开源或商业产品发布/销售。BSD开源协议(Berkerley Software Distribution)要点:商业软件可以使用,也可以修改使用BSD协议的代码。GPL ( GNU General Public Lice...
转载
4318阅读
1评论
2点赞
发布博客于 2 年前

Spring Data Cassandra 轻量级事物支持

Spring Data Cassandra 轻量级事务支持做数据操作不得不提的就是数据操作的事务性,如果控制不好就很容易将数据写脏,这往往是初学者容易犯大忌的地方。我们来看一下Spring Data Cassandra是如何给我们的数据操作增加轻量级事务支持的。从Spring Data for Apache Cassandra 2.0开始,通过提供的两个类InsertOptions和Updat...
原创
346阅读
0评论
0点赞
发布博客于 2 年前

Introducing Jib — build Java Docker images better

这是一篇来自于google的文章,对于java开发者来说很实用,尤其是容器天下的时代。值得仔细阅读。引自Containers are bringing Java developers closer than ever to a “write once, run anywhere” workflow, but containerizing a Java application is no sim...
转载
155阅读
0评论
0点赞
发布博客于 2 年前

Java访问Ceph数据的相关细节

Ceph很多公司内部已经进行了部署,当然也有很多公司使用阿里的OSS或者亚马逊的S3。在现在硬件廉价的大环境下,更多的公司愿意把自己的数据内容自我保管,实现企业私有云。下面我们来看一下如何使用Java技术栈来访问Ceph。1. 部署LIBRADOS环境客户端应用程序需要librados才能连接到Ceph存储集群。1.1 安装jna.jarDebian/Ubuntu环境下执行以下命令sud...
原创
5063阅读
2评论
0点赞
发布博客于 2 年前

用FastDFS一步步搭建文件管理系统

转自大家多数人都是在使用OSS,也有很多有能力的企业在使用FastDFS来进行分布式文件的存储。也许有人会说我们可以用CDN加速资源,确实可以。但如果资源不希望外流的话,很多企业都会选择自建分布式文件系统,这应该说是是一项基本功能。网上有一篇很全面的文章,值得大家参考使用。1. FastDFS介绍FastDFS开源地址参考:分布式文件系统FastDFS设计原理参考:FastDFS分布式文...
转载
136阅读
0评论
0点赞
发布博客于 2 年前

精益软件开发(Lean Software Development)

介绍随着软件系统变得越来越复杂,越来越多人参与其中,管理软件开发变得越来越困难。多年来,企业被告知要应对增加的复杂性,他们需要增加更多的测量,更多的控制,更多的检查和平衡,更严格。为了确保人们按照他们的要求行事,许多企业在流程合规性审计上花费了大量资源。结果不应该令人惊讶:组织文化越来越强调预测和管理,而对学习和创新的关注则越来越少。不知何故,客户在我们预测和控制软件开发的渴望中被忽视了。许多...
翻译
3550阅读
0评论
1点赞
发布博客于 2 年前

在 Angular中 使用 Lodash 的方法

转自如何Lodash 是 JavaScript 很有名的 package,尤其對於處理 array 很有一套,Angular 該如何使用 lodash 呢 ? 這也可以視為在 Angular 使用傳統 JavaScript package 的 SOP。VersionNode.js 8.9.4Angular CLI 1.6.2Angular 5.2.2安装 Lodash~/MyPr...
转载
2416阅读
0评论
0点赞
发布博客于 2 年前

Angular 2 ViewChild & ViewChildren

转自ViewChildViewChild 是属性装饰器,用来从模板视图中获取匹配的元素。视图查询在 ngAfterViewInit 钩子函数调用前完成,因此在 ngAfterViewInit 钩子函数中,就能正确获取查询的元素。@ViewChild 使用模板变量名import { Component, ElementRef, ViewChild, AfterViewInit } from ...
转载
132阅读
0评论
0点赞
发布博客于 2 年前

Github进行fork后如何与原仓库同步

转自我们在进行Github协同开发的时候,往往会去fork一个仓库到自己的Github中,过一段时间以后,原仓库可能会有各种提交以及修改,很可惜,Github本身并没有自动进行同步的机制,这个需要我们手动去执行,现在我来演示一下如何进行自己的仓库和原仓库进行Gith同步的操作。(1)我使用终端 命令行的方式在Mac中来操作。首先在终端中配置原仓库的位置。进入项目目录,执行如下命令:查看你的远程...
转载
227阅读
0评论
0点赞
发布博客于 2 年前

SpringBoot项目开发 - Caffeine本地缓存

转自为什么需要本地缓存?在系统中,有些数据,访问十分频繁(例如数据字典数据、国家标准行政区域数据),往往把这些数据放入分布式缓存中,但为了减少网络传输,加快响应速度,缓存分布式缓存读压力,会把这些数据缓存到本地JVM中,大多是先取本地缓存中,再取分布式缓存中的数据而Caffeine是一个高性能Java 缓存库,使用Java8对Guava缓存重写版本,在Spring Boot 2.0中将取代Gu...
转载
1261阅读
0评论
0点赞
发布博客于 2 年前

hortonworks-sandbox oozie缺少extjs的问题解决

参考资料I finally solved it by installing a third-party version of ExtJS from the following url: http://archive.cloudera.com/gplextras/misc/ext-2.2.zipThen following the steps:Stop Oozie service from ...
转载
354阅读
0评论
0点赞
发布博客于 2 年前

Spring boot with Apache Hive

转自Maven&lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &a
转载
336阅读
0评论
0点赞
发布博客于 2 年前

Building an Ionic OCR App with Tesseract

转自If you need some sort of text recognition inside images for your app you’ll come across the two most popular libraries called Ocrad and Tesseract. Both of them work pretty good out of the box so wh...
转载
484阅读
1评论
0点赞
发布博客于 3 年前

基于现有 TensorFlow 模型构建 Android 应用

转自在之前写的一篇文章 TensorFlow,从一个 Android Demo 开始 中通过编译官方的 Demo 接触到了 TensorFlow 实际使用场景。这篇文章打算从一个Android 开发者的角度切入,看看构建一个基于 TensorFlow 的 Android 应用的完整流程。相关代码可查看:GitHub 项目地址通过 TensorFlow 用已有模型构建 Android 应用在...
转载
299阅读
0评论
0点赞
发布博客于 3 年前

Cordova 实现沉浸式(透明)状态栏效果

转自沉浸式状态栏(Immersive Mode)和透明状态栏(Translucent Bar)这两个概念很多地方的解释都不是很清晰,所以导致很多人都各有各的认识。所以这里我也有一个自己的认识,笔者认为沉浸式状态栏也可以说是全屏模式,即隐藏状态栏与导航栏。 而透明状态栏是不隐藏状态栏但是它所呈现的是透明的。因为默认情况下状态栏都是黑底白字。而我们现在要实现的就是透明状态栏下的全屏模式。话不多说,...
转载
625阅读
1评论
0点赞
发布博客于 3 年前

Tesseract-OCR的简单使用与训练

转自Tesseract,一款由HP实验室开发由Google维护的开源OCR(Optical Character Recognition , 光学字符识别)引擎,与Microsoft Office Document Imaging(MODI)相比,我们可以不断的训练的库,使图像转换文本的能力不断增强;如果团队深度需要,还可以以它为模板,开发出符合自身需求的OCR引擎。源码地址为:https://...
转载
434阅读
0评论
0点赞
发布博客于 3 年前

Setup Kubernetes on a Raspberry Pi Cluster easily the official way!

转自Kubernetes shares the pole position with Docker in the category “orchestration solutions for Raspberry Pi cluster”. However it’s setup process has been elaborate – until v1.4 with the kubeadm annou...
转载
303阅读
0评论
0点赞
发布博客于 3 年前

spring-data-cassandra的简单使用

点评:一篇很有实操意义的文档引自之前写了JAVA操作cassandra驱动包,现在来看看spring-data对cassandra的支持。这里是spring-data-cassandra的官方文档:http://docs.spring.io/spring-data/cassandra/docs/1.5.0.M1/reference/html/这个目录下还有api、版本日志等:http://d...
转载
2580阅读
1评论
0点赞
发布博客于 3 年前

spring-data-cassandra的简单使用

点评:一篇很有实操意义的文档引自之前写了JAVA操作cassandra驱动包,现在来看看spring-data对cassandra的支持。这里是spring-data-cassandra的官方文档:http://docs.spring.io/spring-data/cassandra/docs/1.5.0.M1/reference/html/这个目录下还有api、版本日志等:http://d...
转载
2580阅读
1评论
0点赞
发布博客于 3 年前

HA and Zone Affinity With Spring Cloud Netflix Eureka

This tutorial will guide you through the process to setup zone affinity in Spring Cloud Netflix Eureka.What You Will BuildYou will build three applications:API Gateway - Spring Cloud Netflix Zuul...
转载
116阅读
0评论
0点赞
发布博客于 3 年前

HTTP Cache 总结及Nginx Cache配置

转自简介先说一下我对缓存的理解:缓存可以让用户更加接近数据。HTTP缓存指我们用浏览器访问网站时,根据服务器返回的HTTP缓存响应头设置,缓存相应的数据,下次访问就可以直接使用,或者去服务器验证数据是否过期。这样可以大大减轻宽带压力,加快网页加载速度。相关头部当我们首次访问http://www.2cto.com/uploadfile/2016/1008/20161008090645827....
转载
3817阅读
0评论
0点赞
发布博客于 3 年前

GnuPG Java Wrapper API - Sample code

转自Following are code examples for the GnuPG Java Wrapper API class.Before you Begin: Create PGP Key PairBefore you can use the class, you will need to create a private/public key pair in GPG. If yo...
转载
442阅读
0评论
0点赞
发布博客于 3 年前

spring boot 2.0 使用Hikari连接池——号称java平台最快的,替换druid

摘自springboot 2.0 默认连接池就是Hikari了,所以引用parents后不用专门加依赖配置(时间单位都是毫秒)# jdbc_config datasourcespring.datasource.driver-class-name=com.mysql.jdbc.Driverspring.datasource.url=jdbc:mysql://127.0.0.1:33...
转载
1219阅读
0评论
0点赞
发布博客于 3 年前

JAVA8-用lamda表达式和增强版Comparator进行排序

转自以前的排序一般对象实现Comparable或者Comparator接口,经常是通过匿名类类实现。可以参见以前的博文 Java 中 Comparable 和 Comparator 比较现在看看使用lamda表达式和java8中增强的Comparator接口进行排序。先定义一个简单的实体类:class Human { private String name; privat...
转载
272阅读
0评论
0点赞
发布博客于 3 年前

Angular4中调用js代码

转自引言:Angular2开始采用TypeScript进行编码。本文讲述如何在Angular4项目中调用原生的 js 代码。本文代码代码使用环境:webstrom调用过程可以归纳为:引入 js 文件到项目中编写 TypeScript 声明文件在 .angular-cli.json 或 index.html 中配置 js 文件(可以没有)然后,就可以调用到原生的 js 代码了...
转载
3143阅读
0评论
0点赞
发布博客于 3 年前

关于企业到个人的转账

微信和支付宝都提供了转账功能。微信转账参考资料地址请求示例&amp;lt;xml&amp;gt; &amp;lt;mch_appid&amp;gt;wxe062425f740c30d8&amp;lt;/mch_appid&amp;gt; &amp;lt;mchid&amp;gt;10000098&amp;lt;/mchid&amp;gt; &amp;lt;nonce_str&amp;gt;3PG2
原创
730阅读
0评论
0点赞
发布博客于 3 年前

spring boot Websocket

转自在springboot项目中使用websocket做推送,虽然挺简单的,但初学也踩过几个坑,特此记录。使用websocket有两种方式:1是使用sockjs,2是使用h5的标准。使用Html5标准自然更方便简单,所以记录的是配合h5的使用方法。1、pom核心是@ServerEndpoint这个注解。这个注解是Javaee标准里的注解,tomcat7以上已经对其进行了实现,如果是用传统方...
转载
196阅读
0评论
0点赞
发布博客于 3 年前

关于大数据的两个大分支

Cloudera引自New Features in CDH 6.0.0See below for new features in CDH 6.0.0, grouped by component:Apache AccumuloApache AvroApache CrunchApache FlumeApache HadoopApache HBaseApache Hive / Hi...
原创
927阅读
0评论
0点赞
发布博客于 3 年前

spring boot etag header example

转自1. OverviewIn this article, we will learn spring boot etag header example, ETag header is used to reduce bandwidth and network overhead for same content which has been cached by the browser.Let t...
转载
702阅读
0评论
0点赞
发布博客于 3 年前

FileServlet supporting resume and caching and GZIP

引自IntroductionIn the almost 2 year old FileServlet and ImageServlet articles you can find basic examples of a download servlet and an image servlet. It does in fact nothing more than obtaining an In...
转载
110阅读
0评论
0点赞
发布博客于 3 年前

Markdown编辑器editor.md的使用

引自一、Markdown和editor.md简介:Markdown在技术圈里(估计更多是程序猿吧)越来越流行。简单的语法,统一的格式,使用过程中,手基本上不用从键盘上移到鼠标上去,超级方便。写好了一篇md文档(也就是含Markdown语法格式的普通TXT文件),可以随意放到别的支持Markdown格式的网站上发布。editor.md是国内开源的一款在线Markdown编辑器,单纯基于前端Ja...
转载
946阅读
0评论
0点赞
发布博客于 3 年前

用zxing生成条形码

ZXing还是十分强大的,给我们写代码省去了不少事情。先来看看他支持的编码: 1D product 1D industrial 2D UPC-A Code 39 QR Code UPC-E Code 93 Data Matrix EAN-8 Code 128 Aztec (beta) EAN-13 Codabar ...
原创
6806阅读
0评论
2点赞
发布博客于 3 年前

arduino连接热敏打印机的资料

朋友的项目里想要嵌入各热敏打印机,从网上搜集了不少资料,特作记录。1. 思路国外有个mprinter的众筹项目,居然筹集到了8万多美金,不过最后也是关门了,居然持续了3年哎。思路还是有的,人家支持wifi和USB。其实使用arduino+蓝牙+wifi+打印模块就OK了。2. 代码2.1 蓝牙通讯蓝牙通讯的代码参考代码一,参考代码二模块用的HC-06 这里有卖 ...
原创
2111阅读
0评论
0点赞
发布博客于 3 年前

Jackson 处理复杂类型(List,map)两种方法

转自知道Jackson可以做这个,只是不经常用到。用到了,查到了……方法一:String jsonString="[{'id':'1'},{'id':'2'}]";ObjectMapper mapper = new ObjectMapper();JavaType javaType = mapper.getTypeFactory().constructParametricType...
转载
484阅读
0评论
0点赞
发布博客于 3 年前

Programmatic PlyQL via HTTP, ODBC, and JDBC

转自 Some time ago at Imply, we launched PlyQL, a command line utility that provides an SQL-like interface to Druid via Plywood. We heard a lot of positive feedback as many people prefer to use SQL ove...
转载
179阅读
0评论
0点赞
发布博客于 3 年前

Real time analytics: Divolte + Kafka + Druid + Superset

转自这里写链接内容In today’s world you want to learn from your customers as fast as possible. This blog gives an introduction to setting up streaming analytics using open source technologies. We’ll use Divol...
转载
990阅读
0评论
0点赞
发布博客于 3 年前

Guice 快速入门

转自 Guice是谷歌推出的一个轻量级依赖注入框架,帮助我们解决Java项目中的依赖注入问题。如果使用过Spring的话,会了解到依赖注入是个非常方便的功能。不过假如只想在项目中使用依赖注入,那么引入Spring未免大材小用了。这时候我们可以考虑使用Guice。本文参考了Guice官方文档,详细信息可以直接查看Guice文档。基本使用引入依赖如果使用Maven的话,添加下面的...
转载
6042阅读
3评论
4点赞
发布博客于 3 年前

webp图片适配流量优化

转自这里写链接内容图片流量优化刷新一个页面消耗的流量除了脚本样式文件以外,大头其实在下载的图片。一张图片动辄几十kb,想尽办法优化样式、脚本文件所优化的图片流量其实还不如一张图片大。本文从两个角度介绍如何对图片流量进行优化。本文进行图片流量优化的前提都是对于移动端而言。webp首先从图片格式方面着手,webp(google官方网址)是谷歌推出的一种图片格式,优点在于同等...
转载
849阅读
0评论
0点赞
发布博客于 3 年前

Secure Your Mobile App with OIDC and Ionic for JHipster

We’ve been building a ton of new projects with Ionic and JHipster here at Okta, and today I’m excited to show you how to secure those projects with OIDC. Let’s start with some basics: Ionic is a frame...
转载
657阅读
0评论
0点赞
发布博客于 3 年前

springboot 使用校验框架validation校验

很多人在使用Spring的过程中不是太注重细节。此文章主要涉及validation在Spring Boot中的使用问题,对于初入spring boot的人还是值得参考的。 转自 B/S系统中对http请求数据的校验多数在客户端进行,这也是出于简单及用户体验性上考虑,但是在一些安全性要求高的系统中服务端校验是不可缺少的。 Spring3支持JSR-303验证框架,JSR-303 是Java ...
转载
3250阅读
0评论
0点赞
发布博客于 3 年前

superset + KYLIN + HIVE AND IMPALA

转自kylinSQLAlchemy URI - kylin://ADMIN:XXXXXXXXXX@qing-spark-srv4:7070/learn_kylin impalaSQLAlchemy URI - impala://qing-spark-srv4:21050/testExtra engine_params { "metadata_par...
转载
1245阅读
0评论
0点赞
发布博客于 3 年前

Mustache模板技术,一个比freemarker轻量级的模板引擎

初识Mustache同样也是看Dropwizard才知道这个东西的,以前一直是知道诸如freemarker这样的模板引擎,这个是头一次听说,但是听周围的朋友说最早这个东西是出自于JS的,Dropwizard推荐使用这个东西,而且到mustache官网看了一下,发现十几种语言已经支持这个模板引擎技术,火热程度甚至超过了freemarker,看来到了不得不学的地步了, 先来看看mustache是...
转载
17058阅读
0评论
5点赞
发布博客于 3 年前

LaTeX/Export To Other Formats

转自 Strictly speaking, LaTeX source can be used to directly generate two formats:DVI using latex, the first one to be supported;PDF using pdflatex, more recent.Using other software freely avai...
转载
244阅读
0评论
0点赞
发布博客于 3 年前

CacheConcurrencyStrategy的五种缓存方式的简单介绍

CacheConcurrencyStrategy有五种缓存方式:CacheConcurrencyStrategy.NONE 不适用,默认CacheConcurrencyStrategy.READ_ONLY 只读模式,在此模式下,如果对数据进行更新操作,会有异常;CacheConcurrencyStrategy.READ_WRITE 读写模式在更新缓存的时候会把缓存里面...
转载
967阅读
0评论
0点赞
发布博客于 3 年前

JHipster - 常用应用程序属性

JHipster生成一个Spring Boot应用程序,并且可以使用标准的Spring Boot属性机制进行配置。这些属性由JHipster在生成时配置,并且在开发和生产模式中通常具有不同的值:在我们的配置文件文档中了解更多信息。在JHipster应用程序中,有三种属性:Spring Boot标准应用程序属性JHipster应用程序属性应用程序特定的属性Spring B...
翻译
1210阅读
0评论
0点赞
发布博客于 3 年前

WinEdt如何使用中文

转自The easiest way is (for Simplified Chinese document only):% UTF-8 encoding% Compile with latex+dvipdfmx, pdflatex, xelatex or lualatex% XeLaTeX is recommanded\documentclass[UTF8]{ctexart}\be...
转载
15983阅读
4评论
9点赞
发布博客于 3 年前

CookieXSRFStrategy not working in AOT mode @angular

转自问题I am providing CookieXSRFStrategy for XSRFStrategy in app.module.tsproviders: [ { provide: APP_BASE_HREF, useValue: '/order/' }, { provide: XSRFStrategy, useValue: new CookieXSRF...
转载
212阅读
0评论
0点赞
发布博客于 3 年前

Superset搭建及其简单使用

转载
1200阅读
0评论
0点赞
发布博客于 3 年前

大数据:Hive - ORC 文件存储格式

转自ORC File文件结构  ORC的全称是(Optimized Row Columnar),ORC文件格式是一种Hadoop生态圈中的列式存储格式,它的产生早在2013年初,最初产生自Apache Hive,用于降低Hadoop数据存储空间和加速Hive查询速度。和Parquet类似,它并不是一个单纯的列式存储格式,仍然是首先根据行组分割整个表,在每一个行组内进行按列存储。ORC文件是...
转载
26291阅读
1评论
6点赞
发布博客于 3 年前

Streaming Tweets with NiFi, Kafka, Tranquility, Druid and Superset

转自 The concept of time is at the core of all Big Data processing technologies but is particularly important in the world of data stream processing. Indeed, it is reasonable to say that the way in whi...
转载
353阅读
0评论
0点赞
发布博客于 3 年前

给大数据分析师的一双大礼:Apache Kylin和Superset

转自分析师的挑战在大数据时代,使用传统数据处理方式已经无法满足企业大规模数据的增长,而人工智能和IoT时代的到来让处理超大规模数据,解读超大规模数据的需求更加迫在眉睫。分析和理解超大规模数据集就成为这些企业要解决的当务之急。一重礼: Apache Kylin 开源OLAP on Hadoop引擎现代企业使用联机分析处理 (OLAP) 技术来分析数据,生成报表,从而帮助业务人...
转载
1564阅读
0评论
1点赞
发布博客于 3 年前

巧用Superset大数据分析平台搞定各类图表

转自前言其实大数据图表展示的这类平台有很多,Superset是其中之一,最近有个需求对各类图表展示的开发较多,索性将工作量交给这个平台。介绍Superset的中文翻译是快船,而Superset其实是一个自助式数据分析工具,它的主要目标是简化我们的数据探索分析操作,它的强大之处在于整个过程一气呵成,几乎不用片刻的等待。 部署docker方式(推荐)do...
转载
4427阅读
0评论
0点赞
发布博客于 3 年前

Introduction to Spring Data Solr

转自1. OverviewIn this article, we’ll explore the basics of Spring Data Solr in a practical manner. Apache Solr is an open source ready to deploy enterprise full-text search engine. You can find mo...
转载
161阅读
0评论
0点赞
发布博客于 3 年前

How to install Hadoop distribution from Bigtop 1.2.0

转自EnvironmentCentOS 6 machines running on VM/Docker/Bare Metals, etc.If using docker, don’t run this on the docker host but on a CentOS 6 containerDeployCopy and paste the following text ...
转载
167阅读
0评论
0点赞
发布博客于 3 年前

Inheritance with Jackson

转自1. OverviewIn this article, we’ll have a look at working with class hierarchies in Jackson.Two typical use cases are the inclusion of subtype metadata and ignoring properties inherited from ...
转载
359阅读
0评论
0点赞
发布博客于 3 年前

An Intro to Spring Cloud Task

转自OverviewThe goal of Spring Cloud Task is to provide the functionality of creating short-lived microservices for Spring Boot application.In Spring Cloud Task, we’ve got the flexibility of run...
转载
410阅读
0评论
0点赞
发布博客于 3 年前

Introduction to Spring Cloud Stream

转自OverviewSpring Cloud Stream is a framework built on top of Spring Boot and Spring Integration that helps in creating event-driven or message-driven microservices.In this article, we’ll intro...
转载
309阅读
0评论
0点赞
发布博客于 3 年前

Batch Processing with Spring Cloud Data Flow

转自OverviewIn the first article of the series, we introduced Spring Cloud Data Flow‘s architectural component and how to use it to create a streaming data pipeline.As opposed to a stream pipeli...
转载
434阅读
0评论
0点赞
发布博客于 3 年前

Getting Started with Stream Processing with Spring Cloud Data Flow

转自IntroductionSpring Cloud Data Flow is a cloud-native programming and operating model for composable data microservices.With Spring Cloud Data Flow, developers can create and orchestrate data...
转载
256阅读
0评论
0点赞
发布博客于 3 年前

cordova 实现第三方登录及分享,qq,微信,微博

cordova 实现第三方登录及分享,qq,微信,微博 QQ、微信、微博,只针对移动应用或JS提供SDK,JS SDK表面上是最方便cordova项目实现的,但在授权是通过网页的,其session还需要在网页上输入用户名密码来建立,而android sdk和ios sdk的实现形式是调用本身已安装的第三方软件完成授权,显然后者才是我们想要的方式。插件推荐:(以下几个插件是我用到的,其他...
转载
3504阅读
6评论
0点赞
发布博客于 3 年前

ionic -- 使用cordova的插件实现分享到QQ、微博、微信

转自 我在现在的ionic项目中已经实现了微信和QQ分享,都是是有cordova的插件,我把这些插件的网址放到这里,如果插件解决不了大家的问题,可以给我留言,咱们共同讨论。分享到微信 https://github.com/xu-li/cordova-plugin-wechat(点击打开链接)分享到QQ https://github.com/iVanPan/Cordova_QQ(点击打...
转载
742阅读
0评论
0点赞
发布博客于 3 年前

STS中那些JPA的琐碎事

STS中那些JPA的琐碎事曾几何时,在STS中提供了一组JPA的工程项目。这大大提高了那些从数据库抽取JPA实体模型的速度。不需要编写代码,仅仅是点上几下。Everything is OK.当你打开新版本的STS(当前版本3.9.2)时,却发现这么好的工具不翼而飞。其实它并没有消失,而是不再作为默认配置提供了。接下来,我们来看一下如何寻回这位老朋友。 在”Install New Softwa...
原创
535阅读
0评论
0点赞
发布博客于 3 年前

spring配置websocket并实现群发/单独发送消息

转自这里写链接内容 spring框架中自带了websocket的jar包,利用它可以实现与H5中WebSocket的对接,甚至websocket还可以通过依赖注入与http请求一同工作,详细配置实现过程如下:文件目录结构如下,主要是controller和websocket文件夹 配置自动扫描加载: &lt;!--如果使用注解,那么只需要下面的配置--&gt;&lt;!--组件...
转载
327阅读
0评论
0点赞
发布博客于 3 年前

angular2websocket

Based on https://github.com/AngularClass/angular-websocket and migrated to Angular2Installationnpm install angular2-websocketUsage:import {$WebSocket} from 'angular2-websocket/angular2...
原创
1127阅读
0评论
0点赞
发布博客于 3 年前

Kubernetes deployment strategies

转自In Kubernetes there are a few different ways to release an application, it is necessary to choose the right strategy to make your infrastructure reliable during an application update.Choosing ...
转载
378阅读
0评论
0点赞
发布博客于 3 年前

SPRING BOOT: USING JODA TIME ON JPA ENTITY WITH HIBERNATE

源自 Joda Time is the standard de facto for managing dates in Java applications. Using it on Spring is straightforward, simply add the right dependency to your project and you can use it. But some atte...
转载
284阅读
0评论
0点赞
发布博客于 3 年前

Configuring Email with - Gmail and more…

转自这里Goal: By the using below mail settings you will have the default JHipster application configured to send emails from Gmail, Outlook or Yahoo.Start by running JHipster with jhipster to create a...
转载
1011阅读
0评论
0点赞
发布博客于 3 年前

How to disable new user email activation in JHipster

转自这里 Edit UserService.createUser() and change these lines: // new user is not active newUser.setActivated(false); // new user gets registration key newUser.setActivationKey(RandomUti...
转载
173阅读
0评论
0点赞
发布博客于 3 年前

Registering a user with additional information

转自这里 If we need to store more information concerning a user than what JHipster provides by default, a few tweaks are needed.To illustrate this, let’s assume we want to store the user’s phone number...
转载
164阅读
0评论
0点赞
发布博客于 3 年前

java验证苹果支付收据

这是一篇文摘性文章。验证苹果支付的代码源自方法一:使用HttpsURLConnection响应速度比方法二快。public static JSONObject verifyReceipt1(String recepit) { return verifyReceipt1("https://buy.itunes.apple.com/verifyReceipt...
原创
3364阅读
0评论
1点赞
发布博客于 3 年前

以太坊的Java客户端使用

转自准备工作已经安装好以太坊客户端或是以太坊集群安装jdk8开发环境,web3j需要在java 8的环境才能运行引入jar包&lt;dependency&gt; &lt;groupId&gt;org.web3j&lt;/groupId&gt; &lt;artifactId&gt;core&lt;/artifactId&gt; &lt;version&g...
转载
1731阅读
0评论
0点赞
发布博客于 3 年前

MAC通过SSH使用PEM文件登录

转自命令如下ssh -i key.pem ssh -i key.pem root@IP如果出现报错说明这个问题是文件的权限太大了,需要给小点 sudo chmod 600 key.pem 然后再执行ssh -i key.pem root@IP可以使用ssh-add 添加key文件ssh-add -k key.pem 正常登录堡垒机ssh ...
转载
317阅读
0评论
0点赞
发布博客于 3 年前

Spring4集成Swagger:真的只需要四步,五分钟速成

转自如果你所在的公司的还没有使用swagger甚至没有听说过swagger,赶快学习一下我的这篇博客吧,五分钟速成,傻瓜式的集成,但就是这么简单的应用一定会让他们震惊到的。 首先对swagger做一个简介吧:swagger是后台开发的神器,也是前后端交流的渠道。你可以用swagger做什么?首先,你以后基本可以告别单元测试了;其次,你不用再写接口文档了,也不需要写完之后再去对文档进行维护了。...
转载
2843阅读
0评论
0点赞
发布博客于 3 年前

ionic super bar

原文这里写链接内容Get startedClone this repository: git@github.com:jeneser/ionic-super-bar.gitRun npm install from the project root.Run ionic serve in a terminal from the project root.Transparent...
转载
154阅读
0评论
0点赞
发布博客于 3 年前

Cross datastore persistence using Kundera

Kundera is a powerful JPA based object-datastore mapping library (ORM equivalent) for NoSQL databases. It significantly reduced programming effort required for performing CRUD operations in NoSQL data...
转载
158阅读
0评论
0点赞
发布博客于 3 年前

使用 Kundera 实现在 MongoDB 中存储大文件

转自Kundera 是一个兼容JPA接口的对象映射器。 当前Kundera 支持的数据库有:Cassandra, MongoDB, HBase, Redis, OracleNoSQL, Neo4j, CouchDB, Kudu, Relational databases, Apache Spark.新手请阅读Getting Started in 5 minutes 和Working wit...
转载
384阅读
0评论
0点赞
发布博客于 3 年前

Springboot with Impala and Kudu

转自How to run this appPlease follow the instructions below to get kudu running locally with java and impala driver.Download the kudu quickstart VMKudu Quick Start VMCreate the departmen...
转载
4387阅读
1评论
0点赞
发布博客于 3 年前

WRITING A SIMPLE KUDU JAVA API PROGRAM

转自This post is about using Cloudera’s new Kudu service, via its Java API interface, in a Maven-based Java program.Kudu ships with a Java client library that is ready to use, and also publishes the...
转载
175阅读
0评论
0点赞
发布博客于 3 年前

Configuring Cassandra with Spring Boot using Kundera

转自The Apache Cassandra database is the great choice when you need scalability and high adaptability without affecting performance.As Cassandra is very scalable databse while working with springboo...
转载
416阅读
0评论
0点赞
发布博客于 3 年前

重温prolog推理性语言

一段prolog代码 interface包含了谓词,class定义了construct,implemnt定义了事实,还有一个goal.interface aa predicates setClassFact : (integer Value). getClassFact : () -&gt; integer. setObjectFact ...
原创
464阅读
0评论
0点赞
发布博客于 3 年前