[Program][Kotlin]Rotate Array by N

import java.util.* fun main(args: Array<String>) { val scanner = Scanner(System.`in`) val a = IntArray(scanner.nextInt()) { scanner.nextInt() } var r = scanner.nextInt() if (r > a.size) r = r % a.size if (r != a.size) { repeat(r) { val last = a.last() var prev = a[0] var temp: Int for (i in 1..a.lastIndex) { temp = … Continue reading [Program][Kotlin]Rotate Array by N

[How-To][C#]Dynamically adding MenuItem and using Binding with viewModel

WPF's databinding is a powerful feature and I love how easy it becomes once you start to learn. so in my journey of MVVM, I had the requirement to use a WPF Menu Control, where I created Menu in XAML and then binded their commands via ViewModel, but I was Curious as if there was … Continue reading [How-To][C#]Dynamically adding MenuItem and using Binding with viewModel

[How-To] Manually install emulator for Android Studio

I was installing android studio and it required to setup sdk, download emulator and platform tools etc, while downloading emulator, android studio showed no progress and after 3-4 attempts at it failing, and wasting my network data for nothing.I downloaded the emulator archive directly from the given link, but now the question was how do … Continue reading [How-To] Manually install emulator for Android Studio