« first day (1275 days earlier)      last day (3659 days later) » 

12:02 AM
0
Q: How to set up datasource with Spring for HikariCP?

AbhinabHi I'm trying to use HikariCP with Spring for connection pool. I'm using jdbcTempLate and JdbcdaoSupport. This is my spring configuration file for datasource: <bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource"> <property name="dataSourceClassName" value="oracle.jdbc.driver.Ora...

 
 
3 hours later…
2:40 AM
@fge: Don't know if this means anything to you, but here's my first draft of the IXC config file: pastebin.com/FiVuNUn5
Going to bed. I'll take another look tomorrow at your coding request from earlier. Never got a chance to look. Goodnight.
 
 
11 hours later…
1:57 PM
Good morning, Java!
 
fge
Good morning milord
 
@aliteralmind It's also a complex and specific question. It's harder to get answers to questions like these.
@aliteralmind If you re-write the question to make it shorter and more specific, you might get more responses.
@aliteralmind I thought it was a requirement that the directory structure had to match the package names in a Java app (line 14).
In any case, I've never seen a Java project whose directory structure didn't match the package structure. You can probably remove this setting.
@fge How are you?
 
fge
@Michael fine
First beta version of parboiled 1.1.7 is being released ;)
 
I'm confused. Are you forking the original parboiled project?
 
fge
2:14 PM
Well yes, since its development has halted
 
Ah ok.
 
fge
It's too good a package to let it die
 
I wonder if I could use this in my vCard parser library.
 
fge
And I am surprised that nobody stepped up to it in the nearly 2 years that it has been abandoned in favor of parboiled2 :/
 
Why?
 
fge
2:18 PM
Meh, your guess is as good as mine
 
parboiled2 performs better, but can only be used with Scala.
 
fge
I haven't really compared performance but yes, Scala only is the problem; and parboiled1 performs pretty well
I mean, 2 million characters a second when parsing Java sources is far from being slow!
 
I was just reading the parboiled2 page and it said that it performs better and is more lightweight than parboiled1
Haha
 
fge
And anyway, when I get sufficient knowledge, parboiled1 will use indy
 
What is indy?
 
fge
2:23 PM
invokedynamic
New in Java 7
 
Ah
The new bytecode thingy.
 
2:34 PM
Good morning :)
 
Hi @aliteralmind
 
@Michael: I'll keep that in mind about my question.
 
@aliteralmind Ok
 
@Michael: I personally store my source-code without the extra top-level directories. Perhaps I'll remove it when it's published.
@fge: Congrats on the release.
@fge: Why the dislike of scala?
 
fge
2:52 PM
@aliteralmind confusing syntax, for one
 
3:08 PM
@aliteralmind It's standard practice to organize your directory hierarchy to match your package hierarchy.
 
@Michael: Okay.
 
hi im trying to split a string into an array some of the most of the data is separed by | but there is part of the data on the next line ive tried this String[] value = newline2.split("\\|+\\s[\\r\\n]"); it separated the string with | but not the whitespace
 
@NasirShiraz: split("[|\s]")
Or split("\\||\r\n")
Forgot to double-escape
split("\\||\\r\\n")
split("[|\\s]") splits on all whitespace: tab, space, newline
split("\\||\\r\\n") splits on the literal or: \\|, OR: | the line-separator: \\r\\n.
 
thanks aliter i mtrying them now
 
3:23 PM
Last one: split("\\||" + System.getProperty("line.separator", "\r\n"))
Darn, wrong about the System one. Use split("\\||\\r\\n").
 
hi its splitting but stopping when it gets to the white space only doing 1 set of results
 
@NasirShiraz: Can't know without seeing your input. Consider posting a question. I'll take a look.
 
ok sure thanks
il try couple of things first
 
4:25 PM
@NasirShiraz: How'd it go?
 
 
2 hours later…
6:17 PM
I am working on hash tables.In hash tables we have wastage of space due to empty table entries. can we have any hash function that can compute expected number of empty entries.

I have seen the same question being asked in many textbooks, and there was a hint saying that we can use indicator random variables to generate a random hash function.I was not actually cleared about that concept...could any one explain them in detail.

Thanks in advance
 
 
4 hours later…
10:25 PM
@fge: Got it down to exactly four taglets: .source, .output, .fileText, and .sourceAndOutput :)
 

« first day (1275 days earlier)      last day (3659 days later) »