« first day (1588 days earlier)      last day (3348 days later) » 
01:00 - 20:0021:00 - 22:00

1:26 AM
Hello
 
2:13 AM
@JavaTechnical is your prob solved
@Unihedro whats the hangout about?
 
3:01 AM
Morning!
 
 
1 hour later…
4:12 AM
Morning
@Smrita we have been conducting weekly hangouts in java room(it was daily for few days :P ) where we discuss about technology, share knowledge by giving presentation. Last 2 sessions were on GIT.
@PaulVargas 666 days 60 consecutive
 
good morning..
 
4:54 AM
Morning
 
5:12 AM
hi anyone extended spring in a cool way for a business problem that meant you could not use spring out the box but needed something custom? one is logging with AOP, security ... i had to extend security to have roles plus privildges ...so can create and change and user groups outside of code. Any more examples you can share with me? need to give a talk on it. More on the spring security change i did - github.com/tgkprog/samples/tree/master/SpringSecurityDb
Any more examples like this where you have used spring to solve a business problem by extending it in an elegant way, and can share with me, need to do a talk on this ? tgkprog@gmail.com or post here. thank you
 
5:30 AM
@Smrita No, it is not solved yet.
 
Is using JRE 8 to run JRE 7 fundamentally better in the sense of improved VM implementations?
Earlier I was trying to convince someone that it was, but then realized I've never known if that was true
 
5:47 AM
get youtube channel subscribers via youtube API?
 
rtfm
if it doesn't support that, then simply scrap the html
 
list ?
means user who subscribe the video
u said web scrolling ?
 
No, its not web scrolling. It is Web Scrapping!!
But it must be there in the API
 
6:09 AM
@ItachiUchiha 40 more consecutive days and you will get the fanatic badge. :-)
 
gasp!
Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.
I got that on SO :O
 
6:24 AM
[:-)]
 
6:35 AM
In my Dao class how shall i pass the error to front end i.e JSP.This is my code
public class VehicleDao extends HttpServlet{
public void Motor()
{
try {

}catch (SQLException ex) {
}

}
whenever it enters catch block i want to pass that error to JSP
 
6:52 AM
Good morning, Java!
 
Morning
 
fge
Moo
 
answers are appreciated
 
7:07 AM
I don't know JSP so I can't help you
 
its okay could some other help me this
 
fge
7:56 AM
Peano algebra rocks
 
8:12 AM
@Mano can't you set HttpServletResponse.sendError method ?
@Mano : you can use HttpServletResponse.sendError method to send errors to jsp
 
fge
@Mano making a DTO extend HttpServlet? It looks to me like this class handles too much responsibilities
 
public class VehicleDao {
public void Motor()
{
try {

}catch (SQLException ex) {
}

}
Now i removed extending HttpServlet from it, i want to pass the exception from DAO to controller how to do that?
 
fge
Well, why don't you make the method throw the exception instead of capturing it, and let the "correct" level handle it instead?
 
But i want to let the user to know the error in front end thats why
 
fge
8:38 AM
Sorry but that's not a valid reason
You can relay the error to the JSP without a problem
 
8:51 AM
 
9:31 AM
Nice pic @gem
 
Do note that I did not draw it
 
Well, you could if you wanted to
 
I could probably draw it nicer XD
But I didn't
 
fge
Uh
So, I'm going to Barcelona for a parser project
 
What? Barcelone for a project?
@fge Is it a Developers meet?
 
fge
9:44 AM
No
A job offer
 
what does "throw" do in java i know it throw error but i am not sure where it prints the error
 
@fge What about the other one? The one which was in your location
@Mano It throws exception object. You need to get the exception message from the object.
 
fge
Well, hey, I'm open to opportunities
 
@fge Congratz! :)
 
Ahh, opportunities! But, isn't moving to Spain a big decision? You have a family as well.
 
9:49 AM
public void vehicle() throws SQLException{
try{
}catch{
throw new SQLException("SQLException ");
}
}
 
fge
@ItachiUchiha I don't have children; and it would be remote most of the time anyway
 
in this where does this "SQLException" gets printed
 
new SQLException("SQLException ") will create a new Object for the class SQLException and set the message as SQLException
@fge Work from home?
 
fge
Yes, most of the time, although not always
 
@ItachiUchiha i want to print this SQLException in JSP what's the way? well this method is located at DAO(simple JAVA class)
 
9:53 AM
@fge That is great news + You <3 parsers = Makes the news even more awesome!!!
@Mano First, you generally don't create a new SQLException. Second, you can always pass exceptions to different layers of the project
 
@ItachiUchiha In my DAO i want to show some errors to users while inserting/ updating a record in JSP how to do this thing
 
@Mano You cannot.
DAO layer is meant for accessing the database and that is it
your users have nothing to do with the DAO layer
 
hii all need help?
 
you delegate the exception created in your DAO -> Service -> Controller -> to the user
 
@ItachiUchiha hii
did anyone here used teamviewer in mobile phone??
 
9:59 AM
But then, SQLException don't reach the Controller, because user doesn't understand it. You need to typecast them to a UserDefined Exception and delegate it
@SuroorAhmmad Not me
 
In my project.. I m obtaining desktop screen in one actovity and my touch is sent in another activity
sit possible to conbine both in same activity,
how the mouse movement will work here??? the pixel of phone and desktop r different right??
 
if user inserting a duplicate record it triggers a error that "duplicate entry" i can view this error in server log but how can i intimate this info to the user
 
@Mano You show him an error - "Duplicate Record Found" or "Duplicate Record. Cannot Insert"
@SuroorAhmmad Hey, we are not mobile developers in here. Contact @TheLittleNaruto from Java and Android era room
 
@ItachiUchiha from DAO class how can i print this info to user
 
ok ?? @ItachiUchiha thanks .. bye :)
 
10:03 AM
5 mins ago, by ItachiUchiha
you delegate the exception created in your DAO -> Service -> Controller -> to the user
 
fge
@ItachiUchiha yup, that is a great opportunity indeed
 
@ItachiUchiha thanks @ItachiUchiha but still i am stuck with this,how should i delegate the exception from DAO to controller
 
@Mano You throw it
 
that thing only i don't know @ItachiUchiha can you please show me a sample piece of code
 
@fge Need some insight on a multi-threaded environment. Do you have some time?
 
10:11 AM
Thank you lot for your support @ItachiUchiha
 
fge
@ItachiUchiha I do; what's the problem?
 
I have an old piece of code, which creates threads to be used as Queues for files. These queues are created and files are assigned to them by a class called as "QueueCollection"
and Queue extends Thread
The run() has an infinitely running loop which accepts new file
 
fge
So, basically, you want to convert this to a producer/consumer model?
 
May be, but that conversion will have to change the whole structure and needs time
The problem right now is when the server shots down, inside the destroy() of the servlet, we call shutdownAllQueue() of the QueueCollection class, which stops adding any more file to any of the queue and waits for all the queue to clear the files, already added.
Are we clear, till now?
 
fge
We are
So, this means that the files which are currently being processed should be seen to completion before the shutdown actually occurs?
 
10:23 AM
Yes
 
fge
Well, the way I see it is to use three ExecutorServices
And a BlockingQueue
Now, a question remains: how are new files submitted for processing
Anyway, on the producer side, this would be pushing new files to be processed (executor #1, single threaded)
 
No wait.
You are again re-vamping the whole thing
The QueueCollection waits for all Queues to get empty by invoking Thread.sleep() on itslef
 
fge
And that's not the way to do it
 
I just wanted a way so that the Queues can notify the QueueCollection when they are empty
Yes, I know that
It is not a way
 
fge
OK, so, the thing is that to me there should be an ExecutorService, with non daemon threads, which takes care of processing the files
OK so far?
 
10:32 AM
So you mean, all my queues should be the part of/generated from an the ExecutorService?
 
fge
Why do you have several queues to begin with?
OK, let's step back
 
To handle multiple files in real time. We get ~2000 files/sec and unless we have multiple files to handle them, the process will be very slow
 
fge
And how long does a file take to be processed?
Also, define "real time"; I wager you mean "parallel"
 
Depends on the file size. It may vary from milli-seconds to few seconds.
yeah
 
fge
So, the shutdown sequence should really do that: 1. stop accepting new entries; 2. wait for all accepted entries to be processed
Right?
 
10:38 AM
Google to shut down Google Talk Windows app today :(
 
Wait, what's Google Talk? Never heard of it.
 
@Unihedro A windows client for Google Chat
 
:) I also Google Talk today shut down officially
 
fge
@ItachiUchiha looks to me that you want 1. daemon threads for submitting new tasks, 2. work stealing on the processing side, with non daemon threads (handled by 3. a cached thread pool)
 
10:53 AM
So, I need to create a daemon thread whenever a new task arrives. Let it do its job and kill it.
Follow the same next time?
 
fge
No, wait
The plan I had in mind was different
It depends on one thing however: do new jobs arrive in parallel as well?
Gee, yet another 500 rep bounty
 
$(document).ready(function(){

$(".uname").change(function(){
var mail = $(this).val();



if(mail.length >= 3){
$(".status").html("<img src='img/loading.gif'><font color=gray> Checking availability...</font>");
$.ajax({
type: "POST",
url: "usercheck",
data: "uname="+ mail,
success: function(msg){

$(".status").ajaxComplete(function(event, request, settings){

$(".status").html(msg);

});
}
});
}
else{

$(".status").html("<font color=red>Username should be <b>3</b> character long.</font>");
}

});
 
fge
@Mano this is JavaScript, as such not suitable for this room to answer
 
@fge okay
 
fge
11:11 AM
Uuh, there's definitely no beating Yoko Kanno when it comes to anime sound tracks
Any other anime OST sounds... Blank... compared to what she does
 
@fge no new jobs arive serially
Each of these are then assigned to any of the queues which are running parallely
 
fge
11:26 AM
@ItachiUchiha OK, then as I surmised you need three pools
 
Three pools? Why?
 
fge
And a non bounded BlockingQueue
One pool on the producer side; its role will be to push new files to the blocking queue (daemon thread)
Two pools on the consumer side; one, single threaded, which takes an element from the queue and submits a new task to the thrid pool (daemon thread)
The second, cached, which picks jobs from the queue and processes them
(NON daemon threads)
What you'll need to do also is to collect the Future<?> of all tasks submitted to the non daemon thread pool
On shutdown you'll have to .get() these futures
Do you follow so far?
 
Just one problem. I may need multiple BlockingQueues
Because files can be categorized under 4 categories.
And it is done when we receive the file at the servlet (before processing)
 
fge
Well, abstract that away
And make the "task dispatcher" handle the discrepancies
A more precise answer can only be given if you fully describe the problem space :p Otherwise I'm just doing wild guesses
 
Hmm.. ok.. I am on mobile. Can you wait for 10 mins?
 
fge
11:38 AM
I can
 
I will be back on my system..
 
fge
We can even have a hangout about it :p
 
I'll lurk in the hangout :p
 
fge
@Unihedro no you won't; keep working on HTTP/2
:p
 
> Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
What does this mean?
Whenever I build with LWJGL, I get that message in the logs on the very last line after the build thing shuts down
 
11:47 AM
@Unihedro i'm still not able to figure out the dark theme on the browser :(
 
Which browser do you use?
 
chrome
 
ok, install this plugin named "hacker vision"
 
woow.. worked :D
finally :)
 
@fge Well, hangout will have to wait till I get back home.
And moreover I do not access to the code at home.. zzzz
 
11:51 AM
:|
Why don't you have access to the code at home?
 
Well, nice question. You will come to know about it when you start working at companies who don't like to share code :P
 
SSH in?
 
fge
Meh
The principles won't change anyway
So the hangout can still be held
Just tell me when you're ready
 
Cool, I will get back to you later.
 
Previously:
in bin, 22 secs ago, by Unihedro
I... own... this room?
Eh.
 
12:00 PM
@Unihedro I suppose the buid scripts specify -XX:+CMSIncrementalMode somewhere. That's a GC mode that will be removed
 
Thanks!
 
@Unihedro That's gonna give someone an epileptic seizure XD
 
XD
 
hello guys
 
12:08 PM
@Unihedro Kill it with fire!
 
I have a player at position X, Y. I need to use the 3x3 area he is standing in (square tiles). Each position can be defined by Position instance, so we can have an array of Position[9]. Is there a way to set the 3x3 area without going through even index in the array and setting the position manually?
 
@BenBeri I'm sorry, are you asking for how to manipulate for layers of dimensions of a multi-dimensional array?
I don't understand your question. You define the problem with abstractions, but no code at all.
or types you're dealing with, actually.
Nice, someone donated $10 to my paypal!
 
@Unihedro Can you see the screenshot i sent? Thats a 3x3 area I need to get from a player, marked as "Enemy". I need that area inserted position by position (tile by tile) in an array. so to get that area I did this:
        Player enemy = (Player) attacking;

        int enemyX = enemy.getPosition().getX();
        int enemyY = enemy.getPosition().getY();


        /**
         * Create a 3x3 area of positions
         */
        Position[] positions = new Position[9];

        Position start = Position.create(getHeight(), enemyX - 1, enemyY + 1);
        Position end = Position.create(getHeight(), enemyX + 1, enemyY - 1);

        byte index = 0;
        for (int x = start.getX(); x <= end.getX(); x++) {
            for (int y = start.getY(); y <= end.getY(); y++) {
I am not sure if that works yet
however that code has possiblity of out of bounds if given a distance more than 3
 
12:26 PM
I'm not really sure what you're asking either, but you you have y growing to a different direction than usually in programs, but you try to fill it top to down. You need to either use y-- or start from the bottom too
 
9 mins ago, by Ben Beri
I am not sure if that works yet
@BenBeri The general rule of writing good code is to just give up because it's impossible make sure that every line in your code is obviously correct.
 
Anyway, it's not clear what the overflow would be since the code snippet uses distance nowhere, but the overflow supposedly depends on distance
 
the programmer's intution: you know when something won't work. :P
 
when is the hangout ??
 
@Sword you are wasting transcript space just pointing that out
Check the schedule on the events tab: chat.stackoverflow.com/rooms/info/139/java?tab=schedule
 
12:30 PM
13 hours!!!
i'll be sleeping .. :(
 
:/
I wonder if it's easy to make use of the Google Plus API to make an integration to make a bot that posts to the room whenever one of us starts the hangouts.
Still a funny comic :D
 
hangouts won't be that frequent to irritate..
 
@Unihedro I guess we should change the timing for this hnagout
people are not available at this time
 
Sure, @Sword: When will you be free for the weekend hangouts?
(in +- the current time for event)
 
which timezone should i reply with?
 
12:44 PM
Reply relative to the current event
 
no, just list how many hours from or after the current event are you free on
 
16 hours from now
that is 4 hours after the current schedule
 
and?
 
anytime after that
Coz I will be there the entire day
Or u could refer to.. wait..
 
+4 to current schedule. That will be like middle of the night for GMT
What time is it for you uni?
I am trying to schedule it in the late afternoons or evening (GMT) :P
 
12:48 PM
@ItachiUchiha 1 pm
 
But, again, it has to be approved by everyone
 
fge
Hmwell
 
14:30 - 15:30 GMT is good
as fge said
 
fge
Not sure this will extend to a full hour but...
 
12:50 PM
Again, what is the time for @uni and @Sword
@fge this time is for the weekly hangout :P
 
fge
@ItachiUchiha I was referring to your specific problem
 
after half an hour is perfect for me :D
around 40 mins to be more precise..
The same as the hangout session by michael
 
fge
@Sword sorry but this session is meant to tackle a problem submitted by @ItachiUchiha, so this will be to his convenience
Still waiting for an answer
 
ohk.. i thought it was a GD on golf code
I see that shau also registered for the event :(
 
@Sword I wouldn't be here after half an hour.
 
12:58 PM
ohk so what other time?
let @ItachiUchiha decide
that problem is specific to him..
 
fge
Witness the talent of the most gifted anime music composer to have graced our Earth with Her Presence: Yoko Kanno
 
1:31 PM
um
actually, what if we just made the hangouts last really long so you can join as you arrive? @Sword
 
Yo guys
 
fge
@Unihedro and then how would you make catch up?
 
Anyone who's good at pseudo code with math symbols in it? Could really need some help before brain shuts down..
 
Head's up I will probably be sleeping by then :(
 
I know chess master @Unihedro is.
 
1:44 PM
@Unihedro long as in 4 hours??
@ShaU you will probably get banned again on March 8..
 
@Sword like it would ever be different
Professional sites have limited tolerance on misbehaviour.
 
yeah..
 
I'm not going to comment on specific cases like these, but suspensions are not punishments. Well in some form they are, but they're not at all overused, in fact made in good faith.
 
true.
 
The penalty box is the implementation that targets specific problem behaviours and done in faith that the user will learn from a timed suspension and return to contribute positively. Under very many cases, the users are educated. In other notes, there are users who do not deserve a place, in such cases actual punishment is given.
 
1:55 PM
Does anyone know why he uses "minimum support of nodes in B" at line 3?
 
Or rather: A suspension is given out when you can't reach the user to remedy their behaviour in diplomatic ways. Something has to be done for users not investing effort to learn or improving over time - timed suspensions are rather light treatments.
 
@ShaU hope you are reading and understanding the message for you..
 
Also, I don't really care if a user learns from treatments. It's not my loss. It's not my mission to make everyone on the Internet better, I only do my best to make the Internet better.
That's distinctly different.
 
Where's the right place to ask questions about Pseudo code for a well known algorithm, like the one print screened above?
 
um you can try your luck on Theoretical Computer Science, or the CR chat room
 
2:04 PM
what is CR short for?
 
code review
 
The chat room is available under SO?
 
it's a different Stack Exchange site.

 The 2nd Monitor

General discussion about codereview.stackexchange.com - Welcom...
 
@miniHessel members who think they can help you out will surely help you in case they have a solution.. Depends on their work schedule and availability..
 
Of course @sword, Just asked what chat room is appropriate
 
2:11 PM
yeah .. thats fine :)
 
@Sword We could do whatever we would do anyway, and then I keep ranting for the rest of the four hours.
 
fge
yawn
 
@fge where's the "moo"
 
fge
Why would there be one?
 
2:20 PM
Hmm.
I want to make a blog, but I don't want to accidentally make it all rants and code golfing.
 
Isn't that what blogs are for?
 
Well, it's a web log, a place to store insights to share with the world.
 
user image
4
:')
 
Shut up and take my star xD
My version would be replacing the last box with Stack Overflow.
 
fge
@Unihedro IOW, as far as I can see, an impossible task for you :p
 
2:25 PM
Or duck duck go
 
yeah and the downvote symbol as well :P
 
in all honesty
wait, wrong acronym
 
In other words
I was just derp
 
Yeah. xD
 
I'm not used to acronyms that aren't computer related
 
2:26 PM
@Gemtastic i forgive you
 
@Sword Thank you
 
fge
@Gemtastic hoo, let's test that then; what does UDP mean?
 
u dumb prick??
 
No googling. xD
 
User Datagram Protocol
I never said I knew them all though
 
fge
2:28 PM
Good
SCTP?
 
I just said I'm only used to the ones related to computer stuff :p
 
Wat, not... Unit Deployment Program?
 
fge
TLB?
WORM?
 
Trans Lesbian Bisexual?
 
fge
Uhmno
 
2:28 PM
@fge Stream Control Transmission Protocol!
 
Hi :)
 
World's Only Remaining Meatball?
 
fge
Yes for SCTP
 
@bkowalczyyk hello person with a similar avatar to that of Zirak's
 
it is similar to my face too :D
 
2:29 PM
As for non computer acronyms:
 
u look too happy with life.. @bkowalczyyk
 
fge
@Sword nope...
 
@fge Mooooooooo :(
 
fge
WORM: Write Once, Read Many
Relates to backup media as well as, well, code
 
@fge That's a good one to knpw
 
fge
2:31 PM
TLB: Translation Lookahead Buffer
An essential part of all modern CPU MMUs
 
I don't deal with MMUs.
 
fge
Yes you do, although you are ultimately unaware of them
OS developers do care, however
 
I want to build an operating system.
I don't have that skill set yet.
 
fge
@Unihedro focus on HTTP/2 for now, there are plenty of hurdles to overcome for this particular protocol :p
 
Do you want to write OS in java ?
 
2:36 PM
@fge "plenty" is an understatement
 
i want to build a game and i don't have the skills to.
 
@bkowalczyyk no that will be a nightmare
To run Java you must first have the JVM in place!
 
and u need OS for JVM ??
 
@Sword That would be ridiculous, but if the OS is written in Java, yes.
 
2:40 PM
@Sword For example, JNode
There was project of CPU, which would run Java code, but it left just an academical project, IIRC
@Unihedro JNode was written in Java
 
@OlegKuznetsov yes
I didn't like it though.
 
A Java processor is the implementation of the Java Virtual Machine (JVM) in hardware. In other words the bytecodes that make up the instruction set of the abstract machine become the instruction set of a concrete machine. These are today the most popular form of a high-level language computer architecture. == Implementations == Up to now the following Java processors are available: picoJava was the first attempt by Sun Microsystems to build a Java processor aJ102 and aJ200 from aJile Systems, Inc.. Available on boards from Systronix Cjip from Imsys Technologies. Available on boards and wi...
o_O
Old news then
 
Well, I want an OS that doesn't have to run on a ASIC. xD
 
@Unihedro You didn't like what? The concept, the architecture, it's speed?
 
(application specific integrated chip/circuit)
@OlegKuznetsov personal preference
 
2:43 PM
It's not a real answer
 
 
1 hour later…
4:06 PM
Hi room. Is this right place to ask clarification on Jersey/Spring ?
 
4:50 PM
It is if someone who knows about those two is one
I barely know how to make a webapp in either framework.
 
 
1 hour later…
6:17 PM
Experimental rock / post-bitpop is awesome. xD
 
 
1 hour later…
7:38 PM
http://www.commitstrip.com/en/2015/02/27/if-languages-were-cabs/
CommitStrip - Blog relating the daily life of web agencies developers
If languages were cabs
CommitStrip
1425065798
 
01:00 - 20:0021:00 - 22:00

« first day (1588 days earlier)      last day (3348 days later) »