ext4_super_block(超级块)

在Ubuntu14.10 文件系统ext4.h头文件中 找不到对应的ext4_super_block(超级块)信息

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ext4文件系统中自带的debug信息如何查看?
ext4文件系统代码中自带有用于调试的debug语句,如函数ext4_map_blocks中的 ``` ext_debug("ext4_map_blocks(): inode %lu, flag %d, max_blocks %u," "logical block %lu\n", inode->i_ino, flags, map->m_len, (unsigned long) map->m_lblk); ``` 请问如何使得这种语句生效?多谢
关于富士通单片机C语言编程宏定义的问题
1.main头文件中定义了 EXT_GLOBAL宏做条件编译 #define EXT_GLOBAL 2.global文件中的条件编译 #ifdef EXT_GLOBAL #define GLOBAL_EXT #else #define GLOBAL_EXT extern #endif 又定义了一个宏GLOBAL_EXT GLOBAL_EXT __direct BitType LED; #define b0_LED LED.Bits.BIT0 #define b1_LED LED.Bits.BIT1 #define b2_LED LED.Bits.BIT2 #define b3_LED LED.Bits.BIT3 #define b4_LED LED.Bits.BIT4 #define b5_LED LED.Bits.BIT5 #define b6_LED LED.Bits.BIT6 #define b7_LED LED.Bits.BIT7 GLOBAL_EXT __direct BitType LED0; //数码管 GLOBAL_EXT __direct BitType LED1; //数码管 GLOBAL_EXT __direct BitType LED2; //风速条 GLOBAL_EXT __direct BitType LED3; 这个GLOBAL_EXT __direct BitType LED;是什么意思?这个什么语句?用的是富士通的698K单片机。 GLOBAL_EXT void Delay( unsigned char dly ); GLOBAL_EXT void mcuInit( void ); GLOBAL_EXT void timerCal( void ); GLOBAL_EXT void dispFreah( void ); GLOBAL_EXT void ledOff( void ); GLOBAL_EXT void IndoorCommR( void ); GLOBAL_EXT void IndoorCommT( void ); GLOBAL_EXT void key( void ); GLOBAL_EXT void varaInit( void ); 还有这些函数在宏的后边是什么用?网上我已经找了好几遍了,也看书再找,没找到这些语句的作用,麻烦大神给解答一下
ORA-16047: DGID mismatch between destination setting and target database
----------主库配置 ``` orcl.__data_transfer_cache_size=0 orcl.__db_cache_size=1258291200 orcl.__inmemory_ext_roarea=0 orcl.__inmemory_ext_rwarea=0 orcl.__java_pool_size=0 orcl.__large_pool_size=16777216 orcl.__oracle_base='/oracleDB/app/oracle'#ORACLE_BASE set from environment orcl.__pga_aggregate_target=603979776 orcl.__sga_target=1795162112 orcl.__shared_io_pool_size=100663296 orcl.__shared_pool_size=402653184 orcl.__streams_pool_size=0 orcl.__unified_pga_pool_size=0 *.audit_file_dest='/oracleDB/app/oracle/admin/orcl/adump' *.audit_trail='DB' *.compatible='19.0.0' *.control_files='/oracleDB/app/oracle/oradata/ORCL/control01.ctl','/oracleDB/app/oracle/fast_recovery_area/ORCL/control02.ctl' *.db_block_size=8192 *.db_name='orcl' *.db_recovery_file_dest_size=8657043456 *.db_recovery_file_dest='/oracleDB/app/oracle/fast_recovery_area' *.db_unique_name='orcl_s' *.diagnostic_dest='/oracleDB/app/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' *.fal_server='orcl_p' *.fal_client='orcl_s' *.local_listener='LISTENER_ORCL' *.log_archive_config='DG_CONFIG=(orcl_p,orcl_s)' *.log_archive_dest_1='location=/oracleDB/archive_s valid_for=(all_logfiles,all_roles) db_unique_name=orcl_s' *.log_archive_dest_2='service=orcl_p affirm sync valid_for=(online_logfiles,primary_role) db_unique_name=orcl_p' *.log_archive_dest_state_1='enable' *.log_archive_dest_state_2='enable' *.log_archive_format='%t_%s_%r.dbf' *.nls_language='AMERICAN' *.nls_territory='AMERICA' *.open_cursors=300 *.pga_aggregate_target=594542592 *.processes=320 *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=1795162112 *.standby_file_management='auto' *.undo_tablespace='UNDOTBS1' ``` ----------从库配置 ``` orcl.__data_transfer_cache_size=0 orcl.__db_cache_size=1174405120 orcl.__inmemory_ext_roarea=0 orcl.__inmemory_ext_rwarea=0 orcl.__java_pool_size=0 orcl.__large_pool_size=16777216 orcl.__oracle_base='/oracleDB/app/oracle'#ORACLE_BASE set from environment orcl.__pga_aggregate_target=603979776 orcl.__sga_target=1795162112 orcl.__shared_io_pool_size=100663296 orcl.__shared_pool_size=452984832 orcl.__streams_pool_size=33554432 orcl.__unified_pga_pool_size=0 *.audit_file_dest='/oracleDB/app/oracle/admin/orcl/adump' *.audit_trail='db' *.compatible='19.0.0' *.control_files='/oracleDB/app/oracle/oradata/ORCL/control01.ctl','/oracleDB/app/oracle/fast_recovery_area/ORCL/control02.ctl' *.db_block_size=8192 *.db_name='orcl' *.db_recovery_file_dest='/oracleDB/app/oracle/fast_recovery_area' *.db_recovery_file_dest_size=8256m *.db_unique_name='orcl_p' *.diagnostic_dest='/oracleDB/app/oracle' *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' *.fal_server='orcl_s' *.fal_client='orcl_p' *.local_listener='LISTENER_ORCL' *.log_archive_config='DG_CONFIG=(orcl_p,orcl_s)' *.log_archive_dest_1='location=/oracleDB/archive valid_for=(all_logfiles,all_roles) db_unique_name=orcl_p' *.log_archive_dest_2='service=orcl_s affirm sync valid_for=(online_logfiles,primary_role) db_unique_name=orcl_s' *.log_archive_dest_state_1='enable' *.log_archive_dest_state_2='enable' *.log_archive_format='%t_%s_%r.dbf' *.nls_language='AMERICAN' *.nls_territory='AMERICA' *.open_cursors=300 *.pga_aggregate_target=567m *.processes=320 *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=1700m *.standby_file_management='auto' *.undo_tablespace='UNDOTBS1' ``` ![图片说明](https://img-ask.csdn.net/upload/202001/17/1579241947_913771.png) 百度了很久 都没找到解决方法,请大神们帮忙看看 ORA-16047: DGID mismatch between destination setting and target database
请问android开发有提供访问emmc的api吗?如访问emmc的ext_csd等?
请问android开发有提供访问emmc的api吗?如访问emmc的ext_csd等?
linux上导入1个G的dmp,导出来只有不到5M
在centos7的oracle上创建新用户后,导入了一个1G多的dmp文件,再将这个用户导出时只有几个M ``` [oracle@oracle-test ~]$ export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK[oracle@oracle-test ~]$ exp isc/isc@192.168.157.132:1521/orcl file=/disk3/expisc/tisc.dmp owner=isc Export: Release 11.2.0.1.0 - Production on Tue Jan 14 12:36:23 2020 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set About to export specified users ... . exporting pre-schema procedural objects and actions . exporting foreign function library names for user ISC . exporting PUBLIC type synonyms . exporting private type synonyms . exporting object type definitions for user ISC About to export ISC's objects ... . exporting database links . exporting sequence numbers . exporting cluster definitions . about to export ISC's tables via Conventional Path ... . . exporting table HR_ORG_BASIC_INFO 0 rows exported . . exporting table HR_ORG_BASIC_INFO_TEMP 0 rows exported . . exporting table HR_POST_BASIC_INFO 0 rows exported . . exporting table HR_USER_BASIC_INFO 0 rows exported . . exporting table ISC_ACCOUNT 4 rows exported . . exporting table ISC_ACCOUNT_EXT_PROP 0 rows exported . . exporting table ISC_ACTOR_ROLE_R 4362 rows exported . . exporting table ISC_APPLICATION 3 rows exported . . exporting table ISC_APPSHOW_CONF 1 rows exported . . exporting table ISC_APP_CODE_CONF 0 rows exported . . exporting table ISC_APP_CODE_FIELD_EXT 0 rows exported . . exporting table ISC_APP_DATARESOUCE_R 3 rows exported . . exporting table ISC_AUTHORIZE_COMMIT 0 rows exported . . exporting table ISC_BASEORG 8801 rows exported . . exporting table ISC_BASEORG_EXT_PROP 0 rows exported . . exporting table ISC_BASEORG_SPORG_UNIT_R 0 rows exported . . exporting table ISC_COMMON_CONST 196 rows exported . . exporting table ISC_DEPLOY 2 rows exported . . exporting table ISC_DIM 0 rows exported . . exporting table ISC_DUTY 0 rows exported . . exporting table ISC_LOGIN_LOCK 36 rows exported . . exporting table ISC_MAIL_CONF 0 rows exported . . exporting table ISC_MAIL_TEMPLATE_CONF 0 rows exported . . exporting table ISC_MDMORG_SPORG_UNIT_R 0 rows exported . . exporting table ISC_MDM_ORG 0 rows exported . . exporting table ISC_MSG_RESOURCE 0 rows exported . . exporting table ISC_NODE 3 rows exported . . exporting table ISC_NODE_DEPLOY_R 2 rows exported . . exporting table ISC_ORG_ATTRIBUTE 11 rows exported . . exporting table ISC_ORG_SYS_DIM_R 0 rows exported . . exporting table ISC_ORG_UNIT_DIM_R 0 rows exported . . exporting table ISC_RESOURCE 642 rows exported . . exporting table ISC_RESOURCE_EXT_PROPERTY 172 rows exported . . exporting table ISC_RESOURCE_EXT_PROPERTY_ETL 0 rows exported . . exporting table ISC_RESOURCE_TYPE 15 rows exported . . exporting table ISC_RESOURC_TYPE_APPLICATION_R 0 rows exported . . exporting table ISC_RES_EXT_VALUE 3230 rows exported . . exporting table ISC_RES_RES_R 638 rows exported . . exporting table ISC_ROLEGROUP 8 rows exported . . exporting table ISC_ROLE_LAYER_BY_ORG 67 rows exported . . exporting table ISC_ROLE_RES_R 2947 rows exported . . exporting table ISC_SECURE_CONF 2 rows exported . . exporting table ISC_SPECIALORG_UNIT 9 rows exported . . exporting table ISC_SPECIALORG_UNIT_BAK 0 rows exported . . exporting table ISC_SPORG_EXTPROP 0 rows exported . . exporting table ISC_SPORG_EXTPROPVAL 0 rows exported . . exporting table ISC_SPORG_EXTPROP_ATTR_R 0 rows exported . . exporting table ISC_SPROLE 81 rows exported . . exporting table ISC_SPROLE_EXT 0 rows exported . . exporting table ISC_SPROLE_EXT_VALUE 0 rows exported . . exporting table ISC_SPROLE_R 0 rows exported . . exporting table ISC_SP_DOMAIN 3 rows exported . . exporting table ISC_SP_DOMAIN_CODE_RELATION 15 rows exported . . exporting table ISC_SP_ORG_SYSTEM 3 rows exported . . exporting table ISC_STRATEGY_BASEORG_R 0 rows exported . . exporting table ISC_STRATEGY_CONF 0 rows exported . . exporting table ISC_STRATEGY_SESSION 0 rows exported . . exporting table ISC_STRATEGY_USER 0 rows exported . . exporting table ISC_SYNC_LOG 0 rows exported . . exporting table ISC_SYNC_PROCESS 0 rows exported . . exporting table ISC_SYSTEM_START_CONFIG 1 rows exported . . exporting table ISC_TEMP_ACTOR_ROLE_TBL 0 rows exported . . exporting table ISC_TEMP_USER 0 rows exported . . exporting table ISC_TEMP_USER_TBL 0 rows exported . . exporting table ISC_UNIT 27 rows exported . . exporting table ISC_USER 1947 rows exported . . exporting table ISC_USER_CFCA_CONN 0 rows exported . . exporting table ISC_USER_DUTY 0 rows exported . . exporting table ISC_USER_EXT 0 rows exported . . exporting table ISC_USER_EXT_PROPERTY 0 rows exported . . exporting table ISC_USER_EXT_PROP_ERP 0 rows exported . . exporting table ISC_USER_EXT_PROP_VALUE_ERP 0 rows exported . . exporting table ISC_USER_PASSWORDUSEFULDAY 54 rows exported . . exporting table ISC_USER_PASSWORD_REPETITIONS 20 rows exported . . exporting table ISC_USER_SPORG 1557 rows exported . . exporting table ISC_WO_ACCOUNTAPPLY 0 rows exported . . exporting table ISC_WO_ACCOUNT_CHANGE 0 rows exported . . exporting table ISC_WO_APPCONF_CHANGE 0 rows exported . . exporting table ISC_WO_APPROVAL_COMMENTS 0 rows exported . . exporting table ISC_WO_APP_REGISTER 0 rows exported . . exporting table ISC_WO_ORDER 0 rows exported . . exporting table ISC_WO_ROLELIST 0 rows exported . . exporting table ISC_WO_ROLES 0 rows exported . . exporting table OPERATE_OBJ 81 rows exported . . exporting table OPERATE_TYPE 419 rows exported . . exporting table RESOURCE_DEFAULT_PROPERTY 43 rows exported . . exporting table SAS_REPORT_FILES_LOG 0 rows exported . . exporting table SAS_STANDARD_DB_LOG_201301 0 rows exported . . exporting table SAS_STANDARD_LOG_TYPE 5 rows exported . . exporting table SAS_STATISTICAL_RULES 0 rows exported . . exporting table SAS_STATISTICS_DAY_LOGIN_COUNT 44 rows exported . . exporting table SAS_STATISTICS_DAY_LOGIN_USERS 53 rows exported . . exporting table SAS_STATISTICS_SP_VISIT_COUNT 1 rows exported . . exporting table USER_VERIFY 6 rows exported . exporting synonyms . exporting views . exporting stored procedures . exporting operators . exporting referential integrity constraints . exporting triggers . exporting indextypes . exporting bitmap, functional and extensible indexes . exporting posttables actions . exporting materialized views . exporting snapshot logs . exporting job queues . exporting refresh groups and children . exporting dimensions . exporting post-schema procedural objects and actions . exporting statistics Export terminated successfully without warnings. ``` 请问为什么会这样子?
Linux+pytorch下运行报错ModuleNotFoundError: No module named '_ext.pointnet2._pointnet2'
我在尝试实现Github上开源的代码[Relation-Shape-CNN](https://github.com/Yochengliu/Relation-Shape-CNN ""),运行报错ModuleNotFoundError: No module named '_ext.pointnet2._pointnet2'。 Traceback (most recent call last): File "train_cls.py", line 10, in <module> from models import RSCNN_SSN_Cls as RSCNN_SSN File "/media/lab/16DE307A392D4AED/zs/Relation-Shape-CNN-master/models/__init__.py", line 1, in <module> from .rscnn_ssn_cls import RSCNN_SSN as RSCNN_SSN_Cls File "/media/lab/16DE307A392D4AED/zs/Relation-Shape-CNN-master/models/rscnn_ssn_cls.py", line 9, in <module> from pointnet2_modules import PointnetSAModule, PointnetSAModuleMSG File "/media/lab/16DE307A392D4AED/zs/Relation-Shape-CNN-master/models/../utils/pointnet2_modules.py", line 5, in <module> import pointnet2_utils File "/media/lab/16DE307A392D4AED/zs/Relation-Shape-CNN-master/models/../utils/pointnet2_utils.py", line 11, in <module> from _ext import pointnet2 File "/media/lab/16DE307A392D4AED/zs/Relation-Shape-CNN-master/models/../utils/_ext/pointnet2/__init__.py", line 3, in <module> from ._pointnet2 import lib as _lib, ffi as _ffi ModuleNotFoundError: No module named '_ext.pointnet2._pointnet2' 请哪位大神可以指导一下,非常感谢!!!
php C扩展 ext_skel报错
执行./ext_skel --extname=test2_module --proto=test2_module.def 报错 : awk: syntax error at source line 256 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs context is if (!stubs) print "" > extname >>> "/function_warning" <<< awk: illegal statement at source line 257 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs awk: syntax error at source line 267 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs Creating basic files: config.m4 config.w32 .gitignore test2_module.c php_test2_module.h CREDITS EXPERIMENTAL tests/001.phpt test2_module.phprm: function_entries: No such file or directory rm: function_declarations: No such file or directory rm: function_stubs: No such file or directory [done]. 请问如何处理 求解
cocoapods安装报错rubygems/core_ext/kernel_warn (LoadError),求解决!!!
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Site/2.3.0/rubygems.rb:1395:in `' from :4:in `require' from :4:in `' Macbook air 10.14.2系统 ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] 大神,这个怎么处理,已经困扰了很久了。
安卓开发JDBC连接数据库No static method metafactory错误怎么解决?
直接上代码 JdbcUtil类 ``` package com.example.myapplication; import java.io.File; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.util.Properties; public class JdbcUtil { private static JdbcUtil instance; public static JdbcUtil getInstance(){ if (instance ==null){ instance = new JdbcUtil(); } return instance; } public Connection getConnection(String dbName,String name,String password) { try { new com.mysql.cj.jdbc.Driver(); String url = "jdbc:mysql://localhost:3306/"+dbName; return DriverManager.getConnection(url,name,password); } catch (Exception e) { return null; } } public Connection getConnection(String file){ File f = new File(file); if(!f.exists()){ return null; }else { Properties pro = new Properties(); try { Class.forName("com.mysql.jdbc.Driver"); pro.load(new FileInputStream(f)); String url = pro.getProperty("url"); String name = pro.getProperty("name"); String password = pro.getProperty("password"); return DriverManager.getConnection(url,name,password); }catch (Exception e){ return null; } } } } ``` UserDao类 ``` package com.example.myapplication; import android.util.Log; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import static android.content.ContentValues.TAG; public class UserDao { JdbcUtil jdbcUtil = JdbcUtil.getInstance(); //第一个参数为数据库名称,第二个参数为数据库账号 第三个参数为数据库密码 Connection conn = jdbcUtil.getConnection("test","root","LHMbdbqandr2015"); //注册 public boolean register(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { //进行数据库操作 String sql = "insert into user(name,password) values(?,?)"; try { PreparedStatement pre = conn.prepareStatement(sql); pre.setString(1,name); pre.setString(2,password); return pre.execute(); } catch (SQLException e) { return false; }finally { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } //登录 public boolean login(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { String sql = "select * from user where name=? and password=?"; try { PreparedStatement pres = conn.prepareStatement(sql); pres.setString(1,name); pres.setString(2,password); ResultSet res = pres.executeQuery(); boolean t = res.next(); return t; } catch (SQLException e) { return false; } } } } ``` MainActivity文件 ``` package com.example.myapplication; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.os.Looper; import android.os.Trace; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private static final String TAG="MainActivity"; private EditText name; private EditText password; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); name = findViewById(R.id.name); password = findViewById(R.id.password); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) { // TODO: Consider calling // Activity#requestPermissions requestPermissions(new String[]{Manifest.permission.INTERNET},1); // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for Activity#requestPermissions for more details. return; } } } //用户根据点击事件来找到相应的功能 public void fun(View v){ switch (v.getId()){ case R.id.register: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); UserDao ud = new UserDao(); boolean result =ud.register(n,psw); if (!result){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"注册成功!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } Log.i(TAG,"fun"+result); //以上为jdbc注册 } }).start(); break; case R.id.login: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); if (n.equals("")||psw.equals("")){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"输入不能为空!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } UserDao ud = new UserDao(); Boolean result = ud.login(n,psw); if (!result){ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"用户名不存在或密码错误!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); }else{ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"登录成功",Toast.LENGTH_SHORT); toast.show(); //一下代码为跳转界面 // Intent intent=new Intent(MainActivity.this,info.class); //intent.putExtra("name",n); // startActivity(intent); Looper.loop(); } //以上为jdbc登录 } }).start(); } } } ``` 现在遇到的问题如下 ``` 11/14 01:40:49: Launching 'app' on Nexus 5X API 29 x86. $ adb shell am start -n "com.example.myapplication/com.example.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Waiting for process to come online... Connected to process 23852 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/e.myapplicatio: Not late-enabling -Xcheck:jni (already on) E/e.myapplicatio: Unknown bits set in runtime_flags: 0x8000 W/e.myapplicatio: Unexpected CPU variant for X86 using defaults: x86 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) W/RenderThread: type=1400 audit(0.0:129): avc: denied { write } for name="property_service" dev="tmpfs" ino=8368 scontext=u:r:untrusted_app:s0:c130,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.example.myapplication D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so W/e.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/: HostConnection::get() New Host Connection established 0xd7d24f50, tid 23910 D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xe3340b60: maj 3 min 1 rcv 4 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da glUtilsParamSize: unknow param 0x000082da W/Gralloc3: mapper 3.x is not supported D/: createUnique: call D/: HostConnection::get() New Host Connection established 0xd7d26ad0, tid 23910 HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 D/eglCodecCommon: allocate: Ask for block of size 0x1000 D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 I/AssistStructure: Flattened final assist data: 1788 bytes, containing 1 windows, 10 views W/e.myapplicatio: Accessing hidden method Ljava/lang/invoke/LambdaMetafactory;->metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; (blacklist, linking, denied) E/AndroidRuntime: FATAL EXCEPTION: Thread-2 Process: com.example.myapplication, PID: 23852 java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at com.mysql.cj.conf.ConnectionUrl.buildConnectionStringCacheKey(ConnectionUrl.java:246) at com.mysql.cj.conf.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:185) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:204) at java.sql.DriverManager.getConnection(DriverManager.java:580) at java.sql.DriverManager.getConnection(DriverManager.java:218) at com.example.myapplication.JdbcUtil.getConnection(JdbcUtil.java:22) at com.example.myapplication.UserDao.<init>(UserDao.java:15) at com.example.myapplication.MainActivity$1.run(MainActivity.java:53) at java.lang.Thread.run(Thread.java:919) D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/AutofillManager: onActivityFinishing(): calling cancelLocked() Process 23852 terminated. ``` 在网上百度了很多方法都没有解决,起初以为是驱动的问题,但是换了一个仍然不好用,求求大神赐教
如何读取linux的ext2文件系统的超级块,GDT,RESERVE GDT,DATA BLOCK BITMAP等的块号地址
如图,编写一个程序,输入参数为文件系统的根目录,输出是该文件的所有块组的超级块,gdt,reserveGDT,datablock,bitmap,inodebitmap,iNodetable,datablock等的开始块号和结束块号
rvm 安装 ruby require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)"
![图片说明](https://img-ask.csdn.net/upload/201812/20/1545300111_442188.png) rvm 安装 ruby 报这样的错,怎么整啊,大神来帮帮我,一天了都没搞好 "/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rubygems/core_ext/kernel_warn (LoadError)"
make_ext4fs打包system.img后能刷入,但开机定屏
Linux 1、原厂线刷包提取:system.img 2、simg2img system.img system_raw.img 3、mkdir system 4、mount -t ext4 -o loop system_raw.img system 5、......修改system/app/....(不会是这一步的问题) 6、make_ext4fs -l 512M -s -a system system_new.img system 7、打包后的system.img替换原厂线刷包里的system.img 问题一:能正常刷入手机,但刷完后手机不开机,在开机画面定住不动,求助,这到底是为什么呀? 问题二:上述第6步中的512M这个参数怎么确认?我这里的512是按挂载后system文件夹的大小,不知道正确不?
linux ext4 格式问题,求高手帮忙,急……
打包成ext4格式是包如下错,测试需要打包的文件内容几十M时,不出错。 猜想是Linux默认配置参数的问题,百度,Google没找到答案。高手帮忙解决下,急…… ./mkuserimg.sh -s serverlog system7.img.ext4 ext4 1190M in mkuserimg.sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_05/bin:/opt/tomcat/code/airpushData/apktools/linux:/root/bin ./make_ext4fs -s -l 128M -a 1190M system7.img.ext4 serverlog Creating filesystem with parameters: Size: 134217728 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 1024 Label: Blocks: 32768 Block groups: 1 Reserved block group size: 7 error: do_inode_allocate_extents: Failed to allocate 64758 blocks
用C语言编译完成这个程序,但我现在在学Java,对C的了解不多,希望大触们能帮帮我
![图片说明](https://img-ask.csdn.net/upload/201909/25/1569378289_314255.png)![图片说明](https://img-ask.csdn.net/upload/201909/25/1569378350_626790.png) 批量数据插入CODE表 解析code.csv文件批量插入CODE[PFPN]) 插入DB时,做简单检查:主键(前三个栏位)中任何栏位不允许为空,不符合条件的节点不处理,但需要记录不符合条件的记录的总数,在返回结果中体现。 出现重复记录时不要报错而是更新,最终返回结果需要返回更新和插入的记录条数。 这是数据库表的基本结构,前三个栏位是主键 INSERT INTO cms.ccode (CODE_CATE, CODE, CODE_EXT, SUBITEM, CODE_DSC, EXT_1, EXT_2, EXT_3, EXT_4, EXT_5) VALUES('PFPN', '0002', 'P101TCAWA0Z', 'P101CCAW70Z', '10.1', '1410901-A1', 'N1011', 'C101NWT3', 'P101TCAWA1', 'M01');
关于#include<ext/hash_map>问题
In file included from /usr/include/c++/4.8/ext/hash_map:60:0, from AlgorithmNBM.h:9, from AlgorithmNBM.cpp:10: /usr/include/c++/4.8/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning \ ^ 求大神相助,急,谢谢!!!
CM4 NVIC优先级的问题
![图片说明](https://img-ask.csdn.net/upload/201701/12/1484205223_967871.jpg) ![图片说明](https://img-ask.csdn.net/upload/201701/12/1484205213_559156.jpg) CM4的资料就给这么点说明,也百度过好多贴子,不明白该怎么操作,才能设置不同的优先级,还有就是怎么分主优先级和子优先级。 我理解是往NVIC->IP里写一个值(值是范围是0~7),值越大,该优先级就越小,不知道对不对 我所参考的源代码是MQX4.1的代码,文件名为nvic.c ``` /*! * \brief Initialize a specific interrupt in the cortex core nvic * * \param[in] irq Interrupt number * \param[in] prior Interrupt priority * \param[in] enable enable the interrupt now? * * \return uint32_t MQX_OK or error code */ _mqx_uint _nvic_int_init ( // [IN] Interrupt number _mqx_uint irq, // [IN] Interrupt priority _mqx_uint prior, // [IN] enable the interrupt now? bool enable ) { VCORTEX_NVIC_STRUCT_PTR nvic = (VCORTEX_NVIC_STRUCT_PTR)&(((CORTEX_SCS_STRUCT_PTR)CORTEX_PRI_PERIPH_IN_BASE)->NVIC); _mqx_uint ext_irq_no = irq - 16; // check priority value, must be below maximal enabled/set value if (prior >= (1 << CORTEX_PRIOR_IMPL)) { return MQX_INVALID_PARAMETER; } if (irq >= PSP_INT_FIRST_INTERNAL && irq <= PSP_INT_LAST_INTERNAL) { nvic->PRIORITY[ext_irq_no >> 2] = (nvic->PRIORITY[ext_irq_no >> 2] & ~(0xff << ((ext_irq_no & 3) * 8))) | (((prior << CORTEX_PRIOR_SHIFT) & CORTEX_PRIOR_MASK) << ((ext_irq_no & 3) * 8)); if (enable) _nvic_int_enable(irq); else _nvic_int_disable(irq); } else return MQX_INVALID_PARAMETER; return MQX_OK; } /*! * \brief Enable interrupt on cortex core NVIC * * \param[in] irq Interrupt number * * \return uint32_t MQX_OK or error code */ _mqx_uint _nvic_int_enable ( // [IN] Interrupt number _mqx_uint irq ) { VCORTEX_NVIC_STRUCT_PTR nvic = (VCORTEX_NVIC_STRUCT_PTR)&(((CORTEX_SCS_STRUCT_PTR)CORTEX_PRI_PERIPH_IN_BASE)->NVIC); uint32_t ext_irq_no = irq - 16; if (ext_irq_no >= PSP_INT_FIRST_INTERNAL && ext_irq_no <= PSP_INT_LAST_INTERNAL) { nvic->ENABLE[ext_irq_no >> 5] = 1 << (ext_irq_no & 0x1f); } else return MQX_INVALID_PARAMETER; return MQX_OK; } /*! * \brief Disable interrupt on cortex core NVIC * * \param[in] irq Interrupt number * * \return uint32_t MQX_OK or error code */ _mqx_uint _nvic_int_disable ( // [IN] Interrupt number _mqx_uint irq ) { VCORTEX_NVIC_STRUCT_PTR nvic = (VCORTEX_NVIC_STRUCT_PTR)&(((CORTEX_SCS_STRUCT_PTR)CORTEX_PRI_PERIPH_IN_BASE)->NVIC); uint32_t ext_irq_no = irq - 16; if (ext_irq_no >= PSP_INT_FIRST_INTERNAL && ext_irq_no <= PSP_INT_LAST_INTERNAL) { nvic->DISABLE[ext_irq_no >> 5] = 1 << (ext_irq_no & 0x1f); } else return MQX_INVALID_PARAMETER; return MQX_OK; } ``` ``` ```
阿里云OS加密system.img ext4 simg2img解包失败
新版阿里 云OS加密了system.img文件,怎么解包修改内容? #file system.img system.img:data #sigm2img system.img system.img.ext4 Bad magic (失败) 正常情况是: #sigm2img system.img system.img.ext4 (得到转换后的system.img.ext4文件) #file system.img.ext4 system.img.ext4:Linux rev 1.0 ext4 filesystem data #mount -o loop system.img.ext4 ./system 线刷包和工具都在 yunpan.cn/cHuzFfc5qLnAW (提取码:1027)哪位好人帮忙看看呀,感谢!
php7 mysql5.7 打架啦
问题是这样的,全新Ubuntu14.04 (aliyun)里安装了mysql 5.7.13 ![Mysql版本信息](https://img-ask.csdn.net/upload/201607/20/1468974692_51088.png) 然后下载编译的PHP7 ./configure 的参数为 --enable-ftp --enable-fpm --with-pdo-mysql=/usr/bin/mysql 提示成功生成Makefile。 继续make时则出现以下错误 ``` ext/pdo_mysql/.libs/pdo_mysql.o: In function `zm_info_pdo_mysql': /root/a/php-7.0.8/ext/pdo_mysql/pdo_mysql.c:162: undefined reference to `mysql_get_client_info' ext/pdo_mysql/.libs/mysql_driver.o: In function `pdo_mysql_check_liveness': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:493: undefined reference to `mysql_ping' ext/pdo_mysql/.libs/mysql_driver.o: In function `pdo_mysql_last_insert_id': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:292: undefined reference to `mysql_insert_id' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_rollback': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:343: undefined reference to `mysql_rollback' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_commit': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:330: undefined reference to `mysql_commit' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_quoter': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:307: undefined reference to `mysql_real_escape_string' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_closer': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:149: undefined reference to `mysql_close' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_autocommit': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:357: undefined reference to `mysql_autocommit' ext/pdo_mysql/.libs/mysql_driver.o: In function `_pdo_mysql_error': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:65: undefined reference to `mysql_stmt_errno' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:93: undefined reference to `mysql_error' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:101: undefined reference to `mysql_stmt_sqlstate' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:67: undefined reference to `mysql_errno' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:103: undefined reference to `mysql_sqlstate' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:93: undefined reference to `mysql_error' ext/pdo_mysql/.libs/mysql_driver.o: In function `pdo_mysql_handle_factory': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:585: undefined reference to `mysql_init' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:627: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:660: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:690: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:703: undefined reference to `mysql_ssl_set' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:730: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:742: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:775: undefined reference to `mysql_real_connect' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:670: undefined reference to `mysql_options' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:680: undefined reference to `mysql_options' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_autocommit': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:357: undefined reference to `mysql_autocommit' ext/pdo_mysql/.libs/mysql_driver.o: In function `pdo_mysql_handle_factory': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:703: undefined reference to `mysql_ssl_set' ext/pdo_mysql/.libs/mysql_driver.o: In function `pdo_mysql_get_attribute': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:444: undefined reference to `mysql_stat' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:426: undefined reference to `mysql_get_client_info' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:430: undefined reference to `mysql_get_server_info' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:434: undefined reference to `mysql_get_host_info' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_doer': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:261: undefined reference to `mysql_real_query' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:265: undefined reference to `mysql_affected_rows' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:274: undefined reference to `mysql_next_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:277: undefined reference to `mysql_store_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:273: undefined reference to `mysql_more_results' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:279: undefined reference to `mysql_free_result' ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_preparer': /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:183: undefined reference to `mysql_get_server_version' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:200: undefined reference to `mysql_stmt_init' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:208: undefined reference to `mysql_stmt_prepare' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:227: undefined reference to `mysql_stmt_param_count' /root/a/php-7.0.8/ext/pdo_mysql/mysql_driver.c:211: undefined reference to `mysql_errno' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_cursor_closer': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:902: undefined reference to `mysql_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:907: undefined reference to `mysql_stmt_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:913: undefined reference to `mysql_next_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:916: undefined reference to `mysql_store_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:911: undefined reference to `mysql_more_results' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:918: undefined reference to `mysql_free_result' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_fill_stmt_from_result': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:135: undefined reference to `mysql_affected_rows' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:142: undefined reference to `mysql_store_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:149: undefined reference to `mysql_num_rows' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:150: undefined reference to `mysql_num_fields' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:151: undefined reference to `mysql_fetch_fields' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:140: undefined reference to `mysql_use_result' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_next_rowset': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:408: undefined reference to `mysql_num_fields' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:410: undefined reference to `mysql_stmt_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:414: undefined reference to `mysql_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:418: undefined reference to `mysql_more_results' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:430: undefined reference to `mysql_next_result' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_fetch': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:632: undefined reference to `mysql_stmt_fetch' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:661: undefined reference to `mysql_fetch_row' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:672: undefined reference to `mysql_fetch_lengths' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:665: undefined reference to `mysql_errno' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_dtor': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:55: undefined reference to `mysql_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:63: undefined reference to `mysql_stmt_close' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:95: undefined reference to `mysql_next_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:99: undefined reference to `mysql_store_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:93: undefined reference to `mysql_more_results' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:101: undefined reference to `mysql_free_result' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_execute_prepared_libmysql': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:170: undefined reference to `mysql_stmt_bind_param' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:175: undefined reference to `mysql_stmt_errno' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_execute': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:328: undefined reference to `mysql_free_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:332: undefined reference to `mysql_real_query' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_execute_prepared_libmysql': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:170: undefined reference to `mysql_stmt_execute' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_set_row_count': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:121: undefined reference to `mysql_stmt_affected_rows' ext/pdo_mysql/.libs/mysql_statement.o: In function `pdo_mysql_stmt_execute_prepared_libmysql': /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:186: undefined reference to `mysql_stmt_result_metadata' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:189: undefined reference to `mysql_fetch_fields' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:200: undefined reference to `mysql_num_fields' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:254: undefined reference to `mysql_stmt_bind_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:261: undefined reference to `mysql_stmt_store_result' /root/a/php-7.0.8/ext/pdo_mysql/mysql_statement.c:209: undefined reference to `mysql_stmt_attr_set' collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 ```
notification无法显示
按照第一行代码打的notification,不知道那里错了(水平太低),系统是ubuntu ``` package com.example.unit_8; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.NotificationCompat; import android.app.Notification; import android.app.NotificationManager; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ private Button Send_notice; private NotificationManager notificationManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Send_notice = (Button) findViewById(R.id.send_notice); Send_notice.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()){ case R.id.send_notice: notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Notification notification = new NotificationCompat.Builder(this,"default") .setContentTitle("this is title") .setContentText("this is text") .setSmallIcon(R.mipmap.ic_launcher).build(); notificationManager.notify(1,notification); Log.i("msg","R.id.send_notice"); break; default: break; } } } ``` ``` ``` ``` 这个是log信息 2019-10-13 17:07:18.253 28995-28995/? I/.example.unit_: Not late-enabling -Xcheck:jni (already on) 2019-10-13 17:07:18.283 28995-28995/? E/.example.unit_: Unknown bits set in runtime_flags: 0x8000 2019-10-13 17:07:18.288 28995-28995/? W/.example.unit_: Unexpected CPU variant for X86 using defaults: x86 2019-10-13 17:07:18.497 28995-28995/com.example.unit_8 W/.example.unit_: JIT profile information will not be recorded: profile file does not exits. 2019-10-13 17:07:18.498 28995-28995/com.example.unit_8 I/chatty: uid=10142(com.example.unit_8) identical 10 lines 2019-10-13 17:07:18.498 28995-28995/com.example.unit_8 W/.example.unit_: JIT profile information will not be recorded: profile file does not exits. 2019-10-13 17:07:18.504 28995-28995/com.example.unit_8 I/InstantRun: starting instant run server: is main process 2019-10-13 17:07:18.523 28995-28995/com.example.unit_8 W/RenderThread: type=1400 audit(0.0:186): avc: denied { write } for name="property_service" dev="tmpfs" ino=7189 scontext=u:r:untrusted_app:s0:c142,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 2019-10-13 17:07:18.540 28995-29016/com.example.unit_8 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. 2019-10-13 17:07:18.541 28995-29016/com.example.unit_8 W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) 2019-10-13 17:07:18.603 28995-29016/com.example.unit_8 D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so 2019-10-13 17:07:18.604 28995-29016/com.example.unit_8 D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so 2019-10-13 17:07:18.617 28995-29016/com.example.unit_8 D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so 2019-10-13 17:07:18.695 28995-28995/com.example.unit_8 W/.example.unit_: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) 2019-10-13 17:07:18.695 28995-28995/com.example.unit_8 W/.example.unit_: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) 2019-10-13 17:07:18.849 28995-29014/com.example.unit_8 D/HostConnection: HostConnection::get() New Host Connection established 0xd753b9a0, tid 29014 2019-10-13 17:07:18.855 28995-29014/com.example.unit_8 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2 2019-10-13 17:07:18.874 28995-29014/com.example.unit_8 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 2019-10-13 17:07:18.876 28995-29014/com.example.unit_8 D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 2019-10-13 17:07:18.876 28995-29014/com.example.unit_8 D/EGL_emulation: eglCreateContext: 0xe2c1c180: maj 2 min 0 rcv 2 2019-10-13 17:07:18.877 28995-29014/com.example.unit_8 D/EGL_emulation: eglMakeCurrent: 0xe2c1c180: ver 2 0 (tinfo 0xe2cfded0) 2019-10-13 17:07:18.942 28995-29014/com.example.unit_8 W/Gralloc3: mapper 3.x is not supported 2019-10-13 17:07:18.948 28995-29014/com.example.unit_8 D/HostConnection: createUnique: call 2019-10-13 17:07:18.950 28995-29014/com.example.unit_8 D/HostConnection: HostConnection::get() New Host Connection established 0xd753d110, tid 29014 2019-10-13 17:07:18.969 28995-29014/com.example.unit_8 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2 2019-10-13 17:07:18.969 28995-29014/com.example.unit_8 D/eglCodecCommon: allocate: Ask for block of size 0x1000 2019-10-13 17:07:18.969 28995-29014/com.example.unit_8 D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ff801000 size 0x2000 2019-10-13 17:07:19.005 28995-29014/com.example.unit_8 D/EGL_emulation: eglMakeCurrent: 0xe2c1c180: ver 2 0 (tinfo 0xe2cfded0) 2019-10-13 17:07:19.012 28995-29014/com.example.unit_8 D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0 2019-10-13 17:07:34.632 28995-28995/com.example.unit_8 I/msg: R.id.send_notice
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
使用 Docker 部署 Spring Boot 项目
Docker 技术发展为微服务落地提供了更加便利的环境,使用 Docker 部署 Spring Boot 其实非常简单,这篇文章我们就来简单学习下。首先构建一个简单的 S...
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
redis分布式锁,面试官请随便问,我都会
文章有点长并且绕,先来个图片缓冲下! 前言 现在的业务场景越来越复杂,使用的架构也就越来越复杂,分布式、高并发已经是业务要求的常态。像腾讯系的不少服务,还有CDN优化、异地多备份等处理。 说到分布式,就必然涉及到分布式锁的概念,如何保证不同机器不同线程的分布式锁同步呢? 实现要点 互斥性,同一时刻,智能有一个客户端持有锁。 防止死锁发生,如果持有锁的客户端崩溃没有主动释放锁,也要保证锁可以正常释...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Java世界最常用的工具类库
Apache Commons Apache Commons有很多子项目 Google Guava 参考博客
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
Android 9.0 init 启动流程
阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:一、启动流程概述一、 启动流程概述Android启动流程跟Linux启动类似,大致分为如下五个阶段。1.开机上电,加载固化的ROM。2.加载BootLoader,拉起Android OS。3.加载Uboot,初始外设,引导Kernel启动等。...
相关热词 c# clr dll c# 如何orm c# 固定大小的字符数组 c#框架设计 c# 删除数据库 c# 中文文字 图片转 c# 成员属性 接口 c#如何将程序封装 16进制负数转换 c# c#练手项目
立即提问