« first day (1953 days earlier)      last day (2883 days later) » 

3:00 PM
@Geobits Scientology is a business, sure the Church asks for donation but it doesn't do nearly as much shady business as Scientology
 
I've also read Learn You a Haskell, but I never got around to using so ¯\_(ツ)_/¯
 
@Geobits no change fur me on ubuntu
 
@Geobits just you
 
@Maltysen apt-get update && apt-get upgrade?
 
@zʏᴀʙiɴ101 probably, but I don't feel like atm
 
3:00 PM
@EᴀsᴛᴇʀʟʏIʀᴋ brew install chrome?
:P
 
@zʏᴀʙiɴ101 ?
 
@EᴀsᴛᴇʀʟʏIʀᴋ WHAT IS POPTART?
 
I use chrome, and brew has no formula for chrome
@zʏᴀʙiɴ101 google.com/…
 
Then -._(._.)_.-
 
@zʏᴀʙiɴ101 POPTART IS GOD
 
3:01 PM
^
especially watermelon
@Maltysen do you actually believe that or are you being sarcastic?
 
It's a good wager. I mean, if you don't believe in Poptart, you will be punished forever after death.
 
@EᴀsᴛᴇʀʟʏIʀᴋ I've seen How It's Made on toaster pastries like this :3
 
@Geobits the poptarts get to put you in the toaster like in the ads but in reverse
 
same
but POPTART IS NOT MERE PASTRY
IT IS LIFE
 
3:03 PM
19 mins ago, by Geobits
Pascal's wager is the worst.
 
I get it, but still ... is applicable.
@Geobits ...
 
...
 
.. .
 
... _ _ _ ...
 
3:05 PM
Mayday!!!
 
@Maltysen I could use a tan, but that's taking it a bit far :o
 
@Geobits I guess pascal was alive when god == christian god
 
In his part of the world, at least, yeah.
 
Basically, yeah.
 
3:09 PM
TIL mass effect is on-topic at Science Fiction & Fantasy.
 
Eww gross. The link hover target is really faded now :(
I'm really not liking this new theming.
Must find a better one later.
 
@Maltysen BTW the arugument ha been moved to the Upper Room
 
That discussion looks less interesting than this one :/
 
@flawr If your primes uses Ints, the product may overflow. That's my first guess.
 
@Geobits about poptarts and ...s?
 
3:15 PM
Sadly, yes.
 
If you do take 20 primes, does it work correctly?
 
> sadly
but but but POPTART
 
POPTART IS LIFE
 
hey @Doorknob
 
hides in barrel
whispers c'mon, East, hide!
 
3:19 PM
no
If doorknob wants to nuke me, I don't think anything can save me. Except maybe a doorknob shield.
 
2 messages deleted
 
RIP my poptart.
 
@Doorknob 10/10 most constructive way to deal with it
@Doorknob move to the Code Golfer's Corner >_>
 
>_> look there
 
@EᴀsᴛᴇʀʟʏIʀᴋ are you obsessed with poptarts or what?
 
3:28 PM
no
But I do like them.
 
(maybe NSFW)
 
@El'endiaStarman move to the Upper Room >_>
 
He's.... already there.
 
Yup. Making sure the discussion doesn't become hostile.
Speaking of which, what's the difference between a discussion and a debate? (No, this is not the setup for a joke.)
 
3:36 PM
They start differing after the first letter?
 
I'd say a debate is something of public interest while a discussion is a more general term.
@Geobits What is this?
 
a poptart
not sure the nsfw part
 
@EᴀsᴛᴇʀʟʏIʀᴋ Only in chat and Computer Graphics...
 
@zʏᴀʙiɴ101 "Anagram business sister"?
 
3:44 PM
@EᴀsᴛᴇʀʟʏIʀᴋ It's got half its clothes off!
 
@JesterTran Jester Tran ==> Jane Street, get it?
 
@Geobits You have 13,333 reputation now.
 
I know, I got a screenshot yesterday :)
 
What data type should small numbers in C be?
@zʏᴀʙiɴ101 Wth... that was unplanned btw
What a coincidence and that I also tried for one of their internships
 
3:46 PM
@Geobits Well then. I've been eating nude Pop-Tarts every day. o_o
 
Jester Tran
 ester Tran J
 ester Tr   Jan
    er Tr   Jane St
       Tr   Jane Stre
        r   Jane Stre t
3
 
@El'endiaStarman It's to be expected. You're not a believer :P
 
Wait, Jester Tran has r instead of e o_o
 
Damn, close
 
@Geobits ....'till I saw her face!
 
3:47 PM
@JesterTran you heard nothing >_>
 
@gcampbell -0.5 not a prime (but almost)
 
haha
So for numbers like 1/1000, what data-type should it be for C? Double?
 
So poptarts are some kind of biscuit with some kind of topping - sweet I assume - and they seem to be popular, right?
 
0
Q: Golf a 2d(or 3D if better) maze (Yes, a whole game)

Matthew RohNowadays, I am interested in making games. especially mazes. In this golf round of code, You should make a maze game. You can do it with just preset mazes, but, if you make it randomly generate, I will be a-maze-d and will give you bonus points.(Huh. is that a pun?) So, Go on, Why don't you try r...

 
@flawr A sweet filling too.
 
3:49 PM
@flawr They're basically kinda like a rectangular pie or tart with a filling inside
You cook them in the toaster
 
Oh, that sounds interesting=)
 
Somewhat amusingly I have never had one
So I cannot vouch for their deliciousness
 
You can cook them in the toaster. I personally don't. I'm probably a heathen in that regard. :P
 
You eat them raw and alive??
 
They're precooked
You just kinda crisp them up in the toaster I assume
 
3:50 PM
I can definitely vouch for their deliciousness. Then again, my tastes are pretty different from most people though...
 
So what is the filling like?
 
Somewhat like a jam, I think.
 
Still I think sweet stuff is something many people like.
 
3:50 PM
@JesterTran 1000 only consumes 2 bytes
 
@flawr There are a bunch of different flavors. Most of the popular ones are fruit things I think
 
@LeakyNun ok
 
@JesterTran So use short
 
Ah now I see. I have to try some someday.
 
@LeakyNun short double?
 
3:51 PM
@JesterTran Isn't it an integer?
 
@LeakyNun 1/1000
 
@JesterTran Oh, I red it as 1 or 1000
You can use float which has a precision of 6 significant figures
1/1000 only needs 1 significant figure
 
1.2E-38 to 3.4E+38
@JesterTran What values can your number be?
 
3:53 PM
0.02133121
 
@JesterTran I mean, what precision does it need?
 
7 sigfig
 
Then use double which has 15 sigfig
because float only has 6 sigfig
 
ok thanks
 
3:56 PM
shit, I've been using int unknowingly.... even though my other variables are of type double (how do I use fixed font in the middle of text)?
 
use ``
 
testing the life of Pi. Thanks!
 
Also works in comments and posts. And there is a help link on the bottom right here.
 
@LeakyNun brilliant
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Thanks :)
 
3:57 PM
ohai @CᴏɴᴏʀO'Bʀɪᴇɴ
 
Why aren't puns funny any more after you translate them to a different language and have to explain them?
 
Because you're punished
4
 
@flawr Jokes are usually not quite as funny after being explained, in general. Translating puns to a different language just makes it worse because they usually stop being puns (as they are usually a kind of language-specific wordplay).
 
@flawr I detect an english SE question....
 
4:00 PM
@LeakyNun you just helped me outgolf an old J answer \o/
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You're welcome.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ \o/ Which answer?
 
still writing it up
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah.
But which answer did you outgolf?
 
4:12 PM
Enter @PhiNotPi
Exeunt
 
@Zgarb take 20 primes does work, primes has the inferred type [Integer] so overflow should not be a problem.
 
0
Q: How to participate in image-processing challenges if the language does not support images?

Thomas WellerIs participating in image-processing challenges allowed, if the language does not support images? If it is allowed, what shall the input format be? Related question where this issue came up in the comments.

 
@flawr Hmm. Then I can't think of a reason for your problem, sorry.
 
Chat mini challenge: Implement "reverse chop"; given a number N and an array K, split K into N-length segments, starting from the right. E.g., K = 1 2 3 4 and N = 3 yields [1] [2 3 4]
 
@CᴏɴᴏʀO'Bʀɪᴇɴ In which language?
 
You'd prefer J, right?
 
nope
any language
 
Pyth, 7 bytes: __Mc_QE
 
Jelly: ṚsṚṚ€ (5)
 
@Zgarb Thank you anyway. I just discovered that the presence of another totally unrelated function seems to be the problem, if you are interested: stackoverflow.com/questions/37631576/…
 
4:30 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ J: 13 :'|.(0=y|i.#x)<;.0;.1|.x' (not golfed yet)
 
ah, nice uses of ;.
 
(deleted)
 
@flawr That is weird... I still suspect it's caused by type inference in some way. But I'm on mobile, so can't test any theories.
 
@flawr You mean piesected
 
4:34 PM
Gotta go now, I'll check later if someone solved it.
 
@flawr The graph is bisected.
Because there is no visible line that does divide the parts of the graph.
 
@Zgarb You are right, an Integer->Int conversation was the problem!!!
 
0
A: Sandbox for Proposed Challenges

Matthew RohGolf a 2d maze (Yes, a whole game) Nowadays, I am interested in making games. especially mazes. In this golf round of code, You should make a maze game. You can do it with just preset mazes, but, if you make it randomly generate, I will be a-maze-d and will give you bonus points.(Huh. is that a ...

 
@Upgoat did you finish with the loop?
 
@Zgarb Sorry, how do I do a fork where h is a hook?
 
4:45 PM
@zʏᴀʙiɴ101 not yet, I'm writing some scripts for cheddar, though if you know bash, and you'd like to help, this could go quicker
 
@Upgoat Which scripts are you doing?
 
@zʏᴀʙiɴ101 install scripts, updating scripts, I'll also have to make a Cheddar binary
 
@Upgoat Oh.
A cheddar binary should start the REPL:
node /path/to/repl.js
I forgot where the REPL is.
 
13 :'|.(0=y|i.#x)<;.0;.1|.x'
(0=[|[:i.@#])([:|.<;.0;.1)[:|.]
Never mind
 
0
Q: Golf a program that will make a computer lag

Matthew RohIn this Code Golf round, you will make a computer lag! Methods are on your own. the shortest code Wins! But beware, DO NOT Delete System32 or Root folder.Just make it lag.

 
4:50 PM
@NewMainPosts Where's the "we don't do malicious code" close reason?
 
@El'endiaStarman @MartinEnder forgot to add that XP
 
I wouldn't even say it's that. There's just no direction on what in particular to do. I used Too Broad.
 
That's some harsh downvoting.
 
@zʏᴀʙiɴ101 Yeah it is
 
5:00 PM
:D
 
@zʏᴀʙiɴ101 I rekt it :D
 
@BaldBantha No!
 
I fixed it!
 
@El'endiaStarman no ydint
 
5:04 PM
@BaldBantha ydint?
 
you didn't
 
17+33 = 17+33 >_>
Also, I really can see the bisector, by rotating the head somewhat to the right.
20
Q: Has My Pie Been Bisected?

Helka HombaWrite a program or function that takes in a nonempty list of positive integers. You may assume it is input in a reasonable convenient format such as "1 2 3 4" or [1, 2, 3, 4]. The numbers in the input list represent the slices of a full pie chart where each slice size is proportional to its corr...

 
Sometimes I really hate Java
Whenever I have to do something with reflection what should be a one-liner ends up having 7 catch clauses
 
Why would you use reflection?
 
Because I need it?
I'm not using 1.7 (which has multi-catch) either so it ends up looking like this:
} catch (NoSuchFieldException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (SecurityException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalArgumentException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
 
5:17 PM
} catch (Exception ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
}
 
@LeakyNun This catches every exception.
 
That's a horrible coding practice
Plus I do actually want to do something different for another exception
 
for which exception?
} catch (ClassNotFoundException ex) {
} catch (SecurityException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalArgumentException ex) {
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
} catch (ReflectiveOperationException ex){
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
}
@quartata Here, guarantee to be equivalent
Class ReflectiveOperationException

    Direct Known Subclasses:
        ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchFieldException, NoSuchMethodException
 
Oh, I didn't know about that. That's a little better.
Thanks.
 
You're welcome
@quartata Which version is your java?
 
5:23 PM
>>> import math;x=3;exec"x-=math.tan(x);"*5;x
3.141592653589793
This is a cute way to generate pi. Then again, if you have tan, you probably have pi.
 
the fix-point of x=x-tan(x) is x=pi...
 
Chat mini-challenge: write a bash script to get a file relative to the bash script
 
what does relative mean?
 
@Upgoat $0/path/to/file?
 
@zʏᴀʙiɴ101 doesn't work unless when run through source or bash
 
5:37 PM
} catch (ClassNotFoundException ex) {
} catch (SecurityException | IllegalArgumentException | ReflectiveOperationException ex){
  Logger.getLogger(Ticker.class.getName()).log(Level.SEVERE, null, ex);
}
@quartata
 
-._(._.)_.-
 
@LeakyNun if I specified file foo for input. It would output file <script_path>/foo
 
@LeakyNun His Java version doesn't have multi-catch.
 
@zʏᴀʙiɴ101 Oh, ok then
 
(I am actually outsourcing to here because people don't like it when I ask questions here, I just get lmgtfy links)
 
5:40 PM
@Upgoat
read file
more "$file"
right?
 
basically I have script at cheddar/script/foo.sh. I want to locate cheddar/dist/cli/cheddar.js
 
I better go away since I don't know bash at all
wouldn't .. work?
 
@LeakyNun unfortunately no
 
alright. quits
 
Why doesn't .. work?
 
5:49 PM
@Geobits that's relative to the directory the user ran the script from
 
Oh. I was assuming this was from within something you controlled, not directly runnable.
You can't change the working directory?
 
@Upgoat I know how to do this in Java? :P
 
@Geobits I would want to unless I'd change back
 
@EᴀsᴛᴇʀʟʏIʀᴋ you really should make a "codegolf.se" clan.
 
surely there should be some command which does this
 
5:51 PM
(For Junethack)
 
@Upgoat Why not pwd and go up two directories?
wait nevermind
@Upgoat
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
@VTCAKAVSMoACE I got: "$(dirname $(readlink -f $0))", would this work too?
 
3491
A: Can a Bash script tell what directory it's stored in?

dogbaneDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" is a useful one-liner which will give you the full directory name of the script no matter where it is being called from. This will work as long as the last component of the path used to find the script is not a symlink (directory links ar...

:D
Google is your friend
 
@VTCAKAVSMoACE i already tri
 
5:57 PM
It's so purple o_o
 
I actually use a traceback thingy in Laura once.
new File(Collector.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()).toString()
 
@Upgoat readlink? :O
 
damn, I just wanted to solve a simple system of linear equations, and wikipedia is leading me to Singular value decomposition, Hermitian transpose, unitary matrices, eigenvectors ... and the rabbit hole seems to have no end
 
^ you will end up reading about ZFC axioms
 
6:02 PM
@Quill halp, how get file path relative to gruntfile
 
@LeakyNun too many determinants
I want to use the matrix inverse method, but then I got into pseudoinverse etc
 
@aditsu Well, if Ax=b, then x = A^-1 b
 
yes, that's the matrix inverse method
 
what's the problem then?
 
A doesn't always have an inverse
 
6:05 PM
yes
and then the linear equation doesn't have a single solution.
 
right, it may have none, or (first finger pointing up) many, many, tremendously many solutions
x = A⁺b - (I - A⁺A)w
 
@aditsu Many, many, many, many, many, many, many, many?
 
@wizzwizz4 so many that it will make your head spin!
 
@aditsu Like the number of solutions to sin^-1 (y)?
 
@zʏᴀʙiɴ101 for junethack? no.
 
6:15 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Why no?
 
becuase there is not enough PPCG nethack players who can ascend regularly
I'm not even going to get a single badge.
 
IDK about quartata/mego/doorknob, but me/conor/you can't really do much.
 
I'm working on a built-in URL shortener that generates random filenames, and I just got this one: bOiOuOMvBv. I am now slightly doubting its randomness. :P
 
6:17 PM
@EᴀsᴛᴇʀʟʏIʀᴋ Me? I don't participate in Junethack. >_>
 
That's the problem with randomness. You can never be sure... :P
 
sometimes you can tell.. interesting problem: code.google.com/codejam/contest/2984486/dashboard#s=p2
 
@EᴀsᴛᴇʀʟʏIʀᴋ can you update the installation script to just clone cheddar, and then run Cheddar/scripts/install?
 
?
oh sure
not right now though sorry
in a bit
gimme 30 min
 
6:32 PM
0
A: Sandbox for Proposed Challenges

dorukayhanFind the duration of a worst-case brute-force attack Given the following information about a 7-bit ASCII-encoded password and the computer that will crack it with a brute-force attack: Length of the password in characters Charset size (i.e total count of the possible characters one character i...

 
0
A: Sandbox for Proposed Challenges

zyabin101Plan a special tournament tags: code-golf [more tags required] I host a special tournament with any number n >= 2 of participants. Here is a list of plans of tournaments for n = 2 to 20: 2: 1) DE-2c-1w 3: 1) RR-3c-1w 4: 1) DE-4c-1w 5: 1) RR-5c-2w 2) DE-2c-1w 6: 1) RR-6c-3w 2) RR-3c-1w ...

 
6:55 PM
And my flag became harmful just because the mods only checked 51 mins ago. Mods should be very fast.
 
Mods are people too, and it's Saturday.
 
@Upgoat just run that script?
 
@Geobits :/
 
@EᴀsᴛᴇʀʟʏIʀᴋ yeah
 
7:00 PM
@Geobits Last time I checked Alex was a bird and Doorknob was a doorknob
 
@Upgoat still add the alias or no?
 
@Quill halp, exec is borked in node
 
@Upgoat I'm using "people" in the more broad sense, not just humans. Like people that consider pets a part of the family.
 
@EᴀsᴛᴇʀʟʏIʀᴋ no need to. grunt install --method=alias does everything
@Geobits ah ok
var exec = require('child_process');
exec.execFile('db_app.py');
 
7:01 PM
ಠ_ಠ why would you use node to run python
 
@Upgoat using node?
 
@EᴀsᴛᴇʀʟʏIʀᴋ ?
 
node .Cheddar/script/install?
or sh?
nvm
sh
 
yeah
 
0
A: Sandbox for Proposed Challenges

AdvancidObfuscate your program In this challenge, you must create a program which does something but you need to obfuscate it so that it becomes hard to understand (so don't explain it in your post). It can accept anything as input and output anything. Score The shorter program (in bytes) which hasn'...

 
7:04 PM
I thought that was @MartinEnder for a moment and was like WTF Martin caved?
@Upgoat it borked, it's your fault
/Users/rikerw/.Cheddar/script/install: line 3: locrc: No such file or directory
A valid Gruntfile could not be found. Please see the getting started guide for
more information on how to configure grunt: gruntjs.com/getting-started
Fatal error: Unable to find Gruntfile.
@Upgoat
 
7:21 PM
@Upgoat?
 
@Upgoaaaaaat!
 
I just noticed something
How the hell did facebook print out something with a big red font to the developer console?
 
@Bálint De GOOG!
It's just Chrome, by the way.
Maybe you can print HTML in Chrome.
Maybe it's markdown-esque.
Maybe it's just Chrome interpreting the ASCII art.
 
Anonymous
 
Anonymous
It's over 9000!
2
 
And a palindrome!
 
You might just be able to defeat Nappa now :/
 
8:03 PM
@mınxomaτ Data structures are such a new, exciting topic in computer science!
 
@AlexA. I also recommend the CppCon and Meet C++ talks from the Google engineers about bogus data structures in std::
He also has another talk about (clang+) LLVM IR and its intrinsic optimizations (for anyone interested in compiler development)
 
Clang > GCC
 
@AlexA. Both have their advantages (see the talk). Specifically inlining decision making.
(not the talk I linked, but the one I mentioned)
 
I don't understand compiler development but I'm interested in it
 
8:15 PM
damn, you guys are eating all of my time with these awesome videos :p
 
Learning is fun :^)
I also wrote something about preparing C++ code for extreme link-time compression using strategic inline assembly here. (Keywords: democoding, Windows, crinkler, GLSL, OpenGL)
 
You had me until "Keywords: [...] Windows"
 
Strategies apply to all OSs. Undocumented hacks in the WinAPI just make this a bit easier.
4
 
Mini-challenge: Create a numeric (32-bit unsigned) array sorting algorithm that runs in O(n) time, where n is the size of the input.
 
@mınxomaτ The undocumented part doesn't, because Microsoft don't seem to worry about breaking those now.
@LegionMammal978 Mini-challenge: Fundraise $1 000 000 as a prize for whoever does.
 
8:30 PM
it's possible and not that hard
the key part being k-bit (k=32 in this case)
 
Mini-challenge, revision 2: Create a numeric (32-bit unsigned) array sorting algorithm that runs in O(1) time, where n is the size of the input.
 
now that one is not possible
 
Mini-challenge, revision 3: Create a numeric (32-bit unsigned) array sorting algorithm that runs in O(0) time, where n is the size of the input.
 
q~32{_{2I#&!},\{2I#&},+}fIp
input given like this: [1 5 4 2 3]
 
8:54 PM
@Mego -1, not a prime
 
ooh, I have a prime reputation right now, awaiting prize :)
 
have a cookie
(a virtual one, though)
 
virtually eating it
 
Virtual eating is best eating.
I want an Oculus Rift just so I can pretend to eat
 
you don't need an oculus for that, just a straw and pictures of food
 
8:59 PM
@AlexA. I like real eating better.
 

« first day (1953 days earlier)      last day (2883 days later) »