« first day (1272 days earlier)      last day (3663 days later) » 

1:23 AM
@fge: I've written the getting started documentation: goo.gl/uxrnRy. Let me know what you think. I think it's a big step towards being actually usable. Now to actually make it happen...
 
fge
2:03 AM
@aliteralmind sorry, got sidetracked but I have that opened
 
2:24 AM
No problem! I had a lot to think about today. I'm glad to have figured this stuff out now, before I started implementing it in the non taglet way.
 
3:17 AM
@fge: Significantly updated. Cleaner and clearer. I'm liking it. goo.gl/uxrnRy
 
 
10 hours later…
1:45 PM
Good morning, Java!
 
fge
Good morning milord
 
Were you two talking about taglets for Javadocs?
Just a word of warning: They only work on Oracle's VM (as far as I know).
I wrote a custom taglet for one of my libraries, and it works on my Mac, but when I tried to build the project on my Linux box, it didn't work :(
 
fge
@Michael hmm, good to know... I use Oracle's VM
 
Ah ok.
 
2:05 PM
I used them to reference specific pages of an RFC document.
The taglets took the format of {@rfc 1234 12-13}
Where "1234" is the RFC number and "12-13" are the page numbers.
The taglet would then generate a link that points to that specific page of the RFC document.
I wanted to use this taglet in my ez-vcard project, but I wanted the project to be compatible with all VMs, so I decided not to.
I wish taglets were part of the standard Java API, they are really neat.
 
fge
Request for volunteers! github.com/parboiled1/project-info
 
The project is empty... o.O
 
fge
Hey, there are links to other projects ;)
 
2:23 PM
xD
 
fge
2:34 PM
@Michael this is an impressive piece of software honestly
 
It's an application about nothing!
(Seinfeld reference) xD
 
@Michael Howdy!
 
fge
@Michael at some point I had an entire CSS3 parser written with this
 
@Appu Appu!! :D
 
fge
I'd need to find the source back, but otherwise I can write it again
 
2:39 PM
@Appu How are you?
 
@Michael I am good and you?
 
Pretty good, thanks.
 
Actually I came to chat now on one problem. But I am hesitating to ask you as it's been so long that we chatted ;) @Michael
 
@Appu It's ok, you can ask it.
 
@Michael I am just reading the data from the .xls file and doing some modifications to the data and writing to .xlsx file. The .xls has huge data. I ran into outofmemory exception ya.
I increased the heap space in eclipse by second method. It's still running. Fingers crossed :D
 
2:49 PM
It sounds like you are reading the entire file into memory before processing it.
You should try streaming the data instead.
 
fge
@Appu why don't you map the file in memory?
 
3:07 PM
HAi Everybody.Iam also just a part of you now onwards.
 
@Michael Hmm... These are the lines
File f = new File(dir+"/destination.xls");
FileInputStream fileInputStream = new FileInputStream(f);
XSSFWorkbook wb = new XSSFWorkbook(fileInputStream);
@fge mapping a file. Sounds new to me.
 
It looks like the XSSFWorkbook class might be reading the entire file into memory.
 
fge
@Appu FileChannel.map()
@Appu with Java 7, use FileChannel.open() to obtain a FileChannel, then use .map() on this channel to map it into memory
@Appu limited to Integer.MAX_VALUE though since you obtain a Buffer, and Buffer indices are integers
Annoying limitation :/
 
@fge Is that faster than using a FileInputStream and reading the data into a byte array?
 
fge
@Michael it is certainly faster to create the mapping, yes; it is also "light on the heap". I don't know for Windows but for Linux, pages (that is, file content) are loaded on demand as well, not as soon as the mapping is created
@Michael also, creating a map is one syscall
@Michael when using a FIleInputStream you have one read() syscall per read
 
3:16 PM
@fge Interesting.
 
@fge I have java 6 installed on my macbookpro.
@Michael As per the logs I am able to read the data but while writing it gives problem.
 
fge
@Appu then go through a RandomAccessFile and use .getChannel()
 
Does memory mapping mean that the file data is not stored in memory? And instead, the data on the hard disk is referenced as if it were memory?
 
fge
@Michael exactly (see mmap(2))
@Michael OK, not exactly
 
@Appu How are you writing it?
 
fge
3:17 PM
@Michael what happens is that it uses another portion of the address space
@Michael but it consumes zero heap space apart from the structure housekeeping
 
So, the file is still stored in memory, but outside of the Java heap?
 
fge
Only the parts you need, and yes, outside the heap
 
@Michael: How do you determine which platforms are compatible with taglets and which aren't? Windows and Mac are okay, but Linux isn't? Is it that simple? Seems like an enormous oversight, for something pretty strongly implied as Java, hence run everywhere...
 
Ah, so it doesn't read the entire file into memory at once, only the parts that are requested by the application?
It's more of a low-level system call?
 
fge
@Michael the address space is allocated, and the OS after that will take care of loading what you are requesting
 
3:20 PM
@aliteralmind The Taglet class is part of the "com.sun" package, which means it's only supported by Oracle VMs.
@fge Oh that's cool.
 
fge
@Michael at least that is how mmap(2) operates; I don't know the Windows equivalent to that
 
@aliteralmind So, it's not a matter of what operating system you are running, but what JVM you are running.
 
File tempFile = new File("writtenfile.xlsx")
FileInputStream fileIS = new FileInputStream(tempFile);
XSSFWorkbook tempwb = new XSSFWorkbook(fileIS);
XSSFSheet tempsheet = tempwb.getSheetAt(0);
//Code to create rows and cells and filling data
FileOutputStream out = new FileOutputStream(tempFile, false);
tempwb.write(out);
out.close();
 
@Michael: So how limiting is it to say that you must use an Oracle VM in order to use "X" library?
That the Oracle VM is a prerequisite.
 
@aliteralmind The rule of thumb is that if a class is contained within the "com.sun" package, then that class is not part of the Java specification. So, there is no guarantee that the class will be implemented by other VMs.
 
3:24 PM
Sheesh. So writing a library based on taglets is pointless if you want people to actually use it??? :(
 
In other words, you should avoid using "com.sun" classes for maximum cross-platform compatibility.
@aliteralmind Well, they will have to be using an Oracle JVM.
@Appu Try using a BufferedOutputStream.
OutputStream out = new BufferedOutputStream(new FileInputStream(...));
 
@michael: Is JavaDoc on all JVMs?, perhaps in a more rudimentary (non-inline taglet) form? I guess I have to look around for alternative JavaDoc/taglet parsers...
 
@aliteralmind I would think so, but I don't know for sure if Javadoc is part of the Java specification.
You should check out the command-line options of the "javadoc" command. There may be arguments that can help you.
 
3:40 PM
But I think what I'm going to do, is create taglets with com.sun
Just to take advantage of their parser.
But make the reliance on com.sun as "thin" as possible, and work towards creating my own parser, or finding an existing one.
 
You should look into creating your own "doclet"
 
Iterating through file lines and searching for {@.mytag ...} shouldn't be too horrible.
 
It sounds like you may be able to create your own doclet implementation, which can be used by any VM.
 
You'd just have to run it, and output it to a secondary location, and then run javadoc on it.
 
You may be able to find the source code of the javadoc tool and use that as a reference.
 
3:44 PM
docs.oracle.com/javase/7/docs/technotes/guides/javadoc/doclet/… Custom doclets require com.sun, too. How does that change things?
 
Dang. :(
 
@michael: I'm posting a question on how to parse inline taglets without relying on com.sun, for maximum portability. Will probably be closed, but hopefully I get some information before it is. Thanks for the tips.
 
@aliteralmind I hope it's not closed. That's a good question.
Doing a quick search for "javadoc" in the Java 8 language specs, I didn't find anything: docs.oracle.com/javase/specs/jls/se8/html/index.html
Well, off to lunch.
chat.close()
 
4:33 PM
@Michael @fge Thanks
 
4:53 PM
0
Q: How to make inline taglets (which require com.sun) more cross platform? Is there a non-Oracle/more-cross-platform javadoc parser?

aliteralmindI'm writing a library that inserts already unit-tested example code (its source-code, output, and any input files) into JavaDoc, with lots of customization possibilities. The main way of using this library is with inline taglets, such as {@.sourceAndOutput my.package.AGreatExample} {@.source my....

Here it is.
 
5:03 PM
@Michael: You're in Philly! I'm in Maple Shade, next to Cherry Hill. I too am looking for a job. Well, soon any way. Been out of work for a--COUGH--moderately long time.
 
fge
@aliteralmind at least, "moderately" -- I, "pretty"
 
5:38 PM
@fge: I guarantee I can beat you both, added together and doubled.
 
fge
@aliteralmind my handle is fge, not fgh :p
And no, you can't beat me
 
@fgh: Fixed. :p
@fge: What do you want to bet?
 
fge
Nothing, it's not a thing you want to bet on anyway
Right?
 
Oh, no. I definitely do. I win this one.
 
fge
Oh, I forgot -- must tweet on parboiled1
 
5:48 PM
@aliteralmind Haha cool. I have been out of work for a while too... :(
 
Gentleman, you're out of workness is nothing like my out of workness. I am a highly experienced out of workness-er. Rock solid credentials.
 
fge
OK, so we are three
Meh
 
Started working in 1997, until being laid off for the second time in 2002. Tried to find work for a couple years, gave up, and ended up being a stay-at-home Dad. Now it's time for me to get back out there, as my kids annoy the shit out of me :) The youngest is about to start Kindergarten.
I'm working so hard on my libraries, so I have something to get my foot in the door with.
So I beat you both. BOOYAH!
Honestly, your stackoverflow profile is a pretty awesome thing to put on your resume. I was hoping to get to 1,000 by the beginning of April!
@Michael: If you didn't see it: stackoverflow.com/questions/23138806/…
 
6:06 PM
@aliteralmind Nice.
I wrote a blog post on how to add syntax-highlighting to the code samples in your Javadocs, if you're interested: mangstacular.blogspot.com/2013/09/…
 
@Michael: That's excellent. I'm going to try and integrate that.
 
 
2 hours later…
8:18 PM
how long have you guys been developing for?
 
fge
@GustavoSuarez in Java, a little more than 2 years
 
@fge what was before java?
 
fge
C, perl, shell mostly
 
Any one doing any project / web development on linux operating system?
I just need to collect the strace of the system in which a project or a web development is being done.Thanks
 
fge
8:37 PM
@user593908 you don't collect the strace of a system but of a process
@user593908 strace -ff -o /tmp/TRACE <pidGoesHere>
 
@fge: I'd like to look at your build process. Any one of your projects you recommend over the others?
 
@fge I am doing a project on advanced operating systems.i wrote a script to strace multiple processes.I just need to run it on a system in which a project/web development is being done .I just need to collect the log files
 
fge
@aliteralmind uhmwell, not really... You can have a look here, it is as simple a build file as you can get (OK, except for the signing stuff): github.com/parboiled1/parboiled-core
@user593908 uhm, and how is this Java exactly?
Ooh, spotted a bug
(in the build file)
 
8:56 PM
@fge: What's the md in README.md stand for
?
Markdown. :)
 
9:36 PM
Nice
 
10:19 PM
@HamZa: Sorry bout that. Didn't realize I posted the same answer.
 
@aliteralmind wut?
 
stackoverflow.com/questions/23144176/… I posted the same answer you did, without realizing it. Undone.
 
@aliteralmind oh, I didn't realise anything :P
 
@HamZa: :)
 
10:58 PM
Hello Aliteralmind, \b boundary was used as I need to create the regular expression string programatically. I have two sets of strings. One is the string to search and other is the string for regular expression. I was adding \b word boundary around string for regular expression. Example String to seach is :$g_f1 eq test1 and string for regular expression is test1 so I add \b around test1. This works for both positive number and text search but fails for negative number. Was hoping to find some common regular expression that can pick the match if it is a text, positive or negative numbers. — user2053032 12 mins ago
 
@HamZa We might as well have not written our comments.
 
lol
 

« first day (1272 days earlier)      last day (3663 days later) »