« first day (2084 days earlier)      last day (3054 days later) » 

00:35
0
A: Sandbox for Proposed Challenges

VTCAKAVSMoACEString to Base-64 code-golfencodestring Your task is convert a UTF-8 input to a Base-64 encoded String. Rules You may write a program or function. You may not use any built-in libraries for base encoding. Standard loopholes apply. Test Cases >>> b64("PPCG") UFBDRw== >>> b64("This is a lo...

00:48
CMC: from the page on Philosophy on Wikipedia, find the shortest link path to a distinct github repository.
any one.
Philosophy -> Computer Science -> Technology transfer in computer science -> Scala -> Github -> github.org -> any of your repos
requires you have >0 repositories on github and you are signed in
you can't assume that someone is logged in :P
Do citations count?
00:57
sure
Philosophy -> Computer Science -> Programming language -> Programming languages used in most popular websites -> Go (programming language) -> pick any one of the many citations that are github repos
@ConorO'Brien Do links in my bookmark toolbar count? :P
@Geobits haha no
alright, time to do the inverse: from any github repo, get to the philosophy page on wikipedia
Looks like we found ourselves a standard loophole. Congratulations!
@daHugLenny downvotes into oblivion
01:27
What should I call a combination of a stack and a heap? A "steap", or a "hack"?
Why not a "shack"?
@PhiNotPi steap
@PhiNotPi pile
I'm making Cogol 2 right now. (Cogol++?)
Cogol--
01:35
What was cogol 1?
Call it memory
That was actually more of a joke, since it's very much a "hack."
@PhiNotPi not gonna do a c to QFTASM?
@Maltysen I really don't know how to start with that.
01:39
@PhiNotPi clang?
LLVM backend
question: subclass : superclass :: ____ : interface
wat is blank
LLVM supports more language
implementation?
sounds right to me
Anonymous
01:47
@El'endiaStarman VarLife feature request: select and copy/paste/move regions
an extended interface?
Anonymous
Extending an interface would be making another interface that inherits from the interface in question, imo
Well.. that would fit it, since a subclass is an extended superclass.
@ASCII-only I haven't been able to figure out how to do it. It looks extremely complex.
@Downgoat the problem with this is that the subclass/superclass pair refer to each other. Interface doesn't refer to anything
01:59
@PhiNotPi The guide isn't helping?
@NathanMerrill Refer?
which guide again?
@ASCII-only "Subclass" and "superclass" are relative terms. Aka, you can say "X is a superclass of Y" or "Y is a subclass of X". It doesn't really make sense to say "X is an interface of Y".
Oh right, true, similar to "class"
02:16
Ah, the joys of tropical thunderstorms.
No electricity, no fan, can't open the window...
Anonymous
Ooh KSP just went on sale
@Mego Not real simple, unfortunately.
Anonymous
@El'endiaStarman Oh, I know that it won't be. But if you could make it happen, it would be awesome :D
what's VarLife?
oh, variations of life :)
Anonymous
Yep
@El'endiaStarman in the same vein as old man henderson: The Ballad of Edgardo
@Mego Aye. Part of the problem is that I can't really multi-task, even over days. I work best when I have precisely one project at a time.
02:53
@ASCII-only I just... don't know how to apply those instructions to a custom architecture.
@El'endiaStarman me too
@Lynn That will hopefully change before its anniversary.
@PhiNotPi Wait target machine != architecture?
lack of "registers," 4 types of addressing modes, memory addressed by word vs. by bit, and having the instruction pointer be address 0, and instructions having 3 operands are all things I wouldn't know how to do.
@ASCII-only they're the same
03:10
Hmm, right
Anonymous
@El'endiaStarman I can sympathize
@Dennis Check out the size of those diamonds!
This is new...
Is this part of our site design?! :O
03:26
@mbomb007 Did you break your font
yeah, I just hit Martin's page on PPCG
Is this on mobile?
can't duplicate
No. PC.
The red diamonds are overlayed over the character.
Did you update or install a font?
03:28
Nope.
is your vga cable plugged in all the way?
Ohhhhh
I know what it is...
I have an emoji extension... LOL
That's hilarious
From inspecting source: <span class="emoji-inner" style="background: url(chrome-extension://negakbijaemdgbhklopmghphgaeadmpo/data/images/emoji/emoji-‌​data/sheet_emojione_64.png);background-position:2.5% 100%;background-size:4100%">♦</span>
@mbomb007 Why is this a .png!
@ASCII-only OMG LOL! Because I put an ! on both sides :P
Heh. Reminds me of when I upgraded to Android 6. The diamonds were suddenly huge and orange. Looks terrible.
03:31
Stupid browser extension won't stop converting the above code snippet into a diamond...
@mbomb007 Get a better emoji extension?
@ASCII-only Got a suggestion? At least my current one shows guns as guns, not water pistols.
I mostly only use it for viewing, not inserting chars.
@mbomb007 What are you using currently?
Chromoji
Well, case closed. ☺
Dang, that's so weird to see that converted to an emoji. ♦
It's a red diamond like the card suit.
IDK, this uses Google Hangouts emojis, there's also this, but both have input as well so maybe not what you want
03:38
I have input, I just don't use it.
@mbomb007 Why would it even do that
@ASCII-only I have no idea.
Seems like that could be used for an XSS exploit maybe?...
It's rendering html that I typed.
One sec, I'll try to craft one.
<span class="emoji-inner" style="background: url(chrome-extension://negakbijaemdgbhklopmghphgaeadmpo/data/images/emoji/emoji-‌​data/sheet_emojione_64.png);background-position:2.5% 100%;background-size:4100%" onload="alert('hacked!');">♦</span>
Hmm. No dice.
Anyone know an event I can use on a <span>? I can't get any to work in a JSFiddle
It is rendering the HTML, though.
Got it?
It takes a while
@mbomb007 Looked at the source, the alert is there
03:52
FYI, I'm still copying the code from Martin's profile.
I know it is, but it's not executing
I need an event that works.
@mbomb007 This looks really broken with Chromoji
I know
@ASCII-only Here's a fiddle: jsfiddle.net/a8a15xb8/1
So no more recopying the <span>
Onclick works on a normal span
Not working on JSFiddle, trying here: <span class="emoji-inner" style="background: url(chrome-extension://negakbijaemdgbhklopmghphgaeadmpo/data/images/emoji/emoji-‌​data/sheet_emojione_64.png);background-position:2.5% 100%;background-size:4100%" onclick="alert('D:')">♦</span>
Oh no XSS works when it's clicked
Nice
EmojiOne looks like it works much better, no weird grey diamond on Martin's profile, no XSS vulnerability here
04:09
@ConorO'Brien that meta cmc could also be done by 'M',&,_4}.`(}.@|.)\'MetA'$~*&4
Do any of you guys know anything about game development/game structure or SDL?
I've got some stupid questions that would probably get downvoted to dust if I asked on SO.
@WheatWizard what?
There are currently two people with lens flares as Icons in this room
04:19
@ASCII-only what are you trying to do?
Surely chaos will ensue
@WheatWizard eh. At least one of them looks like a star to me.
@WheatWizard Yeah mine is actually an illustration of the big bang
@EᴀsᴛᴇʀʟʏIʀᴋ mbomb has a really bad emoji extension
@AshwinGupta May I recommend:
04:20
@AshwinGupta SDL?
@DJMcMayhem damnit ninja'd I had the room in my room list
@DJMcMayhem ok that I didn't know about. As for GD, I knew but it won't help.
@ASCII-only yeah.
I used SDL maybe 10-15 years ago, but I doubt I remember anything that would help.
Well at least you know what is is. Which brings us to my first question:
What the hell does it do?
04:22
@ASCII-only lol
It's a graphics layer
I mean, okay I can create a window. And handle input. I can do that with GLFW
@ASCII-only I exploited it really bad. Idk if I should share it...
@Geobits tell me like I'm a complete idiot. Because I am. (What is a graphics lair!!!?)
Ok... it's one of many interfaces with the graphics hardware. You don't have to use it. Like I said, I haven't in a long time.
04:23
@AshwinGupta why not?
@EᴀsᴛᴇʀʟʏIʀᴋ because its all stupid little questions. Wouldn't get answers, I'd get downvotes lol.
@Geobits ok interesting. It must do something special though because everyone is like: you must use SDL. Its just that based on their webpage I still can't find anything super special about it.
@AshwinGupta It's a hardware abstraction layer
I mean, maybe it's still relevant in the C world, but that was the last time I used it directly. I'm sure some game engines etc are built on top of it...
Anonymous
You don't have to use SDL directly. In fact, most people would publicly shame you for using SDL directly.
If you want a game engine, find a game engine
Anonymous
04:26
Nowadays we use engines like Unity and Unreal
Meaning you can use it for devices e.g. mice/CD things
Hm. Okay, starting to make sense.
30
Q: SDL versus GLFW?

user697111What are the pros and cons to each? It seems they serve the same purpose. I have a few demos with each and they seem about the same. Performance or cross platform wise, is one better than the other? The only thing I notice is that SDL seems to have more "helper" libraries (fonts, images, mi...

@AshwinGupta For what/where?
@ASCII-only lots of tutorials, youtube comments. Mostly on things regarding basic OpenGL games
What kind of tutorials
04:27
2d platformers and stuff.
What are you trying to do though? If it's game development, find an engine and save yourself a month's worth of headache (at least).
@Geobits yeah, Its for game development (something simple 3d) but I want to learn all the low level stuff you know.
Then use openGL :P
I feel like I'd be cheating to use an engine for the first time without understanding how it works.
Yeah, if you want an engine use Unity3D/Cocos/Unreal
04:28
@Geobits I am.
@AshwinGupta No. This is the wrong way to think about that.
Engines are already pretty low level
I'm terrible at OpenGL, but I'm getting better.
Anonymous
At the bottom of the abstraction layer, you have the actual graphics hardware. Nobody except Microsoft and OpenGL touches that. Then you have DirectX and OpenGL. Hardly anybody uses those directly, either. On top of that, you have stuff like SDL that provides a cross-platform API for interacting with the various graphics libraries (like DX and OpenGL). Hardly anybody directly uses it.
So I mean basically is it a waste of time to learn OpenGL?
Should I work in Unity or something instead?
Anonymous
04:30
Above that you have engines like Unity and Unreal that use libraries like SDL (or their own custom graphics libraries). This is where people work.
@AshwinGupta If you want to make a platformer, then yes. If you want to learn openGL, then no.
Anonymous
I wouldn't say learning OpenGL is a waste of time - learning something new is never a waste of time. You just won't be directly applying that knowledge, since it's much more reasonable to work at the engine level.
I'm not really interested in the end result. I just care about learning the most out of whatever I do.
@Mego ok, I think I'm getting the vibe that I need to be working at higher level.
Anonymous
By all means, learn all that you want about libraries at every abstraction level. But, at the end of the day, know that there are tools for making stuff that make life a lot easier.
For learning purposes, sure, use whatever you want to learn. For commercial purposes, use something higher level unless you have a really good reason not to.
04:32
I've already learned some new stuff from OpenGL tho: matricies, normals (I've not taken many math classes yet so yeah), Vertex buffers, shaders, meshes, how lighting works in games, etc.
Which is mostly stuff a proper engine would do for you ;)
Anonymous
Linear algebra is incredibly important knowledge
Exactly ^^
@Mego well I'm only in Algb2/Trig. In freshmen year at my highschool that is the highest they let us take. I'd assume Linear Algebra is part of Algb2/Trig?
Anonymous
@AshwinGupta Some of it is. A lot of it is usually taught at the college level.
@Mego darnit :(. I basically won't learn it for like 4 years then.
Actually maybe not. I'll take pre-calc next year then calculus junior year. I may learn some. Dunno what I take in my senior year so I may learn some then also.
Anonymous
04:36
I learned about matrices and determinants and solving linear systems via Cramer's Rule in Alg2 (as a high school sophomore). I didn't learn about traces and Gaussian elimination and echelon forms and normal forms until a brief crash course in the middle of Differential Equations in my second year of college, after my professor realized that Linear Algebra wasn't a prerequisite for the class and thus lots of us were missing required knowledge.
Ok next question: what engine should I use? Unity okay? I've already got that one downloaded from a long time ago.
@Mego Thx. Sorry
Anonymous
Take it to the Sandbox if you want to toy with stuff
Anonymous
You should know better :P
Anonymous
04:37
@AshwinGupta Unity is a very popular choice
Yeah, I hear that a lot.
You can use C# and JS in Unity, which is part of the reason, you can also use JS in Cocos
Well I'd never choose to use JS
I'd honestly PREFER Java over everything. But I suppose C# is fine.
@Mego I didn't know such a room existed.
@AshwinGupta here, Ctrl+F -> Java
Anonymous
04:41
> PREFER Java over everything
Anonymous
what
Anonymous
@Geobits quick I need your Java-bashing sass
oh darnnit. Not one of these people.
But Java is bad ;_;
@ASCII-only yeah issue is most of the ones that use Java are not as good as the C#, C++, JS ones.
@ASCII-only ... and this again...
04:43
Seriously? It's intentionally verbose
extends, implements and a lack of type inference all make Java code way longer
See java is very practical in my opinion. You still have relatively low level control without the crazy BS of pointers and crap from C
Anonymous
You don't have low-level control at all
Yeah, C# is the same as Java, just way more concise
Anonymous
You can't even control when an object stops existing
@Mego finalize()
you can manually trigger the trash collector.
Doesn't work on chat yet, because chars are filtered or the URL is converted.
Anonymous
@AshwinGupta That doesn't force garbage collection. That's called by the JVM when it decides to garbage collect the object.
@mbomb007 Not XSS because that's actual HTML
no IK. but I'm saying you can trigger the trash collector and use finalize() to clean up.
04:45
@ConorO'Brien actually, I think this works also 'MetAte'$~1+3*] and is much simpler and shorter
Anonymous
161
A: When is the finalize() method called in Java?

Phill SacreIn general it's best not to rely on finalize() to do any cleaning up etc. According to the Javadoc (which it would be worth reading), it is: Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. As Joachim pointed o...

36
A: how to destroy an object in java?

NambariAnswer E is correct answer. If E is not there, you will soon run out of memory (or) No correct answer. Object should be unreachable to be eligible for GC. JVM will do multiple scans and moving objects from one generation to another generation to determine the eligibility of GC and frees the memo...

Anonymous
You have to go out of your way to get rid of something when you want to get rid of it. Otherwise, you just hand it back to the JVM and hope that it destroys it sometime soon.
Trust. =D
Its like a trust fall. You gotta believe in the JVM.
90% of the time JVM will catch you. 10% of the time you will get a small bruise.
Anonymous
@AshwinGupta Did you read that answer? There is no way to force an object to be garbage collected. At best, you can "suggest" to the JVM that it might want to maybe consider running garbage collection.
04:47
10% is way too much in many situations
Anonymous
I think I'd prefer the small bruise over being in the clutches of the JVM
alright alright, point taken. Java has horrendous garbage collection.
Still does other good things though.
Yeah, but C# > Java IMO
Anonymous
The only time that you have control over when something gets destroyed is when it's a native type (not an Object). That's horrible.
@ASCII-only well, maybe so. I need to learn some C# stuff.
ok bye guys, I'm gonna go play with Unity for a bit before I go to sleep.
Anonymous
04:49
Good luck!
It's pretty much exactly the same, all you need to learn is that you should use var to declare a variable when the typename is too complex, use subclass : superclass, interface1 (etc.) instead of subclass extends superclass implements interface1 (etc.), learn capitalization and other conventions, and learn the standard library
@ASCII-only Okay, it's not cross site, but I can execute arbitrary code.
On anyone's computer who has the extension
I mean the JSFiddle shows it as actual HTML
Escaping it and putting it in a pre doesn't work, unlike on here (didn't test if it worked in a code)
Anonymous
@mbomb007 Or anyone's computer at all
Anonymous
I don't have the extension and it did the alert
04:55
@Mego what?
So it rendered the HTML for you?
I thought only I could see the diamonds.
Yeah, that's what JSFiddle does
Yeah, but I think for it to work outside the FIddle...
On here it was in a <code> tag, you need to escape and wrap in <code></code> for it to be like here
Anonymous
Is the plural of "parity" "parities"?
04:57
59 mins ago, by ASCII-only
Not working on JSFiddle, trying here: <span class="emoji-inner" style="background: url(chrome-extension://negakbijaemdgbhklopmghphgaeadmpo/data/images/emoji/emoji-‌​data/sheet_emojione_64.png);background-position:2.5% 100%;background-size:4100%" onclick="alert('D:')">♦</span>
Anonymous
@DJMcMayhem Yes
Thanks. That's what I thought, but it looked weird.
@mbomb007 Yeah, I escaped it and put it in a pre tag
Anonymous
I only have a handful of extensions on Chrome (Chrono, Cache Killer, Tampermonkey, TeX The World)
Anonymous
Definitely no emoji extension
05:00
@Mego Does Chrono support download resuming?
Anonymous
@ASCII-only Yes
Anonymous
That's why I use it :P
@Mego I never knew there was an extension for that
Anonymous
Yep, it's essential
0
A: Sandbox for Proposed Challenges

Wheat WizardDetermine if a system is Cashier complete The Cashier's Algorithm is an algorithm for making change in the minimal number of coins that works quite well for most currency systems. However like most greedy algorithms it is not without its flaws. If a currency system is set up just right (or jus...

05:16
Does anyone understand this weird Julia error?
@DJMcMayhem Yeah, Julia is 1-based, use [1]
Oh. Duh. Haha, that's a hilariously simple error.
Last Julia question. What's the equivalent of python's str[2:]?
Other than something like str[d:len(str)] which looks really ugly IMO
nvmd. It's str[2:end]
@Mego I'm a bit sorry I missed that, but are you sure you wanted me for Java bashing? :P
Anonymous
@Geobits The other usual suspects were missing
So I'm just your standby Java basher? :(
05:30
@Mego The other usual suspects?
Anonymous
No, you're part of a committee of Java bashers. The rest aren't here right now, so the entire responsibility fell upon your shoulders. Since you failed... You might just get demoted to standby Java basher :P
Anonymous
@ASCII-only Yes
@Mego Like who
I didn't even know I was on the committee, tbh. Java's got flaws, but so does everything else.
Like python. Especially python ;)
Committee? Is it where everyone decides together how to bash Java
05:32
Or Javascript. Or C#. But especially python.
Wait C# is bad? D:
What languages are good then?
All of them are bad, just in different ways.
C# is just microsoft's "I wanna be Java" though, so it's automatically bad.
I thought anything to do with MS is automatically bad
Not everything... there are plenty of good uses for Kinects for instance.
Anyway, the bed is calling. On the morrow, then.
Anonymous
@Geobits They look cool when you smash them
Anonymous
05:37
Or when you arrange a huge array of them to do realtime 3D scans
Anonymous
But they're essentially useless for their intended purpose as a console accessory
Anonymous
We don't have good programming languages yet. We can't have them yet, because we haven't finished making all of the bad languages yet. Luckily, PPCG contributes a significant amount of bad languages to advance our progress towards the good languages.
Define good programming language
Halp I need a pretty prefix operator syntax
I was thinking Lisp ((* 3 3)) but Lisp
CMC: Best Simpsons episode.
0
Q: EvenSt-ring C ode - g ol!f

DJMcMayhemAn 'Even string' is any string where the parity of the ASCII values of the characters is always alternating. For example, the string EvenSt-ring$! is an even-string because the ASCII values of the characters are: 69 118 101 110 83 116 45 114 105 110 103 36 33 And the parities of these numbers ...

05:50
@HelkaHomba answer: none of them
@NewMainPosts interesting that #define is even.
CMC: What's the longest "even" english word?
@DJMcMayhem Pls wait like 3 hours when I get to charge my laptop again
0
Q: "Prediction" tag

Joe Z.I'm trying to create a new challenge type called prediction. This is a very specific challenge that involves creating functions that try to match a given functions, but under memory constraints that make it impossible to just compute the value. This was a thing back in 2014 (when people voted to...

0
A: Sandbox for Proposed Challenges

Joe Z.I'm going to use this for my next (few) prediction challenge(s) just to make sure that they're airtight before I post them this time. Guess the nth digit of pi in binary prediction The number π has been computed to millions of decimal places. Your task is to create a function that will predict...

@DJMcMayhem abutilon
06:03
nice, how'd you find that?
consecutive pairs of letters?
peroxide
baritone
definite
@EᴀsᴛᴇʀʟʏIʀᴋ I wrote a script and passed it over a dictionary I have
I usually use grep for dictionary CMCs :P
06:18
@DJMcMayhem The longest sentence I could come up with is:
hatching lobsters vexingly populate juvenile foxglove
06:39
@WheatWizard Haha, that's amazing. I'm gonna have to steal that
06:53
easy to beat if <s-tab> is one, but i want to keep my byte definition :(
that said, even sticking to ascii, if i could assume a line shorter than 1000 characters...

« first day (2084 days earlier)      last day (3054 days later) »