« first day (1583 days earlier)      last day (3363 days later) » 
00:00 - 14:0014:00 - 00:00

2:02 PM
hi is there some jade expert here ????
 
fge
No, it doesn't quite work
Says "input is not from a terminal"
Drat
I guess there is no choice but to go through Piped*Streams
 
@MohammedHousseynTaleb, If you have a question, please just ask it. Don't look for topic experts. Don't ask to ask. Don't PM! Don't ask if people are awake, or in the mood to help. Just ask the question straight out. To disable this message use ~welcome=false.
 
Good morning, Java!
@Unihedro PM? Since when does Stackoverflow have PMs?
And are you a bot now? xD
 
@Michael I don't know. Maybe I should had written "don't ping" instead. That was copied from an IRC bot message.
 
Ah.
 
fge
2:13 PM
@SecondRikudo unfortunately, it appears that it's pretty much impossible
The above is the best I could come up with
I'm going to test with Java 7 and redirectIO() to see whether it does any better than that
 
=about
:(
 
fge
@SecondRikudo .inheritIO() works
 
Hi guys
 
@fge Hmm?
What do I call this on?
 
Hi there @BranislavLazic.
 
fge
2:19 PM
@SecondRikudo it's a method which appeared in 1.7 on ProcessBuilder
But it has hooks in native code
 
@fge Figures :P
 
fge
Therefore not reproducible in Java 6- :/
 
@Michael Morning!
 
fge
The best I could come up with is a vim window but which says that "stdout is not on a terminal"
Sorry...
(but at least it doesn't hang)
 
@fge Thanks for trying
Now I'll either get to use Java 8 on this project, or discard this feature altogether :D
 
2:21 PM
Anyone using Scala?
 
Win win
 
fge
 
@Unihedro Little late, huh? xD
Looks like OakBot got a "ConnectTimeoutException" this time.
Gotta catch that now.
 
@Branislav Lazic, If you have a question, please just ask it. Don't look for topic experts. Don't ask to ask. Don't PM! Don't ask if people are awake, or in the mood to help. Just ask the question straight out. To disable this message use ~welcome=false.
 
fge
@BranislavLazic not me
I don't understand all the craze about Scala to be honest
 
2:23 PM
@BranislavLazic I'm not, sorry. But I've played around with it before.
 
Eh, Scala sucks.
 
It's not called "chat" for not reason @Unihedro :D
*no reason
 
@BranislavLazic What do you think this reason is?
 
It's kind of "survey" question..
 
OakBot Online.
 
2:26 PM
@fge Me neither.. I feel some Scala hype happening recently...
 
@fge looking at Runtime class now...
Although it doesn't look promising
 
Sometimes, when people ask general questions like that, they want to ask a specific question within that category.
 
Ok, then. Since I just wrote a long response to a survey, you can have one too.
 
fge
@SecondRikudo my advice would be to, uh, drop the feature, really :p
Had you used Java 7+ it'd have been a cinch
 
how to load application context in classpath in web.xml?
 
fge
2:27 PM
But with Java 6-...
@JavaTechnical uh? It's the role of the app server to load the context, not yours
 
no, not like that. I am trying to include it into the <context-param> but, I am gettig IOException that the stream is not found.
 
Any good JavaFX programmers here?
 
@JohnPulple Only evil ones.
 
@John Pulple, If you have a question, please just ask it. Don't look for topic experts. Don't ask to ask. Don't PM! Don't ask if people are awake, or in the mood to help. Just ask the question straight out. To disable this message use ~welcome=false.
 
@SecondRikudo Are they the ones who accept souls in payment? Then I'm ready to sell my soul for this awful problem
Is it fine to link to your unanswered questions on stackoverflow here in the chat?
 
2:43 PM
Yes, that's fine @John.
 
No, I am not "using" Scala. I am a Java developer with a passionate interest in inanimate objects, such as code that doesn't execute in different ways whenever I call them, or simply, a game of chess, which I am enjoying right now in addition to chatting in a chat room. While I am a Java developer and occasionally joke about how Java sucks and Scala rules, and that I know Scala, I have never found a true need of Scala. I occasionally do Scala. That time is not now. Therefore, I am not "using" Scala.
 
@Unihedro O_O
 
@Unihedro Okay...
 
You know what I need? A blog. To rant on. :P
 
2:45 PM
@Unihedro Is this a cry for help?
 
Yes! xD
 
No, it's my response to "Anyone using Scala?" question.
I occasionally compose unnecessarily long responses. See this: hastebin.com/raw/aqafomojek
 
fge
<-- is happy with Java and C
 
@Unihedro Have you ever heard of a...paragraph? xD
 
Indeed..
 
2:47 PM
in Teenage Programmers Chatroom, 28 mins ago, by Unihedro
Oh, it trimmed the new lines.
 
Ah.
 
in Teenage Programmers Chatroom, 37 mins ago, by Unihedro
Seven paragraphs, still no hit char cap. We must go deeper!!
I was writing in paragraphs. The paragraphs are gone, unfortunately. I replaced the license header myself.
 
Yeah, you really need a blog.
"decision making under high temperature" ?
 
Hmm hmm.
 
2:51 PM
Probably meant to be pressure.
 
@Unihedro Thanks for the reply
 
fge
^^^ somehow reminds of Cowboy Bebop
 
As in "oh boy, it's really hot in this room" or "he's about to kill me!"
Yeah, pressure is a better word.
Also, have you ever heard of a "run-on sentence". :P
> For example, take this fragment: "A massive whale with bulletproof skin, whose home base is in an overgrown forest, wants to have more psychic abilities. Supported by scientists, the massive whale appears to have one weakness - fear of spiders. Interestingly enough, the massive whale doesn't understand English." This is a compelling plot. It encourages the player to learn more about the whale, as well as to take advantage of that it is bulletproof.
> A game design may then force the player to remember that the whale is bulletproof in a future scenario, and therefore they will remember to shield behind the whale.
Very unique example, lol
 
Isn't that an awesome horror game plot?
Yes, I made it up, and reading that again I feel my potential to return to indie game development. Kongregate and free games like that.
 
Maybe in an alternate universe.
 
fge
2:57 PM
@Unihedro instead of ranting, go code HTTP/2, damnit
 
I'm trying to set up Gradle.
I know nothing about how Gradle works yet, lol.
Oh wow! IntelliJ supports hypertyping mode.
My stars this is awesome!
 
fge
youtube.com/watch?v=mdXT2m7oMgs <-- meh, the sax player somehow reminds me of Stefano Di Battista; in fact, I do believe that he did play this song already, only not with the synth
 
3:27 PM
Anyone have the link to the canoq post that \d is faster than [0-9] in java?
 
Hi
 
Hi
 
I would like to know if it's possible to send a text file to a REST web service, and if yes how should I do that ?
(I'm a beginner in web services and java)
 
@NewCoder You would send an HTTP request that contains the content of the text file.
 
Or, use the SFTP protocol.
It's probably more efficient for you to look up and use a library that does this.
 
3:39 PM
So, in the back end, the file content is interpreted as a String object ?
 
Huh?
 
fge
@NewCoder you are mixing oranges, apples and beetles; do you actually know how HTTP works and the different requests (GET, POST etc)?
 
@NewCoder In the back end, the file content can be interpreted however you want.
 
@fge a little bit I just started learning
 
3:41 PM
@NewCoder You really should read-up on HTTP if you are going to be working with a RESTful webservice.
 
@NewCoder Do you know how a computer works?
 
@Uni Do you?
 
actually what I want to do, is to send a text file to a web service, then the web service will read the file transform it to send back a json object, that will be consumed by a jquery script
 
@Michael Yes. I handcrafted a microserver for distributed processing, as well as deal with simple systems configuration. :|
I also used to keep all kinds of stuff working to keep Embercraft online.
@NewCoder ummm
 
@Unihedro ?
 
fge
3:49 PM
Like a comment says, Yoko Kanno is inhumanely good at what she does
 
4:18 PM
looking for help on a java program issue
 
ask away,.
don't expect a satisfactory answer, though
 
im working a transistor program, that contains logic gates, however when i throw a runtime exception for short circuit it seems to throw it all the time.
 
all the time??
 
yeah
however when i dont throw the exception, the program runs perfectly fine with correct outputs
if(p.isClosed() && n.isClosed() || p.isOpen() && n.isOpen()){
throw new RuntimeException("Short Circuit");
}
thats the exception^
 
The && and || operators are effected by order of operations.
 
4:30 PM
it doesnt matter which goes first
 
That "if" statement could be evaluating to the opposite of what you intended it to.
 
still throws an exception which is sad
 
fge
Yup, you had better use parens here
if ((p.isClosed() && n.isClosed()) || (p.isOpen() && n.isOpen())) ...
 
yep still does throw an exception everytime
 
fge
If this still does not work then you have a problem in either .isClosed(), .isOpen(), or both
Also, why two methods where one is obviously the opposite of the other?
 
4:33 PM
they are complementary
thats why idk why it throws the exception
 
fge
Yes, which means that if one is false the other has to be true, right?
So, just keep one method
And simplify the test: if (p.isOpen() ^ n.isOpen()) ...
 
Input N_Type P_Type NOT()
0 : OPEN CLOSED 1
1 : CLOSED OPEN 0
it just keeps throwing
its been annoying me for the past day
it throws right before it is going to execute the NAND method
public static BinaryDigit NAND(BinaryDigit a, BinaryDigit b)
{
return NOT(BinaryDigit.bitValue(a.intValue() * b.intValue()));
}
 
dude im not having trouble with operators lol
 
I always forget whether && comes before || or vice versa.
Oh ok.
 
4:38 PM
who has alot of experience in java?
that wouldnt mind teamviewing
 
4:50 PM
TeamViewer sucks.
stopp distracting me
 
how am i distracting u
 
@Sephireth TeamViewing.. why?
 
so someone can help me solve the issue by viewing the java program
 
and why would someone do it?
 
5:06 PM
dude just forget it
 
fge
@Sephireth it is not by acting the way you do that you'll incite people to help, you know
 
Hey =] Can anyone recommend me a book on Java that is good for beginners to Java but that are not new to OOP or programming in general? I just skimmed my way through head first and it was mostly useless .. pointless repetition ... generally I am looking to first learn Java for desktop, preferly with unit testing and later on Android
Hmm .. I tried to say "new to Java, but familiar with OOP and programming ... "
 
user1804599
5:24 PM
What languages do you know already?
 
some..
 
@райтфолд c#, php, js, bits of c, haskell and etc
 
java, vba/asp-classic, some c#, python, js and bits of scala, c and c++
 
user1804599
@RonniSkansing Java is mostly just C# with some important features removed.
 
user1804599
You probably don't need a book.
 
5:32 PM
@райтфолд that's... an oversimplification
 
user1804599
Right, it has added checked exceptions and non-static inner classes.
 
fge
Again, that's oversimplified
Java and C# are different
 
yea, maybe I need a reference book.. I dunno =/
I feel like I can write up code in Java, check the online api refence for whatever I need.. but I often start out when I begin a new lang by reading a few books
I just do not need to have stuff like like exceptions, objects/classes, overloaded methods and etc explained... maybe I just need to write moar code
 
fge
@RonniSkansing for exceptions I wouldn't be so sure; Java is unique in this regard since unlike pretty much all other languages it has the notion of checked vs unchecked exceptions
 
yea, I will search that up, sounds fun
 
6:09 PM
some people familiar with hibernate here? :O
 
6:25 PM
shoot
 
 
1 hour later…
7:36 PM
@FelixLahmer somewhat..
 
fge
8:22 PM
@FelixLahmer use jooq instead :p
 
8:54 PM
hi
 
Hi.
 
 
1 hour later…
10:23 PM
sigh
 
fge
10:40 PM
@Gemtastic what's going on?
 
Just life I suppose... Unemployment in this country sucks... And my better half really needs a job :/
We're in a situation where we're soon gonna have to sell the car to afford living...
And we just got a scham offer from a company that want to abuse the government grants for unemployed people, making the government pay for the labor in full, while the wage the "employee" gets practically no wage at all.
So... sigh
 
fge
11:02 PM
Sorry, I cannot really find anything to say
 
Yeah, well, I'm sorry to dump it on you
There's not much I can do to help him more than I am; we're both sending out his resume to places hoping for something. At this point, even earning 4 euros/day would be smashing
 
00:00 - 14:0014:00 - 00:00

« first day (1583 days earlier)      last day (3363 days later) »