« first day (3064 days earlier)      last day (2101 days later) » 

00:00
Physician: One upon whom we set our hopes when ill and our dogs when well. -- Ambrose Bierce (source)
 
4 hours later…
04:00
farts
 
2 hours later…
06:09
@KarelG definitely not dark. Too tall perhaps
 
1 hour later…
07:28
@Tavo went into some mead ? A 2 days delay
tsss
and a happy PI day everyone
2
work and job interviews. Too much stuff going on
but happy pie day!
this place is worse than walking barefoot through Mordor
o.O
Singapore goin' nuts?
G'day o/
@KarelG Did something happen in Singapore?
07:52
I'll just put this here: @SuppressWarnings("unused") int unused
08:01
Ok.
What have I done?!
I don't know, what have you done?
I don't know either!
Zoe
Zoe
Dang it @Mic!! Stop making geis do stuff like this!!
08:19
ಠ_ಠ
08:29
@JennaSloan ( ͡° ͜ʖ ͡°)
( ͡~ ͜ʖ ͡°)
ಠ_ಠ
( ͡ᵔ ͜ʖ ͡ᵔ )
( ͡ᵔ ͜ʖ ͡ᵔ )
ε=ε=ε=ε=ε=ε=┌(; ̄◇ ̄)┘
08:33
@JennaSloan lol awesome IDE , what you using?
@ColdFire Eclipse
figured
It had some quick fixes below that which could fix the problem with one click
pffft
I have to wear some protection eyewear when I use Eclipse because there is a general consensus that watching at an eclipse is bad for your eyes.
Not if it's a lunar eclipse
08:42
still an eclipse
It's not bad to look at an eclipse, it's just bad to look directly at the sun.
no. you have to praise it !!!
PRAISE THE SUN!
morn
morn
ಠᴗಠ
I see ascii fun was going on
( ˇ෴ˇ )
08:46
@KarelG Why? You only see it for less than half a year each year
@Hans1984 not ascii
its ascii emojis though
not ascii??? #=(•̪̀●́)=o/̵͇̿̿/'̿̿ ̿ ̿̿
not ascii ??? ლ(ಠ_ಠლ)
Jenna, you had a nice link to new "Java versions" a while back, can I see that again, if you understand me? :9
I have to admit that I know some ascii unicode emoticons, but these are 18+ because of Tinder ...
08:48
oh those kind of asciis
Unicode characters means not ascii
( ͡° ͜ʖ ͡°)
that is correct
fair enough
a haskell dude appears!
08:49
(̿▀̿ ̿Ĺ̯̿̿▀̿ ̿)̄
*run*
a wild haskell dude appears!
btw, emojis are not emoticons, and vice versa
(ง •̀_•́)ง ผ(•̀_•́ผ)
٩(- ̮̮̃-̃)۶
08:56
ʘ ͜ʖ ʘ
:O
( ⌒o⌒)人(⌒-⌒ )v
I rather not post a gigantic catmoji this time
(´ ͡༎ຶ ͜ʖ ͡༎ຶ )
09:33
(ง •̀_•́)ง ผ(•̀_•́ผ)
DON
DON
09:47
Is it possible to insert fa-icons into excel cell while iterating result set in jsp
can anyone tell me ? what s the mime type for rdata files?
Searched on google and got this as the mime type : application/x-gzip... unfortunately, it didnt work for me
Regex.fromLiteral doesn't do what I thought it did
figure that a Kotlin tutorial said it was the same
what??
cool gzip works
10:10
Great
Zoe
Zoe
10:35
1 message moved to Trash
@Don use a paste site
@KarelG Bad Karel!!! In this room, we praise the moon!!! :p
I have a weird performance problem
there is a select box in the view. When I don't load the data to populate that, I get the page in 500ms
but when I interact with the db, it takes suddenly 3~5 seconds. The query itself takes 0.016 seconds.
the page has other select boxes with data from db as well. That gets loaded fine.
Yo why the f*ck is there a guy called DON in here?
That's my nickname
Not okay
@Zoe I felt referenced
Zoe
Zoe
@d0n.key cool story bruh
@d0n.key no it's not
10:52
@Neil what did you expect?
and what happened?
@Wietlol I expected it to create a normal regular expression, since that's what the tutorial said
Instead it escaped everything, so it was only literally searching for the string passed
it creates a normal regular expression that literally matches the string passed into it
that means that special meaning stuff will be escaped
yes, that's what I've come to understand
func() => func\(\)
the difference is that my statement is both yours, so both the tutorial and the actual result were correct
im afraid you misinterpreted the tutorial
there is a reason why I choose to not understand words
(hint: it is not because I am an idiot)
Spring's form:options is damn slow
wtf
// whole page takes 5+ seconds
<form:options items="${model.managers}" itemValue="id" itemLabel="lastName"/>

// whole page takes 0.5 seconds
<c:forEach var="manager" items="${model.managers}">
  <form:option value="${manager.id}" label="${manager.lastName}"/>
</c:forEach>
ooooh
it is even documented. Nice.
11:13
@Zoe Yeah it is - most people online and even some in real life refer to me as "Don".
I have seen people with my actual real name in here
oh wait, that was me
/shrug
¯\_(ツ)_/¯
ya all know my first name. that does not hurt
@Wietlol They said Regex("whatever"), Regex.fromLiteral("whatever"), and some third option were the same thing
11:22
well... they are
You can see why that's misleading hopefully..
@KarelG Is it Ryan?
Regex("func()") and Regex.fromLiteral("func()") just are not
As I see it, I didn't misinterpret the tutorial, the tutorial was misleading
the same how "test" and "${"test"}" are the same
11:23
nooo..
Neil, if there are multiple methods, then there should be difference in behavior at those
in that case, they are the same in every case
otherwise you end up with obsolete functions :P
If I wrote in a tutorial that abs(10) and 10 are the same thing, with no further specification, it would be wrong
it depends on the wording
11:25
if the purpose is to instruct and teach, then it didn't do either
@Wietlol I disagree. If the wording is such that ambiguity is created and that ambiguity is not clarified, then it doesn't depend. It is wrong.
Zoe
Zoe
@d0n.key my point was that you're not the only pers named Don
How wrong it is varies of course, but if it is on the subject of what you're learning, and a tutorial to boot, it's doubly wrong
@Zoe Yeah, not anymore, since that namethief came on.
Zoe
Zoe
11:41
@d0n.key there's a lot more
Zoe
Zoe
11:54
There's a lot of Zoe's too
morn.... O
The purity of gold is measured in carat weight. The term "carat" comes from "carob seed," which was standard for weighing small quantities in the Middle East. Carats were the fruit of the leguminous carob tree, every single pod of which weighs 1/5 of a gram (200 mg). (source)
12:11
I'm not sure as to why the selection sort runs faster than Insertion sort
shouldn't it be the other way around? ( tpcg.io/vjUxL6 )
@Zoe how do you pronounce that name?
there are variations of that.
Without studying your code, under what conditions does it run faster? What's your sample size for the benchmark?
I know one that wants to be called as "Zoe" like the oe in "she does". Another one as "zowee"
a list of 100k integers
that also depends of the array
12:20
they aren't partially sorted either
there is only one situation where selection > insertion
that is when there are less swaps than "required"
it still has to go N though
true, yet it is a subtle thing
whereas insertion might stop at the middle
yeah indeed it is
it seems that you are researching algorithms. IS that for a course?
12:23
yes I have to write a paper on sorting algorithms
if so, you should be aware of "best case" + "worst case" and "average case" scenario.
then you hit a best case scenario in that example, where the selection sort wins
btw, what is the purpose of the Predicate argument?
seems that you wnat to have a dynamic comparision check?
But the sample size sounds big enough for that not being significant factor
yes that would be nice, but I don't have that much time left to go that in depth. I just talk about the average time it takes to run
and analyse their differences
Unless he's running out of entropy for generating random lists :D
I use the same integers for all the algorithms
they are in a file
12:26
ah. Yet, there is a thing that a lot people is not aware of :P
especially when going through semi-sorted arrays. Do you know that thing @wonderb0lt ?
@KarelG What thing?
branch prediction 😉
Yeah, sure
fuck CPU microOPs.
I mean I don't have to optimise on such a bare-metal level to worry about it
12:29
is that when it assumes that if the previous value was true, then the next one might as well be
if not, it goes back
But I know what it is and what impact it has if the CPU guesses wrong =)
@wonderb0lt cpu does it for you. that is the thing nowadays.
scientific experiments with so-called "random" inputs are not 100% reliable when you compare it with hard maths
@VioAriton Oh well, is the list generated with a high entropy? It might just be your data slightly favours one sorting algorithm by happenstance
to tackle it down, the experiment has to be redone multiple time. Or you can instruct the CPU to not do that
yet such CPU's are rare. My professor has two PC's with that.
you have to contact intel yourself to get that "for science"
I just read you could hint your Pentium 4 to tell it how likely it is that a branch would be used. Which sounds crazy to me
29
A: Is it possible to tell the branch predictor how likely it is to follow the branch?

Peter CordesPentium 4 (aka Netburst microarchitecture) had branch-predictor hints as prefixes to the jcc instructions, but only P4 ever did anything with them. See http://ref.x86asm.net/geek32.html. And Section 3.5 of Agner Fog's excellent asm opt guide, from http://www.agner.org/optimize/. He has a guid...

12:36
here are the first 10k pastebin.com/NM6ztfdZ
oh wait, so it's one list of 100k integers you're sorting? So your sample size is 1?
It is, I just can't paste 100k on pastebin
Oh, then the answer is easy: Your list just favors one sorting algorithm.
take for example counting sort
One run-through of your algorithm(s) is not a sensible benchmark to compare them
12:40
@wonderb0lt not sure if my professor has just a P4 processor. If he did, then he screwed me with his "special" PC
counting sort is my most favorite "O(n)" sorting algorithm
I did not check the hardware :P
I run them 100 times for 100k elements
but its speed varies based on the values, not the number of elements
and 50000 for smaller than 50k
12:40
@VioAriton 100 times with the same set of values?
yeah
well, no
well... then you are still not comparing the sets
I have an array which contains the unsorted
then I copy them into another array
after it's done
provide a set of 100k integers in order
provide a set of 100k integers in reverse order
provide a set of 100k integers in random order
provide those scenario for
- unique integers
- sets of 10 equal integers
- sets of 100 equal integers
- sets of 1000 equal integers
- sets of 10000 equal integers
- set of 100000 equal integers (in which case the ordering doesnt matter)
yeah that's what I've got
12:44
some algorithms favor unique numbers, some algorithms favor non unique numbers
some algorithms favor almost ordered collections
some algorithms work better when ran in reverse
true
that'd be selection sort
counting sort's properties are that it runs fast for non-unique numbers (the more equal numbers, the faster it is) and where the difference between the min and max is lower
so, a collection of 1 million numbers in the range of 0 and 9 would be a really nice scenario for counting sort
so far I've tested quadratic (insertion, bubble and selection) and log(quick, merge and heap)
I've got to present what I have so far in 2 hours and yeah, selection fucks me up
I've got linear ones left, but I've time after today to finish it
then I talk about them more in depth
but I don't get it since selection has to do n(n - 1)/2 operations
insertion does less on avarage
average case insertion is N² while best case selection is N² as well AFAIK
that is a notation though
-1 and other "marginal" operators are excluded
that is why I dislike big O notations
yeah true
what makes Insertion slow is that it has to compare/shift the elements so it writes to the array more times than selection
since selection swaps just once
12:56
Welp, my house just lost all of its electricity for the second time in 10 minutes
but you can turn selection into a beast though, by using a heap datastructure
which makes it nlogn
Oh, apparently it got its electricity restored
I guess I will just tell them that I hadn't have the chance to test selection and I will have them done by the next presentation.
@KarelG big o is not used to compare performance
I can make an O(1) sorting algorithm.... but it will be slow
it just will always take a similar amount of time
@Wietlol that is not how it works :P
13:01
that is how it works
there are no factors if O(1) is used
if so, then you are using it incorrectly
no
O(1) would mean that i'd be constant though
how would it be slow
because 12 hours can be constant
13:02
well, true
O(1) just says that it runs for <X> (12 hours) for both an empty array as for an array with 2 billion items
you could optimise it then by stripping of one of those Thread.sleep
I made it without thread sleep tho
(and it doesnt actually run for 12 hours)
no.
13:10
(`・ω・´)
ok google.
if I ask to search "to same controller", don't give me results with "to another controller"
grrr
what is your search query?
> spring mvc redirect to same controller
You can put a minus in front of a word or phrase to tell google to exclude entries containing said word/phrase
I just want to redirect an user from edit page to view page if he does not have access to the edit page
I thought that it seems straightforward. But it seems not :x
13:26
I'd just use PHP instead
isn't it like "redirect:/link"
Dang it @geis!! Stop doing stuff like that!!
return that from the method
@Michael You're late
how does java ee store objects in session - is it just like a singleton hashmap?
and there's a thread that checks if that session expired
13:31
@JennaSloan It's not my fault I'm still on a 56K modem.
@Michael wow, that's terrible
@VioAriton if you use ModelAndView yes. But it does not bring you to the same controller entity
it brought me to domain.com/view instead of domain.com/foo/view
that is an example. The url is a bit longer
pass the foo as well then :P
6 hours ago, by geisterfurz007
Ok.
13:46
@VioAriton that would be a problem if the controller gets moved. If that happens, the url has to be adapted. It happens that the path in the redirect did not get an update. It is just not easy. I hoped that when writing /view or even ./view would bring me to the same controller. If url changes, there is no hassle or problem of forgetting it
I think you can inject the HTTPRequest object and extract the path
all that effort. Spring should have such simple redirecting functionality.
that is what I expect from that framework in this stupid CRM
(other regulars are familiar with what I am doing atm... so yeah)
 
2 hours later…
15:32
I can inject code into injected code
I am really tempted to Ok. that message :D
Zoe
Zoe
@geisterfurz007 Cool story bro
Zoe
Zoe
<3
15:39
You are both noobs ._.
Zoe
Zoe
I'm a nerd, not a noob, noob ;)
It's spelled n00b, n00bs.
15:54
y337
Zoe
Zoe
derp xd
 
6 hours later…
21:58
dreams of electric sheep

« first day (3064 days earlier)      last day (2101 days later) »