Posts by Year

2022

Back to top ↑

2021

Starting kotlin

1 minute read

Grammar val : read only (like final) var : Mutable

Basic information for proxy

less than 1 minute read

read file # Read and print file = open(gfile, 'r') while True: line = file.readline() if not line: break print(line) file.close()

Checking file status

less than 1 minute read

filechk.py ```python #!/usr/bin/python import time import os, sys from datetime import datetime from commands import *

Basic information for proxy

3 minute read

zcmd.py : command interface with proxy ```python #———————————————- zcmd.py #———————————————- import sys import socket # Import socket modul...

Gradle

less than 1 minute read

Before ``` buildscript { ext { springBootVersion = ‘2.1.7.RELEASE’ }

Impala

less than 1 minute read

Apache Impala vs Apache Hive LLAP Data Warehouse SQL engine share the same data and metadata throughthe Hive Metastore Impala was designed for speed ...

Back to top ↑

2020

How to use rdb

8 minute read

PostGre SQL ```java String url = “jdbc:postgresql://localhost/test”; Properties props = new Properties(); props.setProperty(“user”,”fred”); props.set...

How to use slf4j

less than 1 minute read

Java의 주요 Logging Framework java.util.logging : Not used recently Log4J : Generally used Logback : Similar to Log4J (same developer) SLF4J : faca...

Android MenuItem

less than 1 minute read

```java SearchView mSearchView; MenuItem mMenuItem;

Android Troubleshooting

less than 1 minute read

Reduce android studio size : Just uncheck in SDK Manager - More specifically here

Back to top ↑

2019

Useful functions in c

4 minute read

Some functions can be useful to copy and paste. The following code snippets are some functions that I used before.

Hexadecimal log in c

1 minute read

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, ...

Base of CSS3

1 minute read

CSS CSS Selectors .class .class1.class2 #id * element element.class element,element element element element>element element+element ...

Using bootstrap

less than 1 minute read

Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains CSS- and (optionally) JavaScrip...

Useful tips for profile

1 minute read

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...

Android Overlay

1 minute read

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...

Android Gesture

2 minute read

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 ...

Android Beep

less than 1 minute read

AndroidManifest.xml ```xml

Building web server with Node.js

3 minute read

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...

Android Webview

4 minute read

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...

Base of HTML5

less than 1 minute read

html ```html <!DOCTYPE html> This is title of this page.

Utils for c#

less than 1 minute read

I have used many functions before, but I was lazy to recorded it. These functions are just the beginnings of my recording.

Simple multicast receiver in c

2 minute read

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...

makefile scripts and samples

2 minute read

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...

Useful tips for vim

3 minute read

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...

Useful tips for vi

7 minute read

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...

How to add scraping url for batch in linux

less than 1 minute read

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...

How to use ftp and sftp in linux

less than 1 minute read

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.

How to check weakness in linux

less than 1 minute read

Almost all companies should check the weakness of server and report to the supervisory authority. We suggest simple scripts for checking world writable files...

Useful tips for crontab

1 minute read

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...

Useful tips for linux

1 minute read

Among the various commands available in Linux, we have summarized useful things.

Utils for javascript

6 minute read

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...

Useful tips for Oracle database

6 minute read

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...

Simple file transfer with python

1 minute read

ftrans is simple file transfer system for using promptly. Every linux computer is intalled. It makes easy to use this file transfer script.

Tensorflow

less than 1 minute read

Machine Learning Link : Tensorflow blog

Basic information for python

6 minute read

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...

How to initialize variables in c

1 minute read

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...

Tips for including headers in c

1 minute read

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 ...

Basic information for HTTP and HTML

2 minute read

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...

Basic information for shell script

2 minute read

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...

How to use jquery in javascript

3 minute read

jQuery was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animatio...

XML Parser in java

2 minute read

This is an sime XML parser that can be easily used and modified to your project.

Json Parser in java

3 minute read

This is an sime JSON parser that can be easily used and modified to your project.

Making simple SmsSendHub in java

4 minute read

We can receive any alarm data from udp and send them to in-house sms server. Here is an example of using Tibero Database.

Basic information for asp

1 minute read

ASP.NET MapRoute (Global.asax) protected void Application_Start(object sender, EventArgs e) { RouteTable.Routes.MapPageRoute("route_api", "api", "~/Commo...

java enum

less than 1 minute read

enum type ```java enum Level { LOW, MEDIUM, HIGH }

Basic tips for c++

1 minute read

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...

Basic grammar for c

4 minute read

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...

LayoutInflator

1 minute read

java.lang.Object android.view.LayoutInflater

Back to top ↑