« first day (805 days earlier)      last day (4142 days later) » 

12:00 AM
LOL
 
lol
 
nice! that looks fun
 
Does the C++ room have a chat bot?
 
Just Feeds
 
Hmm, you people need a bot!
 
user142019
12:03 AM
Boten Anna.
 
cc/listcommands
 
@CCInc Available commands: help, listen, eval, live, die, refresh, forget, ban, unban, regex, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, beautify, convert, get, google, hang, hangs, image, learn, nudge, regexexplain, s, ss, spec, stat, todo, undo, wiki
 
whoa what
 
@Rapptz I presume you haven't seen a chatbot before?
 
12:05 AM
Not that, I just don't see how it came here
 
Magic.
 
User controlled bot?
 
I suppose you could call it that
 
We don't need any bots thanks
 
@Rapptz Rapptz Do you have a friend key?
 
12:12 AM
for Euler?
 
cc/google faggot
 
@Rapptz Yes
 
this shit doesn't work
 
I actually don't know the point of that, what is it?
 
cc/help
 
12:12 AM
@Rapptz the point of the bot?
 
@Rapptz Chat about progress and problems, compare success.
 
fak u chatbot
 
I turned it off
 
@CaptainGiraffe Oh I see.
 
you suck
 
12:13 AM
Cause you people did not embrace the bot
 
I don't really post on the forums, I think I'm like the least talkative Euler solver there.
but uh
 
@Rapptz I never post in the forums either
 
They were cool early on, like the first 25 problems the forums seemed cool but the posts there are over 8 years old.
But after those they weren't too interesting.
 
user142019
Can I use both C# and F# in one VS project?
 
I'm in about 50 problems with three or four I'm curious about.
 
12:15 AM
@CaptainGiraffe Which ones?
 
@Rapptz The coloring of triangles I thought I had solved, but must have made mistakes. And the numbers are huge
 
There are a lot of colouring triangle problems.
Do you mean 18 and its brother?
67 was it?
 
@Zoidberg'-- I don't think so, I think they have to be in different solutions
 
@Rapptz The Circles within the circles I have the trigonometry to, just havent coded it yet, might be a tricky eror estimate there.
 
user142019
Different projects works.
 
user142019
12:17 AM
In the same solution.
 
@CaptainGiraffe You mean 404?
 
@Rapptz No that was the maximum sum if I recall
 
@Zoidberg'-- yup
 
I spent 3 days on 404.
lol
Might help if you tell me which problems though.
 
user142019
F# is wonderful.
 
12:19 AM
As is C#
 
@Rapptz Checking...
 
user142019
And Haskell.
 
@Rapptz 189 is one that I have been unsuccesful at
 
Answer fits in 2^64 -1
but yeah pretty big
Oh this one..
 
@Rapptz Thanks for the hint
 
12:23 AM
there really isn't a pretty way to do this one imo.
 
cc> Math.pow(2, 64) - 1
 
@CCInc 18446744073709552000
 
What's the problem you're getting? Optimising?
 
@Rapptz I was trying to trail the path of every color from top to bottom. discarding duplicates of each color in the recursion
 
if you're using recursion, consider memoization?
 
12:26 AM
@Rapptz I was heavy on memoization
 
Ah.. Dang.
 
In the end I succumbed to the fact that I had made a mistake
 
user142019
Hurray I got ASP.NET to work with F#. :3
 
Well, what do you want to know?
I can try to help without giving too much.
BTW: These are my least favourite problems. I'd rather deal with straight forward computation
 
Ell
@zoid webdev and functional?
 
user142019
12:30 AM
Why not.
 
user142019
Also F# is not only functional.
 
user142019
It's multi-paradigm.
 
user142019
Like C# and C++.
 
@Rapptz Not much really =) The other problem that I think I have solved but not coded is Problem 199.
 
You should try the ones I consider hard :P
 
Ell
12:31 AM
Oh is it?
 
@Rapptz i.e.?
 
Ell
As soon as I hear functional I think Haskell
then shudder and push it aside
 
@CaptainGiraffe 344, 361
344 is over 1 year old but it only has 157 solvers.
407 (the one from last week) already has 255+
 
Are you able to redo a problem if you get it wrong or is it one shot/problem?
 
@Rapptz I might have a whack at 407. 344 nor 361 catches my eye
 
12:35 AM
@JohanLarsson multiple attempts, though 30 seconds per guess.
@CaptainGiraffe I only wanted to do it because it was a white square in the sea of green.
 
@Rapptz Hehe =) As good a motivation as any
 
the 344 forums are dead btw.. it's like it doesn't exist
@CaptainGiraffe What kind of problems do you like doing?
 
@Rapptz I dislike the ones where the only issue is to use a bignum library, I like calculations with 32 or 64 bits
 
I made my own BigInteger class :( lol
I don't like doing modulus operations though, they irritate me to be honest
 
@Rapptz lol=) Geometry appeals to me. I want to do the laser reflection problem, but I do not have an approach to that yet.
 
12:40 AM
Try 404
 
@CaptainGiraffe what number?
 
@JohanLarsson 202 Laserbeam
 
Oh that problem was nice.
You can do it in less than 20 lines.
 
@Rapptz So brute force?
 
I lied, it's more like less than 30 :( but I don't know if you'd consider this brute force
You have to do some preliminary thinking to derive to the formula being used, then you use code to make the repetitive computation easier.
 
12:44 AM
Is it code golf too? Or is it just the answer that is sought?
 
just answer
 
@Rapptz Yes that was my initials
 
Me stating the amount of lines is just a way of saying "don't overthink it"
 
Understood =)
Good night
 
Good night.
 
12:48 AM
God
I hate DLLs and I hate using std::unordered_map sometimes >_<
 
@ThePhD Already in the habit of std::? You grow up so fast.
:)
 
...
...... I hate you. :c
 
user142019
> The order the files appear in the project explorer is important. When you want to use module A from module B, A.fs has to appear before B.fs.
 
user142019
Wat. Fuck F#.
 
@Zoidberg'-- Y U NO C#!?
 
user142019
1:02 AM
Y WOULD I C#
 
user142019
F# IS AWEZOME
 
I wonder if I could name the files .c# .
 
Let me get this straight.... 1) FUCK F# 2) F# IS AWEZOME
 
Is # allowed in filenames?
 
... are you retarded or trolling?
 
1:02 AM
This song is amazing.
 
user142019
@ThePhD Depends on the file system you fool.
 
Ah.
 
Stop the spamming, please. Had you been genuinely interested in what is better, this would have been a better fit for codereview.SE. As it is, this is not your code, and your trying to get us to read it for you as well. This makes me sad. — sehe 53 secs ago
@LuchianGrigore etc. ^ /cc
@Zoidberg'-- And the OS /cc @ThePhD
 
user142019
type TicketsModule() as x =
    inherit NancyModule("/projects/{project_id}/tickets")

    do
        Get x "/" (fun ps -> x.View.Item("tickets/index") :> obj)
 
user142019
Isn't my code beautiful.
 
1:13 AM
It's got a smiley-bird face in it
:>
 
user142019
@ThePhD It's also got fun in it!
 
Fun!
 
user142019
ISN'T F# ALL ABOUT HAPPINESS AND fun? :>
 
I SHOULD USE F# TOO!
AND THEN TRY TO MAKE A GAME OUT OF IT
YEAAH F# !
 
user142019
Best thing is.
 
user142019
1:15 AM
I can just use all .NET libraries.
 
user142019
Including NHibernate.
 
user142019
And MongoDB-C#. xD
 
Theres a .Net library for MongoDB?
 
user142019
Yeah mongodb-csharp.
 
user142019
It even supports automatic serialization and deserialization, as well as LINQ.
 
1:22 AM
I would hope so
I wanted to use mongoDB in C++
but I might go with C#
 
user142019
You can do:
 
user142019
var foos = from f in collection.AsQueryable<Foo>()
           where f.bar > 42
           select f;
 
user142019
For example.
 
user142019
I like that. I think NHibernate also supports LINQ.
 
user142019
In fact, if it does not, I'm going to eat my shoe.
 
1:25 AM
Does EF work with mongodb?
 
user142019
I think not.
 
user142019
NHibernate certainly doesn't.
 
user142019
3
Q: Entity Framework and MongoDb

ChanceIs it possible that Entity Framework supports MongoDb database? Maybe somebody will write a EF MongoDb Provider?

 
user142019
There isn't much for MongoDB in the .NET community.
 
user142019
1:26 AM
Only mongodb-csharp, really.
 
From what I read in C# room very few use nhibernate, ef seems to be the preferred orm
 
user142019
I didn't find anything else.
 
user142019
I think relational DB is better for a bug tracker than MongoDB.
 
user142019
Relationships in MongoDB are terrible.
 
I guess it is kinda moot with orm when using nosql
 
user142019
1:27 AM
And MongoDB haz no transactions, so it's kinda unreliable when working with relationships between documents in different collections.
 
have you heard of ravendb? It is a nosql written in C#
 
user142019
Embedded documents are fine, but document size is max 16 MB.
 
user142019
@JohanLarsson Not until a few seconds ago when I read the message this message is a reply to.
 
user142019
Have you used it?
 
user142019
oeh transactions
 
user142019
1:29 AM
I'll try it.
 
ok, I played with raven one night, I suck pretty hard when it comes to db but liked raven. My opinion is not worth much though
 
user142019
You know what would be ideal?
 
Access? :)
 
user142019
Just allowing me to save objects, including references to other objects, with zero configuration.
 
user142019
db.Save(ticket);
ticket.Milestone = myMilestone;
db.Save(ticket);
db.Save(myMilestone);
 
1:32 AM
From my limited knowledge I thought that was the thing with nosql
 
user142019
Then I could specify relationships using attributes (delete, set to null, ignore, etc).
 
user142019
It would figure out everything through reflection. :3
 
user142019
I have used this for a project at work and it was fucking awesome.
 
If you try out raven it would be fun to hear how you think it compares to mongo
 
user142019
Best ORM I've ever used.
 
user142019
1:33 AM
Even though it was PHP.
 
user142019
@JohanLarsson okay. I'll let you know when VS is done updating. :P
 
user142019
You know, ReadBeanPHP might be the only reason I'd ever consider using PHP for something.
 
user142019
.NET Y U NO REDBEAN.NET.
 
bookmarked it
getting tired, gnight
 
user142019
Bye.
 
1:50 AM
Darth Vader ‏@DepressedDarth
How do they communicate on Endor? Ewokie Talkie
Dat pun.
 
user142019
I want a graph database.
 
user142019
Which supports cycles.
 
user142019
@JohanLarsson at least it supports associations. MongoDB doesn't.
 
Had to roll my own HashMap - or improve the one I had - because std::unordered_map is NOT for exporting.
Die in a fire, using namespace std; unoredered_map;
Die in a fire....
 
2:10 AM
@ThePhD You can just delete it.
No incantations are needed :)
 
The incantation is therapeutic.
 
What's wrong with std::unordered_map?
 
It's the uno-redered map.
 
The Sieve of Atkin is a bitch
I think I'll stick with Eratosthenes
 
2:26 AM
@Zoidberg'-- Looks like a recipe for disaster and tears
 
user142019
Not really.
 
user142019
@JohanLarsson I like RavenDB more than MongoDB.
 
Isn't programming in general a recipe for tears and disasters?
 
user142019
MongoDB has no transactions and no associations which is terrible.
 
Yes really
 
user142019
2:29 AM
> AbstractMultiMapIndexCreationTask
 
user142019
Y u say in type name that it is abstract.
 
@Rapptz did you post a prime-finding algorithm that uses bitset?
 
yes
 
I'd like to compare it's speed with my typical implementation.
Do you have a link?
Wait, found it.
 
2:37 AM
@Zoidberg'-- because entropy is good for classnames...?
 
I have a rather shitty isPrime() function that I used to use :(
I think I posted it before. But it's definitely slower than the bitset one.
Yeah definitely slower. 12.4s
 
> user\t0m0.664s
BUGS
 
TABS
TABS ARE THE GREATEST!!!
That is all.
 
ThePhD: Prime example of bad coding conventions since 2011
:D
 
2:52 AM
Tabs suck
Use vim and have no problems with either indenting or aligning
 
Do boolean arrays have a default value of zero/false?
 
If they're initialised
 
neat
 
bool foo[n]; in function scope might not initialise, I don't remember
Fuck you C++ that I even have to think about shit like that
 
yeah I just tried initialised first to zero and none and initialising the first made the rest 0.
If I didn't initialise it they were garbage values just like regular arrays I guess.
 
2:56 AM
bool foo[42] {} will initialise for sure
 
Hm. I'm doing bool foo[N] where N a compile time constant
 
Yeah, same thing
It wouldn't work with [] obviously
But you can't not-initialise that so
I also can't spell initialise
It's almost as bad as tomorrow
 
@Rapptz Lol, I just realize I included compile time.
 
lol
 
Smart
 
This way those pesky metaprograms won't have 0 runtime :v
 
Dammit. Now the results are more outspoken.
@Rapptz is 20x faster, lol
 
Did you really expect that compilation time is skewing results in his favour? :
 
No, that was a silly mistake.
 
Also, make www. redirect to main domain
And insert some titles to those pages
 
3:02 AM
I like yours better though because it looks like you're using prime generation :P
 
BTW const ulong bound = 2000000; should be constexpr
Otherwise it's not ICE
I think
@StackedCrooked Are you compiling with -std=c++11?
Or GNU11
 
@CatPlusPlus -std=c++0x
 
ANCIENT GCC
I'M GOING BACK TO IDEONE
 
Isn't that deprecated?
 
4.7.2 isn't ancient?
 
3:07 AM
:v
 
gnu11 and gnu++11 exist, which did you mean?
 
oh shit, sets don't have reserve? :(
 
AFAIK gnu++11 pulls in more non-standard stuff, which may or may not be desirable.
 
yeah gnu++11 adds GNU extensions
some are okay
 
I was wondering if extensions are enabled
 
3:10 AM
Anyway changed c++0x to c++11 now. I don't think it makes a difference though.
 
Enabled set -x temporarily so you can see the build command. example
 
user142019
Theory is when nothing works and everybody knows why.
Practice is when everything works and nobody knows why.
Programmers combine these two; nothing works and nobody knows why.
 
3:27 AM
It gets scary when it works and nobody knows why.
 
user142019
Heisenfeature?
 
user142019
\
 
Mystery feature.
 
user142019
God tier: Haskell, Erlang, F#.
Top tier: Python, C#.
Middle tier: Ruby, JavaScript, C++.
Low tier: Objective-C, Objective-C++, Perl.
Shit tier: PHP.
AbstractShitFactoryProxySingletonManager tier: Java.
 
user142019
Is that accurate?
 
3:33 AM
It's kinda snobbish.
 
user142019
:D
 
user142019
I have used all of them. Most are terrible. Basically, everything below top tier is absolutely terrible.
 
user142019
Hmm C is missing.
 
@Zoidberg'-- you rate Java too highly
 
user142019
One cannot hate Java enough.
 
3:37 AM
^
 
imo you haven't used any programming language enough to have a valid opinion on it.
 
user142019
lol
 
Just being honest.
 
user142019
Except for Perl, F#, C# and Haskell I have used all of those extensively.
 
user142019
Especially Objective-C.
 
3:38 AM
If you say so.
 
user142019
Also sleeping time.
 
user142019
It's almost five o'cock.
 
@Rapptz are you from Dearborn?
 
user142019
@StackedCrooked y u never sleep.
 
I sleep when you aren't watching.
 
3:39 AM
@StackedCrooked Is that what my GeoIP says?
 
Just a guess. I could have been someone else as well.
 
I live close, but no.
You have the right state though.
 
ISP could be operating from there.
 
user142019
operator ISP() { if (rand() == 1) crash(); }
 
probably.
 
user142019
3:42 AM
KPN T_T
 
user142019
KPN Y U SUCK
 
user142019
KPN is a terrible company.
 
user142019
XS4ALL is the only decent ISP in The Netherlands but they're expensive as fuck.
 
We only have two choices for ISP here.
 
user142019
We have a billion.
 
3:44 AM
Most places have one, making it a monopoly :P
 
user142019
8 Mb/s costs 30.50 EUR.
40 Mb/s costs 40.67 EUR.
 
user142019
T_____T
 
We have two an ADSL and a cable provider. I'm forced to choose the ADSL provider in my apartment. However, I'm lucky to live close to the central and I get 3.5 MB/s download speeds.
 
You have better internet than most places in the US.
 
I used to have 480 KB/s with my previous modem in the same building.
VDSL2 gets quite amazing throughput for twisted pair.
 
user142019
3:48 AM
It's 2013.
 
user142019
We should have 1 Gb/s for under 50 bucks/month.
 
user142019
I mean, mobile.
 
Maybe in 2023.
 
user142019
I can wait that long.
 
lol
 
3:50 AM
Good.
 
user142019
That's only ten years.
 
user142019
Not even half my life till now.
 
In 10 years we might have 2 Gb/s internet.
 
user142019
Not enough. I need 1 Tb/s. MOAR PORN. HIGHER QUALITY. MOAR. MOAR.
 
Meanwhile the majority of ISP is still using IPv4.
 
user142019
3:52 AM
lol
 
I still have IPv4
 
user142019
TIL: XS4ALL was the first Dutch ISP for consumers. o.o
 
I get a local IP from my ISP in the 192.168 range. So clearly they are using NAT.
 
user142019
You know, non-enterprise.
 
user142019
@StackedCrooked wat
 
user142019
3:53 AM
I have 77.169.something.
 
user142019
@StackedCrooked how can I ever connect to your network from the outside then?
 
user142019
Oh local IP. That's from your router, not your ISP.
 
user142019
Silly.
 
user142019
 
my router receives a IP from the ISP.
 
user142019
3:55 AM
In the 192.168 range? XD
 
user142019
Is your ISP crazy? XD
 
@Zoidberg'-- That's shows an IP that I likely share with other people.
 
user142019
IPs should be unique across all devices. IPv4 sucks.
 
@Zoidberg'-- That's how network address translation works.
It uses a shared IP and differentiates with L4 port numbers.
Quite an ingenious hack if you ask me.
 
I can't figure out why this doesn't work
 
user142019
3:58 AM
Because it's broken.
 
user142019
Python is almost as nice as Haskell, like Java is almost as nice as PHP.
 

« first day (805 days earlier)      last day (4142 days later) »