在idea中安装好了Alibaba Java Code Guidelines插件进行代码规范扫描没有效果

在idea中使用alibaba的代码规约插件没有效果,不会检查到代码规范的问题,这是什么原因?

    // 这段代码应该违反了代码规约,可是没有扫描到
    public void $aa() {
        String _name = "name";
    }

1个回答

图片说明是不是没有开启啊

weixin_44062097
不想当猪猪侠的麦兜不是好佩奇 开启了,显示关闭实时检测功能,而且点编码规约扫描也找不到代码规范错误
5 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
苹果开发者上传无法构建版本
AU上传的ipa,然后在开发者中心无法构建版本。苹果邮件内容说是缺少1024X1024图标。 Dear Developer, We identified one or more issues with a recent delivery for your app,Please correct the following issues, then upload again. ITMS-90704: Missing App Icon - An app icon measuring 1024 by 1024 pixels in PNG format must be included in the Asset Catalog of apps built for iOS, iPadOS, or watchOS. Without this icon, apps cannot be submitted for review. For details, see https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/. Best regards, The App Store Team 求大佬支援一手 搞了好久 不成功
iOS 2.3.1 被拒 怎么解决
2. 3 Performance: Accurate Metadata Guideline 2.3.1 - Performance We discovered that your app contains obfuscated code, selector mangling, or features meant to subvert the App Review process by changing this app's concept after approval to the App Store. The next submission of this app may require a longer review time, and this app will not be eligible for an expedited review until this issue is resolved. Next Steps - Review the Performance section of the App Store Review Guidelines. - Ensure your app is compliant with all sections of the App Store Review Guidelines and the Terms & Conditions of the Apple Developer Program. - Once your app is fully compliant, resubmit your app for review. Submitting apps designed to mislead or harm customers or evade the review process may result in the termination of your Apple Developer Program account. Review the Terms & Conditions of the Apple Developer Program to learn more about our policies regarding termination. If you believe your app is compliant with the App Store Review Guidelines, you may submit an appeal. Alternatively, you may provide additional details about your app by replying directly to this message.
app被拒绝了,怎么办?
原因两条: 2.8 Details During review, your app installed or launched executable code, which is a violation of the App Store Review Guidelines. Specifically, your app uses the itms-services URL scheme to install an application. Specifically, this app contains a mechanism for updating itself outside of the App Store review process. 10.6 Details In addition, your app includes an update button or alerts the user to update the app. To avoid user confusion, app version updates must utilize the iOS built-in update mechanism. Specifically, this app contains an SDK designed to update the app outside of the App Store process. It would be appropriate to remove this SDK before resubmitting for review. 2.8 这个,我在整个项目里搜也没搜到用itms-services的,要说有绕过apple审核流程的更新机制也没找到。 至于10.6呢,项目里用了高德地图,亲加im,mjrefresh,afnetworking,sdwebimage,高德地图,mjrefresh,afnetworking这些应该没事吧,亲加im这个倒不知道怎么解决,要怎么查看它有没有更新机制?看他们提供的api没看到有这种接口。 请问这个要怎么解决?
app审核 被拒绝了,原因 2.8 和 10.6,怎么找到具体原因?
2.8 Details Thank you for your resubmission, However, your app installed or launched executable code, which is a violation of the App Store Review Guidelines. Specifically, your app uses the itms-services URL scheme to install an application. Specifically, this app contains a mechanism for updating itself outside of the App Store review process." Next Steps Please revise your app to remove this functionality. 10.6 Details Finally, your app still includes an update button or alerts the user to update the app. To avoid user confusion, app version updates must utilize the iOS built-in update mechanism. Specifically, this app contains an SDK designed to update the app outside of the App Store process. It would be appropriate to remove this SDK before resubmitting for review. Next Steps Please remove the update feature from your app. To distribute a new version of your app, upload the new app binary version into the same iTunes Connect record you created for the app’s previous version. Updated versions keep the same Apple ID, iTunes Connect ID (SKU), and bundle ID as the original version, and are available free to customers who purchased a previous version. 真实日了狗了,那个10.6 被拒2次了,明明没有弹出更新的按钮啊,2.8 实在不明白什么原因,求猿友帮助!!!
iOS APP审核问题,请大神指点
审核内容存储问题,有谁遇到的,请指点一二。 we found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.
想安装字蛛进行字体压缩,但在安装的时候各种报错
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'', npm ERR! errno: -13, 请问应该如何解决,网上了下,貌似只有这种方法才可对文字压缩?还有其他方法吗
IOS上架被拒,拒绝理由3.2.2
我们是一个发布任务的App,IOS上架多次被拒,哪位大神有解决方案,苹果答复如下: 发件人 Apple 3. 2.2 Business: Other Business Model Issues - Unacceptable Guideline 3.2.2 - Business - Other Business Model Issues - Unacceptable The primary purpose of your app is to encourage users to watch ads or perform marketing-oriented tasks, which is not appropriate for the App Store. Next Steps We encourage you to review your app concept and incorporate different content and features that are in compliance with the App Store Review Guidelines.
iOS因违反政策被下架该怎么处理。
Hello, We are writing to let you know about new information regarding your app currently live on the App Store. Upon re-evaluation, we found that your app is not in compliance with the App Store Review Guidelines. Specifically, we found: Performance - 2.3.1 & Business - 3.1.1 Your app contains hidden features that enable users to purchase content by means other than in-app purchase API. For this reason, your app will be removed from sale on the App Store at this time. Deliberate disregard of the App Store Review Guidelines and attempts to deceive users or undermine the review process are unacceptable and is a direct violation Section 3.2(f) of the Apple Developer Program License Agreement. Continuing to violate the Terms & Conditions of the Apple Developer Program will result in the termination of your account, as well as any related or linked accounts, and the removal of all your associated apps from the App Store. If you have any questions about this information, please reply to this message to let us know. Best regards, App Store Review 你好, 我们谨以此邮件通知您,您当前在App Store上有关于您的应用的新信息。 重新评估后,我们发现您的应用不符合App Store审核指南。具体来说,我们发现: 表现 - 2.3.1和业务 - 3.1.1 您的应用包含隐藏功能,使用户可以通过应用内购买API以外的方式购买内容。 因此,您的应用程序此时将从App Store中删除。 故意无视App Store审查指南以及欺骗用户或破坏审核流程的企图是不可接受的,并且直接违反Apple开发人员计划许可协议的第3.2(f)节。继续违反Apple开发者计划的条款和条件将导致您的帐户以及任何相关或关联帐户被终止,以及从App Store中删除所有相关应用程序。 如果您对此信息有任何疑问,请回复此邮件告知我们。 最好的祝福, App Store评论 --------------------------------------- 分割线 -------------------------------------------------- 因为之前使用了微信支付并且隐藏了,被发现后直接被下架了。然后就把微信支付删除掉重新提交了一个版本,但是已经一个多月了一直是“正在等待审核”状态。之前被下架的版本也没办法删除,请问这种情况该怎么处理? ![图片说明](https://img-ask.csdn.net/upload/201811/26/1543223919_264535.png)
iOS 发布被拒 2.23【求助】
我现在有些不知所措了。无从下手。求高手帮忙。。。 我的apps 用户存储结构如下: Document:中只存数据库存,由应用中复制过来使用,加入了NSURLIsExcludedFromBackupKey。 Library/Caches:只存网上下载的数据,数据不再删除。加入了NSURLIsExcludedFromBackupKey。 tmp:保存两个录音文件,app再次启动后回删除掉 在IOS发布后被拒给出如下描述: 2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected 2.23 Details On launch and content download, your app stores 6.99MB, which does not comply with the iOS Data Storage Guidelines. Next Steps Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed. Data that can be recreated but must persist for proper functioning of your app - or because users expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCRUFLIsExcludedFromBackupKey attribute. Resources To check how much data your app is storing: - Install and launch your app - Go to Settings > iCloud > Storage > Manage Storage - Select your device - If necessary, tap "Show all apps" - Check your app's storage
上架苹果app因为定位问题被拒
昨天刚上架苹果app,今天就被拒了,麻烦各位帮我看一下,因为本身就是有提醒信息 ,但是还是。。。被拒了,目前这个问题应该怎么解决~~麻烦各位帮我解答一下 发件人 Apple 2. 1 Performance: App Completeness 5. 1.5 Legal: Privacy - Location Services Guideline 2.1 - Information Needed We have started the review of your app, but we are not able to continue because we need access to a video that shows the location feature while your app is running in the background. Next Steps To help us proceed with the review of your app, please provide us with a link to a demo video in the App Review Information section of iTunes Connect and reply to this message in Resolution Center. To provide a link to a demo video: - Log in to iTunes Connect - Click on "My Apps" - Select your app - Click on the app version on the left side of the screen - Scroll down to "App Review Information" - Provide demo video access details in the "Notes" section - Click "Save" - Once you've completed all changes, click the "Submit for Review" button at the top of the App Version Information page. Once this information is available, we can continue with the review of your app. Guideline 5.1.5 - Legal - Privacy - Location Services Your app uses background location services but does not clarify the purpose of its use in the location modal alert as required in the iOS Human Interface Guidelines. Please see attached screenshots for details. Next Steps To resolve this issue, please revise the NSLocationAlwaysUsageDescription value in the Info.plist to specify the intended purpose of using the user's location while the app is in the background. Resources For additional information and instructions on configuring and presenting an alert, please review the Requesting Permission section of the iOS Human Interface Guidelines and the Information Property List Key Reference. 下图是我目前app的界面图 ![图片说明](https://img-ask.csdn.net/upload/201708/15/1502766924_865155.png)
app版本更新,突然说我的注册功能有问题,然后被拒了几次了,求帮助!!!!!!!!
3. 1.1 BUSINESS: PAYMENTS - IN-APP PURCHASE Business - 3.1.1 Your app includes an account registration feature, which is considered an access to external mechanisms for purchases or subscriptions to be used in the app. This feature does not comply with the App Store Review Guidelines. We've attached screenshot(s) for your reference. Next Steps Please remove the account registration links and any other fully qualified links to your site that could indirectly provide access to these mechanisms, such as links to web pages for support, FAQ, product or program details, etc. 百度翻译是说: 三.1.1业务:支付应用程序内购买 3.1.1业务- 您的应用程序包括一个帐户注册功能,这被认为是一个访问外部机制购买或订阅的应用程序中使用。 此功能不符合应用程序商店审查准则。 我们已经附上截图(S)为您的参考。 接下来的步骤 请删除帐号注册链接和其他完全合格的链接到你的网站,可以间接地提供这些机制,如支持网页链接FAQ、产品或方案的细节,等等。 我的应用里面并没有提供支付功能,为什么说我的注册有问题。。。。。。而且最近我才刚提交审核,还在等待审核阶段,解决中心就发了只有标题的信息给我,说二进制文件被拒了,然后过了几个小时,我的app还进入了正在审核阶段,并没有说被审核人员拒绝。 如下图:![图片说明](https://img-ask.csdn.net/upload/201611/02/1478068870_900997.png)
ios审核反馈“WiFi和蜂窝,不遵守应用程序商店审查指南”是怎么回事啊,求指教啊
2.2: Apps that exhibit bugs will be rejected 2.2 We found that your app exhibited one or more bugs, when reviewed on iPhone 5s running iOS 7.1.2, on both Wi-Fi and cellular networks, which is not in compliance with the App Store Review Guidelines. 1. We were unable to log in. After entering demo login information provided and tapping on the login button, a loading signal appears then disappears. We remained on the login page. 2. 定位失败 message continued to display on each page. Please see attached screenshots for reference. For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide: - complete details of your rejection issue(s) - screenshots - steps to reproduce the issue(s) - symbolicated crash logs - if your issue results in a crash log If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&amp;A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.
关于提交app被拒的问题
2.9 - Apps that are "demo", "trial", or "test" versions will be rejected. Beta Apps may only be submitted through TestFlight and must follow the TestFlight guidelines 我提交app审核,为什么总是被拒,原因如上,请问怎么解决???谢谢
编写一个安卓入门小程序,程序闪退,求解
写一个安卓实现录音与播放功能的程序,但是apk运行时一按录音键就闪退,求大神帮忙看看代码,感谢 源文件: package com.example.recorder; import java.io.File; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import android.media.MediaRecorder; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity extends Activity { private static final String LOG_TAG = "AudioRecordTest"; // 语音文件保存路径 private String FileName = null; // 界面控件 private Button startRecord; private Button startPlay; private Button stopRecord; private Button stopPlay; // 语音操作对象 private MediaPlayer mPlayer = null; private MediaRecorder mRecorder = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //开始录音 startRecord = (Button) findViewById(R.id.startrecord); // 绑定监听器 startRecord.setOnClickListener(new startRecordListener()); // 结束录音 stopRecord = (Button) findViewById(R.id.stoprecord); stopRecord.setOnClickListener(new stopRecordListener()); // 开始播放 startPlay = (Button) findViewById(R.id.play); // 绑定监听器 startPlay.setOnClickListener(new startPlayListener()); // 结束播放 stopPlay = (Button) findViewById(R.id.stop); stopPlay.setOnClickListener(new stopPlayListener()); FileName = Environment.getExternalStorageDirectory().getAbsolutePath(); FileName = FileName + File.separator + "audiorecordtest.arm"; } // 开始录音 class startRecordListener implements OnClickListener { @Override public void onClick(View v) { // TODO Auto-generated method stub mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); mRecorder.setOutputFile(FileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); try { mRecorder.prepare(); } catch (IOException e) { Log.e(LOG_TAG, "prepare() failed"); } mRecorder.start(); } } // 停止录音 class stopRecordListener implements OnClickListener { @Override public void onClick(View v) { // TODO Auto-generated method stub mRecorder.stop(); mRecorder.release(); mRecorder = null; } } // 播放录音 class startPlayListener implements OnClickListener { @Override public void onClick(View v) { // TODO Auto-generated method stub mPlayer = new MediaPlayer(); try { mPlayer.setDataSource(FileName); mPlayer.prepare(); mPlayer.start(); } catch (IOException e) { Log.e(LOG_TAG, "播放失败"); } } } // 停止播放录音 class stopPlayListener implements OnClickListener { @Override public void onClick(View v) { // TODO Auto-generated method stub mPlayer.release(); mPlayer = null; } } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } } R文件 /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example.recorder; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080005; public static final int play=0x7f080002; public static final int select=0x7f080004; public static final int startrecord=0x7f080000; public static final int stop=0x7f080003; public static final int stoprecord=0x7f080001; } public static final class layout { public static final int activity_main=0x7f030000; } public static final class menu { public static final int main=0x7f070000; } public static final class string { public static final int action_settings=0x7f050002; public static final int app_name=0x7f050000; public static final int hello_world=0x7f050001; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } }
IOS 审核被拒因为20.5的问题
彩票APP总是一直因为一个授权的问题被拒,前辈们知道怎么解决吗? Reasons 20.5: Apps that offer real money gaming (e.g. sports betting, poker, casino games, horse racing) or lotteries must have necessary licensing and permissions in the locations where the App is used, must be restricted to those locations, and must be free on the App Store Thank you for providing the information, however we still find the previous rejection to be valid since your app provides lottery purchase without an appropriate license: ----- 20.5 ----- We still find that your app enables users to purchase a lottery ticket within the app without appropriate licensing, which is not in compliance with the App Store Review Guidelines. While lottery tickets cannot be purchased within an app, it is possible to provide a link that launches your web site, in Safari, and enables ticket purchase. We encourage you to make the necessary changes to your application and resubmit it for review.
android R文件不更新问题,已勾选自动更新
MainActivity.java ``` package com.example; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. switch(item.getItemId()){ case R.id.start: case R.id.stop: invalidateOptionsMenu(); break; case R.id.exit: finish(); break; default: break; } Toast.makeText(MainActivity.this, item.getTitle()+"被单击了", 1000).show(); return true; } public boolean onPrepareOptionsMenu(Menu menu){ super.onPrepareOptionsMenu(menu); MenuItem start=menu.findItem(R.id.start); MenuItem stop=menu.findItem(R.id.stop); boolean flag = false; start.setEnabled(flag); stop.setEnabled(!flag); flag=!flag; return true; } } ``` /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080000; } public static final class layout { public static final int activity_main=0x7f030000; } public static final class menu { public static final int main=0x7f070000; } public static final class string { public static final int action_settings=0x7f050002; public static final int app_name=0x7f050000; public static final int hello_world=0x7f050001; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } } R文件id里不产生start ,stop ,exit的相关数据
请大神帮我解决这个c/c++麻烦,谢谢!
//一下代码是一个窗口显示界面,我想弄懂这个代码,然后删除第一个窗口,改一改窗口和按钮的布局,就这样了,谢谢大神啊 //Microsoft Developer Studio generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // Chinese (中国) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) #ifdef _WIN32 LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED #pragma code_page(936) #endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE DISCARDABLE BEGIN "resource.h\0" END 2 TEXTINCLUDE DISCARDABLE BEGIN "#include ""afxres.h""\r\n" "\0" END 3 TEXTINCLUDE DISCARDABLE BEGIN "#define _AFX_NO_SPLITTER_RESOURCES\r\n" "#define _AFX_NO_OLE_RESOURCES\r\n" "#define _AFX_NO_TRACKER_RESOURCES\r\n" "#define _AFX_NO_PROPERTY_RESOURCES\r\n" "\r\n" "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)\r\n" "#ifdef _WIN32\r\n" "LANGUAGE 4, 2\r\n" "#pragma code_page(936)\r\n" "#endif //_WIN32\r\n" "#include ""res\\Medical3D.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""l.chs\\afxres.rc"" // Standard components\r\n" "#endif\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. //IDR_MAINFRAME ICON DISCARDABLE "res\\Medical3D.ico" ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_MEDICAL3D_DIALOG DIALOGEX 0, 0, 443, 370 STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_APPWINDOW CAPTION "Medical3D" FONT 9, "微软雅黑" BEGIN LTEXT "",IDC_SurfaceRender,7,6,186,176,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE LTEXT "",IDC_VolumeRender,201,5,186,176,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE LTEXT "",IDC_ImageShow,7,189,186,176,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE LTEXT "",IDC_ImageWedget,200,189,186,176,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE PUSHBUTTON "面绘制",IDC_BUTTON1,393,269,36,15,0,WS_EX_STATICEDGE PUSHBUTTON "体绘制",IDC_BUTTON2,393,292,36,15,0,WS_EX_STATICEDGE PUSHBUTTON "图像显示",IDC_BUTTON3,393,315,36,15,0,WS_EX_STATICEDGE PUSHBUTTON "切片显示",IDC_BUTTON4,393,338,36,15,0,WS_EX_STATICEDGE END #ifndef _MAC ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,0,1 PRODUCTVERSION 1,0,0,1 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "080404B0" BEGIN VALUE "CompanyName", "\0" VALUE "FileDescription", "Medical3D Microsoft 基础类应用程序\0" VALUE "FileVersion", "1, 0, 0, 1\0" VALUE "InternalName", "Medical3D\0" VALUE "LegalCopyright", "版权所有 (C) 2007\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "Medical3D.EXE\0" VALUE "ProductName", "Medical3D 应用程序\0" VALUE "ProductVersion", "1, 0, 0, 1\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x804, 1200 END END #endif // !_MAC ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO DISCARDABLE BEGIN IDD_MEDICAL3D_DIALOG, DIALOG BEGIN RIGHTMARGIN, 437 BOTTOMMARGIN, 365 END END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_ABOUTBOX "关于 Medical3D(&A)..." END #endif // Chinese (中国) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // #define _AFX_NO_SPLITTER_RESOURCES #define _AFX_NO_OLE_RESOURCES #define _AFX_NO_TRACKER_RESOURCES #define _AFX_NO_PROPERTY_RESOURCES #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) #ifdef _WIN32 LANGUAGE 4, 2 #pragma code_page(936) #endif //_WIN32 //#include "res\Medical3D.rc2" // non-Microsoft Visual C++ edited resources #include "l.chs\afxres.rc" // Standard components #endif ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED
怎么编写 Win32 多语言用户界面应用程序
请问win32项目怎么实现程序的多语言? 我在文件里创建了两组控件,一个是中文,一个是英文。请问怎么编程实现切换?就像下图所示 ![这是中文程序](https://img-ask.csdn.net/upload/201703/31/1490969844_238730.jpg) ![这是英文程序](https://img-ask.csdn.net/upload/201703/31/1490969877_3741.jpg) 查阅msdn文档后没太看懂,有人帮一下嘛,困住好久了 ![图片说明](https://img-ask.csdn.net/upload/201703/31/1490969992_302261.jpg) 我自己写的.rc代码如下: // Microsoft Visual C++ generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #ifndef APSTUDIO_INVOKED #include "targetver.h" #endif #define APSTUDIO_HIDDEN_SYMBOLS #include "windows.h" #undef APSTUDIO_HIDDEN_SYMBOLS ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // 中文(简体,中国) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_LAB5 ICON "lab5.ico" IDI_SMALL ICON "small.ico" ///////////////////////////////////////////////////////////////////////////// // // Menu // IDC_LAB5 MENU BEGIN POPUP "文件(&F)" BEGIN MENUITEM "退出(&X)", IDM_EXIT END POPUP "对话框(&O)" BEGIN MENUITEM "模式对话框(&M)...\tCtrl+A", ID_32771 MENUITEM "无模式对话框(&L)...\tCtrl+B", ID_32772 MENUITEM "文件对话框(&F)...\tCtrl+C", ID_Menu END POPUP "光标类型(&C)" BEGIN MENUITEM "光标&1(箭头)\tCtrl+1", ID_32774 MENUITEM "光标&2(十字)\tCtrl+2", ID_32775 MENUITEM "光标&3(自定义)\tCtrl+3", ID_32776 END POPUP "语言(&L)" BEGIN MENUITEM "中文(&C)\tCtrl+Shift+C", ID_32777 MENUITEM "&English\tCtrl+Shift+D", ID_32778 END POPUP "关于(&A)" BEGIN MENUITEM "程序信息(&I)\tF1", IDM_ABOUT END END ///////////////////////////////////////////////////////////////////////////// // // Accelerator // IDC_LAB5 ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT "/", IDM_ABOUT, ASCII, ALT END ///////////////////////////////////////////////////////////////////////////// // // Dialog // /* IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Lab5(SDK)" FONT 9, "MS Shell Dlg", 0, 0, 0x1 BEGIN ICON IDR_MAINFRAME, IDC_STATIC, 14, 14, 21, 20 LTEXT "第五次上机练习(SDK)\n对话框、光标、位图、字符串\n\n", IDC_STATIC, 42, 14, 114, 8, SS_NOPREFIX LTEXT LTEXT "学号:10152130206\n姓名:高吉祥\n", IDC_STATIC, 42, 26, 114, 8 DEFPUSHBUTTON "确定", IDOK, 113, 41, 50, 14, WS_GROUP END */ ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN IDD_ABOUTBOX, DIALOG BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 163 TOPMARGIN, 7 BOTTOMMARGIN, 55 END END #endif // APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#ifndef APSTUDIO_INVOKED\r\n" "#include ""targetver.h""\r\n" "#endif\r\n" "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" "#include ""windows.h""\r\n" "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Cursor // IDC_CURSOR1 CURSOR "cursor1.cur" ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE BEGIN IDS_APP_TITLE "lab5" IDS_STRING1 "当前光标是:IDC_ARROW" IDS_STRING2 "当前光标是:IDC_CROSS" IDS_STRING3 "当前光标是:我的光标" IDC_LAB5 "LAB5" END #endif // 中文(简体,中国) resources ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // Englisch (GB) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK #pragma code_page(1252) #endif //_WIN32 ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_LAB5 ICON "lab5.ico" IDI_SMALL ICON "small.ico" ///////////////////////////////////////////////////////////////////////////// // // Menu // IDC_LAB5 MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_EXIT END POPUP "&Dialog" BEGIN MENUITEM "&Modal Dialog...\tCtrl+A", ID_32771 MENUITEM "Modal&Less Dialog(L)...\tCtrl+B", ID_32772 MENUITEM "&File Dialog...\tCtrl+C", ID_Menu END POPUP "&Cursor" BEGIN MENUITEM "Cursor&1(ARROW)\tCtrl+1", ID_32774 MENUITEM "Cursor&2(CROSS)\tCtrl+2", ID_32775 MENUITEM "Cursor&3(UserDefined)\tCtrl+3", ID_32776 END POPUP "&Language" BEGIN MENUITEM "中文(&C)\tCtrl+Shift+C", ID_32777 MENUITEM "&English\tCtrl+Shift+D", ID_32778 END POPUP "&About" BEGIN MENUITEM "Program &Information\tF1", IDM_ABOUT END END ///////////////////////////////////////////////////////////////////////////// // // Accelerator // IDC_LAB5 ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT "/", IDM_ABOUT, ASCII, ALT END ///////////////////////////////////////////////////////////////////////////// // // Dialog // /* IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Lab5(SDK)" FONT 9, "MS Shell Dlg", 0, 0, 0x1 BEGIN ICON IDR_MAINFRAME, IDC_STATIC, 14, 14, 21, 20 LTEXT "第五次上机练习(SDK)\n对话框、光标、位图、字符串\n\n", IDC_STATIC, 42, 14, 114, 8, SS_NOPREFIX LTEXT LTEXT "学号:10152130206\n姓名:高吉祥\n", IDC_STATIC, 42, 26, 114, 8 DEFPUSHBUTTON "确定", IDOK, 113, 41, 50, 14, WS_GROUP END */ ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN IDD_ABOUTBOX, DIALOG BEGIN LEFTMARGIN, 7 RIGHTMARGIN, 163 TOPMARGIN, 7 BOTTOMMARGIN, 55 END END #endif // APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#ifndef APSTUDIO_INVOKED\r\n" "#include ""targetver.h""\r\n" "#endif\r\n" "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" "#include ""windows.h""\r\n" "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" "\0" END 3 TEXTINCLUDE BEGIN "\r\n" "\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Cursor // IDC_CURSOR1 CURSOR "cursor1.cur" ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE BEGIN IDS_APP_TITLE "lab5" IDS_STRING1 "The current cusor is:IDC_ARROW" IDS_STRING2 "The current cusor is:IDC_CROSS" IDS_STRING3 "The current cusor is:My Cursor" IDC_LAB5 "LAB5" END #endif // 中文(简体,中国) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED
android R文件不更新问题
![图片说明](https://img-ask.csdn.net/upload/201603/10/1457587569_569003.png) package com.example; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. switch(item.getItemId()){ case R.id.start: case R.id.stop: invalidateOptionsMenu(); break; case R.id.exit: finish(); break; default: break; } Toast.makeText(MainActivity.this, item.getTitle()+"被单击了", 1000).show(); return true; } public boolean onPrepareOptionsMenu(Menu menu){ super.onPrepareOptionsMenu(menu); MenuItem start=menu.findItem(R.id.start); MenuItem stop=menu.findItem(R.id.stop); boolean flag = false; start.setEnabled(flag); stop.setEnabled(!flag); flag=!flag; return true; } } ![图片说明](https://img-ask.csdn.net/upload/201603/10/1457587592_743146.png) /* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.example; public final class R { public static final class attr { } public static final class dimen { /** Default screen margins, per the Android Design guidelines. Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). */ public static final int activity_horizontal_margin=0x7f040000; public static final int activity_vertical_margin=0x7f040001; } public static final class drawable { public static final int ic_launcher=0x7f020000; } public static final class id { public static final int action_settings=0x7f080000; } public static final class layout { public static final int activity_main=0x7f030000; } public static final class menu { public static final int main=0x7f070000; } public static final class string { public static final int action_settings=0x7f050002; public static final int app_name=0x7f050000; public static final int hello_world=0x7f050001; } public static final class style { /** Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. API 11 theme customizations can go here. Base application theme for API 14+. This theme completely replaces AppBaseTheme from BOTH res/values/styles.xml and res/values-v11/styles.xml on API 14+ devices. API 14 theme customizations can go here. */ public static final int AppBaseTheme=0x7f060000; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f060001; } } R文件里边的id不产生start ,stop,exit的属性值
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优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的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 进程负责处...
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方...
吐血推荐珍藏的Visual Studio Code插件
作为一名Java工程师,由于工作需要,最近一个月一直在写NodeJS,这种经历可以说是一部辛酸史了。好在有神器Visual Studio Code陪伴,让我的这段经历没有更加困难。眼看这段经历要告一段落了,今天就来给大家分享一下我常用的一些VSC的插件。 VSC的插件安装方法很简单,只需要点击左侧最下方的插件栏选项,然后就可以搜索你想要的插件了。 下面我们进入正题 Material Theme ...
如何防止抄袭PCB电路板
目录 1、抄板是什么 2、抄板是否属于侵权 3、如何防止抄板 1、抄板是什么 抄板也叫克隆或仿制,是对设计出来的PCB板进行反向技术研究;目前全新的定义:从狭义上来说,抄板仅指对电子产品电路板PCB文件的提取还原和利用文件进行电路板克隆的过程;从广义上来说,抄板不仅包括对电路板文件提取、电路板克隆、电路板仿制等技术过程,而且包括对电路板文件进行修改(即改板)、对电子产品外形模具进行三维...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
相关热词 c# 二进制截断字符串 c#实现窗体设计器 c#检测是否为微信 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片
立即提问