« first day (2953 days earlier)   

12:36 AM
it's all about rust now
 
My rust skills are a little rusty
 
lel
 
 
2 hours later…
2:08 AM
Hello
 
sup sup
 
How are you?
 
2:28 AM
I'm writing my first tests :'D
wish me luck!
I finally have an opportunity of getting out of this country!
 
 
1 hour later…
3:48 AM
:'(
I'm overwhelmed :'''(
Somebody please... help me :(
 
No.
 
I need someone write a simple test for DownloadableString class
Once I see how it's done I will learn fast as a lightning
I have only 2 days to write the tests :(
I write the lib and the sample y 1 day, how it's possible that writing tests is more difficult than writing the real code?
I will spent more time reading than coding :(
The people who invented tests should be condemned to die at the stake -_-
 
> Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
 
I'ts already debugged -_-
It works like a charm -_-
Why the hell should I implement tests for such a simple thing?
 
Because tests are important
Source: I rarely write tests
 
3:53 AM
Meh... I know they only want to know if I know -_-
I'm going to start reading right now...
Luckily I will learn how to write simple tests in one day
I already spent 7 hours of internet :'(
 
No.
 
You are a negative person/bot -_-
 
No.
 
4:48 AM
How is possible that this test passes:
assert(meh==null)
assert(meh!=null)
is the universe going to implode?
 
No.
 
Did you divide by zero?
 
Sometimes I wish to have owner powers just to ban you from the chat -_-
 
You'd only ban Raghav's proxy
he's everywhere
 
4:50 AM
Yes.
 
@Mauker two consecutive assertions... yet... the test don't fail
 
Shit like that happens
 
If that happens, it means that non null can be null
and if null can be not null... then it means I'm in JS rather than in kotlin...
 
Try with assertNull and assertNotNull
 
^
 
4:55 AM
Wiiiii!
test failed!
But still... assert(meh==null) and assert(meh!=null) can't work at the same time on any respectable language...
 
assert is not part of junit
It's is part of java
 
Anyway... I un-successfully ran my first test!
Wiiiii!
Thanks! @RaghavSood/bot
I should stop saying wiii.... it subtracts me masculinity...
 
5:13 AM
LOL! How I didn't write tests before! I would save a year of my life from debugging using this stuff by now!
Why nobody told me about this before!
 
1 hour ago, by Raymond Arteaga
Why the hell should I implement tests for such a simple thing?
1 hour ago, by Raymond Arteaga
The people who invented tests should be condemned to die at the stake -_-
 
Ups... You got me :}
Hmm... I'm discovering a whole new world!
7
Q: Is there any server provides image URL for testing?

Emerald214I need a large amount of images by URL. For example: http://some-domain/image1.jpg http://some-domain/image2.jpg http://some-domain/image3.jpg http://some-domain/image4.jpg http://some-domain/image5.jpg http://some-domain/image6.jpg .... http://some-domain/image_n.jpg I need it for testing my ...

 
eLi
5:41 AM
morning guyz
 
No.
 
eLi
time to wake up @WOMP3R
 
6:03 AM
Is there any difference between BuildConfig.APPLICATION_ID and getPackageName()?
 
eLi
13
Q: Context.getPackageName() vs BuildConfig.APPLICATION_ID

ManzaI can retrieve the package name using: Context.getPackageName() or BuildConfig.APPLICATION_ID Is there any difference between those 2 ways? Is one preferred to another in particular situations? Is it safe to assume that they always give the same result? Basically, which one is better?

 
Abid Khan requested access. Rep: 666 - Questions: 70 - Answers: 25 (ratio 4:1.4)
 
6:28 AM
!reject
 
@AbidKhan you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
7:01 AM
\o
 
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!! :D
@eLi this sadly, didn't ping me :3
 
Hello guys am having an issue with the new version of **Picasso** , it doesn't display an image in `onBindViewHolder()`. This is my code :

`Picasso.get().load("http://i.imgur.com/DvpvklR.png").into(holder.profileImg);`
 
Did you try with callback. you would know its a success or failure. square.github.io/picasso/2.x/picasso/com/squareup/picasso/…
 
Not yet, but that code back then was working with a Picasso.with(Context)
But since it changed to Picasso.get()..
 
7:17 AM
i guess you need Picasso.with(Context) rather than get()
oh the api seems to have changed with the new version
 
Yeah it changed.
 
eLi
sorry womp3r
 
So I don't know how to place context in the current version, it seems the .get() gets the context by default.
 
eLi
Lutaaya try to add placeholder to see if it works
 
@LutaayaHuzaifahIdris just look at their samples github.com/square/picasso/tree/master/picasso-sample/src/main/… and also use callbacks to see if the url download succeeds. I use glide for image loading now. i used picasso last in 2015. The api has changed a lot since.
 
7:26 AM
Something like this :

Picasso.get().load(R.mipmap.ic_launcher).into(holder.profileImg);
 
eLi
load(url)
Picasso.get()
.load(url)
.placeholder(R.drawable.user_placeholder)
.error(R.drawable.user_placeholder_error)
.into(imageView);
 
Yeah you're right I had made a mistake.
Let me try it out.
The placeholder works fine
 
eLi
try any image link from google
 
Ok
I have tried it also but not working, is there a possibility of the emulator to be not connected on the network?
 
yes
try it on a real device
 
eLi
7:37 AM
try to browse something from emulator
 
When I browse in the browser, the network is working.
 
eLi
browse from emulator?
 
Yeah the browser is working, now am wondering why it's not retrieving images!
 
eLi
are u using correct url?
 
Yes check it out:

Picasso.get().load("https://i.redd.it/c8cw76gmohy11.jpg").placeholder(R.mipmap.ic_launcher).into(profileIdDetailsImg);
 
eLi
7:49 AM
use context
Picasso.with(context).load("http://cdn.journaldev.com/wp-content/uploads/2016/11/android-image-picker-project-structure.png").placeholder(R.mipmap.ic_launcher).into(profileIdDetailsImg);
 
Maybe reddit filters by user agent or some other header
Open the URL in chrome, copy as curl, and then remove headers until you find the minimum it needs to work
 
eLi
i think so
 
8:22 AM
@TimCastelijns What did i miss @ chat? I was sick for more than a week (bronchitis + sinusitis)
still not feeling well
 
@AdamMc331 what did you break in your app that i got 3 updates in a row?
:D
jsut kidding. really nice UI improvements
 
8:43 AM
Eric show him the Frikandel Pic
I'm on mobile
 
4 hours ago, by Raymond Arteaga
and if null can be not null... then it means I'm in JS rather than in kotlin...
Really
Please tell me he got the banhammer for this
 
9:00 AM
Nothing matters anymore once Eric shows you the Pic
Or you can find it yourself in his starred message about realmkend
 
^
because i can't find it
 
9:28 AM
user image
2
 
My god
The dream
 
this was the pic right?
 
Yas!
o/
I was impressed!
 
Everybody should be impressed with the Dutchies and their foods
Frikandellen 4 life
 
we were impressed
like
it was way over my expectations
and i had a lot of 'em
 
9:30 AM
hahahaha :D noice
 
9:42 AM
frikandel speciaal
I can see why they're popular
Though I didn't get to try the one with the pastry
 

« first day (2953 days earlier)