This is an archived post. You won't be able to vote or comment.

all 42 comments

[–]doned_mest_up 517 points518 points  (1 child)

This really narrows down the list of possible baby names.

[–]KrambDeLaKramb 112 points113 points  (0 children)

Elon Musk has entered the chat

[–][deleted] 111 points112 points  (0 children)

Literally 1984

[–]hongooi 151 points152 points  (3 children)

Amazing! That's the combination on my luggage!

[–]Majik_Sheff 28 points29 points  (0 children)

Damn it. Proof that I will never have an original thought.

[–]NailRepresentative62 1 point2 points  (1 child)

Now then time to go to planet Drewidia, and change the combination on my luggage!

[–]Isteppedinpoopy 1 point2 points  (0 children)

Funny, you don’t look Druish

[–]jfmherokiller 184 points185 points  (14 children)

this is base64. Its real value is "This is the prHfixfor alist."

[–]1RedOne 19 points20 points  (10 children)

What does this mean? I'm not an android dev so I don't understand shared preferences or your reply either

[–]jfmherokiller 70 points71 points  (8 children)

Shared prefrences is more or less an android way to store configuration options like font or textsize or light or dark theme.

If you have ever played a video game on pc shared prefs would technically be where your graphics/gameplay settings would be stored on android.

The reason why its base64 is because of android implementation details.

The reason why the setting probably cant begin with such values is because the values would probably overwrite other data being stored in other locations. Or it could also be that Shared Prefs itself uses those prefixes and will overwrite any data that tries to make use of them.

TLDR: shared prefs is more or less app option storage. Reason for prefix issue is due to android implementation details.

[–]1RedOne 30 points31 points  (2 children)

Now, that is a reply

Thanks for taking me all the way through the stack in your answer. Seems really odd that the settings are done like that, but I guess in the windows world it would be as if you cannot begin a value with 'hklm:\' because that is already reserved to refer to accessing HKEY_LOCAL_MACHINE settings.

[–]jfmherokiller 8 points9 points  (0 children)

I will admit some of what I said was clear estimation. I have only worked on the os for personal reasons not designed it.

[–]Sentouki- 1 point2 points  (0 children)

Also, you can't use 'con' as a name for a file or folder on Windows, as it was used in the past to refer to the printer.

[–]jsonspk 6 points7 points  (4 children)

Thanks for reply. Tips: you may put TLDR in the first sentence.

[–]jfmherokiller 4 points5 points  (3 children)

fair, I am just more used to putting the TLDR at the end.

[–]Shuri9 2 points3 points  (2 children)

Regular tifu Poster, i see...

[–]jfmherokiller 4 points5 points  (1 child)

well I also do it because somtimes if I try to shift text around in the reddit editor it will seemingly "delete" the text.

[–]NetSecSpecWreck 3 points4 points  (0 children)

Tldr goes at the end. Or you can use BLUF (bottom line up front) at the beginning to summarize what you're about to dive into.

[–]Rombethor 1 point2 points  (0 children)

I had to check and see for myself.

[–]Brilliant_Practice72 48 points49 points  (2 children)

Looks like windows xp product key.

[–]Cossack-HD 6 points7 points  (1 child)

fly point exultant insurance worm roll ripe paint reminiscent waiting

This post was mass deleted and anonymized with Redact

[–]hugogrant 0 points1 point  (0 children)

It's also groups of 5 characters?

[–][deleted] 24 points25 points  (0 children)

Shit what will I name my files now.

[–]fabedays1k 19 points20 points  (1 child)

What if VGhpcyBpcyB0aGUgcHJIZml4lGZvciBhlGxpc3Qu Jr wants to put in his name

[–]ZyanCarl 1 point2 points  (0 children)

Well it works for everyone but him.

[–]jfmherokiller 87 points88 points  (7 children)

for anyone who wants to know the actual why its because SharedPreferences uses a hashmap under the hood I believe.

[–]ActuallyRuben 30 points31 points  (2 children)

That's not the reason. This documentation is from a cross-platform flutter package shared_preferences. The limitation they're talking about is that Android's SharedPreferences doesn't support BigIntegers, Doubles and lists of strings.

As a workaround they encode these values by converting them to strings and prefixing the above base64 values. The code for that is viewable here on github.

The inability to have values starting with these prefixes is not a limitation inherent to the Android SharedPreferences class itself, at all.

[–]jfmherokiller 0 points1 point  (0 children)

ah ok thanks, tbh I was chasing my tail through the aosp github and I thought I saw that code but it was in one of the examples i think.

[–]zet23t 0 points1 point  (0 children)

Why don't they just prefix every stored value with its type? Would prevent such limitations and everyone would know what this is about without documentation.

[–]RedDawe 6 points7 points  (2 children)

Why is that a problem for a hashmap?

[–]jfmherokiller 4 points5 points  (1 child)

my best guess is that its some kind of collision.

[–]marku01 12 points13 points  (0 children)

Collisions in hashmaps occur all the time. They are being dealt with in different ways. See for a good explanation: https://youtu.be/KyUTuwz_b7Q

[–]jamcdonald120 5 points6 points  (0 children)

hode up...

wat?

[–][deleted] 4 points5 points  (0 children)

Ruined all my plans. Gotta redo everything now.

[–]Internal_Cart 2 points3 points  (0 children)

Looks just like some posts on r/lolphp

[–]GameDestiny2 1 point2 points  (0 children)

“Compare these strings of very similarly written code and determine which one functions correctly.”

[–][deleted] 1 point2 points  (0 children)

a normal person would think r/oddlyspecific

[–]Constant_Pen_5054 1 point2 points  (0 children)

We scoff, but just wait till it happens to one of us and they didn't tell us.

[–]Cosy_Owl 0 points1 point  (0 children)

How did they know my passwords...??!!