« first day (1606 days earlier)      last day (3339 days later) » 

1:29 AM
HELLO~!
 
2:02 AM
@fge you were doing tutorials with gem and second riku last day?? *jelly, i want too. i hope it was not so deep of a topic
 
I think he's sleeping
 
@Gemtastic did he does some lecture?
 
yes he did. It was about querying in JooQ
 
basics? like create, select, update and deletes?
 
Yep
 
2:14 AM
what else?
 
That was it
 
2:27 AM
did you enjoy it? hehe. it was nice right?
 
Indeed it was
 
2:48 AM
but have you tried using JPA, Hibernate and stuff?
(i didnt btw.)
 
No
 
3:08 AM
0
Q: 【Java lambda】 what is diff between .foreach and .stream().foreach

mingI have a question, this is a example: code A: files.forEach(f -> { //TODO }); and another code B may use on this way: files.**stream**().forEach(f -> { }); so, the question is: what is diff has stram() or not? thanks.

hi
 
hello
 
good morning..
 
you guys are from U.S.A?
 
no
 
3:35 AM
0
A: 【Java lambda】 what is diff between .foreach and .stream().foreach

UnihedroBoth approaches uses the terminal operation Iterable.forEach, but the version with .stream() also unnecessarily creates a Stream object representing the List. While there is no difference, it is suboptimal.

The other two answers blatantly misses it. xD
!!sleep or stare at phone
 
@Unihedro sleep
 
k
 
any one here familiar with c++
....
nvm
 
4:05 AM
hello anyone aware of a technique to listen to DB value changes??
 
4:19 AM
WTB database connection
 
WTB?
 
Want To Buy
 
what does that mean?
 
It's a gaming reference
 
4:34 AM
i mean does this msg 'WTB db connection" is a reply to my question?
 
No it isn't
It was my own issue
I resolved it
 
user4202350
5:09 AM
Hiya
 
@Unihedro a clone!!
 
\o
\o/
 
@ItachiUchiha Morning!
 
@Gemtastic where's my share of goodmorning :\
 
5:23 AM
@Sword Morning to you too
 
better XD
 
user4202350
Nobody want to greet Uni?
 
@Unihedro good morning
I saw a single unihedro tab , does that mean both get pinged simultaneously?
 
user4202350
@Sword good morning sword. where is my best friend ShaU?
 
ShaU is now Unihedro
and yesterday you were the one telling me to be original..
really? I guess you forgot to change your avatar then..
 
user4202350
5:30 AM
I like his avatar. So i used it . :P
 
ehhh ? No shit Sherlock..
 
user4202350
ShaU is my elder brother.
 
user4202350
We are from Earth, Earth, Alpha Centauri ,Earth, Alpha Centauri
 
@Sword Don't encourage him.
 
I stopped replying to him, its a pain seriously..my fault
 
5:43 AM
@Gemtastic Mrng~
Not asleep?
 
Nah, I had a nap fron 20 to midnight or so. Gonna stay up, go to an interview and then sleep.
 
Interview for job?
 
Yes
As a webdeveloper
 
Ohh cool..
Is this the PHP job you applied for?
 
Yep :)
 
5:56 AM
hi guys, i have a question~
int count = 0;
public int getNGScenarioCount() {
// for (Page page : pages) {
// for (Scenario s : page.getScenarios()) {
// if (!s.isRes())
// count += 1;
// }
// }
// lambda
pages.forEach(p -> count += p.getScenarios().parallelStream().filter(s -> !s.isRes()).count());
return count;
}
 
Btw @ita you wouldn't happen to know how to populate a table view from only knowing it's node and it's id?
 
how to make more lambda or beutiful
thanks
 
@ming use CTRL+K to format code.
 
@Sword hi, the code is format in my eclipse, but ctrl +c here, it's not :D
 
@ming after you paste it here , use CTRL+K ; it will automatically format your code snippet
 
6:01 AM
int count = 0;
public int getNGScenarioCount() {
//	for (Page page : pages) {
//	for (Scenario s : page.getScenarios()) {
//	if (!s.isRes())
//	count += 1;
//	}
//	}
//	lambda
pages.forEach(p -> count += p.getScenarios().parallelStream().filter(s -> !s.isRes()).count());
return count;
}
 
yes.. better
 
@Gemtastic node and id? Can you explain what are you trying to achieve here?
 
@Sword cool, i didn't know thanks
 
@ItachiUchiha I can try ;P I'm using a navigator to decide what to show in the tab. I want to access that tablepane and insert data into it.
 
TableView*
yes you can do it
 
6:04 AM
how to get youtube subscription list ?
 
@ItachiUchiha Do you know how?
 
For starters, do you have a piece of code?
 
I can push to my github
 
cool
 
6:11 AM
hi guys i get one
	int count = 0;
	public int getNGScenarioCount() {
//		for (Page page : pages) {
//			for (Scenario s : page.getScenarios()) {
//				if (!s.isRes())
//					count += 1;
//			}
//		}
//		lambda
//		pages.forEach(p -> count += p.getScenarios().parallelStream().filter(s -> !s.isRes()).count());
//		return count;
		return pages.parallelStream().mapToInt(p -> (int)p.getScenarios().parallelStream().filter(s -> !s.isRes()).count()).sum();

	}
 
Ok! so you have 3 controllers
and do you want to populate private TableView<Customer> customers; in ListCustomerController??
@Gem
 
Yes
 
from?
I mean, where is the data?
 
Well, the database
I think I might have an idea though
But first... How does the controller path work? I can't get it to work :/
 
Controller Path?
 
6:24 AM
ListCustomers is deattached from the controller I made for it. There's no relation inbetween them
 
Any one know how to get youtube subscription list ?using you tube data api
 
the fx:controller path. I can't seem to get the path right to the controller I want to use
path/link
 
Why does your ListCustomers.fxml has a control as the root?
 
A control?
I have to have the TableView as the root
Otherwise it won't scale
 
Not Possible
 
6:30 AM
?
What are you talking about?
 
You should not have a control as the root of any fxml
the root should always be a container, like anchorpane, vbox, hbox etc
 
I don't know what a control is here
 
TableView is a control
 
ListCustomers is loaded into a tab
It's never the root of a scene
or a stage
 
Any one know how to get youtube subscription list ?using you tube data api
 
6:33 AM
@Gemtastic ohh, that changes things
 
@ItachiUchiha I could have been more clear with it :P
 
Hey All,
Anyone here use spring framework I have start learning Spring framework for need good tutorial link I have googled and found links but I am confused which one I followed
 
They are all confusing unfortunately
 
@Gemtastic which controller corresponds to this screen
 
ApplicationController
The tableview you see there is the one I'm trying to populate
But it's set there by the navigator.
 
6:43 AM
The navigator handles what fxml to be displayed in the center of the borderpane
 
Exactly
The idea is that when you select an entry in the tableview you'll be able to switch the TableView for another FXML which displays the information of the selected entry
 
That we can take care later
First, we need to populate data
 
yes :)
 
when you are loading the tableview, you need to fetch data from the db and inject into the TV
 
We can do that as a start
 
6:49 AM
HI everyone, actually what happens if i didn't close the connenctions in my DAO class method
 
Though I don't want it to load data upon being loaded; I want it to load data based on what you put into the searchfield
@greenhorn Your database has a ton of open connections
 
Good morning!
 
and why do you have the same search field for all the tabs? Isn't the search on each tab gonna do a specific kinda search?
 
@Gemtastic what does open connections mean?
 
@oleh mrng~ ;)
 
6:51 AM
@greenhorn What do you think the connections do?
 
Any one know how to get youtube subscription list ?using you tube data api
plz help me
 
@johnsakthi If we knew, we would have helped ya already ;)
 
@Gemtastic it helps to establish a connection to sql after that we can perform operations of the DB table
 
@greenhorn A connection to SQL?
 
@ ItachiUchiha
 
6:54 AM
You send SQL queries to the DB, not connect to the SQL. SQL is a language, like Java
 
@Gemtastic well i don't know that exactly man
 
@ ItachiUchiha You tube channel subscription list - i get only who have created a channel for his own user account list only show?
 
@greenhorn Then you must know that you establish connection to the database and not to the SQL.
@johnsakthi I have no expertise and I can't help ya.
 
When you open a connection to the database, the database is computing power to that connection. Having one or two open and unused connections won't really be noticeable, but when your app makes hundreds or thousands of connections that never close, you're gonna take the power off of the database.
 
@gem any insight on this comment
 
6:56 AM
@ ItachiUchiha k thanks
 
Hey everyone!
 
@ItachiUchiha There's a different search tab on each tab; it just looks exactly the same
The Checkbox isn't gonna have the same content
I just wanted it to look unified
 
@Gemtastic The look can be unified, but do all the search boxes on each of these tab perform the same task?
 
Kinda, just that they handle different things; Kund handles customers, Fordon handles cars
etc
 
DataSource d=getDataBase();
Connection c=d.getConnection();
stmt=c.prepareStatement("update table_name set aaa=? where condition");
stmt.setString(1,ae.getLast_name());

In this getDataBase() was the injected code for DB access. So how to close connections in this above logic
 
7:02 AM
@Gemtastic So they must be inside the tab fxml and not tabpane fxml
 
@greenhorn put the connection part in a try catch with resources blogs.oracle.com/WebLogicServer/entry/… or just add.close to the connection
@ItachiUchiha Aren't they?
 
@Gemtastic yes its under try catch only
 
@greenhorn Seems you use connection pooling. In the finally block you can close it.
 
read the link, try catch with resources looks like this:
try(*Autocloseable code here*){
}catch(SQLException e){}
it should work to "just" put stmt.close() but the thing is; if your try fails, it never closes. However, if you but the connection in the try() then it will autoclose if it fails
 
try{
DataSource d=getDataBase();
Connection c=d.getConnection();
stmt=c.prepareStatement("update table_name set aaa=? where condition");
stmt.setString(1,ae.getLast_name());
stmt.executeUpdate();

c.close();
stmt.close();}catch (SQLException ex) {
System.out.println("##### update excep here in dao"+ex);
}

is this right?
 
7:09 AM
No
 
@Gemtastic Nope they are part of ApplicationController
 
They all are
inside of the tabs
@greenhorn Did you even look at the link?
I want them there because they don't change. Even if you're looking at a specific entry's detail, I want you to be able to search like before.
 
@Gemtastic i read through that link but they closed only the Statement object without closing Connections object may i know the reason for that
 
@Gemtastic Yes they are, coz you made it that way.
Ok let me put it in a way you would understand
 
Well, I can't explain what they did better than them; they have a complicated trystatement. However, you put the connection in the brackets of try()
@ItachiUchiha Ok :)
 
7:19 AM
The button customerSearch has one action searchCustomer() which is linked in the ApplicationController. For every Tab you want the action to be different. How do you think you are going to manage it?
 
@Gemtastic i already put connections inside try only
 
@ItachiUchiha a new method.
I know it will be messy and I kinda understand that it's bad design
But I'm stressed for time and it looks 100 times better than it has to already
 
@Gemtastic How are you gonna decide that which tab has exactly being loaded and is currently calling the search?
 
@ItachiUchiha Because it's a different node on a different tab
Kund tab has one called customerSearch. Fordon will have one called carSearch
 
so you are gonna switch between all the nodes and call a different method for each one
sounds messy
ok, brb
grabs something to eat
 
7:24 AM
I'm not sure you fully understand what's going on in there. But yes, it is a little messy, which is probably why you don't understand what's going on in there :P
Right now I just wanna manage to get ANYTHING passed into the TV :/
 
Looks like I missed all of the action
 
If by action you mean me crying because I was too dumb to notice that I hadn't added the psql driver then yes
And Jooq mocking me and TableView not wanna accept my data...
That was a real party
 
Stop playing with flags, you are bothering all 10k users in all rooms.
 
I'm not playing with them
The user is impersonating the room owner
 
I didn't point you as the flagger. Whoevever is flagging should stop.
 
7:32 AM
HAMMERTIME!
 
I didn't say I flagged, but it's justified
 
Why are people so pissed about flagging? :-/
Remember, kids, lack of moderation killed Google Wave (RIP :( )!
 
@ItachiUchiha ok thanks
 
Hi to all
any one know good opensource application for desktop sharing
in java
 
@Gemtastic thanks @Gemtastic
 
7:46 AM
@greenhorn I'm glad if I was of any help
 
@Sword I'm going to have to ask you to stop engaging with the trolls. 1. No one even know who the clown is. 2. No one really cares about disruptive conversations, and they belong nowhere. So does yours.
Bye for now, then.
 
8:07 AM
I could use some help with JPA
0
Q: JPA reading data with NO LOCK

EratesIn the application we're writing, it is required that we use the with(NOLOCK) in our queries. Just so that the queries don't take so long to process. I haven't found anything on how to accomplish this. What I did find is how to enable optimistic or pessimistic locking, but as far as I know, that...

 
8:23 AM
Good morning
 
Hello
 
before you ask, yes I saw your question
 
Hahah :D I know you can see the history so :D
thx though :D
 
hi everyone..
 
@gem still here?
 
8:39 AM
how do I use two different versions of a jar in gradle project..
 
you don't,...
 
I have an eclipse project, for which I need to understand the class hierarchy
Are there any free working tools for this?
 
Why would you want to use different versions of the same jar??
 
why not use inbuilt class hierarchy tool?
@overexchange chose a type, press F4, finished
 
am checking that
Does this work on RTC clients
IBM RTC clients that are wrappers of eclipse
CPU is going busy with F4 saying: "????? files to index" . Is this one time job?
 
fge
8:46 AM
Moo
 
@fge Moorning
 
@Vogel612 this is helping!!!
 
@Erates There is a utility library created dependent on a beanutils 1.x.. now I am using this utility in my project.. (my project uses beanutils 1.z
when building I getting error in class which is referring older version of beanutils compiled in utility library..
 
ADG
I need help
reply yes if you intend to.
 
@overexchange I know... I often use that feature myself
 
8:54 AM
@technocrat Im not that expert in gradle, but in maven you have the option to set a dependency on "provided", that way your project knows about that jar file, but doesn't compile it.
 
^ that.
 
@ADG Just ask what you want to ask
 
or change the library to a version depending on 1.z
 
ADG
I wish to create a graphical level editor with java @Erates
I know basic programming
 
yes and your problem is?
 
ADG
8:55 AM
but haven't used java for graphics
i suppose it involves JFrame?
@Erates
 
depends on which GUI library you want to use. For swing you'd use a JFrame as the top level
 
ADG
@kiheru I think I will use swing. Where can I find related info to this (to level editor+swing)
 
@ADG In the past I've used Swing to do this. When I needed to paint a rectangle for exampe, I used the java.awt.Graphics class. docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html
 
ADG
@kiheru OK I can use JRadioButton, JButton etc. How to create the space where I select a tile from a list and on clicking it fixes to a predefined grid and then adds a line to a text file?
 
uh, I suspect there are no tutorials that directly talk about level editors. It's just a gui program (that probably needs some custom drawing). As such the proper place would be the swing tutorial
 
9:01 AM
I suggest using MVC
 
I strongly suggest you use JavaFX...
 
ADG
@Erates mvc=?
 
because Swing is a jerk, and officially EoL'd
 
JPanel with a mouse listener --> check where you clicked and then do the things you need to do
@ADG Model View Controller
 
And there's also the possibility of not making a custom tile editor. Such things exist - I use and like tiled
 
ADG
9:02 AM
@kiheru how does it work? is it simple? generic? customisable?
Thanks very much @kiheru
@Erates I had in past made a calculator with netbeans and swing.
 
@ADG It's simple to use but quite capable. Your maps sound like simple things consisting of tiles, and for that tiled is more than capable enough. The native map format is xml based and easy to write a reader for, but if you want your own format it's possible to write a pugin for that.
 
ADG
@kiheru Thanks, you helped me begineer a lot.
 
eeeek! XML
 
ADG
there's mo definitive logic to it? ye?
 
but writing your own editor can be fun :-P but in case you want to develop a game then you may like more spending your time writing the game than the level editor
 
9:08 AM
@Vogel612 Most of the configuration in Java depends on XML. No matter how much you hate it, you still gotta use it somewhere :P
 
which is a PITA...and a pity, too..
 
fge
Yeah, getting rid of XML in Java is even more difficult than getting rid of psoriasis
 
Since when is swing officially EOL'd btw? I don't expect that to happen at least until there's a replacement in the standard library (frigging AWT is not officially deprecated. It has not seen changes in eons, but it's still supported)
 
ADG
see an example
 
fge
@kiheru well, JavaFX is in the latest 7 and 8 releases
 
ADG
9:12 AM
 
@fge It's in the latest Oracle java version. It's not a part of the standard library yet
 
@fge Swing is not officially EOL'd and I do not see its end.
 
Swing is officially EoL'd in the way that JavaFX is going to be it's replacement in foreseeable future
they just keep it for backwards-compatibility..
 
> Swing will remain part of the Java SE specification for the foreseeable future
 
but AWT is dead just like swing is.
 
9:15 AM
I agree it will be the successor eventually
 
it's just that Java maintainers are reluctant to throw away old "components" of the java language
 
fge
@Vogel612 yep, project jigsaw will be more than welcome
 
any good libraries to make http requests?
I don't wanna use java.net.HttpUrlConnection :P
 
anyone here know how to store a arraylist in hbase as a java object or may be in byte form
so that it can be retrieved from hbase
in the form of object
 
9:31 AM
Sounds like you could use Serialization.
 
WTF?
 
@ItachiUchiha ShaU
 
yeah I can see that
and I also realized that he has been suspended again
 
requesting kick.
 
9:41 AM
he is already banned throughout the network
 
Hiya @TimPost how are you?
 
user50049
Hungry! Subway opened up around the corner, and they deliver. :D
 
@TimPost Rejoice!
 
user50049
@SecondRikudo ... in bacon!
 
fge
@SecondRikudo hello
 
9:51 AM
@fge o/
 
hmm.. It's 11 AM here, and now I am hungry, too .... dammit
soo... what brings you here?
 
I guess he is just passing by :D
 
user50049
@Vogel612 Pest control.
 
user50049
Got critters under the floorboards
 
almost figured as much..
damn critters, though
still chat-profile text chatting
 
10:33 AM
@TimPost Oh my thanks a lot!
 
soo. @Unihedro how do you feel about having a stalker?
 
@Vogel612 Typical. I have more stalkers than I care about.
(Hello there)
 
hmm.. AFAIK I have no stalkers yet.
 
lolz
 
@Vogel612 One time I said that. That afternoon on the same day I got an email.
 
10:37 AM
I mean... there's my shadow and his wizard, but... one is me and the other isn't stalking me from what I see.
hmmm. maybe that all just got caught in my spam-filters.
 
So I decided to visit the filtered spam after you said that:
I still haven't had time to reply to Inf's email. :(
(so sorry!)
So, today I thought of an interesting mechanic.
 
(•_•)
( •_•)>⌐■-■
(⌐■_■)
3
deal with it
 

Deal with it

3 mins ago, 7 seconds total – 2 messages, 1 user, 1 star

Bookmarked 3 mins ago by Unihedro

You're welcome :D
 
10:52 AM
@SecondRikudo yaay
 
Should we host a farewell party? xD
Pi day is overrated. Happy √10 day!
Is it just me or the tweet date makes it off-by-one?...
 
@Unihedro It's still only timebased if I read it right
 
fge
@Gemtastic so, are you more familiar with jooq now?
 
Did someone attend an interview?
 
@Gemtastic A year is a heck of a timebase. xD
 
10:55 AM
@fge A little. But not with how to transform my record into a table view :P
@ItachiUchiha I did
I just got back
I borked so hard
 
fge
@Gemtastic there are examples in my debugger app
You don't "transform"
 
@Gemtastic How was it?
 
fge
You configure your TableColumns so that they display what you want, and you .setItems() on the TableView
 
public int sum(int[] i){
int total = 0;
for(int j : i){
total + i;
}
}
*facepalms*
 
fge
10:57 AM
And for some type T you define a TableView<T> where the columns are TableColumn<T, C>, where C is the type of the column
 
I've never written something so bad my entire life :')
 
fge
Meh, the sum of integers from 1 to N is simple: it's N*(N+1)/2
And this is easily provable
No need for iteration :p
 
@fge Yeah, but that's not true to an arbitrary list of integers
 
I'm gonna have to star that. I'm sooo tired and I'm about to sleep. Just wanted to let you know I borked
 
There's the more general formula that includes the delta between numbers in the series
 
10:58 AM
The more I look at the code I wrote, the funnier it gets.
 
fge
@SecondRikudo obviously not but then I did say the sum of integers from 1 to N :p
 

« first day (1606 days earlier)      last day (3339 days later) »