« first day (1476 days earlier)      last day (3464 days later) » 
00:00 - 18:0018:00 - 21:00

12:00 AM
Got 9 chapters done with globally reading (only reading parts I didn;t fully understand)
cya
 
12:10 AM
Hello
Anyone alive?
 
12:27 AM
nope
we all died in the nuclear war
 
Hey @Gemtastic
 
hey :)
 
I've been busy, so I havn't been here... Anybody miss me?
Notice I was gone?
 
12:50 AM
Actually, no O.o
Because in my eyes I've seen you around. Did your kids hijack your account?
 
1:10 AM
I've been popping in while trying to does things...
This machine needs work...
I'm thinking C4 to start...
 
C4? That's out to blow it right up
 
Yeps!
This machine currently is able to run Winders XP, 10, and Ubuntu. None have a speed advantage over another...
It would be impressive if any of them ever heard of something called SPEED!
 
1:30 AM
better get an ssd for that
And ram if you can
 
1:40 AM
It's still has a SLOW processor
 
 
7 hours later…
8:24 AM
Good morning @all
 
Sup
I think I did my test great
sadly I didn't receive anything about polymorphy and inheritance
that's the main thing I focused on :(
well I hope I have a 8,5 or higher
 
out of how many??
 
8:47 AM
Hello World
 
fge
9:09 AM
Hello room
 
Ohai :)
 
fge
9:27 AM
Uuh, you really have to have a look at the javadoc anew
There are plenty of new methods using streams -- they really went bonkers
For instance, Pattern has .splitAsStream()
 
Good grief, really?
 
fge
Yes, really... I was answering Yet Another How Do I Convert To Lamnda(tm) question on ##java
And I just stumbled upon this
Note to self: 1. read the javadoc, 2. goto 1
 
9:43 AM
:D
 
Dev
10:18 AM
@Appu Hello
 
Hi!
 
Dev
is it possible to create android apk file via java code?
i mean ii have to create standalone java software that will do this
is it possible?
 
There's at least 3 build-tools out there, what's your problem??
 
@Dev Hint: Use a native compiler.
 
Dev
my requirement is something like this
@Vogel612 i am android dev, i know java but i never did a java standalone app
so i have to create a web to app converter app
and i am confused how to givea start
 
10:25 AM
T.T what the crap is a "web to app converter"
 
sigh
 
Dev
their a button at the bottom of screen name create apk
 
PROTIP: Write code.
If it's too much for you, then it's too much for you. I'm not sure what to guide you on that.
 
fge
In any event, it looks like an XY problem
 
Dev
When the Create APK button is pressed, it will used all the
input details and insert them into the android source code
framework, set/upgrade the apk version and finally it will compile
the program and do zipalign automatically. A popup messagebox
will show “Download APK” to download the resulting compile.
buddies, i am not much talented as you guys are, i need help, can anyone suggest me the best way?
 
10:29 AM
T.T
you would need to be able to explain to us what exactly you want to do..
 
Dev
okay
let me explain now
 
Before you write us The Book Of Specifications, can you tell us what the problem is? Please also read:
 
fge
@Unihedron neat little site, that one
 
Dev
i have an app, in which i open a url on web by appending some paramenter, as it is a android app, so it will create automatically. now what i want is a standalone java app with some ui from there i will get all the parameters and i have to call android app to execute that url so that it will create apk file.
 
Eh, good for you.
@fge Thanks, me likes too :)
 
Dev
10:42 AM
then help me mate, how can i call android app from java app
 
don't do that and you probably can't
 
^
You can't pillar a nail with an old shoe, nor a bottle.
 
Dev
are you sure?
 
Just my $0.02.
 
don't do that, sure
 
10:49 AM
Well, firstly you're probably not used to your shoes, and you'd break the bottle as the bottle is fragile.
 
you can't ? not quite, but you definitely shouldn't and if you could it'd probably be crap anyways...
sooo... don't do that..
 
It'd probably be mean for me to point that out, so I used a metaphor instead @Vog. :P
 
@Unihedron ... um... better it's easily understandable than he thinks "why not use the shoe?"
at least that's what I think
 
@Vogel612 I definitely recommend using a nail for pillaring nails. It's just that someone who hasn't macgyver'd enough wouldn't be able to do that. That demonstrates the scenario of our audience (@Dev) in this case, who is not familiar enough to code it from scratch nor skip the steps and take a fastpath.
 
even with enough mcgyvering, pillaring a nail with a hammer makes things simpler, more understandable and often even faster...
 
10:59 AM
There is no hammer. (Prebuilt-library that does what our audience @Dev needs)
 
if he even really needs it..
that said, why is javaFX not easy??
 
26 mins ago, by Unihedron
Before you write us The Book Of Specifications, can you tell us what the problem is? Please also read:
@Vogel612 It's not easy? You must be kidding. ;)
 
I don't think that the problem is what he says the problem is...
well... how do you start a javaFX Application without providing a Scene?
 
Me neither, but you threw him the "ya kant" answer and he already left.
 
aka. DIY macgyvered bolting a root window
nevermind..
 
11:03 AM
Hey, I like root windows.
 
why the crap are you supposed to invoke Type.launch((String[]) null); ??
you aren't even allowed to call a constructor yourself...
 
cuz varargs
varargs is weird end of story goodbye the end.
Be right back, I'm going to shower. :P
 
s/end of story goodbye the end/kthxbye/
 
@Vogel612 [status-conflicted-with-another-edit]
 
 
1 hour later…
12:18 PM
@Gemtastic I hear you are having JavaFX classes?
 
@Vogel612 Yes!
 
okay I got a small problem..
I want to represent the state of a conway's game of life.
so... I will need a Grid of whatever's, where I can change the background-color
what would you suggest as "whatever"?
 
Are you using scene builder?
 
nope.
 
Use scene builder
 
12:20 PM
I'd do that programatically, since the grid-dimensions aren't fixes
 
Well then, I have to tell you I've only had one FX class so I dunno how to help you X_X
 
._.
 
I should have had two but I had to go to the doctor so I missed it :/
 
hmm.. then I'm back to digging through javadocs..
 
12:33 PM
eclipse is being unfriendly since I put it on USB...
 
lol
 
can't search the marketplace
everything else works perfectly, but...
 
Greetings!
 
greets
 
How are you?
 
12:39 PM
good
 
Glad to hear...I'm kinda back. Did some major work on two computers. One, mainly to see if I could, another I had to replace the HDD, so now I have Win10 running on two computers.
 
@Vogel612 it's possible you do what you want through the css
 
@Gemtastic ~curiously comes back from digging through the docs
 
@Vog I might have to revert back to HTMLUnit, Mechanize won't behave even after I set the encoding in pom.xml
=(
 
@Unihedron sadface
still that event problem?
 
12:50 PM
yes
 
~lesson
maybe I will find some free time to shoot that bug on Saturday ...
 
~waits for @Ita to come around to give a Java teaching session
 
fge
Uhm, why is htmlunit needed at all?
 
@fge 'cuz the bot has to post messages in the room, Mechanizer won't do it properly
 
fge
OK, but why htmlunit? I'd have figured you wanted some HTTP library instead
 
1:00 PM
Actually, I went with Fluent API (apache) at first, but it wasn't sufficient anymore.
 
fge
Hmwell, actually those are questions out of the blue, I don't know the "SO room char API" at all (if there is one)
 
There's none, you gotta emulate POST requests through a webagent, which you have to build.
I mean, I have to..
 
fge
1:28 PM
Hmwell, good luck ;)
If you need help with something...
 
Excuse all but is better that I use Eclipse Kepler or Eclipse Luna for programming Java/Android
 
fge
1:44 PM
Can't tell, I don't use Eclipse
 
excuse Eclipse is helpful for use Java development tools (Android, Maven or Spring) , What editor you use?
 
I think it's matter of opinion.
 
Anyone want to help a rookie coder (Spoiler alert: me) fix their Java code?
 
fge
@Unihedron I can try (although I'm also a rookie)
 
@fge Ok, this hastebin.com/negifexemi.tex prints:
Class column-code: [[margin-left, 4px][min-width, 25px][text-align, center]]
Class column-somethingdifferent2: [[margin-left, 4px][min-width, 25px][text-align, center]]
Class column-bic: [[margin-left, 4px][min-width, 25px][text-align, center]]
Class column-closebutstilldifferent: [[margin-left, 4px][min-width, 25px][text-align, center]]
Class column-somethingdifferent: [[margin-left, 4px][min-width, 25px][text-align, center]]
Class column-char35: [[margin-left, 4px][min-width, 25px][text-align, center]]
Empirically the hashmap is reused, and values in the map matchingClasses aren't recording the string attribute pairs properly, what's wrong?
It's, uh, supposed to extract fields from a CSS class array where it starts with body.thisone table.
And I can't make attributes volatile.
 
fge
2:05 PM
Uh, I'd use a grammar parser for such stuff
Have you checked what happened using a debugger?
Line 44 --> is it really what you want? From your comment line 41 it would appear that you wanted to run this matcher on .group(2)
 
Oh...
Yep...
 
fge
(hmm, I should really write a grammar for CSS)
 
I should use matcher.group(2) instead of foo :(
 
fge
For starters, if I were you I'd split the code into several methods
You would have an easier time tracking down what happens
 
Yeah, spaghetti code :p
 
2:48 PM
Anyone here with special skills with jspx? We have a visitor in need of ADF help in the Tavern.

The SO Tavern (Free Snacks)

Room 5 was frozen for inactivity even though it was once an ac...
 
fge
3:31 PM
I learned something new again
Stream implements AutoCloseable!
 
:D
Oh em gee!
But... In which case would you use them in try-with-resource blocks?
 
fge
Well, that is a possibility for Streams backed by I/O bound resources
(for instance, Files.lines())
Pure "CPU" streams you should probably not worry
 
Oh I see... Free laziness and better allocation of resources?
 
fge
s,allocation,management,
 
touche
 
3:55 PM
!!java: hi
@Testeval:"hi"
 
hi
 
YEAH!!!
@Testeval:"Hello" + ' ' + "World"
 
Hello World
 
!!die
 
fge
Hmm, has anyone ever encountered a valid use case for Throwable suppression?
 
4:01 PM
You mean catch(Throwable ignore) {}?
 
fge
No, I mean calling the .addSuppressed() method of Throwable
 
Eh... I don't think that's useful, but I've seen libraries use it. Script engines in particular.
 
 
1 hour later…
5:16 PM
Where can I find the details of what an operator does? For instance, +; I'm searching around the Java Language Specifications, it doesn't seem to include it.
 
JLS section 15, starting with 15.18
 
Yay, thanks!
 
NP
:)
 
:)
 
Hello
 
5:26 PM
Eh
@Unihedron that should have been 15.14
not 15.18
 
That's ++ :P
hi @kal
 
Yeah I thought you wanted all the iperators
operators
 
Mmm, I found the unary + (positive sign) and string concatenation and addition, which is great, thanks for the help!
 
I am wondering what's the best way I can store two values that should be mapped together? Should I just make a list?
 
@KalaJ map?
HashMap<Byte, String> map = new HashMap<>();
 
5:29 PM
yeah I was thinking that but I'm not sure if I should use list or map
 
What kind of values?
 
Like if I had a button value that I want to save from page number and I have multiple pages?
 
So each page has one button value?
 
so button value is 5 on first page, button value is 3 in second page
yes
only one button value
 
Then a Map would probably be the best
Map<Integer, Integer>
 
5:30 PM
that the user can choose from radio buttons
 
Keys and value pairs are unique, yes?
 
where the key is the page, and the value is the.. value
 
the page is unique, the value is not?
 
alternatively, you could create a small object or tuple
and keep a list of them
 
You could even use a Multimap if you use guava
 
5:32 PM
for your use case, a map is probably the simplest.
 
how do I retrieve values from a map?
 
map.get(key)
 
If you want them all:
 
That is if I want to save the button values inside db
I don't want the position per se but the button value
 
for (Integer key : map.keySet()){
    //key is the page #
    Integer value = map.get(key);//this is the value from the page
}
 
5:33 PM
Erm... This is getting confusing. What are the specifications for this datatype?
 
Actually I might have confused myself lol
Okay I will make it simplier
 
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
int page = 4;
int buttonValue = 99;
map.put(page, buttonValue);//store our page value into the map.
 
I have two integer values. One integer value is a button value and the other is a page.
 
Excellent, please go on.
 
Now I want to be able to update the button value and page when I swipe through the pages
 
5:36 PM
So you will be able to overwrite existing entries with the same key, and you want to retrieve them constantly, right?
 
actually I want to keep a list of them all
I don't want to overrite the values
Kind of like filling out a form
 
There's a form now?
 
You selection date on one page, then click on next, go to another page, fill out data, continue etc..
That's just an example lol
 
Oh, great!
So you want to keep track of multiple key-value pairs?
 
That example is to show I just want to keep all the values
yup!
in a list
@kylar, is that what you were trying to do earlier? I need to update the map to list all multiple key value pairs
 
5:42 PM
That's what I was showing you with the for loop. It'll go through everything in the map
 
0
A: The operator + is undefined for the arguement type(s) ChatColor, int

UnihedronYour + operator gets two operands, a ChatColor object (Object) and ok (int). According to The Java Language Specification §15.18 If the type of either operand of a + operator is String, then the operation is string concatenation. Otherwise, the type of each of the operands of the + opera...

Yay!
Haven't written an answer in days..
 
how can I print out all contents of the map?
 
Java 8 or Java7-?
 
ahhhh java 8?
 
map.entrySet().forEach(entry -> {
  System.out.printf("%s: [%s]", entry.getKey(), entry.getValue());
});
Previous-version-compatible-version:
for (Entry entry : map.entrySet())
  System.out.printf("%s: [%s]", entry.getKey(), entry.getValue());
7 messages moved to Trash
 
5:54 PM
forEach is not recognized
I will try the second one
I'm using android
so maybe that's why :S
 
Lambda expression
 
fge
@Unihedron, Map has .forEach() too
 
@fge That requires a functional interface.
Of params of K, V, actually
 
It says use SparseIntArray for better performance
 
fge
map.forEach((k, v) -> { System.out.printf("%s: [%s]\n", k, v) })
 
00:00 - 18:0018:00 - 21:00

« first day (1476 days earlier)      last day (3464 days later) »