Posts

Showing posts from 2019

make vim like source insight, a effective c/c++ ide

Image
IDE setup latest vim git clone https://github.com/vim/vim.git cd vim/src ./configure --enable-cscope --enable-terminal make sudo make install https://www.vim.org/git.php use universal ctags git clone https://github.com/universal-ctags/ctags.git cd ctags ./autogen.sh ./configure make sudo make instahttps://www.tamacom.com/global/global-6.6.3.tar.gzll setup gnu tags wget https://www.tamacom.com/global/global-6.6.3.tar.gz tar -xvf global-6.6.3.tar.gz cd global-6.6.3 sh reconf.sh sudo apt install ncurses-dev ./configure --with-universal-ctags=/usr/local/bin/ctags make sudo make install https://www.tamacom.com/global/global-6.6.3.tar.gz http://www.gnu.org/software/global/download.html install gtags as vim plugin cp gtags.vim ~/.vim/plugin/ cp gtags-cscope.vim ~/.vim/plugin/ config gtags as cscope in ~/.vimrc " gtags configure " To use the default key/mouse mapping: let GtagsCscope_Auto_Map = 1 " To ignore letter case when searching: let GtagsCscope_Ignore_Cas

set up java spring boot "hello world" web application on ubuntu from zero.

Image
install JDK 8 $ sudo apt-get install openjdk-8-jdk install Gradle $ curl -s " https://get.sdkman.io " | bash $ source "$HOME/.sdkman/bin/sdkman-init.sh" $ sdk install gradle 5.1.1 Spring Initializr start.spring.io get your "demo.zip" and unzip it. choose "Gradle Project", please remember add "Web" as dependence, otherwise there will be compile errors. Create a simple web application $ cat src/main/java/com/example/demo/HelloController.java package com.example.demo; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RequestMapping; @RestController public class HelloController { @RequestMapping("/") public String index() { return "Greetings from Spring Boot!"; } } Run the Application $ ./gradlew bootRun Check out the service. $ curl localhost:8080 Greetings from Spring Boot! Generate IDE profile add two pl