« first day (2201 days earlier)      last day (2748 days later) » 

3:00 PM
a downvote for you and you and you and you
 
lol
 
lol
 
am switching to iOS
 
A lot of people don't like seeing answers on posts where the OP doesn't even try
 
I hear iPhone 8 is coming out soon LOL
 
3:10 PM
@ColdFire it worked in the example app xD
 
cM, solve my problems
 
Done
 
@MarkOSullivan94 lol it didnt say it wont work, but solution is crappy
 
cM, I wish I could say you are a hero to me
 
3:11 PM
I...I'm not??
 
well, do something about it
 
“I should’ve tried to learn a few of the new frameworks” Regrets Retired Developer, Age 26
 
So many frameworks, so little time
I'm so glad I don't do web dev
 
3:27 PM
So many yet we use the worst one of all...Sencha
 
3:37 PM
What the hell even is that
 
eric / 1993 - 2016 died choking in cocoa powder
 
I have never been this frustrated about something :p
Guys, anyone uses Debian here?
 
I am on ubuntu, sorry EE
 
yeah
elementary OS
 
"anyone uses Debian" I'm imagining what a debbed out drug addict looks like right now
 
3:46 PM
debian based
ubuntu is devian based too :I
 
yes it is, but it is not debian
 
it's mostly devian tho
so it might help
 
...
 
Debian based here
(eOS)
 
japanese movie recorded in nearby town
twitter's like wtf
those are real catalonia cop cars that have been lent to the director
 
3:53 PM
I am wondering whether installing a different OS will solve my problems ( after maybe some tears)
 
you still havent said your problem
 
oh I did yesterday; lol basically here is my problem : lsusb does not recognize my devices at all
I have installed Ubuntu 16 twice now
installed all the curses (libs0
lisb)
am losing my passion for android lol
nothing works
 
:I
 
adb returns nothing
 
install elementary OS
like
it was just...
execute AS install shell
and all devices were there
no need to install any extra shit
 
3:58 PM
^ same
Though I don't have Loki yet
 
neither me
 
Am looking into it now
 
@MarkOSullivan94 sencha.com
We use Extjs for our js framework docs.sencha.com/extjs/4.2.1/#
And I played with their touch framework a little
It's pretty robust but also a pain in the ass and bloated
 
Can you not use Angular / React to do the same thing?
 
I think it wouldn't be so bad if we used it more correctly
Could but this is what our main web guy knew so that's what he started using before my time
He's not good at looking at options. He picks the first thing he finds with pretty much everything
 
4:13 PM
ohh my internet is back again
@MarkOSullivan94 what we were at
Cm , i just remembered while reading the android room rules i had 3 question that i didnt ask that time
 
fucking hell
I still can't get this working
 
1) who is CM?
2) why only CM is allowed to drink ass-bourbon
3) what the heck is a ass-bourbon anyway
mark, now what is the issue?
you just said it worked
 
4:29 PM
I thought it was going to work
turns out it doesn't
 
well you said you tested it
:.//
 
Wat? How do I have Linux without emacs, zip, or unzip installed? I didn't even know that was possible.
 
I used the method to change the fragment before the screen was loaded
so I thought the method would work whenever you click on a button within the fragment which in turn would trigger the change
 
lol no it wont work
 
why?
That's the way I need it to work
 
4:31 PM
you havent added anything to the original arraylist
 
but I've updated it
 
your arraylist is not used to getItem
private ArrayList<Fragment> mFragments = new ArrayList<Fragment>();
this is used
 
it is used to getItem
Look at the code I sent you, return mFragmentList.get(position);
 
ohh wait you are fragmentpageradapter
 
CF, are those still questions?
 
4:33 PM
my bad
 
you havent notified
 
I have :p
 
the adapter
only 2 and 3 are still ,CM
 
I notify it afterwards
 
4:34 PM
mark
 
I call changeFragment(Fragment fragment), then after that method is called notifyDataSetChanged is called
 
how show me
anyway notify doesnt work
with viewpageradapter
it wont change anything
notify of pager and listview doesnt work the same way
 
hehe that points to the same page as in the rules
 
So what do I have to do instead CF?
 
4:37 PM
o/
 
lol that conversaation, CM
 
Yes, that was my point, CF. It is right there with the rule :P
 
wait there is a method let me look it up , mark
 
Speaking of ass bourbon...o/ Carl
 
4:38 PM
hey carl
well the transcript msg link was not there
it makes sense now
 
It is there. That's where I copied it from
 
actually it is, it's the part that everyone else should know better
 
@Override
public int getItemPosition (Object object)
 
ColdFire, welcome, please read the room rules
 
lol CM
 
4:40 PM
:D
 
how would you use that to update the view though CF?
 
override that
this method mark ^^^
POSITION_NONE
 
to notify
the adapter
you have to return
 
> What struck out to me the whole time I nosed and sipped this whiskey is the irony in the name. “Yankee Whisper” would be much more appropriate since there is little character or shape to this whiskey. Actually I take that back – I like yankees and mean no disrespect, but this whiskey is anything but a yell. It’s also lacking so much in the flavor department that it makes it hard to even call it “bad”.
 
4:41 PM
man, internet is sucking too much today
@codeMagic actually the first link never mentioned ass bourbon so i was confused and most probably i guess i missed the transcript link
 
CF when is that method called though?
 
when we call notfiy
 
return POSITION_NONE; is all I need correct?
Ah
 
it checks if a object need to change
 
Oct 17 '14 at 22:26, by codeMagic
I almost got makers but I decided to try something different foolish
 
4:43 PM
So notify is called instead of notifyDataSetChanged?
 
yes but beware that may cause to everytime fragment to refresh
@MarkOSullivan94 notify i was saying in short to notifyDataSetChanged
there is no notify method
 
yeah it just recreated everything
and didn't update the fragment I wanted it to update
 
what i do is keep variable
 
Lol, Carl, that whole conversation was gold :D
 
and set index to update to there
 
4:45 PM
Do you have code I could look at?
 
Cause what I'm doing isn't working
 
ok wait
but mine is for fragmentstatepageradapter
you have to do differently
 
> I had some friends over that requested bourbon, I actually had to apologize for serving them this stuff as it is in my opinion the worst bourbon I have ever had.
3
 
lol carl
 
4:48 PM
haha
 
gold everywhere and ass bourbon and CM offcially hating all
how big is that list now , CM
Oct 17 '14 at 22:29, by Ahmad
I stole the codeTragic joke from Emmanuel, I'm not so creative.
lol
 
I don't understand why it can't just update -.-
adapters hate me
I had an issue like this with a listadapter
 
notifyDataSetChanged()
 
just wouldn't refresh in real time
I am using that haha
 
> While some have described Rebel Yell as a "nasty" bourbon, cutting with water reduces any rough edges and brings out subtleties this whiskey has to offer.
3
 
4:50 PM
adam that wont work with pageradapter
 
That's a lie, Carl!
 
fuck google for that
 
I'm just quoting other people's reviews codeMagic
 
lol carl
 
CF hates google
 
4:51 PM
I know what you're doing. Just giving my opinion on that review
 
Oct 17 '14 at 22:45, by Carl Anderson
> come ice
ROFL
mark my internet is sucking try googling while i also search
 
I'm doing that atm CF, pretty confused atm
 
man its not good to be at hometown :(
crappy internet
 
GOT IT!
 
:/
mark what?
 
4:58 PM
Changed it to FragmentStatePagerAdapter, made the change to getItemPosition like you recommended and this time it's returning the correct new fragment instead of recreating the existing one!
Fuck yes
Thanks CF, you da man
Honestly was so stuck, after I tried your suggestion and it didn't work I thought I was fucked, read this answer on SO: stackoverflow.com/a/25677688/2411667
Didn't realise how similar they are
 
my internet :(
CM, just transfer 10mbps here also
 
just go to downloadmorebandwith.com
 
well mark told you that will work
but note my warning also
@codeMagic server not found :/
Because no one will fucking answer my question, I hate stack overflow, all I want to know is to click a button and people just link me to these other websites when they clearly probably know the answer to my question, they are just being smug and linking me to another website. I wanted to ask another question in hopes of getting a different crowd, a different section of stack that will actually fucking help and not link me to these online chapter books like I'm in school. — Chris K 1 min ago
 
Right home time :)
 
bye
 
5:11 PM
See ya, Mark
Lol, CF! So, I guess he's a bit angry
The website was meant as a joke :P
 
yeah
why is it SO is sucking and youtube is working without buffer
does SO chat is so heavy
even gmail is working fine
 
o/
 
wait it was 25 before?
it was always 15 for me :(
more loss of rep
 
no, I just remembered it that way because it usually came with an upvote
and I haven't earned any rep in like 3 months
 
5:26 PM
well it was always 15 for me as i said
 
yeah I looked at my history and it was always 15
 
but accept should give more rep anyways
maybe its time to change 15 to 25
i just confirmed it was always 15
 
5:39 PM
-3
Q: Why my Code doesent work;

Lucas BörnerI would like this if the button click then the variable (int) is to be enlarged. public class GameActivity { int value; Button button; @Override protected void OnCreate(Bundle savedInstenceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_game)...

 
lol
o/ raghav
 
o/ nath
 
how ya doing cold?
 
5:55 PM
i am good apart from my internet sucking
wbu?
how is the new company suiting you
 
so far so good
seems like a nice fit
no drama
lots of work
 
^ the dream
 
unless you are Kim Kardashian
 
lol dave
 
6:06 PM
@flakes agreed
 
6:19 PM
TIL {'a', 'b', 'c'} in python automatically translates to a set
also unrelated, pramp.com is really nice.
 
6:38 PM
unit tests that use context/resources are going to be the absolute death of me. stupid gradle.
 
don't you mean integration tests? /pedantic
 
dave, can i have your china team to hack on this until it works?
 
sure, the app developers are probably still unemployed
 
lol
 
just use users as your testing platform and call it good
 
6:41 PM
i stage my releases at 10pm central to 10% and if there's no increase in exceptions in fabric it does a 100% roll out the following morning... i always use my users as testers ;)
 
The difference between unit and integration testing.
 
ha
 
hehe
 
mocking out ContextCompat.getString( just to call it "unit test" is way too pedantic for me ;)
 
syntax Error was expecting ); at the end
 
6:45 PM
mock the resource bundle and use a false set of keys and values, add them as needed
3
A: Unit testing static method which uses a resource bundle

Julius MusseauUse ResourceBundle.getBundle( String, ResourceBundle.Control ) to get ResourceBundle to cache a bundle for the given String. You can subclass ResourceBundle.Control to provide any type of bundle your heart desires. @Test public void myTest() { // In your Test's init phase run an initial "g...

 
@McAdam331 image not found :/
 
robolectric does that for me - it's just struggling to merge my assets / manifests properly because we have 5 modules in the project
 
ouch
 
what about expresso
 
6:49 PM
doesn't seem to be a problem for espresso to find resources
 
7:03 PM
nice adam
 
7:31 PM
what is the easiest way to make textview glow?
 
Buy a note7 and wait for it to explode
 
^ lol
 
lol
 
define glow
 
for other phone i am asking
 
7:32 PM
hahaha then not sure :p
 
glow normal english word?
what other glow is there?
 
yes but do you want an animation
do you want a border with gradient
 
no animation
 
what do you mean by glow?
 
i just want text to glow
like in the gingerbread music player
 
7:33 PM
like more than white text on black background?
 
yes
at first i thought it was some color
then i got its glow
you cant get that effect with color only
 
set the shadowColor and shadowRadius
 
does it hurt performance too much?
 
idk, it's an xml property so I assume a lot of it is handled early
 
i heard that performance is hindered with shadowcolor and radius
 
7:36 PM
the other option is to convert the text view to an image, generate a path based on image analysis and apply the glow yourself
 
ok let me try that and see how much performance it impact
hmm, the other option is not feasible for me
 
lol yeah it's way too complicated
and probably the same as shadowColor
 
maybe the performance was poor on old devices
since they were crap anyways
 
if it's static text there shouldn't be a problem
 
it is RV
 
7:37 PM
dynamic text where it needs to be drawn over and over again like in a EditText may cause more of an issue
 
that is why i was concerned about performance
 
RV?
 
scrolling shouldnt affect
recyclerview
 
ah
yeah it should get drawn once and cached
you should be fine
 
aah yeah, viewholder FTW
 
7:48 PM
meow
 
who here is good with Big O?
 
paging @carl paging @carl
woah
that was fast
\o/
 
lol
what's up?
 
7:52 PM
can you explain me some stuff pls
 
maybe
 
so I always thought if you do x and then y it's O(x + y)
right?
 
yes
 
maybe
depends on what x and y are
 
so what if I sort an array and then do a linear search through the array
 
7:52 PM
if x and y are the same degree of complexity
 
why is it O(n log n)?
and not O(n + log n)?
 
nlog(n) is the sort complexity
n is the search
 
sorting itself is O(n log n)
 
oh wait I thought sorting is log n
 
thats some good sorting right there
 
7:54 PM
oh wait
ugggh true
 
:p
 
> For typical serial sorting algorithms good behavior is O(n log n)
 
so it would be O(n + n log n), but O(n log n) is the dominant term?
 
yeah it's nlogn because the complexity of the linear search is washed out by the sort
 
7:55 PM
awesome :) ty ty
 
right, the O(n) drops off, because over time the amount of time the operation takes grows on the O(n log n) order
 
gotcha!
 
but it would be faster to search as you sort
I think
 
yeah^
 
you mean merging both operations into one?
 
7:56 PM
yeah, you're already iterating over the elements
 
yeah
 
might get too complicated for this specific interview question
 
so if you know what you are looking for you can save the result
 
Sorting generally goes over every element at least once, so kinda
 
if you're already searching for something, why would you sort it first
 
7:57 PM
Unless your search is something weird, like 10 shortest words in a list
 
true
 
any recursive sort should hit each element at the terminating condition
 
Maybe you need to search a dataset multiple times
 
sorry meant to say linear scan, not search
 
So sorting speeds it up for the rest
 
7:58 PM
yes, linear scan is O(n), and if you're looking for something specific, sorting doesn't usually make finding it faster
 
not unless you use a hashmap
in which case you can lookup in O(1)
typically
 
unless he does binary search, carl
 
it was this interview q
really easy actually
 

« first day (2201 days earlier)      last day (2748 days later) »