« first day (793 days earlier)      last day (4155 days later) » 

user142019
6:01 PM
My code is bad and I should feel bad.
 
user142019
So much duplicate code. ;_;
 
Wait. South Park: The Stick of Truth is made by Obsidian?
I am suddenly interested with this game.
Damn, comes out in March. It's like every nice game comes out in March. How am I going to find the time to play?
 
@EtiennedeMartel save up time now so you can spend it all in March when the games are
 
Well, actually, here's how it's going to play out: I'm looking forward to SimCity, Heart of the Swarm and now The Stick of Truth.
Original plan was: Since I don't like 1v1s on SC2, then I can play SimCity when none of my friends are available to play.
 
user142019
Bitbucket's issue tracker can predict the future!
 
user142019
6:14 PM
 
But SimCity's the kind of game you can play in small increments, so I can inject some South Park in there.
This plan's gonna work.
Oh, wait. Metro: Last Light comes out in March too? Damn it!
 
harhar
 
@EtiennedeMartel Are you sure?
 
uPwned
 
@EtiennedeMartel "On November 5, 2012, THQ announced that the game has been delayed to the April 30, 2013." "Although being stated to be released in April, GameStop and other companies have claimed it will release on March 5, 2013." en.wikipedia.org/wiki/South_Park:_The_Stick_of_Truth
 
6:15 PM
I had the impression SimCity was the kind of game you played in "oh shit the sun is rising" increments.
 
@Zoidberg'-- Submit to TDWTF.
 
user142019
nah
 
@R.MartinhoFernandes Don't you dare mess up my plan.
The multicity play might make things a bit more complicated, though.
@MooingDuck Well, damn.
 
@EtiennedeMartel Hey, I am not the sun messing up your plan: the sun is.
 
Damn THQ and their financial issues.
 
6:38 PM
@R.MartinhoFernandes that happens to me with the civ games
 
There's RPG Maker on Steam
What's happening
And some photo editing crap
 
Hei
 
You're late to the party.
 
@CatPlusPlus Yeah, it's other not games on steam
what was that sleigh animation?
 
Something that's been around like 2 weeks already
Dec 9 at 12:56, by Cat Plus Plus
What the fuck just happened did you see that
At least since 9th
 
6:54 PM
@Collin Christmas!
 
Late to the party?
 
There's been this kind of shit for sale on Steam for ages now.
 
@Insilico He burned other side of his face when he tried to call ambulance.
 
@CatPlusPlus You are quite late to the party.
 
Slow Cat.
 
7:06 PM
Oct 2 at 19:09, by R. Martinho Fernandes
Oh, Steam Software is live now.
 
:(
I'm again almost out of tea
Waaah
 
I still have some.
:P
 
sbi
@DeadMG What?
 
user142019
muh tea
 
user142019
tastes like boiling water
 
7:11 PM
Maybe you were drinking boiling water not tea
 
user142019
lol
 
@Zoidberg'-- I'm starting to believe that you have no taste buds on your tongue.
 
@EtiennedeMartel Must be from all that boiling water
Don't drink boiling water it's not healthy
 
It hurts as fuck.
 
sbi
@thecoshman Not sure what this was all about, but here I am to speak for myself. What's the matter?
@R.MartinhoFernandes Really, why do you remember such arcane trivia?
 
7:19 PM
It's not really that arcane if you visit YT often enough
 
@sbi It's not like I make an effort :(
 
sbi
@DeadMG Oy! 15 years? LOL! 10 years ago BCB was at its pivot point. (That was BCB6, I think.) As a RAD tool, BCB was quite impressive. I still have the BCB6 box lying around on some shelf. Borland/Inprise/CodeGear/Embarcadero/God/WTF gave it to me for free, because I found a few bugs in some closed beta program. I am not sure I ever installed it, though.
 
Hola!
 
sbi
9 hours ago, by R. Martinho Fernandes
Shit, I think I burned my tongue.
 
Hey folks, I've tried a few different keywords when searching but I can't find what I'm looking for:

I want to take my beautifully formatted, readable code and strip it of all the text-formatting that makes it structured and readable. So when others try to view my code (Viewing Source Code in browser), it looks distorted and difficult to interpret by a human. I can't seem to find a simple tool that will do this for me.
 
7:23 PM
Search for obfuscation.
 
Try putting it in the bin.
 
@DiscreteGenius Why do you want that?
I like this question, TYVM.
 
user142019
@DiscreteGenius why? You know people can just click inspect element right?
 
@DiscreteGenius Wait. Are you talking about HTML or JavaScript or something?
 
sbi
@R.MartinhoFernandes I know of two free Borland compilers that they gave away for free. One even with the IDE.
 
7:24 PM
Nobody views source to copy code from webpages, that's stupid
If you want marked up code, there will be markup in the source
That's how this works
 
@CatPlusPlus "compressing" your js by obfuscation is a common optimization
 
What?
 
If nobody used source to copy code from pages then nobody would "obfuscate" their code. And its obvious people do that.
 
sbi
@MarkGarcia What's on that first tab?
 
@DiscreteGenius to make the download smaller
 
7:26 PM
Also, it helps remove unwanted, unneeded size from the files.
 
Okay, what the fuck are we talking about, code snippets in blog posts (or whatever) or some other shit
 
user142019
@DiscreteGenius uh the people who do that to prevent others from copying the HTML are idiots.
 
@DiscreteGenius Oh, you mean minifying JS? That's to reduce the download size.
 
@DiscreteGenius What people usually do is called "minification" and it is done to reduce size, not to make anything hard to read (reversing the process is quite simple)
 
sbi
@sehe Yeah, I was actually wondering whether @jalf's account was hacked when i saw this.
 
7:26 PM
@DiscreteGenius Alright, so give us context. Then we'll talk. Because currently we're just throwing stuff in the dark.
 
user142019
@R.MartinhoFernandes I know, and that's not what I said. I was talking about preventing others from copying HTML.
 
user142019
Which is IMPOSSIBRU.
 
How can you un"obfuscate" code ?
 
sbi
He's not giving away the precious context. He's @discrete about it.
SCNR.
 
By applying the same mechanical transformations in reverse
 
7:27 PM
@DiscreteGenius you just run a code formatter.. it's not going to recover the original variable names, but it'll be followable anyway
 
Anyway, there are better rooms to discuss this.
 
user142019
Such as the bin.
 
@DiscreteGenius, for HTML you just open the inspector and et voilà...
 
There's very little information lost in obfuscation process
Also I have no idea what the original question is about
 
7:28 PM

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
cough
 
@R.MartinhoFernandes There are other rooms to discuss this but I felt it necessary to discuss it here.
 
user142019
wat
 
@R.MartinhoFernandes Mainly because I know how sensitive you guys are :)
 
If this is really about obfuscating JS then we don't care
 
7:28 PM
Has nothing to do with JS
 
Then why did you mention viewing source in the browser?
 
What do you want to obfuscate then?
 
And if you're obfuscating C++ then I don't know what to say
 
@DiscreteGenius Oh fuck off.
 
Because that was an EXAMPLE.
 
7:29 PM
Example of what
 
user142019
C++ code is always obfuscated.
 
Of what I was looking for.
 
STATE THE QUESTION PROPERLY
Or get out
 
@Zoidberg'-- :) very clever
 
user142019
or tits
 
7:29 PM
@CatPlusPlus I did state the question properly, and hence I got my answer I was looking for.
 
Great
 
I'm so confused
2
 
No you did not. Now get the fuck out.
Go troll somewhere else.
 
I wasn't familiar with the term Obfuscate so I had to user the view in browser example.
 
Did you know "s" is a letter
 
user142019
7:30 PM
Nope.
 
Fucking hell, stop messing around and tell us what you're trying to do.
 
If you want to make C++ harder to read, there is a tool called compiler.
5
 
Guess what, I had a problem: I was looking for a tool that allowed me to "obfuscate" my code. I laid out the question plainly, clearly and simply, and instantly I obtained my answer.
 
S
S (named ess , spelled es- in compound words; plural esses) is the nineteenth (19th) letter in the ISO basic Latin alphabet. History {| border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse;text-align:center;" |- bgcolor="#EEEEEE" ! Phoenician shin ! Etruscan S ! Greek Sigma |----- | | | |} Semitic Šîn ("teeth") represented a voiceless postalveolar fricative (as in ship). Greek did not have this sound, so the Greek sigma (Σ) came to represent . In Etruscan and Latin, the value was maintained, and only in modern languages has the letter been used to repres...
esses
 
@EtiennedeMartel I am trying to obfuscate my code.
 
user142019
7:31 PM
Why.
 
That makes zero sense. Why isn't this over yet?
 
Speaking of letters
 
Maybe he is IOCC contestant wannabe?
 
@EtiennedeMartel because I think its cool, and I wanted to show someone else.
 
If you don't want people to see your code don't give it to them.
 
7:32 PM
Did puppy record those different pronunciations of th
 
@DiscreteGenius Because you think it's cool?
 
@CatPlusPlus lol, no.
 
user142019
The computer must still be able to interpret it so you can always unobfuscate it.
 
He wants to show how 1337 he is
 
Because I forgot about it and it's infinitely more interesting that this obfuscating crap
 
7:32 PM
@R.MartinhoFernandes he's been talking about something browsers render the whole time, so the C++ arguments are not relevant
 
@MooingDuck In that case, I showed him the JS room.
 
Nobody knows what he's been talking about
 
Tits
 
@CatPlusPlus I know
 
user142019
30
A: How can I obfuscate JavaScript?

SchwernObfuscation can never really work. For anyone who really wants to get at your code, it's just a speed bump. Worse, it keeps your users from fixing bugs (and shipping them back to you) and makes it harder for you to diagnose problems in the field. Its a waste of your time and money. Write a li...

 
@R.MartinhoFernandes he claims it wasn't javascript, so my assumption was HTML
 
@Zoidberg'-- It's not about JS. I think. Maybe.
 
@MooingDuck So I should show him some other room.
 
Obfuscating HTML makes no sense at all
 
I'm confused.
 
7:34 PM
@Jeffrey can we drop this?
 
And he's taking his sweet fucking time to explain it.
 
user142019
I'm obfused.
 
@sbi For the record "Discrete" means individual, distinct.. It's not the same as "Discreet".
 
For the record, we like puns.
 
@EtiennedeMartel @DiscreteGenius used obfuscation. It was super efective.
 
user142019
7:35 PM
Jon Diskeet
 
Fucking hell.
Hmm, I'm saying that a lot.
 
user142019
that that Me that too that that that.
 
sbi
@R.MartinhoFernandes Hey, no tits in this room! Some of us are in here from work!
 
I got from article on letter s to articles on heraldry
 
Anyway, Wunderbar! Thanks for the laughs and the help with obfuscation. I know I can always count on the crazy folks in the C++ Lounge.
 
7:36 PM
@sbi Go home!
Why isn't he gone yet?
 
Should Discrete go on the troll list?
 
sbi
@R.MartinhoFernandes Oh, I wasn't even at work today. I did something far more important today: I got Q3A running on my machine. Yay!
 
@MooingDuck I was considering that.
 
Troll huh? I like the sound of that.
 
@DiscreteGenius Don't count on it, actually. Next time you pull that kind of shit, I'm binning everything.
 
7:37 PM
@MooingDuck definitely
 
Now, where was that link?
Ah.
 
S
S (named ess , spelled es- in compound words; plural esses) is the nineteenth (19th) letter in the ISO basic Latin alphabet. History {| border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse;text-align:center;" |- bgcolor="#EEEEEE" ! Phoenician shin ! Etruscan S ! Greek Sigma |----- | | | |} Semitic Šîn ("teeth") represented a voiceless postalveolar fricative (as in ship). Greek did not have this sound, so the Greek sigma (Σ) came to represent . In Etruscan and Latin, the value was maintained, and only in modern languages has the letter been used to repres...
 
Very well then.
 
Oh shit, this wiki markup is awful.
@CatPlusPlus Are you in a loop?
 
7:38 PM
I'm in denial
 
@CatPlusPlus I still can't figure out what s you think he's missing
 
Also ministry is a success: both have disappeared completely
 
Trolls eventually grow up
 
MiniShame.
 
I wish we could ban them to give them plenty of time to grow up
Like, whole life
 
7:41 PM
@R.MartinhoFernandes I think we're the only ones here who read that fucking book.
 
user142019
It has been quite quiet though this month. Nobody who came in here I had to actually ignore.
 
So let me get this straight: You don't like me because I asked a question and you don't understand its purpose?
 
user142019
... but that might change. :^)
 
@DiscreteGenius, you are making it worse. Just stop talking about it...
 
7:42 PM
@DiscreteGenius because you asked an unclear question and refused to clarify. There was three valid answers being kicked around because we couldn't figure out the context. You never did clarify.
@DiscreteGenius I came to believe the correct answer was "can't be done".
 
sbi
@DiscreteGenius See, it's like on SO, only less formal. There, if you keep asking questions that people don't understand, they'll just downvote you until you are banned from asking questions altogether. Here, we just mock you. And if that doesn't make you go away, we put you on our ignore lists. Problem solved.
 
Sometimes a question is just a question, it has no real purpose except to be known.
 
sbi
It still has to be asked in a way to be answerable, though, or it's not answerable.
You'd think this was obvious.
 
My question was answered, almost instantaneously.
It was literally answered in less than 10 seconds.
 
sbi
Then why the hell do you keep pestering us with it?
 
7:45 PM
 
Because you're begging for it.
 
@DiscreteGenius Did I look like I fucking understood the question?
 
user142019
First plonk of December. :^D
 
@EtiennedeMartel, oh God, stahp...
 
sbi
@EtiennedeMartel Ugh. That looks very unhealthy.
 
7:45 PM
Obfuscation..it's self explanatory.
 
Your question is worth
 
@CatPlusPlus Ow.
They had one dollar bills?
 
@R.MartinhoFernandes It's OK if you didn't understand the question.
 
@DiscreteGenius in fact, it was given many answers, because nobody understood the question, so we guessed
 
7:46 PM
It's fuel
:v
 
user142019
Isn't that like one billionth USD?
 
@DiscreteGenius I think if anything, they are begging for you to go away and stop being an idiot
 
It costs 3 USD now
 
@sbi But it tastes sooooooo good. :)
 
@R.MartinhoFernandes In fact, you were the first person to tell me "Search for obfuscation." So you clearly understood what I was asking for.
 
sbi
7:48 PM
@jalf No, I don't beg for this. I beg for all of you who have too much time at hand to use the plonking feature to stop talking to him. Thanks you.
 
@Zoidberg'-- Well, just consider it comes from where they had trillion dollar bills that would buy you three eggs.
 
I don't bow down to ridicule, no matter the consequence.
 
@DiscreteGenius For fuck sake, if it is not clear to you I will state it plainly: I did not fucking understand the question.
 
user142019
@CatPlusPlus lol
 
7:48 PM
@R.MartinhoFernandes Regardless, you gave the correct answer.
 
@DiscreteGenius No one is asking you to bow down to anything. Just to stop acting like an idiot
 
I don't fucking care.
 
@jalf And that would be ridicule.
 
@DiscreteGenius no. It would be asking you to stop acting like an idiot
 
Guys guys guys
 
7:49 PM
@jalf If you're 8 years old, then yes.
 
I know I am that awesome but that is not relevant.
 
Just fucking shut up already
 
If the people here wanted to ridicule you, they could do a lot better. You are being told nicely that the crap you are polluting this room with just doesn't belong here.
 
Looks like poo
 
7:49 PM
@jalf I'm sorry, nobody on here can actually ridicule me.
 
user142019
@Jeffrey For a moment I thought it was diarrhoea with dog shit.
 
@sbi Oh. Sounds like fun.
 
sbi
Really, now you've done it. You've dragged @jalf into this. This is gonna spoil the room for hours.
Please somebody ping me when this is over...
 
33 secs ago, by Cat Plus Plus
Looks like poo
 
7:50 PM
If I had more time I would definitely stick around. Fortunately for you guys, I gotta go! Adios!
 
(Not pinging you because it is over)
 
@DiscreteGenius he gave an answer you thought was correct. I still hold that that answer is incorrect.
 
sbi
@R.MartinhoFernandes What happened? Somebody shot jqlf?
 
@DiscreteGenius Bye. And please, don't come back.
 
sbi
@R.MartinhoFernandes You idiot!
 
7:51 PM
@DiscreteGenius your question wa so easy to answer nobody believes they were able to answer it properly. Everyone thinks you wanted to do some complicted or very stupid thing using obfuscation
 
The answer is correct. Get over it!
 
@DiscreteGenius you appear to not know what that word means
 
Aww you poor things.
I'm sorry for upsetting your morning. Please forgive me.
 
@DiscreteGenius You still don't see why we want you the fuck out?
4
 
It's evening here
 
7:51 PM
This is really going too far...
 
@R.MartinhoFernandes :) cheers, mate!
 
@Zoidberg'--, it is a sauce made with bread crumbs, beef marrow, butter, broth and pepper...
 
Where's the exit button? How do I leave this chat room?
lol
 
Who flagged that?
 
7:52 PM
@DiscreteGenius upper right under "C++" is "leave"
 
@MooingDuck Thanks
 
Click faster scrubs
 
user142019
lol
 
On a side note, is pre allocating some memory, you might not entirely use, a good idea?
 
user142019
Depends.
 
7:58 PM
For example in a game, pre allocating the space for an array of enemy objects (like 100) when you will mostly like see 10-20 of them at the same time
 
user142019
Use std::vector.
 
@Jeffrey it depends. :)
 
Yes, preallocating might be a good idea
 
MiniShame was updated.
 
At least you'll not have to bother about running out of memory right?
 
8:01 PM
Unused memory can be swapped out by the OS
 
... you mean if you don't pre allocate?
 
Whether you preallocate or not
Preallocating only uses up virtual memory
Not necessarily physical RAM
 
@CatPlusPlus Depends too much on the internal state of the memory allocator to know whether it will or not.
 
@CatPlusPlus, oh. So the addresses of the enemy objects array would be virtual addresses?
 
@DeadMG Whether what will what
 
Time to do another wiki purge
 
@Jeffrey Everything is a virtual address.
 
@R.MartinhoFernandes If we're going the 1984 route, we'll have to rename that.
Should be MiniFame.
As an upside, anyone on there would actually be quite (in)famous, so the irony works.
 
@EtiennedeMartel lol
 
@CatPlusPlus Whether preallocation will consume additional physical RAM.
 
8:08 PM
@R.MartinhoFernandes, so technically I could declare Enemy enemies[100] and Enemy enemies[1000] and if the entire game uses only 20 there's no cons?
 
Even if OS commits it they will be swapped out if unused
so whatever
Don't use arrays
 
user142019
Style-arrays are bad and you should feel bad.
 
@CatPlusPlus Only if they occupy an individual page(s).
 
user142019
Use std::vector and optimize only if you find out the allocation is the biggest bottleneck.
 
@Jeffrey The giant cons here are: Shitty C-style array, and unnecessary cap.
just use a std::vector.
 
8:10 PM
Ok will do.
 
user142019
Good boy.
 
Wait
 
user142019
lol
 
user142019
std::vector<Enemy> enemies;
 
sbi
That's one enemy vector you have there.
 
user142019
8:11 PM
You can do enemies.reserve(20); if you know there will be 20 enemies and it will allocate at least enough room for 20 enemies.
 
user142019
Then just push_back the enemies as you want to add them.
 
I see...
 
besides
the probability that this will be a significant speed issue for you is, well, minimal.
 
sbi
:6751226 Usually you don't. When, after profiling, you found that resizing the vector is too slow. You can reserve() space in it. Get a good book!
 
user142019
std::vector<Enemy> enemies;
enemies.reserve(20);
for (int i = 0; i < 20; ++i) {
    enemies.emplace_back(random_coordinate(), 100);
}
 
user142019
8:13 PM
Something like that.
 
Now it makes sense. Thanks
 
user142019
Assuming you have Enemy::Enemy(Coordinate coor, int health) ctor or something.
 
user142019
emplace_back forwards the arguments to the ctor of Enemy.
 
sbi
@Jeffrey It made sense all the time. Only you didn't get it. :)
 
user142019
Note that reserve is optional; it's merely an optimization.
 
8:16 PM
Is anyone maintaining that wiki copy of the book list
Probably not since there's no C++11 entries
 
sbi
@CatPlusPlus What? Which copy?
 
user142019
No it can't lol. Stupid std::bad_alloc.
 
Oh hum there are other books there too
 
user142019
Isn't it redundant and chaotic to have two versions of the book list?
 
sbi
@CatPlusPlus What? Which copy?
 
8:20 PM
I restored it without the duplicates
 
sbi
@CatPlusPlus There's no C++ list.
 
There was
I nuked it :v
 
sbi
Good.
 
I don't know what this is and whether anyone needs it loungecpp.wikidot.com/faq
 
user142019
8:27 PM
lol it says cout « ++i « i « i++
 
Archived in any case
 
@Borgleader Je connais. Hilarant.
 
posted on December 17, 2012 by Eric Battalio

Hello. Welcome to the first "in the community" posts spotlighting members of the C++ and/or developer community. Today we meet Kenny Kerr and a Microsoft MVP who graciously agreed to "go first" :) Kenny is a computer programmer with a bias toward Windows and C++. He enjoys writing and teaching developers how to get the most out of Windows with C++. Kenny has published numerous articles about t

 
8:46 PM
Anyone know of a lua-like language but without metatables?
 
JavaScript?
 
What're metatables? :o
 
@StackedCrooked :(
 
Metatables are murdertables.
 
@ThePhD Database schema?
 
8:49 PM
@ThePhD each "object" in Lua has a "metatable" that defines how operators work on this class, and what to do if someone tries to access a member that isn't defined, and some other stuff.
 
o_O
 
@MooingDuck So basically, without every advanced feature Lua has.
so all you'd be able to do is, well, basically nothing of any interest.
 
Sounds kinda cool.
You could probably use Metatables for Reflection then..
Hah, that's actually pretty sweet.
 
@DeadMG I didn't mean "without the advanced stuff", I meant "Did the advanced stuff in a completely different way"
 
@Zoidberg'-- Sometimes, when I want to write reserve, I write reverse, lol
 
8:50 PM
@ThePhD for reflection in lua, you don't actually need the metatables.
 
Maybe Lisp or Tcl might fit your case.
 
I almost read Tcl as Tlc.
Haha, Tender Loving Code.
 
@DeadMG for instance, just say A + B calls A.plus(B), and forget the metatable.
 
@MooingDuck So simply write the metatable so that getmetatable(A).__plus = function(A, B) return A.plus(B) end.
 
@MooingDuck define lua like?
 
8:52 PM
@Zoidberg'-- Isn't JavaScript obfuscated enough as it is? :)
@ThePhD TLC means Tables, Ladders and Chairs, right? :)
 
Hmm, I need 1 rep to reach the repcap.
 
A Tables, Ladders, and Chairs match, often abbreviated as a TLC, is a type of professional wrestling match originated within WWE, but can be seen under different variations in other wrestling promotions. History The TLC match is a variation of a ladder match, which is modified to co-emphasize two other weapons: tables and chairs. The goal is to acquire the item (usually championship belts) which starts the match suspended above the ring. A TLC match can be seen as a more complicated ladder match, where tables and chairs, along with ladders, can also be used as legal foreign objects. As ...
 
@FredOverflow Yeah, all the things you'd use to Wrestle with! Like in that wiki article ^
 
@Borgleader I'm not certain exactly. I just really like lua, but find metatables unintuitive
 
8:55 PM
Is garlic really good against the common cold, or is that just a myth?
 
@DeadMG That's effectively what I was looking for, but I'd have to do that on every object ever. I was hoping for a language-level solution
@FredOverflow myth
 
@MooingDuck It's called "Change the Lua source code".
 
@FredOverflow s/common cold/vampires/
 
@MooingDuck Damnit, I ate 4 garlics (don't know the unit in English) today for nothing? :(
 
The unit?
There is a unit for garlic?
 
8:56 PM
clove
 
Oh.
That unit.
 
Right, that's what I was looking for.
 
@DeadMG So the answer is no, you don't know of a language like what I was looking for.
 
@FredOverflow Not for nothing. Now your breath is incredible.
 
@FredOverflow AFAIK all common cold cures are fake. Medication can relieve symptoms. Washing your hands can help to prevent it.
 
8:58 PM
@MooingDuck You're looking for "Language X but ever so slightly modified in a very specific fashion.". It's almost certainly not done.
 
@R.MartinhoFernandes You could have left the "common" in place ;)
 
@FredOverflow Because we all know it takes silver to kill the more badass vampires.
 

« first day (793 days earlier)      last day (4155 days later) »