« first day (2317 days earlier)      last day (2607 days later) » 

1:46 AM
@Michael thanks for the clarification
 
2:15 AM
them chatbots are amazing
this is why we can't have nice things
 
 
1 hour later…
sv.
3:38 AM
All: Have a question on Java RMI and ports. Please ping me back if anyone can help. Thanks.
Problem is that I'm using 2 ports for RMI 1099 & 10991 .. but I still see random ports being used.
In a Firewall situation this might fail.
[abcd@abcd123] /opt/local/tomcat/webapps $ netstat -an | grep 1099

tcp6 0 0 :::1099 :::* LISTEN
tcp6 0 0 :::10991 :::* LISTEN
tcp6 0 0 10.1.1.211:1099 10.2.2.220:48030 ESTABLISHED
tcp6 0 0 10.1.1.211:39538 10.2.2.220:1099 ESTABLISHED
tcp6 0 0 10.1.1.211:1099 10.2.2.220:48024 ESTABLISHED
What to make of ports 48030, 48024 etc. Seem like Random ports .. how to prevent it?
2
A: What port is used by Java RMI connection?

EJPAll the answers so far are incorrect. The Registry normally uses port 1099, but you can change it. But that's not the end of the story. Remote objects also use port, and not necessarily 1099. If you don't specify a port when exporting, RMI uses a random port. The solution is therefore to specify...

 
user6110959
4:10 AM
How to write variable description of array variable?
 
user6110959
should I write arr or arr[] ... I am talking about theory
 
user6110959
In variable desription you describe all the variables you used
 
user6110959
SO should I write arr or arr[]
 
sv.
@Abcd New to Java? Do you mean how to write array name in javadoc comments?
 
4:56 AM
is using @SupressWarning (“unchecked”) something that should be done with careful consideration?
 
 
2 hours later…
user6110959
6:29 AM
@sv. they haven't made it clear how to write the array name in comments
 
8:11 AM
@bsapaka any form of warning suppression is. Warnings indicates problems, which you should resolve instead of ignoring. There are very few cases where the warning is incorrect.
 
You should determine if the warning could cause a problem and make it so that's not the case
 
user6110959
8:33 AM
Assign the value of pie(=3.142) to a variable with requisite data type
 
user6110959
Can someone tell me what's type casting?
 
user6110959
is it same as type conversion?
 
user6110959
or is it explicit type conversion only?
 
8:51 AM
@Abcd You can learn about type casting here: docs.oracle.com/javase/tutorial/java/IandI/subclasses.html under the header "Casting Objects"
Type casting is the thing that does things to things with inheritance.
 
 
2 hours later…
10:32 AM
@goodyzain
 
@ParthPatel don't ping users that aren't in the room, it's not helpful to them.
 
 
2 hours later…
12:32 PM
If I have, this line:
init i1, i2, i3 = 0;

They are primitives, will initialize to 0 too? Or they are declared only?
 
what's init?
 
int sorry
 
if it's a class-level field: they'll all be initialized as 0
if it's a local variable, i1, i2 will be uninitialized and i3 is 0
 
ahh great, I was confused about an example that I see :)
thanks
 
1:29 PM
hi all
 
2:00 PM
hi
 
2:20 PM
Morning, Java!
 
morning
 
Hey @Gem
 
morning and rip google spaces 2017
 
Hey @Uni
More like RIP SHA-1.
 
oh yea
they broke their repo when they were posting POC
so you know that was legit
 
2:24 PM
@Unihedron Spaces did?
 
@Michael no the shattered.it svn project
 
lul
 
FizzBuzz in Assebly is gonna be fun XD
 
strong start for 2017, the internet is starting to fall apart already
and we thought 2016 was bad
 
2:41 PM
o/
 
@Unihedron Dang.
 
@Unihedron 2016 hit the old celebrities, 2017 hits the modern ones
 
Also, why are they using svn? xD
 
extrapolation: 2018 breaks the future, energy has officially run out
 
3:03 PM
The electrical grid will be a thing of the past once everyone has solar on their homes.
 
@Michael Isn't the computational time required still very high, with the exception for those who have supercomputers?
 
3:19 PM
@RegisteredUser "This attack required over 9,223,372,036,854,775,808 SHA1 computations. This took the equivalent processing power as 6,500 years of single-CPU computations and 110 years of single-GPU computations."
 
@Unihedron That's what I am refering to. Seems like impossible for most people
Except NSA maybe :P
 
if there's anything we know about technology, once someone sets out to optimize that problem, that timer is going to go down fast
 
@Unihedron that's true
 
Hi
 
it wouldn't have been a big deal if it didn't affect much, but all these tools that everyone depends on are at stakes here, signatures and utility systems depend on it
and who knows what else
 
3:24 PM
People still use SHA1?
 
Not only people, but loads of software and hardware :)
 
it's in the process of being phased out.
it's not a fast process
 
I just discover stack's chat, it's like we talk, can ask questions on Java (for here) or just chat and questions are reserved for posts ?
 
You can always try your luck with questions.
 
@azro simple, quick questions are fine I guess.
 
3:26 PM
@azro You can ask, but it's the same story - you respect the culture of the room, you follow the quality guidelines roughly, and play nice
if someone can and wants to help you, they would :p
 
okok
 
@RegisteredUser git uses sha1, for starters, so if you use github you already do :)
 
@azro you are very lucky that we have answered your question about whether you are able to ask questions here :D
 
all code on the internet is built on other code - and somewhere in there, large chunks are vulnerable, broken, or waiting to snap
 
so an easy question : get back content on an account web page (i mean you have to log in before), i've done something very very dirty : a Robot instance move the mouse on the content, double click, and the ctrl-C, and then I get back the content with the clipboard, but as i said it's very dirty i know, and a bit long because i've do it lots, so is there a better way ? ;)
 
3:30 PM
@azro Yes, use an HTTP client and a DOM parser.
 
how about parsing the DOM on the browser with javascript?
 
Just after the sha1 collision, i've a teacher who asked us to write half of a page on sha1 history ^^
 
or without the browser, use an http client
 
@azro Sounds like a good teacher.
I'm 98% sure my brother's teacher has no idea what SHA1 is.
 
mine is a cybersecurity teacher so .. ;)
I assume i'm a noob in Web things and java ^^
 
3:32 PM
 
so i'll have to read a bit on DOM because i've never heard about ^^
 
I wish my teacher was like that
 
Currently the fastest cryptographic quality hash in the west is supposedly BLAKE2
 
@azro You've a cybersecurity teacher? :o
College? Uni?
 
wiki:document_object
 
3:33 PM
engineering school, IT & cybersecurity option so yes i have some teachers into
 
I forgot what the M in DOM stands for, I am sad
 
@Unihedron Model
 
@MadaraUchiha oml
 
!!urban oml
 
@MadaraUchiha OML Stands for 'Oh My Lord!'
 
3:34 PM
!!urban uml
 
@unserializable [UML](http://uml.urbanup.com/2796408) a computer meta-design term which stands for Universal Masturbation Language

UML methodology has been used successfully in the design and implementation of several sexbot and fuckbot systems

UML is often used to bridge the gap between soft-ware and hard-ware
 
unicode_thinking_emoji
 
so DOM can help to get back the content, even the page need to login ? (sure i have a login and pass for the page)
 
@azro DOM is the model for elements to be formed on a page - by parsing the DOM after you login, you can get the stuff you need
I love it when someone uses unicode emojis in a chat service with no jumboji support, I'm not on a mac so I only see squares :D
 
3:40 PM
@azro The jsoup library is good for parsing HTML DOMs.
 
it's just what i'm reading on haha
 
@azro HTTP will get you the data
The data is in HTML
You can use DOM to parse the HTML
 
http request - server - http response (html string) - parse into dom - find your data based on your knowledge of where it is / what it's labelled as / etc
 
I download Jsoup library, and try the example shown on his website :
doc = Jsoup.connect(page).get();
Elements newsHeadlines = doc.select("table"); (i want to get back a table)
for (Element element : newsHeadlines) {
System.out.println(element.toString());
}
but this show me the http lines of the login page
 
maybe you want to do some other things instead of toString()?
 
3:51 PM
during pas researches i already read "you can't if the page is protected by log/passw, mayeb it's true, or not ?
does it change anything ?
 
is there even a table at the page you're connecting to?
 
if i'm not able to print, i won't be able to do anything else
yep
 
If the page is password protected, you have to send the necessary HTTP request to login, and then save the login cookies. Then, you pass the cookies to jsoup when you parse the DOM.
 
an alternative might be for you to log in, then save the page, then dump that saved page into jsoup
 
As always, login thingy for JSoup has been on SO
 
3:55 PM
^ for POST-with-form-data requests
 
These form submissions and session/parameters to keep are always site-specific though.
 
so i just need the name of the /login.php and the name of the fields
sh** i have to go ..
but i'm not sure i will be able to, because it's game and there is a "no-bot policy" :D
 
4:37 PM
o/
 
4:56 PM
There's a DOM parser for Java?
 
jsoup?
 
So I've been doing it the hard way?
 
I've been getting data from HTML files by reading the entire file into a String and then using indexOf and substring to get the info I want.
 
at least you're not using a regex
but that method comes with many implications, that will break at any time
 
5:08 PM
Yeah, I'm assuming the webpage design isn't going to change drastically.
 
@JonahSloan Why not a DOM parser?
Working with strings should always be your last resort, that thing you do at the lowest possible level.
"Getting data from the website" is a high level concept, you shouldn't be doing string processing there.
 
@MadaraUchiha I've never heard of a DOM parser for Java until today
 
@JonahSloan that's not a safe assumption :)
from now on, use a dom parser, look for one if you haven't already found one
you need tools that people who are smarter than you and I have written for this
otherwise it would just break
 
But breaking things is fun!
 
@JonahSloan No, breaking someone else's things is fun.
 
5:30 PM
come back :D
 
Actually, I think the way I'm doing it is more efficient than a DOM parser. Because the DOM parser still reads from the URL, does string processing, and then makes a DOM tree
 
i''ve read stackoverflow.com/questions/23320498/… but not sure to understand all
because i know the url /login.php because it's the page where i enter log and pass
but i don't the page which check, (the authentificate one in the forum post)
 
Joe
6:02 PM
Hi I have a quick question
In my Binary search tree I have four numbers : root 4 then 2 then 1 then 5
the height of this tree should be 2
here is my code , it gives me that the height is 3
public int height() {
return height(root);
}

private int height(Node n) {
if(n==null) {
return 0;
}
return Math.max(height(n.left), height(n.right))+1;
}
IS IT OK IF I CHANGE return 0; TO return -1;
@azro @JonahSloan
 
@Joe Sure
 
Joe
@JonahSloan so the return should be return -1;
return 0; is wrong
Is that what you mean?
 
I have no idea what I'm saying.
 
Joe
@JonahSloan what does that mean?
you dont understand my question?
 
I think it doesn't really matter if it returns 0 or -1
 
Joe
6:10 PM
no it does matter because I get differrnt values when I change that
 
@Joe I think it should be ok to change it to -1
Unless you want the root to count itself when calculating the height
If I did my math correctly, then I should be right.
 
6:28 PM
youhouuuuu it's working, connecting on the site with login, then acces a particular page, and get back data after using POST form of the page, thank you all :) :)
 
 
2 hours later…
8:30 PM
!!is the chat dead?
 
@JonahSloan No
 
8:44 PM
evening :D
 
9:36 PM
i accidnetally hit Update on my iPhone. Anyoe know how to stop the in-progress update?
 
10:17 PM
@TheCoder hold down the home and power buttons a the same time for 7 seconds?
 
10:29 PM
!!test
 
@MehdiB. Das
 
!!help
 
@MehdiB. Information on interacting with me can be found at this page
 
!!/listcommands
 
@MehdiB. help, afk, ban, convert, define, die, doge, eval, forget, google, hang, imdb, info, jquery, learn, listcommands, listen, live, mdn, meme, moustache, msdn, mustache, nudge, refresh, spec, stat, stats, summon, tell, unban, undo, unonebox, unsummon, urban, weather, welcome, wiki, xkcd, youtube, zalgo, !, !!, $.baby, (4337654<<1)+1, (y), /somecommand, 0, 1, 2020/07/23, 3, 666, :3, :p, </pissing>, ?, @tim, ^, ^5, a, abesnacking, abhi, abhishekpornfreak, acronym, adhd, ah, ahah, algosmarts
aliens, all, am, angryticks, answer_to_everything, apocalypse, appreciated, archerneat, armforce, a
 
10:31 PM
!!/greatest_question_in_universe
 
wait, is this a bot or a bot + someone? :D
> Occasionally run by a person
I see, so was the edit made by the bot or by the person ?
 
@MehdiB. It was the bot
Caprica is smart
 
I see, makes me wanna read the code :D
what about the command you fired Jonah? (is the chad dead)
It's not on the commands list
 
!!cowsay There's more commands than the ones just in that list
 
10:43 PM
 __________________________________________
/ There's more commands than the ones just  \
\ in that list                              /
 ------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
haha! Gotcha :D
 
11:16 PM
There's the suspicious command "i‬‬‬‬‫s"
Quite a few commands that look like suspicious variations of the base commands
Specifically these four commands: googl𝖾, googļe, h𝖾lp, i‬‬‬‬‫s,
 
I see
!!/googl𝖾
 
!!/googļe
 
They all link to the same youtube video?
 
11:27 PM
!!/is
 
@MehdiB. That didn't make much sense. Maybe you meant: i
 
yeah that awful song
 
!!/i‬‬‬‬‫s
 
Yes.
 
!!/is
 
11:29 PM
@MehdiB. That didn't make much sense. Maybe you meant: i
 
interesting
 
!!java
 
@JonahSloan That didn't make much sense. Did you mean C#?
 
!!info java
 
@JonahSloan Command java, created by mikeTheLiar on Mon, 18 Apr 2016 14:44:35 GMT
 
11:32 PM
!!/put..it..back...ლ(ಠ益ಠ)ლ
 
┬─┬ ノ( ゜-゜ノ)
 
!!sandbox
 
@JonahSloan Please go and play in the Sandbox
 

« first day (2317 days earlier)      last day (2607 days later) »