« first day (1553 days earlier)      last day (3402 days later) » 

fge
1:06 PM
@Unihedro meh, don't waste your time on such stuff, I have another interesting task for you :p
 
@fge Oh? :p
 
fge
@Unihedro the debugger; right now the Models use methods to build POJOs out of the events with code... Goal: replace these with an h2 + jooq backend :p
 
oh god
 
fge
Well, that's one of my projects
(compared to that, pam4j looks simple, eh? :p)
 
Oh, look, it's my code based on File, yay! :D
 
fge
1:10 PM
No, I won't comment
 
We're still using Java6, so... derp
 
JDK implementation of BufferedReader has redundant code
 
Hopefully, we will move to Java7 in the next months (right when Oracle will stop supporting it)! :P
 
fge
@Unihedro maybe the fill() method has side effects (pretty bad practice, but...)
 
@fge oops you're right
 
1:26 PM
error: for-each not applicable to expression type
for (String each : matcher.group())
^
required: array or java.lang.Iterable
found: String
 
Sorry, matcher.group().split(' ').
:O
@reversiblean Your site has great challenges ;) As a developer of one of the ML engines that watches over question quality on SE, I approve the above challenge.
 
@Unihedro cool.. i'll definitely try it out.
 
I have several MONTHS of logs of questions (and answers) across the SE network. Ping me when you're ready to load a data dump.
 
@Unihedro Has SE stopped providing full dumps as a torrent download? Or are you talking about the chat?
 
@OlegKuznetsov Would you really want to download 8 GBs to run through a bayesian filter just to compete in a contest?
 
1:36 PM
It depends... shrug
[I still have EFF's database of all SSL certificates in the Internet dated back in 2010...]
 
:|
 
@Unihedro huh?
 
lol'd at the fact that you had 5 years worth of DB
 
They haven't updated it since :(
 
To do something for N times, a for loop is the only (sane) way, right?
Is there something in Unsafe for this?
Basically, I don't want to suppress a scope, which would happen when I use a for loop.
Meh, forget it. A loop will do.
 
1:59 PM
@uni what about questions which are asked by user and end up in comments without any answer. Do they get automatically deleted?
 
@ItachiUchiha Need more context. It can go either way depending on views and score.
 
What about this
http://stackoverflow.com/questions/28103174/load-values-in-barchart-javafx
These type of questions should be removed, but how do you vote for closing them?
@uni ping
 
@ItachiUchiha unclear
 
@ItachiUchiha Unclear.
in Tavern on the Meta on Meta Stack Exchange Chat, 18 secs ago, by Unihedro
http://stackoverflow.com/questions/28103174
 
I am talking about questions which are posted and thhen commented by the user that he found out the solution. The questions are pretty odd, so user doesn't post the solution and writes in a comment that it is solved. IMHO, such questions are not good to lay around and must be deleted as well
 
2:07 PM
@ItachiUchiha Correct. Vote to close as unclear what you're asking.
 
and possibly downvote for roomba to pick up..
 
what if the question is valid? Should we downvote only because it is laying around????
 
@ItachiUchiha You can encourage them to add an answer to the question.
 
@uni @vogel thanxx!!
When I read the answer, I feel it can be improved :/
But I am not sure what..
 
@ItachiUchiha edit in process
Hmm, I could build a mathematical model to compute the sum efficiently, or I could write a simple loop...
 
2:42 PM
For?
 
k :p
 
fge
3:02 PM
@ItachiUchiha if you know the answer to this one...
 
Hello, I have the following regex
String re1="(sno)"; // Word 1
String re2="(:)"; // Any Single Character 1
String re3="(\\d+)"; // Integer Number 1
String re4="(\\s+)"; // White Space 1
String re5="(sname)"; // Word 2
String re6="(:)"; // Any Single Character 2
String re7="(\\d+)"; // Integer Number 2
Pattern.compile(re1+re2+re3+re4+re5+re6+re7,Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
 
fge
Uhm
I's itching; I want to write a grammar right now
 
@JavaTechnical good for you
P.S. Don't use regex for this.
 
I would want to change the regex in order that either sno, sname can be in any order
 
fge
@JavaTechnical maybe you want to use a grammar for that instead; well, it depends on what you want to do with the data too
 
3:08 PM
I just wanted to know, how could I modify the regex so that any property (sno, sname) comes first.
 
@JavaTechnical You can't, because the design is broken the way it is.
 
fge
itching badly
 
in RegEx - Regular Expressions, Nov 17 '14 at 13:46, by Unihedron
to parse or to use regex... that is the question
@fge The topic implies a learning programmer :)
 
fge
Eh?
 
They probably have no practical string parsing experience, less to grammars :p
 
fge
3:09 PM
Well, sure, but then grappa grammars are Java classes :p
 
yes they are, and they are fantastic, but they're not really that easy to use for a starter :p
 
In fact, you might have understood by seeing the colon that there is a specific format. But however, any character can be there.
instead of :
 
@JavaTechnical even new lines?
 
ok well first throw everything out
 
fge
3:10 PM
@Unihedro eh? I think they're pretty easy to use myself
 
And redo your regex, here you go:
 
All that I want is that groups can be any order but sno-101, sname-test must also match.
sno*101 sname*tup
 
@JavaTechnical What?
 
fge
But there can't be more than one sno and one sname?
 
sname*toy sno*101
 
3:11 PM
I don't get how you're defining the expected behaviour, just give test cases of what can or cannot pass.
 
@fge yes
 
fge
OK, and what do you do about the extracted data?
 
I want to put it in a Java object.
where sno, sname are properties
 
fge
Dum dedum
And what is the data?
THe values after the colons?
 
GL i'm out for a bit
 
3:13 PM
several information about student
sno, sname, age etc
the properties given in the data can be any order
and the separator between the property and its corresponding value can be anything.
 
@JavaTechnical Then don't use the current regex you have.
 
fge
Well, you may want to use this
 
2 mins ago, by Unihedro
I don't get how you're defining the expected behaviour, just give test cases of what can or cannot pass.
 
fge
Your format is pretty liberal and a regex will be a nightmare to write and maintain
 
3:14 PM
Test cases please.
If you still want to use regex after hearing the words of the master parser, that is.
 
ok
sno-101 sname-smith
sno*101 sname-smith
sname-smith sno_101
 
@JavaTechnical into?
 
into java object
 
@JavaTechnical OF?
 
type Student
 
3:16 PM
@JavaTechnical which has an object array of length five thousand in the field "bar"?
Like what do you expect to get out of sno-101 sname-smith?
 
I didn't understand what do you mean by field bar.
I would like to get 101, smith
and I should no to which property does the value belong to.
that is every property value is placed besides its property name.
so that I can know
 
See the boxes? You can use matcher.group(1) and matcher.group(2) to get the data.
 
^^^
 
sname*dog sno909
the character separator between the property name and value is optional.
 
3:22 PM
@JavaTechnical Try it out in the demo. If a test case doesn't work out, poke me and I'll make additions.
 
fge
The only thing left about the grammar is to collect your data
But that's pretty much it
 
@JavaTechnical You said that the seperator can be anything, then how would "sno909" be "909" at all? 9 is a valid seperator.
@fge I like!
 
ok, I mean like any special character
 
Define special, I can't read your mind!
yet
 
3:24 PM
not a number, not an alphabet
 
fge
Huh
 
whitespace can be there as special character.
 
morning
 
fge
@JavaTechnical you do want to use Grappa, believe me
 
Grappa means?
 
fge
Grappa is this
 
@JavaTechnical Grappa is a Grammar Parser.
 
fge
And I have pasted an example grammar above
 
thinks JavaTechnical must be really (really) new to Java
 
fge
What is more it has a debugger
 
3:26 PM
WIP ^
 
fge
But your situation is typical of one where you would have the use of such a package
Let me fix the above grammar for you
There
 
Is grammar better than the @Unihedro's regex.
 
fge
You even collect the values now
But it can be improved again
I don't know your POJOs, so...
 
@JavaTechnical Grammars are better than any regexes you can build for this because like I said literally the first thing was that regex is not the right tool.
 
fge
You could use event-based parsing and collect a list of students from a file
 
3:31 PM
24 mins ago, by Unihedro
P.S. Don't use regex for this.
 
fge
And if this file is large you event have largetext which works out of the box with grappa :p
 
ok.
do you people have any idea about big-data frameworks like storm and spark?
I have a question about this.
 
@JavaTechnical Spark as a big data framework? Can't tell if you're trolling or not.
 
I mean apache spark
 
3:35 PM
Oh, that framework sucks.
 
Because.
 
@JavaTechnical Hmm?
 
I think you have a long explanation?
 
3:40 PM
Why?
It just is, not like I have to prove clear facts.
 
ok.
I have two jobs to do.
One is to parse given data to json and next is to publish to kafka.
 
@Uni when you don't put any basis for what you say it sounds like it's just your opinion :P
 
The data comes as a http request.
I would like to know, whether using a big data framework for this case would make sense.
In fact, the process doesn't seem to take much time.
However, the requests are more.
Is it a good idea to create a storm topology which watches for that url if there are ny requests by using DRPC or otherwise, just write the simple code in the GET/POST method.
 
fge
And what amount of data is that?
You know, in "bigdata" there is the word "big"
 
Yes, the data is however small, but requests are going to be more.
 
fge
3:46 PM
If you don't have data in the tens of gigabytes to manipulate, it's just not worth the hassle
 
So do you mean that I require task parallelism here.
at least
 
nope sounds like a tiny project
As long as it requires less than 256 MB of ram and less than 100 GB of bandwidth, just don't worry about upgrading. It's not worth the effort.
 
Then how could I handle more requests, just by more servers?
 
fge
Do you even have a problem currently handling the requests? In fact, do you handle any at all at the moment?
 
^
@JavaTechnical Just do that? It's not like anything will go wrong. (With your current project specs, at least)
 
3:49 PM
no, but however on my local machine the request seems to be a bit lazy.
 
windows?
 
yes
They are actually REST API endpoints
 
@JavaTechnical There's your problem.
 
Also, is there a separate server that suits best for REST API endpoints, or tomcat is fine.
 
Define best?
 
fge
3:50 PM
Hooo, java7-fs-ftp just got another star
And it's my worst current filesystem
Meh
 
best, I mean faster in serving the requests
 
Meh, I give up. (you should) Help yourself.
~ brb
 
4:15 PM
@fge :O
This is something new
 
fge
4:28 PM
@ItachiUchiha uh, on some runs it fails, so this is a scene graph operation after all
Aaah
Spring even has an Android version
The poison has spread everywhere
3
 
anyone know how to fix this
when using stencil_test in opengl
http://prntscr.com/5w29rs
http://prntscr.com/5w2a4y
Far away it looks fine but up close the lines done match the player
 
@fge Spring on android, lolz
 
@fge Spring even has a Javascript version.
in JavaScript, 6 hours ago, by Abdennour TOUMI
NEWS : so , if one know this, he will be amzed with the new Js lib : RabeeJS ( https://www.linkedin.com/pulse/rabeejs-spring-javascript-abdennour-toumi )
It sucks.
 
@fge could you tell me how to execute the TestGrammar2
 
4:46 PM
Oh my, JavaScript Spring :')
 
@Gemtastic Which sucks.
Don't even think about using it.
Seriously evil face >:P
 
hehe
 
I think I'm good with vanilla and jQuery
Gotta figure them out before I try on yet another Spring of mess
Spring; the eternal well of stress
 
@Unihedro Do you know how to use the grappa TestGrammar2?
 
Spring: The framework that puts you in hell when you start coding with it
@JavaTechnical Yes.
 
4:52 PM
I would like to execute it with sample data. But, I found no working example in the documentation.
 
5:05 PM
@Unihedro are you there?
 
@JavaTechnical Yes, I am alive. But I am chatting with the Pham devs.
 
@Unihedro why do you say that spring puts you in hell have you tried liferay?
 
That's like comparing different brands of apples and say that one can't be an apple because the other one tastes better
;P
 
@Unihedro Could you tell me how to execute that parser with sample input?
 
@Gemtastic well you could loom at that question from many perspective ;)
 
5:08 PM
@Smrita I don't get it. Is this a troll attempt or an honest question?
 
A hell is still a hell :P
Even if there are worse ones
 
@Unihedro its an honest question. let me frame it again. I am curious as to why you think that spring is hell. also have you tried liferay. (not trying to compare spring and liferay at all)
@Gemtastic well my experience with liferay wasnot good
had to restart the server every now and then
deployment took so much time
total pita
do you guys use jrebel?
 
Well, I never said that it didn't suck, that it wasn't a hell or that it wasn't worse than spring :P
 
it was a big project
had atleast 8/9 big portlets
so deployment was so time consuming
@Gemtastic why do yoi thibk that spring is hell?
 
@Smrita Oh, the rephrase was an atomic erasure (virtually, not in its literal meaning).
 
5:20 PM
@Smrita Mostly because the resources to learn it sucks
 
@Smrita Nope. I mostly use JBoss. Learning Tomcat.
 
For webapplications I don't really see the point of it
 
really? why do you say so?
resources to learn spring is less?
and spring has no point for web applications?
 
@Smrita No, they're in dialects.
And not greatest support you'd get.
 
well personally i think AOP and DI have made things easier
i like spring
@Unihedro is that why you dislike it?
 
5:25 PM
There are great resources for learning spring with JSP and XML (or they seem great, plentiful doesn't mean great, but it has a higher chance of being something good in there) but for javaconfig, which is where Spring is headed to, there's not much info
 
@Smrita Among several other dozens of boxes of books worth of rants left unsaid about Spring, which I definitely don't have the time for right now, unfortunately. Sorry!
 
@Gemtastic okay you don't like configuring stuff in xml.
?
 
Cryptography is hard.
 
xml is pretty easy
and even android configures stuff in xml i like xml
@Unihedro do you go to a uni?
 
XML is not the greatest format, no. It's becoming deprecated more and more in most thechnologies. It's not that I think it's hard or anything, it's just old.
 
5:29 PM
@Smrita I'm in high school.
 
I'm learning the new stuff
 
@Gemtastic perhaps :) but i like it anyway.
@Unihedro okay :)
 
@Smrita Well, noone's arguing with your oppinion
My opinion is that projects without XML are neater and has a cleaner structure.
 
@Gemtastic yeah grails is pretty neat it doesnt need xml configuration. but i like configuring stuff in xml too you knwo separating configuration from your code
 
You should always separate the configuration from your code. Even in Spring where you use Java classes for your configuration you still don't mix business logic with the configuration
My actual code can be applied to a Spring XML-configuration fairly easily. The only thing that makes it hard is that I don't know the XML for Spring
So for someone who knows it, it's very easy to switch
 
5:35 PM
but if you are not plannig to use xml in spring then perhaps you would prefer annotations
?
 
That's what I'm using
 
okay :). yeah all that xml could be pretty tiring sometimes i agree :)
are you working or in a uni?
 
It's just that the teaching materials for spring are for XML not annotations, so learning it in a week has been very cumbersome
Me? I'm at a career school
 
@Gemtastic :P :P
 
whats career school?
 
5:38 PM
@ItachiUchiha could easily turn my project into a XML configured one ;P
 
but spring is pretty cool i like it with annotations or just xml
but when you are using annotations you are mixing configuration with your code
 
A career school is a school that gives you a shorter 1-2 year education which focus on the actual profession, as opposed to universities where you have to learn computer science
 
oh thats cool
:)
 
@Smrita keep it in a different package :P
 
Also, it narrows down your profession too. a CS student at university can becoma a programmer in any language he wants, we only get to do Java stuff.
@Smrita As ita sad; you keep the configuration classes separate, just as you do with XML
 
5:42 PM
how do you autowire beans?
or map urls with controller methods.
or declare a controller?
you can keep them in different packages?
*cant
 
Spring does that for you, you just have to put the annotations there
 
@Gemtastic yeah thats mixing configuration with code
 
Eh all
 
No, you still have separate classes for the bean setup.
 
but you annotate classes witb spring stuff
 
5:44 PM
If you are gonna call the java configuration "mixing it with code" you also mix it with code when you use XML. The principle is exactly the same, only the format is different
 
@Gemtastic haha yeah true
 
fge
XMHell
 
The bean and the bean configuration are two different classes in two different packages
Hi @Kylar and @fge
 
fge
HI @Gemtastic
Version 0.2.0 of the debugger out soon
 
@fge what debugger are you writinh one?
 
5:47 PM
@Kylar Ehyo
 
Now, 5 days into Spring I can kinda see how similar the annotation method is to XML. In the future I will be able to read the XML tutorials and be able to apply it to the annotations, but when I was just beginning, without @ItachiUchiha 's help I wouldn't have been able to do anything.
 
@Gemtastic okay you seem to know a lot i 5 days :)
*in
 
@ItachiUchiha helped me A LOT.
 
@fge Yes, XML is hell. I like the nickname. :p
 
As a thanks I'm gonna pay it forward and help someone else
 
5:53 PM
@Unihedro why do you think that xml is hell just curious
 
@Gemtastic That is very kind of ya :) But, you are a fast learner.
 
@Smrita Well, it includes a lot of abundant, junk information and has an overly free syntax. JSON and YAML does way better.
 
@Unihedro okay havent worked with yaml
 
@ItachiUchiha Well, we both know I asked a ton of questions :P
 
@Smrita That's a shame, YAML is an effective markup language, only that tools on parsing it into decent information are not mature enough to fully expand it into scale.
 
5:57 PM
@Unihedro ohh okay!
 
@Smrita Wait, you didn't know? What have you been doing all the time?
 
fge
@Smrita this
 
@Unihedro i have no clue you know just not knoing yaml makes you feel that people have been doing nothing thats one interesting point of view
 
@marc also helped me a lot. I'm thankful to him to.
 
fge
And it's my first GUI ever
Heh
 
5:59 PM
@Smrita It really isn't.
 
Writes memoirs only to put you people into the thank you commentary
 

« first day (1553 days earlier)      last day (3402 days later) »