« first day (1186 days earlier)      last day (3754 days later) » 

6:00 PM
Steve just commented on my answer.
STEEEEEEVEEEE
 
user1596138
!!pizza 800 600
 
@Jhawins Input not matching /(\d+)\s(\d+)/. Help: User-taught command: gives you pizza! <>http://lorempizza.com/$1/$2#.png
 
user1596138
@rlemon I feel like pizza should still have a default size.
 
@Jhawins rlemon is afk: lunch and shit (not literally, but maybe)
 
!!pizza
 
6:02 PM
@RUJordan Input not matching /(\d+)\s(\d+)/. Help: User-taught command: gives you pizza! <>http://lorempizza.com/$1/$2#.png
 
boo
 
!!pizza 1800 600
 
mmmmm
lol every time i reload the page, the pizza is different
 
guys, is this the smallest fibonacci algorithm achievable in js?
var j=1;
for(i=1;i<4000000;i=i+j){
	j+=i;
}
where j and i are components...
by adding console.log(i+', '+j) you get them... can you think of anything smaller?
 
6:08 PM
@Cicada3301 No... use recursion...
idk wtf you are trying there...
 
fibonacci sequence? never heard of @qwertynl?
 
....
USE RECURSION
YOU WILL SOON BE TINY. BE AWARE.
 
@qwertynl :P
 
....
 
user1596138
@Cicada3301 Golfing? Ask @Copy
 
6:09 PM
@Jhawins I'm not here but I note the bug and I'll fix it
 
@dystroy Oh, it's you again...
 
@Jhawins that is js...
 
@Cicada3301 has been shrunk
 
!!tell Cicada3301 define code golf
 
@rlemon Where were you!?
@Cicada3301 No definition found for code golf
@Cicada3301 No definition found.
 
6:10 PM
ohh fuck you @CapricaSix
yes there is
 
that right there is multiple unnecessary ping :P let's ban caprica six!
 
!!tell Cicada3301 google define code golf
 
@Cicada3301 actually I invoked it
 
@rlemon ik
 
6:12 PM
@SomeGuy @SomeKittens @Loktar, @dystroy, @qwertynl, @Jhawins this is ping spam
there is a difference
 
@rlemon Ik, was just trying to be funny
btw.. no... project eulero
 
don't try so hard. let it come naturally.
jokes are like bowl movements.
 
!!>/s/bowl/bowel/
 
@qwertynl That didn't make much sense. Use the !!/help command to learn more.
 
those as well
 
6:13 PM
@qwertynl "ReferenceError: s is not defined"
@qwertynl "SyntaxError: invalid regular expression flag b"
 
arrrg I cannot figure it out @rlemon
 
!!s/bowl/bowel/
 
@rlemon !!>/s/bowel/bowel/ (source)
 
@Cicada3301 i wanted to do some more then I've remembered I still don't have a proper prime sieve so meh
 
works fine for me
 
6:15 PM
arrrg
 
!!s/rrr/ do/
 
seriously, in first 50 problems, like 30+ is related to prime numbers
 
@rlemon a dog (source)
 
@BartekBanachewicz prime sieve? like... a prime checker?
 
@rlemon lol
 
6:17 PM
@BartekBanachewicz I started coding for prime numbers!
 
@Cicada3301 more or less that
@Cicada3301 I just use wolfram on all that crap
 
anyone know how to update the placeholder classes on jQuery sortable after its been rendered?
 
!!s/a dog/Today is the 1st day of the rest of my life./
 
@qwertynl @rlemon Today is the 1st day of the rest of my life. (source) (source)
 
user1596138
@rlemon wut
 
6:17 PM
P#88 looks nice
but I think I'd rather code it in Prolog than in Haskell
 
@BartekBanachewicz Want me to teach you the code I use for prime numbers?
 
user1596138
!!urban code golf
 
@Jhawins No definition found for code golf
 
@Cicada3301 can't you just tell me what algorithm do you use?
 
actually... copot.eu/matei... is a website I built: on the first tab is a prime checked, that also displays all of the divisors of that number if it is not prime and shows all of the primes 'till that number
check below the cicada
 
user1596138
6:19 PM
@Cicada3301 adF.ly?! REALLY?!?!
 
ohai
 
@Jhawins yep...
 
user1596138
@Cicada3301 You're not even using it right!
 
@Jhawins there are different ways to use it
 
!!>for(o=[i=j=1];j<200;i=j+(j=i))o.push(i);o
 
6:20 PM
@Shmiddty [1,2,3,5,8,13,21,34,55,89,144,233]
 
user1596138
It's working like popups. Not a URL shortener. I officially think you are an annoying prick. Shrinking now.
 
user1596138
Done done done. Done done. Da dada dadahhahaaaaa damn.
 
@Shmiddty [1,1,2,3,5,8,13,21,34,55,89,144,233]
 
@rlemon mhmm.
 
@BartekBanachewicz this is the raw code, lemme convert it into usable code:
var Z=document.getElementById('display').checked;
    var X=document.getElementById('num').value;
    var p=[2];
    var D=[];
    var M=1;
    var F="";
    for(i=2;i<=X;i++){
        h=true;
        for(j=0;j<M||p[j]>Math.sqrt(i);j++){
            if(i%p[j]===0){
                h=false;D.push[p[j]]
            }
        }
        if(h===true){
            p.push(i);M++;
        }
    }if(Z===true){
        var F=p.join(', ')+'<br><br>'
 
6:21 PM
@Shmiddty faaaancy
 
var F=p.join(', ')+'<br><br>'
oh god
also why are all your variables single-letter
 
@BartekBanachewicz the codez run faster.
 
@SomeKittens right, purrformance
 
@BartekBanachewicz Cuz he has a robot brain.
 
in Lounge<C++>, yesterday, by Bartek Banachewicz
@jalf if only we could name functions descriptively so their name would tell us what they do
 
Ale
6:23 PM
He is a minificator
 
@BartekBanachewicz I like to code with that
here is the usable code: just print it into the console:
var Z=confirm('display all of the prime numbers \'till that number?');
    var X=prompt('insert your number');
    var p=[2];
    var D=[];
    var M=1;
    var F="";
    for(i=2;i<=X;i++){
        h=true;
        for(j=0;j<M||p[j]>Math.sqrt(i);j++){
            if(i%p[j]===0){
                h=false;D.push[p[j]]
            }
        }
        if(h===true){
            p.push(i);M++;
        }
    }if(Z===true){
        var F=p.join(', ')+'\n\n'
 
Ale
Just used jsbeautify so we can read this
 
@Cicada3301 Please don't code like that.... it is confusing...
 
I made this about 2 years ago... don't ask me why so messed
 
@Cicada3301 fuck if it's usable
@Cicada3301 it's terrible
 
Ale
6:23 PM
for(j=0;j<M||p[j]>Math.sqrt(i);j++){
 
then readapted for my website
 
user1596138
@BartekBanachewicz Worth un-ignoring to see? Will I laugh?
 
@Jhawins nope. I'll tell you
 
user1596138
Oh god that's bad. Use real variable names that make sense.
 
user1596138
That's just absolutely awful.
 
6:25 PM
but then everyone can understand his code
2
 
@Jhawins it was not intended to be seen by users
 
@Cicada3301 ... but it is seen by users... All javascript is seen by users...
 
wait... I'll change every variable to something that makes sense now
 
Ale
No code is intended to be seen by users
 
@Cicada3301 let's see if you can do it
 
user1596138
6:25 PM
@Cicada3301 that's stupid.
 
@qwertynl ok... but who when goes on a website looks at the scripts.js?
 
@Cicada3301 I do.... as do many other people...
 
@Cicada3301 but then again, why would you even want to read your code and know what it does after a while?
 
user1596138
Always write code in a way that a future user/programmer would be able to follow it. If variables names are 1 character that is not feasible.
 
@qwertynl I fully expect a professional site to have minified their javascript.
 
Ale
6:26 PM
^
 
@BartekBanachewicz becouse I understand it: I'm used to code with 1 char vars
 
@Shmiddty Yes, but they do not write it minified lol
 
user1596138
Imagine you didn't write it. Would you be able to understand it? //returns false
 
@Cicada3301 what is M?
 
@qwertynl Of course not
 
6:27 PM
@BartekBanachewicz lemme check where it is in the code
 
@Shmiddty He implied that he wrote it minified lol
 
Ale
@BartekBanachewicz M is 1
Well, at least at the very beginning
 
user1596138
@Cicada3301 No. You can only understand it because you wrote it.
 
That's not minified at all. Shoooot
 
@Ale No... one is 1
 
6:28 PM
The only reason to write minified code is if you're @copy or trying to impress @BadgerGirl.
8
 
@BartekBanachewicz that doesn't make any sense... I should remove that
 
user1596138
@SomeKittens yup
 
amazing, right?
 
$('#chart-row').sortable({
    handle: ".fa-arrows",
    opacity: 0.25,
    placeholder: sortablePlaceholder(),
    helper: 'clone',
    grid: [10, 10],
    forcePlaceholderSize: true,
    start: function (event, ui) {
        ui.placeholder.classname(sortablePlaceholder());
    }
});
 
look how readable his code is
well done @Cicada3301
 
6:28 PM
oh no... M is the count of prime numbers...
 
@Cicada3301 Who starred this?
 
Anyone know how to get it to update the placeholder class?
 
user1596138
I think someone needs to clean up the stars. Someone is starring random shit.
 
@Jhawins I agree...
 
@Cicada3301 ... or is it?
 
6:29 PM
@qwertynl no idea
 
ARG TOO MANY STARS
3
 
user1596138
^
 
Ale
$('#c-r').so({h:".-a", op: 0.25, plh: soPlHold(), helper: '@copy', gSz: [10, 10]})
 
@SomeKittens One of these days @BadgerGirl will appreciate the shortness of my code!
 
@BartekBanachewicz yes it is: look: after adding i to the array of prime numbers M goes all like 'hey bro! I'm ++ ing!'
 
6:30 PM
GAMBATTE!
 
user1596138
@Cicada3301 Why the hell isn't it "count" or "pCount" or "pCnt" or anything actually decipherable.
 
@Ale Thanks for keeping me updated
 
@Jhawins I'm changing it right now...
and I didn't think that people as smart as you couldn't make a prime checker
 
user1596138
!!tell Cicada3301 awsm how do you like reading things like this? This is what your code is like, except even less readable.
 
@Cicada3301 hw d u lk rdng thngs lk ths? Ths i wht ur c i lk, excpt evn ls rdbl.
 
6:31 PM
:D
love it
 
user1596138
@Cicada3301 You think we aren't capable of writing a prime number validation function?
 
@Jhawins LOL
 
user1596138
Are you delirious?
 
@Jhawins bartek couldn't
 
user1596138
!!s/could/would/i
 
6:32 PM
@Jhawins @Jhawins bartek wouldn't (source)
 
user1596138
@Cicada3301 Because you simply aren't worth his time :).
 
@Jhawins no, he asked me to make one... and I said I built one years ago
 
6
Q: How to find prime numbers?

user1599757In Javascript how would i find prime numbers between 0 - 100? i have thought about it, and i am not sure how to find them. i thought about doing x % x but i found the obvious problem with that. this is what i have so far: but unfortunately it is the worst code ever. var prime = function (){ var ...

It does not seem that hard to do...
 
@Jhawins he needed them to complete project euler
@qwertynl yes, I've seen way smaller ones.... but mine has a bit more functions added
 
6:34 PM
@Cicada3301 Like what?
 
@qwertynl showing all of the divisors of that number
and if I change the code up a bit I can get the nth prime number
 
user1596138
Aside from that, not everyone in this room is equal. @Shmiddty is good with a lot of things, and I specifically ask him certain questions (or have in the past) because I know he'll know what to do. @SomeKittens is understanding and doesn't bash me for not knowing something simple, or making a mistake, so I ask him petty things. @Copy is the fucking golf king. And so on...
Everyone here is a different person and you can't take any single person's knowledge -or lack thereof- as an indication of this room's intelligence.
 
16
A: How to find prime numbers?

Ted HoppHere's an example of a sieve implementation in JavaScript: function getPrimes(max) { var sieve = [], i, j, primes = []; for (i = 2; i <= max; ++i) { if (!sieve[i]) { // i has not been marked -- it is prime primes.push(i); for (j = i << 1; j <= ...

 
Ale
Okay, I was looking for some sort of css/js library (framework?) that was posted here some time ago
 
you want something very quick and small?
function isPrime2(n) {
 if (isNaN(n) || !isFinite(n) || n%1 || n<2) return false;
 if (n%2==0) return (n==2);
 var m=Math.sqrt(n);
 for (var i=3;i<=m;i+=2) {
  if (n%i==0) return false;
 }
 return true;
}
 
Ale
6:36 PM
It is sort of Android Holo-ish
Does anybody remember?
 
wth: if (n%2==0) return (n==2); @Cicada3301 ???
 
@Jhawins D'awww, shucks
 
user1596138
@Cicada3301 You didn't write this... You stole it from here
 
@qwertynl try it: it works
@Jhawins yes, I didn't say I built that
 
@Jhawins LOL
 
user1596138
6:37 PM
I imagine this will be the case with nearly everything you've "written."
 
@Cicada3301 return (n==2) ?? You do not see the issue there?
 
guys: I said that if you wanted something small and quick(=not made by me) there it was
 
@qwertynl 2 is a prime, in case you didn't know that
 
It's plagiarism if you don't provide a source (source)
2
 
Ale
@qwertynl if n is 2, then n is prime
 
6:38 PM
@Jhawins Hey man, @copy doesn't even golf any more. He's too good for that shit.
 
Ale
Obviously
 
@copy lol return n==2? Doesn't it return false for when n!==2?
 
@qwertynl Yes, since odd numbers aren't prime
 
Whatever. SHINK @Cicada3301 SHRIIINNNK!
 
1 message moved to Trash can
@Ale shhhhhhh
 
6:39 PM
hi, does ["a", 20: 2] allocate memory from 0 to 19 ?
 
Ale
!!> ["a", 20:2]
 
@Ale "SyntaxError: missing ] after element list"
 
!!> console.log([i for(i in Array(20).join(0))])
 
@Shmiddty "undefined" Logged: ["0","1","2","3","4","5"]
 
its a console log
 
6:40 PM
sexy
 
package names should be the same as the command names
ssh-keygen -> package openssh-keygen
 
@Shmiddty "undefined" Logged: []
@Shmiddty "undefined" Logged: ["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17‌​","18"]
 
@Jhawins I am a fraud. I am not actually citrus at all! and I have never prevented scurvy in my life. :(
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
!!> [a[i]||"balls" for(i in a=[0,1,false,true,null,NaN,undefined,"banana"])]
 
6:44 PM
@Shmiddty "SyntaxError: missing ( after for"
 
@Jhawins I was actually trying to go on the roundabout but the centrifugal force made it go slide ways.
 
@Shmiddty ["balls",1,"balls",true,"balls","balls","balls","banana"]
 
@RUJordan Hahaha, I love how me picking a random name turned into a hunt for Steve
@rlemon Eugh, why?!
 
@Jhawins Pretty bad.
 
@rlemon dont lie I know you inject people with dat citric acid!
oh man today I finally got an idea for a pen
 
6:49 PM
@Loktar Is that what he calls his sperm?
 
once I get home Im going to do it
@Shmiddty yea
it goes well on candy as well
 
@Loktar me doing the nasty to non-fruits
 
lol
well if you did it to fruits... we could assume something about you
^ bad joke?
 
Where's @RyanKinal?
 
check your moms room
 
6:50 PM
idk I saw him briefly earlier
 
\o
 
Your city's pretty sweet. I like it.
 
still here?
 
No. Flew back yesterday.
 
6:51 PM
You just missed the snow
It's coming down now
 
Yeah? Not sure if I'm sad or glad.
 
@RyanKinal when are you coming to see me?!
 
We're getting rain here.
 
we can have a beer together and look at my fish
 
I dislike being cold
 
6:52 PM
lol
 
Ale
Okay, found it
 
^ @everyone
srsly
 
Done and done.
 
@rlemon YOU CAN'T MAKE ME
 
@Jhawins he is 13, dude.
 
6:54 PM
It's physically impossible for a 13-year-old to stop pretending they're 'all that'
 
@rlemon I'll come to visit you sometime. Probably. Maybe.
 
17 messages moved to Trash can
23 messages moved to Trash can
 
@Cicada3301 that's a really really really naive way to check for primes.
 
1 min ago, by rlemon
user image
 
wow wtf I went to go pee
 
6:54 PM
^^^^^
 
:14063305 and then I said it was referred to bartek
 
PHP needs to die()
 
@rlemon lol oops
 
@BartekBanachewicz you can't make a prime number checker ^^?
 
user1596138
6:55 PM
@BenjaminGruenbaum He will be confused... @rlemon took the liberty of deleting the only part of the last hour that wasn't negative.
 
@BenjaminGruenbaum that is the principle I used
 
user1596138
lol
 
@Cicada3301 it is?
@Cicada3301 because it sure looks like you just looped from 2 to the square root.
 
@BenjaminGruenbaum yeah.. sorry... didn't read it throughly... was dressing...
 
user1596138
@Cicada if you're really 13 then yeah, you can be however good or bad you want, and you can pretend you're however good or bad you want. Just don't make fun of @BartekBanachewicz because his name is awesome.
 
6:57 PM
Miller Rabin is a more sensible way to accomplish this.
@Jhawins but @BartekBanachewicz is a total noob.
 
user1596138
@BenjaminGruenbaum But his name is awesome... Doesn't that make him good, and he should feel good?
 
@Jhawins he simply asked me... and I answered... and while the file was loading I wrote stuff... and his name is awesome... what does it mean?
 
user1596138
It's his name...
 
!!slidepoop
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
6:58 PM
@Jhawins ohh so you two arguing on isn't binnable?
 
user1596138
@rlemon Nope. We've been given amnesty from the very top: Deep.
 
I feel like a babysitter some days. Other days I think that is insane because who would leave me with their child.
 
@rlemon what do you think about the new community?
It surprised me for the better?
 
I really need to go now... I should do 20mins by bike and basket class starts in 15 mins
 
6:59 PM
@BenjaminGruenbaum I have only seen E1 and E2 but so far so good
I was happy to see Troy in it, albeit only for the beginning
 
:) I thought they'd drop the ball.
 
Does anybody else in here hate the last 2% of a project as much as I do? All the fiddly little edge-cases that just annoy the crap out of you?
 
user1596138
lol all shit aside that kid will probably do ok. He's doing better than most of our 13 year old wannabes.
 

« first day (1186 days earlier)      last day (3754 days later) »