« first day (1716 days earlier)      last day (3238 days later) » 

10:00 AM
Nice.
 
did 16km bushwalk in 3 hours and a bit ... feeling not enough walk for the day ... but it's turning dark so it wouldn't be safe to walk more
 
Ven
grats
 
my body's probably telling me 'I have saved so much fat for the walk today & you are doing so little, now lemme save all the reserve for your use next time!'
this is what you get for used to walk 50km a weekend
 
user1804599
Hmm, how to compile list literals.
 
user1804599
10:11 AM
I could compile them to code that invokes List.ofArray.
 
user1804599
Or I could serialize them and emit code that deserializes.
 
10:48 AM
@ScottW Hi.
@Borgleader That sounds annoying, though. With such a long commute it essentially becomes a place to sleep.
 
@R.MartinhoFernandes Which boost version is nonius tested against?
 
1.57, I think.
Found an issue?
 
@R.MartinhoFernandes Yeah, something about ambiguity w/ 1.58
Will get a test and post a full output
 
user1804599
11:03 AM
Ugh, you can't do Optional.of(null).
 
@nabijaczleweli 'Will get a test and post a full output' - I'm not sure you belong on SO as your behaviour is so unusual;)
 
user1804599
stupid special cases
 
@R.MartinhoFernandes Here
 
tytypos...
 
11:17 AM
just realised that you can not spell typo without type ty first ...
 
11:34 AM
Today's project insanity: why bother fixing memory leaks when you can just restart workers every day
 
memory leak is like water pipe leak, it depends on how large is the leak & how much you care about the leak
 
Now that gay marriage has been legalized, I want to ~~~~~~express~~~~~~~ myself ;~;
 
Now that gay marriage has been legalized, I'm out of coffee filters
2
 
@nabijaczleweli Thanks. I'll check it soon (though don't expect that to happen before I find a home)
 
11:43 AM
@R.MartinhoFernandes what happened to the girl from Berlin?
 
Which one
 
> I have too much C++ in my blood to answer anything but const void *
How is const void* C++?
 
@edition She went too Ipanema
 
user1804599
@fredoverflow lol
 
user1804599
> Use of '_' as a lambda parameter name is not allowed.
 
user1804599
11:44 AM
wtf
 
I still have the lowest reputation score here!
 
@edition I need a home, not a girl.
 
Home is where your computer is
 
My computer is in a basement.
 
rent a room in berlin can't be that hard ...
 
11:54 AM
@rightfold Reserved for future use.
 
user1804599
:p
 
@R.MartinhoFernandes couchsurfing.com/places/Europe/Germany/Berlin someone recommended the site to me, I have never tried it
 
@R.MartinhoFernandes A basement? You are not worried by unwanted installation of water cooling?
 
I have looked at the site, but it required money and I didn't need its service so I never actually used it.
 
@chmod711telkitty is it useful for NZ'ers?
 
11:58 AM
Not sure, someone I met used it and said it's pretty good
 
12:10 PM
its sad that I'll neither see nor hear the people of this chat room.
 
?
I remember I used to play this multi-player game and spent years with those players online. But when I went on to visit NY, London or Amsterdam, no one accepted my offer to meet them in real life.
I hope this doesn't happen here.
 
Not meeting people in real life has good reasons of course, but my previous statement was just a thought.
 
I wanted to meet people in real life, although this feeling was reciprocated.
 
user1804599
@fredoverflow I have an Object[] that contains only instances of String. Is it possible to get a String[] out of it?
 
user1804599
Downcast fails for obvious reasons.
 
user1804599
12:25 PM
Problem is that I only know at runtime that it's String.
 
user1804599
This works:
 
user1804599
Object[] varargsValues = Stream.of(arguments).skip(methodArguments.length - 1).toArray();
Object varargs = Array.newInstance(method.getParameterTypes()[method.getParameterCount() - 1].getComponentType(), varargsValues.length);
for (int i = 0; i < varargsValues.length; ++i) {
    Array.set(varargs, i, varargsValues[i]);
}
 
user1804599
bleh
 
user1804599
terrible
 
So many array stuff.
 
12:30 PM
@rightfold is that java?
sorry, its 12:30AM.
 
user1804599
(module hello-world
  (fn greet (name)
    (println (cat "Hello, " name "!")))

  (fn main ()
    (greet "world")))
 
user1804599
it works :D
 
14 hours ago, by rightfold
I love Java.
 
@rightfold java reflection introspection (IIRC) is the worst kind
 
12:39 PM
I think Java was one of the languages to pioneer that, though, so that's a bit of an excuse
 
user1804599
Also, MethodUtils.getMatchingAccessibleMethod doesn't consider varargs so I have to fix that too.
 
I'm in a grumpy mood :(
 
134
Q: How to convert object array to string array in Java

FrankI use the following code to convert an Object array to a String array : Object Object_Array[]=new Object[100]; // ... get values in the Object_Array String String_Array[]=new String[Object_Array.length]; for (int i=0;i<String_Array.length;i++) String_Array[i]=Object_Array[i].toString(); But ...

 
user1804599
Oh, shiny.
 
Note the Java 8 answer.
 
user1804599
12:43 PM
@fredoverflow First answer doesn't work with int[].
 
user1804599
Java 8 answer doesn't take Class<?>.
 
user1804599
 
user1804599
This editor is great.
 
Hmm. Have not eaten since Friday night
 
@R.MartinhoFernandes Hunger strike???
 
12:45 PM
hello guys...bit off topic, but still...
can anyone tell me how can I extract to restricted folder in fedora, archive manager says permission denied, thru UI and thru terminal both
 
user1804599
no
 
That's what happens when you go on a sleep binge.
 
Xeo
@R.MartinhoFernandes go grab a bite then
 
user1804599
 
I was awake for three hours on Saturday
 
12:46 PM
@rightfold int[] is not an object array, and the question is about object arrays, is it not?
 
user1804599
Yes.
 
well then
greece's gonna go bust (yet again)
 
Getting good at it
 
@rightfold wow
 
1:01 PM
@rightfold So how does the code look like now?
 
user1804599
System.arraycopy(arguments, 0, methodArguments, 0, methodArguments.length - 1);
 
@rightfold Why the -1?
 
user1804599
Because the last argument to the method is filled in later.
 
@rightfold explain
 
user1804599
The last element of methodArguments is assigned elsewhere.
 
user1804599
1:12 PM
(println (inspect (map java/lang/String#toUpperCase (quote ("hello" "world"))))) :p
 
user1804599
Fun fact: the JVM allows overloading on return type.
 
@rightfold interesting
 
@Xeo but then he'll need to poop, and then he'll have to empty is bucket :\
 
omg!! using C-Reduce to reduce Rust files instead of C files https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
/cc @LucDanton
 
1:26 PM
@thecoshman I can safely say that I almost always go the fuck home as soon as it is time.
 
@Puppy same here. And if I do have to stay late, I balance it out over the next few days. I have my hours, I work them.
 
Reg the builder is taking all my money:( I've not picked up one decent hand...
 
try using the ones on your wrists
 
Job done, off to the pub http://t.co/AsoXQ0XgbZ
7
That is so WIN
 
Ell
That is great
 
1:35 PM
Why fix things when you can pretend they're not broken
2 hours ago, by Cat Plus Plus
Today's project insanity: why bother fixing memory leaks when you can just restart workers every day
 
@Borgleader bad company 2 only
 
What going on at NASA? (live feed nasa.gov/multimedia/nasatv/index.html)
 
launch on a sunday, sweet!
 
@sehe lol, so dirty :P
 
1:43 PM
I like it
 
user1804599
yay
 
user1804599
if works
 
@CatPlusPlus I love how the eyes keep looking at you right up to the end
 
@sehe Looks like a rocket launch.
 
1:45 PM
@sehe did you see that bird?
 
user1804599
Should (=) fail or result in true or false?
 
Ven
fail.
 
@chmod711telkitty nope
 
2:05 PM
@sehe looks like video that compresses really well
 
Good morning!
 
@StackedCrooked it does
 
I take it that Kitty changed the room topic?
 
she does not have room owner rights
 
thank god
 
2:07 PM
Err, I mean Cat.
 
@StackedCrooked You're welcome
 
hmm
I gotta say vs2015 is a lot faster at loading the LLVM solution
 
VS supports LLVM projects now?
oh wait
 
@Puppy next suspect would be you :) But, same reprieve
 
you mean you have a vs solution for the llvm project
 
2:12 PM
I guess
Why anyone would open that in VS is beyond me, though
 
user1804599
wooo annotations
 
waaa onnatotians
 
T-9:00
 
@chmod711telkitty Looks like Puppy.
 
2:13 PM
@sehe To build it?
 
nasa seems like a nice place to work
 
it says 'spacex'!
 
yep
was that normal?
nope I think
 
it exploded ...
what have I been watching?
 
2:27 PM
Something went wrong with the launch. @SpaceX is evaluating the status of the mission. Live updates on NASA TV: http://www.nasa.gov/nasatv
Uh-oh.
 
It exploded before launch? I thought the hard part was the landing :S
 
it exploded a while after the launch
 
No, it exploded 45k off ground
 
Speaking of which, I wonder what's happening with Philae?
that thing is worse than an alaska brown bear - is always asleep/hibernating
 
@Puppy right
@chmod711telkitty don't badmouth my niece
 
user1804599
2:34 PM
I need a better name for the identity function.
 
user1804599
identity is too long and id is too obtrusive.
 
noop
 
what about 'name'? it's very indicative, half as long as 'identity' and twice as long as 'id'
 
@Nooble Might as well call it Falcon Nein now
 
also need to be up in 5 hours, going to the land where dreams are born (or nightmares)
hopefully dreams, but I have to be asleep first
99
 
2:41 PM
@Borgleader Hehe.
 
The @SpaceX rocket just literally made the @HoloLens into vaporware
 
@Griwes yeah i saw that and didnt get it
 
There was a hololens on it?
 
SideKick w/@HoloLens is flying on @SpaceX #Dragon at 10:21am ET today to aid @Space_Station crews. @Skype @Microsoft https://amp.twimg.com/v/b7720bb2-fb8f-41c5-84f9-586ae0c2ab00
 
2:42 PM
Yes
 
The anomaly was Skype update
 
:D
 
@R.MartinhoFernandes Well for me its a place to work on stuff, I have a 50 min train ride during which I can take out my laptop and do stuff
 
when I do $inclide it says statement cannot be placed between sub/function
when I try to put $include at the top rather than bottom
 
2:52 PM
@Borg I mean your house is just a place to sleep
 
I didn't get the flat I went to see yesterday :(
 
@snipe that's not surprising. I know of no language that silently accepts new made-up keywords
 
train rides are ok
 
@R.MartinhoFernandes Damn :(
 
2:53 PM
I hate bus rides.
 
But you have 5 more queued up right?
 
I guess that means I can run out of battery
 
user1804599
@sehe Perl without strict subs.
 
use struct sibs; doesn't work though
 
Hey folks! Good (sunday) evening all!
Thoughts about this train wreck anybody?
-2
Q: what is wrong with this c++ code in uri online judge

farah fahhoumplease help me to find the wrong in this code this is the problem https://www.urionlinejudge.com.br/judge/en/problems/view/1042 and this is the code #include <iostream> using namespace std; int A,B,C; int main () { cin >> A >> B >> C; if (A > B && A > C) cout <<C<<"\n"<<B<<"\n"<<A<<"\n\n"; el...

 
3:04 PM
Do you check for empty() before pop()? Do you hold the lock across empty() and pop()? (And: please don't "please help" on SO. It's disrespectful. It's blindingly obvious we're here to help). — sehe 9 secs ago
 
dang
I had 99,990 rep, and then I had to downvote all that stuff
 
@πάνταῥεῖ I tried fixing the formatting, but just stared blankly at else if {
 
@sehe "It's blindingly obvious we're here to help" Sure? I'm not acting at SO to help everyone. Though what's actually helpful for the site might be arguable.
 
You missed the point.
 
@nabijaczleweli Can't see any edits fixing ....
 
3:08 PM
I have ordered ramen
I hope the pork is not ultra fat or anything
 
@πάνταῥεῖ You sure?
 
Xeo
@AlexM. I wish I could order anything Japanese in my location ;_;
 
I wonder what they'll deliver it in
 
Xeo
With these 5/6eur coupons going around for the last two weeks
 
soups normally get delivered in this
 
3:11 PM
Giff me one more downvote, i will remove my answer with a peer pressure badge. :D :D — rakeb.void 3 mins ago
 
Xeo
yeah
that
 
@Xeo no jap restaurants?
 
@AlexM. looks good
 
3:11 PM
@nabijaczleweli Yes.
 
Xeo
@AlexM. Nope ;__;
No asian restaurants at all
 
wut
we have all kind of asian rests here
 
Xeo
only... pizza, pizza and more pizza. And Subway
 
I have sushi related stuff section in my local supermarket
 
chinese, jap, thai
 
3:13 PM
@CatPlusPlus Related is the point which makes me drawing back from consumpion. Same stuff at the local supermarket here as well.
 
nasi goreng
 
@StackedCrooked It's merely known as "stuff"
 
Xeo
@CatPlusPlus blergh, sushi stuff from supermarkets is just blergh
 
good stuff
 
Xeo
Unless you mean the raw ingredients
 
3:14 PM
Yes
 
@StackedCrooked Depends!
A lot!
 
saha it isnt made up..
ex is a subroutine in another file
$include looks for the file
 
saha pls
 
saha
 
are you talking about saha grey?
 
3:19 PM
sehe
 
sehe grey?
 
user1804599
@fredoverflow this may be fun: youtube.com/watch?v=262lTMIpYQE
 
He's a bit more white than grey.
 
saha
 
user1804599
ra
 
3:21 PM
@rightfold I don't like his English, but I'll watch anyway.
 
user1804599
I do lol
 
saha!!
 
oh shut the fuck up
plonk
 
a, b, plonk!
 
I wonder why std::advance wasn't built so that it returns an iterator equal to input + distance
inb4 performance
 
3:33 PM
std::next
Also because C++ is bad language designed by bad designers
 
@CatPlusPlus you'd think that one just does an increment :<
ty based cat
 
Ugh things to do for work
Also shitstorm tomorrow
cant wait
 
fuck
who took a reading operation and made it take ownership of the data it's reading?
 
@Puppy Some form of idiot?
 
LLVM devs.
if you want to JIT some LLVM IR, this destroys the LLVM IR.
 
Xeo
3:43 PM
lol?
 
yeah.
 
Xeo
do they perform any inplace transformations?
 
My phone just died (stuck in a boot loop) how do I wake up tomorrow help
 
should really be an implementation detail if so
 
@buttifulbuttefly take the battery out and put it back in?
thats what i do
 
3:45 PM
@buttifulbuttefly laptop or PC
 
> phone
 
3 years ago I forgot my phone at home
I made my laptop wake up from sleep at 7AM and ring
 
Can vindovs do that
 
yes
there are apps that do this
I used something with a big GUI and an alarm sound that consisted of bird chirps
that's all I remember
 
ah yeah
you also can no longer link two modules together without destroying one of them
 
3:46 PM
Make a wave file with hours of silence and then some loud noises.
 
alrit i'll try
thanks
 
@Puppy so basically we shouldnt sync to latest of llvm until they fix their shit?
 
well, this is not some tip of trunk stuff, but LLVM 3.6, their stable release.
so clearly I will simply need to ... do something.
 
oh jeez
 
@MartinJames that was paint thinner
 
3:54 PM
you know what's really funny?
all those internal codegen apis... no problems at all.
public-facing apis... totally broken.
oh hey
llvm::cloneModule
apparently, it's too much to have a copy constructor..
 
Xeo
explicitness or something mumble mumble
 
meh
the copy constructor is not something that usually justifies explicitness
ah we have utils to clone individual pieces of a module but they seem to be Somewhat Awkward™
 
Haha these adds:
> Local Mom Makes $8,000 A Month? Unemployed Mom Melissa Maks %260 Every Day...
youre not unemployed when you have a fucking salary
 
what is the atom thing?
 
@JohanLarsson the text editor?
 
4:09 PM
maybe, I have no idea what it is
Is it good?
 
I see no reason to use Atom when you can use Sublime Text instead
 
@JohanLarsson It's a poor clone of Sublime Text. Ugh
 
It's a poor clone of Emacs
 
have you upgraded R# lately katt?
It has killed my VS
feells like they forgot to break out of a while(true)
 
back when I was in high school solving problems for contests and shit I thought using the standard stuff only resulted in slow crap so I was constantly reimplementing everything from lists to priority queues on arrays (e.g. a deque was just a raw array with two ints specifying the start and end)
I went back to the site now and so far I haven't been able to find a problem for which my solutions are too slow
 
4:21 PM
Because programming contests and esp online judges are dumb
@JohanLarsson I have 9.1.1, seems to be up to date
 
ok I have the same
 
been spawning random shit like all kinds of std collections, lambdas, anything iterator related
no TLEs
 
maybe it is some combo of plugins
 
Atom seems pretty shitty
when you look at the feature page it's all "er mah gerd implemented in jabbascript" and I'm like "Don't give a shit about implementation language..."
 
"er mah gerd! implemented in a really slow language that shouldn't exist outside the browser!"
 
4:28 PM
shouldn't exist inside the browser
but speed is really not the issue... it's called a JIT
 
should have been replaced by now
web intermediate language would be nice
 
I had a terrible time when I did web development. The whole web community is under this delusion that "javascript is awesomesauce" and should be used everywhere. Node etc.
 
I disagree
I think a lot of them are waking up to the fact that JavaScript is shit.
but they're not really making a lot happen about replacing it
 
That's good then.
I remember trying to learn a lot of web technologies too and every single web presentation was just 50 slides of memes and gifs. Made me real salty.
6
I guess those were jsconf videos
 
@Puppy Do you manually add basic type operators to the symbol table?
 
4:32 PM
didn't learn as much as I thought I would
 
@Borgleader Why would they go in the symbol table? They are not a user-defined symbol.
 
so theyre a special case then?
 
well, kinda
you have to add the primitives somewhere
but certainly not in the symbol table.
currently I have the analyzer's "view" of the symbol table and I add the primitive types there, but their operators are usually defined as members of the types themselves
 
user1804599
4:54 PM
@fredoverflow if you have a method void f(Object... xs); how can you pass an Object[] to it having it unpack the array?
 
user1804599
f(new Object[] { ... }) passes this array as a single argument.
 
@rightfold that's too advanced :P
 
user1804599
It's stupid.
 
user1804599
Call syntax should've been f(...xs) instead of f(xs).
 

« first day (1716 days earlier)      last day (3238 days later) »