« first day (1626 days earlier)      last day (3318 days later) » 
04:00 - 12:0012:00 - 20:00

4:02 AM
o /
 
hi
 
Hey.. are you at school?
 
No I have holidays for the entire week.
 
hi all
 
Right now I'm at my cousin's.
 
4:09 AM
Gr8
@dead heya
 
hi @ItachiUchiha @Unihedro
 
Ssup?
 
Im currently playing Clash of Clans ... waiting for the next war... I will just stay here for a while
 
<-- Travelling
 
Nice!
 
4:29 AM
Do they have a desktop version for CoC?
 
@ItachiUchiha nope but you can use Android Emulator like Bluestack and its legal
 
4:48 AM
I am aware of the emulator
 
5:10 AM
Hello all.

Can you tell me, does java only import the necessary libraries for that particular code when you type

import.java.util*;


Thanks
 
5:53 AM
@mike It imports everything in the package.
 
@ItachiUchiha - thanks
 
Good morning, Java!
 
Good Morning @OlegKuznetsov
 
6:20 AM
Morning!
 
Mrng
 
6:56 AM
Morning!
 
7:18 AM
@deadlydragon00 even I play that.. which clan are you in?
 
7:37 AM
hi @Sword Im currently in Crab capital :D, so which clan are in?
 
7:52 AM
Hi there, can anyone fill in the missing word for me?

"The keyword 'this' tells the method to use the local variables and not those values xxxxxx."

The code I'm trying to describe is

private int hour = 1;
private int minute = 2;
private int second = 3;

public void setTime (int hour, int minute, int second) {
this.hour = 4;
this.minute = 5;
this.second = 6;
Thank you
 
@mikeeustace did you mean this.hour = hour etc... ?
 
@deadlydragon00 hi.. sorry for disturbing you if u are busy right nw.
 
No. The code's rubbish code... What I mean is, I know that by using the keyword this, the method will use the local values of hour, minute and second.

I know that they're called local values(inside the method). What is the name for the values not inside the method?
 
Global Variable
 
Thank you :)
 
7:57 AM
Np
 
busily writing my revision cards. 35c and everyone's at the beach :(
 
@deadlydragon00 i have a trivial question. I'm in a situation where i want to maintain order. Which is best? ArrayList, TreeMap? Don't care about synchronization
 
@JudeNiroshan I can't answere that Im not totally sure the advantage of those stuff although I use ArrayList often time.
 
@deadlydragon00 ohh ok. nevermind. Thanks for your time.
@mikeeustace do you have any idea about my question?
@mikeeustace i mean, which one should i choose ?
 
haha. Did you see the question I asked? I'm afraid I have no idea.
I don't know what a TreeMap is...
:)
 
8:02 AM
@mikeeustace okk bro. np
 
@deadlydragon00 thanx for your input
as i have less than 5 elements, i'll go for arraylist
If i had more than 1000 elements, then definitely i must go for TreeMap
 
Wth no
TreeMap will be horrendously slow on that scale.
 
seriously ?
 
@jude what order are we talking here?
Insertion order or some kind of Sorting mechanism?
 
8:08 AM
insertion
 
Your best option is ArrayList :)
 
@JudeNiroshan every insertion will sort it once unnecessarily
Build a list, then use the copy constructor of TreeMap
 
At which point in ArrayList i should consider about alternative, when it comes to insertion order?
 
=javadoc TreeMap(Map)
 
@Unihedro TreeMap(Map m): Constructs a new tree map containing the same mappings as the given map, ordered according to the natural ordering of its keys. All keys inserted into the new map must implement the Comparable interface. Furthermore, all such keys must be mutually comparable: k1.compareTo(k2) must not throw a ClassCastException for any keys k1 and k2 in the map. This method ...
runs in n*log(n) time.
 
8:09 AM
^^^^
 
=javadoc LruCache
 
@deadlydragon00 Sorry, I never heard of that class. :(
 
@Unihedro He doesn't need a sorted collection :p
 
agreed. I only wanted to keep my insertion order. I don't have any specific order
 
oh
arraylist all day long, it works well
or a Stack or a Queue
 
8:13 AM
Thanks everyone! (y)
 
@Unihedro Prof. Oak usess Java too
 
@JudeNiroshan When you need to sort your collection, or you need a <k,v> or you need to link the entry before and after an entry or if you want to follow FIFO or you want to follow LIFO. Under all these circumstances(and many more) you look for alternatives to ArrayList.
 
@ItachiUchiha thank u
 
morning
 
8:30 AM
hello geeks
previously i created my web app with struts framework in Netbeans Ide , now i choose to develop another web app with same struts in eclipse Ide which follows MVC pattern so will it be same procedure to create the web app in eclipse like netbeans
 
@fahdijbeli Idea for EE is not free
@greenhorn I is almost similar. If you are following a build tool example maven or gradle, it will be same :)
 
8:47 AM
oh okay @ItachiUchiha
 
@ItachiUchiha there is a community edition
and I work with it
I dont have any problem :/
 
@fahdijbeli Community edition doesn't give you tools for javaEE development
 
9:16 AM
I know, bah for me I work with our framework and I can use Jboss and maven with intelllij
 
9:27 AM
just I run,deploy,package with jboss apart
 
9:38 AM
Hi @ItachiUchiha
 
heya @AniketDeshmukh how are you?
 
fine you
 
great
 
nice now you are in office
 
fge
Moo
 
9:49 AM
welcome @fge
 
What is the best way, using lambdas, to compare a list of strings, print the string(and the number) which has the maximum no of small case characters in it?
        OptionalInt a = list.stream().mapToInt(ele -> {
        int counter=0;
        for (int i = 0; i < ele.length(); i++) {
            if(Character.isLowerCase(ele.charAt(i)))
            counter++;
        }
        return counter;
    }).max();
here a has the maximum occurrence, but the String is lost
 
Hello all
 
I have an idea of using map() to map String to HashMap, but it sounds too complicated for a simple task.
 
ok nice instead of this can we use build in function compareTo
 
I could have used sorted(), if I had a custom class MyString and had a List<MyString>. Instead, I have List<String> :(
@fge any insight?
 
10:04 AM
ok
public void whenSortingEntitiesByName_thenCorrectlySorted() {
List<Human> humans = Lists.newArrayList(new Human("Sarah", 10), new Human("Jack", 12));

humans.sort((Human h1, Human h2) -> h1.getName().compareTo(h2.getName()));
Assert.assertThat(humans.get(0), equalTo(new Human("Jack", 12)));
}
 
@greenhorn The directory structure of deployed webapp is always same, which ever ide you uses. If you use some build tool, each one has it's own directory structure but yes same for all ide's
@fge Morning...
 
@deadlydragon00 java.util.concurrent.Executor: An object that executes submitted Runnable tasks. This interface provides a way of decoupling task submission from the mechanics of how each task will be run, including details of thread use, scheduling, etc. An Executor is normally used instead of explicitly creating threads. For example, rather than invoking ...
new Thread(new(RunnableTask())).start() for each of a set of tasks, you might use: (1/13)
 
=javadoc disklrucache
 
@deadlydragon00 Sorry, I never heard of that class. :(
 
10:28 AM
@Mr.777 thanks buddy
 
fge
10:51 AM
dislrucache?
 
Eh.
What's ? super T anyway?
 
@fge May be Disk Least Recently Used Cache ;)
He might be using this: github.com/JakeWharton/DiskLruCache
 
Morning
@Unihedro a constrained wildcard??
 
@Vogel612 Is it such that the type to infer in ? super T should be able to be casted into T?
 
it should be or extend T
which is kinda equivalent to your statement, so.. yes
 
11:03 AM
Eh, my point is that you can always cast a type to Object, then it's ? super <anything>.
0
Q: Why doesn't mod run, but instead gives error "TEST1 TEST2 disabled"?

Mhyland I'm trying to run this on 1.7.10 Minecraft/ 1.7.10 Forge, in the Eclipse IDE. The mod doesn't run, generates the error TEST1 TEST2 disabled. This is the source code: package com.matthew.newmod; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStac...

... wtf
 
meh... but the compiler sometimes need something more specific than Object
 
For T:=Car, ? super T := {Car, Vehicle, Object}
 
no....
for T:=Vehicle, ? super T := { Vehicle, Car, Bike, ... }
but not object
 
GridBag... Bleh x_X
 
@Vogel612 that's extends
 
11:10 AM
urk... you're right...
 
? super T just denies R if T doesn't extend R
 
ya.
 
16 mins ago, by Unihedro
For T:=Car, ? super T := {Car, Vehicle, Object}
^ that still stands
 
yes.
so.. what's your point?
 
since you can cast R to Object, you can bypass ? super T if you really want to, rendering implifications pointless
(Of course, casting String to Object then to Integer isn't smart.)
 
11:24 AM
especially because you can't..
 
Hi to all
anyone here working as a freelancer ?
 
me
working at home is HARD
 
@Unihedro
can you tell me
1 billable hours =how much $
 
... The most I can tell you are "negotiable"
 
but average cost
 
11:26 AM
fluctuates with market price
I'd settle for $80 for medium sized projects
 
per hours right
 
I'd complete the entire thing in eight hours, so make it $10
There are people who charge tens of thousands though. It really depends on your capabilities.
 
yes that right
 
@Unihedro :P Don't tell me :D
@AniketDeshmukh Usually that varies from your capabilities as well as needs :D Well, for the starting, $8 - $10 is better. Once your grow your repute and capabilities, you can start charging accordingly. I have seen freelancers, charging $180 - $200 per hour. There can be others with high charging prices too but I just told what I knew and my little experience
 
^^ pretty accurate
 
11:33 AM
@Mr.777 right thanks
 
Are there any language feature hacks for executing a function N times, without using for?
 
@Unihedro recursion?
 
while loop
 
@Mr.777 doSomeTimes(Clazz::mtd, 6)
Can you complete the method?
 
@Unihedro Oh :D
 
11:39 AM
recursion...
 
56 secs ago, by Unihedro
Can you complete the method?
 
@Vogel612 show me
 
@Vog ^
 
Treat Clazz.mtd() as a Runnable :p
 
doSomeTimes(Runnable mtd, int count) {
    if (count > 0) {
       mtd.run();
       doSomeTimes(mtd, count - 1);
    }
}
^^ there you go
 
11:41 AM
A++
 
it's a dirty hack, but it werkz(TM)
 
Yes
 
@Unihedro btw. you wanna search a XML / DOM parser that allows malformed HTML?
 
IntStream.range(0, count).forEach(whatever -> mtd.run());
 
that's also a cheat
 
11:43 AM
for (Object whatever : new Object[N])
... which isn't a solution because it uses the control "for" :p
 
ya...
well it actually uses an iterator, but eh
 
2 hours ago, by ItachiUchiha
What is the best way, using lambdas, to compare a list of strings, print the string(and the number) which has the maximum no of small case characters in it?
@Vogel612 @uni Any thoughts?
 
@ItachiUchiha Define best
@ItachiUchiha Yeah, the question is flawed.
 
wut? the second part is completely incomprehensible..
get a proper problem statment pl0x
 
^^^^
 
11:47 AM
List<String> list = new ArrayList("Unihedron", "Vogel", "itachi");
 
=javadoc ArrayList#Object[]
 
The output should be : Unihedron, 8
 
@Unihedro Sorry, I can't find that method. :(
 
@ItachiUchiha syntax error
@ItachiUchiha ... why?
 
because it has 8 lowercase letters
 
11:48 AM
OH
umm
 
and Vogel has only 4
 
You can't polyfill to hijack a type in Java, so this will not be as elegant if you insist on using a stream
 
that's idiotic
you can't order a stream by some value in it when it's already in the pipeline
 
You can... with a map
 
not if you have to generate the map on the fly
 
11:49 AM
but then the values are gone, hence a need for un-elegant retation
 
correct
 
Therefore:
1 min ago, by Vogel612
that's idiotic
I have an idea.
 
you could to the transformation with a stream... but meh
 
list.stream().reduce((first, second) -> findLowercaseCount(first) > findLowercaseCount(second) ? first : second)
and then with that value, compute findLowercaseCount(result) and print it as well
 
eek
 
11:52 AM
Duh :P
 
=javadoc Stream#reduce
 
Which one do you mean? (type the number)
1. java.util.stream.Stream#reduce(Object, BinaryOperator)
2. java.util.stream.Stream#reduce(BinaryOperator)
3. java.util.stream.Stream#reduce(Object, BiFunction, BinaryOperator)
 
2
 
@Unihedro Optional reduce(BinaryOperator accumulator): Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an Optional describing the reduced value, if any. This is equivalent to: (1/5)
 
=javadoc Stream#reduce 2
 
11:53 AM
Which one do you mean? (type the number)
1. java.util.stream.Stream#reduce(Object, BinaryOperator)
2. java.util.stream.Stream#reduce(BinaryOperator)
3. java.util.stream.Stream#reduce(Object, BiFunction, BinaryOperator)
 
2
 
@Vogel612 Optional reduce(BinaryOperator accumulator): Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an Optional describing the reduced value, if any. This is equivalent to: (1/5)
 
dammit I want the second page!!
 
2
 
@Unihedro Optional reduce(BinaryOperator accumulator): Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an Optional describing the reduced value, if any. This is equivalent to: (1/5)
 
11:54 AM
4
 
@Unihedro That's not a valid choice.
 
ermagherd
 
@OakBot YOUR FACE IS INVALID.
 
@Unihedro Type =help to see all my commands.
 
no
!!should I stab oakbot
 
11:54 AM
@Unihedro Yes, absolutely
 
@CapricaSix :P
 
!!coffee
 
@Vogel612 "undefined"
 
(◣_◢)
 
oh come on!
 
11:55 AM
@Vogel612 That's coffeescript engine
 
ohh...
 
!!tea or coffee
 
still want some coffee
 
@Unihedro coffee
 
!!make me a coffee
 
11:56 AM
@Vogel612 That didn't make much sense. Maybe you meant: cake
 
!!cake plz
 
!!shakira
 
@Mr.777 That didn't make much sense. Use the !!/help command to learn more.
 
as if!
 
11:56 AM
!!/help
 
I used to have a friend named shakira :p
 
@Mr.777 Information on interacting with me can be found at this page
 
!!cake symphony in c
 
wat?
 
11:57 AM
!!fishing
 
@Unihedro That didn't make much sense. Use the !!/help command to learn more.
 
!!fish
 
okay we should stop playing with her...
 
!!craft
 
!!can we stop playing with you?
 
11:58 AM
@Mr.777 I expect so
 
!!give me cake
 
@Unihedro That didn't make much sense. Maybe you meant: live
 
!!live
 
@Unihedro I'm afraid I can't let you do that, Unihedro
 
:|
 
11:58 AM
hahahaha
 
Hi any one is there
 
no
 
She is after you @Uni.
 
@Mr.777 Bloody mary!
 
can u please any one suggest me about epub reader tool
 
11:59 AM
how the holy carp is the kata about digital_root a 6kyu kata??
 
04:00 - 12:0012:00 - 20:00

« first day (1626 days earlier)      last day (3318 days later) »