« first day (2284 days earlier)      last day (2659 days later) » 

3:00 PM
it is there
in seoncd repo
 
@ItachiUchiha I appreciate that!
 
Failed to execute goal on project rix-java-parent: Could not resolve dependencies for project com.ikea.rix:rix-java-parent:pom:1.41.0-SNAPSHOT: Could not find artifact com.ikea.rix:rix-build-tools:jar:1.0-SNAPSHOT in nexus (XXXXXX:8081/nexus/content/groups/public)
 
@sidharthapani Maven told you everything in error message. Dependency finding error was cached, yadda, wait until cache times out or force updates
so force updates, mvn -U
 
@unserializable if the dependency is in the repo but it is corrupt, -U won't help
 
3:02 PM
@Tavo as it said ": Failure to find com.ikea.rix:rixrangedomainmodelabstract:jar:1.0 in itfrepo.ikea.com:8081/nexus/… was cached in the local repository," it should imply that dependency IS NOT THERE. Error of not finding it was cached, and it is even not attempting to find it again.
 
but i have configured second mirror it is available in second mirror
but is not looking into that mirror
 
@unserializable actually you are right. My mistake, didn't read the whole message, just the first part
the messages are pretty similar in both cases
@sidharthapani how have you configured your repos?
have you set up the mirrors and the repos?
 
yes
done both
 
then there must be some misconfiguration. Check what is different between one and the other
 
@sidharthapani Can you show us your pom.xml? Please use hastebin.com
 
3:09 PM
@Tavo ahhhhhhh
Look at you
Diggin that bowler hat
 
@ItachiUchiha 2 1/2 days to be able to use that...
@ballBreaker nope, that's not me :P
I'm the other guy
the handsome one :D
 
nice
 
haha
 
The one on the left
is that not a bowler hat?
 
nope. It's a pork pie hat
 
3:10 PM
oh okay
I obviously know which one is you..just not well versed in English hats I guess.. lmao
 
but I guess in that pic you can actually confuse it for a bowler hat
 
lmao
 
@ballBreaker the bride is the one in the middle, just in case you get confused :D
 
I didn't notice that both the guys are wearing different hats
 
3:11 PM
@Tavo OH OKAY
I thought she was the one on the left tbh
 
lmao
 
@Tavo is on an adrenaline rush today
 
no, that one is the keeper of the cat
@ItachiUchiha I'm high on caffeine. I've been drinking coffee with people all day long. No more work for me I guess
 
So you feel any different, or basically the exact same but with legal restrictions on your relationship?
 
@ballBreaker meh. My wife is as bossy as my gf, so nothing new...
also, I'm wearing a ring. Not used to that at all...
 
3:13 PM
(Also congrats man :D)
 
thanks :)
 
Ahh you'll get used to it pretty quickly
 
not sure man. I've never been married before :P
 
I've been wearing my engineering ring for about 3 years now.. took me about a week to not notice it
Now I feel weird without it
 
3:14 PM
i posted settings.xml file
 
@ballBreaker what's an engineering ring?
 
ohh yeah
Congrats Tavo
 
thanks!
 
@ballBreaker Same as with my watch... Damn it is uncomfortable without O_O
 
@Tavo They're called "Iron Rings" they are worn on the pinky of your dominant hand to remind you of your responsibility as an Engineer
Not like it really means anything, I mean if you're an idiot, you're an idiot
But you know..symbolism and all that
 
3:16 PM
@ballBreaker never heard of that. Must be an American/Canadian thing
 
A bridge collapsed in the 60s or 70s and killed like 80 civilians
It's a Canadian thing
 
And what does it remind you of? :D
 
@ballBreaker never heard of a ring that removes idiotness. It would sell millions!
 
So they started making rings out of the wreckage to remind people that your actions could have serious consequences
 
oh, ok
 
3:17 PM
does anyone have a idea of performance impact when you put a code block in try catch in java?
 
This is what they look like
not my hand
 
@ColdFire little to none
 
i dont think so much impact
 
@ballBreaker I see
 
@ColdFire There is a performance impact but something that would make you change the code.
 
3:18 PM
@Tavo lmao missed this comment
 
i have a method called twice in one second?
 
1 second is a long time in CPU land
 
@ColdFire It should be OK
 
so should i worry about it ?^
 
@ItachiUchiha did u see the fiel
file*
 
3:18 PM
@ColdFire if it doesn't throw an exception, of course
 
@ItachiUchiha ok great
 
@sidharthapani I never asked for settings.xml
 
@Tavo exception is thrown in 1/ 5000 times
i cant get the case where it throws so i am catching it
 
no, what I mean is that the impact of surrounding code is very little, unless an exception is thrown
 
yeah i got it
 
3:20 PM
0
Q: Maven could not resolve dependencies for project from mutiple mirrors

sidhartha paniIn our project we are using maven to download artifacts from multiple mirrors. When I am giving the maven build,maven is downloading the artifacts from the first mirror only.If any artifacts are missing in first mirror it is downloading from second mirror and the build is getting failed.Please f...

 
just was telling you the probablity of that
 
ok
 
I posted the pom.xml file here
 
i have approx 10 crashes in over 100k install
 
(o_o)b
 
3:20 PM
If I was one of those 10 people I would be pissed
So keep the try/catch
So I don't get angry
 
yeah
 
@ItachiUchiha can u pls go this
 
my app has now 99.6% crash free installs
in the latest version
so i guess i am doing good?
 
@ColdFire do you know the reasons for the other 0.4%?
 
@sidharthapani you haven't added the stacktrace to the question
 
3:22 PM
mostly android crashes
webview crashes
support lib crashes
and exceptional cases
also there are 3 crashes in my code
 
looks good. Have you explored alternative dependencies?
so you can get rid of a part of those crashes
 
that i havent found a solution to those
 
Realm decreases crashes by 0.4% so I guess you're missing that
 
there is no alternative sadly
 
shame
 
3:23 PM
There are multiple ways to diagnose the problem. First, download the dependency from the remote repository and unzip it to check if the original jar is correct and not corrupted in the first place.
 
lol tim i dont have database crashes
 
@sidharthapani ^^
 
also there was a gc bug before 5.0
 
realm patched that internally
 
so i have lots of crashes because of gc in dalvik
so its like wtf
the most crashes are of webview
webview is so buggy in android
 
3:25 PM
use realm-webview library
 
Out 10 minutes early o/
 
the weird thing is all my webview code is inside try and catch
and it still throw exception
 
@TimCastelijns troll ;)
 
@ColdFire so it might be an Error, not an Exception :)
 
@unserializable i am catching throwable
so everything should be caught
 
3:26 PM
@ColdFire cough.. cough..
 
@ColdFire You damn fool! Do not catch Throwable!
 
@ItachiUchiha hehe
 
It includes Errors in that case.
 
There is a reason why Error is different from Exception in Java. Go back and read your text book.
 
oh my
 
3:28 PM
cat
 
cat
 
!!home
 
lol
 
hehe
tavo is it your cat?
 
3:29 PM
i am glad there is throwable to catch otherwise exception | error
 
3 mins ago, by unserializable
@ColdFire You damn fool! Do not catch Throwable!
 
a truely book statement
there are perfectly valid cases to catch those
 
@ColdFire I agree and those should be strictly limited for debugging purposes. You shouldn't ship your code with catch(Throwable t).
 
@ColdFire no. Also see for my comments on same topic.
 
@Hans1984 alive
 
3:34 PM
no
 
it's more than what Schrodinger can say about his
 
i was refering to the gif
nvm
 
ooohhh, I misread. I thought you said 'how is your cat'
my bad
 
@Tavo Yeah most cats don't live to be 82+ years old
 
i disagree
 
3:36 PM
;)
 
@ballBreaker still a chance that it's alive
 
lolol
Reading textbooks is so god damn boring
 
true
 
The scala one wasn't so bad, because it was at least pretty interesting
the spark textbook is just brutal
 
!!urban stoked
 
3:48 PM
@Tavo [stoked](http://stoked.urbanup.com/935860) "stoked" - adjective - to be "stoked" is to be completely and intensely enthusiastic, exhilirated, or excited about something. those who are stoked all of the time know this; being stoked is the epitome of all being. when one is stoked, there is no limit to what one can do.

also, "stoke" - verb - one can "stoke" oneself out by facing challenges or by revving up an engine within oneself to accomplish(snip)
 
phew..
At last, I fixed most of the issues.
 
nice
 
<-- Proud of myself
 
applauds
 
injects bug into the code
 
3:50 PM
Bends down to thank the audience :P
 
@Tavo breh I'm super stoked to hit those gnarly waves, man
catch some rad surf, dude
 
a colleague of mine just said "stoked that you’re progressing in the next chapter of your career"
not 100% sure what stoke meant
 
yeah it's more of a north american slang word
 
nice
 
When do you head out, btw?
 
3:54 PM
@Tavo Congrats Tavo, btw!
 
@unserializable thanks!
@ballBreaker a week on Saturday
 
@Tavo Ah right on man! You getting excited?
 
@ballBreaker defo
it's going to be hard, but I hope it's going to be for the best
 
Yeah man, I'm sure you'll do great/ it'll be great
Lots of change for you, should be nice though
 
bye
o/
 
4:06 PM
o/
 
this textbook is so bad
God damn it
 
@ballBreaker that for sure
 
Textbooks are brutal enough, but this one is just so terrible with it's examples.. It'll reuse stuff from previous chapters
Like hell I would remember a function from a previous chapter
(a defined function..)
@Tavo Is the wifey moving at the same time as you? For some reason in my head I seem to remember you saying she's lagging behind
 
@ballBreaker I don't remember what I had for breakfast...
3
 
lmao if I didn't eat the same thing everday, I would say the same
 
4:10 PM
@ballBreaker no. She is contracting. Her contract finishes at the end of March, so she will come by the end of April. That way I can find an apartment and settle before she comes in
 
I'm guessing your cat will be staying with her then in the meantime as well?
 
yup
 
makes sense, moves are hard on cats
 
user6857832
Are you free now? @ItachiUchiha
 
4:31 PM
morn Java!
 
@Hemlata How was shopping?
 
user6857832
@ItachiUchiha It was fine.
 
Did you buy something or was it just window shopping?
 
user6857832
@ItachiUchiha A bought two dresses.
 
Nice :)
 
user6857832
4:36 PM
Yeah.
 
user6857832
But I went for shopping cuz I was feeling down for no reason, but when I came home back I again started feeling the same.
 
user6857832
So I'm jus tryin to keep myself busy
 
Ohh, why are you feeling low?
 
> no reason
 
user6857832
I don't know.
 
user6857832
4:38 PM
Maybe cuz I'm living alone, idk.
 
Loneliness is catching up to you.
Why don't you go and stay at some friend's place for a day or two?
 
user6857832
Most of the time I'm in college, So It doesn't makes sense to stay at friend's house.
 
user6857832
Cuz I come back home around 5pm or so, So whole day I spend outside, not alone, but idk I still feel the same once I'm back at home.
 
Change of place helps sometimes
 
user6857832
Yea, maybe..
 
4:43 PM
@Hemlata Yeah go out more
I feel the same way if I do the same thing too often
Always going to work, then coming home and being alone
 
This is the exact same reason why I travel a lot.
 
user6857832
@ballBreaker Yeah I guess
 
@ItachiUchiha I love how he just doesn't care at all
 
4:58 PM
@Hemlata Did you come up with a logic for bonus score in case of Strike/Spare?
 
user6857832
Yea, If it's three strikes constantly then the score will be calculate after 3 strikes, and the score will be 1st frame score + 2nd frame and 3rd frame (10 + 10 + 10), and 20 is the bonus here of frame 2 and 3.
 
How would you code it?
 
user6857832
Second is, If there is jus two strikes, in that case score is frame 1 + frame 2 + frame 3 (firstRoll), So it's 10 + 10 + (Whatever is in firstRoll)
 
for each frame
    if frame is strike then score += 10 + next_two_balls();
    else if frame is spare then score += 10 + next_ball();
    else score += frame's score.
 
user6857832
And, last is if there is jus one strike then it will add frame 1 (10) + frame 2 (total score)
 
user6857832
5:05 PM
@ItachiUchiha No, we don't have jus one scenario in case of strike.
 
In each frame we need the reference to the previous frame.
 
user6857832
Like I said there could be three possible scenario in case of strike, So we gotta code for all of the three.
 
@Hemlata Right, that is only true if the previous and the present frame is a strike. These scenario's are just for one frame.
 
user6857832
Yeah.
 
this textbook is so god damn sloppy
val distanceDouble = distance.map(string => string.toDouble)
val stats = distanceDoubles.stats()
val stddev = stats.stdev
val mean = stats.mean
val reasonableDistances = distanceDoubles.filter(x => math.abs(x-mean) < 3 * stddev)
println(reasonableDistance.collect().toList)
1) where the hell did "distance" come from
 
user6857832
5:07 PM
@ballBreaker That looks like functional language in java.
 
2) They misspelled the distanceDouble value
 
@Hemlata Its not Java.
 
@Hemlata It's Scala/Spark
 
There is no val/var in Java (yet)
 
user6857832
Yea, I know it's scala
 
user6857832
5:08 PM
I mean it kinda looks like it.
 
Kind of yeah
 
Hopefully things will change in Java 10
 
It's way more complicated/confusing than Java
But also in comparison, Java is about 5x more verbose
 
user6857832
Yea.
 
java 8 mixed with kotlin
 
5:08 PM
I like Kotlin
 
user6857832
What is kotlin?
 
Its a language developed by JetBrains which runs on the JVM (like Scala and Groovy)
 
user6857832
Cool.
 
Kotlin looks pretty similar to scala from what I can see on the wiki page
 
user6857832
In which class should I code strike code?
 
5:11 PM
Kotlin = Scala - Confusion ;)
 
anyway, scala isn't too bad to learn..not super complicated or confusing.. but adding spark to it.. is a pain in my ass
 
Ohh, I know
 
user6857832
Should I code strike code in bowling class?
 
@Hemlata You tell me :P
 
user6857832
Haha in bowling class?
 
5:13 PM
why in Bowling?
 
user6857832
But lookin at code it should be in frame class I guess.
 
user6857832
@ItachiUchiha Idk, I jus said. I really don't know who controls all that stuff in bowling game.
 
I haven't looked at this code at all, or have any idea about the rules or what the hell you're trying to do
But it sounds to me like you would want it in bowling, not frame
 
Go and play a game of bowling. Come back and code.
:P
 
user6857832
@ItachiUchiha Lol
 
user6857832
5:16 PM
How heavy is the ball of bowling? Lol
 
They vary
 
user6857832
I'm sure if it's really heavy then I won't be even able to throw it lol
 
There are less heavy balls (pink in colour) for girls ;)
 
user6857832
Oh really? Lol
 
I use those. Less chance of injury when you throw a ball backwards into the audience
 
5:20 PM
@TimCastelijns lol
 
user6857832
Haha
 
user6857832
How do I keep track of the frame?
 
user6857832
Or the frame in which the player is?
 
public void callRoll() {
    for (int i = 1; i <= 10; i++) {
	frame();
    }
}
 
user6857832
Um, yea.
 
5:28 PM
^^ This method keeps track of frame.
You should change the name of this method
 
user6857832
What should I change it to?
 
IDK. startRolling() or startGame()?
Or come up with something better
 
user6857832
Plus should I make variable i to global?
 
why?
 
user6857832
How about keepTrackOfFrames?
 
5:30 PM
why advantage will you get by making i a field?
 
user6857832
Then how would I able to keep track of a frame?
 
user6857832
if (strikeCounter == 1) {
score = 10 + frames(i + 1);
frames(i) = score;
 
user6857832
}
 
fair enough
 
user6857832
But I'm not sure if it gonna work lol
 
5:33 PM
Its OK. We can iterate over it if it doesn't work.
 
user6857832
if (strikeCounter == 1) {
score = 10 + frames.get(i + 1);
score = frames.get(i);
}
 
user6857832
Error: The operator + is undefined for the argument type(s) int, Frame
 
frames.get(i + 1).getScore() ?
 
user6857832
Oh yea.
 
user6857832
public void strike() {
int score = 0;
if (strikeCounter == 1) {
score = 10 + frames.get(i + 1).getScore();
score = frames.get(i).getScore();
} else if (strikeCounter == 2) {
score = 10 + frames.get(i + 2).getFirstRoll();
} else if (strikeCounter == 3) {
score = 20 + frames.get(i + 2).getScore();
}
}
 
5:38 PM
How and when will this method be called?
 
user6857832
public int setStrikeValue() {
int score = 0;
if (strikeCounter == 1) {
score = 10 + frames.get(i + 1).getScore();
score = frames.get(i).getScore();
} else if (strikeCounter == 2) {
score = 10 + frames.get(i + 2).getFirstRoll();
} else if (strikeCounter == 3) {
score = 20 + frames.get(i + 2).getScore();
}
return score;
}
 
If I score a strike in Frame 1, should I get 10 additional bonus for frame 2 and 3?
 
@Hemlata Hem
 
user6857832
@ballBreaker What? lol
 
Next time when you paste code, highlight it and then press ctrl + k
 
user6857832
5:40 PM
	public int setStrikeValue() {
		int score = 0;
		if (strikeCounter == 1) {
			 score = 10 + frames.get(i + 1).getScore();
			score = frames.get(i).getScore();
		} else if (strikeCounter == 2) {
			score =  10 + frames.get(i + 2).getFirstRoll();
		} else if (strikeCounter == 3) {
			score = 20 + frames.get(i + 2).getScore();
		}
		return score;
	}
 
user6857832
Like this?
 
yeah
It's way easier to read
 
user6857832
Lol
 
Do you not agree?
 
user6857832
@ItachiUchiha Nah
 
user6857832
5:41 PM
@ballBreaker Yes, I do.
 
user6857832
If it's a strike in 1st frame, then you'll jus get bonus as next frame
 
user6857832
Like frame 1 (10) + frame 2 (total score).
 
No. If you score a strike in Frame 1 then the bonus is for Frame 1 and not for Frame 2.
 
user6857832
Yea, that's what I said.
 
user6857832
By "bonus as next frame" I mean that frame 1 will get bonus as whatever is the score is in 2nd frame or next frame.
 
5:44 PM
yes
 
user6857832
But it's still so complicated lol.
 
user6857832
I jus wrote it, but I'm not sure if it will work or not haha.
 
I think you should first do a simpler project.
 
lol yah
 
user6857832
Nah, but it sounds interesting.
 
5:48 PM
I am not sure who gave you the bowling problem but you are still struggling with basics.
Every problem is interesting until you solve it ;)
 
user6857832
Yea, but I'm still tryin to do tho.
 
Sure, but time frame it.
 
user6857832
Yea
 
Yeah I feel like you've been working on this for over a week now?
Or what
 
Give it a day or 2. If you can finish it within the time frame, great.
 
user6857832
5:49 PM
No lol
 
Otherwise, just move on. You can always come back to it later when you have sharpen your skills.
 
@Hemlata yah you started it last monday :P
So a week, my bad
 
user6857832
@ballBreaker No lol
 
cat
 
user6857832
Yea, but it's been 5 days maybe.
 
user6857832
5:51 PM
But I started it all over tho. Plus I don't code all day either.
 
user6857832
I jus get time in the night to code, So hardly maybe 2 hours.
 
nice
 
true
 
I agree. Still IMO, you should time box it.
 
user6857832
Yeah.
 
user6857832
5:54 PM
Ok I will complete it before friday.
 
Friday? :O
 
I think Itachi just wants you to leave him alone about bowling ;)
 
user6857832
@ItachiUchiha Lol I have school on Wednesday and Thursday, So again I won't gonna get enough time to code.
 
@ballBreaker I am more than happy to answer questions. But, the fact that I am answering more questions related to bowling than programming is weird :D
 
bahah I know
 
user6857832
5:56 PM
Um, Well I know that I don't know anything about bowling, but that's not my mistake lol
 
user6857832
I jus never played it.
 
user6857832
Cuz it's more of a guy thing maybe lol
 
user6857832
Or I don't like bowling game.
 
@Hemlata It is your mistake. You are trying to build something that you don't understand.
 
user6857832
Um, ok.
 
5:58 PM
You can always play a bowling game online and understand how it works ;)
 
user6857832
Yea.
 
^_-
@Hemlata nah
 

« first day (2284 days earlier)      last day (2659 days later) »