« first day (1668 days earlier)      last day (3256 days later) » 
00:00 - 13:0013:00 - 00:00

12:40 AM
@Mojimi Calendar is deprecated.
 
1:02 AM
What should be used other than JodaTime?
 
Noodles, yummy!
@Mojimi The new DateTime API in java8
 
@Mojimi It depends if you're on Java 7 or Java 8, but either case Calendar should not be relied upon on business code.
 
why not @Unihedron (just out of interest)?
 
32 mins ago, by Unihedron
@Mojimi Calendar is deprecated.
/javadoc Calendar
 
@Unihedron java.util.Calendar: The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week. An instant in time can be represented by a millisecond value ...
that is an offset from the Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian). (1/33)
 
1:13 AM
It was there since JDK 1.1, heh. :P
 
Ah. A decade old!
 
1:25 AM
morning
 
Good morning!
 
mrng uni
<--- trying to install Ubuntu =)
 
@deadlydragon00 yay!!!!
 
@deadlydragon00 Always remember not to plug out the power cord while the disk's being partitioned, or you'll effectively kill the hard drive. :P
And install Windows first if you're trying to get dual boot.
 
1:37 AM
okie dokie =)
 
 
1 hour later…
2:39 AM
ugh
Implementing CollectibleIntStream to work concurrently over IntCollector's is going to be HARD
 
 
2 hours later…
4:23 AM
This begs the question: How would I know if a Stream has the CONCURRENT property?
(I can't)
 
4:36 AM
/javadoc Stream#parallelStream
 
@Unihedron Sorry, I can't find that method. :(
 
OH
derp I'm stupid
 
anybody there?
I am new to java and i just want to ask which eclipse should i download? should i download normal eclipse or or "eclipse for java ee developer"
?
will I be able to do all the normal java application development in ee version too?
 
4:52 AM
@ShubhamNishad Eclipse for Java
 
5:07 AM
(note that the other interface isn't public)
 
Good Morning all
 
 
2 hours later…
6:45 AM
Morning
 
Morning !
 
hi
 
trying to get intelliJ to show javadoc
 
7:01 AM
ALL Is theer any android developer ?
 
@Gemtastic Oh? What's the matter?
 
@Maid786 Please read the room description to the top right of this page.
 
It won't show it as a little popup window automatically when I'm selecting a method in the list that pops up when you ctrl + space
 
@Maid786 Yes, there is. They are however banished from this room so the room isn't infected by their insanity, so you're looking at the wrong room to find any.
Gradle is stupid...
 
here is my code, i am not able to print my jsp fields and i need assistance
 
7:13 AM
@Unihedron Why so?
To me, Gradle is just Maven with a different syntax in the equivalence of the POM :P (but that's probably because I don't know much about gradle)
 
Maybe it's missing another plugin?
 
I had to remove and add those plugins twice for it to wake up.
No, once I re-added them, it works fine.
I've had to do this every time IntelliJ falls into power save mode.
1 message moved to Trash
 
morning
 
@Unihedron did you try to clear the cache?
Morning Tavo
 
7:19 AM
@Gemtastic If this is a cache issue then IntelliJ must have severe cache issues with how they implemented power save mode.
 
@Unihedron Yes, and I'm all open for the possibility. I really don't have a very pleasant experience with IntelliJ so far and my maven imports almost always have some issues
 
@Gemtastic What about CTRL+Q?
 
Morning
 
morning
 
norning
 
7:27 AM
gorninm
 
@MadaraUchiha What's that supposed to do?
 
moaning
 
@Gemtastic Show documentation for method you're currently standing on
 
it's purpose is to show that IDEA developers have no idea of standard keyboard shortcuts
 
> "It won't show it as a little popup window automatically"
 
7:30 AM
there's a setting for mouseover action somewhere. I just can't remember where
 
I think it's f1 on a mac, not exactly very easy to push to read. spoiled with the auto-function
 
200
Q: IntelliJ tooltip shows JavaDocs

Steve KuoIn Eclipse, hovering over a method, variable, etc displays a tooltip with the corresponding JavaDocs. Is there such a feature in IntelliJ?

 
That part on 14 really didn't help
"It's the last option"
XML highlight?
 
The popup is buggy though. It has a habit of appearing as too small, until it's resized. Then it'll work a while again
 
>_>
 
7:34 AM
Meh, I'm very tempted to switch back to eclipse after going through all that IntelliJ has to offer. :P
 
@Unihedron Two words: Git Hooks.
 
@Cristik: Honestly, I'm surprised that this answer even gets three upvotes given its quality, (lack of) attached explanation, uncontext and use of unconventional style coding (camelcasing in C#?). It's also blatantly wrong because OP states 'after "peroperties"', not properties. — Unihedron 4 mins ago
I feel great after bashing the rep farmer
 
Funny, my intelliJ doesn't even offer the option they mention here: stackoverflow.com/a/28369627/3763850
 
@Gemtastic probably because the answer is for Ultimate
the layout is different
 
7:37 AM
hmm
But I have the ultimate on trial :(
 
oh
 
fge
Moo
 
@Gemtastic Mine does
@fge Woof
 
@MadaraUchiha I don't have 10k so... theoretically delv'ed.
 
I have it under Editor->General->Code completion
 
7:39 AM
@MadaraUchiha Then why doesn't mine? :(
 
You see, whenever I look for stuff to answer I end up going on a closing spree.
So my rep hasn't been growing steadily.
 
@kiheru Thank you!
 
@Gemtastic yw
 
@Gemtastic Not sure
Have you tried scrolling down?
 
fge
@Gemtastic the quick doc feature is rather annoying; I prefer the documentation window on the right
 
7:41 AM
@fge I prefer to just open it on demand with CTRL+Q
 
fge
@MadaraUchiha I use the vim plugin, so for me it's K in command mode :p
Just like vim will fire man on the word, this shows the javadoc in Java
 
wait, you can use K?
I just snap out of vim mode and hover... > <
<- hasn't gotten used to IntelliJ yet
 
@fge That one still don't automatically update, no point in having it if it doesn't auto-update
 
@fge TIL about K, nice
 
til too
 
fge
7:45 AM
@Gemtastic do you really want the documentation to auto update each and every time you hover on a class? :p
Well, that's your choice
 
Hello room
 
hello user
 
hello chat
 
@fge I want it to auto update when I'm using the ctrl + space thing.
If that has the side effect of showing when I hover a class, so be it.
Just adds more to my list of why I don't prefer IntelliJ to anything else.
 
@fge interesting read that java.nio.file you sent me, thanks for that
I didn't have time to give it a try, but the reading was pretty good
 
8:05 AM
Anyone know about cellular automata?
 
8:15 AM
A cellular automaton (pl. cellular automata, abbrev. CA) is a discrete model studied in computability theory, mathematics, physics, complexity science, theoretical biology and microstructure modeling. Cellular automata are also called cellular spaces, tessellation automata, homogeneous structures, cellular structures, tessellation structures, and iterative arrays. A cellular automaton consists of a regular grid of cells, each in one of a finite number of states, such as on and off (in contrast to a coupled map lattice). The grid can be in any finite number of dimensions. For each cell, a set of...
^^ @mikeeustace read that first and maybe we can help you if you can explain what you didn't understand
see you in an hour or so
 
Thanks, I have been for hours. I understand how they work but am stuck with the difference with 2D vs 3D
 
@mike
as far as I remember, the only difference between 2D and 3D is the number of surrounding cells
 
I've been reading it in relation to Wolfram rules and how bitwise operators can make patterns.


@Tavo - hello
Really? That simple?
 
think that in 2D the cells that relate to one specific cell are the ones around it
in 3D instead of having 8 surrounding cells, you have the whole cube surrounding it
@mikeeustace it's that simple in concept, but not in practice. The rules to define survival between generations are far more complicated
and the space you have to work with becomes a lot bigger, which makes calculations grow exponentially
 
Yes! Very complex.

But, for the code

for(int x=1 ; x<width-1; x++) {
// inspect neighbouring bits in current row
int pix1 = (get(x-1,y)&1)<<2; // gives 100 if x-1 on, else 000
int pix2 = (get(x,y)&1)<<1; // gives 010 if x on, else 000
int pix3 = (get(x+1,y)&1); // gives 001 if x+1 on, else 000

this is a 1D, 3-bit cellular automata
 
8:23 AM
aha
 
so 1D is just a row?
2D is row and column, 3D is X,Y,Z (z = depth)
 
yes
 
AH :)
Thank you!
They forgot to mention that in the bloody book!
 
think about it this way: 1D is a rope. 2D is a sheet of paper. 3D is a Rubik's cube
 
Makes sense now. Thank you.
Is 4D possible (with a time variable)?
 
8:25 AM
4D is possible, as mathematically you can have more than 3 dimensions
although you won't have a visual representation of it (hypercubes, but they are not really visual)
 
Just seen a footnote in the course notes (4D CA isn't examinable)
 
theoretically, you can have an nth-dimensional space
 
My brain can't cope with that :p
 
google hypercube if you want to know what it "looks" like
but in a very quick mathematically demonstration, 1D is a line. 2D is the extension of a line in a second dimension (a plane). 3D is the extension of a plane in a third dimension (a cube). 4D would just be the extension of a cube into a fourth dimenions (a hypercube). And so on for nD
 
Just so I understand, when talking about pixels in relation to 1D,2D,3D,

1D looks at 2 pixels, 2D looks at 8, 3D looks at xx?
 
8:29 AM
yes, that's it
if I remember correctly, it should look at 26
but that's from the top of my head
 
counted 26 as well
 
Thanks. I vaguely understand nth dimensions. Waaaaay beyond my maths ability though.

I count 26 too
 
Brr
 
good. My neurons still work :P
 
Right. Back to the text book. Thanks again @Tavo
 
8:30 AM
I even wore an extra t-shirt today
But I'm still cold
 
@mikeeustace no worries. Enjoy
I used to love the game of life in uni ^_^
 
wraps myself in blanket
 
@Gemtastic not so cold around here :)
 
In time I will probably sit in the bean bag coding
 
btw, happy birthday @fge ^_^
3
 
8:34 AM
Oh yeah, it's double b-day today!
Happy birthday you old foxes! ;)
 
hah
 
fge
@Tavo you too!
 
@Gemtastic Curse you
 
fge
I completely forgot
Meh
 
the things I have to do for people to wish me a happy birthday :P
 
8:35 AM
that 2D 3D thingie...
 
Happy birthday!
 
thanks @fge :)
 
computerphile has some nice video on it.
 
@MadaraUchiha I assume it's nice and warm in Israel now?
 
"Nice and warm" my ass
 
8:35 AM
LOL
 
@Vogel612 there are pretty hypnotising videos out there
 
it feels "nice and warm" here in my apartment 24/7 because I never open the windows
 
@MadaraUchiha warm for sure
 
ventilation -> air from outside flows in -> super humid and impossible to work
 
@MadaraUchiha I'd trade you any day. I could live in a sauna
Though it doesn't really matter since it's the AC making me cold
it could be the same temperature outside as at your place, still would have been cold here
 
8:37 AM
ahh, I prefer cold to that kind of heat. At least it's possible to dress properly for cold
 
Heat is my friend
I get 1st degree burns when I shower because I shower so hot :')
 
@Gemtastic GIMME COLD
I WANNA LIVE WHERE IT'S BELOW 0 REGULARLY
 
@MadaraUchiha 0 Kelvin?
 
@MadaraUchiha Just get a good AC man
 
@Unihedron Yissss
 
8:40 AM
i wonder how that feels
 
@Gemtastic Oh, I do. But when you have to step outside for 3 minutes
 
I wonder if you can even feel because theoretically your body cells would stop any kind of activity and effectively hibernate
 
You can be totally 0K at the absolute minimum degrees
 
@Unihedron I've fairly certain you'd die
 
@Gemtastic you know what happens when you step out of an AC-environment like outside your room to get snacks or something after you've been for a while :P it's figurative hell
 
8:41 AM
@MadaraUchiha Well, that's not so much the issue... unless you have it like here; have to dress warm for office and be hot outside
 
All of the fluids, all of the gasses in your body would be frozen solid
All of the water in your brain would freeze, causing it to swell and tearing up blood vessals
@Gemtastic That.
 
It should be the other way around; nice and warm at office, outside can be whatever
 
@MadaraUchiha that sounds surprisingly not scary somehow
 
I will probably work outdoors in summer because it'll be warmer
 
@Gemtastic I tried once. Too much light, can't see monitor :(
 
8:45 AM
^ that's so true
one day I thought to myself, awesome weather! I'm not going to do sports (duh), but perhaps I'll go outside to code
I immediately regret it when I set up my laptop
 
Even in the most shaded place, when it's cloudy, it's pretty much impossible :(
I wish it would be
 
The sun isn't that evil here if you sit in the shade
 
it makes it worse because when you sit, you get into an angle that forces you to either crouch and look up, which hurts the back, or face the laptop up and stare at it from above, which hits more light from the diagonals where the sunlight comes
just don't :p
 
O.o elastic search just went bazoinkas
 
@Gemtastic meaning?
 
9:00 AM
@Tavo I'm using the rest to send a search for a single unit based on a unique ID, it gives me several results though there's only one document with that ID and the other ones aren't even similar
 
O_o
 
yeeeha, label order dependent business logic!!
 
9:17 AM
Hello everyone! Is somebody familiar with this problem or could reccomend where i should start searching information about this: in simple, i want some web-based service, written on java, that will consume snapshot (or multiple o_O) of virtual machine (linux-based), run it on current server and do some port-forwarding and etc so this machine would running on server and will be aviable through, i belive, ssh, or something else.
 
@wannabe Which technical background do you come from?
IntelliJ crashed...
 
@wannabe you do know that's a really really really bad idea, security-wise?
 
@Vogel612 which is exactly why I asked that question :P
 
@Vogel612 at this point i dont know much about that =) it is just an idea and i there i wanted to hear some alternate realization of this basic idea. maybe running vm in some sort of sandbox or whatever
 
hmm... I smell an XYProblem..
what problem are you trying to solve?
not the coding problem, but the root problem...
 
9:25 AM
@Vogel612 just now?
 
hmm... I am kinda in my own code right now....
but yea, just now,.
 
problem that one person could upload and run his VM to server in some sort, i dont know, SaaS principle and other peoples could use this VM on server
 
Lunch already... time flies
 
ikr
I was up at 10 am and started coding after a quick breakfast of sandwich (which consisted of me stuffing bread into my mouth and then stuffing cabbage into my mouth and then chewing mustard (idea with kudos to Logan M)) and it's already five in the afternoon, I didn't even consider lunch
 
Yeah. I'm only half-ways through my script. ES; Y U so cryptic?
 
9:40 AM
Hey, G+ just told me it's fge's birthday! I never knew!
Happy birthday, @fge and @Tavo!!!
6
 
fge
@Unihedron it's also @Tavo's, coincidentally
 
:O
A pair of birthday boys / tasmanian devils :P
 
Happy birthday @fge @Tavo
 
fge
Thanks ;)
 
I wish I prepared something for your birthday. :P
 
fge
9:46 AM
Something starting with R, 6 letters long
(hint hint)
 
@wannabe why not do it the standard way? just connect to the server via RDC or File Transfer..
 
Ohh.. it's your birthday! Happy Birthday @fge
 
I don't guarantee I'll remember to remove the text by tomorrow.
 
We need a cake there
 
9:59 AM
Cake not found :(
 
thanks guys ^_^
 
fge
Yummy, strawberries
 
oh, I thought they were cherries
need to go back to the optician
 
I thought they were cherries too
but I've never seen cherries or strawberries in real life so they're synonymously mysterious to me
 
@Unihedron really?
 
fge
10:04 AM
What? Don't they sell any fruit in Hong Kong?
 
it's kinda the back rows of a supermarket thing
 
@fge They sell bottled air.
 
@Unihedron you need to get past the sweets alley
:P
you can't survive on crisps and sodas alone
 
I would have an amazing comeback but screw it, the short answer is that I don't really eat sweets
my snacks consists of me grabbing a knife and a grapefruit (I don't even like grapefruits) or Pocky
I prefer the later
 
Pocky?
 
10:07 AM
Pocky (ポッキー, Pokkī, Japanese pronunciation: [pokːiː]) /ˈpɒki/ is a Japanese snack food produced by Ezaki Glico. Pocky was first sold in 1966, and consists of chocolate-coated biscuit sticks. It was named after the Japanese onomatopoetic word pokkin (ポッキン). The original was followed by almond coatings in 1971, and strawberry coatings in 1977. Today, the product line includes variations as milk, mousse, green tea, honey, banana, cookies and cream, and coconut flavored coatings, and themed products such as "Decorer Pocky", with colorful decorative stripes in the coating, and "Men's Pocky", a dark...
 
aaaaaaaah, ok
 
coated biscuit sticks basically
 
didn't know that was the name. Here we use the brand name I think
Mikado I think
but I would consider pocky a sweet
 
isn't mikado a pick up colorful sticks game?
 
nope, they sell Mikado here as Pocky (or Pocky named Mikado)
it's the same name in Spain, not sure about other places in Europe
I've also tried the korean version, Pepero
 
10:13 AM
it's the same name in Germany...
soo.. Mikado
 
:O
 
and yes it's actually the pickup game
 
CultureExchange2015
 
pun intended
Pocky is one of these games that's often used in connection with the king's game
 
king's game?
 
10:14 AM
basically Simon Says
 
ah, ok
 
or 'truth or dare'
often without the 'truth or' part
Konpa (コンパ) are a type of Japanese drinking gathering held by university students in a casual drinking establishment called an izakaya, and are more relaxed than the traditional nomikai. It is often suggested that this word originally came from German: Kompanie, English: company, or French: compagnie, although the exact root is unknown. These gatherings are intended for developing friendships or deepening relationships with members of the same affiliated group or with the opposite sex that benefit Japanese socially in their careers and in their lives. == History == When Japanese university culture...
 
ah
 
the Pocky game works like the spaghetti in 'Lady and the Tramp'
 
to "accidentally" kiss people?
odd
 
10:21 AM
@Tavo don't judge foreign culture :P
Is there a way to say <T> where T is a FunctionalInterface? Quite clearly "extends FunctionalInterface" won't cut it, nor does @implements FunctionalInterface
 
@FunctionalInterface
interface Function<T> {...} ?
 
@Unihedron Example?
 
@FunctionalInterface
interface BaseFIHolder<F where F @implements FunctionalInterface> {
    F get();
}
 
ah, ok
 
oh well, it probably hints of a poor design in my code anyway
went with just <F> in the end
 
10:29 AM
@Unihedron Wait
interface BaseFIHolder {
    FunctionalInterface get();
}
?
 
That gives the annotation :)
 
@Tavo no, in combination with the ousama-game
 
Oh wait
@Unihedron extends works
108
Q: Java generics - why is "extends T" allowed but not "implements T"?

user120623I wonder if there is a special reason in Java for using always "extends" rather than "implements" for defining bounds of typeparameters. Example: public interface C {} public class A<B implements C>{} is prohibited but public class A<B extends C>{} is correct. What is the reason for that?

According to this at least
 
@Unihedron Annotations are also just interfaces
 
class ThisClassImplementsAnAnnotation implements FunctionalInterface {

    @Override
    public Class<? extends Annotation> annotationType() {
        return null;
    }
}
 
10:32 AM
Map<String, String> result = new HashMap<String, String>();
 
@Vogel612 yeah but are they represented like one?
 
hmm.. I actually don't know.
but I didn't think you could implement an annotation in a class...
 
If I have this in a method, and use that internally in the method, and return it from the method. Is it OK to have in a multithreaded environment?
Will each thread create a new HashMap for result and not interfere with the others?
 
@interface MyAnn {}

@MyAnn
class MyType {}

class Container<? extends MyAnn> {}

{
  new Container<MyType>();
}
 
@MadaraUchiha well... they should
probably..
 
10:34 AM
You sound uncertain
 
@MadaraUchiha as long as the constructor being invoked is threadsafe :)
 
public LoaderBaker(String fileContents, String replacementFormat) {
    this.fileContents = fileContents;
    this.replacementFormat = replacementFormat;
}
 
I meant HashMap
 
@Unihedron That is, the constructed object doesn't have unhealthy state or static and the such?
 
it probably is, looking into it from here it's really just initializing final fields
the fields aren't threadlocal though
 
10:36 AM
=javadoc ConcurrentHashMap
 
/javadoc HashMap
 
@Unihedron java.util.HashMap: Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.) This class makes no guarantees as to the order of the map; in particular, it does not ...
guarantee that the order will remain constant over time. (1/10)
 
Turned to /?
/javadoc ConcurrentHashMap
 
@MadaraUchiha java.util.concurrent.ConcurrentHashMap: A hash table supporting full concurrency of retrievals and high expected concurrency for updates. This class obeys the same functional specification as java.util.Hashtable, and includes versions of methods corresponding to each method of Hashtable. However, even though all operations are thread-safe, retrieval operations do ...
not entail locking, and there is not any support for locking the entire table in a way that prevents all access. This class is fully interoperable with Hashtable in programs that rely on its thread safety but not on its synchronization details. (1/16)
 
> If multiple threads access a hash map concurrently, and at least one of the threads modifies the map structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more mappings; merely changing the value associated with a key that an instance already contains is not a structural modification.) This is typically accomplished by synchronizing on some object that naturally encapsulates the map. If no such object exists, the map should be "wrapped" using the Collections.synchronizedMap method.
 
10:37 AM
~FOOD
 
@Unihedron This isn't that case though
The map isn't meant to be shared across threads, it's local to that function, and each thread will call that function separately.
 
TLDR: You can construct and pass around HashMaps asynchronously as long as you don't access it concurrently
@MadaraUchiha yes
 
Alright, so I don't need a concurrent hashmap there
 
fge
@Unihedron why do you want that?
 
@fge I fell into the "obvious way is bad" paradigm
 
11:43 AM
/http 503
 
@Unihedron HTTP 503 (Service Unavailable): The 503 (Service Unavailable) status code indicates that the server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. The server MAY send a Retry-After header field (Section 7.1.3) to suggest an appropriate amount of time for the client to wait ...
before retrying the request. (1/2)
 
12:12 PM
Hi all. Anyone who can recommend a good book for learning database design with normalization ect?
 
@CristianMatthiasAmbæk What exactly are you looking for? Just a generic book about manuals?
 
Im looking for a starting point to database design that will tech me from the ground up how to design databases. And that will give me the knowledge i need for taking the next step after that.
 
Hmm... I get the strangest results... interesting...
 
@Unihedron Replied your message, but forgot to tag it to you xD
 
12:30 PM
Dat feel when you solve the puzzle~
 
12:52 PM
Eureka!
 
Finally decrypting the ES java api so that I can make my querying program
 
@Gemtastic What of your game?
 
@MadaraUchiha That's what I'm getting to when I get home
For work I'm developing an ES querying software
 
I'm actually unexplainably curious of how it progressed XD
@Gemtastic ES?
 
It's progressing fast and is surprisingly good for being so shitty.
 
00:00 - 13:0013:00 - 00:00

« first day (1668 days earlier)      last day (3256 days later) »