« first day (1605 days earlier)      last day (3341 days later) » 

1:00 PM
Better.. :)
 
Mark
Oh ice cream cake~
 
So I should go for Arrays , right .. And will the advanced for loop work if the Array is empty? does it iterate over nulls?
 
@Sword Yes
 
o_O
i thought it doesn't
 
Empty arrays will cause for (each of new Object[0]) to skip over.
 
1:01 PM
If there's anything I should add, please tell me.
 
But for (final Object each : new Object[] { new Object() } System.out.println(each); will give Object @ xxxxxxxx
And if it's null, null.
 
fge
@SecondRikudo Mockito 1.95? :p You mean 1.9.5, right? Note that the latest version available on maven is 1.10.19
 
> It's broken. Oh well, I'll fix it tomorrow. Tomorrow will be good.
Vincentyification authored on Nov 21, 2014
 
ohhh...
 
Four months later~
 
1:03 PM
thanks @Unihedro @Vogel612 :)
 
Politeness has become so rare, it is often mistaken as flirting. xD
3
 
@Unihedro that should be my new Fb status update now
 
user4202350
@Sword dont copy Be Original.
 
@Sword Chat user contributions are cc by sa.
Remember to link to my profile and mention my name, Unihedron -1 0.
:D
 
@ShaU Yeah being original and saying Java doesn't support strings..
 
1:07 PM
@Sword Java supports my family.
 
@SecondRikudo That it's too late to apologize. / It's too late. / I said it's too late to apologize. / It's too late. / Too late, oh uh
 
@Unihedro I don't recall apologizing to you, mortal.
 
hi, can someone help me with a problem.. i have described it in this question: stackoverflow.com/questions/29067241/custom-android-component
 
@user2700896 Add the code in the question itself, don't link to it.
 
user4202350
So you have color blindness?
 
fge
1:12 PM
Meh, it's so rewarding to find a job related to a project you maintain
<-- a happy Internet entity
 
Unihedro but by linking to it everyone can get the whole project and see the whole code.
If i had copy-pasted the code i am talking about, the question would be huge) but i can still do that..
 
@user2700896 Included in the same close reason, ask specific questions and include clear problem statements. Your question is exemplary in that aspect, but not including the code discourages people from answering.
 
@Unihedro pull OakBot from JavaScript please :P
 
@Michael OakBot really shouldn't bother the Javascripters ^
 
ok, I'll add the code to the question... givve me a minute
 
1:14 PM
@Unihedro haha
 
fge
@SecondRikudo thinking about it again, maybe the problem comes from the fact that the property is somewhat injected...
But my word you don't have it easy
Spring AND Maven, and untested code to boot?
 
@fge You mean the "SetProperty" mock?
I just checked again, it's the exact same mock object in the SUT and in the test.
 
fge
My condolences, you have an environment which certainly won't help you overcome your unfavorable prejudices :p
 
Morning
 
Morning
 
1:20 PM
Morning
 
Morning
 
user4202350
Evening
 
‮Morning
@fge It's not untested
These are all tests that pass
And fail correctly when I change the code
It's the mutation that's not getting killed for some reason I don't get.
Well, I've spent enough time on it for now. Let's wait for an answer and see how to proceed from there.
 
fge
Yep, that's your best course of action
 
fge
1:24 PM
Curiously enough I don't believe there's a pitest user group, but then I haven't really checked that out
 
@user2700896 Yepperz :)
I don't have time to go in depth since I have to be right back, but GL on your question
 
thx
 
@fge I'll submit a ticket and link to the question
 
can somebody else help me with the question? O:)
1
Q: Custom android component

user2700896I am trying to make a custom android component. For that reason I have make my class extend "View", but the class is already extending "BaseAdapter". The component should be something like this: http://www.brightec.co.uk/blog/android-listview-alphabet-scroller but it should appear in the Palette ...

 
I got a lot of greetings feels oddly happy
@Second did you pus your code anywhere?
 
1:28 PM
@fge I've opened pitest#181.
@Gemtastic Not yet, I have a few mins though, lemme
 
fge
@Gemtastic read the section 5 of the manual, please, read it fully, and re-read it again
 
@SecondRikudo Thank you ~
 
fge
Unfortunately I don't have the time to do a full demo, but since your db is fully described, examples are easy to derive from... Yes... Section 5
Otherwise I'd already have done stats :p
 
@fge Given what Second taught me yesterday, I might actually understand it this time. Also do note: I've never expressed any refusal in reading it, I've only expressed a dislike for how it's written.
 
fge
1:46 PM
@Gemtastic OK, but then have you read it fully even once? ;)
@SecondRikudo meh, create a branch on @Gemtastic's project ;)
You could do batch inserts, etc etc
OK, enough incentives, sorry, I have work to do
 
Work hard :)
 
fge
I am; but I'm not allowed to publish my work, meh :p
 
@fge I haven't had the time yet tbh. Because I've finally gotten to the coding part and I have a few kinks to work out with the GUI. Also, I had to get some sleep. I will get to it when I get to it. I have read some.
Sorry, I'm a slow reader when I'm digesting the knowledge
 
fge
Well then, practice; the ability to read and digest is VERY important for a developer
Read, read and read again
There's no secret to it, only practice will help you improve there; I don't really believe there are people more suited to that than others
 
@fge When did I say it wasn't?
I just haven't had the time to read it again and again.
Not to mention, @Second gave me a much better explanation in 30 min than readign the chapter did :P
 
fge
1:51 PM
Well, I just figured out that by this time you should already have been able to create the DSLContext and insert data ;)
 
@fge I did
 
fge
OK
 
I just had to fix my GUI to get it to display the query. I can make a test class, but the GUI needs testing too
 
fge
You don't need the GUI to display query result; Result<?> has a decent .toString() :p
 
The reason I wanna look at The code above is a structural matter rahter than code, because there are a few minor flaws in his code since he just thought it up on the spot and thus doesn't directly translate onto my project
@fge I know, but I need to fix the GUI. I feel confident in the db querying now thanks to Second
As it is now, I estimate the GUI to take up most of my time
 
fge
1:59 PM
Hmm, maybe you'll be interested in looking at the debugger to see how I initialize TableViews then (if that's what you use)
 
That sounds like a good idea. I'll have a look :)
 
Should we have a plug.dj room?
 
fge
@Gemtastic in particular, JavaFX makes it uncomfortably difficult to bind TableColumns
 
fge
So, I created a few utility methods for it which happen to work really well when what you want to display is a field's value
Well, I'll be free starting at 6pm so I guess we can do something (along with @SecondRikudo if he's interested)
 
2:02 PM
@user2700896 this is like... the fifth time you're asking. For one: this is the java room, not the android room. For two, you already have an answer, and thirdly if we could, we probably would've already done so.
so please stop spamming your question here, okay?
 
@fge What's 6pm in my local equivalent?
 
ok, sorry it's just that nobody answered and i thought that everyone is just ignoring it because of other things you are talking about...
sorry
 
fge
@Unihedro that would be 3 hours from now
 
user image
3
 
@fge 6pm what, UTC?
 
2:07 PM
GMT+1 from what I gather
 
fge
@SecondRikudo what @Vogel612 said
 
@fge I haven't tried it myself yet, so I'll happily take part of your efforts; you've done a really good job
 
@fge I won't be able to participate at 6pm then, if you can postpone to approximately 8pm, it would be best for me.
 
fge
Well, I can do that too
 
cheers
 
2:08 PM
@SecondRikudo that time works for me too
 
@fge What do you think of my abstraction layers? :P
Haven't heard your feedback
 
fge
@Sword excellent! Now, if this were gasoline in France that would be 80% :p
 
@fge Gasoline flavored ice cream?
 
fge
@SecondRikudo what do you mean? MVC? Data mapping?
As to gasoline, no, I was referring to the amount of taxes you pay for gas
 
@fge In this particular case, Main takes the place of the view
 
fge
2:10 PM
Sorry but I don't really know what you are referring to
Nevermind
 
Asking for a service which does logic with the domain objects and mappers
And mappers being an abstraction over the storage
(In this case, jOOQ)
 
fge
@SecondRikudo sure but then there is a problem to me
The fact that you say "data"
I don't care about the data
I only care about the outcome
 
(inb4 Jooq does everything for you! be gone with the mappers!)
 
fge
It happens that this is Java therefore you mean you interact with POJOs
 
@fge Only the data mappers care about data
 
fge
2:12 PM
That's all there is to me
Well then I don't see the use in them ;)
 
@fge You somehow need to map data to your domain objects...
 
fge
But anyway, that's not a debate for now
Sure, but then what are the "domain objects", eh?
That's a notion which I, again, don't care about
 
@fge The objects that do all of the logic for reals
 
Objects don't do logic
 
Implementations of interfaces do
 
2:14 PM
Your service only orchestrates the logic
 
fge
DOn't abstract too much, that's ALSO a recipe for disaster, is what I say
 
Where the heavy lifting is done is your domain object.
@fge Definitely. But I don't think there's an overabstraction in this case. At least not for a sufficiently sizable application.
And like I told @Gemtastic it's very possible that all she'd need is doable with the generated jooq sources. In which case, she can go ahead and use them.
I like more meat on my DOs.
 
fge
I like to think "the Nike way"
 
But if we skip the mapper layer, then the services are talking directly to to jooq and the db, no?
 
2:21 PM
@Gemtastic Yes, in which case jOOQ acts as your "mapper"
 
@SecondRikudo Great, then. As long as it doesn't breach the design it's good
 
Like I said, I just like putting (almost) every library I use behind my own facade.
Makes it easier to test.
And jOOQ can't serve as your mapper if you need to map to a different storage.
 
fge
Ohwell, enough theoretical talk for now
Let @Gemtastic code
:p
 
@Gemtastic go go code!
 
@SecondRikudo Jut gettin' my tea ready and I'm a go go
 
2:45 PM
Ello!
 
user4202350
You missed "H"
 
Eya @Appu! Long time!
 
Yeah, I intentionally missed to make some comic version of hello :P @ShaU
@Unihedro Yep, been busy with work. How have you been?
 
Been well ;P
 
I have started looking for job change recently so got one, but as my employer tried to hold me back with better pay I accepted for it. But I have got one assignment from good company today, can't stop thinking of that assignment which is quite challenging :D @Unihedro
 
2:52 PM
:D
 
Not able to decide whether to solve and spend my time or just leave it
 
fge
@ShaU didn't I tell you already to stop spewing nonsense?
 
user4202350
Ok Ok
 
@fge So did 11 other users, you're not an outlier :p
 
3:08 PM
@Unihedro What did you do that made him feel you are cute? :P
 
@Appu Eh? I don't have to do anything to make him feel that I'm cute. They're just weird because.
 
@Unihedro Well may be you don't know about it. But have you ever asked him this question? ;)
 
Nah. I have better concerns to be concerned about.
Such as candidates for JCE finalization :|
 
fge
Or... HTTP/2? :p
 
The parts of HTTP/2 implementation are starting to get out of my league, but I'm still trying :D
 
3:13 PM
@Unihedro Candidates? You are recruiting?
 
@Appu Build candidates. AKA which build to use
 
Oops! such a misunderstanding !
 
No worries, regular slang blends well with development slangs xD
 
Hey Does any one can see any infinite loop in this regex ?Pattern p = Pattern.compile("(?<=^|[^a-zA-Z\\d])" + word + "(?=$|[^a-zA-Z\\d])");
 
@Ajak6 Sorry?
 
3:17 PM
I am trying to match words that either follows or precedded by special characters
 
Or may be because of the thing that I am involved in recruitment process often these days due to which my mind is inclined to think in that angle only :P @Unihedro
 
I am really stuck at this , I am sorry to jum into some other discussion ,sorry!
 
Eh, I don't get what you're asking.
You know what a regex is, right? xD And how would it have infinite loops? xD
 
I am not an expert on regex, that why and I am also not able to recreate any scenarios on my local machine
 
So what are you asking for?
 
3:19 PM
but when my program runs on cloud for map reduce programming it failes due to memory issues
 
That's catastrophic backtracking, an entirely different thing.
 
so does my regex can have this problem, any case where it can go in backtracking
List<Integer> indexes = new ArrayList<Integer>();
String word = "(" + string.charAt(0) + ")" + string.substring(1);
Pattern p = Pattern.compile("(?<=^|[^a-zA-Z\\d])" + word + "(?=$|[^a-zA-Z\\d])");
Matcher m = p.matcher(builder.toString());
while (m.find()) {
indexes.add(m.start());
}
return indexes;
 
Firstly, if your word has any regex constructs you're totally screwed.
 
I am trying to find positions of word like $cloud@# or cloud but not cloudy
where cloud is my search string
the string to be searched are tweets
 
(?<=^|[^a-zA-Z\\d]) -> (?<![^\\W_])
And no, it won't run into catastrophic backtracking, however the regex is extremely inefficient.
(?=$|[^a-zA-Z\\d]) -> (?![^\\W_])
 
3:25 PM
ok inefficient in terms of
 
@Ajak6 45% of optimal
 
also a tweet would be a 140 character so can this cause any issue because I just guessing that this may be the issue
thanks I will try and change the regex to the one you suggested
 
kk
What kind of drugs does it take to enjoy this? xD
 
Wat
Where did my jooq generated classes go? :S
 
:O
Do you have backups?
 
user4202350
3:31 PM
Nice music Uni. Thumbs UP ^
 
fge
@Gemtastic mvn generate-sources
 
Something must have fudged up when I changed user
Because all that appears is a class called "public"
 
fge
Well, yes, you didn't run the DDL file for that new user yet, right?
As such it has no existing tables
Unless you already know, at the psql command line, you use \i to "source" a SQL file
 
How did I run the DDL file then?
generate sources is what only generates the public class
[INFO] Generating schemata : Total: 1
[INFO] No schema version is applied for schema public. Regenerating.
[INFO] Generating schema : Public.java
[INFO] ----------------------------------------------------------
[INFO] Sequences fetched : 0 (0 included, 0 excluded)
[INFO] Tables fetched : 0 (0 included, 0 excluded)
[INFO] UDTs fetched : 0 (0 included, 0 excluded)
[INFO] ARRAYs fetched : 0 (0 included, 0 excluded)
[INFO] Enums fetched : 0 (0 included, 0 excluded)
 
@fge Why should the user matter?
It's the database/schema that's under generation here, isn't it?
 
fge
3:37 PM
No, wait
The JooQ code generator WILL NOT create the schema for you
 
@fge No, no
It will create code based on existing schema
 
fge
Yes, exactly
 
But why is user taken into account here?
 
fge
THerefore the problem here must be that the tables haven't even been created for THAT PARTICULAR USER
 
fge
3:38 PM
@Gemtastic said she changed users
 
Should it just look at the schema I tell it to (while connecting with the user I tell it to) and generate the same code eventually?
@fge Yeah, so what???
 
fge
Well, no tables, no schema
 
@fge ... I'll ask again
 
fge
Sounds pretty obvious, no? ;)
 
Why is user taken into account here?
Why does it not just pull all tables in the schema?
 
fge
3:39 PM
@SecondRikudo and what if there are NO TABLES?
And here this seems to me that it is what is happening
 
@fge No tables at all in the schema? Sure. But there are tables in the schema.
 
fge
....
Again
 
Since she did manage to run the code generator at least once
 
fge
@Gemtastic said she has switched user
 
At least that's how I understood it
@fge Yes
 
fge
3:40 PM
Therefore the user/passwd combo in the configuration file has changed
 
Seems it doesn't connect to the right database because the public on the correct database has the schema
 
fge
Now, what if the DDL wasn't performed for that user?
 
@fge If it points to the correct schema there shouldn't be a problem.
 
fge
@Gemtastic did you run the DDL?
And did you create a separate db?
 
3:41 PM
Tables are user agnostic...
 
@fge If by ddl you mean generate-sources then yes
 
fge
No
No, generate-sources doesn't do that
 
Okay, let's settle this once and for all
What is a DDL file?
 
DDL = Data Definition Language
 
@fge Then how do I run the DDL?
 
fge
3:42 PM
The file containing all the SQL statements to create the necessary database objects
@Gemtastic at the command line, under the correct user/passwd, \i path/to/file
 
@fge So running that file creates the schema with all of the table.
 
But the schema is in the database
 
fge
No, not the schema
It creates the TABLE
 
You are talking about the SQL that creates the schema
 
Okay, it assumes the schema already exists
 
fge
3:43 PM
A DDL file requires that you are the correct user, in the correct environments
Sure does
 
Aha, okay
But then, assuming I'm using the correct database with the correct schema
 
fge
As a regular user you wouldn't be able to create your own schema/database anyway (or you are doing things VERY wrong)
 
@Second my guess is that we managed to add the new user to a group, but never get the group to have access to the db
 
And assuming my new user has privileges
Why do I need to run the DDL again?
 
fge
Well, here, the credentials have changed
 
3:44 PM
@Gemtastic I'm pretty sure we added permissions to the database.
 
fge
This is what I understoof
Hey, now look
 
@fge So? Why do I need to create the tables again?
 
fge
As the db admin:
create user foo with password 'foo';
 
@SecondRikudo Well, it is indeed on the database...
 
fge
create database foodb owner foo;
Done!
 
3:45 PM
@fge That's not a solution!
Tomorrow I have a running application with real data
I want to add a user to postgres.
Are you telling me that I need to replicate all of my data to the new user?
 
fge
No, of course not
But here we start from scratch
 
But the user has access to the existing database/schema
 
Application (the group role) is listed as a role O.o
 
Why should we create a new database, even if it's easy in this particular case?
 
fge
Guess why
Administration purposes of course
 
3:46 PM
The database exists, it's under the postgres user, it's called postgres and it has the chema on the default public
 
@fge I don't want my application to access the database via the admin account
I don't want my user to have all privileges on the database
 
fge
You REALLY didn't understand a thing
But nevermind
 
Perhaps.
 
How do we get the other user to access that database?
I will just use the postgres one on this project. I'll experiment with that stuff later
 
@fge Ignore the fact that I have a DDL file for now
I have a database that's owned by user Alice. I want to create user Bob.
User Bob should be able to access the database through an application.
That doesn't sound like to much to ask,,,
 
3:54 PM
I can admit to that it could be an easy fix to just create a new database with a new schema, but it's not a good solution for the reasons Second is saying.
 
fge
@SecondRikudo it sure isn't, but then the problem is then with you, not the db engine
You weren't able to tell it properly that Bob should have the same privileges as Alice
 
Why is there even a problem? :D
I'm not interested in Bob having the same privileges as Alice
 
fge
Read what I just said
Of course you are
 
Alice is my administrator. Bob is my "consumer".
 
fge
And you create USER TABLES as an ADMIN?
I'll never employ you as a DBA
 
3:57 PM
I don't want an SQL injection my idiot intern added to allow for deleting of tables, adding of secret users, etc.
 
fge
Yes, which is why you want to create a SEPARATE DATABASE AND USER WHICH OWNS THAT DATABASE
FUll stop
 
HAMMERTIME!
 
fge
There is not even a discussion
Just Do It(tm)
 
DBA vs. DEV, ROUND 1.
START
oh no wait it's already over :(
 
@fge How do you handle a case where there's already data?
 
3:58 PM
@SecondRikudo you properly change the user?
 
You're implying that multiple users can't/shouldn't access the same database
 
or you do it right in the first place (tm)
@SecondRikudo that's what you say
 
fge
1. fire the dba, 2. hire a new one, 3. have that new dba do the appropriate SQL statements
 
remember: a postgres user is just a group with a single member
@SecondRikudo kind of...
 

« first day (1605 days earlier)      last day (3341 days later) »