关于代码检测工具Fortify解析Java文件失败,("Unexpected exception while resolving file xxx.java")该如何解决? 10C

公司提交代码给第三方检测机构进行代码检测,用的Fortify检测工具,然后就报了一堆的文件解析错误,代码编译什么的是正常的(用的是idea开发,jdk1.8)。
图片说明

以前没接触过这种代码测试,不清楚为什么会报这种问题,该怎么解决.

2个回答

这个要联系Fortify技术支持

看看检测工具有没有生成日志文件

qq_28204129
qq_28204129 没有更详细的日志了,这些就是获取到的内容,据说用lombok会导致这个问题,但是我并没有找到lombok的包
大约一个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Fortify检测sql注入问题 order by动态拼接注入漏洞
java服务,使用spring jdbc做持久化层,数据库使用oracle,在做分页sql拼接的代码被Fortify检测出来问题,甲方要求必须整改。 检测代码源如下: ``` private static String getPagerSql(String sourceSql, Pager<Map<String, Object>> pager) { StringBuffer toSql = new StringBuffer(); toSql.append("select * from ( select row_.*, rownum rownum_ from ( "); toSql.append(sourceSql); toSql.append(" order by "); for (Sort orderBy : pager.getSort()) { toSql.append(String.format("%s %s,", orderBy.getProperty(), orderBy.getDir())); } toSql.deleteCharAt(toSql.length() - 1); toSql.append(" ) row_ ) where rownum_ > ? and rownum_ <= ? "); return toSql.toString(); } ``` 主要问题是在动态拼接排序参数被检测出来问题,虽然排序参数做了排序字段和排序顺序过滤,但还是被检测出高危注入漏洞,代码如下: ``` /** * 获取排序参数 * @return */ public List<Sort> getSort() { String[] sortnames=this.getSortname().split(","); String[] sortordes=this.getSortorder().split(","); if(sortnames.length!=sortordes.length) { throw new IllegalArgumentException("分页多重排序参数中,排序字段与排序方向的个数不相等"); } String regex = "^[a-z0-9A-Z_]{1,20}"; for(String sortname:sortnames) { if(!sortname.matches(regex)) { throw new IllegalArgumentException("分页排序参数中,排序字段非法"); } } List<Sort> orders = new ArrayList<Sort>(); for (int i = 0; i < sortnames.length; i++) { if(!(Sort.ASC.equals(sortordes[i].toLowerCase())||Sort.DESC.equals(sortordes[i].toLowerCase()))) { throw new IllegalArgumentException("分页排序参数中,排序方向非法"); } orders.add(new Sort(sortnames[i], sortordes[i])); } return orders; } ``` 请问有什么办法解决这个被Fortify检测出来的漏洞 ![图片说明](https://img-ask.csdn.net/upload/202002/06/1580969810_309316.jpg)
已安装的Nginx追加自带模块始终报错
* Centos7系统下已安装的nginx需要追加http_limit_req_module模块。按照网上的方法,下载了对应版本的源码, 1. 在配置参数后追加--with-http_limit_req_module,出现以下报错 ``` ./configure: error: invalid option "--with-http_limit_req_module" ``` 2. 使用--add-module=http_limit_req_module报找不到config文件 ``` adding module in http_limit_req_module ./configure: error: no http_limit_req_module/config was found ``` 3. 将模块名改成ngx_http_limit_req_module报的也是类似的错误 # 求大神看看应该怎么添加 下面是完整配置参数,nginx版本是1.17.8,--with-http_limit_req_module前的参数是用nginx -V查出来的 ``` ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie' --with-http_limit_req_module ```
ffmpeg解码部分视频失败
我有一些视频,能够用播放器播放,但是用ffmpeg-3.4解不出来。 准确的说是用我自己编的ffmpeg库解不出来,用公司同样ffmpeg-3.4就能解出来。 但是我的编译应该没有大问题,因为大部分视频我都能够顺利解码的 视频解码错误时报: ``` [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] STSC entry 1 is invalid (first=12 count=0 id=1) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] stream 0, contradictionary STSC and STCO [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] error reading header ``` 正常解码出来的信息是: ``` Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fail.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom creation_time : 2019-08-06T16:42:23.000000Z Duration: 00:00:10.89, start: 0.000000, bitrate: N/A Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 2815 kb/s, 25.66 fps, 25.64 tbr, 1k tbn, 51.31 tbc (default) Metadata: creation_time : 2019-08-06T16:42:24.000000Z handler_name : encoder : VC Coding ``` 我的编译选项: ``` ./configure --prefix=./ --bindir=bin/ffmpeg --incdir=include/ffmpeg --libdir=lib64/ffmpeg --disable-x86asm --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro' --enable-libx264 --enable-libx265 --enable-avfilter --enable-pthreads --enable-shared --enable-gpl --disable-debug --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64 ``` 怀疑是我编译的时候有什么选项没有开,或者有人告诉我这个视频有什么特殊的地方需要我加特殊的编解码器吗?
ubuntu18.04 python3.6 pip安装mysqlclient报错
ubuntu18.04 python3.6 pip安装mysqlclient报错 求大佬解答 ``` Building wheels for collected packages: mysqlclient Running setup.py bdist_wheel for mysqlclient ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpzs54ny_2pip-wheel- --python-tag cp36: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,4,5,'final',0) -D__version__=1.4.5 -I/usr/include/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -lmysqlclient -lpthread -lz -lm -lrt -latomic -lssl -lcrypto -ldl -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for mysqlclient Running setup.py clean for mysqlclient Failed to build mysqlclient Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ldoqhl56-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,4,5,'final',0) -D__version__=1.4.5 -I/usr/include/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -lmysqlclient -lpthread -lz -lm -lrt -latomic -lssl -lcrypto -ldl -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ldoqhl56-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-njxuuzpo/mysqlclient/ ```
求助大神,Fortify扫描问题
Denial of Service: Parse Double Access Control:SercurityManager Bypass 这两类问题有谁知道怎么解决么?
代码扫描出来的漏洞,求大神解决
![图片说明](https://img-ask.csdn.net/upload/201702/07/1486431144_164792.png) 用的 HP的Fortify静态代码安全性扫描工具 进行的代码扫描
Cross-Site Scripting: DOM 跨站脚本攻击问题,怎么解决
function Script(url){ var oScript = document.createElement('script'); oScript.type = 'text/javascript'; oScript.src = url; $("head").html(oScript); } fortify扫描到oScript.src = url;这一行提示,Open Redirect Cross-Site Scripting: DOM (Input Validation and Representation, Data flow)
安装淘宝 TFS出现一些异常能帮忙看下吗谢谢
就是最后一个步骤 进入 tfs 目录 [root@locatfs local]# cd tfs/ [root@locatfs local]# chmod +x *.sh [root@locatfs local]# ./build.sh init [root@locatfs local]# ./configure --prefix=/usr/local/tfs --without-tcmalloc 到这里都没问题 接下来 运行 make 的时候就出现问题了 Making all in src make[1]: Entering directory `/root/tfs-2.6.0/src' Making all in common make[2]: Entering directory `/root/tfs-2.6.0/src/common' Making all in mysql_cluster make[3]: Entering directory `/root/tfs-2.6.0/src/common/mysql_cluster' if g++ -DPACKAGE_NAME=\"tfs\" -DPACKAGE_TARNAME=\"tfs\" -DPACKAGE_VERSION=\"2.6.0\" -DPACKAGE_STRING=\"tfs\ 2.6.0\" -DPACKAGE_BUGREPORT=\"duolong@taobao.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tfs\" -DVERSION=\"2.6.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBC=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBRT=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -DTFS_DS_FALLOCATE=0 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DTIME_WITH_SYS_TIME=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void -DHAVE_FDATASYNC=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETPAGESIZE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MUNMAP=1 -DHAVE_RMDIR=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -DHAVE_STRTOULL=1 -DHAVE_TZSET=1 -DHAVE_MYSQL=1 -I. -I. -Wall -I../../../src -I/usr/local/include/tbsys -I/usr/local/include/tbnet -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -g -D__STDC_LIMIT_MACROS -Wall -Werror -Wextra -Wunused-parameter -Wformat -Wconversion -Wdeprecated -MT database_pool.o -MD -MP -MF ".deps/database_pool.Tpo" -c -o database_pool.o database_pool.cpp; \ then mv -f ".deps/database_pool.Tpo" ".deps/database_pool.Po"; else rm -f ".deps/database_pool.Tpo"; exit 1; fi In file included from database_pool.cpp:16: database_pool.h:18:19: error: tbsys.h: No such file or directory database_pool.h:19:19: error: Mutex.h: No such file or directory In file included from database_pool.h:20, from database_pool.cpp:16: ../../../src/common/internal.h:34:19: error: tbnet.h: No such file or directory In file included from database_pool.cpp:20: mysql_database_helper.h:18:19: error: mysql.h: No such file or directory ../../../src/common/internal.h:471: error: ‘tbnet’ has not been declared ../../../src/common/internal.h:471: error: ISO C++ forbids declaration of ‘DataBuffer’ with no type ../../../src/common/internal.h:471: error: expected ‘;’ before ‘data_’ ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::start()’: ../../../src/common/internal.h:1211: error: ‘tbsys’ has not been declared ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::end()’: ../../../src/common/internal.h:1212: error: ‘tbsys’ has not been declared database_pool.h: At global scope: database_pool.h:51: error: ‘tbutil’ has not been declared database_pool.h:51: error: ISO C++ forbids declaration of ‘Mutex’ with no type database_pool.h:51: error: expected ‘;’ before ‘mutex_’ mysql_database_helper.h:54: error: ISO C++ forbids declaration of ‘MYSQL_STMT’ with no type mysql_database_helper.h:54: error: expected ‘;’ before ‘*’ token mysql_database_helper.h:55: error: ‘MYSQL_BIND’ does not name a type mysql_database_helper.h:65: error: ‘MYSQL’ does not name a type mysql_database_helper.h:71: error: ‘MYSQL_STMT’ has not been declared mysql_database_helper.h:81: error: ‘tbutil’ has not been declared mysql_database_helper.h:81: error: ISO C++ forbids declaration of ‘Mutex’ with no type mysql_database_helper.h:81: error: expected ‘;’ before ‘mutex_’ database_pool.cpp: In destructor ‘tfs::common::DataBasePool::~DataBasePool()’: database_pool.cpp:36: error: ‘ERROR’ was not declared in this scope database_pool.cpp:36: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::init_pool(int32_t, const char*, const char*, const char*)’: database_pool.cpp:65: error: ‘DEBUG’ was not declared in this scope database_pool.cpp:66: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::destroy_pool()’: database_pool.cpp:90: error: ‘mysql_thread_end’ was not declared in this scope database_pool.cpp: In member function ‘tfs::common::MysqlDatabaseHelper* tfs::common::DataBasePool::get()’: database_pool.cpp:98: error: ‘ERROR’ was not declared in this scope database_pool.cpp:98: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp:105: error: ‘tbutil’ has not been declared database_pool.cpp:105: error: expected `;' before ‘lock’ database_pool.cpp:123: error: ‘WARN’ was not declared in this scope database_pool.cpp:123: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘void tfs::common::DataBasePool::release(tfs::common::MysqlDatabaseHelper*)’: database_pool.cpp:132: error: ‘tbutil’ has not been declared database_pool.cpp:132: error: expected `;' before ‘lock’ database_pool.cpp:143: error: ‘ERROR’ was not declared in this scope database_pool.cpp:143: error: ‘TBSYS_LOG’ was not declared in this scope make[3]: *** [database_pool.o] Error 1 make[3]: Leaving directory `/root/tfs-2.6.0/src/common/mysql_cluster' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/tfs-2.6.0/src/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/tfs-2.6.0/src' make: *** [all-recursive] Error 1 接下来就都是报错 能帮忙看下吗谢谢
sparkR install failed
#R >library(devtools) > install_github("amplab-extras/SparkR-pkg", subdir="pkg") ########################################### following is part of the errors: ########################################## [warn] Merging 'org/apache/commons/beanutils/ConstructorUtils.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/AccessClassLoader.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/ClassConverter.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Opcodes.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/BeanAccessLanguageException.class' with strategy 'first' ........ [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Item.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/AnnotationWriter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/DateLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/logging/impl/SimpleLog.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/MutableDynaClass.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Edge.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/BigDecimalConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/StringConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/ByteLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/RowSetDynaClass.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/BigIntegerConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/collections/FastHashMap$KeySet.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/LocaleBeanUtilsBean$1.class' with strategy 'first' ... [warn] Merging 'org/apache/commons/collections/FastHashMap$1.class' with strategy 'first' [warn] Strategy 'concat' was applied to a file [warn] Strategy 'discard' was applied to 2 files [warn] Strategy 'first' was applied to 170 files [info] Checking every *.class/*.jar file's SHA-1. [info] SHA-1: 9daccfa535029502574bf866e4be0e23bc9e6ecc [info] Packaging /tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src/target/scala-2.10/sparkr-assembly-0.1.jar ... [info] Done packaging. [success] Total time: 1156 s, completed Mar 19, 2015 8:32:57 PM cp -f target/scala-2.10/sparkr-assembly-0.1.jar ../inst/ R CMD SHLIB -o SparkR.so string_hash_code.c make[1]: Entering directory `/tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src' gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c string_hash_code.c -o string_hash_code.o gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o SparkR.so string_hash_code.o -L/usr/lib/R/lib -lR make[1]: Leaving directory `/tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src' installing to /usr/local/lib/R/site-library/SparkR/libs ** R ** inst ** tests ** preparing package for lazy loading Creating a generic function for ‘lapply’ from package ‘base’ in package ‘SparkR’ Creating a generic function for ‘Filter’ from package ‘base’ in package ‘SparkR’ ** help *** installing help indices ** building package indices ** testing if installed package can be loaded * DONE (SparkR) Warning message: package ‘’ is not available (for R version 3.1.3) > library(SparkR) [SparkR] Initializing with classpath /usr/local/lib/R/site-library/SparkR/sparkr-assembly-0.1.jar > sc<-sparkR.init(master="spark://localhost:7077",sparkEnvir=list(spark.executor.memory="1g",spark.cores.max="10")) .......... at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Error: returnStatus == 0 is not TRUE >
在Ubuntu下装ns-3,编译时总是中途出错,具体如下:
Build failed -> task failed (exit status 1): {task 139621304904464: cxx print-introspected-doxygen.cc -> print-introspected-doxygen.cc.4.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fdebug-prefix-map=/build/python2.7-3hk45v/python2.7-2.7.15~rc1=.', '-fstack-protector-strong', '-fno-strict-aliasing', '-Ibuild', '-I.', '-I.', '-I/home/zhangzq/tarballs/ns-allinone-3.13', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DSQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DPYTHONDIR="/usr/local/lib/python2.7/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/dist-packages"', '-DHAVE_PYTHON_H=1', '-DENABLE_GSL', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../utils/print-introspected-doxygen.cc', '-c', '-o', 'utils/print-introspected-doxygen.cc.4.o'] Traceback (most recent call last): File "./build.py", line 147, in <module> sys.exit(main(sys.argv)) File "./build.py", line 138, in main build_ns3(config, build_examples, build_tests, args, build_options) File "./build.py", line 61, in build_ns3 run_command([sys.executable, "waf", "build"] + build_options) File "/home/zhangzq/tarballs/ns-allinone-3.13/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with code 1
C语言写Python模块扩展溢出
这几天写了一个用C语言实现的Python模块,用于生成随机数和随机字符串,然后,编译啥的都没问题,但是测试的时候从python shell中import 进去,计算到最后一步溢出来。。。 主要功能就算是从python中传入一个文件名称,然后将生成的随机字符串保存进去。 ``` #include<stdio.h> #include<stdlib.h> #include<time.h> #include "Python.h" static PyObject *xrand(PyObject *self, PyObject *args); static PyObject *xrand(PyObject *self, PyObject *args) { FILE *fp; int j = 9999, i; int number, small_i; char string, name; int choice, choice_string; if(!PyArg_ParseTuple(args, "s", &name)) { return NULL; } fp = fopen(&name, "at"); if(fp) { printf("successful\n"); } else { printf("error\n"); } srand(time(0)); for(i = 0; i < j; i ++) { for(small_i = 0; small_i < 8; small_i ++) { choice = rand() % 2; if(choice == 0) { number = rand() % 10; fprintf(fp, "%d", number); } else { choice_string = rand() % 2; if(choice_string == 0) { string = 'a' + rand() % 26; } else { string = 'A' + rand() % 26; } fprintf(fp, "%c", (char)string); printf("write successfule\n"); } } fprintf(fp, "%s", "\n"); printf("wirte successful\n"); } fclose(fp); printf("close successful\n"); return 0; } static PyMethodDef randMethods[] = { {"xrand", (PyCFunction)xrand, METH_VARARGS, "xrand.c Python module"}, {NULL, NULL, 0, NULL} }; PyMODINIT_FUNC initxrand(void) { Py_InitModule("xrand", randMethods); } ``` 下面的是报错 ``` write successfule write successfule wirte successful close successful *** stack smashing detected ***: python terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x731af)[0x7fdf6ad9e1af] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fdf6ae23cf7] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7fdf6ae23cc0] /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so(+0xc2c)[0x7fdf6a324c2c] python(PyEval_EvalFrameEx+0x355)[0x4c9e05] python(PyEval_EvalCodeEx+0x411)[0x4c87a1] python[0x5030ef] python(PyRun_InteractiveOneFlags+0x198)[0x449b84] python(PyRun_InteractiveLoopFlags+0xba)[0x449937] python[0x42d96b] python(Py_Main+0x562)[0x4982f2] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fdf6ad4cb45] python[0x497ca0] ======= Memory map: ======== 00400000-0071f000 r-xp 00000000 fe:00 139649 /usr/bin/python2.7 0091e000-0091f000 r--p 0031e000 fe:00 139649 /usr/bin/python2.7 0091f000-0099c000 rw-p 0031f000 fe:00 139649 /usr/bin/python2.7 0099c000-009ae000 rw-p 00000000 00:00 0 00b22000-00c1a000 rw-p 00000000 00:00 0 [heap] 7fdf6a10e000-7fdf6a124000 r-xp 00000000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a124000-7fdf6a323000 ---p 00016000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a323000-7fdf6a324000 rw-p 00015000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a324000-7fdf6a325000 r-xp 00000000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a325000-7fdf6a524000 ---p 00001000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a524000-7fdf6a525000 r--p 00000000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a525000-7fdf6a526000 rw-p 00001000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a526000-7fdf6a54c000 r-xp 00000000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a54c000-7fdf6a74b000 ---p 00026000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a74b000-7fdf6a74f000 r--p 00025000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a74f000-7fdf6a750000 rw-p 00029000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a750000-7fdf6a790000 r-xp 00000000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a790000-7fdf6a990000 ---p 00040000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a990000-7fdf6a992000 r--p 00040000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a992000-7fdf6a999000 rw-p 00042000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a999000-7fdf6a99a000 rw-p 00000000 00:00 0 7fdf6a99a000-7fdf6a99f000 r-xp 00000000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6a99f000-7fdf6ab9f000 ---p 00005000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6ab9f000-7fdf6aba0000 r--p 00005000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6aba0000-7fdf6aba2000 rw-p 00006000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6aba2000-7fdf6ad2b000 r--p 00000000 fe:00 145216 /usr/lib/locale/locale-archive 7fdf6ad2b000-7fdf6aecd000 r-xp 00000000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6aecd000-7fdf6b0cc000 ---p 001a2000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0cc000-7fdf6b0d0000 r--p 001a1000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0d0000-7fdf6b0d2000 rw-p 001a5000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0d2000-7fdf6b0d6000 rw-p 00000000 00:00 0 7fdf6b0d6000-7fdf6b1d6000 r-xp 00000000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b1d6000-7fdf6b3d5000 ---p 00100000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d5000-7fdf6b3d6000 r--p 000ff000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d6000-7fdf6b3d7000 rw-p 00100000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d7000-7fdf6b3f1000 r-xp 00000000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b3f1000-7fdf6b5f0000 ---p 0001a000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f0000-7fdf6b5f1000 r--p 00019000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f1000-7fdf6b5f2000 rw-p 0001a000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f2000-7fdf6b5f4000 r-xp 00000000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b5f4000-7fdf6b7f3000 ---p 00002000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f3000-7fdf6b7f4000 r--p 00001000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f4000-7fdf6b7f5000 rw-p 00002000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f5000-7fdf6b7f8000 r-xp 00000000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b7f8000-7fdf6b9f7000 ---p 00003000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f7000-7fdf6b9f8000 r--p 00002000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f8000-7fdf6b9f9000 rw-p 00003000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f9000-7fdf6ba11000 r-xp 00000000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6ba11000-7fdf6bc10000 ---p 00018000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc10000-7fdf6bc11000 r--p 00017000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc11000-7fdf6bc12000 rw-p 00018000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc12000-7fdf6bc16000 rw-p 00000000 00:00 0 7fdf6bc16000-7fdf6bc36000 r-xp 00000000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6bca2000-7fdf6be18000 rw-p 00000000 00:00 0 7fdf6be2b000-7fdf6be2d000 rw-p 00000000 00:00 0 7fdf6be2d000-7fdf6be34000 r--s 00000000 fe:00 177736 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache 7fdf6be34000-7fdf6be36000 rw-p 00000000 00:00 0 7fdf6be36000-7fdf6be37000 r--p 00020000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6be37000-7fdf6be38000 rw-p 00021000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6be38000-7fdf6be39000 rw-p 00000000 00:00 0 7ffd62c25000-7ffd62c46000 rw-p 00000000 00:00 0 [stack] 7ffd62d00000-7ffd62d02000 r-xp 00000000 00:00 0 [vdso] 7ffd62d02000-7ffd62d04000 r--p 00000000 00:00 0 [vvar] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted ``` 可以看到,C已经将fp关闭释放来,但是还是报错。。最后生成文件内容所正确的,但是名字所乱码,是不是从python中传入参数的时候有问题,我在想,但是又没有任何思路。。。各位大神帮帮忙啦~~
18.04 编译8.1安卓源码报错
我用18.04 编译安卓源码的时候报下面的错误,有人遇到过吗? 1 warning generated. [ 18% 12030/66759] target C++: libaau...es/oboeservice/AAudioClientTracker.cpp FAILED: out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/av/services/audioflinger -I system/media/audio_utils/include -I frameworks/native/include -I system/core/base/include -I ./frameworks/native/media/libaaudio/include/include -I ./frameworks/av/media/libaaudio/include -I ./frameworks/av/media/utils/include -I frameworks/native/include -I ./external/tinyalsa/include -I ./frameworks/av/media/libaaudio/src -I frameworks/av/services/oboeservice -I out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates -I out/target/product/salvator/gen/SHARED_LIBRARIES/libaaudioservice_intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/salvator/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Wno-unused-parameter -Wall -Werror -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.d -o out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o frameworks/av/services/oboeservice/AAudioClientTracker.cpp" clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation) 这个错误 clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)
FFmpeg 视频压缩问题 麻烦大虾们进来看下
``` 08-04 13:15:43.566 19531-20681/com.bike.main D/QCloud: 压缩中/data/data/com.bike.main/app_bin/ffmpeg -threads 4 -y -i /storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4 -strict -2 -vf crop=360:480:0:0 -preset ultrafast -tune zerolatency -s 360x480 -b:a 128k -r 30 -vcodec libx264 -acodec copy /storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4 08-04 13:15:43.612 19531-20714/com.bike.main D/QCloud: 压缩中WARNING: linker: /data/data/com.bike.main/app_bin/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 08-04 13:15:43.628 19531-20714/com.bike.main D/QCloud: 压缩中ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers 08-04 13:15:43.628 19531-20714/com.bike.main D/QCloud: 压缩中 built on Oct 7 2014 15:05:17 with gcc 4.8 (GCC) 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 libavutil 54. 7.100 / 54. 7.100 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 libavcodec 56. 1.100 / 56. 1.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavformat 56. 4.101 / 56. 4.101 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavdevice 56. 0.100 / 56. 0.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavfilter 5. 1.100 / 5. 1.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libswscale 3. 0.100 / 3. 0.100 08-04 13:15:43.631 19531-20714/com.bike.main D/QCloud: 压缩中 libswresample 1. 1.100 / 1. 1.100 08-04 13:15:43.631 19531-20714/com.bike.main D/QCloud: 压缩中 libpostproc 53. 0.100 / 53. 0.100 08-04 13:15:43.968 19531-20714/com.bike.main D/QCloud: 压缩中Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4': 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 major_brand : mp42 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 minor_version : 0 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 compatible_brands: isommp42 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 location : +30.1914+120.1892/ 08-04 13:15:43.971 19531-20714/com.bike.main D/QCloud: 压缩中 location-eng : +30.1914+120.1892/ 08-04 13:15:43.972 19531-20714/com.bike.main D/QCloud: 压缩中 Duration: 00:00:10.18, start: 0.000000, bitrate: 41899 kb/s 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 3840x2160, 41699 kb/s, SAR 65536:65536 DAR 16:9, 29.24 fps, 30 tbr, 90k tbn, 180k tbc (default) 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 rotate : 90 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : VideoHandle 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 Side data: 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 displaymatrix: rotation of -90.00 degrees 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default) 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.976 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.976 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : SoundHandle 08-04 13:15:43.990 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] using SAR=1/1 08-04 13:15:44.003 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] using cpu capabilities: none! 08-04 13:15:44.067 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] profile Constrained Baseline, level 3.0 08-04 13:15:44.067 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 08-04 13:15:44.075 19531-20714/com.bike.main D/QCloud: 压缩中Output #0, mp4, to '/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4': 08-04 13:15:44.075 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 major_brand : mp42 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 minor_version : 0 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 compatible_brands: isommp42 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 location-eng : +30.1914+120.1892/ 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 location : +30.1914+120.1892/ 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 encoder : Lavf56.4.101 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x480 [SAR 1:1 DAR 3:4], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default) 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 rotate : 90 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:44.080 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : VideoHandle 08-04 13:15:44.080 19531-20714/com.bike.main D/QCloud: 压缩中 encoder : Lavc56.1.100 libx264 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 128 kb/s (default) 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : SoundHandle 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中Stream mapping: 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) 08-04 13:15:44.083 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1 -> #0:1 (copy) 08-04 13:15:44.083 19531-20714/com.bike.main D/QCloud: 压缩中Press [q] to stop, [?] for help 08-04 13:15:44.413 19531-20714/com.bike.main D/QCloud: 压缩中[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb5efa000] stream 1, offset 0x66172: partial file 08-04 13:15:44.414 19531-20714/com.bike.main D/QCloud: 压缩中/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4: Invalid data found when processing input 08-04 13:15:44.431 19531-20714/com.bike.main D/QCloud: 压缩中frame= 1 fps=0.0 q=20.0 Lsize= 25kB time=00:00:01.00 bitrate= 201.3kbits/s 08-04 13:15:44.431 19531-20714/com.bike.main D/QCloud: 压缩中video:11kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 6.192641% 08-04 13:15:44.447 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] frame I:1 Avg QP:20.00 size: 10420 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] mb I I16..4: 100.0% 0.0% 0.0% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] coded y,uvDC,uvAC intra: 55.9% 40.3% 19.7% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] i16 v,h,dc,p: 34% 22% 32% 12% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] i8c dc,h,v,p: 67% 13% 17% 4% 08-04 13:15:44.449 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] kb/s:2500.80 08-04 13:15:44.453 19531-20715/com.bike.main I/123: OUTPUT::null 08-04 13:15:44.454 19531-20714/com.bike.main I/123: ERROR::null 08-04 13:15:44.458 19531-20681/com.bike.main D/QCloud: 压缩成功 ``` * 麻烦大神们帮忙看看问题出在哪里啊 压缩好的视频**不能播放**而且**大小没变化**
ffmpeg Invalid UE golomb code问题
安装版本ffmpeg-4.1.tar.gz 命令 ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 运行结果 [test@GROUPC ~]$ ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [http @ 0xd37e40] No trailing CRLF found in HTTP header. Invalid UE golomb code Last message repeated 2 times Input #0, hls,applehttp, from 'http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8': Duration: 00:20:31.21, start: 1.400000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 15 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 59 kb/s [libx264 @ 0xd76300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0xd76300] profile High, level 4.0 Output #0, hls, to 'Y8JMQo.m3u8': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080, q=-1--1, 15 fps, 90k tbn, 15 tbc Metadata: encoder : Lavc56.60.100 libx264 Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc56.60.100 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help Invalid UE golomb code Invalid UE golomb code0.0 size=N/A time=00:00:02.00 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code0.0 size=N/A time=00:00:03.04 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:03.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:04.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times
Tensorflow 源码构建 error executing command 错误
Ubuntu 16.04 通过源码安装tensorflow GPU版本。执行如下命令时出错,请各位帮忙分析下。 OS:Linux aikou 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux GCC:gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) CUDA:9.0 cuDNN: 5.1.10 执行命令: bazel build --copt=-march=native --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both ––verbose_failures --spawn_strategy=standalone --config=cuda //tensorflow/tools/pip_package:build_pip_package 错误提示: ERROR: /home/kou/tensorflow/tensorflow/stream_executor/BUILD:52:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (cd /home/kou/.cache/bazel/_bazel_kou/3f3a4712723b62ae321569eb62995c39/execroot/org_tensorflow && \ exec env - \ LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 \ PATH=/home/kou/anaconda3/bin:/home/kou/bin:/home/kou/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda-9.0/bin \ PWD=/proc/self/cwd \ external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++11' -g0 -MD -MF bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.d '-frandom-seed=bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DTENSORFLOW_USE_JEMALLOC -DTF_USE_SNAPPY -iquote . -iquote bazel-out/host/genfiles -iquote external/nsync -iquote bazel-out/host/genfiles/external/nsync -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/jemalloc -iquote bazel-out/host/genfiles/external/jemalloc -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/host/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/host/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/host/genfiles/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/host/genfiles/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/host/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/host/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -iquote external/local_config_cuda -iquote bazel-out/host/genfiles/external/local_config_cuda -isystem external/nsync/public -isystem bazel-out/host/genfiles/external/nsync/public -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jemalloc/include -isystem bazel-out/host/genfiles/external/jemalloc/include -isystem external/eigen_archive -isystem bazel-out/host/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/host/genfiles/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/host/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/host/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/host/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda/cuda/include -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/stream_executor/cuda/cuda_dnn.cc -o bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o)
RK3328平台android8.1编译报错
-fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.d -o out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o frameworks/base/tools/validatekeymaps/Main.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 29/76723] host C++: conscrypt_ge...nts/src/gen/cpp/generate_constants.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I external/conscrypt -I out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates -I out/host/linux-x86/gen/EXECUTABLES/conscrypt_generate_constants_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.d -o out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o external/conscrypt/constants/src/gen/cpp/generate_constants.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 30/76723] host C++: protoc-gen-j...tools/streaming_proto/string_utils.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/base/tools/streaming_proto -I out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates -I out/host/linux-x86/gen/EXECUTABLES/protoc-gen-javastream_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.d -o out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o frameworks/base/tools/streaming_proto/string_utils.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 49/76723] build out/target/common/obj/all-event-log-tags.txt ninja: build stopped: subcommand failed. 17:38:37 ninja failed with: exit status 1 make: *** [run_soong_ui] Error 1 jda@jda-ubut12-ser:rk3328_8.1_box_190306$
关于只支持IE项目如何迁移实现支持Firefox
就是想把不符合规范的Javascript .css等增加对Firefox的支持。 如果一点一点改的话,很耗时还有测试的问题。 有什么可操作的方法来提高迁移的效率,请教各位大侠? 如果能有个工具,通过扫描代码找出不兼容的地方,然后再修改,操作性就强点。 就是类似FORTIFY的工具,不知能有没有这方面的工具 :arrow:
buffer overflow detected arm-linux-ar terminated
系统是ubuntu14.04 LTS gcc版本是4.4 步骤是这样: 先安装了binutils-2.15 ../configure --target=arm-linux --prefix=定义的安装目录 make make install 这个折腾了好久,成功安装好了 之后进行arm-linx-gcc制作 ../configure --target=arm-linux --prefix=定义的安装目录 --enable-language=c --disable-threads --disable-shared make 在make部分就出现了 *** buffer overflow detected ***: arm-linux-ar terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x741cf)[0x2b19ddccf1cf] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x2b19ddd66b2c] /lib/x86_64-linux-gnu/libc.so.6(+0x10a9f0)[0x2b19ddd659f0] /lib/x86_64-linux-gnu/libc.so.6(+0x109ef9)[0x2b19ddd64ef9] /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xbc)[0x2b19ddcd754c] /lib/x86_64-linux-gnu/libc.so.6(_IO_padn+0xa0)[0x2b19ddccb510] /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x3c5d)[0x2b19ddca8bfd] /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x2b19ddd64f84] /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x2b19ddd64edd] arm-linux-ar[0x409524] arm-linux-ar[0x407781] arm-linux-ar[0x409dcd] arm-linux-ar[0x40d597] arm-linux-ar[0x40405f] arm-linux-ar[0x40453f] arm-linux-ar[0x405017] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2b19ddc7cec5] arm-linux-ar[0x401cf9] ======= Memory map: ======== 00400000-00459000 r-xp 00000000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 00658000-00659000 r--p 00058000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 00659000-0065a000 rw-p 00059000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 0065a000-0065e000 rw-p 00000000 00:00 0 020f6000-0236a000 rw-p 00000000 00:00 0 [heap] 2b19dda36000-2b19dda59000 r-xp 00000000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19dda59000-2b19dda5b000 rw-p 00000000 00:00 0 2b19dda5b000-2b19dda62000 r--s 00000000 08:0c 392357 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache 2b19dda62000-2b19dda6d000 rw-p 00000000 00:00 0 2b19dda6f000-2b19dda72000 rw-p 00000000 00:00 0 2b19ddc58000-2b19ddc59000 r--p 00022000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19ddc59000-2b19ddc5a000 rw-p 00023000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19ddc5a000-2b19ddc5b000 rw-p 00000000 00:00 0 2b19ddc5b000-2b19dde17000 r-xp 00000000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19dde17000-2b19de016000 ---p 001bc000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de016000-2b19de01a000 r--p 001bb000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de01a000-2b19de01c000 rw-p 001bf000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de01c000-2b19de021000 rw-p 00000000 00:00 0 2b19de021000-2b19de703000 r--p 00000000 08:0c 138526 /usr/lib/locale/locale-archive 2b19de703000-2b19de719000 r-xp 00000000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b19de719000-2b19de918000 ---p 00016000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b19de918000-2b19de919000 rw-p 00015000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffd333d000-7fffd3360000 rw-p 00000000 00:00 0 [stack] 7fffd33fe000-7fffd3400000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] make[2]: *** [libgcc.a] 已放弃 (core dumped) make[2]: *** 正在删除文件“libgcc.a” make[2]:正在离开目录 `/home/kanata/armlinux/build-tools/build-gcc/gcc' make[1]: *** [libgcc.a] 错误 2 make[1]:正在离开目录 `/home/kanata/armlinux/build-tools/build-gcc/gcc' make: *** [all-gcc] 错误 2 请问有高手解决过这种问题吗,说下我知道的可能性: 1.gcc版本过高,好友有尝试低版本的gcc编译通过的 2.我尝试过安装了4.1,但是configure的时候出现的问题是找不到crt1.o,之后export了crt1.o的路径的时候又出现 -lgcc_s.o找不到的问题==` 想放弃的时候尝试过的替代方案是直接下载别人做好的arm-linux-gcc工具包,但是按照配置弄的时候,却出现: kanata@blue:~$ arm arm2hpdl arm-linux-gcc arm-linux-objdump arm-linux-addr2line arm-linux-gcc-3.4.5 arm-linux-ranlib arm-linux-ar arm-linux-gccbug arm-linux-readelf arm-linux-as arm-linux-gcov arm-linux-size arm-linux-c++ arm-linux-gprof arm-linux-strings arm-linux-c++filt arm-linux-ld arm-linux-strip arm-linux-cpp arm-linux-nm arm-linux-g++ arm-linux-objcopy kanata@blue:~$ arm-linux-gcc -v bash: /home/kanata/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-gcc: 没有那个文件或目录 能有什么解决办法吗?
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n
进程通信方式总结与盘点
​ 进程通信是指进程之间的信息交换。这里需要和进程同步做一下区分,进程同步控制多个进程按一定顺序执行,进程通信是一种手段,而进程同步是目标。从某方面来讲,进程通信可以解决进程同步问题。 ​ 首先回顾下我们前面博文中讲到的信号量机制,为了实现进程的互斥与同步,需要在进程间交换一定的信息,因此信号量机制也可以被归为进程通信的一种方式,但是也被称为低级进程通信,主要原因为: 效率低:一次只可操作少量的...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
听说了吗?阿里双11作战室竟1根网线都没有
双11不光是购物狂欢节,更是对技术的一次“大考”,对于阿里巴巴企业内部运营的基础保障技术而言,亦是如此。 回溯双11历史,这背后也经历过“小米加步枪”的阶段:作战室从随处是网线,交换机放地上的“一地狼藉”;到如今媲美5G的wifi网速,到现场却看不到一根网线;从当年使用商用AP(无线路由器),让光明顶双11当天断网一分钟,到全部使用阿里自研AP……阿里巴巴企业智能事业部工程师们提供的基础保障...
在阿里,40岁的奋斗姿势
在阿里,40岁的奋斗姿势 在阿里,什么样的年纪可以称为老呢?35岁? 在云网络,有这样一群人,他们的平均年龄接近40,却刚刚开辟职业生涯的第二战场。 他们的奋斗姿势是什么样的呢? 洛神赋 “翩若惊鸿,婉若游龙。荣曜秋菊,华茂春松。髣髴兮若轻云之蔽月,飘飖兮若流风之回雪。远而望之,皎若太阳升朝霞;迫而察之,灼若芙蕖出渌波。” 爱洛神,爱阿里云 2018年,阿里云网络产品部门启动洛神2.0升...
关于研发效能提升的思考
研发效能提升是最近比较热门的一个话题,本人根据这几年的工作心得,做了一些思考总结,由于个人深度有限,暂且抛转引入。 三要素 任何生产力的提升都离不开这三个因素:人、流程和工具,少了其中任何一个因素都无法实现。 人,即思想,也就是古人说的“道”,道不同不相为谋,是制高点,也是高层建筑的基石。 流程,即方法,也是古人说的“法”。研发效能的提升,也就是要提高投入产出比,既要增加产出,也要减...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆  每天早上8:30推送 作者| Mr.K   编辑| Emma 来源| 技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯
程序员该看的几部电影
##1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?
入职阿里5年,他如何破解“技术债”?
简介: 作者 | 都铎 作为一名技术人,你常常会听到这样的话: “先快速上线” “没时间改” “再缓一缓吧” “以后再解决” “先用临时方案处理” …… 当你埋下的坑越来越多,不知道哪天哪位同学就会踩上一颗雷。特别赞同“人最大的恐惧就是未知,当技术债可说不可见的时候,才是最让人不想解决的时候。” 作为一个程序员,我们反对复制粘贴,但是我们经常会见到相似的代码,相同的二方包,甚至整个代码...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布了 2019年国民经济报告 ,报告中指出:年末中国大陆总人口(包括31个
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
2020年的1月,我辞掉了我的第一份工作
其实,这篇文章,我应该早点写的,毕竟现在已经2月份了。不过一些其它原因,或者是我的惰性、还有一些迷茫的念头,让自己迟迟没有试着写一点东西,记录下,或者说是总结下自己前3年的工作上的经历、学习的过程。 我自己知道的,在写自己的博客方面,我的文笔很一般,非技术类的文章不想去写;另外我又是一个还比较热衷于技术的人,而平常复杂一点的东西,如果想写文章写的清楚点,是需要足够...
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad
深度学习入门笔记(十八):卷积神经网络(一)
欢迎关注WX公众号:【程序员管小亮】 专栏——深度学习入门笔记 声明 1)该文章整理自网上的大牛和机器学习专家无私奉献的资料,具体引用的资料请看参考文献。 2)本文仅供学术交流,非商用。所以每一部分具体的参考资料并没有详细对应。如果某部分不小心侵犯了大家的利益,还望海涵,并联系博主删除。 3)博主才疏学浅,文中如有不当之处,请各位指出,共同进步,谢谢。 4)此属于第一版本,若有错误,还需继续修正与...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
节后首个工作日,企业们集体开晨会让钉钉挂了
By 超神经场景描述:昨天 2 月 3 日,是大部分城市号召远程工作的第一天,全国有接近 2 亿人在家开始远程办公,钉钉上也有超过 1000 万家企业活跃起来。关键词:十一出行 人脸...
Java基础知识点梳理
Java基础知识点梳理 摘要: 虽然已经在实际工作中经常与java打交道,但是一直没系统地对java这门语言进行梳理和总结,掌握的知识也比较零散。恰好利用这段时间重新认识下java,并对一些常见的语法和知识点做个总结与回顾,一方面为了加深印象,方便后面查阅,一方面为了学好java打下基础。 Java简介 java语言于1995年正式推出,最开始被命名为Oak语言,由James Gosling(詹姆
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
你也能看懂的:蒙特卡罗方法
蒙特卡罗方法,也称统计模拟方法,是1940年代中期由于科学技术的发展和电子计算机的发明,而提出的一种以概率统计理论为指导的数值计算方法。是指使用随机数(或更常见的伪随机数)来解决很多计算问题的方法 蒙特卡罗方法可以粗略地分成两类:一类是所求解的问题本身具有内在的随机性,借助计算机的运算能力可以直接模拟这种随机的过程。另一种类型是所求解问题可以转化为某种随机分布的特征数,比如随机事件出现的概率,或...
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
相关热词 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数 c#日期精确到分钟 c#自定义异常必须继承 c#查表并返回值 c# 动态 表达式树 c# 监控方法耗时 c# listbox c#chart显示滚动条
立即提问