- Spring Boot 集成 Redisson 实现消息队列
入秋的大橘
SpringBootspringboot后端java
包含组件内容RedisQueue:消息队列监听标识RedisQueueInit:Redis队列监听器RedisQueueListener:Redis消息队列监听实现RedisQueueService:Redis消息队列服务工具代码实现RedisQueueimportjava.lang.annotation.ElementType;importjava.lang.annotation.Retenti
- 工具代码 | 网络联通测试命令
w_3123454
工具和使用技巧网络服务器运维
调用第三方服务时,通常需要先测试下当前服务器能否调通该地址,以通知运维做相关安全组配置。以下是常用方法测试网络端点是否可以调通:一.测试域名(测域名时不可带http等前缀)pingexample.com二、测试ip和端口telnet192.168.1.10080nc-zv192.168.1.10080(使用这个需要Linux上先装netcat)其他:Netcat被称为tcp/ip最好用的工具,nc
- Postgresql 的编译安装与包管理安装, 全发行版 Linux 通用
M·K·T
#linux应用部署postgresqllinux数据库云原生运维服务器
博客原文文章目录实验环境信息编译安装获取安装包环境依赖编译安装安装contrib下工具代码创建用户创建数据目录设置开机自启动启动数据库常用运维操作apt安装更新源安装postgresql开机自启修改配置修改密码实验环境信息Ubuntu20.04Postgre16.1编译安装获取安装包从PostgreSQL官网下载PostgreSQL的安装包$VERSION=16.1$wgethttps://ftp
- vue3-插件
王大可996
vue3vue.jsvue前端javascript
插件插件(Plugins)是一种能为Vue添加全局功能的工具代码。安装一个插件在main.ts或者main.js中的入口文件内import { createApp } from 'vue'const app = createApp({})app.use(myPlugin, { /* 可选的选项 */})一个插件可以是一个拥有install()方法的对象,也可以直接是一个安装函数本身。安装函数会接
- React 安装chrome调试工具
squidbrother
由于chrome无法连接外网,所以需要下载调试工具,到本地进行二次安装安装流程(版本较react脚手架4.0.3过与陈旧,浏览器渲染错误,已经放弃)【见底部4.13.2版本开发工具安装】官网下载开发工具代码包官方链接解压安装包,解压目录下打开命令行工具,修改下载源并安装依赖npm--registryhttps://registry.npm.taobao.orginstall打包chrome调试工具
- 实现屏蔽 Ctrl + Alt + Del 、Ctrl + Shift + Esc 等热键(二)
涟幽516
快捷键机制系列文章windows微软学习方法汇编交互
目录前言一、概述Winlogon的RPC例程二、Handler函数的消息处理机制三、讨论如何安全执行HOOK代码3.1挂钩例程解决方案3.2脱钩例程解决方案3.3钩子例程解决方案3.4地址信息查询函数3.5简单保护加载的模块四、模块如何安全地注入?4.1多进程处理4.2模块重载问题4.3关键注入代码4.4提升进程权限4.5处理句柄和环境检测五、编译代码和测试运行5.1钩子模块代码5.2注入工具代码
- 服务器过多,快速编辑MTPutty登录连接,java工具代码
赵思空
java服务器windows
1.代码***@ClassNameXMLGenerator*@DescriptionTODO*@Authorduckweed*@Date2023/7/209:58*@Version1.0*/publicclassXMLGenerator{/***标识*/privatestaticListdisplayNames=Arrays.asList("-149","-141","-191","-241","
- 前端工程化基础(二):前端包管理工具npm/yarn/cnpm/npx/pnpm
前端大菜鸟_
前端工程化基础前端npmnode.js
前端包管理工具代码共享方案创建自己的官网,将代码放到官网上面将代码提交到GitHub上面,负责让使用者下载将代码提交到npmregistry上面下载比较方便,使用npminstallxxx即可下载相应的代码npm管理的包npm配置文件主要用于存储项目的名称,版本号,描述,用到的依赖等相关信息初始化一个配置文件从零开始一个项目,可以通过npminit-y通过脚手架进行创建(比如vue的vuecrea
- python 工具代码
worxfr
pythonjavalinux
可以使用Python标准库中的shutil模块中的copytree函数来实现复制目录及其子目录中的所有文件。具体操作步骤如下:importshutil#复制src目录及其子目录中的所有文件到dst目录中shutil.copytree(src,dst)其中,src表示要复制的源目录,dst表示要复制到的目标目录。copytree函数会递归地复制src目录及其子目录中的所有文件到dst目录中。如果ds
- 7 CSS字体样式属性
江湖上的程序员
前端0基础学习相关css
目标应用使用css字体样式完成对字体的设置使用css外观属性给页面元素添加样式使用常用的emment语法能够使用开发人员工具代码调试1.font字体1.1font-size:字体大小1.2font-family字体CSSUnicode字体1.3font-weight字体粗细1.4font-style字体风格1.5font:综合设置字体样式(重点)1.6font总结2.CSS外观属性2.1color
- [SNMP]使用widows MGMTAPI 发送SNMP消息
zlllc
SNMPlinux网络tcp/ipc++windows
文章目录Linux开启SNMP功能Windows控制台程序参考文章和工具代码实现结果截图不足我想研究一下,windows怎么通过SNMP协议探测LINUX设备的状态。目前使用WindowsSNMPMGMTAPI来做一个简单的控制台程序,发送SNMPRequest给一个打开了SNMP功能的Linux设备,然后输出SNMP返回信息到控制台窗口。Linux开启SNMP功能按照这篇文章设置即可:Ubunt
- PyQt5_股票K线图相似度工具
程序猿与金融与科技
金融PyQt5pandas基础与金融实例练习python
如果对某一股票K线图了解比较深刻,可以通过相似度找到与该股票相似的K线图,那么对这些相似的K线图,可以借鉴已经深刻剖析过的股票的方法,已达到事半功倍的效果。K线图相似度的计算方法使用的是该博文中的方法。目录效果计算K线图相似度策略代码工具代码工具使用数据效果计算K线图相似度策略代码前置说明:1.必须以“excute_strategy”为方法名2.三个参数,参数1为股票代码股票名键值对;参数2为股票
- 个人网站制作 Part 5 优化网站性能(图片压缩、代码优化) | Web开发项目
冰.封万里
前端前端个人网站制作项目Web开发
文章目录基础Web开发练手项目系列:个人网站制作优化网站性能图片优化步骤1:使用压缩工具代码优化步骤2:压缩CSS和JavaScript步骤3:合并文件步骤4:延迟加载预览与保存下一步计划基础Web开发练手项目系列:个人网站制作欢迎回到基础Web开发练手项目系列!在前六篇博文中,我们已经创建了个人网站的基本结构、样式、导航栏、项目展示、联系信息、表单交互、动画效果、页面滚动效果和响应式设计。在
- 红队专题-Golang工具ChYing
amingMM
web
Golang工具ChYing招募六边形战士队员原chying工具代码分析并发访问控制并发原子写入读取通道嵌套映射结构初始化启动代理服务器重启代理服务器招募六边形战士队员一起学习代码审计、安全开发、web攻防、逆向等。。。私信联系原chying工具代码分析前有Chying后有Tscanplus并发访问控制typeSMapstruct{sync.RWMutex//标准读写锁Mapmap[int]*HT
- Vue3插件开发教程:步步指导如何编写Vue3插件
程序员海军
Vue开发实战总结vue前端前端框架
关注⬆️⬆️⬆️⬆️专栏后期更新更多前端内容文章目录Vue3插件插件注册形式插件主要的场景使用插件Vue3插件插件(Plugins)是一种能为Vue添加全局功能的工具代码。插件注册形式一个插件可以是一个拥有install()方法的对象,也可以直接是一个安装函数本身。install方法对象exportdefault{install:(
- Http请求工具【添加请求头】
YangzaiLeHeHe
【项目总结】Http工具
文章目录一、工具代码:一、工具代码:package*.*;importorg.apache.http.NameValuePair;importorg.apache.http.client.entity.UrlEncodedFormEntity;importorg.apache.http.client.methods.CloseableHttpResponse;importorg.apache.ht
- msckf-vio 跑Euroc数据集,并用evo进行评估
清风微升至
视觉SLAMmsckf笔记
所需材料:Euroc数据集主页:https://projects.asl.ethz.ch/datasets/doku.php?id=kmavvisualinertialdatasetsevo评估工具代码:https://github.com/MichaelGrupp/evo向msckf-vio中添加保存位姿的代码,可参考https://blog.csdn.net/xiaoxiaoyikesu/ar
- CSS:前端基础 & CSS 文字文本样式
jovelin
学习目标应用使用css字体样式完成对字体的设置使用css外观属性给页面元素添加样式使用常用的emment语法能够使用开发人员工具代码调试1.font字体1.1font-size大小作用:font-size属性用于设置字号p{font-size:20px;}单位:可以使用相对长度单位,也可以使用绝对长度单位。相对长度单位比较常用,推荐使用像素单位px,绝对长度单位使用较少。注意:我们文字大小以后,基
- Linux服务器之间迁移资料
Pr 彭儒
linux运维服务器
1.迁移数据,工具代码文件:scp-P端口号源文件路径目标服务器用户名@目标服务器IP:目标文件夹路径示例:scp-P10022/opt/docker/mysql/backup/2021-08-12_01\:00\:01/
[email protected]:/opt/docker/mysql/backup/文件夹:scp-P端口号-r源文件夹路径目标服务器用户名@目标服务器IP:目标文件夹路径示例:
- coco json转xml格式(开箱即用代码)
tangjunjun-owen
toolsjsonxmlcoco格式转xml格式
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言一、整体逻辑1、main函数2、逻辑二、函数介绍三、整体代码总结前言最近使用很多其它模型,大多模型都有自己对应格式,有时其它模型的cocojson格式的数据测试也都要进行数据格式转换,有时候也想看cocojson注释显示在图上。那么,你可能需要一个cocojson格式转xml格式代码,帮助查看,且我总是会把这些工具代码莫名
- Unity编辑器紫色
Dongo2
unity编辑器游戏引擎
紫色原因是因为编辑器内跑了其他平台的shader兼容性导致的,需要动态的去修改shader,主要用到Unity的api:Shader.Find(shaderName);具体的工具代码如下:usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.UI;publicclassSh
- Redis源码精读:准备工作
醉墨居士
Redisredis数据库缓存
文章目录前言拉取源码项目结构源码阅读技巧最后前言我是醉墨居士,未来的一段时间里面我准备写一些关于Redis源码的文章,来帮助大家深入浅出Redis,希望大家多多支持拉取源码gitclonehttps://github.com/redis/redis项目结构deps第三方依赖包src核心代码tests测试代码utils工具代码源码阅读技巧阅读源码,不是一件简单的任务如果看的太细腻,可能会陷入无尽的代
- 小程序使用腾讯API定位的全过程(详细)
00008795
小程序微信小程序
文章目录一、获取腾讯API的key二、小程序代码编写1.引入前面下载的文件,解压后放入2.代码编写微信开发工具代码片段示例提示:以下是本篇文章正文内容,下面案例可供参考一、获取腾讯API的key腾讯官方文档详细步骤进入腾讯服务官网如果没有账号就注册一个进入控制台,如果没有应用就创造一个key的名称最好能让自己以后区分清楚,其他框住需要勾选保存之后就会生成后面需要的key了下载微信小程序JavaSc
- 【随笔】MD5加密字符串、文件commons-codec、springframework实现
爱码少年
Java技术随笔javaspringMD5
文章目录一、引入依赖二、工具代码三、测试代码四、输出结果一、引入依赖commons-codeccommons-codeccommons-codec1.13二、工具代码importjava.io.File;importjava.io.FileInputStream;importjava.io.IOException;importjava.io.InputStream;importorg.apache
- Python爬虫分析唯品会商品数据 +数据可视化
python_小曼
信息可视化python爬虫
目录前言数据来源分析1.明确需求2.抓包分析:通过浏览器自带工具:开发者工具代码实现步骤:发送请求->获取数据->解析数据->保存数据发送请求解析数据保存数据数据可视化先读取数据泳衣商品性别占比商品品牌分布占比各大品牌商品售价平均价格各大品牌商品原价平均价格唯品会泳衣商品售价价格区间前言大家好我是小曼呐!唯品会是中国领先的在线特卖会电商平台之一,它以“品牌特卖会”的模式运营,为会员提供品牌折扣商品
- python相关工具代码之网络图片下载并显示出下载图片保存到的地址
墨鱼丸家
python学习相关python开发语言
#coding=utf-8fromPyQt5.QtCoreimport*fromPyQt5.QtGuiimport*fromPyQt5.QtWidgetsimport*importtimeimportrandomimportosimporturllib.requestfrombs4importBeautifulSoup'''信号传参类型pyqtSignal()#无参数信号pyqtSignal(in
- 小程序简易教程
frank_yuanxiaogang
小程序
起步进入微信公众平台注册小程序注册成功后在设置中找到appId(该appId相当于小程序的身份证)下载开发者工具代码构成.json后缀的JSON配置文件.wxml后缀的wxml模板文件.wxss后缀的wxss样式文件.js后缀的js脚本逻辑文件1、JSON配置{"pages":["pages/index/index","pages/logs/logs"],"window":{"background
- go使用aes加密算法
超维Ai编程
golang开发语言后端
工具代码packagetoolimport("bytes""crypto/aes""crypto/cipher")//AES加密函数varkey[]byte=[]byte("0@#3456789ABCDEF")//todo记住这个长度只能是162432如果不是的话话会报错funcEncrypt(data[]byte)([]byte,error){block,err:=aes.NewCipher(k
- KMP基础架构
李小白lt
kotlinandroidioskmp架构跨平台desktop
前言Kotlin可以用来开发全栈,我们所熟悉的各个端几乎都支持(除了鸿蒙)而我们要开发好KMP项目需要一个好的基础架构,这样不仅代码更清晰,而且能共享更多的代码正文我们可以先将KMP分为前端和服务端它们两端也能共享一些代码,比如接口声明,bean类,基础工具类等前端和服务端共享基础工具类首先是基础工具类,module可以命名为stdUtil这些工具类应该是可以仅使用Kotlin基础库的一些工具代码
- C语言实现Linux下TCP Server测试工具
秦剑
network工具linuxtcp/ipgit
LinuxTCPServer测试工具代码实现了接受数据并输出文本和十六制字符串#include#include#include#include#include#include#include#include#include#include#defineSERVER_PORT8081#defineSERVER_IP"0.0.0.0"voidByteToHexStr(constunsignedchar
- java Illegal overloaded getter method with ambiguous type for propert的解决
zwllxs
javajdk
好久不来iteye,今天又来看看,哈哈,今天碰到在编码时,反射中会抛出
Illegal overloaded getter method with ambiguous type for propert这么个东东,从字面意思看,是反射在获取getter时迷惑了,然后回想起java在boolean值在生成getter时,分别有is和getter,也许我们的反射对象中就有is开头的方法迷惑了jdk,
- IT人应当知道的10个行业小内幕
beijingjava
工作互联网
10. 虽然IT业的薪酬比其他很多行业要好,但有公司因此视你为其“佣人”。
尽管IT人士的薪水没有互联网泡沫之前要好,但和其他行业人士比较,IT人的薪资还算好点。在接下的几十年中,科技在商业和社会发展中所占分量会一直增加,所以我们完全有理由相信,IT专业人才的需求量也不会减少。
然而,正因为IT人士的薪水普遍较高,所以有些公司认为给了你这么多钱,就把你看成是公司的“佣人”,拥有你的支配
- java 实现自定义链表
CrazyMizzz
java数据结构
1.链表结构
链表是链式的结构
2.链表的组成
链表是由头节点,中间节点和尾节点组成
节点是由两个部分组成:
1.数据域
2.引用域
3.链表的实现
&nbs
- web项目发布到服务器后图片过一会儿消失
麦田的设计者
struts2上传图片永久保存
作为一名学习了android和j2ee的程序员,我们必须要意识到,客服端和服务器端的交互是很有必要的,比如你用eclipse写了一个web工程,并且发布到了服务器(tomcat)上,这时你在webapps目录下看到了你发布的web工程,你可以打开电脑的浏览器输入http://localhost:8080/工程/路径访问里面的资源。但是,有时你会突然的发现之前用struts2上传的图片
- CodeIgniter框架Cart类 name 不能设置中文的解决方法
IT独行者
CodeIgniterCart框架
今天试用了一下CodeIgniter的Cart类时遇到了个小问题,发现当name的值为中文时,就写入不了session。在这里特别提醒一下。 在CI手册里也有说明,如下:
$data = array(
'id' => 'sku_123ABC',
'qty' => 1,
'
- linux回收站
_wy_
linux回收站
今天一不小心在ubuntu下把一个文件移动到了回收站,我并不想删,手误了。我急忙到Nautilus下的回收站中准备恢复它,但是里面居然什么都没有。 后来我发现这是由于我删文件的地方不在HOME所在的分区,而是在另一个独立的Linux分区下,这是我专门用于开发的分区。而我删除的东东在分区根目录下的.Trash-1000/file目录下,相关的删除信息(删除时间和文件所在
- jquery回到页面顶端
知了ing
htmljquerycss
html代码:
<h1 id="anchor">页面标题</h1>
<div id="container">页面内容</div>
<p><a href="#anchor" class="topLink">回到顶端</a><
- B树、B-树、B+树、B*树
矮蛋蛋
B树
原文地址:
http://www.cnblogs.com/oldhorse/archive/2009/11/16/1604009.html
B树
即二叉搜索树:
1.所有非叶子结点至多拥有两个儿子(Left和Right);
&nb
- 数据库连接池
alafqq
数据库连接池
http://www.cnblogs.com/xdp-gacl/p/4002804.html
@Anthor:孤傲苍狼
数据库连接池
用MySQLv5版本的数据库驱动没有问题,使用MySQLv6和Oracle的数据库驱动时候报如下错误:
java.lang.ClassCastException: $Proxy0 cannot be cast to java.sql.Connec
- java泛型
百合不是茶
java泛型
泛型
在Java SE 1.5之前,没有泛型的情况的下,通过对类型Object的引用来实现参数的“任意化”,任意化的缺点就是要实行强制转换,这种强制转换可能会带来不安全的隐患
泛型的特点:消除强制转换 确保类型安全 向后兼容
简单泛型的定义:
泛型:就是在类中将其模糊化,在创建对象的时候再具体定义
class fan
- javascript闭包[两个小测试例子]
bijian1013
JavaScriptJavaScript
一.程序一
<script>
var name = "The Window";
var Object_a = {
name : "My Object",
getNameFunc : function(){
var that = this;
return function(){
- 探索JUnit4扩展:假设机制(Assumption)
bijian1013
javaAssumptionJUnit单元测试
一.假设机制(Assumption)概述 理想情况下,写测试用例的开发人员可以明确的知道所有导致他们所写的测试用例不通过的地方,但是有的时候,这些导致测试用例不通过的地方并不是很容易的被发现,可能隐藏得很深,从而导致开发人员在写测试用例时很难预测到这些因素,而且往往这些因素并不是开发人员当初设计测试用例时真正目的,
- 【Gson四】范型POJO的反序列化
bit1129
POJO
在下面这个例子中,POJO(Data类)是一个范型类,在Tests中,指定范型类为PieceData,POJO初始化完成后,通过
String str = new Gson().toJson(data);
得到范型化的POJO序列化得到的JSON串,然后将这个JSON串反序列化为POJO
import com.google.gson.Gson;
import java.
- 【Spark八十五】Spark Streaming分析结果落地到MySQL
bit1129
Stream
几点总结:
1. DStream.foreachRDD是一个Output Operation,类似于RDD的action,会触发Job的提交。DStream.foreachRDD是数据落地很常用的方法
2. 获取MySQL Connection的操作应该放在foreachRDD的参数(是一个RDD[T]=>Unit的函数类型),这样,当foreachRDD方法在每个Worker上执行时,
- NGINX + LUA实现复杂的控制
ronin47
nginx lua
安装lua_nginx_module 模块
lua_nginx_module 可以一步步的安装,也可以直接用淘宝的OpenResty
Centos和debian的安装就简单了。。
这里说下freebsd的安装:
fetch http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar zxvf lua-5.1.4.tar.gz
cd lua-5.1.4
ma
- java-递归判断数组是否升序
bylijinnan
java
public class IsAccendListRecursive {
/*递归判断数组是否升序
* if a Integer array is ascending,return true
* use recursion
*/
public static void main(String[] args){
IsAccendListRecursiv
- Netty源码学习-DefaultChannelPipeline2
bylijinnan
javanetty
Netty3的API
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/ChannelPipeline.html
里面提到ChannelPipeline的一个“pitfall”:
如果ChannelPipeline只有一个handler(假设为handlerA)且希望用另一handler(假设为handlerB)
来
- Java工具之JPS
chinrui
java
JPS使用
熟悉Linux的朋友们都知道,Linux下有一个常用的命令叫做ps(Process Status),是用来查看Linux环境下进程信息的。同样的,在Java Virtual Machine里面也提供了类似的工具供广大Java开发人员使用,它就是jps(Java Process Status),它可以用来
- window.print分页打印
ctrain
window
function init() {
var tt = document.getElementById("tt");
var childNodes = tt.childNodes[0].childNodes;
var level = 0;
for (var i = 0; i < childNodes.length; i++) {
- 安装hadoop时 执行jps命令Error occurred during initialization of VM
daizj
jdkhadoopjps
在安装hadoop时,执行JPS出现下面错误
[slave16]
[email protected]:/tmp/hsperfdata_hdfs# jps
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working
- PHP开发大型项目的一点经验
dcj3sjt126com
PHP重构
一、变量 最好是把所有的变量存储在一个数组中,这样在程序的开发中可以带来很多的方便,特别是当程序很大的时候。变量的命名就当适合自己的习惯,不管是用拼音还是英语,至少应当有一定的意义,以便适合记忆。变量的命名尽量规范化,不要与PHP中的关键字相冲突。 二、函数 PHP自带了很多函数,这给我们程序的编写带来了很多的方便。当然,在大型程序中我们往往自己要定义许多个函数,几十
- android笔记之--向网络发送GET/POST请求参数
dcj3sjt126com
android
使用GET方法发送请求
private static boolean sendGETRequest (String path,
Map<String, String> params) throws Exception{
//发送地http://192.168.100.91:8080/videoServi
- linux复习笔记 之bash shell (3) 通配符
eksliang
linux 通配符linux通配符
转载请出自出处:
http://eksliang.iteye.com/blog/2104387
在bash的操作环境中有一个非常有用的功能,那就是通配符。
下面列出一些常用的通配符,如下表所示 符号 意义 * 万用字符,代表0个到无穷个任意字符 ? 万用字符,代表一定有一个任意字符 [] 代表一定有一个在中括号内的字符。例如:[abcd]代表一定有一个字符,可能是a、b、c
- Android关于短信加密
gqdy365
android
关于Android短信加密功能,我初步了解的如下(只在Android应用层试验):
1、因为Android有短信收发接口,可以调用接口完成短信收发;
发送过程:APP(基于短信应用修改)接受用户输入号码、内容——>APP对短信内容加密——>调用短信发送方法Sm
- asp.net在网站根目录下创建文件夹
hvt
.netC#hovertreeasp.netWeb Forms
假设要在asp.net网站的根目录下建立文件夹hovertree,C#代码如下:
string m_keleyiFolderName = Server.MapPath("/hovertree");
if (Directory.Exists(m_keleyiFolderName))
{
//文件夹已经存在
return;
}
else
{
try
{
D
- 一个合格的程序员应该读过哪些书
justjavac
程序员书籍
编者按:2008年8月4日,StackOverflow 网友 Bert F 发帖提问:哪本最具影响力的书,是每个程序员都应该读的?
“如果能时光倒流,回到过去,作为一个开发人员,你可以告诉自己在职业生涯初期应该读一本, 你会选择哪本书呢?我希望这个书单列表内容丰富,可以涵盖很多东西。”
很多程序员响应,他们在推荐时也写下自己的评语。 以前就有国内网友介绍这个程序员书单,不过都是推荐数
- 单实例实践
跑龙套_az
单例
1、内部类
public class Singleton {
private static class SingletonHolder {
public static Singleton singleton = new Singleton();
}
public Singleton getRes
- PO VO BEAN 理解
q137681467
VODTOpo
PO:
全称是 persistant object持久对象 最形象的理解就是一个PO就是数据库中的一条记录。 好处是可以把一条记录作为一个对象处理,可以方便的转为其它对象。
BO:
全称是 business object:业务对象 主要作用是把业务逻辑封装为一个对象。这个对
- 战胜惰性,暗自努力
金笛子
努力
偶然看到一句很贴近生活的话:“别人都在你看不到的地方暗自努力,在你看得到的地方,他们也和你一样显得吊儿郎当,和你一样会抱怨,而只有你自己相信这些都是真的,最后也只有你一人继续不思进取。”很多句子总在不经意中就会戳中一部分人的软肋,我想我们每个人的周围总是有那么些表现得“吊儿郎当”的存在,是否你就真的相信他们如此不思进取,而开始放松了对自己的要求随波逐流呢?
我有个朋友是搞技术的,平时嘻嘻哈哈,以
- NDK/JNI二维数组多维数组传递
wenzongliang
二维数组jniNDK
多维数组和对象数组一样处理,例如二维数组里的每个元素还是一个数组 用jArray表示,直到数组变为一维的,且里面元素为基本类型,去获得一维数组指针。给大家提供个例子。已经测试通过。
Java_cn_wzl_FiveChessView_checkWin( JNIEnv* env,jobject thiz,jobjectArray qizidata)
{
jint i,j;
int s