« first day (1840 days earlier)      last day (3333 days later) » 

^ yes I've read that
but it's not clear how to solve it…
> Not sure if it helps but the provider is added by the Analytics Gradle plugin, using a manual configuration solves this
I don't think I am using Analytics Gradle plugin, really
08:06
ladies and gentleman, useless method ever (unless well explained what it does) :
@Provides Pump providePump(Thermosiphon pump) {
return pump;
}
how and why does a Thermosiphon transform into a Pump? android wizardry, i suppose.
subclass?
that could be it.still useless... why?
might be Thermosiphon is a kind of Pump. this is the reason why Thermosiphon is a subclass of Pump. ??
dagger makes no sense and this terribly written docs don't help to understand it.
best review ever : "Dagger is a dependency injection framework, unfortunately most of us did not manage to setup dagger or failed to get dagger running once setup. So I can not give a proper overview of dagger2."
i surrender, will look at it next week.
cool!
so this is snippet example of one the things i should move into DI
(currently fixing it so only email apps show.)
o/
09:11
after reading a lot ,singleton methods are both ok and the demon personified. i'll leave theology aside and use what i need to.
09:33
what is wrong with singletons? I usually init them in the class that extends Application
android dev a) EVERYTHING! android dev b) NOTHING!
same for satic methods, or DI, or whatever is not standard.
for the last 2 hours i've been reading what could be named as various religious wars on what's best.
butterknive vs vanilla view binding, androidannotations vs dagger....
camelCase vs let_me_code_how_i_want_to... XD the 5th world war bill be camelCase vs PascalCase if we follow this trend...
do you use singletons?
I use singletons a lot
sometimes. i really don't have the urge to most of the time. only when something is multithreadly-unsafe.
Singletons can become nightmares when unit-testing :(
09:41
we don't do unit testing yet
you'll cry at night then
i also use abstract classes most of the time a code is repeated too many times and there's a religion war there too
for example in my most recent apps i've given up creating normal 'Activities', i have a nice setup called AbstractActivity that sets up the important stuff, like menu, toolbar text, title, app's language, common methods in the various activities ( social media sharing calls to the SMM class (socialMediaManager))
it's boring to write a thousand OptionsItemSelected , right?
you should write a blog post about that.
wut
we've got a blog?
i always have the chat minimized. didn't notice the blog link O_o
how can i write in there?
Who's writing them blogs?
09:55
github.com/room-15/blog just submit a pull request with your post if you want to write one
oohm. interesting.
63 changes commited. i did a lot of things today.
i really need to find a way to add timeouts to alamofire
10:47
morningg
hello red
o/ red
11:00
just select cancel
@codeMagic You realize I am conditioned to the point I recognize youtube ids by now right :P
Morning room o/
mornin
lunch time
3h 49m 33secs fixing android and ios things :3
129 changes commited. today was a good friday.
see ya later
11:26
o/
keeps an eye on the frying pan back!
12:07
oi cor blimey mateys
12:18
hey miva2
Morning all.
o/
Does any one have time to look at 4 lines of code and a stack trace for me please at pastebin.com/wUZn6ru3
wich android version?
12:33
@matty357 you tried getSupportedFocusModes() ?
12:45
I shall do some testing using that, thank you netpork
so google will merge chrome OS and android by 2017
I have read and understood the rules :-)
so sneaky
Good morning, all o/
13:02
good morning
good afternoon :)
@CptEric I'm using dagger quite extensively (except custom scopes) and am quite content with it :-)
if you have questions, shoot
i can't grasp it :/
have you done any DI at all ever?
or is the DI concept itself also new to you
Apparently I broke something yesterday and no one could use my app since at least 6pm yesterday. Oops
webapp?
13:17
No. Pulling down data from the server to populate users
It works if I have the debugger attached so seems like some race condition but can't see what yet
Just an AsyncTask which gets the data, parses it, and stores it in the DB. I'll have to do some digging. Kind of hard to test this shit when everything is on one damn production server
@Moeri the way dagger does it, yes
Well the entire reason you want to use Dagger at all is about lifecycle management
And injection of dependencies
so the example you provided a bit higher up
@Provides Pump providePump(Thermosiphon pump) {
return pump;
}
What you're basically doing here is telling dagger that any class that depends on "Pump" should be injected a Thermosiphon
Yo!
this is essentially binding an interface to an implementation.
13:32
o/ nana!
you could have written the following too :

@Provides Pump providePump() {
return new Thermosiphon();
}
but then you lose the ability to inject dependencies in the Thermosiphon constructor
o/ cM
so when Dagger is used properly, you get to write a class that has all sorts of dependencies in the constructor
and you just annotate that constructor with @Inject
and Dagger will wire that up for you whenever you actually need that class
on top of that, dagger has this idea of scopes, which define if and how your instances are reused
the simplest scope is the singleton scope: create it once and you're done. everyone that wants an instance gets the same on
it gets interesting when you define custom scopes though
if you have multiple modules in your app, all which have their own services, models, etc. it might be interesting to not define these as Singletons, but rather as scoped within your module
which means these instances will be kept alive just like a singleton as long as the user stays within that module
/rant
so yes Daggers documentation sucks
and DI is a difficult enough topic to get your head around without the added complexity of the Android lifecycle
13:42
i really don't think it'll fit on what i want to achieve easily, but thanks for the explanation
:3
it's quite enterprisy I admit
and it's something you can add later on when you start feeling the pain of dependencies inside dependencies and so forth
so don't sweat
:3 <- what this smiley does, cringes?
I always thought it was like puckered lips. Lol
o/
13:46
\o
cute cat
thanks moeri. i'll stick with singletons and static methods for now. it's less of a headache.
found it:
A symbol meant to represent the cat face made by anime characters when they say something clever, or sarcastic, or are commenting on something cute.
@DaveS That's not far off from the sherwin williams logo
13:52
weird, I've never seen a cat in that smiley
]:3 - this one should be a cow
(>.<)
that one looks more like a cat to me
a walrus?
(>°.°<)
(=`ェ´=)
14:06
\_(>>___<<)_/
describes my relationship with git perfectly
hehe
git is all right though
99% of the time you only need like 4 or 5 commands
git clone, git pull, git push, git commit, git add
if you collaborate and work with branches: git branch, git merge
I've gotten a lot better with git compared to a year ago
14:19
me too, but it's largely because of AS and PyCharm having nice GUIs for it
the commands (other than the basic ones) are still a bit like black magic to me though
decent article on rebase,
https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase
rebase scares the bejeebus out of me... and squashing....
bucket 'o bits is having a problem status.bitbucket.org
14:28
rebase is cool
my n5 is dead
if I plug it in, it starts rebooting
I am sad
I think the same thing happened to my nexus 10
It takes like 4 days to charge
the good thing is that after that, it keeps the charge
Now my Galaxy s5 is dead on start
(boot)
I am sad
14:36
Well, go to your room and cry
I am at work
haa then go to your bathroom
see ya in 30 min guys
I would recommend charging it for a while
the sad thing is that my sonos system was connected to n5
14:37
o/
\o
Eeven, even though it keeps rebooting?
Wtf? Why would someone downvote my accepted answer?
3
A: number of strings in strings.xml?

MaukerWell, you could simply use the Field class. Field[] fields = R.string.class.getFields(); int size = fields.length; // If you want the size. for (Field field : fields) { String str_key = field.getName(); try { int id = field.getInt(null); String str_value = getString(id); ...

it shows just Android, and then it reboots immediately
probably because of the try catch with no actual error handling
14:40
where ?
try {
int id = field.getInt(null);
String str_value = getString(id);
// Store the String, and do whatever you want with it.

Log.d("TAG","Key: " + str_key + " value: " + str_value);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
i mean, i wouldnt downvote for that
and i'd probably leave it
Yeah, but that's not where I was focusing on answering, IDK, it's not a try catch question, and it's not even empty...
don't take it personally
^
people downvote stuff for all kinds of silly reasons.
I am sad. My n5 :(
14:45
Yeah
what i dont like is when someone comes by to your answer that's 5 years old and comments and downvotes about how that's not a good way to do it.
when at the time is was the best or only way
Remove the battery Blackbelt
then put it back in
try to boot it into safe mode as well maybe that will stop the boot cycle
it is a N5. you can't remove the battery from a N5
Foam, I tried... it keeps rebooting
i have a N5, and you can remove the battery by ripping the back off, taking like 5 screws out, and prying the battery from the glue that's holding it down.
14:54
Well, I came alive from my surgery
I'm officially an android now
Android M, for Mauker.
5
oh that's easy
thanks
**Predictions**
Android N - Nerds, Nutella
Android O - Oreo, Orange ___
Android P - Popsicle, Pretzel
Pretzels are salty
You're salty xD
There are sweet pretzels
15:02
uhm
@Ahmad, is that true ?
I've never seen sweet pretzels before
only salty ones
Android Pretzel would be weird
thanks for sorting this out
:)
I've seen sweet pretzels
they have cinnamon sugar ones
So trying to get Facebook SDK to work without having the Facebook for android app installed and it is not working
heeellooo
misa is back
15:12
Hello eric
i'm modelling my logo
i'm happy
will post result
:3
Please do :)
android Praline
I miss @Merlin
Technically Android is named after tasty treats
So it can be pretzels
15:25
desserts
desserts ^
Tasty treats are not the same as desserts
pineapple pie
sorted
Pecan pie maybe
apparently I $500 azure credit but only for a month
what shit can I do with a $500 VPS in one month?
15:33
render farm for hire?
@Ahmad with an msdn account i think there's a per month credit you can get, like $500/mo for a year
i thought it was like that, i could be wrong.
not just account, a subscription.
"All MSDN subscribers can now receive monthly credits for Azure services. Here are some examples of ways you can use the $100 per month credit included in the Premium or Platforms subscriptions." azure.microsoft.com/en-us/pricing/member-offers/msdn-benefits
only $100
oh wow! I didn't know that
it's just that I won $500 credit but it's only valid for one month
so I need to create a bot net or something
I'm obligated to
15:52
rendering now
the elephant
♪ ♫ Ra-Ra-Rasputin !! ♫ ♪
@Mauker @anyone interested in watching a elephant youtu.be/nmdgJ_UYso4
^ this happened?
16:07
lol
damn math nerds
XD
nice!
That's a fucking thick pizza
chicago pizza i think it's called.
wait
i'm not even american
why i know that
Deep Pan :) i think "pizza pie" fits?
16:17
user image
3
:o
There's Mo' Ahmads ;)
bursted!!
Good one, eski! :)
16:30
codeMagic walks into a bar and asks the bartender for an ass-bourbon. Bartender says: Welcome, please read the bar rules and try not to be an ass. codeMagic cringes, waves away, leaves the bar and then walks into “room-15” with a grin on his face.
wtf
what the hell!
he even does android
he definitely stole that from me
maybe he's your soulmate...
twins!
maybe they're destined to breed a new super race of android developper...
16:42
sandwitch time
:d
he'll never have to deal with NPE's and can perform network request on the UI-thread without any problems
2
hey @Ahmad, what do you think of this? github.com/trevor-e/SimpleRxJavaAndRetrofit
going to clean it up a bit tonight (base NetworkFragment class)
16:57
Uh...
adb is not finding my phone
does the fact that I'm using my phone as a router have anything to do with this?
17:12
Oh, that was not the problem, just a cable malfunction
17:37
Sometimes my ADHD is so bad that I email myself to move a file and then get excited when my inbox lights up.
"When I run this app on my device then it shows your app has Unfortunately crashed after timer stops . Now what to do ?"
Do people who ask questions on stack really expect that people can answer them without a stacktrace? Come on, reading the error is like step fucking number one.
@McAdam331 lol that's literally my job at work right now, handling android support
people don't even tell me what app they're working on, I just get tickets with no information saying why does X,Y,Z happen
I implemented your SDK. I notice that when activity A create activity B that sometimes when I return to app activity C is running, if I close the app 3 times it fixes it. Why?
^^^ shit like that all day
I had set android:clickable=true in XML and does what you said in my main_activity.java .When I run this app on my device then it shows your app has Unfortunately crashed after timer stops . Now what to do ? — abhishek sharma 2 hours ago
lmao
lost it at "if I close the app 3 times it fixes it."
Lol
here's an actual snippet
"Hey,
Right now generated deep links not working on iOS. Why then old links are working?
Thanks"
i have no fucking idea what app this guy is building, or what links he tested
On my site I have my index PHP file with some php and a html website in it, I want to show some confirmation like "You've subscribed to our list" on a button click, how can I do that?
javascript
17:46
echo $"You've subscribed to our list."
i think. Idk php
but I know echo is a thing
js
alert()
If anyone wants to cry today: imgur.com/gallery/pfwOS
I don't want to show a message, I want to add text to the site.
oh ok then just echo should do it
And if you want to show the message without refreshing the page, you should use js
Women only call me ugly until they find out how much money I make. Then they call me ugly and poor.
6
@trevor-e ouh! this looks really nice! :D
sorry, was in the train, just saw the ping
I'm going to clone it and check out the code
my coworker just showed me how he refactored some listeners by using RxBinding
it's so pretty
he basically reduced each of the dozen 20 line listeners to 3 (each)
Haha!!!
Not to make it mobile friendly and the site is done :)
@trevor looks really nice! :D
didn't know about cache() for an Observable
how would you invalidate the cache?
^ @nana
invalidating is a bit tricky
you could manually destroy the observable
or I found a SO answer that looks neat
which wraps the observable in an OnSubscriber
trying to find an easier solution :/
18:56
I'm looking at your RxJava example repo trevor
any suggestions?
what happens if the onCompleted event happens in the brief period where the activity is destroyed and not recreated yet?
I don't think that would matter since there wouldn't be any subscriptions to it
since I unsubscribe in onDestroy

« first day (1840 days earlier)      last day (3333 days later) »