« first day (1554 days earlier)      last day (3401 days later) » 
00:00 - 16:0016:00 - 00:00

fge
12:21 AM
Hehe
Now, apart from the obviously ugly upper left part, it DOES start to look like something
 
1:12 AM
pastebin.com/Vme1828E Can someone help me with an issue I'm having? I'm making a pong game and I'm trying to get my AI paddle to move currently. I want it to try to keep up with the ball's x value, but I cant seem to get the x value that is continuously updating as the ball moves across the board. My pastebin code about shows the method where my x variable is being constantly updated.
So how can I get "x" and use it in another class?
 
fge
1:35 AM
@Physics137 you can use a listener/subscriber model
 
 
1 hour later…
2:43 AM
@fge Wow, it's really getting there with the design :)
 
 
1 hour later…
4:04 AM
@fge PIE chart :P
 
Delicious app
attempting to do a get method
 
Get method as in doGet/doPost?
 
I mean a POST method
It's not quite working :P
 
Lol why not?
 
It finds the servlet and attempts to post but it's not recieving
@RequestMapping(value="/cart", method = RequestMethod.POST)
public ModelAndView addToCart(String productId){
    ModelAndView model = new ModelAndView();
    try{
        int id = Integer.parseInt(productId);
        Product product = repository.getProductByID(id);
        cart.addItem(product);
    }catch(NumberFormatException e){
        System.out.println("Oops! Something went wrong:" + e);
    }
    return model;
}
Do you see what's wrong?
What prints to the console is a nullpointer exception because int id is null
 
4:15 AM
yes
I see
:P
How about you try and find it yourself?
 
Well, if you don't feel like helping it's what I'll have to do :P
 
Haha
@RequestParam("id") String productId
 
ah
 
id is the name of value you are sending from HTML
 
Thanks ita ~~
I was looking at what appeared when I pressed @ but it didn't show up XD
Derping like usual, I am. Learned my lesson, I have not. ;P
 
4:21 AM
 
XD
Hmm interesting.. 500 error coming now...
 
Log?
Stacktrace
 
Hi All
 
Lol, something is derping in my server.
 
@TalhaIrfan heya
 
4:24 AM
Hi Itachi
 
Hi User!
Welcome to the Room
 
lol
Thank you
 
@ItachiUchiha Haha
And hello Talha
 
Hi Gem
 
Interesting...
For some reason, the repository seems to return a null
 
4:31 AM
have you used @Autowired on it?
 
Autowiring it gives me a lot of server errors :/
 
dump it somewhere and link it here
 
I just updated the repository
CartController is the class There seems to be an error
 
5:11 AM
Well, now it won't accept my return of the model :P
 
5:37 AM
@Gemtastic Thrash it to accept your model :P
 
I have no idea how XD
 
<---- Will soon be moving into designing html pages and start facing the same issues as Gem is :P
@Vogel612 I managed to remove the SwingFX dependency from JuniorClient, but it would need a code review ";)
 
I'll help you as much as I can :)
Interesting errormessage in the server log:
24-Jan-2015 06:15:51.198 SEVERE [36] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cartController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private final com.gemtastic.lillakammaren.model.Cart com.gemtastic.lillakammaren.controller.CartController.cart; nested exce
The cart isn't autowired
well... Bedtime
Night!
 
Night!
 
6:06 AM
Heya All xD
 
6:29 AM
Heya!!
 
user4202350
Heya
 
6:45 AM
What's up ShaU ?
I have got a question for you.
 
@ItachiUchiha I review all PRs :)
 
@Vogel612 It is not about PR, the new approach has few static fields, and the overall code can be improved IMO. If you have time, I wanted to discuss it with ya :)
 
 
2 hours later…
9:11 AM
Weekend horror in Java Room
 
@ItachiUchiha What? Did I miss java.io.File party?
 
@ItachiUchiha What's "weekend horror"?
 
9:43 AM
hi all
need suggestion i have to develop library Exception handler library based on annotation
@SendEmailOnException
public void doSomeWork(String task)
{
// If any exception occurs here, email will be sent to an email id (Assume any email id)
}
something like this
worker thread will be spawned in the beginning of program which will monitor exception in jvm instance
can anybody give me jsut guidelines how can i achieve this
 
@OlegKuznetsov was that a party?
@Unihedro No people on line :P
 
@ItachiUchiha I'm just busy. :P
 
fge
10:02 AM
Moo
 
@fge Heyo!
 
Moo Back
@oleg are you working on we\ekend?
 
No :P
 
fge
10:20 AM
OK, time to focus on releasing the next version of the debugger
 
With graphs ? :P
 
3d-pls
 
Javafx has support for 3d. For graphs you will have to kick your ass creating them :D
^^ Sounds like a good library to be created :P
 
fge
10:45 AM
@ItachiUchiha no, only this piechart for now since it's very useful information
 
10:58 AM
Does anyone know how to execute the grappa grammar?
@fge I would want a working example of the TestGrammar2 you have coded
i am new to grappa, could you tell me the way of using it.
 
fge
11:12 AM
@JavaTechnical can you join #grappa on FreeNode?
I don't want to pollute this room with my own stuff
 
ok
I am in.
 
fge
Yes, I see that :)
 
are you idletask?
 
fge
Yes
 
The Idle Task
 
fge
11:52 AM
@Unihedro that one is for you
 
@fge Meh, close-worthy.
 
fge
Eh, really?
I believe it is a good question actually
 
12:09 PM
How to count bits in an unsigned integer value? Integer.bitCount only counts the bits in the two's complement representation.
/**
 * Returns the number of one-bits in the two's complement binary
 * representation of the specified {@code int} value.  This function is
 * sometimes referred to as the <i>population count</i>.
 *
 * @param i the value whose bits are to be counted
 * @return the number of one-bits in the two's complement binary
 *     representation of the specified {@code int} value.
 * @since 1.5
 */
public static int bitCount(int i) {
    // HD, Figure 5-2
    i = i - ((i >>> 1) & 0x55555555);
    i = (i & 0x33333333) + ((i >>> 2) & 0x33333333);
 
 
2 hours later…
1:42 PM
@ItachiUchiha now I am finally awake!
 
@Vogel612 After so long :P
 
ya...
little bit of chores, a good "breakfast" and shoops 2 hours went by for me
 
your last message was 7 hours ago :P
anyways, I wanted you to review my code
 
ya. the other 5 hours I was sleeping...
you said something about static stuff you didn't like
 
Good morning, Java!
 
1:47 PM
yeah, actually the ClientGui now extends Application class
 
I expected that...
javaFX..
 
=javadoc Application
 
@Michael javafx.application.Application: Application class from which JavaFX applications extend. (1/19)
 
which has a static method launch(args)
 
so far so good..
why not make Main extend Application?
and call launch from the main method?
 
1:49 PM
nope
public TestProgram() throws InterruptedException {
        LOGGER.info("instantiating TestProgram class");
        AppContext.INSTANCE.add(chatInterface);
        bot = new DefaultBot(chatInterface);
        Executors.newSingleThreadExecutor().execute(() -> {
        	ClientGui.launch(ClientGui.class);
		});
        ClientGui.latch.await();
        gui = ClientGui.getInstance();
        chatInterface.subscribe(bot);
        chatInterface.subscribe(gui);
 
that looks simple enough.
 
and I added this in the ClientGui ....
private static ClientGui instance;
	public static final CountDownLatch latch = new CountDownLatch(1);

	public static ClientGui getInstance() {
		return instance;
	}

	public ClientGui() {
		instance = this;
	}
 
why not eagerly initialize instance?
 
the launch() calls the public constructor
 
eurgh
 
1:52 PM
The singleton pattern is not implemented as it should be :/
+ I am worried about the public static latch as well
Is this implementation fair enough?
 
Sorry, I'll go back to improving my PR in a bit, chatting with the Pham devs currently :)
 
Sorry for what?
 
it looks sensible...
 
@ItachiUchiha for vog
 
but I'm warning you I made some changes to Program for JavaBot which may drastically change how we set up the testclient...
in the "best" case the TestProgram could completely fall away
 
1:57 PM
Do you want me to raise a PR after you have made the changes?
 
no. it's easier if you do it now
and I don't know how long it will take to completely clean up the changes I made.
especially since I seem to have even less time nowadays as opposed to when I was working..
 
This is channel right place to discuss Maven xmlbean plugin ?
 
@Vogel612 lolz, that is something new :P
 
@RKajaMohideen kinda
@ItachiUchiha not only for you.
seems to be related to the fact that I was doing stuff for JavaBot at work
 
Ah..
 
2:00 PM
and that I don't stand up until 2 hours later than I'd have had to be at work..
 
there was one more issue that I wanted to discuss
ClientGui.latch.await(); <--- throws an InterruptedException
so is it good enough to write try...catch.. inside a constructor?
 
should be
 
or just add throws InterruptedException to the constructor ---> which will result in adding the same in the main()
 
usually you don't expect the InterruptedException, right?
 
because of obvious reasons :P
 
2:04 PM
well it depends on where you want to continue..
 
You don't..
 
In my team, we're trying to develop XML based application, where a base-schema defines abstract types and other projects extend and produce more schemas. The base-schema is contained in a project which has xmlbean plugin and generates a JAR. But, the sub projects also have to the base-schema for xmlbean to generate code for sub-project specific schema.
Since the base schema will be made available to all applications in my JBoss. I want my sub-projects to have only specific schema generated code in their jar and resolve the base schema types in runtime. Is this possible ?
 
well, we want the program to end if such an exception occurs :P
 
then let it bubble
catch and rethrow RuntimeException, so we get an ExceptionInInitializerError
that won't be caught and bubble up until the JVM terminates
@RKajaMohideen this sounds reasonable. the problem I see here is that maven doesn't necessarily know about the base-schema
 
rethrowing Runtime Exceptions is not a good design
 
2:07 PM
@Vogel612 Yes. Even when I add the base-schema as dependency in my sub-project. Any idea, on how to retain files generated for set of specific files?
 
@ItachiUchiha afaik InterruptedException is a Checked Exception...
just catch and wrap
catch (InterruptedException die) {
     throw new RuntimeException(die);
}
 
yeah I know what you mean
> If a checked exception is used for unrecoverable conditions, turning it into a runtime exception is justified.
which is our case :)
 
@ItachiUchiha Nah, I think that's acceptable, provided you don't over-do it.
 
@Michael comments finished for now
 
Just to clarify.. I tried and found that xmlbean is not considering my maven dependency & requires the base-schema for operation. My question now - How to retain the xmlbean-generated files for specific set of schemas alone and delete all files generated due to base-schemas? So, my sub-project can contain only specific code & compile smoothly as it is depending on base-schema project.
 
2:17 PM
@Vogel612 That's much better. xD Thank you. ^_^
 
@RKajaMohideen It seems you currently are the only one around having worked with xmlbean ...
 
@Vogel612 Hmmm.. Yes, it seems so... What is the best interface/channel to get some suggestion/advise for my problem? Some other IRC channel or a question in SO?
 
I think a question on SO would be fine in your position... just make sure you clearly state what exactly your problem is
 
@Vogel612 Ok, sure. Thanks.
 
@Vogel612 Do you want me to add your repo as a upstream and sync my local?
 
2:22 PM
that's the one choice
the other would be to sync to yours and open a PR
you should have write-access already
 
> sync to yours?
 
you got your own fork, right?
 
yeah
does that sync on its own with its parent?
 
> This branch is 1 commit ahead, 10 commits behind Vogel612:master
^^ your master stats
^^ my master commits
@ItachiUchiha no. you'll have to either rebase your changes onto my master or just merge them into your master
 
yeah, so I will have to pull from your repository to my local and push it to my github repo. Is there any way of doing it?
 
2:26 PM
I'd prefer the earlier
usually you'd add my repo to your remotes
 
yes
and then pull from your repo and rebase
 
then you can pull my master into a separate branch
exactly
then force-push your master and open a PR
 
That is exactly what I was going to do :P
 
wonderful. Then I'll be walking the dog, before I freeze to death when the sun goes down.
BBL ;)
 
2:43 PM
@Michael der?
 
@ItachiUchiha ?
 
> either rebase your changes onto my master or just merge them into your master
^^ I know what merge does and merging the upstream in to my master
but do you rebase the upstream on your master like merge OR do you rebase the upstream your master?
 
@Itachi Are you talking to me?
 
I don't see anyone else :P
 
lol ok
I really don't know. I'm not that well-versed in Git.
I know how to commit, push, and pull. That's about it. :/
Oh, and clone. xD
 
2:49 PM
lolz
 
Hey guys, quick guestion. I've been doing some reading, but I just want to confirm my findings.

It seems like self-signed applets do not work any more, so basically for an applet that uses sockets or accesses the file system, the only way to use it in production is to buy a certificate from a Certification Authority (~ 100 USD a year) ?
 
I will have to wait for @Vogel612 to come back from his walk :P
 
hello there
 
Hello :)
 
i have a problem with netty+camel
 
2:49 PM
Hello Users!
 
@ItachiUchiha Sorry. :(
 
@SoheilGhahremani uh oh.
 
fge
@MarkusPint an applet in 2015? Use jnlp, at least
 
optimism -= 10;
 
@Michael NP :)
 
2:50 PM
i want to read socket response
 
fge
@MarkusPint applets are the main reason why Java has a bad reputation in certain circles
 
optimism *= 0;
 
when i use pure java code like this
this work
 
fge
@MarkusPint use JNLP
 
@MarkusPint Yeah, they're really cracking down on signing stuff. For instance, you can't run self-signed JNLPs on Mac.
 
2:50 PM
int count = inputstream.available();
while(count)
{
inputstream.read();
}
 
So even if I use JNLP, I still have to buy a certificate?
 
i use netty+camel
 
@MarkusPint that is correct
 
@MarkusPint I think self-signed JNLPs still work on Windows, but if you want to support all platforms, then yes.
 
@Michael No one uses Windows.
 
2:52 PM
in camel context with which options i can reach the same functionaluty? i use textline = true and textline = false
 
@Unihedro Ha
 
@Unihedro That is what you think :P
 
@ItachiUchiha Well my school does use Windows (XP), but they fall out of my definition of "someone sane".
 
@Unihedro Uhhh they know XP is end of life, right?
 
2:53 PM
^^ Programmers are just ~1% of the world population
Most programmers like Linux
 
@Michael duh
 
Thanks everyone!
 
@MarkusPint Welcome!
<- done nothing
 
xD
 
Not the general public
 
2:54 PM
@ItachiUchiha I wouldn't say that. Liking Linux is certainly the cool thing to do as a programmer. xD
 
@ItachiUchiha World population is a horrible matrix.
 
I would guess that 20% of programmers prefer Linux.
The rest either like Windows or Mac.
 
Yeah, most of them prefer MAc
 
Programmers also makes over 12% income of the world, and STEM is listed on TIME's best jobs.
 
Yeah, probably more prefer Mac than Windows.
 
2:56 PM
Windows, hell no. Have you ever worked with CMD?
It Sucks!!
 
@Michael Oh, come on. No one uses windows.
 
Except for, uh, Windows programmers... xD
 
Well, even if you work on C#, you can use mono, cross-platform compilation.
 
No one uses Mono for serious .Net development.
There's no way it performs just as well as .Net
 
I guess so, but I do, so.
 
2:57 PM
It's reverse engineered...
Does .Net have public specifications like Java does?
 
0
Q: How to read socket response?

Soheil GhahremaniI use camel + netty for my socket connection. In camel-context file I use netty for my socket connection but i want to netty behaves like this: netty must read chars from input stream with size equal with inputstream.available() but netty block the code because it except \r\n or \r or \n in end ...

 
I don't suppose so.
 
Msdn...
 
^^ There is a question queued for ya @Vogel612
 
3:02 PM
I know.. but I don't fully understand it..
and I'm on mobile right now
 
Ahh, come back and read it and then reply to it :P
 
3:13 PM
@Michael Isn't it ECMA-standardized?
 
@OlegKuznetsov no?
 
@Unihedro yes
 
@OlegKuznetsov C#? I don't know.
 
ECMA-334; ECMA-335
 
@ItachiUchiha I still don't understand it..
but the sentence I wrote should be:
 
3:15 PM
Ah, I stand corrected.
 
either rebase your changes onto my master or just merge my master into your master
 
Huh, 2012? But isn't C# at like 2015-preview now?
 
@Vogel612 Merging your master into mine is what I understand
rebasing is what I don't
 
do you know what cherry-picking is?
 
3:18 PM
yeah, kinda
 
Rebase is an atomic erasure that nukes your lane of commits and replaces it with another lane of commits.
 
rebasing is cherry-picking multiple commits the convenient way
or rather cherry-picking commits one at a time throughout a specified history of commits
 
Where merge is to add a lane onto the latest commit on your lane.
 
without having to cherry-pick one at a time
 
yeah but don't I rebase your master onto mine?
Why my master on yours?
 
3:20 PM
Rebase is horrible concept and should be banned!
I'm serious
 
@OlegKuznetsov stop right there
 
@OlegKuznetsov haha
 
this is a religious war.
stop it, or this becomes like the C++ Lounge.
 
I sure wish rebasing could be banned, as well as force pushing, because that means every bad developer is burned, roasted and eaten
But the fact is, bad developers still exist, so no.
 
@ItachiUchiha both works. but my if you rebase my master onto yours you'll have to resolve the merge-conflicts I produced.
and not the ones you produced
 
3:22 PM
Git rebase helps not destroying your commit history
 
@Vogel612 Totally not calling in the army of lounge on that one. :P
 
@Unihedro def not
 
@ItachiUchiha But it collapses your graph (and history)
 
@Unihedro why does rebasing make a bad developer
@OlegKuznetsov I don't like my history complicated
I prefer to pretend there was a single history
 
@Vogel612 mistakes, re-situation, a need to redo history
 
3:23 PM
and merge doesn't allow that
@Unihedro that's not what rebasing is about...
 
@Vogel612 Then use SVN or something
 
@OlegKuznetsov god no
 
fge
Rebasing published branches is sure bad practice
 
SVN is junk
 
fge
But your own branches, before they are merged? Sure
 
3:24 PM
@Vogel612 Hey now.
 
@Vogel612 so is rebase
 
inb4 SVN vs Git
 
@Unihedro let me tell you a story
 
fge
rebase rocks
 
@Vogel612 Oh?
 
fge
3:24 PM
But you have to know where to use it
 
morning
 
morning
 
my ex-company used SVN to version their marketing documents
somebody at my company made a test to check why our core network was permanently overloaded
they checked my network consumption (with active git work and streaming music) against that of a marketing employee
my daily network use: 700M:200M
the marketing daily use: 3.4G:3.2G (D:U)
guess who the culprit was?
The problem lies in how SVN handles changes against how git does
@fge it's similar to goto
story over, btw.
 
@Vogel612 That's the weirdest metric to compare VCS I've ever heard
 
@OlegKuznetsov no it isn't
it's the fundamental concept of VCS
 
3:28 PM
nope
 
@Vogel612 goto rocks
 
so does rebase
@OlegKuznetsov then tell me what makes Version Control what it is?
 
Fundamental concepts are size of the repo and speed of performing operation. But Network usage? (especially in intranet...)
 
@OlegKuznetsov hey, they completely overloaded our core glassfiber backbone
and that's beside the point..
SVN is slower
 
@Vogel612 yes, it is
 
3:30 PM
significantly slower. And significantly larger. It also is bad for distributed development because branching is a hassle
 
But again, guys. If you use rebase it means only one thing: your workflow is seriously broken [or your tool is broken]
 
@OlegKuznetsov that is a false assertion
why is the workflow broken when the workflow states that before pushing, a developer should rebase their changes upon the blessed master state?
@Unihedro there is a way around force-pushing
git push repo :branch
git push repo branch
 
PR submitted @Vogel612
 
3:47 PM
quick review applied ;)
 
@ItachiUchiha I've managed to get things to add to cart now with the POST, but the response isn't correct so even thought stuff get added to cart, the success message never prints :P
 
@Vogel612 Do you think
Platform.runLater(() -> {
instance.stage.show();
instance.controller.bindVvalue();
});
is a better implementation ?
This will never throw a NullPointerException() , even if someone uses gui = new ClientGui();
and then gui.start()
 
I'd say it needs a comment if you do it that way
usually I'd have "expected" this
if you don't use it an explanation would help ;)
 
00:00 - 16:0016:00 - 00:00

« first day (1554 days earlier)      last day (3401 days later) »