« first day (2149 days earlier)      last day (2696 days later) » 

12:45 AM
ded chat
 
I have that effect on chats
 
-1
Q: c++ programming

user63489write a c program to compute the impedance Z and the inductance L for the electrical coil,given the voltage V,current I(amps),resistance R(ohms) and frequency F(cycles/seconds) for six different circuits.this program demonstrates the use of repetition controlled by a counter.the coil is in the se...

 
casts Resurrection spell on chat
 
roll for effectiveness
 
Rolled a 11
 
12:50 AM
@PhiNotPi Resurrection spell = pun? :P
 
@Downgoat how much of that is supposed to be interactive
also there's a doubled scrollbar on the right
 
@PhiNotPi can you take screenshot?
@PhiNotPi a lot of it doesn't work, just getting CSS done atm
 
huh that is super weird
browser?
@PhiNotPi btw, try creating "node" to see stuff
 
@Downgoat Chrome on Windows
@Downgoat scrollbar is normal
 
1:13 AM
@Downgoat Description shouldn't be a mandatory field.
The filter thingie at the left is huge and not resizable.
On mobile and with the keyboard open, text overflows in the name/description dialog. So does the arrow.
Finally, back/forward aren't working like they're supposed to.
 
@Dennis It is not hidden?
 
It is on mobile. I looked at it on two devices.
 
3
Q: Print the f by f times table

Challenger5Your task is to print the hexidecimal times table: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 00 02 04 06 08 0a 0c 0e 10 12 14 16 18 1a 1c 1e 00 03 06 09 0c 0f 12 15 18 1b 1e 21 24 27 2a 2d 00 04 08 0c 10 14 18 1c 20 24 28 2c 30 34 38 3c ...

 
On the desktop, it's huge.
 
@Dennis hm. can you tell me the device model?
 
1:20 AM
A Nexus 6 (overflowing text) and my desktop computer (huge left area).
 
@Dennis yeah, just noticed the sidebar expands way to quickly. will have to set max-width
 
Idea: customizable UI layout. All data is placed in one featureless line and users are expected to write their own script to display it how they like.
 
:/ This is website not ZSH
 
@feersum they can have preset templates (from 3rd party store), and associate one with each website
a website can also set a default and serve it if they want
 
But then 2 websites would have to be exactly the same.
 
1:29 AM
@feersum well, it will take a lot more defining semantic attributes on each field, but I think it should be possible to have them fall into place properly based on the templates
like hamburger menu vs. bar up top is already possible (for mobile vs. desktop) because of html <nav>
I say we extend that way further
 
That's the way the web already works. There's nothing stopping you ignoring the web design and using your own default css for a page (and/or custom css for specific pages).
 
@JamesHolderness yes, but its not standardized
you'll have to write your own css for every webpage that you (for example) wasn to switch from layout a to layout b
 
Not really. That's the whole point of HTML5 being more semantic. You markup which parts of the page are navigation or footer or sidebars or whatever, and someone can have a generic stylesheet that works reasonably well with every page.
 
wat
what has this come to
 
Not so much with web apps, but anything that's primarily content should work.
 
1:37 AM
@JamesHolderness well, yes but its not semantic enough
not even close
 
@Dennis to double check, you don't see hamburger menu like above?
 
Yes, I see it (on mobile).
 
@Dennis also, when you say text overflows, you mean that like the text expands past the <input>'s bounds?
@Dennis oh wait ok, sorry, misread >_>
 
Yes, vertically.
 
O_o
 
1:42 AM
Well, it doesn't really overflow. It gets cropped. I'll send you a screenshot.
 
hm, ok, thanks
 
0
Q: Every nth prime number up to 8675309

cascading-styleRead this if you're confused. Challenge: The goal of this code-golf is based around the number 8675309... Your goal is to print out every prime number from 2 to 8675309, starting with the number 2 and then skipping 8 prime numbers, then skipping 6, then skipping 7, etc. In essence, skip a numb...

 
@Dennis you ninjad me in the sandbox by 7 seconds... :)
 
Sandbox?
 
Oh that's already on main. Wishful thinking I guess...
 
1:56 AM
Heh, yeah.
Put it on hold. That's a kind of sandboxing, I guess.
 
Oops. I deleted my comment as a near exact duplicate of yours, but the response from the author refers to mine...
One of those times where I ask a question fully expecting the answer to be "no", just to point it out more politely, then get the answer "yes" and don't know what to do with it.
 
wat
2:38 AM
my french course has cute babies
 
2:49 AM
@wat I thought you were referring to baby goats and got excited for a second :(
 
As cute as baby goats are, they don't stand a chance against human babies.
@TimmyD Thank you! :)
 
wat
@Downgoat Just for you:
 
:D
 
wat
@Downgoat
 
clearly this is objective proof goat animal is best animal
 
3:15 AM
@Dennis even I know that's wrong
human babies are little screaming pale but somehow red in the face bundles of hatred for life in general
 
wat
got a new access point yay
 
\o/
 
cheddar> a
[1, 2, 3]
cheddar> a[-1]
3
:D circular indexes work
 
wat
@Downgoat main advantage of cheddar over ruby?
 
3:20 AM
> small sweet baby
:/
@wat ruby syntax can be cryptic at times. Cheddar is heavily inspired by Ruby but is designed to be better for more large-scale programs and have very clear, but concise internals
 
@wat I see nothing endearing about this
 
^
 
@EᴀsᴛᴇʀʟʏIʀᴋ But they're still adorable. If they weren't the human race would have gone extinct a long time ago.
@EᴀsᴛᴇʀʟʏIʀᴋ Wait a few years.
 
WTAF UN
@mod can this be fixed?:

 Cheddar

For discussion of the design and development of the Cheddar pr...
@Dennis haha, that is not problem for us, since we are cat and goat :D :P
 
Without us opening cans of cat food, you'd both starve. :P
 
3:29 AM
Damn. That's so much better than what I was going to say :D
 
@Dennis Goats do not need tin can to be open to eat it??
let $ = ::document.querySelectorAll,
    { forEach, map } = [];

$(".goat")::forEach(::console.log);
bind operator is best operator
 
wat
halp my ap isnt being detected by vWLC
 
I can't tell if request for help or statement :|
 
wat
@Downgoat request for help
 
3:39 AM
@Dennis -1 doesn't consider I can eat goat if hungry
no offense goat but tbf you are meat
cat will eat goat meat if starving
@Downgoat cat make deal: you eat lid off can, cat eat inside of can
 
I think a goat would probably headbutt a cat before it could get a chance to hamstring it
 
@EᴀsᴛᴇʀʟʏIʀᴋ you are also meat and I am bigger with horn
@EᴀsᴛᴇʀʟʏIʀᴋ +1 symbiotic relationships ftw
 
A goat wouldn't eat a cat even if starving
 
@Downgoat could you add this map to the tf2 server? steamcommunity.com/sharedfiles/filedetails/?id=467144991
 
Even if you can get into the cans... humans are the ones making them. Current stock won't last forever.
 
3:47 AM
No we can't do anything because goat is eating cheese
direct quote
 
@Geobits goat are not stupid
we. Can click button to start production
 
But where are you going to get all that aluminum
 
Idk
Limited aluminum is hoax created by Chinese sheep
 
cool
 
3:55 AM
@Downgoat can you fix things now
also you never said what kind of cheese
 
0
Q: Golf a recursive web crawler

Crazy HackerChallenge Create a program that will build a recursive list of all linked webpages (given a starting point), to a depth determined by user input. Any valid link in the HTML should be crawled, whether or not it is a script, image, etc. Example Input <program name> <url to crawl> <depth> webcraw...

 
4:23 AM
0
Q: Repeat after me!

Super ChafouinGiven a string as argument, output the length of the longest(s) non-overlapping repeated substring(s) or zero if there is no such string. Examples abcdefabc : the substring abc is repeated at positions 1 and 7, so the program should output 3 abcabcabcabcab : abcabc or bcabca or cabcab are repe...

 
4:43 AM
CMC: print input twice with a newline between
 
wat
@DJMcMayhem Ruby: puts gets*2
 
5:24 AM
Unless I'm reading it wrong, that only says goats will stare back at people. I'm not sure that's exactly the citation you want >_>
 
5:49 AM
I just realized: bad questions that are killed end up reincarnated on Stack Overflow.
 
6:10 AM
Well, better to have one big pile of garbage than to have it strewn about all over the place.
 
6:23 AM
@DJMcMayhem does a function argument count as an input?
 
6:37 AM
@DJMcMayhem Jelly, 1 byte:
 
6:48 AM
I have a file that compiled in Visual Studio but not g++ so I changed it, and now it compiles in g++ but not Visual Studio.
 
@DJMcMayhem RProgN, 1 Byte. ]
 
@Dennis Yay, you're welcome!
 
7:14 AM
Hello
I have a challenge idea
Pretty sure this has been done before but
Write a program that outputs its own source code (i.e. a quine). Every permutation of that program must also output its source code as well.
Is it possible?
The only problem is that quine challenges have been done to death
Why is the ruby print called puts anyway
Feq no one's on
 
yup
is possible
Hq9+ 1 byte: Q
 
As we have seen Dennis conquer the impossible so many times
@DestructibleWatermelon Not a language
 
ok then.
polyglot, 1 byte: 1
 
@DestructibleWatermelon ಠ_ಠ
At least 2 chars?
Actually no I have a better challenge
Write a program that outputs the original positions of each character in the code when permutated.
So for example if the original program is Derp
It should output [0, 1, 2, 3]
If the program is rearrange to give eDrp
then output [1, 0, 2, 3]
Because the e is meant to be in the 1st position, and the D is meant to be in the 0th position
 
@Qwerp-Derp That seems to be impossible for most languages.
 
7:26 AM
@ErikGolferエリックゴルファー The impossible has happened so many times on PPCG.
I'm probably going to get Jelly answers aren't I?
I'm just interested in seeing how far people are willing to go for this
 
@Qwerp-Derp No, unless Dennis does it. Or, someone brute-forces.
 
@ErikGolferエリックゴルファー That's the point
 
@DJMcMayhem CJam, 4 bytes: `q_N\`
 
@Qwerp-Derp 2 bytes: 11
 
Name one language that actually outputs 11 through that program
And give an interpreter pls
 
7:29 AM
Most golfing languages
 
Oh
Well TIL
 
Pyth and osabie (I think) and matl (I know)
J and jelly also
 
oh I know
Unary or something
haha
 
What about the second challenge
 
7:30 AM
Unary quine. Eww
 
At least two different characters for the second challenge
 
@Qwerp-Derp same
@Qwerp-Derp that is better
 
It doesn't work for the first challenge
 
Good night everyone
 
8:36 AM
0
Q: Is this a number?

n4melyh4xorPrelude: I wanted to train making test cases, so I'm gonna try them on something easy. Challenge: Take any given (string) input and deduce if it's a number and output something that could be used to evaluate. Rules: You can write a full program or a function. If a number, return anything th...

 
 
1 hour later…
9:40 AM
0
Q: Pen Pineapple Apple Pen... with your own pens, pineapples and apples

n4melyh4xorChallenge: Given 3 inputs (or one input, separated however you like) get three objects (words) that we're going to substitute for pens, pineapples and apples in the lyrics and output. Output format (according to lyrics found on AZLyrics): Assuming (replace values with brackets with these): ...

2
 
10:01 AM
so yeah
hi
 
hi
... well, that's another day I've done pretty much nothing
 
10:42 AM
oh the juice
sweet mother of bajeeves
I got fav'd thrice
 
11:04 AM
@DestructibleWatermelon same
 
@betseg I keep thinking "dammit, I'm going to do something today". but of course I just end up thinking "dammit, I'm going to do something tomorrow"
 
2meirl4me
 
11:39 AM
@NewMainPosts @n4melyh4xor That's a stellar question you've got here! :D
And --oh my Helix-- you made it without passing the Sandbox? That's MARVELOUS!
In the meantime I was making a colour based TCG game.
Anyone want to see it?
 
> tfw your question gets flagged for being a dupe to cat
@zyabin101
plz tell the meanies to go to /dev/null
 
12:00 PM
I'm currently retired from this site.
Also, requesting the meanies to go to /dev/random is rude.
You can politely ask why is this question a duplicate.
 
that's what I did
also, that was /dev/null
 
@n4melyh4xor I don't see any occurence of that in the question comments.
You should ask in the comments.
 
got it in the question prelude
also "I write code and code rights for penalcoders.example.org [...]"
 
penalcoders.example.org FTW
 
12:20 PM
Yay, I reviewed an edit in the wild!
 
12:33 PM
now THAT'S the stuff
mind upvoting my tiny answer there: codegolf.stackexchange.com/questions/21831/…
 
I safely ignore any vote change requests.
Also, byte count is nothing. Support clever golfing! :)
oh my d**b
I got tempted by the comment to upvote it o___o
 
2
Q: What IS a duplicate?

tuskiomiI've seen many challenges get marked as duplicates on this stack. Most I see as fair, some, not so much. What qualifies as a duplicate question? Consider challenges where: Entries from a will be valid for b , and entries from b will be valid for a Entries from a will be valid for b , but en...

ooh the irony
 
1:30 PM
0
A: Sandbox for Proposed Challenges

Flp.TkcA Very Quick Golf When a new challenge appears on PPCG, users rush to be the first to submit an answer in their language. To motivate me to do the same, I need a simple timer. The Challenge The stages of an ASCII hourglass look like this: ________ \@@@@@@/ \@@@@/ \@@/ / \ / \ /___...

 
Wow, last night was surprisingly quiet
 
2 hours ago, by zyabin101
In the meantime I was making a colour based TCG game.
And no one wants to see it. .___.
 
holy fork
my codegolf tears
are literally crying
@zyabin101 hit me up with your TCG
 
Command X makes the language Turing-complete?
 
@n4melyh4xor Okay.
I'm finishing it.
(the Lackey version)
Anyone else?
 
1:40 PM
Is it online?
 
0
A: Sandbox for Proposed Challenges

Flp.TkcAlternating Integer Arrays An alternating array is a list of any length in which two values are alternating. Your task is to write a program or function which, given a list of positive integers, outputs/returns truthy if it is alternating and falsy otherwise. Edge Cases: [] -> True [1] ...

 
Nope, but there is a SE chat room. The unveiling is going on there.
 
got it
 
0
Q: Print a Singing Angel

BelfieldKeeping with a festive theme, print a carol singing angel with the shortest possible code. The angel is raising money for the homeless, so must be able to sing all three of the below songs available at request. To illustrate she can sing them, the title of the song must be placed within the speec...

 
I have a challenge in mind that revolves around generating machine code / assembler output. What is the standard in allowing people to use external tools (such as GCC)?
 
2:04 PM
@flawr It's so cool how Pixar (and recently, other studios) make significant technological advancements in the course of making their films.
 
hello i need help to make my code faster.
My function gives the exponent of 2 that results in n (in JS)
 
@LearnHowToBeTransparent so it calculates a base-2 logarithm?
 
function twoIfy(n) {
    const magic = 3.321928095;
    // get start value
    start = Math.floor(((n+"").length-1)*magic);
    for (i=start;i<=start+4;i++) {
    if (2**i===n) {return i;}
    }
}
@SEJPM but the problem is here: this line takes 0.7 ms
start = Math.floor(((n+"").length-1)*magic);
 
how long does ln(n)/ln(2) take?
(ln being the logarithm for any base)
 
@SEJPM sorry but idk about ln
 
2:09 PM
The natural logarithm of a number is its logarithm to the base of the mathematical constant e, where e is an irrational and transcendental number approximately equal to 7000271828182845899♠2.718281828459. The natural logarithm of x is generally written as ln x, loge x, or sometimes, if the base e is implicit, simply log x. Parentheses are sometimes added for clarity, giving ln(x), loge(x) or log(x). This is done in particular when the argument to the logarithm is not a single symbol, to prevent ambiguity. The natural logarithm of x is the power to which e would have to be raised to equal x. For...
 
@flawr Also cool: Disney's realistic snow simulation developed for Frozen:
I remember also reading a research paper that they wrote on how previous snow simulation methods just weren't good enough, which is what prompted them to develop their own.
 
@SEJPM here
t0=performance.now()
res=Math.log(2**64)/Math.log(2)
t1=performance.now()
321107.19
t1-t0
0.01999999996041879
 
so it takes 20ms?
maybe give Math.log2 a try and run a few hundred / thousand examples as a test?
and what precision do you need?
Will your input always be a power of 2?
 
0
A: Sandbox for Proposed Challenges

SEJPMGive your processor a break! code-golf code-generation kolmogorov-complexity Introduction Here at PPCG our CPUs are always working hard to run all these awesome golfed programs. Now nobody can work hard continuously without a break. So it's time to give your CPUs a break. For a CPU, such a b...

 
@SEJPM no. if input not power of 2, function will return nothing.
 
2:18 PM
@LearnHowToBeTransparent Is your input an integer?
 
i mean not 2**x (x ∈ N), function return nothing.
my input an integer, yes. @SEJPM
 
the fastest way to find the logarithm in your case would be to right-shift the input (if it is an integer) until you hit 1 or 0 and count how many shifts you have done and deduce the logarithm from that
 
@SEJPM found a faster solution now.
function twoIfy(n) {
b=n.toString(2);
return /1[0]*/.test(b)?b.length-1:undefined;
}
 
so apply the >>> operator on n until you hit 1 and count the loops. The loop count should be your desired result
@LearnHowToBeTransparent so you convert it to a base-2 string and then use a regex to check whether it's 10...0? Sure works just as well
 
@SEJPM is n>>>x = n/(2**x)?
 
2:27 PM
@LearnHowToBeTransparent yes, that's the fast version of it
 
Integer division, specifically. (I.e. it's n//(2**x) not n/(2**x).)
 
thanks for your help @SEJPM
 
@LearnHowToBeTransparent :)
 
3:12 PM
sorry for AFK, was making this: codegolf.stackexchange.com/questions/103463/…
 
I can't wait for 2016 wipe. Currently being taped.
 
Who's being taped?
 
The episode.
 
@Kritixi the game
 
@mınxomaτ which episode of what?
 
3:20 PM
The current years episode of yearly wipe: 2016 Wipe.
Here's last years:
 
@zyabin101 I JUST LOST IT
 
OH MAN WE ALL LOSIN
 
@arda :D
I did, too :D
 
YOU ALL LOST IT
 
:D
 
3:24 PM
@arda, hello there.
Fellow SU fan.
 
^^
 
@n4melyh4xor heya
 
dun dun dun
 
thanks for reminding me btw, off to watch new episode.
 
3:36 PM
I just lost it again!
@arda "bird mom".replace("ir", "a");
it's just the facts
 
Amazing episode.
 
I can't see it. ;(
 
WHAT
well, it is amazing
but holy forking shit
perl tried to kill steven
 
Ahhh I am nowhere near caught up
I come to chat and there are the spoilers ;_;
Brb hiding from spoilers, have a nice day
 
3:50 PM
Heyy
 
Ugh, I watched that Bee Movie thing and now my YouTube recommendations are full of recursive memes.
4
 
Happened to me too, the i watched them all. No ragrets.
 
I don't even get why the Bee Movie became a thing like that.
 
Just watched "Never gonna hit those notes". That's probably the most annoying rickroll ever.
 
3:58 PM
heh
 

« first day (2149 days earlier)      last day (2696 days later) »