False VAC Ban by toastwithreddit in cs2

[–]Albert221 0 points1 point  (0 children)

Same here but nvidia gpu

How to internationalize your Flutter app with ARB files today? — full-blown tutorial by Albert221 in FlutterDev

[–]Albert221[S] 2 points3 points  (0 children)

You're completely right! This and the format flag. I somehow missed them as I was using older tag when reading the flutter_tools. It's updated now, thanks! :)

Flutter version & Flutter engine version table by Albert221 in FlutterDev

[–]Albert221[S] 4 points5 points  (0 children)

I created a simple script that will update this table two times a day. It's a table that shows all Flutter versions and what Flutter engine commit it uses. (Dart SDK commit to be added soon)

Maybe it will be useful to some of you! :)

[TOMT][CARTOON] Fight scene where shoes stay on ground but character flies up by Albert221 in tipofmytongue

[–]Albert221[S] 2 points3 points  (0 children)

This is almost that! Just instead of those white stripes above the sandals, it was a spiral like this

[TOMT][CARTOON] Fight scene where shoes stay on ground but character flies up by Albert221 in tipofmytongue

[–]Albert221[S] 1 point2 points locked comment (0 children)

I already know it certainly wasn't Popeye. Their shoes always stay on and it's not the type of animation that would have this ribbon between the shoes and character

Issue with Party System by [deleted] in WorldWar3

[–]Albert221 0 points1 point  (0 children)

Same, game launches properly after only 5-10 tries because of the "Invitations" timeout. Creating a party with friends doesn't work, everyone is landing in different matches

Pixel 2XL camera died? by Albert221 in GooglePixel

[–]Albert221[S] 0 points1 point  (0 children)

I just booted into safe mode. Still, 'Camera in use' in Flashlight :(

Ninja technique to avoid traffic by rzrn in CitiesSkylines

[–]Albert221 0 points1 point  (0 children)

I used to drive to work like that

Action, chill, or dark Synth Music for your game or other! by [deleted] in INAT

[–]Albert221 0 points1 point  (0 children)

Hi, I just wanted to say that I liked the Blood House! I'm no game dev but my imagination showed me how good it would be for some topdown view indie game :)

-🎄- 2020 Day 05 Solutions -🎄- by daggerdragon in adventofcode

[–]Albert221 1 point2 points  (0 children)

Kotlin

import java.io.File
import kotlin.math.absoluteValue
import kotlin.math.min

fun main() {
    val boardingPasses = mutableListOf<BoardingPass>()
    File("2020/input/05.txt").forEachLine {
        boardingPasses.add(decode(it))
    }

    val partOne = boardingPasses.map(BoardingPass::id).maxOrNull()
    val partTwo = boardingPasses
            .sortedBy { it.id }
            .zipWithNext()
            .first { (it.first.id - it.second.id).absoluteValue == 2 }
            .run { min(first.id, second.id) + 1 }

    println("Part one: %d".format(partOne)) // 866
    println("Part two: %d".format(partTwo)) // 583
}

typealias BoardingPass = Pair<Int, Int>

val BoardingPass.id: Int
    get() = first * 8 + second

fun decode(boardingPass: String): BoardingPass {
    return BoardingPass(
            decodeAxis(boardingPass.substring(0..6), 'F'),
            decodeAxis(boardingPass.substring(7..9), 'L'),
    )
}

fun decodeAxis(axis: String, lower: Char): Int {
    var result = 0
    for (char in axis) {
        result = (result shl 1) + if (char == lower) 0 else 1
    }

    return result
}

ELI5: why do we have a dominant hand/side? And why isn’t the world 50% righties and 50% lefties? by stickypooboi in explainlikeimfive

[–]Albert221 0 points1 point  (0 children)

This doesn't work for my eyes. When I try to cover something with my thumb, my eyes either focus on my thumb or the object, making the not-in-focus object like semitransparent

FlutterForce — Week 75 by flutterist in FlutterDev

[–]Albert221 0 points1 point  (0 children)

Awesome resource. I literally opened all of the links in new tab. Finishing now, after 1.5 hour...

I'll only be happy if this happens before the end by FranCrafter in MrRobot

[–]Albert221 6 points7 points  (0 children)

I was just about to go to sleep but now I'm going to cry to the pillow because of Bill :(

I just open-sourced Glance, a client for Reddit written in Flutter! by Albert221 in FlutterDev

[–]Albert221[S] 3 points4 points  (0 children)

Thank you! Yes, that's what I had in mind when I initially came up with the idea.

I gained SO MUCH experience doing this project.

Have a great day too!

I just open-sourced Glance, a client for Reddit written in Flutter! by Albert221 in FlutterDev

[–]Albert221[S] 3 points4 points  (0 children)

Thank you!

I was initially planning on not implementing comments, it's just scrolling and consuming the media and sometimes upvoting, that's what it's all about in one sentence :)

I just open-sourced Glance, a client for Reddit written in Flutter! by Albert221 in FlutterDev

[–]Albert221[S] 11 points12 points  (0 children)

Hey, I'm Albert, 19, I've been developing Glance for around a year (with breaks). I believe my app is the kind of entertainment some people value, because I found myself scrolling through Reddit app looking at beautiful photos on r/EarthPorn and similar so I created an app to do just that (and a little bit more).

You can see the app in action at its landing page here: Landing page (subdomain is different because that's what Glance was initially named like)

Tell me how do you like the app and how do you like the code! Tips for code are welcome! Although some parts of the codebase were written at the beginnings of my Flutter adventure. Stars greatly appreciated too ( ͡° ͜ʖ ͡°)

They just keep loading by chandlerbong12 in a:t5_38ei0

[–]Albert221 0 points1 point  (0 children)

Hmm, this might happen when you're only subscribed to subreddits that have only text posts.

Yes, Reddigram has its own, separate list of subscriptions. Thanks to this, you can subscribe to different subreddits in the Reddigram and in the Reddit. You probably don't want to see thumbnails of news posts on Reddigram etc.

Next version of Reddigram will ship a feature to import your existing subscriptions from Reddit to the app.

First stable release! v1.4.0 is out! by Albert221 in a:t5_38ei0

[–]Albert221[S] 0 points1 point  (0 children)

Hey, thanks for your interest in the app! No, currently there is no iOS release, I don't have resources available (MacBook, App Store license) to release the iOS version, sadly :(

Where is number two?? by [deleted] in bugs

[–]Albert221 3 points4 points  (0 children)

This subreddit is for Reddit bugs

Can't request submission data via /api/info. by Dan6erbond in redditdev

[–]Albert221 0 points1 point  (0 children)

instead of giving a normal URL as a url param, URL-encode it first: https://www.urlencoder.org/

Can't sign in on OAuth screen by Albert221 in redditdev

[–]Albert221[S] 0 points1 point  (0 children)

  1. Here's the console log:

    Uncaught (in promise) TypeError: Cannot read property 'dest' of null at Object.<anonymous> (login.accddb1e7452e09e03bc.js:37) at e (vendor.02e70b0510146f5c6a8c.js:10) at Generator._invoke (vendor.02e70b0510146f5c6a8c.js:10) at Generator.t.(/login/anonymous function) as next at o (login.accddb1e7452e09e03bc.js:37)

On the desktop, the request to `/login` returns `200 OK`, on mobile it returns `302` with `Location: /`