« first day (410 days earlier)      last day (4539 days later) » 

1:00 AM
It's empty.
 
The installer Loki.
 
Yeah, I noticed.
 
breadcrumb array?
 
jli
to save what's been visited so you dont get infinite loops
 
> Template dynamic data structures - Dynamic arrays, Linked list, Binary Tree etc. All of the main data structures in Uplink use this library. Does not need to be compiled - this code is included directly in Uplink.
 
1:02 AM
@jli That's a cute name
 
Templates!
Reinvented std though.
 
@KianMayne What?
 
> score_peoplefucked
Lol.
 
@CatPlusPlus :L What is that from?
 
Uplink.
 
1:04 AM
@jli hmm, yea didnt think about infinite loops, thats true. You said you had a proper algorithm?
 
There's a pseudocode algorithm in the wikipedia article.... @mwmnj
 
@Anfurny, That uses recursion
 
Aaah, vim started to spawn g++ for every searched file. I need to get rid of Syntastic.
 
You're not allowed to?
 
@Anfurny I am to use stacks, would I be able to use both with that algorithm?
 
1:07 AM
@CatPlusPlus Ugh.
 
You can use a stack and recursion together.
 
jli
@KianMayne Well it makes sense, so whatever.
 
You don't need a separate stack for DFS if you're using recursion, you only need to remember visited nodes.
Also, you couldn't find more boring topic.
 
// Work out the exe app path
// THANK YOU VERY MUCH WIN32
// WHATEVER WAS WRONG WITH ARGV[0] YOU FUCKING IDIOTS
3
 
I'm more intrigued by WAREZRELEASE ifdefs.
 
1:08 AM
@KianMayne it probably hinges of what is meant by "combine keys"
 
@AlfPSteinbach That's what I want to find out
 
@CatPlusPlus Where's that?
 
Ill look in to using the proper DFS algo
Is till dont understand this however:
 
@RMartinhoFernandes I've seen it in GameObituary, and tried to look further when vim went crazy.
 
Anyone here know C#?
 
1:09 AM
In game\.
 
row = 0;
col = 0;
maze[row][col] = 0;

cout << "row:" << row << endl;
cout << "maze:" << maze[row--][col] << endl;
 
Invalid code.
 
The output is then "row:0"
"maze:0"
 
WTF am I saying.
 
Oh wait, sorry.
 
1:11 AM
This is c++
 
It decrements later.
 
So shouldnt maze[row--][col]
go out of the array
since row is -
*0
 
It's maze[row][col]; row--
 
Zooooooommmmmmmmmmggggggg
 
and output garbage?
 
1:11 AM
No.
 
// Prevent cheats from working in the warez release
 
This statement was marked as dubious on Wikipedia: "For example, if an estimate of how long it takes to break an encryption scheme is one thousand years, and it were used to encrypt your credit card details, they would be safe enough"
 
What about maze[(row--)][col]
 
Well it's bad english. What does "They" refer to?
@KianMayne
 
//#define WAREZRELEASE // Purity Control
@mwmnj It's the same thing.
 
1:13 AM
So, maze[row--][col] == maze[row][col]; row--?
 
@Anfurny Really? - I thought it was quite obvious that it was referring to the credit card details
 
Why on earth is that
 
Oh, that's fair @KianMayne
 
Lol it has timebombs.
 
There's a void Game::WarezGameOver () in game.cpp.
 
1:15 AM
It checks playtime in World::Update
 
Would maze[(tempRow = row - 1)][col] == maze[row][col]; row--?
 
So what? They built a special binary to distribute to pirates?
 
Could be.
 
uhm, i've come to the where clause thing in the tutorial. is Haskell like Python wrt. indentation? and is there also a let... in ?
 
1:17 AM
@AlfPSteinbach Yes, indentation marks blocks.
 
Haskell is even more anal about indentation than Python.
 
let ... in is the same as where, but in with opposite order.
 
Yes, there's let too.
 
jli
1:18 AM
@mwmnj I suppose you need the predecessor set dont you
 
he he the let was just further down on the page
 
I was just thinking (feel free to point out errors in my logic)
If brute forcing x takes 1000 years on current systems
 
Looking at the reinvention of vector.
void Empty ();				 // Resets the array to empty
Ugh.
 
@RMartinhoFernandes Oh vim wizard. How to search for whatever is in a register?
 
Then what about moore's law?
 
1:21 AM
Ctrl+R I think.
 
Surely that would mean that it doesn't take 1000 years at all...?
 
After pressing /.
 
Assuming you could transfer the operation
 
Works in ex mode too.
 
It does bugger all.
 
1:22 AM
And insert mode too.
 
@KianMayne 9439?
 
Pretty much everywhere.
 
It's redo in insert.
Maybe you've rebound it?
 
@AlfPSteinbach If speeds double every 2 years?
 
i think it's stopped doing that
 
1:23 AM
Nope.
 
around 2001 or something
 
Whenever you're in a mode where you're actually typing text, Ctrl+R followed by a register pastes that register.
:help <C-R>
 
Oh, followed by a register. Derp. Thanks.
 
I should like to cast 94 votes on questions.
But I hate voting on questions.
 
@AlfPSteinbach In theory though:
Year 1 1000
Year 3 499
Year 5 248.5
Year 7 123.25
Year 9 60.625
Year 11 29.3125
Year 13 13.65625
Year 15 5.828125
Year 17 1.9140625
Year 19 0 - Cracked
 
1:32 AM
A veritable dilemma
 
jli
I leave you to figure out the predecessor set.
 
I like voting up good questions
 
jli
Sorry it took so long for such a simple algorithm, I had to feed my cats.
 
@tenfour Me too. But remember that I need to upvote a lot of questions ;-)
 
@Cat Well, it's pretty much C with classes.
 
1:40 AM
I rarely ind a question good in its own right.
 
No std in sight.
 
@RMartinhoFernandes That's what she said.
 
why do you need to upvote?
 
new and delete all over.
 
good questions' rarity is what makes it so nice to upvote them
 
1:40 AM
@tenfour I think you get a badge for upvotage...
 
Pointers everywhere.
 
@RMartinhoFernandes Whom are we dissing just now?
 
@RMartinhoFernandes The game?
 
It's actually not a C with classes total mess.
As far as C with classes goes, I think it's not bad.
@KerrekSB Yep.
 
1:41 AM
I don't think you had to use pointers in it... everything was drag&drop.
Though you could buy parallel cores I think.
 
@KerrekSB Pointers in the source code.
 
@RMartinhoFernandes How did you get the source code??
Does anyone want their questions voted on?
 
It's been released in the Humble bundle.
 
@RMartinhoFernandes link link link
 
jli
1:43 AM
@KerrekSB You could vote on my questions if you really want to, I only have 3 though.
 
You need to buy it.
 
I've had enough thinking for today
It's time for sleep
Nightnight
 
@RMartinhoFernandes Neat! So the entire game is free, too?
 
jli
@KerrekSB Not free...
 
@KerrekSB No, you need to buy it.
 
jli
1:44 AM
Just really cheap.
 
You can pay how much you want though.
 
I also like upvoting questions of new people, if they're decent at all
 
I guess that if you're a cheapskate you can get it for $0.01.
 
@jli Ohh, I don't understand most of them
@RMartinhoFernandes Ah, I see.
I think Uplink has always just been £10, hasn't it
 
jli
@KerrekSB I paid $1 for all the games combined +source
Humble indie bundle is awesome.
(Reason I paid so little is because I already had a couple IV software games)
 
1:46 AM
No need to explain yourself.
 
jli
I do admit I paid 1 cent for one of the bundles
 
@jli Cheapo!
A good bundle, it would seem.
 
I paid five bucks (turned out to be less than 4€, freaking dollar is worthless). I need the money for books :)
 
I already own all of them, so
 
jli
So is anyone here from Canada?
 
1:50 AM
@jli Are you setting up a joke?
I wonder if hash_combine should go into the FPAs.
 
jli
Nope, just wondering if anyone has any input on which universities I should apply to.
 
McGill or UQAM? Toronto?
 
jli
Looking at Waterloo and Toronto atm.
 
why didn't you just ask the question then
 
jli
I don't really want to go to Quebec.. I suck at speaking French
Well if people aren't from Canada then its a useless question to ask.
 
1:52 AM
good opportunity to improve :)
 
@jli Always something new worth learning. Also, McGill is English.
 
jli
Yeah I know.. but I like Ontario :D
 
asking if there are any people from canada is just as hard as asking for university recommendations :)
 
Waterloo is good in CS, isn't it.
 
jli
1:53 AM
Plus, I'm almost guaranteed to get into Waterloo
 
sorry i'm in an argumentative mood
 
^ I think one can choose to see that dog from behind, or from in front
 
Or try Cornell, that's almost Canada
 
jli
Hmm, moneyssss
 
Anyone with socket programming experience?
 
jli
1:55 AM
Probably most of the people here
 
just ask your socket question
 
0
Q: Simple messaging application...getting errno 14: bad address

mtahmedI am writing a simple messaging application in C using sockets. When I use function recvfrom, it returns -1 and sets errno = 14 which is Bad address (which I am printing at the end). The strange thing is that it still reads from the socket and gets the correct message. That is, the application i...

I don't know what exactly "bad address" is supposed to mean...
Hey Kerrek!
Are you from Waterloo?
or are you just recommending it to someone?
 
jli
We're discussing my application.
Are you at Waterloo?
 
yeah
2nd Year
Computer Science
 
jli
I'm planning on going there or UofT next year.
 
1:58 AM
Computer Science?
 
jli
Almost guaranteed a spot at UW since I got stage 2 CCC last year, among other things.
SoftEng
 
@mtahmed No, I'm not, and to be fair I shouldn't speak too much. I just know they're the guys who made Maple
And I was under the impression that there's fairly good ongoing computing research happening
 
@mtahmed: those structs are very sensitive and easy to mess up. Copy code from examples.
 
@mtahmed Use inet_pton() to populate sin_addr
 
cpp-home.com/tutorials/26_3.htm <-- this shows how to use inet_addr()
 
Yes I was using inet_pton() before....I was getting the same error
 
jli
Also if possible.. boost lol
 
I have never had the need to use boost...I would really like to know what advantages it offers...
 
oh man
where to start
 
Everything.
 
2:02 AM
Any article that comes to mind on the topic?
 
everything you DO in programming is improved with boost
 
an example?
 
jli
85
Q: Is there a reason to not use Boost?

asyncwaitI had this discussion with my colleague today about using Boost in our new C++ project. He did not agreed to use Boost as he thinks that Boost is huge and another point he added was that Why did Chrome team chose to not to use Boost? I am not sure what to answer ... His whole point is none of the...

 
is Boost for CPP only?
 
jli
2:03 AM
Yeah
 
@mtahmed it also has a binding to Python, not for using Boost from Python but for combining C++ and Python
 
but I am using C...
where did Boost come in?
 
Start using C++
 
:D
 
2:04 AM
the reason you use C and not assembly is because the compiler gives you tools to avoid errors, make things clearer
C++ has that same advantage over C
boost then makes efficient and wide use of those tools
hard to argue against its use
 
Hmmm
Okay what happened to my question? :)
 
jli
Also boost is really similar to the new C++ standards (they're partially based on boost), making it good to learn now.
 
@tenfour Right because C++ compiler errors are very clear.
 
clearer than a runtime error
 
jli
Clearer than "segfault" (not that this matters over C)
 
2:07 AM
I'm not sure if 5KB-long errors are clearer than "segfault"
 
closing this argument as "not constructive"
and going to bed; night sirs
 
Good night.
 
jli
See you.
 
2:24 AM
^ silly
 
2:35 AM
I can't believe I'm having as hard of a time as I am with this...
All I have to do is check a 9x9 array if it has any duplicates in each row, column, and separate 3x3 subarray
I've been stuck on this for the past 2 hours. I understand the algorithm I just can't seem to be able to write it...
 
what are the elements
 
Int's
0-9
er, 1-9
Its a sudoku checker
 
well, you can use a std::bitset
 
jli
Why would you need a bitset?
 
for each value, check if it's already in the set. then you have a duplicate. otherwise add it (set its value to true).
 
jli
2:40 AM
Why not just iterate through the array, thats quick enough.
 
isn't that the approach that's not working?
 
We have to use arrays, my professor is crazy with us using things he hasn't taught us yet.
It's not that it doesn't work, its that I'm not writing it correctly
 
ok, you can use an array of bool instead of the bitset
 
I spent all today working on my android app and now I cant think anymore
 
@RMartinhoFernandes You can use GetModuleFilePath, if I remember the name correctly. Thereabouts.
 
2:45 AM
@AlfPSteinbach Not my code :)
 
What's the name of the type int[]?
 
@KerrekSB it's an incomplete type, in C++
 
Does it have a particular name?
 
jli
something like that
 
@RMartinhoFernandes anyway i remember slightly incorrectly, it's GetModuleFileName
 
2:46 AM
(I noticed that unique_ptr is specialized on that type)
 
@KerrekSB i don't think so. "array of unspecied bounds"?
 
(I never really realized that there's a single type that matches all arrays.)
 
@KerrekSB "array of unknown bound of int"
That's how it's called in §20.9.5.
 
Interesting. What are the deduction rules for it?
 
§3.9p6 has the definition.
@KerrekSB Dunno.
 
2:48 AM
If you just do bool array[9] = 0; does that set all values to 0? I haven't used C++ in a while
 
Matches arrays.
 
i think i go back to haskell learning again
 
@Nexion You want bool array[9] = {};.
 
but i remember thirty years ago, my head started buzzing
 
2:53 AM
@RMartinhoFernandes Ah, I believe it cannot be deduced
It's only for explicit use
 
@jli i cant get that working
 

« first day (410 days earlier)      last day (4539 days later) »