« first day (1405 days earlier)      last day (3553 days later) » 
00:00 - 13:0013:00 - 00:00

1:12 PM
I hate people that say java is slow
just hate them
 
"So you're saying that as a programmer I use the worst technologies? Well I'm done, please write your own code from now on."
jking.
 
argh... Jenkiiiiiinnnnnns!
Good morning, people
 
~ Hello @spoulson
 
Hello
Struggling with Jenkins. Seems my Maven project build is misbehaving only under Jenkins, not at my own command line. :/
 
I was looking at http://stackoverflow.com/questions/25549765/sql-booking-right-query-wrong-availability earlier and the desired output:
-----------09+++++++++++13---------
Got me thinking, is there any Java library for presenting various forms of data in text? One which has a large amount of styles already available
 
1:20 PM
@deepy ... .toString() ?
@spoulson Ahh. That's unfortunate. I've have no experience with Jenkins before to help, though.
 
That's just turning it to a String, I'm more interested in the formatting
 
What do you mean by presenting various forms?
 
-----------09+++++++++++13--------- is a day (supposedly) showing that something happens between 9 and 1
 
... I don't understand it. Then again, I hardly understand anything.
Your ASCII graph is not to scale. — Unihedron 6 secs ago
4
 
A library filled with different kinds of ASCII graphs!
 
1:25 PM
Oh, I get what you mean now. I've seen some ASCII libraries, but they mostly suck and are poor in performance.
 
Performance is a non-issue here, the real problem is my lack in imagination
 
@spoulson OMG
 
@spoulson tmdc.scene.org
 
@deepy: Veteran demoscener
 
1:49 PM
@spoulson OMG
 
That's what I love about demos. They're all realtime. Youtube vids are merely screencaps.
 
I am shocked
This one creating in programming language ?
 
Sure. You can download the executable and run it yourself.
 
OMG what a algoritm
 
Good luck on finding source code. :)
A great deal of demos are written in assembly language with lots of tricks.
If you like that one, I have a little Youtube playlist of other good ones. youtube.com/playlist?list=PL4KSefoYcY-JEhABtsKlawNkruK8PdLYW
 
1:56 PM
Charming
 
2:10 PM
@spoulson may i know the issue you are facing while using jenkins..?
 
@ItachiUchiha I have it mostly figured out, except this one thing about propagating build artifacts to a separate job.
I have a Build job that now works perfectly. It generates a war file.
Jenkins runs it, then captures the POM and WAR as artifacts.
The problem is that it renames them and moves to a different directly structure based on GroupId/ArtifactId.
So when my deploy job runs, the artifact is copied over, but the Maven tomcat7:redeploy-only goal can't find the WAR
Because it's not in its original location.
 
moving them to a directly based on groupid and artifactid is normal behaviour of maven
 
See you later tomorrow Java
 
Bye!
 
i am sure there is a way to edit the maven tomcat plugin
 
2:22 PM
I think I might have it.
 
only if I was on my PC i would have been able to help you better
 
the automatic archiving of artifact doesn't do what I want. Have to use the Copy Artifact plyugin
 
what do you mean doesnt do what you want??
 
What I want --> X. What I get --> Y
 
is the war thats created causing the issue or the tomcat plugin ?
 
2:26 PM
I want it to copy the artifact to the same place it found it
The build creates the package at target/<project-name>.war
the deploy goal expects it there
But the Jenkins Maven job rearranges it to a repo-like path: <my_groupId>/<my_artifactId>.war-<version>
Or some variation of that...
 
2:46 PM
Hi Everybody, Good Evening.
 
hi
 
Can any one please help me from come out of this doubt ?
 
hi
 
~ Hello @vikky
 
@vikky hi, what's your doubt?
hi @all
 
2:48 PM
I have one year experience in java application development. Recently I have attend one interview that interviewer asking
 
Ask away, don't ask to ask.
 
We are writing so many models (pojos) for maintaining data through out application so we are using setters and getters in models ?
Sorry
 
???
 
Is that a question?
 
why these setters and getters methods without using these can't we maintain the data ?
Only using variable
class User{

  String firstName;
  String lastName;

}
 
2:53 PM
Yeah, why not? Isn't that called program-design?
Or am I out of my mind?
 
Or am I out of yours?
 
Why not both?
 
radical
 
@vikky Java likes using the Bean design. If you access fields directly as you suggest, you lose features like polymorphism. This enables event handlers and dynamic logic on get/set.
You can't define an interface to a class that only contains fields.
 
Java Standard is to use getters and setters to access and modify fields
 
2:56 PM
My somewhat simple console application is suddenly in need of a lightweight query language, does anyone know of a tool/library that might help me create one?
 
SQL is not light per-se
so please define what's lightweight @deepy
 
@spoulson : Can you please elaborate some more here how we can lose polymorphism ?
 
@vikky You can override methods, not fields...
In fact, that's exactly what's with my most upvoted answer:
15
A: Why can we reduce visibility of a property in extended class?

UnihedronThis is because Parent.a and Child.a are different things. Child#method() @Overrides Parent#method(), as they are methods. Inheritance does not apply to fields. From the Oracle JavaTM Tutorials - Inheritance, it was written that: What You Can Do in a Subclass The inherited fields...

 
@vikky let me put an example of this
you have this code
 
If I were to do the same in SQL I might need SELECT and WHERE
 
2:59 PM
class Beverage {
    public double price;
}
class Frapuccino extends Beverage {
}
 
I might only need half of SELECT and all of WHERE
 
now you want to create a specific kind of Frapuccino
let's say, class FrapuccinoAdditionalCream
 
Even more, what I might want could be cut down to "get blue cat"
 
and you want to state that the price of FrapuccinoAdditionalCream should be always the price of Frapuccino plus 0.5
 
That's called encapsulation
It's, again, part of program-design
 
3:03 PM
so, to accomplish this
you have two ways
one is to write all the code for FrapuccinoAdditionalCream with a price and always add 0.5
and another is to have a getPrice method where you add the 0.5 at a single point
getters and setters help you to encapsulate the fields
and establish rules on them
this eases the development when you have to handle specific business rules in your model
 
Am I wrong in feeling that it shouldn't be FrapuccinoAdditionalCream but rather Frapuccino with a field containing additions?
 
@deepy You came from the Objective-C world?
 
Python or Classic ASP, I'm not sure which one is speaking at the moment
 
@deepy that's another way to model it
but in fact, this modelling of Frapuccino and FrapuccinoAdditionalCream is a basic example to show how Decorator pattern works
 
The second example on wikipedia spoke a lot more to me
 
3:11 PM
@deepy I haven't implemented any code for those classes
so obviously, that example gives more info
 
@LuiggiMendoza : Thanks a lot for given this much of explanation now i am going to digest point by point.
 
@vikky you're welcome
just to add
usage of getters/setters are part of the Java Code Conventions from ye ol' ancestral times
15 years old
there are libraries like JSF and Spring that respect that code conventions for development
 
3:59 PM
Any survivors?
 
I am
hello Karl
 
How you?
 
I'm fine, learning some ruby
started today
 
Nice!
 
how you doing?
 
4:07 PM
I'm about to send my dead motherboard off to meet it's maker...
 
back to intel or where?
 
Asus
 
oh, nice one
 
We are missing it already!
It was under a 3.6Ghz processor. Mated with 16 Gigs of RAM and an SSD
 
4:57 PM
heyall
 
hello
 
howdy ?
 
Doody
 
5:23 PM
hi
i have 5 elements in an array
 
hello @ErumHannan
good!
 
while index is from 0 to 4
on every button click i m incrementing indexes
on index 5 my application crashed directly its not coming inside catch block
 
what kind of try catch block do you have?
also, the array size is fixed, so you can't go outside that boundary
 
do u work in android ?
 
I do Java programming
in general
and your problem is about Java, not an android specific problem
 
Hi
does anyone uses WebLookAndFeel there?
 
Hello @Ben
 
or know it?
 
somebody probably will, I don't
 
@LuiggiMendoza
 
5:27 PM
@ErumHannan I have the code, but you have to narrow it to your specific problem
usually, people won't read a wall of code to fix your problem for free
I see the array with 5 elements
 
try {
if (mIndex >= 0 && mIndex <= 4) {
questionTextView.setText(quizModelArray[mIndex].getmQuestionId());
}
}
catch(ArrayIndexOutOfBoundsException e)
{
if (mIndex >= 5) {
//throw new IndexOutOfBoundsException();
Toast.makeText(getApplicationContext(), "No More Questions Exists", Toast.LENGTH_LONG).show();
e.printStackTrace();
}
}
can u pls see this
what i m doing is on every button click i m incrementing private int var++ ;
 
yes, I can see that
your problem is here
System.out.println("quizModelArray[mIndex].isQuestionTrue():"+quizModelArray[mI‌​ndex].isQuestionTrue());
you validate the mIndex variable everywhere
but on that line
in fact, you don't validate it in that method
in onClick method
I bet the stacktrace tells you this
do you know how to debug your application?
@ErumHannan ?
 
yes
 
good
second, do you know how to read a stacktrace?
 
yes
wait i m doing it by applying condition that if mIndex == array length -1 then do not increment it
 
5:37 PM
am back
 
@Unihedron How dare you threaten us!
:P
 
Huh?
 
now there is no exception
but still some logical problm trying to solve
 
and the problem is...
 
if (mIndex == quizModelArray.length-1)
{
//displayQuestions(mIndex);
Toast.makeText(getApplicationContext(), "No More Questions Exists", Toast.LENGTH_LONG).show();
}
else
{
displayQuestions(mIndex++);
}
is it logically correct ?
@LuiggiMendoza
 
5:45 PM
I would write if (mIndex == quizModelArray.length) { /* ... */ }
 
ok
again it creating exception
 
now where it raises?
what the stacktrace says?
 
6:05 PM
wait checking
 
6:30 PM
finally resolved
thanks for ur help
@LuiggiMendoza
 
hi all :)
 
Hey @maven
 
@how r u bro
 
Oh look.. it's maven. My FAVORITE tool.
 
YEAH.
 
6:40 PM
Maven!
 
mvn hello
 
(Let's wreck him! Who has a wrench?)
 
I've always wanted to get a wench...
Uhh….wait...
 
7:11 PM
In other news, I managed to fix all my Maven woes
It only took 2 years struggling
 
7:41 PM
I killed the chat!
 
claps
 
Bows
Juggles chainsaws
 
8:10 PM
Nothing?
 
hello
 
Chainsaw juggling? You're in the wrong room. Try C or C++ channels.
 
Should I have juggled cats?
 
any one have experienced trouble running eclipse on cent os 6.5?
 
Sounds more like java. Can be painful but you're unlikely to lose any limbs
 
8:18 PM
I thinks it could be more dangerous. A chainsaw won't attack you while you sleep
 
hello @AnkurNema
well, it's too late
 
 
1 hour later…
9:41 PM
Hello anyone here?
I got one or two quick questions
I am developing a small GUI for personal use. I have a "main" JFrame, the only thing it has on it is a JTabbedPane that is dynamically filled with JPanels for tabs. I am planning on making a basic tab from a JPanel and give it functions each tab should have. I also was going to have a function in the basic tab class setMainView(JFrame inView) that is passed a reference to this from the main JFrame.
-- My question is, is it safe to call functions in the main JFrame from one of these tabs? Could I do mainFrame.FooBar() safely? Or do I need to put the calls onto (i think) the Swing GUI Thread via a runnable? (is that what it is called?)
 
10:00 PM
Do you mean calls resulting from user action (such as when a button is clicked)?
Those run in the EDT, so they do not need to be wrapped (usually - there are specific situations where you want to push things to the end of the event queue)
 
10:29 PM
I don't know the number for user action [which is why I'm still sitting here]
 
I guess a situation might be, a user will load an inventory via the main JFrame and set a linked list of items objects to the loaded value. Later, The user might be on a page to edit the inventory in some way. Can, from the JPanel "tab", I do something like mainView.Inventory.GetItem()? can I directly access public members of the main view, can I directly access its functions? Can the main JFrame directly access functions and public members of its JPnael "tabs"?
 
10:39 PM
If the main frame has a reference to the inventory. Usual java stuff; swing does not have it's own language. The only unusual thing is the single threadedness (that's not really weird either - all major UI toolkits are single threaded; swing is just a bit poor in having no safe guards enforcing that)
 
Let me make sure I understand
So I have a JFrame mainView that has a public field LinkedList<Items> inventory and a public method public void DoSomething(). It also has a JPanel tab1. Upon startup the mainView calls tab1.setMainView(this). Later tab1 wants to directly access mainView.inventory or direclty call mainView.DoSomething(), is it safe to do such things?
* Within tab1 there is a local reference to Jframe mainView that is set from the argument to setMainView(JFrame mainViewRef).
 
Threads do not make any problem there. The code belonging to the tab should be already running in the event dispatch thread, so it can simply call mainView.DoSomething() (assuming that there's a usable mainView reference), without needing to wrap with invokeLater()
(the code in the tab runs in EDT if it's a result from an user generated event, or if it's been pushed to the event queue otherwise (such as when properly creating the GUI))
 
11:02 PM
Ok two more questions and I think that it.
To confirm, user generated events would be buttons presses, selections changes, etc that get called a result of a event being generated from the button and the owner catching it?
2. The proper way to send it otherwise is to use SwingUtilities.invokeLater/invokeAndWait ?
and pass the call in a runnable?
 
1. Yes. The system level events that are translated to button presses etc are processed in the event dispatch thread, so all the code running in those listeners is also run in the EDT.
 
It's a good practice to only do UI updates in the EDT and do all other work in a different thread
 
2. If you have another thread that needs to update the UI, you need to use invokeLater() (invokeAndWait() is rarely useful)
And yes, anything time consuming should be run outside the EDT to keep the UI responsive. I like using SwingWorkers for those tasks
 
is anyone here familiar with unity3d?
 
11:21 PM
the game engine?
You're totally in the wrong place
 
00:00 - 13:0013:00 - 00:00

« first day (1405 days earlier)      last day (3553 days later) »