« first day (2174 days earlier)      last day (2775 days later) » 

4:00 PM
nah I don't want to check the flag every second
 
> "how?"
 
doing this now
// Set up.
handler.post(() -> {
realm = Realm.getDefaultInstance();
realmResults = realm.where(Message.class).findAll();
});

// Repeated task.
handler.postDelayed(new Runnable() {
@Override
public void run() {
checkMessages();

handler.postDelayed(this, DELAY);
}
}, DELAY);
wow that looks ugly
 
cool
add 4 spaces on starting of each line
 
too much work
 
yeah.
i wouldnt have thought it this way
 
4:10 PM
Stupid question...
if I have if (!BuildConfig.DEBUG) {//some work} some work should be done when I build a signed apk of the release version, right? Or do I need to do something else?
 
@TimCastelijns for small bits of code you can surround it with the ` character to get it to print in mono-spaced font, but for code longer than 4 lines we prefer that you just use Github's gist, or pastebin and share a link.
 
Yes, I will do that next time
trash it if you like :) it's not important
 
it's fine
 
4:22 PM
I think I did something wrong and fabric isn't initializing now :(
 
revert(lastCommit);
 
Why are things so expensive.
 
because we have requirement.
 
because CEOs need their toys
 
What is USB 3.1 Gen 2?
 
4:31 PM
The second generation of the USB 3.1 standard
 
if i choose design view in AS as Nexus One(3.7"), it shows a UI design. If i deploy it to a live device with screen of 4.3", it shows same design. is this due to 'density pixels'? or it is something else.
 
I'm not sure if that's sarcasm or a genuine answer cM...
 
both?
 
Any similarities to USB-C?
 
C is one of the connectors with 3.1
 
4:32 PM
But I couldn't connect my phone to a 3.1 Gen 2?
(Without an adapter?)
 
Well, most C devices will support 3.1
They don't have to, but there's significant overlap
You can
USB is backwards compatible
 
I mean, like, will it fit?
 
Depends on which phone, and what you're plugging it into
My Acer laptop has both a regular Type A and a Type C connector for USB 3.1
 
Nexus 5X --> Dell XPS 15 "3.1 USB Gen 2 (10Gbps)"
 
So I can connect my 6P C->C, or C->A with an adapter/other cable
 
4:34 PM
I'm saying without an adapter
 
The laptop you linked needs an adapter for 3.1
You have one USB 3.0 Type A port
And a Thunderbolt 3 port, that gives you Power in/charging, PowerShare, Thunderbolt 3 (40Gbps bi-directional), USB 3.1 Gen 2 (10Gbps), HDMI, Ethernet and USB-A via Dell Adapter
 
I thought I understood, now I'm more confused
OH
It doesn't have it in it
 
You can use something like this to connect to your USB A port
 
Ohhhkay okay okay
I misread that
 
Although that Thunderbolt port looks like it has a C connector
But that image might just be bad zoomed in
Thunderbolt connectors look much the same, just thicker
And you'll likely still need an adapter for Thunderbolt->USB conversion
 
4:38 PM
Oh, that looks like a C
Zoomed in
But okay, thank you!
 
A Thunderbolt adapter like the one they talk about will probably run you $70-$150
Keep that in mind
 
I have a USB-C to USB-A cord
Which should work fine...
Eh, I'm thinking that's not a USB-C port
 
Also, for that price, you should be getting an i7
And at least 8 gigs more
 
I'm concerned about battery life, do you have any suggestions?
 
Stop being concerned about battery life
You live in the US, power isn't exactly hard to come by
 
4:43 PM
I'll be in college classes
 
Most colleges have power points in classes, and you won't be in them for 4 hours+ straight
 
True, it'd be nice to have a decent battery life though.
 
Get a smaller screen. Those soak up way more power than processors
Processors chill out when you're not doing any heavy work
Screens don't care
 
So, do you have any laptop suggestions?
I like larger screens lmao
 
Get a laptop you like, and invest in 1 or 2 external displays
XPS or Macbook
Unless you're running Windows
In which case whatever you find for a good price
Ubuntu also maintains a list of certified laptops somewhere if you're aiming for that
 
4:47 PM
XPS because Macs are much more expensive for less specs.
 
Though if you're a bit enterprising, and not overly attached to graphic cards, you can run Ubuntu on more or less any decent Intel laptop these days
 
Yeah, I'll be running Linux and Windows on it most likely.
 
If you ever intend to do iOS devs, a Mac now is well worth the cost
 
I'm running Linux on my laptop right now, it's not perfect, but it's better than Windows.
 
Otherwise you're spending about $1200 now, and then another $1000+ later
 
4:48 PM
I'm not concerned about it now, right now I'm concerned about being able to go through college without being dead broke.
My plan is for this laptop to last me through college + a couple years.
 
It won't
 
6 years is a long time
 
Even if it's in one piece by the end of it, you'll likely find it too underpowered/slow for newer tasks
 
4:50 PM
Well, it'll last me 4 years at the least. Which is what I really need.
 
You should ideally get a good laptop you're comfortable with for the next 3 years, and then get a job or two while in college and upgrade down the line
 
That's my plan, 6 years is just a stretch goal lol.
 
should these guys use chat rooms? meta.stackoverflow.com/questions/335419
 
Jobs aren't hard to find. Even at $10/hr for 10-15 hours a week you'll be making enough to go out occasionally, and save up for tech stuff
 
I already have two jobs right now haha
 
4:51 PM
And you're still broke?
 
Not broke, school's just expensive.
 
Fair enough
Have you picked a college?
 
Not yet, top choices are RIT and UB
 
UB?
 
RIT is expensive but they're generous with scholarships and financial aide.
 
4:52 PM
I considered RIT, it was pretty good
Though both RIT and UoR were more expensive after scholarships than UNC without any
 
UB (University at Buffalo) is a state school so I could go for cheaper and it's nice.
 
Yup, UNC is state too
 
Also, hackathon friend used to work at RIT admissions office and he just introduced me to his old boss.
 
Stefan?
 
Carl from MLH
 
4:54 PM
RIT is pretty good. No idea about UB, but I can't imagine it being terrible
 
It's pretty nice
 
@rupinderjeet47 What do you mean? To discuss the question?
What's RIT?
never mind
I found the google button
It was what I assumed
carry on...
 
they are commenting a lot, but i later found out that this is valid.
its a college somewhere.
 
Yeah, especially on meta. The rules are more relaxed and there will be more discussion in comments due to the nature of meta's purpose
Yep, figured it out :)
1 min ago, by codeMagic
I found the google button
And I knew it was a college by the context of the conversation :P
 
i thought you didn't, and you assumed :)
oh right.
 
5:07 PM
Yeah, I meant which college
It's slow so I'm going to repost...
58 mins ago, by codeMagic
if I have if (!BuildConfig.DEBUG) {//some work} some work should be done when I build a signed apk of the release version, right? Or do I need to do something else?
 
Are you asking how to publish an app on google play cM?
 
No
I don't want to start Crashlytics when I am using a debug release
It's never on Google Play
 
then you should just neglect to call the crashlytics init call right?
 
right
 
and I was giving you a hard time because you were asking what to do with your signed apk
 
5:14 PM
How do I tell it to not call when I am building a debug release
Yeah, if I generate a signed apk of the release build.
 
pretty much as you have it
 
shit...that's what I thought
 
if(!BuildConfig.DEBUG){crashlytics}
 
But fabric isn't reporting a crash from a customer and the version doesn't show up in my list of options
 
103
Q: Detect if I am in release or debug mode in android

DavidHow can I detect I am in Release mode or Debug mode in android?

you may need to set it up in AS
 
5:16 PM
I think that's the post I found when adding that but thanks
 
so it's just not reporting or you can't get BuildConfig.DEBUG to work?
 
I don't understand what else I would set up in AS
It's not reporting. It allows me to build with that code
But it should report because I throw an exception when someone runs a new version for the first time so I can see that they have actually installed it
And so that I have their MAC ID registered in Fabric
 
is this any help : Gradle Power
 
CM I had issues trying to get crashlytics to only work in release builds
now I just enable it manually for release builds
 
yeah there are some comments suggesting that flag is unreliable in AS
 
5:19 PM
I had it released for a couple of updates where there was no analytics and customers were having issues and it was hectic
 
create your own boolean for debug flavor
 
@rupinderjeet47 I'll take a look in a bit. I don't think it will help my current issue but my have some useful information
 
You could just build a wall between you and the customer and make them pay for it
 
Well, if I switch to a release build, I can see that boolean variable change to false
ha
 
5:22 PM
It seemed like there were a lot of people in here using fabric so I thought someone else had to be doing something for it :/
 
Super-super-model
 
because you can declare same variable in release as ("boolean", "isThisDebug", "false")
 
I just always leave it on cM
 
I did for awhile but I got tired of crash reports from when I was debugging and knew there was an issue
Because then it makes the numbers incorrect
 
code better
 
5:24 PM
I guess it's possible I built a signed apk but didn't change to release build?
 
possibly
 
Dave, you know that's not an option for me
 
hahaha
 
who are you Dave? Telling people to do stuff
 
AS have "Build Variants" in lower left fold.
 
5:25 PM
I mean, since I see the variable change to false when I switch to a release build, there's no reason it shouldn't be working
Yes, rupin, and that's where I change to see the boolean change
 
wow
So, by outsourcing your projects to China makes you smart too Dave?
 
lol
 
this might not be in context of my experience level, cM.
 
Mine either, apparently :P
 
just email them a custom apk with it installed cM
get the report then fix it
 
5:28 PM
He used loopholes. It might not be right but everyone that knows about them and can use them to pay less/get a bigger return, does
 
@Eenvincible Technically China outsourced their project to me
 
oh
no china team then
 
I think I know what there issue is and I've fixed it. I'm more concerned with going forward and why it's not reporting
But maybe that was sarcasm
 
honestly I'd just make a static bool or int and change it to false when debugging internally
rather then relying on AS magic
 
Maybe I should
The other issue is that I have to check it everywhere that I set a custom key
 
5:34 PM
what a static!!
 
There was probably a better way to handle those keys but I didn't bother at the time because I didn't think about the ramifications. I thought it would justWork™
Like a custom class to pass the custom key and do checking there before actually setting it with crashlytics
 
just use a ternary operator and static string for the keys
 
sometimes the easiest/smallest/simple approach is the best
 
the keys are both in your apk anyway
 
yeah but I'm still going around changing it when something comes up...like in this case
 
5:38 PM
just make all usage of the key isDebug ? DEBUGKEY : RELEASEKEY;
 
yeah that's not good
 
or set the key once
and ref the variable
 
I'm saying where I have Crashlytics.setString(MyCustomKey, someValue); I have check a variable everywhere something like that is
 
I'm saying make a helper class that stores the key and check the variable once
then get the key from the helper class
 
I don't know if it's because I'm feeling awful today or just dumb but I don't think we're understanding each other
I still have to check that variable anywhere I have the above line
 
5:42 PM
MyCrashlyticsHelperClass.getKey(); instead of MyCustomKey
 
if (!debug) { //set crashlytics custom message}
 
MyCrashlyticsHelperClass.setMessage();
 
That key isn't an issue. It's checking if I'm in debug mode when setting it. Because if fabric isn't started then it will crash
goddamit pretty sure you're just fucking with me now
 
yeah just make all the calls through the class and avoid doing shit if fabric isn't started
then you just find and replace
 
8 mins ago, by codeMagic
Like a custom class to pass the custom key and do checking there before actually setting it with crashlytics
That's what I was saying
 
5:45 PM
lol
 
well we go there when we realized you were doing stuff with crashlytics
 
I don't have to pass a key. That part was irrelevant to the issue :P
 
I just let it do it's thing
 
eski, make him stop. My head is starting to hurt
 
I literally have one Fabric line in my entire app
I didn't even realize you did more with it
 
5:46 PM
Dave, go back to dealing with chinateam, cM is tired of your shit
 
boo
 
Right guys I'm out
Spent a bit longer to try and get something working and got a blocker so need to ask questions tomorrow morning :D
later!
 
see ya!
Dave, you can set custom keys to report certain variables to help figure out what was going on when it crashed. That's what I do throughout my app
 
I see
I thought maybe you were using different fabric keys for different builds/clients
 
So I can catch edge cases and such that might not have been covered in the code
Oh, no
So I set key/value pairs that I can search or filter in the fabric dashboard
So I might have Crashlytics.setString("someKey", someDamnThing'sValue);
 
5:56 PM
So o/
 
o/ cygery
And after all this damn discussion, I refresh and Fabric is now reporting the new version.
:D
 
oh, so you just needed to turn it on and then off again?
 
Apparently
But I enjoyed the discussion with you nonetheless
We should have more irrelevant discussions
 
we should
 
6:17 PM
 
Yeah, that conversation should have been trunkated a long time ago
2
 
:)
 
6:34 PM
 
What. In the hell was that
 
◉_◉
 
whoa
 
Luckily I have KillIt brought to you by our very own rlemon
 
6:37 PM
you should have SO Chat Commander
 
i was travelling through giphy, it directed me to tumblr
 
What is it and how do I get it?
 
./shruggie ./collapse ./glink ./giphy
 
Why do I want that?
 
so you can collapse
and do this
¯\_(ツ)_/¯
and this
 
6:40 PM
I see
 
¯\_(ツ)_/¯
 
I don't know what I should be doing the rest of the day
 
--- /glink /shruggie --- :(
 
we gotta get tristan to allow it
 
6:42 PM
!/miss the bot
 
you can edit it after the fact
 
user457812
I use Safari, I can't just block this room's stream of garbage without closing it.
 
user457812
Which seems more like the problem is the stream of garbage than the browser...
 
lol
 
harsh nil
 
6:50 PM
safari itself is a stream of garbage so there's that
 
user457812
Hey, I'll switch to Chrome when it works better and lets my text completions work
 
user457812
I can't type jjstare in Chrome and get ಠ_ಠ.
 
you could with an extension
 
user457812
But then it'd still be a heap of memory-abusing garbage.
 
user457812
When did Chrome and Firefox switch places, anyway?
 
6:51 PM
well do you want your eyes abused or your memory abused
 
user457812
There's a BSDM joke in there.
 
user457812
In unrelated news, Darkest Dungeon is a good game but I wish it were on my iPad and not my Mac.
 
Skyrim.
 
Darkest Dungeon sounds interesting
 
so many hidden BDSM jokes
 
7:02 PM
back
wow so many msg
anybody online?
 
no I'm offline
 
haha
atleast one is there
 
I'm on the line
 
damn i purchased a DOS based laptop and now i am unable to install windows 7 on it
fuck hp i guess
 
user457812
DOS-based?
 
user457812
7:18 PM
freebasic.net ← Maybe you should be using FreeBASIC instead of Java?
 
nil you're such a technology hipster
 
user457812
FreeBASIC was great
 
user457812
Also BlitzBasic
 
haha
 
Droidcon is upon us! The Mac/Nana meet up is less than 24 hours away. So excited!
Also bored out of my mind thank you airport delays.
 
7:30 PM
I imagine it will go something like this
 
lmao omg
 
lol
 
lol
 
user457812
Oh wow, PureBasic still gets updates
 
user457812
I should go try that.
 
user457812
7:39 PM
Looks like it broke in Sierra.
 
7:53 PM
Hello, Android!
 
Hello
 
8:13 PM
o/
 
o/
 
o/\o
 
8:36 PM
o\/o
o/\o
o\/o
 
^o^
 
This looks like a bird trying to kill me:
o/\o
\/
 
lol
 
(•_•) ( •_•)>⌐■-■ (⌐■_■)
 
9:00 PM
 
lol
 
9:56 PM
Ha!
 
weird
not getting an onactivityresult callback from this chooser
 
my thoughts and prayers are with you
 
LOL
i always sorround my code in try{}catch(Exception e){}
.
 
11:06 PM
 
 
 
hm
fuck me man
they shut down the crypto package in android N
that was how i stored my amazon aws key
 
11:43 PM
should be able to transition using this android-developers.blogspot.com/2016/06/…
 
Hell, Android!
again ;-)
 
@DaveS yes im referring to that now
though it seems more concerned with encryption rather than decryption
 
it's more concerned with the fact that it was a weak implementation when using the password as a seed to generate a key
provides you a way to decrypt at the end then rencrypt data securely
 
my use case is that i have an encrypted aws key in the app
i protect it with proguard but as an extra precaution i have to decrypt it in order to use it
so all i really care about is a way to decrypt an already encrypted key
its not perfect but it serves
 
11:53 PM
well the provider was just for key generation, you should be able to use the key to decrypt it as long as the algorithm is the same
and if you need to derive the key from the password, the example is at the bottom.
 
nah i know what it is
 
then just remove the provider from your Cipher call and it should be good to go
 

« first day (2174 days earlier)      last day (2775 days later) »