« first day (1680 days earlier)      last day (3260 days later) » 

1:24 AM
@fge interesting the fwd nissan lmp1. seen it?
 
@Appu where are ya
 
1:39 AM
Hi everybody,
Good morning
 
morning
 
well... is 8:45pm in Peru :d
Good morning to you
 
1:54 AM
hmm
how are you?
 
 
1 hour later…
2:56 AM
good morning humans
 
Where?
 
3:13 AM
Hi, Good Morning!
 
good morning @crazy , hiya @uni
 
@deadlydragon00 hiya~
 
Hello Folks
 
Hi.
 
3:28 AM
Hows everyone doing?
 
Not bad.
 
write a trigger or write the logic in Java ? which is preffered ? db mysql -_-
 
@CrazyNinja MySQL is inconsistent, so either way you choose it will still be slow.
 
@Unihedron then java :)
 
the previous work I have -> we use java and mongodb
 
3:33 AM
I personally prefer PostgreSQL
 
3:44 AM
@Unihedron Pretty bad :(
I just hate mockito :x
 
But... Mockito rules ;)
 
O really?
Then pray help?
2
Q: Why isnt mockito injecting the right response?

NewbUserI'm trying to use mockito in the following manner. Here's a part of main class IClient. public LoginResponse doLogin() { WebTarget target = buildTarget(); MultivaluedMap<String, Object> authHeaders = prepareHeaders(); Builder buildRequest = buildRequest(authHeaders,t...

Ive spent 4 hours on this one :(
 
That's not even you.
 
Oh yea I used that account to post the question.
so yes its my other account. I happened to be signed in on that one
I hate the matchers.
suggestions anyone?
Hope I didnt kill the room
 
Notice: This room has been killed by KodeSeeker, no new messages may be posted.
 
3:55 AM
:'(
Ah well . B)
 
ohh boy.... when you got to know that no electricity and you have 20% battery in your laptop 0_O
 
@CrazyNinja Time to light an oil lamp and read a book.
 
That is some really worth for me right nw
 
 
1 hour later…
5:13 AM
lolz.. Nice work @KodeSeeker
 
@ItachiUchiha Well Mockito does shit to you. Dont blame me.
 
5:29 AM
@KodeSeeker How did the feeds popup?
 
@ItachiUchiha No idea mate
 
 
1 hour later…
6:57 AM
/javadoc assertEquals
 
@Unihedron Sorry, I never heard of that class. :(
 
/javadoc org.junit.Assert
 
@Unihedron org.junit.Assert: A set of assertion methods useful for writing tests. Only failed assertions are recorded. These methods can be used directly: Assert.assertEquals(...), however, they read better if they are referenced through static import: (1/2)
 
Morning
 
Morning
/javadoc IntStream#toArray
 
7:00 AM
@Unihedron int toArray(): Returns an array containing the elements of this stream. (1/2)
 
... of course the javadocs won't tell me if the resulting array is sequential, fml
 
Why does that matter? It's an array with all the properties an array has. If you want it sequential or not, you'll just have to do with it what you normally d with an array.
 
Hi room. I'm trying implement a SOAP client using Apache CXF deployed in Felix (OSGi). I'm getting, ClassNotFound org.apache.cxf.jaxws.spi.ProviderImpl though the bundle with that class is ACTIVE.
ANy help on how to approach this issue is much appreciated.
 
hi
How to search single quote in Oracle?For example in like search 'NEW''%'
 
fge
7:16 AM
Moo
 
@Mihir ... What?
 
How to search ' (single quote ) in like search ?
 
fge
@Gemtastic @Unihedron probably meant the order of elements
 
^
I'm willing to bet an intermediate operation made my stream unordered
or I just created it wrongly
 
@fge I know, but I assume it doesn't say because it isn't sequential
 
fge
7:18 AM
I wouldn't be so sure
 
@Unihedron I'm willing to bet that's what happened too
 
fge
@Worf I did; and the engine in the front to boost
Strange beast
 
I don't remember much of what I learned about streams, but I have a vague recollection that they can't promise to be synchronous and there for not sequential either
 
argh
 
@fge: Do you happen to know if AssertJ provides an annotation to run the test 3 times instead of just once?
 
7:19 AM
We'll see how it performs @fge
 
I have a test that checks for a random leap, I can wrap it in a for() block but I would use an annotation if that exists
 
fge
Test day for Le Mans is tomorrow, too
 
@Unihedron you can verify that it ran thrice
 
@KodeSeeker Yeah with interaction assertion in mockito, but I'm repeating a unit test, not a method
 
O I see
 
fge
7:21 AM
@Unihedron AssertJ provides no annotation, no
 
ok thanks
 
this I duno
 
fge
TestNG has that
 
oh?
 
@Unihedron In DB i have a value NEW'S when i am searching for that by binding [NEW'%, NEW'%] In DB consloe it is showing query is not proper
 
7:22 AM
JUnit also has that but I don't want to fall back to it :p
 
fge
But what you want is unclear
 
Junit is weird at times.
 
@Test(run = times(3))
public void testRandomIntervalsPerformsRecursiveProperty() {
  // test implementation that uses randomness
}
 
fge
@Unihedron it's a parameter for the @Test annotation
With TestNG: @Test(invocationCount = someInteger)
 
invocationCount \o/
I just saw the docs - I have no idea why I didn't look for the @Test annotation ._.
Thanks a lot!
 
fge
7:26 AM
@Worf what I wonder with that Nissan LMP1 car is why it hasn't been seen at Silverstone nor Spa; they are quite bold to go for Le Mans directly... Their recent history with 0 cars isn't very good
(well, the Delta Wing did get thrashed out because of an accident)
 
how was the delta wing going before the accident?
 
fge
Well enough... No pit stop due to mechanical failures AFAIR
 
Hey, I just realized.
IntStream (and LongStream) has the .iterator() method. Why don't they implement Iterable then?
... Never mind.
whoops
 
fge
grin
 
7:47 AM
:P
@fge You tried to teach us, but it seems it slipped Uni's mind ;P
 
fge
Uhm, I didn't really teach anything about java.util.stream
I'm still learnings its ins and outs
 
Well, this is on the exact topic you had a quiz on the other day
/javadoc IntStream#sorted
 
@Gemtastic IntStream sorted(): Returns a stream consisting of the elements of this stream in sorted order. (1/2)
 
hmm
 
btw, sorted in ascending order.
I'm kinda amused that the docs didn't say that.
 
8:04 AM
@MadaraUchiha o/
 
someone needs to kick the one in charge of the javadoc ;P
:D look! A wild anime god has appeared!
 
wild anime God!!!
I like the reference ;)
 
@ItachiUchiha \o
 
@Gemtastic Or, you can submit a PR fixing all the problems in JDs :p
 
haha
 
8:08 AM
@Unihedron You can do that? :O
whee!
 
@Gemtastic work on OpenJDK :P
 
I doubt I'm good enough
My strongest card is that I'm good at buddying up with my bosses. I hope that'll work in my favor in two ways; 1. I get to keep working there and 2. I get a raise the next time I get a new contract :P
 
@gem All the best with both the options
Specially the second one ;)
 
@Gemtastic Good luck :)
Get him to write you a good reference, it would look good in a resume :p
 
8:51 AM
Yup. Though I really like working there so I'd rather not leave the company if I have to. Only place that would be better to work at is my own home...
But I bet they will write great references; since I started working with the google sheets I've been delivering a lot, and fast. And they love google sheets
 
9:42 AM
can anybody confirm this?
123
Q: What do I get with 100k reputation?

Daniel A. WhiteWhat do I get once I hit 100,000 reputation? I'm getting close. I remember Telerik was handing out licenses at 10,000.

 
10:11 AM
Affirmative
SE also sent Jon Skeet a framed picture of unicorns.
 
Yes
when he reached 200K repo
 
fge
Heh, 100k
Still some time away for me
I'm not as active as I used to be
 
Yes @fge
Since you have landed with a job, you are less active @SO :P
misses fge... sob..sob..
 
10:31 AM
@fge With your not-fun lifestyle you don't need SO swag :D
 
fge
@Unihedron I have a different way than you to have fun, that's all :p
 
@fge Pretty sure your definition of fun excludes taking selfies with the Stack Overflow tee shirt, wearing badges and hats :P
codewars.com/kata/fibonacci-streaming @Vog I challenge you to solve this in the simplest way :p
 
fge
10:47 AM
Indeed it doesn't; and I don't see any interest in selfies anyway :p
 
where is the stream-characteristics?
 
@Vogel612 ?
@MadaraUchiha Are you around?
 
wow... stream characteristics are defined in Spliterator...
 
Can you help apply this minor tag excerpt edit?
in Tavern on the Meta on Meta Stack Exchange Chat, 4 mins ago, by PeterJ
Fair enough. Probably could do with an edit though to something like "Excel is a widely used spreadsheet program" to fix the grammar part without implying it's the most used.
@Vogel612 You can either define a Spliterator or use the static methods.
 
10:55 AM
ya... I was searching the Int-Flags for StreamSupport.intStream
 
IntStream.generate(1, x -> x + 1).map(this::fibonacciAtIndex)
or whatever
 
/javadoc StreamSupport#intStream(Supplier, int, boolean)
 
@Vogel612 IntStream intStream(Supplier supplier, int characteristics, boolean parallel): Creates a new sequential or parallel IntStream from a Supplier of Spliterator.OfInt. (1/4)
 
Spliterator.ORDERED | Spliterator.IMMUTABLE
 
yes... and that's the stream characteristics...
eh welll
 
10:57 AM
But if you use IntStream.generate(Supplier), it gives you a sequential IntStream, so there's that
 
that's probably easier..
 
I was generous with the test cases so there's no way you'll exceed the computation time limit of 30 ms
 
submitted
 
11:12 AM
@Unihedron I don't understand, what do you want me to do?
 
@MadaraUchiha fix the grammatical mistake in the tag wiki by adding "a"
"Excel is a widely used spreadsheet program" instead of what's currently leading paragraph 3
 
fge
@Vogel612 characteristics are attached to a Spliterator, not a Stream
 
Approve this (dunno how much rep is required)
 
5k
in Tavern on the Meta on Meta Stack Exchange Chat, 3 mins ago, by Braiam
finally done: http://stackoverflow.com/review/suggested-edits/8259765 and http://stackoverflow.com/review/suggested-edits/8259766
 
anyone knows how to connect mysql with spring? I've used h2 and I want to move on to a more serious database. I've added ddl-auto to my application.properties file, which now contains:

spring.datasource.url=jdbc:mysql://localhost:27017/somedb
spring.datasource.username=somedb
spring.datasource.password=somedb
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
This does not work. I suspect I need something like hibernate.properties, but I rather use annotation configuratino when possible to keep xmls to a minimum
I have the database running and the user has all permissions on the database.
 
11:16 AM
What does the exception-stack say?
 
There is no error, it simply won't create the tables and the requests are not passed to the server
or are not processed as the were before the change (using h2)
so there is no error afaik
I also have the jdbc-mysql connector driver on the build path
 
@ReutSharabani "This does not work" means nothing.
 
Well, I use a request to the server: 10.0.0.2:8080/users
it used to work before the change
and the tables are not created in mysql's database (i fugre it needs to create them on startup)
 
Define "work", please.
 
I'd like to have the tables created first, since I set auto-ddl to update and my understanding is it should create the missing (all) tables
 
11:19 AM
@Unihedron did... it's shown in my profile and I don't see it either.
 
blame caching, it showed up right after I said that
Nice :) But I like mine more :p
(btw, my solution is precisely why Java would benefit from value types)
 
hmm..
I like yours more, too
 
because you don't have that crappy if in the "getNext"
 
I figured out that trick while implementing the concurrent version of Async collectors in Fancy-Collectors :)
When you need a state for a lambda form, create a mutable value type and bind a method in lambda form.
@Vogel612 Well, mine is essentially 0, 1, 1, 2 which skips the zero.
 
11:22 AM
@ReutSharabani spring.jpa.hibernate.ddl-auto=update handles it
 
@ItachiUchiha handles what? I've restarted the application and the tables are not created. The requests that used to work against the in-memory pure-java db do not work anymore (I'm not sure it's related). I expect to see teh tables created when the application starts. I've now moved hibernate log to debug and I don't see it attempting to create anything.
I'm new to spring so I have little idea where to look
Should spring.jpa.hibernate.ddl-auto=update be defined in application.properties ?
 
@Vogel612 Additionally, I didn't have to add any imports, while yours does :D
 
@ReutSharabani have a look at this basic spring-hibernate project
 
I like bitbucket as well +1 :)
 
am new to java web frameworks, Is this the right training to being?
 
11:33 AM
@overexchange This is a terrible tutorial.
 
Why is it terrible?
 
> KARTHIK BALASUBRAMANYAM 2 weeks ago
Where can I find the code snippets written in the video?? Thank-you in advance.
lol wtf
 
@Unihedron well... one for the supplier
 
@overexchange It comes with all the traits you see in bad tutorials just within the first minute.
@ReutSharabani I like bitbucket too but I use it for too much private stuff, it's getting messy O_o
 
@Unihedron Do you know any training on J2EE?
 
11:35 AM
@Vogel612 btw I tried to use AtomicInteger instead of that object thingy
it was ugly so I ditched it
 
why atomic? because of multithreading?
 
because it's mutable
 
@Unihedron github doesn't offer much privacy and I find it less intuitive, these are the two main competitors afaik
 
you can place it as a final variable in the method - because it was final, you can reference it in a lambda form and use it for addition and actions like that
 
@overexchange because Spring and Tomcat.
 
11:37 AM
finally some error! I have a malformed tag in my pom.xml, so now I see some errors and this can help me solve the problems :)
 
@ReutSharabani "Github doesn't offer much privacy" - I disagree with this. I have a paid Github plan but not one for Bitbucket, because Bitbucket doesn't offer as good in security. It's free though.
@ReutSharabani Show the errors :p
 
too many for now, and I wanna try on my own first :)
 
I don't use Github for important private repositories mainly because it's hard to get contributors on a private Github repo when everyone else who doesn't pay are used to Bitbucket for private stuff.
 
btw @Unihedron how is JCE coming along?
 
@Vogel612 Nicely
 
11:38 AM
Am i not suppose to learn Spring?
 
good. then I'll be writing some more javadocs
 
on kind of a break though, need to get past a few blockers
so here I am composing katas :D
 
@overexchange well if you need it, it's sure nice.... but. Spring gives developer sclerosis
 
XD
^^^^
 
You become unable to use proper frameworks and sensible design techniques
 
11:40 AM
in Teenage Programmers Chatroom, Mar 21 at 16:19, by Unihedro
Using stuff like cpanel is bad for your mental health and can lead to development sclerosis.
^ It reminds me of this
/javadoc AtomicInteger#getAndIncrement
 
@Unihedron int getAndIncrement(): Atomically increments by one the current value.
 
/javadoc AtomicInteger#incrementAndGet
 
@Unihedron int incrementAndGet(): Atomically increments by one the current value.
 
Am I the only one who thinks those two javadoc blocks should add @see linking to each other?
 
don't they?
 
11:45 AM
no they don't
 
@Unihedron Do you know any other web framework apart from j2ee?
 
@overexchange No. I'm an incompetent programmer and know no frameworks at all.
 
lel
@overexchange j2ee != Spring
 
OK, so I moved to jpa 2.0 (using hibernate dependency) and that seemed to solve most of the problems in my project. But now I want to it create the tables for all entities if they do not exist. Is this possible? Is there a property I can set to do it? It seems like "spring.jpa.hibernate.ddl-auto=update" does nothing.
google's first answers offer that it is not possible and many results discuss eclipselink which I have no idea if I should be using.
spring.jpa.hibernate.ddl-auto=create-drop

solved it. Thanks @Unihedron , thanks @ItachiUchiha
 
12:10 PM
@ReutSharabani np :)
 
12:28 PM
~JavaBot at your service
 
12:40 PM
@ja
@javabot /help
@JavaBot hi
 
invocation is **
**help
 
@Vogel612 help command: Get additional info about a command of your choice, syntax:**help [commandName]
 
**help
 
@Andrew help command: Get additional info about a command of your choice, syntax:**help [commandName]
 
**help shutdown
 
12:46 PM
@Andrew This command requires owner privileges (or rather will do so). It shuts down the complete JavaBot instance in all chatRooms
 
**help javadoc
 
@Andrew There was no help given on command: javadoc
 
**help commands
 
@Andrew Could not find command with the name: commands
 
**help help
 
12:46 PM
@Andrew help command: Get additional info about a command of your choice, syntax:**help [commandName]
 
this bot is useless
 
lolz
@Vogel612 How do you fetch a list of commands?
 
1:09 PM
**listcommands
 
> Supported commands:
- timer: Schedule Timers for your personal use.
- test:
- about:
- unsummon:
- listCommands: show this command listing
- javadoc: search javadocs for a specific Type or Method
- tell: tell another user something or invoke a command
- shutdown: Shuts down the bot
- eval: GroovyScript evaluation
- load:
- help: Get help for a specific command
- summon:
- null:
 
1:25 PM
**unsummon
**test
**eval throw new Exception()
**summon
**test
 
1:51 PM
Morning, Java!
 
fge
Moorning
 
**test
hmm..
okay it's borked..
 
fge
*wonders about the amount of unit tests in JavaBot
 
too little
 
2:07 PM
Hey guys.
Need some help :(
 
What's up, @SkibRs?
 
Ah I'm having problems with Databases.
Sqlite JDBC.
Or Mysql same shit almost.
 
Brotha, tell me about it.
 
So I have this J combo box.
When user chooses a name, I want to look for that name in my Table and get The User's UI(It's simply another column)
The UI is in another column.
I want to check for the User Name and get the UI.
 
Uh-huh.
 
2:12 PM
Ah I couldn't explain well could I?
I have User names and UI in a table.
 
So, what's the problem?
 
If user enters UserName.
I want to match username and get UI automatically.
I have no freaking idea how to do it that's all xD
 
First, you need to connect to your database using the proper JDBC driver.
Then, you need to query the database using a SQL query.
 
I have done all that brother.
try {




Class.forName("org.sqlite.JDBC");

Connection connit = DriverManager.getConnection("jdbc:sqlite://C://Users//Asus//Dropbox//ProjectData.sqlite");







String query1= "insert into email (subject,message,ui) values(?,?,?)";
PreparedStatement pst=connit.prepareStatement(query1);
pst.setString(1, subject.getText());

pst.setString(2, message.getText());
pst.setString(3, (String) tonni.getSelectedItem());
JOptionPane.showMessageDialog(null, "Message Sent");
pst.executeUpdate();
pst.close();
I want to get UI there from another table matching with the User entered data.
Tonni.getSelectedItem gets me the User Name.
 
Then you need to write a SELECT statement.
 
2:16 PM
Like how exactly?
tonni.getSelectedItem is the name.
Sooo...
Select UI from EngData
But how to match?
I get this.
 
You need a WHERE clause at the end of your SELECT statement.
 
Select UI from Engdata Where ___
Then what?
tonni.getSelectedItem?
 
-_-
Don't they teach you the WHERE clause in class?
 
No xD
Honestly man, where I'mn from, the professor's barely know anything.
So you get a result like me ...
 
WHERE columnName = ?
 
2:22 PM
Ohh!!!
Thank you very much :D
I'll try it right away Mr. Michael.
You're a life saviour!
and I am a noob, I know ._.
 
@SkibRs Yes, yes you are.
 
Yis thank you ;-;
 
@Michael That's surprisingly rude.
 
Haha no xD
Just the truth o.o
 
I also just noticed @Vogel612's message misspelled "birthday" unless it's on purpose.
 
2:25 PM
Whoa.
 
DON'T
SPLIT OFF LONG MULTILINE MESSAGES
I kicked it
 
lol
Thanks Uni.
 
11 messages moved to bin
 
I just got into Android dev. Fun stuff :>
 
@Michael Even if a message is >500 characters, if it is multiline (contains \n), chat allows it.
So don't split it off, because then it won't fold.
 
2:27 PM
It does?
 
Also, watch the way you link it. Without crediting the original authors, you may be violating their license terms for reuse without sharing alike.
 
Mmmm, thanks for the tip.
 
OakBot Online.
 
/me adding to Issues list
 
fge
Grrr, I have to rewrite reference parsing :(
 
2:38 PM
@fge Sorry. :(
There should be a room called /dev/null
Where deleted messages can be moved it.
 
fge
@Michael I agree
 
@Michael You're just upset that among 5 rooms for trashing messages on this chat domain, you're RO of none.
 
No. I'm upset that there's no Linux-themed one.
This being a chat room for programmers and all.
But, now that you mention it, being a RO sounds tempting... plans chat-room domination
 
@Michael There's /anime/bin on chat.SE:anime and /dev/null on chat.SE:unix.
@Michael Don't worry, you'll never get there, having low charisma and all.
 
creating meme, please wait
 
2:48 PM
There's also null1&>2 I made on chat.SE or chat.meta.SE, but I forgot.
 
fge
</dev/null &>/dev/null foo &
Meh
 
memgenerator.net is sure ad-heavy.
Almost crashed my little netbook. xD
 
fge
@Michael nice site
 
@fge Eh, that's not quite the correct use of that meme.
Each meme image has its own theme.
 
@Michael fge doesn't need your lessons xP
 
fge
2:59 PM
I don't care :p
 
The one you chose takes the theme of: "One does not simply walk into Morodor".
 
fge has a different way to have fun than we do :D
 
(from Lord of the Rings)
 
@Michael you're trying too hard
 

« first day (1680 days earlier)      last day (3260 days later) »