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

fge
6:00 PM
@Unihedron well yes, a BiConsumer
And you can use a lambda for this
 
Wait, you can use (param1, param2, ...) for biconsumers?!
TIL
 
fge
Of course you can :p
 
Uh, I haven't gotten myself the chapter yet, so I'm near idiot when it comes to the new stream gears :P
 
fge
Chapter? Of what?
 
Learning lambda expressions
Oh the joys
I wonder if groovy takes lambdas
 
fge
6:03 PM
Actually, it's quite simple in the end -- the hard part is the syntax
(of method references in particular)
 
!!eval:"1,2,3,4".split(",").forEach(element -> {System.out.println(element);})
 
fge
That won't work
.split() returns an array
 
Oh.
 
hey
 
!!eval:"Hello World"
 
fge
6:05 PM
However, Pattern.compile(",").splitAsStream("1,2,3,4').forEach(System.out::println) will work
 
Oh.
 
I have kind of a question,
 
Cool!
 
fge
Sorry for the initial syntax which was wrong
 
I define a stack in a main method and push a few values to it
 
6:07 PM
Gotcha
!!eval:"Hello World"
 
Hello World
 
And then I define this method pastebin.com/22FRR94N
 
!!eval:Pattern.compile(",").splitAsStream("1,2,3,4').forEach(System.out::println‌​) will work
 
startup failed:
UserScript: 1: unexpected char: 0xFFFF @ line 1, column 87.
   stem.out::println??) will work
                                 ^

1 error
 
So when i do Stack<Integer> lol = clone(a);

and after it I use the variable a, it's always empty, why?
 
fge
6:08 PM
@Unihedron note that single quote
It is wrong
(before the closing paren of .splitAsStream())
My bad
OK, well, Groovy fails to understand that ;)
 
8 messages moved to Trash
 
fge
!!eval: Files.list(Paths.get(".")).count()
:p
 
hold on...
 
Is anyone familiar with Android?
 
@BenBeri What's a?
 
6:10 PM
a is a new Stack<Integer> that I pushed 5 values into
 
!!eval: javaBot.getListeners()[0].userIds
 
[3622940, 2272617]
 
after that i did Stack<Integer> lol = clone(a);
and then I did print to a.empty() and it printed true
 
!!eval: javaBot.getListeners()[0].userIds.add(1093528)
 
true
 
6:11 PM
while at the end of the method, parameter s is not empty after s = real
 
What are you attempting to accomplish with s = real; ?
!!eval: Files.list(Paths.get(".")).count()
 
No such property: Files for class: UserScript
 
!!eval: java.io.Files.list(Paths.get(".")).count()
 
No such property: java for class: UserScript
 
fge
java.nio.file
 
6:12 PM
!!eval: java.nio.Files.list(Paths.get(".")).count()
 
No such property: java for class: UserScript
 
fge
(well, I guess the security context won't import it -- that's better like that :)
!!eval java.nio.file.Paths.get(".").toString()
 
You need the colon after eval :P
!!java:import java.nio.Files;
class Main {
  public static void main(String[] args) {
    System.out.println(java.nio.Files.list(Paths.get(".")).count());
  }
}
 
startup failed:
UserScript: 1: unable to resolve class java.nio.Files     @ line 1, column 1.
   import java.nio.Files;
   ^

1 error
 
fge
@Unihedron the package is java.nio.file -- therefore java.nio.file.Files etc
 
6:15 PM
!!java:import java.nio.Files;
class Main {
  public static void main(String[] args) {
    System.out.println(java.nio.file.Files.list(Paths.get(".")).count());
  }
}
 
startup failed:
UserScript: 1: unable to resolve class java.nio.Files     @ line 1, column 1.
   import java.nio.Files;
   ^

1 error
 
!!java: class Main {
  public static void main(String[] args) {
    System.out.println(java.nio.file.Files.list(Paths.get(".")).count());
  }
}
 
startup failed:
UserScript: 1: unexpected token:  @ line 1, column 14.
    class Main {
                ^

1 error
 
@BenBeri you can't reassign a variable from outside a method scope inside it
 
yeh i got it now
 
6:16 PM
OK
 
fge
!!java: Arrays.asList("foo", "bar").stream().anyMatch("meh"::equals)
 
startup failed:
UserScript: 1: unexpected token: : @ line 1, column 45.
   ("foo", "bar").anyMatch("meh"::equals)
                                 ^

1 error
 
fge
Hmm
It really doesn't understand Java 8
 
s is just a reference to Stack, by doing s = real i just set a new reference to it, and dont change the one that was sent
i guess
 
!!java: Arrays.asList("foo", "bar").length
!!eval: Arrays.asList("foo", "bar").anyMatch("meh"::equals)
 
6:16 PM
startup failed:
UserScript: 1: unexpected token: : @ line 1, column 45.
   ("foo", "bar").anyMatch("meh"::equals)
                                 ^

1 error
 
@BenBeri right
 
I knew we should ditch the Groovy engine and switch to JavaCompiler.
 
Now, you can do this instead:
 
!!eval: "hello world"
 
hello world
 
6:19 PM
!!java:
public class Test {
public static String run(Object[] obj) { return "Test" }
}
 
fge
!!eval: String instanceof CharSequence
 
Stack<Integer> newStack = new Stack<Integer>(oldStack);
Now, that only does a shallow clone of the elements though
 
i see
@Kylar Oh ye but i cant do that, since it's for school, they have their on Stack class, just was wondering about that problem
 
Stack is a collection, you could just do for(Integer i : stack)
or you can pass in both stacks and return one
 
11 messages moved to Trash
 
6:35 PM
Good night!
 
Hello
 
Aww, I haven't used my close votes :(
hi
 
Saving them for a special occasion?
 
hello everybody..
I have a doubt in a logical question, can I post it here, it not programming question but logical one.
 
how can i know that my web service has been hit and some data has been inserted in my database and then retrieve latest data from database in case of php ?
 
6:42 PM
I don't know if anybody in this room understands logic
:P
@Unihedron I think I scared him off...
Maybe I shouldn't have been so honest. :P
 
@Aamir Go ahead
 
I never should have been honest...
 
yo yo yo yo yo
 
Ahh...The ups and downs...
 
@Joe'sMorgue, what's all that about ups and downs ???
@user3233280 is this question java-related ?? or pure php ????
 
6:55 PM
A yo-yo is a toy which in its simplest form is an object consisting of an axle connected to two disks, and a length of string looped around the axle, similar to a slender spool. It is played by holding the free end of the string known as the handle (usually by inserting one finger in a slip knot) allowing gravity or the force of a throw to spin the yo-yo and unwind the string (similar to how a pullstring works), then allowing the yo-yo to wind itself back to one's hand, exploiting its spin (and the associated rotational energy). This is often called "yo-yoing". First made popular in the 1920s,...
 
that's for 'yo-yo'

what i was talking about, is much more... it's 'yo yo yo yo yo'....
it's a completely different concept...
:)\
 
Oh...My bad!
:)
 
@Aamir you still want to discuss logic ???
@Joe'sMorgue , how u doing ?
 
I am doing...
 
cool.. it means you are active...
 
6:58 PM
Working on getting Eclipse running on this new OS install...
 
which os ?
 
Winders 10
 
since moving to this new group I'm just inundated by work :/
 
That's spelt intimidated. :P
 
Although I'm learning lots of coolio stuff
Zookeeper internals lately
 
6:59 PM
you sure @Joe'sMorgue, there is something called winders 10 ??
 
OK...Windows 10
Happy?
 
you're not serious are you ?
lol
 
Yes, and no...
 
@Joe'sMorgue, can't you use just notepad (ms) to write your java code ? why do you need eclipse ??
 
I downloaded it earlier this week [from Microsoft] and made this machine tri-boot to XP, 10 or Ubuntu.
I'm trying to does Android programming.
 
7:01 PM
you could still do it with notepad.. :)

or just DOS/edit
lol
 
It's not about writing code, it's about debugging code
 
but anyway
 
The last day and a half has been about getting Win10 to function properly on this machine. [Kinda a joke of a machine]
 
so, what's the problem in making eclipse work ?? i thought windows programs are supposed to work (on-the-fly) without the need for writing any config file, or stuff like that
 
I needs to get the Android SDK/JDK installed/running...
 
7:04 PM
you downloaded it, i suppose, and installed it. .right ?
and it is not working..
 
Dunno. Was working on a few other things in an attempt to make the machine run better.
 
did you download the framework from android website ?
or does it come included with eclipse ?
 
I DL'd the bundle...
Testing now....
Unable to locate the companion shared library...
 
I think you should setup the location of the library manually in the "options" or "settings" or "preferences"
or probably, you should install android first, then install eclipse, this way, eclipse can detect where the libraries are
 
7:28 PM
Oh....I forgot to update the room on my Asus motherboard issue. After talking on the phone with them today, I learned I will NOT receive the replacement [that I've been trying to get since August] will probably not arrive this month!
 
7:49 PM
Ugh long weekend ahead
cataloging tons of stuff for a yardsale. Anyone want to buy 500 DVD's and 7 long boxes full of comics? Sight unseen?
 
@Kylar, what's inside the DVD's >?? p--ns ??? hope so... :p
 
a lot of kids stuff like Thomas the Tank Engine, Labyrinth, Never-ending Story
 
cool..
:)
 
8:24 PM
this room turns out to be so silent some times...
 
8:37 PM
0
Q: Adding multiple column values from db into an array of Strings

Euridice01Here's what I have so far: String strarray[] = new String[total]; Cursor csrs= sqLiteDatabase.query("collection", null, null,null,null,null,null); csrs.moveToFirst(); int array=0; while(!csrs.isAfterLast()) { strarray[array]=csrs.getString(1); array++; ...

 
00:00 - 18:0018:00 - 21:00

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