« first day (2459 days earlier)      last day (2706 days later) » 

08:00
@geisterfurz007 no! Flip all the tables! (╯°□°)╯︵ ┻━┻ ︵ ┻━┻
@SusHill An int has no commas in it
Good day @MadaraUchiha ^^
What you're probably seeing is a string with numbers in it
@geisterfurz007 hOi
┻━┻ ︵ \\('0')// ︵ ┻━┻ FLIP ALL THE TABLES
^that
08:01
How are my favorite people working with my not so favorite language? <3
@geisterfurz007 can you show me your decrease declaration pls
first of all, lets avoid any misinterpretations, @SusHill are you talking about a "decimal point" or about a "parameter separating comma"?
@MadaraUchiha but the one who has written question says, theres a way for that to run
@SusHill What's the exact wording of the question?
08:01
use varargs
Just that boring :D
i am talking about the paramater searating
21 secs ago, by Madara Uchiha
@SusHill What's the exact wording of the question?
@geisterfurz007 ┬─┬ ︵ /(.□. \)oooops!
08:02
xD
@MadaraUchiha I cannot paste my question here.. already got 2 warnings
@SusHill using varargs, you can pass in any number of parameters that are bound to your parameter type, in the function itself, the usage of this parameter is done equal to an array
where can i paste it ?
@SusHill you can phrase the question. You can't dump a copy-pasted chunk
08:03
@Tavo (╯°д°)╯︵/(.□ . \)
@geisterfurz007 (/ .□.)\ ︵╰(゜Д゜)╯︵ /(.□. \)
@Tavo Now I am starting to get heavily confused...
@geisterfurz007 ok, let's put everything back (ノ^_^)ノ┻━┻ ┬─┬ ノ( ^_^ノ)
:D
mmmmmmmm JavaFX bindings are best *-*
08:04
@SusHill the question contradicts itself
No more pesky application restart \o/
if I use the same, i get this : Wrong 1st argument type. Found: 'void', required: 'java.lang.Runnable'
@Wietlol it is the exact question that was on paper
@SusHill do an Integer.parseInt(input) and catch the exception
but apart from that, to make the function with 2 parameters run, you either need an overload with 2 ints, or a varargs parameter
@SusHill then that is an invalid question
the signature "method(int)" can NEVER take in 2 parameters
08:05
@Wietlol method must have two int values yea
3232, 6 is not a number
thats not what the signature said
so the question is wrong
true
well, it doesn't state that he can't use a second method to deal with the call with two parameters
although I'd say it's confusing
08:07
@Julo0sS You have to do () -> decrease() to have it as runnable
because this example maxOccurDigit(3232, 6) contradicts the signature
"Write a function"
how is that not clear?
its 1
one
uno
@Julo0sS Or this::decrease but Tavo beats me up if I actually suggest that °-°
@SusHill you could make a second function "method(int a, int b)" that just returns -1
The lambda/method reference makes it runnable
08:08
@geisterfurz007 >:(
AAAAARGH
@Tavo I cant change any thing in main method, so for passing 2 integers in another methods doesn't help
runs away far far away
or make a function "method(int... a)" that checks for the length of "a" (as "a" is an array)
@Wietlol that changes the signature
08:09
I know
I already said that the question is invalid
and that there is no answer to it
@SusHill anyway, I feel you should go back to your professor and ask him
Is it a tricky question or false question ?
that would solve the problem
false question
@SusHill rather false than tricky...
it's not tricky. It's not clear
08:10
in java, this is impossibru
then he should be punched.. I already spend one whole nights for this question
@SusHill go to your teacher and hand in as result that this is not doable and collect points :D
@geisterfurz007 catches him and beats him up badly
"one whole nights" 0.o
08:11
@Tavo Ugh.... I actually changed that part in my code to a lambda and not method reference :D
lol
@Wietlol :D
my (old) teacher would punch me in my face... but that is because i return 90% of the questions as false
hahaha
@SusHill and actually your function could never return -1 from a logical point of view since you have to give an int as parameter which implies there is a least one most digit (well you might be able to pass null)
08:13
@motaa If there are two with the same count of appearing
3232 would return -1 because it is not clear which one to return
stream.findAny :D
or sth :D
SubSection: -1...
Think I messed up somewhere...
StackTrace says yes xD
@geisterfurz007 i tried with 3232..it returns the higgest repeted numbers
well the question is not about which one if both are there
08:14
it would return one of them
I understood "if there is no number that occurs the most then return -1"
@motaa you cant pass null as int
null from Integer will result in npe
And in 3232 there is no number occuring the most
@Wietlol thanks for clearing that up :)
absence from Optional<T> is some weird ass exception
08:15
Because they occur both two times
is try-catch block a bad practice? i heard my friends talking about it just now.
Nope you actually need it
@geisterfurz007 of course there is since you are comparing and you gotta start somewhere... so when at 323, 3 is the most, now you add 2, still 3 is the most since 2 does not occur more often
@AceVez no it is standard
@AceVez try-catch is fine, which throwable you catch is something else
something about clean code
08:17
@motaa 3 occurs 2 times; 2 occurs 2 times. neither of them occurs more often than the other. So there is non which occurs the most.
checked exceptions are imho also good, but iirc, java will not "support" them any more
Why should it matter where you start?
And in 2323 the "most occuring number" is 2?
@geisterfurz007 well ye you would have to check if your "currentmost" count equals sth else's count and then return -1 :D
anyways I am happy that my SeriesReducer work nicely :D 840 datapoints reduced to 47
and my linecharts look smooth :D
08:21
Memory says thank you :D
Do they extend smoothly now as well?
no they don't but that is not important
@geisterfurz007 currently looking like this imgur.com/a/bk6du
now its time to pack the curvesmoothening into a seperate task
@motaa what is it for?
it will look way cooler when all the functionalities are done
@Wietlol for a course at university
08:29
gotta present it next week
tomorrow I got a written exam in that course _D
"that course"
I should start learning the theory and stop coding :D
maths?
08:30
Theory :/
@Wietlol GeoSensoring
well I am that far that I can connect any number of Sensors to the arduino, add them in my properties file and the charts will be build up on that
Good job!
and as I said previously the important thing is that everything runs smooth at at least 100HZ
08:33
at my last internship, I made a website for analytics
all using libs like chart.js and stuff so I made nothing interesting
but you should definately have it working with just a set/multiple sets of numbers
morning
Evening
SAYROS \o/
saywhat?
08:34
\o
.(~^-^)~
~(^-^~)
~(^-^)~
hey just need a quick suggestion:
how to convert a binary like this:
1011
101
1
10
you have to be kidding me :D
Hard to tell...
Because that makes absolutely no sense
Without any instructions...
08:36
ie remove last bit each iteration
>>
>>>
Oh in that case you failed somewhere in there
lol
Or the chat is just messed up for me...
08:37
same here
You got 4, 3, 1, 2 bit(s) as well?
@hemant_ what have you tried?
Was just about to post a screen xD
@Tavo I want to solve it using bit manipulation
@hemant_ try bit shifting
08:38
ok, but where's your actual code?
thats where i get confuse to remove the last bit in 9 (1001) => 100 => 10 =>1
"@hemant_ try bit shifting"
@Wietlol I hv no idea please elaborate
yep
@Wietlol For quotes you might as well want to try > in front of your message ^-^
> like this
thanks
np
the number of people that have never used bit manipulation in Java is incredible
haha man and I wanted to write the decimal values corresponding to the bits haha, then I figured oh wait it's about sth else :D
@Tavo absolutely true! Most don't even know what that is :D
what is bit manipulation?
@Wietlol shifting bits right and left :D
08:43
@motaa well, not just that
@Tavo True... I should do more with it...
ooo
noice
a&b doesn't shift anything anywhere
@Tavo I have to admit I learned it 10 years ago in highschool but never used it ever since :D
^
Well not 10 years ago, but only about... 6 months or something
08:46
ahahah
For me there is no real usecase for it :/
extremely fast operations
pliz no trout
ahahah
@Tavo that I remember
oh wait I did use it a few months ago in R
08:48
@geisterfurz007 i.e: odd/even numbers
last bit set
or flags
oh yeah! nice memory refreshing :D
flags are nice
most of the times I've used them, it was for flags
08:49
odd/even i ussually use a%2==1
@Tavo So for example I have a code that will always have even numbers and you can add a flag with the last bit?
on a side note, odd/even doesnt just work with last bit right?
you can check if numbers are even with this mask: (value & 0x1) == 0
or does it
i forgot how negative numbers are stored :D
man you now brought me to reading a tutorial about bit manipulation... and I should start reading my course scripts :D
08:50
reading 0.o
well it's geosensing.... it's all about collecting data and doing sth with it
@Wietlol Take the bit representation of positive number, reverse all bits and add 1. Should end up with a 1 for odd negative numbers :D
* as last set bit
I have to know how to calibrate, calculate a simple stdv
there might be a question where he shows a file and will ask what type that file is :D
answer would be: csv but actually it is a tsv :P
tab-seperated?
if it actually is X and the answer is Y, then the answer is wrong
08:53
@geisterfurz007 ye
what does the "v" stand for?
vile?
value
oh wait haha
08:54
dangit xD
it actually is a text file :D
the format is tsv
utf8?
bla :P
we got it @Wietlol
no its asci!
bleh
since the arduino sends plain ascii in my case _D
08:55
make it a protobuf file
lets keep it simple since I only want to parse bytes coming in non-blocking
Why not a database?
Or better even three of them?
for what? :D
404 databases
one for each file
everything!
08:57
with a table for each graph
ooooo its amazing
Exactly!
And table 405 for 404 table not found error
and pls make it couchDB's
wait... its your assignment
you make it couchDB's
haha :D
@geisterfurz007 since you now work with fxml, got questions for you
on the way you do your stuff

« first day (2459 days earlier)      last day (2706 days later) »