Friday, February 21, 2025

Power Of Compounding

 Power Of Compounding



1 = 1
2 = 2
3 = 4
4 = 8
5 = 16
6 = 32
7 = 64
8 = 128
9 = 256
10 = 512
11 = 1024
12 = 2048
13 = 4096
14 = 8192
15 = 16384
16 = 32768
17 = 65536
18 = 131072
19 = 262144
20 = 524288
21 = 1048576
22 = 2097152
23 = 4194304
24 = 8388608
25 = 16777216
26 = 33554432
27 = 67108864
28 = 134217728
29 = 268435456
30 = 536870912
31 = 1073741824
32 = 2147483648
33 = 4294967296
34 = 8589934592
35 = 17179869184
36 = 34359738368
37 = 68719476736
38 = 137438953472
39 = 274877906944
40 = 549755813888
41 = 1099511627776
42 = 2,199,023,255,552
43 = 4,398,046,511,104
44 = 8,796,093,022,208
45 = 17,592,186,044,416
46 = 35,184,372,088,832
47 = 70,368,744,177,664
48 = 140,737,488,355,328
49 = 281,474,976,710,656
50 = 562,949,953,421,312
51 = 1,125,899,906,842,624
52 = 2,251,799,813,685,248
53 = 4,503,599,627,370,496
54 = 9,007,199,254,740,992
55 = 18,014,398,509,481,984
56 = 36,028,797,018,963,968
57 = 72,057,594,037,927,936
58 = 144,115,188,075,855,872
59 = 288,230,376,151,711,744
60 = 576,460,752,303,423,488
61 = 1,152,921,504,606,846,976
62 = 2,305,843,009,213,693,952
63 = 4,611,686,018,427,387,904
64 = 9,223,372,036,854,775,808





Tuesday, February 18, 2025

Api Get Request Using Ktor Koin And Jetpack Compose

 Api Get Request


Plugin :

kotlin("plugin.serialization") version "2.1.10"

Dependency :

// Ktor dependencies
val ktor_version = "3.1.0"
implementation ("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation ("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-okhttp:$ktor_version")
implementation("io.ktor:ktor-client-logging:$ktor_version")

// Koin for dependency injection
implementation ("io.insert-koin:koin-android:3.4.0")
implementation ("io.insert-koin:koin-androidx-compose:3.4.0")

// coil dependencies
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")






Friday, February 14, 2025

Convert Json To String In Android Studio Jetpack Compose

 Json To String


Dependencies :

implementation ("com.google.code.gson:gson:2.12.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")

implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")

https://hp-api.onrender.com/api/characters



Friday, February 7, 2025

Koin And Roon Project

 Koin And Room


Plugins:-

id("kotlin-kapt")
//

Dependencies:-


// Room
implementation ("androidx.room:room-runtime:2.6.1")
implementation ("androidx.room:room-ktx:2.6.1")
kapt ("androidx.room:room-compiler:2.6.1")

// Koin for Android and Compose
implementation ("io.insert-koin:koin-android:3.4.0")
implementation ("io.insert-koin:koin-androidx-compose:3.4.0")

// Lifecycle (for viewModelScope, etc.)
implementation ("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")









Sunday, February 2, 2025

Koin Jetpack Compose or Compose Multiplatform Dependencies

 Koin Dependencies


val koin_version =  "4.1.0-Beta5"
implementation("io.insert-koin:koin-compose:$koin_version")
implementation("io.insert-koin:koin-compose-viewmodel:$koin_version")
implementation("io.insert-koin:koin-compose-viewmodel-navigation:$koin_version")






Power Of Compounding

 Power Of Compounding 1 = 1 2 = 2 3 = 4 4 = 8 5 = 16 6 = 32 7 = 64 8 = 128 9 = 256 10 = 512 11 = 1024 12 = 2048 13 = 4096 14 = 8192 15 = 163...