« first day (1624 days earlier)      last day (3335 days later) » 
00:00 - 13:0013:00 - 22:00

12:18 AM
Aaahhh... TSUKARETA!
I turned it in now at least.
Now it's up to those guys what will happen.
 
 
4 hours later…
4:17 AM
@Gemtastic gZ!!!
 
Trying to understand Hashmaps, are they basically an array of KeyValuePairs?
 
@ScottKaye Nope
 
I primarily use Javascript, and I don't think we have anything like this there - unless it's just an arbitrary object with keys and values
 
4:53 AM
Hellow, good aft
 
hi
 
hi@Unihedro :D
 
@ItachiUchiha lol
 
anyone here has IOS dev account?
 
4:56 AM
no way

iOS sucks.

2 days ago, 20 minutes total – 50 messages, 3 users, 0 stars

Bookmarked 11 hours ago by Unihedro

 
Oh I know already what to do, I better use PhoneGap that would save me money :D
 
:p
 
:D
I hate IOS dev cause I need to spend 99dol
 
=javadoc String#indexOf
 
Which one do you mean? (type the number)
1. java.lang.String#indexOf(int)
2. java.lang.String#indexOf(int, int)
3. java.lang.String#indexOf(String)
4. java.lang.String#indexOf(String, int)
 
5:00 AM
3
 
@Unihedro int indexOf(String str): Returns the index within this string of the first occurrence of the specified substring. (1/4)
 
I always misuse this method in my code for some weird reason.
 
hahha I love that method, I win in programming by using that
 
where is the param?
 
5:02 AM
It's in the future.
 
ahaha
 
I haven't typed it in yet because the first time I did it, I did it wrongly.
Eh, never mind.
 
Eh, it's String[].
Here's their test case:
2015 Moderator Election in three days!
 
I will install now IDE to try it...:D
 
5:45 AM
public static void icecream(String[] a,String[] b){
String reg = "23456789TJQKA";
int s1 = 0;
int s2 = 0;
for(int x = 0 ; x<a.length ; x++){
if(reg.indexOf(a[x]) > reg.indexOf(b[x])){
s1++;
}else if(reg.indexOf(b[x]) > reg.indexOf(a[x])){
s2++;
}
}
if(s1>s2){
System.out.println("Steve wins "+s1+" to "+s2);
}else if(s2>s1){
System.out.println("John wins "+s1+" to "+s2);
}else{
System.out.println("Tie");
}
} // Im not sure if I understood it correctly ..
 
6:03 AM
Hi guys
how do you read in input from a file which has 3 fields each separated by the tab character?
 
@cp101020304 Scanner?
 
@unihedro scanner or string tokenizer?
 
@cp101020304 Scanner.
 
I was thinking of using str tokenizer and passing "[tab char]" as the delimiter
 
You can set the pattern to "\t".
=javadoc Scanner#setPattern
 
6:10 AM
@Unihedro Sorry, I can't find that method. :(
 
=javadoc Scanner
 
@Unihedro java.util.Scanner: A simple text scanner which can parse primitive types and strings using regular expressions. (1/29)
 
=javadoc File
 
@deadlydragon00 java.io.File: An abstract representation of file and directory pathnames. (1/11)
 
=javadoc Scanner#useDelimiter
 
6:11 AM
Which one do you mean? (type the number)
1. java.util.Scanner#useDelimiter(Pattern)
2. java.util.Scanner#useDelimiter(String)
 
I like Oak :D
 
2
 
@Unihedro Scanner useDelimiter(String pattern): Sets this scanner's delimiting pattern to a pattern constructed from the specified String. (1/3)
 
^ @cp101020304
 
@unihedro ta :D
 
6:12 AM
(?:\\t|$)
 
wot does that mean
 
@Unihedro Are you competing?
 
52
Q: Reference - What does this regex mean?

HamZaWhat is this? This is a collection of common Q&A. This is also a Community Wiki, so everyone is invited to participate in maintaining it. Why is this? regex is suffering from give me ze code type of questions and poor answers with no explanation. This reference is meant to provide links to qua...

@ItachiUchiha I wish, but no, I don't have 10k rep. :p
 
@Unihedro ahh :(
 
I'm going to sign up anyway.
 
6:16 AM
@Unihedro codefights.com
 
Way to go! Wohooo...
 
@deadlydragon00 That site is laggy. :P
 
Not in mine, how come?
 
I don't know.
I joined anyway.
 
@Unihedro Your word is magnificent, it lagss actually right now
Damn Code Fight - very laggy ... :X
 
6:31 AM
Heh, I get a badge for finding the bug on the last second. xD
Should had chosen C++, not Java.
 
Nice..
 
This game is too easy though. xD
How could he take over three seconds to figure it out? :p
 
7:17 AM
Oh, it's weekends already.
 
hello
anybody there?
 
Hello.
 
@Unihedro how is java.concurrent package different from TPL in c#?
 
@JavaEnthusiast It just is.
 
can you provide me more insight on this stackoverflow.com/questions/29442743/…
 
fge
Moo
 
Hi @fge
I saw this and its somewhat not true imdb.com/title/tt2234155
 
7:53 AM
Not really a fan of movies :p
 
8:06 AM
Morning
 
Morning!
 
fge
8:49 AM
Hmm, so, Einstein made two errors
 
Einstein made far more errors than two.
 
good afternoon
 
morning
 
9:06 AM
Morn'!
 
9:19 AM
Morn~
 
fge
9:35 AM
Étienne Klein is one of my new heroes
 
10:00 AM
hey @fge I ran into a little problem with JooQ code-generation...
 
fge
@Vogel612 this is not my strong part, but go ahead
 
Currently I have my database set up, running on localhost.
I have added the codegen-maven plugin to my pom, and configured it (possibly incorrectly)
whenever I run the build-goal that executes the JooQ codegen, I just get one single class generated
which is the schema Public.
 
fge
Are you sure your credentials are correct?
The JDBC URL is, yes; but the user/pass?
 
shouldn't it complain about that?
 
fge
If you use the same that you mentioned in the pom, can that user see the tables too?
No, there's no reason why it should
 
10:08 AM
the user is owner of the tables...
 
fge
Wrong schema or something, maybe?
 
possibly.. then on the other hand switching the config to postres user gets me stuff...
 
fge
It then depends on your RDBMS engine and the way you set up the user
Hmm, then it may be that you don't use the correct database
How did you set up the user and what database was it on when it created the tables?
And what is the JDBC URL?
 
The user didn't create the tables. I created the tables via pgadmin...
~facedesk
okay, I needed to change the owner of the tables again :(
~shame on me
 
11:13 AM
Hi All, Good Evning.
Can anyone please help me I am facing this issue while running a simple hibernate app
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
 
Hey everyone, hope all is well. Wanted to ask a quick question. How does one fire an ActionEvent from a JComboBox without selecting an item? (Just clicking the combo-box)
 
ASR
@lakshmi problem in loading hibernate.cfg.xml
 
Hey ASR
 
@Juxhin swing?
 
So what I can do now ?
 
11:15 AM
Yes Uni
 
ya kant
 
Alright, just checking. Cheers
 
try mocking
but no guarrantees
 
ASR
@lakshmi have a look at
 
Cool, thanks
 
ASR
11:17 AM
@lakshmi I thought problem in cfg file, you might miss something
 
@Juxhin not on the user side... sure you can from code. but that's not a good idea IMO
 
I am looking in that ASR
one minute
please
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration SYSTEM "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN">
<hibernate-configuration>
	<session-factory>
		<!-- Database connection settings -->
		<property name='connection.driver_class'>com.mysql.jdbc.Driver</property>
		<property name='connection.url'>jdbc:mysql://localhost:3306/user_data</property>
		<property name='connection.username'>2208</property>
 
Yea I do think it's a bad idea. Was addressing a user's desire to follow such behaviour which I did saw was a bit awkward.
But wanted to be sure prior to telling him it's not possible.
 
its mine hibernate config file ASR
can you please check once
 
ASR
@lakshmi show me error clearly
 
11:23 AM
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
at com.shubhu.AddUser.main(AddUser.java:13)
 
ASR
@lakshmi you are telugu right?
 
Yes ASR
 
> Prime Streaming

Create an endless stream of prime numbers - a bit like IntStream.of(2,3,5,7,11,13,17), but infinite. The stream must be able to produce a million primes in a few seconds.
... This is seriously crazy.
 
I finished that one.
 
What?!
 
11:26 AM
A million primes in 4 seconds actually
 
I'm going to rate it 3-kyu.
 
ASR
@lakshmi which version of hibernate you are using?, meeru download cheskunna hibernate.rar file lo dtd mention chesuntaru, meru just use that dtd in cfg file,
 
meh.
that's too high.
 
You do realize it's only been completed 6 times in total. xD
 
ASR
 
11:28 AM
@Unihedro well I finished it when it was in beta..
 
It's still in beta
 
and there used to be a 3 mil. primes test
 
I know, I saw your comment
 
Yeah I am using Same ASR
 
ASR
@lakshmi are you sure?
 
11:33 AM
Yes
 
I have to use the IntStream.iterate(2, (next prime function)) method, right?
 
ASR
@lakshmi tell me version of hibernate you are using
 
@lakshmi the error says the the Doctype line is missing a '>'. Most probably it is not able to parse the line because of some hidden char
 
Its my root directory please look into this
Could I keep in proper place or not configuration file
 
@Unihedro you could. I didn't
 
11:41 AM
... I have no idea how this is possible. I failed four times. xD
 
I am getting this exception
 
ya... um did you read the stacktrace??
Caused by: [...] "hibernate-configuration" must end with '>'
 
fge
@Unihedro use a memoizer and the fact that there cannot be a factor to a potential prime number such that the square of this factor is greater than the potential prime
 
please read the stacktrace and at least try to understand it before asking for help here
fge is fully correct.
 
oh
 
11:46 AM
I used an additional optimization, too, but I am not sure whether you need it
 
Isn't that... functional programming?
I shivered just to know I'd have to use it
 
meh. it's a stream.
 
fge
No, that's just an algorithm :p
 
K
 
keep in mind your stream mustn't behave differently if you create a new instance
 
fge
11:47 AM
That memoizer can be a List, for instance
Well, what you do here is really program a Spliterator, not a Stream directly
And you use StreamUtils
 
OH
WELP
I'm an idiot and haven't thought of that :D
 
@Vogel612 : Thanks. Let me check that.
 
@Unihedro well that would be the easier solution, yea
 
ASR
@lakshmi <!DOCTYPE hibernate-configuration SYSTEM "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"> check it properly, it is clearly saying
 
OTOH your approach is also nice
 
11:49 AM
!!urban otoh
 
fge
Let me guess again
 
@Unihedro OTOH On The Other Hand
 
fge
Code golf
 
@CapricaSix Thanks!
 
also WTF "compile and load a java-class"
 
11:49 AM
@fge no, learning
 
this kata is overkill
@fge codewars actually
 
fge
...
 
@Vogel612 I skip all the challenges that I know how to do off the top of my head.
 
meh.
 
fge
11:50 AM
You had better work on HTTP/2 instead
 
I should use these to work on my TDD methodology
 
true
 
fge
Or, uh, you know, some mail
 
Or uh, you know, some libraries
 
@lakshmi <!DOCTYPE hibernate-configuration SYSTEM "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"> check it properly, it is clearly saying
 
11:51 AM
@Unihedro you really need to get better at structured procrastination
 
ASR
@lakshmi DTD
 
@Vogel612 I should stop it altogether :D
 
guys...
WTF are you even talking about @ASR , @lakshmi ??
 
@ASR : Whats wrong in that ?
 
11:52 AM
@Vogel612 XML
 
@lakshmi nothing's wrong in that
 
stay out of it, it's insanity
 
but you need to respect it, because it's how XML works
and you didn't
and that's why your config can't get parsed
now sit on your backside and get that damn pointy bracket onto line 2!
 
ASR
@Vogel612 d.pr/i/1gcWt
 
~facepalm
 
11:54 AM
@Vogel612 : Can you please brief some more?
 
NO
because there is nothing more to brief
and you better stop poking me now, or you'll hear stuff you didn't come here for
 
Vogel612.class.getDeclaredField("temper").setInt(~Modifier.FINAL);
Today I learned: How to make all "false" become "true":
 
meh... close, but not yet
 
never mind
Forgot how to do it :D
 
or it with true?
 
11:58 AM
Field false_ = Boolean.class.getField("FALSE");
false_.setAccessible(true);

Field modifiers_ = Field.class.getDeclaredField("modifiers");
modifiers_.setAccessible(true);
modifiers_.setInt(false_, false_.getModifiers() & ~Modifier.FINAL);

false_.set(null, true);
And that is why you need a SecurityManager.
System.out.format("Everything is %s", false); // Everything is true
Reflecting reflection with reflection. xD
43
A: Using reflection to change static final File.separatorChar for unit testing?

polygenelubricantsFrom the documentation for Field.set: If the underlying field is final, the method throws an IllegalAccessException unless setAccessible(true) has succeeded for this field and this field is non-static. So at first it seems that you are out of luck, since File.separatorChar is static. Surpri...

That's kinda like #define FALSE 1, actually. xD
 
@Vogel612 never seen u so charged up :-P
 
@Unihedro well it's the java way of doing it
 
OMG
I WANT OPERATOR OVERLOADING
... wait, it won't even compile to begin with
sigh
 
12:27 PM
@Unihedro do you want to comment on the PR that's been open for a week now?
or should I just go ahead and merge it?
 
I don't know, I haven't been able to implement your suggestions without breaking things.
So if you could be oh so very kind and do it for me instead, it would be oh so very much appreciated. :p
 
Hi everyone
 
Hi
 
@Unihedro wait you talking about #33 now?
 
yep
Wait, is there another one?
... Omg.
 
12:30 PM
ya there is another one...
ahem..
but ya I could do that... I'd need to get it running..
 
and I need some time to figure out how I want my latest project to work anyways..
 
12:47 PM
~JavaBot at your service
hmm... so the Stackoverflow side of it works..
 
Hip hip hooray!
Try chat.SE.
... I hope your way of maintaining configuration doesn't break it.
Can we use Eval for this?
 
?? maintaining configuration??
 
!!eval bot.login
 
@Unihedro "ReferenceError: bot is not defined"
 
What's the trigger?
 
12:50 PM
also: already tried. It gets to somewhere where the login page is returned.
but then the openId login returns false and it doesn't log in..
**
 
**eval "hello world"
 
:22490622 [tag:groovy]: compilation failed with error startup failed:
UserScript: 1: unexpected token: & @ line 1, column 1.
&quot;hello world&quot;
^

1 error
 
.. Did we ever scrap html?
 
we scrap the messages
**eval "hello world"
 
too bad so sad
**eval bot.login
 
12:51 PM
and if the messages come from the server HTML-encoded....
@Unihedro :22490635 : undefined execution error: No such property: bot for class: UserScript
urk
need to fix this
 
**eval javabot.login
 
@Unihedro :22490641 : undefined execution error: No such property: javabot for class: UserScript
eval shouldn't reply itself
also yes, the javabot isn't set
 
ya. until the interface separation came and there was no single javabot anymore.
    // scriptBinding.setVariable("javaBot", null);
    //FIXME: we could use JavaBot for this
 
... so... what do we do now?
 
12:54 PM
that is the most interesting question yet today ;)
honestly: I have no idea
 
"I should use less unnecessarily devastating adjectives." http://chat.meta.stackexchange.com/transcript/message/3253626#3253626
 
Hello @Uni
 
hi
 
and hello everyone
How are you doing Uni?
I have decided to focus two hours daily in the room as well as work with @fge
 
hiya
 
12:58 PM
Because real life has a lot of work and that will never end :D
Hey @Vogel
 
@Mr.777 Good idea!
 
Hi All :D
 
fge has been pretty focused on his job lately though. He actually got the job he loved, btw.
Heya @deadlydragon00
 
@Unihedro Wow that's amazing
 
hi @Unihedro :D
 
12:59 PM
So, may be if you or anyone else is working on some opensource stuff?
 
00:00 - 13:0013:00 - 22:00

« first day (1624 days earlier)      last day (3335 days later) »