« first day (1577 days earlier)      last day (3349 days later) » 

11:00 AM
Hellooo everyone
Hey @fge
 
fge
Well, anyway
 
Finally, you are here :P
 
fge
Hello @Mr.777
It's been a while
 
Yep, been too long :(
Hey @Uni
 
fge
@SecondRikudo well, if you find an opportunity... I can help build the argumentation ;)
 
11:01 AM
What about java-fs-more?
 
@fge My current push is to get rid of MySQL entirely.
 
fge
@Mr.777 I still haven't had the time to touch it since then, I've been busy with this
 
Aaah so you are writing a debugger now ;)
 
fge
@SecondRikudo the RDBMS engine is one thing and the querying library another -- but yeah, getting rid of MySQL is a good idea
 
MySQL as Oracle's MySQL or one of it's forks?
 
11:03 AM
@fge Actually I'm trying to push towards Cassandra (since we're already using it for other stuff)
 
fge
@SecondRikudo ^^^ this can help
 
@OlegKuznetsov MySQL
 
fge
Cassandra?
Any reason?
I mean, is your data really that "document oriented" that it can't fit a normalized model properly?
 
@fge We're already using it, the current modeling system there works relatively well. It doesn't suck nearly as much as MySQL.
 
fge
Because if I were you I'd push for PostgreSQL instead of directly go the NoSQL route
(which is more often than not a fad, by the way)
(you still can't backup NoSQL databases as well as RDBMSes)
 
11:04 AM
@fge Most of our data is document oriented enough, and is bastardized on a relational DB with antipatterns like EAV
brb meeting
 
fge
@Mr.777 as I haven't touched the code it means you can finish the tests :p
 
@fge Yes, I will finish the tests, currently I am handling two jobs so get very little time for extra things.
I work 16 to 18 hours a day :(
 
@SecondRikudo Wait, do you migrate to some NoSQL?
 
@Mr.777 Hiya! // cc @/all
join.me really sucks. It's made by the guys who built logmein, too. Failed attempts at creating VPN for noobs.
 
@Unihedro your best friend is here too
 
11:15 AM
Oh?
 
MES
hello
 
@Mr.777 It sucks :-/
 
Don't know what you mean by that :p
Unless it's fge
 
@OlegKuznetsov I know but I have to do it for few months :(
 
not ShaU ??
 
11:19 AM
Don't know what you mean by that. Is that a joke, lol? no
 
MES
I have goggled a lot but I'm not able to resolve a silly problem.My issue is that I have a row with multiple column values i.e suppose corresponding to beam_current column there are two values and so on.Everything is coming in one row.Now I want to display in such a way that columns names whose values are multiple should come in different row or different columns not in that same row.This I want to do through JSTL.?Is there any way??
 
yes
 
MES
How???please tell me...I'm not able to resolve it since last week.
 
@MES have you used stackoverflow.com ??
 
MES
yes
 
fge
11:27 AM
@MES great! A non normalized model
 
@Swordy such questions would be shot on sight with such vague description and lack of effort...
 
yeah but he could get answers if he were to make it more specific on site..
 
@MES "How" -> You can do it like the way you said in code, it's perfectly viable. However, your model is bad and will not get the very far, and eventually you will just have to throw it all out and start again. Which, considering you seem to not succeed implementing this, you may as well as do something more sane.
This is an XY Problem.
 
the above description will put off anyone in the mood to answer..
 
fge
Such a model violates 1NF
 
MES
11:30 AM
I tried.I'm new here.sorry.But I did made efforts and java is new to me.
 
fge
<-- has always worked with models at least 2NF so he doesn't even know how to "fix that" in SQL proper
Split functions do exist, but...
 
@MES Eh, I'll try to put it in a simpler fashion. With what you're trying to achieve, that would take a surprising number of hacks and almost impossible for any average Java coder to go through, you may as well as redo your specifications.
 
@fge u on clash of clans??
 
MES
I will redo it.Will try to make it better and work.I know I have made mistakes.But this thing of laying values from rows where multiple column values exist into another row is I'm not getting.I have to resolve this issue asap.
 
"exist into"?
 
fge
11:40 AM
@Swordy what?
 
i got the answer.. you don't :P
 
fge
I don't even know what you are talking about
 
^^^
 
fge
But anyway, I knew this was what was needed somewhat: over
 

Happy new year train with 18 stars

Dec 31 '14 at 14:03, 1 minute total – 5 messages, 5 users, 18 stars

Bookmarked Jan 3 at 10:40 by rene

 
11:43 AM
I was asking you whether u play a game. you said what?? so i understood u don't play it..
 
@Swordy I believe no one in Java really plays any major game at all.
Not like cough TCL
 
@Unihedro TCL has only 2 members , me and Jerry .
you have stopped visiting..
 
Big data analysis: 100% of TCL basically only stays in TCL to talk about the game :D
 
fge
No, I don't play games
 
Yes, I have been busy and now that I'm whitelisted by the gaming.SE people, I've joined them instead
 
11:45 AM
hmmm ok @fge tries holding back tears
 
MES
@Unihedro I mean that corresponding to beam_current column if there are two currents of same value i.e 10 and 10 Then corresponding to both the beam_current there will exist 8 different values of beam_energy,bag1,bag2,bag3...values.All these are being shown in one single row now.I want to separate such values into different rows.By using Jstl if and when conditions I think we can do something with thsi.But how?
 
@MES um. write code
 
MES
My jsp code till now is- <table width = "300px" border = "1" cellspacing="2">


<tr><c:forEach var="row" items="${ref.refarray_vac1(param.datepicker)}">

<td><c:out value="${row}"></c:out></td>
</c:forEach></tr>


<tr><c:forEach var="r" items="${ref.refernece(param.ref_logtime)}">
<td><c:out value="${r}"></c:out></td>
</c:forEach></tr>

<tr><c:forEach var="d" items="${ref.diff()}">
<c:forEach var="cl" items="${d.value}" >
<c:choose>
<c:when test="${cl==0}">
<td bgcolor="green">${cl}</td>
</c:when>
 
brb
 
k
 
MES
11:52 AM
Through this I'm able to get three rows ,first one is the row which contains multiple column values as these values are of whole day i.e 24 hrs, second row contains value of a particular time which I supplied in sql query.Third row gives me the difference between the two rows.Values of first row are more as there are multiple column values corresponding to beam_current and in second row only singles column values are present corresponding to each current.
@Swordy I'm sorry.but I really don't no this .
 
@fge: Since you have more experience in coding, is it generally cleaner to design the interfaces before designing the implementation?
 
fge
@Unihedro well, designing your interfaces first allows you to, uh, test the interactions? ;)
Sorry, I'm busy with some "scratch code"
 
That's ok, I'll poke you later :p
-5
A: In Chrome, how do I directly download a PDF from a Google search

FragnificentJust face it Chrome sucks, Firefox sucks more but Chrome sucks and they don't bother to make it good because they know everyone has it so they have no incentive to get up off their fat a**es and program a good browser. Just take printing. For decades, printing off a browser is not WYSIWYG. Do the...

What the...
 
<3 Firefox
 
> Firefox sucks more
 
MES
12:09 PM
no ans..no hints..:(
 
12:30 PM
@Unihedro how can i invert colors in my browser??
like u did..
 
@Swordy body:before { background: invert(95%); }
or something
 
fge
Grrr
I can't find how to do it
@MES you didn't really search around, did you?
 
If you're on Chrome like I am, look for the extension "hacker vision"
@fge I doubt searching would be helpful, that's jstl...
 
and any other browser?
 
2 mins ago, by Unihedro
@Swordy body:before { background: invert(95%); }
userstyle
 
12:40 PM
where can i put this?
 
in your userstylesheet
 
and may i know where the userstyle sheet is??
 
@OlegKuznetsov I'm aiming to
 
12:57 PM
meh
@SecondRikudo Oh?
 
His description
 
Me playing the sea of flames: Takes a pair of pants to leave the rest in it, then breaks it for no reason and realized I shouldn't have done that
@SecondRikudo Eh, I have him hidden, is he in the room?
 
fge
@ItachiUchiha you haven't answered my earlier question
I didn't really understand your git problem
 
Well I fixed it. I used rebase and then merge.
that was just a stupid question. Never mind that :)
 
couldn't you have just hard-resetted?
 
Well no. You aren't aware of the problem. @Vogel612
what the problem was*
 
throw away stuff on master and use a different branch instead?
 
1:40 PM
nope
 
oh nevermind then
 
1:58 PM
@ItachiUchiha love you a lot.. You made my day :D
is there a link you could share where i could read about vim , vi etc..
 
@Swordy wc
@Vogel612 what does the display filter actually do ?
 
fge
2:16 PM
@Swordy I could give a session about it
The basics at least
How about an hour from now?
 
@fge actually i'll be out.. can we schedule it for some other time?
I've got classes to attend so i'll be offline.. :(
tomm we could have one..
 
@ItachiUchiha it filters the message content
I run messages through it before displaying them
and it filters out stuff we don't want (like replies)
 
ok cool, you saved me some work
 
2:31 PM
lol
and the best is: it's extensible
 
yeah I checked it out
;)
I did not lately have time to make any changes the the client
but i have changes done that I last posted
wanna check them out??
 
open a PR, I'll do a review and then probably merge
 
0
A: Is it required to use Java 6 SDK and RE to make Bukkit Plugins, or should I have updated versions?

UnihedroBoth Bukkit and Minecraft are compiled for Java 6. This means your source code cannot be compiled under that level, as the dependencies of Bukkit and Minecraft are on compliance level of Java 6. However, later versions of Java are supported because Java has unlimited backwards compatibility. This...

review pls.
Considering every answer seems to be answering something else, I'm having second thoughts.
 
@Vogel612 changes on master, hope that will not be a problem
 
as long as it's your repo ;)
 
2:43 PM
lol
should I raise a PR for the upstream dev branch?
@Vogel612
 
Good morning, Java!
 
Mrng!
 
Morning
 
Morning!
^ four stars lol
 
Blasphemy.
 
2:57 PM
in Tavern on the Meta on Meta Stack Exchange Chat, 25 secs ago, by Unihedro
@PeterJ PHP sucks even more.
^ also four stars!
 
Its still two ;P
 
Eventually, every message will have at least four stars.
 
@Unihedro Well, that one is true. xD
 
Java has 5
@Michael True that
 
3:23 PM
@ItachiUchiha Changes for UI in testclient?
 
3:34 PM
Hey guys, I was looking for a quick reference materials to get me started on EJB...does anyone have suggestions?
 
@ItachiUchiha merge complete
 
Yes. Don't ponder in chat. Go spend your time learning it.
2
 
@Vogel612 Without any comments?
 
nope
it's a short simple and obvious change
 
3:38 PM
not gonna make a fuss about 70 + 30 - stats with obvious and clear intent
especially not when they're written so cleanly ;)
 
@Second you there?
Morning peeps
 
@Gemtastic Yeah?
 
morn
 
@SecondRikudo Can I share that git hangout session with my classmates?
 
@Gemtastic Of course
 
3:42 PM
The video is unlisted so I thought I'd ask to make sure ;)
 
Sure thing
 
> This video is unlisted; be considerate when sharing it.
Hahaha no
 
I will link it to whoever needs it!
 
4:08 PM
Experiencing the block...
Oh well.
 
Block?
 
The programmer's block, it's like the writer's block. :p
 
aah
Well, I got out of mine kinda yesterday. I'm not very successful with what I'm trying to do, but I have a nice idea to work with
 
@SecondRikudo Are we planning an advance session?
 
@ItachiUchiha Yes, but I don't know when, I can't today.
 
4:21 PM
@SecondRikudo You can plan it some other day and ask @uni to set it up
 
Yes.
And hope Benjamin doesn't attempt to sabotage it again.
 
hehe
@Vogel612 Didn't get you :P
 
when you see it...
 
fge
yawn
Hmm, I have to do a git add -p; if you don't know what that is, we can have a quick session about it :p
 
I don't
 
fge
4:34 PM
@Unihedro seriously? I thought you did
 
I've never seen add -p throughout my development life..
I can't even find it thru a SO search
 
fge
Hoo
That's strange
So, I take it you didn't git add -i either?
 
Of course I know that, I use it :p
 
fge
Well, add -p is basically the same except that you cycle through all the files which are modified
It is a "reduced" version of git add -i, in short
 
Huh?
So you're presented a whack a mole screen where each hole is delivered sequentially?
55
A: Impose a re-entry delay on users kicked out of a chat room

balphaThis has been implemented now. The short story is: room owners can kick abusive users, who will then be banned from re-entering the room for a certain time. Of course you want not just the short story but all the dirty details, so here they are: In the user popup that appears when you click on ...

^ awesome
 
fge
4:37 PM
Well, when you git add -i you have the option to print the status, add untracked files, select files to patch etc, no?
 
@ircmaxell There may be more to come. With the infrastructure changes I mentioned in the aside in this answer, it's now much easier to create more fine-grained bans (and conversely, additional permissions) that can be given to users. — balpha ♦ Sep 11 '14 at 14:48
advanced room owner moderation powers confirmed :p
@fge yep
 
fge
Well, git add -p is option 5 except that all files are selected and you don't have the other options
That's all there is to it
 
oh
 
fge
(with the same possibilities of course: edit hunks etc)
 
sounds like a shortcut I won't ever need
 
fge
4:39 PM
Well, I use it much more often than add -i
I only really use add -i for heavy rebases
 
I like the extra step that makes you do a sanity check, though.
 
fge
No need for a session then, you already know what it is :p
 
\o/
 
fge
I do git diff --cached for that :p And git stash -u and run the tests etc
 
Learn A New Thing In 5 Minutes with fge
 
4:42 PM
@ItachiUchiha 70 additions 30 deletions
 
fge
4:52 PM
<-- frustrated by the amount of work it takes to get the attributes right
 
<-- staring at IDE
 
<-- staring at mobile
 
<-- decides to watch nyan cat
 
5:11 PM
<-- still unable to decide what to do next
 
<-- getting lunch
 
5:27 PM
How could anyone have so much time to have made this?!
 
<-- back from shopping
 
wb
 
mmm semla
 
6:09 PM
I got a JSP project i currently work on (learning) where i try to load a database.properties file
try(FileInputStream fin = new FileInputStream(path);) {

The path is passed from my servlet to my java class
ConnectionManager cm = new ConnectionManager();
ArrayList list = cm.getSQL(1, path);

But i get an java.io.FileNotFoundException:
C:\Users\user\Desktop\apache-tomcat-8.0.18\wtpwebapps\jspProject\WEB-INF\database.properties
But if i copy this path, open notepad, open new and paste the entire path. Notepad opens it no issues, any suggestions to why FileInputSteam cant open the file?
 
@CristianMatthiasAmbæk stop spamming the room and use pastie/pastebin/hastebin/gist
 
@ItachiUchiha me?
I think this is my first post today, how on earth do you qualify this as spam?
Is it the context or the length that rubs you the wrong way?
Earth calling @it
@ItachiUchiha
 
fge
1. use java.nio.file; 2. in a webapp you don't use that, you use .getResource*()
 
Sry i missed a line. @fge i used getRealPath for the path of the file i want to pass in the path.
ServletContext sc = getServletContext();
String path = sc.getRealPath("/WEB-INF/database.properties;");

ConnectionManager cm = new ConnectionManager();
ArrayList list = cm.getSQL(1, path);
 
You should still use java.nio.file; it's supposed to be used over java.io.file wich is outdated and they made nio because io sucked.
 
fge
6:21 PM
@CristianMatthiasAmbæk that won't help any purpose
You're in a webapp, you ARE NOT supposed to know where you are running from
 
^^^ duh
 
just came by to say "Goodnight" ..
 
'night
 
http://www.commitstrip.com/en/2015/02/16/uber-and-apple-are-following-google-in-the-the-driverless-cars-competition/
CommitStrip - Blog relating the daily life of web agencies developers
Uber and Apple are following Google in the the driverless cars competition
CommitStrip
1424111136
 
fge
<-- looking at the documentation of spark
 
6:58 PM
gist.github.com/tejasmanohar/… -- i select health and click calculate then look at the output to console and first 0 was printed then 500
why is the setter method not working? shouldn't total be set to totalFinal
gist.github.com/tejasmanohar/… - this is again why it's printing $0.00 not $500.00
confused
 
@fge Thanks for the advice. I have changed my code to use .getRessourceAsStream for my properties file. Works fine.
 
fge
7:53 PM
As expected :p
<-- sleepy
 
Then go to sleep
I haven't really seen you sleeping anytime
You and Uni are kinda similar when it comes to sleeping
 
anyone here familiar w/ lambda -> syntax in java?
 
yup
shoot yur question
@fge This question might interest you. You can give him an alternate approach to open dolphin( or whatever it is)
 
new SecondWindow((ins)->{ins.setTotal(total);}).setVisible(true);
how can i accept for something like this in constructor i guess
public SecondWindow()
{
}
i know how to accept arguments / parameters but im passing in lambda functino here
sorry, not too experienced in java or functional programming but trying to experiment w/ an existing project of mine from school :P
 
fge
If that's Swing I can't help, sorry
 
8:00 PM
@fge yeah swing and jframe :\ lol
@fge BUT i'm just asking from a pure java perspective ^
InsuranceGUI.java:104: error: constructor SecondWindow in class SecondWindow cannot be applied to given types;
new SecondWindow((ins)->{ins.setTotal(total);}).setVisible(true);
 
fge
Well, I don't know JFrame so I don't even know what you want to do
 
how do i accept for a parameter like this in constructor
oh
Ok, let me anonymize the question from JFrame
 
@TejasManohar i will get back to you
 
@ItachiUchiha thanks
 
fge
8:01 PM
@ItachiUchiha what about this one?
(the question I mean)
 
SecondWindow inherits from InsuranceGUI, I'm creating a new instance in InsuranceGUI - new SecondWindow((ins)->{ins.setTotal(total);}).setVisible(true); - java is saying
InsuranceGUI.java:104: error: constructor SecondWindow in class SecondWindow cannot be applied to given types;
new SecondWindow((ins)->{ins.setTotal(total);}).setVisible(true);
how do i accept for a parameter like this in constructor in the constructor of SecondWindow
^ like this as in (ins)->{ins.setTotal(total)
 
fge
Well, what is that lambda supposed to be?
What interface does it implement?
 
ah, so it has to link to an interface
 
fge
Well yes
 
fge
8:04 PM
starts to understand why @BenjaminGruenbaum was pesking him about currying
Hmmm, interesting
 
@fge he needs to connect to database and fetch data. Moreover he needs to keep the data synchronized. You can easily have a ScheduledExecutor which does this job..
@fge what?>
 
fge
@ItachiUchiha well, answer the question then ;)
 
@TejasManohar Yes a special type of interface, called as Functional Interface
 
OH I GOT IT
 
8:06 PM
@fge haha, I thought you would love to answer such questions. But, you are sleepy :P
 
fge
@BenjaminGruenbaum you got me interested, damn you
I have other stuff to do :/
 
Great, port Ramda, it should only take you a short amount of time but it'll be an interesting type system experiment.
 
fge
@ItachiUchiha why don't you answer?
 
The problem is again, that Java's generics are pretty weak so getting currying right is hard. You might need to hard code it or something.
 
fge
8:07 PM
That is not the real problem I see
 
Like, it's impossible to say "A function of N parameters is a function that takes a single parameter and returns a function of N-1 parameters that behaves similarly" in Java.
 
fge
The real problem is defining the necessary interfaces
Yes it is, but it's hard and time consuming
Basically you have to define a Function2<T, U1, U2> in addition to Function<T, U>
Then you define Function<T, U> curry(Function2<T, U, U2> f, U2 val)
Individually it's simple
 
No, it should happen automatically by return value.
 
fge
But you will have to have Function2, Function3 etc
 
Doing F(1,2,3) should be the same as doing F(1)(2)(3) and both should be typesafe.
 
fge
8:09 PM
Meh, interfaces have default methods too
Function2<T1, T2, U> { default Function<T1, U> curry(T2 val) { return t1 -> apply(t1, val); } }
(for instance)
So, you have your Function2 instance and you do f2.curry(somet2), you get an f
(as) typesafe (as Java allows)
And it's still a SAM, therefore usable in a lambda
With all the limitations that Java suffers in this regard, sorry, can't do anything about it
If you want to pass args only that will have to be classes
No value types yet -- not before Java 10 from what I understand
@ItachiUchiha looking at the question again it looks like something the GuiTaskRunner could implement
 
yes it could.. :D
 
fge
Uhwhat, you want a second TDD session, that's it? :p
 
<--- Busy with Reflection
 
Is HN down for everybody?
 
8:27 PM
HN?
@fge Stream.peek() is awesome
 
fge
Yep, quite nice :)
Heh, I just thought of a trick to process all elements in a Stream at reguar intervals
 
which elements?
 
fge
stream.map(Operators.rethrow(t -> { TimeUnit.SECONDS.sleep(1L); return t; }).forEach(...)
 
Operators?
 
@ItachiUchiha wait what?
Oh, we have that it's called .tap, it's evil but useful.
 
8:35 PM
have that in js ?
 
fge
@ItachiUchiha from throwing-lambdas
 
fge
Meh
I want to implement it now
(darn)
 
Your annotations will confuse users, you should not use them on a specific question.
Just my 2 cents to you
But this is a JavaFX question, so Meh.
 
fge
Well, he wants to update the objects on the clients and the GUI every 500 ms
No?
 
8:47 PM
yes
 
fge
Ohwell, I'll just remove the answer
 
No
It is good enough
Don't worry about it
Your last edit is Nice ;)
time to take a nap. See ya @fge
 
 
1 hour later…
fge
9:55 PM
yawn
 
10:20 PM
I'm trying to solve things thing without many to many
 
10:33 PM
when you run a java application, does an installation of any sort happen?
 

« first day (1577 days earlier)      last day (3349 days later) »