https://coding-factory.tistory.com/411

 

[Oracle] 오라클 테이블 스페이스 사용법(조회, 생성, 삭제)등 총정리

오라클 테이블 스페이스(Table Space)란 무엇인가? 오라클은 데이터를 관리하는 데이터베이스입니다. 데이터를 어딘가에 저장해놓고 사용하는 시스템이라고 볼 수 있습니다. 그리고 데이터 저장 단위 중 가장 상위..

coding-factory.tistory.com

https://m.blog.naver.com/wiseyoun07/220275811188

 

[Oracle]오라클 잡 스케줄러 생성

DBMS_JOB이란 오라클에서 주기적으로 수행되는 백업작업이나, 쿼리나 프로시져등의 JOB을 시간단...

blog.naver.com

https://m.blog.naver.com/PostView.nhn?blogId=wiseyoun07&logNo=220259992314&proxyReferer=https%3A%2F%2Fwww.google.com%2F

 

[인덱스] 오라클 인덱스는 언제 왜 생성할까?

SM 업무를 맡은지 5년차가 되었다. 개발을 할 때나 프로젝트를 할 때는 크게 쿼리 속도에 민감 할 일이 ...

blog.naver.com

https://m.blog.naver.com/PostView.nhn?blogId=htech79&logNo=221148900796&categoryNo=1&proxyReferer=https%3A%2F%2Fwww.google.com%2F

'ETC' 카테고리의 다른 글

Chapter 1  (0) 2020.02.27
HLS vs DASH  (0) 2020.02.24
Media files note 1  (0) 2020.02.24
Debugging  (0) 2020.02.14
Android Studio notes1(02/13/20 cudo notes)  (0) 2020.02.13

CDN - a content delivery network is a system of geographically distributed servers used to transport media files. The purpose of the CDN is to host live streaming videos to users. CDN works like amazon warehouse. If closest edge server does have resource cached, it will deliver it to the user. If not, it will deliver the media by requesting to another network. (Think of it like globally connected highways for data).

 

Advantage of CDNS - scalability, speed, quality and security.

 

When CDNs are not needed - Small audience, limited budget. 

 

Every year people are abandoning traditional satellite and cable services and switching to live streaming.(favoring towards netflix over broadbands).

 

.ts, .mp4, there are various media formats and it can be bothersome and burden towards memory to have all these different formats available for end users. So came up with the solution of cmaf, making a universal media format for all media content. 

 

CMAF also provides low latency, by dividing original media file into small pieces called chunks. 

 

'ETC' 카테고리의 다른 글

HLS vs DASH  (0) 2020.02.24
Sites to view later  (0) 2020.02.24
Debugging  (0) 2020.02.14
Android Studio notes1(02/13/20 cudo notes)  (0) 2020.02.13
REGEX  (0) 2020.02.12

Using a super class with multiple sub classes, and depending on input returns one sub class. Factory pattern allows no actual instantiation on client code. 

 

 

 

source : https://www.journaldev.com/1392/factory-design-pattern-in-java

 

'디자인 패턴' 카테고리의 다른 글

Strategy Pattern  (0) 2020.02.28
Builder Design Pattern  (0) 2020.02.25
Abstract Factory Design Pattern  (0) 2020.02.24
Singleton Pattern  (0) 2020.02.19

Singleton pattern only allows for one instance of the class to be created and exist in JVM. 

 

- Gof Creational Pattern

- Only one instance of class

- Must have global access point to create the instance

- Singleton pattern is used for logging, drivers objects and caching and thread pool.

 

Singleton pattern could be implemented in different ways but must have the following:

1. private constructor to restrict instantiation of the class from other classes.

2. private static variable of the same class that is the only instance of the class

3. public static class that returns the instance of the class.

 

1. Eager initialization

instance is created at the time of class loading, easiest to code but has many drawbacks.

- instance is created regardless w/o considering the possibility of not using the class.

- doesnt provide any exception handling

2. Static block intialization

similar to eager initialization, but adds static when creating instance for exception handling. Eager intialization and Static block intialization instances are created when class is being loaded so it is not the best method to create a singleton pattern. 

3. Lazy Initialization

Creates instance inside the global access method. It works fine in single-threaded environment but when working with multiple threads, if both threads are created at the same time, the singleton pattern will not working causing it to create two different instances of the class. 

4. Thread Safe Singleton

applying synchronized to a global access method will allow thread wait for other working threads when using the method. But applying synchronized directly to the method will cause unnecessary time costs so for this, we can add a synchronized block inside another if statement, a double checked locking principle.

5. Bill Pugh Singleton Implementation

Bill Pugh created a pattern where using inner static helper class to create a thread safe singleton instance.

SingletonHelper class is not loaded into the memory until getInstance is called, which saves unnecessary memory costs. This is most widely used singleton pattern. 

source: https://www.journaldev.com/1827/java-design-patterns-example-tutorial#creational-patterns

'디자인 패턴' 카테고리의 다른 글

Strategy Pattern  (0) 2020.02.28
Builder Design Pattern  (0) 2020.02.25
Abstract Factory Design Pattern  (0) 2020.02.24
Factory Design Pattern  (0) 2020.02.22
  1. syntax errors that prevent a program from running
  2. runtime errors when code fails to execute or has unexpected behavior
  3. semantic (or logical) errors when code doesn't do what it's meant to.

 

'ETC' 카테고리의 다른 글

Sites to view later  (0) 2020.02.24
Media files note 1  (0) 2020.02.24
Android Studio notes1(02/13/20 cudo notes)  (0) 2020.02.13
REGEX  (0) 2020.02.12
FCM notification send  (0) 2020.02.11

appname/main/java - holds java files 

appname/main/res/layout - screen layout xmls

appname/main/res/values - style xmls

 

Create another screen - 

New -> Activity -> empty activity

 

Add xmlns:tools="http://schemas.android.com/tools"

tools:context=".CheatActivity">

 

How to start another activity

startActivity(intent);

Intent는 컴포넌트가 운영체제와 통신하기 위해 사용할 수 있는 객체다.

Intent i = new Intent(QuizActivity.this, CheatActivity.class);

인텐드 인스턴스를 선언하면서 두개의 클래스들을 메니페스트(AndroidManifest.xml)에 선언해주어야 하는 이유다. 

 

intent.putExtra(String, 값);

 

----

startActivity는 값을 다시 못 받는다. 

startActivityForResult(Intent, int)는 결과를 돌려받는 메소드다. 

 

 

시작은 startActivityForResult,,  끝은 onActivityResult()

 

안드로이드는 애플리케이션을 실행시키는 것이 아닌 액티비티를 실행시켜준다. 

AndroidManifest.xml 안에 있다

액티비티들은 스택구조 형식으로 실행이된다. 

 

'ETC' 카테고리의 다른 글

Media files note 1  (0) 2020.02.24
Debugging  (0) 2020.02.14
REGEX  (0) 2020.02.12
FCM notification send  (0) 2020.02.11
Regular Expressions  (0) 2020.02.10

ExpressionDescription

[abc] Find any character between the brackets
[^abc] Find any character NOT between the brackets
[0-9] Find any character between the brackets (any digit)
[^0-9] Find any character NOT between the brackets (any non-digit)
(x|y) Find any of the alternatives specified

[ㄱ-ㅎㅏ-ㅣ가-힣] = 한글 포함

 

+ = at least one

* = zero or more

 

 var str = "Hellooo World! Hello W3Schools!"; 
  var patt1 = /lo*/g;
  var result = str.match(patt1);

l,looo,l,l,lo,l

 

? = The n? quantifier matches any string that contains zero or one occurrences of n.

var str = "1, 100 or 1000?";
var patt1 = /10?/g;

1,10,10

 

 

'ETC' 카테고리의 다른 글

Debugging  (0) 2020.02.14
Android Studio notes1(02/13/20 cudo notes)  (0) 2020.02.13
FCM notification send  (0) 2020.02.11
Regular Expressions  (0) 2020.02.10
es6  (0) 2020.02.10

https://medium.com/techsuzu/android-push-notification-using-fcm-firebase-cloud-messaging-c37d165b8320

 

Android Push notification using FCM (Firebase Cloud Messaging)

What is FCM (Firebase Cloud Messaging) ?

medium.com

Start : https://firebase.google.com/?authuser=0

add the following : 

classpath 'com.google.gms:google-services:4.0.1'

apply plugin: 'com.google.gms.google-services'

implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.gms:play-services-auth:16.0.1'

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.example.calculatorfeb03;
 
 
 
 
public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
 
 
    @Override
    public void onTokenRefresh() {
 
        //For registration of token
        String refreshedToken = FirebaseInstanceId.getInstance().getToken();
 
        //To displaying token on logcat
        Log.d("TOKEN: ", refreshedToken);
 
    }
 
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.example.calculatorfeb03;
 
import android.content.Context;
 
 
 
 
public class MyFirebaseMessagingService extends FirebaseMessagingService {
 
    @Override
    public void onMessageReceived(RemoteMessage message) {
        sendMyNotification(message.getNotification().getBody());
    }
 
 
    private void sendMyNotification(String message) {
 
        //On click of notification it redirect to this Activity
        Intent intent = new Intent(this, MainActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        PendingIntent pendingIntent = PendingIntent.getActivity(this0, intent, PendingIntent.FLAG_ONE_SHOT);
 
        Uri soundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentTitle("My Firebase Push notification")
                .setContentText(message)
                .setAutoCancel(true)
                .setSound(soundUri)
                .setContentIntent(pendingIntent);
 
        NotificationManager notificationManager =
                (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
 
        notificationManager.notify(0notificationBuilder.build());
    }
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 

'ETC' 카테고리의 다른 글

Android Studio notes1(02/13/20 cudo notes)  (0) 2020.02.13
REGEX  (0) 2020.02.12
Regular Expressions  (0) 2020.02.10
es6  (0) 2020.02.10
JSON APIs and Ajax  (0) 2020.02.10

+ Recent posts