« first day (1320 days earlier)      last day (3853 days later) » 

00:00
You called?
KORAL!!! <-- Rick Grimes called as well... O.O
Good morning guys!
man
such retards
seriously
a former colleague of mine
00:09
What should we do with him
I don't know
castrate hims
so he doesn't have children
That's brutal.
I've been trying to debug his mapping function that maps db columns to output json field
couldn't fix it much
wrote my own in 10 min
works perfectly
x10 faster
2000 records mapped in 0.45 sec with mine and 5.15 with his
that is a single request
Yeah as far as I can tell you've gotta do that yourself.
castrate him?
of course I would do it myself
but yeah
in general
I have to see tomorrow how I would update all the shit that is using it
maybe there is something special that I am missing
hope not
works fine with 2-3 modules i tested with
00:18
oops...I got another enemy
http://stackoverflow.com/posts/comments/36801225?noredirect=1
heh
bold mofo
he has to swallow his pride and learn how to do it properly
Again, how hard is it to add a simple fucking explanation?!?
it's hard man
trust me
In over 1300 answers, I haven't had any trouble
Hey Code
Anybody here play with VMs?
00:32
nil does
I am not such a perv
What's wrong with being a perv? :P
haha
Nil is AFK...
Go hunt him down in NSChat
NSChat?
00:42
It's an iOS chatroom that he hangs out in
I think he's an owner also
00:59
@codeMagic grats
man total bullshit I say
haha...thanks, Code
01:23
Errr, sorry @zigi. Chat hadn't updated after I opened my laptop, I was replying to @Emmanuel from earlier :(
@CarlAnderson Only just saw this notification, oops. Seems a bit like twitter.com/gitlost
gonna switch my baseball card app to fragments...
I sure hope these changes still pass my regression tests
probably not, though
02:15
well, making a little bit of progress here
Android JUnit tests take so flipping long to run...20 minutes for my whole suite
That's a lotta tests.
well, maybe closer to 10...I dun remember exactly. Still a long time to wait.
Did you also test your database?
not really...only 69 tests, but many of them are instrumented, so they take a long time.
yes, I also test the database
Like adding an item to it?
It still feels weird testing it.
02:17
these tests are really more integration tests than unit tests
yes, adding, updating, deleting
How do you check the adding part? Like if it returns the last inserted id?
the tests for the ContentProvider are relatively fast because they are true unit tests. The tests for the activities, though, are flipping slow.
I have a utility class that queries the database and checks every row.
Hmm okaay
What exactly is an integration test?
Thanks for the link, this would really help. I'm kinda stuck in this hole, and unit testing is still weird.
02:20
integration tests check that pieces of the app work together correctly...such as one activity calls startActivityForResult() and check if the correct result comes back.
the second activity might work correctly in isolation in a unit test, but I find that it doesn't always mean it cooperates correctly with the first activity.
in fact, I have a bug in my current version on GP because I was too lazy to include an integration test for a particular interaction between two activities.
I don't know if I'm doing it correctly but, I'm using more of ActivityMonitor and performClick() stuffs.
And more of an assertNotNull() and assertEquals()
I use ActivityMontitors as well.
Have you tried to use Robotium?
Yeh! But I'm having trouble with it before on my S4
So I went back to JUnit.
Do you also write tests for SharedPreferences?
02:30
What trouble did you have with it?
I don't use SharedPreferences in my current app, so I haven't had to test them.
Some button wouldn't just click. But I'm considering giving Robotium another try.
Did you encounter that kinda problemo?
I've encountered all kinds of problems with testing, both with JUnit and with Robotium.
So you're using both currently right now?
Kinda mix it together thing.
yes
I've converted a lot of tests to just robotium and use it for new tests as much as possible.
Really, I'd like to give it another try, while looking at your github code.
If that's not a problem to you, and you're there to help me out. =)
What context are you using? RenamingDelegatingContext?
02:38
I haven't quite figured out how to use a mock context in my tests.
Most of my tests are subclasses of ActivityInstrumentationTestCase2, so I can't inject a mock context anyway.
Feel free to browse through my github for ideas.
that's one reason I have it up there.
Well, my database test is a subclass of AndroidTestCase, so it's just like RenamingDelegatingContext context = new RenamingDelegatingContext(getContext(), PREFIX_DB);
and I'll field questions if you have any.
Man, I think you just saved my whole week. haha
that sounds like the right way to do it.
glad I can help ;-)
what's your app?
It's secret for now, but it's more like a Vine
02:41
okay
gah...one of my tests takes 111 seconds to run!
weird...
02:58
What happened?
My onActivityResult() is getting a unexpected value for the requestCode.
Is that during the tests?
I should test that part of this code I guess.
░wow░░░░▌▒█░░░░░░░░░░░▄▀▒▌
░░░░░░░░▌▒▒█░such post▄▀▒▒▒▐
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒
░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒
03:12
I have a main activity with a ListView and an ActionBar item that starts another activity with startActivityForResult(). The result of the second activity should change the items in the list view (it filters them), so I test that the changes are what is expected for certain input in the second activity.
@FoamyGuy You around?
this.startActivityForResult(new Intent(this.getActivity(),
                FilterCards.class), MainActivity.FILTER_CARDS_REQUEST);
This looks right...yes?
Looks good
if (requestCode == FILTER_CARDS_REQUEST)...
this if statement fails in onActivityResult()...
Did you log it?
request code is 655xx something
ran it in the debugger
And your ListView did you like notify data change something?
03:19
no
I am sort of around
didn't get that far
just looking for rubber duck debuggers, if you are available ;-)
room 15 is my rubber duck
If you say that your onActivityResult() reach on that request, then you should notify ListView
I would if it thought the requestCode was the expected one
03:21
It returns correctly sometimes but not others?
Maybe your context?
Or something
afaict, it doesn't return the expected requestCode at all.
ever?
currently I only have one request code
in your second activity, is there a setActivityResult()?
Im not sure if that's the method
03:25
    this.setResult(RESULT_OK, intent);
yes
Ahh that one. Looks good
shouldn't matter, though. The requestCode should be the same whether the resultCode is RESULT_OK or RESULT_CANCEL
Is it the same request code every time?
that it returns back to you?
yes, it should be.
atm, I only start one of my child activities with startActivityForResult()
03:29
41
Q: wrong requestCode in onActivityResult

DimanoidI'm starting a new activity from my fragment with startActivityForResult(intent, 1); and want to handle result in fragment's parent activity @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d(TAG, "onActivityResult, requestCode: " + requestC...

maybe that is relavent?
thanks, I'll look at it
Ahhh! I had that error way back using Fragments.
That solution was correct. Wait, lemme see if I did an upvote.
also you probably shouldn't need to use this.startActivityForResult(), anywhere that that works just doing startActivityForResult() should also work.
ahh...well, that makes sense because I'm changing my app to fragments
Then you're fine now.
03:31
I like to use this so I easily see member variables and methods.
ah
that is probably the deal then
Sounds neat.
getActivity().startActivityForResult() seems like the easiest solution
does Fragment have an onActivityResult method? hmm...
well fuck me!
I'd much rather get the result in the fragment anway
ok
scratch what I just said then ;-)
as long as you make sure to start, and handle from the same thing, either activity or fragment you should be fine.
03:36
I think that is something Google should look into.
thanks for the help, foamy
guess I should lrn2google
time to run my test suite again
now
I am going back to the comfy bed
gnite
Good day android programeers
Howdy, Laux
03:51
Howdy @Code-Guru you seems happy today
I got some motivation to make some changes to my app. I seem to be making some progress, I think.
Good for you, not as me I think I'm getting depression her. Still working on this app
hey @Code-Guru! Looked through your code, is it always necessary to declare new object every tests? DatabaseUtil dbUtil = new DatabaseUtil(this.inst.getTargetContext());
04:06
can you link some examples?
it probably isn't necessary...not sure where exactly you mean, though
I could probably clean it up a bit and create the instance during setUp(). Is that what you mean?
Yeah cuz I declared my SQLiteOpenHelper global and if I call a method, it deletes the entry.
So I'm wondering if I should follow your style.
I think your solution's way more better.
I use DatabaseUtil to avoid working with my SQL helper directly during testing.
Right. That's why I'm asking if you tried declaring that object global in your test suites.
what do you mean global?
as in static?
I rarely use static variables in any of my code, especially tests because I want a clean slate to start with. Static variables might be dirty from a previous test run.
Sorry, I mean global inside the class.
04:33
as long as you recreate the instance in setUp(), it should be the same thing
I know. Nevermind, I'm following your style.
which test are you looking at?
BaseballCardDetailsAddCardsTest.java
Yeah it turns out @Code-Guru, your style worked.
04:40
I might clean up that repetition. Personally, I prefer to have a single instance variable for something like that and initialize it in setUp().
No don't. It will delete the previous entry.
morning, Lalit
what do you mean?
what previous entry?
If you add items in testAddOneItem(), then you call SQLiteOpenHelper object again in testAddMultipleItems(), it will delete the entries in the previous method.
I just tested it here. So,
that's exactly what I want
Yeah, my mind state is not still in the JUnit. Sorry
04:43
I definitely don't want items added in one test to pollute the results of another test.
In fact, I'm quite careful to nuke all data in tearDown()
@LawGimenez Check out DatabaseUtils. It has some nifty utility methods.
I especially like createDbFromSqlStatements()
hmm...I'm seriously considering reinstalling Linux on my laptop...
if I do, I'll be down for a day or so
well, I'm off to bed
ttyl
05:18
Yeah! This is my first time trying out testing the db, I kinda thought that the object persists throughout the lifetime instance of a class.
In fact, it only lives every tests method. I kinda get it now.
@Code-Guru Thanks! I'll look into it.
hi everybody?
I am using AsyncTaskLoader.how i can understand onLoadFinished run after onSaveInstanceState or no ?
user457812
06:19
Had to murder so many spiders today
user457812
Including one rather large one
user457812
Don't care what it was, it was in the bathroom and I had to shower and it had to die.
06:46
np @AdamS
why did you kill the itsy bitsy spider
user457812
07:02
You and I clearly have different ideas about what "itsy bitsy" means.
user457812
07:12
Well, at least I kept my 5-day github streak.
user457812
Barely.
07:23
I think I haven't skipped a day for the past few months
but I use bitbucket unfortunately
I have to transfer
amazingly a chrome tab with SO chat takes like 150MB
Do you guys push to github everyday? Or weekly?
Or is pushing everyday is just too much?
user457812
Varies.
user457812
Sometimes I only push when I think the repository won't be left in a weird building-but-not-working state.
Morning
user457812
Unless it's already like that, then I push with reckless abandon
07:37
Pushing to git everyday, gives me some kind of peace of mind.
user457812
As programmers, we all have hammers and code is our weird, slightly bent nail.
But looking at the Network on my Git repo, I'm very much ahead of the race.
user457812
Yes, the one-man race that is most fork/branch graphs.
Yeh, I dont wanna give some kind of meaning to my fellow devs.
But anyway. Probably I'll just commit everyday. Then push twice a week. Cool
07:57
0
Q: R.Id.gallery1 cannot be resolved or is not a field

user3682633 package com.pragi.gallery; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickLi...

omg he is getting sentimental
08:32
The following conversation I had with a colleague of mine:
Me: "Why aren't we using thread safe php?"
Colleague: "Cause SQL Server doesn't work with thread-safe driver."
Me: "That's not true it runs after versions 2005.", and I send him some links.
Colleague: "Yeah but I prefer Mircrosoft's driver, we have tried with other drivers and we have problems with the dates."
Me: "What kind of problems?"
Colleague: "Returns a DateTime object instead of string"
I am like *facepalm* at that point of the conversation
(see full text)
08:56
lol
ahaha so, so true
09:13
0
Q: Link to http or https

jyoonWhile adding a hyperlink to another site (which has SSL), the site documentation sometimes say to link to the http:// link instead of the https:// (e.g. Play store). They do not matter (as they function normally), but would there be a reason to link to the http:// instead the https://?

Ahmad about my chat message yesterday .. AR mean Augmented Reality
So i m looking to some resources (git projects, books, youtube .. ) in this field
09:34
-1
Q: Why the ListView displays only the first item added

AmrI have a mainActivity, in its layout there is a listview and fragment. I populate the listview with values as shown below in the code. But when I run the App. only the first item appears as if the listview is populated only with a single item. Why that happens? MainActivity_implements_OnItemSele...

 
2 hours later…
11:17
Guys, do you know any good library which is similar to the text from picture recognition Google Translate App is using
an OCR lib?
yeah
11:28
hm ok, I need OCR lib for android which provides you the possibility to select parts of the text and returns that text
that works for android as well
\o
alter table mytable add column newcolumnname text
Tesseract?
11:32
is a valid sqllite statment?
I played with one once, zigi
that allowed you to shrink or expand a box to select the text you want
Greetings all
@Emmanuel
tesseract?
^---- Google is starting to BUILD cars!
Morning Zigi
I do not remember its name...
11:41
haha so mean
morning Karl
I'll be there!
I tried looking for it Zigi, but I couldn't find it
This morning, I realized that electric cars have become COMPLETELY viable! [Provided the tech is installed]
Completely viable, meaning non-stop for energy from Calif. to New York!
if you can achieve that Karl, you will be a bazillionaire
or be hired by Tesla
11:43
Karl, do you mean from Cali to NY without recharging?
where do I start explaining here...
0
Q: updating fragment screen from a listener service

user3673818im trying to have one of the tabs in my fragment adapter to update with incoming messages, after studying a bit about fragments i saw no reason i should not be able to do so, but seems that fragments have strange behavior . here is the fragment : public class GamesFragment extends Fragment { p...

Not really, just not needing to stop for energy.
so how do you charge your car then?
through wireless energy?
Have you heard of the Solar Road Project?
yes
how does the solar road charge your electric car
11:47
If we simply combine that, with those wireless chargers, they can "charge" the cars as people drive on the roads. They are claiming all the highways in the U.S. would generate 3x the power currenty used by this country, so the rest can be "beamed" into the cars directly above them.
ok, first of all, do you know what type of wireless charges, through induction?
Hence, keeping the cars from needing to stop for recharging.
Standards would need to be agreed upon.
The tech exists!
It does not
We COULD do this...
11:49
and the Solar Road Project is far from coming to reality
We have workable tech.
If the tech was remotely there
It just needs to be applied
you would hear on the news that a major contract was given to so and so company
Dude, it won't work, because not everything is that easy
Not saying, that it would be cool, if it would
We're just far from having something like this
11:52
There are a lot of interests involved
If we had people from all three groups actually working together, we could start building this. The tech exists. We just need to merge the three together, and hammer out the kinks.
the Sheikhs are not gonna be happy that their oil so becoming cheaper
Big-Oil is the biggest interest
Oil will probably never go away. We use it for so much more than gasolene/diesel
"Oil will probably never go away."?
11:53
What do you mean oil will not go away?
it is a limited resource
You know what natural resources are right?
And these natural resources aren't endless
^
hence the whole movement of alternative energy
why people want to come up with solar roads?
It's a good idea, but it won't work in reality
We have more oil under North/South Dakota, than every other known oil source in the world combined.
because roads are dirty and the solar panels aren't efficient enough
11:55
I was referring to demand for oil.
North/South Dakota?! okay then
someone better not tell the US government
they'll invade the shit out of that
There is a lot but not enough
Well, it extends into Canada. It's all under protected land [for now], so it's not being touched right now. Nobody will care about protected land if that is the only viable source...
I think the Dakota's represent less than 40% of it's size. It's just flipping huge!
this conversation is none sense, I am out
I am too.
12:39
Morning folks
Humm seems I'm the only one here. Everyone else must be coding hard all day everyday.
nop
I am here
I was just pushed away by Karl
12:52
He scared you off?
Huh, I see, there's a conversation up there.
hey codebot
what's up?
Yeah TL;DR haha
Hey Ahmad.
Not a whole lot, later today I get to show my first client my first app.
I'm excited, I feel so legit.
whoo \o/
nice
good luck :D
Thanks, I'm sure it'll be fine. There's some polishing to be done before the release, but it's a rather simple app.
What's good with you?
@CodeBot3000 Or, eating breakfast. Better get back to that coding thing soon though.
Oooh good luck with your first shwoing!
12:58
google's self driving car
Thanks!

« first day (1320 days earlier)      last day (3853 days later) »