HLS

- stable media format, it has been out for more than ten years.

- suuports its own DRM only

 

DASH 

- can deliver low latency

- uses templated manifest that can be cached

- DASH supports range of encryption solutions

 

'ETC' 카테고리의 다른 글

Chapter 2  (0) 2020.02.28
Chapter 1  (0) 2020.02.27
Sites to view later  (0) 2020.02.24
Media files note 1  (0) 2020.02.24
Debugging  (0) 2020.02.14

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

Regular expressions are used in programming languages to match parts of strings. You create patterns to help you do that matching.

QuantifierDescription

n+ Matches any string that contains at least one n
n* Matches any string that contains zero or more occurrences of n
n? Matches any string that contains zero or one occurrences of n
n{X} Matches any string that contains a sequence of X n's
n{X,Y} Matches any string that contains a sequence of X to Y n's
n{X,} Matches any string that contains a sequence of at least X n's
n$ Matches any string with n at the end of it
^n Matches any string with n at the beginning of it
?=n Matches any string that is followed by a specific string n
?!n Matches any string that is not followed by a specific string n

 

MetacharacterDescription

. Find a single character, except newline or line terminator
\w Find a word character
\W Find a non-word character
\d Find a digit
\D Find a non-digit character
\s Find a whitespace character
\S Find a non-whitespace character
\b Find a match at the beginning/end of a word, beginning like this: \bHI, end like this: HI\b
\B Find a match, but not at the beginning/end of a word
\0 Find a NUL character
\n Find a new line character
\f Find a form feed character
\r Find a carriage return character
\t Find a tab character
\v Find a vertical tab character
\xxx Find the character specified by an octal number xxx
\xdd Find the character specified by a hexadecimal number dd
\udddd Find the Unicode character specified by a hexadecimal number dddd

1. .test()

var str = "Hello world";

var testing = /world/;

testing.test(str); //outputs true

 

can add | for multiple search

let petString = "James has a pet cat.";

let petRegex = /dog|cat|bird|fish/// Change this line

let result = petRegex.test(petString);

 

add i on the back to ignore upperlower case

let myString = "freeCodeCamp";

let fccRegex = /freecodecamp/i// Change this line

let result = fccRegex.test(myString);

 

2. .match()

extracts the string

 

add g on the back for multiple results

To search or extract a pattern more than once, you can use the g flag.

let repeatRegex = /Repeat/g;

testStr.match(repeatRegex);

// Returns ["Repeat", "Repeat", "Repeat"]

 

The wildcard character . will match any one character. 

[] Character classes allow you to define a group of characters you wish to match by placing them inside square ([ and ]) brackets.

 

Inside a character set, you can define a range of characters to match using a hyphen character: -.

 

To create a negated character set, you place a caret character (^) after the opening bracket and before the characters you do not want to match.

For example, /[^aeiou]/gi matches all characters that are not a vowel. Note that characters like ., !, [, @, / and white space are matched - the negated vowel character set only excludes the vowel characters.

 

+ to look for a character one or more time

* to look for a character zero or more time

 

In an earlier challenge, you used the caret character (^) inside a character set to create a negated character set in the form [^thingsThatWillNotBeMatched]. Outside of a character set, the caret is used to search for patterns at the beginning of strings.

 

You can search the end of strings using the dollar sign character $ at the end of the regex.

 

The closest character class in JavaScript to match the alphabet is \w. This shortcut is equal to [A-Za-z0-9_]. This character class matches upper and lowercase letters plus numbers. Note, this character class also includes the underscore character (_).

 

\w = a-zA-Z0-9

\W = not \w

 

\d = 0-9

\D = not digit

 

problem 1:

1) Usernames can only use alpha-numeric characters.

2) The only numbers in the username have to be at the end. There can be zero or more of them at the end.

3) Username letters can be lowercase and uppercase.

4) Usernames have to be at least two characters long. A two-character username can only use alphabet letters as characters.

 

let username = "JackOfAllTrades";

let userCheck = /^[a-z]([0-9]{2,}|[a-z]+\d*)$/i// Change this line

let result = userCheck.test(username);

 

  1. ^ - start of input
  2. [a-z] - first character is a letter
  3. [0-9]{2,0} - ends with two or more numbers
  4. | - or
  5. [a-z]+ - has one or more letters next
  6. \d* - and ends with zero or more numbers
  7. $ - end of input
  8. i - ignore case of input

 

------

to match only the string "hah" with the letter a appearing at least 3 times, your regex would be /ha{3,}h/.

t{3,6} = 3 to 6 

t{3,} = 3 or more

t{3} = 3

 

? = zero or more

 

A positive lookahead will look to make sure the element in the search pattern is there, but won't actually match it. A positive lookahead is used as (?=...) where the ... is the required part that is not matched.

 

On the other hand, a negative lookahead will look to make sure the element in the search pattern is not there. A negative lookahead is used as (?!...) where the ... is the pattern that you do not want to be there. The rest of the pattern is returned if the negative lookahead part is not present.

 

 

 

remove white spaces

let regex = /^\s+|\s+$/g;

str.replace(regex, "");

'ETC' 카테고리의 다른 글

REGEX  (0) 2020.02.12
FCM notification send  (0) 2020.02.11
es6  (0) 2020.02.10
JSON APIs and Ajax  (0) 2020.02.10
Basic Javascript  (0) 2020.02.08

+ Recent posts