« first day (807 days earlier)      last day (4145 days later) » 

12:01 AM
Though you gave me an idea.
Are you saying this is pure combinatorics?
That means you can probably do this by hand
 
it's not pure combinatorics
i'm sure the final solution uses them, but i can't figure out a smart way to use them
 
well for P(5) and P(16) is right so far
lmao
 
P(1000)?
 
trying that now
 
user142019
Man. I suck at geomtry.
 
12:06 AM
Hm.
Something off.
 
but I'm close at least I have a faint idea of what is going on
I can probably do it by hand
 
2n choose n is normally how problem 15 was done
but that's assuming all points are OK
 
mhm
ironically 2n choose n was the first thing I tried and it worked with P(5)
 
when points are in the way i don't know how you'd use the combination logic
well for P(5) there aren't any points in the way
for P(16) i think there's like two points
 
12:07 AM
because path finding is for babies :P
 
both of which are along the edges
are you doing something different?
 
// do you think this is elegant or convoluted?
if (!request.getURI().find("/solicit")) { ... }
I mean using !std::string::find(..)
 
Ell
Neither
 
I'm trying something different
 
what are you trying?
 
Ell
12:09 AM
it looks just fine to me :L
 
@Rapptz projecteuler.net/problem=15, do i have to use BFS in this one?
 
nCr(2n,n)
so nCr(40,20) is the answer for 15
 
I have lost my nCr snippet and don't feel like typing it again :(
 
you confirm P(1000)?
 
12:16 AM
Not yet I'm writing code
 
Ell
Hi guise
 
Hi Ell
 
Hi five! (see what I did there?)
 
@StackedCrooked I would probably put the result of getURI() into a const ref:

const std::string &uri = request.getURI();
if (!uri.find("/solicit")) { ... }
 
12:25 AM
Stop starring unfunny crap
 
@anthony-arnold Aha, that would reduce duplication in case of multiple if/else cases.
 
Ell
Unfunny is of course subjective
 
fuck this shit
I'm going to bed
fuck you Clang like a whore.
 
error: 'std::set<long long unsigned int>::iterator' has no member named 'end' ?
what
 
@Ell just what i wanted to say
 
12:28 AM
I'm pretty sure it.end() is valid?
I'm confused
 
Ell
No idea
 
@Rapptz No, but std::set<long long unsigned int> does.
 
@Rapptz The set has an end, but not the iterator
.end() will give you an iterator
 
I'm doing a normal loop
like I always do
 
show us the line
it'll be obvious
 
12:32 AM
Iterators don't have begin/end
 
Hm.
 
Ell
Oh yeah. Duhh
is there a range proposal proposal?
 
I think I saw a proposal proposal proposal
 
Ell
Oops
isn't it weird when you just forget stuff you did like a second ago
 
just you ell
 
12:35 AM
hello
need a quick suggestion..
 
What's with the starring of greetings?
 
I don't know
 
What, starring of greetings?
 
You can't see it now, I already cleaned up.
Those who did it know what I am talking about.
 
Ell
Hey robot
how goes it?
 
user142019
12:39 AM
Hmm.
 
I have been learning Objective C and tried few sample programs and wrote calculator app. I know this chat group is about C, C++ etc but i am sure you engineers have the idea.
My goal is to design an iphone-app(on a idea i have) which does something similar to match making of couple(of-course it's now about dating but it requires understanding input and then giving output.)

Could you guys give me any application which i should make, something which is not tough but still gives me an idea about iphone app development, something not worth selling but still not bad enough.
 
user142019
> Could not deduce (a1 ~ a)
 
Ell
No response, just like my ex.
....oh no..
 
user142019
What do they mean by a1 ~?
 
408 proved to be more annoying than I had hoped.
 
12:41 AM
Type equality
Post the code
 
Is anyone thinking about my question? If yes, i would definitely wait, otherwise won't. Your suggestion will be considered for sure.
 
Write whatever you want
 
@Ell Fine, thanks. Just got back from Portugal today.
Also, I realized I was invited for a New Year's Eve party tomorrow, but I was not told when nor where.
 
I'm guessing at midnight
Unless the goal is to be completely drunk by midnight, then 18
 
@CatPlusPlus.. i don't know what kind of app should i try. I don't want to try on something and then stop in the middle
 
12:45 AM
Why?
Nobody finishes projects here
 
@CatPlusPlus lol, I don't need six hours for that. :/
 
Drink slower
Eat something
 
user142019
@CatPlusPlus thanks.
 
user142019
I forgot to add (Ord a) =>.
 
Since no one is replying to my question, i guess no one is interested to help. Thanks anyways and yes happy new year :)
 
cpx
12:50 AM
My Dear Watson!
 
user142019
Hurray.
 
user142019
I wrote a library to render SVG graphs from a function. :D
 
@Zoidberg'-- Sounds snazzy. Time?
 
user142019
render (Chart ((+ 20) . (* 20) . sin) 0.1 (0.0, 100.0)) (100, 100)
 
user142019
@ThePhD Huh? Time?
 
12:53 AM
Like, is it super slow,
or super duper fast?
I.E., can it be used en-real-time?
 
Nobody cares about speed
 
user142019
I haven't tested it with anything sophisticated.
 
user142019
Only with sinus and linear functions.
 
user142019
I'm working on scaling now.
 
Speed is important sometimes, @CatPlusPlus!
 
user142019
12:54 AM
And next will be axes.
 
Gotta have dat real time. The more real time, the more sexaay.
 
Have fun first, optimise later
I never get to the optimisation step and I'm very happy
 
user142019
Let's see what happens if I decrease the resolution of the sinus graph to 5.0. :P
 
user142019
And we get a very blocky graph. xD
 
user457812
I leave optimization to post-profiling. That way I only change things that need changing.
 
Ell
12:56 AM
I am currently at the rewrite step because its too slow. Also I don't know how to move on from this anyway
 
user457812
Most of the time, that means nothing needs optimization.
 
@Rapptz How goes it
 
Ell
I haven't even profiled but I'm rewriting anhyway
 
If you profiled you'd know what to optimise
Otherwise you'll end up with slow rewrite
 
Ell
Yeah I need to learn to profile
well I'm rewriting with a different algorithm
 
12:58 AM
Tfff, anyone knows what F.lux uses to adjust colours
 
user142019
render (Chart ((+ 250) . (* 250) . sin . (* 0.1)) 0.1 (0.0, 500.0)) (500, 500) gives me a gorgeous sinusoid.
 
user142019
 
user142019
Terrible code.
 
cpx
Shall we close this as duplicate?
1
Q: Passing a multideminsional array to a function

JustTiredI understand ptrString == &ptrString[0], and *(ptrString + 0) == ptrString[0], but I'm having an awful time grasping what becomes of a real array when passed to a function as a pointer. Specifically when an array decays into a pointer. I'm using pointers in everything now, even if it's not op...

 
user142019
I should make points a public function too.
 
1:06 AM
points points' points'' points'''
 
@AgainstASicilian eh not that well
 
Also this doesn't need to be in IO
 
user142019
I know.
 
user142019
That's why I mentioned in the commit message that it's a mess and I'll clean it up asap.
 
1:22 AM
@CatPlusPlus I see your point.
 
Ell
Hmm are shops open tomorrow?
 
user142019
Depends on where you are and what shops you're talking about.
 
Ell
Specifically somewhere where one might buy a g string
 
user142019
ಠ_ಠ
 
1:31 AM
31st is not a holiday
I think
 
ooooh found some patterns
not sure how to use them just yet
 
user142019
I also found some patterns.
 
user142019
[] and (x:xs)
 
1:44 AM
@CatPlusPlus It is in Berlin.
Or half of it. Or something.
 
@Ell as a new year's gift to your mother i think the g string will fail :-(
 
user142019
Tomorrow is the last day you can buy fireworks in The Netherlands.
 
Ell
Haha no its for a girl I'm hooking up with :L
@zoid ever?:O
 
user142019
No this year you fool.
 
I think I did something cool.
 
Ell
1:47 AM
Heh
 
This is running on my PC: while true ; do { wget -q -O - stacked-crooked.com:8080/solicit && wget -q -O - stacked-crooked.com:8080/result --post-data=date +%s` && echo 'OK' ; } || echo "Failed" ; done`
 
@Ell Give her an empty box and say it was supposed to be a G-string but she won't be needing it.
 
And now you click here.
 
Also, for the sake of everyone involved, don't take relationship advice from me.
 
It's great advice
 
1:48 AM
I'm pretty sure someone just blew up a chicken. Nothing else could explain that sound.
4
 
Dammit it's broken.
 
@CatPlusPlus Which one? The one to not take advice from me?
 
user142019
@StackedCrooked try and see if it still works if you use Torshammer on it. :P
 
What sound does blowing up chicken make?
 
Ell
He he that's a good idea
 
user142019
1:49 AM
Also use non-blocking I/O.
 
user142019
@CatPlusPlus The sound of an explosion.
 
It's working again now :)
 
Ell
It would only be casual sex anyway so no point spending money
oops, she's not a prostitute let me clarify
 
It probably deadlocks on simultaneous request.
 
@Ell What
 
user142019
1:50 AM
@StackedCrooked lock hell -> bugs
 
@Zoidberg'-- You don't say :)
 
user142019
Try actor model.
 
Why are you writing your own HTTP server anyway
 
I'm experimenting with offloading Coliru compilation to my local PC instead of VPS.
However, my PC has no global IP.
 
0
Q: Catch reboot in Windows

PachaI have some kind of malware/auto-updater that reboots my computer every time at 00:14 (12:14pm), without exception. I already checked the event viewer but no help. I was wondering if there is a way of making a service/console-application or something in C#/C++ to catch and stop automatic reboots...

 
1:52 AM
So I set up a tunneling system. It's basically a long-running HTTP request which is (ab)used for server push.
 
"I have malware, so instead of removing it, I want to work around it."
 
user142019
Y U HTTP FOR THAT
 
user142019
:P
 
HTTP is good.
 
user142019
Use Erlang. xD
 
1:53 AM
@StackedCrooked Hmm, make a VPN with your local PC and the VPS?
 
My PC is behind the ISP's NAT remember. And I don't want to set up port forwarding.
@R.MartinhoFernandes That's an option that I hadn't considered yet.
 
user142019
Hamachi! XD
 
Ell
Why not port forward?
 
Setting up OpenVPN is ~1 hour
You don't want this to be public anyway
 
OpenVPN is horrible
 
1:55 AM
It works vOv
 
user142019
Setting up Hamachi is ~1 minute
 
Is there any alternative?
(No, Hamachi is worse)
 
user142019
It works vOv
 
what are you trying to do?
 
user142019
Never had any problems with Hamachi, really.
 
1:55 AM
@Rapptz Give access to his local PC from his VPS.
 
Since we're talking about VPN solutions then maybe set up VPN
I don't know
maybe
 
I honestly see no need to use a third server for this.
 
What third server?
 
Hamachi's.
 
Now you guys tell me this. I asked before an nobody said anything.
 
1:56 AM
Oh
 
Wait, that was probably because it was 6 AM.
Another possibility I found was reverse SSH.
 
user142019
Use Erlang with a supervisor and load balancer that will automatically pick a build slave that's free.
 
user142019
It's easy.
 
@StackedCrooked SSH tunnels are pretty easy to setup.
 
@R.MartinhoFernandes I did succeed in making a reverse connection, but it was rather fragile.
 
1:58 AM
Hm, n2n
 
Can anyone help me with a list sort?
sorry, vector sort
 
I remember hearing about that one time forever ago
 
sorting by first element, then by second
 
@AgainstASicilian use std::sort
 
<1,3> <1,6> <6,8> <6,10> <6,14> <8,1> etc
 
user142019
1:58 AM
Use std::sort with custom comparator.
 
user142019
It ain't rocket science.
 
i don't know how to use this "custom comparator"
 
read up on it
 
Why are you injecting the points into a vector?
That seems wasteful
 
?
my method requires it
 
1:59 AM
I don't see why, anyway use a lambda
 
what do you mean
 
isn't againstasicilian the only one on the lounge's troll list?
 

« first day (807 days earlier)      last day (4145 days later) »