- 博客(41)
- 资源 (14)
- 收藏
- 关注
原创 Symbol not found: __cg_jpeg_resync_to_restart
【代码】Symbol not found: __cg_jpeg_resync_to_restart。
2024-07-04 19:43:26 199
原创 在 android 开发中的 EGL
EGL 是 Khronos 渲染 API(如OpenGL ES 或 OpenVG)和底层本机平台窗口系统(the underlying native platform window system)之间的一个中间接口层。它处理图形上下文管理、表面/缓冲区( surface/buffer )绑定和渲染同步,并使用其他 Khronos api 实现高性能、加速、混合模式的2D和3D渲染。EGL 还提供了 Khronos 之间的互操作功能,以实现 api 之间的有效数据传输。
2023-06-22 18:44:32 258
转载 Getting started with Android’s intent filters
activity= null) {) {...intent?.let {...
2023-03-09 17:48:39 109
原创 java 的内存一致性
此文是目前本人对 java 的内存一致性 的认识与理解,随着本人技术的成长,我将不断完善对它的理解与使用。针对网上各种各样的,杂乱随意的描述,我将尽最大努力,对其进行相应的描述。阐述过程中尽最大努力做到,描述准确,语义明确,简洁易读,容易理解。欢迎各位同道中人批评、讨论,加关注。Java 语言规范里的 Happens-before 顺序,定义了,诸如对共享变量的读取和写入等内存操作的 happens-before 关系。只有当写操作发生在读操作之前,一个线程写的结果才能保证对另一个线程的读是可见的。Java
2022-06-19 10:58:10 248
原创 java final 关键字的使用,第一部分 final 数据(final data)
Java 的 final 关键字根据上下文应用场景的不同而含义略有不同,但总的来说,用它修饰定义,则表示被修饰的目标不可更改。通常出于两个原因想要禁止目标的更改:设计或效率。因
2022-06-19 09:53:18 348
转载 #if 0 to block out code sections
If there are sections of code that you are considering removing or want to temporarily disable, you can comment it out with a block comment.However, if the source code you have surrounded with a block comment has block style comments in the source, the
2022-06-03 18:30:16 62
原创 Undefined symbols for architecture x86_64: in mac OS
_pcre2_code_free_8_pcre2_general_context_create_8
2022-06-01 14:38:26 2078
转载 Use struct Alignment and Padding in C
reference:Use struct Alignment and Padding in C | Delft StackThis article will explain several methods of how to usestructalignment and padding in C.Understand the Basics of Alignment and Padding in CAll objects in memory are represented as the pr...
2022-05-22 00:35:12 141
转载 Data Structure alignment
Data structure alignment is the way data is arranged and accessed in computer memory. Data alignment and Data structure padding are two different issues but are related to each other and together known as Data Structure alignment.Data alignment: Data alig.
2022-05-21 19:43:42 108
原创 Java Class ArrayDeque
让我们再了解一下ArrayDeque,容量限制ArrayDeque没有容量限制;它们会根据需要增长以支持使用。线程安全它们并不是线程安全的;在没有外部同步的情况下,它们不支持多线程并发访问。
2022-05-04 21:57:19 394
原创 java Deque 接口
怎样才能完全了解这个java接口呢。。。首先,概括的说,它是一个支持从两端进行插入和移除元素的线性集合。再看它的命名,deque是英文"double ended queue"的简写,知道来源,便于理解记忆,意思是“双端队列”,前两个单词取首字母,最后一个单词取前3个字母。读音可以一般读作"deck"。............
2022-04-30 21:27:45 452
原创 了解一下mmap函数
这是一个c标准库(libc, -lc)里的函数。它的主要功能,概括的说,就是分配内存,或将文件或设备映射到内存中去。在使用此函数前,你需要引入头文件,#include <sys/mman.h>,函数声明是这样的,void * mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset);下面我们来详细的了解一下此函数,对 mmap() 系统调用,将产生,从地址 addr 开始,并持续最多 len
2022-04-29 16:26:37 3973
原创 use PhpStorm port安装php80 in mac OSX
1. 系统环境的php版本为PHP 7.1.33 (cli) (built: Jan 26 2020 22:52:32) ( NTS )Copyright (c) 1997-2018 The PHP GroupZend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies2. 现安装php8.0megumikichikus-MacBook-Pro:~ xxxx$ sudo port install phpPassword
2022-04-06 19:42:44 425
转载 Outline of the Collections Framework 集合框架大纲
The collections framework consists of:Collection interfaces- The primary means by which collections are manipulated. Collection- A group of objects. No assumptions are made about the order of the collection (if any) or whether it can contain duplicat..
2022-03-14 18:44:10 104
原创 port install apache2 for mac
megumikichikus-MacBook-Pro:~ xxxx$ sudo port install apache2Password:---> Computing dependencies for apache2The following dependencies will be installed:aprapr-utilContinue? [Y/n]: y---> Fetching archive for apr---> Attempting t...
2021-11-27 22:32:52 508
转载 Command go
Start a bug report Compile packages and dependencies Remove object files and cached files Show documentation for package or symbol Print Go environment information Update packages to use new APIs Gofmt (reformat) package sources...
2021-10-10 15:53:07 1244
转载 How to Write Go Code
How to Write Go Code Introduction Code organization Workspaces The GOPATH environment variable Package paths Your first program Your first library Package names Testing Remote packages What's next Getting he
2021-10-10 15:47:28 93
原创 MongoDB 如何查找指定范围内的坐标点
MongoDB 地理信息建索引 后方可以查找指定范围内的坐标点,db.vehicle.ensureIndex({'coordinate':'2dsphere'})db.vehicle.insert({coordinate:{longitude:116.40244,latitude:39.963175},phoneno:"18501053571",description:"Some goods here!!",address:"ShangDi”})db.vehicle.ensureIndex.
2021-10-10 11:23:24 683
原创 About MongoDB Run MongoDB
Run MongoDB.To run MongoDB, run themongodprocess at the system prompt. If necessary, specify the path of themongodor the data directory. See the following examples.Run without specifying pathsIf your systemPATHvariable includes the location of...
2021-10-10 11:15:26 74
原创 研究生课程汇总
计算机科学与技术 研究生课程数据结构 微型计算机系统接口技术 智能控制 知识工程 语音信号数字处理 多媒体计算机技术 超大规模集成电路布图理论与算法 超大规模集成电路布图理论与算法 数字系统自动设计 算法与算法复杂性理论 计算机支持的协同工作CSCW 微计算机系统设计 计算机网络和计算机系统的性能评价 并行计算 计算智能及机器人学 现代优化算法――设计与实践 计算科学与工程中的并行编程技术 下一代互联网 网格计算 计算机网络前沿.
2021-10-10 11:11:42 97
原创 xcode c++ 编程使用 protobuf
1、我当前使用的mac OS系统是:macOS MojaveVersion 10.14.62、Command Line Tools:Xcode Version 11.3.1 (11C504)3、安装protobuf,如果你愿意,可以选择源码安装,我的开发环境采用port管理维护,所以port安装(Centos下使用yum,Ubuntu使用sudo apt-get),安装 protobuf-cprotobuf3-cpp,执行命令:macbook-pro:~ username..
2021-10-08 21:18:15 771
转载 Demystifying The Restrict Keyword
By Mike Acton onMay 29, 2006 10:38 PMUPDATED! More examples! More detailed explainations!CONTRACTThe restrict keyword can be considered an extension to the strict aliasing rule. It allows the programmer to declare that pointers which share the same..
2021-10-06 20:30:46 127
原创 port install cmake in mac osx
192:share hostname$ sudo port install cmakePassword:---> Computing dependencies for cmakeThe following dependencies will be installed:libarchivelibuvlzo2Continue? [Y/n]: y---> Fetching archive for lzo2---> Attempting to fetch ...
2021-10-04 11:45:32 692
原创 Install protobuf in mac OSx
install protobufprotobuf-cprotobuf3-cppmacbook-pro:UseKQueue hostname$ sudo port install protobuf-c---> Computing dependencies for protobuf-cThe following dependencies will be installed: protobuf3-cppContinue? [Y/n]: Y---> Fetching ...
2021-10-04 11:36:35 123
原创 ‘google/protobuf/io/zero_copy_stream.h‘ file not found
Mac osx 环境,当引入#include <google/protobuf/io/zero_copy_stream.h>时,显示'google/protobuf/io/zero_copy_stream.h' file not found错误,解决方法:macbook-pro:UseKQueue 192.168.0.11$ sudo port install protobuf-c---> Computing dependencies for protobuf-c.
2021-09-28 18:42:34 606
原创 我的编程常用
BSD Library Functions ManualSYNOPSIS#include <execinfo.h> int backtrace(void** array, int size); char** backtrace_symbols(void* const* array, int size); void backtrace_symbols_fd(void* const* array, int size, i...
2021-04-22 11:35:15 154
翻译 关键字constexpr(C++)
关键字constexpr是在C++11中引入的,并且在C++14中得到了改进。像const一样,它可以应用于变量:当任何代码试图去修改该值时,都会引发编译器错误;与const不同,constexpr也可以应用于函数和类构造函数。constexpr表示该值或返回值是恒定的,并在可能的情况下在编译时进行计算。constexpr整数值可在需要const整数的任何地方使用,例如,在模板参数和数组声明中。当在编译时而不是运行时计算一个值时,它可以帮助您的程序更快地运行并使用更少的内存。 为了限制编译时常..
2021-03-02 21:50:12 2301
原创 Install Boost_1_75_0 in Centos7.9.2009
在centos系统,如果你想使用Boost的二进制库(Boost Library Binary),你就需要安装boost_1_75_0,1、下载安装包boost_1_75_0.tar.bz2,并解压放至你想放至的目录(don't type$; that represents the shell's prompt),$ tar --bzip2 -xf /path/to/boost_1_75_0.tar.bz22、进入解压目录,运行如下命令,$ cd path/to/boost_1_75..
2020-12-23 18:26:41 854
原创 聊聊java多线程
本篇文章,为本人在某一阶段对此问题的个人理解总结,欢迎高手评论。对java中线程同步的理解对于这个话题,我们可以从两个方面去拆解,思考, 首先,我需要知道线程同步的概念,什么是线程同步呢?为了充分利用硬件资源(对应多cpu单核、单cup多核、多cpu多核)去更高效的去完成一项工作内容,通常,我们将一份整体的工作内容拆解成可并行执行的多个单一工作任务,然后,启用多个线程(t1、t2...tn)去执行拆解后的每一个工作任务,以达成最终的目标。在整个执行过程中,多个线程之间免不了在某些个...
2020-08-04 20:37:03 113
原创 Macosx 系统port安装 opencv
1、首先对port本身进行升级,megumikichikus-MacBook-Pro:~ huixizhu$ sudo port selfupdate2、将使用port安装的软件进行升级,megumikichikus-MacBook-Pro:~ huixizhu$ sudo port upgrade outdated3、安装cctools,megumikichikus-MacBook-Pro:~ huixizhu$ sudo port install cctools---> .
2020-07-27 16:00:27 476
guava-11.0.2-sources.jar
2020-06-19
alipay-sdk-java-1.0.0.jar AND alipay-trade-sdk-1.0.0.jar
2019-05-08
Effective Java Third Edition
2019-01-14
The JavaTM Language Specification Third Edition
2019-01-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人