« first day (1718 days earlier)      last day (3447 days later) » 

13:00
I didn't click the links tbh XD
Yes because that's all very well outlined in your answer to the first question :D
Guys question
I have a string like so
My answer is "on top" of your answer
"foo bar baz 'foo
bar
baz'"
then it's not a good answer, it should be self contained
13:01
I want an output like (in an array)
["foo", "bar", "baz", "foo
bar
baz"]
@Poteito Also; I'm quite busy grasping the concept of functions inside of functions. The concept is a bit wat to me but I hope it'll let me understand callbacks a bit more.
@MadaraUchiha The last element as "foo\nbar\nbaz"?
@Unihedron Correct
@wonderb0lt Yup, 'cuz it's got more upvotes than mine ;)
@MadaraUchiha why the newlines?
@Unihedron It is. I give the user enough information to solve his problem, but he has more information ready for him if he wants to investigate this further
13:02
@Gemtastic Because we're inputting CSS as command line arguments.
@MadaraUchiha: Just split the string on " "?
Ah, i jmissed the "output part and just saw an array with newlines XD
"foo bar baz 'foo
bar baz
boo'"
!!>"foo bar baz 'foo\n"bar\nbaz'".replace(/'([^']+)'| /g, function($0, $1) { return $1 || '\n'; })
@Unihedron "SyntaxError: missing ; before statement"
13:03
Hmm... I've been doing too much JS... can you [] on String i Java? XD
dammit
There's nothing wrong with good "further reading resources" from SO that go in-depth into a topic, is there?
!!>"foo bar baz 'foo\nbar\nbaz'".replace(/'([^']+)'| /g, function(_, capture) { return capture || '\n'; })
@Unihedron "foo\nbar\nbaz\nfoo\nbar\nbaz"
what?! no way
!!>"foo bar baz 'foo\nbar\nbaz'".replace(/'([^']*)'| /g, function(_, $1) { return $1 === undefined ? '\n' : $1; })
13:05
@Unihedron "foo\nbar\nbaz\nfoo\nbar\nbaz"
@wonderb0lt Answers like "your answer is in another castle" are off topic, but if you explain it as much as necessary and provide links for in-depth reading it's kinda ok, but try to avoid it. Especially if it's outside of the site.
An answer library is kinda useless if the answer is a link to a resource that's been altered or removed
@Unihedron "foo\nbar\nbaz\nfoo\nbar\nbaz"
@Gemtastic Yes, I see this, I felt okay because it was on-site
Good morninggg!
@Unihedron "foo\nbar\nbaz\nfoo\nbar\nbaz"
13:07
>:(
screw this
But I'll try to keep this in mind the next time. Won't remove my question now though since the OP discussed stuff further in the comments and also MUH UPVOTES
My regex-fu is not with me today, sorry madara >_>
wait! I'm not doing it properly
@wonderb0lt On-site are more ok.
But I didn't link mine because you still have to actually answer it.
!!>"foo bar baz 'foo\nbar\nbaz'".replace(/'([^']*)'| /g, function(_, $1) { return $1 || "\u1337"; }).split("\u1337")
@Unihedron ["foo","bar","baz","foo\nbar\nbaz"]
13:08
there we go
@Unihedron but that's in JS...
Run a regex with /'([^']*?)'| /, then iterate through matches for your target string; if group 1 is undefined, push it to result array; otherwise take group 1 and push it to result array.
@Gemtastic ^ pseudocode here
Java supports this tiny regex
Though, change * to *? for proper matching, which I failed to
Yeah, it supports regexes I didn't say that it didn't just that the method you used to put it in was JS :P
what is the difference between jms and mq?
A j,s and q
13:11
@anathema In an alternate dimension, life exists without light. Trees survive under eternal darkness.
so you mean there is an eternal darkness in java?
Conditionally.
i see
@anathema have you tried using a search engine for that?
I know it's a crazy question, but...
somehow i tried, as i saw that mq is more on the implementation of IBM somehow like that
13:16
@Unihedron in Java, lol
Not JavaScript
7 mins ago, by Unihedron
Run a regex with /'([^']*?)'| /, then iterate through matches for your target string; if group 1 is undefined, push it to result array; otherwise take group 1 and push it to result array.
@Dustiny on fire
Isn't JMS only an API? And (Rabbit/WebSphere)MQ are actual brokers?
@MadaraUchiha come on, that's not that hard to implement ^
@Tavo Thanks for noticing, I thought that one just sizzled out
13:17
It's not like you have a better algorithm ;D
@wonderb0lt WebSphere is the 7th circle of hell
@Unihedron I dunno, Scanner and whatnot
@Tavo Web's Fear
IBM makes lots of money by selling consultancy
@Dustiny You're a terrible person
13:18
@Dustiny sort of did. I just wanted to point it out :P
I will never forget
:D
You mean terribly awesome right?
So awesome, it's just terrible how awesome I am
@Tavo Well thanks. Enjoy this
d'oh
~smashing his head repeatedly against the wall
Maybe who knows ;)
CURSES AND CUSSES LOUDLY
the taglib I'm supposed to extend is based on java 5...
13:29
@Vogel612 D:
D:
Wasn't runescape on Java 5 back in the day
@Dustiny is that your dancing style? :P
that's why you are such a womaniser
The end is, where he just punches and flails aimlessly
hate Spring. Deeply
@Tavo haha because I dance like a child listening to crazy frog?
13:33
now it resolves an expression and not the other
sigh
@Dustiny must be a part of it
My life won't be complete if they don't replace Don Juan with my name
Don @Dustiny? Not so catchy I would say...
Yeah... probably won't happen
the story happens in my hometown though
as does Carmen
was Don Juan your grandpa?
13:37
mmmmm
That's cool though, culture. Neat. My hometown is just home to crackheads
the story was placed around the 1600s
@Dustiny More like was he and Djingis Khan your grandpas?
I thought it was spelled Genghis Khan ?
or is there multiple spellings
@Dustiny probably is
13:39
@Dustiny it is in English
@Gemtastic's is closer to the Mongol writing
That's what I was thinking, that it translated differently or something
@Vogel612 i feel your pain bruh...
in any case, Temujin
Temüjin
Apparently Djingish Khan is the way we spell his name in swedish XD
13:41
Curses himself for not able to create a custom control
He was a cool dude either way..
@ItachiUchiha You're still at it? :/
@Dustiny Of course you think so... He ought to be your idol..
I wouldn't go that far lol
He's been with more women than you could ever dream of
@Gemtastic afaik, he was not a bad ruler
13:44
@gem yup :(
The ultimate womanizer
he was a great conqueror and a slaughterer
@Tavo I never said anything implying he was or wasn't :P
probably raped more women than @Dustiny will ever see
@Tavo I never said they were with him willingly either...
But they still were with him.
13:45
by "him" you mean @Dustiny?
:D
@Tavo Nah, let's not go that far. Jabs and all that are fun and all... calling someone a rapist, even as a joke is too much...
Unless they've been dead for at least 100 years
shoves @Dustiny off his chair
Mornin, Java!
=P
Hi Nexion
hi @Nex
How's it going, Gem, Tavo?
13:47
@dustiny you got some support today :P
@Gemtastic a joke is a joke at the end of the day
not bad @Nexion. fighting with Spring, as usual. Yourself?
Just more refactoring of crap I already did, same old.
@Tavo Well, I'll have to pull a line somewhere when it comes to people in the chat. In sweden it's actually a crime...
@Gemtastic to use it as a joke? really?
@Nexion I do enjoy refactoring. It soothes me
@Nexion Going kinda well... Actually answered something on SO today.
@Tavo Yes, it's offensive and counts as badmouthing and harassment.
13:49
@ItachiUchiha okay... we're dropping jstl-1.1.2 from the repo and make it only contain our own code
nice
but we're not dropping jstl-1.1.2
@Gemtastic wow. When's the next spaceship to leave the planet?
which is understandable for reasons of possible compatibility problems
Not to mention, I wouldn't think it was fun to be called or implied that even as a joke... "treat others as you would have wanted to be treated yourself" and all of that.
@Tavo I dunno. Isn't the one-way tickets to mars all sold out already?
sigh can I PLEASE just have Eclipse work for a full day?
@Nexion sorry you must be doing something wrong...
13:51
@Gemtastic I would have signed if it hadn't been for my parents and gf
@Nexion I'm sorry that you have to use Eclipse
@Tavo I dunno... It's not stimulating enough there to be fun for me... If I'm gonna die somewhere I rather it has internet.
it has, only a very slow one :P
can't use Netflix there
@Tavo No, it's got nasa connection, that's not the same
it's like browsing the web Stallman's style
I have maven project with several modules

this is part of database-config.xml in office-core module:

<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:application.properties</value>
</list>
</property>
</bean>

I have application.properties files on several places:

c:\projects\office\app\office-core\application.properties
c:\projects\office\app\office-core\src\main\profiles\application.properties
13:54
You are aware that the people going there aren't expected to live their full lives, right?
@Gemtastic yes. Neither did Cristopher Columbus's crew when they sailed with him
@johnpolqkov Please don't post code here, especially unformatted one. Use pastebin or hastebin to post your code
@Vogel612 It's a brand new install of the newest version, I've run into this in previous versions to with plenty of memory. I try to modify a file, and Eclipse just locks up and dies.
@Tavo Yeah, I wouldn't have gone with him either.
@Gemtastic someone has to be first. It's not something everyone would do
but I believe the new ion drive will be able to make the return trip possible
13:57
@Tavo Yeah, and I'm just saying, not me.
still, I would go without a return ticket
I'm playing it dangerously enough already with my weight... A little more and I'll get in the risk of diabetes...
;P
@Gemtastic gravity in Mars is lower :D
@Tavo I would go if it had proper internet and at least theoretically the necessities to live my full life.
@Tavo That'd just be worse! Less gravity to keep me fit D:
but the scale will be gentler with you :P
14:00
There's nothing wrong with the weight itself; it's the muscle-fat ratio that sucks
@Tavo "on mars", unless you're going IN
@Unihedron thanks
@Gemtastic I know. But the scale sucks. I can barely stay at 80kg
I wish I was 80kg or 90 for that matter :D
@Tavo If you were 80kg mostly muscle that'd be a lovely weight.
Stop blaming the scales! It's not an indicator of your overweight! Your fat ass is ;P
I could shave off 10kg in pure fat, thad'd be nice
@Gemtastic Yeah you're right also I'd like my ass to be less fat
14:10
>.< Forgot to queue an email blast last night. Only 5 hours late....
Hope I don't get slammed for that.
@wonderb0lt simple solution for that ;)
Anyone able to help me figure out why my while loop isnt ending? pastebin.com/R2Zwcj5k
@Nexion when they ask you, just shake your head and say "me no comprende"
@Tavo cut it off with a butcher knife?
ok, a less simple one
14:14
I'm sure I'll be fine once I explain how awful yesterday was, lol.
@Tavo is it comprende when it's referring to you? I thought they had to end on o :O
@rshah When first = middle already, you get stuck in an infinite loop
@wonder
@wonderb0lt how so?
first,last,middle = 0,5,2 -> 1,5,3 -> 2,5,3 ad infinitum because you keep setting first to middle -1. 3 minus one is always 2
in the case of six elements in your array
oh
oops
my array wasn't sorted m(
Silly me :D
oh crap same! xD
14:21
same problem with sorted array though
@Gemtastic it's what people who don't speak Spanish would say. The correct expression would be "no comprendo" or "no entiendo"
@wonderb0lt yeah that's true, this is annoying
fiorano is down. Can't test my code. The end of the day is nigh
@Tavo Ok, so technically, my grammar was correct? :P
This doesn't make sense for a binary search anyway. For an array 1,2,3,4,5,6 searching for 2 your code immediately skips the correct index which is array[1]
14:24
@Gemtastic sort of. "me" is not the right pronoun there. If you want to use one, it should be "yo"
unless I misunderstand binary search
but in Spanish most pronouns are not needed
@wonderb0lt that's because [1] is the second item in the array
@Gemtastic which is "2"
First step 0,5,2 is fine, shouldn't it say 0,2,1 in the next step if array[2] > obj?
14:25
@Tavo But me also refers to oneself, doesn't it?
@Gemtastic "yo" == "I"; "me" == "me/my/mine" (kind of)
because it takes the "left half" of the array to search next?
So directly translated me no comprende is my no understanding?
@Gemtastic probably. Very difficult to do a direct translation there
Cus then you're kinda refering to something of yours, making it an it and then "comprende" would work...
Or?
I like reasoning grammar. With spannish it's kinda easy compared to well.. German >_>
14:28
Ew German
Spanish grammar rules are very well defined. The only thing that is really a nightmare is the subjunctive
Was? Ich liebe deuche zu sprechen!
no, not German again...
@Tavo Well... My spannish is a bit lacking...
Una palabra de Espanol! :D
14:35
wooooooooo
bravo!
El mundo es un panuelo~
hahaha
here, have this: ñ
it's ALT+164
I can't type it on a mac, sorry :(
I know alt code on windows
Also, my win keyboard has a key to put ~ on letters
@Gemtastic on any letter?
@Tavo No, only the ones that exist with a ~ over it, like n
14:39
shame. Would have been fun :D
Indeed :P
But I suppose we have to write them on paper if we want them
I'm sure it's possible with some Unicode magic
I doubt that
@wonderb0lt unlikely, since they don't exist in any language
they exist in spanish apparently?
14:41
unless some idiot like me thought about it before we just did :D
only for the ñ
no other letters
@wonderb0lt But they aren't a part of the spannish language...
they are not
If I don't remember it wrong, it's a phonetic letter and you can apply it to most if not all vocals
user1648409
How to properly update JPanels that hold 2 different images and tell them to update the images based upon new data?
14:45
Damn it
anyway
time to get my fat ass on a bike
Hnnnngh
JPA JoinTable
grosssssss
@Gemtastic yes you can! Hold down "n" - a context menu will appear with the accents
@wonderb0lt cya :)
ñń
@Nexion eh, what?
If you hold down a letter that has accents for a few seconds, a window will appear that lets you use the number keys to enter in said accented characters.
æ
14:47
On a phone, yes?
On OSX (you specified on a Mac)
bamboo doesn't want to work today...
At least on Mavericks
the whole platform is on strike today :/
no, holding down n will do this: nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
14:47
@Tavo I'm with you on that one
Had a meeting came back to 150 messages -_- jesus
@Dustiny not enough chicks there. I'll fear for my personal integrity :D
ooh you could type ~ and then n right after it :D
ñ
Huh, must be an option I enabled some how.
~n
Womp womp =(
Tengo trece años! :D
@Dustiny I missed you, baby.
=P
14:49
:D
@Gemtastic no you don't :P
Also, I have a scandinavian keyboard
Missed ya too QT
@Tavo No, but it's the number I could kinda remember :p
14:50
@Dustiny is now my bae
@Gemtastic Tries not to make an Ikea joke
@Nexion or your bitch :D
@Tavo I was trying to be polite, but, alas, here we are XD
I aint no ones bitch!
@Nexion southern Spaniard. What do you expect?
Also that rape joke was pretty funny
14:51
@Nexion go ahead
Got me good Tavo.
Is your name Inigo Montoya?
I killed your father?
I should prepare to die?
..... may or may not be my favorite movie of all time.
@Nexion mine is!
awesomest of the awesomest!
Unrelated: I have a mosquito bite right on the part of my arm that normally rests on the corner of my desk. Highly annoying.
Unrelated: I have a lot of JS to learn but not enough hours in the day.
14:56
Unrelated: I suck at programming.
Unrelated: I like turtles.

« first day (1718 days earlier)      last day (3447 days later) »