« first day (1277 days earlier)      last day (3659 days later) » 

fge
7:03 AM
OK, who is ready for a programmation challenge? ;)
 
7:56 AM
what kind of challenge?
 
fge
@chronodekar github.com/parboiled1/project-info/wiki/Future-plans ;) Well no, at least the last one
 
8:23 AM
Hi @fge
Finally, both of us seem to be here...
:-)
 
fge
@Aviral yup
@Aviral so, do you know anything about git?
Or github?
 
I use bitbucket, so enough to use it for coding
Have not used github at all
 
fge
HmmOK
So you have two choices then
 
OK
 
fge
First off, you'll need to git clone parboiled-examples of course
 
8:27 AM
I have the zip I downloaded before. Am assuming that will not be enough...
 
fge
Zip of what?
 
Just go to the site and fork?
 
fge
Wait wait wait
I was coming to the choices ;)
 
Ok. Aviral - be patient!
 
fge
1. create a repo on bitbucket, push your changes there (ie, your added example), tell me the remote URI, I'll do the rest;
2. create an account on github, fork directly there, push your changes, make a pull request
 
8:29 AM
Hmm...
OK. Will then create a pull form github to bitbucket and work off of that.
Will take me some time though. In the middle of a few things right now. Is that OK?
A week or 2?
 
fge
Eh
 
Mostly about a week
 
fge
Ahwell, can't be helped ;)
But what zip are you talking about?
 
Appreciate that mate. Will get back to you.
I had downloaded a zip with the parboiled code and examples (I think!)
 
fge
And your example is in this zip?
 
8:31 AM
That was when I had started programming
The one I started with
Let me check. give me a min
 
fge
Meh, you didn't choose the easiest task
 
Yup. Parboiled-Master.zip
:-)
 
fge
And the code of your example is inside it?
 
No! I used the "calc" example and then modified it for my use
 
fge
So it is a single, separated file then?
 
8:33 AM
I will have to re-write because the changes are too specific to my code...
 
fge
OK
 
My example will be a single, separate file, yes
 
fge
Excellent ;)
Looking forward to it!
 
Cool! will catch you in some time then. Or will come back if I have a question/issue. Cheers
 
fge
@Aviral don't hesitate to send me a mail if need be
 
8:59 AM
OK. How do I reach you by email?
 
fge
@Aviral sorry for the delay -- should be on my user page
 
@fge that library .. you made it?
or are you just modifying it?
 
fge
9:16 AM
@Aviral I didn't make it
It is Matthias Doenitz which did it -- but since then he is on parboiled2 which is scala only
And nobody took the plunge to maintain parboiled1... Until now
 
soo.. you are attempting to port that library to java?
I don't know much about that library. What's it about?
 
fge
@chronodekar no, that's not it
OK, so, what it is: it is a library which allows to write grammars entirely in Java
You can also alter the stack etc which means collect nodes and so on
That is unlike AntLR or JavaCC which require a preprocessing phase: parboiled requires none
You just create the parser, run it over your input, collect the values
@chronodekar the examples contain for instance an entire parser of the Java language itself
(1.6 though, not 1.5)
Err
Not 1.7+
@chronodekar the original version had both Java and Scala support; it is now unmaintained
So (with the permission of its author) I forked it, created an organization on GitHub around it and I now maintain a pure Java port (no more scala support)
 
@fge I'm going to have a look at it, but think it might be a bit beyond my skill-level.
are there any examples which show how to use it?
 
10:26 AM
If I'm using JDK 1.7, I'm writing Java 7, right?
 
10:43 AM
@Se
@SecondRikudo if you are using JDK 1.7; it means that you are compiling with Java 7. It does not necessarily mean that you are "using" Java 7.
Also; due to backward compatiblity, most Java 6 code should work the same in Java 7. In that sense; one could argue that they are Java 7 code.
Now, if you are using a new feature that was introduced with Java 7, then saying "writing Java 7" might have better meaning.
 
@chronodekar Yes, that's what I mean.
Because Intellij asks me which Java level language I want.
I'm coming from PHP, so I'm still learning the basics of Java setup. I can probably write working Java code, but I am clueless about setting everything up XD
 
@SecondRikudo ah, that is probably a matter of how Intellij plans to check your code. You are basically telling it "here is my source code, please tell me if its Java 7 compatible. Also, use my JDK 1.7 to check it"
In theory, Java 6 code, should run just fine (unless something got depreciated).
Have fun coding! :)
 
@chronodekar Aren't there feature additions between Java 6 and 7?
 
fge
@SecondRikudo you have two possibilities in IDEA: the JDK to use, the language level to use
 
@fge Right
 
fge
10:58 AM
@SecondRikudo it is generally safer to use a JDK matching your language level, though
 
12
Q: Summary of differences between Java versions?

boucekvWhat are the major differences in between Java version in terms of software development? Where can one find a summary of the most important changes related to programming? The Release Notes such as http://www.oracle.com/technetwork/java/javase/releasenotes-136954.html can be hard to read. For ...

if you care for details.
 
fge
@SecondRikudo and yes, Java 7 has new features compared to Java 6
 
but for a beginner, I don't think it should matter.
 
fge
There is one very important thing
The new file API
The second is try-with-resources
 
@chronodekar I'm a beginner at Java, but I'm already very familiar (read, build systems from scratch) with OOP practices.
So if there're things there that get changed, it might make a difference for me.
 
fge
11:00 AM
@SecondRikudo well, if you do anything file related, use java.nio.file
 
So what happens if I write Java 7 specific code and use 1.6 JDK?
Compile syntax errors?
 
fge
@SecondRikudo won't compile (with a JDK6), and if compiled with 7 and run on 6 you get an incompatible class version error
 
@fge I see
So Java 7 isn't backwards compatible with 6
 
fge
You can set the target level with Java 7
So you can tell it to compile for 6
But you won't be able to use any 7-specific code
 
If I compile Java 7 and someone with Java 6 installed on their PC, it won't work, right?
 
fge
11:02 AM
It will if you have told JDK 7 to compile with a target of 6
 
Aha
But then, like you said, 7 features won't be available.
 
fge
Indeed they won't
 
So the JDK is used to compile, and the language level just indicates syntax highlighting and checks, right?
sigh you gotta love chats, you learn more in 10 minutes then you would have with 5 hours of reading docs/tutorials.
 
fge
@SecondRikudo that's about it, yes
 
11:21 AM
@fge I'm curious now. Is there any difference or benefit between A. "using JDK7 with a target of Java 6" and B. "using JDK6 with a target of Java 6" ?
to what I understand, the output should be the same.
 
fge
@chronodekar it may not be
@chronodekar the code in rt.jar, while compatible for already existing methods, may differ
@chronodekar and you can make the error of calling a 1.7 only method
That problem hit me a loong time ago when devs at my work used constants for colors defined only in 1.4 but the production was (yes) 1.3
And it was not that long ago
It wouldn't run at runtime because of that
@chronodekar in fact, if you try and compile for 1.6 with 1.7 it will warn you if you don't override rt.jar
This is new with 1.7, 1.6 and earlier didn't give that warning
 
11:53 AM
Hi
 
 
2 hours later…
1:32 PM
Good morning, Java!
 
fge
Good morning milord
 
@fge A good example of this that I like to use is the "String.isEmpty()" method.
It was added in 1.6, so if you are using a 1.6 JVM and you set the target to "1.5", it will compile, but you will get a runtime error.
(if you run it with a Java 5 VM)
 
1:47 PM
I wish it would throw a compile error in that situation, though.
I wish it could recognize that a class or method is only supported in a particular Java version.
That would be nice to have.
 
fge
@Michael IDEA notices that
 
@fge Really?
 
fge
Yep
 
That's cool.
 
fge
IDEA rocks :p
@Michael the structuring of your emc-shop project makes me want to try and have a go at a GUI program again
At last a design I understand
 
1:52 PM
Seriously, Presenter First rocks.
Things "just work".
I wasn't able to use it throughout the entire application, but I was able to convert most of the dialog windows to use it.
 
surely that would be so that you could use new methods inside an if statement after checking the version, without having to compile into two separate programs.
 
I have one window ("MainFrame.java") that is huge and that I want to convert, but I've been having trouble.
I want to make a Presenter for that window, and then make a Presenter for each of the tabs inside of the window, but I haven't been able to figure it out yet.
@theellipsis Yeah, you could do that.
 
2:22 PM
hello everyone
guyz, i am having an issue to configure database with netbeans on mac
please help me
hello Michael
 
Hi @Aseem
 
Michael, could you please help me?
 
 
1 hour later…
3:40 PM
Good morning Gentlemen
 
fge
Good morning
 
4:35 PM
hi how can println the result from this rs = stmt.executeQuery("select * from PERSONNEW where PERSONID="+customerid);
 
 
2 hours later…
6:05 PM
hi.. i need help in pdfbox. please somebody guide me...
 
 
2 hours later…
7:56 PM
Is stealing code and claiming that you wrote it a valid close reason here?
The code in this question was stolen from this answer
 
fge
8:12 PM
@Rusher just have a guess
 
@Rusher I think the poster is referring specifically to the "fastExp" method in his example. The "fastExp" method does not exist in the answer that you referenced.
 
 
2 hours later…
10:34 PM
Hi, when using the TSurgeon (Stanford JavaNLP API) operation "relabel" is there a way to access the old label of a node?
nvm, I learnt you can approach my above problem using regex.
 

« first day (1277 days earlier)      last day (3659 days later) »