« first day (1528 days earlier)      last day (3410 days later) » 
00:00 - 17:0017:00 - 00:00

12:01 AM
Which?
 
It's a recordning from one of our classes
You wouldn't understand anything but the code because he's speaking Swedish :P
 
:p
 
I hate art blocks. I need to make these sample designs so my mom can pick one for me to work on
That sounds weird, but my mom is my customer... which jsut makes it sound worse...
DON'T JUDGE ME OK! My mom is running a legitimate business and requested my help!
XD
 
fge
@Gemtastic well, it proves that you have what it takes for designs
Not everybody has it, and certainly not me
A monkey would do a better job than me, by far
 
@fge Well... You can't really depend on your mother for anything. Mine is the type to praise anything her kids does to the skies, no matter how shitty it is. Though as I said; the stuff she has now isn't exactly ahrd to improve :P
I can't type >_>
 
fge
12:10 AM
Done with functions!
Now operators
 
\o/
What's left?
 
fge
Well, operators and predicates
And that will be it
(and suppliers, of course)
 
Yeah!
 
fge
Fortunately, most of it is copy and paste plus a few vim %s away
 
Yaay easy stuff
 
fge
12:17 AM
Hey, I used to be a systems engineer, so I know my vim :p
 
I don't even know what vim is
 
It's a good text editor. Later, vim became a popular candidate as IDE plugins, for its incredible typing mode.
There's also Emacs and a few other major text editors.
66
Vi and vim

Proposed Q&A site for people using vi and vim

Currently in definition.

Great proposal ^^^
 
Ah
 
1:08 AM
@Jefffrey JavaScript
 
If anyone was interested:
 
1:51 AM
Hey
 
fge
Hey
 
Hey
must... finish... tests
 
Test..Test..Test
 
fge
Operators finished!
 
where is the best place to learn java
(intermediate to advanced)
 
2:02 AM
@computerquest After you understand the syntax and how the language works, the rest to do is to actually practice and get used to the Java API.
And pick up a project and learn that way.
 
@Unihedro i realize that and it is what i do but i always need to look at a place to learn the basis before i go all in with a project
@Unihedro a whole course should be able to give me a bunch of projects
 
online tutorials
 
just on youtube?
 
Hmm
Well.. Design one is kinda done...
Now I have to come up with another one >_>
 
@fge What to put at "OrTryWith" and "Or" for Suppliers' tests?
Suppliers only has orReturn and orThrow.
 
fge
2:15 AM
Well, not if you make then extends ThrowingFunctionalInterface
 
Oh, so do that as well?
 
fge
Yep
 
Cool!
 
fge
All functions, consumers and operators now do
I'm doing predicates now
Look at ThrowingFunction for an example
 
Yes, I am using them as a reference - not very convenient though, since the line warp thing gets in the way ^^'
 
fge
2:21 AM
There's an option in settings to fix that
Ctrl+Alt+S and just search "wrap"
It'll focus on the items with this word ;)
 
Yeah! It worked! Thanks so much! Also, it was "soft warp", been searching for "line warp" with no luck...
 
fge
wrap, not warp
 
:o
 
2:38 AM
@fge Shouldn't there be a "runnable.run()" in this test?
 
fge
In which one?
No
 
ThrowingConsumerTest#testUnchained
 
fge
It is the verify* methods which .run() it
 
Oh!
Then I know why the test is failing now... :P
 
fge
Huh, does that even compile?
And there is a nasty conflict in Predicate
Damnit
 
2:42 AM
Uh oh
 
fge
I need to find another name than .or() :(
Ohwell, nevermind
 
How about orDo or orTry or orElse?
Purposefully used "or" in between for confusion
 
fge
I think I'll just leave Predicate's .or() alone
(and make it not extend ThrowingFunctionalInterface; the features remain the same after all)
 
Tests Passed: 5 passed in 1.237 s
YES
OMG
After... 12 hours, finally the first test class works (because I just extended the Supplier<T> to match ThrowingFI)
 
fge
I thought you did it already ;)
 
2:58 AM
Hello
 
Hello
 
how are you?
 
I am very fine thanks
 
fge
I'm off, have fun
 
Ok, seeya!
 
3:10 AM
Hmm design 2 done
I wonder how many I will make XD
 
There... s/Double/Int/, s/double/int/, s/<Int>/<Integer>/, test #3 done
And repeat for test #4... All done! PR!
I can sleep at last!
java.lang.AssertionError:
Expecting:
<42.0>
and actual:
<42.0>
to refer to the same object
at com.github.fge.lambdas.suppliers.ThrowingDoubleSupplierTest.testChainedWithOr(ThrowingDoubleSupplierTest.java:128)
...
Precision... why..
 
4:03 AM
Hi, JAVA Swing. Any thoughts on how you update display of your program when your data changes?

My case, screen-A changes/adds data to database. screen-B should reflect the data real-time, but I cant think of a way to do it right now. Way i do it right now, the screen updates via frameFocusListener. When it gains focus, thats when the update view codes fire.
 
Well if you need to reflect changes in real time, that means repainting when you're not in focus
 
how do i do that? hihi..
 
4:38 AM
@LeeJeong use a listener
when the data thingy happens, update correspondingly
 
Phew!
3 designs done!
Last one turned out the best if I say so myself. But I dunno which one my client will like :P
Now all I have to do is wait for her to wake up and have a look at them XD
 
 
2 hours later…
6:25 AM
2h and noone's saying anything?
 
Good morning, Java!
 
Morning ^^
 
@Unihedro Meh. xkcd.com/832
 
 
1 hour later…
7:37 AM
1 message moved to Trash
 
7:48 AM
14 messages moved to Trash
 
Morning
 
Morning!
 
user4202350
Hey Mr.7777 can u help
 
Help with what?
 
user4202350
like from 10 drop downs ....user select one and that will be displayed after saving the page...but it shld nt be saved in DB
 
7:55 AM
So, where it should be saved?
 
user4202350
in vO or Bo or Form...
 
and how much are you paying?
 
user4202350
1 donut
 
@Mr.777 "please write my website for me"
 
:P
 
8:06 AM
If you're trying to learn how websites work, google it. If you're hiring, put a realistic budget. If you just want the free code, here: stackoverflow.com/questions/…
 
user4202350
it is better to try myself...than banging my head before u all
 
@ShaU Are you really expecting chat users (to add, of Java) code a website for you? Can't tell if you're trolling or not.
 
8:30 AM
My Script class has 4 static inner classes, 1 Builder, 1 State class, and 2 special Script action classes. None of them are useful without a Script, but is that too many inner classes?
 
@Saposhiente The general rule is that if there's too much code written for a task where a simpler approach exists, you're doing it wrong.
 
I'd say they're all important, though the special actions less so
I'm thinking in terms of, should I split Script into its own package?
 
Special actions? You mean handle classes?
 
A Script is a series of actions; these special actions sort-of modify the script itself
 
So... Handle classes which composes a function?
Function composition chaining, I suppose?
 
8:34 AM
Sounds about right
 
Considering "None of them are useful without a Script", consider to ditch every other and rewrite it - States aren't necessary to have its own object, just have the new functions inherit the handle, and you don't need a separate Script unless you have a complex syntax.
Have a look at:
...
 
The script has both regular actions executed in series and parallel actions executed at any time; these special classes are added as regular actions and indicate that one of the parallel actions should start or stop running
 
Stack-based script engine?
 
The Builder is stack based but the script itself is a queue
 
Well, you could of said that.
It sounds like you have object spaghetti, so my honest advice would be: If it aint broke, don't fix it. It will probably become worse.
 
8:40 AM
Alright
 
@Saposhiente If you still want to try improve your code: Obtain a rubber duck, and explain to the duck using simple words why each line of your code is obviously correct and not redundant. If at any point you fail to, you know what to do.
 
The code itself works
I'm just wondering if my organization could be improved
/should
 
Then you either would have to post your code for us to review or you could review it using the rubber duck debugging method.
Or even better:
CoDe ReViEw!!!
inb4 ccby3.0 disclaimer
 
I guess the question's not too opinion based for that
Thanks
 
If you use the same grammatically correct typing as you are using now and state clearly you're interested mostly towards organization, I'm sure you can get an advice or two.
Hopefully useful.
 
 
2 hours later…
10:35 AM
 
 
2 hours later…
fge
12:44 PM
Moo
 
is still napping
 
fge
@Unihedro saw your PR
 
@fge why doesn't the double test pass?
 
@fge Good afternoon
 
user4202350
hey i want to create new gripoup
 
12:50 PM
it's been bugging me for a while, I tried everything... even mocked a new Double
 
fge
@Unihedro I'll see
 
but no, there's a phantom thingy
brrr, cold :(
@ShaU a new chat room?
You need 100 reputation points to do that: stackoverflow.com/help/privileges/chat-rooms
 
@Unihedro Is it like here: 13 degrees C below zero?
 
user4202350
yes....only talented software geeks like me...and unihydro and fge and mr.7777
 
@OlegKuznetsov ... I don't know, I never measure weather in units.
For me, here's the scale:
really cold < colder < cold < somewhat cold < might get sick < normal
 
fge
12:52 PM
@Unihedro can't use .isSameAs() here
You should use .isEqualTo
 
@fge Oh I see, assertEquals() ?
Ah...
Why did the Int and Long tests pass though? caching? :o
@ShaU That's off topic, chat rooms has clearly defined topics that must briefly match the main site's discussions.
 
fge
@Unihedro no idea...
 
HmmMMmmmM weird
 
user4202350
boolean cold = true;
if(cold)
{
getSweater();
getPopCorn();
getGirl();
Thread.sleep(10000000);
}
 
@ShaU The boyfriend-girlfriend situation is overrated. Also this only applies if you are male.
 
fge
12:55 PM
@Unihedro uh yeah, that's the cache; by default, at least for Oracle's JRE, all ints and longs from -256 to 256 are cached
 
@fge Oh! Does Doubles not get cached?
 
fge
No
 
:O
OMG
 
user4202350
@Unihedro do u have fb?
 
@ShaU What's that?
 
user4202350
1:01 PM
 
fge
@Unihedro I have found the replacement name for .or()
 
Then, yes.
@fge grabs chair to sit on and leans forward to listen
 
fge
That will be .fallbackTo()
 
:O
Impressive! A choice of true literature and art! It's clear and concise! I've never seen a more nicely named method ever!
 
Hi @ALL
 
1:05 PM
@johnsakthi You've successfully pinged no one because @All and @RoomOwners doesn't actually ping anyone.
Hi, anyway.
 
fge
@Unihedro stop pulling my leg :p
 
user4202350
boolean isRegestered = true;
if(isRegestered)
{
if(fb.name=="Unihydro")
{
if(gender.equals("female"))
{
sendRequest("Hi man...Good Morunig");
}
else
{
blockForever("OK....Good Nihgt");
}
}

}
 
@Unihedro Thanks buddy, I will try to fetch youtube video data like comments, likes, dislike and so on using java. I don't know its possible or not. If it's possible how can i get that one?
 
@fge But seriously, naming methods are hard. You should be glad to have the gift. ;)
@johnsakthi Youtube API thru HTTP.
If you don't know how to post HTTP requests with Java, then perhaps you should try a lighter project.
or... actually learn how computers work
-1
A: How can I install an application from a .pkg without admin password?

lolhi hi hi hi hi hi h ihi hi hihihihihihihihihihihihihihihihih hi

 
user4202350
1:13 PM
@Unihedro u did nt reply my mail
 
fge
@ShaU stop using aolbonics, it's irritating, honestly
 
@Unihedro I was worked HTTP Post method its not a problem. Have u show me any sample?
 
fge
You have a full keyboard, use it
 
user4202350
what is aolbonics
 
fge
u, r, thx, etc
 
user4202350
1:17 PM
OK UNIHYDRO ...SORRY ...NOW OK? I WILL NOT USE ANY AOLBONICS..... OK OK OK
 
@ShaU Why would you set a variable to true and then immediately test it afterwards?
 
@ShaU I don't have a mail from you.
@johnsakthi What?
 
user4202350
becasus i want to send request to unihydro at any cost....so i cant set variable other tha treu
 
Hi @Fred!
 
user4202350
Hi @FredOverflow U seem to be talented guy....like me
 
1:25 PM
@ShaU I have no idea how talented either of us is.
 
user4202350
No i was kidding bro....
 
Chat.byId(139).println(User.getByName("FredOverflow").talent);
 
user4202350
U r good
 
user4202350
hey fred which cpointry u belong
 
@ShaU I have no idea what you're talking about.
 
fge
1:44 PM
throwing-lambdas 0.3.0 soon
Hehe
 
:o
 
fge
After I'm done with Predicates however, I'll have to add Javadoc
And I'd like examples too, meh
I can make up some myself, but...
 
Hmm...
 
If you have any sample for get youtube data with java means please show me.
:20686575
 
@johnsakthi Do you know what an API is?
Or, to put it in another way, are you here for programming help or you can't even write code?
gets no response; turns on radio to FM39.426 and experiments with Mockito
IntelliJ trick: click on the "Y of Z M" memory indicator on right-bottom to free memory
 
1:58 PM
@Unihedro Would you recommend switching to IntelliJ?
 
@user432 I don't know. I recently switched from Eclipse to IntelliJ. Can't tell if I like or hate it yet, but hey it works.
 
I'm not sure myself. I would need the ultimate version though so I don't know if it is worth it.
 
Are you a student?
 
No. Full-time developer.
 
Ah. I heard IntelliJ improves your productivity. I don't know if it's true though.
Hmm...
 
2:02 PM
I work for a huge company so it is a hassle to go through the process of getting a license. Especially if I don't know the benefit myself.
Maybe I'll evaluate it. Going to stick with Eclipse for now I think.
 
fge
Well, I used to use Eclipse before I switched
It changed my life :p
 
Hm. Everyone seems to praise IntelliJ somehow.
 
fge
(OK, that's an exaggeration; let's say it improved my way of coding)
 
@user432 It does put all the features together. You can do git stuff, interact with the console, list todos interactively...
 
Love the UI.
Do you guys work with JEE/Spring?
 
2:08 PM
It does not appear so.
 
fge
Not me, no...
*wants to factorize some test code
 
wants fge to succeed
 
hi
 
hi
 
2:32 PM
@Unihedro where the eff is the 'n' in your name??
 
@LeeJeong Winter!
 
where'd it gone to? ahaha. anyways.. dumb question, github is some kind of an online repository right?
Winter? i still dont get it..
 
fge
has another idea for @ZouZou
@LeeJeong trying to understand @Unihedro is a lost cause
 
@LeeJeong Winter!
 
fge
It's like trying to outsmart the JIT; nosir, can't do it
 
2:39 PM
ahaha.. ok then.
 
fge
DONE
phew
 
This question needs to be killed with fire. ^
 
@fge Listening :)
 
fge
2:57 PM
@ZouZou I was thinking about "transforming" a Stream<R> into a Stream<R[]> where you decide the size of the arrays
 
@fge where each element in the stream is at the first position in the array.
?
or group elements
 
fge
Group them
 
To keep up the christmas spirit, have a song:
 
and what would be a use case ?
why not have a Iterable<Stream<T>> instead
where each stream has the size your require
(I have already a method that does that)
 
fge
Hmwell, I was thinking about block ciphers again ;) Then why not have an InputStream as an argument and generate a Stream<byte[]> out of it?
Or a FileChannel, too
 
3:05 PM
I have to male the grouped method work with infintie stream or a least to not process the stream at one time
so I have to write a spliterator for it
once it'll be done I guess it should not be hard to implement your idea
 
fge
3:16 PM
Meh, I'm disgruntled not to know enough about cipher algorithms
 
oh I was not talking about ciphe algo yet
just the Stream<byte[]> on demand
 
fge
Well, it is precisely for ciphers that I think it would be useful
And also for image manipulation
 
fge
3:45 PM
Aah, the boring stuff to do which must be done
 
Oh?
 
fge
Yeah, add tryWith() in addition to wrap() and rethrow() in every utility class
yawn
 
I'll do that :P
 
fge
Meh, then branch topic/trywith :p
I've just done it for Functions
(also, entries reorganized)
 
Which branch is the latest?
 
fge
3:48 PM
I'm doing Comparators now (not that there's much to do on this one)
topic/trywith, as I just mentioned
 
lol sorry, I forgot to fetch --all, it confused me :p
 
fge
I love git commit's -c option
 
:O
I love how you used return instance::getAsDouble
 
fge
Intellij has an inspection for that, seems like you didn't turn it on
You should have a look at them
 
Ok!
 
fge
3:52 PM
Doing Consumers now...
 
Replace --re
(public[^\n]+?)rethrow([^}]+}\s+)
$1tryWith$2$1rethrow$2
 
fge
That's not all :p
wrap() should come first, then tryWith(), then rethrow() :p
 
Oh, reordering, ok :p
 
fge
YAY
I received my book!
 
:O
Congratulations!!
Replace --re
(public[^\n]+?)rethrow([^}]+}\s+)([^}]+}\s+)
$3$1tryWith$2$1rethrow$2
 
fge
4:02 PM
Meh, I'd like to reimplement coccinelle using grappa
Semantic patching ftw
 
Good luck!
So I finish the rest? tryWith of Predicates and Suppliers?
 
fge
What have you done so far?
I have done Comparators, Consumers and Functions
Now onto Operators
 
I ran a regex Added tryWiths of Predicates.java and Suppliers.java utility methods and sorted them, and made sure it was well formatted.
By the way, com.github.fge.lambdas.functions.operators.Operators#rethrow(com.github.fge.lamb‌​das.functions.operators.ThrowingLongBinaryOperator)#L80 needs a line warp, it's 88 characters long
 
fge
Yes
Just did it
 
:joy:
 
fge
4:08 PM
There, all commited
Now only Predicates and Suppliers are left :p
 
whoops, commit conflict
Come on now, http git authenticator
It shows this Int ++Long diff because of the reordering - git likes to compact down diffs
 
fge
Merged!
 
Yay!
 
fge
Well, you have the option to use patience diff, but github doesn't seem to support that
 
Yes, I like patience diffs.
 
fge
4:17 PM
OK, now, javadoc
 
For tryWith and rethrow, we insert @see #wrap(ThrowingFoo)?
 
fge
No, a simple mention at the class-level that all three are equivalent is OK; javadoc at the method level is not needed here
 
Agrees!
 
fge
creates branch, goes drink coffee, thinks about what to write and tries _not_ to open that book for now, crikey
(if I start reading I can't stop)
 
I'll document it all for you!
 
fge
4:21 PM
(I also need to update the wiki)
 
Actually, my writing skills suck though.
> It's broken. Oh well, I'll fix it tomorrow. Tomorrow will be good.
Vincentyification authored on Nov 21
that... last... commit...
 
fge
Hmm, actually there is one test missing if you are interested :p
 
Yesh?
 
fge
ThrowablesFactory; in this commit I added the exception thrown by the lambda as suppressed; but I didn't add a test case for that
 
4:37 PM
on master?
Put ThrowablesFactoryTest on com.github.fge.lambdas or .helpers?
 
fge
In lambdas
 
4:54 PM
Whoops, I actually have no idea how to test this, how do you spy an enum? xD
 
fge
 
Why not <pre><code>?
@fge ... Mocking a class?
shivers
 
fge
You need to build an exception class which doesn't have the expected constructor, and pass that as an argument with a throwable
THe test is that 1. it should throw an IllegalStateException and 2. the throwable as an argument is in the suppressed list of that IllegalStateException
 
OK!
 
fge
@Unihedro not needed; that will be a fixed size font and that's what we want
Javadoc layout is not very sophisticated :p
 
4:58 PM
xP
 
fge
Just the way I like it; I can only do unsophisticated designs :p
 
00:00 - 17:0017:00 - 00:00

« first day (1528 days earlier)      last day (3410 days later) »