« first day (1684 days earlier)      last day (3256 days later) » 

1:03 PM
Morning cM
 
o/
 
Dont like android no more
 
@matty357 Well, spend some time on iOS, and you will love Android again
4
 
ah, we lost another one I see. How long did you last Matty?
 
haha
nearly 7 months
ha
ive created a signature capture app for the transport industry, with all sorts of features, my own app activation method, my own update method, no need for play store at all. But,,,, now,,,, i give up
 
1:15 PM
The play store is brutal these days
 
what happened
?
 
well in my case it didn't make much since to publish on there anyway. I've released dozens of the same type of application throughout the years without ever posting them to there
there was very little upside and there was a ton of time spent (wasted) on fighting the black box intricacies of the play store
it didn't help that the stakeholders of this app didn't give me any copy or images to use in the posting and then made me change all of the copy and images that I made up for it
 
i went fron Eclipse to AS, turns out eclipse didnt know i was using fragments incorrectly, with a custom constructor. My own fault because i should know, but im learning so i didnt know. Now ive changed to using bundles to pass arguments to the fragments and i just cant get it right.
 
Fragments were created by satan to try to trick you into being an evil person...
3
 
Aaan. The learning curve is steep! I made the same mistakes for my first fragments. It was a bitch to correct afterwards. Never construct a fragment using anything else than the empty constructor
 
1:24 PM
Iv learnt that now, codeMagic helped me the other day. Just a shame it means so much editing of the way it currently works.. will get it right in the end, just taking alot of re-testing over, and over, and over and over again haha
 
o/ morning
 
But then, when you get it right, it means that your app can go in deep slumber, release all of the used resources, and recreate it all like magic when awoken. (and by magic, I mean liters of developer tears)
 
i find it very annoying that eclipse just makes me an APK, where as AS requires signed/unsigned debug/release.... i just want an apk haha
haha
close to tears
 
didn't have trouble with android studio, as I had already dropped eclipse for IntelliJ a long time ago ^_^
 
I'm glad my nested fragments meme made the star board. One of my dumbest ideas but greatest accomplishments so far haha.
 
1:27 PM
To be honest i think im just googling and kinda 'hacking' stuff together till it works haha
not got any background in android, think ill take an android module when i return to uni
 
and don't forget that every static object you create can be destroyed as well when the app goes in deep slumber
 
Matty, if you're looking for a really great and highly recommended android tutorial, check this out.
I followed it in a couple weeks, it teaches you a simple little forecast app but it covers everything. Databases, services, broadcast receivers, notifications, intents, fragments, UI design, and a lot of other basic topics.
 
i will have a look through when i get chance thank you McAdam
 
No problem. I actually commented all of the code from that project when I built it, and still refer back to it regularly because I always think 'I did something like this in my Udacity app' lol
 
its funny because i see games with a lot of threads running different animation, and what looks like would take alot of memory or proccessing power.... But yet i seem to have created so many leaks that its possible to use all of the availible memory haha.
 
1:35 PM
@Moinkhan I've removed your access since I haven't heard from you. Feel free to request again later
@FoamyGuy amen!
 
I also heard good stuff about that udacity course
that's the one by gogle devs right?
 
Hey Adam
 
matty, normally games are developed way differently than normal aps
They use frameworks that run natively
Well I hope they do cause they should
Things like unity and stuff
that's not with activities and fragments and all
 
You can actually do a decent game with a surface view or a glsurfaceview without a framework
so all in java
but it's not portable
 
Yes, I gues it is possible
but you're either severely limited or you'll need to do a lot of stuff yourself
 
1:42 PM
oh right ok
 
do those views support 3D? There are separate ones that support 3D right?
 
With GLSurfaceView, you will do 3D developer.android.com/reference/android/opengl/…
 
@Redwarp why? isn't it easy to make it also portable by issuing rendering calls to an interface or something?
 
I remember doing an asteroid shooting game as a class project 4 years ago using glsurfaceview and basic shaders
@SargeBorsch guess you can. But still all your code is written in java, but uses android specific object, such as GLES20 object (developer.android.com/reference/android/opengl/GLES20.html)
 
I mean, make an interface for GLES20
 
1:46 PM
But I've been reading a bit about libgdx lately, and I will probably give it a try (github.com/libgdx/libgdx)
 
libgdx is pretty neat
 
and on desktop some other class will implement that interface
 
@SargeBorsch you could do that I guess
 
libgdx does something similar + includes lots of other helpful stuff
 
The guy who created libgdx published a physics puzzle game back in the day, it was the game he built while designing the framework. I created a bunch of the levels for that game.
 
1:48 PM
I think that I would have a hard time, while creating a project from scratch, to think far ahead enough to do a properly interfaced code that's portable, on my first try.
 
you can't tell if your application is on foreground or in background, what a fucking joke
 
@Try_me34 you can make all activities report to a global/singleton class about their onStart/onStop, and keep a counter of activities that are started and not stopped. then application is in foreground iff the counter is > 0
 
Anyone tried out the iPhone crash text yet?
لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ 冗
 
I did it like this, and it worked reasonably
what is it?
an ancient exploit for iOS?
 
You send the text to anyone with an iPhone and it crashes their phone
 
1:56 PM
cool
does it work on iOS 8?
 
for real ?
whats my bosses number......
 
I heard it before iOS 8 release
^ you'd better use email and send it from an anonymous mail account like hushmail or something
 
Actually I haven't thinked of the onStop, will try it
 
otherwise your boss will kick your balls, hard
 
@paul23 denied for low A:Q ratio and virtually no android posts
 
1:57 PM
When.they get the notification there's a parsing issue with the notification or something
 
I can show you how exactly it will be like, if you give some address, because obviously it's not SFW and I can't post it here
 
@Sarge iOS 8 works I am almost positive
 
if this is true then… lol
what if we mail it to Tim Cock?
*Cook
he must be using Apple products I think
 
Sarge look up the reddit post.
 
how to find it?
 
2:00 PM
Um, one second
Reddit is blocked at my school so it's hard lol
 
that was weird
 
I glanced back here and saw pretty much my name
and I was like how does sarge know my name?
 
^ What?
Your name is Tim Cock?
 
Tim Cocks
 
2:04 PM
funny second name
 
truth
 
are you sure your name is not Cooks?
ha
 
positive, as much as people want to assume that it is
I have even spelled it out letter by letter to people and then they still put down cooks, or cox
 
I'd like to have such name actually
hmmm, I did similar thing but for desktop
 
2:07 PM
at least you will be remembered
 
to read these QRs by phone
https://github.com/magicgoose/qr-encoder-desktop
it has very dumb UI though, but OK for my own needs :P
 
i use QR scanning and the xzing lib to capture a certain position on a document that contains a signature
 
neat
 
HOW THE FUCK IS IT REMEMBERING THE ROWS IN THE LIST WHEN I CLEAR THE ARRAYADAPTER, CLEAR THE ARRAYLIST WITH THE VALUES, AND RE-CREATE EVERYTHING FROM SCRATCH...................... FUCK SNAKES
 
you do it in background thread?
 
2:11 PM
hum, first thing first, you might want to stop using listview and start using recycler views ?
 
(I find it more easy to use when you have to insert or suppress cells, and, well, more modern)
(Poor snakes)
 
I created one meant for a RasPi too: hackaday.io/project/1404-pi-qreator
 
Webapp on RasPi? Wh…Why?
 
why not?
 
2:20 PM
isn't it too wasteful to use Javascript on it? (maybe it's a silly question, though, I don't know much about RasPi yet…)
 
havnt used recycler view yet, will have to have a read up.
 
I did it mostly to learn about how setup and host things under nginx
and also to learn about the touch screen that I put on the pi
 
i just like to vent my frustration here, is that ok... WELL IS IT ?????
 
yes
mostly
and it kinda depends on how you'd define wasteful I guess.
it's been a while since I used it, but I don't recall any real performance issues.
 
cool then
 
2:27 PM
@Redwarp listview is not that bad, yes it was written by a jerk (who made lots of it internal)...but its not that bad
more likely its a code thing
 
I write out a long meta answer and he deletes before I can post...jerk
 
Awww sorry cM
 
@codeMagic Write a blog post then?
 
heh, not that important. Was just taking a break so was giving an answer then needed to bitch. It was a pretty silly question anyway
 
i like to ask silly questions
 
2:30 PM
we already know this :)
 
Lol
 
ha
 
Woof!
 
o/
 
2:33 PM
Grrrr
 
purrrrr
 
Bzzzz
 
\00
 
fragments were created by satan? huhhh
 
by a fragmented mind
that likes to piss me off
 
2:35 PM
so, its cool that i use fragments? i'm semi-noobish to android, but i thought they were the way to go
 
They are widely used. Some of us aren't fond of them
 
I rarely had big problems with fragments… my recently released app uses them and I didn't hear about any bugs related to them
 
I am sure nobody will shoot you for it
 
I'm using code like this to swap fragments around in root navigation activity
 
2:38 PM
im swapping them by removing and adding them again, because i need the onCreate method of the fragment to be called
 
Friends don't let friends start companies to address infrequent use cases.
 
Have you preordered yet?
 
@petey true! But as a recyclerview force you to follow the viewholder pattern, I like it. The fact that it handles seemlessly inserting and removing items, with some basic animation, is the icing on the cake
 
It is always hard to write a rejection after an interview...
 
yeah
 
2:50 PM
FINALLY DONE IT
i have had to do
for(String trailCheckLine:trailChecks){
vehChecks.remove(trailCheckLine);
}
no i havnt
dammit
DAMMIT
thought i had
 
must be painful lol
 
have you informed the adapter about the changed content?
 
oh..............
erm
maybe........
no :(
forgot about that
 
I have a simple setData(List<Data> data) method that sets new data to the adapter and calls notifyOnDatasetChanged()
thats all I need to do, this way I can reuse the adapter even when new data needs to be populated
 
take a short walk
 
2:53 PM
This guy is a riot (would mean more if you saw his earlier deleted post) meta.stackoverflow.com/questions/295380/…
 
cM, he is a webdeveloper. I rest my case
 
:D
 
MS Office? On my Android? No way!
 
i have actually done it this time, yay
ms office on android has been known about for a while i think
is it samsung they were teaming up with to launch it on their phones?
 
3:00 PM
yeah, but it's going to be pre-installed now?
 
ohhh, didnt know that
no thank MS
think ill just throw my phone out the window before they get near it
 
you can just root it and uninstall all the crap out of it
 
i was rooted on my htc one m7, but then realised i dont get OTA update so was stuck on old version of android. sure they are much better now though and you can get OTA updates
 
whenever you want to update, you can flash stock firmware, right?
 
@ntcase You don't quite have enough rep for this room (100), only one answer, and no chat history so I'm going to have to deny for now. Give a couple more stellar answers and request again. room-15.github.io
 
3:04 PM
stellar answers… cool
I probably do not have them
 
o/
 
cM, do you have his deleted question?
 
3:24 PM
\o
 
oh great
don't you love it when a website overrides your back history?
how the hell did they even do that
kept refreshing the head of the website until everything is in the backlog?
also o/
 
\o
that looks sucky
 
@TristanWiley hey sorry, at work. Closed the window right before you said that.
 
Not directly related but he is still bitching without giving any actual direct issue (even if he wants to call it a "discussion")
 
3:34 PM
Can't decide on lunch today. Panera or Qdoba?
 
Hamburger casserole from home
 
dont know what they are
 
@SargeBorsch Many many thanks man. They key was due to the fact that onStop is called after the onStart of the new activity that is about to come up. That's the secure way of detecting whether your application is currently running.
 
Panera is good. Never had Qdoba. I don't think we have any around here
 
Don't eat at chains.
 
3:37 PM
You're missing out on Qdoba for sure.
It's like a mexican subway.
 
@Ahmad One page apps work like that. They change URL after # to not reload but, your browser chooses to log it as a change (good choice by the way)
So... your fault, use a new tab.
 
yeah I know but the thing is I didn't click anything
so I don't know if/what actually changed
 
Interesting.. why would they do it if they don't have to? To stop you from going back? :) That would be silly.
 
@McAdam that's fine. Food is good
 
if an object has an integer, that is declared final, and i then create multiple instances of the object, does it use the same final int or does it create a new final int each time?
 
3:41 PM
a new final
the same int is static
 
@nana they never want me to go back
back to google
where I could discover other news sources
and abandon theirs
 
If you declare an object as private final static int isn't that redundant?
I could just use static, right? Or no? I can't remember if you can change a static variable.
 
not the object, the int inside the object
 
the great english.al-arabiya conspiracy
you can change a static var adam
 
So, it's not redundant, because it gives you the best of both worlds then?
It's unchangeable, and there will only ever be one reference?
 
3:44 PM
@Try_me34 Nice. :) I actually was not sure about this useful property (call sequence). But… even if it was called before and not after, it's still doable, using postDelayed or something in rxjava.
 
well if you don't want it to change then it's not only the best of the both worlds; it's necessary
 
Good to know. I've been doing it right all along, it wasn't until just now that I questioned whether I really needed both lol.
 
class methods: static
constants: final static
 
Yea I didn't know that onStop is called after onStart's other activity and that was the key. And that's the main difference between onStop and onPause. On the internet none is mentioning it
 
Cool. Thanks, Ahmad.
On that note, I need to go get lunch because I can't focus for shit today at work, so maybe some food will help.
brb
 
3:46 PM
I should definitely remember it. Or maybe even write some article if you are not going to write it.
 
We should have a blog for stuff like that
 
Yeah I think its good to mention it here. All the answers are wrong btw
 
Upvoted back to 0 because the down vote did not have a reason and it seems like a good question. — Dan 2 mins ago
 
This Application.ActivityLifecycleCallbacks they added in API 11 is broken, tested it and it didn't work as expected.
People complaining on comments too that this is broken
 
room 15 already has blog, right?
 
It's called Blag
This is off topic, I think, I can't think why though
-1
Q: Graphs in programming and real life

Neks  Minoreveryone. Where, in practice, applied graph theory? I would also like to know why do we need graph theory in programming?

 
It's too broad and opinon-based. But closed anyway and will now have a delete vote ;)
 
Ahh okay :)
Does down-voting effect people with no rep (except the starting 1)?
 
No
 
1 is the floor
 
3:56 PM
Well, can contribute to a question timeout but doesn't affect rep
 
Ah alright :)
 
is getView of an arrayAdapter called for every row that is drawn??????????????????
 
It also makes them feel bad so I guess that's another effect
 
right
work is done, thank fuck for that, stupid job
 
4:01 PM
\o
 
see ya tomorrow
 
@TristanWiley I tried to write an answer without testing anything. Kind of risky — interesting to see how it goes.
 
lol ;)
 
@swetha our requirements include having at least 100 rep to gain access
@swetha see here: room-15.github.io
 
@TristanWiley Oops, it's a different question
 
4:06 PM
I still feel like the "move to another site" flag should include a search box so you can find ALL stack sites. Would be nice simple and much nicer
 
@Blackbelt I meant this question
 
I kinda figured :P
 
5 mins ago, by Sarge Borsch
@TristanWiley I tried to write an answer without testing anything. Kind of risky — interesting to see how it goes.
 
Okay, now I'm confused
 
4:11 PM
me too
 
Sarge damnit, you're hurting my brain :P
 
0/
 
back
with nachos ^.^
 
any thoughts on the FIFA arrests @Ahmad ?
 
FIFA arrests? Does someone have a source for me?
 
4:21 PM
I heard about that
Google
 
Yeah, but it's faster if someone puts the article here lol
 
You're the real MVP.
I love you, Carl.
(since you don't get that enough)
 
thanks
 
4:26 PM
woa woa woa
fifa arrests?
I thought fifa was invincible?
 
Wow, this is really interesting.
I'm curious how this works, it sounds like the US attacking FIFA, and I'm not really sure what authority the FBI has over an international soccer organization lol.
 
an invincible corrupt cartel of tax laundering criminals
 
No, we're not talking about the NFL.
 
No, John Oliver is invincible
 
<3 John Oliver but I don't think it's related to him
 
4:28 PM
really interesting
 
if you don't think the press influences law enforcement... well.. you haven't watched enough cop dramas on TV
 
@CarlAnderson he also denounced teen beauty pageant and sport scholarship, but it's till happening !
 
you'll never get rid of sport scholarships.
 
But still, it's my monday ritual when I arrive at work in the morning: a nice cup of coffee, and the latest Last week tonight
 
4:35 PM
do you expect law enforcement to stop beauty pageants?
 
@McAdam331 it was less about the sport scholarship and more about the huge amount of money made on top of the athletes, that they never see a dime
 
Yep, that's America for you.
 
@CarlAnderson If I was president, I would expect law enforcement to stop beauty pageants
Vote for me!
 
On what grounds, though?
Also, it's no better in pro sports, where they get paid millions of dollars while working for a non-profit organization. (NFL, NHL, PGA, all non-profit, look it up)
 
On the ground that I don't like kids, and beauty pageant. That's really solid ground I think
 
4:37 PM
You've got my vote. Redwarp 2016.
 
Now, I just have to falsify my birth certificate to pretend I'm american. Easy peasy
 
If Obama did it, anyone can. (Satire, I am not an anti-Obama muslim hater who dislikes Kenyan's, don't take that seriously).
Why didn't I just get two day shipping. Why.
 
Haha, as a foreigner, I'm still sad that Schwarzenegger can't run, so that Demolition Man becomes a reality... I still dream of a world where I would know what the shells are for...
 
Where are you from, Redwarp?
 
France
 
Neat! I know a decent amount of French. It's been a while since I've taken a class in it though, but I studied it for ~7 years
 
@McAdam331 can you say "I love nature" in french?
 
@CarlAnderson what the actual fuck?!
 
Thanks Obama!
4
 
@CarlAnderson That freaking sucks!
 
4:45 PM
@Redwarp J'adore la nature. Right?
well
Nature is one of those tricky words where it depends on how you want to use it, isn't it? If you meant nature as in scenery it would be le paysage if I remember correctly. But I do know 'la nature' is a french word.
Did I pass? :P
 
Yes, you did ;)
 
:D So, what does 'nature (fr)' mean if it's not for like, scenery/countryside?
Or can it be used for that, also?
WordReference confirmed most of what I said, but I'm still a little confused lol.
 
Yes you did ^_^
nature could be "the greenery", "nature"
 
I want to localize my app to french first, because it's the language I'm most familiar with, but I still have some things to straighten out. Ocus helped me out a bunch, though.
 
it's basically the same word
 
4:58 PM
So it wasn't a trick question?
I started over-analyzing it because I thought you were trying to trick me lol
 
Haha no. But someone else, yesterday, when I told I was french, told me "j'aime la nature"
 
@raghav duuude! I got (officially) in!
 
So it became my "standard" to judge people
 
 

« first day (1684 days earlier)      last day (3256 days later) »