« first day (1245 days earlier)      last day (3696 days later) » 

12:11 AM
think it's bedtime
 
@Griwes That guy clearly knows how to live life.
 
@EtiennedeMartel I might draw a sketch this weekend :)
 
^ something like this but with the lounge logo ?
 
that one is nice
 
12:41 AM
> This idea came from Reddit, so I want to give credit where credit is due. Specifically, it came from "ipeeinyourshower" who has better taste in video ideas for charity than usernames.
 
@R.MartinhoFernandes lmao
 
Arnold is great.
 
need deep_copy_ptr
 
we need to go deeper
 
12:52 AM
Is not using any smart pointer at all an option? — R. Martinho Fernandes Dec 17 '12 at 10:35
 
> vector<int> Edge[1000000]; //size of array must be very high
oh my sweet sweet jesus
 
@Jefffrey oh god...
 
oh hey, robot's answer actually helped
 
@Jefffrey lol
 
sort of anyway
 
> It is difficult to find "New to the chat?" on large displays as it's centered. Not that anyone would read it anyway, but left alignment would be better IMO.
 
1:17 AM
haskell sure is sexy
@Borgleader mkdir?
 
I think it's supposed to be there
> .cabal-sandbox/bin/todo
this command makes me think there should be something in it too
 
@Borgleader erm, that's not /bin
 
.cabal-sandbox folder exists, it doesnt have bin in it though
 
have you run cabal sandbox init?
inside the project folder?
 
cabal sandbox init is what created .cabal-sandbox and a file called cabal.sandbox.config
 
1:23 AM
>people with no issue tracker
truly the worst
 
1:41 AM
night
 
cockface
 
night
 
huh... the dependencies werent installing
 
1:57 AM
@StackedCrooked in case nobody answered yet, operator delete() with user-defined arguments isn't called through delete-expression, it is called through new-expression when the ctor fails. That cppref page actually demos that in the last example.
 
oh I see
I totally didn't realize that :)
Interesting. So if the constructor throws after placement new then the corresponding placement delete gets called.
 
I think there was an Effective C++ chapter about that "always write a matching delete", but I don't remember if it walked about placement forms. BTW, what I think is the best part about operator delete is the size_t version that's privy to the secret knowledge about the size of the allocation.
 
IIRC the EC++ chapter was about new/delete vs new[]/delete[].
I don't see why operator delete would ever need to know the size of the object it has to delete though..
 
There was one about operator new vs new operator (which probably also covered delete)
 
Item 10: Write operator delete if you write operator new.
Modern C++ Design has an example where he makes use of that size_t
 
2:38 AM
fuckshitties so sick
 
3:26 AM
oh wait
15-16th for TGLGJ#3?
that's IEM Katowice prime time.
balls.
 
Xeo
3:36 AM
@StackedCrooked what's that from?
@StackedCrooked the robot mentioned that
 
4:06 AM
I'M FREE!!!
 
lol
 
I only knew you were cheap, now you are free? :p
 
lol
Seriously though, it was satisfying.
 
@Nican The AI could be cheating. Where the next tile will pop-up is quite random (I would love to know if it isn't though).
 
@MarkGarcia news.ycombinator.com/item?id=7379821 It is just minimax, and the AI assumes the worse case scenario where the random block is placed.
You can view the page source, the AI is not that big, but it is interesting to see it work.
Wtf. It searches with depth 0, if there is still time left, it throws away the result and it searches with depth 1, if there is still left, it throws away the result and searches with depth 2, and so on...
 
I use a tetris-like technique where I put the tile in a bottom corner. I wish I could make the technique more systematized.
@Nican lol. So it accounts for viewer experience by not hanging too much.
 
5:12 AM
It is a web developer. You can not expect everything.
 
protip
never do g++ main.cpp -o main.cpp
12
 
hahaha
 
I lost ~4-5 hours of progress like a scrub
 
@Rapptz I initially thought recursion, but was disappointed.
 
I was extremely confused when my text editor showed a bunch of hex
only to realise the dumbassery that had just happened
T_T
 
5:14 AM
Or you could get used to "git init" and "git commit -am 'something'"
 
I'm not gonna use git on a single file
:v
 
@Rapptz If you were in VS, that means all your work is just fucked up.
 
in hindsight I should have used gist or something :/
 
Just wondering, what editor are you using?
 
@Rapptz Think of it: using git creates new files! :P
 
5:16 AM
Sublime Text 2
 
Press ctrl+z, it might still be in the history.
 
trust me I tried lol
g++ shows no mercy to my puny file :(
 
@Rapptz Didn't it alert for an external change?
 
Oh- I am usually able to back in history even after someone overwrite the file with Sublime.
 
@MarkGarcia no it overwrote it instantly for some reason
it usually does warn though
 
5:17 AM
Not for me. :o
 
We unfriended them, and they took it badly. — LowerClassOverflowian 2 hours ago
^^ ahaha
 
@LowerClassOverflowian Very constructive, well done. You're a credit to Meta. — Boaz 34 mins ago
Is he butt flustered?
 
@Rapptz You could write a bug report having them reproduce your stupidity ahem sorry mistake. :P
 
ST2 is closed source and the guy probably died
in other news
it took me 20 minutes to rewrite those ~400 LOC
 
5:34 AM
@Rapptz So little hope for ST3?
 
ST3 exists
 
 
1 hour later…
6:49 AM
Is there anything in git like bzr export foo.tar?
 
don't think so
1137
Q: How to do a "git export" (like "svn export")

Greg HewgillI've been wondering whether there is a good "git export" solution that creates a copy of a tree without the .git repository directory. There are at least three methods I know of: git clone followed by removing the .git repository directory. git checkout-index alludes to this functionality but s...

 
@Rapptz Ah, I was looking for git export but I was only getting fast-export references.
Thanks.
 
7:10 AM
 
7:29 AM
TIL operator++ on bool was (deprecated in C++14) a thing in C++
why in the fuck would anyone want to increment a bool???
 
@TonyTheLion ... I don't know
morning guys and dolls
 
morning pirate
how's the neckbeard?
 
Lion
¬_¬ just fine
 
lol
how's Ireland?
 
mostly cold
 
7:31 AM
ah right
its heating up here in London, but it was damn cold this morning
hopefully the sun will be out again today
 
been rather misty the last few mornings
foggy even
 
@TonyTheLion ++false == true
 
@Rapptz ugh
 
@Rapptz how does that work, false is a constant, no?
 
assuming they're stored in bools already
 
7:34 AM
"I have made a class derived from stream" - fascinating. It's a shame we can only guess what it looks like, and what stream you are talking about, e.g.. — sehe 23 secs ago
 
@Rapptz ++false is a compilation error
 
main.cpp:6:24: error: lvalue required as increment operand
         std::cout << ++false == true;
 
yup
 
Good work. Thanks for sharing this. Future SO users will be grateful. And therefore, me, now :) — sehe 4 secs ago
1
A: Building Boost Libraries With Intel Compiler

thomasAfter an intensive search, finally I have found the solution. As explained in this link, there are two patches to apply to boost folder: intel-win.jam file in [boost-source-directory]\tools\build\v2\tools needs to be replaced by the file given in the link. project-config.jam needs to be replace...

Deserves some boats, I think
 
7:43 AM
Hola "Lounge<Candaian Politics>"!
@Rapptz are you 24/7 online?
 
Sure.
I feel dirty doing this
std::unordered_map<Key, Action> actions;
std::unordered_map<Key, std::function<void(void)>> callbacks;
 
@Rapptz I'm surprised at "unordered_map". I'd expect a flat_map or vector to be more applicable
> Probability of two hashes accidentally colliding is 1/2128 which is 1 in 340 undecillion 282 decillion 366 nonillion 920 octillion 938 septillion 463 sextillion 463 quintillion 374 quadrillion 607 trillion 431 billion 768 million 211 thousand 456
So geeky
 
I feel a bit like @DeadMG, as my stomach hurts
I think this poor soul never recovered from his ordeal Note: I merely read the headline
 
are you sure it is your stomach? maybe it's your tummy ... are you pregnant?
 
8:04 AM
TIL: Secure Hash Standard [FIPS PUB 180-4] §5.3.6 SHA512/t is a SHA256 truncated down to size, using a custom IV via http://stackoverflow.com/a/10340563/85371?stw=2
Another win for SO
 
user1804599
8:26 AM
@Rapptz doesn't matter too much because everyone uses version control.
 
user1804599
And an editor that keeps backup files all the time.
 
stupid game any way
2048 is stupid number
 
user1804599
(And if you don't, please continue deleting your code.)
 
oh Robot left
what's going on?
 
8:29 AM
the revolution is nigh!
 
@TonyTheLion ..?
 
not forever
 
hmm... today's xkcd... what is the mean distance to a (not the Sun) star?
 
user1804599
Thank God that's not a JPEG.
 
8:33 AM
We're apparently 92,957,100 miles from our Sun
 
the 53 nearest are pushing 16 light years
 
well fuck
 
user1804599
lol miles
 
user1804599
What idiot measures things in miles.
 
and I'm fairly sure the total number of stars > 53
and the milky way is 0.1 Giga light years across... so at least half the stars are well past 50k lightyears...
and with 300 billion stars...
I think it's fairly safe bet to say (on average) that any given stars is thousands of lightyears away.
if anything, laypeople are underestimating how many stars there and how far away they are.
 
8:41 AM
@Xeo I can be a little slow at times..
@Xeo startup screen of Rewrite
 
user1804599
@thecoshman no shit.
 
@rightfold see today's xkcd
 
The translator is lecturing players while he is worst copyright offender of them all.
 
this is the farthest I've got
Total Score: 6428
Urgh VS crashed
piece of shit
 
This game again!!!!!!
I wasted an entire day playing this shit!!!!!
 
8:48 AM
@TonyTheLion do you know if anyone has beaten it, who we can trust to have actual beaten it?
 
For people seeing this game for the first time, DO NOT TRY TO PLAY THIS GAME!!!!
Seriously, it's very addicting.
 
@thecoshman I don't know anyone that has beaten it
 
5 hours ago, by Mark Garcia
user image
 
I think it would take a lot of time
 
user1804599
This correct? :v cd ~/ && java -jar youtrack.jar 20000 2>&1 > /dev/null &disown'
 
8:49 AM
@TonyTheLion I did. it's easy
 
user1804599
Not sure if the &disown is in the correct place.
 
5 hours ago, by Mark Garcia
I'M FREE!!!
 
@Abyx I'm skeptical
 
@Abyx is that so
 
@MarkGarcia Was that you or the AI?
 
8:50 AM
I've gotten 1024 but not 2048
 
@TonyTheLion I wouldn't be as happy as I am right now if it's the AI. free
 
@MarkGarcia How long did it take you?
 
 
75
Q: What is the optimal algorithm for the game 2048

nitish712I have recently stumbled upon the game 2048. You need to merge similar tiles by moving them in any of the four directions. By similar, I mean tiles with same value. After each move, a new tile appears at random empty position with value of either 2 or 4. The game terminates when all the boxes are...

 
> 0xC0000005: Access violation reading location 0xfffffffffffffff8.
urgh
 
8:52 AM
Mar 11 at 2:49, by Mark Garcia
Anyone else played that 2048 game on HN?
Since ^
4 days of suffering and porn-watching-like seclusion!
 
@Mysticial I use this strategy: stackoverflow.com/a/22371440/1619294
 
@Abyx what's that?
 
@ArneMertz you don't want to know. really
it's a game which can eat hours of your life
 
9:04 AM
@ArneMertz ^ Seriously. If you still want your job.
 
 public static SessionManager GetManager()
        {
            if (m_Instance == null)
            {
                m_Instance = new SessionManager();
            }
            return m_Instance;
        }
urgh
a singleton manager
3
WHYYYYYYYYYYYYYYYY
 
is that C#?
 
Here's the solution for 2048 ov3y.github.io/2048-AI
 
already been posted
 
9:21 AM
it's repost weekend apparently :P
 
its the Internet, reposts are a way of life
 
user1804599
@TonyTheLion because C#.
 
wait a second
the lounge is getting something done?
loungecpp.net
logo contest
game jams
lounge meetup
what the hell is going on?
 
We're getting over our initial fuckwittery
Soon rightfold will start finishing projects on a routine basis
 
a 24h game jam is not that much of a project. it's not a kyrostat or other big thing
 
9:28 AM
then the world will be a better place
 
@TonyTheLion lol
 
user1804599
I wish I had food.
 
user1804599
@TonyTheLion I will finish Hexapoda this time!
 
user1804599
I can already authenticate users! gist.github.com/rightfold/572e52bb621f28e20401
 
user1804599
9:44 AM
Fuck the implicit parameter; I'll make it a constructor parameter.
 
@rightfold SecretKeyFactory.getInstance
a singleton factory?
 
@MarkGarcia xkcd.com/303 :-)
 
user1804599
I can't help that Java has a terrible API for that.
 
user1804599
Also, I find the string typing way worse than the singleton factory.
 
@Jefffrey and somewhere there will be a singleton manager that manages all the singleton factories...
 
9:47 AM
well, tbf a singleton is always a factory
 
terribletons
 
single tons of crap
 
also findUserByEmailAddress
doesn't sound particularly reusable
maybe findUserBy(User::email, "themeial@gmail.com")?
 
not everything can be reusable
 
or even find({User::email => "themeial@gmail.com"})
 
user1804599
 
> I'm not sure whether the compiler is correct in getting it's knickers in a bunch jimmies rustled with a ref to constexpr here.
I'm too funny
 
s/ruffled/rustled
 
no.
just no.
rustled
 
I suck at spelling
 
I just fixed it though
 
9:58 AM
 // Report Error
return;
seems legit
 
user1804599
with in Scala is so cool.
 
Stack Overflow stays in touch with active users on Stack Overflow. I don't see what Facebook has to do with anything, I really don't. This idea that "you must have a Facebook page" is entirely without merit. — Lightness Races in Orbit 7 secs ago
 
10:14 AM
@ArneMertz Doppelganger experiences are not a myth - they are caused by failure of God's singleton factory.
 
@LightnessRacesinOrbit why removed?
 
@Jefffrey Beats me
OP did it, quietly
 
user1804599
Hmm.
 
user1804599
I would like to sync a single file with Dropbox but it is not in my Dropbox folder.
 
@LightnessRacesinOrbit I wish I could see the question
 
10:19 AM
This is horrid - reading a gay horror ... just not my thing to read a romance between 2 guys (and I am pro gay marriage)
 
@rightfold Simlink it there.
 
@LightnessRacesinOrbit yeah, I agree
@TonyTheLion no keyboard?
> I have a library type that is only supposed to be used as a global variable and must be linker initialized (i.e. it must have the correct initial values before static initialization time).
Singletonian too much?
 
user1804599
> Qatar
 
user1804599
10:26 AM
I pass.
 
Bah.
Visual Studio 2013's implementation of C++11 synchronization primitives is useless!
 
@rightfold Why?
 
Not long ago I have hit an issue that I was not able to lock std::mutex instances from below DllMain().
Now I have hit the same problem again, this time during process exit, instead of during process init as before.
HOW THE FUCK AM I SUPPOSED TO CLEAN UP DATA STRUCTURES WHEN THEY NORMALLY NEED MUTEXES?!
 
user1804599
Go with race condition yolo.
8
 
@rightfold It is more likely I will go with a leak instead.
 
user1804599
10:32 AM
Go with a POSIX.
 
@rightfold I would have to be able to turn off locking in all of the class just so that I can clean up.
 
I plonked rightfold for using "yolo"
 
user1804599
@TonyTheLion nice.
 
> Major Major Major Major (hereinafter Maj. Major for short)
 
0
Q: Visual Studio 2013 std::mutex and the dreaded Windows loader lock

wilxSome time ago I have encountered a problem during application startup that I could not lock mutexes from below DllMain(): C++11 std::mutex in Visual Studio 2012 deadlock when locked from DllMain(). I have worked around as mentioned in the accepted answer. Now I am having a similar issue but this...

 
user1804599
10:45 AM
I am hungry.
 
10:59 AM
@rightfold how convenient :D do you have a few minutes to talk about the various types of food around the world, and look at some pictures?
 
user1804599
No; I'm working.
 
@AlexM. Are you Telkitty puppet? :)
 

« first day (1245 days earlier)      last day (3696 days later) »