full_name
stringlengths
7
104
description
stringlengths
4
725
topics
stringlengths
3
468
readme
stringlengths
13
565k
label
int64
0
1
triplea-game/triplea
TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
free game good-first-issue opensource strategy strategy-game turn-based-strategy world-war-2
## [Download TripleA](http://triplea-game.org/download/) TripleA is a free to play, volunteer run, 100% open source gaming community. - ***[Forums: Discussion, Questions & Help](https://forums.triplea-game.org/category/10/help-questions)*** - ***[How to Contribute](/docs/contribute.md)*** - ***[Bug Tracker](https://github.com/triplea-game/triplea/issues/new)*** - ***[Developer Setup Guide](/docs/development/README.md)*** ![Game Board Screenshot](https://user-images.githubusercontent.com/12397753/36015523-a4e28a24-0d23-11e8-84c0-c4bd0ee19ce0.png) ## About TripleA TripleA is a fan created (2002), open source strategy and board game engine where you can play Axis and Allies style rules on community created maps. TripleA has a well-developed AI and an active lobby for live multiplayer games. Over 100 user-created maps are available via in-game download. In TripleA you can recreate World War 2 with the Axis pushing through to Moscow and the Allies desperately fighting back. Or recreate Napoleon's march across Europe, or Rome defeating the Carthaginian Empire, or Sauron conquering Middle Earth! If you have ever played a game where you push little plastic pieces around, roll dice and conquer the lands of your enemy, you will be able to jump right into TripleA! ![europe](https://user-images.githubusercontent.com/12397753/132109225-71e6c02d-425e-4b8d-9537-7ac66baebbfd.jpeg) ![middle-earth](https://user-images.githubusercontent.com/12397753/132109223-14a0aa2e-a950-4a5e-9937-3c4b52211cd9.jpeg) ## License<span>&nbsp;</span>[![TripleA license](https://img.shields.io/github/license/triplea-game/triplea.svg?style=flat-square)](https://github.com/triplea-game/triplea/blob/master/LICENSE) This project is licensed under the terms of the [GNU General Public License v3.0 with additional permissions](/LICENSE). Copyright (C) 2001-2021 TripleA contributors. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License below for more details. #### Additional permission under GNU GPL version 3 section 7 If you modify this Program, or any covered work, by linking or combining it with any of the following libraries (or a modified version of those libraries), containing parts covered by the terms of the library's associated license, the licensors of this Program grant you additional permission to convey the resulting work. Library | Group ID | Artifact ID | SPDX License ID :-- | :-- | :-- | :-- Jakarta Mail | com.sun.mail | jakarta.mail | GPL-2.0-only ## Open Source Delevoper License for YourKit Profiler [![YourKit logo](https://www.yourkit.com/images/yklogo.png)] YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of <a href="https://www.yourkit.com/java/profiler/">YourKit Java Profiler</a>, <a href="https://www.yourkit.com/.net/profiler/">YourKit .NET Profiler</a>, and <a href="https://www.yourkit.com/youmonitor/">YourKit YouMonitor</a>. YourKit grants the TripleA development project an open source license for YourKit Java Profiler. ## Contributors <a href="https://github.com/triplea-game/triplea/graphs/contributors"> <img src="https://contrib.rocks/image?repo=triplea-game/triplea" /> </a>
0
JCTools/JCTools
null
awesome benchmarks concurrency data-structures java lock-free queues wait-free
[![Total alerts](https://img.shields.io/lgtm/alerts/g/JCTools/JCTools.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/JCTools/JCTools/alerts/) [![Coverage Status](https://coveralls.io/repos/github/JCTools/JCTools/badge.svg?branch=master)](https://coveralls.io/github/JCTools/JCTools?branch=master) [![Build Status](https://app.travis-ci.com/JCTools/JCTools.svg?branch=master)](https://app.travis-ci.com/JCTools/JCTools) JCTools ========== Java Concurrency Tools for the JVM. This project aims to offer some concurrent data structures currently missing from the JDK: - SPSC/MPSC/SPMC/MPMC variations for concurrent queues: * SPSC - Single Producer Single Consumer (Wait Free, bounded and unbounded) * MPSC - Multi Producer Single Consumer (Lock less, bounded and unbounded) * SPMC - Single Producer Multi Consumer (Lock less, bounded) * MPMC - Multi Producer Multi Consumer (Lock less, bounded) - SPSC/MPSC linked array queues (bounded and unbounded) offer a balance between performance, allocation and footprint - MPSC/MPMC XAdd based, unbounded linked array queues offer reduced contention costs for producers (using XADD instead of a CAS loop), and pooled queue chunks for reduced allocation. - An expanded queue interface (MessagePassingQueue): * relaxedOffer/Peek/Poll: trade off conflated guarantee on full/empty queue state with improved performance. * drain/fill: batch read and write methods for increased throughput and reduced contention Many queues are available in both `Unsafe` (default, uses `sun.mic.Unsafe`) and `Atomic` (relying on `AtomicFieldUpdater`) variations, as well as `Unpadded` (lower footprint by removing false sharing avoiding field padding). There's more to come and contributions/suggestions are most welcome. JCTools has enjoyed support from the community and contributions in the form of issues/tests/documentation/code have helped it grow. JCTools offers excellent performance at a reasonable price (FREE! under the Apache 2.0 License). It's stable and in use by such distinguished frameworks as Netty, RxJava and others. JCTools is also used by commercial products to great result. Get it NOW! ========== Add the latest version as a dependency using Maven: ```xml <dependency> <groupId>org.jctools</groupId> <artifactId>jctools-core</artifactId> <version>4.0.3</version> </dependency> ``` Or use the awesome, built from source, <https://jitpack.io/> version, you'll need to add the Jitpack repository: ```xml <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> ``` And setup the following dependency: ```xml <dependency> <groupId>com.github.JCTools.JCTools</groupId> <artifactId>jctools-core</artifactId> <version>v4.0.3</version> </dependency> ``` You can also depend on latest snapshot from this repository (live on the edge) by setting the version to '4.0.4-SNAPSHOT'. Build it from source ========== JCTools is maven built and requires an existing Maven installation and JDK8 (only for building, runtime is 1.6 compliant). With 'MAVEN_HOME/bin' on the path and JDK8 set to your 'JAVA_HOME' you should be able to run "mvn install" from this directory. But I have a zero-dependency/single-jar project ========== While you are free to copy & extend JCTools, we would much prefer it if you have a versioned dependency on JCTools to enable better support, upgrade paths and discussion. The shade plugin for Maven/Gradle is the preferred way to get JCTools fused with your library. Examples are available in the [ShadeJCToolsSamples](https://github.com/JCTools/ShadeJCToolsSamples) project. Benchmarks ========== JCTools is benchmarked using both JMH benchmarks and handrolled harnesses. The benchmarks and related instructions can be found in the jctools-benchmarks module [README](jctools-benchmarks/README.md). Go wild and please let us know how it did on your hardware. Concurrency Testing =========== ``` mvn package cd jctools-concurrency-test java -jar target/concurrency-test.jar -v ``` Come up to the lab... ========== Experimental work is available under the jctools-experimental module. Most of the stuff is developed with an eye to eventually porting it to the core where it will be stabilized and released, but some implementations are kept purely for reference and some may never graduate. Beware the Jabberwock my child. Have Questions? Suggestions? ========== The best way to discuss JCTools is on the GitHub issues system. Any question is good, and GitHub provides a better platform for knowledge sharing than twitter/mailing-list/gitter (or at least that's what we think). Thanks!!! ===== We have kindly been awarded [IntelliJ IDEA](https://www.jetbrains.com/idea/) licences by [JetBrains](https://www.jetbrains.com/) to aid in the development of JCTools. It's a great suite of tools which has benefited the developers and ultimately the community. It's an awesome and inspiring company, [**BUY THEIR PRODUCTS NOW!!!**](https://www.jetbrains.com/store/#edition=commercial) JCTools has enjoyed a steady stream of PRs, suggestions and user feedback. It's a community! Thank you all for getting involved!
0
testng-team/testng
TestNG testing framework
java jvm testing testng
[![Maven Central](https://img.shields.io/maven-central/v/org.testng/testng.svg)](https://maven-badges.herokuapp.com/maven-central/org.testng/testng) [![License](https://img.shields.io/github/license/cbeust/testng.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Sonarqube tech debt](https://img.shields.io/sonar/https/sonarqube.com/org.testng:testng/tech_debt.svg?label=Sonarqube%20tech%20debt)](https://sonarqube.com/dashboard/index?id=org.testng:testng) [![Sonarqube Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=org.testng%3Atestng&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.testng%3Atestng) Documentation available at [TestNG's main web site](https://testng.org). Visit [TestNG Documentation's GitHub Repo](https://github.com/testng-team/testng-team.github.io) to contribute to it. ### Release Notes * [7.10.0](https://groups.google.com/g/testng-users/c/6DmFaKUjIxY) * [7.9.0](https://groups.google.com/g/testng-users/c/nN7LkuZWO48) * [7.8.0](https://groups.google.com/g/testng-users/c/xdldK3VyU_s) * [7.7.0](https://groups.google.com/g/testng-users/c/V6jie-9uUIA) * [7.6.0](https://groups.google.com/g/testng-users/c/BAFB1vk-kok) * [7.5](https://groups.google.com/g/testng-users/c/ESLiK8xSomc) * [7.4.0](https://groups.google.com/g/testng-users/c/dwSJ04qeu8k) * [7.3.0](https://groups.google.com/forum/#!topic/testng-users/a81uaZvtEZI) * [7.1.0](https://groups.google.com/forum/#!topic/testng-users/84bYPJ1rjno) * [7.0.0](https://groups.google.com/forum/#!topic/testng-users/HKujuefBhXA) ### Need help? Before opening a new issue, did you ask your question on * [Google group](https://groups.google.com/group/testng-users) * [StackOverflow](https://stackoverflow.com/questions/tagged/testng) If you posted on both sites, please provide the link to the other question to avoid duplicating the answer. ### Are you sure it is a TestNG bug? Before posting the issue, try to reproduce the issue in [a shell window](https://testng.org/doc/documentation-main.html#running-testng). If the problem does not exist with the shell, first check if the issue exists on the bugtracker of the runner, and open an issue there first: * Eclipse :[Issues Page](https://github.com/cbeust/testng-eclipse/issues) * IntelliJ:[Issues Page](https://youtrack.jetbrains.com/issues?q=Subsystem:%20%7BJava.%20Tests.%20TestNG%7D) * Maven :[Issues Page](https://issues.apache.org/jira/browse/SUREFIRE) * Gradle :[Issues Page](https://issues.gradle.org/projects/GRADLE) ### Which version are you using? Always make sure your issue is happening on the latest TestNG version. Bug reports occurring on older versions will not be looked at quickly. ### Have you considered sending a pull request instead of filing an issue? The best way to report a bug is to provide the TestNG team with a full test case reproducing the issue. Maybe you can write a runnable test case (check the `src/test/` folder for examples) and propose it in a pull request Don't worry if the CI fails because it is the expected behavior. This pull request will be a perfect start to find the fix :) ### How to create a pull request? Refer our [Contributing](.github/CONTRIBUTING.md) section for detailed set of steps. ### We encourage pull requests that: * Add new features to TestNG (or) * Fix bugs in TestNG If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the [TestNG-dev](https://groups.google.com/forum/#!forum/testng-dev) before you spend time working on it. ### GPG Keys #### Getting the keys Download the keys as shown below: ```bash gpg --keyserver keyserver.ubuntu.com --recv-keys 0F13D5631D6AF36D gpg: key 0F13D5631D6AF36D: "Krishnan Mahadevan (krmahadevan-key) <krishnan.mahadevan1978@gmail.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 ``` #### Trusting the keys Trust the keys as shown below: ```bash gpg --edit-key 0F13D5631D6AF36D gpg (GnuPG) 2.4.4; Copyright (C) 2024 g10 Code GmbH This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Secret key is available. sec rsa2048/0F13D5631D6AF36D created: 2016-12-01 expires: never usage: SC trust: full validity: unknown ssb rsa2048/7295B61CC8DD9AE8 created: 2016-12-01 expires: never usage: E [ unknown] (1). Krishnan Mahadevan (krmahadevan-key) <krishnan.mahadevan1978@gmail.com> gpg> trust sec rsa2048/0F13D5631D6AF36D created: 2016-12-01 expires: never usage: SC trust: full validity: unknown ssb rsa2048/7295B61CC8DD9AE8 created: 2016-12-01 expires: never usage: E [ unknown] (1). Krishnan Mahadevan (krmahadevan-key) <krishnan.mahadevan1978@gmail.com> Please decide how far you trust this user to correctly verify other users' keys (by looking at passports, checking fingerprints from different sources, etc.) 1 = I don't know or won't say 2 = I do NOT trust 3 = I trust marginally 4 = I trust fully 5 = I trust ultimately m = back to the main menu Your decision? 5 Do you really want to set this key to ultimate trust? (y/N) y sec rsa2048/0F13D5631D6AF36D created: 2016-12-01 expires: never usage: SC trust: ultimate validity: unknown ssb rsa2048/7295B61CC8DD9AE8 created: 2016-12-01 expires: never usage: E [ unknown] (1). Krishnan Mahadevan (krmahadevan-key) <krishnan.mahadevan1978@gmail.com> Please note that the shown key validity is not necessarily correct unless you restart the program. gpg> exit Invalid command (try "help") gpg> quit ``` #### Verifying the signature 1. Download the `.asc` file from `https://repo1.maven.org/maven2/org/testng/testng/<versionGoesHere>` 2. Run the command `gpg --verify testng-<versionGoesHere>.jar.asc testng-<versionGoesHere>.jar` 3. You should see an output as below: ```bash gpg: Signature made Tue Dec 26 15:06:16 2023 IST gpg: using RSA key 0F13D5631D6AF36D gpg: checking the trustdb gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: Good signature from "Krishnan Mahadevan (krmahadevan-key) <krishnan.mahadevan1978@gmail.com>" [ultimate] ``` For more details regarding keys please refer: * [Verifying Signature](https://infra.apache.org/release-signing.html#verifying-signature) * [How to Trust Imported GPG Keys](https://classroom.anir0y.in/post/blog-how-to-trust-imported-gpg-keys/)
0
alibaba/otter
阿里巴巴分布式数据库同步系统(解决中美异地机房)
null
<h1>环境搭建 & 打包</h1> <strong>环境搭建:</strong> <ol> <li>进入 $otter_home/lib 目录</li> <li>执行:bash install.sh</li> </ol> <strong>打包:</strong> <ol> <li>进入$otter_home目录</li> <li>执行:mvn clean install -Dmaven.test.skip -Denv=release</li> <li>发布包位置:$otter_home/target</li> </ol> <h1> <a name="%E9%A1%B9%E7%9B%AE%E8%83%8C%E6%99%AF" class="anchor" href="#%E9%A1%B9%E7%9B%AE%E8%83%8C%E6%99%AF"><span class="octicon octicon-link"></span></a>项目背景</h1> <p> &nbsp;&nbsp;&nbsp;阿里巴巴B2B公司,因为业务的特性,卖家主要集中在国内,买家主要集中在国外,所以衍生出了杭州和美国异地机房的需求,同时为了提升用户体验,整个机房的架构为双A,两边均可写,由此诞生了otter这样一个产品。 </p> <p> &nbsp;&nbsp;&nbsp;otter第一版本可追溯到04~05年,此次外部开源的版本为第4版,开发时间从2011年7月份一直持续到现在,目前阿里巴巴B2B内部的本地/异地机房的同步需求基本全上了otter4。 </p> <strong>目前同步规模:</strong> <ol> <li>同步数据量6亿</li> <li>文件同步1.5TB(2000w张图片)</li> <li>涉及200+个数据库实例之间的同步</li> <li>80+台机器的集群规模</li> </ol> <h1> <a name="%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D" class="anchor" href="#%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D"><span class="octicon octicon-link"></span></a>项目介绍</h1> <p>名称:otter ['ɒtə(r)]</p> <p>译意: 水獭,数据搬运工</p> <p>语言: 纯java开发</p> <p>定位: 基于数据库增量日志解析,准实时同步到本机房或异地机房的mysql/oracle数据库. 一个分布式数据库同步系统</p> <p> </p> <h1> <a name="%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86" class="anchor" href="#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86"><span class="octicon octicon-link"></span></a>工作原理</h1> <p><img width="848" src="https://camo.githubusercontent.com/2988fbbc7ddfe94ed027cd71720b1ffa5912a635/687474703a2f2f646c322e69746579652e636f6d2f75706c6f61642f6174746163686d656e742f303038382f313138392f64343230636131342d326438302d336435352d383038312d6239303833363036613830312e6a7067" height="303" alt=""></p> <p>原理描述:</p> <p>1. 基于Canal开源产品,获取数据库增量日志数据。 什么是Canal, 请<a href="https://github.com/alibaba/canal">点击</a></p> <p>2. 典型管理系统架构,manager(web管理)+node(工作节点)</p> <p> &nbsp;&nbsp;&nbsp; a. manager运行时推送同步配置到node节点</p> <p> &nbsp;&nbsp;&nbsp; b. node节点将同步状态反馈到manager上</p> <p>3. 基于zookeeper,解决分布式状态调度的,允许多node节点之间协同工作. </p> <h3> <a name="%E4%BB%80%E4%B9%88%E6%98%AFcanal-" class="anchor" href="#%E4%BB%80%E4%B9%88%E6%98%AFcanal-"><span class="octicon octicon-link"></span></a>什么是canal? </h3> otter之前开源的一个子项目,开源链接地址:<a href="http://github.com/alibaba/canal">http://github.com/alibaba/canal</a> <p> </p> <h1> <a name="introduction" class="anchor" href="#introduction"><span class="octicon octicon-link"></span></a>Introduction</h1> <p>See the page for introduction: <a class="internal present" href="https://github.com/alibaba/otter/wiki/Introduction">Introduction</a>.</p> <h1> <a name="quickstart" class="anchor" href="#quickstart"><span class="octicon octicon-link"></span></a>QuickStart</h1> <p>See the page for quick start: <a class="internal present" href="https://github.com/alibaba/otter/wiki/QuickStart">QuickStart</a>.</p> <p> </p> <h1> <a name="adminguide" class="anchor" href="#adminguide"><span class="octicon octicon-link"></span></a>AdminGuide</h1> <p>See the page for admin deploy guide : <a class="internal present" href="https://github.com/alibaba/otter/wiki/Adminguide">AdminGuide</a></p> <p> </p> <h1> <a name="%E7%9B%B8%E5%85%B3%E6%96%87%E6%A1%A3" class="anchor" href="#%E7%9B%B8%E5%85%B3%E6%96%87%E6%A1%A3"><span class="octicon octicon-link"></span></a>相关文档</h1> <p>See the page for 文档: <a class="internal present" href="https://github.com/alibaba/otter/wiki/%E7%9B%B8%E5%85%B3ppt%26pdf">相关PPT&amp;PDF</a></p> <p> </p> <h1> <a name="%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98" class="anchor" href="#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98"><span class="octicon octicon-link"></span></a>常见问题</h1> <p>See the page for FAQ: <a class="internal present" href="https://github.com/alibaba/otter/wiki/Faq">FAQ</a></p> <p> </p> <h1> <a name="%E7%89%88%E6%9C%AC%E7%9B%B8%E5%85%B3-" class="anchor" href="#%E7%89%88%E6%9C%AC%E7%9B%B8%E5%85%B3-"><span class="octicon octicon-link"></span></a>版本相关: </h1> <p>1. 建议版本:4.2.15 (otter开源版本从内部演变而来,所以初始版本直接从4.x开始) </p> <p>2. 下载发布包:<a href="https://github.com/alibaba/otter/releases">download </a></p> <p>3. maven依赖 : 暂无 </p> <h1>相关开源</h1> <ol> <li>阿里巴巴mysql数据库binlog的增量订阅&消费组件:<a href="http://github.com/alibaba/canal">http://github.com/alibaba/canal</a></li> <li>阿里巴巴去Oracle数据迁移同步工具(目标支持MySQL/DRDS):<a href="http://github.com/alibaba/yugong">http://github.com/alibaba/yugong</a></li> </ol> <p> </p> <h1> <a name="%E9%97%AE%E9%A2%98%E5%8F%8D%E9%A6%88" class="anchor" href="#%E9%97%AE%E9%A2%98%E5%8F%8D%E9%A6%88"><span class="octicon octicon-link"></span></a>问题反馈</h1> <h3> <a name="%E6%B3%A8%E6%84%8Fcanalotter-qq%E8%AE%A8%E8%AE%BA%E7%BE%A4%E5%B7%B2%E7%BB%8F%E5%BB%BA%E7%AB%8B%E7%BE%A4%E5%8F%B7161559791-%E6%AC%A2%E8%BF%8E%E5%8A%A0%E5%85%A5%E8%BF%9B%E8%A1%8C%E6%8A%80%E6%9C%AF%E8%AE%A8%E8%AE%BA" class="anchor" href="#%E6%B3%A8%E6%84%8Fcanalotter-qq%E8%AE%A8%E8%AE%BA%E7%BE%A4%E5%B7%B2%E7%BB%8F%E5%BB%BA%E7%AB%8B%E7%BE%A4%E5%8F%B7161559791-%E6%AC%A2%E8%BF%8E%E5%8A%A0%E5%85%A5%E8%BF%9B%E8%A1%8C%E6%8A%80%E6%9C%AF%E8%AE%A8%E8%AE%BA"><span class="octicon octicon-link"></span></a>注意:canal&amp;otter QQ讨论群已经建立,群号:161559791 ,欢迎加入进行技术讨论。</h3> <p>1. <span>qq交流群: 161559791</span></p> <p><span>2. </span><span>邮件交流: jianghang115@gmail.com</span></p> <p><span>3. </span><span>新浪微博: agapple0002</span></p> <p><span>4. </span><span>报告issue:</span><a href="https://github.com/alibaba/otter/issues">issues</a></p> <p> </p>
0
linyimin0812/spring-startup-analyzer
spring-startup-analyzer generates an interactive spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it.🚀
async-spring-bean spring spring-boot spring-boot-startup spring-boot-startup-optimization spring-startup-monitor spring-startup-optimization startup-time-optimization
[![license](https://img.shields.io/github/license/linyimin0812/spring-startup-analyzer)](https://github.com/linyimin0812/spring-startup-analyzer) [![maven](https://img.shields.io/maven-central/v/io.github.linyimin0812/spring-profiler-starter.svg)](https://search.maven.org/search?q=g:io.github.linyimin0812) [![](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=alert_status)](https://sonarcloud.io/project/overview?id=linyimin0812_spring-startup-analyzer) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=bugs)](https://sonarcloud.io/summary/new_code?id=linyimin0812_spring-startup-analyzer) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=linyimin0812_spring-startup-analyzer) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=linyimin0812_spring-startup-analyzer) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=coverage)](https://sonarcloud.io/summary/new_code?id=linyimin0812_spring-startup-analyzer) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=linyimin0812_spring-startup-analyzer&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=linyimin0812_spring-startup-analyzer) [![GitHub all releases download](https://img.shields.io/github/downloads/linyimin0812/spring-startup-analyzer/total?logo=github)](https://github.com/linyimin0812/spring-startup-analyzer/releases) [ENGLISH](README.md) | [中文](README_ZH.md) - [🤩Highlight](#highlight) - [📈Spring Startup Analysis Report](#spring-startup-analysis-report) - [🚀Optimization of Spring Startup](#optimization-of-spring-startup) - [🧭How to Use](#how-to-use) - [📈Spring Startup Data Collection](#spring-startup-data-collection) - [Installation](#installation) - [Configuration](#configuration) - [Application Startup](#application-startup) - [Custom extension](#custom-extension) - [🚀Optimization of Spring Startup](#optimization-of-spring-startup-1) - [Optimization of Prod Env Startup Time](#optimization-of-prod-env-startup-time) - [Types of Bean for Async](#types-of-bean-for-async) - [Usage](#usage) - [Optimization of Daily and Pre Env Startup Time](#optimization-of-daily-and-pre-env-startup-time) - [🔗Reference](#Reference) # Spring Startup Ananlyzer **Spring Startup Analyzer** generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. UI referenced [spring-boot-startup-report](https://github.com/maciejwalkowiak/spring-boot-startup-report). [analyzer report demo](https://linyimin-blog.oss-cn-beijing.aliyuncs.com/spring-satrtup-analyzer/hokage-20230618000928-192.168.0.101-analyzer.html) # 🤩Highlight ## 📈Spring Startup Analysis Report **Spring Bean Initialization Details** support for initialization time/beanName search, **Spring Bean Initialization Timeline**, **Method Invocation Count and Time Statistics**(support for custom methods), **Unused Jars**(to help optimize fat jars), and **Application Startup Thread Wall Clock Profile**, helping developers quickly analyze and locate application startup bottlenecks. Support for linux/mac/windows. - **Spring Bean Initialization Details** ![Spring Bean Initialization](./docs/spring-bean-initialization.png) - **Spring Bean Initialization Timeline** ![Spring Bean Timeline](./docs/spring-bean-timeline.png) - **Method Invocation Count and Time Statistics** ![Details of Method Invoke](./docs/details-of-method-invoke.png) - **Unused Jars** ![Unused Jars](./docs/unused-jars.png) - **Application Startup Thread Wall Clock Profile** ![Flame Gragh](./docs/full-flame-graph.png) ## 🚀Optimization of Spring Startup Provide a Spring Bean asynchronous initialization jar package, which asynchronously executes the `init` and `@PostConstruct` methods for beans with longer initialization time to improve application startup speed. # 🧭How to Use ## 📈Spring Startup Data Collection ### Installation Provides two installation methods: **manual installation** and **one-click script installation**. **1. Manual Installation** 1. Click [realease](https://github.com/linyimin0812/spring-startup-analyzer/releases/download/v3.0.0/spring-startup-analyzer.tar.gz) to download the latest version tar.gz package 2. Create a new folder and extract the files For **Linux/Mac** systems, you may consider utilizing the following commands: ```shell mkdir -p ${HOME}/spring-startup-analyzer cd download_path tar -zxvf spring-startup-analyzer.tar.gz -C your_install_path/spring-startup-analyzer ``` **2. Shell script installation(Only for Linux/Mac)** ```shell curl -sS https://raw.githubusercontent.com/linyimin0812/spring-startup-analyzer/main/bin/install.sh | sh ``` Default install directory: `$HOME/spring-startup-analyzer` ### Configuration This project provides several configuration options, which are not mandatory and can be used with default settings. Two ways to configure: 1. Directly configure in the configuration file: `your_install_path/spring-startup-analyzer/config/spring-startup-analyzer.properties` 2. Configure through startup parameters, for example, set the application startup health check timeout to 30 minutes: `-Dspring-startup-analyzer.app.health.check.timeout=30` The criteria for determining a successful application startup are as follows: 1. Bytecode enhancement on the `SpringApplication.run` method, considering the application startup complete upon method exit (only applicable to Spring Boot applications). 2. Polling the URL for health check requests, considering the startup complete upon receiving a 200 response (applicable to all Spring applications). 3. If neither of the above two methods succeeds, considering the application startup complete after exceeding the **application startup health check timeout**. For non-Spring Boot applications, it is necessary to configure the health check URL using `spring-startup-analyzer.app.health.check.endpoints`. | configuration option | description | default value | | ---- | ----------- |---------------------------------------| | spring-startup-analyzer.app.health.check.timeout | application startup check timeout time in minutes | 20 | | **spring-startup-analyzer.app.health.check.endpoints** | application startup success check URL(s), multiple URLs can be configured, separated by commas | http://127.0.0.1:7002/actuator/health | | spring-startup-analyzer.admin.http.server.port | management port | 8065 | | spring-startup-analyzer.async.profiler.sample.thread.names | thread names collected by Async Profiler, supports multiple configurations separated by commas | main | | **spring-startup-analyzer.async.profiler.interval.millis** | async profiler sample interval (ms) | 5 | | spring-startup-analyzer.linux.and.mac.profiler | specify linux/mac flame graph profiler:async_profiler/jvm_profiler | jvm_profiler | ### Application Startup This project is started as an agent, so you can add the parameter `-javaagent:your_install_path/spring-startup-analyzer/lib/spring-profiler-agent.jar` to the startup command. - To start the application using the Java command line, you would add parameters in the command line, for example: ```shell java -javaagent:/Users/runner/spring-startup-analyzer/lib/spring-profiler-agent.jar \ -Dproject.name=mac-demo \ -Dspring-startup-analyzer.admin.http.server.port=8066 \ -jar /Users/runner/spring-startup-analyzer/spring-boot-demo.jar ``` - If you want to launch in IDEA, you need to add the following in the VM options: ![](./docs/startup-using-idea.png) Path of logs:`$HOME/spring-startup-analyzer/logs` - startup.log: log of startup - transform.log: log of re-transform class After the application has finished starting, the message `======= spring-startup-analyzer finished, click http://localhost:xxxx to visit details. ======` will be printed in the console and startup.log file. You can use this output to determine if the profiling has completed successfully ### Custom extension Translation: If you want to customize the profiling capabilities, you need to include the `spring-profiler-starter` pom as the parent pom for your extension project. Then, you can use the interfaces exposed by the project for extension purposes. For more details, you can refer to the implementation of[spring-profiler-extension](https://github.com/linyimin-bupt/spring-startup-analyzer/tree/main/spring-profiler-extension) ```xml <parent> <groupId>io.github.linyimin0812</groupId> <artifactId>spring-profiler-starter</artifactId> <version>latest_version</version> </parent> ``` #### Extension Interfaces <details> <summary style='cursor: pointer'>io.github.linyimin0812.profiler.api.EventListener</summary> ```java public interface EventListener extends Startable { /** * Invocation during application startup */ void start(); /** * Invocation after application startup completion */ void stop(); /** * class need to be enhance * @param className * @return true: enhance, false: not enhance */ boolean filter(String className); /** * Methods to be enhanced (This method relies on the filter(className) condition. It will only be executed if filter(className) returns true.) * @param methodName * @param methodTypes * @return true: enhance, false: not enhance */ default boolean filter(String methodName, String[] methodTypes) { return true; } /** * Event response processing logic * @param event fire event */ void onEvent(Event event); /** * events to listen * @return events need to be listened */ List<Event.Type> listen(); } ``` </details> The `start()` and `stop()` methods represent the lifecycle of the system, called respectively at the beginning and completion of application startup. The `filter()` method specifies the classes/methods that need to be enhanced. The `listen()` method specifies the events to listen for, including `method enter` and `method return` events. The `onEvent()` method is called when the listened events occur. For example, the following is an extension that counts the number of invocations of the java.net.URLClassLoader.findResource(String) method during the application startup process: <details> <summary style='cursor: pointer'>FindResourceCounter demo</summary> ```java @MetaInfServices public class FindResourceCounter implements EventListener { private final AtomicLong COUNT = new AtomicLong(0); @Override public boolean filter(String className) { return "java.net.URLClassLoader".equals(className); } @Override public boolean filter(String methodName, String[] methodTypes) { if (!"findResource".equals(methodName)) { return false; } return methodTypes != null && methodTypes.length == 1 && "java.lang.String".equals(methodTypes[0]); } @Override public void onEvent(Event event) { if (event instanceof AtEnterEvent) { // enter findResource method } else if (event instanceof AtExitEvent) { // findResource return } // counts the number of invocations COUNT.incrementAndGet(); } @Override public List<Event.Type> listen() { return Arrays.asList(Event.Type.AT_ENTER, Event.Type.AT_EXIT); } @Override public void start() { System.out.println("============== my extension start ============="); } @Override public void stop() { System.out.println("============== my extension end ============="); System.out.println("findResource count: " + COUNT.get()); } } ``` </details> It is important to note that **the implementation of the EventListener interface should be annotated with @MetaInfServices**. This is because the extension interface is loaded through the Service Provider Interface (SPI). When you use the `@MetaInfServices` annotation, the implementation class will be automatically written to the `META-INF/services/io.github.linyimin0812.profiler.api.EventListener` file during the code compilation process. If you don't use the `@MetaInfServices` annotation, you need to manually write the fully qualified name of the implementation class into the META-INF/services/io.github.linyimin0812.profiler.api.EventListener file`. Otherwise, the extension implementation will not be loaded. #### Package & Run The `spring-profiler-starter` pom already defines a packaging plugin that will by default copy the generated JAR file to the `$HOME/spring-startup-analyzer/extension` directory. ```shell mvn clean package ``` Once you have installed this project by following the steps in the [Installation](#22-Installation) section, you can execute the packaging command mentioned above. After the packaging is complete, you can start the application as described in the [Application Startup](#24-application-startup) section to load the extension JAR file. ## 🚀Optimization of Spring Startup ### Optimization of Prod Env Startup Time From the [Application startup data collection](#spring-startup-analysis-report)section, you can obtain the Beans that have long initialization time. Since the Spring startup process is single-threaded, to optimize the application startup time, you can consider making the initialization methods of these time-consuming Beans asynchronous. NOTE: - **It is advisable to prioritize optimizing the code of Beans to fundamentally address the issue of long initialization time** - **For Beans with long initialization time in second-party or third-party packages (where code optimization is not possible), consider asynchronous initialization of those Beans.** - **For Beans that are not dependent on other Beans, you can confidently proceed with asynchronous initialization**,You can determine if a Bean is dependent on other Beans by examining the `Root Bean` in [Loading time of Beans](#11-application-startup-data-collection) session - **Careful analysis is required for Beans that are dependent on other Beans. They should not be called by other Beans during the application startup process, as it may lead to issues** #### Types of Bean for Async Supports initialization of beans through @Bean, @PostConstruct, and @ImportResource. demo: [spring-boot-async-bean-demo](https://github.com/linyimin0812/spring-boot-async-bean-demo) 1. Bean annotated with `@Bean(initMethod = "init")` ```java @Bean(initMethod = "init") public TestBean testBean() { return new TestBean(); } ``` 2. Bean annotated with `@PostConstruct` ```java @Component public class TestComponent { @PostConstruct public void init() throws InterruptedException { Thread.sleep(20 * 1000); } } ``` #### Usage 1. Import Dependency ```xml <dependency> <groupId>io.github.linyimin0812</groupId> <artifactId>spring-async-bean-starter</artifactId> <version>${latest_version}</version> </dependency> ``` 2. Configuration ```properties # Asynchronous beans may be at the end of the Spring bean initialization order, which may result in suboptimal effects of asynchronous optimization. Open the configuration to prioritize loading asynchronous beans. spring-startup-analyzer.boost.spring.async.bean-priority-load-enable=true # name of bean to async init spring-startup-analyzer.boost.spring.async.bean-names=testBean,testComponent # init bean thread pool core size spring-startup-analyzer.boost.spring.async.init-bean-thread-pool-core-size=8 # init bean thread pool max size spring-startup-analyzer.boost.spring.async.init-bean-thread-pool-max-size=8 ``` 3. Check if the bean is initialized asynchronously View the log in the `$HOME/spring-startup-analyzer/logs/async-init-bean.log` file. For asynchronously initialized methods, a log entry will be written in the following format: ``` async-init-bean, beanName: ${beanName}, async init method: ${initMethodName} ``` ### Optimization of Daily and Pre Env Startup Time To optimize the startup time for daily and pre, we can consider hotswap. The project provides a command-line tool to implement hotswap for modified code. ![](./docs/spring-startup-cli_EN.svg) 1. Download `spring-startup-cli` from [release](https://github.com/linyimin0812/spring-startup-analyzer/releases/tag/v3.0.0) 2. Execute the command-line tool in the project's working directory ```shell java -jar spring-startup-cli.jar ``` 3. Configure information using `config` command. ```shell config set ``` 4. Execute `reload` command # 🔗Reference - [arthas](https://github.com/alibaba/arthas) - [jvm-sandbox](https://github.com/alibaba/jvm-sandbox) - [async-profiler](https://github.com/async-profiler/async-profiler) - [启动加速-异步初始化方法](https://help.aliyun.com/document_detail/133162.html) - [spring-boot-startup-report](https://github.com/maciejwalkowiak/spring-boot-startup-report) - [一些可以显著提高 Java 启动速度方法](https://heapdump.cn/article/4136322) - [jaeger-ui](https://github.com/jaegertracing/jaeger-ui)
0
yangzongzhuan/RuoYi-Vue
:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统,同时提供了 Vue3 的版本
admin axios druid element element-ui java jwt mybatis quartz quill spring springboot springsecurity swagger2 vue vue-admin vue-cli vue-element vue-element-admin vuex
<p align="center"> <img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png"> </p> <h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.7</h1> <h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4> <p align="center"> <a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a> <a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.7-brightgreen.svg"></a> <a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a> </p> ## 平台简介 若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 * 前端采用Vue、Element UI。 * 后端采用Spring Boot、Spring Security、Redis & Jwt。 * 权限认证使用Jwt,支持多终端认证系统。 * 支持加载动态权限菜单,多方式轻松权限控制。 * 高效率开发,使用代码生成器可以一键生成前后端代码。 * 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。 * 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。 * 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) * 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)&nbsp;&nbsp; * 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)&nbsp;&nbsp; ## 内置功能 1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 3. 岗位管理:配置系统用户所属担任职务。 4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 7. 参数管理:对系统动态配置常用参数。 8. 通知公告:系统通知公告信息发布维护。 9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 10. 登录日志:系统登录日志记录查询包含登录异常。 11. 在线用户:当前系统中活跃用户状态监控。 12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 14. 系统接口:根据业务代码自动生成相关的api接口文档。 15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 16. 缓存监控:对系统的缓存信息查询,命令统计等。 17. 在线构建器:拖动表单元素生成相应的HTML代码。 18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 ## 在线体验 - admin/admin123 - 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。 演示地址:http://vue.ruoyi.vip 文档地址:http://doc.ruoyi.vip ## 演示图 <table> <tr> <td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td> <td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td> <td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td> </tr> <tr> <td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td> <td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td> </tr> </table> ## 若依前后端分离交流群 QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/已满-143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [![加入QQ群](https://img.shields.io/badge/已满-174951577-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [![加入QQ群](https://img.shields.io/badge/已满-161281055-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [![加入QQ群](https://img.shields.io/badge/138988063-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) 点击按钮入群。
0
apache/linkis
Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
application-manager context-service engine hive hive-table impala jdbc jobserver linkis livy presto pyspark resource-manager rest-api scriptis spark sql storage thrift-server udf
<h2 align="center"> Apache Linkis </h2> <p align="center"> <strong> Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines. </strong> </p> <p align="center"> <a href="https://linkis.apache.org/">https://linkis.apache.org/</a> </p> <p align="center"> <a href="https://linkis.apache.org/docs/latest/introduction/" > <img src="https://img.shields.io/badge/document-English-blue.svg" alt="EN docs" /> </a> <a href="https://linkis.apache.org/zh-CN/docs/latest/introduction/"> <img src="https://img.shields.io/badge/文档-简体中文-blue.svg" alt="简体中文文档" /> </a> </p> <p align="center"> <a target="_blank" href="https://search.maven.org/search?q=g:org.apache.linkis%20AND%20a:linkis"> <img src="https://img.shields.io/maven-central/v/org.apache.linkis/linkis.svg?label=maven%20central" /> </a> <a target="_blank" href="https://github.com/apache/linkis/blob/master/LICENSE"> <img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg?label=license" /> </a> <a target="_blank" href="https://www.oracle.com/technetwork/java/javase/downloads/index.html"> <img src="https://img.shields.io/badge/JDK-8-green.svg" /> </a> <a target="_blank" href="https://github.com/apache/linkis/actions"> <img src="https://github.com/apache/linkis/actions/workflows//build-backend.yml/badge.svg" /> </a> <a target="_blank" href='https://github.com/apache/linkis'> <img src="https://img.shields.io/github/forks/apache/linkis.svg" alt="github forks"/> </a> <a target="_blank" href='https://github.com/apache/linkis'> <img src="https://img.shields.io/github/stars/apache/linkis.svg" alt="github stars"/> </a> <a target="_blank" href='https://github.com/apache/linkis'> <img src="https://img.shields.io/github/contributors/apache/linkis.svg" alt="github contributors"/> </a> <a target="_blank" href="https://badges.toozhao.com/stats/01G7TRNN1PH9PMSCYWDF3EK4QT"> <img src="https://badges.toozhao.com/badges/01G7TRNN1PH9PMSCYWDF3EK4QT/green.svg" /> </a> </p> <br/> --- [English](README.md) | [中文](README_CN.md) # Introduction Linkis builds a layer of computation middleware between upper applications and underlying engines. By using standard interfaces such as REST/WS/JDBC provided by Linkis, the upper applications can easily access the underlying engines such as MySQL/Spark/Hive/Presto/Flink, etc., and achieve the intercommunication of user resources like unified variables, scripts, UDFs, functions and resource files at the same time. As a computation middleware, Linkis provides powerful connectivity, reuse, orchestration, expansion, and governance capabilities. By decoupling the application layer and the engine layer, it simplifies the complex network call relationship, and thus reduces the overall complexity and saves the development and maintenance costs as well. Since the first release of Linkis in 2019, it has accumulated more than **700** trial companies and **1000+** sandbox trial users, which involving diverse industries, from finance, banking, tele-communication, to manufactory, internet companies and so on. Lots of companies have already used Linkis as a unified entrance for the underlying computation and storage engines of the big data platform. ![linkis-intro-01](https://user-images.githubusercontent.com/7869972/148767375-aeb11b93-16ca-46d7-a30e-92fbefe2bd5e.png) ![linkis-intro-03](https://user-images.githubusercontent.com/7869972/148767380-c34f44b2-9320-4633-9ec8-662701f41d15.png) # Features - **Support for diverse underlying computation storage engines** : Spark, Hive, Python, Shell, Flink, JDBC, Pipeline, Sqoop, OpenLooKeng, Presto, ElasticSearch, Trino, SeaTunnel, etc.; - **Support for diverse language** : SparkSQL, HiveSQL, Python, Shell, Pyspark, Scala, JSON and Java; - **Powerful computing governance capability** : It can provide task routing, load balancing, multi-tenant, traffic control, resource control and other capabilities based on multi-level labels; - **Support full stack computation/storage engine** : The ability to receive, execute and manage tasks and requests for various compute and storage engines, including offline batch tasks, interactive query tasks, real-time streaming tasks and data lake tasks; - **Unified context service** : supports cross-user, system and computing engine to associate and manage user and system resource files (JAR, ZIP, Properties, etc.), result sets, parameter variables, functions, UDFs, etc., one setting, automatic reference everywhere; - **Unified materials** : provides system and user level material management, can share and flow, share materials across users, across systems; - **Unified data source management** : provides the ability to add, delete, check and change information of Hive, ElasticSearch, Mysql, Kafka, MongoDB and other data sources, version control, connection test, and query metadata information of corresponding data sources; - **Error code capability** : provides error codes and solutions for common errors of tasks, which is convenient for users to locate problems by themselves; # Engine Type | **Engine name** | **Support underlying component version<br/>(default dependency version)** | **Linkis Version Requirements** | **Included in Release Package By Default** | **Description** | |:---- |:---- |:---- |:---- |:---- | |Spark|Apache >= 2.0.0, <br/>CDH >= 5.4.0, <br/>(default Apache Spark 3.2.1)|\>=1.0.3|Yes|Spark EngineConn, supports SQL , Scala, Pyspark and R code| |Hive|Apache >= 1.0.0, <br/>CDH >= 5.4.0, <br/>(default Apache Hive 3.1.3)|\>=1.0.3|Yes |Hive EngineConn, supports HiveQL code| |Python|Python >= 2.6, <br/>(default Python2*)|\>=1.0.3|Yes |Python EngineConn, supports python code| |Shell|Bash >= 2.0|\>=1.0.3|Yes|Shell EngineConn, supports Bash shell code| |JDBC|MySQL >= 5.0, Hive >=1.2.1, <br/>(default Hive-jdbc 2.3.4)|\>=1.0.3|No |JDBC EngineConn, already supports ClickHouse, DB2, DM, Greenplum, kingbase, MySQL, Oracle, PostgreSQL and SQLServer, can be extended quickly Support other DB, such as SQLite| |Flink |Flink >= 1.12.2, <br/>(default Apache Flink 1.12.2)|\>=1.0.2|No |Flink EngineConn, supports FlinkSQL code, also supports starting a new Yarn in the form of Flink Jar Application| |Pipeline|-|\>=1.0.2|No|Pipeline EngineConn, supports file import and export| |openLooKeng|openLooKeng >= 1.5.0, <br/>(default openLookEng 1.5.0)|\>=1.1.1|No|openLooKeng EngineConn, supports querying data virtualization engine with Sql openLooKeng| |Sqoop| Sqoop >= 1.4.6, <br/>(default Apache Sqoop 1.4.6)|\>=1.1.2|No|Sqoop EngineConn, support data migration tool Sqoop engine| |Presto|Presto >= 0.180|\>=1.2.0|No|Presto EngineConn, supports Presto SQL code| |ElasticSearch|ElasticSearch >=6.0|\>=1.2.0|No|ElasticSearch EngineConn, supports SQL and DSL code| |Trino | Trino >=371 | >=1.3.1 | No | Trino EngineConn, supports Trino SQL code | |Seatunnel | Seatunnel >=2.1.2 | >=1.3.1 | No | Seatunnel EngineConn, supportt Seatunnel SQL code | # Download Please go to the [Linkis Releases Page](https://linkis.apache.org/download/main) to download a compiled distribution or a source code package of Linkis. # Compile and Deploy > For more detailed guidance see: >- [[Backend Compile]](https://linkis.apache.org/docs/latest/development/build) >- [[Management Console Build]](https://linkis.apache.org/docs/latest/development/build-console) ```shell Note: If you want use `-Dlinkis.build.web=true` to build linkis-web image, you need to compile linkis-web first. ## compile backend ### Mac OS/Linux # 1. When compiling for the first time, execute the following command first ./mvnw -N install # 2. make the linkis distribution package # - Option 1: make the linkis distribution package only ./mvnw clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true # - Option 2: make the linkis distribution package and docker image # - Option 2.1: image without mysql jdbc jars ./mvnw clean install -Pdocker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true # - Option 2.2: image with mysql jdbc jars ./mvnw clean install -Pdocker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dlinkis.build.with.jdbc=true # - Option 3: linkis distribution package and docker image (included web) ./mvnw clean install -Pdocker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dlinkis.build.web=true # - Option 4: linkis distribution package and docker image (included web and ldh (hadoop all in one for test)) ./mvnw clean install -Pdocker -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dlinkis.build.web=true -Dlinkis.build.ldh=true -Dlinkis.build.with.jdbc=true ### Windows mvnw.cmd -N install mvnw.cmd clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true ## compile web cd linkis/linkis-web npm install npm run build ``` ### Bundled with MySQL JDBC Driver Due to the MySQL licensing restrictions, the MySQL Java Database Connectivity (JDBC) driver is not bundled with the official released linkis image by default. However, at current stage, linkis still relies on this library to work properly. To solve this problem, we provide a script which can help to creating a custom image with mysql jdbc from the official linkis image by yourself, the image created by this tool will be tagged as `linkis:with-jdbc` by default. ```shell $> LINKIS_IMAGE=linkis:1.3.1 $> ./linkis-dist/docker/scripts/make-linkis-image-with-mysql-jdbc.sh ``` Please refer to [Quick Deployment](https://linkis.apache.org/docs/latest/deployment/deploy-quick/) to do the deployment. # Examples and Guidance - [User Manual](https://linkis.apache.org/docs/latest/user-guide/how-to-use) - [Engine Usage Documents](https://linkis.apache.org/docs/latest/engine-usage/overview) - [API Documents](https://linkis.apache.org/docs/latest/api/overview) # Documentation & Vedio - The documentation of linkis is in [Linkis-Website Git Repository](https://github.com/apache/linkis-website) - Meetup videos on [Bilibili](https://space.bilibili.com/598542776?from=search&seid=14344213924133040656) # Architecture Linkis services could be divided into three categories: computation governance services, public enhancement services and microservice governance services - The computation governance services, support the 3 major stages of processing a task/request: submission -> preparation -> execution - The public enhancement services, including the material library service, context service, and data source service - The microservice governance services, including Spring Cloud Gateway, Eureka and Open Feign Below is the Linkis architecture diagram. You can find more detailed architecture docs in [Linkis-Doc/Architecture](https://linkis.apache.org/docs/latest/architecture/overview). ![architecture](https://user-images.githubusercontent.com/7869972/148767383-f87e84ba-5baa-4125-8b6e-d0aa4f7d3a66.png) # Contributing Contributions are always welcomed, we need more contributors to build Linkis together. either code, or doc, or other supports that could help the community. For code and documentation contributions, please follow the [contribution guide](https://linkis.apache.org/community/how-to-contribute). # Contact Us - Any questions or suggestions please kindly submit an [issue](https://github.com/apache/linkis/issues). - By mail [dev@linkis.apache.org](mailto:dev@linkis.apache.org) - You can scan the QR code below to join our WeChat group to get more immediate response <img src="https://linkis.apache.org/Images/wedatasphere_contact_01.png" width="256"/> # Who is Using Linkis We opened an issue [[Who is Using Linkis]](https://github.com/apache/linkis/issues/23) for users to feedback and record who is using Linkis. Since the first release of Linkis in 2019, it has accumulated more than **700** trial companies and **1000+** sandbox trial users, which involving diverse industries, from finance, banking, tele-communication, to manufactory, internet companies and so on.
0
SummerSec/ShiroAttack2
shiro反序列化漏洞综合利用,包含(回显执行命令/注入内存马)修复原版中NoCC的问题 https://github.com/j1anFen/shiro_attack
shiro shiro-security shiro550 shiroexp
# <h1 align="center" >ShiroAttack2</h1> <h3 align="center" >一款针对Shiro550漏洞进行快速漏洞利用</h3> <p align="center"> <a href="https://github.com/SummerSec/ShiroAttack2"></a> <a href="https://github.com/SummerSec/ShiroAttack2"><img alt="ShiroAttack2" src="https://img.shields.io/badge/ShiroAttack2-green"></a> <a href="https://github.com/SummerSec/ShiroAttack2"><img alt="Forks" src="https://img.shields.io/github/forks/SummerSec/ShiroAttack2"></a> <a href="https://github.com/SummerSec/ShiroAttack2"><img alt="Release" src="https://img.shields.io/github/release/SummerSec/ShiroAttack2.svg"></a> <a href="https://github.com/SummerSec/ShiroAttack2"><img alt="Stars" src="https://img.shields.io/github/stars/SummerSec/ShiroAttack2.svg?style=social&label=Stars"></a> <a href="https://github.com/SummerSec"><img alt="Follower" src="https://img.shields.io/github/followers/SummerSec.svg?style=social&label=Follow"></a> <a href="https://github.com/SummerSec"><img alt="Visitor" src="https://visitor-badge.laobi.icu/badge?page_id=SummerSec.ShiroAttack2"></a> <a href="https://twitter.com/SecSummers"><img alt="SecSummers" src="https://img.shields.io/twitter/follow/SecSummers.svg"></a> <a xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://visitor-badge.laobi.icu"><rect fill="rgba(0,0,0,0)" height="20" width="49.6"/></a> <a xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://visitor-badge.laobi.icu"><rect fill="rgba(0,0,0,0)" height="20" width="17.0" x="49.6"/></a> </p> ## 前言 关于该工具更新内容介绍后续会更新到博客下面**https://shiro.sumsec.me/** ## 工具特点 * javafx * 处理没有第三方依赖的情况 * 支持多版本CommonsBeanutils的gadget * 支持内存马 * 采用直接回显执行命令 * 添加了更多的CommonsBeanutils版本gadget * 支持修改rememberMe关键词 * 支持直接爆破利用gadget和key * 支持代理 * 添加修改shirokey功能(使用内存马的方式)**可能导致业务异常** * 支持内存马小马 * 添加DFS算法回显(AllECHO) * 支持自定义请求头,格式:abc:123&&&test:123 ## FAQ 常见问题见 [FAQ](./docs/FAQ.md) ## 使用方法 直接使用shiro_attack-{version}-SNAPSHOT-all.jar第三版 ![image-20211130114603322](https://img.sumsec.me//49u5049ec49u5049ec.png) 在jar的当前目录下创建一个data文件夹,里面创建一个shiro_keys.txt文件,文件内容是shiro_key。lib目前是CommonsBeanutils依赖的版本。 ![image-20211130113559530](https://img.sumsec.me//44u5044ec44u5044ec.png) --- ## :b:免责声明 该工具仅用于安全自查检测 由于传播、利用此工具所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,作者不为此承担任何责任。 本人拥有对此工具的修改和解释权。未经网络安全部门及相关部门允许,不得善自使用本工具进行任何攻击活动,不得以任何方式将其用于商业目的。 该工具只授权于企业内部进行问题排查,请勿用于非法用途,请遵守网络安全法,否则后果作者概不负责 ---- ![as](https://starchart.cc/SummerSec/ShiroAttack2.svg)
0
tang-jie/NettyRPC
NettyRPC is high performance java rpc server base on Netty,using kryo,hessian,protostuff support message serialization.
jmx netty parallel rpc spring
# NettyRPC Project high performance java rpc server base on netty framework,using kryo,hessian,protostuff support rpc message serialization. ---------- ## NettyRPC开发指南 有兴趣的同学可以参考:[NettyRPC入门手册](https://github.com/tang-jie/NettyRPC/wiki/NettyRPC%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97)。 ---------- ## NettyRPC 1.0 Build 2016/6/25 ### NettyRPC 1.0 中文简介: **NettyRPC是基于Netty构建的RPC系统,消息网络传输支持目前主流的编码解码器** * NettyRPC基于Java语言进行编写,网络通讯依赖Netty。 * RPC服务端采用线程池对RPC调用进行异步回调处理。 * 服务定义、实现,通过Spring容器进行加载、卸载。 * 消息网络传输除了JDK原生的对象序列化方式,还支持目前主流的编码解码器:kryo、hessian。 * Netty网络模型采用主从Reactor线程模型,提升RPC服务器并行吞吐性能。 * 多线程模型采用guava线程库进行封装。 ### NettyRPC 1.0 English Introduction: **NettyRPC is based on Netty to build the RPC system, the message network transmission support the current mainstream codec.** * NettyRPC based on Java language, network communications rely on Netty. * RPC server using the thread pool on the RPC call asynchronous callback processing. * service definition, implementation, through the Spring container(IOC) loading, unloading. * message network transmission in addition to JDK native object serialization mode, but also to support the current mainstream of the codec: kryo, hessian. * Netty network model uses the master-slave Reactor thread model, to improve the performance of RPC server parallel throughput. * multi thread model using guava thread framework. ---------- ## NettyRPC 2.0 Build 2016/10/7 ### NettyRPC 2.0 中文简介: **NettyRPC 2.0是基于NettyRPC 1.0 在Maven下构建的RPC系统,在原有1.0版本的基础上对代码进行重构升级,主要改进点如下:** * RPC服务启动、注册、卸载支持通过Spring中的nettyrpc标签进行统一管理。 * 在原来编码解码器:JDK原生的对象序列化方式、kryo、hessian,新增了:protostuff。 * 优化了NettyRPC服务端的线程池模型,支持LinkedBlockingQueue、ArrayBlockingQueue、SynchronousQueue,并扩展了多个线程池任务处理策略。 * NettyRPC服务端加入JMX监控支持。 ### NettyRPC 2.0 English Introduction: **NettyRPC 2.0 is based on NettyRPC 1.0 under the Maven to build the RPC system, based on the original 1.0 version of the code to refactoring, the main improvements are as follows:** * RPC service startup, registration, uninstall support through the nettyrpc Spring tags for unified management. * in the original codec: JDK native object serialization mode, kryo, hessian, added: protostuff. * optimize the NettyRPC server's thread pool model, support LinkedBlockingQueue, ArrayBlockingQueue, SynchronousQueue, and expand the various thread pool task processing strategy. * NettyRPC JMX monitoring support. ---------- ## NettyRPC 2.1 Build 2017/3/23 **在NettyRPC 2.0的基础上新增NettyRPC异步回调功能模块:** * 基于cglib生成异步代理Mock对象,针对一些极端耗时的RPC调用场景进行异步回调,从而提高客户端的并行吞吐量。 ---------- ## NettyRPC 2.2 Build 2017/5/2 **在2.1版本的基础上,提供NettyRPC服务端接口能力展现功能:** * 接口能力展现功能模块部署在服务端的18886端口,可以在浏览器中输入:http://ip地址:18886/NettyRPC.html 进行查看。 * 比如在浏览器的地址栏中输入:http://10.1.1.76:18886/NettyRPC.html, 可以查看NettyRPC服务器对外暴露的服务能力接口信息。 * NettyRPC客户端支持重连功能:这点主要是针对RPC服务器宕机的情形下,RPC客户端可以检测链路情况,如果链路不通,则自动重连(重连重试的时间默认为10s)。 ---------- ## NettyRPC 2.3 Build 2017/7/28 **在NettyRPC 2.2的基础上新增NettyRPC过滤器功能:** * 进一步合理地分配和利用服务端的系统资源,NettyRPC可以针对某些特定的RPC请求,进行过滤拦截。 * 具体过滤器要实现:com.newlandframework.rpc.filter.Filter接口定义的方法。 * 被拦截到的RPC请求,NettyRPC框架会抛出com.newlandframework.rpc.exception.RejectResponeException异常,可以根据需要进行捕获。 * spring配置文件中的nettyrpc:service标签,新增filter属性,用来定义这个服务对应的过滤器的实现。当然,filter属性是可选的。 ---------- ## NettyRPC 2.4 Build 2017/8/31 **在NettyRPC 2.3的基础上,增强了RPC服务端动态加载字节码时,对于热点方法的拦截判断能力:** * 在之前的NettyRPC版本中,RPC服务端集成了一个功能:针对Java HotSpot虚拟机的热加载特性,可以动态加载、生成并执行客户端的热点代码。然而却有一定的风险。因为这些代码中的某些方法,可能存在一些危及服务端安全的操作,所以有必要对这些方法进行拦截控制。 * 技术难点在于:如何对服务端生成的字节码文件进行渲染加工?以往传统的方式,都是基于类进行代理渲染,而这次是针对字节码文件进行织入渲染,最终把拦截方法织入原有的字节码文件中。 * 对字节码操作可选的方案有Byte Code Engineering Library (BCEL)、ASM等。最终从执行性能上考虑,决定采用偏向底层的ASM,对字节码进行渲染织入增强,以节省性能开销。最终通过类加载器,重新把渲染后的字节码,载入运行时上下文环境。 * 具体方法拦截器要实现:com.newlandframework.rpc.compiler.intercept.Interceptor接口定义的方法。NettyRPC框架提供了一个简易的拦截器实现:SimpleMethodInterceptor,可以在这里加入你的拦截判断逻辑。 ---------- ## NettyRPC 2.5 Build 2017/10/13 **在NettyRPC 2.4的基础上,基于JMX(Java Management Extensions)技术,对NettyRPC的服务端进行调用监控,加强服务端对调用请求的分析统计能力:** * 是否开启JMX监控,可以通过环境变量:nettyrpc.jmx.invoke.metrics来控制(为0表示关闭JMX监控;非0表示打开JMX监控)。对应NettyRPC系统变量为:RpcSystemConfig.SYSTEM_PROPERTY_JMX_INVOKE_METRICS。如果开启JMX监控,启动的时候,控制台上会打印JMX URL信息。 * JMX监控的URL地址格式为:service:jmx:rmi:///jndi/rmi://服务器ip地址:1098/NettyRPCServer。比如:service:jmx:rmi:///jndi/rmi://10.1.8.5:1098/NettyRPCServer,然后可以在jconsole中,通过JMX对NettyRPC服务端的调用情况进行监控。 * 目前服务端监控的维度主要有:调用次数、调用成功次数、调用失败次数、过滤拦截次数、调用时长、调用最大时长、调用最小时长、错误明细、最后一次错误发生的时间、调用时长统计数组区间。 * 目前暂时只支持jconsole方式,后续会考虑在NettyRPC内部架设HTTP服务器,以网页的形式直观地展示监控数据信息。 * 为了提高JMX数据统计监控的精度,服务端采用了临界区对RPC请求进行隔离。但是如果客户端是通过AsyncInvoker异步调用的方式进行RPC请求的话,则会把异步并行加载强制转成异步串行加载。这并不是我们希望看到的。 * 后续会针对异步并行加载串行化的问题,在服务端采用哈希队列的方式隔离管理临界区对象,减少JMX监控对异步调用的侵蚀影响。 ---------- ## NettyRPC 2.6 Build 2017/10/30 **在NettyRPC 2.5的基础上,针对JMX监控统计RPC调用指标的场景,采用临界区哈希分片加锁算法,降低锁的颗粒度,减少JMX监控对RPC调用的影响。** * 哈希分片加锁算法,采用空间换时间策略。其主要思路参考借鉴了JDK中ConcurrentHashMap的实现,经过优化之后,NettyRPC的JMX监控统计性能会有很大的提升。 * 哈希分片加锁算法中,哈希分片的个数,通过环境变量nettyrpc.jmx.metrics.hash.nums进行设定,默认为8个哈希桶。当然,你可以改成其它大于1的整数,数值越大,哈希冲突越小,JMX监控的性能越好,但是代价是,JVM堆内存空间有所损耗。 * 经过哈希分片加锁算法优化之后,特别是对异步并行调用(AsyncInvoker)的侵蚀大幅度降低,对整个NettyRPC系统而言,统计性能也有质的提升。一方面不影响原有系统的调用吞吐量,另外一方面也不会降低JMX的统计精度。 * 默认加锁采用非公平锁,你可以通过设置环境变量nettyrpc.jmx.metrics.lock.fair为1,改成公平锁。在高并发调用的场景,建议采用非公平锁。 ---------- ## NettyRPC 2.7 Build 2017/11/2 **在NettyRPC 2.6的基础上,新增内嵌HTTP服务器,用于展示NettyRPC模块调用监控指标。** * 利用JMX接口,从NettyRPC服务端获取模块调用的监控数据。 * 在环境变量nettyrpc.jmx.invoke.metrics为1的前提下,在浏览器输入URL:http://ip地址:18886/NettyRPC.html/metrics。 即可查看NettyRPC系统模块间的调用统计情况。 * 可以按F5刷新统计界面,查看最新的统计指标。 ---------- ## NettyRPC 2.8 Build 2018/2/2 **在NettyRPC 2.7的基础上,加入RPC请求过滤器链和监听器链功能** * 通过监听器链和过滤器链,可以对RPC客户端请求进行过滤和监听。具体参考[NettyRPC入门手册](https://github.com/tang-jie/NettyRPC/wiki/NettyRPC%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97)中的“RPC请求链式处理”章节。 * 过滤器链封装类(com.newlandframework.rpc.filter.ModuleFilterChainWrapper)、监听器链封装类(com.newlandframework.rpc.listener.ModuleListenerChainWrapper)通过spring依赖注入。 * NettyRPC内置了一些链式过滤器:com.newlandframework.rpc.filter.support.ClassLoaderChainFilter、com.newlandframework.rpc.filter.support.EchoChainFilter,以及链式监听器:com.newlandframework.rpc.listener.support.ModuleListenerAdapter。具体可以根据需求进行扩展添加。 ---------- ## NettyRPC相关博客文章 if you want to know more details,okey!you can see my blog: **Talk about how to use Netty nio frameworks development high performance RPC server** **谈谈如何使用Netty开发实现高性能的RPC服务器** http://www.cnblogs.com/jietang/p/5615681.html **By Netty to realize high performance RPC server optimization of the message serialization** **Netty实现高性能RPC服务器优化篇之消息序列化** http://www.cnblogs.com/jietang/p/5675171.html **Based on Netty to develop RPC server design experience** **基于Netty打造RPC服务器设计经验谈** http://www.cnblogs.com/jietang/p/5983038.html ---------- ## Author 唐洁(tangjie) http://www.cnblogs.com/jietang/ ---------- ## License [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
0
DTStack/chunjun
A data integration framework
bigdata data-integration flink framework java
# ChunJun <p align="left"> <img src="https://img.shields.io/github/stars/DTStack/chunjun?style=social" alt="npm version" /> <img src="https://img.shields.io/github/license/DTStack/chunjun" alt="license" /> <a href="https://github.com/DTStack/chunjun/releases"><img src="https://img.shields.io/github/downloads/DTStack/chunjun/total" alt="npm downloads" /></a> <img src="https://img.shields.io/gitlab/coverage/DTStack/chunjun/master" alt="master coverage" /> </p> [![EN doc](https://img.shields.io/badge/document-English-blue.svg)](README.md) [![CN doc](https://img.shields.io/badge/文档-中文版-blue.svg)](README_CH.md) ## Introduce ChunJun is a distributed integration framework, and currently is based on Apache Flink. It was initially known as FlinkX and renamed ChunJun on February 22, 2022. It can realize data synchronization and calculation between various heterogeneous data sources. ChunJun has been deployed and running stably in thousands of companies so far. Official website of ChunJun: https://dtstack.github.io/chunjun/ ## Features of ChunJun ChunJun abstracts different databases into reader/source plugins, writer/sink plugins and lookup plugins, and it has the following features: - Based on the real-time computing engine--Flink, and supports JSON template and SQL script configuration tasks. The SQL script is compatible with Flink SQL syntax; - Supports distributed operation, support flink-standalone, yarn-session, yarn-per job and other submission methods; - Supports Docker one-click deployment, support deploy and run on k8s; - Supports a variety of heterogeneous data sources, and supports synchronization and calculation of more than 20 data sources such as MySQL, Oracle, SQLServer, Hive, Kudu, etc. - Easy to expand, highly flexible, newly expanded data source plugins can integrate with existing data source plugins instantly, plugin developers do not need to care about the code logic of other plugins; - Not only supports full synchronization, but also supports incremental synchronization and interval training; - Not only supports offline synchronization and calculation, but also compatible with real-time scenarios; - Supports dirty data storage, and provide indicator monitoring, etc.; - Cooperate with the flink checkpoint mechanism to achieve breakpoint resuming, task disaster recovery; - Not only supports synchronizing DML data, but also supports DDL synchronization, like 'CREATE TABLE', 'ALTER COLUMN', etc.; ## Build And Compilation ### Get the code Use the git to clone the code of ChunJun ```shell git clone https://github.com/DTStack/chunjun.git ``` ### build Execute the command in the project directory. ```shell ./mvnw clean package ``` Or execute ```shell sh build/build.sh ``` ### Common problem #### Compiling module 'ChunJun-core' then throws 'Failed to read artifact descriptor for com.google.errorprone:javac-shaded' Error message: ```java [ERROR]Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.4.2:check(spotless-check)on project chunjun-core: Execution spotless-check of goal com.diffplug.spotless:spotless-maven-plugin:2.4.2:check failed:Unable to resolve dependencies: Failed to collect dependencies at com.google.googlejavaformat:google-java-format:jar:1.7->com.google.errorprone:javac-shaded:jar:9+181-r4173-1: Failed to read artifact descriptor for com.google.errorprone:javac-shaded:jar:9+181-r4173-1:Could not transfer artifact com.google.errorprone:javac-shaded:pom:9+181-r4173-1 from/to aliyunmaven(https://maven.aliyun.com/repository/public): Access denied to:https://maven.aliyun.com/repository/public/com/google/errorprone/javac-shaded/9+181-r4173-1/javac-shaded-9+181-r4173-1.pom -> [Help 1] ``` Solution: Download the 'javac-shaded-9+181-r4173-1.jar' from url 'https://repo1.maven.org/maven2/com/google/errorprone/javac-shaded/9+181-r4173-1/javac-shaded-9+181-r4173-1.jar', and then install locally by using command below: ```shell mvn install:install-file -DgroupId=com.google.errorprone -DartifactId=javac-shaded -Dversion=9+181-r4173-1 -Dpackaging=jar -Dfile=./jars/javac-shaded-9+181-r4173-1.jar ``` ## Quick Start The following table shows the correspondence between the branches of ChunJun and the version of flink. If the versions are not aligned, problems such as 'Serialization Exceptions', 'NoSuchMethod Exception', etc. mysql occur in tasks. | Branches | Flink version | |--------------|---------------| | master | 1.16.1 | | 1.12_release | 1.12.7 | | 1.10_release | 1.10.1 | | 1.8_release | 1.8.3 | ChunJun supports running tasks in multiple modes. Different modes depend on different environments and steps. The following are ### Local Local mode does not depend on the Flink environment and Hadoop environment, and starts a JVM process in the local environment to perform tasks. #### Steps Go to the directory of 'chunjun-dist' and execute the command below: ```shell sh bin/chunjun-local.sh -job $SCRIPT_PATH ``` The parameter of "$SCRIPT_PATH" means 'the path where the task script is located'. After execute, you can perform a task locally. note: ``` when you package in windows and run sh in linux , you need to execute command sed -i "s/\r//g" bin/*.sh to fix the '\r' problems. ``` [Reference video](https://www.bilibili.com/video/BV1mT411g7fJ?spm_id_from=333.999.0.0) ### Standalone Standalone mode depend on the Flink Standalone environment and does not depend on the Hadoop environment. #### Steps ##### 1. add jars of chunjun 1) Find directory of jars: if you build this project using maven, the directory name is 'chunjun-dist' ; if you download tar.gz file from release page, after decompression, the directory name would be like 'chunjun-assembly-${revision}-chunjun-dist'. 2) Copy jars to directory of Flink lib, command example: ```shell cp -r chunjun-dist $FLINK_HOME/lib ``` Notice: this operation should be executed in all machines of Flink cluster, otherwise some jobs will fail because of ClassNotFoundException. ##### 2. Start Flink Standalone Cluster ```shell sh $FLINK_HOME/bin/start-cluster.sh ``` After the startup is successful, the default port of Flink Web is 8081, which you can configure in the file of 'flink-conf.yaml'. We can access the 8081 port of the current machine to enter the flink web of standalone cluster. ##### 3. Submit task Go to the directory of 'chunjun-dist' and execute the command below: ```shell sh bin/chunjun-standalone.sh -job chunjun-examples/json/stream/stream.json ``` After the command execute successfully, you can observe the task staus on the flink web. [Reference video](https://www.bilibili.com/video/BV1TT41137UV?spm_id_from=333.999.0.0) ### Yarn Session YarnSession mode depends on the Flink jars and Hadoop environments, and the yarn-session needs to be started before the task is submitted. #### Steps ##### 1. Start yarn-session environment Yarn-session mode depend on Flink and Hadoop environment. You need to set $HADOOP_HOME and $FLINK_HOME in advance, and we need to upload 'chunjun-dist' with yarn-session '-t' parameter. ```shell cd $FLINK_HOME/bin ./yarn-session -t $CHUNJUN_HOME -d ``` ##### 2. Submit task Get the application id $SESSION_APPLICATION_ID corresponding to the yarn-session through yarn web, then enter the directory 'chunjun-dist' and execute the command below: ```shell sh ./bin/chunjun-yarn-session.sh -job chunjun-examples/json/stream/stream.json -confProp {\"yarn.application.id\":\"SESSION_APPLICATION_ID\"} ``` 'yarn.application.id' can also be set in 'flink-conf.yaml'. After the submission is successful, the task status can be observed on the yarn web. [Reference video](https://www.bilibili.com/video/BV1oU4y1D7e7?spm_id_from=333.999.0.0) ### Yarn Per-Job Yarn Per-Job mode depend on Flink and Hadoop environment. You need to set $HADOOP_HOME and $FLINK_HOME in advance. #### Steps The yarn per-job task can be submitted after the configuration is correct. Then enter the directory 'chunjun-dist' and execute the command below: ```shell sh ./bin/chunjun-yarn-perjob.sh -job chunjun-examples/json/stream/stream.json ``` After the submission is successful, the task status can be observed on the yarn web. ## Docs of Connectors For details, please visit:https://dtstack.github.io/chunjun/documents/ ## Contributors Thanks to all contributors! We are very happy that you can contribute Chunjun. <a href="https://github.com/DTStack/chunjun/graphs/contributors"> <img src="https://contrib.rocks/image?repo=DTStack/chunjun" alt="contributors"/> </a> ## Contributor Over Time [![Stargazers Over Time](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorOverTime&repo=DTStack/chunjun)](https://git-contributor.com?chart=contributorOverTime&repo=DTStack/chunjun) ## License ChunJun is under the Apache 2.0 license. Please visit [LICENSE](http://www.apache.org/licenses/LICENSE-2.0) for details. ## Contact Us Join ChunJun Slack. https://join.slack.com/t/chunjun/shared_invite/zt-1hzmvh0o3-qZ726NXmhClmLFRMpEDHYw
0
deeplearning4j/deeplearning4j
Suite of tools for deploying and training deep learning models using the JVM. Highlights include model import for keras, tensorflow, and onnx/pytorch, a modular and tiny c++ library for running math code and a java based math library on top of the core c++ library. Also includes samediff: a pytorch/tensorflow like library for running deep learning using automatic differentiation.
artificial-intelligence clojure deeplearning deeplearning4j dl4j gpu hadoop intellij java linear-algebra matrix-library neural-nets python scala spark
<p align="center"> <img src="https://www.zeljkoobrenovic.com/tools/tech/images/eclipse_deeplearning4j.png"> </p> [![Documentation](https://img.shields.io/badge/user-documentation-blue.svg)](https://deeplearning4j.konduit.ai/) [![Get help at the community forum](https://img.shields.io/badge/Get%20Help-Community%20Forum-blue)](https://community.konduit.ai/) [![javadoc](https://javadoc.io/badge2/org.deeplearning4j/deeplearning4j-nn/DL4J%20API%20Doc.svg)](https://javadoc.io/doc/org.deeplearning4j/deeplearning4j-nn) [![javadoc](https://javadoc.io/badge2/org.nd4j/nd4j-api/ND4J%20API%20Doc.svg)](https://javadoc.io/doc/org.nd4j/nd4j-api) [![License](https://img.shields.io/github/license/eclipse/deeplearning4j)](LICENSE) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/eclipse/deeplearning4j) The **[Eclipse Deeplearning4J](https://deeplearning4j.konduit.ai/)** (DL4J) ecosystem is a set of projects intended to support all the needs of a JVM based deep learning application. This means starting with the raw data, loading and preprocessing it from wherever and whatever format it is in to building and tuning a wide variety of simple and complex deep learning networks. Because Deeplearning4J runs on the JVM you can use it with a wide variety of JVM based languages other than Java, like Scala, Kotlin, Clojure and many more. The DL4J stack comprises of: - **DL4J**: High level API to build MultiLayerNetworks and ComputationGraphs with a variety of layers, including custom ones. Supports importing Keras models from h5, including tf.keras models (as of 1.0.0-beta7) and also supports distributed training on Apache Spark - **ND4J**: General purpose linear algebra library with over 500 mathematical, linear algebra and deep learning operations. ND4J is based on the highly-optimized C++ codebase LibND4J that provides CPU (AVX2/512) and GPU (CUDA) support and acceleration by libraries such as OpenBLAS, OneDNN (MKL-DNN), cuDNN, cuBLAS, etc - **SameDiff** : Part of the ND4J library, SameDiff is our automatic differentiation / deep learning framework. SameDiff uses a graph-based (define then run) approach, similar to TensorFlow graph mode. Eager graph (TensorFlow 2.x eager/PyTorch) graph execution is planned. SameDiff supports importing TensorFlow frozen model format .pb (protobuf) models. Import for ONNX, TensorFlow SavedModel and Keras models are planned. Deeplearning4j also has full SameDiff support for easily writing custom layers and loss functions. - **DataVec**: ETL for machine learning data in a wide variety of formats and files (HDFS, Spark, Images, Video, Audio, CSV, Excel etc) - **LibND4J** : C++ library that underpins everything. For more information on how the JVM acceses native arrays and operations refer to [JavaCPP](https://github.com/bytedeco/javacpp) - **Python4J**: Bundled cpython execution for the JVM All projects in the DL4J ecosystem support Windows, Linux and macOS. Hardware support includes CUDA GPUs (10.0, 10.1, 10.2 except OSX), x86 CPU (x86_64, avx2, avx512), ARM CPU (arm, arm64, armhf) and PowerPC (ppc64le). ## Community Support For support for the project, please go over to https://community.konduit.ai/ ## Using Eclipse Deeplearning4J in your project Deeplearning4J has quite a few dependencies. For this reason we only support usage with a build tool. ```xml <dependencies> <dependency> <groupId>org.deeplearning4j</groupId> <artifactId>deeplearning4j-core</artifactId> <version>1.0.0-M2.1</version> </dependency> <dependency> <groupId>org.nd4j</groupId> <artifactId>nd4j-native-platform</artifactId> <version>1.0.0-M2.1</version> </dependency> </dependencies> ``` Add these dependencies to your pom.xml file to use Deeplearning4J with the CPU backend. A full standalone project example is [available in the example repository](https://github.com/eclipse/deeplearning4j-examples), if you want to start a new Maven project from scratch. ## Code samples Due to DL4J being a multi faceted project with several modules in the mono repo, we recommend looking at the examples for a taste of different usages of the different modules. Below we'll link to examples for each module. 1. ND4J: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/nd4j-ndarray-examples 2. DL4J: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/dl4j-examples 3. Samediff: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/samediff-examples 4. Datavec: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/data-pipeline-examples 5. Python4j: https://deeplearning4j.konduit.ai/python4j/tutorials/quickstart For users looking for being able to run models from other frameworks, see: 1. Onnx: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/onnx-import-examples 2. Tensorflow/Keras: https://github.com/deeplearning4j/deeplearning4j-examples/tree/master/tensorflow-keras-import-examples ## Documentation, Guides and Tutorials You can find the official documentation for Deeplearning4J and the other libraries of its ecosystem at http://deeplearning4j.konduit.ai/. ## Want some examples? We have separate repository with various examples available: https://github.com/eclipse/deeplearning4j-examples ## Building from source It is preferred to use the official pre-compiled releases (see above). But if you want to build from source, first take a look at the prerequisites for building from source here: https://deeplearning4j.konduit.ai/multi-project/how-to-guides/build-from-source. Various instructions for cpu and gpu builds can be found there. Please go to our [forums](https://community.konduit.ai/) for further help. ## Running tests In order to run tests, please see the platform-tests module. This module only runs on jdk 11 (mostly due to spark and bugs with older scala versions + JDK 17) platform-tests allows you to run dl4j for different backends. There are a few properties you can specify on the command line: 1. backend.artifactId: this defaults to nd4j-native and will run tests on cpu,you can specify other backends like nd4j-cuda-11.6 2. dl4j.version: You can change the dl4j version that the tests run against. This defaults to 1.0.0-SNAPSHOT. More parameters can be found here: https://github.com/deeplearning4j/deeplearning4j/blob/c1bf8717e4839c8930e9c43183bf7b94d0cf84dc/platform-tests/pom.xml#L47 ## Running project in Intellij IDEA: 1. Ensure you follow https://stackoverflow.com/questions/45370178/exporting-a-package-from-system-module-is-not-allowed-with-release on jdk 9 or later 2. Ignore all nd4j-shade submodules. Right click on each folder and click: Maven -> Ignore project ## License [Apache License 2.0](LICENSE) ## Commercial Support Deeplearning4J is actively developed by the team at [Konduit K.K.](https://konduit.ai). [If you need any commercial support feel free to reach out to us. at [support@konduit.ai](mailto:support@konduit.ai)
0
itext/itext-java
iText for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow.
accessibility acroform archiving ccpa digital-signature documents encryption gdpr itext library pades pades-standard pdf pdf-generation pdfa pdfua sdk security svg xfdf
<p align="center"> <img src="./assets/iText_Logo_Small.png" alt="Logo iText"> </p> [![Maven Central](https://img.shields.io/maven-central/v/com.itextpdf/itext-core)](https://mvnrepository.com/artifact/com.itextpdf/itext-core) [![AGPL License](https://img.shields.io/badge/license-AGPL-blue.svg)](https://github.com/itext/itext7/blob/master/LICENSE.md) [![GitHub all releases](https://img.shields.io/github/downloads/itext/itext7/total)](https://github.com/itext/itext7/releases/latest) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/itext/itext7) iText Core/Community is a high-performance, battle-tested library that allows you to create, adapt, inspect and maintain PDF documents, allowing you to add PDF functionality to your software projects with ease. It is also available for .[NET][itext7net] (C#). ### The key features of iText Core/Community are: * Core library: * PDF creation with the use of our layout engine * PDF manipulation, e.g. merging multiple PDFs into one, adding new content, ... * PDF digital signing * PDF form creation and manipulation * Working with PDF/A documents * Working with PDF/UA documents * FIPS-compliant cryptography * Barcode generation * SVG support * [Addons:][all products] * Converting XML/HTML & CSS to PDF [repo][pdfhtml], [info][pdfhtmlproduct] * Redacting sensitive information in PDF documents [repo][pdfsweep], [info][pdfsweepproduct] * Support for international character sets (e.g. Arabic, Chinese, Hebrew, Thai, ...) [info][calligraph] * Optimize PDF documents for reduced file size, and increased performance [info][optimizer] * Flattening XFA documents [info][xfa] * PDF debugging [repo][rups], [info][rupsproduct] Want to discover what's possible? Head over to our [Demo Lab](https://itextpdf.com/demos)! It contains a collection of demo applications ready to use online! ### Getting started The easiest way to get started is to use Maven, just add the following entries to your pom.xml file: ```html <properties> <itext.version>8.0.2</itext.version> </properties> <dependencies> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itext-core</artifactId> <version>${itext.version}</version> <type>pom</type> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>bouncy-castle-adapter</artifactId> <version>${itext.version}</version> </dependency> </dependencies> ``` For more advanced use cases, please refer to the [Installation guidelines](https://kb.itextpdf.com/home/it7kb/installation-guidelines). You can also [build iText Community from source][building]. ### Hello PDF! The following example shows how easy it is to create a simple PDF document: ```java package com.itextpdf.hellopdf; import com.itextpdf.kernel.pdf.PdfDocument; import com.itextpdf.kernel.pdf.PdfWriter; import com.itextpdf.layout.Document; import com.itextpdf.layout.element.Paragraph; import java.io.FileNotFoundException; public class HelloPdfApp { public static void main(String[] args) throws FileNotFoundException { try (Document document = new Document(new PdfDocument(new PdfWriter("./hello-pdf.pdf")))) { document.add(new Paragraph("Hello PDF!")); } } } ``` ### Examples This is a small subset of examples to get you started. For more advanced examples, refer to our [Knowledge Base](https://kb.itextpdf.com/home/it7kb/examples) or the following links: [Examples repo](https://github.com/itext/i7js-examples), [Signing examples](https://github.com/itext/i7js-signing-examples). Some of the output PDF files will be incorrectly displayed by the GitHub previewer, so be sure to download them to see the correct results. | Description | Link | |--------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | **Basic layout** | | | Change text properties | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/layout/ParagraphTextWithStyle.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/layout/cmp_paragraphTextWithStyle.pdf) | | Creating a simple table | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/SimpleTable9.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/tables/cmp_simple_table9.pdf) | | Add an image to a PDF document | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/images/MultipleImages.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/images/cmp_multiple_images.pdf) | | Create a list | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/objects/NestedLists.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/objects/cmp_nested_list.pdf) | | Add a watermark | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/events/Watermarking.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/events/cmp_watermarkings.pdf) | | Add links to navigate within a document | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/annotations/AddLinkAnnotation5.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/annotations/cmp_add_link_annotation5.pdf) | | Create a popup annotation | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/annotations/MovePopup.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/annotations/cmp_move_popup.pdf) | | Change font | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/layout/ParagraphTextWithStyle.java) | | Add form fields | [Java](https://kb.itextpdf.com/home/it7kb/examples/forms-in-itext-core-8-0-0) | <br> | | | **General document settings** | | | Change page size and margin | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/layout/PageSizeAndMargins.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/layout/cmp_pageSizeAndMargins.pdf) | | Write PDF to byte array instead of to disk | [Java](https://stackoverflow.com/a/67411657/10015628) | | Change page rotation | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/events/PageRotation.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/events/cmp_page_rotation.pdf) | | Add header and footer | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/events/TextFooter.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/events/cmp_text_footer.pdf) | | Merge documents | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/merge/AddCover1.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/merge/cmp_add_cover.pdf) | | Flatten annotations | [Java](https://kb.itextpdf.com/home/it7kb/examples/high-level-annotation-flattening) | | <br> | | | **PDF/UA, PDF/A** | | | Create PDF/UA document | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/pdfua/PdfUA.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/pdfua/cmp_pdf_ua.pdf) | | Create PDF/A-3 document | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/pdfa/PdfA3.java) | | <br> | | | **FIPS** | | | Enable FIPS | [Java](https://kb.itextpdf.com/home/it7kb/releases/release-itext-core-8-0-0/breaking-changes-for-itext-core-8-0-0/bouncy-castle-changes) | | FIPS SHA3 example | [Java](https://kb.itextpdf.com/home/it7kb/examples/fips-sha3-examples-for-itext-core-8-0-0) | | <br> | | | **Convert HTML and CSS to PDF** | [Link to repo](https://github.com/itext/i7j-pdfhtml) | | Convert simple HTML doc to PDF | [Java](https://kb.itextpdf.com/home/it7kb/ebooks/itext-7-converting-html-to-pdf-with-pdfhtml) | | <br> | | | **Secure redaction of content** | [Link to repo](https://github.com/itext/i7j-pdfsweep) | | Redacting content | [Java](https://kb.itextpdf.com/home/it7kb/examples/removing-content-with-pdfsweep) | | Redact based on regex | [Java](https://itextpdf.com/products/pdf-redaction-pdfsweep) | | <br> | | | **Support complex writing systems** | [Link to docs](https://itextpdf.com/products/pdfcalligraph) | | Add Arabic text | [Java](https://github.com/itext/i7js-examples/blob/master/src/main/java/com/itextpdf/samples/sandbox/typography/arabic/ArabicWordSpacing.java), [PDF](https://github.com/itext/i7js-examples/blob/master/cmpfiles/sandbox/typography/cmp_ArabicWordSpacing.pdf) | | <br> | | | **Optimizing PDFs** | [Link to docs](https://itextpdf.com/products/compress-pdf-pdfoptimizer) | | Reduce size of PDF | [Java](https://itextpdf.com/products/compress-pdf-pdfoptimizer) | | <br> | | | **XFA flattening** | [Link to docs](https://itextpdf.com/products/flatten-pdf-pdfxfa) | | Flatten an XFA document | [Java](https://itextpdf.com/products/flatten-pdf-pdfxfa) | | <br> | | | **RUPS** | [Link to repo](https://github.com/itext/i7j-rups) | | Debug a PDF | [Java](https://github.com/itext/i7j-rups/releases/latest) | ### FAQs, tutorials, etc. ### Check out the [iText Knowledge Base](https://kb.itextpdf.com) for the [iText Jump-start tutorial](https://kb.itextpdf.com/home/it7kb/ebooks/itext-jump-start-tutorial-for-java) and other tutorials, [FAQs](https://kb.itextpdf.com/home/it7kb/faq) and more. For specific information and examples relating to digital signatures and iText, make sure to check the [Digital Signatures Hub](https://kb.itextpdf.com/home/it7kb/digital-signatures-hub). Many common questions have already been answered on [Stack Overflow](https://stackoverflow.com/questions/tagged/itext+itext7), so make sure to also check there. ### Contributing Many people have contributed to **iText Core/Community** over the years. If you've found a bug, a mistake in documentation, or have a hot new feature you want to implement, we welcome your contributions. Small changes or fixes can be submitted as a [Pull Request](https://github.com/itext/itext7/pulls), while for major changes we request you contact us at community@apryse.com so we can better coordinate our efforts and prevent duplication of work. Please read our [Contribution Guidelines][contributing] for details on code submissions, coding rules, and more. ### Licensing **iText** is dual licensed as [AGPL][agpl]/[Commercial software][sales]. AGPL is a free/open-source software license, however, this doesn't mean the software is [gratis][gratis]! The AGPL is a copyleft license, which means that any derivative work must also be licensed under the same terms. If you’re using iText in software or a service which cannot comply with the AGPL terms, we have a commercial license available that exempts you from such obligations. Contact [Sales] for more info. [agpl]: LICENSE.md [building]: BUILDING.md [contributing]: CONTRIBUTING.md [layoutMd]: layout/README.md [itext]: https://itextpdf.com/ [github]: https://github.com/itext/itext7 [latest]: https://github.com/itext/itext7/releases/latest [sales]: https://itextpdf.com/sales [gratis]: https://en.wikipedia.org/wiki/Gratis_versus_libre [rups]: https://github.com/itext/i7j-rups [pdfhtml]: https://github.com/itext/i7j-pdfhtml [pdfsweep]: https://github.com/itext/i7j-pdfsweep [itext7net]: https://github.com/itext/itext7-dotnet [pdfsweepproduct]: https://itextpdf.com/products/pdf-redaction-pdfsweep [optimizer]: https://itextpdf.com/products/compress-pdf-pdfoptimizer [all products]: https://itextpdf.com/products [pdfhtmlproduct]: https://itextpdf.com/products/itext-pdf-html [xfa]: https://itextpdf.com/products/flatten-pdf-pdfxfa [rupsproduct]: https://itextpdf.com/products/rups [calligraph]: https://itextpdf.com/products/pdfcalligraph
0
spring-projects/spring-security
Spring Security
framework java security spring spring-framework
null
0
TooTallNate/Java-WebSocket
A barebones WebSocket client and server implementation written in 100% Java.
null
null
0
alibaba/jvm-sandbox
Real - time non-invasive AOP framework container based on JVM
null
# ![BANNER](https://github.com/alibaba/jvm-sandbox/wiki/img/BANNER.png) [![Build Status](https://travis-ci.org/alibaba/jvm-sandbox.svg?branch=master)](https://travis-ci.org/alibaba/jvm-sandbox) [![codecov](https://codecov.io/gh/alibaba/jvm-sandbox/branch/master/graph/badge.svg)](https://codecov.io/gh/alibaba/jvm-sandbox) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/alibaba/jvm-sandbox.svg)](http://isitmaintained.com/project/alibaba/jvm-sandbox "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/alibaba/jvm-sandbox.svg)](http://isitmaintained.com/project/alibaba/jvm-sandbox "Percentage of issues still open") > JVM沙箱容器,一种JVM的非侵入式运行期AOP解决方案<br/> > Real - time non-invasive AOP framework container based on JVM ## 目标群体 - [BTRACE](https://github.com/btraceio/btrace)好强大,也曾技痒想做一个更便捷、更适合自己的问题定位工具,既可支持线上链路监控排查,也可支持单机版问题定位。 - 有时候突然一个问题反馈上来,需要入参才能完成定位,但恰恰没有任何日志,甚至出现在别人的代码里,好想开发一个工具可以根据需要动态添加日志,最好还能按照业务ID进行过滤。 - 系统间的异常模拟可以使用的工具很多,可是系统内的异常模拟怎么办,加开关或是用AOP在开发系统中实现,好想开发一个更优雅的异常模拟工具,既能模拟系统间的异常,又能模拟系统内的异常。 - 好想获取行调用链路数据,可以用它识别场景、覆盖率统计等等,覆盖率统计工具不能原生支持,统计链路数据不准确。想自己开发一个工具获取行链路数据。 - 我想开发录制回放、故障模拟、动态日志、行链路获取等等工具,就算我开发完成了,这些工具底层实现原理相同,同时使用,要怎么消除这些工具之间的影响,怎么保证这些工具动态加载,怎么保证动态加载/卸载之后不会影响其他工具,怎么保证在工具有问题的时候,快速消除影响,代码还原 如果你有以上研发诉求,那么你就是JVM-SANDBOX(以下简称沙箱容器)的潜在客户。沙箱容器提供 1. 动态增强类你所指定的类,获取你想要的参数和行信息甚至改变方法执行 2. 动态可插拔容器框架 ## 项目简介 **JVM-SANDBOX(沙箱)实现了一种在不重启、不侵入目标JVM应用的AOP解决方案。** ### 沙箱的特性 1. `无侵入`:目标应用无需重启也无需感知沙箱的存在 2. `类隔离`:沙箱以及沙箱的模块不会和目标应用的类相互干扰 3. `可插拔`:沙箱以及沙箱的模块可以随时加载和卸载,不会在目标应用留下痕迹 4. `多租户`:目标应用可以同时挂载不同租户下的沙箱并独立控制 5. `高兼容`:支持JDK[6,11] ### 沙箱常见应用场景 - 线上故障定位 - 线上系统流控 - 线上故障模拟 - 方法请求录制和结果回放 - 动态日志打印 - 安全信息监测和脱敏 *JVM-SANDBOX还能帮助你做很多很多,取决于你的脑洞有多大了。* ### 实时无侵入AOP框架 在常见的AOP框架实现方案中,有静态编织和动态编织两种。 1. **静态编织**:静态编织发生在字节码生成时根据一定框架的规则提前将AOP字节码插入到目标类和方法中,实现AOP; 2. **动态编织**:动态编织则允许在JVM运行过程中完成指定方法的AOP字节码增强.常见的动态编织方案大多采用重命名原有方法,再新建一个同签名的方法来做代理的工作模式来完成AOP的功能(常见的实现方案如CgLib),但这种方式存在一些应用边界: - **侵入性**:对被代理的目标类需要进行侵入式改造。比如:在Spring中必须是托管于Spring容器中的Bean - **固化性**:目标代理方法在启动之后即固化,无法重新对一个已有方法进行AOP增强 要解决`无侵入`的特性需要AOP框架具备 **在运行时完成目标方法的增强和替换**。在JDK的规范中运行期重定义一个类必须准循以下原则 1. 不允许新增、修改和删除成员变量 2. 不允许新增和删除方法 3. 不允许修改方法签名 JVM-SANDBOX属于基于Instrumentation的动态编织类的AOP框架,**通过精心构造了字节码增强逻辑,使得沙箱的模块能在不违反JDK约束情况下实现对目标应用方法的`无侵入`运行时AOP拦截**。 ## 核心原理 ### 事件驱动 在沙箱的世界观中,任何一个Java方法的调用都可以分解为`BEFORE`、`RETURN`和`THROWS`三个环节,由此在三个环节上引申出对应环节的事件探测和流程控制机制。 ```java // BEFORE try { /* * do something... */ // RETURN return; } catch (Throwable cause) { // THROWS } ``` 基于`BEFORE`、`RETURN`和`THROWS`三个环节事件分离,沙箱的模块可以完成很多类AOP的操作。 1. 可以感知和改变方法调用的入参 2. 可以感知和改变方法调用返回值和抛出的异常 3. 可以改变方法执行的流程 - 在方法体执行之前直接返回自定义结果对象,原有方法代码将不会被执行 - 在方法体返回之前重新构造新的结果对象,甚至可以改变为抛出异常 - 在方法体抛出异常之后重新抛出新的异常,甚至可以改变为正常返回 ### 类隔离策略 沙箱通过自定义的SandboxClassLoader破坏了双亲委派的约定,实现了和目标应用的类隔离。所以不用担心加载沙箱会引起应用的类污染、冲突。各模块之间类通过ModuleJarClassLoader实现了各自的独立,达到模块之间、模块和沙箱之间、模块和应用之间互不干扰。 ![jvm-sandbox-classloader](https://github.com/alibaba/jvm-sandbox/wiki/img/jvm-sandbox-classloader.png) ### 类增强策略 沙箱通过在BootstrapClassLoader中埋藏的Spy类完成目标类和沙箱内核的通讯 ![jvm-sandbox-enhance-class](https://github.com/alibaba/jvm-sandbox/wiki/img/jvm-sandbox-enhance-class.jpg) ### 整体架构 ![jvm-sandbox-architecture](https://github.com/alibaba/jvm-sandbox/wiki/img/jvm-sandbox-architecture.png) ## 快速安装 - **下载并安装或自行打包** ```shell # 下载最新版本的JVM-SANDBOX,oss已到期,或者oss链接不可访问时,可选择自行打包 wget https://ompc.oss-cn-hangzhou.aliyuncs.com/jvm-sandbox/release/sandbox-1.3.3-bin.zip # 解压 unzip sandbox-1.3.3-bin.zip ``` ```shell #自行打包 cd bin ./sandbox-packages.sh #target路径下有多种构建件类型,选择一个合适的使用 cd ../target ``` - **挂载目标应用** ```shell # 进入沙箱执行脚本 cd sandbox/bin # 目标JVM进程33342 ./sandbox.sh -p 33342 ``` - **挂载成功后会提示** ```shell ./sandbox.sh -p 33342 NAMESPACE : default VERSION : 1.2.0 MODE : ATTACH SERVER_ADDR : 0.0.0.0 SERVER_PORT : 55756 UNSAFE_SUPPORT : ENABLE SANDBOX_HOME : /Users/vlinux/opt/sandbox SYSTEM_MODULE_LIB : /Users/vlinux/opt/sandbox/module USER_MODULE_LIB : ~/.sandbox-module; SYSTEM_PROVIDER_LIB : /Users/vlinux/opt/sandbox/provider EVENT_POOL_SUPPORT : DISABLE ``` - **卸载沙箱** ```shell ./sandbox.sh -p 33342 -S jvm-sandbox[default] shutdown finished. ``` ## 项目构建 当你修改了sandbox的代码后,想打包成自己需要的发行版,可以执行以下命令 > 脚本执行目录默认为项目主目录,后续不在另外说明 ```shell cd bin ./sandbox-package.sh ``` 命令执行成功后会在target目录下生成`sandbox-<版本号>-bin.zip`文件 ### 构建注意事项 1. 必须用JDK1.8进行构建,工程自身和maven插件中使用了tools.jar 2. 必须在Linux/Mac/Unix下进行构建,有部分测试用例没有考虑好$USER_HOME的目录路径在windows下的特殊性,会导致测试用例跑不通过。 ### 修改sandbox版本号 sandbox的版本号需要修改所有的pom文件以及`.//sandbox-core/src/main/resources/com/alibaba/jvm/sandbox/version`,这里有一个脚本方便执行 ```shell cd bin ./set-version.sh -s 1.4.0 ``` 脚本第一个参数是`[s|r]` - **s** : SNAPSHOT版,会自动在版本号后边追加`-SNAPSHOT` - **r** : 正式版 ### 本地仓库安装api包 如果本次你修改了sandbox-api、sandbox-common-api、sandbox-module-starter等本应该发布到中央仓库的包,但你需要本地测试验证,可以执行以下命令 ```shell mvn clean install ``` 以下四个包将会安装到本地manven仓库 - sandbox - sandbox-api - sandbox-common-api - sandbox-module-starter - sandbox-provider-api ## 项目背景 2014年[GREYS](https://github.com/oldmanpushcart/greys-anatomy)第一版正式发布,一路看着他从无到有,并不断优化强大,感慨羡慕之余,也在想GREYS是不是只能做问题定位。 2015年开始根据GREYS的底层代码完成了人生的第一个字节码增强工具——动态日志。之后又萌生了将其拆解成*录制回放*、*故障模拟*等工具的想法。扪心自问,我是想以一人一个团队的力量建立大而全的工具平台,还是做一个底层中台,让每一位技术人员都可以在它的基础上快速的实现业务功能。我选择了后者。 ## 相关文档 - **[WIKI](https://github.com/alibaba/jvm-sandbox/wiki/Home)**
0
apache/inlong
Apache InLong - a one-stop, full-scenario integration framework for massive data
data-streaming event-streaming framework full-scenario-service inlong massive-data-integration one-stop-service
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> # [A one-stop, full-scenario integration framework for massive data](https://inlong.apache.org/) [![GitHub Actions](https://github.com/apache/inlong/actions/workflows/ci_build.yml/badge.svg)](https://github.com/apache/inlong/actions) [![CodeCov](https://codecov.io/gh/apache/inlong/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/inlong) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.inlong/inlong/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Corg.apache.inlong) [![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://inlong.apache.org/download/) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Twitter](https://img.shields.io/twitter/url?label=Follow%20ApacheInlong&style=social&url=https%3A%2F%2Ftwitter.com%2FApacheInlong)](https://twitter.com/ApacheInlong) [![Slack](https://img.shields.io/badge/%20Slack-InLong%20Channel-blueviolet)](https://the-asf.slack.com/archives/C01QAG6U00L) - [What is Apache InLong?](#what-is-apache-inlong) - [Features](#features) - [When should I use InLong?](#when-should-i-use-inlong) - [Build InLong](#build-inlong) - [Deploy InLong](#deploy-inlong) - [Contribute to InLong](#contribute-to-inlong) - [Contact Us](#contact-us) - [Documentation](#documentation) - [License](#license) # What is Apache InLong? | **Stargazers Over Time** | **Contributors Over Time** | |:-----------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | [![Stargazers over time](https://starchart.cc/apache/inlong.svg)](https://starchart.cc/apache/inlong) | [![Contributor Over Time](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorOverTime&repo=apache/inlong)](https://git-contributor.com?chart=contributorOverTime&repo=apache/inlong) | [Apache InLong](https://inlong.apache.org) is a one-stop, full-scenario integration framework for massive data that supports `Data Ingestion`, `Data Synchronization` and `Data Subscription`, and it provides automatic, secure and reliable data transmission capabilities. InLong also supports both batch and stream data processing at the same time, which offers great power to build data analysis, modeling and other real-time applications based on streaming data. InLong (应龙) is a divine beast in Chinese mythology who guides the river into the sea, and it is regarded as a metaphor of the InLong system for reporting data streams. InLong was originally built at Tencent, which has served online businesses for more than 8 years, to support massive data (data scale of more than 80 trillion pieces of data per day) reporting services in big data scenarios. The entire platform has integrated 5 modules: Ingestion, Convergence, Caching, Sorting, and Management, so that the business only needs to provide data sources, data service quality, data landing clusters and data landing formats, that is, the data can be continuously pushed from the source to the target cluster, which greatly meets the data reporting service requirements in the business big data scenario. For getting more information, please visit our project documentation at https://inlong.apache.org/. ![inlong-structure-en.png](https://github.com/apache/inlong-website/blob/master/static/img/inlong-structure-en.png) ## Features Apache InLong offers a variety of features: * **Ease of Use**: a SaaS-based service platform. Users can easily and quickly report, transfer, and distribute data by publishing and subscribing to data based on topics. * **Stability & Reliability**: derived from the actual online production environment. It delivers high-performance processing capabilities for 10 trillion-level data streams and highly reliable services for 100 billion-level data streams. * **Comprehensive Features**: supports various types of data access methods and can be integrated with different types of Message Queue (MQ). It also provides real-time data extract, transform, and load (ETL) and sorting capabilities based on rules. InLong also allows users to plug features to extend system capabilities. * **Service Integration**: provides unified system monitoring and alert services. It provides fine-grained metrics to facilitate data visualization. Users can view the running status of queues and topic-based data statistics in a unified data metric platform. Users can also configure the alert service based on their business requirements so that users can be alerted when errors occur. * **Scalability**: adopts a pluggable architecture that allows you to plug modules into the system based on specific protocols. Users can replace components and add features based on their business requirements. ## When should I use InLong? InLong aims to provide a one-stop, full-scenario integration framework for massive data, users can easily build stream-based data applications. It supports `Data Ingestion`, `Data Synchronization` and `Data Subscription` at the same time, and is suitable for environments that need to quickly build a data reporting platform, as well as an ultra-large-scale data reporting environment that InLong is very suitable for, and an environment that needs to automatically sort and land the reported data. You can use InLong in the following ways: - Integrate InLong, manage data streams through [SDK](https://inlong.apache.org/docs/next/sdk/manager-sdk/example). - Use [the InLong command-line tool](https://inlong.apache.org/docs/next/user_guide/command_line_tools) to view and create data streams. - Visualize your operations on [InLong dashboard](https://inlong.apache.org/docs/next/user_guide/dashboard_usage). ## Supported Data Nodes (Updating) | Type | Name | Version | |--------------|-------------------|------------------------------| | Extract Node | Auto Push | None | | | File | None | | | Kafka | 2.x | | | MongoDB | >= 3.6 | | | MQTT | >= 3.1 | | | MySQL | 5.6, 5.7, 8.0.x | | | Oracle | 11,12,19 | | | PostgreSQL | 9.6, 10, 11, 12 | | | Pulsar | 2.8.x | | | Redis | 2.6.x | | | SQLServer | 2012, 2014, 2016, 2017, 2019 | | Load Node | Auto Consumption | None | | | ClickHouse | 20.7+ | | | Elasticsearch | 6.x, 7.x | | | Greenplum | 4.x, 5.x, 6.x | | | HBase | 2.2.x | | | HDFS | 2.x, 3.x | | | Hive | 1.x, 2.x, 3.x | | | Iceberg | 0.12.x | | | Hudi | 0.12.x | | | Kafka | 2.x | | | MySQL | 5.6, 5.7, 8.0.x | | | Oracle | 11, 12, 19 | | | PostgreSQL | 9.6, 10, 11, 12 | | | SQLServer | 2012, 2014, 2016, 2017, 2019 | | | TDSQL-PostgreSQL | 10.17 | | | Doris | >= 0.13 | | | StarRocks | >= 2.0 | | | Kudu | >= 1.12.0 | | | Redis | >= 3.0 | ## Build InLong More detailed instructions can be found at [Quick Start](https://inlong.apache.org/docs/next/quick_start/how_to_build) section in the documentation. Requirements: - Java [JDK 8](https://adoptopenjdk.net/?variant=openjdk8) - Maven 3.6.1+ - [Docker](https://docs.docker.com/engine/install/) 19.03.1+ CodeStyle: ``` mvn spotless:apply ``` Compile and install: ``` mvn clean install -DskipTests ``` (Optional) Compile using docker image: ``` docker pull maven:3.6-openjdk-8 docker run -v `pwd`:/inlong -w /inlong maven:3.6-openjdk-8 mvn clean install -DskipTests ``` after compile successfully, you could find distribution file at `inlong-distribution/target`. ## Deploy InLong - [Standalone for InLong](https://inlong.apache.org/docs/next/deployment/standalone) - [Docker Compose](https://inlong.apache.org/docs/next/deployment/docker) - [InLong on Kubernetes](https://inlong.apache.org/docs/next/deployment/k8s) - [Bare Metal](https://inlong.apache.org/docs/next/deployment/bare_metal) ## Develop InLong - [Agent Plugin extends a Extract Data Node](https://inlong.apache.org/docs/next/design_and_concept/how_to_write_plugin_agent) - [Sort Plugin extends a Data Node](https://inlong.apache.org/docs/next/design_and_concept/how_to_extend_data_node_for_sort) - [Manager Plugin extends a Data Node](https://inlong.apache.org/docs/next/design_and_concept/how_to_extend_data_node_for_manager) - [Dashboard Plugin extends a Data Node page](https://inlong.apache.org/docs/next/design_and_concept/how_to_write_plugin_dashboard) ## Contribute to InLong - Report any issue on [GitHub Issue](https://github.com/apache/inlong/issues) - Code pull request according to [How to contribute](https://inlong.apache.org/community/how-to-contribute). ## Contact Us - Join Apache InLong mailing lists: | Name | Scope | | | | |:------------------------------------------------------------------------------|:--------------------------------|:----------------------------------------------------------------|:--------------------------------------------------------------------|:-----------------------------------------------------------------------------| | [dev@inlong.apache.org](mailto:dev@inlong.apache.org) | Development-related discussions | [Subscribe](mailto:dev-subscribe@inlong.apache.org) | [Unsubscribe](mailto:dev-unsubscribe@inlong.apache.org) | [Archives](http://mail-archives.apache.org/mod_mbox/inlong-dev/) | - Ask questions on [Apache InLong Slack](https://the-asf.slack.com/archives/C01QAG6U00L) ## Documentation - Home page: https://inlong.apache.org/ - Issues: https://github.com/apache/inlong/issues ## License © Contributors Licensed under an [Apache-2.0](LICENSE) license.
0
SherlockGougou/BigImageViewPager
🔥🔥🔥 BigImage ImageView ViewPager 支持超长图、超大图的图片浏览器,优化内存,支持手势放大、下拉关闭、查看原图、加载百分比、保存图片等功能。
bigimage image imageview
<img src="https://yitaoyitao.oss-cn-qingdao.aliyuncs.com/app/img/temp/test/cover.png"/> ### BigImage + ImageView + ViewPager = BigImageViewPager BigImageViewPager是一个图片浏览器框架,支持超大图、超长图、动图,支持手势,支持查看原图、下载、加载百分比进度显示。采用区块复用加载,优化内存占用,有效避免OOM。 ### 注意:本框架支持网络图片、本地图片、支持gif动图、支持Android 13。 # 推荐扫描二维码进行安装体验: <p align="center"> <img src="https://www.pgyer.com/app/qrcode/bigimageviewpager" width="200"/> <img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/bfd23ce0042e431bb200d7e5e2fca87d~tplv-k3u1fbpfcp-zoom-1.image" width="200"/> </p> <p align="center"> <img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a045eaa577834b00a345b409b81826f8~tplv-k3u1fbpfcp-watermark.image" width="200"/> <img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a0a1125f397b46619c9beea59691eaf5~tplv-k3u1fbpfcp-watermark.image" width="200"/> <img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/414c415380f742c4918c4b705ffc2f4f~tplv-k3u1fbpfcp-watermark.image" width="200"/> <img src="https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ffb4cfcbaecf43488d7ae671c7c02d3d~tplv-k3u1fbpfcp-watermark.image" width="200"/> </p> ## ⭐️⭐️Star数量曲线⭐️⭐️ [![Star History Chart](https://api.star-history.com/svg?repos=SherlockGougou/BigImageViewPager&type=Date)](https://star-history.com/#SherlockGougou/BigImageViewPager&Date) # 用法 ### 一、添加依赖 #### Step 1. 在你project层级的build.gradle中,添加仓库地址: ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` #### Step 2. 在你主module的build.gradle中添加依赖: ``` dependencies { // 添加本框架 BigImageViewPager https://github.com/SherlockGougou/BigImageViewPager // 此处展示的是最新版本 implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-7.3.0' // 另外还需要依赖 glide implementation 'com.github.bumptech.glide:glide:4.11.0' implementation 'com.github.bumptech.glide:okhttp3-integration:4.11.0' // 下面两个根据自己的语言二选一: // 纯java用户: annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' // 纯kotlin、或者kotlin、java混编用户: kapt 'com.github.bumptech.glide:compiler:4.11.0' } ``` #### Step 3. 在你的主module里,添加自定义AppGlideModule。你需要继承AppGlideModule并添加以下代码到对应的重载方法中,例如: ``` @GlideModule public class MyAppGlideModule extends AppGlideModule { @Override public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) { super.registerComponents(context, glide, registry); // 替换底层网络框架为okhttp3,这步很重要!如果不添加会无法正常显示原图的加载百分比,或者卡在1% // 如果你的app中已经存在了自定义的GlideModule,你只需要把这一行代码,添加到对应的重载方法中即可。 registry.replace(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(ProgressManager.getOkHttpClient())); } } ``` #### Step 4. 以上操作完成后,请点击顶部按钮:Build->Rebuild Project,等待重建完成,至此,框架添加完成。如遇到任何问题,请附带截图提issues,我会及时回复,或添加底部QQ群,进行交流。 ## 二、调用方式 #### 1:生成图片源:(如果你有缩略图和原图两种路径,请使用下面的方式,进行图片List的生成;如果你是本地图片或者没有原图缩略图之分,可以跳过这一步) ``` ImageInfo imageInfo; final List<ImageInfo> imageInfoList = new ArrayList<>(); for (String image : images) { imageInfo = new ImageInfo(); imageInfo.setOriginUrl(url);// 原图url imageInfo.setThumbnailUrl(thumbUrl);// 缩略图url imageInfoList.add(imageInfo); } ``` #### 2:最简单的调用方式: ``` // 最简单的调用,即可实现大部分需求,如需定制,可参考下一步的自定义代码: ImagePreview .getInstance() // 上下文,必须是activity,不需要担心内存泄漏,本框架已经处理好; .setContext(MainActivity.this) // 设置从第几张开始看(索引从0开始) .setIndex(0) //================================================================================================= // 有三种设置数据集合的方式,根据自己的需求进行三选一: // 1:第一步生成的imageInfo List .setImageInfoList(imageInfoList) // 2:直接传url List //.setImageList(List<String> imageList) // 3:只有一张图片的情况,可以直接传入这张图片的url //.setImage(String image) //================================================================================================= // 开启预览 .start(); // 默认配置为: // 显示顶部进度指示器、 // 显示右侧下载按钮、 // 隐藏关闭按钮、 // 开启点击图片关闭、 // 开启下拉图片关闭、 // 加载策略为全自动 ``` ##### 接口说明: 方法名 | 功能 | 说明 -|-|- |setBigImageClickListener|设置图片点击事件|默认null| |setBigImageLongClickListener|设置图片长按事件|默认null| |setBigImagePageChangeListener|设置页面切换监听|默认null| |setDownloadClickListener|设置点击下载监听|默认null,可选是否拦截下载行为| |setDownloadListener|设置下载过程toast|不设置时使用默认toast| |setCloseIconResId|设置关闭按钮的Drawable资源id|默认内置R.drawable.ic_action_close| |setContext|设置上下文|不允许为空| |setDownIconResId|设置下载按钮的Drawable资源id|R.drawable.icon_download_new| |setEnableClickClose|设置是否开启点击图片退出|默认true| |setEnableDragClose|设置是否开启下拉图片退出|默认true| |setEnableUpDragClose|设置是否开启上拉图片退出|默认false| |setEnableDragCloseIgnoreScale|是否忽略缩放启用拉动关闭|默认true| |setErrorPlaceHolder|设置加载失败的占位图资源id|默认内置R.drawable.load_failed| |setFolderName|设置下载到的文件夹名称|默认保存Picture文件夹中| |setImage|设置单张图片地址|三选一| |setImageInfoList|设置图片Bean集合|三选一| |setImageList|设置图片地址集合|三选一| |setIndex|设置开始的索引|从0开始| |setLoadStrategy|设置加载策略|详见加载策略说明| |setLongPicDisplayMode|设置长图的展示模式|默认缩小展示,可选宽度撑满| |setOnOriginProgressListener|设置原图加载进度回调|加载原图的百分比进度| |setProgressLayoutId|自定义百分比布局|详细见demo| |setShowCloseButton|设置是否显示关闭按钮|默认false,不显示| |setShowDownButton|设置是否显示下载按钮|默认true,显示| |setShowIndicator|设置是否显示顶部的进度指示器|默认true,显示| |setIndicatorShapeResId|设置顶部指示器背景shape|默认自带灰色圆角shape,设置为0时不显示背景| |setShowErrorToast|设置是否显示加载失败的Toast|默认false,不显示| |setZoomTransitionDuration|设置图片缩放动画时长|默认200ms| |setPreviewLayoutResId|设置自定义的预览页面布局id|默认R.layout.sh_layout_preview| |setOnPageFinishListener|页面关闭回调|默认null| |finish|关闭页面|自主控制关闭页面| |start|开启看图|最后调用| ##### 3:自定义多种配置: 请参考Demo:https://github.com/SherlockGougou/BigImageViewPager/blob/master/sample/src/main/java/cc/shinichi/bigimageviewpager/MainActivity.java#L299 ##### 4:加载策略介绍 ``` public enum LoadStrategy { /** * 仅加载原图;会强制隐藏查看原图按钮 */ AlwaysOrigin, /** * 仅加载普清;会强制隐藏查看原图按钮 */ AlwaysThumb, /** * 根据网络自适应加载,WiFi原图,流量普清;会强制隐藏查看原图按钮 */ NetworkAuto, /** * 手动模式:默认普清,点击按钮再加载原图;会根据原图、缩略图url是否一样来判断是否显示查看原图按钮 */ Default /** * 全自动模式:WiFi原图,流量下默认普清,可点击按钮查看原图 */ Auto } 注:以上所有方式,如果原图缓存存在的情况,会默认加载原图缓存保证清晰度;且原图缓存只要存在,就不会显示查看原图按钮。 ``` ##### 5:完全自定义预览界面布局: 详细操作请参考Demo:https://github.com/SherlockGougou/BigImageViewPager/blob/master/sample/src/main/java/cc/shinichi/bigimageviewpager/MainActivity.java#L470 ##### 6:Q&A 1.查看原图卡在1%? 答:请仔细查看以上第三步的操作。 # GitHub源码 https://github.com/SherlockGougou/BigImageViewPager # 致谢 - 本框架核心是开源作者 [davemorrissey](https://github.com/davemorrissey) 的 [subsampling-scale-image-view](https://github.com/davemorrissey/subsampling-scale-image-view),在此感谢他的付出! 对原作感兴趣的,可以去研究学习 ---> [传送门点我](https://github.com/davemorrissey/subsampling-scale-image-view) - okhttp 进度监听部分代码,借鉴使用了[GlideImageView](https://github.com/sunfusheng/GlideImageView),在此对其表示感谢,喜欢其作品的可以移步去查看学习 # Bug反馈、增加需求,加 QQ 交流群 <p align="center"> <img src="https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/17de72a7d15445f3b9a9591647af3c9b~tplv-k3u1fbpfcp-watermark.image" width="200"/> </p> # 如果有帮助到你,欢迎请我喝杯☕️: <p align="center"> <img src="https://github.com/SherlockGougou/BigImageViewPager/assets/17920617/ad358723-6c5c-4878-81b9-ec77b17cda09" width="400"/> <img src="https://github.com/SherlockGougou/BigImageViewPager/assets/17920617/507f28d2-c5d0-449c-bbe6-a5e022484130" width="400"/> </p> # LICENSE ``` Copyright (C) 2018 SherlockGougou qinglingou@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```
0
LMAX-Exchange/disruptor
High Performance Inter-Thread Messaging Library
concurrency disruptor java
null
0
tuguangquan/mybatis
mybatis源码中文注释
null
null
0
jeecgboot/JimuReport
🔥「数据可视化报表工具」类似excel操作风格,在线拖拽完成报表设计!功能涵盖: 报表设计、图形报表、打印设计、大屏设计等,完全免费!秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、解决各类报表难题。
bi bigscreen birt data-analysis data-visualization datav echart echarts highcharts ireport jasperreport java jfreechart metabase observability print redash report superset tableau
# JimuReport - 积木报表(开源免费的低代码报表) v1.7.4 | 2024-04-01 [![](https://img.shields.io/badge/Author-北京国炬软件-orange.svg)](http://jimureport.com) [![](https://img.shields.io/badge/version-1.7.4-brightgreen.svg)](https://github.com/zhangdaiscott/JimuReport) [![](https://img.shields.io/badge/Blog-官方博客-blue.svg)](https://jeecg.blog.csdn.net) [![GitHub stars](https://img.shields.io/github/stars/zhangdaiscott/JimuReport.svg?style=social&label=Stars)](https://github.com/zhangdaiscott/JimuReport) [![GitHub forks](https://img.shields.io/github/forks/zhangdaiscott/JimuReport.svg?style=social&label=Fork)](https://github.com/zhangdaiscott/JimuReport) 一款免费的数据可视化报表,含报表和大屏设计,像搭建积木一样在线设计报表!功能涵盖,数据报表、打印设计、图表报表、大屏设计等! - Web 版报表设计器,类似于excel操作风格,通过拖拽完成报表设计。 - 秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、节省成本、解决各类报表难题。 - 领先的企业级Web报表软件,采用纯Web在线技术,专注于解决企业报表快速制作难题。 ``` 专注于开源,打造“专业 易用 智能 低代码”的数据可视化工具 开源协议:`功能永久免费、可以商用、代码不开放(大屏设计暂时不提供离线版本)` ``` 快速体验: [http://jimureport.com](http://jimureport.com "jimureport.com") 反馈问题 ----------------------------------- > 发现bug 请在github上[发issue](https://github.com/jeecgboot/JimuReport/issues/new) 快速集成 ----------------------------------- #### 一、引入JimuReport依赖 - springboot2依赖 ``` <dependency> <groupId>org.jeecgframework.jimureport</groupId> <artifactId>jimureport-spring-boot-starter</artifactId> <version>1.7.4</version> </dependency> ``` 通过 http://jimureport.com/doc/log 查询最新版本号 - 按需引入mongo和redis支持包 ``` <dependency> <groupId>org.jeecgframework.jimureport</groupId> <artifactId>jimureport-nosql-starter</artifactId> <version>1.6.0</version> </dependency> ``` - springboot3依赖 ``` <dependency> <groupId>org.jeecgframework.jimureport</groupId> <artifactId>jimureport-spring-boot3-starter-fastjson2</artifactId> <version>1.7.3</version> </dependency> ``` #### 二、初始化SQL及项目配置 https://help.jeecg.com/jimureport/quick.html 开发文档 ----------------------------------- - 官方网站: http://jimureport.com - 官方文档: https://help.jeecg.com/jimureport - 视频教程: http://jimureport.com/doc/video - QQ交流群: ③596660273、②929646317(已满)、①212391162(已满) 产生背景 ----------------------------------- 报表是企业IT服务必备的一项需求,但是行业内并没有一个免费好用的报表,大部分免费的报表功能较弱也不够智能,商业报表又很贵,所以有了研发一套免费报表的初衷。 做一个什么样的报表呢?随着低代码概念的兴起,原先通过报表工具设计模板,再与系统集成的模式已经落伍,现在追求的是完全在线设计,傻瓜式的操作,实现简单易用又智能的报表! 为什么选择 JimuReport? ----------------------------------- > 永久免费,支持各种复杂报表,并且傻瓜式在线设计,非常的智能,低代码时代,这个是你的首选! - 采用SpringBoot的脚手架项目,都可以快速集成 - Web 版设计器,类似于excel操作风格,通过拖拽完成报表设计 - 通过SQL、API等方式,将数据源与模板绑定。同时支持表达式,自动计算合计等功能,使计算工作量大大降低 - 开发效率很高,傻瓜式在线报表设计,一分钟设计一个报表,又简单又强大 - 支持 ECharts,目前支持28种图表,在线拖拽设计,支持SQL和API两种数据源 - 支持分组、交叉,合计、表达式等复杂报表 - 支持打印设计(支持套打、背景打印等)可设置打印边距、方向、页眉页脚等参数 一键快速打印 同时可实现发票套打,不动产证等精准、无缝打印 - 大屏设计器支持几十种图表样式,可自由拼接、组合,设计炫酷大屏 - 可设计各种类型的单据、大屏,如出入库单、销售单、财务报表、合同、监控大屏、旅游数据大屏等 免安装版和docker版本 ----------------------------------- - http://jimureport.com/download 数据库兼容 ----------------------------------- 支持含常规、国产、大数据等28种数据库 | 数据库 | 支持 | | --- | --- | | MySQL | √ | | Oracle、Oracle9i | √ | | SqlServer、SqlServer2012 | √ | | PostgreSQL | √ | | DB2、Informix | √ | | MariaDB | √ | | SQLite、Hsqldb、Derby、H2 | √ | | 达梦、人大金仓、神通 | √ | | 华为高斯、虚谷、瀚高数据库 | √ | | 阿里云PolarDB、PPAS、HerdDB | √ | | Hive、HBase、CouchBase | √ | 未提供脚本的数据库,可以参考 [文档](https://my.oschina.net/jeecg/blog/4905722) 自己转。 捐赠 ----------------------------------- 如果觉得还不错,请作者喝杯咖啡吧 ☺ ![输入图片说明](https://static.oschina.net/uploads/img/201903/08155608_0EFX.png "在这里输入图片标题") 授权协议 ----------------------------------- 开源版本遵循 LGPL 条款发布,如果您不能接受 LGPL,并且需要将该项目用于商业用途且不想保留版权信息(预览“Powered by 积木报表”等版权及链接), 为保障您的合法权益,需购买[商业授权](http://jimureport.com/vip) 报表设计效果 ----------------------------------- - 数据可视化(专业一流,数据可视化,解决各类报表难题) ![](https://oscimg.oschina.net/oscnet/up-a2a8557722593e6c5a5e8f015a0df2b70e9.png) - 报表设计器(完全在线设计,简单易用) ![](https://oscimg.oschina.net/oscnet/up-752b454f64ed87c798b3e8a083fbd6622d4.gif) - 打印设计(支持套打、背景打印) ![](https://oscimg.oschina.net/oscnet/up-9b6cd73719de68e0e45e1cf95cd6104a103.png) ![](https://oscimg.oschina.net/oscnet/up-8863ea4e67c02dbd844bb8022652f1be651.png) - 数据报表(支持分组、交叉,合计等复杂报表) ![](https://oscimg.oschina.net/oscnet/up-fe2ac0dfc3933734961924de0538b3049d2.png) ![](https://oscimg.oschina.net/oscnet/up-be956cbc19287e4df9cc46c9d15e96da99d.png) - 图形报表(目前支持28种图表) ![](https://oscimg.oschina.net/oscnet/up-3eda428ef182cb64a1a8e132e4bfeb87718.png) ![](https://oscimg.oschina.net/oscnet/up-22096123c5b6a10a801967c33cc33a7af11.png) 大屏设计效果 ----------------------------------- ![](https://oscimg.oschina.net/oscnet/up-402a6034124474bfef8dfc5b4b2bac1ce5c.png) ![](https://oscimg.oschina.net/oscnet/up-6f7ba2e2ebbeea0d203db8d69fd87644c9f.png) ![](https://oscimg.oschina.net/oscnet/up-ee8d34f318da466b8a6070a6e3111d12ce7.png) ![](https://oscimg.oschina.net/oscnet/up-826f13c88f23c24ff218687f57f03d802a8.png) ![](https://oscimg.oschina.net/oscnet/up-61dfc52c383f86a4055e20d030503bef93c.png) ![](https://oscimg.oschina.net/oscnet/up-3aabd991c6c5af43f35b204d3ec94caf468.png) ![](https://oscimg.oschina.net/oscnet/up-3b75fde569ab528d8607596e147b8bb7d5e.png) ![](https://oscimg.oschina.net/oscnet/up-3b8d034341d0190156d63484ce09a863c9c.png) 仪表盘设计器 ----------------------------------- ![](https://oscimg.oschina.net/oscnet/up-9c9d41288c31398d76b390bdd400f13a582.png) ![](https://oscimg.oschina.net/oscnet/up-8ebff9357b6a22161f668586af28be31488.png) ![](https://oscimg.oschina.net/oscnet/up-fad98d42b2cf92f92a903c9cff7579f18ec.png) ![](https://oscimg.oschina.net/oscnet/up-4be5b44bf771d8c55aba2adf9ae074eac18.png) ![](https://oscimg.oschina.net/oscnet/up-57676eb5dcf4726933e0f6e429a4b2e31a9.png) ![](https://oscimg.oschina.net/oscnet/up-7938331a342ba363a9691d76a53f34298fc.png) 功能清单 ----------------------------------- 更多功能清单: [http://jimureport.com/plan](http://jimureport.com/plan) ``` ├─报表设计器 │ ├─数据源 │ │ ├─支持多种数据源,如Oracle,MySQL,SQLServer,PostgreSQL等主流的数据库 │ │ ├─支持SQL编写页面智能化,可以看到数据源下面的表清单和字段清单 │ │ ├─支持参数 │ │ ├─支持但数据源和多数数据源设置 │ ├─单元格格式 │ │ ├─边框 │ │ ├─字体大小 │ │ ├─字体颜色 │ │ ├─背景色 │ │ ├─字体加粗 │ │ ├─支持水平和垂直的分散对齐 │ │ ├─支持文字自动换行设置 │ │ ├─图片设置为图片背景 │ │ ├─支持无线行和无限列 │ │ ├─支持设计器内冻结窗口 │ │ ├─支持对单元格内容或格式的复制、粘贴和删除等功能 │ │ ├─等等 │ ├─报表元素 │ │ ├─文本类型:直接写文本;支持数值类型的文本设置小数位数 │ │ ├─图片类型:支持上传一张图表 │ │ ├─图表类型 │ │ ├─函数类型 │ │ └─支持求和 │ │ └─平均值 │ │ └─最大值 │ │ └─最小值 │ ├─背景 │ │ ├─背景颜色设置 │ │ ├─背景图片设置 │ │ ├─背景透明度设置 │ │ ├─背景大小设置 │ ├─数据字典 │ ├─报表打印 │ │ ├─自定义打印 │ │ └─医药笺、逮捕令、介绍信等自定义样式设计打印 │ │ ├─简单数据打印 │ │ └─出入库单、销售表打印 │ │ └─带参数打印 │ │ └─分页打印 │ │ ├─套打 │ │ └─不动产证书打印 │ │ └─发票打印 │ ├─数据报表 │ │ ├─分组数据报表 │ │ └─横向数据分组 │ │ └─纵向数据分组 │ │ └─多级循环表头分组 │ │ └─横向分组小计 │ │ └─纵向分组小计 │ │ └─合计 │ │ ├─交叉报表 │ │ ├─明细表 │ │ ├─带条件查询报表 │ │ ├─表达式报表 │ │ ├─带二维码/条形码报表 │ │ ├─多表头复杂报表 │ │ ├─主子报表 │ │ ├─预警报表 │ │ ├─数据钻取报表 │ ├─图形报表 │ │ ├─柱形图 │ │ ├─折线图 │ │ ├─饼图 │ │ ├─折柱图 │ │ ├─散点图 │ │ ├─漏斗图 │ │ ├─雷达图 │ │ ├─象形图 │ │ ├─地图 │ │ ├─仪盘表 │ │ ├─关系图 │ │ ├─图表背景 │ │ ├─图表动态刷新 │ │ ├─图表数据字典 │ ├─参数 │ │ ├─参数配置 │ │ ├─参数管理 │ ├─导入导出 │ │ ├─导入Excel │ │ ├─导出Excel、pdf │ ├─打印设置 │ │ ├─打印区域设置 │ │ ├─打印机设置 │ │ ├─预览 │ │ ├─打印页码设置 ├─大屏设计器 │ ├─系统功能 │ │ ├─静态数据源和动态数据源设置 │ │ ├─基础功能 │ │ └─支持拖拽设计 │ │ └─支持增、删、改、查大屏 │ │ └─支持复制大屏数据和样式 │ │ └─支持大屏预览、分享 │ │ └─支持系统自动保存数据,同时支持手动恢复数据 │ │ └─支持设置大屏密码 │ │ └─支持对组件图层的删除、组合、上移、下移、置顶、置底等 │ │ ├─背景设置 │ │ └─大屏的宽度和高度设置 │ │ └─大屏简介设置 │ │ └─背景颜色、背景图片设置 │ │ └─封面图设置 │ │ └─缩放比例设置 │ │ └─环境地址设置 │ │ └─水印设置 │ │ ├─地图设置 │ │ └─添加地图 │ │ └─地图数据隔离 │ ├─图表 │ │ ├─柱形图 │ │ ├─折线图 │ │ ├─折柱图 │ │ ├─饼图 │ │ ├─象形图 │ │ ├─雷达图 │ │ ├─散点图 │ │ ├─漏斗图 │ │ ├─文本框 │ │ ├─跑马灯 │ │ ├─超链接 │ │ ├─实时时间 │ │ ├─地图 │ │ ├─全国物流地图 │ │ ├─地理坐标地图 │ │ ├─城市派件地图 │ │ ├─图片 │ │ ├─图片框 │ │ ├─轮播图 │ │ ├─滑动组件 │ │ ├─iframe │ │ ├─video │ │ ├─翻牌器 │ │ ├─环形图 │ │ ├─进度条 │ │ ├─仪盘表 │ │ ├─字浮云 │ │ ├─表格 │ │ ├─选项卡 │ │ ├─万能组件 └─其他模块 └─更多功能开发中。。 ```
0
sohutv/mqcloud
RocketMQ企业级一站式服务平台
cloud-native eventing java messaging mqcloud rocketmq streaming
## MQCloud - 集客户端SDK,运维,监控,预警等功能的[RocketMQ](https://github.com/apache/rocketmq)企业级一站式服务平台 **它具备以下特性:** * 跨集群:可以同时管理多个集群,对使用者透明。 * 预警功能:针对生产或消费堆积,失败,异常等情况预警,处理。 * 简单明了:用户视图-拓扑、流量、消费状况等指标直接展示;管理员视图-集群运维、监控、流程审批等。 * 安全:用户隔离,操作审批,数据安全。 * 更多特性正在开发中。 * 下图简单描述了MQCloud大概的功能: ![mqcloud](mq-cloud/src/main/resources/static/wiki/intro/img/mqcloud.png) ## 特性概览 * 用户topic列表-不同用户看到不同的topic,管理员可以管理所有topic ![用户topic列表](mq-cloud/src/main/resources/static/wiki/intro/img/index.png) * topic详情-分三块 基本信息,今日流程,拓扑 ![topic详情](mq-cloud/src/main/resources/static/wiki/intro/img/topicDetail.png) * 生产详情 ![生产详情](mq-cloud/src/main/resources/static/wiki/intro/img/produceDetail2.png) * 消费详情 ![消费详情](mq-cloud/src/main/resources/static/wiki/intro/img/consumeDetail2.png) * 某个消费者具体的消费详情-可以查询重试消息和死消息 ![消费详情](mq-cloud/src/main/resources/static/wiki/intro/img/consumeRetry.png) * 消息 ![消息](mq-cloud/src/main/resources/static/wiki/intro/img/msgSearch.png) * 消息消费情况 ![msgconsume](mq-cloud/src/main/resources/static/wiki/intro/img/msgTrack.png) * 集群发现 ![admin](mq-cloud/src/main/resources/static/wiki/intro/img/nameServer.png) * 集群管理 ![admin](mq-cloud/src/main/resources/static/wiki/intro/img/cluster.png) * 集群流量 ![admin](mq-cloud/src/main/resources/static/wiki/intro/img/clusterTraffic.png) * 创建broker ![addBroker](mq-cloud/src/main/resources/static/wiki/intro/img/addBroker.png) ---------- ## 目前运维的规模 1. 服务器:40台+ 2. 集群:5个+ 3. topic:370个+ 4. 生产消费消息量/日:10亿条+ 5. 生产消费消息大小/日:1T+ ---------- ## 联系方式 MQCloud QQ交流群:474960759 使用方式请参考[wiki](https://github.com/sohutv/sohu-tv-mq/wiki)。
0
strimzi/strimzi-kafka-operator
Apache Kafka® running on Kubernetes
data-stream data-streaming data-streams docker enmasse hacktoberfest kafka kafka-connect kafka-streams kubernetes kubernetes-controller kubernetes-operator messaging openshift
[![Strimzi](./documentation/logo/strimzi.png)](https://strimzi.io/) # Run Apache Kafka on Kubernetes and OpenShift [![Build Status](https://dev.azure.com/cncf/strimzi/_apis/build/status/build?branchName=main)](https://dev.azure.com/cncf/strimzi/_build/latest?definitionId=16&branchName=main) [![GitHub release](https://img.shields.io/github/release/strimzi/strimzi-kafka-operator.svg)](https://github.com/strimzi/strimzi-kafka-operator/releases/latest) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Twitter Follow](https://img.shields.io/twitter/follow/strimziio?style=social)](https://twitter.com/strimziio) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/strimzi-kafka-operator)](https://artifacthub.io/packages/search?repo=strimzi-kafka-operator) Strimzi provides a way to run an [Apache Kafka®][kafka] cluster on [Kubernetes][k8s] or [OpenShift][os] in various deployment configurations. See our [website][strimzi] for more details about the project. ## Quick Starts To get up and running quickly, check our [Quick Start for Minikube, OKD (OpenShift Origin) and Kubernetes Kind](https://strimzi.io/quickstarts/). ## Documentation Documentation for the current _main_ branch as well as all releases can be found on our [website][strimzi]. ## Roadmap The roadmap of the Strimzi Operator project is maintained as [GitHub Project](https://github.com/orgs/strimzi/projects/1). ## Getting help If you encounter any issues while using Strimzi, you can get help using: - [#strimzi channel on CNCF Slack](https://slack.cncf.io/) - [Strimzi Users mailing list](https://lists.cncf.io/g/cncf-strimzi-users/topics) - [GitHub Discussions](https://github.com/strimzi/strimzi-kafka-operator/discussions) ## Strimzi Community Meetings You can join our regular community meetings: * Thursday 8:00 AM UTC (every 4 weeks starting from 4th June 2020) - [convert to your timezone](https://www.thetimezoneconverter.com/?t=8%3A00&tz=UTC) * Thursday 4:00 PM UTC (every 4 weeks starting from 18th June 2020) - [convert to your timezone](https://www.thetimezoneconverter.com/?t=16%3A00&tz=UTC) Resources: * [Meeting minutes, agenda and Zoom link](https://docs.google.com/document/d/1V1lMeMwn6d2x1LKxyydhjo2c_IFANveelLD880A6bYc/edit#heading=h.vgkvn1hr5uor) * [Recordings](https://youtube.com/playlist?list=PLpI4X8PMthYfONZopcRd4X_stq1C14Rtn) * [Calendar](https://calendar.google.com/calendar/embed?src=c_m9pusj5ce1b4hr8c92hsq50i00%40group.calendar.google.com) ([Subscribe to the calendar](https://calendar.google.com/calendar/u/0?cid=Y19tOXB1c2o1Y2UxYjRocjhjOTJoc3E1MGkwMEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t)) ## Contributing You can contribute by: - Raising any issues you find using Strimzi - Fixing issues by opening Pull Requests - Improving documentation - Talking about Strimzi All bugs, tasks or enhancements are tracked as [GitHub issues](https://github.com/strimzi/strimzi-kafka-operator/issues). Issues which might be a good start for new contributors are marked with ["good-start"](https://github.com/strimzi/strimzi-kafka-operator/labels/good-start) label. The [Dev guide](https://github.com/strimzi/strimzi-kafka-operator/blob/main/development-docs/DEV_GUIDE.md) describes how to build Strimzi. Before submitting a patch, please make sure to understand, how to test your changes before opening a PR [Test guide](https://github.com/strimzi/strimzi-kafka-operator/blob/main/development-docs/TESTING.md). The [Documentation Contributor Guide](https://strimzi.io/contributing/guide/) describes how to contribute to Strimzi documentation. If you want to get in touch with us first before contributing, you can use: - [#strimzi channel on CNCF Slack](https://slack.cncf.io/) - [Strimzi Dev mailing list](https://lists.cncf.io/g/cncf-strimzi-dev/topics) ## License Strimzi is licensed under the [Apache License](./LICENSE), Version 2.0 ## Container signatures From the 0.38.0 release, Strimzi containers are signed using the [`cosign` tool](https://github.com/sigstore/cosign). Strimzi currently does not use the keyless signing and the transparency log. To verify the container, you can copy the following public key into a file: ``` -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAET3OleLR7h0JqatY2KkECXhA9ZAkC TRnbE23Wb5AzJPnpevvQ1QUEQQ5h/I4GobB7/jkGfqYkt6Ct5WOU2cc6HQ== -----END PUBLIC KEY----- ``` And use it to verify the signature: ``` cosign verify --key strimzi.pub quay.io/strimzi/operator:latest --insecure-ignore-tlog=true ``` ## Software Bill of Materials (SBOM) From the 0.38.0 release, Strimzi publishes the software bill of materials (SBOM) of our containers. The SBOMs are published as an archive with `SPDX-JSON` and `Syft-Table` formats signed using cosign. For releases, they are also pushed into the container registry. To verify the SBOM signatures, please use the Strimzi public key: ``` -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAET3OleLR7h0JqatY2KkECXhA9ZAkC TRnbE23Wb5AzJPnpevvQ1QUEQQ5h/I4GobB7/jkGfqYkt6Ct5WOU2cc6HQ== -----END PUBLIC KEY----- ``` You can use it to verify the signature of the SBOM files with the following command: ``` cosign verify-blob --key cosign.pub --bundle <SBOM-file>.bundle --insecure-ignore-tlog=true <SBOM-file> ``` --- Strimzi is a <a href="http://cncf.io">Cloud Native Computing Foundation</a> incubating project. ![CNCF ><](./documentation/logo/cncf-color.png) [strimzi]: https://strimzi.io "Strimzi" [kafka]: https://kafka.apache.org "Apache Kafka" [k8s]: https://kubernetes.io/ "Kubernetes" [os]: https://www.openshift.com/ "OpenShift"
0
dcm4che/dcm4che
DICOM Implementation in JAVA
null
dcm4che DICOM Toolkit & Library =============================== Sources: https://github.com/dcm4che/dcm4che Binaries: https://sourceforge.net/projects/dcm4che/files/dcm4che3 Issue Tracker: https://github.com/dcm4che/dcm4che/issues Build Status: [![Build](https://github.com/dcm4che/dcm4che/actions/workflows/build.yml/badge.svg)](https://github.com/dcm4che/dcm4che/actions/workflows/build.yml) This is a complete rewrite of [dcm4che-2.x](http://www.dcm4che.org/confluence/display/d2/). One main focus was to minimize the memory footprint of the DICOM data sets. It already provides modules to store/fetch configuration data to/from LDAP, compliant to the DICOM Application Configuration Management Profile, specified in [DICOM PS 3.15](http://dicom.nema.org/medical/dicom/current/output/html/part15.html#chapter_H), Annex H. dcm4che uses a native library for the compression and decompression of images. Here is the list of supported systems and architectures: | System | Architecture | Package | Requirement | |:--------|:-------------|:---------------|:-----------------------| | Linux | x86 64-bit | linux-x86-64 | GLIBC_2.17 | | Linux | ARM 64-bit | linux-aarch64 | GLIBC_2.27 | | Linux | ARM 32-bit | linux-armv7a | GLIBC_2.28 | | Windows | x86 64-bit | windows-x86-64 | Windows 7 or higher | | Windows | x86 32-bit | windows-x86 | Windows 7 or higher | | Mac OS | x86 64-bit | macosx-x86-64 | Mac OS 10.13 or higher | | Mac OS | ARM 64-bit | macosx-aarch64 | Mac OS 11 or higher | Build ----- Make sure you have Java 17 (JDK) or newer installed. Run the [Maven Wrapper](https://maven.apache.org/wrapper/) script for building: ./mvnw install or on Windows: .\mvnw install Modules ------- - dcm4che-audit - dcm4che-audit-keycloak - dcm4che-conf - dcm4che-conf-api - dcm4che-conf-api-hl7 - dcm4che-conf-json - dcm4che-conf-json-schema - dcm4che-conf-ldap - dcm4che-conf-ldap-audit - dcm4che-conf-ldap-hl7 - dcm4che-conf-ldap-imageio - dcm4che-conf-ldap-schema - dcm4che-core - dcm4che-dcmr - dcm4che-deident - dcm4che-dict - dcm4che-dict-priv - dcm4che-emf - dcm4che-hl7 - dcm4che-image - dcm4che-imageio - dcm4che-imageio-opencv - dcm4che-imageio-rle - dcm4che-js-dict - dcm4che-json - dcm4che-mime - dcm4che-net - dcm4che-net-audit - dcm4che-net-hl7 - dcm4che-net-imageio - dcm4che-soundex - dcm4che-ws-rs - dcm4che-xdsi - dcm4che-jboss-modules Utilities --------- - [agfa2dcm][]: Extract DICOM files from Agfa BLOB file - [agfa2sr][]: Extract concatenated XML Agfa Reports and convert them to DICOM SR Documents - [dcm2dcm][]: Transcode DICOM file according the specified Transfer Syntax - [dcm2jpg][]: Convert DICOM image to JPEG or other image formats - [dcm2json][]: Convert DICOM file in JSON presentation - [dcm2pdf][]: Extract encapsulated PDF, CDA or STL from DICOM file - [dcm2str][]: Apply Attributes Format Pattern to dicom file or command line parameters. - [dcm2xml][]: Convert DICOM file in XML presentation - [dcmbenchmark][]: Parse a DICOM file repetitively, measuring time and used memory - [dcmdir][]: Dump, create or update DICOMDIR file - [dcmdump][]: Dump DICOM file in textual form - [dcmldap][]: Insert/remove configuration entries for Network AEs into/from LDAP server - [dcmqrscp][]: Simple DICOM archive - [dcmvalidate][]: Validate DICOM object according a specified Information Object Definition - [deidentify][]: De-identify one or several DICOM files - [emf2sf][]: Convert DICOM Enhanced Multi-frame image to legacy DICOM Single-frame images - [findscu][]: Invoke DICOM C-FIND Query Request - [fixlo2un][]: Fixes length of private tags truncated to 2 bytes on conversion from implicit VR to explicit VR Transfer Syntax - [getscu][]: Invoke DICOM C-GET Retrieve Request - [hl72xml][]: Convert HL7 v2.x message in XML presentation - [hl7pdq][]: Query HL7 v2.x Patient Demographics Supplier - [hl7pix][]: Query HL7 v2.x PIX Manager - [hl7rcv][]: HL7 v2.x Receiver - [hl7snd][]: Send HL7 v2.x message - [ianscp][]: DICOM Instance Availability Notification receiver - [ianscu][]: Send DICOM Instance Availability Notification - [jpg2dcm][]: Convert JPEG images or MPEG videos in DICOM files - [json2dcm][]: Converts JSON file to DICOM file - [json2index][]: Creates search index for UI configuration from JSON schema files - [json2props][]: Convert Archive configuration schema JSON files to key/value properties files and vice versa - [json2rst][]: Generate ReStructuredText files from Archive configuration schema JSON files - [maskpxdata][]: Mask information burned into the Pixel Data - [mkkos][]: Make DICOM Key Object Selection Document - [modality][]: Simulates DICOM Modality - [movescu][]: Invoke DICOM C-MOVE Retrieve request - [mppsscp][]: DICOM Modality Performed Procedure Step Receiver - [mppsscu][]: Send DICOM Modality Performed Procedure Step - [pdf2dcm][]: Convert PDF file into DICOM file - [planarconfig][]: Detects the actual planar configuration of uncompressed pixel data of color images with Photometric Interpretation RGB or YBR_FULL and optionally correct non matching values of attribute Planar Configuration of the image - [qstar][]: QStar SOAP Client to prefetch/retrieve or fetch file information of specified files - [stgcmtscu][]: Invoke DICOM Storage Commitment Request - [storescp][]: DICOM Composite Object Receiver - [storescu][]: Send DICOM Composite Objects - [stowrs][]: Send DICOM Composite Objects or Bulkdata file over Web - [stowrsd][]: STOW-RS Server - [swappxdata][]: Swaps bytes of uncompressed pixel data in DICOM files - [syslog][]: Send Syslog messages via TCP/TLS or UDP to a Syslog Receiver - [syslogd][]: Receives RFC 5424 Syslog messages via TCP/TLS or UDP - [tpl2xml][]: Converts private dictionaries present in template file(s) to xml file(s). - [upsscu][]: Invokes services of Unified Procedure Step Service Class - [wadors][]: Wado RS Client Simulator - [wadows][]: Wado WS Client Simulator - [xml2dcm][]: Create/Update DICOM file from/with XML presentation - [xml2hl7][]: Create HL7 v2.x message from XML presentation - [xroad][]: XRoad SOAP Client to query Estonia National Patient Registry for Patient Demographics [agfa2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-agfa2dcm/README.md [agfa2sr]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-agfa2sr/README.md [dcm2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2dcm/README.md [dcm2jpg]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2jpg/README.md [dcm2json]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2json/README.md [dcm2pdf]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2pdf/README.md [dcm2str]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2str/README.md [dcm2xml]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcm2xml/README.md [dcmbenchmark]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmbenchmark/README.md [dcmdir]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmdir/README.md [dcmdump]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmdump/README.md [dcmldap]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmldap/README.md [dcmqrscp]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmqrscp/README.md [dcmvalidate]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-dcmvalidate/README.md [deidentify]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-deidentify/README.md [emf2sf]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-emf2sf/README.md [findscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-findscu/README.md [fixlo2un]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-fixlo2un/README.md [getscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-getscu/README.md [hl72xml]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-hl72xml/README.md [hl7pdq]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-hl7pdq/README.md [hl7pix]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-hl7pix/README.md [hl7rcv]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-hl7rcv/README.md [hl7snd]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-hl7snd/README.md [ianscp]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-ianscp/README.md [ianscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-ianscu/README.md [jpg2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-jpg2dcm/README.md [json2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-json2dcm/README.md [json2index]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-json2index/README.md [json2props]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-json2props/README.md [json2rst]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-json2rst/README.md [maskpxdata]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-maskpxdata/README.md [mkkos]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-mkkos/README.md [modality]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-ihe/dcm4che-tool-ihe-modality/README.md [movescu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-movescu/README.md [mppsscp]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-mppsscp/README.md [mppsscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-mppsscu/README.md [pdf2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-pdf2dcm/README.md [planarconfig]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-planarconfig/README.md [qstar]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-qstar/README.md [stgcmtscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-stgcmtscu/README.md [storescp]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-storescp/README.md [storescu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-storescu/README.md [stowrs]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-stowrs/README.md [stowrsd]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-stowrsd/README.md [swappxdata]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-swappxdata/README.md [syslog]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-syslog/README.md [syslogd]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-syslogd/README.md [tpl2xml]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-tpl2xml/README.md [upsscu]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-upsscu/README.md [wadors]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-wadors/README.md [wadows]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-wadows/README.md [xml2dcm]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-xml2dcm/README.md [xml2hl7]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-xml2hl7/README.md [xroad]: https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-xroad/README.md License ------- * [Mozilla Public License Version 1.1](http://www.mozilla.org/MPL/1.1/)
0
Snailclimb/guide-rpc-framework
A custom RPC framework implemented by Netty+Kyro+Zookeeper.(一款基于 Netty+Kyro+Zookeeper 实现的自定义 RPC 框架-附详细实现过程和相关教程。)
null
# guide-rpc-framework > [该 RPC 框架配套教程已经更新在我的星球,点击此链接了解详情。](https://javaguide.cn/zhuanlan/handwritten-rpc-framework.html) <div align="center"> <p> 中文| <a href="./README-EN.md">English</a> </p> <p> <a href="https://github.com/Snailclimb/guide-rpc-framework">Github</a> | <a href="https://gitee.com/SnailClimb/guide-rpc-framework ">Gitee</a> </p> </div> ## 前言 虽说 RPC 的原理实际不难,但是,自己在实现的过程中自己也遇到了很多问题。[guide-rpc-framework](https://github.com/Snailclimb/guide-rpc-framework) 目前只实现了 RPC 框架最基本的功能,一些可优化点都在下面提到了,有兴趣的小伙伴可以自行完善。 通过这个简易的轮子,你可以学到 RPC 的底层原理和原理以及各种 Java 编码实践的运用。 你甚至可以把 [guide-rpc-framework](https://github.com/Snailclimb/guide-rpc-framework) 当做你的毕设/项目经验的选择,这是非常不错!对比其他求职者的项目经验都是各种系统,造轮子肯定是更加能赢得面试官的青睐。 如果你要将 [guide-rpc-framework](https://github.com/Snailclimb/guide-rpc-framework) 当做你的毕设/项目经验的话,我希望你一定要搞懂,而不是直接复制粘贴我的思想。你可以 fork 我的项目,然后进行优化。如果你觉得的优化是有价值的话,你可以提交 PR 给我,我会尽快处理。 ## 介绍 [guide-rpc-framework](https://github.com/Snailclimb/guide-rpc-framework) 是一款基于 Netty+Kyro+Zookeeper 实现的 RPC 框架。代码注释详细,结构清晰,并且集成了 Check Style 规范代码结构,非常适合阅读和学习。 由于 Guide哥自身精力和能力有限,如果大家觉得有需要改进和完善的地方的话,欢迎 fork 本项目,然后 clone 到本地,在本地修改后提交 PR 给我,我会在第一时间 Review 你的代码。 **我们先从一个基本的 RPC 框架设计思路说起!** ### 一个基本的 RPC 框架设计思路 > **注意** :我们这里说的 RPC 框架指的是:可以让客户端直接调用服务端方法就像调用本地方法一样简单的框架,比如我前面介绍的 Dubbo、Motan、gRPC 这些。 如果需要和 HTTP 协议打交道,解析和封装 HTTP 请求和响应。这类框架并不能算是“RPC 框架”,比如 Feign。 一个最简单的 RPC 框架使用示意图如下图所示,这也是 [guide-rpc-framework](https://github.com/Snailclimb/guide-rpc-framework) 目前的架构 : ![](./images/rpc-architure.png) 服务提供端 Server 向注册中心注册服务,服务消费者 Client 通过注册中心拿到服务相关信息,然后再通过网络请求服务提供端 Server。 作为 RPC 框架领域的佼佼者[Dubbo](https://github.com/apache/dubbo)的架构如下图所示,和我们上面画的大体也是差不多的。 <img src="./images/dubbo-architure.jpg" style="zoom:80%;" /> **一般情况下, RPC 框架不仅要提供服务发现功能,还要提供负载均衡、容错等功能,这样的 RPC 框架才算真正合格的。** **简单说一下设计一个最基本的 RPC 框架的思路:** ![](./images/rpc-architure-detail.png) 1. **注册中心** :注册中心首先是要有的,推荐使用 Zookeeper。注册中心负责服务地址的注册与查找,相当于目录服务。服务端启动的时候将服务名称及其对应的地址(ip+port)注册到注册中心,服务消费端根据服务名称找到对应的服务地址。有了服务地址之后,服务消费端就可以通过网络请求服务端了。 2. **网络传输** :既然要调用远程的方法就要发请求,请求中至少要包含你调用的类名、方法名以及相关参数吧!推荐基于 NIO 的 Netty 框架。 3. **序列化** :既然涉及到网络传输就一定涉及到序列化,你不可能直接使用 JDK 自带的序列化吧!JDK 自带的序列化效率低并且有安全漏洞。 所以,你还要考虑使用哪种序列化协议,比较常用的有 hession2、kyro、protostuff。 4. **动态代理** : 另外,动态代理也是需要的。因为 RPC 的主要目的就是让我们调用远程方法像调用本地方法一样简单,使用动态代理可以屏蔽远程方法调用的细节比如网络传输。也就是说当你调用远程方法的时候,实际会通过代理对象来传输网络请求,不然的话,怎么可能直接就调用到远程方法呢? 5. **负载均衡** :负载均衡也是需要的。为啥?举个例子我们的系统中的某个服务的访问量特别大,我们将这个服务部署在了多台服务器上,当客户端发起请求的时候,多台服务器都可以处理这个请求。那么,如何正确选择处理该请求的服务器就很关键。假如,你就要一台服务器来处理该服务的请求,那该服务部署在多台服务器的意义就不复存在了。负载均衡就是为了避免单个服务器响应同一请求,容易造成服务器宕机、崩溃等问题,我们从负载均衡的这四个字就能明显感受到它的意义。 6. ...... ### 项目基本情况和可优化点 为了循序渐进,最初的是时候,我是基于传统的 **BIO** 的方式 **Socket** 进行网络传输,然后利用 **JDK 自带的序列化机制** 来实现这个 RPC 框架的。后面,我对原始版本进行了优化,已完成的优化点和可以完成的优化点我都列在了下面 👇。 **为什么要把可优化点列出来?** 主要是想给哪些希望优化这个 RPC 框架的小伙伴一点思路。欢迎大家 fork 本仓库,然后自己进行优化。 - [x] **使用 Netty(基于 NIO)替代 BIO 实现网络传输;** - [x] **使用开源的序列化机制 Kyro(也可以用其它的)替代 JDK 自带的序列化机制;** - [x] **使用 Zookeeper 管理相关服务地址信息** - [x] Netty 重用 Channel 避免重复连接服务端 - [x] 使用 `CompletableFuture` 包装接受客户端返回结果(之前的实现是通过 `AttributeMap` 绑定到 Channel 上实现的) 详见:[使用 CompletableFuture 优化接受服务提供端返回结果](./docs/使用CompletableFuture优化接受服务提供端返回结果.md) - [x] **增加 Netty 心跳机制** : 保证客户端和服务端的连接不被断掉,避免重连。 - [x] **客户端调用远程服务的时候进行负载均衡** :调用服务的时候,从很多服务地址中根据相应的负载均衡算法选取一个服务地址。ps:目前实现了随机负载均衡算法与一致性哈希算法。 - [x] **处理一个接口有多个类实现的情况** :对服务分组,发布服务的时候增加一个 group 参数即可。 - [x] **集成 Spring 通过注解注册服务** - [x] **集成 Spring 通过注解进行服务消费** 。参考: [PR#10](https://github.com/Snailclimb/guide-rpc-framework/pull/10) - [x] **增加服务版本号** :建议使用两位数字版本,如:1.0,通常在接口不兼容时版本号才需要升级。为什么要增加服务版本号?为后续不兼容升级提供可能,比如服务接口增加方法,或服务模型增加字段,可向后兼容,删除方法或删除字段,将不兼容,枚举类型新增字段也不兼容,需通过变更版本号升级。 - [x] **对 SPI 机制的运用** - [ ] **增加可配置比如序列化方式、注册中心的实现方式,避免硬编码** :通过 API 配置,后续集成 Spring 的话建议使用配置文件的方式进行配置 - [x] **客户端与服务端通信协议(数据包结构)重新设计** ,可以将原有的 `RpcRequest`和 `RpcRequest` 对象作为消息体,然后增加如下字段(可以参考:《Netty 入门实战小册》和 Dubbo 框架对这块的设计): - **魔数** : 通常是 4 个字节。这个魔数主要是为了筛选来到服务端的数据包,有了这个魔数之后,服务端首先取出前面四个字节进行比对,能够在第一时间识别出这个数据包并非是遵循自定义协议的,也就是无效数据包,为了安全考虑可以直接关闭连接以节省资源。 - **序列化器编号** :标识序列化的方式,比如是使用 Java 自带的序列化,还是 json,kyro 等序列化方式。 - **消息体长度** : 运行时计算出来。 - ...... - [ ] **编写测试为重构代码提供信心** - [ ] **服务监控中心(类似dubbo admin)** - [x] **设置 gzip 压缩** ### 项目模块概览 ![](./images/RPC框架各个模块介绍.png) ## 运行项目 ### 导入项目 fork 项目到自己的仓库,然后克隆项目到自己的本地:`git clone git@github.com:username/guide-rpc-framework.git`,使用 IDEA 打开,等待项目初始化完成。 ### 初始化 git hooks **这一步主要是为了在 commit 代码之前,跑 Check Style,保证代码格式没问题,如果有问题的话就不能提交。** > 以下演示的是 Mac/Linux 对应的操作,Window 用户需要手动将 `config/git-hooks` 目录下的`pre-commit` 文件拷贝到 项目下的 `.git/hooks/` 目录。 执行下面这些命令: ```shell ➜ guide-rpc-framework git:(master) ✗ chmod +x ./init.sh ➜ guide-rpc-framework git:(master) ✗ ./init.sh ``` `init.sh` 这个脚本的主要作用是将 git commit 钩子拷贝到项目下的 `.git/hooks/` 目录,这样你每次 commit 的时候就会执行了。 ### CheckStyle 插件下载和配置 `IntelliJ IDEA-> Preferences->Plugins->搜索下载 CheckStyle 插件`,然后按照如下方式进行配置。 ![CheckStyle 插件下载和配置](./images/setting-check-style.png) 配置完成之后,按照如下方式使用这个插件! ![插件使用方式](./images/run-check-style.png) ### 下载运行 zookeeper 这里使用 Docker 来下载安装。 下载: ```shell docker pull zookeeper:3.5.8 ``` 运行: ```shell docker run -d --name zookeeper -p 2181:2181 zookeeper:3.5.8 ``` ## 使用 ### 服务提供端 实现接口: ```java @Slf4j @RpcService(group = "test1", version = "version1") public class HelloServiceImpl implements HelloService { static { System.out.println("HelloServiceImpl被创建"); } @Override public String hello(Hello hello) { log.info("HelloServiceImpl收到: {}.", hello.getMessage()); String result = "Hello description is " + hello.getDescription(); log.info("HelloServiceImpl返回: {}.", result); return result; } } @Slf4j public class HelloServiceImpl2 implements HelloService { static { System.out.println("HelloServiceImpl2被创建"); } @Override public String hello(Hello hello) { log.info("HelloServiceImpl2收到: {}.", hello.getMessage()); String result = "Hello description is " + hello.getDescription(); log.info("HelloServiceImpl2返回: {}.", result); return result; } } ``` 发布服务(使用 Netty 进行传输): ```java /** * Server: Automatic registration service via @RpcService annotation * * @author shuang.kou * @createTime 2020年05月10日 07:25:00 */ @RpcScan(basePackage = {"github.javaguide.serviceimpl"}) public class NettyServerMain { public static void main(String[] args) { // Register service via annotation new AnnotationConfigApplicationContext(NettyServerMain.class); NettyServer nettyServer = new NettyServer(); // Register service manually HelloService helloService2 = new HelloServiceImpl2(); RpcServiceProperties rpcServiceConfig = RpcServiceProperties.builder() .group("test2").version("version2").build(); nettyServer.registerService(helloService2, rpcServiceConfig); nettyServer.start(); } } ``` ### 服务消费端 ```java @Component public class HelloController { @RpcReference(version = "version1", group = "test1") private HelloService helloService; public void test() throws InterruptedException { String hello = this.helloService.hello(new Hello("111", "222")); //如需使用 assert 断言,需要在 VM options 添加参数:-ea assert "Hello description is 222".equals(hello); Thread.sleep(12000); for (int i = 0; i < 10; i++) { System.out.println(helloService.hello(new Hello("111", "222"))); } } } ``` ```java ClientTransport rpcRequestTransport = new SocketRpcClient(); RpcServiceProperties rpcServiceConfig = RpcServiceProperties.builder() .group("test2").version("version2").build(); RpcClientProxy rpcClientProxy = new RpcClientProxy(rpcRequestTransport, rpcServiceConfig); HelloService helloService = rpcClientProxy.getProxy(HelloService.class); String hello = helloService.hello(new Hello("111", "222")); System.out.println(hello); ``` ## 相关问题 ### 为什么要造这个轮子?Dubbo 不香么? 写这个 RPC 框架主要是为了通过造轮子的方式来学习,检验自己对于自己所掌握的知识的运用。 实现一个简单的 RPC 框架实际是比较容易的,不过,相比于手写 AOP 和 IoC 还是要难一点点,前提是你搞懂了 RPC 的基本原理。 我之前从理论层面在我的知识星球分享过如何实现一个 RPC。不过理论层面的东西只是支撑,你看懂了理论可能只能糊弄住面试官。咱程序员这一行还是最需要动手能力,即使你是架构师级别的人物。当你动手去实践某个东西,将理论付诸实践的时候,你就会发现有很多坑等着你。 大家在实际项目上还是要尽量少造轮子,有优秀的框架之后尽量就去用,Dubbo 在各个方面做的都比较好和完善。 ### 如果我要自己写的话,需要提前了解哪些知识 **Java** : 1. 动态代理机制; 2. 序列化机制以及各种序列化框架的对比,比如 hession2、kyro、protostuff。 3. 线程池的使用; 4. `CompletableFuture` 的使用 5. ...... **Netty** : 1. 使用 Netty 进行网络传输; 2. `ByteBuf` 介绍 3. Netty 粘包拆包 4. Netty 长连接和心跳机制 **Zookeeper** : 1. 基本概念; 2. 数据结构; 3. 如何使用 Netflix 公司开源的 zookeeper 客户端框架 Curator 进行增删改查; ## 教程 Guide 的星球正在更新《从零开始手把手教你实现一个简单的 RPC 框架》。扫描下方二维码关注“**JavaGuide**”后回复 “**星球**”即可。 ![我的公众号](https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-6/167598cd2e17b8ec.png)
0
nguyenq/tess4j
Java JNA wrapper for Tesseract OCR API
null
## Tess4J [![Join the chat at https://gitter.im/nguyenq/tess4j](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/nguyenq/tess4j?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) A Java JNA wrapper for [Tesseract OCR API](https://github.com/tesseract-ocr). Tess4J is released and distributed under the [Apache License, v2.0](http://www.apache.org/licenses/LICENSE-2.0). ## Features The library provides optical character recognition (OCR) support for: * TIFF, JPEG, GIF, PNG, and BMP image formats * Multi-page TIFF images * PDF document format ## Dependencies On Windows: Microsoft Visual C++ 2022 x86 and x64 Runtimes Since Tesseract and Leptonica Windows binaries were built using Visual Studio 2022 (v143) Platform Toolset, please ensure you have [Microsoft Visual C++ 2022 Redistributable](https://visualstudio.microsoft.com/downloads/) installed. ## Tutorial [Development with Tess4J in NetBeans, Eclipse, and Command-line](http://tess4j.sourceforge.net/tutorial/) ## Contributors A big thanks to GitHub and all of Tess4J's contributors.
0
Mr-xn/RedTeam_BlueTeam_HW
红蓝对抗以及护网相关工具和资料,内存shellcode(cs+msf)和内存马查杀工具
blueteam hw pentest-tool readteam
# RedTeam_BlueTeam_HW 红蓝对抗以及护网相关工具和资料 ### HW 相关文档和工具[点我](./hw相关项目.md) File 列表(`tree -N .`): ``` ├── Blue_Tools │   ├── BlueTeam_ABC_123.jar │   ├── CobaltStrikeScan.exe │   ├── DuckMemoryScan.exe │   └── LiqunShield.7z ├── LICENSE ├── README.md ├── Red_Tools │   ├── LiqunKit 综合漏洞利用工具.7z │   ├── TPScan.jar │   ├── ThinkPHP.V2.3.by蓝鲸.jar │   ├── ThinkphpGUI-1.3-SNAPSHOT.jar │   ├── Windows │   │   ├── NoApiUser.exe │   │   └── win.md │   ├── readme.md │   └── 图形化漏洞利用Demo-JavaFX版.7z ├── hostnamePot.jar ├── hw │   ├── 2020年9月安全监测报告「护网期间高危漏洞使用情况」.pdf │   ├── 2020护网中的漏洞.pdf │   ├── 2021HW参考_防守方经验总结.pdf │   ├── 2021HW行动红队作战手册.pdf │   ├── 2021实战攻防企业红蓝对抗实践指南-长亭.pdf │   ├── CTF-陇剑杯之内存分析-虚拟机内存取证.pdf │   ├── HW攻守思路3.pdf │   ├── HW多人运动溯源反制指北.pdf │   ├── HW弹药库之红队作战手册.pdf │   ├── Tomcat Filter类型内存马与查杀技术学习.pdf │   ├── mysql.Linux.zip │   ├── mysql.windows.zip │   ├── 微软sysmon使用总结.pdf │   ├── 【应急响应】windows入侵检查流程.pdf │   ├── 使用内存签名检测 Cobalt Strike.pdf │   ├── 红队视角下的防御体系构建.pdf │   └── 蓝队视角下的防御体系突破.pdf ├── hw相关项目.md ├── img │   └── 1.jpeg ├── main.md ├── script │   └── winSensorCheck.bat └── security_wike.md 6 directories, 37 files ``` 另一个压缩包文件列表: HVV资料.7z ``` HVV资料 ├── 1.自我排查 │   ├── 安全加固-Linux安全加固手册.url │   ├── 安全加固-Windows安全加固手册.url │   ├── 安全加固-护网行动,2020年具体防护措施.url │   ├── 资产收集-安全护网前信息收集.url │   ├── 资产收集-全流程信息收集方法总结.url │   ├── 资产收集-企业安全做好这三点,护网没在怕的.url │   └── 企业做好这些,不怕HW.txt ├── 10.红队手册 │   ├── HW弹药库之红队作战手册.pdf │   ├── 微软sysmon使用总结.pdf │   ├── 红队资料集锦.md │   ├── 使用内存签名检测 Cobalt Strike.pdf │   └── 红队研发从入门到精通之书籍推荐密码RedCore.7z ├── 2.安全运营 │   ├── 安全运营-我理解的安全运营.url │   ├── 安全运营-从运营角度看安全团队的成长.url │   ├── 企业蓝军建设思考(甲方可参考,项目经理-安全顾问可参考).url │   ├── 安全运营三部曲:概念篇.url │   ├── 安全运营三部曲:安全响应中心与企业文化.url │   └── 安全运营三部曲:安全生态与运营国际接轨.url ├── 3.研判分析 │   ├── CTF-MISC-日志分析.url │   ├── 流量分析.url │   ├── 企业安全日志分析系统建设.url │   ├── 流量分析在安全攻防上的探索实践.url │   └── 日志审计系统的基本原理与部署方式.url ├── 4.溯源反打 │   ├── HW多人运动溯源反制指北.pdf │   ├── mysql蜜罐Linux.zip │   ├── mysql蜜罐windows.zip │   ├── 调查Web应用攻击事件:如何通过服务器日志文件追踪攻击者.url │   ├── 安全分析--追踪溯源的找人思路.url │   ├── 红蓝对抗-反制.url │   ├── 蓝队反制.pdf │   ├── 攻击溯源手段.url │   ├── 红蓝演习对抗之溯源篇.url │   ├── 安全攻击溯源思路及案例.url │   ├── 红蓝对抗中的溯源反制实战.url │   ├── 蓝队实战溯源反制手册分享.url │   ├── 追踪邮件发送者的地理位置.url │   └── 浅谈攻击溯源的一些常见思路.url ├── 5.HVV必备报告模板 │   ├── HW总结模板.txt │   ├── HW总结报告模板之一.url │   └── HW总结报告模板之二.url ├── 6.历年护网总结 │   ├── 2019年护网行动必备防御手册(V1).pdf │   ├── 2020年9月安全监测报告「护网期间高危漏洞使用情况」.pdf │   ├── 2020护网中的漏洞.pdf │   ├── 2021HW参考_防守方经验总结.pdf │   ├── 2021HW行动红队作战手册.pdf │   ├── 2021实战攻防企业红蓝对抗实践指南-长亭.pdf │   └── 一次攻防实战演习复盘总结.pdf ├── 7.防御必备 │   ├── HW防守手册.TXT │   ├── HW攻守思路3.pdf │   ├── “护网2019”防守应对手册.pdf │   ├── 防守基础安全指引v5.4.pdf │   ├── 红队视角下的防御体系构建.pdf │   └── 蓝队视角下的防御体系突破.pdf ├── 8.应急响应 │   ├── Tomcat Filter类型内存马与查杀技术学习.pdf │   ├── 应急响应-总结.url │   ├── 应急响应-护网Linux应急处置操作手册-Tools篇.url │   ├── 【应急响应】windows入侵检查流程.pdf │   └── 护网行动专项应急演练方案.pdf ├── 9.护网行动培训材料 │   ├── HW01-护网保障概述-v2.0.pdf │   ├── HW02-前期自查工作要点-v2.0.pdf │   ├── HW03-资产梳理实战指导-v1.1.pdf │   ├── HW04-漏洞扫描实施标准-v1.0.pdf │   ├── HW05-常见安全漏洞加固-v1.0.pdf │   ├── HW06-弱口令扫描实施标准-v1.0.pdf │   ├── HW07-网络安全防护分析-v1.0.pdf │   ├── HW08-关键安全配置解析-v1.5.pdf │   ├── HW09-安全加固实施标准-v1.0.pdf │   ├── HW10-NTI平台使用培训-v1.0.pdf │   ├── HW11-态势感知平台分析培训-v1.0.pdf │   ├── HW12-IPS分析培训-v1.0.pdf │   ├── HW12-WAF分析培训-v1.0.pdf │   ├── HW13-ESPC平台分析培训-v1.0.pdf │   ├── HW14-TAC产品分析培训-v1.0.pdf │   ├── HW15-全流量平台分析培训-v1.0.pdf │   ├── HW16-告警日志分析技术-v1.1.pdf │   ├── HW17-快速应急响应技术-v1.0.pdf │   ├── HW18-安全事件闭环流程管理-v1.0.pdf │   └── HW19-对抗攻击思路及常用手法解析-v1.0.pdf ├── 更多HW资料.txt ├── 奇安信-实战攻防之紫队视角下的实战攻防演习组织.pdf ├── 奇安信-实战攻防演习之红队视角下的防御体系突破.pdf └── 奇安信-实战攻防演习之蓝队视角下的防御体系构建.pdf 10 directories, 82 files ``` **路过的HXD记得给个star+follwer!** [其他资料下载地址一](https://mir.cr/RUZ0EHNA) [其他资料下载地址二](http://disk.scan.cm/zlsec/zlsec_info/document/HW)
0
tchiotludo/akhq
Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
gui java kafka kafka-tools kafka-ui kafka-utils kafkahq
# AKHQ (previously known as KafkaHQ) ![Last Version](https://img.shields.io/github/tag-pre/tchiotludo/akhq.svg) ![License](https://img.shields.io/github/license/tchiotludo/akhq) ![Docker Pull](https://img.shields.io/docker/pulls/tchiotludo/akhq.svg) ![Github Downloads](https://img.shields.io/github/downloads/tchiotludo/akhq/total) ![Github Start](https://img.shields.io/github/stars/tchiotludo/akhq.svg) ![Main](https://github.com/tchiotludo/akhq/workflows/Main/badge.svg) [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/akhq)](https://artifacthub.io/packages/search?repo=akhq) > Kafka GUI for [Apache Kafka](http://kafka.apache.org/) to manage topics, topics data, consumers group, schema registry, connect and more... <p align="center"> <img width="460" src="client/src/images/logo_black.svg" alt="AKHQ for Kafka logo" /><br /><br /> <img width="720" src="docs/.vuepress/public/assets/images/video.gif" alt="AKHQ for Kafka preview" /> </p> ## Documentation * The official AKHQ documentation can be found under: [akhq.io](https://akhq.io/docs) ## Sponsors <table> <tr> <td> <img width="1000" height="0"> <a href="https://upstash.com/?utm_source=AKHQ" > <img src="./docs/.vuepress/public/assets/images/logo-infosupport.svg" alt="Upstash" width="260" align="right"> </a> <h3>InfoSupport</h3> <p>Info Support is the specialist in developing high quality software<br /> solutions and leading in the field of artificial intelligence (AI), <br /> cloud architecture, managed services and IT training. </p> [Discover](https://infosupport.com/?utm_source=AKHQ) </td> </tr> <tr> <td> <img width="1000" height="0"> <a href="https://upstash.com/?utm_source=AKHQ" > <img src="https://raw.githubusercontent.com/upstash/sponsorship/master/kafka.png" alt="Upstash" width="260" align="right"> </a> <h3>Upstash: Serverless Kafka</h3> <ul> <li>True Serverless Kafka with per-request-pricing</li> <li>Managed Apache Kafka, works with all Kafka clients</li> <li>Built-in REST API designed for serverless and edge functions</li> </ul> [Start for free in 30 seconds!](https://upstash.com/?utm_source=AKHQ) </td> </tr> </table> ## From AKHQ project creator <table> <tr> <td> <img width="1000" height="0"> <a href="https://github.com/kestra-io/kestra?utm_source=AKHQ" > <img src="https://kestra.io/video.gif" alt="Upstash" width="320" align="right"> </a> <h3>Kestra: Open source data orchestration and scheduling platform</h3> <p> Kestra is an infinitely scalable orchestration and scheduling platform, creating, running, scheduling, and monitoring millions of complex pipelines. </p> [Discover the project!](https://github.com/kestra-io/kestra?utm_source=AKHQ) </td> </tr> </table> ## Who's using AKHQ * [Archer Aviation](https://archer.com/) * [Adeo](https://www.adeo.com/) * [Avlino](https://avlino.com/) * [Auchan Retail](https://www.auchan-retail.com/) * [BARMER](https://www.barmer.de/) * [Bell](https://www.bell.ca) * [Best buy](https://www.bestbuy.com) * [BMW Group](https://www.bmwgroup.com) * [Boulanger](https://www.boulanger.com/) * [BPCE-IT](https://www.bpce-it.fr/) * [Decathlon](https://www.decathlon.fr/) * [Depop](https://www.depop.com) * [Doximity](https://www.doximity.com) * [Fresha](https://www.fresha.com/) * [Galeries Lafayette](https://www.galerieslafayette.com/) * [GetYourGuide](https://www.getyourguide.com) * [GrtGaz](https://www.grtgaz.com/) * [Kitopi](https://kitopi.com) * [Klarna](https://www.klarna.com) * [La Redoute](https://laredoute.io/) * [Leroy Merlin](https://www.leroymerlin.fr/) * [MAIF](https://www.maif.fr/) * [ManoMano](https://www.manomano.fr/) * [NEXT Technologies](https://www.nextapp.co/) * [Nuxeo](https://www.nuxeo.com/) * [Pipedrive](https://www.pipedrive.com) * [TUI](https://www.tui.com) * [TVG](https://www.tvg.com) * [Vodeno](https://www.vodeno.com/) * [Baloise](https://www.baloise.ch/) * [Michelin](https://www.michelin.com) ## Credits Many thanks to: * [JetBrains](https://www.jetbrains.com/?from=AKHQ) for their free OpenSource license. * Apache, Apache Kafka, Kafka, and associated open source project names are trademarks of the Apache Software Foundation. AKHQ is not affiliated with, endorsed by, or otherwise associated with the Apache Software. [![Jetbrains](https://user-images.githubusercontent.com/2064609/55432917-6df7fc00-5594-11e9-90c4-5133fbb6d4da.png)](https://www.jetbrains.com/?from=AKHQ) ## License Apache 2.0 © [tchiotludo](https://github.com/tchiotludo)
0
java8/Java8InAction
null
null
Java8InAction =============== This repository contains all the source code for the examples and quizzes in the book Java 8 in Action: Lambdas, Streams and functional-style programming. You can purchase the book here: [http://manning.com/urma/](http://manning.com/urma/) or on Amazon The source code for all examples can be found in the directory [src/main/java/lambdasinaction](https://github.com/java8/Java8InAction/tree/master/src/main/java/lambdasinaction) * Chapter 1: Java 8: why should you care? * Chapter 2: Passing code with behavior parameterization * Chapter 3: Lambda expressions * Chapter 4: Working with Streams * Chapter 5: Processing data with streams * Chapter 6: Collecting data with streams * Chapter 7: Parallel data processing and performance * Chapter 8: Refactoring, testing, debugging * Chapter 9: Default methods * Chapter 10: Using Optional as a better alternative to null * Chapter 11: CompletableFuture: composable asynchronous programming * Chapter 12: New Date and Time API * Chapter 13: Thinking functionally * Chapter 14: Functional programming techniques * Chapter 15: Blending OOP and FP: comparing Java 8 and Scala * Chapter 16: Conclusions and "where next" for Java * Appendix A: Miscellaneous language updates * Appendix B: Miscellaneous library updates * Appendix C: Performing multiple operations in parallel on a Stream * Appendix D: Lambdas and JVM bytecode We will update the repository as we update the book. Stay tuned! ### Make sure to have JDK8 installed The latest binary can be found here: http://www.oracle.com/technetwork/java/javase/overview/java8-2100321.html $ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) You can download a preview version here: https://jdk8.java.net/ ### Compile/Run the examples Using maven: $ mvn compile $ cd target/classes $ java lambdasinaction/chap1/FilteringApples Alternatively you can compile the files manually inside the directory src/main/java You can also import the project in your favorite IDE: * In IntelliJ use "File->Open" menu and navigate to the folder where the project resides * In Eclipse use "File->Import->Existing Maven Projects" (also modify "Reduntant super interfaces" to report as Warnings instead of Errors * In Netbeans use "File->Open Project" menu
0
twowaits/SDE-Interview-Questions
Most comprehensive list :clipboard: of tech interview questions :blue_book: of companies scraped from Geeksforgeeks, CareerCup and Glassdoor.
algorithm careercup coding-interview coding-interviews data-structures geeksforgeeks glassdoor interview-practice interview-prep interview-preparation interview-questions
[![All Contributors](https://img.shields.io/badge/all_contributors-49-orange.svg?style=flat-square)](#contributors) ![](https://github.com/rishabh115/Interview-Questions/blob/master/thumbnail.png) # Companies<sup title="Companies whose are articles are properly ready">*</sup> | | Companies| | ------ | ------ | | **E** | [Expedia](Expedia/README.md) | | **G** | [Grab](Grab/README.md) | | **M** | [MobiKwik](MobiKwik/README.md) | | **N** | [NEC Technologies](NEC%20Technologies/README.md) | | **P** | [PayPal](PayPal/README.md) | | **S** | [Samsung Research Institute](Samsung/README.md) | | **U** | [Uber](Uber/README.md) | | **Y** | [Yatra.com](Yatra.com/README.md) | | **Z** | [Zomato](Zomato/README.md) | ## Announcements👐 <i><b>📣This repo is not participating in hacktoberfest this year. </b></i> There are many unfinished articles in this repo. Feel free to contribute or create the issue. #### Note: This repo is for educational purposes only. If you are going to contribute, don't do symbolic contribution. Strictly adhere to contributing guidelines and hacktoberfest rules. Fixing grammar, typos and formatting only is complete non-sense. And non-sense is highly discouraged. ## Top Contributors ✨ Thanks goes to these wonderful people: <table href = "#contributors"> <tr> <td align="center"><a href="https://github.com/sesubash"><img src="https://avatars0.githubusercontent.com/u/4628269?v=4" width="100px;" alt="Subash Selvaraj"/><br /><sub><b>Subash Selvaraj</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=sesubash" title="Code">💻</a></td> <td align="center"><a href="https://in.linkedin.com/in/shrutiab"><img src="https://avatars0.githubusercontent.com/u/10259707?v=4" width="100px;" alt="Shruti Bhutaiya"/><br /><sub><b>Shruti Bhutaiya</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=shrutibhutaiya" title="Code">💻</a></td> <td align="center"><a href="https://github.com/akshit04"><img src="https://avatars0.githubusercontent.com/u/20995986?v=4" width="100px;" alt="Akshit Kharbanda"/><br /><sub><b>Akshit Kharbanda</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=akshit04" title="Code">💻</a></td> <td align="center"><a href="https://github.com/dhruv-aggarwal"><img src="https://avatars2.githubusercontent.com/u/13146014?v=4" width="100px;" alt="Dhruv Aggarwal"/><br /><sub><b>Dhruv Aggarwal</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=dhruv-aggarwal" title="Code">💻</a></td> <td align="center"><a href="https://github.com/CheshtaK"><img src="https://avatars2.githubusercontent.com/u/32400008?v=4" width="100px;" alt="Cheshta Kwatra"/><br /><sub><b>Cheshta Kwatra</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=CheshtaK" title="Code">💻</a></td> <td align="center"><a href="https://github.com/kartikay101"><img src="https://avatars0.githubusercontent.com/u/21268943?v=4" width="100px;" alt="Kartikay Shandil "/><br /><sub><b>Kartikay Shandil </b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=kartikay101" title="Code">💻</a></td> <td align="center"><a href="https://tanaytoshniwal.me"><img src="https://avatars3.githubusercontent.com/u/19304171?v=4" width="100px;" alt="Tanay Toshniwal"/><br /><sub><b>Tanay Toshniwal</b></sub></a><br /><a href="https://github.com/rishabh115/Interview-Questions/commits?author=tanaytoshniwal" title="Code">💻</a></td> </tr> </table> #### For contributing see <a href="https://github.com/rishabh115/InterviewQuestions/blob/master/CONTRIBUTING.md">Contributing guidelines</a> . ## Similar projects: - [Interviewee-Questions](https://github.com/alexakasanjeev/Interviewee-Questions) by [Sanjeev](https://github.com/alexakasanjeev) ## Feel free to show your love :heart: by putting a star :star: on this project :v: . <b name="ref">References</b> - [Geeksforgeeks](http://www.geeksforgeeks.org/) - [Career Cup](https://www.careercup.com/) - [Glassdoor](https://www.glassdoor.co.in/index.htm)
0
apache/tomcat
Apache Tomcat
http java javaee network-server tomcat
## Welcome to Apache Tomcat! ### What Is It? The Apache Tomcat® software is an open source implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language and Jakarta WebSocket technologies. The Jakarta Servlet, Jakarta Pages, Jakarta Expression Language and Jakarta WebSocket specifications are developed as part of the [Jakarta EE Platform](https://jakarta.ee/specifications/). The Apache Tomcat software is developed in an open and participatory environment and released under the [Apache License version 2](https://www.apache.org/licenses/). The Apache Tomcat project is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, [click here](https://tomcat.apache.org/getinvolved.html) or keep reading. Apache Tomcat software powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the [PoweredBy wiki page](https://cwiki.apache.org/confluence/display/TOMCAT/PoweredBy). Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat project logo are trademarks of the Apache Software Foundation. ### Get It For every major Tomcat version there is one download page containing links to the latest binary and source code downloads, but also links for browsing the download directories and archives: - [Tomcat 11](https://tomcat.apache.org/download-11.cgi) - [Tomcat 10](https://tomcat.apache.org/download-10.cgi) - [Tomcat 9](https://tomcat.apache.org/download-90.cgi) To facilitate choosing the right major Tomcat version one, we have provided a [version overview page](https://tomcat.apache.org/whichversion.html). ### Documentation The documentation available as of the date of this release is included in the docs webapp which ships with tomcat. You can access that webapp by starting tomcat and visiting <http://localhost:8080/docs/> in your browser. The most up-to-date documentation for each version can be found at: - [Tomcat 11](https://tomcat.apache.org/tomcat-11.0-doc/) - [Tomcat 10](https://tomcat.apache.org/tomcat-10.1-doc/) - [Tomcat 9](https://tomcat.apache.org/tomcat-9.0-doc/) ### Installation Please see [RUNNING.txt](RUNNING.txt) for more info. ### Licensing Please see [LICENSE](LICENSE) for more info. ### Support and Mailing List Information * Free community support is available through the [tomcat-users](https://tomcat.apache.org/lists.html#tomcat-users) email list and a dedicated [IRC channel](https://tomcat.apache.org/irc.html) (#tomcat on Freenode). * If you want freely available support for running Apache Tomcat, please see the resources page [here](https://tomcat.apache.org/findhelp.html). * If you want to be informed about new code releases, bug fixes, security fixes, general news and information about Apache Tomcat, please subscribe to the [tomcat-announce](https://tomcat.apache.org/lists.html#tomcat-announce) email list. * If you have a concrete bug report for Apache Tomcat, please see the instructions for reporting a bug [here](https://tomcat.apache.org/bugreport.html). ### Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) for more info.
0
wuyouzhuguli/SpringAll
循序渐进,学习Spring Boot、Spring Boot & Shiro、Spring Batch、Spring Cloud、Spring Cloud Alibaba、Spring Security & Spring Security OAuth2,博客Spring系列源码:https://mrbird.cc
learning shiro spring-boot spring-boot-learning spring-cloud spring-security springboot
null
0
Stirling-Tools/Stirling-PDF
locally hosted web application that allows you to perform various operations on PDF files
docker java pdf pdf-converter pdf-manipulation pdf-merger pdf-ocr pdf-tools pdf-web-apps pdfmerger
<p align="center"><img src="https://raw.githubusercontent.com/Stirling-Tools/Stirling-PDF/main/docs/stirling.png" width="80" ></p> <h1 align="center">Stirling-PDF</h1> [![Docker Pulls](https://img.shields.io/docker/pulls/frooodle/s-pdf)](https://hub.docker.com/r/frooodle/s-pdf) [![Discord](https://img.shields.io/discord/1068636748814483718?label=Discord)](https://discord.gg/Cn8pWhQRxZ) [![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/frooodle/s-pdf/latest)](https://github.com/Stirling-Tools/Stirling-PDF/) [![GitHub Repo stars](https://img.shields.io/github/stars/stirling-tools/stirling-pdf?style=social)](https://github.com/Stirling-Tools/stirling-pdf) [![Paypal Donate](https://img.shields.io/badge/Paypal%20Donate-yellow?style=flat&logo=paypal)](https://www.paypal.com/paypalme/froodleplex) [![Github Sponsor](https://img.shields.io/badge/Github%20Sponsor-yellow?style=flat&logo=github)](https://github.com/sponsors/Frooodle) [![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/Stirling-Tools/Stirling-PDF/tree/digitalOcean&refcode=c3210994b1af) This is a robust, locally hosted web-based PDF manipulation tool using Docker. It enables you to carry out various operations on PDF files, including splitting, merging, converting, reorganizing, adding images, rotating, compressing, and more. Originally developed entirely by ChatGPT, this locally hosted web application has evolved to encompass a comprehensive set of features, addressing all your PDF requirements. Stirling PDF does not initiate any outbound calls for record-keeping or tracking purposes. All files and PDFs exist either exclusively on the client side, reside in server memory only during task execution, or temporarily reside in a file solely for the execution of the task. Any file downloaded by the user will have been deleted from the server by that point. ![stirling-home](images/stirling-home.jpg) ## Features - Dark mode support. - Custom download options (see [here](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/images/settings.png) for example) - Parallel file processing and downloads - API for integration with external scripts - Optional Login and Authentication support (see [here](https://github.com/Stirling-Tools/Stirling-PDF/tree/main#login-authentication) for documentation) ## **PDF Features** ### **Page Operations** - View and modify PDFs - View multi page PDFs with custom viewing sorting and searching. Plus on page edit features like annotate, draw and adding text and images. (Using PDF.js with Joxit and Liberation.Liberation fonts) - Full interactive GUI for merging/splitting/rotating/moving PDFs and their pages. - Merge multiple PDFs together into a single resultant file. - Split PDFs into multiple files at specified page numbers or extract all pages as individual files. - Reorganize PDF pages into different orders. - Rotate PDFs in 90-degree increments. - Remove pages. - Multi-page layout (Format PDFs into a multi-paged page). - Scale page contents size by set %. - Adjust Contrast. - Crop PDF. - Auto Split PDF (With physically scanned page dividers). - Extract page(s). - Convert PDF to a single page. ### **Conversion Operations** - Convert PDFs to and from images. - Convert any common file to PDF (using LibreOffice). - Convert PDF to Word/Powerpoint/Others (using LibreOffice). - Convert HTML to PDF. - URL to PDF. - Markdown to PDF. ### **Security & Permissions** - Add and remove passwords. - Change/set PDF Permissions. - Add watermark(s). - Certify/sign PDFs. - Sanitize PDFs. - Auto-redact text. ### **Other Operations** - Add/Generate/Write signatures. - Repair PDFs. - Detect and remove blank pages. - Compare 2 PDFs and show differences in text. - Add images to PDFs. - Compress PDFs to decrease their filesize (Using OCRMyPDF). - Extract images from PDF. - Extract images from Scans. - Add page numbers. - Auto rename file by detecting PDF header text. - OCR on PDF (Using OCRMyPDF). - PDF/A conversion (Using OCRMyPDF). - Edit metadata. - Flatten PDFs. - Get all information on a PDF to view or export as JSON. For a overview of the tasks and the technology each uses please view [Endpoint-groups.md](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/Endpoint-groups.md) Demo of the app is available [here](https://stirlingpdf.io). username: demo, password: demo ## Technologies used - Spring Boot + Thymeleaf - [PDFBox](https://github.com/apache/pdfbox/tree/trunk) - [LibreOffice](https://www.libreoffice.org/discover/libreoffice/) for advanced conversions - [OcrMyPdf](https://github.com/ocrmypdf/OCRmyPDF) - HTML, CSS, JavaScript - Docker - [PDF.js](https://github.com/mozilla/pdf.js) - [PDF-LIB.js](https://github.com/Hopding/pdf-lib) ## How to use ### Locally Please view https://github.com/Stirling-Tools/Stirling-PDF/blob/main/LocalRunGuide.md ### Docker / Podman https://hub.docker.com/r/frooodle/s-pdf Stirling PDF has 2 different versions, a Full version and ultra-Lite version. Depending on the types of features you use you may want a smaller image to save on space. To see what the different versions offer please look at our [version mapping](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/Version-groups.md) For people that don't mind about space optimization just use the latest tag. ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/frooodle/s-pdf/latest?label=Stirling-PDF%20Full) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/frooodle/s-pdf/latest-ultra-lite?label=Stirling-PDF%20Ultra-Lite) Docker Run ```bash docker run -d \ -p 8080:8080 \ -v /location/of/trainingData:/usr/share/tessdata \ -v /location/of/extraConfigs:/configs \ -v /location/of/logs:/logs \ -e DOCKER_ENABLE_SECURITY=false \ -e INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false \ --name stirling-pdf \ frooodle/s-pdf:latest Can also add these for customisation but are not required -v /location/of/customFiles:/customFiles \ ``` Docker Compose ```yaml version: '3.3' services: stirling-pdf: image: frooodle/s-pdf:latest ports: - '8080:8080' volumes: - /location/of/trainingData:/usr/share/tessdata #Required for extra OCR languages - /location/of/extraConfigs:/configs # - /location/of/customFiles:/customFiles/ # - /location/of/logs:/logs/ environment: - DOCKER_ENABLE_SECURITY=false - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false ``` Note: Podman is CLI-compatible with Docker, so simply replace "docker" with "podman". ## Enable OCR/Compression feature Please view https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToUseOCR.md ## Supported Languages Stirling PDF currently supports 27! | Language | Progress | | ------------------------------------------- | -------------------------------------- | | English (English) (en_GB) | ![100%](https://geps.dev/progress/100) | | English (US) (en_US) | ![100%](https://geps.dev/progress/100) | | Arabic (العربية) (ar_AR) | ![58%](https://geps.dev/progress/58) | | German (Deutsch) (de_DE) | ![98%](https://geps.dev/progress/98) | | French (Français) (fr_FR) | ![94%](https://geps.dev/progress/94) | | Spanish (Español) (es_ES) | ![95%](https://geps.dev/progress/95) | | Simplified Chinese (简体中文) (zh_CN) | ![99%](https://geps.dev/progress/99) | | Traditional Chinese (繁體中文) (zh_TW) | ![99%](https://geps.dev/progress/99) | | Catalan (Català) (ca_CA) | ![65%](https://geps.dev/progress/65) | | Italian (Italiano) (it_IT) | ![98%](https://geps.dev/progress/98) | | Swedish (Svenska) (sv_SE) | ![58%](https://geps.dev/progress/58) | | Polish (Polski) (pl_PL) | ![60%](https://geps.dev/progress/60) | | Romanian (Română) (ro_RO) | ![58%](https://geps.dev/progress/58) | | Korean (한국어) (ko_KR) | ![94%](https://geps.dev/progress/94) | | Portuguese Brazilian (Português) (pt_BR) | ![74%](https://geps.dev/progress/74) | | Russian (Русский) (ru_RU) | ![94%](https://geps.dev/progress/94) | | Basque (Euskara) (eu_ES) | ![76%](https://geps.dev/progress/76) | | Japanese (日本語) (ja_JP) | ![94%](https://geps.dev/progress/94) | | Dutch (Nederlands) (nl_NL) | ![92%](https://geps.dev/progress/92) | | Greek (Ελληνικά) (el_GR) | ![92%](https://geps.dev/progress/92) | | Turkish (Türkçe) (tr_TR) | ![99%](https://geps.dev/progress/99) | | Indonesia (Bahasa Indonesia) (id_ID) | ![87%](https://geps.dev/progress/87) | | Hindi (हिंदी) (hi_IN) | ![88%](https://geps.dev/progress/88) | | Hungarian (Magyar) (hu_HU) | ![87%](https://geps.dev/progress/87) | | Bulgarian (Български) (bg_BG) | ![82%](https://geps.dev/progress/82) | | Sebian Latin alphabet (Srpski) (sr_LATN_RS) | ![89%](https://geps.dev/progress/89) | | Ukrainian (Українська) (uk_UA) | ![98%](https://geps.dev/progress/98) | ## Contributing (creating issues, translations, fixing bugs, etc.) Please see our [Contributing Guide](CONTRIBUTING.md)! ## Customisation Stirling PDF allows easy customization of the app. Includes things like - Custom application name - Custom slogans, icons, images, and even custom HTML (via file overrides) There are two options for this, either using the generated settings file ``settings.yml`` This file is located in the ``/configs`` directory and follows standard YAML formatting Environment variables are also supported and would override the settings file For example in the settings.yml you have ```yaml system: defaultLocale: 'en-US' ``` To have this via an environment variable you would have ``SYSTEM_DEFAULTLOCALE`` The Current list of settings is ```yaml security: enableLogin: false # set to 'true' to enable login csrfDisabled: true system: defaultLocale: 'en-US' # Set the default language (e.g. 'de-DE', 'fr-FR', etc) googlevisibility: false # 'true' to allow Google visibility (via robots.txt), 'false' to disallow customStaticFilePath: '/customFiles/static/' # Directory path for custom static files #ui: # appName: exampleAppName # Application's visible name # homeDescription: I am a description # Short description or tagline shown on homepage. # appNameNavbar: navbarName # Name displayed on the navigation bar endpoints: toRemove: [] # List endpoints to disable (e.g. ['img-to-pdf', 'remove-pages']) groupsToRemove: [] # List groups to disable (e.g. ['LibreOffice']) metrics: enabled: true # 'true' to enable Info APIs endpoints (view http://localhost:8080/swagger-ui/index.html#/API to learn more), 'false' to disable ``` ### Extra notes - Endpoints. Currently, the endpoints ENDPOINTS_TO_REMOVE and GROUPS_TO_REMOVE can include comma separate lists of endpoints and groups to disable as example ENDPOINTS_TO_REMOVE=img-to-pdf,remove-pages would disable both image-to-pdf and remove pages, GROUPS_TO_REMOVE=LibreOffice Would disable all things that use LibreOffice. You can see a list of all endpoints and groups [here](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/Endpoint-groups.md) - customStaticFilePath. Customise static files such as the app logo by placing files in the /customFiles/static/ directory. An example of customising app logo is placing a /customFiles/static/favicon.svg to override current SVG. This can be used to change any images/icons/css/fonts/js etc in Stirling-PDF ### Environment only parameters - ``SYSTEM_ROOTURIPATH`` ie set to ``/pdf-app`` to Set the application's root URI to ``localhost:8080/pdf-app`` - ``SYSTEM_CONNECTIONTIMEOUTMINUTES`` to set custom connection timeout values - ``DOCKER_ENABLE_SECURITY`` to tell docker to download security jar (required as true for auth login) - ``INSTALL_BOOK_AND_ADVANCED_HTML_OPS`` to download calibre onto stirling-pdf enabling pdf to/from book and advanced html conversion ## API For those wanting to use Stirling-PDFs backend API to link with their own custom scripting to edit PDFs you can view all existing API documentation [here](https://app.swaggerhub.com/apis-docs/Stirling-Tools/Stirling-PDF/) or navigate to /swagger-ui/index.html of your stirling-pdf instance for your versions documentation (Or by following the API button in your settings of Stirling-PDF) ## Login authentication ![stirling-login](images/login-light.png) ### Prerequisites: - User must have the folder ./configs volumed within docker so that it is retained during updates. - Docker uses must download the security jar version by setting ``DOCKER_ENABLE_SECURITY`` to ``true`` in environment variables. - Then either enable login via the settings.yml file or via setting ``SECURITY_ENABLE_LOGIN`` to ``true`` - Now the initial user will be generated with username ``admin`` and password ``stirling``. On login you will be forced to change the password to a new one. You can also use the environment variables ``SECURITY_INITIALLOGIN_USERNAME`` and ``SECURITY_INITIALLOGIN_PASSWORD`` to set your own straight away (Recommended to remove them after user creation). Once the above has been done, on restart, a new stirling-pdf-DB.mv.db will show if everything worked. When you login to Stirling PDF you will be redirected to /login page to login with those default credentials. After login everything should function as normal To access your account settings go to Account settings in the settings cog menu (top right in navbar) This Account settings menu is also where you find your API key. To add new users go to the bottom of Account settings and hit 'Admin Settings', here you can add new users. The different roles mentioned within this are for rate limiting. This is a Work in progress which will be expanding on more in future For API usage you must provide a header with 'X-API-Key' and the associated API key for that user. ## FAQ ### Q1: What are your planned features? - Progress bar/Tracking - Full custom logic pipelines to combine multiple operations together. - Folder support with auto scanning to perform operations on - Redact text (Via UI not just automated way) - Add Forms - Multi page layout (Stich PDF pages together) support x rows y columns and custom page sizing - Fill forms manually or automatically ### Q2: Why is my application downloading .htm files? This is an issue caused commonly by your NGINX configuration. The default file upload size for NGINX is 1MB, you need to add the following in your Nginx sites-available file. ``client_max_body_size SIZE;`` Where "SIZE" is 50M for example for 50MB files. ### Q3: Why is my download timing out NGINX has timeout values by default so if you are running Stirling-PDF behind NGINX you may need to set a timeout value such as adding the config ``proxy_read_timeout 3600;``
0
jishenghua/jshERP
华夏ERP基于SpringBoot框架和SaaS模式,立志为中小企业提供开源好用的ERP软件,目前专注进销存+财务功能。主要模块有零售管理、采购管理、销售管理、仓库管理、财务管理、报表查询、系统管理等。支持预付款、收入支出、仓库调拨、组装拆卸、订单等特色功能。拥有库存状况、出入库统计等报表。同时对角色和权限进行了细致全面控制,精确到每个按钮和菜单。
erp
# 项目总述 * 很多人说华夏ERP(英文名:jshERP)是目前人气领先的国产ERP系统 * 虽然目前只有进销存+财务+生产的功能,但后面将会推出ERP的全部功能,有兴趣请帮点一下 **Star** 哦 * **官网地址:http://www.huaxiaerp.com 商务或技术交流,请联系QQ:752718920 微信:shenhua861584** # 网络版介绍 * 推荐使用网络版(158元1年)淘宝链接:https://item.taobao.com/item.htm?id=674169489573 * 平台地址:http://cloud.huaxiaerp.com 欢迎大家注册租户进行使用 * 网络版手机端请扫描下方二维码 ![输入图片说明](https://cloud.huaxiaerp.com/static/android-code.png) ![输入图片说明](https://cloud.huaxiaerp.com/static/iphone-code.png) ![输入图片说明](https://cloud.huaxiaerp.com/static/weixin-code.png) # 定制和插件 * 如有ERP私人定制需求,请将需求整理成文档,发给邮箱: **752718920@qq.com** ,我会及时回复哒 * 如需更多功能,欢迎购买作者小店的插件 https://shop104070207.taobao.com/ 谢谢支持 # 开发初衷 * 华夏ERP立志为中小企业提供开源好用的ERP软件,降低企业的信息化成本 * 个人开发者也可以使用华夏ERP进行二次开发,加快完成开发任务 * 初学JAVA的小伙伴可以下载源代码来进行学习交流 # 技术框架 * 核心框架:SpringBoot 2.0.0 * 持久层框架:Mybatis 1.3.2 * 日志管理:SLF4J 1.7 * 前端框架:Vue 2.6.10 * UI框架: Ant-Design-Vue 1.5.2 * 模板框架: Jeecg-Boot 2.2.0 * 项目管理框架: Maven 3.2.3 # 开发环境 建议开发者使用以下环境,可以避免版本带来的问题 * IDE: IntelliJ IDEA 2019.2+和JetBrains WebStorm 2019.3+ * DB: Mysql 5.7.33 * JDK: JDK 1.8 * Node: Node 16.16.0 * Maven: Maven 3.2.3+ * Redis: 6.2.1 * Nginx: 1.12.2 # 服务器环境 * 数据库:Mysql5.7.33 * JAVA平台:JRE1.8 * Redis库:redis6.2.1 * Nginx代理:nginx1.12.2 * 操作系统:Windows、Linux等 # 配套资料 * 需要用户手册请访问这里 https://www.huaxiaerp.com/thread-393-1-1.html * 喜欢视频教程可以看这里 https://space.bilibili.com/540003552/channel/series * 为方便大家搭建运行环境,分享了下载地址 https://pan.baidu.com/s/1jlild9uyGdQ7H2yaMx76zw  提取码:814g * 不会打包的小伙伴,请下载此打包后的文件 https://share.weiyun.com/NDJNLhry 密码:vd3aig * 不会部署的小伙伴,请参考部署教程 http://www.huaxiaerp.com/thread-177-1-1.html * 部署后登录系统的默认租户账号:jsh,默认超管账户:admin,默认密码均为:123456 # 开源说明 * 本系统100%开源,遵守GPL-3.0协议 # 系统美图 * 首页 ![输入图片说明](jshERP-web/public/static/screenshot/1.jpg) * 零售管理 ![输入图片说明](jshERP-web/public/static/screenshot/2.jpg) * 采购管理 ![输入图片说明](jshERP-web/public/static/screenshot/3.jpg) * 销售管理 ![输入图片说明](jshERP-web/public/static/screenshot/4.jpg) * 仓库管理 ![输入图片说明](jshERP-web/public/static/screenshot/5.jpg) * 财务管理 ![输入图片说明](jshERP-web/public/static/screenshot/6.jpg) * 报表查询 ![输入图片说明](jshERP-web/public/static/screenshot/7.jpg) * 商品管理 ![输入图片说明](jshERP-web/public/static/screenshot/8.jpg) * 基本资料 ![输入图片说明](jshERP-web/public/static/screenshot/9.jpg) * 系统管理 ![输入图片说明](jshERP-web/public/static/screenshot/10.jpg) # 如何支持 * 开源不易,坚持更难!如果您觉得华夏ERP不错,不用请作者喝咖啡。 * 您可以将我们的云平台地址:https://cloud.huaxiaerp.com 发给您的家人或朋友,只要是开店的、办厂的、做批发的都可以用得上。 * 您可以到我们自营的拼多多商城进行支持:https://mobile.pinduoduo.com/mall_page.html?mall_id=375313371 * 以上将是对我们开源最大的支持!在此表示感谢!
0
pig-mesh/pig
↥ ↥ ↥ 点击关注更新,基于 Spring Cloud 2023 、Spring Boot 3.2、 OAuth2 的 RBAC 权限管理系统
docker oauth2 rbac-management spring-authorization-server spring-boot spring-cloud spring-cloud-alibaba spring-security vue3
<p align="center"> <img src="https://img.shields.io/badge/Pig-3.7-success.svg" alt="Build Status"> <img src="https://img.shields.io/badge/Spring%20Cloud-2023-blue.svg" alt="Coverage Status"> <img src="https://img.shields.io/badge/Spring%20Boot-3.2-blue.svg" alt="Downloads"> <img src="https://img.shields.io/badge/Vue-3.4-blue.svg" alt="Downloads"> <img src="https://img.shields.io/github/license/pig-mesh/pig"/> </p> ## 系统说明 - 基于 Spring Cloud 、Spring Boot、 OAuth2 的 RBAC **企业快速开发平台**, 同时支持微服务架构和单体架构 - 提供对 Spring Authorization Server 生产级实践,支持多种安全授权模式 - 提供对常见容器化方案支持 Kubernetes、Rancher2 、Kubesphere、EDAS、SAE 支持 #### 分支说明 - jdk17: java17/21 + springboot 3.2 + springcloud 2023 - master: java8 + springboot 2.7 + springcloud 2021 #### 文档视频 - 🔥 [ 配套文档 wiki.pig4cloud.com](https://wiki.pig4cloud.com) #### 其他产品 - 👉🏻 [PIGX 在线体验](http://home.pig4cloud.com:38081) - 👉🏻 [自研BPMN工作流引擎](http://home.pig4cloud.com:38082) - 👉🏻 [大模型 RAG 知识库](http://home.pig4cloud.com:38083) ## 微信群 [禁广告] ![](https://minio.pigx.top/oss/1648184189.png) ## 快速开始 ### 核心依赖 | 依赖 | 版本 | |-----------------------------|------------| | Spring Boot | 3.2.4 | | Spring Cloud | 2023.0.1 | | Spring Cloud Alibaba | 2022.0.0.0 | | Spring Authorization Server | 1.2.4 | | Mybatis Plus | 3.5.6 | | Vue | 3.4 | | Element Plus | 2.6 | ### 模块说明 ```lua pig-ui -- https://gitee.com/log4j/pig-ui pig ├── pig-boot -- 单体模式启动器[9999] ├── pig-auth -- 授权服务提供[3000] └── pig-common -- 系统公共模块 ├── pig-common-bom -- 全局依赖管理控制 ├── pig-common-core -- 公共工具类核心包 ├── pig-common-datasource -- 动态数据源包 ├── pig-common-log -- 日志服务 ├── pig-common-oss -- 文件上传工具类 ├── pig-common-mybatis -- mybatis 扩展封装 ├── pig-common-seata -- 分布式事务 ├── pig-common-security -- 安全工具类 ├── pig-common-swagger -- 接口文档 ├── pig-common-feign -- feign 扩展封装 └── pig-common-xss -- xss 安全封装 ├── pig-register -- Nacos Server[8848] ├── pig-gateway -- Spring Cloud Gateway网关[9999] └── pig-upms -- 通用用户权限管理模块 └── pig-upms-api -- 通用用户权限管理系统公共api模块 └── pig-upms-biz -- 通用用户权限管理系统业务处理模块[4000] └── pig-visual └── pig-monitor -- 服务监控 [5001] ├── pig-codegen -- 图形化代码生成 [5002] └── pig-quartz -- 定时任务管理台 [5007] ``` ### 本地开发 运行 pig 提供了详细的[部署文档 wiki.pig4cloud.com](https://www.yuque.com/pig4cloud/pig/vsdox9),包括开发环境安装、服务端代码运行、前端代码运行等。 请务必**完全按照**文档部署运行章节 进行操作,减少踩坑弯路!! ### Docker 运行 ``` # 下载并运行服务端代码 git clone https://gitee.com/log4j/pig.git -b jdk17 cd pig && mvn clean install && docker-compose up -d # 下载并运行前端UI git clone https://gitee.com/log4j/pig-ui.git cd pig-ui && npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install && cnpm run build:docker && cd docker && docker-compose up -d ``` ## 免费公开课 <table> <tr> <td><a href="https://www.bilibili.com/video/av45084065" target="_blank"><img src="https://minio.pigx.top/oss/1655474345.jpg"></a></td> <td><a href="https://www.bilibili.com/video/av77344954" target="_blank"><img src="https://minio.pigx.top/oss/1656837143.jpg"></a></td> </tr> <tr> <td><a href="https://www.bilibili.com/video/BV1J5411476V" target="_blank"><img src="https://minio.pigx.top/oss/1655474369.jpg"></a></td> <td><a href="https://www.bilibili.com/video/BV14p4y197K5" target="_blank"><img src="https://minio.pigx.top/oss/1655474381.jpg"></a></td> </tr> </table> ## 开源共建 ### 开源协议 pig 开源软件遵循 [Apache 2.0 协议](https://www.apache.org/licenses/LICENSE-2.0.html)。 允许商业使用,但务必保留类作者、Copyright 信息。 ![](https://minio.pigx.top/oss/1655474288.jpg) ### 其他说明 1. 欢迎提交 [PR](https://dwz.cn/2KURd5Vf),注意对应提交对应 `dev` 分支 代码规范 [spring-javaformat](https://github.com/spring-io/spring-javaformat) <details> <summary>代码规范说明</summary> 1. 由于 <a href="https://github.com/spring-io/spring-javaformat" target="_blank">spring-javaformat</a> 强制所有代码按照指定格式排版,未按此要求提交的代码将不能通过合并(打包) 2. 如果使用 IntelliJ IDEA 开发,请安装自动格式化软件 <a href="https://repo1.maven.org/maven2/io/spring/javaformat/spring-javaformat-intellij-idea-plugin/" target="_blank"> spring-javaformat-intellij-idea-plugin</a> 3. 其他开发工具,请参考 <a href="https://github.com/spring-io/spring-javaformat" target="_blank"> spring-javaformat</a> 说明,或`提交代码前`在项目根目录运行下列命令(需要开发者电脑支持`mvn`命令)进行代码格式化 ``` mvn spring-javaformat:apply ``` </details> 2. 欢迎提交 [issue](https://gitee.com/log4j/pig/issues),请写清楚遇到问题的原因、开发环境、复显步骤。
0
vespa-engine/vespa
AI + Data, online. https://vespa.ai
ai big-data cpp java machine-learning search-engine server serving serving-recommendation tensorflow vector-search vespa
<!-- Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://vespa.ai/assets/vespa-ai-logo-heather.svg"> <source media="(prefers-color-scheme: light)" srcset="https://vespa.ai/assets/vespa-ai-logo-rock.svg"> <img alt="#Vespa" width="200" src="https://vespa.ai/assets/vespa-ai-logo-rock.svg" style="margin-bottom: 25px;"> </picture> <br/><br/> Search, make inferences in, and organize vectors, tensors, text and structured data, at serving time and any scale. This repository contains all the code required to build and run all of Vespa yourself, and where you can see all development as it is happening. All the content in this repository is licensed under the Apache 2.0 license. A new release of Vespa is made from this repository's master branch every morning CET Monday through Thursday. Build status: [![Vespa Build Status](https://api.screwdriver.cd/v4/pipelines/6386/build-vespa/badge)](https://cd.screwdriver.cd/pipelines/6386) - Home page: [https://vespa.ai](https://vespa.ai) - Documentation: [https://docs.vespa.ai](https://docs.vespa.ai) - Continuous build: [https://factory.vespa.oath.cloud](https://factory.vespa.oath.cloud) - Run applications in the cloud for free: [https://cloud.vespa.ai](https://cloud.vespa.ai) ## Table of contents - [Background](#background) - [Install](#install) - [Usage](#usage) - [Contribute](#contribute) - [Building](#building) - [License](#license) ## Background Use cases such as search, recommendation and personalization need to select a subset of data in a large corpus, evaluate machine-learned models over the selected data, organize and aggregate it and return it, typically in less than 100 milliseconds, all while the data corpus is continuously changing. This is hard to do, especially with large data sets that needs to be distributed over multiple nodes and evaluated in parallel. Vespa is a platform which performs these operations for you with high availability and performance. It has been in development for many years and is used on a number of large internet services and apps which serve hundreds of thousands of queries from Vespa per second. ## Install Deploy your Vespa applications to the cloud service: [https://cloud.vespa.ai](https://cloud.vespa.ai), or run your own Vespa instance: [https://docs.vespa.ai/en/getting-started.html](https://docs.vespa.ai/en/getting-started.html) ## Usage - The application created in the getting started guides linked above are fully functional and production ready, but you may want to [add more nodes](https://docs.vespa.ai/en/multinode-systems.html) for redundancy. - See [developing applications](https://docs.vespa.ai/en/developer-guide.html) on adding your own Java components to your Vespa application. - [Vespa APIs](https://docs.vespa.ai/en/api.html) is useful to understand how to interface with Vespa - Explore the [sample applications](https://github.com/vespa-engine/sample-apps/tree/master) - Follow the [Vespa Blog](https://blog.vespa.ai/) for feature updates / use cases Full documentation is at [https://docs.vespa.ai](https://docs.vespa.ai). ## Contribute We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) to learn how to contribute. If you want to contribute to the documentation, see [https://github.com/vespa-engine/documentation](https://github.com/vespa-engine/documentation) ## Building You do not need to build Vespa to use it, but if you want to contribute you need to be able to build the code. This section explains how to build and test Vespa. To understand where to make changes, see [Code-map.md](Code-map.md). Some suggested improvements with pointers to code are in [TODO.md](TODO.md). ### Development environment C++ and Java building is supported on AlmaLinux 8. The Java source can also be built on any platform having Java 17 and Maven installed. Use the following guide to set up a complete development environment using Docker for building Vespa, running unit tests and running system tests: [Vespa development on AlmaLinux 8](https://github.com/vespa-engine/docker-image-dev#vespa-development-on-almalinux-8). ### Build Java modules export MAVEN_OPTS="-Xms128m -Xmx1024m" ./bootstrap.sh java mvn install --threads 1C Use this if you only need to build the Java modules, otherwise follow the complete development guide above. ## License Code licensed under the Apache 2.0 license. See [LICENSE](LICENSE) for terms.
0
TheoKanning/openai-java
OpenAI Api Client in Java
gpt3 java openai
![Maven Central](https://img.shields.io/maven-central/v/com.theokanning.openai-gpt3-java/client?color=blue) > ⚠️OpenAI has deprecated all Engine-based APIs. See [Deprecated Endpoints](https://github.com/TheoKanning/openai-java#deprecated-endpoints) below for more info. # OpenAI-Java Java libraries for using OpenAI's GPT apis. Supports GPT-3, ChatGPT, and GPT-4. Includes the following artifacts: - `api` : request/response POJOs for the GPT APIs. - `client` : a basic retrofit client for the GPT endpoints, includes the `api` module - `service` : A basic service class that creates and calls the client. This is the easiest way to get started. as well as an example project using the service. ## Supported APIs - [Models](https://platform.openai.com/docs/api-reference/models) - [Completions](https://platform.openai.com/docs/api-reference/completions) - [Chat Completions](https://platform.openai.com/docs/api-reference/chat/create) - [Edits](https://platform.openai.com/docs/api-reference/edits) - [Embeddings](https://platform.openai.com/docs/api-reference/embeddings) - [Audio](https://platform.openai.com/docs/api-reference/audio) - [Files](https://platform.openai.com/docs/api-reference/files) - [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tuning) - [Images](https://platform.openai.com/docs/api-reference/images) - [Moderations](https://platform.openai.com/docs/api-reference/moderations) - [Assistants](https://platform.openai.com/docs/api-reference/assistants) #### Deprecated by OpenAI - [Engines](https://platform.openai.com/docs/api-reference/engines) - [Legacy Fine-Tunes](https://platform.openai.com/docs/guides/legacy-fine-tuning) ## Importing ### Gradle `implementation 'com.theokanning.openai-gpt3-java:<api|client|service>:<version>'` ### Maven ```xml <dependency> <groupId>com.theokanning.openai-gpt3-java</groupId> <artifactId>{api|client|service}</artifactId> <version>version</version> </dependency> ``` ## Usage ### Data classes only If you want to make your own client, just import the POJOs from the `api` module. Your client will need to use snake case to work with the OpenAI API. ### Retrofit client If you're using retrofit, you can import the `client` module and use the [OpenAiApi](client/src/main/java/com/theokanning/openai/OpenAiApi.java). You'll have to add your auth token as a header (see [AuthenticationInterceptor](client/src/main/java/com/theokanning/openai/AuthenticationInterceptor.java)) and set your converter factory to use snake case and only include non-null fields. ### OpenAiService If you're looking for the fastest solution, import the `service` module and use [OpenAiService](service/src/main/java/com/theokanning/openai/service/OpenAiService.java). > ⚠️The OpenAiService in the client module is deprecated, please switch to the new version in the service module. ```java OpenAiService service = new OpenAiService("your_token"); CompletionRequest completionRequest = CompletionRequest.builder() .prompt("Somebody once told me the world is gonna roll me") .model("babbage-002"") .echo(true) .build(); service.createCompletion(completionRequest).getChoices().forEach(System.out::println); ``` ### Customizing OpenAiService If you need to customize OpenAiService, create your own Retrofit client and pass it in to the constructor. For example, do the following to add request logging (after adding the logging gradle dependency): ```java ObjectMapper mapper = defaultObjectMapper(); OkHttpClient client = defaultClient(token, timeout) .newBuilder() .interceptor(HttpLoggingInterceptor()) .build(); Retrofit retrofit = defaultRetrofit(client, mapper); OpenAiApi api = retrofit.create(OpenAiApi.class); OpenAiService service = new OpenAiService(api); ``` ### Adding a Proxy To use a proxy, modify the OkHttp client as shown below: ```java ObjectMapper mapper = defaultObjectMapper(); Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, port)); OkHttpClient client = defaultClient(token, timeout) .newBuilder() .proxy(proxy) .build(); Retrofit retrofit = defaultRetrofit(client, mapper); OpenAiApi api = retrofit.create(OpenAiApi.class); OpenAiService service = new OpenAiService(api); ``` ### Functions You can create your functions and define their executors easily using the ChatFunction class, along with any of your custom classes that will serve to define their available parameters. You can also process the functions with ease, with the help of an executor called FunctionExecutor. First we declare our function parameters: ```java public class Weather { @JsonPropertyDescription("City and state, for example: León, Guanajuato") public String location; @JsonPropertyDescription("The temperature unit, can be 'celsius' or 'fahrenheit'") @JsonProperty(required = true) public WeatherUnit unit; } public enum WeatherUnit { CELSIUS, FAHRENHEIT; } public static class WeatherResponse { public String location; public WeatherUnit unit; public int temperature; public String description; // constructor } ``` Next, we declare the function itself and associate it with an executor, in this example we will fake a response from some API: ```java ChatFunction.builder() .name("get_weather") .description("Get the current weather of a location") .executor(Weather.class, w -> new WeatherResponse(w.location, w.unit, new Random().nextInt(50), "sunny")) .build() ``` Then, we employ the FunctionExecutor object from the 'service' module to assist with execution and transformation into an object that is ready for the conversation: ```java List<ChatFunction> functionList = // list with functions FunctionExecutor functionExecutor = new FunctionExecutor(functionList); List<ChatMessage> messages = new ArrayList<>(); ChatMessage userMessage = new ChatMessage(ChatMessageRole.USER.value(), "Tell me the weather in Barcelona."); messages.add(userMessage); ChatCompletionRequest chatCompletionRequest = ChatCompletionRequest .builder() .model("gpt-3.5-turbo-0613") .messages(messages) .functions(functionExecutor.getFunctions()) .functionCall(new ChatCompletionRequestFunctionCall("auto")) .maxTokens(256) .build(); ChatMessage responseMessage = service.createChatCompletion(chatCompletionRequest).getChoices().get(0).getMessage(); ChatFunctionCall functionCall = responseMessage.getFunctionCall(); // might be null, but in this case it is certainly a call to our 'get_weather' function. ChatMessage functionResponseMessage = functionExecutor.executeAndConvertToMessageHandlingExceptions(functionCall); messages.add(response); ``` > **Note:** The `FunctionExecutor` class is part of the 'service' module. You can also create your own function executor. The return object of `ChatFunctionCall.getArguments()` is a JsonNode for simplicity and should be able to help you with that. For a more in-depth look, refer to a conversational example that employs functions in: [OpenAiApiFunctionsExample.java](example/src/main/java/example/OpenAiApiFunctionsExample.java). Or for an example using functions and stream: [OpenAiApiFunctionsWithStreamExample.java](example/src/main/java/example/OpenAiApiFunctionsWithStreamExample.java) ### Streaming thread shutdown If you want to shut down your process immediately after streaming responses, call `OpenAiService.shutdownExecutor()`. This is not necessary for non-streaming calls. ## Running the example project All the [example](example/src/main/java/example/OpenAiApiExample.java) project requires is your OpenAI api token ```bash export OPENAI_TOKEN="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ``` You can try all the capabilities of this project using: ```bash ./gradlew runExampleOne ``` And you can also try the new capability of using functions: ```bash ./gradlew runExampleTwo ``` Or functions with 'stream' mode enabled: ```bash ./gradlew runExampleThree ``` ## FAQ ### Does this support GPT-4? Yes! GPT-4 uses the ChatCompletion Api, and you can see the latest model options [here](https://platform.openai.com/docs/models/gpt-4). GPT-4 is currently in a limited beta (as of 4/1/23), so make sure you have access before trying to use it. ### Does this support functions? Absolutely! It is very easy to use your own functions without worrying about doing the dirty work. As mentioned above, you can refer to [OpenAiApiFunctionsExample.java](example/src/main/java/example/OpenAiApiFunctionsExample.java) or [OpenAiApiFunctionsWithStreamExample.java](example/src/main/java/example/OpenAiApiFunctionsWithStreamExample.java) projects for an example. ### Why am I getting connection timeouts? Make sure that OpenAI is available in your country. ### Why doesn't OpenAiService support x configuration option? Many projects use OpenAiService, and in order to support them best I've kept it extremely simple. You can create your own OpenAiApi instance to customize headers, timeouts, base urls etc. If you want features like retry logic and async calls, you'll have to make an `OpenAiApi` instance and call it directly instead of using `OpenAiService` ## Deprecated Endpoints OpenAI has deprecated engine-based endpoints in favor of model-based endpoints. For example, instead of using `v1/engines/{engine_id}/completions`, switch to `v1/completions` and specify the model in the `CompletionRequest`. The code includes upgrade instructions for all deprecated endpoints. I won't remove the old endpoints from this library until OpenAI shuts them down. ## License Published under the MIT License
0
StarRocks/starrocks
StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries. InfoWorld’s 2023 BOSSIE Award for best open source software.
analytics big-data cloudnative database datalake delta-lake distributed-database hudi iceberg join lakehouse lakehouse-platform mpp olap real-time-analytics real-time-updates realtime-database sql star-schema vectorized
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=e8355b6b-a9fc-4d4e-8ed8-b3157aa1827d" /> <p align="center"> <a href="https://starrocks.io/index"> <img width="900" src="https://cdn.starrocks.io/static/github/starrocks.png"> </a> </p> <p align="center"> <a href="https://starrocks.io/download/community">Download</a> | <a href="https://docs.starrocks.io/">Docs</a> | <a href="https://starrocks.io/blog/benchmark-test">Benchmarks</a> | <a href="https://github.com/StarRocks/demo">Demo</a> </p> <p align="center"> <img src="https://img.shields.io/badge/Made%20with-JAVA%20%26%20C%2B%2B-red" alt="JAVA&C++"> </a> <img src="https://img.shields.io/github/commit-activity/m/StarRocks/starrocks" alt="Commit Activities"> </a> <a href="https://github.com/StarRocks/starrocks/issues"> <img src="https://img.shields.io/github/issues-raw/StarRocks/starrocks" alt="Open Issues"> </a> </a> <a href="https://starrocks.io/index"> <img src="https://img.shields.io/badge/Visit%20StarRocks-Website-green" alt="Website"> </a> </a> <a href="https://join.slack.com/t/starrocks/shared_invite/zt-z5zxqr0k-U5lrTVlgypRIV8RbnCIAzg"> <img src="https://img.shields.io/badge/Join-Slack-ff69b4" alt="Slack"> </a> </a> <a href="https://twitter.com/StarRocksLabs"> <img src="https://img.shields.io/twitter/follow/StarRocksLabs?style=social" alt="Twitter"> </a> </p> <div align="center"> </div> StarRocks, a Linux Foundation project, is the next-generation data platform designed to make data-intensive real-time analytics fast and easy. It delivers query speeds 5 to 10 times faster than other popular solutions. StarRocks can perform real-time analytics well while updating historical records. It can also enhance real-time analytics with historical data from data lakes easily. With StarRocks, you can get rid of the de-normalized tables and get the best performance and flexibility. <br> Learn more 👉🏻 [Introduction to StarRocks](https://www.starrocks.io/blog/introduction_to_starrocks ) <br> <p align="center"> <img src="https://cdn.starrocks.io/static/github/community.gif"> </a> </p> </br> ## Features * **🚀 Native vectorized SQL engine:** StarRocks adopts vectorization technology to make full use of the parallel computing power of CPU, achieving sub-second query returns in multi-dimensional analyses, which is 5 to 10 times faster than previous systems. * **📊 Standard SQL:** StarRocks supports ANSI SQL syntax (fully supported TPC-H and TPC-DS). It is also compatible with the MySQL protocol. Various clients and BI software can be used to access StarRocks. * **💡 Smart query optimization:** StarRocks can optimize complex queries through CBO (Cost Based Optimizer). With a better execution plan, the data analysis efficiency will be greatly improved. * **⚡ Real-time update:** The updated model of StarRocks can perform upsert/delete operations according to the primary key, and achieve efficient query while concurrent updates. * **🪟 Intelligent materialized view:** The materialized view of StarRocks can be automatically updated during the data import and automatically selected when the query is executed. * **✨ Querying data in data lakes directly**: StarRocks allows direct access to data from Apache Hive™, Apache Iceberg™, and Apache Hudi™ without importing. * **🎛️ Resource management**: This feature allows StarRocks to limit resource consumption for queries and implement isolation and efficient use of resources among tenants in the same cluster. * **💠 Easy to maintain**: Simple architecture makes StarRocks easy to deploy, maintain and scale out. StarRocks tunes its query plan agilely, balances the resources when the cluster is scaled in or out, and recovers the data replica under node failure automatically. <br> ## Architecture Overview <p align="center"> <img src="images/arch.png"> </a> </p> StarRocks’s streamlined architecture is mainly composed of two modules: Frontend (FE) and Backend (BE). The entire system eliminates single points of failure through seamless and horizontal scaling of FE and BE, as well as replication of metadata and data. Starting from version 3.0, StarRocks supports a new shared-data architecture, which can provide better scalability and lower costs. <p align="center"> <img src="images/arch-v30.png"> </a> </p> <br> ## Resources ### 📚 Read the docs | Section | Description | |-|-| | [Deploy](https://docs.starrocks.io/en-us/latest/quick_start/Deploy) | Learn how to run and configure StarRocks.| | [Articles](https://github.com/StarRocks/starrocks/discussions/categories/how-tos-tutorials-best-practices-and-architecture-articles)| How-tos, Tutorials, Best Practices and Architecture Articles. | | [Docs](https://docs.starrocks.io/en-us/latest/introduction/StarRocks_intro)| Full documentation. | | [Blogs](https://starrocks.io/blog) | StarRocks deep dive and user stories. | ### ❓ Get support [<img align="right" width="150" src="https://firstcontributions.github.io/assets/Readme/join-slack-team.png">](https://join.slack.com/t/starrocks/shared_invite/zt-z5zxqr0k-U5lrTVlgypRIV8RbnCIAzg) - [Slack community: ](https://join.slack.com/t/starrocks/shared_invite/zt-z5zxqr0k-U5lrTVlgypRIV8RbnCIAzg)join technical discussions, ask questions, and meet other users! - [YouTube channel:](https://www.youtube.com/channel/UC38wR-ogamk4naaWNQ45y7Q/featured) subscribe to the latest video tutorials and webcasts. - [GitHub issues:](https://github.com/StarRocks/starrocks/issues) report an issue with StarRocks. <br> ## Contributing to StarRocks We welcome all kinds of contributions from the community, individuals and partners. We owe our success to your active involvement. 1. See [Contributing.md](https://github.com/StarRocks/starrocks/blob/main/CONTRIBUTING.md) to get started. 2. Set up StarRocks development environment: * [IDE Setup](https://docs.starrocks.io/docs/developers/development-environment/ide-setup/) 3. Understand our [GitHub workflow](https://github.com/StarRocks/community/blob/main/Contributors/guide/workflow.md) for opening a pull request; use this [PR Template](https://github.com/StarRocks/starrocks/blob/main/.github/PULL_REQUEST_TEMPLATE.md) when submitting a pull request. 4. Pick a [good first issue](https://github.com/StarRocks/starrocks/labels/good%20first%20issue) and start contributing. **📝 License:** StarRocks is licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). **👥 Community Membership:** Learn more about different [contributor roles](community/membership.md) in StarRocks community. <br> ## Used By This project is used by the following companies. Learn more about their use cases: - [Airbnb](https://www.youtube.com/watch?v=AzDxEZuMBwM&ab_channel=StarRocks_labs) - [Tencent](https://www.starrocks.io/blog/tencent-unifies-their-gaming-analytics-with-starrocks) - [Shopee](https://www.youtube.com/watch?v=FJf6tVFr-20) - [Trip.com](https://starrocks.medium.com/trip-com-starrocks-efficiently-supports-high-concurrent-queries-dramatically-reduces-labor-and-1e1921dd6bf8) - [Didi](https://www.starrocks.io/blog/reduced-80-cost-didis-journey-from-multiple-olap-engines-to-starrocks)
0
DependencyTrack/dependency-track
Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
appsec bill-of-materials bom component-analysis cyclonedx devsecops nvd ossindex owasp package-url purl sbom sca security security-automation software-composition-analysis software-security vulndb vulnerabilities vulnerability-detection
[![Build Status](https://github.com/DependencyTrack/dependency-track/actions/workflows/ci-build.yaml/badge.svg)](https://github.com/DependencyTrack/dependency-track/actions?workflow=CI+Build) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/b2ecd06dab57438a9a55bc4a71c5a8ce)](https://www.codacy.com/gh/DependencyTrack/dependency-track/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=DependencyTrack/dependency-track&amp;utm_campaign=Badge_Grade) [![Alpine](https://img.shields.io/badge/built%20on-Alpine-blue.svg)](https://github.com/stevespringett/Alpine) [![License][license-image]][Apache License 2.0] [![OWASP Flagship](https://img.shields.io/badge/owasp-flagship%20project-orange.svg)](https://www.owasp.org/index.php/OWASP_Dependency_Track_Project) [![Website](https://img.shields.io/badge/https://-dependencytrack.org-blue.svg)](https://dependencytrack.org/) [![Documentation](https://img.shields.io/badge/read-documentation-blue.svg)](https://docs.dependencytrack.org/) [![Slack](https://img.shields.io/badge/chat%20on-slack-46BC99.svg)](https://dependencytrack.org/slack) [![Group Discussion](https://img.shields.io/badge/discussion-groups.io-blue.svg)](https://dependencytrack.org/discussion) [![YouTube Subscribe](https://img.shields.io/badge/youtube-subscribe-%23c4302b.svg)](https://dependencytrack.org/youtube) [![Twitter](https://img.shields.io/twitter/follow/dependencytrack.svg?label=Follow&style=social)](https://twitter.com/dependencytrack) [![Downloads](https://img.shields.io/github/downloads/DependencyTrack/dependency-track/total.svg)](https://github.com/DependencyTrack/dependency-track/releases) [![Latest](https://img.shields.io/github/release/DependencyTrack/dependency-track.svg)](https://github.com/DependencyTrack/dependency-track/releases) [![Pulls - API Server](https://img.shields.io/docker/pulls/dependencytrack/apiserver.svg?label=Docker%20Pulls%20%28API%20Server%29)](https://hub.docker.com/r/dependencytrack/apiserver/) [![Pulls - Frontend](https://img.shields.io/docker/pulls/dependencytrack/frontend.svg?label=Docker%20Pulls%20%28Frontend%29)](https://hub.docker.com/r/dependencytrack/frontend/) [![Pulls - Bundled](https://img.shields.io/docker/pulls/dependencytrack/bundled.svg?label=Docker%20Pulls%20%28Bundled%29)](https://hub.docker.com/r/dependencytrack/bundled/) [![Pulls - Legacy](https://img.shields.io/docker/pulls/owasp/dependency-track.svg?label=Docker%20Pulls%20%28OWASP%20Legacy%29)](https://hub.docker.com/r/owasp/dependency-track/) ![logo preview](https://raw.githubusercontent.com/DependencyTrack/branding/master/dt-logo.svg?sanitize=true) Dependency-Track is an intelligent [Component Analysis] platform that allows organizations to identify and reduce risk in the software supply chain. Dependency-Track takes a unique and highly beneficial approach by leveraging the capabilities of [Software Bill of Materials] (SBOM). This approach provides capabilities that traditional Software Composition Analysis (SCA) solutions cannot achieve. Dependency-Track monitors component usage across all versions of every application in its portfolio in order to proactively identify risk across an organization. The platform has an API-first design and is ideal for use in CI/CD environments. ## Ecosystem Overview ![alt text](./docs/images/integrations.png) ## Features * Consumes and produces [CycloneDX] Software Bill of Materials (SBOM) * Consumes and produces [CycloneDX Vulnerability Exploitability Exchange (VEX)](https://cyclonedx.org/capabilities/vex/) * Component support for: * Applications * Libraries * Frameworks * Operating systems * Containers * Firmware * Files * Hardware * Services * Tracks component usage across every application in an organizations portfolio * Quickly identify what is affected, and where * Identifies multiple forms of risk including * Components with known vulnerabilities * Out-of-date components * Modified components * License risk * More coming soon... * Integrates with multiple sources of vulnerability intelligence including: * [National Vulnerability Database] (NVD) * [GitHub Advisories] * [Sonatype OSS Index] * [Snyk] * [Trivy] * [OSV] * [VulnDB] from [Risk Based Security] * More coming soon. * Helps to prioritize mitigation by incorporating support for the [Exploit Prediction Scoring System (EPSS)](https://www.first.org/epss/) * Maintain a private vulnerability database of vulnerability components * Robust policy engine with support for global and per-project policies * Security risk and compliance * License risk and compliance * Operational risk and compliance * Ecosystem agnostic with built-in repository support for: * Cargo (Rust) * Composer (PHP) * Gems (Ruby) * Hex (Erlang/Elixir) * Maven (Java) * NPM (Javascript) * CPAN (Perl) * NuGet (.NET) * PyPI (Python) * More coming soon. * Identifies APIs and external service components including: * Service provider * Endpoint URIs * Data classification * Directional flow of data * Trust boundary traversal * Authentication requirements * Includes a comprehensive auditing workflow for triaging results * Configurable notifications supporting Slack, Microsoft Teams, Mattermost, Webhooks, Webex, Email and Jira * Supports standardized SPDX license ID’s and tracks license use by component * Easy to read metrics for components, projects, and portfolio * Native support for Kenna Security, Fortify SSC, ThreadFix, and DefectDojo * API-first design facilitates easy integration with other systems * API documentation available in OpenAPI format * OAuth 2.0 + OpenID Connect (OIDC) support for single sign-on (authN/authZ) * Supports internally managed users, Active Directory/LDAP, and API Keys * Simple to install and configure. Get up and running in just a few minutes <hr> ![alt text](./docs/images/screenshots/dashboard.png) ### Quickstart (Docker Compose) ```bash # Downloads the latest Docker Compose file curl -LO https://dependencytrack.org/docker-compose.yml # Starts the stack using Docker Compose docker-compose up -d ``` ### Quickstart (Docker Swarm) ```bash # Downloads the latest Docker Compose file curl -LO https://dependencytrack.org/docker-compose.yml # Initializes Docker Swarm (if not previously initialized) docker swarm init # Starts the stack using Docker Swarm docker stack deploy -c docker-compose.yml dtrack ``` ### Quickstart (Manual Execution) ```bash # Pull the image from the Docker Hub OWASP repo docker pull dependencytrack/bundled # Creates a dedicated volume where data can be stored outside the container docker volume create --name dependency-track # Run the bundled container with 8GB RAM on port 8080 docker run -d -m 8192m -p 8080:8080 --name dependency-track -v dependency-track:/data dependencytrack/bundled ``` **NOTICE: Always use official binary releases in production.** ## Distributions Dependency-Track has three distribution variants. They are: | Package | Package Format | Recommended | Supported | Docker | Download | |:-----------|:------------------------|:-----------:|:---------:|:------:|:--------:| | API Server | Executable WAR | ✅ | ✅ | ✅ | ✅ | | Frontend | Single Page Application | ✅ | ✅ | ✅ | ✅ | | Bundled | Executable WAR | ❌ | ☑️ | ✅ | ✅ | #### API Server The API Server contains an embedded Jetty server and all server-side functionality, but excludes the frontend user interface. This variant is new as of Dependency-Track v4.0. #### Frontend The [Frontend](https://github.com/DependencyTrack/frontend) is the user interface that is accessible in a web browser. The Frontend is a Single Page Application (SPA) that can be deployed independently of the Dependency-Track API Server. This variant is new as of Dependency-Track v3.8. #### Bundled The Bundled variant combines the API Server and the Frontend user interface. This variant was previously referred to as the executable war and was the preferred distribution from Dependency-Track v3.0 - v3.8. This variant is supported but deprecated and will be discontinued in a future release. #### Traditional The Traditional variant combines the API Server and the Frontend user interface and must be deployed to a Servlet container. This variant is not supported, deprecated, and will be discontinued in a future release. ## Deploying on Kubernetes with Helm Refer to https://github.com/DependencyTrack/helm-charts. ## Contributing Interested in contributing to Dependency-Track? Please check [`CONTRIBUTING.md`](./CONTRIBUTING.md) to see how you can help! ## Resources * Website: <https://dependencytrack.org/> * Documentation: <https://docs.dependencytrack.org/> * Component Analysis: <https://owasp.org/www-community/Component_Analysis> ## Community * Twitter: <https://dependencytrack.org/twitter> * YouTube: <https://dependencytrack.org/youtube> * Slack: <https://dependencytrack.org/slack> (Invite: <https://dependencytrack.org/slack/invite>) * Discussion (Groups.io): <https://dependencytrack.org/discussion> ## Copyright & License Dependency-Track is Copyright (c) OWASP Foundation. All Rights Reserved. Permission to modify and redistribute is granted under the terms of the [Apache License 2.0]. Dependency-Track makes use of several other open source libraries. Please see the [notices] file for more information. [National Vulnerability Database]: https://nvd.nist.gov [GitHub Advisories]: https://www.github.com/advisories [Sonatype OSS Index]: https://ossindex.sonatype.org [Snyk]: https://snyk.io [Trivy]: https://www.aquasec.com/products/trivy/ [OSV]: https://osv.dev [VulnDB]: https://vulndb.cyberriskanalytics.com [Risk Based Security]: https://www.riskbasedsecurity.com [Component Analysis]: https://owasp.org/www-community/Component_Analysis [Software Bill of Materials]: https://owasp.org/www-community/Component_Analysis#software-bill-of-materials-sbom [CycloneDX]: https://cyclonedx.org [license-image]: https://img.shields.io/badge/license-apache%20v2-brightgreen.svg [Apache License 2.0]: https://github.com/DependencyTrack/dependency-track/blob/master/LICENSE.txt [notices]: https://github.com/DependencyTrack/dependency-track/blob/master/NOTICES.txt [Alpine]: https://github.com/stevespringett/Alpine
0
wagiro/BurpBounty
Burp Bounty (Scan Check Builder in BApp Store) is a extension of Burp Suite that allows you, in a quick and simple way, to improve the active and passive scanner by means of personalized rules through a very intuitive graphical interface.
bug-bounty bugbounty burp-extensions burpsuite vulnerability-detection vulnerability-scanner
[![GitHub release](https://img.shields.io/github/release/wagiro/BurpBounty.svg)](https://github.com/wagiro/BurpBounty/releases) [![GitHub issues](https://img.shields.io/github/issues/wagiro/BurpBounty.svg)](https://github.com/wagiro/BurpBounty/issues) [![GitHub Downloads](https://img.shields.io/github/downloads/wagiro/BurpBounty/total.svg)]() [![Github Stars](https://img.shields.io/github/stars/wagiro/BurpBounty.svg?style=social&label=Stars)](https://github.com/wagiro/BurpBounty/) [![GitHub Followers](https://img.shields.io/github/followers/wagiro.svg?style=social&label=Follow)](https://github.com/wagiro/BurpBounty/) [![Follow on Twitter](https://img.shields.io/twitter/follow/burpbounty.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=burpbounty) # Burp Bounty Free - Scan Check Builder (BApp Store) This Burp Suite extension allows you, in a quick and simple way, to improve the active and passive burpsuite scanner by means of personalized rules through a very intuitive graphical interface. Through an advanced search of patterns and an improvement of the payload to send, we can create our own issue profiles both in the active scanner and in the passive.<br/> Download releases: * https://github.com/wagiro/BurpBounty/releases/ <br/>If you need more power, I invite you to try the new <b>Burp Bounty Pro</b>, which gives you more power and automation during your manual pentests. <br/>More information at: [https://burpbounty.net](https://burpbounty.net) and [Burp Bounty Pro vs Free](https://burpbounty.net/burp-bounty-pro-vs-free/). ## Usage * Go to [Usage](https://github.com/wagiro/BurpBounty/wiki/usage) section or the slides of [Ekoparty Security Conference](https://burpbounty.net/burp-bounty-ekoparty-2020/). ## Profiles * Thanks to [Six2dez1](https://github.com/six2dez) for collect all of the Burp Bounty profiles and also share their own. You can find the collection [HERE](https://github.com/wagiro/BurpBounty/tree/master/profiles/) * Also thanks to: - [Xer0Days](https://twitter.com/Xer0Days) - [Gocha](https://twitter.com/GochaOqradze) - [Sy3Omda](https://twitter.com/Sy3Omda) - [Syed](https://twitter.com/syed__umar) - [n00py1](https://twitter.com/n00py1) - [legik](https://github.com/legik) All of them have contributed by sharing their Burp Bounty profiles ### For example videos please visit our youtube channel: * [YouTube](https://www.youtube.com/channel/UCSq4R2o9_nGIMHWZ4H98GkQ/videos) <br/> **Blind RCE with BurpBounty using Burp Collaborator<br/>** [![Blind RCE with BurpBounty using Burp Collaborator](https://img.youtube.com/vi/kcyUueb56aM/0.jpg)](https://www.youtube.com/watch?v=kcyUueb56aM) <br/> ## Special Thanks * Thanks to [Nexsus](https://twitter.com/Nexsus1985) for helping me to detect errors in the extension and thus be able to solve them.
0
SpinyTech/ModularizationArchitecture
null
null
# ModularizationArchitecture ModularizationArchitecture is a routing-based multi-process, component-based architecture on the Android platform: it communicates with different modules and processes by sharing routes without referring to other modules. It is suitable for medium-sized App architecture team collaboration, parallel development, business line decoupling, white-box testing and other scenes. ## Getting Start [开始使用](http://blog.spinytech.com/2017/02/01/ma_get_start_cn/) [Getting Start](http://blog.spinytech.com/2017/02/03/ma_get_start_en/) ## Download Maven: ```xml <dependency> <groupId>com.spinytech.ma</groupId> <artifactId>macore</artifactId> <version>0.2.1</version> <type>pom</type> </dependency> ``` Gradle: ```groovy compile 'com.spinytech.ma:macore:0.2.1' ``` ## ProGuard If you are using ProGuard you might need to add the following option: ``` -dontwarn com.spinytech.** ``` ## Other [Android架构思考](http://blog.spinytech.com/2016/12/28/android_modularization/) ## License Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
jenly1314/KingTV
📺 【停止维护】高仿全民直播(全民TV),项目采用 MVP + RXJava + Retrofit + OKHttp + Material Design + Dagger2 + Base + Glide + GreenDao构建。因为全民TV已经凉了,导致App已经连不上了。在这里特意向你推荐MVPFrame: https://github.com/jenly1314/MVPFrame 和你值得拥有的MVVMFrame快速开发框架: https://github.com/jenly1314/MVVMFrame
base dagger2 glide greendao live material-design mosby multidex mvp okhttp qmtv quanmin quanmintv retrofit rxjava tinker tv video video-player zhibo
# KingTV [![Download](https://img.shields.io/badge/download-App-blue.svg)](https://raw.githubusercontent.com/jenly1314/KingsTV/master/app/app-release.apk) [![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=15) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php) 本App 采用 MVP + RXJava + Retrofit + OKHttp + Material Design + Dagger2 + Base + Glide + GreenDao构建,高仿全民直播Android App,欢迎大家Star或Fork。 ## Gif展示 ![Image](pictures/gif.gif) > 录制的gif效果有点不清晰,可以直接[下载App](https://raw.githubusercontent.com/jenly1314/KingsTV/master/app/app-release.apk)体验效果。 ## 版本记录 #### 2017-5-10 v1.2 * 新增搜索功能 * 集成[NeverCrash](https://github.com/jenly1314/NeverCrash) #### 2017-5-3 v1.1 * 新增Showing类型竖屏播放支持 * 优化播放的流地址逻辑 #### 2017-3-23 v1.0 * 初始化版本,完成主要核心功能 ## 声明 #### 本项目纯属个人作品,是高仿全民直播Android App 3.0.1版本,仅供技术参考,请维护全民直播平台的合法权益,禁止用于一切商业用途。如有疑问请联系作者,谢谢合作。 ## 赞赏 如果您喜欢KingTV,或感觉KingTV帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley: <p>您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee: <div> <img src="https://jenly1314.github.io/image/page/rewardcode.png"> </div> ## 关于我 | 我的博客 | GitHub | Gitee | CSDN | 博客园 | |:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------| | <a title="我的博客" href="https://jenly1314.github.io" target="_blank">Jenly's Blog</a> | <a title="GitHub开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> | <a title="Gitee开源项目" href="https://gitee.com/jenly1314" target="_blank">jenly1314</a> | <a title="CSDN博客" href="http://blog.csdn.net/jenly121" target="_blank">jenly121</a> | <a title="博客园" href="https://www.cnblogs.com/jenly" target="_blank">jenly</a> | ## 联系我 | 微信公众号 | Gmail邮箱 | QQ邮箱 | QQ群 | QQ群 | |:-------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------| | [Jenly666](http://weixin.qq.com/r/wzpWTuPEQL4-ract92-R) | <a title="给我发邮件" href="mailto:jenly1314@gmail.com" target="_blank">jenly1314</a> | <a title="给我发邮件" href="mailto:jenly1314@vip.qq.com" target="_blank">jenly1314</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=6_RukjAhwjAdDHEk2G7nph-o8fBFFzZz" target="_blank">20867961</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=Z9pobM8bzAW7tM_8xC31W8IcbIl0A-zT" target="_blank">64020761</a> | <div> <img src="https://jenly1314.github.io/image/page/footer.png"> </div>
0
airbnb/native-navigation
Native navigation library for React Native applications
navigation navigator react react-native
# Native Navigation [![Join the chat at https://gitter.im/airbnb/native-navigation](https://badges.gitter.im/airbnb/native-navigation.svg)](https://gitter.im/airbnb/native-navigation?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![npm Version](https://img.shields.io/npm/v/native-navigation.svg)](https://www.npmjs.com/package/native-navigation) [![License](https://img.shields.io/npm/l/native-navigation.svg)](https://www.npmjs.com/package/native-navigation) [![Build Status](https://travis-ci.org/airbnb/native-navigation.svg)](https://travis-ci.org/airbnb/native-navigation) ## DISCLAIMER **This project is currently in beta**. Many of the core APIs are subject to change, and we do not consider this project "Production Ready" until it hits a 1.0 release. We encourage people to try this library out and provide us feedback as we get it to a stable state we are confident in, but not to rely on it for production use until then. Read more about our [Roadmap to 1.0](/docs/roadmap.md) ## Contents - [Installation](#installation) - [Running the Example Project](#running-the-example-project) - [Guides](#guides) - [API Documentation](#api-documentation) - [Related Projects and Alternatives](#related-projects-and-alternatives) - [Contributing](#contributing) - [FAQ](#faq) - [License](#license) ## Installation See the [Installation Guide](/docs/installation.md) ## Running the Example Project To run the example project, first clone this repo: ```bash git clone https://github.com/airbnb/native-navigation.git cd native-navigation ``` Both [`npm`](https://nodejs.org/) and the ruby [`bundler`](http://bundler.io/) gem are needed to run the project. ```bash npm install ``` ```bash npm start ``` Then, in another CLI window: To run on iOS: `npm run run:ios` To run on Android: `npm run run:android` ## [Guides](/docs/guides/README.md) - [Basic Usage](/docs/guides/basic-usage.md) - [Integrating with existing apps](/docs/guides/integrating-with-existing-apps.md) - [Custom Navigation Implementations](/docs/guides/custom-navigation-implementations.md) - [Tabs](/docs/guides/tabs.md) - [Deep Linking](/docs/guides/deep-linking.md) - [Platform Differences](/docs/guides/platform-differences.md) - [Project Structure](/docs/guides/project-structure.md) - [Shared Element Transitions](/docs/guides/shared-element-transitions.md) ## [API Documentation](/docs/api/README.md) - [`Navigator.registerScreen(...)`](/docs/api/navigator/registerScreen.md) - [`Navigator.push(...)`](/docs/api/navigator/push.md) - [`Navigator.present(...)`](/docs/api/navigator/present.md) - [`Navigator.pop(...)`](/docs/api/navigator/pop.md) - [`Navigator.dismiss(...)`](/docs/api/navigator/dismiss.md) - [`Config`](/docs/api/navigator-config.md) - [`Spacer`](/docs/api/navigator-spacer.md) - [`Tab`](/docs/api/navigator-tab.md) - [`TabBar`](/docs/api/navigator-tab-bar.md) - [`SharedElement`](/docs/api/navigator-shared-element.md) - [`SharedElementGroup`](/docs/api/navigator-shared-element-group.md) ## Related Projects and Alternatives Native Navigation is a navigation library for the React Native platform. There are many navigation libraries in the React Native ecosystem. Native Navigation is unique in that it is built on top of the iOS and Android platform navigational components, and is thus more "native" than most other options which implement navigation from scratch in JavaScript on top of base React Native components like `View` and `Animated`. [React Native Navigation](https://github.com/wix/react-native-navigation) by Wix engineering is an alternative library that uses "Native" navigation components of each platform, and has been around longer than Native Navigation. If you need a stable / production-ready navigation library *today* that uses native platform based navigation components, we recommend you check this library out. If you are investigating navigation solutions and you are okay with JavaScript-based solutions, we also encourage you to check out [React Navigation](https://reactnavigation.org/). ## Contributing See the [Contributors Guide](/CONTRIBUTING.md) ## FAQ See the [Frequently Asked Questions](/docs/FAQ.md) page ## License This project is licensed under the [MIT License](/LICENSE.md).
0
rohitghatol/spring-boot-microservices
Spring Boot Template for Micro services Architecture - Show cases how to use Zuul for API Gateway, Spring OAuth 2.0 as Auth Server, Multiple Resource (Web Services) Servers, Angular Web App, Eureka dor registration and Discover and Hystrix for circuit breaker
null
# NOTE **This repository is NO longer being actively maintained and out-of-sync with the latest Spring Boot and Spring Cloud releases.** Please fork the [microservices-basics-spring-boot](https://github.com/anilallewar/microservices-basics-spring-boot) repository for the latest changes. Additional features added to the new repository * Changes for supporting Spring OAuth2 when it moved from Spring cloud to Spring boot in 1.3 version * Docker - building services as containers and orchestrating them using various mechanisms * implementation for consumer driven contracts (CDC) and distributed tracing * Bug fixes ---- # Spring Boot MicroServices Template This repository is an example of how to get Microservices going using Spring Boot, Spring Cloud, Spring OAuth 2 and Netflix OSS frameworks. # Table of Content * [Contributors](#contributors) * [Application Architecture](#application-architecture) * [Using the application](#using-application) * [Running on local m/c](#run_local_mc) * [Running using docker - NOT WORKING](#run_docker) * [Microservices Overview](#microservices-overview) * [Netflix OSS](#netflix-oss) * [Spring Boot Overview](#spring-boot-overview) * [Spring Cloud Overview](#spring-cloud-overview) * [Spring Cloud Config Overview](#spring-cloud-config-overview) * [Spring Cloud Netflix Overview](#spring-cloud-netflix-overview) * [OAuth 2.0 Overview](#oauth-2.0-overview) * [Spring OAuth 2.0 Overview](#spring-oauth-2.0-overview) ## <a name="contributors"></a>Contributors * [Rohit Ghatol](https://www.linkedin.com/in/rohitghatol) * [Anil Allewar](https://www.linkedin.com/pub/anil-allewar/18/378/393) ## <a name="application-architecture"></a>Application Architecture The application consists of 7 different services * [config server](config-server/README.md) - setup external configuration * [webservice-registry](webservice-registry/README.md) - Eureka server * [auth-server](auth-server/README.md) - Oauth2 authorization server * [user-webservice](user-webservice/README.md) - User micro-service * [task-webservice](task-webservice/README.md) - Task micro-service * [comments-webservice](comments-webservice/README.md) - Comments for task micro-service * [api-gateway](api-gateway/README.md) - API gateway that proxies all the micro-services * [web-portal](web-portal/README.md) - Single Page Application that provides the UI ### Target Architecture ![Target Architecture](/images/Target_Architecture.jpg) ### Application Components ![Components](/images/Application_Components.jpg) ## <a name="using-application"></a>Using the application ### <a name="run_local_mc"></a>Running on local m/c * You can build all the projects by running the `./build-all-projects.sh` on Mac/Linux systems and then going to each individual folder and running the jars using the `java -jar build/libs/sam<application_name>.jar` command. * Please refer to the individual readme files on instructions of how to run the services. For demo, you can run the applications in the same order listed above. ### <a name="run_docker"></a>Running using docker (**NOTE: NOT WORKING with latest docker 1.8x since the gradle docker task is NOT compatible; also bug in Spring Boot 1.2.x**) * [Docker](https://www.docker.com) is an open platform for building, shipping and running distributed applications. Follow steps on the site to install docker based on your operating system. * Currently there is a **[bug in Spring Boot 1.2.x](https://github.com/spring-projects/spring-boot/commit/8168e8a3275f17646c5c2bf628d2f3417369c583)** that affects the way how JPA starts in an app launched with executable jar. Hence while the docker containers are good to go, we will need to change the application once Spring boot 1.3 is released so that we can run this on docker. * Once docker is setup, we would reset the VM so as to start fresh. The examples were developed on Mac so follow these step; they would be fairly similar on Windows. * Once you open the docker program through terminal, follow these steps * Reset the VM => `boot2docker delete` * Start the VM giving it around 8 GB of RAM => `boot2docker init -m 8192` * Check whether the initialization parameters were successful => `boot2docker info` * Start the VM => `boot2docker up` * To connect the Docker client to the Docker daemon => `$(boot2docker shellinit)` * If you have not added your TLS certs to boot2docker; you would need to change docker to run the API on HTTP; while boot2docker 1.3 comes with TLS enabled. Hence you need to run the following command `$(docker run sequenceiq/socat)` at the docker prompt so that this image maps the api to HTTP port. You can check that it is working correctly(returns OK) using the command `curl http://192.168.59.103:2375/_ping` or connect the `http://192.168.59.103:2375/_ping` URL in the browser. * Run the mysql container using `docker run -d -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=auth --name auth-db -p 3306:3306 mysql` * On the mac command prompt, navigate to the root folder of the application (spring-boot-microservices) and run the `./docker-image-all-projects.sh` command. This should build all the images and publish them to docker. * Run the individual images as below; note that the auth-server and api-gateway images fail because of Spring Boot 1.2.x bug. * Config Server * docker run -d --name config-server -p 8888:8888 anilallewar/config-server * docker logs -f config-server * Eureka Server * docker run -d --name registry-server -p 8761:8761 anilallewar/webservice-registry * docker logs -f registry-server * OAuth Server * docker run -d --name auth-server -p 8899:8899 anilallewar/auth-server * docker logs -f auth-server * User Webservice * docker run -d --name user-webservice anilallewar/user-webservice * docker logs -f user-web service * Task Webservice * docker run -d --name task-webservice anilallewar/task-webservice * docker logs -f task-webservice * Comments Webservice * docker run -d --name comments-webservice anilallewar/comments-webservice * docker logs -f comments-webservice * Web Portal * docker run -d --name web-portal anilallewar/web-portal * docker logs -f web-portal * Zuul API Gateway * docker run -d --name api-gateway -p 8080:8080 anilallewar/api-gateway * docker logs -f api-gateway * We also have a [docker-compose](https://docs.docker.com/compose/) file that can be used to start all the containers together using `docker-compose up -d`. However this doesn't work in our case since our containers need to be started in order e.g. config-server before everything, webservice-registry before rest of Eureka clients. Docker compose starts all containers together and this fails because containers like auth-server, web-portal start before their dependent containers have started. Please see [here](https://github.com/docker/compose/issues/374) for more details. * Note: * If the gradle wrapper doesn't work, then install gradle and run `gradle wrapper` before using `gradlew`. * If you need to setup the classpath correctly, then run `./gradlew clean build eclipse` which would setup the `.classpath` accordingly. ## <a name="microservices-overview"></a>Microservices Overview There is a growing adoption of Microservices in today's world. Numerous SAAS Companies are moving away from building monolithical products and instead adopting Microservices. ### Focus on Component In microservices world, a web serive or a microservice is the unit of component. This unit of component delivers a complete Business functionality and could rely on other microservices to fullfil that. These microservices are build separately and deployed separately unlike monoliths in which components can be built separately but are deployed together. ![Microservices Overview](http://martinfowler.com/articles/microservices/images/sketch.png) ### Focus on Business Capabilities and Running a Product Another key aspect of microservices is that the focus of a team building a component now moves away from just delivering that component to running and maintainig that business functionality given by that component. ![Focus on Business Capabilities](http://martinfowler.com/articles/microservices/images/conways-law.png) ### Focus on Decentralized Control and Decentalized Data Management Due to the ability to build components separately and running them separately means, the notion of centralized control (goverance) and data management goes away. Traditionally monoliths were built around a set of set architecture, technology and frameworks. The key architects would decide what tech was used and key DBAs would decide which and how many databases are used. With Microservices, since each component caters to a somewhat complete business functionality, that centralized control by Key Architects and DBAs goes away. Some Components are best built using JEE and RDBMS, for some Real time Data Analytics is the key, they could use Apache Storm and Apache Kafka, for some others R is better fit, for IO Intensive systems may Node.js and MongoDB works out. Same way User data could now go in NoSQL databases, Transaction data could go in traditional RDBMS, Recommendation systems could use Hive as their Database and so on. **Decentralized Control** ![Decentralied Control](/images/Decentralized Goverance.png) **Decentalized Data Management** ![Decentralied Control](http://martinfowler.com/articles/microservices/images/decentralised-data.png) Disclaimer - While microservices is much talked about these days, make a note Microservices is not a Free lunch. There is an effort and complexity involved to building and running them, but once you do so, the benefits are plentiful. You can read more about Microservices here - http://martinfowler.com/articles/microservices.html#CharacteristicsOfAMicroserviceArchitecture Image References from - http://martinfowler.com/articles/microservices.html ## <a name="netflix-oss"></a>Netflix OSS ![Netflix OSS Home Page](http://netflix.github.io/glisten/lib/img/netflix_oss.jpg) Netflix is one of the pioneers behind the Microservices Architecture. Not only have they successfully run Microservices in production, but they have outsourced their battle hardened framework under Netflix Open Source Software Center initiative - http://netflix.github.io/#repo You will find implementation of numerous of Netflix's Microservices platform pieces here. Here are few for your reference ### <img src="http://netflix.github.io/assets/repos/eureka.png" width="30px"> Eureka Microservices is somewhat like SOA platform, that there are numerous services. Each Service when it comes online registers itself with Service Registry. When some other service wants to communicate with a already registered service, they would ask the Eureka Server the base url for that service. Multiple instances of the same service could register with Eureka, in that case Eureka could help in doing Load Balancing. ### <img src="http://netflix.github.io/assets/repos/hystrix.png" width="30px"> Hystrix A Microservices environment is built to sustain failures of its parts, that is few of its microservices. In order to keep the system going, Netflix introduced a concept of circuit breaker. A Circuit Breaker provides alternative behavior in case certain microservice is gone down. This way the system gracefully switches to fallback behavior until the system recovers, rather than entire system suffering the ripple effects of failed service. ### <img src="http://netflix.github.io/assets/repos/zuul.png" width="30px"> Zuul A Microservice environment needs a gateway. A Gateway is the only entity exposed to the outside world, which allows access to Microservices and does more. A Gateway could do * API Metering * Centralized Authentication/Authorization * Load Balancing * etc * ### <img src="http://netflix.github.io/assets/repos/ribbon.png" width="30px"> Ribbon Ribbon is a Load Balancing Client and is meant to work with Eureka Server. Ribbon talks to Eureka server and relies on it to get base url to one of the instances of microservice in question. ## <a name="spring-boot-overview"></a>Spring Boot Overview Folks who are familiar with Spring frameworks like Spring MVC, know spring is all about Dependency Injection and Configuration Management. While Spring is an excellent framework, it still takes quite some effort to make a Spring MVC project ready for production. Spring Boot is Spring's approach towards Convention over Configuration. Spring Boot comes with numerous Start Projects, each starter projects provides a set of conventions which ensures you have a opinionated production ready app. To begin with Spring Boot allows you to write web services with just One or two classes. See the example below ``` build.gradle gradle dependency --> compile("org.springframework.boot:spring-boot-starter-web") ``` ``` Application.java @SpringBootApplication public class Application{ public static void main(String[] args){ SpringApplication.run(Application.class, args); } } ``` ``` UserController.java @RestController public class UserController{ @RequestMapping("/") public User getUser(String id) { return new User(id,"firstName","lastName"); } } ``` Build ``` $>./gradlew clean build say this Generates app.jar ``` Running Application ``` $>java -jar builds/lib/app.jar ``` The idea is to have multiple projects like above, one for each microservice. Look at the following directories in this repo * https://github.com/rohitghatol/spring-boot-microservices/tree/master/user-webservice * https://github.com/rohitghatol/spring-boot-microservices/tree/master/task-webservice You can read in detail about Spring Boot here - https://spring.io/guides/gs/spring-boot/ ## <a name="spring-cloud-overview"></a>Spring Cloud Overview Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state) You can read in detail about Spring Cloud here - http://projects.spring.io/spring-cloud/ ## <a name="spring-cloud-config-overview"></a>Spring Cloud Config Overview Spring Cloud config provides support for externalizing configuration in distributed systems. With the Config Server you have a central place to manage external properties for applications across all environments. You can read in detail about Spring Cloud config here - http://cloud.spring.io/spring-cloud-config/ ## <a name="spring-cloud-netflix-overview"></a>Spring Cloud Netflix Overview Spring Cloud Netflix provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms. You can read in detail about Spring Cloud Netflix here - http://cloud.spring.io/spring-cloud-netflix/ ## <a name="oauth-2.0-overview"></a>OAuth 2.0 Overview OAuth2 is an authorization framework that specifies different ways a third-party application can obtain limited access to determined set of resources. ![OAuth2 abstract protocol](/images/OAuth2 abstract protocol flow.png) OAuth defines four roles: **resource owner:** An entity capable of granting access to a protected resource. When the resource owner is a person, it is referred to as an end-user. **resource server:** The server hosting the protected resources, capable of accepting and responding to protected resource requests using access tokens. **client:** An application making protected resource requests on behalf of the resource owner and with its authorization. The term "client" does not imply any particular implementation characteristics (e.g., whether the application executes on a server, a desktop, or other devices). **authorizationserver:** The server issuing access tokens to the client after successfully authenticating the resource owner and obtaining authorization. To get more details of how differnt authorizations work in OAuth2, please refer to the readme at **[auth-server](auth-server/README.md)** ## <a name="spring-oauth-2.0-overview"></a>Spring OAuth2 Overview Spring provides nice integration between Spring security and OAuth2 providers including the ability to setup your own authorization server. Please see [Spring security with OAuth2](http://projects.spring.io/spring-security-oauth/docs/oauth2.html) for more details.
0
ProgrammerAnthony/Pantheon
Pantheon is a microservice Service Registry Center Not Released Now, Only For Study分布式微服务注册中心,使用了很多开源项目的架构思路 暂未发布,仅供学习
microservice
# Pantheon Pantheon is inspired by Eureka and Nacos, aiming to build a better Service Registry Center Numerous terrific code snippets and architecture ideas from RocketMq, Zookeeper, ElasticSearch, Redis,Eureka,Nacos, Dubbo...... are introduced into this project.
0
fengjiachun/Jupiter
Jupiter是一款性能非常不错的, 轻量级的分布式服务框架
cluster distributed-systems hessian high-performance java jupiter kryo microservice netty netty4 nio protostuff rpc rpc-framework service-consumer service-discovery service-provider service-registry socket spring
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/org.jupiter-rpc/jupiter.svg?label=Maven%20Central)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.jupiter-rpc%22%20AND%20jupiter) [![Build Status](https://travis-ci.org/fengjiachun/Jupiter.svg?branch=master)](https://travis-ci.org/fengjiachun/Jupiter) [![Code Quality: Java](https://img.shields.io/lgtm/grade/java/g/fengjiachun/Jupiter.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fengjiachun/Jupiter/context:java) [![Total Alerts](https://img.shields.io/lgtm/alerts/g/fengjiachun/Jupiter.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fengjiachun/Jupiter/alerts) #### Jupiter: - Jupiter 是一款性能非常不错的, 轻量级的分布式服务框架 #### Jupiter Architecture: ═ ═ ═▷ init ─ ─ ─ ▷ async ──────▶ sync ---------------------------------------------------------------------------------------- ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┌ ─ ─ ─ ┐ │ ─ ─ ─ ─ ─ ─ ─ ─ ─│ Registry Monitor ───────────────────────────┐ │ └ ─ ─ ─ ┘ │ │ └ ─ ─△─ ─ ─ ─ ─△─ ─ ─ ▼ │ ┌ ─ ─ ─ ─ Notify ║ ║ Telnet │ │ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ ═ └ ─ ─ ─ ─ ║ ║ ▲ │ Subscribe Register │ ║ ║ │ │ ┌ ─ ─ ─ ─ ─ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ │─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ▷ ┌ ─ ─ ─ ┐ │ │ └ ▷│ Consumer Invoke │ Provider Monitor ─────┘ │────────────────────────▶ └ ─ ─ ─ ┘ │ └ ─ ─ ─ ─ ─ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ --------------------------------------------------------------------------------------- #### [RELEASE-NOTES](/docs/release-notes.md) #### 性能: - 小数据包请求(不带业务)在四核刀片服务器上可达到17w+的tps, 详情见 [Benchmark](https://github.com/fengjiachun/Jupiter/wiki/Benchmark) - [参考: 多个 RPC 框架的 Benchmark 见这里](https://github.com/hank-whu/rpc-benchmark) #### 文档: - [High performance RPC with netty](/docs/static_files/high_performance_rpc_with_netty.md) - [High performance RPC with netty.pdf](/docs/static_files/high_performance_rpc_with_netty.pdf) - [Wiki](https://github.com/fengjiachun/Jupiter/wiki) - [其他文档](https://github.com/fengjiachun/doc/tree/master/jupiter) - [发展路线](https://github.com/fengjiachun/Jupiter/wiki/RoadMap) #### 一次 RPC 调用: <img src="docs/static_files/jupiter-rpc.png" width="1600"/> <p align="right">感谢 @远墨 提供的图</p> #### 快速开始: ##### 工程依赖: + JDK1.8 或更高版本 + 依赖管理工具: Maven3.x 版本 ##### [最新版本OSS下载](https://oss.sonatype.org/#nexus-search;quick~org.jupiter-rpc) ##### [最新版本Maven中心仓库下载](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.jupiter-rpc%22%20AND%20jupiter) ##### Maven依赖: ```xml <dependency> <groupId>org.jupiter-rpc</groupId> <artifactId>jupiter-all</artifactId> <version>${jupiter.version}</version> </dependency> ``` ##### 简单调用示例: ###### 1. 创建服务接口: ```java @ServiceProvider(group = "test", name = "serviceTest") public interface ServiceTest { String sayHelloString(); } @ServiceProvider: - 建议每个服务接口通过此注解来指定服务信息, 如不希望业务代码对jupiter依赖也可以不使用此注解而手动去设置服务信息 + group: 服务组别(选填, 默认组别为'Jupiter') + name: 服务名称(选填, 默认名称为接口全限定名称) ``` ###### 2. 创建服务实现: ```java @ServiceProviderImpl(version = "1.0.0") public class ServiceTestImpl implements ServiceTest { @Override public String sayHelloString() { return "Hello jupiter"; } } @ServiceProviderImpl: - 建议每个服务实现通过此注解来指定服务版本信息, 如不希望业务代码对jupiter依赖也可以不使用此注解而手动去设置版本信息 + version: 服务版本号(选填, 默认版本号为'1.0.0') ``` ###### 3. 启动注册中心: ###### - 选择1: 使用 jupiter 默认的注册中心: ```java public class HelloJupiterRegistryServer { public static void main(String[] args) { // 注册中心 RegistryServer registryServer = RegistryServer.Default.createRegistryServer(20001, 1); try { registryServer.startRegistryServer(); } catch (InterruptedException e) { e.printStackTrace(); } } } ``` ###### - 选择2: 使用 [zookeeper](https://zookeeper.apache.org/doc/trunk/zookeeperStarted.html) 作为注册中心: ```xml 默认注册中心只建议在测试环境使用, 线上建议使用 zookeeper 实现 // 设置使用 zookeeper 作为注册中心 JServer server = new DefaultServer(RegistryService.RegistryType.ZOOKEEPER) JClient client = new DefaultClient(RegistryService.RegistryType.ZOOKEEPER) 在 server 和 client 中配置 jupiter-registry-zookeeper 依赖(jupiter-all 包含 jupiter-registry-zookeeper) <dependency> <groupId>org.jupiter-rpc</groupId> <artifactId>jupiter-registry-zookeeper</artifactId> <version>${jupiter.version}</version> </dependency> ``` ###### 4. 启动服务提供(Server): ```java public class HelloJupiterServer { public static void main(String[] args) throws Exception { JServer server = new DefaultServer().withAcceptor(new JNettyTcpAcceptor(18090)); // provider ServiceTestImpl service = new ServiceTestImpl(); // 本地注册 ServiceWrapper provider = server.serviceRegistry() .provider(service) .register(); // 连接注册中心 server.connectToRegistryServer("127.0.0.1:20001"); // 向注册中心发布服务 server.publish(provider); // 启动server server.start(); } } ``` ###### 5. 启动服务消费者(Client) ```java public class HelloJupiterClient { public static void main(String[] args) { JClient client = new DefaultClient().withConnector(new JNettyTcpConnector()); // 连接RegistryServer client.connectToRegistryServer("127.0.0.1:20001"); // 自动管理可用连接 JConnector.ConnectionWatcher watcher = client.watchConnections(ServiceTest.class); // 等待连接可用 if (!watcher.waitForAvailable(3000)) { throw new ConnectFailedException(); } ServiceTest service = ProxyFactory.factory(ServiceTest.class) .version("1.0.0") .client(client) .newProxyInstance(); service.sayHelloString(); } } ``` [Server/Client 代码示例](/jupiter-example/src/main/java/org/jupiter/example/round) ###### 新特性 v1.3 新增 `InvokeType.AUTO`, 当你的接口返回值是一个 `CompletableFuture` 或者它的子类将自动适配为异步调用, 否则为同步调用 [具体 demo 请参考这里](/jupiter-example/src/main/java/org/jupiter/example/round/AutoJupiterClient.java) ##### 结合Spring使用示例: ###### 1. [Server端配置](/jupiter-example/src/main/resources/spring-provider.xml): ```xml <jupiter:server id="jupiterServer" registryType="default"> <!-- registryType="zookeeper" 代表使用zk作为注册中心 --> <jupiter:property registryServerAddresses="127.0.0.1:20001" /> </jupiter:server> <!-- provider --> <bean id="serviceTest" class="org.jupiter.example.ServiceTestImpl" /> <jupiter:provider id="serviceTestProvider" server="jupiterServer" providerImpl="serviceTest"> <jupiter:property weight="100"/> </jupiter:provider> ``` ###### 2. [Client 端配置](/jupiter-example/src/main/resources/spring-consumer.xml): ```xml <jupiter:client id="jupiterClient" registryType="default"> <!-- registryType="zookeeper" 代表使用zk作为注册中心 --> <jupiter:property registryServerAddresses="127.0.0.1:20001" /> </jupiter:client> <!-- consumer --> <jupiter:consumer id="serviceTest" client="jupiterClient" interfaceClass="org.jupiter.example.ServiceTest"> <jupiter:property version="1.0.0.daily" /> <jupiter:property serializerType="proto_stuff" /> <jupiter:property loadBalancerType="round_robin" /> <jupiter:property timeoutMillis="3000" /> <jupiter:property clusterStrategy="fail_over" /> <jupiter:property failoverRetries="2" /> <jupiter:methodSpecials> <!-- 方法的单独配置 --> <jupiter:methodSpecial methodName="sayHello" timeoutMillis="5000" clusterStrategy="fail_fast" /> </jupiter:methodSpecials> </jupiter:consumer> ``` [SpringServer/SpringClient 代码示例](/jupiter-example/src/main/java/org/jupiter/example/spring) ##### [更多示例代码](/jupiter-example/src/main/java/org/jupiter/example) #### 其他 - qq交流群: 397633380 - 邮件交流: jiachun_fjc@163.com
0
nanchen2251/RxJava2Examples
:fire:RxJava2 Examples —— 这可能是从 RxJava1 跳到 RxJava2(学习 RxJava2 )最好的例子 Demo:https://github.com/nanchen2251/RxJava2Examples
null
# RxJava2Examples ### RxJava2 Examples——它可能是从RxJava1跳到RxJava2(学习RxJava2)最好的例子Demo > RxJava 1.x 到 RxJava 2.x 的无缝对接 无需学习 RxJava 1.x, 直接学习 RxJava 2.x 完备齐全的操作符示例 支持与 Retrofit 交互处理示例 Activity 基类封装处理 ### 文章链接: [这可能是最好的 RxJava 2.x 入门教程(完结版)](http://www.jianshu.com/p/0cd258eecf60)<br> [这可能是最好的 RxJava 2.x 入门教程(一)](http://www.jianshu.com/p/a93c79e9f689)<br> [这可能是最好的 RxJava 2.x 入门教程(二)](http://www.jianshu.com/p/b39afa92807e)<br> [这可能是最好的 RxJava 2.x 入门教程(三)](http://www.jianshu.com/p/e9c79eacc8e3)<br> [这可能是最好的 RxJava 2.x 入门教程(四)](http://www.jianshu.com/p/c08bfc58f4b6)<br> [这可能是最好的 RxJava 2.x 入门教程(五)](http://www.jianshu.com/p/81fac37430dd)<br> ### 关于作者    南尘<br>    四川成都<br>    [其它开源](https://github.com/nanchen2251/)<br>    [个人博客](https://nanchen2251.github.io/)<br>    [简书](http://www.jianshu.com/u/f690947ed5a6)<br>    [博客园](http://www.cnblogs.com/liushilin/)<br>    交流群:118116509 <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=e6ad4af66393684e1d0c9441403b049d2d5670ec0ce9f72150e694cbb7c16b0a"><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="Android神技侧漏交流群" title="Android神技侧漏交流群"></a>( 点击图标即可加入 )<br>    欢迎投稿(关注)我的唯一公众号,公众号搜索 nanchen 或者扫描下方二维码:<br>    ![](https://github.com/nanchen2251/Blogs/blob/master/images/nanchen12.jpg) ### Just a gif ![](https://github.com/nanchen2251/RxJava2Examples/blob/master/GIF.gif) ### RxJava 1.x 到 RxJava 2.x 变化一览 RxJava 1.x -> RxJava 2.x * `onCompleted` -> `onComplete` - without the trailing d * `Func1` -> `Function` * `Func2` -> `BiFunction` * `CompositeSubscription` -> `CompositeDisposable` * `limit` operator has been removed - Use `take` in RxJava2 * and much more. ### 一些操作符的解释 * `Map` -> transform the items emitted by an Observable by applying a function to each item * `Zip` -> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function * `Filter` -> emit only those items from an Observable that pass a predicate test * `FlatMap` -> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable * `Take` -> emit only the first n items emitted by an Observable * `Reduce` -> apply a function to each item emitted by an Observable, sequentially, and emit the final value * `Skip` -> suppress the first n items emitted by an Observable * `Buffer` -> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time * `Concat` -> emit the emissions from two or more Observables without interleaving them * `Replay` -> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items * `Merge` -> combine multiple Observables into one by merging their emissions ### 尽情地下载运行,开始感受RxJava 2.x 的强大魅力吧~ ### 为这个例子pull你的伟大代码,加入分享这个大家庭,Just to do! ### 该例子借鉴了以下项目: * [https://github.com/amitshekhariitbhu/RxJava2-Android-Samples](https://github.com/amitshekhariitbhu/RxJava2-Android-Samples)     #### 有码走遍天下 无码寸步难行(引自网络) > 1024 - 梦想,永不止步! 爱编程 不爱Bug 爱加班 不爱黑眼圈 固执 但不偏执 疯狂 但不疯癫 生活里的菜鸟 工作中的大神 身怀宝藏,一心憧憬星辰大海 追求极致,目标始于高山之巅 一群怀揣好奇,梦想改变世界的孩子 一群追日逐浪,正在改变世界的极客 你们用最美的语言,诠释着科技的力量 你们用极速的创新,引领着时代的变迁 ------至所有正在努力奋斗的程序猿们!加油!! ## Licenses ``` Copyright 2017 nanchen(刘世麟) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```
0
FudanNLP/fnlp
中文自然语言处理工具包 Toolkit for Chinese natural language processing
fnlp fudannlp java nlp-library
FudanNLP (FNLP) 2018.12.16 我们很高兴发布了FudanNLP的后续版本,一个全新的自然语言处理工具[FastNLP](https://github.com/fastnlp/fastNLP)。FudanNLP不再更新。 2018.12.16 We are delighted to announce a new brand toolkit [FastNLP](https://github.com/fastnlp/fastNLP), a major update of the FudanNLP. The FudanNLP is no longer updated. ==== 介绍(Introduction) ----------------------------------- FNLP主要是为中文自然语言处理而开发的工具包,也包含为实现这些任务的机器学习算法和数据集。 本工具包及其包含数据集使用LGPL3.0许可证。 FNLP is developed for Chinese natural language processing (NLP), which also includes some machine learning algorithms and [DataSet data sets] to achieve the NLP tasks. FudanNLP is distributed under LGPL3.0. If you're new to FNLP, check out the [Quick Start (使用说明)](https://github.com/FudanNLP/fnlp/wiki) page. 原FudanNLP项目地址:http://code.google.com/p/fudannlp 功能(Functions) ---- 信息检索: 文本分类 新闻聚类 中文处理: 中文分词 词性标注 实体名识别 关键词抽取 依存句法分析 时间短语识别 结构化学习: 在线学习 层次分类 聚类 [ChangeLog 更新日志(ChangeLog)] [性能测试(Benchmark)] (Benchmark) [开发计划(Development Plan)] (DevPlan) [开发人员列表(Developers)](People) Demos ---- 你可以通过试用下面的网站来测试部分功能。 You can also use the following site to check the partial functionality. [Demo Website(演示网站)](http://nlp.fudan.edu.cn/demo) 有遇到FNLP不能处理的例子,请到这里提交: [协同数据收集](http://code.google.com/p/fudannlp/wiki/CollaborativeCollection)。 有问题请查看[FAQ](faq)或到 QQ群(253541693)讨论。 使用(Usages) ---- [FNLP入门教程](https://github.com/xpqiu/fnlp/wiki) 除了源码文件,还需要下载FNLP模型文件。由于模型文件较大,不便于存放在源码库之中,请至[Release](https://github.com/xpqiu/fnlp/releases)页面下载,并将模型文件放在“models”目录。 * seg.m 分词模型 * pos.m 词性标注模型 * dep.m 依存句法分析模型 欢迎大家提供非Java语言的接口。 引用(Citation) ---- If you would like to acknowledge our efforts, please cite the following paper. 如果我们的工作对您有帮助,请引用下面论文。 Xipeng Qiu, Qi Zhang and Xuanjing Huang, FudanNLP: A Toolkit for Chinese Natural Language Processing, In Proceedings of Annual Meeting of the Association for Computational Linguistics (ACL), 2013.* @INPROCEEDINGS{Qiu:2013, author = {Xipeng Qiu and Qi Zhang and Xuanjing Huang}, title = {FudanNLP: A Toolkit for Chinese Natural Language Processing}, booktitle = {Proceedings of Annual Meeting of the Association for Computational Linguistics}, year = {2013}, } 在[这里](http://jkx.fudan.edu.cn/~xpqiu/) 或 [DBLP](http://scholar.google.com/citations?sortby=pubdate&hl=en&user=Pq4Yp_kAAAAJ&view_op=list_works Google Scholar] 或 [http://www.informatik.uni-trier.de/~ley/pers/hd/q/Qiu:Xipeng.html) 可以找到更多的相关论文。 We used [JProfiler](http://www.ej-technologies.com/products/jprofiler/overview.html ) to help optimize the code. 本网站(或页面)的文字允许在CC-BY-SA 3.0协议和GNU自由文档许可证下修改和再使用。
0
dadoonet/fscrawler
Elasticsearch File System Crawler (FS Crawler)
crawler elasticsearch java tika
# File System Crawler for Elasticsearch Welcome to the FS Crawler for [Elasticsearch](https://elastic.co/) This crawler helps to index binary documents such as PDF, Open Office, MS Office. **Main features**: * Local file system (or a mounted drive) crawling and index new files, update existing ones and removes old ones. * Remote file system over SSH/FTP crawling. * REST interface to let you "upload" your binary documents to elasticsearch. ## Latest versions Current "most stable" versions are: | Elasticsearch | FS Crawler | Released | Docs | |---------------|---------------|------------|-------------------------------------------------------------------------------| | 6.x, 7.x, 8.x | 2.10-SNAPSHOT | | [2.10-SNAPSHOT](https://fscrawler.readthedocs.io/en/latest/) | [![Maven Central](https://img.shields.io/maven-central/v/fr.pilato.elasticsearch.crawler/fscrawler-distribution)](https://repo1.maven.org/maven2/fr/pilato/elasticsearch/crawler/fscrawler-distribution/) ![GitHub Release Date](https://img.shields.io/github/release-date/dadoonet/fscrawler) [![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fs01.oss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Ffr%2Fpilato%2Felasticsearch%2Fcrawler%2Ffscrawler-distribution%2Fmaven-metadata.xml&label=Latest%20SNAPSHOT&link=https%3A%2F%2Fs01.oss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Ffr%2Fpilato%2Felasticsearch%2Fcrawler%2Ffscrawler-distribution%2F)](https://s01.oss.sonatype.org/content/repositories/snapshots/fr/pilato/elasticsearch/crawler/fscrawler-distribution/) ![GitHub last commit](https://img.shields.io/github/last-commit/dadoonet/fscrawler) ![Docker Pulls](https://img.shields.io/docker/pulls/dadoonet/fscrawler) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/dadoonet/fscrawler/2.10-SNAPSHOT?label=Docker%20image%20size) ![Docker Image Version (latest semver)](https://img.shields.io/docker/v/dadoonet/fscrawler) ## Build and Quality Status [![Build](https://github.com/dadoonet/fscrawler/actions/workflows/maven.yml/badge.svg)](https://github.com/dadoonet/fscrawler/actions/workflows/maven.yml) [![Documentation Status](https://readthedocs.org/projects/fscrawler/badge/?version=latest)](https://fscrawler.readthedocs.io/en/latest/?badge=latest) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dadoonet_fscrawler&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler) ## GitHub stats ![GitHub commits since latest release (by SemVer including pre-releases)](https://img.shields.io/github/commits-since/dadoonet/fscrawler/latest/master) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/t/dadoonet/fscrawler) ![GitHub contributors](https://img.shields.io/github/contributors/dadoonet/fscrawler) ![GitHub issues](https://img.shields.io/github/issues/dadoonet/fscrawler) ![GitHub pull requests](https://img.shields.io/github/issues-pr/dadoonet/fscrawler) ## Documentation The guide has been moved to [ReadTheDocs](https://fscrawler.readthedocs.io/en/latest/). ![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/dadoonet) ## Contribute Works on my machine - and yours ! Spin up pre-configured, standardized dev environments of this repository, by clicking on the button below. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#/https://github.com/dadoonet/fscrawler) # License ![GitHub](https://img.shields.io/github/license/dadoonet/fscrawler) Read more about the [Apache2 License](https://fscrawler.readthedocs.io/en/latest/index.html#license). # Thanks Thanks to [JetBrains](https://www.jetbrains.com/?from=FSCrawler) for the IntelliJ IDEA License! Thanks to SonarCloud for the free analysis! [![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-white.svg)](https://sonarcloud.io/summary/new_code?id=dadoonet_fscrawler)
0
webbukkit/dynmap
A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
fabricmc-mod forge-mod minecraft-mod papermc-plugins spigotmc-plugins
# Dynmap® - dynamic web maps for Minecraft servers # Jump around the README * [How to build](#how-to-build) * [What platforms are supported?](#what-platforms-are-supported) * [Data Storage](#data-storage) * [Contributing to Dynmap's Code](#contributing-to-dynmaps-code) * [Porting, Supporting Other Platforms, Customized Dynmap Builds](#porting-supporting-other-platforms-customized-dynmap-builds) * [Where to go for questions and discussions](#where-to-go-for-questions-and-discussions) * [Where to go to make donations](#where-to-go-to-make-donations) # How to build Dynmap 3.x+ uses Gradle for building support for all platforms, with all resulting artifacts produced in the /targets directory. Due to Minecraft 1.18.x+ requirements, the developer's default JDK must be a JDK 17 (or later) versions - older versions will still be compiled to run on the default JDK for those platforms (JDK 8, or JDK 16 for 1.17.x), and common libraries are built JDK 8. To build and get all jars in `target/`, run: ./gradlew setup build Or (on Windows): gradlew.bat setup build The Forge 1.12.2 versions (specifically ForgeGradle for these) are very sensitive to being built by JDK 8, so to build them, set JAVA_HOME to correspond to a JDK 8 installation, then build using the following; cd oldgradle ./gradlew setup build Or (on Windows): cd oldgradle gradlew.bat setup build Those familiar with gradle can save time by specifying a build (or commenting in settings.gradle) BUT this is not suitable for uploading DEV code changes. NOTE: PR code submissions MUST be built and TESTED for ALL platforms (including oldgradle), or be rejected and negatively influence future approvals. For more check [contributing rules](#contributing-to-dynmaps-code). ./gradlew :fabric-1.18:build # What platforms are supported? The following target platforms are supported, and you can find them at the links supplied: | Server type | Version | Dynmap JAR | Where? | | ------------ | ------- | ---------- | ------ | | Spigot/PaperMC | ≤1.20.2 | `Dynmap-<version>-spigot.jar` | [SpigotMC](https://www.spigotmc.org/resources/dynmap.274/) | | Spigot/PaperMC | ≤1.20.2 | `Dynmap-<version>-spigot.jar` | [Bukkit](https://dev.bukkit.org/projects/dynmap) | | Forge | 1.12.2 | `Dynmap-<version>-forge-1.12.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge)| | Forge | 1.14.4 | `Dynmap-<version>-forge-1.14.4.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge)| | Forge | 1.15.2 | `Dynmap-<version>-forge-1.15.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge)| | Forge | 1.16.5 | `Dynmap-<version>-forge-1.16.5.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.17.1 | `Dynmap-<version>-forge-1.17.1.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.18.2 | `Dynmap-<version>-forge-1.18.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.19, 1.19.1 | `Dynmap-<version>-forge-1.19.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.19.2 | `Dynmap-<version>-forge-1.19.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.19.3, 1.19.4 | `Dynmap-<version>-forge-1.19.3.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.20, 1.20.1 | `Dynmap-<version>-forge-1.20.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Forge | 1.20.2 | `Dynmap-<version>-forge-1.20.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.15.2 | `Dynmap-<version>-fabric-1.15.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.16.4, 1.16.5 | `Dynmap-<version>-fabric-1.16.4.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.17.1 | `Dynmap-<version>-fabric-1.17.1.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.18.2 | `Dynmap-<version>-fabric-1.18.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.19 | `Dynmap-<version>-fabric-1.19.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.19.1, 1.19.2 | `Dynmap-<version>-fabric-1.19.1.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.19.3 | `Dynmap-<version>-fabric-1.19.3.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.19.4 | `Dynmap-<version>-fabric-1.19.4.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.20, 1.20.1 | `Dynmap-<version>-fabric-1.20.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | | Fabric | 1.20.2 | `Dynmap-<version>-fabric-1.20.2.jar` | [Curseforge](https://www.curseforge.com/minecraft/mc-mods/dynmapforge) | # Data Storage Dynmap supports the following storage backends: - Flat files: The default for a new installation - MySQL† - SQLite† - PostgreSQL (JDBC driver for this is now bundled with the Dynmap JAR) - MariaDB - is compatible with MySQL - AWS S3 (allows S3 bucket to be used for storage AND as web site host) - †Note: drivers for SQL are usually included for Spigot and its derivatives but not included with other platforms or Dynmap. For Forge and Fabric servers we recommend Kosma's [SQLite mod](https://www.curseforge.com/minecraft/mc-mods/sqlite-jdbc) or [MySQL mod](https://www.curseforge.com/minecraft/mc-mods/mysql-jdbc) to add the needed drivers. Additionally, injecting driver classes into jar file will be recognized and supported. # Contributing to Dynmap's Code The Dynmap team welcomes Pull Requests with fixes, new features, and new platform support. That said, the following rules apply: - Ultimately, we reserve the right to accept or deny a PR for any reason: fact is, by accepting it, we're also accepting any of the problems with supporting it, explaining it to users, and fixing current and future problems - if we don't think the PR is of value consistent with that cost, we'll probably not accept it. - All PRs should be as small as they can be to accomplish the feature or fix being supplied. To that end: - Do not lump multiple features into one PR - you'll be asked to split them up before they will be reviewed or accepted - Do not make style changes, reflow code, pretty printing, or otherwise make formatting-only code changes. This makes the PR excessively large, creating changes to be reviewed that don't actually do anything (but we have to review them to be sure they aren't being used to disguise security compromises or other malicious code), and they create problems with the MANY people who fork Dynmap for the sake of doing PRs or their own private custom builds - since all theose modified lines create merge conflicts - once again, with no actual function having been accomplished. If we decide the code needs to be 'prettied up', it'll be done by the Dynmap team. - Do not make changes to core code (anything in DynmapCore or DynmapCoreAPI) unless you're ready to build and test it on all supported platforms. Code that breaks building of ANY supported platform will be rejected. - Likewise, any Spigot related changes are expected to function correctly on all supported Spigot and PaperMC versions (currently 1.10.2 through 1.18.1). - Do not include any code that involves platform specific native libraries or command line behaviors. Dynmap supports 32-bit and 64-bit, Windows, lots of Linux versions (both x86 and ARM), MacOS, being used in Docker environments, and more - this is all about staying as 'pure Java' as the Minecraft server itself is. If your PR includes platform specific dependencies that are not coded to handle working on all the above platforms properly, the PR will be rejected. - Dynmap's code is Apache Public License v2 - do not include any code that is not compatible with this license. By contributing code, you are agreeing to that code being subject to the APL v2. - Do not include any code that unconditionally adds to Dynmap's hosting requirements - for example, support for a database can be added, but the use of the database (which likely depends on a database server being deployed and configured by the user) cannot become an unconditional requirement in order to run Dynmap. Features can add the option to exploit new or additional technologies, but cannot add unconditionally to the minimum requirements on the supported platforms (which is what is needed to run the corresponding MC server, plus the Dynmap plugin or mod) - Dynmap is built and supports running on Java 8 - it can run on newer versions, but any contributed code and dependencies MUST support being compiled and run using just Java 8. - Don't introduce other language dependencies - Java only: no Kotlin, Scala, JRuby, whatever. They just add runtime dependencies that most of the platforms lack, and language skills above and beyond the Java language requirements the code base already mandates, which just creates obstacles to other people contributing. - Similarly, do not update existing libraries and dependencies - these are often tied to the versions on various platforms, and updates will likely break runtime - Do not include code specific to other plugins or mods. Dynmap has APIs for the purpose of avoiding the problem of working with other mods - there are many 'Dynmap-XXX' mods and plugins which use the APIs to provide support for other mods and plugins (WorldGuard, Nucleus, Citizens, dozens of others). Maintaining interfaces in Dynmap particular to dozens of mods on multiple versions of multiple platforms is unmanageable, so we don't do it. The ONLY exception currently are security mods - although, even for those, leverage of platform-standard security interfaces is always preferred (e.g. Sponge or Bukkit standard permissions) # Porting, Supporting Other Platforms, Customized Dynmap Builds While Dynmap is open source, subject to the Apache Public License, v2, the Dynmap team does have specific policies and requirements for anyone that would use the code here for anything except building contributions submitted back to this code base as Pull Requests (which is the only process by which code is accepted and can become part of a release supported by the Dynmap team). Other authorized uses include: - Building custom version of Dynmap for use on a personal or on a specific server, so long as this version is NOT distributed to other parties. The modifying team agrees to not pursue support from the Dynmap team for this modified private version, but is otherwise not required to share the modified source code - though doing so is encouraged. - Building a modified version of Dynmap for otherwise unsupported platforms: in this event, the modified version MUST be for a platform or version not yet (or no longer) supported by the Dynmap team. If the Dynmap team comes to support this platform or version, the modifying team must agree to cease distribution of the unofficial version, unless otherwise authorized to continue doing so. Further: - The team distributing the modified version must cite the origin of the Dynmap code, but must also clearly indicate that the version is NOT supported by nor endorsed by the Dynmap team, and that ALL support should be directed through the team providing the modified version. - Any modified version CANNOT be monetized or otherwise charged for, under any circumstances, nor can redistribution of it be limited or restricted. - The modified code must continue to be Apache Public License v2, with no additional conditions or restrictions, including full public availability of the modified source code. - Any code from Dynmap used in such versions should be built from an appropriate fork, as DynmapCore and other components (other than DynmapCoreAPI and dynmap-api) are subject to breaking changes at any time, and the support messages in DynmapCore MUST be modified to refer to the supporting team (or, at least, removed). The modified version should NOT refer to the Dynmap Discord nor to /r/Dynmap on Reddit for support. in any case. - Any bugs or issues opened in conjunction with the use of the modified version on this repository will be closed without comment. Additions of new functions, including new platform support, in this official Dynmap code base MUST be fully contained within the PRs submitted to this repository. Further, it is always expected than any updates will be built and tested across all relevant platforms - meaning any chances to shared code components (DynmapCore, DynmapCoreAPI) MUST be successfully built and tested on ALL supported platforms (Forge, Spigot, etc). Changes which break supported platforms will be rejected. The only interfaces published and maintained as 'stable' are the interfaces of the DynmapCoreAPI (cross platform) and dynmap-api (Bukkit/spigot specific) libraries. All other components are NOT libraries - DynmapCore, in particular, is a shared code component across the various platforms, but is subject to breaking changes without warning or consideration - any use of DynmapCore interfaces by code outside this repository is NOT supported, and will likely result in breaking of such consuming code without warning and without apology. DynmapCore is an internal shared code component, not a library - please treat it accordingly. Plugins or mods using the published APIs - DynmapCoreAPI (for all platforms) or dynmap-api (only for Spigot/Bukkit) - may access these components as 'compile' dependencies: DO NOT INTEGRATE THEM INTO YOUR PLUGIN - this will break Dynmap and/or other plugins when these interfaces are updated or expanded. These libraries are published at https://repo.mikeprimm.com and will be updated each official release. # Where to go for questions and discussions We have a Discord located at https://discord.gg/52pqBpw We also have a subreddit located at https://www.reddit.com/r/Dynmap/ # Where to go to make donations I've set up a coffee-fund jar (I believe in the theory that software developers are machines that turn caffeine into code), for anyone who wants to throw in some tips! I've got a Patreon here - https://www.patreon.com/dynmap, and for folks just looking to for a one-time coffee buy, hit my Ko-Fi at https://ko-fi.com/michaelprimm ! Dynmap is a registered trademark of Michael Primm, TX USA. All Rights Reserved.
0
dkim0419/SoundRecorder
A simple sound recording app implementing Material Design
null
Easy Sound Recorder ============= <p>A simple sound recording app implementing Material Design.</p> [![Android app on Google Play](https://developer.android.com/images/brand/en_app_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=com.danielkim.soundrecorder) [![Android app on F-Droid](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Get_it_on_F-Droid.svg/200px-Get_it_on_F-Droid.svg.png)](https://f-droid.org/repository/browse/?fdid=com.danielkim.soundrecorder) Screenshots: ![alt tag](http://i.imgur.com/4W5fj0Il.png) ![alt tag](http://i.imgur.com/7ggcFQzl.png) ![alt tag](http://i.imgur.com/RqD8S3Il.png) ![alt tag](http://i.imgur.com/H6ScO21l.png) Credits / Libraries used: https://github.com/makovkastar/FloatingActionButton https://github.com/MohammadAG/Android-SoundRecorder https://github.com/astuetz/PagerSlidingTabStrip
0
brianway/webporter
基于 webmagic 的 Java 爬虫应用
elasticsearch kibana zhihu
# webporter webporter 是一个基于垂直爬虫框架 [webmagic](http://webmagic.io/) 的 Java 爬虫应用,旨在提供一套完整的数据爬取,持久化存储和可视化展示的实践样例。 webporter 寓意“我们不生产数据,我们只是互联网的搬运工~” **如果觉得不错,请先在这个仓库上点个 star 吧**,这也是对我的肯定和鼓励,谢谢了。 目前只提供了知乎用户数据的爬虫示例。不定时进行调整和补充,需要关注更新的请 watch、star、fork --- webporter 的主要特色: - 基于国产 Java 爬虫框架 webmagic,是众多 Python 爬虫中的一股清流 - 完全模块化的设计,强大的可扩展性 - 核心简单,但是涵盖爬虫应用的完整流程,是爬虫应用的实践样例 - 使用 JSON 配置,无需改动源码 - 支持多线程 - 支持向 Elasticsearch 批量导入 **注意:webporter 不是爬虫框架,而是如何使用爬虫框架进行实战的样例,偏休闲性质,不建议使用在生产环境。** 生产环境建议使用 webmagic 或者 scrapy webporter 核心模块的架构和设计主要参考了 **webmagic** [https://github.com/code4craft/webmagic](https://github.com/code4craft/webmagic) webporter 的 github 地址:[https://github.com/brianway/webporter](https://github.com/brianway/webporter) ## 效果展示 详细的数据分析文章请看我的博客 [《爬取知乎60万用户信息之后的简单分析》](http://brianway.github.io/2016/12/20/webporter-zhihu-user-analysis/) - 下载数据:去重导入 Elasticsearch 后大概有 60+ 万用户数据(目前没有遇到反爬限制) ![索引状态图](https://pic1.zhimg.com/80/v2-f28d4e4a9eb3e3407bec6b8f2cde2348_1440w.jpg) - 示例分析:通过聚合得到知乎用户 top 10 行业分布情况(1:男,0:女,-1:未知) ![top 10 行业分布](https://pic1.zhimg.com/80/v2-8b11f37c69db727cb3d8abbc978c4d5c_1440w.png) ## 仓库目录 - [webporter-core](/webporter-core):核心基础模块,包括自动配置,抽象逻辑等部分 - [webporter-data-elasticsearch](/webporter-data-elasticsearch):将数据导入 Elasticsearch 的工具模块 - [webporter-collector-zhihu](/webporter-collector-zhihu):知乎用户信息的业务模块,完成爬取和持久化存储的功能 ## 环境要求 - JDK 1.8+ - Maven 3.3+ - Elasticsearch 5.0.1 - Kibana 5.0.1 新手可参考我的博客 [《Elasticsearch 5.0-安装使用》](http://brianway.github.io/2016/12/13/elasticsearch-installation/)快速上手 Elasticsearch+Kibana ## 快速开始 以爬取知乎用户数据为例 1.定制配置文件 配置文件位于 `webporter-collector-zhihu/src/main/resources/config.json`, 示例: ```json { "site": { "domain": "www.zhihu.com", "headers": { "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36", "authorization": "Your own authorization here." }, "retryTimes": 3, "sleepTime": 500 }, "base_dir": "/Users/brian/todo/data/zhihu/" } ``` **仅需要修改两处:`authorization` 和 `base_dir` 即可** - `authorization`: 需要知乎账户在已登录状态下自行在浏览器抓包提取该 HTTP 响应头。若有疑问请参考 [issue 3](https://github.com/brianway/webporter/issues/3) - `base_dir`: 为保存数据文件的根目录,需具有写权限 配完就可以直接使用了。更多关于 `site` 的属性配置请参考 [WebMagic in Action - Site Config](http://webmagic.io/docs/zh/posts/ch4-basic-page-processor/spider-config.html) 2.启动爬虫 依次运行 `webporter-collector-zhihu` 模块的下面两个类的 `main` 方法即可。(*注意:由于这两个阶段是串行的,不要同时启动这两个类*) - [`ZhihuFolloweePageProcessor`](/webporter-collector-zhihu/src/main/java/com/brianway/webporter/collector/zhihu/download/ZhihuFolloweePageProcessor.java):该类用于从知乎下载用户信息,下载的数据可以复制粘贴在 [在线 json 格式化工具](http://tool.oschina.net/codeformat/json)中查看 - [`FolloweeUploader`](/webporter-collector-zhihu/src/main/java/com/brianway/webporter/collector/zhihu/upload/FolloweeUploader.java):该类用于将用户信息上传到 Elasticsearch (需要提前安装并运行 Elasticsearch),知乎数据的 index 名称为 `zhihu` 3.可视化 安装好 [Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/index.html) 和 [Kibana](https://www.elastic.co/guide/en/kibana/5.0/index.html) 后,在 Kibana 中使用 Visualize 对数据可视化即可 ## 赞助 如果您觉得该项目对您有帮助,请扫描下方二维码对我进行鼓励,以便我更好的维护和更新,谢谢支持! ![支付宝](https://brianway.github.io/img/wechatpay_small.png) ![微信](https://brianway.github.io/img/alipay_small.png) ## TODO * [x] 数据爬取,获取知乎用户数据 * [x] 数据持久化,将数据导入到 Elasticsearch 中 * [x] 可视化展示,通过前端框架对数据进行简单的分析和展示 * [ ] 使用 Java 8 新特性完善代码 * [ ] Dockerize 这个仓库,方便用户直接使用 ----- ## 联系作者 - [Brian's Personal Website](http://brianway.github.io/) - [CSDN](http://blog.csdn.net/h3243212/) - [oschina](http://my.oschina.net/brianway) Email: weichuyang@163.com ## Lisence Lisenced under [Apache 2.0 lisence](http://opensource.org/licenses/Apache-2.0)
0
ocpsoft/prettytime
Social Style Date and Time Formatting for Java
null
prettytime ========== Social Style Date and Time Formatting for Java Learn more at https://www.ocpsoft.org/prettytime/ Java >=1.8 (Support JDK DateTime API) ======= PrettyTime requires Java/JDK >=1.8 as of version `5.0.0.Final` or higher. Java <=1.7 ======= Users requiring versions of Java/JDK less than or equal to 1.7 should use PrettyTime versions in the 4.x branch: `4.0.6.Final` or lower. Android ======= To use prettytime in android, first add the following dependency to your app level build.gradle implementation 'org.ocpsoft.prettytime:prettytime:5.0.4.Final' ProGuard rules are automatically configured for you if you use the R8 shrinker (which is the default since version 3.4.0 of the Android Gradle Plugin). If you are using an older version of AGP, add the ProGuard rules from [this file](core/src/main/resources/META-INF/proguard/prettytime.pro) Be sure to check maven central for the latest version: https://repo1.maven.org/maven2/org/ocpsoft/prettytime/prettytime/ **Note**: To use prettytime in projects with a `minSdkVersion` below 26, [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) is required. DEVELOPMENT =========== export RELEASE_VERSION="5.x.x.Final" export SNAPSHOT_VERSION="5.x.x-SNAPSHOT" force-release: mvn release:prepare release:perform -DskipTests=true -DdevelopmentVersion=$SNAPSHOT_VERSION -DreleaseVersion=$RELEASE_VERSION -Dtag=$RELEASE_VERSION -Darguments="-DskipTests=true -Dmaven.test.skip=true" CODE FORMAT DEFINITIONS/CONFIG ============================== Please use the following eclipse-style code formatter settings when submitting PRs: https://github.com/ocpsoft/common/blob/master/ocpsoft-eclipse-code-format.xml
0
dodola/RocooFix
another hotfix framework
null
# RocooFix Another hotfix framework ## update 新写了一个框架原理与美团robust框架类似,具体看这里:[**AnoleFix**](https://github.com/dodola/AnoleFix) 之前的HotFix项目太过简单,也有很多同学用Nuwa遇到很多问题,作者也不再修复,所以重新构建了一套工具。 ![](images/device-2016-05-28-010835.png) ## 遇到问题的同学可以看一下这里 https://github.com/shoyu666/derocoodemo ## Bugfix 1. 2016-06-26 * 增加了 Android N (API 24)的支持 * 增加了关联引用的补丁制作模块,解决 ART NativeCode address 位置错误引起的崩溃问题,但是会造成包大小的增加,后期会支持微信提出的 Dexdiff 技术 ## Features * **支持两种模式**: 1. 静态修复某种情况下需要重启应用。 2. 动态修复,无需重启应用即可生效。 3. 新增so修复,beta中 * **支持DalvikVM和ART VM** * 制作补丁更加方便 * 支持`com.android.tools.build:gradle:1.3.0`->`com.android.tools.build:gradle:2.1.2` (解决了Nuwa 这个[issue][1]) * 支持混淆和Mulitdex * 无需关注`hash.txt`和`mapping.txt`文件的生成和保存 ## TODO * 补充单测 * 兼容性测试 * 目录规则调整 * 对Win系统的支持 ## Use ```java public class RocooApplication extends Application { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); //初始化 RocooFix.init(this); } } //方案1:静态启用,一般在Application里加载补丁 /** * 从Assets里取出补丁,一般用于测试 * * @param context * @param assetName */ RocooFix.initPathFromAssets(Context context, String assetName); /** * 从指定目录加载补丁 * @param context * @param dexPath */ RocooFix.applyPatch(Context context, String dexPath); //方案2:动态打补丁,立即生效,有性能问题,适用于补丁方法数较少的情况,建议在ART虚拟机里启用该模式 /** * 从Asset里加载补丁,一般用于本地测试 * @param context * @param assetName */ RocooFix.initPathFromAssetsRuntime(Context context, String assetName) ; /** * 从指定目录加载补丁 * @param context * @param dexPath */ RocooFix.applyPatchRuntime(Context context, String dexPath) ; /** * * new Feature beta 中 * 从指定目录加载so补丁,使用so还需调用System.loadLibrary("xx") * @param context * @param soDirPath so补丁路径(这里是dir) */ RocooSoFix.applyPatch(Context context, String soDirPath); ``` ## Configuration 1 在root的`build.gradle`增加如下内容: ```groovy repositories { jcenter() } dependencies { classpath 'com.dodola:rocoofix:1.2.6’ } ``` 2 在你项目的`build.gradle`文件里添加如下配置 ```groovy apply plugin: 'com.dodola.rocoofix' repositories { jcenter() } rocoo_fix { includePackage = ['com/dodola/rocoosample']//指定将来可能需要制作补丁的package(就是指定插庄的范围) excludeClass = ['BaseApplication.class']//将不需要加到patch里的类写在这里(不需要插庄的类) preVersionPath = '1'//注意:此项属性只在需要制作补丁的时候才需开启!!如果不需要制作补丁则需要去掉此项 enable = true//注意:关掉此项会无法生成Hash.txt文件 scanref=true//默认为 false,开启这个选项会将与补丁 class 相引用的 class 都打入包中来解决 ART 虚拟机崩溃问题,功能 Beta 中 } dependencies { compile 'com.dodola:rocoo:1.1' } ``` 这里主要介绍一下`preVersionPath`这个属性的作用。 `rocoo_fix`将制作补丁的步骤透明化,用户无需手动备份hash.txt文件,插件会自动根据当前的`versionCode`生成`hash.txt`和`mapping.txt`文件到指定目录,比如: 上一个版本发布的时候版本号是`1`,那么生成的文件会放在`app源码目录/rocooFix/version1/[debug]|[release]`的目录下,如果需要制作补丁那么在配置里指定`preVersionPath` 属性,它的值是上一个版本的版本号,这里的值是`1`, 然后将`build.gradle`的`versionCode`的号码修改,这里修改成`2`,只要和之前的版本不同就可以,没有具体值的要求 ## Proguard(混淆) ``` -keep class com.dodola.rocoofix.** {*;} -keep class com.lody.legend.** {*;} -keepclassmembers class com.dodola.rocoosample.** { public <init>();//保留init,和include package保持一致 } ``` ## Build Patch 下面演示一下使用项目demo生成补丁的制作过程 1 假如我们需要打补丁的文件是 ```java package com.dodola.rocoosample; public class HelloHack { public String showHello() { return "hello world"; } } ``` 此时`build.gradle`里的`VersionCode`是`1` ![enter description here](./images/1464264036709.jpg "1464264036709.jpg") 2 运行一次应用,这时会在`app`的目录下生成如下文件: ![enter description here](./images/1464264178068.jpg "1464264178068.jpg") 这里可以看做是我们已经发布版本的`hash.txt` 3 假设我们需要修复步骤1 里的`showHello`方法,修改如下: ```java package com.dodola.rocoosample; public class HelloHack { public String showHello() { return "hello Hack";//此处修复,补丁加载后该方法返回hello hack } } ``` 4 修改build.gradle 文件里`rocoo_fix`项,让其执行patch 的task,配置如下 ```gradle rocoo_fix { preVersionPath = '1'//注意:这里指定的是需要打补丁的VersionCode enable = true } ``` 5 修改当前项目的`versionCode`为`2`,说明这个是一个升级fix版本。 ![enter description here](./images/1464264514735.jpg "1464264514735.jpg") 6 正常发布应用,此时会在下图所示的路径中生成补丁文件: ![enter description here](./images/1464264669463.jpg "1464264669463.jpg") 7 我们可以反编译apk来确认插庄是否成功 ![enter description here](./images/QQ20160722-0.png "QQ20160722-0.png") ## 相关项目 [Legend](https://github.com/asLody/legend) [1]:https://github.com/jasonross/Nuwa/issues/65
0
reneargento/algorithms-sedgewick-wayne
Solutions to all the exercises of the Algorithms book by Robert Sedgewick and Kevin Wayne
null
# Algorithms Solutions to the exercises of the Algorithms book by Robert Sedgewick and Kevin Wayne (4th editon). - [English](README.md) - [简体中文](README.ch.md) <a href="url"><img src="resources/book_cover.png" align="right" height="280" width="200" ></a> I found the book to be an excellent resource to learning algorithms and data structures. Since there are not many (almost none) solutions of the exercises on the Internet and the only ones available are incomplete, I decided to share my work on the exercises. Hopefully this will help students and professionals to validate their exercise solutions and learn more about the book content. To the best of my knowledge, these solutions are correct.</br> If you find anything incorrect feel free to create an issue or to open a pull request. Many of these exercises are used as homework assignments in universities. If you have to do any of these exercises as homework make sure you understand the problem and solution instead of simply copying it. Understanding these algorithms and data structures will be extremelly valuable in your career. The exercises answered on this repository are based on the seventh printing of the book (of September 2015). Other printings of the book (especially older ones) may have exercises in a slightly different order. <b>Update (November 26 2018):</b></br> It took me 2 and a half years of work, but the repository is now complete!</br> You can now find here the solutions to all the exercises in the book.
0
liuyubobobo/Play-with-Data-Structures
Codes of my MOOC Course <Play Data Structures in Java>. Updated contents and practices are also included. 我在慕课网上的课程《Java语言玩转数据结构》示例代码。课程的更多更新内容及辅助练习也将逐步添加进这个代码仓。
algorithm data-structures imooc mooc
## 玩儿转数据结构 - 课程官方代码仓 大家好, 欢迎大家来到我在[慕课网](http://www.imooc.com/)上的实战课程[《玩儿转数据结构》](https://coding.imooc.com/class/207.html)的官方代码仓。这个代码仓将不仅仅包含课程的所有源代码,还将发布课程的更新相关内容,勘误信息以及计划的更多可以丰富课程的内容,如更多分享,多多练习,等等等等。课程全部使用Java语言讲解,课程代码仓暂时只提供Java语言版本。 大家可以下载、运行、测试、修改。如果你发现了任何bug,或者对课程中的任何内容有意见或建议,欢迎和我联系:) **个人网站**:[liuyubobobo.com](http://liuyubobobo.com) [废弃重整中...] **电子邮件**:[liuyubobobo@gmail.com](mailto:liuyubobobo@gmail.com) **微博**: [刘宇波bobo http://weibo.com/liuyubobobo](http://weibo.com/liuyubobobo) **知乎**: [刘宇波 http://www.zhihu.com/people/liuyubobobo](http://www.zhihu.com/people/liuyubobobo) **知乎专栏:**[是不是很酷 https://zhuanlan.zhihu.com/liuyubobobo](https://zhuanlan.zhihu.com/liuyubobobo) **个人公众号:是不是很酷**:) ![QRCode](src/qrcode.png) ## 更多说明 * 每一章后面有补充代码的部分。**课程本身已经独立成体系,补充内容只是额外拓展,不影响课程整体的学习。对于课程整体学习,可以忽略。建议先完成课程必要部分学习,再酌情研究补充内容。** * 对于补充代码部分的内容,大多是课程中提及的拓展内容。对于这部分内容,我会**不定期更新代码,但不保证时间**。放在课程目录中,主要是供大家拓展思路使用。大家也可以理解成是思考练习,可以自行编写代码练习完成补充内容,相信是很好的编程锻炼:)当然,有任何问题可以在问答区进行提问。 * **课程讲义的PDF版本不在github上提供**,大家可以在慕课网上 "下载 -> 查看讲师源码" 中各个章节文件夹下找到。 * **请不要使用github,微信,QQ,邮件进行答疑。** 请使用课程问答区进行答疑。谢谢! ## 更多相关代码仓 * [**《算法与数据结构》课程**](https://coding.imooc.com/class/71.html), 代码仓: [Play-with-Algorithms](https://github.com/liuyubobobo/Play-with-Algorithms) * [**《玩转算法面试》课程**](https://coding.imooc.com/class/82.html), 代码仓: [Play-with-Algorithm-Interview](https://github.com/liuyubobobo/Play-with-Algorithm-Interview) * [**《看得见的算法》课程**](https://coding.imooc.com/class/138.html), 代码仓: [Play-with-Algorithm-Visualization](https://github.com/liuyubobobo/Play-with-Algorithm-Visualization) * 我的**LeetCode题解代码仓**:[Play Leetcode](https://github.com/liuyubobobo/Play-Leetcode) (注:以C++实现为主) * **LeetCode Explore题解代码仓**:[Play Leetcode Explore](https://github.com/liuyubobobo/Play-Leetcode-Explore) (注:以C++实现为主) * [Leetcode Explore](https://leetcode.com/explore/) 是 Leetcode 在2017年底上线的新模块,分门别类地整理了Leetcode上的问题。如果刷Leetcode一时不知从哪里下手,可以从Leetcode Explore为指引开始:) ## 更多推荐 * 感谢学习课程的大佬 [**@Donng**](https://github.com/Donng) 同学使用 **Go** 完成了课程的全部内容。有使用Go学习课程的同学,可以去大佬的代码仓观望。传送门:[https://github.com/Donng/Play-with-Data-Structures](https://github.com/Donng/Play-with-Data-Structures) * 感谢学习课程的大佬 [**@nicemayi**](https://github.com/nicemayi) 同学使用 **Python** 完成了课程的全部内容。有使用Python学习课程的同学,可以去大佬的代码仓观望。传送门:[https://github.com/nicemayi/play-with-data-structures](https://github.com/nicemayi/play-with-data-structures) * 感谢学习课程的大佬 [**@houpengfei88**](https://github.com/houpengfei88) 同学使用 **C++** 完成了课程的全部内容。有使用C++学习课程的同学,可以去大佬的代码仓观望。传送门:[https://github.com/houpengfei88/Play-with-Data-Structures](https://github.com/houpengfei88/Play-with-Data-Structures) * 感谢学习课程的大佬 [**@biaodigit**](https://github.com/biaodigit) 同学使用 **JS** 完成了课程的全部内容。有使用JS学习课程的同学,可以去大佬的代码仓观望。传送门:[https://github.com/biaodigit/Play-with-Data-Structures](https://github.com/biaodigit/Play-with-Data-Structures) * 感谢学习课程的大佬 [**@田小号**](https://github.com/tianxiaohao1) 基于Canvas实现的诸多数据结构可视化。有兴趣的同学可以去大佬的代码仓围观。同时,[**@田小号**](https://github.com/tianxiaohao1) 还基于Canvas实现了我的《修炼算法内功》和《看得见的算法》两门课程中诸多算法和数据结构的可视化内容,大家不要错过! 代码仓传送门:[**https://github.com/tianxiaohao1/codding.cn/tree/master/algo**](https://github.com/tianxiaohao1/codding.cn/tree/master/algo) ![ds-vis](src/fy.jpg) ## 课程源码目录 | **第一章 欢迎大家学习《玩儿转数据结构》** | [无代码] | | :--- | :---: | | 1-1 欢迎大家学习《玩儿转数据结构》 | [无代码] | | 1-2 学习数据结构(和算法)到底有没有用? | [无代码] | | 1-3 课程学习的更多注意事项 | [无代码] | | 1-4 课程编程环境的安装 | [无代码] | | 1-5 关于课程的其他语言支持:Python 和 C++ | [无代码] | | **第二章 不要小瞧数组** | [章节Java源码](02-Arrays/) | | 2-1 使用Java中的数组 | [Java](02-Arrays/01-Array-Basics/src/) | | 2-2 二次封装属于我们自己的数组 | [Java](02-Arrays/02-Create-Our-Own-Array/src/) | | 2-3 向数组中添加元素 | [Java](02-Arrays/03-Add-Element-in-Array/src/) | | 2-4 数组中查询元素和修改元素 | [Java](02-Arrays/04-Query-and-Update-Element/src/) | | 2-5 包含,搜索和删除 | [Java](02-Arrays/05-Contain-Find-and-Remove/src/) | | 2-6 使用泛型 | [Java](02-Arrays/06-Generic-Data-Structures/src/) | | 2-7 动态数组 | [Java](02-Arrays/07-Dynamic-Array/src/) | | 2-8 简单的复杂度分析 | [无代码] | | 2-9 均摊复杂度和防止复杂度的震荡 | [Java](02-Arrays/09-Amortized-Time-Complexity/src/) | | **第三章 栈和队列** | [章节Java源码](03-Stacks-and-Queues/) | | 3-1 栈和栈的应用:撤销操作和系统栈 | [无代码] | | 3-2 栈的基本实现 | [Java](03-Stacks-and-Queues/02-Array-Stack/src/) | | 3-3 栈的另一个应用:括号匹配 | [Java](03-Stacks-and-Queues/03-A-Stack-Problem-in-Leetcode/src/) | | 3-4 关于Leetcode的更多说明 | [Java](03-Stacks-and-Queues/04-More-about-Leetcode/src/) | | 3-5 数组队列 | [Java](03-Stacks-and-Queues/05-Array-Queue/src/) | | 3-6 循环队列 | [Java](03-Stacks-and-Queues/06-Loop-Queue/src/) | | 3-7 循环队列的实现 | [Java](03-Stacks-and-Queues/07-Implementation-of-Loop-Queue/src/) | | 3-8 数组队列和循环队列的比较 | [Java](03-Stacks-and-Queues/08-Queues-Comparison/src/) | | 补充代码1: 不浪费一个空间的循环队列 | [Java](03-Stacks-and-Queues/Optional-01-Loop-Queue-without-Wasting-One-Space/src/) | | 补充代码2: 没有size成员变量的循环队列 | [Java](03-Stacks-and-Queues/Optional-02-Loop-Queue-without-Size-Member/src/) | | **第四章 最基础的动态数据结构:链表** | [章节Java源码](04-Linked-List/) | | 4-1 什么是链表 | [Java](04-Linked-List/01-Linked-List-Basics/src/) | | 4-2 在链表中添加元素 | [Java](04-Linked-List/02-Add-Elements-in-LinkedList/src/) | | 4-3 使用链表的虚拟头结点 | [Java](04-Linked-List/03-DummyHead-in-LinkedList/src/) | | 4-4 链表的遍历,查询和修改 | [Java](04-Linked-List/04-Query-and-Update-in-LinkedList/src/) | | 4-5 从链表中删除元素 | [Java](04-Linked-List/05-Remove-Element-in-LinkedList/src/) | | 4-6 使用链表实现栈 | [Java](04-Linked-List/06-Implement-Stack-in-LinkedList/src/) | | 4-7 带有尾指针的链表:使用链表实现队列 | [Java](04-Linked-List/07-Implement-Queue-in-LinkedList/src/) | | **第五章 透过链表看递归** | [章节Java源码](05-Recursion/) | | 5-1 Leetcode中和链表相关的问题 | [Java](05-Recursion/01-Linked-List-Problems-in-Leetcode/src/) | | 5-2 测试自己的Leetcode链表代码 | [Java](05-Recursion/02-Test-Your-LinkedList-Solution/src/) | | 5-3 递归基础与递归的宏观语意 | [Java](05-Recursion/03-Recursion-Basics/src/) | | 5-4 链表与递归 | [Java](05-Recursion/04-LinkedList-and-Recursion/src/) | | 5-5 递归运行的机制:递归的微观解读 | [无代码] | | 5-6 递归算法的调试 | [Java](05-Recursion/06-Debug-Recursive-Solution/src/) | | 5-7 更多和链表相关的问题 | [无代码] | | 补充代码1: 单链表的递归实现 | [Java](05-Recursion/Optional-01-Recursive-LinkedList/src/) | | 补充代码2: 斯坦福大学单链表的18个问题 | PDF参见慕课网上讲师源代码 | | 补充代码3: 双链表 | [整理中,敬请期待] | | 补充代码4: 循环双链表 | [整理中,敬请期待] | | 补充代码5: 数组链表 | [整理中,敬请期待] | | **第六章 二分搜索树** | [章节Java源码](06-Binary-Search-Tree/) | | 6-1 为什么要研究树结构 | [无代码] | | 6-2 二分搜索树基础 | [Java](06-Binary-Search-Tree/02-Binary-Search-Tree-Basics/src/) | | 6-3 向二分搜索树中添加元素 | [Java](06-Binary-Search-Tree/03-Add-Elements-in-BST/src/) | | 6-4 改进添加操作:深入理解递归终止条件 | [Java](06-Binary-Search-Tree/04-Improved-Add-Elements-in-BST/src/) | | 6-5 二分搜索树的查询操作 | [Java](06-Binary-Search-Tree/05-Search-in-BST/src/) | | 6-6 二分搜索树的前序遍历 | [Java](06-Binary-Search-Tree/06-PreOrder-Traverse-in-BST/src/) | | 6-7 二分搜索树的中序遍历和后序遍历 | [Java](06-Binary-Search-Tree/07-InOrder-and-PostOrder-Traverse-in-BST/src/) | | 6-8 深入理解二分搜索树的前中后序遍历 | [无代码] | | 6-9 二分搜索树前序遍历的非递归实现 | [Java](06-Binary-Search-Tree/09-Non-Recursion-Preorder-Traverse-in-BST/src/) | | 6-10 二分搜索树的层序遍历 | [Java](06-Binary-Search-Tree/10-Level-Traverse-in-BST/src/) | | 6-11 删除二分搜索树的最大元素和最小元素 | [Java](06-Binary-Search-Tree/11-Remove-Min-and-Max-in-BST/src/) | | 6-12 删除二分搜索树的任意元素 | [Java](06-Binary-Search-Tree/12-Remove-Elements-in-BST/src/) | | 6-13 更多二分搜索树相关话题 | [无代码] | | 补充代码1: 斯坦福大学Binary Tree相关问题 | PDF参见慕课网上讲师源代码 | | 补充代码2: 斯坦福大学Tree List相关问题 | PDF参见慕课网上讲师源代码 | | 补充代码3: 二叉树前中后序非递归遍历的经典实现 | [Java](06-Binary-Search-Tree/Optional-03-Binary-Tree-Classic-Nonrecursive-Traversal/) | | 补充代码4: 模拟系统栈前中后序遍历的非递归实现 | [玩转算法面试,第六章2,3小节](https://coding.imooc.com/lesson/82.html#mid=2675) | | 补充代码5: 二叉树Morris遍历前中后序实现 | [Java](06-Binary-Search-Tree/Optional-05-Binary-Tree-Morris-Traversal/src/) | | 补充代码6: 二分搜索树其他方法的非递归实现 | [整理中,敬请期待] | | 补充代码7: 前驱和后继操作 | [整理中,敬请期待] | | 补充代码8: floor和ceil操作 | [整理中,敬请期待] | | 补充代码9: 节点内维护size的二分搜索树 | [整理中,敬请期待] | | 补充代码10: rank和select操作 | [整理中,敬请期待] | | 补充代码11: 节点内维护depth的二分搜索树 | [整理中,敬请期待] | | 补充代码12: 节点内维护count的二分搜索树<br/>(支持重复元素的二分搜索树) | [整理中,敬请期待] | | 补充代码13: 有重复元素节点的二分搜索树<br/>(另一种支持重复元素的二分搜索树实现) | [整理中,敬请期待] | | **第七章 集合和映射** | [章节Java源码](07-Set-and-Map/) | | 7-1 集合基础和基于二分搜索树的集合实现 | [Java](07-Set-and-Map/01-Set-Basics-and-BSTSet/src/) | | 7-2 基于链表的集合实现 | [Java](07-Set-and-Map/02-LinkedListSet/src/) | | 7-3 集合类的复杂度分析 | [Java](07-Set-and-Map/03-Time-Complexity-of-Set/src/) | | 7-4 Leetcode中的集合问题和更多集合相关问题 | [Java](07-Set-and-Map/04-TreeSet-and-Set-Problems-in-Leetcode/src/) | | 7-5 映射基础 | [Java](07-Set-and-Map/05-Map-Basics/src/) | | 7-6 基于链表的映射实现 | [Java](07-Set-and-Map/06-LinkedListMap/src/) | | 7-7 基于二分搜索树的映射实现 | [Java](07-Set-and-Map/07-BSTMap/src/) | | 7-8 映射的复杂度分析和更多映射相关问题 | [Java](07-Set-and-Map/08-More-about-Map/src/) | | 7-9 Leetcode上更多集合和映射的问题 | [Java](07-Set-and-Map/09-Leetcode-Problems-about-Map-and-Set/src/) | | 补充代码1: 更完整的基于二分搜索树的有序集合 | [整理中,敬请期待] | | 补充代码2: 不同底层实现的有序集合对比 | [整理中,敬请期待] | | 补充代码3: 更完整的基于二分搜索树的有序映射 | [整理中,敬请期待] | | 补充代码4: 不同底层实现的有序映射对比 | [整理中,敬请期待] | | 补充代码5: 多重集合 | [整理中,敬请期待] | | 补充代码6: 多重映射 | [整理中,敬请期待] | | 补充代码7: 基于映射实现的集合 | [整理中,敬请期待] | | **第八章 堆和优先队列** | [章节Java源码](08-Heap-and-Priority-Queue/) | | 8-1 什么是优先队列 | [无代码] | | 8-2 堆的基础表示 | [Java](08-Heap-and-Priority-Queue/02-Heap-Basics/src/) | | 8-3 向堆中添加元素和Sift Up | [Java](08-Heap-and-Priority-Queue/03-Add-and-Sift-Up-in-Heap/src/) | | 8-4 从堆中取出元素和Sift Down | [Java](08-Heap-and-Priority-Queue/04-Extract-and-Sift-Down-in-Heap/src/) | | 8-5 Heapify 和 Replace | [Java](08-Heap-and-Priority-Queue/05-Heapify-and-Replace-in-Heap/src/) | | 8-6 基于堆的优先队列 | [Java](08-Heap-and-Priority-Queue/06-Priority-Queue/src/) | | 8-7 Leetcode上优先队列相关问题 | [Java](08-Heap-and-Priority-Queue/07-Priority-Queue-Problems-in-Leetcode/src/) | | 8-8 Java中的PriorityQueue | [Java](08-Heap-and-Priority-Queue/08-Priority-Queue-in-Java/src/) | | 8-9 和堆相关的更多话题和广义队列 | [无代码] | | 补充代码1: 普通线性结构和顺序线性结构实现的优先队列 | [整理中,敬请期待] | | 补充代码2: 最小堆 | [整理中,敬请期待] | | 补充代码3: 堆排序 | [整理中,敬请期待] | | 补充代码4: 索引堆 | [整理中,敬请期待] | | 补充代码5: 双向优先队列 | [整理中,敬请期待] | | 补充代码6: 多叉堆 | [整理中,敬请期待] | | 补充代码7: 二项堆 | [整理中,敬请期待] | | 补充代码8: 斐波那契堆 | [整理中,敬请期待] | | 补充代码9: 基于事件堆的粒子检测碰撞 | [整理中,敬请期待] | | **第九章 线段树** | [章节Java源码](09-Segment-Tree/) | | 9-1 什么是线段树 | [无代码] | | 9-2 线段树基础表示 | [Java](09-Segment-Tree/02-Segment-Tree-Basics/src/) | | 9-3 创建线段树 | [Java](09-Segment-Tree/03-Building-Segment-Tree/src/) | | 9-4 线段树中的区间查询 | [Java](09-Segment-Tree/04-Query-in-Segment-Tree/src/) | | 9-5 Leetcode上线段树相关的问题 | [Java](09-Segment-Tree/05-Segment-Tree-Problems-in-Leetcode/src/) | | 9-6 线段树中的更新操作 | [Java](09-Segment-Tree/06-Update-Single-Element-in-Segment-Tree/src/) | | 9-7 更多线段树相关的话题 | [无代码] | | 补充代码1: 使用节点表示的线段树 | [整理中,敬请期待] | | 补充代码2: 链式存储的线段树 | [整理中,敬请期待] | | 补充代码3: 动态线段树 | [整理中,敬请期待] | | 补充代码4: 线段树的懒惰传播 | [整理中,敬请期待] | | 补充代码5: 二维线段树 | [整理中,敬请期待] | | 补充代码6: 树状数组(Binary Index Tree) | [整理中,敬请期待] | | 补充代码7: RMQ问题 | [整理中,敬请期待] | | **第十章 Trie** | [章节Java源码](10-Trie/) | | 10-1 什么是Trie字典树 | [无代码] | | 10-2 Trie字典树基础 | [Java](10-Trie/02-Trie-Basics/src/) | | 10-3 Trie字典树的查询 | [Java](10-Trie/03-Searching-in-Trie/src/) | | 10-4 Trie字典树的前缀查询 | [Java](10-Trie/04-Prefix-in-Trie/src/) | | 10-5 Trie字典树和简单的模式匹配 | [Java](10-Trie/05-Trie-and-Pattern-Match/src/) | | 10-6 Trie字典树和字符串映射 | [Java](10-Trie/06-Trie-and-Map/src/) | | 10-7 更多和Trie字典树相关的话题 | [无代码] | | 10-8 [文字补充] 基于哈希表或者数组的Trie | [Java](10-Trie/08-Trie-Using-HashMap-and-Array/src/) | | 补充代码1: Trie的递归实现 | [Java](10-Trie/Optional-01-Trie-in-Recursion/src/) | | 补充代码2: 使用Trie删除元素 | [Java](10-Trie/Optional-02-Trie-Delete/src/) | | 补充代码3: TrieSet和TrieMap | [整理中,敬请期待] | | 补充代码4: 压缩字典树 | [整理中,敬请期待] | | 补充代码5: 三分搜索Trie (Ternary Search Trie) | [整理中,敬请期待] | | 补充代码6: 子串查询算法 | [整理中,敬请期待] | | 补充代码7: 文件压缩算法 | [整理中,敬请期待] | | 补充代码8: 模式匹配算法 | [整理中,敬请期待] | | **第十一章 并查集** | [章节Java源码](11-Union-Find/) | | 11-1 什么是并查集 | [Java](11-Union-Find/01-What-is-UnionFind/src/) | | 11-2 Quick Find | [Java](11-Union-Find/02-Quick-Find/src/) | | 11-3 Quick Union | [Java](11-Union-Find/03-Quick-Union/src/) | | 11-4 基于size的优化 | [Java](11-Union-Find/04-Optimized-by-Size/src/) | | 11-5 基于rank的优化 | [Java](11-Union-Find/05-Optimized-by-Rank/src/) | | 11-6 路径压缩 | [Java](11-Union-Find/06-Path-Compression/src/) | | 11-7 更多和并查集相关的话题 | [Java](11-Union-Find/07-More-about-Union-Find/src/) | | **第十二章 平衡树和AVL** | [章节Java源码](12-AVL-Tree/) | | 12-1 平衡树和AVL | [无代码] | | 12-2 计算节点的高度和平衡因子 | [Java](12-AVL-Tree/02-Calculating-Balance-Factor/src/) | | 12-3 检查二分搜索树性质和平衡性 | [Java](12-AVL-Tree/03-Checking-Balancing-and-Binary-Search-Property/src/) | | 12-4 旋转操作的基本原理 | [Java](12-AVL-Tree/04-Rotation-Operations/src/) | | 12-5 左旋转和右旋转的实现 | [Java](12-AVL-Tree/05-The-Implementation-of-Left-Rotation-and-Right-Rotation/src/) | | 12-6 LR 和 RL | [Java](12-AVL-Tree/06-LR-and-RL/src/) | | 12-7 从AVL树中删除元素 | [Java](12-AVL-Tree/07-Remove-Elements-in-AVL-Tree/src/) | | 12-8 基于AVL树的集合和映射 | [Java](12-AVL-Tree/08-Map-and-Set-in-AVL-Tree/src/) | | 补充代码1: AVL树的优化 | [整理中,敬请期待] | | **第十三章 红黑树** | [章节Java源码](13-Red-Black-Tree/) | | 13-1 红黑树与2-3树 | [无代码] | | 13-2 2-3树的绝对平衡性 | [无代码] | | 13-3 红黑树与2-3树的等价性 | [Java](13-Red-Black-Tree/03-The-Equivalence-of-RBTree-and-2-3-Tree/src/) | | 13-4 红黑树的基本性质和复杂度分析 | [无代码] | | 13-5 保持根节点为黑色和左旋转 | [Java](13-Red-Black-Tree/05-Keep-Root-Black-and-Left-Rotation/src/) | | 13-6 颜色翻转和右旋转 | [Java](13-Red-Black-Tree/06-Flip-Colors-and-Right-Rotation/src/) | | 13-7 红黑树中添加新元素 | [Java](13-Red-Black-Tree/07-Adding-Elements-in-Red-Black-Tree/src/) | | 13-8 红黑树的性能测试 | [Java](13-Red-Black-Tree/08-The-Performance-of-Red-Black-Tree/src/) | | 13-9 更多红黑树相关的话题 | [无代码] | | 13-10 [文字补充] 红黑树任何不平衡都可以在三次旋转内解决? | [无代码] | | 补充代码1: 红黑树中的删除最大元素 | [整理中,敬请期待] | | 补充代码2: 红黑树中的删除最小元素 | [整理中,敬请期待] | | 补充代码3: 红黑树中的删除任意元素 | [整理中,敬请期待] | | 补充代码4: 基于红黑树的集合和映射 | [整理中,敬请期待] | | 补充代码5: 右倾红黑树 | [整理中,敬请期待] | | 补充代码6: 《算法导论》中红黑树的实现 | [整理中,敬请期待] | | 补充代码7: 2-3 树的实现 | [整理中,敬请期待] | | 补充代码8: 伸展树 Splay Tree | [整理中,敬请期待] | | **第十四章 哈希表** | [章节Java源码](14-Hash-Table/) | | 14-1 哈希表基础 | [Java](14-Hash-Table/01-Hash-Table-Basics/src/) | | 14-2 哈希函数 | [无代码] | | 14-3 Java中的hashCode方法 | [Java](14-Hash-Table/03-Hash-Function-in-Java/src/) | | 14-4 链地址法 Seperate Chaining | [无代码] | | 14-5 实现属于我们自己的哈希表 | [Java](14-Hash-Table/05-Hash-Table-Implementation/src/) | | 14-6 哈希表的动态空间处理与复杂度分析 | [Java](14-Hash-Table/06-Resizing-in-Hash-Table/src/) | | 14-7 哈希表更复杂的动态空间处理方法 | [Java](14-Hash-Table/07-More-About-Resizing-in-Hash-Table/src/) | | 14-8 更多哈希冲突的处理方法 | [无代码] | | 补充代码1: 每个地址存储链表的哈希表 | [整理中,敬请期待] | | 补充代码2: 每个地址可以从链表转换到红黑树的哈希表 | [整理中,敬请期待] | | 补充代码3: 基于哈希表的无序映射和无序集合 | [整理中,敬请期待] | | 补充代码4: 开放地址线性探测解决哈希冲突 | [整理中,敬请期待] | | 补充代码5: 开放地址二次探测解决哈希冲突 | [整理中,敬请期待] | | 补充代码6: 开放地址双重哈希解决哈希冲突 | [整理中,敬请期待] | | 补充代码7: 再哈希法解决哈希冲突 | [整理中,敬请期待] | | 补充代码8: Coalesced Hashing | [整理中,敬请期待] | | **第十五章 结语** | [无代码] | | 15-1 更广阔的数据结构的世界,大家加油! | [无代码] | | 15-2 [文字补充]更多数据结构的练习:) | [无代码] | | **第十六章 补充章节:B类树** | [更新中,敬请期待] | | [由于B类树不是课程最初规划内容] | [更新时间待定,敬请期待] | --- **课程讲义的PDF版本不在github上提供**,大家可以在慕课网上 "下载 -> 查看讲师源码" 中各个章节文件夹下找到。 **大家加油!:)**
0
huage2580/leeks
idea插件,查看基金,股票,虚拟币
null
# leeks ![GitHub release (latest by date)](https://img.shields.io/github/v/release/huage2580/leeks?label=RELEASE&style=flat-square&logo=github&color=green) ![star](https://img.shields.io/github/stars/huage2580/leeks?style=flat-square&logo=github) idea插件,查看基金,股票:支持A股,港股,美股 ## 请先阅读完readme,确保编码正确输入 提issues附上:使用的插件版本、IDEA详细的版本信息(到Help->about里面复制出来),如果【Event Log】有异常信息,也请在issues附上异常 ## 安装 [插件下载地址](https://github.com/huage2580/leeks/releases) 找到 leeks-x.x.x.zip 下载后,直接在IDEA里面安装(安装方式自行百度),注意:直接选择zip文件安装,不要解压。 ## 使用 设置里面找到Leeks选项,输入基金编码,股票编码,英文分号分割【;】,apply。 可以输入成本价和持有份额,估算收益和收益率,编码后通过英文逗号【,】拼接成本价和份额即可。 `隐蔽模式默认开启,开启无着色,并且拼音显示,可以自行关闭。` 基金示例:`006250,3.66,1000;110013;` 股票示例:`sh000001;sh000300;sh600111,55.7,500;hk00700;usAAPL;usBILI` 加密货币示例:`BTC-USD,DOGE-USD` **股票编码有前缀**,示例代码:(sh000001;sh600519;sz000001;hk00700;usAAPL)`股票编码前缀小写`,建议用雪球看网页找 基金编码zfb上面有,或者天天基金看 double shift,连按两下shift,输入leeks,找到toolWindow,打开以后默认在下方,自行调节位置 每次修改,添加基金,股票,只需点击apply自动生效。 基金更新频率一分钟一次,股票10s一次 ### 加密货币的选项 加密货币行情采用雅虎的接口,必须使用代理才能获取数据,编码格式如下: 例:`比特币`货币的编码为`BTC-USD`,【加密货币代码-USD】 ### 分时图和K线图 基金只有估值分时图,股票提供分时图,日周月K线图,非图表,不能进行操作,不会自动刷新。 在表格中双击行即可打开分时图,右键弹出菜单选择K线图。 ### 代理 插件不会使用系统或者IDEA的代理,请前往插件设置页设置代理。格式为`127.0.0.1:1080` 这样子。K线图那些不会走代理 ### 设置更新的时间区间 使用Cron表达式设置更新区间,在线cron工具 https://www.bejson.com/othertools/cron/ 关于设置Cron表达式组合示例: 【\*/10 30-59 9 ? * 2-6;\*/10 0-30 11 ? * 2-6;\*/10 * 10,13,14 ? * 2-6】表示周一至周五,9:30-11:30 ,13:00-15:00,每隔10秒刷新一次; 多个表达式不要出现时间交集,因为交集内会增加运行次数。 ## 预览 ![da](./img1.png) ![dd](./img2.png) ## 常见问题 * 异常日志中出现【java.lang.NoClassDefFoundError: com/github/promeg/pinyinhelper/Pinyin】 解决:请直接选择【编译后的zip文件】进行安装,不要解压zip文件。 * 股票数据内容显示都是符号【-】 解决:确保填写的股票数据格式不正确,有小写前缀。示例(sh000001;sh600519;sz000001;hk00700;usAAPL) ## change - v1.1 增加了股票的tab,采用腾讯的行情接口,股票轮询间隔10s - v1.2 支持了港股和美股 示例代码:(sh000001,sh600519,sz000001,hk00700,usAAPL)代码一般可以在各网页端看得到 - v1.3 插件由小韭菜更名为Leeks 支持了IDEA 2020.1.3,兼容到`IDEA 2017.3`,修复macOS 行高问题 - v1.4.1 增加了隐蔽模式(全拼音和无色涨跌幅 - v1.4.2 支持到IDEA 2020.2.* - v1.5.1 增加了股票界面按表头排序,设置界面及时生效,不用点击refresh按钮啦 merge from [dengerYang](https://github.com/dengerYang) - v1.5.2 增加了股票的最高价最低价 . merge from [dengerYang](https://github.com/dengerYang) - v1.6.1 样式和bug fix,(样式调整,增加当日净值merge from [dengerYang](https://github.com/dengerYang) ) - v1.6.2 适配IDEA 2020.3 - v1.6.3 修复颜色错乱问题 , 日志调整 merge from [qwn3213](https://github.com/qwn3213) - v1.7.1 增加日志开关 ,设置界面样式调整 merge from [dengerYang](https://github.com/dengerYang) ,增加新浪股票接口备选 merge from [JulianXG](https://github.com/JulianXG) - v1.8.1 增加了虚拟货币的界面 - v1.8.3 增加了分时图和K线图 merge from [dengerYang](https://github.com/dengerYang) - V1.8.4 bug fix from [DAIE](https://github.com/DA1Y1) - V1.8.5 保存表头顺序 from [DAIE](https://github.com/DA1Y1) - V1.9.1 图表界面优化 from [dengerYang](https://github.com/dengerYang) - V1.9.3 加入代理设置 - V1.9.5 虚拟币行情接口切换为雅虎,必须使用代理才能获取数据 - V1.9.8 支持基金和股票成本价,持仓,收益率,收益显示 from [chenheng](https://github.com/RoaringFlame) - V1.9.9 修复成本价过低时收益金额不正确的问题;from [神驱一梦](https://github.com/BorrisWQBi) - v2.0.1 支持自定义更新的时间段 from [dengerYang](https://github.com/dengerYang) - v2.0.2 兼容成本为负的情况 from [bu6030](https://github.com/bu6030)
0
MyCollab/mycollab
An open source, free, high performance, stable and secure Java Application Business Platform of Project Management and Document
agile collaboration guava java kanban kotlin microservices mybatis mybatis3 mysql mysql-server onpremises opensource project-management quartz-scheduler rest-api spring-boot springframework vaadin
# Free, open source Project Management software [![License](http://img.shields.io/badge/License-AGPLv3-orange.svg)](https://www.gnu.org/licenses/agpl-3.0.en.html) [![Project Stats](https://www.openhub.net/p/mycollab/widgets/project_thin_badge.gif)](https://www.openhub.net/p/mycollab) [![Build](https://travis-ci.org/MyCollab/mycollab.svg)](https://travis-ci.org/MyCollab/mycollab) [![Version](https://img.shields.io/badge/Version-7.0.3-brightgreen.svg)](https://docs.mycollab.com/) [![Github](https://img.shields.io/github/downloads/MyCollab/mycollab/total.svg)](https://github.com/MyCollab/mycollab/releases) ## Introduction MyCollab is the free and open source project management software. Intuitive UI, rich features, high performance and stable are the advantages compare with various popular tools in the market such as Redmine, Bugzilla, Mantis etc. This open source is included into a trusted commercial product that is deployed on hundreds of companies' servers. <table> <tr> <td align="center"> <a href="https://c2.staticflickr.com/8/7836/33297801958_8c403afca8_o.png" target="_blank" title="Project Dashboard"> <img src="https://c2.staticflickr.com/8/7836/33297801958_c3958e94ba_n.jpg" alt="Project Dashboard"> </a> <br /> <em>Project Dashboard</em> </td> <td align ="center"> <a href="https://c2.staticflickr.com/8/7918/47173080821_3352d05e2b_o.png" target="_blank" title="Ticket Dashboard"> <img src="https://c2.staticflickr.com/8/7918/47173080821_f6c092822e_n.jpg" alt="Ticket Dashboard"> </a> <br /> <em>Ticket Dashboard</em> </td> <td align="center"> <a href="https://c2.staticflickr.com/8/7868/46259674665_52e5d9ec03_o.png" target="_blank" title="Kanban Board"> <img src="https://c2.staticflickr.com/8/7868/46259674665_c80a0c15a7_n.jpg" alt="Kanban Board"> </a> <br /> <em>Kanban Board</em> </td> </tr> <tr> <td align="center"> <a href="https://c2.staticflickr.com/8/7874/46259716315_bd4269858d_o.png" target="_blank" title="Task View"> <img src="https://c2.staticflickr.com/8/7874/46259716315_44047af85e_n.jpg" alt="Task View"> </a> <br /> <em>Task View</em> </td> <td align="center"> <a href="https://c2.staticflickr.com/8/7896/47173858441_f2395a1b7d_o.png" target="_blank" title="Members"> <img src="https://c2.staticflickr.com/8/7896/47173858441_3b4c77990f_n.jpg" alt="Members"> </a> <br /> <em>Members</em> </td> <td align="center"> <a href="https://c2.staticflickr.com/8/7862/40209055153_0a16241b1b_o.png" target="_blank" title="Settings"> <img src="https://c2.staticflickr.com/8/7862/40209055153_54a427e593_n.jpg" alt="Settings"> </a> <br /> <em>Settings</em> </td> </tr> </table> New features, enhancements, and updates appear on a regular basis. Pull requests and bug reports are always welcome! Visit our website https://www.mycollab.com/ to get a free trial of the premium service. ## Features MyCollab provides the rich set features of Project Management, Customer Management module and online collaboration methods. * Project Management * Activity stream and audit logging * Kanban board * Roadmap view * Issues Management * Tasks and dependencies management * Milestones * Time tracking (for premium users only) * Invoice management (for premium users only) * Risk Management (For premium users only) * People and Permission management * Reporting We use MyCollab in our daily jobs to manage our customers information, projects. It is deployed in the production environment of our premium users, and we supported several organizations to deploy this community version on their servers as well. We take care of our open source edition similar than we do for our premium product, in fact both of them use the same code base structure. So feel free to use it in your business jobs! ## System Requirements MyCollab requires a running Java Runtime Environment (8 or greater), Java command should be presented in PATH environment and MySQL (InnoDB support recommended). * Java Runtime Environment 8+: MyCollab could run when any JVM compatible platform such as Oracle JRE or OpenJDK. * MySQL database, version 5.6+: the higher version is recommended * 1 GB RAM minimum, 2 GB RAM recommended ## Installation 1. Download MyCollab binary - https://www.mycollab.com/self-hosted/ 2. Follow installation guideline at https://docs.mycollab.com/getting-started/installation/ If you need to understand the more MyCollab advanced configuration settings, please visit the link https://docs.mycollab.com/getting-started/configuration/. You will finish reading and understanding in a matter of minutes. If you want to customize MyCollab, following links are useful to you: * Setup MyCollab projects with IntelliJ https://docs.mycollab.com/development/setup-mycollab-projects-with-intellij-ide/ * How to customize MyCollab https://docs.mycollab.com/development/customize-mycollab/ ## Support Contact the MyCollab team at: * Our growing FAQ https://docs.mycollab.com/faq/ * Our help page [http://support.mycollab.com/](https://mycollab.userecho.com/en/) * Our web form [https://www.mycollab.com/contact/](https://www.mycollab.com/contact/) ## License & Author * MyCollab community is licensed with Affero GPL v3. For license terms, see https://www.gnu.org/licenses/agpl-3.0.en.html * You can try MyCollab on-demand edition on site https://www.mycollab.com
0
mattprecious/telescope
A simple tool to allow easy bug report capturing within your app.
null
Telescope ====== A simple tool to allow easy bug report capturing within your app. ![](images/sample.gif) Usage ----- Place a `TelescopeLayout` at the root of your hierarchy. Add a callback to the view group with `setLens(Lens)`. Telescope provides two default implementations: * `EmailLens`: Compose an email with the provided addresses and subject (optional). * `EmailDeviceInfoLens`: Enhances `EmailLens` by pre-populating the email body with app and device info Screenshots will be stored on the external storage in your app's private directory. To have Telescope clean up the screenshots folder, call `TelescopeLayout.cleanUp(Context)`. Ideally, this would be called in the `onDestroy()` method of your `Activity` or `Fragment`. If you are using the Gradle-based build system, you can wrap this view group around your activity layouts only in the debug builds. See the [u2020 project][2] for a more advanced example. Permissions ----------- Pre-KitKat, `WRITE_EXTERNAL_STORAGE` is required for saving screenshots. Screenshots can be disabled using the configuration options below. Configuration ------------- The view group can be configured as follows: * Set the number of fingers to trigger with `app:telescope_pointerCount` / `setPointerCount(int)` * Set the progress color with `app:telescope_progressColor` / `setProgressColor(int)` * Change the screenshot method with `app:telescope_screenshotMode` / `setScreenshotMode(ScreenshotMode)` * Screenshot children only with `app:telescope_screenshotChildrenOnly` / `setScreenshotChildrenOnly(boolean)` * Set the screenshot target with`setScreenshotTarget(View)` * Disable vibration with `app:telescope_vibrate` / `setVibrate(boolean)` Download -------- Gradle: ```groovy compile 'com.mattprecious.telescope:telescope:2.3.0' ``` or Maven: ```xml <dependency> <groupId>com.mattprecious.telescope</groupId> <artifactId>telescope</artifactId> <version>2.3.0</version> <type>apklib</type> </dependency> ``` License -------- Copyright 2014 Matthew Precious Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. [1]: http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.mattprecious.telescope&a=telescope&v=LATEST [2]: https://github.com/jakewharton/u2020
0
ZHENFENG13/ssm-demo
:banana:Spring+SpringMVC+Mybatis+easyUI实现简单的后台管理系统
13 dubbo dubbo-admin dubbo-demo dubbo-monitor dubbox easyui java kindeditor maven mybatis redis spring spring-mvc springboot springframework springmvc ssm ssm-demo ueditor
## Quick Start #### 联系作者 十三的java学习交流QQ群:```881582471```,```658365129(已满)``` #### 宣传 十三近期于CSDN上传了一份自己制作的达人课课程,感兴趣的朋友可以看一下: * [x] [GitChat达人课-SSM搭建精美实用的管理系统](https://gitbook.cn/gitchat/column/5b4dae389bcda53d07056bc9) ![gitchat](https://raw.githubusercontent.com/ZHENFENG13/resource/master/images/2018-07-19/gitchat.png) ##### 项目简介 **ssm系列**<br /> * [x] **ssm-demo:Spring+SpringMVC+Mybatis+easyUI整合** * [x] [perfect-ssm](https://github.com/ZHENFENG13/perfect-ssm):RESTful API+redis缓存 * [x] [ssm-cluster](https://github.com/ZHENFENG13/ssm-cluster):前后端分离+集群部署(springboot+vue) * [x] [ssm-dubbo](https://github.com/ZHENFENG13/ssm-dubbo):dubbo服务化 * [ ] [ssm-micro-service](https://github.com/ZHENFENG13/ssm-micro-service):springcloud技术栈实现微服务化 **特别提示:数据库sql脚本文件在resources/db目录下!** 本项目为ssm系列的第一篇,**Spring+SpringMVC+mybatis+easyUI的一个简单demo**,实现了后台管理系统的基本功能,后续会逐渐优化改造,Wiki文档已经整理,可以到[Wiki Page](https://github.com/ZHENFENG13/ssm-demo/wiki)查看,关于项目的简介及技术选型,也已经单独整理了一篇的文章--[项目简述及技术选型介绍](http://www.cnblogs.com/han-1034683568/p/6440090.html)。<br /> #### 项目地址  <a href='http://ssm-demo.13blog.site'>ssm-maven</a> <br />  登录名:admin <br />  密码:123456 <br /> [![Build Status](https://travis-ci.org/ZHENFENG13/ssm-demo.svg?branch=master)](https://travis-ci.org/ZHENFENG13/ssm-demo) ![Version 1.0.0](https://img.shields.io/badge/version-1.0.0-yellow.svg) [![License](https://img.shields.io/badge/license-apache-blue.svg)](https://github.com/ZHENFENG13/ssm-demo/blob/master/LICENSE) #### 架构图 ###### 架构简图 ![架构简图](https://raw.githubusercontent.com/ZHENFENG13/resource/master/images/2017-08-05/ssm%E6%9E%B6%E6%9E%84%E5%9B%BE-%E7%AE%80%E7%89%88.png) ###### 架构详图 ![1.0](https://raw.githubusercontent.com/ZHENFENG13/resource/master/images/2017-08-05/ssm%E6%9E%B6%E6%9E%84%E5%9B%BE-1.0-%E8%AF%A6%E7%89%88.png) 想要进一步了解可以到[架构演进详解](https://github.com/ZHENFENG13/ssm-demo/wiki/%E6%9E%B6%E6%9E%84%E6%BC%94%E8%BF%9B%E8%AF%A6%E8%A7%A3)wiki页面查看。 #### 捐赠 开源不易,熬夜辛苦,如果您觉得我的项目对您有帮助,并且您愿意给予我一点小小的支持,这样可以维持项目持续地发展,非常感谢! 网站的持续运行需要各项基础设施的搭建,而服务期的续费和维护及各种配套服务的购买也需要一定的费用,希望朋友们给予一点支持,你们的支持是激励我继续下去的动力,谢谢你们!ヾ(≧▽≦*)o | 支付宝 | 微信支付 | | :------: | :------: | | <img width="200" src="https://raw.githubusercontent.com/ZHENFENG13/resource/master/images/2018-02-27/zhifubao1.jpg"> | <img width="200" src="https://raw.githubusercontent.com/ZHENFENG13/resource/master/images/2018-02-27/wxpay.jpg"> | 下面列表为最近十条捐赠信息,更多记录请查看[捐赠列表](https://github.com/ZHENFENG13/ssm-demo/wiki/%E6%8D%90%E8%B5%A0%E5%88%97%E8%A1%A8),如果你已捐赠但是捐赠列表里没有你的信息可以联系十三,十三会及时修改,再次感谢! <table> <tr> <td>捐赠人</td> <td>金额(RMB)</td> <td>渠道</td> <td width="120">时间</td> <td width="200">留言</td> </tr> <tr> <td>*gi</td> <td>10.00元</td> <td>微信支付</td> <td>2018-07-29</td> <td></td> </tr> <tr> <td>*q</td> <td>1.20元</td> <td>微信支付</td> <td>2018-07-28</td> <td></td> </tr> <tr> <td>*朝晖</td> <td>1.88元</td> <td>支付宝</td> <td>2018-07-26</td> <td>一点点支持</td> </tr> <tr> <td>N*g</td> <td>3.00元</td> <td>微信</td> <td>2018-07-21</td> <td></td> </tr> <tr> <td>*振明</td> <td>0.50元</td> <td>支付宝</td> <td>2018-07-17</td> <td></td> </tr> <tr> <td>*永敏</td> <td>5.00元</td> <td>支付宝</td> <td>2018-07-11</td> <td>请你喝瓶冰可乐!</td> </tr> <tr> <td>*鹭伟</td> <td>2.00元</td> <td>支付宝</td> <td>2018-07-08</td> <td>期待持续更新</td> </tr> <tr> <td>X*Y</td> <td>1.00元</td> <td>微信</td> <td>2018-07-07</td> <td></td> </tr> <tr> <td>*强</td> <td>50.00元</td> <td>支付宝</td> <td>2018-07-03</td> <td>辛苦了,希望能参与学习微服务方面的架构知识</td> </tr> <tr> <td>*兵</td> <td>5.00元</td> <td>支付宝</td> <td>2018-06-20</td> <td>收款</td> </tr> </table> ## Documents * [x] [GitChat达人课-SSM搭建精美实用的管理系统](https://gitbook.cn/gitchat/column/5b4dae389bcda53d07056bc9) **基础篇** * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(一)项目简述及技术选型介绍](http://www.cnblogs.com/han-1034683568/p/6440090.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(二)牛刀小试](http://www.cnblogs.com/han-1034683568/p/6440157.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(三)搭建步骤](http://www.cnblogs.com/han-1034683568/p/6476827.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(四)代码简化](http://www.cnblogs.com/han-1034683568/p/6476852.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(五)讲一下maven](http://www.cnblogs.com/han-1034683568/p/6486117.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(六)maven整合SSM](http://www.cnblogs.com/han-1034683568/p/6507186.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(七)JDBC url的连接参数](http://www.cnblogs.com/han-1034683568/p/6512215.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(八)mysql中文查询bug修复](http://www.cnblogs.com/han-1034683568/p/6517344.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(九)版本控制](http://www.cnblogs.com/han-1034683568/p/6540079.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(十)SVN搭建](http://www.cnblogs.com/han-1034683568/p/6545751.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(十一)SVN服务器进阶](http://www.cnblogs.com/han-1034683568/p/6551498.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合基础篇(十二)阶段总结](http://www.cnblogs.com/han-1034683568/p/6562092.html) **优化篇** * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(一)System.out.print与Log](http://www.cnblogs.com/han-1034683568/p/6637914.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(二)Log4j讲解与整合](http://www.cnblogs.com/han-1034683568/p/6641808.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(三)代码测试](http://www.cnblogs.com/han-1034683568/p/6642306.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(四)单元测试实例](http://www.cnblogs.com/han-1034683568/p/6649077.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(五)结合MockMvc进行服务端的单元测试](http://www.cnblogs.com/han-1034683568/p/6653620.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(六)easyUI与富文本编辑器UEditor整合](http://www.cnblogs.com/han-1034683568/p/6664660.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(七)图片上传功能](http://www.cnblogs.com/han-1034683568/p/6692150.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(八)代码优化整理小记及个人吐槽](http://www.cnblogs.com/han-1034683568/p/6706158.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(九)数据层优化-jdbc连接池简述、druid简介](http://www.cnblogs.com/han-1034683568/p/6719298.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(十)数据层优化-整合druid](http://www.cnblogs.com/han-1034683568/p/6725191.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(十一)数据层优化-druid监控及慢sql记录](http://www.cnblogs.com/han-1034683568/p/6730869.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(十二)数据层优化-explain关键字及慢sql优化](http://www.cnblogs.com/han-1034683568/p/6758578.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(十三)数据层优化-表规范、索引优化](http://www.cnblogs.com/han-1034683568/p/6768807.html) * [x] [Spring+SpringMVC+MyBatis+easyUI整合优化篇(十四)谈谈写博客的原因和项目优化](http://www.cnblogs.com/han-1034683568/p/6782019.html) ## Introduce ###### 功能简介 本项目实现了一个简单的后台管理系统,可以作为ssm项目学习的脚手架,主要包含以下功能: <br /> - 管理员的注册功能,登录功能,删除功能。 <br /> - 文章的增删改查功能,图片的增删改查功能。 <br /> - 图片上传功能。 <br /> - 多文本编辑器UEditor整合。 <br /> ###### Framework - Spring <br /> - SpringMVC <br /> - MyBatis <br /> - 后端界面则使用easyui进行搭建 <br /> ## Logs 2017-02-23 初始化,接下来是bug修复,下一步打算将项目改为maven工程项目。 <br /> 2017-02-24 新增ssm-login项目,最基础的ssm项目搭建。 <br /> 2017-03-02 新增ssm-maven项目,Spring+SpringMVC+MyBatis+Maven+easyUI整合。 <br /> 2017-03-07 中文搜索bug修复。<br /> 2017-03-14 网友提醒:书架管理-查看书籍,JS报错修复。<br/> 2017-03-29 Log模块。<br/> 2017-03-31 单元测试模块。<br/> 2017-04-10 新增文章管理,easyUI整合UEditor。<br/> 2017-04-11 新增图片上传功能,页面布局调整及部分bug修复。<br/> 2017-04-13 项目代码整理。<br/> 2017-04-17 整合druid,配置文件整理。<br/> 2017-04-18 开启druid各项监控功能。<br/> 2017-08-05 架构及目录结构整理,Wiki文档编辑。<br/>
0
opennetworkinglab/onos
Open Network Operating System
null
# ONOS : Open Network Operating System ## What is ONOS? ONOS is the only SDN controller platform that supports the transition from legacy “brown field” networks to SDN “green field” networks. This enables exciting new capabilities, and disruptive deployment and operational cost points for network operators. ## Top-Level Features * High availability through clustering and distributed state management. * Scalability through clustering and sharding of network device control. * Performance that is good for a first release, and which has an architecture that will continue to support improvements. * Northbound abstractions for a global network view, network graph, and application intents. * Pluggable southbound for support of OpenFlow, P4Runtime, and new or legacy protocols. * Graphical user interface to view multi-layer topologies and inspect elements of the topology. * REST API for access to Northbound abstractions as well as CLI commands. * CLI for debugging. * Support for both proactive and reactive flow setup. * SDN-IP application to support interworking with traditional IP networks controlled by distributed routing protocols such as BGP. * IP-Optical use case demonstration. ## Getting started ### Dependencies The following packages are required: * git * zip * curl * unzip * python3 (needed by Bazel) ### Build ONOS from source ONOS is built with [Bazel](https://bazel.build/), an open-source build tool developed by Google. We suggest downloading and installing Bazel using the [official instructions](https://docs.bazel.build/versions/master/install.html). The minimum required Bazel version is 1.0.0 1. Clone the code from the ONOS Gerrit repository ```bash $ git clone https://gerrit.onosproject.org/onos ``` 2. Optionally, you can add the ONOS developer environment to your bash profile. This will provide access to a number of handy commands to run, test and debug ONOS. No need to do this step again if you had done this before: ```bash $ cd onos $ cat << EOF >> ~/.bash_profile export ONOS_ROOT="`pwd`" source $ONOS_ROOT/tools/dev/bash_profile EOF $ . ~/.bash_profile ``` 3. Build ONOS with Bazel ```bash $ cd $ONOS_ROOT $ bazel build onos ``` ### Start ONOS on local machine To run ONOS locally on the development machine, simply run the following command: ```bash $ bazel run onos-local [-- [clean] [debug]] ``` Or simpler one, if you have added the ONOS developer environment to your bash profile: ```bash $ ok [clean] [debug] ``` The above command will create a local installation from the ONOS tarbal (re-building if necessary) and will start the ONOS server in the background. In the foreground, it will display a continuous view of the ONOS (Apache Karaf) log file. Options following the double-dash (–) are passed through to the ONOS Apache Karaf and can be omitted. Here, the `clean` option forces a clean installation, removing any state from previous executions. The `debug` option means that the default debug port 5005 will be available for attaching a remote debugger. ### Interacting with ONOS To access ONOS UI, use a browser to open: [http://localhost:8181/onos/ui](http://localhost:8181/onos/ui) Or simpler, use the `onos-gui localhost` command. The default username and password is `onos`/`rocks`. To attach to the ONOS CLI console, run: ```bash $ onos localhost ``` ### Unit Tests To run ONOS unit tests, including code Checkstyle validation, run the following command: ```bash $ bazel query 'tests(//...)' | xargs bazel test ``` Or better yet, to run code Checkstyle and all unit tests use the following convenience alias: ```bash $ ot ``` ## Contributing ONOS code is hosted and maintained using [Gerrit](https://gerrit.onosproject.org/). Code on GitHub is only a mirror. The ONOS project does **NOT** accept code through pull requests on GitHub. To contribute to ONOS, please refer to [Sample Gerrit Workflow](https://wiki.onosproject.org/display/ONOS/Sample+Gerrit+Workflow). It should include most of the things you'll need to get your contribution started! ## More information For more information, please check out our wiki page or mailing lists: * [Wiki](https://wiki.onosproject.org/) * [Google group](https://groups.google.com/a/onosproject.org/forum/#!forum/onos-dev) * [Slack](https://onosproject.slack.com) ## License ONOS (Open Network Operating System) is published under [Apache License 2.0](https://github.com/opennetworkinglab/onos/blob/master/LICENSE.txt) ## Acknowledgements YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/), [YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/) and [YourKit YouMonitor](https://www.yourkit.com/youmonitor/). ![YourKit](https://www.yourkit.com/images/yklogo.png)
0
scribejava/scribejava
Simple OAuth library for Java
java oauth oauth2 scribe scribe-java scribejava scribejava-httpclient
# Welcome to the home of ScribeJava, the simple OAuth client Java lib! [![Donate](https://www.paypalobjects.com/en_US/RU/i/btn/btn_donateCC_LG.gif)](https://github.com/scribejava/scribejava/blob/master/donate.md) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.scribejava/scribejava/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.scribejava/scribejava) # Why use ScribeJava? ### Dead Simple Who said OAuth/OAuth2 was difficult? Configuring ScribeJava is __so easy your grandma can do it__! check it out: ```java OAuthService service = new ServiceBuilder(YOUR_CLIENT_ID) .apiSecret(YOUR_CLIENT_SECRET) .build(LinkedInApi20.instance()); ``` That **single line** (added newlines for readability) is the only thing you need to configure ScribeJava with LinkedIn's OAuth API for example. Working executable examples are [here](https://github.com/scribejava/scribejava/tree/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples) Common usage: [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20Example.java) ### Threadsafe Hit ScribeJava as hard and with many threads as you like. ### Java 7 compatible That's it. You can use it in old environments and in android apps. note: To compile from sources you will need Java 9 or newer ### Async and other HTTP clients ScribeJava support out-of-box several HTTP clients: * ning async http client 1.9.x (maven module scribejava-httpclient-ning) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncNingExample.java) * Async Http Client asynchttpclient 2.x (maven module scribejava-httpclient-ahc) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20AsyncAHCExample.java) * OkHttp (maven module scribejava-httpclient-okhttp) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GitHubAsyncOkHttpExample.java) * Apache HttpComponents HttpClient (maven module scribejava-httpclient-apache) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncApacheExample.java) * Armeria HTTP client (required >= java 8) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20ArmeriaExample.java) * any externally created HTTP client [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/VkontakteExternalHttpExample.java) just add corresponding maven modules to your pom ### Supports many flows and additional features * [RFC 6749](https://tools.ietf.org/html/rfc6749) The OAuth 2.0 Authorization Framework, [Authorization Code Authorization Grant](https://tools.ietf.org/html/rfc6749#section-4.1), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20Example.java) * [RFC 6749](https://tools.ietf.org/html/rfc6749) The OAuth 2.0 Authorization Framework, [Resource Owner Password Credentials Authorization Grant](https://tools.ietf.org/html/rfc6749#section-4.3) * [RFC 6749](https://tools.ietf.org/html/rfc6749) The OAuth 2.0 Authorization Framework, [Client Credentials Authorization Grant](https://tools.ietf.org/html/rfc6749#section-4.4), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/VkontakteClientCredentialsGrantExample.java) * [RFC 6749](https://tools.ietf.org/html/rfc6749) The OAuth 2.0 Authorization Framework, [Refreshing an Access Token](https://tools.ietf.org/html/rfc6749#section-6), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20Example.java#L77) * [RFC 6750](https://tools.ietf.org/html/rfc6750) The OAuth 2.0 Authorization Framework: Bearer Token Usage * [RFC 7636](https://tools.ietf.org/html/rfc7636) Proof Key for Code Exchange by OAuth Public Clients (PKCE), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20WithPKCEExample.java) * [RFC 7009](https://tools.ietf.org/html/rfc7009) OAuth 2.0 Token Revocation, [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20RevokeExample.java) * [RFC 8628](https://tools.ietf.org/html/rfc8628) OAuth 2.0 Device Authorization Grant [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20DeviceAuthorizationGrantExample.java) * [RFC 5849](https://tools.ietf.org/html/rfc5849) The OAuth 1.0 Protocol, [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TwitterExample.java) ### Supports all (50+) major 1.0a and 2.0 OAuth APIs out-of-the-box * Asana (https://asana.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AsanaExample.java) * Automatic (https://www.automatic.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AutomaticExample.java) * AWeber (http://www.aweber.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AWeberExample.java) * Box (https://www.box.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Box20Example.java) * Dataporten (https://docs.dataporten.no/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DataportenExample.java) * Digg (http://digg.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiggExample.java) * Discord (https://discordapp.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiscordExample.java) * Доктор на работе (https://www.doktornarabote.ru/) * Dropbox (https://www.dropbox.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DropboxExample.java) * Etsy (https://www.etsy.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java) * Facebook (https://www.facebook.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookExample.java), [example with Async Apache HTTP client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncApacheExample.java), [example with Async Ning HTTP client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncNingExample.java) * Fitbit (https://www.fitbit.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FitbitApi20Example.java) * Flickr (https://www.flickr.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FlickrExample.java) * Foursquare (https://foursquare.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Foursquare2Example.java), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FoursquareExample.java) * Frappe (https://github.com/frappe/frappe) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FrappeExample.java) * Freelancer (https://www.freelancer.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FreelancerExample.java) * Genius (http://genius.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GeniusExample.java) * GitHub (https://github.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GitHubExample.java), [example with OkHttp HTTP client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/GitHubAsyncOkHttpExample.java) * Google (https://www.google.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20Example.java), [example with Async Http Client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20AsyncAHCExample.java), [example Revoke](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20RevokeExample.java), [example with PKCEE](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Google20WithPKCEExample.java) * HeadHunter ХэдХантер (https://hh.ru/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/HHExample.java) * HiOrg-Server (https://www.hiorg-server.de/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/HiOrgServerExample.java) * Imgur (http://imgur.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/ImgurExample.java) * Instagram (https://www.instagram.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/InstagramExample.java) * Kaixin 开心网 (http://www.kaixin001.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Kaixin20Example.java) * Kakao (https://kakao.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/KakaoExample.java) * Keycloak (https://www.keycloak.org/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/KeycloakExample.java) * LinkedIn (https://www.linkedin.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/LinkedIn20Example.java), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/LinkedInExample.java), [example with custom scopes](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/LinkedInExampleWithScopes.java) * Mail.Ru (https://mail.ru/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MailruExample.java), [example with Async Ning HTTP Client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MailruAsyncExample.java) * MediaWiki (https://www.mediawiki.org/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MediaWikiExample.java) * Meetup (https://www.meetup.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Meetup20Example.java), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MeetupExample.java) * Microsoft Azure Active Directory (Azure AD) (http://azure.microsoft.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MicrosoftAzureActiveDirectoryExample.java) * Microsoft Azure Active Directory (Azure AD) 2.0 (http://azure.microsoft.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MicrosoftAzureActiveDirectory20Example.java) * Microsoft Live (https://login.live.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/LiveExample.java) * Misfit (http://misfit.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/MisfitExample.java) * NAVER (http://www.naver.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/NaverExample.java) * Odnoklassniki Одноклассники (http://ok.ru/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/OdnoklassnikiExample.java) * Polar (https://www.polar.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/PolarAPIExample.java) * Pinterest (https://www.pinterest.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/PinterestExample.java) * 500px (https://500px.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Px500Example.java) * Renren (http://renren.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/RenrenExample.java) * Salesforce (https://www.salesforce.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SalesforceExample.java), [example with Async Ning HTTP Client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SalesforceNingAsyncExample.java) * Sina (http://www.sina.com.cn/ http://weibo.com/login.php) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SinaWeibo2Example.java), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SinaWeiboExample.java) * Skyrock (http://skyrock.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SkyrockExample.java) * Slack (https://slack.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/SlackExample.java) * StackExchange (http://stackexchange.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/StackExchangeExample.java) * The Things Network (v1-staging and v2-preview) (https://www.thethingsnetwork.org/) [example v1](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TheThingsNetworkV1StagingExample.java), [example v2 preview](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TheThingsNetworkV2PreviewExample.java) * Trello (https://trello.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TrelloExample.java) * Tumblr (https://www.tumblr.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TumblrExample.java) * TUT.BY (http://www.tut.by/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TutByExample.java) * Twitter (https://twitter.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TwitterExample.java) * uCoz (https://www.ucoz.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/UcozExample.java) * Viadeo (http://viadeo.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/ViadeoExample.java) * VK ВКонтакте (http://vk.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/VkontakteExample.java), [example Client Credentials Grant](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/VkontakteClientCredentialsGrantExample.java), [example with External HTTP Client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/VkontakteExternalHttpExample.java) * Wunderlist (https://www.wunderlist.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/WunderlistExample.java) * Xero (https://www.xero.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/XeroExample.java) * XING (https://www.xing.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/XingExample.java) * Yahoo (https://www.yahoo.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/Yahoo20Example.java), [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/YahooExample.java) * check the [examples folder](https://github.com/scribejava/scribejava/tree/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples) ### Small and modular ScribeJava's code is small (about 1k LOC) and simple to understand. No smart-ass or "clever" hacks here. You can use only 'core' or 'with apis' maven modules ### Android-Ready Works out of the box with android(TM) applications. ### Stable & bulletproof Good test coverage to keep you safe from harm. When something bad actually happens, ScribeJava's meaningful error messages will tell you exactly what went wrong, when and where. ### Pull it from Maven Central! You can pull ScribeJava from the central maven repository, just add these to your __pom.xml__ file: ```xml <dependency> <groupId>com.github.scribejava</groupId> <artifactId>scribejava-apis</artifactId> <version>8.3.3</version> </dependency> ``` And in case you need just core classes (that's it, without any external API (FB, VK, GitHub, Google etc) specific code), you could pull just 'core' artifact. ```xml <dependency> <groupId>com.github.scribejava</groupId> <artifactId>scribejava-core</artifactId> <version>8.3.3</version> </dependency> ``` ## How can I help ScribeJava First of all, Pull Requests are welcome, the second option is [donations](https://github.com/scribejava/scribejava/blob/master/donate.md). ## When will ScribeJava support XXX (new RFC, custom functionality, new API etc.) When you will send the pull request. That's the way for a majority of changes here. Or you can ask someone to make the paid job for you. In some cases, when I'm interested in changes (technically or financially), I can implement the request myself. ## Paid consulting If you or your business depends on the Scribejava and you need any specific improvement or new feature not currently implemented in the Scribejava, consider contacting me about a paid job. ## Getting started in less than 2 minutes Check the [Getting Started](https://github.com/scribejava/scribejava/wiki/getting-started) page and start rocking! Please Read the [FAQ](https://github.com/scribejava/scribejava/wiki/faq) before creating an issue :) Some useful info and answers you can find on the [wiki](https://github.com/scribejava/scribejava/wiki) Also, remember to read the [fantastic tutorial](http://akoskm.github.io/2015/07/31/twitter-sign-in-for-web-apps.html) that [@akoskm](https://twitter.com/akoskm) wrote to easily integrate a server side app with an API (twitter in this case). ## Questions? Feel free to drop us an email or create issue right here on github.com ## Forks If you have a useful fork that should be listed there please contact us
0
KOHGYLW/kiftd-source
kiftd: An open source sky driver or cloud driver server application! 欢迎访问kiftd源代码资源库!您可以在此获取kiftd源代码,并自由地进行下载和查看。该源代码仓库同时也是开发仓库,因此其版本可能比发行版靠前(但绝不会滞后)。
cloud-driver open-source-cloud-driver sky-driver
## 欢迎访问kiftd源代码资源库! ### Welcome to visit source of kiftd! _当前版本:v1.2.0-SNAPSHOT_ ### 简介 _kiftd——一款便捷、开源、功能完善的个人&团队&小型团队网盘服务器系统。_ ------ [![kiftd-mainpage.png](https://i.postimg.cc/gjyQRFVZ/kiftd-mainpage.png)](https://postimg.cc/dZ15PfSs) ------ kiftd能够帮助您快速搭建起一个面向家庭、团队或组织的网盘系统,它操作简单、高效且功能多样。这里是kiftd的源代码资源库,您可以在这里获得kiftd的源代码,并对其进行下载、阅读与重构。 注:如果您仅仅希望得到一份拿来即用的软件,kiftd也提供了一个完整的、解压即用的编译版。您可以根据其说明在3分钟内快速安装并开始使用。如果您需要该版本,请转到以下位置进行浏览和下载: [kiftd-官方主页](https://kohgylw.gitee.io) ### 构建说明 _下列条目为kiftd开发环境的基本信息,如需对源代码进行查看及编译,推荐使用所列配置。_ + JDK版本:1.8.0 + 项目管理框架:Maven(m2e 1.8.0 for Eclipse),Archetype:mavem-archetype-quickstart 1.1。 + 编码格式:UTF-8 + 项目资源及配置:Spring Boot+MyBatis+H2 DB,详见pom.xml文档。 ### 快速开始 + 使用Eclipse(javaEE)以项目方式导入本资源文件夹,并设置构建路径中的JDK版本。 + 使用Maven选项更新项目,并确保pom文件中引入的所有外部资源能够正确引入至本地。 + 打开kohgylw.kiftd.mc.MC类,进行测试运行。 + 右键项目,执行Run with选项中的Maven install操作以在target文件夹内编译生成jar程序。 + 将生成的jar程序拷贝到项目主目录下(即与libs等文件夹同级)并开始使用。 _提示:源代码路径下包含了一些程序运行所需的非源代码资源(例如程序图标等),某些集成式开发环境(例如IDEA)在编译过程中可能会自动忽略非源代码资源。您需要设置并保证这些资源也能够被正确打包至最终的jar程序内,否则将会导致编译出的程序无法顺利运行。_ ### 程序基本结构说明 + 源代码资源文件夹:/src/main/java/ + 入口类:kohgylw.kiftd.mc.MC + web界面请求处理包:kohgylw.kiftd.server.controller、kohgylw.kiftd.server.filter + web界面操作逻辑包:kohgylw.kiftd.server.service + 核心功能及文件系统实现包:kohgylw.server.util、kohgylw.kiftd.server.listener、kohgylw.kiftd.server.mapper、kohgylw.kiftd.server.model + 服务器行为控制类:kohgylw.server.ctl.KiftdCtl + 服务器界面相关包:kohgylw.kiftd.ui、kohgylw.kiftd.printer + 独立文件管理模块相关包:kohgylw.kiftd.util.file_system_manager + 第三方工具使用许可证包:kohgylw.kiftd.util.licenses + web页面静态资源文件夹:/webContext/ + mybatis映射表文件夹:/mybatisResource/ + 外部引用资源(编译后生成)文件夹:/libs/ + 引用字体文件夹:/fonts/ + 设置文件(程序第一次运行后生成)文件夹:/conf/ + 日志文件夹:/logs/ + 编译输出文件夹:/target/ + maven配置文件:/pom.xml ### 常见问题&解决方案 + 使用IDEA导入项目后无法以图形界面方式运行 > 在默认情况下,IDEA可能会自动忽略位于项目源代码路径内的所有非源代码文件,从而导致图形界面需要的某些图标文件(例如png文件)无法被识别和打包。如遇此问题,请修改IDEA设置,确保项目源代码路径下的所有文件均会被识别和打包。 + 启动源代码项目时出现“Error creating bean with name org.mybatis.spring.mapper.MapperScannerConfigurer” > 如遇该问题,请尝试将pom.xml文件中引入的`mybatis`资源和`mybatis-spring`资源移除并重新添加`mybatis-spring-boot-starter`资源,从而避免默认整合方式可能导致的Spring Boot框架插件兼容性问题(特别鸣谢:用户 michael)。 ### 使用许可(下载该源代码资源即视为接受以下许可) 当前版本的kiftd使用自带的许可文件进行分发。您应该先阅读该文件(获取方式:前往kiftd发行版主页下载一份kiftd发行版并在其中获得,详见 https://github.com/KOHGYLW/kiftd ),并在同意其中的所有条款后再下载该源代码。其大致内容如下: + 您可以免费获得该源代码的原版拷贝。 + 您可以自由地对该源代码进行分发、重构并运用于任何领域。 + 作者对于使用该源代码造成的任何后果均无需负责。 + 作者对该源代码具有版权。 ### 关于该源代码... 该源代码为目前发布的kiftd解压即用版的原始编译来源,二者保持一致性(有时源码版本可能会略微超前),作者将在今后对其逐步进行整理以便于用户阅读,由此带来的不便敬请谅解。 ### 联系作者? 如有任何需要(例如对该资源有疑问、意见或建议),请发件联系作者: kohgylw@163.com (青阳龙野),随时恭候您的来信! 青阳龙野@kohgylw by 2024年04月06日
0
Meituan-Dianping/Zebra
美团点评集团统一使用的MySQL数据库访问层的中间件。主要提供对业务开发透明、读写分库、分库分表能力,并提供了端到端SQL监控的集成方案。
database-sharding dynamic-datasource mybatis mysql read-write-separation zebra
# Zebra ## Introduction Zebra是一个基于JDBC API协议上开发出的高可用、高性能的数据库访问层解决方案,是美团点评内部使用的数据库访问层中间件。具有以下的功能点: - 配置集中管理,动态刷新 - 支持读写分离、分库分表 - 丰富的监控信息在CAT上展现 - 异步化数据库请求,多数据源支持 ## Core Value - 简化了读写分离、分库分表的开发工作,使得业务方在分库分库、读写分离的情况下,依然可以像操作单个库那样去操作,屏蔽底层实现的复杂性,对业务透明。 提供了从读写分离到分库分表全生命周期的技术支持。 - 完善的监控体系帮助开发掌控数据库请求的整个链路,快速定位问题。 - dao层扩展功能 ## Modules - zebra-client(核心) : 除了监控外,几乎zebra所有核心功能,如读写分离、分库分表、就近路由、流量控制 - zebra-cat-client(可选): 提供端到端的监控,将监控信息上报到[CAT监控平台](https://github.com/dianping/cat) - zebra-dao(可选):对mybatis的轻量级封装,兼容mybatis原有的功能,并额外提供了异步化接口、分页插件、多数据源等功能 - zebra-admin-web:zebra配置管理平台 用于管理zk和保存在zk中的zebra配置 - zebra-sample: zebra客户端使用的demo ## Quick Start - [快速开始](https://github.com/Meituan-Dianping/Zebra/wiki/QuickStart) ## Project Design - [Zebra客户端设计](https://github.com/Meituan-Dianping/Zebra/wiki/Zebra%E6%80%BB%E4%BD%93%E8%AE%BE%E8%AE%A1) ## License - [Apache2.0 License](https://github.com/Meituan-Dianping/Zebra/blob/master/LICENSE) ## Company ![](https://raw.githubusercontent.com/wiki/Meituan-Dianping/Zebra/image/white.jpeg) 接入Zebra的公司欢迎在此[接入公司](https://github.com/Meituan-Dianping/Zebra/issues/18)留下联系方式, 谢谢。 ## Contact us - Mail: [zebra@dianping.com](zebra@dianping.com) - Issues : [https://github.com/Meituan-Dianping/Zebra/issues](https://github.com/Meituan-Dianping/Zebra/issues) - WeChat : [Zebra微信交流群](https://github.com/Meituan-Dianping/Zebra/wiki/WeChat%E4%BA%A4%E6%B5%81%E7%BE%A4)
0
C2SP/wycheproof
Project Wycheproof tests crypto libraries against known attacks.
crypto cryptography
# Project Wycheproof https://github.com/c2sp/wycheproof *Project Wycheproof is named after [Mount Wycheproof](https://en.wikipedia.org/wiki/Mount_Wycheproof), the smallest mountain in the world. The main motivation for the project is to have a goal that is achievable. The smaller the mountain the more likely it is to be able to climb it.* > [!NOTE] > Hello RWC 2024 attendees and others! Wycheproof recently moved to community > maintenance thanks to the shared efforts of Google and C2SP. > We are still working to update the README and documentation, > but we welcome your feedback and look forward to your contributions! ## Introduction Project Wycheproof tests crypto libraries against known attacks. Unfortunately, in cryptography, subtle mistakes can have catastrophic consequences, and we found that libraries fall into such implementation pitfalls much too often and for much too long. Good implementation guidelines, however, are hard to come by: understanding how to implement cryptography securely requires digesting decades' worth of academic literature. We recognize that software engineers fix and prevent bugs with unit testing, and we found that cryptographic loopholes can be resolved by the same means. These observations have prompted us to develop Project Wycheproof, a collection of unit tests that detect known weaknesses or check for expected behaviors of some cryptographic algorithm. Project Wycheproof provides tests for most cryptographic algorithms, including RSA, elliptic curve crypto and authenticated encryption. Our cryptographers have systematically surveyed the literature and implemented most known attacks. We have over 80 test cases which have uncovered more than [40 bugs](doc/bugs.md). For example, we found that we could recover the private key of widely-used DSA and ECDHC implementations. While we are committed to develop as many attacks as possible, Project Wycheproof is by no means complete. Passing the tests does not imply that the library is secure, it just means that it is not vulnerable to the attacks that Project Wycheproof tests for. Cryptographers are also constantly discovering new attacks. Nevertheless, with Project Wycheproof developers and users now can check their libraries against a large number of known attacks, without having to spend years reading academic papers or become cryptographers themselves. For more information on the goals and strategies of Project Wycheproof, please check out our [documentation](doc/). ### Coverage Project Wycheproof has tests for the most popular crypto algorithms, including - AES-EAX - AES-GCM - ChaCha20-Poly1305 - [DH](doc/dh.md) - DHIES - [DSA](doc/dsa.md) - [ECDH](doc/ecdh.md) - ECDSA - EdDSA - ECIES - HKDF - HMAC - [RSA](doc/rsa.md) - X25519, X448 The tests detect whether a library is vulnerable to many attacks, including * Invalid curve attacks * Biased nonces in digital signature schemes * Of course, all Bleichenbacher’s attacks * And many more -- we have over 80 test cases Our first set of tests are written in Java, because Java has a common cryptographic interface. This allowed us to test multiple providers with a single test suite. While this interface is somewhat low level, and should not be used directly, we still apply a "defense in depth" argument and expect that the implementations are as robust as possible. For example, we consider weak default values to be a significant security flaw. We are converting as many tests into sets of test vectors to simplify porting the tests to other languages. We provide ready-to-use test runners for Java Cryptography Architecture providers such as [Bouncy Castle](http://bouncycastle.org), [Spongy Castle](https://rtyley.github.io/spongycastle/), the [Amazon Corretto Crypto Provider](https://github.com/corretto/amazon-corretto-crypto-provider) and the default providers in [OpenJDK](http://openjdk.java.net/). ### Usage #### Setup * Install [Bazel](https://bazel.build/). * Install [Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files][jce-policy-instructions]. This enables tests with large key sizes. Otherwise you'll see a lot of "illegal key size" exceptions. * Clone the repository: ``` git clone https://github.com/google/wycheproof.git ``` [jce-policy-instructions]: http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters #### Execute tests * To test latest stable version of Bouncy Castle: ``` bazel test BouncyCastleAllTests ``` * To test other versions, e.g., v1.52: ``` bazel test BouncyCastleAllTests_1_52 ``` * To test all known versions (warning, will take a long time): ``` bazel test BouncyCastleAllTests_* ``` * To test a local jar, set the `WYCHEPROOF_BOUNCYCASTLE_JAR` environment variable: ```shell $ WYCHEPROOF_BOUNCYCASTLE_JAR=/path/to/bouncycastle $ bazel test BouncyCastleTestLocal $ bazel test BouncyCastleAllTestsLocal ``` Note: Bazel does not currently invalidate the build on environment changes. If you change the `WYCHEPROOF_BOUNCYCASTLE_JAR` environment variable, run `bazel clean` to force a rebuild: ```shell $ WYCHEPROOF_BOUNCYCASTLE_JAR=/path/to/bouncycastle $ bazel test BouncyCastleTestLocal $ WYCHEPROOF_BOUNCYCASTLE_JAR=/path/to/other/jar $ bazel clean $ bazel test BouncyCastleTestLocal ``` * To test [Spongy Castle](https://rtyley.github.io/spongycastle/), replace `BouncyCastle` with `SpongyCastle` in your commands, for example: ``` bazel test SpongyCastleAllTests ``` * To test the [Amazon Corretto Crypto Provider](https://github.com/corretto/amazon-corretto-crypto-provider), replace `BouncyCastle` with `Accp` in your commands, for example: ``` bazel test AccpAllTests ``` * To test a local jar for the Amazon Corretto Crypto Provider, set the `WYCHEPROOF_ACCP_JAR` environment variable: ```shell $ WYCHEPROOF_ACCP_JAR=/path/to/accp $ bazel test AccpTestLocal $ bazel test AccpAllTestsLocal ``` Note: bazel does not currently invalidate the build on environment changes. If you change the `WYCHEPROOF_ACCP_JAR` environment variable, run `bazel clean` to force a rebuild: ```shell $ WYCHEPROOF_ACCP_JAR=/path/to/accp $ bazel test AccpTestLocal $ WYCHEPROOF_ACCP_JAR=/path/to/other/jar $ bazel clean $ bazel test AccpTestLocal ``` * To test your current installation of [OpenJDK](http://openjdk.java.net/): ``` bazel test OpenJDKAllTests ``` Note that OpenJDKAllTests expects that OpenJDK is your default JDK, so it might refuse to run or its results might be incorrect if you are using some other JDK. If you downloaded your JDK from Oracle or https://java.com, you're probably using Oracle JDK, which should be compatible with OpenJDK, thus the tests should run correctly. Some tests take a very long time to finish. If you want to exclude them, use `BouncyCastleTest`, `SpongyCastleTest` or `OpenJDKTest` -- these targets exclude all slow tests (which are annotated with `@SlowTest`). Most test targets are failing, and each failure might be a security issue. To learn more about what a failed test means, you might want to check out [our documentation](doc/bugs.md) or the comments on top of the corresponding test function and test class. ### Hall of Bugs Here are some of the notable vulnerabilities that are uncovered by Project Wycheproof: * OpenJDK's SHA1withDSA leaks private keys > 1024 bits * Test: testBiasSha1WithDSA in [DsaTest][dsa-test]. * This bug is the same as [CVE-2003-0971][cve-2003-0971] ("GnuPG generated ElGamal signatures that leaked the private key"). * Bouncy Castle's ECDHC leaks private keys * Test: testModifiedPublic and testWrongOrderEcdhc in [EcdhTest][ecdh-test]. [dsa-test]: https://github.com/google/wycheproof/blob/master/java/com/google/security/wycheproof/testcases/DsaTest.java [cve-2003-0971]: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-0971 [ecdh-test]: https://github.com/google/wycheproof/blob/master/java/com/google/security/wycheproof/testcases/EcdhTest.java ### Maintainers Project Wycheproof has been maintained by: * Daniel Bleichenbacher * Thai Duong * Emilia Kasper * Quan Nguyen * Charles Lee ### Contact and mailing list If you want to contribute, please read [CONTRIBUTING](CONTRIBUTING.md) and send us pull requests. You can also report bugs or request new tests. If you'd like to talk to our developers or get notified about major new tests, you may want to subscribe to our [mailing list](https://groups.google.com/forum/#!forum/wycheproof-users). To join, simply send an empty mail to wycheproof-users+subscribe@googlegroups.com.
0
happyfish100/fastdfs-client-java
FastDFS java client SDK
null
# FastDFS java client SDK FastDFS Java Client API may be copied only under the terms of the BSD license. ## 使用ant从源码构建 ``` ant clean package ``` ## 使用maven从源码安装 ``` mvn clean install ``` ## 使用maven从jar文件安装 ``` mvn install:install-file -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=${version} -Dpackaging=jar -Dfile=fastdfs-client-java-${version}.jar ``` ## 在您的maven项目pom.xml中添加依赖 ```xml <dependency> <groupId>org.csource</groupId> <artifactId>fastdfs-client-java</artifactId> <version>1.31-SNAPSHOT</version> </dependency> ``` ## .conf 配置文件、所在目录、加载优先顺序 配置文件名fdfs_client.conf(或使用其它文件名xxx_yyy.conf) 文件所在位置可以是项目classpath(或OS文件系统目录比如/opt/): /opt/fdfs_client.conf C:\Users\James\config\fdfs_client.conf 优先按OS文件系统路径读取,没有找到才查找项目classpath,尤其针对linux环境下的相对路径比如: fdfs_client.conf config/fdfs_client.conf ``` connect_timeout = 2 network_timeout = 30 charset = UTF-8 http.tracker_http_port = 80 http.anti_steal_token = no http.secret_key = FastDFS1234567890 tracker_server = 10.0.11.247:22122 tracker_server = 10.0.11.248:22122 tracker_server = 10.0.11.249:22122 connection_pool.enabled = true connection_pool.max_count_per_entry = 500 connection_pool.max_idle_time = 3600 connection_pool.max_wait_time_in_ms = 1000 ``` 注1:tracker_server指向您自己IP地址和端口,1-n个 注2:除了tracker_server,其它配置项都是可选的 ## .properties 配置文件、所在目录、加载优先顺序 配置文件名 fastdfs-client.properties(或使用其它文件名 xxx-yyy.properties) 文件所在位置可以是项目classpath(或OS文件系统目录比如/opt/): /opt/fastdfs-client.properties C:\Users\James\config\fastdfs-client.properties 优先按OS文件系统路径读取,没有找到才查找项目classpath,尤其针对linux环境下的相对路径比如: fastdfs-client.properties config/fastdfs-client.properties ``` fastdfs.connect_timeout_in_seconds = 5 fastdfs.network_timeout_in_seconds = 30 fastdfs.charset = UTF-8 fastdfs.http_anti_steal_token = false fastdfs.http_secret_key = FastDFS1234567890 fastdfs.http_tracker_http_port = 80 fastdfs.tracker_servers = 10.0.11.201:22122,10.0.11.202:22122,10.0.11.203:22122 fastdfs.connection_pool.enabled = true fastdfs.connection_pool.max_count_per_entry = 500 fastdfs.connection_pool.max_idle_time = 3600 fastdfs.connection_pool.max_wait_time_in_ms = 1000 ``` 注1:properties 配置文件中属性名跟 conf 配置文件不尽相同,并且统一加前缀"fastdfs.",便于整合到用户项目配置文件 注2:fastdfs.tracker_servers 配置项不能重复属性名,多个 tracker_server 用逗号","隔开 注3:除了fastdfs.tracker_servers,其它配置项都是可选的 ## 加载配置示例 加载原 conf 格式文件配置: ClientGlobal.init("fdfs_client.conf"); ClientGlobal.init("config/fdfs_client.conf"); ClientGlobal.init("/opt/fdfs_client.conf"); ClientGlobal.init("C:\\Users\\James\\config\\fdfs_client.conf"); 加载 properties 格式文件配置: ClientGlobal.initByProperties("fastdfs-client.properties"); ClientGlobal.initByProperties("config/fastdfs-client.properties"); ClientGlobal.initByProperties("/opt/fastdfs-client.properties"); ClientGlobal.initByProperties("C:\\Users\\James\\config\\fastdfs-client.properties"); 加载 Properties 对象配置: Properties props = new Properties(); props.put(ClientGlobal.PROP_KEY_TRACKER_SERVERS, "10.0.11.101:22122,10.0.11.102:22122"); ClientGlobal.initByProperties(props); 加载 trackerServers 字符串配置: String trackerServers = "10.0.11.101:22122,10.0.11.102:22122"; ClientGlobal.initByTrackers(trackerServers); ## 检查加载配置结果: System.out.println("ClientGlobal.configInfo(): " + ClientGlobal.configInfo()); ``` ClientGlobal.configInfo(): { g_connect_timeout(ms) = 5000 g_network_timeout(ms) = 30000 g_charset = UTF-8 g_anti_steal_token = false g_secret_key = FastDFS1234567890 g_tracker_http_port = 80 g_connection_pool_enabled = true g_connection_pool_max_count_per_entry = 500 g_connection_pool_max_idle_time(ms) = 3600000 g_connection_pool_max_wait_time_in_ms(ms) = 1000 trackerServers = 10.0.11.101:22122,10.0.11.102:22122 } ```
0
gitblit-org/gitblit
pure java git solution
git gitblit
null
0
sofastack/sofa-bolt
SOFABolt is a lightweight, easy to use and high performance remoting framework based on Netty.
java netty sofa-bolt sofa-rpc sofastack
# SOFABolt Project [![Build Status](https://travis-ci.com/sofastack/sofa-bolt.svg?branch=master)](https://travis-ci.com/sofastack/sofa-bolt) [![Coverage Status](https://codecov.io/gh/sofastack/sofa-bolt/branch/master/graph/badge.svg)](https://codecov.io/gh/sofastack/sofa-bolt) ![license](https://img.shields.io/badge/license-Apache--2.0-green.svg) ![version](https://img.shields.io/maven-central/v/com.alipay.sofa/bolt.svg?label=bolt) [![Percentage of issues still open](http://isitmaintained.com/badge/open/sofastack/sofa-bolt.svg)](http://isitmaintained.com/project/sofastack/sofa-bolt "Percentage of issues still open") # 1. 介绍 SOFABolt 是蚂蚁金融服务集团开发的一套基于 Netty 实现的网络通信框架。 * 为了让 Java 程序员能将更多的精力放在基于网络通信的业务逻辑实现上,而不是过多的纠结于网络底层 NIO 的实现以及处理难以调试的网络问题,Netty 应运而生。 * 为了让中间件开发者能将更多的精力放在产品功能特性实现上,而不是重复地一遍遍制造通信框架的轮子,SOFABolt 应运而生。 Bolt 名字取自迪士尼动画-闪电狗,是一个基于 Netty 最佳实践的轻量、易用、高性能、易扩展的通信框架。 这些年我们在微服务与消息中间件在网络通信上解决过很多问题,积累了很多经验,并持续的进行着优化和完善,我们希望能把总结出的解决方案沉淀到 SOFABolt 这个基础组件里,让更多的使用网络通信的场景能够统一受益。 目前该产品已经运用在了蚂蚁中间件的微服务 ([SOFARPC](https://github.com/sofastack/sofa-rpc))、消息中心、分布式事务、分布式开关、以及配置中心等众多产品上。 # 2. 功能介绍 ![intro](.middleware-common/intro.png) ## SOFABolt 的基础功能包括: * 基础通信功能 ( remoting-core ) * 基于 Netty 高效的网络 IO 与线程模型运用 * 连接管理 (无锁建连,定时断链,自动重连) * 基础通信模型 ( oneway,sync,future,callback ) * 超时控制 * 批量解包与批量提交处理器 * 心跳与 IDLE 事件处理 * 协议框架 ( protocol-skeleton ) * 命令与命令处理器 * 编解码处理器 * 心跳触发器 * 私有协议定制实现 - RPC 通信协议 ( protocol-implementation ) * RPC 通信协议的设计 * 灵活的反序列化时机控制 * 请求处理超时 FailFast 机制 * 用户请求处理器 ( UserProcessor ) * 双工通信 ## 用法1 将 SOFABolt 用作一个远程通信框架,使用者可以不用关心如何实现一个私有协议的细节,直接使用我们内置的 RPC 通信协议。可以非常简单的启动客户端与服务端,同时注册一个用户请求处理器,即可完成远程调用。同时,像连接管理、心跳等基础功能特性都默认可以使用。 当前支持的调用类型如下图所示: ![invoke_type](.middleware-common/invoke_types.png) * 示例 Demo 请参考我们的 [用户手册](https://github.com/sofastack/sofa-bolt/wiki/SOFA-Bolt-Handbook#14-%E5%9F%BA%E7%A1%80%E9%80%9A%E4%BF%A1%E6%A8%A1%E5%9E%8B) ## 用法2 将 SOFABolt 用作一个协议框架,使用者可以复用基础的通信模型、协议包含的接口定义等基础功能。然后根据自己设计的私有协议自定义 Command 类型、Command 处理器、编解码处理器等。如下图所示,RPC 和消息的 Command 定义结构: ![msg_protocol](.middleware-common/msg_protocol.png) # 4. 如何贡献 开放代码允许在签署协议之后,提交贡献代码。具体参考[如何参与贡献 SOFABolt 代码](./CONTRIBUTING.md)。 对 SOFABolt 代码的修改和变更,需要遵守[版权协议](./LICENSE)。 # 5. 多语言 * [node](https://github.com/sofastack/sofa-bolt-node) * [python](https://github.com/sofastack/sofa-bolt-python) * [cpp](https://github.com/sofastack/sofa-bolt-cpp) # 6. 用户 <div> <table> <tr> <td align="center" valign="middle"> <img alt="蚂蚁集团" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*aK79TJUJykkAAAAAAAAAAAAAARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="网商银行" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*uAmFRZQ0Z4YAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="恒生电子" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*_iGLRq0Ih-IAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="数立信息" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*JAgIRpjz-IgAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="Paytm" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*a0fvTKJ1Xv8AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="天弘基金" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*99OQT7lDBsMAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="中国人保" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*P1BARJxwv1sAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="信美相互" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*jAzWQpIgFUAAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="南京银行" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*q9PMQI7hs8sAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="民生银行" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*GnUuSKmOtS4AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="重庆农商行" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*FKrxSYhdi2wAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="中信证券" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*t-xbQb3WSjcAAAAAAAAAAABkARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="富滇银行" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*JCDYT6u6_asAAAAAAAAAAAAAARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="挖财" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*lVrVT4dpSDEAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="拍拍贷" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*TAePS6j56LsAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="OPPO金融" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*mU40QaJkwZYAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="运满满" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*_kBbQYUYdIQAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="译筑科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*wuKSTpZSEkEAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="杭州米雅信息科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*b-o5SITMKu0AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="邦道科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*nsw1S5bt9DkAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="申通快递" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*C3ncSpDsjS8AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="深圳大头兄弟文化" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*8AYmRowxSC0AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="烽火科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*MjuuT4omCrwAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="亚信科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*vBBIRomYoEUAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="成都云智天下科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*p0OkQbC5RvsAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="上海溢米辅导" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*mJdtTJsn1PwAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="态赋科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*sfLDRL5TJx8AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="风一科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*EGeMR4qprnkAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="武汉易企盈" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*31WRQ7zg3HIAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="极致医疗" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*cPOiS5q8NCwAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="京东" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*INhuS44qO8YAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="小象生鲜" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*K5ERQYbCRBgAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="北京云族佳" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*qzxjSZ2tlmIAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="欣亿云网" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*huOKQKvoLzwAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="山东网聪" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*INUFR7XIH1gAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="深圳市诺安赛威" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*eVGbR7RhDDkAAAAAAAAAAABjARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="上扬软件" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*VsqMT7n7p0AAAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="长沙点三" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*2eEzSqdPIc0AAAAAAAAAAABjARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="网易云音乐" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*66KbQ6seDqoAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="虎牙直播" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*uzr3RLUZ3RwAAAAAAAAAAABkARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="中国移动" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*vEo-T55XTOAAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="无纸科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*9aFQSLfyPhMAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="黄金钱包" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*tYZJRpANxNoAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="独木桥网络" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*GW6oTLIlAbcAAAAAAAAAAABkARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="wueasy" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*4uFWQacI-RwAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="北京攸乐科技" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*CD5VT50FXqMAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="易宝支付" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*oy0ZSquXXjAAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="威马汽车" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*LPf2TbTeJPwAAAAAAAAAAABkARQnAQ" height="60" /> </td> </tr> <tr> <td align="center" valign="middle"> <img alt="亿通国际" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*tlq4R7QqUaEAAAAAAAAAAABkARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="新华三" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*gw9uTbZvsbAAAAAAAAAAAAAAARQnAQ" height="60" /> </td> <td align="center" valign="middle"> <img alt="klilalagroup" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*0cskToqBSi8AAAAAAAAAAAAAARQnAQ" height="60" /> </td> <td align="center" valign="middle"> </td> </tr> </table> </div> # 7. 联系我们 - 微信 - 公众号:金融级分布式架构(Antfin_SOFA):致力于打造一流的分布式技术在金融场景应用实践的技术交流平台,专注于交流金融科技行业内最前沿、可供参考的技术方案与实施路线。 <img alt="Wechat" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*LVCnR6KtEfEAAAAAAAAAAABjARQnAQ" height="250" /> - 钉钉 - 钉钉交流群: - ~~金融级分布式架构 SOFAStack 1群,群号:23127468~~ 已满 - ~~金融级分布式架构 SOFAStack 2群,群号:23195297~~ 已满 - ~~金融级分布式架构 SOFAStack 3群,群号:23390449~~ 已满 - ~~金融级分布式架构 SOFAStack 4群,群号:23372465~~ 已满 - ~~金融级分布式架构 SOFAStack 5群,群号:30315793~~ 已满 - 金融级分布式架构 SOFAStack 6群,群号:34197075 <img alt="DingTalk" src="https://gw.alipayobjects.com/mdn/sofastack/afts/img/A*SIFWTr5brrkAAAAAAAAAAAAAARQnAQ" height="250" /> - 钉钉交流群:SOFAStack 金牌用户服务群,如果您已经在生产环境使用了 SOFAStack 相关组件,还请告知我们,我们将会邀请您加入到此群中,以便更加快捷的沟通和更加高效的线上使用问题支持。
0
spring-projects/spring-integration-samples
You are looking for examples, code snippets, sample applications for Spring Integration? This is the place.
null
Spring Integration Samples ========================== [![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.spring.io/scans?search.rootProjectNames=spring-integration-samples) Welcome to the **Spring Integration Samples** repository which provides **50+ samples** to help you learn [Spring Integration][]. To simplify your experience, the *Spring Integration* samples are split into 4 distinct categories: * Basic * Intermediate * Advanced * Applications * DSL Inside of each category you'll find a **README.md** file, which will contain a more detailed description of that category. Each sample also comes with its own **README.md** file explaining further details, e.g. how to run the respective sample. | For additional samples, please also checkout the [Spring Integration Extensions][] project as it also provides numerous samples. *Happy Integration!* # Note This (main) branch requires Spring Integration 6.0 or above. For samples running against earlier versions of Spring Integration, use the __5.5.x__ and other branches. The project requires now Java 17 or above. To open the project in the IDE, use its `import` option against a `build.gradle` file from the root project directory. ## Related GitHub projects * [Spring Integration][] * [Spring Integration Extensions][] ## Community Sample Projects * [Xavier Padró][] # Categories Below is a short description of each category. ## DSL This directory holds demos/samples for Spring Integration 4.0 Java Configuration as well as the Java DSL Extension. ## Basic This is a good place to get started. The samples here are technically motivated and demonstrate the bare minimum with regard to configuration and code to help you to get introduced to the basic concepts, API and configuration of Spring Integration. For example, if you are looking for an answer on how to wire a **Service Activator** to a **Channel** or how to apply a **Gateway** to your message exchange or how to get started with using the **MAIL** or **XML** module, this would be the right place to find a relevant sample. The bottom line is that this is a good starting point. * **amqp** - Demonstrates the functionality of the various **AMQP Adapters** * **barrier** - Shows how to suspend a thread until some asynchronous event occurs * **control-bus** - Demonstrates the functionality of the **Control Bus** * **enricher** - This sample demonstrates how the Enricher components can be used * **feed** - Demonstrates the functionality of the **Feed Adapter** (RSS/ATOM) * **file** - Demonstrates aspects of the various File Adapters (e.g. **File Inbound/Outbound Channel Adapters**, file **polling**) * **ftp** - Demonstrates the **FTP support** available with Spring Integration * **helloworld** - Very simple starting example illustrating a basic message flow (using **Channel**, **ServiceActivator**, **QueueChannel**) * **http** - Demonstrates request/reply communication when using a pair of **HTTP Inbound/Outbound gateways** * **jdbc** - Illustrates the usage of the Jdbc Adapters, including object persistence and retrieval * **jms** - Demonstrates **JMS** support available with Spring Integration * **jmx** - Demonstrates **JMX** support using a **JMX Attribute Polling Channel** and **JMX Operation Invoking Channel Adapter** * **jpa** - Shows the usage of the JPA Components * **mail** - Example showing **IMAP** and **POP3** support * **mqtt** - Demonstrates the functionality of inbound and outbound **MQTT Adapters** * **mongodb** - Shows how to persist a Message payload to a **MongoDb** document store and how to read documents from **MongoDb** * **oddeven** - Example combining the functionality of **Inbound Channel Adapter**, **Filter**, **Router** and **Poller** * **quote** - Example demoing core EIP support using **Channel Adapter (Inbound and Stdout)**, **Poller** with Interval Triggers, **Service Activator** * **sftp** - Demonstrating SFTP support using **SFTP Inbound / Outbound Channel Adapters** * **tcp-amqp** - Demonstrates basic functionality of bridging the **Spring Integration TCP Adapters** with **Spring Integration AMQP Adapters** * **tcp-broadcast** - Demonstrates broadcasting a message to multiple connected TCP clients. * **tcp-client-server** - Demonstrates socket communication using **TcpOutboundGateway**, **TcpInboundGateway** and also uses a **Gateway** and a **Service Activator** * **tcp-with-headers** - Demonstrates sending headers along with the payload over TCP using JSON. * **testing-examples** - A series of test cases that show techniques to **test** Spring Integration applications. * **twitter** - Illustrates Twitter support using the **Twitter Inbound Channel Adapter**, **Twitter Inbound Search Channel Adapter**, **Twitter Outbound Channel Adapter** * **ws-inbound-gateway** - Example showing basic functionality of the **Web Service Gateway** * **ws-outbound-gateway** - Shows outbound web services support using the **Web Service Outbound Gateway**, **Content Enricher**, Composed Message Processor (**Chain**) * **xml** - Example demonstrates various aspects of the **Xml** support using an **XPath Splitter**, **XPath Router**, **XSLT Transformer** as well as **XPath Expression** support * **xmpp** - Show the support for [**XMPP**](https://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol) (formerly known as Jabber) using e.g. GoogleTalk ## Intermediate This category targets developers who are already more familiar with the Spring Integration framework (past getting started), but need some more guidance while resolving more advanced technical problems that you have to deal with when switching to a Messaging architecture. For example, if you are looking for an answer on how to handle errors in various scenarios, or how to properly configure an **Aggregator** for the situations where some messages might not ever arrive for aggregation, or any other issue that goes beyond a basic understanding and configuration of a particular component to address "what else you can do?" types of problems, this would be the right place to find relevant examples. * **async-gateway** - Usage example of an asynchronous **Gateway** * **dynamic-poller** - Example shows usage of a **Poller** with a custom **Trigger** to change polling periods at runtime * **async-gateway** - Example shows usage of an **Asynchronous Gateway** * **errorhandling** - Demonstrates basic **Error Handling** capabilities of Spring Integration * **file-processing** - Sample demonstrates how to wire a message flow to process files either sequentially (maintain the order) or concurrently (no order). * **mail-attachments** - Demonstrates the processing of email attachments * **monitoring** The project used in the *[Spring Integration Management and Monitoring Webinar](https://www.springsource.org/node/3598)* Also available on the *[SpringSourceDev YouTube Channel](https://www.youtube.com/SpringSourceDev)* * **multipart-http** - Demonstrates the sending of HTTP multipart requests using Spring's **RestTemplate** and a Spring Integration **Http Outbound Gateway** * **rest-http** - This sample demonstrates how to send an HTTP request to a Spring Integration's HTTP service while utilizing Spring Integration's new HTTP Path usage. This sample also uses Spring Security for HTTP Basic authentication. With HTTP Path facility, the client program can send requests with URL Variables. * **retry-and-more** Provides samples showing the application of MessageHandler Advice Chains to endpoints - retry, circuit breaker, expression evaluating * **splitter-aggregator-reaper** A demonstration of implementing the Splitter and Aggregator *Enterprise Integration Patterns* (EIP) together. This sample also provides a concrete example of a [message store reaper][] in action. * **stored-procedures-derby** Provides an example of the stored procedure Outbound Gateway using *[Apache Derby](https://db.apache.org/derby/)* * **stored-procedures-ms** Provides an example of the stored procedure Outbound Gateway using *Microsoft SQL Server* * **stored-procedures-oracle** Provides an example of the stored procedure Outbound Gateway using *ORACLE XE* * **stored-procedures-postgresql** Provides an example of the stored procedure Outbound Gateway using *[PostgreSQL](https://www.postgresql.org/)* * **tcp-async-bi-directional** - Demonstrates the use of *Collaborating Channel Adapters* for arbitrary async messaging (not request/reply) between peers. * **tcp-client-server-multiplex** - Demonstrates the use of *Collaborating Channel Adapters* with multiple in-flight requests/responses over a single connection. * **travel** - More sophisticated example showing the retrieval of weather (SOAP Web Service) and traffic (HTTP Service) reports using real services * **tx-synch** Provides a sample demonstrating the use of transaction synchronization, renaming an input file to a different filename, depending on whether the transaction commits, or rolls back. ## Advanced This category targets advanced developers who are quite familiar with Spring Integration but are looking to address a specific custom need by extending the Spring Integration public API. For example, if you are looking for samples showing how to implement a custom **Channel** or **Consumer** (event-based or polling-based), or you are trying to figure out what is the most appropriate way to implement a custom **BeanParser** on top of the Spring Integration BeanParser hierarchy when implementing a custom namespace, this would be the right place to look. Here you can also find samples that will help you with adapter development. Spring Integration comes with an extensive library of adapters that allow you to connect remote systems with the Spring Integration messaging framework. However you might have a need to integrate with a system for which the core framework does not provide an adapter, so you have to implement your own. This category would include samples showing you how to implement various adapters. * **advanced-testing-examples** - Example test cases that show advanced techniques to test Spring Integration applications * **dynamic-ftp** - Demonstrates one technique for sending files to dynamic destinations. * **dynamic-tcp-client** - Demonstrates a technique for dynamically creating TCP clients. ## Applications This category targets developers and architects who have a good understanding of Message-Driven architecture and Enterprise Integration Patterns, and have an above average understanding of Spring and Spring integration and who are looking for samples that address a particular business problem. In other words, the emphasis of samples in this category is '**business use cases**' and how they can be solved via a Messaging architecture and Spring Integration in particular. For example, if you are interested to see how a Loan Broker process or Travel Agent process could be implemented and automated via Spring Integration, this would be the right place to find these types of samples. * **cafe** - Emulates a simple operation of a coffee shop combining various Spring Integration adapters (Including **Router** and **Splitter**) see [Appendix A of the reference documentation](https://docs.spring.io/spring-integration/docs/current/reference/html/#samples) for more details. Implementations are provided for: - AMQP - JMS - In memory channels * **cafe-scripted** - Scripted implementation of the classic **cafe** sample application. Supports **JavaScript**, **Groovy**, **Ruby**, and **Python**. * **loan-broker** - Simulates a simple banking application (Uses **Gateway**, **Chain**, **Header Enricher**, **Recipient List Router**, **Aggregator**) see [Appendix A of the reference documentation](https://docs.spring.io/spring-integration/docs/current/reference/html/#samples) for more details * **loanshark** This extension to the loan broker sample shows how to exchange messages between Spring Integration applications (and other technologies) using **UDP**. **file-split-ftp** - Reads a file; splits into 3 based on contents; sends files over ftp; sends email with results. # Contributing See the [Spring Integration Contributor Guidelines](https://github.com/spring-projects/spring-integration/blob/master/CONTRIBUTING.adoc) for information about how to contribute to this repository. # Resources For more information, please visit the Spring Integration website at: [https://projects.spring.io/spring-integration/](https://projects.spring.io/spring-integration/) [Spring Integration]: https://github.com/spring-projects/spring-integration [Spring Integration Extensions]: https://github.com/spring-projects/spring-integration-extensions [message store reaper]: https://docs.spring.io/spring-integration/api/org/springframework/integration/store/MessageGroupStoreReaper.html [Xavier Padró]: https://github.com/xpadro/spring-integration
1
Chainfire/libsuperuser
Example code for How-To SU""
null
# libsuperuser [![ci][1]][2] [![](https://jitpack.io/v/eu.chainfire/libsuperuser.svg)](https://jitpack.io/#eu.chainfire/libsuperuser) Example code for "How-To SU" For some outdated background details, see: [http://su.chainfire.eu/](http://su.chainfire.eu/) Even though its outdated with regards to usage of this library, if you're unfamiliar with writing code for root usage, it is not a bad idea to read it. ## License Copyright &copy; 2012-2019 Jorrit *Chainfire* Jongma This code is released under the [Apache License version 2.0](https://www.apache.org/licenses/LICENSE-2.0). ## Deprecated This library is not under active development right now, as I've mostly moved away from the Android world. While I believe it still works great, if it breaks due to changes on new Android versions or root solutions, fixes may be slow to appear. If you're writing a new app, you might consider using [TopJohnWu's libsu](https://github.com/topjohnwu/libsu) instead. Barring some edge-cases (that I personally seem to be the biggest user of) the capabilities should be similar, but it's likely to be better maintained. ## v1.1.0 update It is now 2019, 7 years since the initial release of *libsuperuser*, and I have *finally* gotten around to releasing v1.1.0, and writing an updated how-to. See, I don't need reminding every 6 months. This update brings support for commands returning an `InputStream` for STDOUT, as well as adding per-line and buffered STDERR support to various methods. As `Shell.Interactive` can be a bit tricky to use and understand callback and threading wise, especially when used from a background thread, the `Shell.Threaded` subclass has been added. This class maintains its own dedicated background thread, upon which all the callbacks are executed. `Shell.Interactive` (and `Shell.Threaded`) have gained synchronous methods, that may be easier to handle than the asynchronous ones, when used from a background thread. Obviously one cannot use them from the main UI thread, as this would block the UI. Last but not least, `Shell.Pool` has been added, which maintains a pool of `Shell.Threaded` instances for your app to use; created, cached, and closed on-demand. For new users, `Shell.Pool` is the place to start. If you're looking at the source of the library, `Shell.java` has become way too large and would look better broken up. This is intentionally not done to maintain better backward compatibility with old code, of which there is quite a bit. ## Upgrading from v1.0.0 to v1.1.0 No functionality has been removed, but some of the method signatures have subtly changed, and a lot of methods have been deprecated (though they will not be removed). The compiler will certainly tell you about these. Some interface have been renamed, and some methods were added to existing interfaces. All `Exception` based classes have moved to inner classes of `Shell`. `Shell.run(...)`, and all `Shell.SH.xxx` and `Shell.SU.xxx` methods automatically redirect to their `Shell.Pool.xxx` counterparts. This is a free speed-up for code using these methods. The redirection can be turned off by calling `Shell.setRedirectDeprecated(false)` from something like `Application::onCreate()`. While most code should run the same without issue, you should definitely double check, especially for complicated scripts or commands that set specific environment variables. `Shell.Interactive` should work exactly as it always has, but since some threading-related code has changed internally, it is always wise to check if everything still works as expected. There is no need to migrate existing `Shell.Interactive` code to `Shell.Threaded`, unless you want to use the functionality provided by `Shell.Pool`. Be sure to read about the usage difference between them below. Last but not least, `minSdkVersion` was updated from 4 to 5, so we're losing compatibility with Android 1.6 Donut users, sorry. ## Example project The example project is very old, and does not follow current best practises. While `PooledActivity` has been added demonstrating some calls using `Shell.Threaded` and `Shell.Pool`, they aren't particularly good. The old code demonstrating both legacy and interactive modes remains present. Use the mode button at the bottom to switch between activities. ## Basics This page is not intended as a full reference, just to get you started off. There are many methods and classes in the library not explained here. For more advanced usages, consult the source code - over 1/3rd of the lines belong to comments. Some of the below may seem out-of-order, you might want to read this entire section twice. #### Blocking, threads, and ShellOnMainThreadException Running subprocesses is expensive and timings cannot be predicted. For something like running "su" even more so, as it can launch a dialog waiting for user interaction. Many methods in this library may be *blocking* (taking unpredictable time to return). When you attempt to call any of these methods from the main UI thread, the library will throw a `Shell.ShellOnMainThreadException` at you, if your app is compiled in debug mode. (Note that this behavior can be disabled through the `Debug.setSanityChecksEnabled(false)` call). Methods that may throw this exception include any of the `run(...)`, `waitFor...()`, and `close...()` methods, with the exception of `closeWhenIdle()`. The `Shell.Builder`, `Shell.Interactive` and `Shell.Threaded` classes provide `addCommand(...)` methods, which run asynchronously and provide completion callbacks. `addCommand(...)` can safely be called from the main UI thread. `Shell.Interactive` (and its `Shell.Threaded` subclass) is a class wrapping a running instance of a shell (such as "sh" or "su"), providing methods to run commands in that shell and return the output of each individual command and its exit code. As opening a shell itself can be very expensive (especially so with "su"), it is preferred to use few interactive shells to run many commands rather than executing a single shell for each individual command. `Shell.Interactive` (and its `Shell.Threaded` subclass) uses two background threads to continuously gobble the input from STDOUT and STDERR. This is an (unfortunate) requirement to prevent the underlying shell from possibly deadlocking if it produces large amounts of output. When an instance of `Shell.Interactive` is created, it determines if the calling thread has an Android `Looper` attached, if it does, it creates an Android `Handler`, to which all callbacks (such as the interfaces passed to `addCommand(...)`) are passed. The callbacks are then executed on the original calling thread. If a `Looper` is not available, callbacks are usually executed on the gobbler threads (which increases the risk of deadlocks, and should be avoided), but may also be executed on the calling thread (which can cause deadlocks in your own threading code). (Didn't make sense? Don't worry about it, and just follow the advice and examples below) #### `Shell.Interactive` vs `Shell.Threaded` `Shell.Interactive`'s threading/callback model *can* be fine when it's used from the main UI thread. As the main UI thread most certainly has a `Looper`, there is no problem creating a `Handler`, and the callbacks are run directly on the main UI thread. While this does allow you to directly manipulate UI elements from the callbacks, it also causes jank if your callbacks take too long to execute. However, when `Shell.Interactive` is used from a background thread, unless you manually create and manage a special secondary thread for it (a `HandlerThread`), callbacks run on the gobbler threads, which is potentially bad. The `Shell.Threaded` subclass specifically creates and manages this secondary `HandlerThread` for you, and guarantees all callbacks are executed on that thread. This prevents most deadlock situations from happening, and is consistent in its behavior across the board. The drawback there is that you cannot directly manipulate UI elements from the callbacks passed to `addCommand(...)` (or any other methods), but that is probably not what you end up wanting to do in any real-world app anyway. When the need arises, you can use something like `Activity::runOnUiThread(...)` to call code that adjusts the UI. Additionally, `Shell.Threaded` is easier to setup and supports pooling via `Shell.Pool` (explained further below). The choice which to use should be easy at this point, unless you have some very specific needs. If you are porting from `Shell.Interactive` to `Shell.Threaded`, please note that the behavior of the `close()` method is different between the two. In `Shell.Interactive` it redirects to `closeImmediately()`, which waits for all commands to complete and then closes the shell. In `Shell.Threaded` it returns the shell to the pool if it is part of one, and otherwise redirects to `closeWhenIdle()`, which schedules the actual close when all commands have completed, but returns immediately. This discrepancy is unfortunate but required to maintain both good backwards compatibility and support pooling with try-with-resources. #### Common methods Examples follow further below, which make use of pooling. But before pooling can be explained, the common methods you will use with different classes need a quick walk-through. #### Common methods: `addCommand(...)` The `Shell.Builder` (used to manually construct `Shell.Interactive` and `Shell.Threaded` instances), `Shell.Interactive` and `Shell.Threaded` classes provide `addCommand(...)` methods. These run asynchronously and are safe to call from the main UI thread: they return before the commands complete, and an optionally provided callback is executed when the command does complete: - `addCommand(Object commands)` - `addCommand(Object commands, int code, OnResult onResultListener)` `commands` accepts a `String`, a `List<String>`, or a `String[]`. `onResultListener` is one of: - `OnCommandResultListener2`, which buffers STDOUT and STDERR and returns them to the callback all in one go - `OnCommandLineListener`, which is unbuffered and is called once for each line read from STDOUT or STDERR - `OnCommandInputStreamListener`, which is called with an `InputStream` you can use to read raw data from the shell. You should continue reading the `InputStream` until *-1* is returned (*not 0* as is sometimes done), or further commands on this shell will not execute. You can call `InputStream::close()` to do this for you. Additionally, if the shell is closed during reading, then (and only then) an `IOException` will be thrown. All of these provide an `onCommandResult` method that is called with the `code` you passed in, and the exit code of the (last) of the commands passed in. Note that the exit code will be < 0 if an error occurs, such as the shell being closed. The `addCommand(...)` calls will *not* be further explained in this document, consult the example project (`InteractiveActivity.java`) and the library source for further details. #### Common methods: `run(...)` The `Shell.Interactive`, `Shell.Threaded`, and `Shell.PoolWrapper` classes provide `run(...)` methods. These run synchronously and are *not* safe to call from the main UI thread: they return when the command is completed: - `int run(Object commands)` - `int run(Object commands, List<String> STDOUT, List<String> STDERR, boolean clear)` - `int run(Object commands, OnSyncCommandLineListener onSyncCommandLineListener)` - `int run(Object commands, OnSyncCommandInputStreamListener onSyncCommandInputStreamListener)` As before, `commands` accepts a `String`, a `List<String>`, or a `String[]`. It should be obvious that these are simply the synchronous counterparts of the asynchronous `addCommand(...)` methods. Instead of calling a callback interface with the exit code, it is returned directly, and instead of returning a negative exit code on error, `Shell.ShellDiedException` is thrown. #### Pooling The `Shell.Pool` class provides shell pooling. It will create new shell instances on-demand, and keep a set number of them around for reuse later (4 by default for "su" instances, 1 for non-"su" instances). `Shell.Pool.SH` and `Shell.Pool.SU` are pre-created instances of `Shell.PoolWrapper` for "sh" and "su", providing `get()` and the earlier mentions `run(...)` methods for the pool. The `get()` method can be used to retrieve a `Shell.Threaded` instance from the pool, which you should later return to the pool by calling it's `close()` method. The `run(...)` methods, instead of operating on a specific `Shell.Threaded` instance you manage, retrieve an instance from the pool, proxies the call to that instance's `run(...)` method, and then immediately returns the instance to the pool. Sound complex? Maybe, but it all comes together so you can sprinkle `Shell.Pool.SU.run(...)` calls throughout as many threads as you wish (barring of course the main UI thread), running simultaneously or not, with instances being created, reused, and closed automatically. All of this without you ever having to worry about managing the instances, and only having to catch a single `Shell.ShellDiedException`. #### Examples It is assumed all the code following is run from a background thread, such as `Thread`, `AsyncTask`, or `(Job)IntentService`. Running some basic commands: ``` try { List<String> STDOUT = new ArrayList<String>(); List<String> STDERR = new ArrayList<String>(); int exitCode; exitCode = Shell.Pool.SU.run("echo nobody will ever see this"); // we have only an exit code exitCode = Shell.Pool.SU.run("ls -l /", STDOUT, STDERR, true); // exit code, and STDOUT/STDERR output exitCode = Shell.Pool.SU.run("cat /init.rc", new Shell.OnSyncCommandInputStreamListener() { @Override public void onInputStream(InputStream inputStream) { try { byte[] buf = new byte[16384]; int r; while ((r = inputStream.read(buf)) >= 0) { // do something with buf // if we decide to abort before r == -1, call inputStream.close() } } catch (IOException e) { // shell died during read } } @Override public void onSTDERR(String line) { // hey, some output on STDERR! } }); Shell.Pool.SU.run("logcat -d", new Shell.OnSyncCommandLineListener() { @Override public void onSTDOUT(String line) { // hey, some output on STDOUT! } @Override public void onSTDERR(String line) { // hey, some output on STDERR! } }); } catch (Shell.ShellDiedException e) { // su isn't present, access was denied, or the shell terminated while 'run'ing } ``` When running multiple commands in quick succession, it is slightly cheaper to `get()` an instance and `close()` it when done, and using the returned instance. But keep in mind if there is a longer period between your calls, and another thread wants to call su, the shell you have not `close()`'d yet cannot be reused by that thread: ``` try { // get an instance from the pool Shell.Threaded shell = Shell.Pool.SU.get(); try { // this is very useful for (int i = 0; i < 100; i++) { shell.run("echo nobody will ever see this"); } } finally { // return the instance to the pool shell.close(); } } catch (Shell.ShellDiedException e) { // su isn't present, access was denied, or the shell terminated while 'run'ing } ``` If you're targeting API >= 19 and Java 1.8, you can use try-with-resources with `Shell.Threaded::ac()`, which casts the instance to a `Shell.ThreadedAutoCloseable`: ``` try { // get an instance from the pool, automatically returning it at the end of the try block try (Shell.ThreadedAutoCloseable shell = Shell.Pool.SU.get().ac()) { // this is very useful for (int i = 0; i < 100; i++) { shell.run("echo nobody will ever see this"); } } } catch (Shell.ShellDiedException e) { // su isn't present, access was denied, or the shell terminated while 'run'ing } ``` ## libRootJava For more advanced usages of root, such as running Java/Kotlin code as root directly, please see my [libRootJava](https://github.com/Chainfire/librootjava) library. ## Annotations Nullity and thread annotations have recently been added. Please note that *all* methods that *may* be problematic on the UI thread have been marked as `@WorkerThread`. Some of these methods can be called from the UI thread without issue in specific conditions. If so, those conditions should be noted in the method's javadoc. ## Gradle Root `build.gradle`: ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` Module `build.gradle`: ``` dependencies { implementation 'eu.chainfire:libsuperuser:1.1.1' } ``` [1]: https://github.com/Chainfire/libsuperuser/workflows/ci/badge.svg [2]: https://github.com/Chainfire/libsuperuser/actions
1
prometheus/jmx_exporter
A process for exposing JMX Beans via HTTP for Prometheus consumption
java java-agent jmx jmx-exporter mbean monitoring prometheus prometheus-exporter
# JMX Exporter [![Build Status](https://circleci.com/gh/prometheus/jmx_exporter.svg?style=svg)](https://circleci.com/gh/prometheus/jmx_exporter) JMX to Prometheus exporter: a collector that can configurable scrape and expose MBeans of a JMX target. This exporter is intended to be run as a Java Agent, exposing a HTTP server and serving metrics of the local JVM. It can be also run as a standalone HTTP server and scrape remote JMX targets, but this has various disadvantages, such as being harder to configure and being unable to expose process metrics (e.g., memory and CPU usage). **Running the exporter as a Java agent is strongly encouraged.** # Documentation **Documentation is specific to a release.** [0.20.0](https://github.com/prometheus/jmx_exporter/tree/release-0.20.0) [0.19.0](https://github.com/prometheus/jmx_exporter/tree/release-0.19.0) [0.18.0](https://github.com/prometheus/jmx_exporter/tree/release-0.18.0) [0.17.2](https://github.com/prometheus/jmx_exporter/tree/release-0.17.2) # Contributing and community See [CONTRIBUTING.md](CONTRIBUTING.md) and the [community section](http://prometheus.io/community/) of the Prometheus homepage. The Prometheus Java community is present on the [CNCF Slack](https://cloud-native.slack.com) on `#prometheus-java`, and we have a fortnightly community call in the [Prometheus public calendar](https://prometheus.io/community/). # License Apache License 2.0, see [LICENSE](LICENSE).
0
lenve/javaboy-code-samples
公众号【江南一点雨】文章案例汇总,技术文章请戳这里----->
null
各位小伙伴大家好! 扫码加微信(微信ID:**a_java_boy2**),备注 SpringBoot,进群讨论。 ![微信ID:a_java_boy2](https://user-images.githubusercontent.com/6023444/75459026-ba70d500-59b9-11ea-8cbd-3d5889f356c4.png) ## 仓库简介 松哥长期坚持在微信公众号**江南一点雨**上分享原创技术教程,但是代码一直没有统一管理过,最近有小伙伴提出,希望松哥能把文章的代码整理下,方便大伙参考。于是,松哥创建了这个仓库,用来分享微信公众号**江南一点雨**上文章的案例。小伙伴要是觉得这个仓库有用的话,记得点个 star。 ## 代码索引 |code-samples|对应的文章| |:---|:---| |spring-boot-starter-custom|[徒手撸一个 Spring Boot 中的 Starter ,解密自动化配置黑魔法!](https://mp.weixin.qq.com/s/tKr_shLQnvcQADr4mvcU3A)| |api.js|[Spring Boot + Vue 前后端分离开发,前端网络请求封装与配置](https://mp.weixin.qq.com/s/K8ANNmm6ZrP2xMyK6LGZ_g)| |javassm|[这一次,我连 web.xml 都不要了,纯 Java 搭建 SSM 环境](https://mp.weixin.qq.com/s/NC_0oaeBzRjCB34U_ZWxIQ)| |properties|[是时候彻底搞清楚 Spring Boot 的配置文件 application.properties 了!](https://mp.weixin.qq.com/s/cUhzpo8zkQq09d8S4WkAsw)| |redis|[Spring Boot 操作 Redis,三种方案全解析!](https://mp.weixin.qq.com/s/cgDtmjPWTdh44bSlLC0Qsw)| |sessionshare|[Spring Boot 一个依赖搞定 session 共享,没有比这更简单的方案了!](https://mp.weixin.qq.com/s/xs67SzSkMLz6-HgZVxTDFw)| |restful|[Spring Boot 中 10 行代码构建 RESTful 风格应用](https://mp.weixin.qq.com/s/7uO87SOu93XH2Y3iWxWicg)| |shiro|[Spring Boot 整合 Shiro ,两种方式全总结!](https://mp.weixin.qq.com/s/JU_-gn-yZ4VJJXTZvo7nZQ)| |quartz|[Spring Boot 中实现定时任务的两种方式!](https://mp.weixin.qq.com/s/_20RYBkjKrB4tdpXI3hBOA)| |ehcache|[另一种缓存,Spring Boot 整合 Ehcache](https://mp.weixin.qq.com/s/i9a3VOf_GMN_UBQ-8tKi3A)| |thymeleaf|[极简 Spring Boot 整合 Thymeleaf 页面模板](https://mp.weixin.qq.com/s/7tgiuFceyZPHBZcLnPmkfw)| |exception|[Spring Boot 中关于自定义异常处理的套路!](https://mp.weixin.qq.com/s/w26MvCWQ1RO4CUJrfXi5AA)| |jdbctemplate|[Spring Boot数据持久化之JdbcTemplate](https://mp.weixin.qq.com/s/X4-e1cf3uZafg8XtMJeo_Q)| |jdbcmulti|[Spring Boot多数据源配置之JdbcTemplate](https://mp.weixin.qq.com/s/7po83-CAoryo1eglumW42Q)| |mybatis|[最简单的SpringBoot整合MyBatis教程](https://mp.weixin.qq.com/s/HOnX2XRDWrQ9oOKLo1ueKw)| |mybatismulti|[极简Spring Boot整合MyBatis多数据源](https://mp.weixin.qq.com/s/9YXwk2-4zIq60WFuy6nXdw)| |jpa|[是时候了解下Spring Boot整合 Jpa啦](http://www.javaboy.org/2019/0407/springboot-jpa.html)| |jpamulti|[Spring Boot 整合 Jpa 多数据源](http://www.javaboy.org/2019/0407/springboot-jpa-multi.html)| |jwt|[干货\|一个案例学会Spring Security 中使用 JWT!](https://mp.weixin.qq.com/s/riyFQSrkQBQBCyomE__fLA)| |security_json|[SpringSecurity登录使用JSON格式数据](https://mp.weixin.qq.com/s/X1t-VCxzxIcQKOAu-pJrdw)| |swagger2|[SpringBoot整合Swagger2,再也不用维护接口文档了!](https://mp.weixin.qq.com/s/iTsTqEeqT9K84S091ycdog)| |cors|[Spring Boot中通过CORS解决跨域问题](https://mp.weixin.qq.com/s/ASEJwiswLu1UCRE-e2twYQ)| |freemarker|[Spring Boot 整合 Freemarker,50 多行配置是怎么省略掉的?](https://mp.weixin.qq.com/s/zXwAy1dMlITqHOdBNeZEKg)| |mail|[Spring Boot 邮件发送的 5 种姿势!](https://mp.weixin.qq.com/s/8UiEMpono-hUrRVwvDjUgA)| |docker|[一键部署 Spring Boot 到远程 Docker 容器,就是这么秀!](https://mp.weixin.qq.com/s/vSCQLvQBYMYoPhdlO2v3XA)| |https|[Spring Boot 支持 Https 有那么难吗?](https://mp.weixin.qq.com/s/WOmOXN_IK0IMjL0_hlAOFA)| |jwt-demo|[Spring Security 结合 Jwt 实现无状态登录](https://mp.weixin.qq.com/s/Sn59dxwtsEWoj2wdynQuRQ)| |docker-jib|[别用 Dockerfile 部署 Spring Boot 啦!松哥教你两步搞定!](https://mp.weixin.qq.com/s/ZqWktjLUOzHNKOGE6BfHRA)| ## 松哥简介 大家好,我是江南一点雨,管理学学士,大学自学 Java 编程,从移动端到前端到后端均有涉猎,现在专注于 Java 微服务,我是 CSDN 博客专家、华为云云享专家、《Spring Boot + Vue全栈开发实战》 作者、运营了一个公众号 **江南一点雨**,专注于 Spring Boot + 微服务以及前后端分离技术分享,欢迎大家关注!关注公众号回复 2TB,领取松哥为大家精心准备的 Java 干货! ### 我的公众号 ![](http://www.javaboy.org/images/sb/javaboy.jpg) ### 我的站点 - 独立站点: http://www.javaboy.org - GitHub: https://github.com/lenve - CSDN: http://wangsong.blog.csdn.net - 思否: https://segmentfault.com/u/lenve - 博客园: https://www.cnblogs.com/lenve - 掘金: https://juejin.im/user/57d679af0bd1d000585012a7
0
qiurunze123/threadandjuc
⭐⭐⭐⭐高并发-高可靠-高性能three-high-import导入系统-高并发多线程进阶
demo guava java thread
> 邮箱 : [QiuRunZe_key@163.com](QiuRunZe_key@163.com) > Github : [https://github.com/qiurunze123](https://github.com/qiurunze123) > QQ : [3341386488](3341386488) > QQ群 : [453259026](453259026) > 转载等操作请联系我! 我更希望你在我的基础上重新自己写一版 #### :couple: 三高导入 兵马未动粮草先行 ### [three-high-import 高可用 高可靠 高性能 三高多线程导入系统(该项目意义为理论贯通)](/docs/code-solve.md) [![Travis](https://img.shields.io/badge/language-Java-yellow.svg)](https://github.com/qiurunze123) three-high-import 项目意义在于利用多线程进行千万级别导入,实现`可扩展`,`高性能`,`高可用`,`高可靠`三个高,本项目可以在千万级别数据实现无差别高性能数据上报 与导入,与普通导入相比性能提高10倍左右,而且规避风险在偶尔的机器宕机,网络波动等情况出现时,仍能够实现`数据一致`,`数据可靠`,`数据重试`,`数据报警`等功能,在一些重要数据 例如: 对账 , 账户金额,账单等,需要每日定时任务而且有高风险的数据实现数据无错误! 多线程从基础到进阶,分析入坑出坑,以及工作实操,最后会分享一个项目,针对如何进行大数据量(经测试几亿数据完全搞的定)进行安全高可用的策略, 示例为高可用高可靠高性能 三高导入系统 DEMO分析 ,如何进行数据分片,数据导入,计算,多线程策略等等 本文属于进阶系列,有问题或者更好的想法可以一起探讨! 一点小建议:学习本系列知识之前,如果你完全没接触过 `SpringBoot`、`CountDownLatch`、`线程池`、`工作队列`、`工作窃取等` 等,那么我建议你可以先在网上搜一下每一块知识的快速入门, 也可以下载本项目边做边学习, 我的项目完全是实战加讲解不想写一堆的文章,浪费我们的生命,你还不懂内层含义,想要明白就边实际操作边学习 加油💪💪 - 三高导入项目 - [表设计](/docs/code-solve.md)<br> - [数据如何分片](/docs/code-solve.md) - [如何实现高可用](/docs/code-solve.md)<br> - [如何实现高性能](/docs/code-solve.md)<br> - [如何实现高可靠](/docs/code-solve.md) - [如何自定义线程池以及使用与导入](/docs/code-solve.md) - [数据的导入性能(之前的老版本三高导入10万数据大概13s左右新版本还在开发)](/docs/code-solve.md) - [进行线程拆分分配资源 ](/docs/code-solve-split.md) ### [多线程之前更新版本 -- 请进代码路径:com.geek.threadandjuc](/docs/thread-base-1.md) ## 目录 #### :couple: Java多线程基础 - 多线程基础 - [你需要知道的几个概念](/docs/thread-base-0000.md)<br> - [多线程到底有几种实现方式](/docs/thread-base-000.md) - [多线程使用runnable与继承Thread类有什么区别](/docs/thread-base-001.md)<br> - [多线程如何正确优雅的中断线程](/docs/thread-base-002.md)<br> - [多线程的生命周期状态纽机流转错误错误说法](/docs/thread-base-003-1.md) - [多线程的生命周期状态纽机流转](/docs/thread-base-003.md) - [Thread和Object类](/docs/thread-base-003-2.md) - [多线程重要属性](/docs/thread-base-004.md) - [多线程异常处理机制](/docs/thread-base-005.md) - [多线程wait notify notifyall join sleep yield作用与方法详细解读](/docs/thread-base-006.md) - [多线程可能会带来什么问题](/docs/thread-base-007.md) - [多种单例模式](/docs/thread-base-008.md) - 并发容器 - [map简介](/docs/bfrq.md)<br> - [vector和HashTable](/docs/bfrq.md)<br> - [ConcurrentHashMap](/docs/bfrq.md)<br> - [CopyOnWriteArrayList](/docs/bfrq.md) - [BlockingQueue](/docs/bfrq.md)<br> #### :couple: 搞定ThreadLocal - 搞定ThreadLocal - [ThreadLocal定性使用场景介绍](/docs/ThreadLocal.md)<br> - [ThreadLocal一些方法使用](/docs/ThreadLocal.md)<br> - [ThreadLocal源码分析](/docs/ThreadLocal.md)<br> - [ThreadLocal内存泄露](/docs/ThreadLocal.md)<br> - [ThreadLocal如果避免内存泄露](/docs/ThreadLocal.md)<br> - [ThreadLocal在spring中的应用](/docs/ThreadLocal.md)<br> #### :couple: 线程池 - 线程池 - [JDK 线程池高度解析](/docs/thread-base-9.md)<br> - [线程池是什么](/docs/threadpool0001.md) - [多次创建线程的劣势](/docs/threadpool0001.md)<br> - [什么时候使用线程池](/docs/threadpool0001.md)<br> - [线程池的优势](/docs/threadpool0001.md) - [Executor框架](/docs/threadpool0001.md) - [如何使用钩子函数来进行线程池操作](/docs/threadpool0001.md) - [线程池的重点属性](/docs/threadpool0001.md) - [多线程重要属性](/docs/threadpool0001.md) - [线程池的具体实现](/docs/threadpool0001.md) - [线程池的创建](/docs/threadpool0001.md)Z - [线程池参数解释](/docs/threadpool0001.md) - [线程池监控](/docs/threadpool0001.md) - [线程池的源码分析](/docs/threadpool0001.md) - [execute方法](/docs/threadpool0001.md) - [addWorker方法](/docs/threadpool0001.md) - [Worker类](/docs/threadpool0001.md) - [runWorker方法](/docs/threadpool0001.md) - [getTask方法](/docs/threadpool0001.md) - [processWorkerExit方法](/docs/threadpool0001.md) - [小结](/docs/threadpool0001.md) - [processWorkerExit方法](/docs/threadpool0001.md) - [手写线程池代码](/docs/threadpool0001.md) #### :couple: 多线程进阶更新 - 线程池 - [多线程安全问题](/docs/JMM.md)<br> - [JMM多线程内存模型](/docs/JMM.md) - [JMM多线程内存模型](/docs/JMM-1.md)<br> - [死锁专题分析](/docs/dlock.md)<br> - [AQS--一切的基础 Doug Lee 是个天才](/docs/AQS.md) - [Future模式精度分析 Future 模式](/docs/Future.md) - [java并行程序基础](/docs/thread-base-3.md) - [java内存模型和线程安全](/docs/thread-base-4.md) - [valatile 专题解析](/docs/thread-base-5.md) - [无锁类 CAS , ABA , Atomic ......](/docs/thread-base-6.md) - [公平锁,非公平锁,可重入锁,递归锁,自旋锁](/docs/lock.md) - [阻塞队列.](/docs/blocking.md) - [ synchronized和lock 的区别 .](/docs/sandl.md) - [JDK并发包reentrantlock,condition , semaphone ,readwritelock ](/docs/thread-base-7.md) - [countDownLatch](/docs/CountDownLatch.md) - [reentrantlock 源码分析 ReentrantLockDetails](/docs/thread-base-7.md) - [JDK并发包 ConcurrentHashMap 精度分析](/docs/thread-base-8.md) - [JDK ForkJoin 模式精度分析](/docs/thread-base-10.md) - [JDK 单例模式 不变模式 Future模式 生产者 消费者](/docs/thread-base-11.md) - [NIO AIO 详解](/docs/thread-base-12.md) - [并发断点调试 JDK新特性](/docs/thread-base-13.md) - [锁优化 ](/docs/thread-base-13.md) - [数据伪共享 false—shareing disruptor](/docs/false-shareing.md) - [原子性小讲](/docs/atom.md) 更新此问题的出发点是 **disruptor框架和百度的分布式id生成策略** https://github.com/baidu/uid-generator/blob/master/README.zh_cn.md #### :couple: 多线程安全专题 - 线程池 - [一共有几类线程安全的问题](/docs/threadsafe001.md)<br> - [哪些场景需要额外注意线程安全问题](/docs/threadsafe001.md) - [多线程切换上下文](/docs/threadsafe001.md)<br> - [死锁特辑](/docs/threadsafe001.md)<br> ### 多线程juc 分享 https://github.com/qiurunze123/threadandjuc/blob/master/docs/threadinterview.md #### 不知不觉 更新了小半年 从基础到并发到项目直接应用 许多地方不是很好但是是对一个人的考验 从明白到应用到写出来是一个繁琐的过程 #### 耗时耗力不过很庆幸自己没有放弃终究是完成了 最后希望得到大家的指正与意见也希望帮助更多的人 千岩万壑不辞劳 远看方知出处高 溪涧岂能留得住 终归大海做波涛 2019/9/24
0
jlmd/AnimatedCircleLoadingView
An animated circle loading view
null
Animated Circle Loading View ========= [![Download](https://api.bintray.com/packages/jlmd/maven/AnimatedCircleLoadingView/images/download.svg) ](https://bintray.com/jlmd/maven/AnimatedCircleLoadingView/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AnimatedCircleLoadingView-green.svg?style=flat)](https://android-arsenal.com/details/1/2112) A determiante/indetermiante loading view animation. Based on [android-watch-loading-animation](http://www.materialup.com/posts/android-watch-loading-animation) by [Nils Banner](http://www.materialup.com/NilsMedia). How it looks ---- ![gif](./art/indeterminate_ok.gif "animation_ok") ![gif](./art/indeterminate_failure.gif "animation_failure") Usage ---- Add AnimatedCircleLoadingView to your layout and define mainColor and secondaryColor as custom attributes: ```java <com.github.jlmd.animatedcircleloadingview.AnimatedCircleLoadingView xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/circle_loading_view" android:layout_width="250dp" android:layout_height="250dp" android:background="@color/background" android:layout_centerInParent="true" app:animCircleLoadingView_mainColor="@color/main_color" app:animCircleLoadingView_secondaryColor="@color/secondary_color" app:animCircleLoadingView_textColor="@android:color/white" /> ``` ##### Determinate Start determinate: ```java animatedCircleLoadingView.startDeterminate(); ``` Modify percent: ```java animatedCircleLoadingView.setPercent(10); ``` If percent is 100, the animation ends with success animation. On error you must call stopFailure() method, then the application ends with failure animation. ##### Indeterminate Start indeterminate: ```java animatedCircleLoadingView.startIndeterminate(); ``` Stop with success: ```java animatedCircleLoadingView.stopOk(); ``` Stop with failure: ```java animatedCircleLoadingView.stopFailure(); ``` Reset loading: ```java animatedCircleLoadingView.resetLoading(); ``` Gradle dependency ---- Add repository to your build.gradle ```groovy repositories { maven { url "http://dl.bintray.com/jlmd/maven" } } ``` Add dependency to your build.gradle ```groovy compile 'com.github.jlmd:AnimatedCircleLoadingView:1.1.5@aar' ``` Developed by --- José Luis Martín - <joseluis.martind@gmail.com> * [LinkedIn](https://www.linkedin.com/in/jlmartind) * [Twitter](https://twitter.com/jlmartind) License ---- ``` Copyright 2015 José Luis Martín Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```
0
dunwu/java-tutorial
:coffee: 老司机在 Java 技术领域的十年积累。
null
<p align="center"> <a href="https://dunwu.github.io/java-tutorial/" target="_blank" rel="noopener noreferrer"> <img src="https://raw.githubusercontent.com/dunwu/images/master/common/dunwu-logo.png" alt="logo" width="150px"/> </a> </p> <p align="center"> <a href="https://github.com/dunwu/java-tutorial"> <img alt="star" class="no-zoom" src="https://img.shields.io/github/stars/dunwu/java-tutorial?style=for-the-badge"> </a> <a href="https://github.com/dunwu/java-tutorial"> <img alt="fork" class="no-zoom" src="https://img.shields.io/github/forks/dunwu/java-tutorial?style=for-the-badge"> </a> <a href="https://github.com/dunwu/java-tutorial/commits/master"> <img alt="build" class="no-zoom" src="https://img.shields.io/github/actions/workflow/status/dunwu/java-tutorial/deploy.yml?style=for-the-badge"> </a> <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"> <img alt="code style" class="no-zoom" src="https://img.shields.io/github/license/dunwu/java-tutorial?style=for-the-badge"> </a> </p> <h1 align="center">JavaTutorial</h1> > ☕ **java-tutorial** 是一个 Java 教程,汇集一个老司机在 Java 领域的十年积累。 > > - 🔁 项目同步维护:[Github](https://github.com/dunwu/java-tutorial/) | [Gitee](https://gitee.com/turnon/java-tutorial/) > - 📖 电子书阅读:[Github Pages](https://dunwu.github.io/java-tutorial/) | [Gitee Pages](https://turnon.gitee.io/java-tutorial/) > > 说明: > > - 下面的内容清单中,凡是有 📚 标记的技术,都已整理成详细的教程。 > - 部分技术因为可以应用于不同领域,所以可能会同时出现在不同的类别下。 ## 📖 内容 ### JavaSE > 📚 [javacore](https://dunwu.github.io/javacore/) 是一个 Java 核心技术教程。内容包含:Java 基础特性、Java 高级特性、Java 并发、JVM、Java IO 等。 ### JavaEE #### JavaWeb - [JavaWeb 面经](docs/02.JavaEE/01.JavaWeb/99.JavaWeb面经.md) - [JavaWeb 之 Servlet 指南](docs/02.JavaEE/01.JavaWeb/01.JavaWeb之Servlet指南.md) - [JavaWeb 之 Jsp 指南](docs/02.JavaEE/01.JavaWeb/02.JavaWeb之Jsp指南.md) - [JavaWeb 之 Filter 和 Listener](docs/02.JavaEE/01.JavaWeb/03.JavaWeb之Filter和Listener.md) - [JavaWeb 之 Cookie 和 Session](docs/02.JavaEE/01.JavaWeb/04.JavaWeb之Cookie和Session.md) #### Java 服务器 > Tomcat 和 Jetty 都是 Java 比较流行的轻量级服务器。 > > Nginx 是目前最流行的反向代理服务器,也常用于负载均衡。 - [Tomcat 快速入门](docs/02.JavaEE/02.服务器/01.Tomcat/01.Tomcat快速入门.md) - [Tomcat 连接器](docs/02.JavaEE/02.服务器/01.Tomcat/02.Tomcat连接器.md) - [Tomcat 容器](docs/02.JavaEE/02.服务器/01.Tomcat/03.Tomcat容器.md) - [Tomcat 优化](docs/02.JavaEE/02.服务器/01.Tomcat/04.Tomcat优化.md) - [Tomcat 和 Jetty](docs/02.JavaEE/02.服务器/01.Tomcat/05.Tomcat和Jetty.md) - [Jetty](docs/02.JavaEE/02.服务器/02.Jetty.md) ### Java 软件 #### Java 构建 > Java 项目需要通过 [**构建工具**](docs/11.软件/01.构建) 来管理项目依赖,完成编译、打包、发布、生成 JavaDoc 等任务。 > > - 目前最主流的构建工具是 Maven,它的功能非常强大。 > - Gradle 号称是要替代 Maven 等构件工具,它的版本管理确实简洁,但是需要学习 Groovy,学习成本比 Maven 高。 > - Ant 功能比 Maven 和 Gradle 要弱,现代 Java 项目基本不用了,但也有一些传统的 Java 项目还在使用。 - [Maven](docs/11.软件/01.构建/01.Maven) 📚 - [Maven 快速入门](docs/11.软件/01.构建/01.Maven/01.Maven快速入门.md) - [Maven 教程之 pom.xml 详解](docs/11.软件/01.构建/01.Maven/02.Maven教程之pom.xml详解.md) - [Maven 教程之 settings.xml 详解](docs/11.软件/01.构建/01.Maven/03.Maven教程之settings.xml详解.md) - [Maven 实战问题和最佳实践](docs/11.软件/01.构建/01.Maven/04.Maven实战问题和最佳实践.md) - [Maven 教程之发布 jar 到私服或中央仓库](docs/11.软件/01.构建/01.Maven/05.Maven教程之发布jar到私服或中央仓库.md) - [Maven 插件之代码检查](docs/11.软件/01.构建/01.Maven/06.Maven插件之代码检查.md) - [Ant 简易教程](docs/11.软件/01.构建/02.Ant.md) #### Java IDE > 自从有了 [**IDE**](docs/11.软件/02.IDE),写代码从此就告别了刀耕火种的蛮荒时代。 > > - [Eclipse](docs/11.软件/02.IDE/02.Eclipse.md) 是久负盛名的开源 Java IDE,我的学生时代一直使用它写 Java。 > - 曾经抗拒从转 [Intellij Idea](docs/11.软件/02.IDE/01.Intellij.md) ,但后来发现真香,不得不说,确实是目前最优秀的 Java IDE。 > - 你可以在 [vscode](docs/11.软件/02.IDE/03.VsCode.md) 中写各种语言,只要安装相应插件即可。如果你的项目中使用了很多种编程语言,又懒得在多个 IDE 之间切换,那么就用 vscode 来一网打尽吧。 - [Intellij Idea](docs/11.软件/02.IDE/01.Intellij.md) - [Eclipse](docs/11.软件/02.IDE/02.Eclipse.md) - [vscode](docs/11.软件/02.IDE/03.VsCode.md) #### Java 监控诊断 > [监控/诊断](docs/11.软件/03.监控诊断) 工具主要用于 Java 应用的运维。通过采集、分析、存储、可视化应用的有效数据,帮助开发者、使用者快速定位问题,找到性能瓶颈。 - [监控工具对比](docs/11.软件/03.监控诊断/01.监控工具对比.md) - [CAT](docs/11.软件/03.监控诊断/02.CAT.md) - [Zipkin](docs/11.软件/03.监控诊断/03.Zipkin.md) - [SkyWalking](docs/11.软件/03.监控诊断/04.Skywalking.md) - [Arthas](docs/11.软件/03.监控诊断/05.Arthas.md) ### Java 工具 #### Java IO - [JSON 序列化](docs/12.工具/01.IO/01.JSON序列化.md) - [fastjson](https://github.com/alibaba/fastjson)、[Jackson](https://github.com/FasterXML/jackson)、[Gson](https://github.com/google/gson) - [二进制序列化](docs/12.工具/01.IO/02.二进制序列化.md) - [Protobuf](https://developers.google.com/protocol-buffers)、[Thrift](https://thrift.apache.org/)、[Hessian](http://hessian.caucho.com/)、[Kryo](https://github.com/EsotericSoftware/kryo)、[FST](https://github.com/RuedigerMoeller/fast-serialization) #### JavaBean 工具 - [Lombok](docs/12.工具/02.JavaBean/01.Lombok.md) - [Dozer](docs/12.工具/02.JavaBean/02.Dozer.md) #### Java 模板引擎 - [Freemark](docs/12.工具/03.模板引擎/01.Freemark.md) - [Velocity](docs/12.工具/03.模板引擎/03.Velocity.md) - [Thymeleaf](docs/12.工具/03.模板引擎/02.Thymeleaf.md) #### Java 测试工具 - [Junit](docs/12.工具/04.测试/01.Junit.md) - [Mockito](docs/12.工具/04.测试/02.Mockito.md) - [Jmeter](docs/12.工具/04.测试/03.Jmeter.md) - [JMH](docs/12.工具/04.测试/04.JMH.md) #### 其他 - [Java 日志](docs/12.工具/99.其他/01.Java日志.md) - [Java 工具包](docs/12.工具/99.其他/02.Java工具包.md) - [Reflections](docs/12.工具/99.其他/03.Reflections.md) - [JavaMail](docs/12.工具/99.其他/04.JavaMail.md) - [Jsoup](docs/12.工具/99.其他/05.Jsoup.md) - [Thumbnailator](docs/12.工具/99.其他/06.Thumbnailator.md) - [Zxing](docs/12.工具/99.其他/07.Zxing.md) ### Java 框架 #### ORM - [Mybatis 快速入门](docs/13.框架/11.ORM/01.Mybatis快速入门.md) - [Mybatis 原理](docs/13.框架/11.ORM/02.Mybatis原理.md) #### Spring 📚 [spring-tutorial](https://dunwu.github.io/spring-tutorial/) 是一个 Spring 实战教程。 #### Spring Boot 📚 [Spring Boot 教程](https://dunwu.github.io/spring-boot-tutorial/) 是一个 Spring Boot 实战教程。 #### 安全 > Java 领域比较流行的安全框架就是 shiro 和 spring-security。 > > shiro 更为简单、轻便,容易理解,能满足大多数基本安全场景下的需要。 > > spring-security 功能更丰富,也比 shiro 更复杂。值得一提的是由于 spring-security 是 spring 团队开发,所以集成 spring 和 spring-boot 框架更容易。 - [Shiro](docs/13.框架/12.安全/01.Shiro.md) - [SpringSecurity](docs/13.框架/12.安全/02.SpringSecurity.md) #### IO - [Shiro](docs/13.框架/13.IO/01.Netty.md) #### 微服务 - [Dubbo](docs/13.框架/14.微服务/01.Dubbo.md) ### Java 中间件 #### MQ > 消息队列(Message Queue,简称 MQ)技术是分布式应用间交换信息的一种技术。 > > 消息队列主要解决应用耦合,异步消息,流量削锋等问题,实现高性能,高可用,可伸缩和最终一致性架构。是大型分布式系统不可缺少的中间件。 > > 如果想深入学习各种消息队列产品,建议先了解一下 [消息队列基本原理](https://dunwu.github.io/blog/pages/1fd240/) ,有助于理解消息队列特性的实现和设计思路。 - [消息队列面试](docs/14.中间件/01.MQ/01.消息队列面试.md) - [消息队列基本原理](docs/14.中间件/01.MQ/02.消息队列基本原理.md) - [RocketMQ](docs/14.中间件/01.MQ/03.RocketMQ.md) - [ActiveMQ](docs/14.中间件/01.MQ/04.ActiveMQ.md) #### 缓存 > 缓存可以说是优化系统性能的第一手段,在各种技术中都会有缓存的应用。 > > 如果想深入学习缓存,建议先了解一下 [缓存基本原理](https://dunwu.github.io/design/distributed/分布式缓存.html),有助于理解缓存的特性、原理,使用缓存常见的问题及解决方案。 - [缓存面试题](docs/14.中间件/02.缓存/01.缓存面试题.md) - [Java 缓存中间件](docs/14.中间件/02.缓存/02.Java缓存中间件.md) - [Memcached 快速入门](docs/14.中间件/02.缓存/03.Memcached.md) - [Ehcache 快速入门](docs/14.中间件/02.缓存/04.Ehcache.md) - [Java 进程内缓存](docs/14.中间件/02.缓存/05.Java进程内缓存.md) - [Http 缓存](docs/14.中间件/02.缓存/06.Http缓存.md) #### 流量控制 - [Hystrix](docs/14.中间件/03.流量控制/01.Hystrix.md) ### [大数据](https://dunwu.github.io/bigdata-tutorial) > 大数据技术点以归档在:[bigdata-tutorial](https://dunwu.github.io/bigdata-tutorial) - [Hdfs](https://dunwu.github.io/bigdata-tutorial/hdfs) 📚 - [Hbase](https://dunwu.github.io/bigdata-tutorial/hbase) 📚 - [Hive](https://dunwu.github.io/bigdata-tutorial/hive) 📚 - [MapReduce](https://dunwu.github.io/bigdata-tutorial/mapreduce) - [Yarn](https://dunwu.github.io/bigdata-tutorial/yarn) - [ZooKeeper](https://dunwu.github.io/bigdata-tutorial/zookeeper) 📚 - [Kafka](https://dunwu.github.io/bigdata-tutorial/kafka) 📚 - Spark - Storm - [Flink](https://dunwu.github.io/bigdata-tutorial/tree/master/docs/flink) ## 📚 资料 - Java 经典书籍 - [《Effective Java 中文版》](https://item.jd.com/12507084.html) - 本书介绍了在 Java 编程中 78 条极具实用价值的经验规则,这些经验规则涵盖了大多数开发人员每天所面临的问题的解决方案。同推荐《重构 : 改善既有代码的设计》、《代码整洁之道》、《代码大全》,有一定的内容重叠。 - [《Java 并发编程实战》](https://item.jd.com/10922250.html) - 本书深入浅出地介绍了 Java 线程和并发,是一本完美的 Java 并发参考手册。 - [《深入理解 Java 虚拟机》](https://item.jd.com/11252778.html) - 不去了解 JVM 的工程师,和咸鱼有什么区 - [《Maven 实战》](https://item.jd.com/10476794.html) - 国内最权威的 Maven 专家的力作,唯一一本哦! - 其他领域书籍 - [《Redis 设计与实现》](https://item.jd.com/11486101.html) - 系统而全面地描述了 Redis 内部运行机制。图示丰富,描述清晰,并给出大量参考信息,是 NoSQL 数据库开发人员案头必备。 - [《鸟哥的 Linux 私房菜 (基础学习篇)》](https://item.jd.com/12443890.html) - 本书是最具知名度的 Linux 入门书《鸟哥的 Linux 私房菜基础学习篇》的最新版,全面而详细地介绍了 Linux 操作系统。内容非常全面,建议挑选和自己实际工作相关度较高的,其他部分有需要再阅读。 - [《Head First 设计模式》](https://item.jd.com/10100236.html) - 《Head First 设计模式》(中文版)共有 14 章,每章都介绍了几个设计模式,完整地涵盖了四人组版本全部 23 个设计模式。 - [《HTTP 权威指南》](https://item.jd.com/11056556.html) - 本书尝试着将 HTTP 中一些互相关联且常被误解的规则梳理清楚,并编写了一系列基于各种主题的章节,对 HTTP 各方面的特性进行了介绍。纵观全书,对 HTTP“为什么”这样做进行了详细的解释,而不仅仅停留在它是“怎么做”的。 - [《TCP/IP 详解 系列》](https://item.jd.com/11966296.html) - 完整而详细的 TCP/IP 协议指南。针对任何希望理解 TCP/IP 协议是如何实现的读者设计。 - [《剑指 Offer:名企面试官精讲典型编程题》](https://item.jd.com/12163054.html) - 剖析了 80 个典型的编程面试题,系统整理基础知识、代码质量、解题思路、优化效率和综合能力这 5 个面试要点。 ## 🚪 传送 ◾ 🏠 [JAVA-TUTORIAL 首页](https://github.com/dunwu/java-tutorial) ◾ 🎯 [我的博客](https://github.com/dunwu/blog) ◾ > 你可能会感兴趣: - [Java 教程](https://github.com/dunwu/java-tutorial) 📚 - [JavaCore 教程](https://dunwu.github.io/javacore/) 📚 - [Spring 教程](https://dunwu.github.io/spring-tutorial/) 📚 - [Spring Boot 教程](https://dunwu.github.io/spring-boot-tutorial/) 📚 - [数据库教程](https://dunwu.github.io/db-tutorial/) 📚 - [数据结构和算法教程](https://dunwu.github.io/algorithm-tutorial/) 📚 - [Linux 教程](https://dunwu.github.io/linux-tutorial/) 📚 - [Nginx 教程](https://github.com/dunwu/nginx-tutorial/) 📚
0
sanluan/PublicCMS
More than 2 million lines of code modification continuously iterated for 7 years to modernize java cms, easily supporting tens of millions of data, tens of millions of PV; Support static, server side includes; Currently has 0.0005% of the world's users (w3techs provided data), language support in Chinese, Japanese, English
cms freemarker gradle hibernate hibernate-search java maven publiccms springboot static-site-generator
# PublicCMS V4.0 <p style="align:center"> English | <a href="./README.zh-CN.md">简体中文</a> </p> <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=xoxCUvv7bDCFQ8AAqaoWB1JsLz0L90qn">QQ Group 1</a> 191381542 <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=x15JZdCp8vWlxV1mMoMTyrHzMqw3dmI1">QQ Group 2</a> 481589563 <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=VogNtcpFOLxvjtvzUcAElZOK-KC4To_u">QQ Group 3</a> 638756883 <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=lsFbfVpj3yqWuY92GYkOG1esbyPNS7O3">QQ Group 4</a> 930992232 ## Introduction PublicCMS is an open source JAVACMS system developed with mainstream technologies in 2023. Developed by Tianjin Black Core Technology Co., LTD., the structure is scientific, easily support tens of millions of data, tens of millions of PV; Support visual editing, multi-dimensional expansion, full-text search, static site, SSI, dynamic page local static, URL rules completely customized for you to quickly build a site, large-scale site to provide a powerful drive, is also a good choice for enterprise project product prototype. ## Get the source code https://gitee.com/sanluan/PublicCMS https://github.com/sanluan/PublicCMS ## Participate in development Switch to the develop branch and the free version to the V2019 branch ## Licensing agreement * Version :V4.0,V5 Free for individuals and paid for enterprises: See LICENSE for details * Version :V1.0,V2016,V2017,V2019 Completely free license agreement :MIT ## Environmental requirements * jdk or jre 1.8 and later * mysql 5.5 and later ## Directory description * data\publiccms PublicCMS data directory * doc document * publiccms-parent project source code ## Fast compile and run * Compile and run Ensure that the operating system (OS) runs jdk1.8 or later ``` cd publiccms-parent mvnw clean package cd publiccms/target java -jar publiccms.war ``` Visit the program page http://localhost:8080/ and follow the prompts to configure and initialize the database Management background to visit relative paths for http://localhost:8080/admin/ * direct download an executable program (https://www.publiccms.com/download.html) Prepare java and mysql environments locally, download executable programs, compress and decompress them, and run startup.bat or startup.sh ## Customize the operation mode * windows startup command ``` java -jar -Dfile.encoding="UTF-8" -Dcms.port=8080 -Dcms.contextPath=/publiccms -Dcms.filePath="%cd%\data\publiccms" publiccms.war ``` * linux startup command ``` java -jar -Dfile.encoding="UTF-8" -Dcms.port=8080 -Dcms.contextPath=/publiccms -Dcms.filePath="`pwd`/data/publiccms" publiccms.war ``` For details about the parameters and their meanings, see the deployment manual * Run in tomcat Rename publiccms.war.original to publiccms.war or ROOT.war(the context path is /) and move the file to the tomcat webapps directory,The "-Dcms.filePath" parameter is still valid * Run in docker Execute: ``` docker run -d -p 8080:8080 sanluan/publiccms ``` Build your own image Execute: ``` docker build -t mypubliccms . docker run -d -p 8080:8080 mypubliccms ``` * Run in docker compose Execute: ``` docker compose up -d ``` mysql host/port : mysql-cms/3306 ; user/password : publiccms/password!@# More parameters, please refer to https://hub.docker.com/r/sanluan/publiccms/ ## Demonstration * the demo site : https://www.publiccms.com/ * the background demo : https://cms.publiccms.com/admin/ demo account/password test/test * interface demo: https://cms.publiccms.com/interface.html ## Public CMS architecture diagram ![](doc/images/structure.png) ## Public CMS Management - English ![](doc/images/management_en.png) ## Public CMS 管理バックグラウンド - 日本語 ![](doc/images/management_ja.png) ## Public CMS管理后台 - 中文 ![](doc/images/management.png) ## Public CMS管理後臺 - 繁體 ![](doc/images/management_traditional_cn.png)
0
ltsopensource/light-task-scheduler
Distributed Scheduled Job Framework
java lts spi spring springboot task
# LTS用户文档 LTS(light-task-scheduler)主要用于解决分布式任务调度问题,支持实时任务,定时任务和Cron任务。有较好的伸缩性,扩展性,健壮稳定性而被多家公司使用,同时也希望开源爱好者一起贡献。 ## ---> 底部有招人帖 ## 项目地址 github地址: [https://github.com/ltsopensource/light-task-scheduler](https://github.com/ltsopensource/light-task-scheduler) oschina地址: [http://git.oschina.net/hugui/light-task-scheduler](http://git.oschina.net/hugui/light-task-scheduler) 例子: [https://github.com/ltsopensource/lts-examples](https://github.com/ltsopensource/lts-examples) 文档地址(正在更新中,后面以这个为准): [https://www.gitbook.com/book/qq254963746/lts/details](https://www.gitbook.com/book/qq254963746/lts/details) 这两个地址都会同步更新。感兴趣,请加QQ群:109500214 (加群密码: hello world)一起探讨、完善。越多人支持,就越有动力去更新,喜欢记得右上角star哈。 ## 1.7.2-SNAPSHOT(master)变更主要点 1. 优化JobContext中的BizLogger,由原来的去掉了threadlocal,解决taskTracker多线程的问题, 去掉LtsLoggerFactory.getLogger()用法 ## 框架概况 LTS 有主要有以下四种节点: * JobClient:主要负责提交任务, 并接收任务执行反馈结果。 * JobTracker:负责接收并分配任务,任务调度。 * TaskTracker:负责执行任务,执行完反馈给JobTracker。 * LTS-Admin:(管理后台)主要负责节点管理,任务队列管理,监控管理等。 其中JobClient,JobTracker,TaskTracker节点都是`无状态`的。 可以部署多个并动态的进行删减,来实现负载均衡,实现更大的负载量, 并且框架采用FailStore策略使LTS具有很好的容错能力。 LTS注册中心提供多种实现(Zookeeper,redis等),注册中心进行节点信息暴露,master选举。(Mongo or Mysql)存储任务队列和任务执行日志, netty or mina做底层通信, 并提供多种序列化方式fastjson, hessian2, java等。 LTS支持任务类型: * 实时任务:提交了之后立即就要执行的任务。 * 定时任务:在指定时间点执行的任务,譬如 今天3点执行(单次)。 * Cron任务:CronExpression,和quartz类似(但是不是使用quartz实现的)譬如 0 0/1 * * * ? 支持动态修改任务参数,任务执行时间等设置,支持后台动态添加任务,支持Cron任务暂停,支持手动停止正在执行的任务(有条件),支持任务的监控统计,支持各个节点的任务执行监控,JVM监控等等. ## 架构图 ![LTS architecture](http://git.oschina.net/hugui/light-task-scheduler/raw/master/docs/LTS_architecture.png?dir=0&filepath=docs%2FLTS_architecture.png&oid=262a5234534e2d9fa8862f3e632c5551ebd95e21&sha=d01be5d59e8d768f49bbdc66c8334c37af8f7af5) ## 概念说明 ### 节点组 1. 英文名称 NodeGroup,一个节点组等同于一个小的集群,同一个节点组中的各个节点是对等的,等效的,对外提供相同的服务。 2. 每个节点组中都有一个master节点,这个master节点是由LTS动态选出来的,当一个master节点挂掉之后,LTS会立马选出另外一个master节点,框架提供API监听接口给用户。 ### FailStore 1. 顾名思义,这个主要是用于失败了存储的,主要用于节点容错,当远程数据交互失败之后,存储在本地,等待远程通信恢复的时候,再将数据提交。 2. FailStore主要用户JobClient的任务提交,TaskTracker的任务反馈,TaskTracker的业务日志传输的场景下。 3. FailStore目前提供几种实现:leveldb,rocksdb,berkeleydb,mapdb,ltsdb,用于可以自由选择使用哪种,用户也可以采用SPI扩展使用自己的实现。 ## 流程图 下图是一个标准的实时任务执行流程。 ![LTS progress](http://git.oschina.net/hugui/light-task-scheduler/raw/master/docs/LTS_progress.png?dir=0&filepath=docs%2FLTS_progress.png&oid=22f60a83b51b26bac8dabbb5053ec9913cefc45c&sha=774aa73d186470aedbb8f4da3c04a86a6022be05) ## LTS-Admin新版界面预览 ![LTS Admin](http://git.oschina.net/hugui/light-task-scheduler/raw/master/docs/LTS-Admin/LTS-Admin-cron-job-queue.png?dir=0&filepath=docs%2FLTS-Admin%2FLTS-Admin-cron-job-queue.png&oid=aecaf01bca5270a53b144891baaa3d7e56d47706&sha=a4fd9f31df9e1fc6d389a16bdc8d1964bb854766) 目前后台带有由[ztajy](https://github.com/ztajy)提供的一个简易的认证功能. 用户名密码在auth.cfg中,用户自行修改. ## 特性 ### 1、Spring支持 LTS可以完全不用Spring框架,但是考虑到很用用户项目中都是用了Spring框架,所以LTS也提供了对Spring的支持,包括Xml和注解,引入`lts-spring.jar`即可。 ### 2、业务日志记录器 在TaskTracker端提供了业务日志记录器,供应用程序使用,通过这个业务日志器,可以将业务日志提交到JobTracker,这些业务日志可以通过任务ID串联起来,可以在LTS-Admin中实时查看任务的执行进度。 ### 3、SPI扩展支持 SPI扩展可以达到零侵入,只需要实现相应的接口,并实现即可被LTS使用,目前开放出来的扩展接口有 1. 对任务队列的扩展,用户可以不选择使用mysql或者mongo作为队列存储,也可以自己实现。 2. 对业务日志记录器的扩展,目前主要支持console,mysql,mongo,用户也可以通过扩展选择往其他地方输送日志。 ### 4、故障转移 当正在执行任务的TaskTracker宕机之后,JobTracker会立马将分配在宕机的TaskTracker的所有任务再分配给其他正常的TaskTracker节点执行。 ### 5、节点监控 可以对JobTracker,TaskTracker节点进行资源监控,任务监控等,可以实时的在LTS-Admin管理后台查看,进而进行合理的资源调配。 ### 6、多样化任务执行结果支持 LTS框架提供四种执行结果支持,`EXECUTE_SUCCESS`,`EXECUTE_FAILED`,`EXECUTE_LATER`,`EXECUTE_EXCEPTION`,并对每种结果采取相应的处理机制,譬如重试。 * EXECUTE_SUCCESS: 执行成功,这种情况,直接反馈客户端(如果任务被设置了要反馈给客户端)。 * EXECUTE_FAILED:执行失败,这种情况,直接反馈给客户端,不进行重试。 * EXECUTE_LATER:稍后执行(需要重试),这种情况,不反馈客户端,重试策略采用1min,2min,3min的策略,默认最大重试次数为10次,用户可以通过参数设置修改这个重试次数。 * EXECUTE_EXCEPTION:执行异常, 这种情况也会重试(重试策略,同上) ### 7、FailStore容错 采用FailStore机制来进行节点容错,Fail And Store,不会因为远程通信的不稳定性而影响当前应用的运行。具体FailStore说明,请参考概念说明中的FailStore说明。 ## 项目编译打包 项目主要采用maven进行构建,目前提供shell脚本的打包。 环境依赖:`Java(jdk1.6+)` `Maven` 用户使用一般分为两种: ### 1、Maven构建 可以通过maven命令将lts的jar包上传到本地仓库中。在父pom.xml中添加相应的repository,并用deploy命令上传即可。具体引用方式可以参考lts中的例子即可。 ### 2、直接Jar引用 需要将lts的各个模块打包成单独的jar包,并且将所有lts依赖包引入。具体引用哪些jar包可以参考lts中的例子即可。 ## JobTracker和LTS-Admin部署 提供`(cmd)windows`和`(shell)linux`两种版本脚本来进行编译和部署: 1. 运行根目录下的`sh build.sh`或`build.cmd`脚本,会在`dist`目录下生成`lts-{version}-bin`文件夹 2. 下面是其目录结构,其中bin目录主要是JobTracker和LTS-Admin的启动脚本。`jobtracker` 中是 JobTracker的配置文件和需要使用到的jar包,`lts-admin`是LTS-Admin相关的war包和配置文件。 lts-{version}-bin的文件结构 ```java -- lts-${version}-bin |-- bin | |-- jobtracker.cmd | |-- jobtracker.sh | |-- lts-admin.cmd | |-- lts-admin.sh | |-- lts-monitor.cmd | |-- lts-monitor.sh | |-- tasktracker.sh |-- conf | |-- log4j.properties | |-- lts-admin.cfg | |-- lts-monitor.cfg | |-- readme.txt | |-- tasktracker.cfg | |-- zoo | |-- jobtracker.cfg | |-- log4j.properties | |-- lts-monitor.cfg |-- lib | |-- *.jar |-- war |-- jetty | |-- lib | |-- *.jar |-- lts-admin.war ``` 3. JobTracker启动。如果你想启动一个节点,直接修改下`conf/zoo`下的配置文件,然后运行 `sh jobtracker.sh zoo start`即可,如果你想启动两个JobTracker节点,那么你需要拷贝一份zoo,譬如命名为`zoo2`,修改下`zoo2`下的配置文件,然后运行`sh jobtracker.sh zoo2 start`即可。logs文件夹下生成`jobtracker-zoo.out`日志。 4. LTS-Admin启动.修改`conf/lts-monitor.cfg`和`conf/lts-admin.cfg`下的配置,然后运行`bin`下的`sh lts-admin.sh`或`lts-admin.cmd`脚本即可。logs文件夹下会生成`lts-admin.out`日志,启动成功在日志中会打印出访问地址,用户可以通过这个访问地址访问了。 ## JobClient(部署)使用 需要引入lts的jar包有`lts-jobclient-{version}.jar`,`lts-core-{version}.jar` 及其它第三方依赖jar。 ### API方式启动 ```java JobClient jobClient = new RetryJobClient(); jobClient.setNodeGroup("test_jobClient"); jobClient.setClusterName("test_cluster"); jobClient.setRegistryAddress("zookeeper://127.0.0.1:2181"); jobClient.start(); // 提交任务 Job job = new Job(); job.setTaskId("3213213123"); job.setParam("shopId", "11111"); job.setTaskTrackerNodeGroup("test_trade_TaskTracker"); // job.setCronExpression("0 0/1 * * * ?"); // 支持 cronExpression表达式 // job.setTriggerTime(new Date()); // 支持指定时间执行 Response response = jobClient.submitJob(job); ``` ### Spring XML方式启动 ```java <bean id="jobClient" class="com.github.ltsopensource.spring.JobClientFactoryBean"> <property name="clusterName" value="test_cluster"/> <property name="registryAddress" value="zookeeper://127.0.0.1:2181"/> <property name="nodeGroup" value="test_jobClient"/> <property name="masterChangeListeners"> <list> <bean class="com.github.ltsopensource.example.support.MasterChangeListenerImpl"/> </list> </property> <property name="jobFinishedHandler"> <bean class="com.github.ltsopensource.example.support.JobFinishedHandlerImpl"/> </property> <property name="configs"> <props> <!-- 参数 --> <prop key="job.fail.store">leveldb</prop> </props> </property> </bean> ``` ### Spring 全注解方式 ```java @Configuration public class LTSSpringConfig { @Bean(name = "jobClient") public JobClient getJobClient() throws Exception { JobClientFactoryBean factoryBean = new JobClientFactoryBean(); factoryBean.setClusterName("test_cluster"); factoryBean.setRegistryAddress("zookeeper://127.0.0.1:2181"); factoryBean.setNodeGroup("test_jobClient"); factoryBean.setMasterChangeListeners(new MasterChangeListener[]{ new MasterChangeListenerImpl() }); Properties configs = new Properties(); configs.setProperty("job.fail.store", "leveldb"); factoryBean.setConfigs(configs); factoryBean.afterPropertiesSet(); return factoryBean.getObject(); } } ``` ## TaskTracker(部署使用) 需要引入lts的jar包有`lts-tasktracker-{version}.jar`,`lts-core-{version}.jar` 及其它第三方依赖jar。 ### 定义自己的任务执行类 ```java public class MyJobRunner implements JobRunner { @Override public Result run(JobContext jobContext) throws Throwable { try { // TODO 业务逻辑 // 会发送到 LTS (JobTracker上) jobContext.getBizLogger().info("测试,业务日志啊啊啊啊啊"); } catch (Exception e) { return new Result(Action.EXECUTE_FAILED, e.getMessage()); } return new Result(Action.EXECUTE_SUCCESS, "执行成功了,哈哈"); } } ``` ### API方式启动 ```java TaskTracker taskTracker = new TaskTracker(); taskTracker.setJobRunnerClass(MyJobRunner.class); taskTracker.setRegistryAddress("zookeeper://127.0.0.1:2181"); taskTracker.setNodeGroup("test_trade_TaskTracker"); taskTracker.setClusterName("test_cluster"); taskTracker.setWorkThreads(20); taskTracker.start(); ``` ### Spring XML方式启动 ```java <bean id="taskTracker" class="com.github.ltsopensource.spring.TaskTrackerAnnotationFactoryBean" init-method="start"> <property name="jobRunnerClass" value="com.github.ltsopensource.example.support.MyJobRunner"/> <property name="bizLoggerLevel" value="INFO"/> <property name="clusterName" value="test_cluster"/> <property name="registryAddress" value="zookeeper://127.0.0.1:2181"/> <property name="nodeGroup" value="test_trade_TaskTracker"/> <property name="workThreads" value="20"/> <property name="masterChangeListeners"> <list> <bean class="com.github.ltsopensource.example.support.MasterChangeListenerImpl"/> </list> </property> <property name="configs"> <props> <prop key="job.fail.store">leveldb</prop> </props> </property> </bean> ``` ### Spring注解方式启动 ```java @Configuration public class LTSSpringConfig implements ApplicationContextAware { private ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; } @Bean(name = "taskTracker") public TaskTracker getTaskTracker() throws Exception { TaskTrackerAnnotationFactoryBean factoryBean = new TaskTrackerAnnotationFactoryBean(); factoryBean.setApplicationContext(applicationContext); factoryBean.setClusterName("test_cluster"); factoryBean.setJobRunnerClass(MyJobRunner.class); factoryBean.setNodeGroup("test_trade_TaskTracker"); factoryBean.setBizLoggerLevel("INFO"); factoryBean.setRegistryAddress("zookeeper://127.0.0.1:2181"); factoryBean.setMasterChangeListeners(new MasterChangeListener[]{ new MasterChangeListenerImpl() }); factoryBean.setWorkThreads(20); Properties configs = new Properties(); configs.setProperty("job.fail.store", "leveldb"); factoryBean.setConfigs(configs); factoryBean.afterPropertiesSet(); // factoryBean.start(); return factoryBean.getObject(); } } ``` ## 参数说明 [参数说明](https://qq254963746.gitbooks.io/lts/content/use/config-name.html) ## 使用建议 一般在一个JVM中只需要一个JobClient实例即可,不要为每种任务都新建一个JobClient实例,这样会大大的浪费资源,因为一个JobClient可以提交多种任务。相同的一个JVM一般也尽量保持只有一个TaskTracker实例即可,多了就可能造成资源浪费。当遇到一个TaskTracker要运行多种任务的时候,请参考下面的 "一个TaskTracker执行多种任务"。 ## 一个TaskTracker执行多种任务 有的时候,业务场景需要执行多种任务,有些人会问,是不是要每种任务类型都要一个TaskTracker去执行。我的答案是否定的,如果在一个JVM中,最好使用一个TaskTracker去运行多种任务,因为一个JVM中使用多个TaskTracker实例比较浪费资源(当然当你某种任务量比较多的时候,可以将这个任务单独使用一个TaskTracker节点来执行)。那么怎么才能实现一个TaskTracker执行多种任务呢。下面是我给出来的参考例子。 ```java /** * 总入口,在 taskTracker.setJobRunnerClass(JobRunnerDispatcher.class) * JobClient 提交 任务时指定 Job 类型 job.setParam("type", "aType") */ public class JobRunnerDispatcher implements JobRunner { private static final ConcurrentHashMap<String/*type*/, JobRunner> JOB_RUNNER_MAP = new ConcurrentHashMap<String, JobRunner>(); static { JOB_RUNNER_MAP.put("aType", new JobRunnerA()); // 也可以从Spring中拿 JOB_RUNNER_MAP.put("bType", new JobRunnerB()); } @Override public Result run(JobContext jobContext) throws Throwable { Job job = jobContext.getJob(); String type = job.getParam("type"); return JOB_RUNNER_MAP.get(type).run(job); } } class JobRunnerA implements JobRunner { @Override public Result run(JobContext jobContext) throws Throwable { // TODO A类型Job的逻辑 return null; } } class JobRunnerB implements JobRunner { @Override public Result run(JobContext jobContext) throws Throwable { // TODO B类型Job的逻辑 return null; } } ``` ## TaskTracker的JobRunner测试 一般在编写TaskTracker的时候,只需要测试JobRunner的实现逻辑是否正确,又不想启动LTS进行远程测试。为了方便测试,LTS提供了JobRunner的快捷测试方法。自己的测试类集成`com.github.ltsopensource.tasktracker.runner.JobRunnerTester`即可,并实现`initContext`和`newJobRunner`方法即可。如[lts-examples](https://github.com/ltsopensource/lts-examples)中的例子: ```java public class TestJobRunnerTester extends JobRunnerTester { public static void main(String[] args) throws Throwable { // Mock Job 数据 Job job = new Job(); job.setTaskId("2313213"); JobContext jobContext = new JobContext(); jobContext.setJob(job); JobExtInfo jobExtInfo = new JobExtInfo(); jobExtInfo.setRetry(false); jobContext.setJobExtInfo(jobExtInfo); // 运行测试 TestJobRunnerTester tester = new TestJobRunnerTester(); Result result = tester.run(jobContext); System.out.println(JSON.toJSONString(result)); } @Override protected void initContext() { // TODO 初始化Spring容器 } @Override protected JobRunner newJobRunner() { return new TestJobRunner(); } } ``` ## Spring Quartz Cron任务无缝接入 对于Quartz的Cron任务只需要在Spring配置中增加一下代码就可以接入LTS平台 ```xml <bean class="com.github.ltsopensource.spring.quartz.QuartzLTSProxyBean"> <property name="clusterName" value="test_cluster"/> <property name="registryAddress" value="zookeeper://127.0.0.1:2181"/> <property name="nodeGroup" value="quartz_test_group"/> </bean> ``` ## Spring Boot 支持 ```java @SpringBootApplication @EnableJobTracker // 启动JobTracker @EnableJobClient // 启动JobClient @EnableTaskTracker // 启动TaskTracker @EnableMonitor // 启动Monitor public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } ``` 剩下的就只是在application.properties中添加相应的配置就行了, 具体见lts-example中的`com.github.ltsopensource.examples.springboot`包下的例子 ## 多网卡选择问题 当机器有内网两个网卡的时候,有时候,用户想让LTS的流量走外网网卡,那么需要在host中,把主机名称的映射地址改为外网网卡地址即可,内网同理。 ## 关于节点标识问题 如果在节点启动的时候设置节点标识,LTS会默认设置一个UUID为节点标识,可读性会比较差,但是能保证每个节点的唯一性,如果用户能自己保证节点标识的唯一性,可以通过 `setIdentity` 来设置,譬如如果每个节点都是部署在一台机器(一个虚拟机)上,那么可以将identity设置为主机名称 ## SPI扩展说明 支持JobLogger,JobQueue等等的SPI扩展 ## [和其它解决方案比较](https://qq254963746.gitbooks.io/lts/content/introduce/compareother.html) ## LTS-Admin使用jetty启动(默认),不定期挂掉解决方案 见[issue#389](https://github.com/ltsopensource/light-task-scheduler/issues/389) # 招人!!! 工作年限 三年以上 学历要求 本科 期望层级 P6(资深Java工程师)/P7(技术专家) 岗位描述 会员平台,负责阿里巴巴集团的用户体系,支持集团内各线业务线用户类需求,支持集团对外合作的用户通和业务通。 包括各个端的用户登录&授权、Session体系、注册、账户管理、账户安全等功能,底层的用户信息服务,会话和凭证管理等等,是集团最核心的产品线之一,每天承载千亿次调用量、峰值千万QPS、以及分布全球的混合云架构等等。 作为软件工程师,你将会在我们的核心产品上工作,这些产品为我们的商业基础设施提供关键功能, 取决于你的兴趣和经验,你可以在如下的一个或多个领域工作:全球化,用户体验,数据安全,机器学习,系统高可用性等等。 1. 独立完成中小型项目的系统分析、设计,并主导完成详细设计和编码的任务,确保项目的进度和质量; 2. 能够在团队中完成code review的任务,确保相关代码的有效性和正确性,并能够通过code review提供相关性能以及稳定性的建议; 3. 参与建设通用、灵活、智能的业务支撑平台,支撑上层多场景的复杂业务。 岗位要求 1. 扎实的java编程基础,熟悉常用的Java开源框架; 2. 具有基于数据库、缓存、分布式存储开发高性能、高可用数据应用的实际经验,熟练掌握LINUX操作系统; 3. 具备良好的识别和设计通用框架及模块的能力; 4. 热爱技术,工作认真、严谨,对系统质量有近乎苛刻的要求意识,善于沟通与团队协作; 5. 具备大型电子商务网站或金融行业核心系统开发、设计工作经验者优先; 6. 具备大数据处理、算法、机器学习类工作经验优先。 感兴趣,可以发简历到 hugui.hg@alibaba-inc.com 欢迎投递
0
ajanata/PretendYoureXyzzy
A web clone of the card game Cards Against Humanity.
card-game cards-against-humanity game hibernate java javascript kafka kafka-producer
Pretend You're Xyzzy =================== A Cards Against Humanity clone, server and web client. See WebContent/license.html for full details. Note: This project is only known to work with Tomcat 7, all other versions are unsupported. Currently, the only way to build PYX is using Maven via ```mvn clean package war:war``` in the project's directory. If you're doing ```mvn clean package war:exploded jetty:run```, you now need to add ```-Dmaven.buildNumber.doCheck=false -Dmaven.buildNumber.doUpdate=false``` to make the buildnumber plugin allow you to run with uncommited changes. For GeoIP functions to work, download http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz somewhere, gunzip it, and update the geoip.db value in build.properties to point to it. ## Third-Party Usage A Docker package for this project exists at [emcniece/DockerYourXyzzy](https://github.com/emcniece/DockerYourXyzzy): ```sh docker run -d -p 8080:8080 emcniece/dockeryourxyzzy:dev ```
0
tyrantgit/ExplosionField
explosive dust effect for views
null
# ExplosionField [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ExplosionField-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2554) explosive dust effect for views ![explosionfield.gif](explosionfield.gif) ## Getting started In your `build.gradle`: ```gradle dependencies { compile 'tyrantgit:explosionfield:1.0.1' } ``` ```java ExplosionField explosionField = ...; explosionField.explode(view); ``` ## License Copyright 2015 tyrantgit Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
logicalclocks/hopsworks
Hopsworks - Data-Intensive AI platform with a Feature Store
aws azure data-science feature-engineering feature-management feature-store gcp governance hopsworks kserve machine-learning ml mlops model-serving pyspark python serverless
<p align="center"> <a href="https://hopsworks.ai"> <img src="https://uploads-ssl.webflow.com/5f6353590bb01cacbcecfbac/6202a13e7cafec5553703f6b_logo.svg" width="55%" > </a> </p> <br /> <p align="center"> <a href="https://hopsworks.ai" alt="hopsworks.ai"> <img src="https://img.shields.io/badge/hopsworks-ai-brightgreen" /></a> <a href="https://app.hopsworks.ai" alt="app"> <img src="https://img.shields.io/badge/Hopsworks-app-green" /></a> <a href="https://docs.hopsworks.ai" alt="docs.hopsworks.ai"> <img src="https://img.shields.io/badge/hopsworks-docs-orange" /></a> <a href="https://community.hopsworks.ai" alt="community.hopsworks.ai"> <img src="https://img.shields.io/badge/hopsworks-community-blueviolet" /></a> <a href="https://twitter.com/hopsworks" alt="Hopsworks Twitter"> <img src="https://img.shields.io/badge/hopsworks-twitter-blue" /></a> <a href="https://bit.ly/publichopsworks" alt="Hopsworks Slack"> <img src="https://img.shields.io/static/v1?label=Hopsworks&message=Slack&color=36C5F0" /></a> </p> <a name="what"></a> # What is Hopsworks? Hopsworks is a data platform for ML with a **Python-centric Feature Store** and MLOps capabilities. Hopsworks is a modular platform. You can use it as a standalone Feature Store, you can use it to manage, govern, and serve your models, and you can even use it to develop and operate feature pipelines and training pipelines. Hopsworks brings collaboration for ML teams, providing a secure, governed platform for developing, managing, and sharing ML assets - features, models, training data, batch scoring data, logs, and more. <br /> <p align="center" style="background-color:white; border-radius:4px;"> <img src="https://uploads-ssl.webflow.com/5f6353590bb01cacbcecfbac/62f21c38bc47b2d313fbf76d_Marchitecture%20-%20readme.svg" width="90%"> </p> <br /> <a name="quick"></a> # 🚀 Quickstart ## **APP - Serverless (beta)** ### → **Go to [app.hopsworks.ai](https://app.hopsworks.ai)** Hopsworks is available as a serverless app, simply head to [app.hopsworks.ai](https://app.hopsworks.ai) and register with your **Gmail** or **Github** accounts. You will then be able to run a tutorial or access Hopsworks directly and try yourself. This is the prefered way to first experience the platform before diving into more advanced uses and installation requirements. ## **Azure, AWS & GCP** [Managed Hopsworks](https://managed.hopsworks.ai) is our platform for running Hopsworks and the Feature Store in the cloud and integrates directly with the customer AWS/Azure/GCP environment. It also integrates seamlessly with third party platforms such as Databricks, SageMaker and KubeFlow. If you wish to run Hopsworks on your Azure, AWS or GCP environement, follow one of the following guides in our documentation: - [AWS Guide](https://docs.hopsworks.ai/3.0/setup_installation/aws/getting_started/#step-1-connecting-your-aws-account) - [Azure Guide](https://docs.hopsworks.ai/3.0/setup_installation/azure/getting_started/#step-1-connecting-your-azure-account) - [GCP Guide](https://docs.hopsworks.ai/3.0/setup_installation/gcp/getting_started/#step-1-connecting-your-gcp-account) ## **Installer - On-premise** ### → **Follow the [installation instructions](https://docs.hopsworks.ai/3.0/setup_installation/on_prem/hopsworks_installer/).** The hopsworks-installer.sh script downloads, configures, and installs Hopsworks. It is typically run interactively, prompting the user about details of what is installed and where. It can also be run non-interactively (no user prompts) using the '-ni' switch. ### **Requirements** You need at least one server or virtual machine on which Hopsworks will be installed with at least the following specification: - Centos/RHEL 7.x or Ubuntu 18.04; - at least 32GB RAM, - at least 8 CPUs, - 100 GB of free hard-disk space, - outside Internet access (if this server is air-gapped, contact us for support), - a UNIX user account with sudo privileges. <br /> <a name="docs"></a> # 🎓 Documentation and API ### **Documentation** [Hopsworks documentation](https://docs.hopsworks.ai) includes user guides, feature store documentation and an administration guide. We also include concepts to help user navigates the abstractions and logics of the feature stores and MLOps in general: - **Feature Store:** [https://docs.hopsworks.ai/3.0/concepts/fs/](https://docs.hopsworks.ai/3.0/concepts/fs/) - **Projects:** [https://docs.hopsworks.ai/3.0/concepts/projects/governance/](https://docs.hopsworks.ai/3.0/concepts/projects/governance/) - **MLOps:** [https://docs.hopsworks.ai/3.0/concepts/mlops/prediction_services/](https://docs.hopsworks.ai/3.0/concepts/mlops/prediction_services/) ### **APIs** Hopsworks API documentation is divided in 3 categories; Hopsworks API covers project level APIs, Feature Store API covers covers feature groups, feature views and connectors, and finally MLOps API covers Model Registry, serving and deployment. - **Hopsworks API** - [https://docs.hopsworks.ai/hopsworks-api/3.0.1/generated/api/connection/](https://docs.hopsworks.ai/hopsworks-api/3.0.1/generated/api/connection/) - **Feature Store API** - [https://docs.hopsworks.ai/feature-store-api/3.0.0/generated/api/connection_api/](https://docs.hopsworks.ai/feature-store-api/3.0.0/generated/api/connection_api/) - **MLOps API** - [https://docs.hopsworks.ai/machine-learning-api/3.0.0/generated/connection_api/](https://docs.hopsworks.ai/machine-learning-api/3.0.0/generated/connection_api/) ### **Tutorials** Most of the tutorials require you to have at least an account on [app.hopsworks.ai](https://app.hopsworks.ai). You can explore the dedicated [https://github.com/logicalclocks/hopsworks-tutorials](https://github.com/logicalclocks/hopsworks-tutorials) repository containing our tutorials or jump directly in one of the existing use cases: - Fraud (batch): [https://github.com/logicalclocks/hopsworks-tutorials/tree/master/fraud_batch](https://github.com/logicalclocks/hopsworks-tutorials/tree/master/fraud_batch) - Fraud (online): [https://github.com/logicalclocks/hopsworks-tutorials/tree/master/fraud_online](https://github.com/logicalclocks/hopsworks-tutorials/tree/master/fraud_online) - Churn prediction [https://github.com/logicalclocks/hopsworks-tutorials/tree/master/churn](https://github.com/logicalclocks/hopsworks-tutorials/tree/master/churn) <br /> <a name="features"></a> # 📦 Main Features ### **Project-based Multi-Tenancy and Team Collaboration** Hopsworks provides projects as a secure sandbox in which teams can collaborate and share ML assets. Hopsworks' unique multi-tenant project model even enables sensitive data to be stored in a shared cluster, while still providing fine-grained sharing capabilities for ML assets across project boundaries. Projects can be used to structure teams so that they have end-to-end responsibility from raw data to managed features and models. Projects can also be used to create development, staging, and production environments for data teams. All ML assets support versioning, lineage, and provenance provide all Hopsworks users with a complete view of the MLOps life cycle, from feature engineering through model serving. ### **Development and Operations** Hopsworks provides development tools for Data Science, including conda environments for Python, Jupyter notebooks, jobs, or even notebooks as jobs. You can build production pipelines with the bundled Airflow, and even run ML training pipelines with GPUs in notebooks on Airflow. You can train models on as many GPUs as are installed in a Hopsworks cluster and easily share them among users. You can also run Spark, Spark Streaming, or Flink programs on Hopsworks, with support for elastic workers in the cloud (add/remove workers dynamically). ### **Available on any Platform** Hopsworks is available as a both managed platform in the cloud on AWS, Azure, and GCP, and can be installed on any Linux-based virtual machines (Ubuntu/Redhat compatible), even in air-gapped data centers. Hopsworks is also available as a serverless platform that manages and serves both your features and models. <br /> <a name="community"></a> # 🧑‍🤝‍🧑 Community ### **Contribute** We are building the most complete and modular ML platform available in the market, and we count on your support to continuously improve Hopsworks. Feel free to give us suggestions, [report bugs](https://github.com/logicalclocks/hopsworks/issues) and [add features to our library](https://github.com/logicalclocks/feature-store-api) anytime. ### **Join the community** - Ask questions and give us feedback in the [Hopsworks Community](https://community.hopsworks.ai/) - Join our Public [Slack Channel](https://join.slack.com/t/public-hopsworks/shared_invite/zt-24fc3hhyq-VBEiN8UZlKsDrrLvtU4NaA) - Follow us on [Twitter](https://twitter.com/hopsworks) - Check out all our latest [product releases](https://github.com/logicalclocks/hopsworks/releases) ### **Open-Source** Hopsworks is available under the **AGPL-V3 license**. In plain English this means that you are free to use Hopsworks and even build paid services on it, but if you modify the source code, you should also release back your changes and any systems built around it as AGPL-V3.
0
jbellis/jvector
JVector: the most advanced embedded vector search engine
ann java knn machine-learning search-engine similarity-search vector-search
# JVector <a href="https://trendshift.io/repositories/2946" target="_blank"><img src="https://trendshift.io/api/badge/repositories/2946" alt="jbellis%2Fjvector | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> JVector is a pure Java embedded vector search engine, used by [DataStax Astra DB](https://www.datastax.com/products/datastax-astra) and (soon) Apache Cassandra. What is JVector? - Algorithmic-fast. JVector uses state of the art graph algorithms inspired by DiskANN and related research that offer high recall and low latency. - Implementation-fast. JVector uses the Panama SIMD API to accelerate index build and queries. - Memory efficient. JVector compresses vectors using product quantization so they can stay in memory during searches. (As part of our PQ implementation, our SIMD-accelerated kmeans class is 5x faster than the one in Apache Commons Math.) - Disk-aware. JVector’s disk layout is designed to do the minimum necessary iops at query time. - Concurrent. Index builds scale linearly to at least 32 threads. Double the threads, half the build time. - Incremental. Query your index as you build it. No delay between adding a vector and being able to find it in search results. - Easy to embed. API designed for easy embedding, by people using it in production. ## JVector performance, visualized JVector vs Lucene searching the Deep100M dataset (about 35GB of vectors and 25GB index): ![Screenshot from 2023-09-29 16-39-33](https://github.com/jbellis/jvector/assets/42158/7710f33d-ff6a-4282-9e31-4a5eaacd796f) JVector scales updates linearly to at least 32 threads: ![Screenshot from 2023-09-14 18-05-15](https://github.com/jbellis/jvector/assets/42158/f0127bfc-6c45-48b9-96ea-95b2120da0d9) ## Upgrading from 1.0.x to 2.0.x See [UPGRADING.md](./UPGRADING.md). ## JVector basics Adding to your project. Replace `${latest-version}` with ![Maven Central](https://img.shields.io/maven-central/v/io.github.jbellis/jvector?color=green). Example `<version>1.0.1</version>`: ``` <dependency> <groupId>io.github.jbellis</groupId> <artifactId>jvector</artifactId> <!-- Use the latest version from https://central.sonatype.com/artifact/io.github.jbellis/jvector --> <version>${latest-version}</version> </dependency> ``` Building the index: - [`GraphIndexBuilder`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/GraphIndexBuilder.java) is the entry point for building a graph. You will need to implement [`RandomAccessVectorValues`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/RandomAccessVectorValues.java) to provide vectors to the builder; [`ListRandomAccessVectorValues`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/ListRandomAccessVectorValues.java) is a good starting point. - If all your vectors are in the provider up front, you can just call `build()` and it will parallelize the build across all available cores. Otherwise you can call `addGraphNode` as you add vectors; this is non-blocking and can be called concurrently from multiple threads. - Call `GraphIndexBuilder.cleanup` when you are done adding vectors. This will optimize the index and make it ready to write to disk. (Graphs that are in the process of being built can be searched at any time; you do not have to call `cleanup` first.) Searching the index: - [`GraphSearcher`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/GraphSearcher.java) is the entry point for searching. Results come back as a [`SearchResult`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/SearchResult.java) object that contains node IDs and scores, in descending order of similarity to the query vector. `GraphSearcher` objects are re-usable, so unless you have a very simple use case you should use `GraphSearcher.Builder` to create them; `GraphSearcher.search` is also available with simple defaults, but calling it will instantiate a new `GraphSearcher` every time so performance will be worse. - JVector represents vectors in the index as the ordinal (int) corresponding to their index in the `RandomAccessVectorValues` you provided. You can get the original vector back with `GraphIndex.getVector`, if necessary, but since this is a disk-backed index you should design your application to avoid doing so unnecessarily. ## DiskANN and Product Quantization JVector implements [DiskANN](https://suhasjs.github.io/files/diskann_neurips19.pdf)-style search, meaning that vectors can be compressed using product quantization so that searches can be performed using the compressed representation that is kept in memory. You can enable this with the following steps: - Create a [`VectorCompressor`](./jvector-base/src/main/java/io/github/jbellis/jvector/pq/VectorCompressor.java) object with your vectors using either `ProductQuantization.compute` - or `BinaryQuantization.compute`. PQ is more flexible than BQ and is less lossy: even at the same compressed size, in the datasets tested by Bench, only the ada002 vectors in the wikipedia dataset are large enough and/or overparameterized enough to benefit from BQ while achieving recall competitive with PQ. However, if you are dealing with very large vectors and/or your recall requirement is not strict, you may still want to try BQ since it is MUCH faster to both compute and search with. - Use `VectorCompressor::encode` or `encodeAll` to encode your vectors, then call `VectorCompressor::createCompressedVectors` to create a `CompressedVectors` object. - Call `CompressedVectors::approximateScoreFunctionFor` to create a [`NeighborSimilarity.ApproximateScoreFunction`](./jvector-base/src/main/java/io/github/jbellis/jvector/graph/NeighborSimilarity.java) for your query that uses the compressed vectors to accelerate search, and pass this to the `GraphSearcher.search` method. ## Saving and loading indexes - [`OnDiskGraphIndex`](./jvector-base/src/main/java/io/github/jbellis/jvector/disk/OnDiskGraphIndex.java) and [`CompressedVectors`](./jvector-base/src/main/java/io/github/jbellis/jvector/disk/CompressedVectors.java) have `write()` methods to save state to disk. They initialize from disk using their constructor and `load()` methods, respectively. Writing just requires a DataOutput, but reading requires an implementation of [`RandomAccessReader`](./jvector-base/src/main/java/io/github/jbellis/jvector/disk/RandomAccessReader.java) and the related `ReaderSupplier` to wrap your preferred i/o class for best performance. See `SimpleMappedReader` and `SimpleMappedReaderSupplier` for an example. - Building a graph does not technically require your RandomAccessVectorValues object to live in memory, but it will perform much better if it does. `OnDiskGraphIndex`, by contrast, is designed to live on disk and use minimal memory otherwise. - You can optionally wrap `OnDiskGraphIndex` in a [`CachingGraphIndex`](./jvector-base/src/main/java/io/github/jbellis/jvector/disk/CachingGraphIndex.java) to keep the most commonly accessed nodes (the ones nearest to the graph entry point) in memory. ## Advanced configuration - JVector heavily utilizes the Panama Vector API(SIMD) for ANN indexing and search. We have seen cases where the memory bandwidth is saturated during indexing and product quantization and can cause the process to slow down. To avoid this, index and PQ builds use a [`PhysicalCoreExecutor`](./jvector-base/src/main/java/io/github/jbellis/jvector/util/PhysicalCoreExecutor.java) to limit the amount of operations to the physical core count. The default value is 1/2 the processor count seen by Java. This may not be correct in all setups (e.g. no hyperthreading or hybrid architectures) so if you wish to override the default use the `-Djvector.physical_core_count` property. ## Sample code - The [`SiftSmall`](./jvector-examples/src/main/java/io/github/jbellis/jvector/example/SiftSmall.java) class demonstrates how to put all of the above together to index and search the "small" SIFT dataset of 10,000 vectors. - The [`Bench`](./jvector-examples/src/main/java/io/github/jbellis/jvector/example/Bench.java) class performs grid search across the `GraphIndexBuilder` parameter space to find the best tradeoffs between recall and throughput. You can use [`plot_output.py`](./plot_output.py) to graph the [pareto-optimal points](https://en.wikipedia.org/wiki/Pareto_efficiency) found by `Bench`. Some sample KNN datasets for testing based on ada-002 embeddings generated on wikipedia data are available in ivec/fvec format for testing at: ``` aws s3 ls s3://astra-vector/wikipedia_squad/ --no-sign-request PRE 100k/ PRE 1M/ PRE 4M/ ``` Bench (see below) automatically downloads the 100k dataset to the `./fvec` directory ## Developing and Testing This project is organized as a [multimodule Maven build](https://maven.apache.org/guides/mini/guide-multiple-modules.html). The intent is to produce a multirelease jar suitable for use as a dependency from any Java 11 code. When run on a Java 20+ JVM with the Vector module enabled, optimized vector providers will be used. In general, the project is structured to be built with JDK 20+, but when `JAVA_HOME` is set to Java 11 -> Java 19, certain build features will still be available. Base code is in [jvector-base](./jvector-base) and will be built for Java 11 releases, restricting language features and APIs appropriately. Code in [jvector-twenty](./jvector-twenty) will be compiled for Java 20 language features/APIs and included in the final multirelease jar targeting supported JVMs. [jvector-multirelease](./jvector-multirelease) packages [jvector-base](./jvector-base) and [jvector-twenty](./jvector-twenty) as a multirelease jar for release. [jvector-examples](./jvector-examples) is an additional sibling module that uses the reactor-representation of jvector-base/jvector-twenty to run example code. [jvector-tests](./jvector-tests) contains tests for the project, capable of running against both Java 11 and Java 20+ JVMs. To run tests, use `mvn test`. To run tests against Java 20+, use `mvn test`. To run tests against Java 11, use `mvn -Pjdk11 test`. To run a single test class, use the Maven Surefire test filtering capability, e.g., `mvn -Dtest=TestNeighborArray test`. You may also use method-level filtering and patterns, e.g., `mvn -Dtest=TestNeighborArray#testRetain* test`. You can run `SiftSmall` and `Bench` directly to get an idea of what all is going on here. `Bench` will automatically download required datasets to the `fvec` and `hdf5` directories. The files used by `SiftSmall` can be found in the [siftsmall directory](./siftsmall) in the project root. To run either class, you can use the Maven exec-plugin via the following incantations: > `mvn compile exec:exec@bench` or for Sift: > `mvn compile exec:exec@sift` `Bench` takes an optional `benchArgs` argument that can be set to a list of whitespace-separated regexes. If any of the provided regexes match within a dataset name, that dataset will be included in the benchmark. For example, to run only the glove and nytimes datasets, you could use: > `mvn compile exec:exec@bench -DbenchArgs="glove nytimes"` To run Sift/Bench without the JVM vector module available, you can use the following invocations: > `mvn -Pjdk11 compile exec:exec@bench` > `mvn -Pjdk11 compile exec:exec@sift` The `... -Pjdk11` invocations will also work with `JAVA_HOME` pointing at a Java 11 installation. To release, configure `~/.m2/settings.xml` to point to OSSRH and run `mvn -Prelease clean deploy`. ---
0
eacdy/spring-cloud-study
开源书《跟我学Spring Cloud》的配套代码。讨论QQ群:731548893
microservice spring spring-boot spring-cloud
# 简介 * 2016-Brixton目录:开源书<http://www.gitee.com/itmuch/spring-cloud-book> 配套源码; * 2018-Finchley目录:跟我学Spring Cloud系列博客(<http://www.itmuch.com/>)配套源码。 ## 宣传语 * 微服务架构交流QQ群:731548893,欢迎加入。 * ![](ad.png)
0
zhisheng17/blog
SpringBoot + Mybatis + thymeleaf 搭建的个人博客 http://www.54tianzhisheng.cn/
mybatis mysql spring-boot thymeleaf
## Blog fork from [My Blog](https://github.com/ZHENFENG13/My-Blog) , 该作者是在 [Tale](https://github.com/otale/tale) 博客系统基础上进行修改的。 `Tale` 使用了轻量级 mvc 框架 `Blade` 开发,默认主题使用了漂亮的 `pinghsu` 。 `My-Blog` 使用的是 Docker + SpringBoot + Mybatis + thymeleaf 打造的一个个人博客模板。 自己花了十天的时间把整个项目的代码都敲了一遍,熟悉了整个项目,做了优化,去除了 Docker, 其中修改了原来的一些 bug,并在原作者的项目中提出了 issue , 原作者已修复。 喜欢该项目的话,可以给项目点个 star,如果你想在这基础上修改,那么建议你 fork 该项目,然后再修改哦。 ## 功能如下: 博客首页: ![](img/index.png) 归档: ![](img/metas.png) 友链: ![](img/links.png) 关于: ![](img/about.png) 搜索: ![](img/search.png) **后台管理** 管理登录: ![](img/admin-login.png) 管理首页: ![](img/admin-index.png) 发布文章: ![](img/admin-publish.png) 文章管理: ![](img/admin-article.png) 页面管理: ![](img/admin-pages.png) 分类标签: ![](img/admin-category.png) 文件管理: ![](img/admin-upload.png) 友链管理: ![](img/admin-links.png) 系统设置: ![](img/admin-setting.png) ## 开源协议 [MIT](./LICENSE) ## 感谢 [ZHENFENG13](https://github.com/ZHENFENG13) [otale](https://github.com/otale)
0
vigna/fastutil
fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
java primitive-collections sorting-algorithms
# Welcome to fastutil [fastutil](http://fastutil.di.unimi.it/) extends the Java Collections Framework by providing type-specific maps, sets, lists, and queues with a small memory footprint and fast access and insertion; it provides also big (64-bit) arrays, sets, and lists, sorting algorithms, fast, practical I/O classes for binary and text files, and facilities for memory mapping large files. Since version 8.5.5, fastutil is split into two jars for convenience: - `fastutil-core.jar` contains data structures based on integers, longs, doubles, and objects; - `fastutil.jar` is the classic distribution, containing all classes. Note that core classes are duplicated in the standard jar, so if you are depending on both (for example, because of transitive dependencies) you should exclude the core jar. Previous split versions would provide different classes in different jars, but managing sensibly dependencies turned out to be impossible. You can also create a small, customized fastutil jar (which you can put in your repo, local maven repo, etc.) using the `find-deps.sh` shell script. It has mild prerequisites, as only the `jdeps` tool is required (bundled with JDK 8). It can be used to identify all fastutil classes your project uses and build a minimized jar only containing the necessary classes. ## Building First, you have to `make sources` to get the actual Java sources. After that, `ant jar` will generate a single jar file; `ant javadoc` will generate the API documentation; `ant junit` will run the unit tests. If you want to obtain the three jars above, you have to run the script `split.sh`, and then `ant osgi-rest`. The Java sources are generated using a C preprocessor. The `gencsource.sh` script reads in a driver file, that is, a Java source that uses some preprocessor-defined symbols and some conditional compilation, and produces a (fake) C source, which includes the driver code and some definitions that customize the environment. * seba (<mailto:sebastiano.vigna@unimi.it>) * https://groups.google.com/g/fastutil
0
hierynomus/sshj
ssh, scp and sftp for java
java scp sftp sftp-client ssh ssh-client
null
0
apache/phoenix
Apache Phoenix
database hbase java phoenix sql
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> ![logo](http://phoenix.apache.org/images/logo.png) <b>[Apache Phoenix](http://phoenix.apache.org/)</b> is a SQL skin over HBase delivered as a client-embedded JDBC driver targeting low latency queries over HBase data. Visit the Apache Phoenix website <b>[here](http://phoenix.apache.org/)</b>. Copyright ©2014 [Apache Software Foundation](http://www.apache.org/). All Rights Reserved.
0
sarxos/webcam-capture
The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
java webcam webcam-capture
# Webcam Capture API This library allows you to use your build-in or external webcam directly from Java. It's designed to abstract commonly used camera features and support various capturing frameworks. [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.sarxos/webcam-capture/badge.svg)](http://search.maven.org/#artifactdetails|com.github.sarxos|webcam-capture|0.3.10|bundle) [![Build Status](https://travis-ci.org/sarxos/webcam-capture.svg?branch=master)](https://travis-ci.org/sarxos/webcam-capture) [![Coverage Status](https://img.shields.io/coveralls/sarxos/webcam-capture.svg?branch=master)](https://coveralls.io/r/sarxos/webcam-capture?branch=master) ## Rationale Assume a situation when your code depends on some capturing framework, but suddenly you have to drop it and use a different, maybe newer one (e.g. replace archaic JMF with newest GStreamer). By doing this you will have to rewrite significant piece of your code because these frameworks are completely different and not compatible at all. This is where Webcam Capture API comes to save the world - it was created to remove the burden of such situations so you do not have to rewrite your code ever again, but instead you can simply switch the driver class to different one. ## Features * Simple, thread-safe and non-blocking API, * No additional software required, * Supports multiple platforms (Windows, Linux, Mac OS, etc) and various architectures (32-bit, 64-bit, ARM), * Get images from build-in or USB-connected PC webcams, * Get images from IP / network cameras (as MJPEG or JPEG), * Offers ready to use motion detector, * All required JARs Available in Maven Central, * Offers possibility to expose images as MJPEG stream, * It is available as Maven dependency or standalone ZIP binary (with all dependencies included), * Swing component to display video feed from camera, * Swing component to choose camera (drop down), * Multiple capturing frameworks are supported: * [OpenIMAJ][]; * [LTI CIVIL][LTI-CIVIL]; * [Java Media Framework (JMF)][JMF]; * [Freedom for Media in Java (FMJ)][FMJ]; * [OpenCV][] via [JavaCV][]; * [VLC][] via [vlcj][]; * [V4L][] via [v4l4j][V4L4j]; * [GStreamer][] (0.10.x only) via [gstreamer-java][gstreamerj]; * [FFmpeg][]; * MJPEG IP Cameras; * [Raspicam] via [Cli][Picam]; The latest stable version is: **```0.3.12```** The latest development version is: **```0.3.13-SNAPSHOT```** ## Raspberry PI _(and other ARM devices)_ The latest version (0.3.10) does not work on ARM just out of the box. To make it working you need to replace version 0.6.2 of BridJ JAR by the [0.6.3-SNAPSHOT](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.nativelibs4java&a=bridj&v=0.6.3-SNAPSHOT) or newer [bridj-0.7-20140918](http://maven.ecs.soton.ac.uk/content/groups/maven.openimaj.org/com/nativelibs4java/bridj/0.7-20140918/bridj-0.7-20140918.jar). Moreover, lately Jonathon Hare from OpenIMAJ team, found a problem described in [bridj #525](https://github.com/ochafik/nativelibs4java/issues/525) which causes problems on armhf architecture. ## Maven The latest stable version is [available](http://search.maven.org/#artifactdetails|com.github.sarxos|webcam-capture|0.3.12|bundle) in Maven Central: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture</artifactId> <version>0.3.12</version> </dependency> ``` Snapshot version: ```xml <repository> <id>Sonatype OSS Snapshot Repository</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> </repository> ``` ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture</artifactId> <version>0.3.13-SNAPSHOT</version> </dependency> ``` ## Download The newest stable version can be downloaded as separated ZIP binary. This ZIP file contains Webcam Capture API itself and all required dependencies (in ```libs``` directory). Click on the below link to download it: [webcam-capture-0.3.12-dist.zip](https://github.com/sarxos/webcam-capture/releases/download/webcam-capture-parent-0.3.12/webcam-capture-0.3.12-dist.zip) The latest development version JAR (aka SNAPSHOT) can be downloaded [here](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.sarxos&a=webcam-capture&v=0.3.13-SNAPSHOT). ## Contribution If you have strong will, spare time, knowledge or even some small amount of money you would like to spent for good purpose you can help developing this awesome Webcam Capture API and make it even better! Several kinds of contributions are very welcome: ##### Star Project If you think this project is great, you would like to help, but you don't know how - you can become project's stargazer. By starring you're making project more popular. Visit [this](https://github.com/blog/1204-notifications-stars) link if you would like to learn more about how notifications and stars works on Github. ##### Report Bug or Feature If you've found a bug or you've came-up with some fantastic feature which can make Webcam Capture a better API to use, don't hesitate to [create new issue](https://github.com/sarxos/webcam-capture/issues/new) where you can describe in details what the problem is, or what would you like to improve. ##### Perform Tests Since Webcam Capture use some part of native code, it's very hard to cover all supported operating systems. I'm always testing it on 64-bit Ubuntu Linux, Windows XP and Vista (both 32-bit), but I have no possibility to test on Raspberry Pi, Mac OS and 32-bit Linux. Please help and test on those systems if you have such possibility. ##### Write Code If you know Java or C++ you can help developing Webcam Capture by forking repository and sending pull requests. Please visit [this](http://stackoverflow.com/questions/4384776/how-do-i-contribute-to-others-code-in-github) link if you don't know how to contribute to other's code at Github. ##### Donate People have expressed a wish to donate a little money. Donating won't get you anything special, other than a warm feeling inside, and possibly urge me to produce more freely available material for Webcam Capture project. You can donate via [PayPal](https://www.paypal.com), just click [donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYMENK76CSYZU) button available below - it will redirect you to the secured PayPal page where you can provide donation amount (there is no minimal value). [![Donate via PayPal](https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UYMENK76CSYZU) ## Hello World Code below will capture image from your default webcam and save it in ```hello-world.png``` file: ```java Webcam webcam = Webcam.getDefault(); webcam.open(); ImageIO.write(webcam.getImage(), "PNG", new File("hello-world.png")); ``` ## More Examples! Below are the very pretty basic examples demonstrating of how Webcam Capture API can be used in the Java code. All can be found in the project source code. Please note that some of those examples may use the newest API which has not yet been released to maven Central. In such a case please make sure you are using the newest Webcam Capture API SNAPSHOT. * [How to detect webcam](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/DetectWebcamExample.java) * [How to take picture and save to file](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/TakePictureExample.java) * [How to display image from webcam in Swing panel (basic)](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/WebcamPanelExample.java) * [How to display image from webcam in Swing panel (more advanced)](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/WebcamViewerExample.java) * [How to listen on camera connection / disconnection events](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/WebcamDiscoveryListenerExample.java) * [How to configure capture resolution](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/TakePictureDifferentSizeExample.java) * [How to configure non-standard capture resolution (e.g. HD720)](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/CustomResolutionExample.java) * [How to save captured image in PNG / JPG / GIF / BMP etc](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/DifferentFileFormatsExample.java) * [How to capture with many parallel threads](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/ConcurrentThreadsExample.java) * [How to detect motion (text mode only)](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/DetectMotionExample.java) * [How to detect motion with Do-Not-Engage zone](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/DetectMotionDoNotEngageZoneExample.java) * [How to perform multipoint motion detection](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/MultipointMotionDetectionExample.java) * [How to display images from multiple IP cameras exposing pictures in JPG format](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-drivers/driver-ipcam/src/examples/java/JpegDasdingStudioExample.java) * [How to display image from IP camera exposing MJPEG stream](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-drivers/driver-ipcam/src/examples/java/MjpegLignanoBeachExample.java) * [How to use composite driver to display both, build-in and IP camera images](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-drivers/driver-ipcam/src/examples/java/DualNativeAndMjpegWebcamExample.java) * [How to work with Raspberry Pi (camera module or UVC device)](https://github.com/sarxos/webcam-capture/wiki/How-To-Configure-Raspberry-Pi) * [How to flip (mirror) image displayed in ```WebcamPanel```](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/WebcamPanelFlippingExample.java) * [How to rotate image displayed in ```WebcamPanel```](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/WebcamPanelRotationExample.java) * [How to rotate image from camera with ```WebcamImageTransformer```](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/ImageTransformerRotationExample.java) * [How to use AdaptiveSizeWriter to compress images](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/example/java/AdaptiveSizeWriterExample.java) * [How to use Webcam Capture with DroidCam application (smartphone working as IP camera)](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-drivers/driver-ipcam/src/examples/java/DroidCamExample.java) And here are some more advanced examples, few with quite fancy GUI. * [How to detect and mark human faces](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-detect-face) * [How to use ```WebcamMotionDetector``` with the ```JFrame``` window](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-motiondetector) * [How to use webcam capture in Java Applet](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-applet) * [How to use ```WebcamPanel.Painter``` interface to draw effects on ```WebcamPanel``` component](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-painter) * [How to read QR / DataMatrix and Bar codes (2 examples)](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-qrcode) * [How to record video from webcam using Xuggler framework **(deprecated)**](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-video-recording/src/main/java/com/github/sarxos/webcam/Encoder.java) * [How to record video from webcam using Humble Video framework](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-video-recording-humble/src/main/java/RecordAndEncodeVideo.java) * [How to transcode webcam images into live h264 stream](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-live-streaming) * [How to use Webcam Capture API in JavaFX](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-javafx) * [How to use Webcam Capture API in JavaFX and FXML](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-javafx-fxml) * [How to use Webcam Capture API as JavaFX Service and View](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-javafx-service) * [How to use Webcam Capture API in SWT](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-swt-awt) * [How to use ```WebcamImageTransformer``` to draw effects directly on image from camera](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-transformer) * [How to use Webcam Capture API and WebSockets to transport images from server to web client](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-websockets) * [How to use Webcam Capture API from Akka](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-akka/src/main/java/Application.java) ## YouTube Tutorials Video series by [Genuine Coder](https://www.youtube.com/GenuineCoder) for Webcam Capture beginners: * [Java Webcam Capture #1: Introduction and Capturing with 3 lines of code](https://www.youtube.com/watch?v=2BHyL_XK8YQ) * [Java Webcam Capture #2: Take Images with Different Resolutions](https://www.youtube.com/watch?v=dL4MVWJjVVY) * [Java Webcam Capture #3: Video Feed from Webcam using Thread](https://www.youtube.com/watch?v=RkzfFGP60fw) * [Java Webcam Capture #4: Video Feed from Webcam (Easy Way)](https://www.youtube.com/watch?v=amMaYzl45Pw) ## Capture Drivers Webcam Capture API defines ```WebcamDriver``` interface which has been already implemented in several _capturing drivers_ build on top of well-known frameworks used to work with multimedia and cameras. Complete list can be found below. By default (if other driver is not specified) library uses **default driver** which consists of small, refined part of awesome [OpenIMAJ](http://sourceforge.net/p/openimaj/home/OpenIMAJ/) framework wrapped in thread-safe container. However, there are more ready-to-use drivers which can be used as a replacement or addition to the default one. By utilizing those drivers Webcam Capture can be extended with various new features (e.g. IP camera support). List of additional capture drivers includes: | Driver Name | Stable | Central | Description | |-----------------|--------|---------|-----------------------------------------| | [ipcam][] | yes | yes | Driver for IP / network camera | | [fswebcam][] | yes | yes | Driver for [FSWebcam][] [CLI][] tool | | [gstreamer][] | yes | yes | Driver for [GStreamer][] framework | | [openimaj][] | yes | yes | Driver for [OpenIMAJ][] framework | | [v4l4j][] | yes | no | Driver for [V4L4j][] library | | [jmf][] | yes | yes | Driver for [JMF][] / [FMJ][] frameworks | | [lti-civil][] | yes | yes | Driver for [LTI-CIVIL][] library | | [vlcj][] | yes | yes | Driver for [vlcj][] library | | [javacv][] | yes | yes | Driver for [JavaCV][] library | | [ffmpeg-cli][] | poc | no | Driver for [FFmpeg][] [CLI][] tool | | [raspicam][] | poc | no | Driver for [Raspicam][] [CLI][] [PIcam][] tool | * Central = available in Maven Central Repository * _poc_ = Proof of Concept [FSWebcam]: http://www.firestorm.cx/fswebcam/ [GStreamer]: http://gstreamer.freedesktop.org/ [gstreamerj]: https://github.com/gstreamer-java [OpenIMAJ]: http://www.openimaj.org/ [V4L4j]: http://code.google.com/p/v4l4j/ [JMF]: http://www.oracle.com/technetwork/java/javase/download-142937.html [FMJ]: http://fmj-sf.net/ [LTI-CIVIL]: http://lti-civil.org/ [JavaCV]: https://github.com/bytedeco/javacv/ [VLC]: http://www.videolan.org/vlc/ [VLCj]: https://github.com/caprica/vlcj [V4L]: https://en.wikipedia.org/wiki/Video4Linux [FFmpeg]: http://www.ffmpeg.org/ [OpenCV]: http://opencv.org/ [CLI]: http://en.wikipedia.org/wiki/Command-line_interface/ [Raspicam]: https://www.raspberrypi.org/documentation/usage/camera/raspicam/ [Picam]: https://github.com/caprica/picam [fswebcam]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-fswebcam [ipcam]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-ipcam [gstreamer]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-gstreamer [openimaj]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-openimaj [v4l4j]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-v4l4j [jmf]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-jmf [lti-civil]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-lti-civil [javacv]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-javacv [vlcj]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-vlcj [ffmpeg-cli]: https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-ffmpeg-cli ### Default Driver If no other driver is specified, the default driver will be used. It consists of small, refined part of awesome [OpenIMAJ][] framework wrapped in thread-safe container. ### IP Camera Driver This capture driver gives possibility to access IP camera devices and handle images in form of JPEG pictures or MJPEG streams. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-ipcam</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new IpCamDriver()); ``` More details and binaries download can be found on dedicated [webcam-capture-driver-ipcam](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-ipcam) page. ### Fswebcam Driver This capture driver gives possibility to use CLI tool called ```fswebcam``` (written by Philip Heron) to access UVC devices connected to the computer. It works only on *nix and requires tool to be installed on the environment where driver is used. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-fswebcam</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new FsWebcamDriver()); ``` More details on how to use, how to install ```fswebcam``` and where binaries can be downloaed, can be found on dedicated [webcam-capture-driver-fswebcam](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-fswebcam) page. ### GStreamer Driver This capture driver gives possibility to use [GStreamer][] to access UVC camera devices connected to computer. It works on Windows and Linux only. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-gstreamer</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new GStreamerDriver()); ``` More details on how to use, how to install GStreamer and where binaries can be downloaded, can be found on dedicated [webcam-capture-driver-gstreamer](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-gstreamer) page. ### OpenIMAJ Driver This capture driver gives possibility to use [OpenIMAJ][] to access UVC camera devices connected to the computer. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-openimaj</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new OpenImajDriver()); ``` More details on how to use it and where binaries can be downloaded, can be found on dedicated [webcam-capture-driver-openimaj](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-openimaj) page. ### V4L4j Driver This is capture driver which uses [V4L4j][] project to access UVC camera devices. It works on Linux only and it seems like it is most suitable for use on Raspberry Pi. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-v4l4j</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new V4l4jDriver()); ``` More details on how to use it and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-v4l4j](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-v4l4j) page. ### JMF Driver This is capture driver which uses [JMF][] (Java Media Framework) to access UVC webcam devices. The JMF needs to be installed and configured on the PC before this driver can be used. It can also be used alternatively with the [FMJ][] project. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-jmf</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use: ```java Webcam.setDriver(new JmfDriver()); ``` More details on how to use it, install, and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-jmf](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-jmf) page. ### LTI-CIVIL Driver This is capture driver designed to leverage capabilities of [LTI-CIVIL](http://sourceforge.net/projects/lti-civil/) project (by Larson Technologies Inc.) and use it to access wide range of UVC devices. It works on 32-bit architectures only. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-lti-civil</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use it: ```java Webcam.setDriver(new LtiCivilDriver()); ``` More details on how to use it, and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-lti-civil](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-lti-civil) page. ### VLCj Driver This is capture driver which uses [VLCj][] library from [Caprica Software Limited](http://www.capricasoftware.co.uk/) to gain access to the UVC camera device. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-vlcj</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use it: ```java Webcam.setDriver(new VlcjDriver()); ``` More details on how to use it, how to install, and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-vlcj](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-vlcj) page. ### JavaCV Driver This is capture driver which uses [JavaCV][] binding for [OpenCV](https://opencv.org/) to gain access to the UVC camera device. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-opencv</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` or if you are using webcam-capture < 0.3.12: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-javacv</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` If you only target specific platforms take a look at [Reducing the Number of Dependencies](https://github.com/bytedeco/javacpp-presets/wiki/Reducing-the-Number-of-Dependencies). How to use it: ```java Webcam.setDriver(new JavaCvDriver()); ``` More details on how to use it, how to install, and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-javacv](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-opencv) page. ### FFmpeg CLI Driver This is capture driver which uses ```ffmpeg``` [CLI][] tool from [FFmpeg][] to access UVC camera device. Maven dependency: ```xml <dependency> <groupId>com.github.sarxos</groupId> <artifactId>webcam-capture-driver-ffmpeg-cli</artifactId> <version>{webcam-capture-version-here}</version> </dependency> ``` How to use it: ```java Webcam.setDriver(new FFmpegCliDriver()); ``` More details on how to use it, how to install, and where necessary binaries can be downloaded, can be found on dedicated [webcam-capture-driver-ffmpeg-cli](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-drivers/driver-ffmpeg-cli) page. ## History I initially started working on Webcam Capture as a simple proof-of-concept after I read [Andrew Davison](http://fivedots.coe.psu.ac.th/~ad/)'s fantastic book entitled [Killer Game Programming](http://www.amazon.com/Killer-Game-Programming-Andrew-Davison/dp/0596007302/ref=sr_1_1?s=books&ie=UTF8&qid=1360352393&sr=1-1&keywords=killer+game+programming) (which is also available [online](http://fivedots.coe.psu.ac.th/~ad/jg/)). Thank you Andrew! Later I found that there is a complete mess in Java APIs allowing you to capture images from webcams. Once you choose specific API you cannot change it without modifying large parts of the code. I decided to change this situation and write general purpose wrapper for various different APIs (like JMF, OpenCV, OpenIMAJ, LTI-CIVIL, VLC). In such a way, Webcam Capture as we know it today, was brought to life. Today you can change underlying frameworks just by replacing webcam driver (one line code change). If there is no driver for particular framework, it's very easy to write it yourself. ## License Copyright (C) 2012 - 2017 Bartosz Firyn (https://github.com/sarxos) and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ![sarxos](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture/src/etc/resources/sarxos.png "sarxos")
0
dropbox/hackpad
Hackpad is a web-based realtime wiki.
null
# About Hackpad Hackpad is a web-based realtime wiki, based on the open source EtherPad collaborative document editor. There is no active development happening in this repository, but we'll maintain a list of active forks to the best of our knowledge. Note that none of these are affiliated with Dropbox or hackpad.com in any way. If you'd like to have your fork listed, send us a pull request. Here's the list: - https://github.com/hackpad/hackpad --- The etherpad package is distributed under the Apache License, Version 2.0. All other packages are redistributed under their original license terms. See below for a license summary of redistributed software. More comprehensive license information can be found in the documentation of each package. This document contains licensing information relating to the use of free and open-source software (FOSS) with or within the Hackpad software. The authors, licensors, and distributors of the FOSS disclaim all express or implied conditions, representations, and warranties relating to the FOSS and any liability arising from use and distribution of the FOSS. This document identifies the FOSS packages used in the Hackpad software, the FOSS licenses that Dropbox believes govern those FOSS packages. While Dropbox has sought to provide complete and accurate licensing information for each FOSS package, Dropbox does not represent or warrant that the licensing information provided herein is correct or error-free. Recipients of the Hackpad software should investigate the identified FOSS packages to confirm the accuracy of the licensing information provided herein. Recipients are also encouraged to notify Dropbox of any inaccurate information or errors found in these notices. ------ ## Apache License, Version 2.0 solr http://lucene.apache.org/solr/ smack api http://www.igniterealtime.org/projects/smack/ gdata java client https://code.google.com/p/gdata-java-client/ FacebookSDK.framework https://developers.facebook.com/docs/ios/ GoogleToolbox https://code.google.com/p/google-toolbox-for-mac/ OCMock https://github.com/erikdoe/ocmock/blob/master/Source/License.txt ## MIT and MIT-Style Licenses bililiteRange.js https://github.com/dwachss/bililiteRange handlebars.js https://github.com/wycats/handlebars.js/blob/master/LICENSE html5shiv https://code.google.com/p/html5shiv/ i18next http://i18next.com/ JQuery http://jquery.com/ JQueryUI http://jqueryui.com/ jquery.ajaxqueue.js http://www.onemoretake.com/2009/10/11/ajaxqueue-and-jquery-1-3/ jquery.autocomplete.js http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ jquery.ba-dotimeout.min.js http://benalman.com/projects/jquery-dotimeout-plugin/ jquery.color.js https://github.com/jquery/jquery-color jquery.contextMenu.js https://github.com/medialize/jQuery-contextMenu jquery.customSelect.js https://github.com/adamcoulombe/jquery.customSelect jquery.embedly.js https://github.com/embedly/embedly-jquery jquery.handsontable.js http://handsontable.com/ jquery.placeholder.js https://github.com/mathiasbynens/jquery-placeholder jquery.sendkeys.js https://github.com/dwachss/bililiteRange jquery.tablesorter.js http://tablesorter.com/docs/ jquery.textcomplete.min.js https://github.com/yuku-t/jquery-textcomplete/ jquery.tinysort.js http://tinysort.sjeiti.com/ jquery.ui.position.js http://jqueryui.com/ jquery.ui.touch-punch.min.js http://touchpunch.furf.com/ jquery.validate.js http://bassistance.de/jquery-plugins/jquery-plugin-validation/ jquery.transition.js https://github.com/louisremi/jquery.transition.js/ less-1.4.1.min.js http://www.lesscss.org/ LESS Hat http://LESSHat.com/ pagedown https://code.google.com/p/pagedown/source/browse/LICENSE.txt require.js http://github.com/jrburke/requirejs selectivizr-min.js http://selectivizr.com/ simplewebrtc.bundle.js https://github.com/HenrikJoreteg/SimpleWebRTC socket.io.js https://github.com/LearnBoost/socket.io-client ACE Syntax Highlighter (tokenizer.js) http://ace.c9.io/ to-markdown https://github.com/domchristie/to-markdown unicode.js http://xregexp.com MBProgressHUD https://github.com/jdg/MBProgressHUD WebViewJavascriptBridge https://github.com/marcuswestin/WebViewJavascriptBridge/blob/master/LICENSE JavaScript Pretty Date http://ejohn.org/blog/javascript-pretty-date/ JSON Framework https://code.google.com/p/json-framework/ Emoji One Non-Artwork https://github.com/Ranks/emojione ZeroClipboard https://github.com/zeroclipboard/zeroclipboard ## BSD and BSD-Style Licenses java-apns https://github.com/notnoop/java-apns glue sprite generator https://github.com/jorgebastida/glue NSAttributedString+DDHTML https://github.com/dbowen/NSAttributedString-DDHTML/ RNCachingURLProtocol https://github.com/rnapier/RNCachingURLProtocol Sente Testing Kit http://www.quantum-step.com/download/sources/mystep/OCUnit/SourceCode/SenTestingKit/OpenSourceLicense.html ASIHTTPRequest http://allseeing-i.com/ASIHTTPRequest/ ## Other Licenses jquery.autoresize.js https://github.com/warpech/jQuery.fn.autoResize vocaro.com UIImage Resize https://gist.github.com/benilovj/2009030 Emoji One Artwork https://github.com/Ranks/emojione
0
zaiyunduan123/springboot-seckill
:racehorse:基于SpringBoot + MySQL + Redis + RabbitMQ + Guava开发的高并发商品限时秒杀系统
null
## 系统介绍 本系统是使用SpringBoot开发的高并发限时抢购秒杀系统,除了实现基本的登录、查看商品列表、秒杀、下单等功能,项目中还针对高并发情况实现了系统缓存、降级和限流。 ## 开发工具 IntelliJ IDEA + Navicat + Sublime Text3 + Git + Chrome ## 压测工具 JMeter ## 开发技术 前端技术 :Bootstrap + jQuery + Thymeleaf 后端技术 :SpringBoot + MyBatis + MySQL 中间件技术 : Druid + Redis + RabbitMQ + Guava ## 秒杀优化方向 1. 将请求尽量拦截在系统上游:传统秒杀系统之所以挂,请求都压倒了后端数据层,数据读写锁冲突严重,几乎所有请求都超时,流量虽大,下单成功的有效流量甚小,我们可以通过限流、降级等措施来最大化减少对数据库的访问,从而保护系统。 2. 充分利用缓存:秒杀商品是一个典型的读多写少的应用场景,充分利用缓存将大大提高并发量 ## 实现技术点 ### 1. 两次MD5加密 将用户输入的密码和固定Salt通过MD5加密生成第一次加密后的密码,再讲该密码和随机生成的Salt通过MD5进行第二次加密,最后将第二次加密后的密码和第一次的固定Salt存数据库 好处: 1. 第一次作用:防止用户明文密码在网络进行传输 2. 第二次作用:防止数据库被盗,避免通过MD5反推出密码,双重保险 ### 2. session共享 验证用户账号密码都正确情况下,通过UUID生成唯一id作为token,再将token作为key、用户信息作为value模拟session存储到redis,同时将token存储到cookie,保存登录状态 好处: 在分布式集群情况下,服务器间需要同步,定时同步各个服务器的session信息,会因为延迟到导致session不一致,使用redis把session数据集中存储起来,解决session不一致问题。 ### 3. JSR303自定义参数验证 使用JSR303自定义校验器,实现对用户账号、密码的验证,使得验证逻辑从业务代码中脱离出来。 ### 4. 全局异常统一处理 通过拦截所有异常,对各种异常进行相应的处理,当遇到异常就逐层上抛,一直抛到最终由一个统一的、专门负责异常处理的地方处理,这有利于对异常的维护。 ### 5. 页面缓存 + 对象缓存 1. 页面缓存:通过在手动渲染得到的html页面缓存到redis 2. 对象缓存:包括对用户信息、商品信息、订单信息和token等数据进行缓存,利用缓存来减少对数据库的访问,大大加快查询速度。 ### 6. 页面静态化 对商品详情和订单详情进行页面静态化处理,页面是存在html,动态数据是通过接口从服务端获取,实现前后端分离,静态页面无需连接数据库打开速度较动态页面会有明显提高 ### 7. 本地标记 + redis预处理 + RabbitMQ异步下单 + 客户端轮询 描述:通过三级缓冲保护,1、本地标记 2、redis预处理 3、RabbitMQ异步下单,最后才会访问数据库,这样做是为了最大力度减少对数据库的访问。 实现: 1. 在秒杀阶段使用本地标记对用户秒杀过的商品做标记,若被标记过直接返回重复秒杀,未被标记才查询redis,通过本地标记来减少对redis的访问 2. 抢购开始前,将商品和库存数据同步到redis中,所有的抢购操作都在redis中进行处理,通过Redis预减少库存减少数据库访问 3. 为了保护系统不受高流量的冲击而导致系统崩溃的问题,使用RabbitMQ用异步队列处理下单,实际做了一层缓冲保护,做了一个窗口模型,窗口模型会实时的刷新用户秒杀的状态。 4. client端用js轮询一个接口,用来获取处理状态 ### 8. 解决超卖 描述:比如某商品的库存为1,此时用户1和用户2并发购买该商品,用户1提交订单后该商品的库存被修改为0,而此时用户2并不知道的情况下提交订单,该商品的库存再次被修改为-1,这就是超卖现象 实现: 1. 对库存更新时,先对库存判断,只有当库存大于0才能更新库存 2. 对用户id和商品id建立一个唯一索引,通过这种约束避免同一用户发同时两个请求秒杀到两件相同商品 3. 实现乐观锁,给商品信息表增加一个version字段,为每一条数据加上版本。每次更新的时候version+1,并且更新时候带上版本号,当提交前版本号等于更新前版本号,说明此时没有被其他线程影响到,正常更新,如果冲突了则不会进行提交更新。当库存是足够的情况下发生乐观锁冲突就进行一定次数的重试。 ### 9. 使用数学公式验证码 描述:点击秒杀前,先让用户输入数学公式验证码,验证正确才能进行秒杀。 好处: 1. 防止恶意的机器人和爬虫 2. 分散用户的请求 实现: 1. 前端通过把商品id作为参数调用服务端创建验证码接口 2. 服务端根据前端传过来的商品id和用户id生成验证码,并将商品id+用户id作为key,生成的验证码作为value存入redis,同时将生成的验证码输入图片写入imageIO让前端展示 3. 将用户输入的验证码与根据商品id+用户id从redis查询到的验证码对比,相同就返回验证成功,进入秒杀;不同或从redis查询的验证码为空都返回验证失败,刷新验证码重试 ### 10. 使用RateLimiter实现限流 描述:当我们去秒杀一些商品时,此时可能会因为访问量太大而导致系统崩溃,此时要使用限流来进行限制访问量,当达到限流阀值,后续请求会被降级;降级后的处理方案可以是:返回排队页面(高峰期访问太频繁,等一会重试)、错误页等。 实现:项目使用RateLimiter来实现限流,RateLimiter是guava提供的基于令牌桶算法的限流实现类,通过调整生成token的速率来限制用户频繁访问秒杀页面,从而达到防止超大流量冲垮系统。(令牌桶算法的原理是系统会以一个恒定的速度往桶里放入令牌,而如果请求需要被处理,则需要先从桶里获取一个令牌,当桶里没有令牌可取时,则拒绝服务) ## 压测效果 优化前 :开启1000个线程循环10次同时访问,QPS = 423 ![优化前](https://github.com/zaiyunduan123/jesper_seckill/blob/master/src/main/resources/static/img/stress-test/goodsList_test_3.png) 优化后:QPS = 2501 ![优化后](https://github.com/zaiyunduan123/jesper_seckill/blob/master/src/main/resources/static/img/stress-test/optimised_goodslist.png) ## 关于项目运行的步骤 1. 把sql目录下的seckill.sql脚本在你MySQL跑一遍,生成数据库表和数据 2. 启动项目需要用到的组件Redis和RabbitMQ 3. 直接运行启动类MainApplication.java 4. 访问localhost:8080/login/to_login 5. 登录的用户名是18181818181,密码是123456 ----- 本项目是学习了imooc网视频之后的个人理解和知识汇总,学习链接:https://coding.imooc.com/class/168.html
0
snazy/ohc
Java large off heap cache
null
null
0
openjdk/loom
https://openjdk.org/projects/loom
java jvm loom openjdk
# Welcome to the JDK! For build instructions please see the [online documentation](https://openjdk.org/groups/build/doc/building.html), or either of these files: - [doc/building.html](doc/building.html) (html version) - [doc/building.md](doc/building.md) (markdown version) See <https://openjdk.org/> for more information about the OpenJDK Community and the JDK and see <https://bugs.openjdk.org> for JDK issue tracking.
0
TheKingOfDuck/burpFakeIP
服务端配置错误情况下用于伪造ip地址进行测试的Burp Suite插件
null
## burpFakeIP 下载使用:[Releases](https://github.com/TheKingOfDuck/burpFakeIP/releases/tag/1.0) **2021/09/24** 1. 修复[M00nBack](https://github.com/M00nBack)反馈的一个bug。 2. 添加了AutoXFF的开关,并将AutoXFF默认设置不开启,如需让插件给每个请求头添加一个随机的XFF请求头可在右键菜单中选择ON开启 **2021/05/21** 使用Java重构,增加了[issue](https://github.com/TheKingOfDuck/burpFakeIP/issues/8)中提到的功能特性,新增给每个请求自动添加XFF头以及随机IP的功能,具体可见右键菜单AutoXFF,默认情况下自动添加的xff头为X-Forwarded-For,值为生成的随机IP,均可自定义。 **2020/04/25** 优化代码,新增9种请求头。 ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597179485863.png) 四个小功能 * 伪造指定ip * 伪造本地ip * 伪造随机ip * 随机ip爆破 ### 0x01 伪造指定ip 在`Repeater`模块右键选择`fakeIp`菜单,然后点击`inputIP`功能,然后输入指定的ip: ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597184839805.png) ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597185444300.png) 程序会自动添加所有可伪造得字段到请求头中。 ### 0x02 伪造本地ip 在`Repeater`模块右键选择`fakeIp`菜单,然后点击`127.0.0.1`功能: ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597186627939.png) ### 0x03 伪造随机ip 在`Repeater`模块右键选择`fakeIp`菜单,然后点击`randomIP`功能: ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597187304576.png) ### 0x04 随机ip爆破 **伪造随机ip爆破是本插件最核心的功能。** 将数据包发送到`Intruder`模块,在`Positions`中切换`Attack type`为`Pitchfork`模式,选择好有效的伪造字段,以及需要爆破的字段: ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597190596991.png) 按照箭头顺序将Payload来源设置为`Extensin-generated`,并设置负载伪`fakeIpPayloads`,然后设置第二个变量。 ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597191239161.png) ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597192426317.png) 点击`Start attack`开始爆破. ![](https://github.com/TheKingOfDuck/BurpFakeIP/blob/master/images/15597193222287.png) 如上图,实现每次爆破都使用不同的伪ip进行,避免被ban。 > PS:伪造随机ip爆破的先决条件可以伪造ip绕过服务器限制。
0
cjlin1/libsvm
LIBSVM -- A Library for Support Vector Machines
null
null
0
eirslett/frontend-maven-plugin
Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally
runs NPM install
# frontend-maven-plugin [![Build Status OSX and Linux](https://travis-ci.org/eirslett/frontend-maven-plugin.png?branch=master)](https://travis-ci.org/eirslett/frontend-maven-plugin) [![Build status Windows](https://ci.appveyor.com/api/projects/status/vxbccc1t9ceadhi9?svg=true)](https://ci.appveyor.com/project/eirslett/frontend-maven-plugin) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.eirslett/frontend-maven-plugin/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.github.eirslett/frontend-maven-plugin/) This plugin downloads/installs Node and NPM locally for your project, runs `npm install`, and then any combination of [Bower](http://bower.io/), [Grunt](http://gruntjs.com/), [Gulp](http://gulpjs.com/), [Jspm](http://jspm.io), [Karma](http://karma-runner.github.io/), or [Webpack](http://webpack.github.io/). It's supposed to work on Windows, OS X and Linux. If you prefer [Yarn](https://yarnpkg.com/) over [NPM](https://www.npmjs.com/) for your node package fetching, this plugin can also download Node and Yarn and then run `yarn install` for your project. #### What is this plugin meant to do? - Let you keep your frontend and backend builds as separate as possible, by reducing the amount of interaction between them to the bare minimum; using only 1 plugin. - Let you use Node.js and its libraries in your build process without installing Node/NPM globally for your build system - Let you ensure that the version of Node and NPM being run is the same in every build environment #### What is this plugin not meant to do? - Not meant to replace the developer version of Node - frontend developers will still install Node on their laptops, but backend developers can run a clean build without even installing Node on their computer. - Not meant to install Node for production uses. The Node usage is intended as part of a frontend build, running common javascript tasks such as minification, obfuscation, compression, packaging, testing etc. **Notice:** _This plugin does not support already installed Node or npm versions. Use the `exec-maven-plugin` instead._ ## Requirements * _Maven 3.6_ and _Java 1.8_ * For _Maven 2_ support take a look at the [wiki](https://github.com/eirslett/frontend-maven-plugin/wiki#maven-2). ## Installation Include the plugin as a dependency in your Maven project. Change `LATEST_VERSION` to the latest tagged version. ```xml <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ --> <version>LATEST_VERSION</version> ... </plugin> ... ``` ## Usage Have a look at the [example project](frontend-maven-plugin/src/it/example%20project), to see how it should be set up: https://github.com/eirslett/frontend-maven-plugin/blob/master/frontend-maven-plugin/src/it/example%20project/pom.xml - [Installing node and npm](#installing-node-and-npm) - [Installing node and yarn](#installing-node-and-yarn) - Running - [npm](#running-npm) - [yarn](#running-yarn) - [bower](#running-bower) - [grunt](#running-grunt) - [gulp](#running-gulp) - [jspm](#running-jspm) - [karma](#running-karma) - [webpack](#running-webpack) - Configuration - [Working Directory](#working-directory) - [Installation Directory](#installation-directory) - [Proxy Settings](#proxy-settings) - [Environment variables](#environment-variables) - [Ignoring Failure](#ignoring-failure) - [Skipping Execution](#skipping-execution) **Recommendation:** _Try to run all your tasks via npm scripts instead of running bower, grunt, gulp etc. directly._ ### Installing node and npm The versions of Node and npm are downloaded from https://nodejs.org/dist, extracted and put into a `node` folder created in your [installation directory](#installation-directory) . Node/npm will only be "installed" locally to your project. It will not be installed globally on the whole system (and it will not interfere with any Node/npm installations already present). ```xml <plugin> ... <executions> <execution> <!-- optional: you don't really need execution ids, but it looks nice in your build log. --> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <!-- optional: default phase is "generate-resources" --> <phase>generate-resources</phase> </execution> </executions> <configuration> <nodeVersion>v4.6.0</nodeVersion> <!-- optional: with node version greater than 4.0.0 will use npm provided by node distribution --> <npmVersion>2.15.9</npmVersion> <!-- optional: where to download node and npm from. Defaults to https://nodejs.org/dist/ --> <downloadRoot>http://myproxy.example.org/nodejs/</downloadRoot> </configuration> </plugin> ``` You can also specify separate download roots for npm and node as they are stored in separate repos. In case the root configured requires authentication, you can specify a server ID from your maven settings file: ```xml <plugin> ... <configuration> <!-- optional: where to download node from. Defaults to https://nodejs.org/dist/ --> <nodeDownloadRoot>http://myproxy.example.org/nodejs/</nodeDownloadRoot> <!-- optional: credentials to use from Maven settings to download node --> <serverId>server001</serverId> <!-- optional: where to download npm from. Defaults to https://registry.npmjs.org/npm/-/ --> <npmDownloadRoot>https://myproxy.example.org/npm/</npmDownloadRoot> </configuration> </plugin> ``` You can use Nexus repository Manager to proxy npm registries. See https://help.sonatype.com/display/NXRM3/Npm+Registry **Notice:** _Remember to gitignore the `node` folder, unless you actually want to commit it._ ### Installing node and yarn Instead of using Node with npm you can alternatively choose to install Node with Yarn as the package manager. The versions of Node and Yarn are downloaded from `https://nodejs.org/dist` for Node and from the Github releases for Yarn, extracted and put into a `node` folder created in your installation directory. Node/Yarn will only be "installed" locally to your project. It will not be installed globally on the whole system (and it will not interfere with any Node/Yarn installations already present). If your project is using Yarn Berry (2.x or above), the Yarn version is handled per project but a Yarn 1.x install is still needed as a "bootstrap". The plugin will try to detect `.yarnrc.yml` file in the current Maven project/module folder, at the root of the multi-module project if relevant, and in the folder from which the `mvn` command was run. If detected, the plugin will assume your project is using Yarn Berry. It will install the 1.x Yarn version you specify with `yarnVersion` as bootstrap, then hand over to your project-specific version. Have a look at the example `POM` to see how it should be set up with Yarn: https://github.com/eirslett/frontend-maven-plugin/blob/master/frontend-maven-plugin/src/it/yarn-integration/pom.xml ```xml <plugin> ... <execution> <!-- optional: you don't really need execution ids, but it looks nice in your build log. --> <id>install node and yarn</id> <goals> <goal>install-node-and-yarn</goal> </goals> <!-- optional: default phase is "generate-resources" --> <phase>generate-resources</phase> </execution> <configuration> <nodeVersion>v6.9.1</nodeVersion> <yarnVersion>v0.16.1</yarnVersion> <!-- optional: where to download node from. Defaults to https://nodejs.org/dist/ --> <nodeDownloadRoot>http://myproxy.example.org/nodejs/</nodeDownloadRoot> <!-- optional: where to download yarn from. Defaults to https://github.com/yarnpkg/yarn/releases/download/ --> <yarnDownloadRoot>http://myproxy.example.org/yarn/</yarnDownloadRoot> </configuration> </plugin> ``` ### Running npm All node packaged modules will be installed in the `node_modules` folder in your [working directory](#working-directory). By default, colors will be shown in the log. ```xml <execution> <id>npm install</id> <goals> <goal>npm</goal> </goals> <!-- optional: default phase is "generate-resources" --> <phase>generate-resources</phase> <configuration> <!-- optional: The default argument is actually "install", so unless you need to run some other npm command, you can remove this whole <configuration> section. --> <arguments>install</arguments> </configuration> </execution> ``` **Notice:** _Remember to gitignore the `node_modules` folder, unless you actually want to commit it. Npm packages will always be installed in `node_modules` next to your `package.json`, which is default npm behavior._ #### npx You can also use [`npx` command](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner), enabling you to execute the CLI of installed packages without a run-script, or even packages that aren't installed at all. ```xml <execution> <id>say hello</id> <goals> <goal>npx</goal> </goals> <phase>generate-resources</phase> <configuration> <arguments>cowsay hello</arguments> </configuration> </execution> ``` ### Running yarn As with npm above, all node packaged modules will be installed in the `node_modules` folder in your [working directory](#working-directory). ```xml <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <configuration> <!-- optional: The default argument is actually "install", so unless you need to run some other yarn command, you can remove this whole <configuration> section. --> <arguments>install</arguments> </configuration> </execution> ``` #### Yarn with Private Registry NOTE: if you have a private npm registry that mirrors the npm registry, be aware that yarn.lock includes URLs to the npmjs.org module registry and yarn install will use these paths when installing modules. If you want yarn.lock to use your private npm registry, be sure to run these commands on your local machine before you generate yarn.lock: ``` yarn config set registry <your_registry_url> yarn install ``` This will create URLs in your yarn.lock file that reference your private npm registry. Another way to set a registry is to add a .npmrc file in your project's root directory that contains: ``` registry=<your_registry_url> ``` Also you can set a registry using a tag `npmRegistryURL` ``` <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <configuration> <!-- optional: The default argument is actually "install", so unless you need to run some other yarn command, you can remove this whole <configuration> section. --> <arguments>install</arguments> <!-- optional: where to download npm modules from. Defaults to https://registry.yarnpkg.com/ --> <npmRegistryURL>http://myregistry.example.org/</npmRegistryURL> </configuration> </execution> ``` ### Running bower All bower dependencies will be installed in the `bower_components` folder in your working directory. ```xml <execution> <id>bower install</id> <goals> <goal>bower</goal> </goals> <configuration> <!-- optional: The default argument is actually "install", so unless you need to run some other bower command, you can remove this whole <configuration> section. --> <arguments>install</arguments> </configuration> </execution> ``` **Notice:** _Remember to gitignore the `bower_components` folder, unless you actually want to commit it._ ### Running Grunt It will run Grunt according to the `Gruntfile.js` in your working directory. By default, colors will be shown in the log. ```xml <execution> <id>grunt build</id> <goals> <goal>grunt</goal> </goals> <!-- optional: the default phase is "generate-resources" --> <phase>generate-resources</phase> <configuration> <!-- optional: if not specified, it will run Grunt's default task (and you can remove this whole <configuration> section.) --> <arguments>build</arguments> </configuration> </execution> ``` ### Running gulp Very similar to the Grunt execution. It will run gulp according to the `gulpfile.js` in your working directory. By default, colors will be shown in the log. ```xml <execution> <id>gulp build</id> <goals> <goal>gulp</goal> </goals> <!-- optional: the default phase is "generate-resources" --> <phase>generate-resources</phase> <configuration> <!-- optional: if not specified, it will run gulp's default task (and you can remove this whole <configuration> section.) --> <arguments>build</arguments> </configuration> </execution> ``` ### Running jspm All jspm dependencies will be installed in the `jspm_packages` folder in your working directory. ```xml <execution> <id>jspm install</id> <goals> <goal>jspm</goal> </goals> <configuration> <!-- optional: The default argument is actually "install", so unless you need to run some other jspm command, you can remove this whole <configuration> section. --> <arguments>install</arguments> </configuration> </execution> ``` ### Running Karma ```xml <execution> <id>javascript tests</id> <goals> <goal>karma</goal> </goals> <!-- optional: the default plase is "test". Some developers choose to run karma in the "integration-test" phase. --> <phase>test</phase> <configuration> <!-- optional: the default is "karma.conf.js" in your working directory --> <karmaConfPath>src/test/javascript/karma.conf.ci.js</karmaConfPath> </configuration> </execution> ``` **Skipping tests:** If you run maven with the `-DskipTests` flag, karma tests will be skipped. **Ignoring failed tests:** If you want to ignore test failures run maven with the `-Dmaven.test.failure.ignore` flag, karma test results will not stop the build but test results will remain in test output files. Suitable for continuous integration tool builds. **Why karma.conf.ci.js?** When using Karma, you should have two separate configurations: `karma.conf.js` and `karma.conf.ci.js`. (The second one should inherit configuration from the first one, and override some options. The example project shows you how to set it up.) The idea is that you use `karma.conf.js` while developing (using watch/livereload etc.), and `karma.conf.ci.js` when building - for example, when building, it should only run karma once, it should generate xml reports, it should run only in PhantomJS, and/or it should generate code coverage reports. **Running Karma through Grunt or gulp:** You may choose to run Karma [directly through Grunt](https://github.com/karma-runner/grunt-karma) or [through gulp](https://github.com/karma-runner/gulp-karma) instead, as part of the `grunt` or `gulp` execution. That will help to separate your frontend and backend builds even more. ### Running Webpack ```xml <execution> <id>webpack build</id> <goals> <goal>webpack</goal> </goals> <!-- optional: the default phase is "generate-resources" --> <phase>generate-resources</phase> <configuration> <!-- optional: if not specified, it will run webpack's default build (and you can remove this whole <configuration> section.) --> <arguments>-p</arguments> </configuration> </execution> ``` ### Optional Configuration #### Working directory The working directory is where you've put `package.json` and your frontend configuration files (`Gruntfile.js` or `gulpfile.js` etc). The default working directory is your project's base directory (the same directory as your `pom.xml`). You can change the working directory if you want: ```xml <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- optional --> <configuration> <workingDirectory>src/main/frontend</workingDirectory> </configuration> </plugin> ``` **Notice:** _Npm packages will always be installed in `node_modules` next to your `package.json`, which is default npm behavior._ #### Installation Directory The installation directory is the folder where your node and npm are installed. You can set this property on the different goals. Or choose to set it for all the goals, in the maven configuration. ```xml <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- optional --> <configuration> <installDirectory>target</installDirectory> </configuration> </plugin> ``` #### Proxy settings If you have [configured proxy settings for Maven](http://maven.apache.org/guides/mini/guide-proxies.html) in your settings.xml file, the plugin will automatically use the proxy for downloading node and npm, as well as [passing the proxy to npm commands](https://docs.npmjs.com/misc/config#proxy). **Non Proxy Hosts:** npm does not currently support non proxy hosts - if you are using a proxy and npm install is not downloading from your repository, it may be because it cannot be accessed through your proxy. If that is the case, you can stop the npm execution from inheriting the Maven proxy settings like this: ```xml <configuration> <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> </configuration> ``` If you have [configured proxy settings for Maven](http://maven.apache.org/guides/mini/guide-proxies.html) in your settings.xml file, the plugin will automatically [pass the proxy to bower commands](https://docs.npmjs.com/misc/config#proxy). If that is the case, you can stop the bower execution from inheriting the Maven proxy settings like this: ```xml <configuration> <bowerInheritsProxyConfigFromMaven>false</bowerInheritsProxyConfigFromMaven> </configuration> ``` If you want to disable proxy for Yarn you can use `yarnInheritsProxyConfigFromMaven`. When you have proxy settings in your settings.xml file if you don't use this param it will run code below with proxy settings, in some cases you don't want that. Adding this param into the configuration section will solve this issue ```xml <execution> <id>tests</id> <goals> <goal>yarn</goal> </goals> <phase>compile</phase> <configuration> <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven> <arguments>run test</arguments> </configuration> </execution> ``` #### Environment variables If you need to pass some variable to Node, you can set that using the property `environmentVariables` in configuration tag of an execution like this: ```xml <configuration> <environmentVariables> <!-- Simple var --> <Jon>Snow</Jon> <Tyrion>Lannister</Tyrion> <!-- Var value take from maven properties --> <NODE_ENV>${NODE_ENV}</NODE_ENV> </environmentVariables> </configuration> ``` #### Ignoring Failure **Ignoring failed tests:** If you want to ignore test failures in specific execution you can set that using the property `maven.test.failure.ignore` in configuration tag of an execution like this: ```xml <configuration> <testFailureIgnore>true</testFailureIgnore> </configuration> ``` #### Skipping Execution Each frontend build tool and package manager allows skipping execution. This is useful for projects that contain multiple builds (such as a module containing Java and frontend code). **Note** that if the package manager (npm or yarn) is skipped, other build tools will also need to be skipped because they would not have been downloaded. For example, in a project using npm and gulp, if npm is skipped, gulp must also be skipped or the build will fail. Tools and property to enable skipping * npm `-Dskip.npm` * yarn `-Dskip.yarn` * bower `-Dskip.bower` * bun `-Dskip.bun` * grunt `-Dskip.grunt` * gulp `-Dskip.gulp` * jspm `-Dskip.jspm` * karma `-Dskip.karma` * webpack `-Dskip.webpack` ## Eclipse M2E support This plugin contains support for M2E, including lifecycle mappings and support for incremental builds in Eclipse. The `install-node-and-npm` goal will only run on a full project build. The other goals support incremental builds to avoid doing unnecessary work. During an incremental build the `npm` goal will only run if the `package.json` file has been changed. The `grunt` and `gulp` goals have new `srcdir` and `triggerfiles` optional configuration options; if these are set they check for changes in your source files before being run. See the wiki for more information. ## Helper scripts During development, it's convenient to have the "npm", "bower", "grunt", "gulp" and "karma" commands available on the command line. If you want that, use [those helper scripts](frontend-maven-plugin/src/it/example%20project/helper-scripts)! ## To build this project: Run `$ mvn clean install` ## Issues, Contributing Please post any issues on the [Github's Issue tracker](https://github.com/eirslett/frontend-maven-plugin/issues). [Pull requests](https://github.com/eirslett/frontend-maven-plugin/pulls) are welcome! You can find a full list of [contributors here](https://github.com/eirslett/frontend-maven-plugin/graphs/contributors). ## License [Apache 2.0](LICENSE)
0
apache/incubator-kie-drools
Drools is a rule engine, DMN engine and complex event processing (CEP) engine for Java.
dmn hacktoberfest java rule-engine
An open source rule engine, [DMN engine](https://drools.org/learn/dmn.html) and complex event processing (CEP) engine for Java™ and the JVM Platform. Drools is a business rule management system with a forward-chaining and backward-chaining inference based rules engine, allowing fast and reliable evaluation of business rules and complex event processing. A rule engine is also a fundamental building block to create an expert system which, in artificial intelligence, is a computer system that emulates the decision-making ability of a human expert. Be sure to check out the Drools' project [website](https://drools.org) and [documentation](https://drools.org/learn/documentation.html)! Developing Drools and jBPM ========================== **If you want to build or contribute to a kiegroup project, [read this document](https://github.com/kiegroup/droolsjbpm-build-bootstrap/blob/main/README.md).** **It will save you and us a lot of time by setting up your development environment correctly.** It solves all known pitfalls that can disrupt your development. It also describes all guidelines, tips and tricks. If you want your pull requests (or patches) to be merged, please respect those guidelines. Test execution tip ================== Some test are meant to be executed on machine with _en_US_ locale. A specific profile is provided to execute them on machines with different locale, namely `test-en`. There are two ways to activate such profile during maven build: 1. `-Ptest-en` (profile-id based) 2. `-DTestEn` (property based) The following two commands will execute tests on machine with locale different than _en_US_: 1. `make test -Ptest-en` 2. `make test -DTestEn`
0
irsdl/IIS-ShortName-Scanner
latest version of scanners for IIS short filename (8.3) disclosure vulnerability
null
IIS Short Name Scanner - 2012-2023 & Still Giving... ===================== Latest presentation: * [Beyond Microsoft IIS Short File Name Disclosure](/presentation/Steelcon-2023-Beyond_Microsoft_IIS_Short_File_Name_Disclosure.pdf) Latest blog post: * https://soroush.me/blog/2023/07/thirteen-years-on-advancing-the-understanding-of-iis-short-file-name-sfn-disclosure/ I recommended everyone to try @bitquark's new tool in Go before trying this old tool: https://github.com/bitquark/shortscan The latest version of scanner for IIS short file name (8.3) disclosure vulnerability by using the tilde (~) character. This issue has been discovered in 2010 but has been evolved a few times since. This is an old tool and the code is a spaghetti, but it is capable to tackle even the latest IIS (IIS 10 on Windows Server 2022 at the time of writing this)! It has recently been updated, so it can support sending custom HTTP methods without reflection hacks in Java. However, some awesome researchers have tried to reimplement this tool using other technologies such as in Go, and when they become mature, they probably work better than this. Description ------------- Microsoft IIS contains a flaw that may lead to an unauthorized information disclosure. The issue is triggered during the parsing of a request that contains a tilde character (~). This may allow a remote attacker to gain access to file and folder name information. This scanner was moved from https://code.google.com/p/iis-shortname-scanner-poc/ to GitHub for better support. Original research file: http://soroush.secproject.com/downloadable/microsoft_iis_tilde_character_vulnerability_feature.pdf It is possible to detect short names of files and directories which have an 8.3 equivalent in Windows by using some vectors in several versions of Microsoft IIS. For instance, it is possible to detect all short-names of ".aspx" files as they have 4 letters in their extensions. Note: new techniques have been introduced to the latest versions of this scanner, and it can now scan IIS10 when it is vulnerable. It is not easy to find the original file or folder names based on the short names. However, the following methods are recommended as examples: - If you can guess the full extension (for instance .ASPX when the 8.3 extension is .ASP), always try the short name with the full extension. - Sometimes short names are listed in Google which can be used to find the actual names - Using text dictionary files is also recommended. If a name starts with another word, the second part should be guessed based on a dictionary file separately. For instance, ADDACC~1.ASP can be AddAccount.aspx, AddAccounts.aspx, AddAccurateMargine.aspx, etc - Searching in the website contents and resources can also be useful to find the full name. This can be achieved for example by searching Site Map in the Burp Suite tool. Installation -------------- The recent version has been compiled by using Open JDK 18 (the old jar files for other JDKs have been removed but can be found in the Git history). You will need to download files in the [/release](https://github.com/irsdl/IIS-ShortName-Scanner/tree/master/release) directory to use this old application! You can also compile this application yourself. Please submit any issues in GitHub for further investigation. Usage ------- ### Command line options USAGE 1 (To verify if the target is vulnerable with the default config file): ``` java -jar iis_shortname_scanner.jar [URL] ``` USAGE 2 (To find 8.3 file names with the default config file): ``` java -jar iis_shortname_scanner.jar [ShowProgress] [ThreadNumbers] [URL] ``` USAGE 3 (To verify if the target is vulnerable with a new config file): ``` java -jar iis_shortname_scanner.jar [URL] [configFile] ``` USAGE 4 (To find 8.3 file names with a new config file): ``` java -jar iis_shortname_scanner.jar [ShowProgress] [ThreadNumbers] [URL] [configFile] ``` USAGE 5 (To scan multiple targets using a linux box): ``` ./multi_targets.sh <scope file> <is_default_https (1=https)> ``` DETAILS: ``` [ShowProgress]: 0= Show final results only - 1= Show final results step by step - 2= Show Progress [ThreadNumbers]: 0= No thread - Integer Number = Number of concurrent threads [be careful about IIS Denial of Service] [URL]: A complete URL - starts with http/https protocol [configFile]: path to a new config file which is based on config.xml ``` Examples: ``` - Example 0 (to see if the target is vulnerable): java -jar iis_shortname_scanner.jar http://example.com/folder/ - Example 1 (uses no thread - very slow): java -jar iis_shortname_scanner.jar 2 0 http://example.com/folder/new%20folder/ - Example 2 (uses 20 threads - recommended): java -jar iis_shortname_scanner.jar 2 20 http://example.com/folder/new%20folder/ - Example 3 (saves output in a text file): java -jar iis_shortname_scanner.jar 0 20 http://example.com/folder/new%20folder/ > c:\results.txt - Example 4 (bypasses IIS basic authentication): java -jar iis_shortname_scanner.jar 2 20 http://example.com/folder/AuthNeeded:$I30:$Index_Allocation/ - Example 5 (using a new config file): java -jar iis_shortname_scanner.jar 2 20 http://example.com/folder/ newconfig.xml - Example 6 (scanning multiple targets using a linux box): ./multi_targets.sh scope.txt 1 ``` Note 1: Edit config.xml file to change the scanner settings and add additional headers. Note 2: Sometimes it does not work for the first time, and you need to try again. How Does It Work? ------------------ In the following examples, IIS responds with a different message when a file exists: ``` http://target/folder/valid*~1.*/.aspx http://target/folder/invalid*~1.*/.aspx ``` However, different IIS servers may respond differently, and for instance some of them may work with the following or other similar patterns: ``` http://target/folder/valid*~1.*\.asp http://target/folder/invalid*~1.*\.asp ``` Method of sending the request such as GET, POST, OPTIONS, DEBUG, ... is also important. I believe monitoring the requests by using a proxy is the best way of understating this issue and this scanner. How To Fix This Issue ---------------------- Microsoft will not patch this security issue. Their last response is as follows: ``` Thank you for contacting the Microsoft Security Response Center. We appreciate your bringing this to our attention. Our previous guidance stands: deploy IIS with 8.3 names disabled. ``` Therefore, it is recommended to deploy IIS with 8.3 names disabled by creating the following registry key on a Windows operating system: ``` Key: HKLM\SYSTEM\CurrentControlSet\Control\FileSystem Name: NtfsDisable8dot3NameCreation Value: 1 ``` Note: The web folder needs to be recreated, as the change to the NtfsDisable8dot3NameCreation registry entry affects only files and directories that are created after the change, so the files that already exist are not affected. Docker Usage ------------ build the image: ```bash docker build . -t shortname ``` file mode: ```bash docker run \ -v $(realpath urls.txt):/app/urls.txt \ -v $(realpath output_dir):/app/iis_shortname_results \ shortname -f urls.txt ``` single mode: ```bash docker run shortname 2 20 http://example.com ``` overwrite config file: ```bash docker run \ -v $(realpath config.xml):/app/config.xml \ shortname http://example.com ``` References ------------ Research links: * https://soroush.me/blog/2023/07/thirteen-years-on-advancing-the-understanding-of-iis-short-file-name-sfn-disclosure/ * https://soroush.secproject.com/blog/2014/08/iis-short-file-name-disclosure-is-back-is-your-server-vulnerable/ * http://soroush.secproject.com/downloadable/microsoft_iis_tilde_character_vulnerability_feature.pdf (old original research) Website Reference: * http://soroush.secproject.com/blog/2012/06/microsoft-iis-tilde-character-vulnerabilityfeature-short-filefolder-name-disclosure/ Video Links: * https://www.youtube.com/watch?v=KbZ-y7b7yDs at SteelCon 2023 * https://www.youtube.com/watch?v=HrJW6Y9kHC4 by shubs (@infosec_au) * http://www.youtube.com/watch?v=XOd90yCXOP4 Other links: * http://www.osvdb.org/83771 * http://www.exploit-db.com/exploits/19525/ * http://securitytracker.com/id?1027223
0
alibaba/jvm-sandbox-repeater
A Java server-side recording and playback solution based on JVM-Sandbox
null
null
0
spring-projects/spring-authorization-server
Spring Authorization Server
null
null
0
oracle/opengrok
OpenGrok is a fast and usable source code search and cross reference engine, written in Java
code engine java opengrok search source
Copyright (c) 2006, 2024 Oracle and/or its affiliates. All rights reserved. # OpenGrok - a wicked fast source browser [![Github actions build](https://github.com/oracle/opengrok/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/oracle/opengrok/actions) [![Coverage status](https://sonarcloud.io/api/project_badges/measure?project=org.opengrok%3Aopengrok-top&metric=coverage)](https://sonarcloud.io/summary/new_code?id=org.opengrok%3Aopengrok-top) [![SonarQube status](https://sonarcloud.io/api/project_badges/measure?project=org.opengrok%3Aopengrok-top&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.opengrok%3Aopengrok-top) [![License](https://img.shields.io/badge/License-CDDL%201.0-blue.svg)](https://opensource.org/licenses/CDDL-1.0) - [OpenGrok - a wicked fast source browser](#opengrok---a-wicked-fast-source-browser) - [1. Introduction](#1-introduction) - [2. OpenGrok install and setup](#2-Installation) - [3. Information for developers](#3-information-for-developers) - [4. Authors](#4-authors) - [5. Contact us](#5-contact-us) - [6. Run as container](#6-run-as-container) ## 1. Introduction OpenGrok is a fast and usable source code search and cross reference engine, written in Java. It helps you search, cross-reference and navigate your source tree. It can understand various program file formats and version control histories of many source code management systems. Official page of the project is on: <https://oracle.github.io/opengrok/> ## 2. Installation See https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok ### 2. 1. Updating OpenGrok uses [semantic versioning](https://semver.org/) and the version components further indicate more details about updating to newer version. The version scheme is *major.minor.micro* and change in any component is interpreted as: - major - major backwards incompatible update, will require full reindex as well as configuration changes - minor - full clean reindex of your repositories is needed (e. g. index format has changed) - micro - redeploy web application Generally it is possible to go backward only within the micro version. ## 3. Information for developers See https://github.com/oracle/opengrok/wiki/Developer-intro and https://github.com/oracle/opengrok/wiki/Developers ## 4. Authors The project has been originally conceived in [Sun Microsystems](https://en.wikipedia.org/wiki/Sun_Microsystems) by Chandan B.N. For full list of contributors see https://github.com/oracle/opengrok/graphs/contributors ## 5. Contact us Use the [Github Discussions](https://github.com/oracle/opengrok/discussions). ## 6. Run as container You can run OpenGrok as a Docker container as described [here](docker/README.md). ## Contributing This project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md) ## Security Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process ## License Copyright (c) 2006, 2024 Oracle and/or its affiliates.
0
yizhiwazi/springboot-socks
SpringBoot 基础教程 | 从入门到上瘾 | 基于2.0.0.M5制作
null
推荐阅读本教程的三大理由: 1. 文章内容均为原创,结合官方文档和实战经验编写。 2. 文章结构经过细致整理,对新人学习更加友好。 3. 精选常用技术,不求全面,但求精华!! # SpringBoot 源码精读 图文教程 ##### 源码下载:[《SpringBoot 基础教程-Git 》](https://github.com/yizhiwazi/springboot-socks)   — Hey Man,Don't forget to Star or Fork . — ##### 专题阅读:[《SpringBoot 从入门到上瘾 》](http://www.jianshu.com/p/964370d9374e) # 快速入门 ##### [SpringBoot 快速入门 + 3分钟打造RestAPI](http://www.jianshu.com/p/17e0e55c88db) ##### [SpringBoot 使用Spring Initializr快速构建工程 ](http://www.jianshu.com/p/d2b08a671e27) ##### [SpringBoot 工程结构推荐(新手必看)](http://www.jianshu.com/p/6dcfe16d91d0) # 开发工具 ##### [IntelliJ IDEA 使用教程(2017图文版) -- 从入门到上瘾](http://www.jianshu.com/p/9c65b7613c30) # 外部配置 ##### [SpringBoot 配置文件详解(告别XML)](http://www.jianshu.com/p/60b34464ca58) ##### [SpringBoot 如何下载最新的版本依赖](http://www.jianshu.com/p/6654e9fec93b) # 数据库案例 ##### [SpringBoot 快速整合MyBatis(去XML化+初体验)](http://www.jianshu.com/p/fa89b59ade40) ##### [SpringBoot 快速整合Mybatis(去XML化+注解进阶)](http://www.jianshu.com/p/828d2bd12b2f) ##### [SpringBoot 快速整合Mybatis(去XML化+通用Service)](http://www.jianshu.com/p/4b4e75952e74) ##### [SpringBoot 快速整合SpringDataJPA (优雅篇)](http://www.jianshu.com/p/71087bafdcdd) ##### [SpringBoot 快速开启事务(附常见坑点)](http://www.jianshu.com/p/380a9d980ca5) # 模板引擎 ##### [SpringBoot 添加对JSP的支持(附常见坑点)](http://www.jianshu.com/p/de939365c472) ##### [SpringBoot Thymeleaf--基于HTML5的现代模板引擎](http://www.jianshu.com/p/8dc48fa74e7e) # 异常处理 ##### [SpringBoot 统一异常处理(附核心工具类-ErrorInfoBuilder)](http://www.jianshu.com/p/3998ea8b53a8) # 接口文档 ##### [SpringBoot 使用Swagger2打造在线接口文档(附汉化教程)](http://www.jianshu.com/p/7e543f0f0bd8) # 多模块划分(Maven) ##### [SpringBoot 多模块项目实践(附打包方法)](http://www.jianshu.com/p/59ceea4f029d) # 跨域访问 ##### [SpringBoot 实现前后端分离的跨域访问(CORS)](http://www.jianshu.com/p/477e7eaa6c2f) ##### [SpringBoot 实现前后端分离的跨域访问(Nginx)](http://www.jianshu.com/p/520021853827) # 定时任务 ##### [SpringBoot 创建定时任务(配合数据库动态执行)](http://www.jianshu.com/p/d160f2536de7) # 趣味阅读 ##### [【团队必备】阿里巴巴Java开发规约插件(附使用手册)](http://www.jianshu.com/p/cd19d42b00c8)
0
noear/solon
🔥 New Java application development framework: FASTER, SMALLER, SIMPLER!! 2 to 3 times more concurrency 50% memory savings Startup is 5-10 times faster. 50% ~ 90% smaller packaging; Compatible with java8 ~ java22.
aop-framework ioc-framework java microservice miro-framework no-servlet no-spring plugin remoting rest-api rpc solon solon-cloud web-framework
<h1 align="center" style="text-align:center;"> <img src="solon_icon.png" width="128" /> <br /> Solon v2.7.5 </h1> <p align="center"> <strong>Java's new application development framework. Faster, smaller, and easier!</strong> </p> <p align="center"> <a href="https://solon.noear.org/">https://solon.noear.org</a> </p> <p align="center"> <a target="_blank" href="https://central.sonatype.com/search?q=org.noear%3Asolon-parent"> <img src="https://img.shields.io/maven-central/v/org.noear/solon.svg?label=Maven%20Central" alt="Maven" /> </a> <a target="_blank" href="LICENSE"> <img src="https://img.shields.io/:License-Apache2-blue.svg" alt="Apache 2" /> </a> <a target="_blank" href="https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html"> <img src="https://img.shields.io/badge/JDK-8-green.svg" alt="jdk-8" /> </a> <a target="_blank" href="https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html"> <img src="https://img.shields.io/badge/JDK-11-green.svg" alt="jdk-11" /> </a> <a target="_blank" href="https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html"> <img src="https://img.shields.io/badge/JDK-17-green.svg" alt="jdk-17" /> </a> <a target="_blank" href="https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html"> <img src="https://img.shields.io/badge/JDK-21-green.svg" alt="jdk-21" /> </a> <a target="_blank" href="https://www.oracle.com/java/technologies/javase/jdk22-archive-downloads.html"> <img src="https://img.shields.io/badge/JDK-22-green.svg" alt="jdk-22" /> </a> <br /> <a target="_blank" href='https://gitee.com/noear/solon/stargazers'> <img src='https://gitee.com/noear/solon/badge/star.svg' alt='gitee star'/> </a> <a target="_blank" href='https://github.com/noear/solon/stargazers'> <img src="https://img.shields.io/github/stars/noear/solon.svg?logo=github" alt="github star"/> </a> </p> <br/> <p align="center"> <a href="https://jq.qq.com/?_wv=1027&k=kjB5JNiC"> <img src="https://img.shields.io/badge/QQ交流群-22200020-orange"/></a> </p> ##### Language: English | [中文](README_CN.md) | [Русский](README_RU.md) | [日本語](README_JP.md) <hr /> <p align="center"> 2 to 3 times more concurrency 50% memory savings Startup is 5-10 times faster. 50% ~ 90% smaller packaging; Compatible with java8 ~ java22 <br/> Built from scratch, with more flexible interface specifications and an open ecosystem </p> <hr /> ## Features: Better cost performance for computing: * Throughput: 2-3 times higher concurrency per second * Resources: 50% memory savings Better developer productivity, easier coding experience: * Development: Flexible and simple architecture; Quick to get started * Debugging: Restarts are 5-10 times faster. Locating problems faster Faster production and deployment experience: * Artifacts: 50% ~ 90% smaller packaging * Deploy: images are fast to pull and start up (5-10x) Wider runtime compatibility: * Breakthrough: Non-Java-EE architecture, more flexibility * Compatibility: Compatible with java8, java11, java17, java21, java22 runtime ## Ecosystem Architecture Diagram: * solon <img src="solon_schema.png" width="700" /> * solon cloud <img src="solon_cloud_schema.png" width="700" /> ## Official website and related examples, cases: * Official website address:[https://solon.noear.org](https://solon.noear.org) * Official website supporting demos:[https://gitee.com/noear/solon-examples](https://gitee.com/noear/solon-examples) * Project unit test:[__test](./__test/) * User case:[User open source project](https://solon.noear.org/article/555)、[User business project](https://solon.noear.org/article/cases) ## Special thanks to JetBrains for supporting open-source projects: <a href="https://jb.gg/OpenSourceSupport"> <img src="https://user-images.githubusercontent.com/8643542/160519107-199319dc-e1cf-4079-94b7-01b6b8d23aa6.png" align="left" height="100" width="100" alt="JetBrains"> </a>
0