Rok Kralj

Slovenia

rok-kralj.net

Age: 22

Currently I am computer science & maths student and computer programmer. I live in Slovenia, if you don't know where that is, google it up. :)

I am a very innovative person, always searching for the way to change something for better. I have a lot of ideas, so most of my projects are for my inner child, not commercial. As a true Sagittarius I rarely finish a project, because I get new idea before I manage to implement the last one.

Yay! Ruby, Scala, C++, Qt5 & QtCreator, ScalaFX, Haskell, PostgreSQL, tabs, Arch Linux, Gentoo Linux, Gnome Shell

Nay! PHP, Matlab, JavaEE, spaces, Ubuntu, KDE

Wish for 2014: Switch from Ruby to Scala for all my work,

Github: https://github.com/strelec

Jul
24
comment scala's mutable and immutable set when to use val and var
-1 You can do += to val x: mutable.Set.
Jul
23
comment Get PHP to stop replacing '.' characters in $_GET or $_POST arrays?
Well, I just swapped it in place of base64 encode. Benefit? Nothing, apart from a little speedup. Why edit a perfectly fine solution to copy someone else's?
Jul
22
comment Get PHP to stop replacing '.' characters in $_GET or $_POST arrays?
Note: This is an edited solution which later copied my code and my idea (see change log). It should be removed by the moderators.
Jul
21
revised Parallelize Scala's Iterator
added 18 characters in body
Jul
21
answered How to remove an item from a list in Scala having only its index?
Jul
16
comment Why does exist WeakHashMap, but absent WeakSet?
@mart: Not true. BitSet doesn't.
Jul
15
comment Importing .jar files into Scala environment
-1 Next time answer the question. SBT is not a part of Scala.
Jul
15
comment Scala equivalent of python echo server/client example?
-1 This answer is so obsolete it hurts. Don't stab yourself like I did.
Jul
15
comment Is there any replacement of long double in java?
You are not able to use Math.* functions on BigDecimal. Huge disadvantage.
Jul
13
comment Scala and Java BigDecimal
It is not equivalent. In the second case, you polute the namespace with a new variable, d.
Jul
7
comment Insert batch of 1000 records into db using Slick
RTFM. 10 characters.
Jul
2
awarded Curious
Jul
1
comment Algorithm to return all combinations of k elements from n
You can always transform this solution to recursive one with arbitrary parameter.
Jun
26
awarded Supporter
Jun
22
comment Listing combinations WITH repetitions in Scala
Have an upvote, then! It's still not quite exact, but better.
Jun
19
revised a = (a++) * (a++) gives strange results in Java
added 17 characters in body
Jun
15
comment Elegant way to invert a map in Scala
If there are multiple keys associated with the same value, this is going to give you only the later one. If you want all the values, see my answer.
Jun
15
revised Elegant way to invert a map in Scala
deleted 4 characters in body
Jun
15
comment How can i interleave elements of 2 lists in scala
I have posted one more alternative answer.
Jun
15
revised How can i interleave elements of 2 lists in scala
added 2 characters in body
1 2 3 4 5