« first day (1499 days earlier)      last day (3456 days later) » 
00:00 - 15:0015:00 - 00:00

12:00 AM
yes the grammar is the hardest to get.
at least most of the intellectual part
 
fge
Yeah, which is why the rules as methods are easy: Rule number() { return oneOrMore(digit()); }
And of course you can process the values
Meh, I need to finish that vCard grammar
 
Already 1am, I think I'll go
See ya later
 
 
1 hour later…
fge
1:22 AM
0
Q: Method references not complying to SAMs, yet compilation does not fail... Is it by design?

fgeIn the snippet below, both usages of forEach() compile: public static void main(String[] args) { BigDecimal spent = BigDecimal.ZERO; Stream.of(BigDecimal.ONE, BigDecimal.TEN).forEach(spent::add); Set<BigDecimal> set = new HashSet<>(); Stream.of(BigDecimal.ONE, BigDecimal.TEN).fo...

head spins
 
1:33 AM
hi
so for some reason the arraylist in my program grows, even after i use a arraylist.clone
 
fge
@Barakados don't tell me you expected .clone() to empty your list?
 
one sec
no after it's cloned it clears
grr
to the debug
 
fge
Ah good, you have learned debugging :p
 
1:51 AM
nope
i have no idea what im doing
 
@Barakados Try to avoid using clone().
If you need to copy an ArrayList, just call the copy constructor.
 
...?
there is no copy constructor\
 
List<String> list1 = new ArrayList<>();
List<String> copy = new ArrayList<>(list1);
 
WHOA
 
Mind blowing, isn't it?
 
1:54 AM
java continues to maze me
 
It mazes me too my friend. It mazes me too.
 
but i still don't get why the
 
 
1 hour later…
3:02 AM
last message was posted an hour ago
 
OakBot Online.
 
@oakbot test
 
WHOA
WHAOAHAOWHAPO
 
Are you ok?
 
3:24 AM
OakBot Online.
OakBot Online.
 
3:38 AM
=help
 
OakBot Command List
about     Displays information about this bot.
help      Displays this help message.
javadoc   Displays class documentation from the Javadocs.
shutdown  Terminates the bot (admins only).
 
3:54 AM
=help
 
OakBot Command List
about     Displays information about this bot.
help      Displays this help message.
javadoc   Displays class documentation from the Javadocs.
shutdown  Terminates the bot (admins only).
 
==hdl
 
@Barakados I don't know that command. o_O
 
=sleep
 
@Barakados I don't know that command. o_O
 
4:40 AM
is anyone on?
 
 
3 hours later…
7:20 AM
lalala
 
 
3 hours later…
10:03 AM
You can't. There's never a need to. The fact that NPEs are thrown on initialization means your classes has an incorrect circular dependency and constructors fail to complete construction without throwing the NPE. Fix those instead. This question cannot be answered in its current state and I've voted to close it. — Unihedron 33 secs ago
Am I wrong?
 
@Unihedron Seems fine
 
10:56 AM
[GameKnot] (gameknot.com)
 
Erm... no space between [] and ()
 
Can't edit now ;(
 
What's gameknot?
 
Online chess gaming
 
11:00 AM
game knot is different
 
Things different from chess are not chess.
 
lol not different from chess :P
 
You're drunk.
:P
 
I guess
 
0
Q: Where to go for [mcedit]

UnihedronThere's a tag for mcedit. Here's its tag excerpt and wiki: mcedit is an editor included with Midnight Commander featuring syntax highlighting for many languages, macros, code snippets, etc. mcedit is an editor included with Midnight Commander, which can be executed as standalone progra...

Any Midnight Commander experts please voice on this one ^
 
11:03 AM
No, I don't drink ;)
 
jezz.. Minor?
 
Midnight Commander's still alive? I have used it... something like 17-18 years ago
 
11:28 AM
It is
IIRC, some folks forked it and it's still under active development now
 
fge
Hmm, I remind trying it when I was looking for my editor of choice; unfortunately for it, I also discovered vim at the same time
 
lols
 
11:49 AM
Morning
 
Subah Bakher ;)
 
morning
 
dammit no instant translate on my linux machine..
oh well;)
 
What do you want to translate
?
 
your greeting ;)
 
11:53 AM
Subah Bakher == Good Morning
 
guessed that.. just to be sure...
anyways it seems I forgot to push my latest change on a different laptop..
and now I can't really do things,since the changes were kinda breaking...
 
Don't you have access to that laptop?
 
It's in my company's locker...
long story short: no
 
Hi
 
Hiya @JavaFan
Hiya @jampster24
 
12:07 PM
I would like to make a java program that firstly read the prizes of a specific good for example say car from many web pages compare between prizes and order them ascending or descending am heard about many tools like json ,jsoun xmlparse what is the best tool for this purpose ?
 
none and all
 
hehe
 
-> depends on what format you get your data in...
 
You need to first check for the available API to those websites
 
please more explanations
 
12:08 PM
I hearsay that some sites even return xml..
JSON != XML
JSOUP can parse HTML
but not XML
xmlparse can parse XML but not Json
 
SItes may return different formats (even outside of this standard format)
 
fge
jsoup can parse JSON?
 
waaait...
it's that HTML thing, right?
 
I guess first he should know whether he can extract data from the website or not
 
fge
12:10 PM
@Vogel612 yes, it's an HTML parser
 
yes @ItachiUchiha I am newbie in website construction
Html parser can help me in all webpages?
 
fge
@JavaFan it will help you if the content type returned by your HTTP request is text/html (probably also text/xhtml)
 
thank you fge
 
@fge shoops slipped up there..
 
It really is vamp season! frantically rushes to compose < Raising Your Own Help Vampire Vol. 1 >
@ItachiUchiha "Its the GridCells which are not"... What? Isn't that sentence incomplete?
And te indentation is really broken in your code..
        Button r0 = new Button("0");
        gridPane.add(r0, 1, 4);
        GridPane.setHgrow(r, Priority.ALWAYS);
Don't you mean r0?
 
12:15 PM
@Vogel612 fge slipped up?
 
apropos broken indentation... @Unihedron your formatting prefs really can be...well see for yourself
@JavaFan no I did...
and he corrected me...
 
@Vogel612 Please git blame that.
:P
 
@Unihedron Thanks!
I was in a bit of haste :P
 
This is what I mean by broken indentation @Vog:
 
@Unihedron I ctrl+shift +f'd that
@Unihedron urk that looks messed up..
 
12:19 PM
Why else would I call it "broken indentation"? ;)
 
for example like this ksa.hatla2ee.com/en/car/price/chevrolet can I get some of its content by html parser?
 
@Unihedron KILL IT! KILL IT WITH FIRE!@
@JavaFan Why not?
 
@JavaFan Yes.
 
I'm not familiar with Java's HTML parsers, but the point is to parse HTML :D
 
Wait... You know how websites works right?
 
12:20 PM
lel..
 
Your browser posts a GET request through HTTP, and the server returns the format it desires. In this case, it's HTML (<!DOCTYPE html ...>), so your browser renders the HTML in the way it wants. And then you see the page!
 
ok can I use htmlparser with all webpages?
 
most of them yes..
 
What the HTML parser does is that you specify the xPath or cPath or TagName, and it returns the corresponding xPath-o, cPath-o, or content in TagName.
 
some html-pages are just too broken for parsers to make sense of them
 
12:21 PM
@JavaFan No.
Some webpages are maliciously formed and attempts to parse them leads to horror and program breakdown.
You're a programmer, you're supposed to know all this.
 
or you do it wrong and try parsing the whole page using regex...
 
Why not? I parse webpages with regex.
 
but only a limited subset...
 
not the whole page only parts of it
 
and not arbitrary html...
 
12:22 PM
The thing about the zalgo rant is that parsing [x]html with regex should be done carefully. If you don't know regex, or the html is arbitrary, don't do it.
 
I know html
 
So does everyone else.
Not sure what you're trying to convey here.
 
15:07


I would like to make a java program that firstly read the prizes of a specific good for example say car from many web pages compare between prizes and order them ascending or descending am heard about many tools like json ,jsoun xmlparse what is the best tool for this purpose ?
@Unihedron you might not read my first question
 
6 mins ago, by JavaFan
ok can I use htmlparser with all webpages?
@JavaFan I did, but I'm answering ^ that.
 
~food
 
12:27 PM
18 mins ago, by Vogel612
JSOUP can parse HTML
but not XML
 
So I understand I may need to use many tools due to difference of webpages construction?
 
@Unihedron html is a kind of xml, no?
 
what is the better for html jsoup or Html parser?
 
fge
@Mr.777 no it isn't
 
Why not?
 
12:29 PM
@Mr.777 HTML != XML != XHTML != HTML5 != JSON != YAML
 
Question is why not?
 
hahahahah
 
Because... They're not.
 
fge
@Mr.777 look at the <p> tag for instance; you are not required to close it
If HTML were a subset of XML that would be required
 
They're not. They're not. They're not. They're not. PROOF They're not. Bye
 
12:30 PM
each of them are standalone languages
 
ಠ_ಠ
 
@Unihedron what is the better for html parsing jsoup or Html parser?
 
Hold on... JSoup is an HTML parser. Why are you using "or"?
ಠಿ_ಠ
@JavaFan Can't tell if you're trolling or not. ;) JSoup is an HTML parser.
Use it.
 
ok
 
@fge - sorry for the delayed response,In DB it shows the characters are good.which means DB encoding is correct.I doubt there are some encoding problems in java or node.js stackoverflow.com/q/27193154/3857636
 
12:36 PM
What tool of html parser has the best performance?
or what kind?
 
You can't compare parsers like that.
 
So?
How I can determine the parser I need?
 
Do your research. Determine what you actually need - to specialize on cPaths, xPaths or tag names. Or if you need features from an exclusive library. Usually JSoup is the way to go.
 
Okay
thank you
 
ou're welcome. Good luck!
It's too dangerous to go alone, take this:
 
1:29 PM
unihedron.tk now with functional "more" button in banner!
 
@Unihedron still loading
 
elevator music cues loading webpage
 
@Unihedron Java room link is not linked.
 
more of.. black screen...
 
@SecondRikudo I screwed up the javascript
 
1:32 PM
anyways @Unihedron did you find time to look into the stuff I mentioned on Friday?
 
I own [The SO Tavern](http://chat.stackoverflow.com/rooms/5/the-so-tavern-free-snacks), and frequent [Tavern on the Meta](http://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta).
 
@Uni I can see the links instead of hypertext/linked text
 
Yes, I screwed up the javascript, it's supposed to replace them with functional links
grr
 
@SecondRikudo I'm also in my home room [Java](http://chat.stackoverflow.com/rooms/139/java)
 
@Unihedron didn't bjb have something for that in his github?
 
1:34 PM
mmd.js
 
lolz.. y the fox gif?
 
@ItachiUchiha cuz the foxgif is cool
anyways @Unihedron why green?
 
I don't know. Messing with the theme I guess. Haven't found a way I like yet.
 
@ItachiUchiha I think my problem is very complicated Am true?
 
@JavaFan well... that depends on how complicated you want to make it..
the core of the problem isn't all that hard If you know how to do it
but changing pages, different layouts and all the carp don't really make it easy..
 
1:38 PM
@JavaFan Itz not. Listen to what @Vogel612 says..
 
ermph... and that when I usually don't do stuff like that..
just JavaBot..
but eh.. everything's kinda easy when you know how to do it, amirite?
 
Do or do not, there is no "easy".
 
The complexity in the comparing prizes of a good throughout
diffent pages of diffent styles
However I downloaded Htmlparser from here sourceforge.net/projects/htmlparser/files/latest/… and I will try
 
the interesting part comes when you include currencies, retail cost, porto ...
 
No It's required from me to insert in the databases the prizes of some services and some goods like cars, buses, and also prizes of houses for sales and houses for rent by comparing prizes of different websites and order them descendingly
 
1:56 PM
this sounds like a not quite fully thought out problem...
tip: the descending ordering should be left to the database
you just check you didn't duplicate stuff..
make yourself a plan on how your database should look, normalize it
then write code to scrape the first website and insert stuff into the database and keep going until you're finished ;)
 
ok good idea
the problem of ordering is solved now
 
2:24 PM
Good morning, Java!
=help
 
OakBot Command List
about     Displays information about this bot.
help      Displays this help message.
javadoc   Displays class documentation from the Javadocs.
shutdown  Terminates the bot (admins only).
 
Ah, good. It's still running.
 
Morning, @Michael!
 
Sup @Uni
 
@Uni how can I capture traffic from single URL only in fiddler?
 
2:25 PM
Thanks for the comments, @Vogel
 
@Michael you're welcome;)
 
Don't know. Haven't played with fiddler that much.
 
What do you use for capturing traffic then?
 
chrome dev-tools..
 
POST requests and websockets
 
2:26 PM
press F12 goto network... profit
 
That exists?!
:O
 
Websockets, how?
 
@Unihedron what have you been doing all the time=?????
 
Da hell?
You didn't know that @Unihedron? :D
 
Hiya @shortnamed
 
2:27 PM
    $.post((domain == null ? domain = window.location.href.match(/^https?:\/\/[^\/]+/) : domain) + '/chats/' +
           (id == null ? id = window.location.href.match(/\d+/) : id) + '/events', 'since=0&mode=Events&msgCount=1&fkey=' + fkey().fkey)
        .success(function (o) {
            $.post(domain + '/ws-auth', 'roomid=' + id + '&fkey=' + fkey().fkey)
                .success(function(oo) {
                    var ws = new WebSocket(oo.url + '?l=' + o.time);
                    ws.onmessage = function (e) {
 
staaahpt
y u make things so complicatedß?
 
I never knew chrome dev tools comes with the network capturing!!! Etrmargas
@SecondRikudo no
 
even Internet explorer got such a thing now,IIRC..
 
Yep.
 
Why not fiddler?
 
2:35 PM
@Michael I'll start shooting stuff at your JavaDoc implementation now
@Mr.777 captures waay too much irrelevant stuff..
 
@Vogel612 Irrelevant stuff?
 
requests to other web-pages
 
@Vogel612 Bring it. xD
 
general networking stuff (think ARP)
 
Yeah you can apply filter to only those which you want to see
 
2:36 PM
the whole DNS thing
but the dev-tools already does that for you ;)
 
Have you use HttpFox?
 
What's that?
 
It's FF add-on
 
Browsers are the best JS IDEs.
 
@Unihedron Where did it come from? :D
 
2:40 PM
I think it's good food.
 
Food is only good when you are hungry ;)
 
- Whatcha had for lunch?
- Food.
 
@Mr.777 ever heard of dogfooding?
=javadoc:PageParser
 
@Vogel612 I don't know that command. o_O
 
=javadoc PageParser
 
2:48 PM
@Vogel612 Sorry, I never heard of that class. :(
 
@Vogel612 It only knows about classes in the Java API.
 
@Michael I assume you're using the code as in the JavaBot's javadoc package?
 
@Vogel612 Yeah, it's pretty much the same.
 
because then I think the JsoupPageParser is named incorrectly..
or is it??
=javadoc Document
 
@Vogel612 Sorry, I never heard of that class. :(
 
2:50 PM
It's using Java8PageParser.
 
ohhh..
makes sense..
why is there a JsoupPageParser then??
 
For parsing the jsoup Javadocs.
Not all HTML Javadoc pages have the same layout, so you have to create different parsers,
 
@Vogel612 Yes, I have
 
hmm.. but given we're currently only using the Java 8 api's javadocs anyways..
@Mr.777 that's also "food"
just not really nutritional, these bits and bytes ;)
 
lol
 
2:53 PM
@Vogel612 why is there a JsoupPageParser there, when there's no Jsoup API to parse ;)
 
@Vogel612 I just haven't gotten around to adding a ZIP file for the jsoup javadocs lol
 
that makes... sense..
 
I was thinking we could add Javadocs for other libraries too.
 
sounds like a plan..
 
Plus, I wanted to see how the interfaces I designed held up to multiple implementations.
 
2:55 PM
it might be interesting to structure the javadocs package a bit more though
 
I was planning on creating a UrlPageLoader for retrieving Javadoc pages directly from the Internet, instead of a ZIP file.
 
since currently everything's in that one package and I feel like losing the orientation already;)
@Michael that sounds nice, but I don't know where we would search for the correct URL
 
@Vogel612 How do you mean?
@Vogel612 Well, you would have to specify the base URL.
 
well that's 11 classes over there...
2 are interfaces, 1 is a datatype, 1 an exception
 
For example, the base URL for the Java 8 Javadocs would be: http://docs.oracle.com/javase/8/docs/api/
 
2:57 PM
hmm I saw
obtw, overriding getters is kinda smelly IMO..
 
Oh?
 
you should maybe instead set a protected variable
 
But then I'd have to turn the interfaces into abstract classes...ewww. xD
 
after all it forces you to use the getter in your "private" code..
not really...
you'd just have to create a variable to hold the base url in your implementations..,
I have to admit I do that on my side, too though..
getRoomDescription() ...
 
Oh, you mean store the URL in a variable, then return the variable instead of returning an inline string?
 
00:00 - 15:0015:00 - 00:00

« first day (1499 days earlier)      last day (3456 days later) »