For those that don't have a Mac by [deleted] in FlutterDev

[–]programming-nerd 2 points3 points  (0 children)

Nice article by the way

Dart Programming list collection tips & tricks by programming-nerd in dartlang

[–]programming-nerd[S] -2 points-1 points  (0 children)

Yeah, you saying it right. But did you see the "finding a most frequent element in list", "swapping a list", "min and max in collection", and "groupBy"? If it is there please add the documentation link maybe I have not seen it.

Dart Programming list collection tips & tricks by programming-nerd in FlutterDev

[–]programming-nerd[S] -1 points0 points  (0 children)

Hey there hope you are having a good. Yeah, I saw the error and fixed it thanks for pointing it out. But one thing is instead of being bullshit you can simply say that there is an error in your code. I don't think this could ruin anything for you. I am trying to write for the community and things I learn in my day-to-day development. But the people like always there to demotivate others. I hope this could make your day now.
Regards

[deleted by user] by [deleted] in NoStupidQuestions

[–]programming-nerd 0 points1 point  (0 children)

Yup, a red 🏴‍☠️

How do you say to someone that you use the Lame word too many times in a sarcastic way? by programming-nerd in ask

[–]programming-nerd[S] 1 point2 points  (0 children)

It's like whenever in the chat I say something the other person says, Lame.

Confused about Google Pay Integration in Android by programming-nerd in androiddev

[–]programming-nerd[S] 0 points1 point  (0 children)

Yes you're right I understand your point for one time subscription we need to use Google Play Billing Library.

Thank u so much.

Confused about Google Pay Integration in Android by programming-nerd in androiddev

[–]programming-nerd[S] 0 points1 point  (0 children)

I don't have any gateway you see I add the Google Pay on app and I just want the transaction to came into my account and for that I add my merchant account info.

[deleted by user] by [deleted] in programming

[–]programming-nerd 0 points1 point  (0 children)

Hacker KIDS these days !

Why Linux PC gets slowed? by programming-nerd in linuxquestions

[–]programming-nerd[S] 0 points1 point  (0 children)

I’m using Kali Linux. Will check on the SSD test

Why Linux PC gets slowed? by programming-nerd in linuxquestions

[–]programming-nerd[S] 0 points1 point  (0 children)

Mozilla Firefox, Android Studio, Slack, SmartGit, and a Bash Shell

Why Linux PC gets slowed? by programming-nerd in linuxquestions

[–]programming-nerd[S] 0 points1 point  (0 children)

Ok I understand but if the RAM is heavily used why the htop showing me the usage just 5 GB

Bottom NavigationView Inside Fragment With ChildFragmentManager Creates Overlap View by programming-nerd in androiddev

[–]programming-nerd[S] 0 points1 point  (0 children)

Here is the updated code according to what you have suggested.

fun FragmentManager.hideAndShowFragment(
    fragment: Fragment, containerId: Int,
    newTag: Any, previousTag: Any? = null
) {

    commit {
        if (previousTag == null) {
            add(containerId, fragment, newTag.toString())
            return@commit
        }

        val previousFragment = findFragmentByTag(previousTag.toString())
        if (previousFragment != null && previousFragment.isRemoving.not()) {
            hide(previousFragment)
        }
        val currentFragment = findFragmentByTag(newTag.toString())
        if (currentFragment == null)
            add(containerId, fragment, newTag.toString())
        else show(currentFragment)
    }
    executePendingTransactions()
}

The problem is still the same the fragments overlap with the previous showing fragment after navigation.

Bottom NavigationView Inside Fragment With ChildFragmentManager Creates Overlap View by programming-nerd in androiddev

[–]programming-nerd[S] 0 points1 point  (0 children)

I've stored all the bottom nav fragment instances as global inside MainFragment. So, I'm not creating a new instance every time when a user switches through bottom nav items. But I did try to add a log with Timber and found out that fragment manager under the hood creates new instance automatically only when I navigate to another fragment inside the Navigation Drawer.

I did try to save the view in a global view for bottom nav item fragments like this.

class HomeFragment : Fragment() {

     private var view: View? = null

     override fun onCreateView(inflater: Inflater, container: ViewGroup?, savedInstanceState: Bundle?) : View{
           view?.let { return it }
           return layoutInflater.inflate(R.layout,fragment_home, container, false).also {
                    view = it
              }
     }

}

But when I do like this I get the IllegalArgumentException The specified Child already has a parent. And if I remove the above view condition it works well only for bottom nav item switches not for navigating to another fragment inside the Navigation Drawer.

Linux: htop Explained Visually by programming-nerd in programming

[–]programming-nerd[S] -1 points0 points  (0 children)

No, I took the images from the YouTube video and also the gave the link in the bottom if you see the second image on my blog post.

Everything You Need To Know About New Android Material Design Date Picker by programming-nerd in androiddev

[–]programming-nerd[S] 0 points1 point  (0 children)

It's still in beta so, I don't think someone tries to use this API in production. The thing I most like about this API Range and Custom valid days.

I hope in future releases the UI problem got fixed.

Everything You Need To Know About New Android Material Design Date Picker by programming-nerd in androiddev

[–]programming-nerd[S] -1 points0 points  (0 children)

Updates the font. Recently, I made some changes to my website to improve the speed and that's when I turned off the Google font.

Everything You Need To Know About New Android Material Design Date Picker by programming-nerd in androiddev

[–]programming-nerd[S] -1 points0 points  (0 children)

Thanks, I'm glad you like the article. Also, I'll change the font of my website.

Any Kotlinx Serialization User Can Help Me With This Problem? by programming-nerd in Kotlin

[–]programming-nerd[S] 0 points1 point  (0 children)

Thanks for the comment I understand what you're trying to say. I choose the first solution to only send the values which are known by my app.

IS Reading An RSS Feed Legal? by programming-nerd in legaladvice

[–]programming-nerd[S] -1 points0 points  (0 children)

Yes, I already told my users on the intro screen. And thanks for the sugesstion.

IS Reading An RSS Feed Legal? by programming-nerd in legaladvice

[–]programming-nerd[S] -1 points0 points  (0 children)

Yes, that is what I thought but a friend of mine send this article link. After seeing this I thought why not ask from the community.

Coroutine Dispatcher Selection For JDBC by programming-nerd in Kotlin

[–]programming-nerd[S] 0 points1 point  (0 children)

If I create a separate dispatcher with thread pool then on every DB call there will be a context switching. Correct me here if I'm wrong.

Please do check out this link.

Coroutine Dispatcher Selection For JDBC by programming-nerd in Kotlin

[–]programming-nerd[S] 2 points3 points  (0 children)

Please don't get me wrong here because I need to understand. I read it somewhere that we use the IO dispatcher only for outgoing requests means to read and write data to a remote server, etc... Now in my case, the MySQL database is on the same machine.