« first day (2272 days earlier)      last day (2898 days later) » 
00:00 - 16:0016:00 - 00:00

time to go home~~ :D
cya people!! :3
cya
lol Tim
waiting for a solution from a decent code writer (looks at Tim)
don't look at me, I write horrible code
16:07
That's why handling Timer is always PITA
goooooood morning room15
morning
16:11
I can't fucking believe that in code from 2016 from a kind of experienced developer I still find e.printStackTrace() calls...
hides in corner wondering why that's wrong
at least take the time to update your code template to use Log.e() correctly!
and m-Notation for local variables
grrrr
should be l-Notation obviously
philips screw you!
okay so I ditched hungarian notation but can you explain why Log.e() is better than e.printStackTrace()?
16:16
he probably meant: don't use either, instead do something meaningful with errors
Hmm but they can go together, no? I can have fallback behavior but perhaps I still want to log the value my own benefit if something does go wrong?
27
Q: Avoid printStackTrace(); use a logger call instead

user1305398In my application, I am running my code through PMD.It shows me this message: Avoid printStackTrace(); use a logger call instead. What does that mean?

they are equally useless in production, no?
> Logging frameworks give you a lot of flexibility, e.g. you can choose whether you want to log to console or file - or maybe skip some messages if you find them no longer relevant in some environment.
the main problem is that you might want to use other levels of logging which is not possible with e.printStackTrace()
I wouldn't use Log.e for a numberformat exception when I validate userinput. A simple log.w without the stacktrace is enough in the log/logfile
16:19
@rupinderjeet nope and nope both are not related to my issue
Good point, Warren.
and when I see those unmodified template snippets (same as "auto-generated") I totally assume that you are lazy and did not care enough to even think about an error case
Just saw a talk yesterday about logging performance increase using Lambdas
so if the logging level is set to Severe, and you do something like : Logger.info (getMyMessage ()); it will evaluate getMyMessage () obviously first (and could be slow to do so depending on the logic of that method) and only then it check the logging level and sees that it's "Info" so no need to print
so you would have wasted the getMyMessage () perfs
which makes sense
16:24
but apparently with lambdas you do something like this (not sure about the syntax)
yeah it does which is why I said wow because it's absolutely right and I just never thought of it that way
Logger.info (()->getMyMessage ());
the getMyMessage is not evaluated, it's just like a reference to the method
and it goes directly to see the info level and discards it
are you sure about this^^
https://www.youtube.com/watch?v=wZKmA6XodNE
(not sure about the exact minute)
8
A: How to improve logging mechanism with Java8s lambdas

bobbelSince Java8 it is possible to use the new introduced lambda expressions for this scenario. Here is a modified example of the logging: LoggerTest.class import java.util.logging.Level; import java.util.logging.Logger; public class LoggerTest { public static void main(String[] args) { ...

16:27
Nice!
basically the execution of the getMessage() lambda is done later with the call() method
wow didnt knew that
so that means when the log level does not match, it will never be called
@ColdFire If you are still interested in Berserk and If you haven't read manga yet, MangaStorian on youtube is doing a story-telling of complete berserk manga until now. Here's the playlist youtube.com/playlist?list=PLdYssdaPH1BuBq9za4_fGDo58kaaoZ3D2
rupin i have watched anime
and i will read when i will have time
16:29
I see
anime == 15% of manga
so another advantage of lambda
I am not forcing you
jeez
yeah i know anime is pretty short
and the call () method is an inside mechanism of lambdas right?
16:30
o/
i know you are not forcing me
o/ cygery
I should eat less
but best burger in town is best burger town
can someone explain to me in which case you don't want to log something? For example I have a custom logger with different log levels, but the log level is only to be able to filter them. I always want all types of logs included
in production?
logs should be disabled in production unless you have some kind of feedback feature, where users can attach logcat output for you to debug
otherwise logging is a waste of performance and time
16:33
right
I log just about everything that happens in the app and upload it to a server because it makes it easier to spot bugs/errors/unintentional behavior
you should be careful with that. I guess in Germany you would break some privacy laws with that
though I am not a lawyer
anyway, time to go home
not my problem, client wants it, so I do it
cya
Depends you can log stuff as long as you aren't tracking personal information about the user I think
how do you upload the logs?
I mean how frequent?
cya warren
16:38
the app tracks the location and nearby beacons and settings etc :P but it's an app for company phones to be used by employees. The rules are a bit different in this case
once per hour I upload everything that was logged Mehdi
aaah
to your own server?
Nice, I never tried that
~~can you~~ is it allowed to log user email?
Tim i once made a app for my company that log everything
every click every event .....
everthing...
rup, everything is allowed, as long as nobody finds out
16:40
Inside your app or whole device?
Ohk..
(kidding)
I meant owner's email. So, that if I hit a very serious/rare bug, I would bug him for co-operation.
might be bad if google finds out.
Tim - and if there is no connection at the time? you keep enriching it until there is connectivity?
16:44
Has anyone worked with a photosphere viewer or 3d video viewer? Like what is the widget facebook uses for this?
yes but at most 6 hours, to avoid file growing too large
Is it a custom widget they wrote?
25F here this morning. Waited 20 minutes for the kids' bus to show up and it never did.
grumpy
and if after 6h still no connectivity? you drop the file?
16:46
the file survives until it is uploaded. In case it can't be uploaded for more than 6 hours, the logs after 6 hours are not written to file
so you keep the old ones and drop the new ones then?
Interesting
Thanks!
don't want to do it the other way round?
if the log file can't be uploaded 6 times in a row, those logs contain information explaining why, I don't want to overwrite that info
16:49
good point
Yes
pretty cool
So is mine
For now
"Priority-Small" -- classic
16:53
But I am going to be very, very annoyed if it dies while I'm in Singapore
do notifications with PRIORITY_MAX show up when user has turned on 'do not disturb - unless priority'?
o/
back on an android project at last ! \o/
hola, room o/
o/ cM
o/ OcuS
17:06
Has any of you guys done instrumentation tests on apps that use Google Play Services ?
Carl \o
no, I haven't OcuS
are you having trouble?
17:23
\o_
I haven't started yet, Carl. But I guess I'll be screwed because I plan to launch my tests from an automated build in jenkins. They'll run in an emulator ; and Google Play Services doesn't work in emulators because they don't have Google Play...
Or at least they didn't, last I tried
@RaghavSood we might have something for you, talking to the guys.
Thank you!
yeah we have tests that run via a Jenkins build, but they run on a physical device attached to the build server
You have emulators with Play Services
17:27
that's pretty smart actually
Need to download a specific image
We used them at Groupon
They're slower than devices obviously, so no performance testing
But works/broke tests are doable
whoop
NOOT NOOT
17:36
Okay, thanks Raghav and Carl. I just read that I could run tests with Firebase Test Labs on physical devices. Any feedback ?
We used a similar service at Groupon for our performance tests too, let me see if I can find it
Might have even been amazon
Ok, I'll try to look into that
o/ ocus
CF \o
17:52
nice tim
 
1 hour later…
19:13
whoa tim, gratz on the 20k!! :)
o/
I've been getting lots of upvotes on my old answers recently o_0
almost to 6k
the holiday spirit
I owe all my rep to Ahmad, since he convinced me to switch to gradle and the first thing I did after I started using it was my top answer.
nana what happened to your face?
19:26
He took the bag off
too mean?
too accurate
lol eski
I was lucky enough to ask this before anyone else:
44
Q: Does Android Studio have a Hierarchy Viewer?

Carl AndersonI tried searching on here but couldn't find the answer. I'm looking for a way to launch the Hierarchy Viewer from within Android Studio, rather than having to launch it at the command-line. I've recently migrated to Android Studio from Eclipse, and this functionality was available under the DDMS...

yeah nice
@CarlAnderson I got a terrible case of hat.
19:39
that's for sure
can you wear hats year-round yet?
I hope not
84
Q: How to change Android Studio's editor font?

trevor-eRight now I am using the Darcula theme. I want to change the default font to something else. I go into Editor > Colors & Fonts > Font but all the options are greyed out. For Editor Font it shows Show only monospaced fonts as checked with Primary font as Monospaced, but neither of these can be ...

take that Carl
hah
clearly the answer to becoming an "expert" is to find inane questions about Android Studio that nobody has asked yet.
hi
i'm bored and i remembered chat.stackoverflow, so I came here
Hi "bored and i remembered chat.stackoverflow, so I came here", I'm Dave.
19:56
i'm writing some paper for uni, and I need to somehow make 30 pages
i'm mostly copy/pasting huge chunks of unnecessary code
with all the imports and stuff
lol
get rid of wildcards to take up more room
yeah
expand any for loop you see
30 page coding paper though? that's interesting
You should spend at least 60% of it talking about the elegance of the rounded corner and the different approaches to it by various mobile manufacturers
19:59
we don't have to include any code
subject is Computer Graphics, and I picked theme Drawing and animation in Android
Good topic choice, lots to cover
yeah, I picked it. Professor offered some ugly themes (some game engines like godot, libgdx, blender...), but I insisted on this theme, and he allowed it
pretty sure he don't understand much Java so this will be hard to explain to him
on the contrary, he'll be glad to see something new
20:14
@petey cheers
20:41
:)
 
1 hour later…
21:49
this guy at my office who i dont like took my parking spot
maybe he doesn't like you
we are having some repairs done to this fence
but it starts tomorrow
which may have spurned the spot switch
if it continues ill send his ass back to mexico
Land of tacos and ciestas I hear.
22:09
Anyone know of official documentation on changing the default storage location for AVDs referenced in developer.android.com/studio/run/… ?
I would like to move my AVDs storage location to Dropbox and save diskspace.
I believe that is what you were looking for, but I'll see if I can come up with a different doc
This is not exactly the documentation that I am looking to find @PabloBaxter. In past years, previous stackoverflow answers had referenced setting the environmental variables ANDROID_AVD_HOME and ANDROID_SDK_HOME to something like "$HOME/$DROPBOX/android".
However, I have never found any documentation referencing the information these posts discussed, nor have I found any documentation which references changing the AVD's storage location.
22:29
Anyone here ever worked with wavelets?
whats a wavelet precious
2
A tool for decomposing functions
way back in my signals course in college
was just briefly mentioned, never did any work with them
Trying to learn it from scratch...
To use it on an assignment, and to learn how to use it for signal denoising
22:44
For anyone following my chain of discovery,

Android seems to provide a means to specific the path for a specific AVD, so I am still hopeful that the default path can be changed.

android create avd -p
-p --path : Directory where the new AVD will be created.
Considering that Google owns the documentation, and because it relates to Android, I seriously doubt any exists, but doing due diligence to help find some. So far, looking into this: android.googlesource.com/platform/external/qemu/+/…
Abandon hope all ye who enter googlesource.com
It would be a really big pain in the butt if Android only offered the ability to create avds off the default path via the path argument. =[
Only when you have had all light snuffed within your soul, would you truly be able to read source code without remorse.
23:02
o/
spent the whole day writing a REST API
but with c
oh lord
but I'm getting better with c so that's good
even sent a pull request to the http lib that we have to use
it was just accepted
but it was only a spelling mistake that I fixed :p
Probably not what you were hoping for, but maybe a start? android.googlesource.com/platform/external/qemu/+/…
@Ahmad Doesn't matter, contributed
realloc
calloc
23:17
free
\o
So, guys. I've made a mistake with AWS
Amazon is repossessing your house now?
Yes. not yet Nope
it's pretty easy to go over quotas if you have a bug
23:19
I was following an udacity course
And I forgot to shut the instance down
now they're charging me around $800 for it :(
yikes
For something I didn't even use
lol Carl
23:23
LOL
and yep mauker :)
if something doesn't work I will just calloc
always good to calloc
So, is there any chance that I can get out of this mess? lol
oh damn, just read your comment
shiiiit
how is that even possible? I thought AWS doesn't have a flat fee
but more like, pay for as much you're using
Well, I found out they have.
;_;
write them
I'll try that
23:26
I heard of another guy who had the same problem
that's why I have a cheap $5 digitalocean box to use for any test stuff like that
he wrote them and they said he doesn't have to pay
Our jr Engineer published his personal AWS secret key on github
^DO is the best
was notified of thousands of dollars in charges in a few hours
if he let it run for a month would have been 400k
23:27
oh lord
but they reversed it all after he called
Well, for anyone interested, the solution to changing your avd's storage location in Android is kind of hacky and simple.
@Ahmad What did he write?
Just symbolically link your .android/avd to your CDS.
After that I'll never use it again sobs
23:28
Nothing super special, still wish they had offered a means to change the default directory.
seems pretty easy to exploit
have a friend "publish" his key
I used a symbolic link to store game assets on the SSD for the performance boost without the hassle of reformatting/installing windows on it
take advantage of some free AWS usage
You just can't do that often
well trevor I assume you'd be liable if you got caught
23:29
But I pictured a conversation between friends like: "So, who's the leaker this week?"
@BryanEdds you have too many questions and not enough answers on Stack Overflow. You don't meet our requirements listed here: room-15.github.io
Carl, so fierce and enforcing, making the law happen and shit
> Mauker has been banned from room-15
🔨
Just a reminder:
Dec 2 '16 at 21:18, by Dave S
Star this so we remember to make fun of Tristan later
23:46
@elsennov Welcome. Please read the room rules room-15.github.io
I have read and understood the rules
Welcome to the room elsennov
Hello, thank you for accepting my request :)
Just to be clear...I accepted you, not Carl. So I get all the good karma
I didn't know you needed good karma, codeMagic
23:52
I need all the good anything I can get
Ups, sorry, hehe, thanks codeMagic
Anyway, I have posted a question regarding code coverage for inline function in stackoverflow.com/questions/41466092/…
Still don't know why
Have you guys ever experienced the same issue? Thanks
if you're in chat and post just the link (and only the link) it expands the question here
0
Q: Code Coverage Inline Function

elsennovi have this function written in Kotlin inline fun <T> handleEmptyResult(observable: Observable<T>, crossinline resultEmptyCheckingFunc: (obj: T?) -> Boolean): Observable<T> { return observable .flatMap { if (resultEmptyCheckingFunc(it)) { ...

@McAdam331 am I going to have to learn Kotlin within the next 4 years?
00:00 - 16:0016:00 - 00:00

« first day (2272 days earlier)      last day (2898 days later) »