Kotlin function
코틀린 함수(Kotlin Method)
코틀린 함수(Kotlin Method)
Grammar val : read only (like final) var : Mutable
read file # Read and print file = open(gfile, 'r') while True: line = file.readline() if not line: break print(line) file.close()
filechk.py ```python #!/usr/bin/python import time import os, sys from datetime import datetime from commands import *
zcmd.py : command interface with proxy ```python #———————————————- zcmd.py #———————————————- import sys import socket # Import socket modul...
Logging using formatting ```python import logging from datetime import datetime
Before ``` buildscript { ext { springBootVersion = ‘2.1.7.RELEASE’ }
Apache Impala vs Apache Hive LLAP Data Warehouse SQL engine share the same data and metadata throughthe Hive Metastore Impala was designed for speed ...
Keywords Object Dependencies Dependency Injection Spring Containers
Spring Annotation JAXB Annotation
SocketHandler
Read/Write file
PostGre SQL ```java String url = “jdbc:postgresql://localhost/test”; Properties props = new Properties(); props.setProperty(“user”,”fred”); props.set...
Java의 주요 Logging Framework java.util.logging : Not used recently Log4J : Generally used Logback : Similar to Log4J (same developer) SLF4J : faca...
Apache logging service Apache logging service
```java SearchView mSearchView; MenuItem mMenuItem;
Reduce android studio size : Just uncheck in SDK Manager - More specifically here
ProduceKafka
How to install IntelliJ IDEA Download IntelliJ
Some functions can be useful to copy and paste. The following code snippets are some functions that I used before.
When you are network-programming, you can use logging function if you have special characters such as NULL, STX, ETX, etc., and if you have the wrong value, ...
CSS CSS Selectors .class .class1.class2 #id * element element.class element,element element element element>element element+element ...
Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains CSS- and (optionally) JavaScrip...
If you are familiar with unix or linux, you know how important profile settings are. If I were to build a new server environment, I would check the profile f...
AndroidManifest.xml ```xml
Screen Overlay is an advanced feature introduced in Android Marshmallow version that enables any app to appear on the top of other applications. Allowing per...
A “touch gesture” occurs when a user places one or more fingers on the touch screen, and your application interprets that pattern of touches as a particular ...
AndroidManifest.xml ```xml
AndroidManifest.xml ```xml
AndroidManifest.xml ```xml
You can easily build the web server with Node.js on the Linux or Unix. I’ve used it to build a monitoring web server. You can gather monitoring data by selec...
It is a basic code for creating a web app using Android Webview. You can customize various kinds of settings. Some of the main functions of web application a...
html ```html <!DOCTYPE html> This is title of this page.
Grammar Primitive Types string number boolean null undefined symbol
I have used many functions before, but I was lazy to recorded it. These functions are just the beginnings of my recording.
A simple test program can be created for receiving multicast data. Socket buffer size of multicast is limited and udp data can be easily dropped. So it is hi...
It is efficient to use scripts when the machine environment is diverse. Most of the settings are standardized. Modify the scripts if you use external librari...
In vim, you can use more powerful functions than vi. It’s easy to specify a region for copying and divide windows. It is convenient to use comparative utilit...
vi is one of the most frequently used editing tools for the unix operating system. vim is more powerful editor. It has so much functions, it is hard to remem...
It is effective to use the crontab for the batch schedule. For example, You can create a batch program using the web and register the task in the crontab. In...
Even though ftp is not good for security when you use it in the scripts, it is still easily usable and powerful. I use ftp and sftp scripts for batch job.
Almost all companies should check the weakness of server and report to the supervisory authority. We suggest simple scripts for checking world writable files...
Cron service can be used to schedule obvious things, such as regular backups that occur daily or weekly. The crond daemon is the background service that enab...
How to encrypt text with openssl ```sh create one time password openssl passwd mypass
Among the various commands available in Linux, we have summarized useful things.
The following codes are the functions that I’ve frequently used in my project. I’d like to copy and paste these codes to save my time from my repetitive jobs...
The following sql codes were used to refer to occasionally. It’s good to think of it as a note because it’s hard to remember all the subtle differences among...
Mssql Tutorial: sqlservertutorial.net
ftrans is simple file transfer system for using promptly. Every linux computer is intalled. It makes easy to use this file transfer script.
Machine Learning Link : Tensorflow blog
Installing pyodbc module
```python import sys import argparse
Recently, python users have been increased rapidly. Python’s various libraries, such as tensor flow, and machine learning will attract many users in the futu...
Open file
Initializing is not complex but something different for various languages. It makes me tired to remember if I start to use another language from time to time...
If we use high level languages and get used to developer environments such as visual studio, eclipse, android studio, inclusion and import are very easy. In ...
If you use web programming, you need basic knowledge about http protocol. Google, Amazon, and others offer a variety of web APIs. Coin Exchange also uses a l...
#Region "Your comments here" ' Your codes are here #End Region
A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. The various dialects of shell scripts are considered t...
jQuery was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animatio...
This is an sime XML parser that can be easily used and modified to your project.
This is an sime JSON parser that can be easily used and modified to your project.
We can receive any alarm data from udp and send them to in-house sms server. Here is an example of using Tibero Database.
The output length of each hash functions
Convert character set
Java collection
Date + SimpleDateFormat
ASP.NET MapRoute (Global.asax) protected void Application_Start(object sender, EventArgs e) { RouteTable.Routes.MapPageRoute("route_api", "api", "~/Commo...
URL encoder/decoder
enum type ```java enum Level { LOW, MEDIUM, HIGH }
SQLite Web site
NULL vs NIL Each language has its own identifier for no object. In C the standard library, NULL is a typedef of ((void )0). In C++ the standard library, NULL...
Parsing ```c
c is one of my favorite languages but it’s still not easy to use. Sometimes I forget some grammars and I’m also having trouble to remember the loop statement...
Intent Filter is used to specify the type of intents that the component would like to receive. Custom URL schemes provide a way to refer some resources insid...
Sharing is sending content such as text, files, or images to other apps.
java.lang.Object android.view.LayoutInflater
You can easily customize AlertDialog and can be wrapped with function.
How to apply firebase realtime database to android
Geoencoding API
Android Version History
Running Environment ```shell run with encoding java -Dfile.encoding=UTF-8 … com.x.Main java -Dfile.encoding=EUC-KR … com.x.Main