博文

目前显示的是标签为“eclipse”的博文

How to install pydev on nsight eclipse

You need to have jdk version 1.7 on your machine. You need to manuall install the plugin pydev 2.8.2 version Download pydev from http://sourceforge.net/projects/pydev/files/ and upzip it. Drop the unzipped files in respect eclipse plugin folders. Note PyDev will not appear in Eclipse despite you have Java 7 on your machine. The solution is to run eclipse with -clean argument. On ubuntu, you need to run it with root - sudo nsight -clean with nsight you need /usr/local/cuda-7.0/libnsight $ sudo ./nsight -clean Configure pydev to use correct interpreter and libs from pyenv first use command "pyenv versions" and "which python" to find which python is used in your environment set the interpreter to: ~/.pyenv/shims/python2.7 set the system libs to: ~/.pyenv/versions/2.7.11/envs/DrivePX/lib/python2.7/site-packages/ (if you don't take the pythonpath from virutalenv, you do not have access to these site-packages which are required to run the code) R...

C++11 compile issue in eclipse cdt

In order to compile the c++11 enabled code in eclipse, we need to add a flag to GCC compiler.  Project -> Property ->C/C++ build ->Settings ->GCC C++ Complier ->Miscellanous -> add " -std=c++0x" to flag. However... Although in this way we can compile the code for c++11 in cdt, the editor is unaware the c++11 code, so it still shows errors.  To workaround this, we need to add two symbols in cdt for C++ compiler.  Properties -> C/C++ General ->Path and Symbols -> add these two symbols "_GLIBCXX_USE_C99_STDINT_TR1" with no value "__cplusplus " with value "201103L"

Config remote debug for tomcat hosted web application

Modify your tomcat startup script (startup.bat): Add this at the beginnng of startup.bat script set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket Replace  "call %EXECUTABLE%" start %CMD_LINE_ARGS%" to "call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%" Now tomcat start with opening port 8000 for debugging. Configure eclipse debug: In Run > Debug Configurations add a new debug configuration by selecting 'Remote Java Application' Use port 8000 and select the correct project to debug

在Eclipse中使用RegEx

Eclipse中的regular expression语法 http://www.eclipse.org/tptp/home/downloads/installguide/gla_42/ref/rregexp.html 使用grouped的RegEx替换 有如下text: new String("abc"); new String("123"); new String("JKL"); 使用这个regex: new\sString\(\"(.*)\"\) 进行match, 然后再替换为: \"$1\" 就可以一次完成 new String 的去除。

Installing Eclipse Juno 4.2 in Ubuntu 12.04

Download it here http://www.eclipse.org/downloads/ Extract it Create desktop file eclipse.desktop in /user/share/applications with following properties [Desktop Entry] Name=Eclipse Type=Application Exec=/home/user/Tools/eclipse/eclipse Terminal=false Icon=/home/user/Tools/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE Name[en]=eclipse.desktop Copy the eclipse.desktop file to desktop You also need to make the file executable chmod -x filename

Eclipse access restriction

图片
"Access restriction: Class is not accessible due to restriction on required library"; error message may be shown while developing Java projects in Eclipse IDE . Error message is self-explanatory, some classes can not be loaded into the project since restriction rules are being imposed on those classes. How to solve This error message can be removed by changing a setting inside Eclipse IDE. Open up the dialog box shown below, using any of the following paths. Windows -> Preferences -> Java -> Compiler -> Errors/Warnings (Project) Properties -> Java Compiler -> Errors/Warnings Locate the "Forbidden reference (access rules)" option under "Deprecated and restricted API" section in the dialog box. This option decides how to handle access rules defined inside Eclipse. By default it is set to "Error" which causes Eclipse to complain about references to any restricted classes. Choosing any other option (Warning or Ignore) wi...