-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Iterator; | |
| import org.apache.poi.hssf.usermodel.HSSFCell; | |
| import org.apache.poi.hssf.usermodel.HSSFRow; | |
| import org.apache.poi.hssf.usermodel.HSSFSheet; | |
| import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| //Method Only | |
| @SuppressWarnings("rawtypes") | |
| @RequestMapping(value = "/cityGridView", method = RequestMethod.GET) | |
| public @ResponseBody | |
| Object[] showLineChart(Map<String, Object> map, HttpServletRequest request, | |
| HttpServletResponse response) { | |
| List<MapTable> list = contactService.fin(); | |
| Object[] rows = new Object[list.size()]; | |
| int i = 0; |
| package hendi.shinobi.ui; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.SQLException; | |
| import javax.swing.JOptionPane; | |
| /** | |
| * @author Agus Sumarna | |
| */ | |
| public class DBConnection { |
| package hendi.shinobi.ui; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.SQLException; | |
| import javax.swing.JOptionPane; | |
| /** | |
| * @author Agus Sumarna | |
| */ | |
| public class DBConnection { |
| package hendi.shinobi.ui; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.SQLException; | |
| import javax.swing.JOptionPane; | |
| /** | |
| * @author Agus Sumarna | |
| */ | |
| public class DBConnection { |
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package hendi.shinobi.ui; | |
| import java.sql.SQLException; | |
| import javax.swing.JOptionPane; | |
| import javax.swing.table.DefaultTableModel; |