« first day (2076 days earlier)      last day (3097 days later) » 

00:42
hey!!! :P
anyone know what I do Wrong? stackoverflow.com/questions/37953701/…
I know that people don't like Fragment but loll
00:56
I suggest maybe It is maybe my switching fragment. ?
 
3 hours later…
04:07
o/
morning guys
05:06
@JasonWyatt why is postman not alright I get this message when I try to POST using postman on the website you linked yesterday https://bandcamp.com/jobs
Message: `That's really a lovely user-agent you have there, but I suggest you try another.`
alright I used cURL and it works better
06:09
Morning
Where do you guys hide your API secrets, on code or in xml?
I am in Constant :)
@LawGimenez Environment variables.
moorning
Morning, I'm sorry what you meant by environment variables?
06:24
System Environment Variables
API secrets=
?
what are api secrets?
API secret keys or API secret passwords
like oauth keys ? may be
Like the one on Facebook API secret key
06:26
As much as I remember, Facebook is using @strings/facebook_id
And some are adding it on code, I'm compiling best practices stuff for the team.
uhm
flavour parameters maybe?
Example?
9
Q: Android Studio: Gradle Product Flavors: Define custom properties

AgentKnopfI am building different product flavors of an Android App in Gradle (Android Studio). Hence I defined the following product flavors: android { project.ext.set("customer", "") project.ext.set("server", "") //Configuration happens here - code removed for readability buildTypes ...

but this is just a very hard example
@WarrenFaith knows bettah
Enabling proguard is not enough I guess?
nope
lemme just
paste you a peice of code
06:33
Okay, what is that about?
in your build.gradle file
on the /app/
inside the android{} tag
Okay, I'll wait
you should have a productFlavors {} tag with a release tag inside
resValue "string", "API_KEY", "ASMNAJSDJi123kj10239ilasjdk'192¡3okasds"
jsut add something like this
resValue is some function already in android dsl ?
or you just wrote that ?
06:36
it's a function there
to add resources
Cool I didn't know that.
Thanks
and then you cna access it
as if it was a normal strng resources
GetResources().GetString(R.string.potato)
Yes right
btw I love potato fries
sup warren
same here
also potato is my foo-bar/hello world
does anyone here know how to integrate redmine with fabric?
06:40
Wow, I'm learning
apparently the project url im using is not right :
@CptEric NO!
Dont use resValues for stuff like API keys
use buildConfigField!
But the values need not to be hardcoded
Yes resValues are not good idea.
i use it for checking what flavour version is opened, was just offering an idea on the api thing
06:42
buildConfigField "String", "API_KEYS", "hashhash"
But we can put it inside .xml
buildConfigField wasn't the same?
wait
problems translating?
We can set up flavours.
06:43
the problem is different, he has to set a string resource variable while registering Facebook Activity on manifest
Yes, how about API keys that are included directly on the manifest?
So resValue is right choice, also you can set up an Environment variable to get the key value, something like this:
resValue "string", "API_KEY", System.getEnv("API_KEY")
In that way you wont be hardcoding it.
i'm not even mad , that's great ^^
Using that value in your manifest is the only valid reason I can think of to use resValue
I avoid resValue and buildConfigField
06:47
Yes, Warren. For that purpose only it is valid
sorry 4 my ignorance, why it would be bad to store api keys in resvalue? :I
Doing what little naruto said will only hide the api key from source control but not from compiled sources
No sane developer would look into translatable strings to search for an api key
ok ^^
API Keys might depend on your build setup, so there you check BuildConfig class and find it there
06:52
you could try keeping an encrypted api_key string in a variable, then decrypt it for the oauth request
along with Flavor, Version name and code etc
i just replace the appName and things like that through resvalues on each flavour, so that's okay.
just proguard the decrypt function and voila you have successfully obfuscated your api key
yea app names are fine but api keys arent -_-
why aren't we addressing the elephant in the room?
whats the elephant?
06:55
if i had had had, i'd had had had had.
aka : "the english language is complicated because it's extremely overloaded".
"James while John had had had had had had had had had had had a better effect on the teacher" is an English sentence used to demonstrate lexical ambiguity and the necessity of punctuation, which serves as a substitute for the intonation, stress, and pauses found in speech. In human information processing research, the sentence has been used to show how readers depend on punctuation to give sentences meaning, especially in the context of scanning across lines of text. The sentence is sometimes presented as a puzzle, where the solver must add the punctuation. The example refers to two students, James...
And I am all like WHAT?!
"Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo" is a grammatically correct sentence in American English, used as an example of how homonyms and homophones can be used to create complicated linguistic constructs. It has been discussed in literature in various forms since 1967, when it appeared in Dmitri Borgmann's Beyond Language: Adventures in Word and Thought. The sentence uses three distinct meanings of the word buffalo: the city of Buffalo, New York; the uncommon verb to buffalo, meaning "to bully or intimidate" or "to baffle"; and the animal itself, buffalo. Paraphrased, the...
Morning, turns out English is broken. Better reboot and try again.
XD
morning graeme
yup
broken and more overloaded than c++ 2016
 
1 hour later…
08:17
\o
\o/
woah, this app takes so much ram :I
o/
08:43
how can i know what parts of my app take more memory, apart from the weird AS memory monitor that doesn't really give any hint
@stephingeorge rejected as you have not enough reputation (min is 80 rep).
Did we reduce min rep ?
Graeme!
since ages
you are getting old
I am old :(
older
08:51
who's the oldest person here
How old are you people?
too old
32 </ancient>
08:53
30
35
I am so old, I think of the 90th when you say "10 years ago!"
I am so old, I think of the 90th when you say "12 years ago!"
show off! :D
08:56
:D
lol this year i'm reverse graeme
ǝɯǝɐɹƃ ?
-.-
how sweet
lol
i need help
09:01
retro time ,bye!
how can i free memory? -.-
in android
Gotta keep up with the younger generations :D
09:03
I'm not OLD, I'm EXPERIENCED.
i mean, i've got this app that has like... 4 or 5 activities BEFORE the main one that has a viewpager with 4 tabs
and when the app reaches the main one, it's consuming around 60mb
warren, do you use xubuntu 16.04?
^^ odd
What's even more odd is that they wear shirts but no pants.
09:12
XD
They are animals, no need in general.
so i just noticed there's 15MB of drawables that even after finish() won't get garbage collected
and stay there
filling space
48MB in total of AppCompatImageDrawable taking up ram
@OcuS I bet they have signed a marketing deal with the shirts. So, they have to wear them. Dunno is it nike, la costa, kappa?
@WarrenFaith i need help with this ;_;
09:27
can you share some code how you assign those drawables?
i have a memory peak on a completely code-empty activity ;_;
sure. check hangouts
are you using a LevelListDrawable ?
nope
09:42
o/
@LawGimenez 31
any resources for newbee on testing ? Both unit and ui ? Thanks
10:16
got it solved thanks to warren ^^ evil dropbox drawable replacements
now the app takes only ~~16mb
that's nice
yikes
dropbox replacements?
what was the issue?
Citi has one of those websites that crash if your neighbour's in a bad mood
2
10:23
someone opened their PC and my 400x400 resource jpg's transformed into 2-to-4k (>2600px) images overnight.
oh right
we use dropbox as well for assets, thought you mean dropbox broke them somehow
"Error launching activity" every damn time
restart adb
then
adb kill-server, adb start-server fixes it msot of the time
it happens everyday, for the first launch, then it's fine
ever since the latest AS update
for christ sake! NEVER use dropbox for assets! Do you really want to fuck up your project by a designer?
10:29
assets should also be part of your git repo, so how do you rebuild a tag from a month ago when the assets have changed since then?
The basic idea of syncing stuff inside your repo is nuts, really
we used it long ago before purchasing a github liscense and seems that there are some spare folders here and there still syncing.
10:47
6mb of 130mb left in git commit. :(
dagger2 is fucking useless
which one is it ?
so much bloat
the findviewbyid?
dagger 2, not butterknife
10:51
ok
wait wait what you are lot on about
i mean that we use dropbox so the designer can send assets to me
then i put them in my project..
we were using mail
but it is annoying
I pushed to have git installed on the designer machine
Warren what do you suggest then? how can designers collaborate better with developers?
too complicated
Git
i don't understand what warren is suggesting
git is an option i suppose, but just for sending assets, dropbox is simple no?
10:52
yea git is not for designers
there isn't much one can fuck up
imo
i think he's talking about a direct link between AS and a dropbox folder, which sounds crazy, that's definitely an insane way to do things.
yea git is not for designers
he was refering to whole project under dropbox
zeplin is pretty cool, designers upload a wireframe, and you can click on an asset within in and it directly exports it to your AS project
oh right
we're moving to this: zeplin.io
10:55
so the project's in dropbox along with git version control? hmm seems interesting
nah not in dropbox
nice
how does it integrate with AS, is there a plugin or something?
Stop starring messages for god sake whoever is doing
ROs, Can you remove unwanted starred messages ?
when you want to export an asset it just opens the default file manager
Thanks :)
10:59
hi all o/
you then select the res folder, and it knows to to put it into the correct drawable folders
it makes things very handy
is zepelin only for Mac?
Stop starring unnecessarily. This is a one time warning.
I think some guy needs a serious attention
Let me report to Moderator.
11:01
lol
what does it mean when you star a message? what happens exactly and why is it annoying to members in room?
star means hovering to the right of a chat message and pressing the star there
and it fills the starwall on the right
where important or interesting messages should be
Lol I'm guessing this person also went and downvoted me after this. -6 in the past few minutes
Keep at it, I've got 57,082 rep to go
lol hahaa
call a mod anyway raghav
11:03
xD
At most, if you downvoted everything I've ever posted, you'll kill maybe 2800 of it
Not even worth the effort. If someone's going to star tons of messages for attention, I hardly see the point in giving them a mod's worth
the last tweet
i suppose zeplin is mac only yeah, never noticed
11:06
just like sketch, god damn mac-ers
All the good design stuff is only on Mac :(
wich is bad because windows machines can be way more powerful (-_-`)
yep but fuck logic
zeplin looks nice but they have used a girl silhoutte as the developer icon and a guy silhoutte for designer icon, and thats a huge nono in my book
well thats just racist xD
moving to mac was probably one of the best things i've done as a dev, you guys should do the same!
11:18
no thanks
i don't want a 1,5k paperholder after three osx updates like my boss has.
@RED_ I agree 100%... I will never go back to Windows for development. If I couldn't use a mac, I'd use Ubuntu.
did it get really slow, or they just stopped updates?
slow as hell
slower than my mac mini
YOUTUBE IS DOWN
EMERGENCY!
ssd 16gb ram macbook pro
not for me @WarrenFaith
wait
11:24
I get randomly 500 or 502 errors
i was just listening a song
and now it's 500 everywhere
A team of highly trained monkeys has been dispatched to deal with this situation.

If you see them, send them this information as text (screenshots frighten them)
yup, down
what do you think that error message means
it looks like a hash for something
probably encoded error details
android asset studio does not work, besides youtube
@JasonWyatt I've reached bandcamp.com/treasure2/eich
11:32
Nice!
that abominable code though
upto that point was pretty simple use cURL n everything is gucci but reading that code feels like cancer
it's not meant to be quality code :)
^^ wtf?
flat foreground color
@JasonWyatt we have to execute that? XD
Don't have to execute it.. you can also just read through it to get the gist
11:39
;_;
this is cruel
and the electoral vote fruits keep on twitter
hey netpork imageur is blocked here :(
#users
43
Q: Is it safe to keep a MacBook in the fridge?

kenorbI've a got longstanding problem with laptops overheating (MacBook Air/Pro) and it's not only related to one machine. The laptops are overheating especially during hot days (summer). I've found that keeping them in the fridge for half an hour makes a dramatic difference in their performance. Howe...

That tells you a lot about how effective the cooling works in a Mac...
and they are not alone
my last laptop from Dell had the same issue: one build was enough to reach the heat limit and the cpu started to throttle
11:58
My mac burned me once...
my acer only overheats when using the gpu
Like literally blistered the skin
damn
people have to start removing dagger 2 from the best practice suggestions increases the complexity of the app unnecessarily I dont know how I am supposed to explain my code to the next guy
maybe you're using too much dependency injection
I think sometimes people/companies tend to go overboard on a particular pattern. Like the RxEverythingUnderTheSun movement going on right now
12:09
Hey Guys! Anyone is good with Fragment? I think my onStates is never call when I "replace" my fragment... I read it: stackoverflow.com/a/12793395/1250185 And it make some sens.. now.. How I can saveState when I replace my fragment?
you should disable turbo boost on macs, so it can never do a temporary overclock
helps with heat and lifetime of your mac
@shripal denied for low A:Q ratio. See our room rules for more info
hooo codeMagic!!! :P You love Fragment.. I'm sure you may help me haha
What's app with Fragments bro?
What callback was not called?
12:40
back for mlunchie munchie
@LawGimenez, Its my "onSaveInstanceState".
~787 lines fragment , my largest one. :I
So this is the callback when Fragment is destroyed?
i don't save instanceStates ^^ confession bear meme
12:46
How did you destroy the Fragment though? Did you detached it or something
@LawGimenez, humm not really but I have the onSave.. and also.. I use "replace" on my activity to switch it
Not sure if replacing Fragment will call its onSave
I had that trouble before but its a different callback, I had to call separately the lifecycle callback for Fragment from inside the Activity
or vice versa, I cant remember
in java how do I make this = null?
what is "this"?
and why do you want it null?
#AskingTheRealQuestions
but seriously, answer them ^^
lol I just want to destroy "this" instance
12:55
instace of what?
meaning want to remove any references to "this"
a cat? a mouse? a class? a activity?
a instance of a class
i want to make an instance of class nul within the instance itself
nvm that should be really bad design i wont do it, instead ill just make everything the instance holds to null
12:57
i don't think it's possible.*or reccomended*. maybe calling a empty constructor or something will do what you want?
how the hell does rx java "unsubscribe" exactly

« first day (2076 days earlier)      last day (3097 days later) »