๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ137

[iOS. Objective-C] NSString null ์ฒดํฌ / NSLog, printf ๋กœ ์ถœ๋ ฅ ์•„๋ž˜ ์˜ˆ์ œ์—์„œ ๋‘ ๊ฐ€์ง€๋ฅผ ์ •๋ฆฌํ–ˆ๋‹ค. 1. NSString ์˜ ๊ฐ’์ด null ์ธ ๊ฒฝ์šฐ๋ฅผ ์ฒดํฌ. nsStr ์ด๋ผ๋Š” ๋ณ€์ˆ˜์˜ ์ž๋ฃŒํ˜•์ด null ์ธ์ง€ ํ˜น์€ nsStr ์˜ ๊ธธ์ด๊ฐ€ 0 ์ธ์ง€ ์ฒดํฌํ•œ๋‹ค. 2. NSString ์ž๋ฃŒํ˜•์˜ ๋ณ€์ˆ˜ nsStr ์„ NSLog ์™€ printf๋กœ ์ถœ๋ ฅํ•œ๋‹ค. NSString *nsStr = nil; nsStr = @"This Vlaue is not null";// ์ด ๋ผ์ธ์ด ์—†์–ด์ง€๋ฉด else ๋กœ ๋ถ„๊ธฐ๋œ๋‹ค. if (nsStr == (id)[NSNull null] || nsStr.length == 0 ) { NSLog(@"This Value is null\n"); printf("This Value is null\n"); } else { NSLog(@"%@\n", nsStr); printf(.. 2021. 12. 21.
443 ํฌํŠธ์™€ 8443 ํฌํŠธ์˜ ์ฐจ์ด 443 ํฌํŠธ๋ž€? 443 ํฌํŠธ๋Š” HTTPS ์„œ๋น„์Šค์— ์‚ฌ์šฉ๋œ๋‹ค. HTTPS๋Š” HTTP์— ์•”ํ˜ธํ™”๋ฅผ ํ•˜๊ณ  ๋ณด์•ˆ ํฌํŠธ๋กœ ์ „์†ก์„ ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค. ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ํŒจํ‚ท์„ ์บก์ฒ˜ํ•ด ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋„๋ก ์€ํ–‰์ด๋‚˜ ๋ณด์•ˆ, ์‡ผํ•‘ ๋“ฑ์—์„œ ์ •๋ณด ๊ตํ™˜ ๋“ฑ์— ์•ˆ์ •ํ•œ ์ „์†ก์„ ๋ณด์žฅํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ ๋œ๋‹ค. (HTTPS ์‚ฌ์šฉ์„ ์œ„ํ•œ well-known port : 443) 0~1023 -> well-known port ์ด๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 22๋ฒˆ tcp๋Š” ssh ๋กœ ์‚ฌ์šฉ๋œ๋‹ค. 8443 ํฌํŠธ๋ž€? 8443 ํฌํŠธ๋Š” ํ†ฐ์บฃ์˜ SSL ๋””ํดํŠธ ํฌํŠธ๋กœ ์‚ฌ์šฉ๋œ๋‹ค.๊ธฐ๋ณธ ์„ค์ • ํŒŒ์ผ์— 8443์œผ๋กœ ์„ค์ • ๋˜์–ด ์žˆ๋‹ค. (ํ†ฐ์บฃ์—์„œ ์ง€์ •ํ•œ registered port) Registered Port ๋Š” 1024๋ถ€ํ„ฐ 49151 ๊นŒ์ง€ ์žˆ๋‹ค. 443 vs 8443 ํ†ฐ์บฃ์— 8443์œผ.. 2021. 12. 9.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์˜ค๋ฅ˜ ํ•ด๊ฒฐ The minCompileSdk (31) specified in adependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) ๊ทธ๋ฆฌ๊ณ  ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ์‹ค์Šต ์˜ค๋ฅ˜ ๋‚ด์šฉ : One or more issues found when checking AAR metadata values: The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-27). Dependency: androidx.appcompat:appcompat:1.4.0. AAR metadata file: C:\Users\shin\.gradle\caches\transforms-3\๋ญ”๊ฐ€์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’ ๊ฐ™์Œ... ์•ฑ ์•„์ด๋””์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’์ธ๊ฐ€?\t.. 2021. 11. 29.
[์•ˆ๋“œ๋กœ์ด๋“œ] ๊ธ€์ž ์ƒ‰ ๋ฐ”๊พธ๊ธฐ - SpannableString, SpannableStringBuilder build.gradle (:app) plugins { id 'com.android.application' } android { compileSdk 30 defaultConfig { applicationId "com.devshin93.spannabletest" minSdk 25 targetSdk 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rule.. 2021. 11. 26.