« first day (1669 days earlier)      last day (3255 days later) » 

12:36 AM
can anyone else pickup with where @fge left off?
and does anyone Want to pick up where he lft off
 
1:34 AM
What's wrong
 
 
4 hours later…
5:16 AM
@Unihedron how is that going to solve the question, there are no errors — JarFile 2 hours ago
^^^ Needs social justice warriors
 
fge
6:01 AM
Meh, I have stumbled upon a peculiar problem
How do you make a git commit message start with a hash sign?
 
@Unihedron It just made me trip my coffee
 
6:21 AM
which connector should i choose Connector/ODBC || Connector/J
 
fge
Aargh
Focus problems with JavaFX is going to kill me
 
@fge Working with JavaFX again? :O
 
fge
Yes, the debugger
For my work I use grappa-debugger extensively
 
i have no idea
 
fge
And on parsing failures I go very deep into both the parse tree and the failed parsed text... I have to scroll by hand in order to get a clean view
I am still unsure as of yet how to solve that problem
And then there's grappa
But here I think I know how to leverage the power of it...
 
7:17 AM
Hola!
 
fge
Buon mattino anche
 
Morning
 
morning
 
@fge Come stai?
I know only this sentence in Italian
 
7:40 AM
morning
 
8:00 AM
morning
 
8:12 AM
'sup?
 
@Gemtastic gewd. You?
 
Freezing and working on school stuff before work
 
fge
8:25 AM
@Appu that's the familiar form of "how are you" :) A more formal form would be "come sta", or "come va"
@ThanhPhong self advertising is unwelcome
 
@fge just flag away..
 
Not not @fge
 
fge
I did so
@ThanhPhong what else do you expect such a blatant self ad to be looked at?
If you want to pique the interest of SO users, this is certainly not the way to proceed
 
8:56 AM
@fge You are from Italy?
 
fge
I'm not
I speak Italian (reasonably well, I'd say) but I'm not Italian
Sfortunamente. Sono francese
 
ya really 'Sfortunamente'
 
fge
Yes, really
(impo)
 
9:43 AM
/javadoc String#concat(Object)
 
I couldn't find a signature with that parameter. Did you mean this one? (type the number)
1. java.lang.String#concat(String)
 
1
 
@Vogel612 String concat(String str): Concatenates the specified string to the end of this string. (1/4)
 
FUUUUUUUUUU#
MAY JSP BE DAMNED!!!!!
${map[string + string]} -> assumes the strings are doubles
${map[string.concat(string)]} -> assumes the second string to be an Object and doesn't find the relevant method correctly
${map[string.concat((String)string)]} -> can't be parsed into an EL Expression
 
10:00 AM
anyways ~new coffee
 
10:17 AM
best idea I've seen today @Vogel612
 
wow...
 
the coffee I mean
 
I'm not sure whether I am supposed to cry or to laugh now.
Submitted an Issue to our internal Tracker with ' in the title..
and got back a title with \' instead
 
I'd go for the hysterical option of mad laughter followed by unrefrainable sobbing
 
@Vogel612 At least you don't get "Syntax Error: Check the manual for the syntax next to Vogel O'"
 
10:20 AM
ironically the bugreport was about overencoded html-entities in links...
oh well the way I know the codez around here I can probably make a malicious injection with \' but....
 
Hello
 
I'm home!
 
okaeri
 
tadaima~
 
Can I pass a lambda expression to new Thread()?
This suggests you can
Intellij suggests differently.
 
10:30 AM
what lambda?
 
/javadoc Thread#Thread
 
/javadoc Thread
 
Which one do you mean? (type the number)
1. java.lang.Thread#Thread()
2. java.lang.Thread#Thread(Runnable)
3. java.lang.Thread#Thread(ThreadGroup, Runnable)
4. java.lang.Thread#Thread(String)
5. java.lang.Thread#Thread(ThreadGroup, String)
6. java.lang.Thread#Thread(Runnable, String)
7. java.lang.Thread#Thread(ThreadGroup, Runnable, String)
8. java.lang.Thread#Thread(ThreadGroup, Runnable, String, long)
@Vogel612 java.lang.Thread: A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently. (1/15)
 
@Unihedron Thread(Runnable target): Allocates a new Thread object. This constructor has the same effect as Thread (null, target, gname), where gname is a newly generated name. Automatically generated names are of the form "Thread-"+*n*, where n is an integer.
 
10:30 AM
uni be faster.
 
Thread(Runnable) is a constructor of Thread @MadaraUchiha, and it is a () -> {...} FI
 
@MadaraUchiha well... yes you can, but it has to be the right kind of lambda.
 
zero arity -> no return type
 
@Vogel612 Supplier
 
/javadoc Pattern$Curly
 
10:31 AM
@nhahtdh Sorry, I never heard of that class. :(
 
Supplier is not "no return type"
 
@nhahtdh I don't think it's public
 
Runnable is a void
 
@MadaraUchiha supplier::get
it ignores return value though
 
@Unihedron the tutorial I linked suggests that suppliers are OK
cc @Vogel612
 
10:32 AM
/javadoc Pattern#Curly
 
@ItachiUchiha Sorry, I can't find that method. :(
 
lolzzzzz
 
Javadocs are only generated for public methods / classes
 
Does it have stuffs outside the Java Class Library?
 
some.
I think some testng, ezvcard..
 
10:36 AM
@nhahtdh It has Guava
/javadoc Iterables
 
Which one do you mean? (type the number)
1. com.google.common.collect.Iterables
2. org.assertj.core.internal.Iterables
3. org.assertj.core.util.Iterables
4. org.mockito.internal.util.collections.Iterables
 
@Unihedron com.google.common.collect.Iterables: This class contains static utility methods that operate on or return objects of type Iterable. Except as noted, each method has a corresponding Iterator-based method in the Iterators class. (1/3)
 
The bot holds javadocs of several libraries that we make Michael add.
 
tehee
 
10:59 AM
Hi can any one tell me
 
yes
 
Can one class be loaded by two different ClassLoader in Java
 
yes
 
how ?
 
11:16 AM
/javadoc ClassLoader#load
 
@Vogel612 Sorry, I can't find that method. :(
 
d'aww..
/javadoc ClassLoader#loadClass
 
Which one do you mean? (type the number)
1. java.lang.ClassLoader#loadClass(String)
2. java.lang.ClassLoader#loadClass(String, boolean)
 
1
 
@Vogel612 Class loadClass(String name): Loads the class with the specified binary name. This method searches for classes in the same manner as the boolean) method. It is invoked by the Java virtual machine to resolve class references. Invoking this method is equivalent to invoking boolean) loadClass(name, false).
 
11:17 AM
@Edge ^
 
11:48 AM
Guys question
ForkJoinPool pool = new ForkJoinPool(50);
pool.submit(() -> publishers.parallelStream()
        .peek(publisher -> {
            progressBar.update((float) progress.incrementAndGet() / publishers.size());
            System.out.printf(" Currently purging (%d/%d): %s", progress.get(), publishers.size(), publisher.getName());
        })
        .map(Throwing.function(manager::bakeLoader))
        .forEach((ignored)->{})
).get();
 
Java 8 horror
 
s/horror/fun/
 
1. Feedback?
2. What's the difference between `.get()` and `.join()` on the ForkJoinPool? (if you refer me to JavaDoc I will punch you)
 
1. If it works, cool, you've made something that works!
 
@Unihedron I smell a but
 
11:53 AM
if it ain't broke, don't fix it :p
 
@Unihedron There's still the distinct smell of a but in the room.
 
12:12 PM
@fge with your Throwing Lambdas library
How do I ignore errors? Or handle them, more generally?
 
@MadaraUchiha .orDoNothing() after Throwing.function()
to handle, or otherwise "do something else if you get an exception", you can use .orTryWith() for a throwable lambda, or .fallbackTo() for a non-throwable lambda
 
@Unihedron .orDoNothing() is not defined
 
ad 2. there is neither method on a forkJoinPool
 
@Vogel612 There is on a ForkJoinTask which is returned from pool.submit()
 
yep.
 
12:19 PM
@Unihedron For some reasons, when I chain methods onto Throwing.function(...) the parameter inside the lambda (...) turn into an object
@Vogel612 Okay, and now without the nitpicking? :P
 
join block the thread until execution is completed
get does the same and returns the result on top of it
-> get() ~= join(); return result;
nevermind..
> This method differs from get() in that abnormal completion results in RuntimeException or Error, not ExecutionException, and that interrupts of the calling thread do not cause the method to abruptly return by throwing InterruptedException.
^ javadoc for .join()
~cough
 
IntelliJ crashed
I need a better computer T_T
 
12:36 PM
.map(Throwing.function(publisher -> manager.bakeLoader((Publisher) publisher)).orReturn("foo"))
Why do I have to do that with .orReturn()?
 
Splendid! :)
 
Why won't it accept manager::bakeLoader?
 
@MadaraUchiha because you wanted it to return instead of crashing with a ThrownByLambda exception
@MadaraUchiha Maybe it was inferred as rawtype.
 
@Unihedron Why would it be inferred as rawtype?
I thought the generics should take care of that for me
Looking at it I see that publisher is seemingly Object, why the hell?
 
hi@all
a short question, did someone has good knowledge of jersey, jackson, json?
 
12:39 PM
@MadaraUchiha Try a declared left-hand-side like (Publisher publisher) -> ...
 
@Unihedron Yes, that also works
But why would it be inferred as an Object to begin with?
It doesn't do that if I remove the .orReturn
 
hiya
i wanna ask something about hibernate ?
anyone interested ?
 
1:04 PM
Ask away, I might be able to help. Although it is pretty early lol
 
just for you...
but eh
@Zorian for you the same applies (see Dustiny)
 
1:19 PM
here it's not that early xD
but I got the error messagebodywriter and none of the possible solution worked
so in past 40 min I tried some more ways, didn't help and created a question
@Dustiny if you wish I could post it here
 
Sure post the question and I'll take a look and see if I can see anything
 
0
Q: MessageBodyWriter not found for media type=application/json // with jersey, jackson, no maven

ZorianI ran into some problems with Jersey, Jackson and JSON-Generation. Every time I try to run this, I get the Error MessageBodyWriter not found for media type=application/json. It's pretty annoing since I tried nearly everything out. I use Jersey 2.1.7, Jackson 2.5, eclipse and don't use Maven, cau...

I'm trying to resolve it for around 7-10h with different libs and different syntax, versions etc
 
@Zorian wtf is these variable names?? half German half English?
 
yeah xD
I have to clean it up, but I missed some xD
 
7
Q: Obtaining "MessageBodyWriter not found for media type=application/json" trying to send JSON object through JAX-RS web service

amedeo avogadroI am trying to send a JSON object through a JAX-RS web service. My file web.xml is: <servlet> <description>JAX-RS Tools Generated - Do not modify</description> <servlet-name>JAX-RS Servlet</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <init-param>

 
1:25 PM
lmao I was wondering the same thing
 
@Zorian what about returning a String from the method and manually Serializing the data into JSON?
    @GET
    @Path("/getjson")
    @Produces(MediaType.APPLICATION_JSON)
    public String getEbeneInJSON()
    {
          Ebenen ebene = new Ebenen();
          ebene.setEbenenId(5);
          ebene.setEbenenname("Test");
          System.out.println("JSON....");

        return Jackson.serialize(ebene); // fake!!

      }
 
it should be done programmicaly (automated, as intended from the libs) afaik
 
sure it should, but as a workaround?
 
sigh
.map(Throwing.function((ThrowingFunction<Publisher, String>) manager::bakeLoader)
        .fallbackTo(publisher -> "Publisher " + publisher + " had an error."))
 
yeah, but it's a way, but I do it for my finals and have to do it as it is intende .-"
 
1:35 PM
Why does this not stop the JsonMappingException I'm getting?
 
@Vogel612 corrected variable names ;)
 
@MadaraUchiha ask fge...
 
@MadaraUchiha Did you try turning off and on again?
 
EFF JEE EE!
 
@MuratK. I saw that post and as mentioned above, I shouldn't use maven or genson
 
1:43 PM
 
dafuq
 
/javadoc SimpleDateFormat 6
 
@Michael Number: For formatting, the number of pattern letters is the minimum number of digits, and shorter numbers are zero-padded to this amount. For parsing, the number of pattern letters is ignored unless it's needed to separate two adjacent fields. (6/27)
 
/javadoc SimpleDateFormat 4
 
@Michael Date and time formats are specified by date and time pattern strings. Within date and time pattern strings, unquoted letters from 'A' to 'Z' and from 'a' to 'z' are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (') to avoid interpretation. "''" represents a single quote. All other characters are not interpreted; they're simply copied into the output string during formatting or matched ...
against the input string during parsing. (4/27)
 
1:45 PM
/javadoc SimpleDateFormat 5
 
The following pattern letters are defined (all other characters from `'A'` to `'Z'` and from `'a'` to `'z'` are reserved):
Letter Date or Time Component Presentation Examples `G` Era designator Text `AD` `y` Year Year `1996`; `96` `Y` Week year Year `2009`; `09` `M` Month in year (context sensitive) Month `July`; `Jul`; `07` `L` Month in year (standalone form) Month `July`; `Jul`; `07` `w` Week in year Number `27` `W` Week in month Number `2` `D` Day in year Number `189` `d` ...
Day in month Number 10 F Day of week in month Number 2 E Day name in week Text Tuesday; Tue u Day number of week (1 = Monday, ..., 7 = Sunday) Number 1 a Am/pm marker Text PM H Hour in day (0-23) Number 0 k Hour in day (1-24) Number 24 K Hour in am/pm (0-11) Number 0 h Hour in am/pm (1-12) Number 12 m Minute in hour Number 30 s Second in minute Number 55 S Millisecond Number 978 z Time zone General time zone Pacific Standard Time; PST; ...
GMT-08:00 Z Time zone RFC 822 time zone -0800 X Time zone ISO 8601 time zone -08; -0800; -08:00 Pattern letters are usually repeated, as their number determines the exact presentation: Text: For formatting, if the number of pattern letters is 4 or more, the full form is used; otherwise a short or abbreviated form is used if available. For parsing, both forms are accepted, independent of the number of pattern letters. (5/27)
 
Ugh.
Apparently, OakBot doesn't handle tables well.
Then again, neither does SO Chat.
 
@Michael That's because of the implementation of how it cuts off messages.
 
@Michael what do the numbers indicate?
 
Multiline messages aren't capped at 500 characters.
@ItachiUchiha page
 
1:48 PM
ahh
 
@ItachiUchiha It's the table describing the SimpleDateFormat syntax.
@ItachiUchiha Oh, yeah. Those are the number of paragraphs in the class description.
Hey @ShotgunNinja! Long time no see!
 
I've been in here fairly often over the last week or so
 
@Michael Rendering an ascii table properly is at least O(2n) (as in, you have to iterate at least twice)
 
I usually hang out in C# or JavaScript
 
But it's possible
 
1:52 PM
O(2n) is still in O(n)
 
@MadaraUchiha /me adds to his todo list
 
plus, the first iteration is for what, measuring the length?
 
@Michael Note that you can't reply with multiline code block.
@ShotgunNinja Of the longest cell in each column, yes.
 
@ShotgunNinja I'm usually only here over the weekend, so I guess that's why I haven't seen you lol
 
1:53 PM
@Michael Ah, I suppose.
@MadaraUchiha Yeah, I guess that makes sense, but that's barely what I'd consider 2n, since the hit for one pass is drastically smaller than the hit for the other.
 
@ShotgunNinja meh..
 
Considering output theoretically takes longer than calculating borders
 
that's only because String caches length
 
true
but that's almost a given in any language.
 
else you'd be running over a jagged char*[]
 
1:54 PM
almost
I mean, what's the chat built on? My bet is either C# or Python
 
@ShotgunNinja C#
All of SE is C# on the backend.
 
SO is .NET
shivers
 
@Michael to be perfectly fair, I'd take a C# backend over a Java backend almost every day of the week
 
@MadaraUchiha I see. Now, where's that ban button...
 
@Michael I find that C# just Makes Senseā„¢ more than Java in a lot of cases
C# has its drawbacks like any other languages (in the form of it being coupled to the Windows donkey)
 
1:57 PM
@MadaraUchiha It has a lot more language features, apparently.
C# has the advantage of not having a large userbase (compared with Java's), so they can experiment more.
 
@Michael I don't think it's the point.
JavaScript has a much larger userbase than Java, and JavaScript experiments and evolves a lot faster than both Java and C#.
 
That's debatable.
 

« first day (1669 days earlier)      last day (3255 days later) »