« first day (963 days earlier)      last day (3977 days later) » 

9:00 PM
@rlemon That's what I was checking :)
 
so long as the bot is running we don't have to stay in Gallery. Just move it in when the room gets out of hand and out when we get back to settled.
if the bot is not running Gallery mode would be annoying
and I need to write a userscript to ignore the requests
 
@Connor color = _i = 1; ?
 
@DavidBiga Never wrote anything for Android, sorry. Also note Android == Java && Java != Javascript.
 
@mikedidthis thats the output
 
9:02 PM
aww wtf
 
@rlemon who is that?
 
@JanDvorak I know bro but I thought someone might know something! Do you know if I can implement this onto a server?
 
@Connor yeah, I just don't get how a = b = c but I am tired.
 
@DavidBiga no idea, never tried it
 
@JanDvorak Okay thank you!
 
9:03 PM
yeah i don't like coffee anymore
 
@BenjaminGruenbaum thats me but thats not the pic I wanted to upload
666 days
anywho
home time
l8tr g8trs
 
kbai
 
@rlemon That's a lot different than mine
1,249 up and 106 down
 
 
user1596138
9:07 PM
Most recent idea from the girl who was drunk at the office this morning... "We shouldn't have any ads on the website, I hate ads."
 
user1596138
I said "The ads on the website cover your entire paycheck and then some. Give up your paycheck and I'll take down the ads." She got mad at me and went home...
 
Really?
Which website is this?
Not many websites do well with ads
 
@Jhawinsss I hope she was fired.
Workplace relationships suck.
 
She raises a valid point.
 
user1596138
@ShotgunNinja I hope she gets fired. I don't have a relationship with her lmao I just banged her once...
 
9:11 PM
@Jhawinsss Still, she's narrow-minded, and from what you've told me, mildly self-destructive.
 
user1596138
@Zirak Non-intrusive ads only. Also only local events can advertise with us. We are an entertainment paper. So having the best local events right on the homepage in the form of ads works perfectly.
 
If she doesn't get why ads are present on a website...
 
user1596138
Our companies only source of income is ads. We're a print publication (Yes, we are doomed) and ads can cost anywhere from $400 to $1400 per week with us.
 
user1596138
Taking away just one ad in a week is the difference of hundreds of dollars. That web ads aren't as expensive, though. They can only be run tandem with an ad in the actual paper.
 
@Jhawinsss Why is print doomed?
 
9:14 PM
print is becoming a niche market
 
user1596138
@mikedidthis I don't feel like that question needs to be answered.
 
user1596138
We are a local-only print publication about music and arts. We are doomed.
 
@Jhawinsss eventually print will die, but its going out very slowly.
@Jhawinsss oh...
 
user1596138
We used to circulate about 14,000 papers weekly. Now we do about 6-7K.
 
user1596138
Well, I should say they, not we because I wasn't here at the time.
 
9:16 PM
@Jhawinsss I dunno, Milwaukee has The AV Club, which makes its rounds quite nicely.
 
So it's your fault that your company is dying
 
Can anyone help with an AngularJS Directive problem? stackoverflow.com/q/16949749/20178
 
0
Q: Tips to refactor code : very repetitive code

NaemyI have this very simple problem : my code is too repetitive. It works, but it could be much cleaner. I don't know exactly where to start. I'd like to learn to work better, and I'd really like someone to help me with it. Here's the 2 bits of my code that are very repetitive (everything I've don...

 
user1596138
@Shmiddty We've actually increased circulation over the last 6 months, I've been working here a year and I handle all of our distribution. So I have actually had somewhat of a positive impact.
 
@Jhawinsss so why are you in a Javascript chat room, exactly? Do they make you maintain the websites in addition to handling distribution?
 
user1596138
9:18 PM
@ShotgunNinja Yes. Along with anything else IT related.
 
@Jhawinsss barf.
 
user1596138
Although our website sort of sucks ass right now. I'm part-way through rewriting it.The person before me wrote it and was horrid. I've designed a lot more back-end systems for them.
 
@Jhawinsss What do they use for a backend?
 
user1596138
Like, our book-keeping is all managed online now. Same with collections and potential clients.
 
user1596138
@ShotgunNinja We have no literal backend program or CMS if that's what you're asking. I have a blank server with FTP access and everything is done by hand.
 
9:21 PM
No way to hire someone who will do something queekly ?
 
FALSE. Black bears. @NullUserException in other words: Would you be able to explain why you think it is incorrect? — Neal 17 secs ago
 
user1596138
I used to be responsible for all of the web updating for calendars... I said I wouldn't do it along with everything else he has me doing because he didn't give me enough hours.
 
user1596138
@dievardump Queekly?
 
@Jhawinsss What language?
 
"Quickly" maybe?
 
user1596138
9:22 PM
@ShotgunNinja Mostly PHP.
 
Yes Quickly
 
@Jhawinsss Okay, that's what I was trying to ask. Kinda used the wrong term.
 
user1596138
Along with MySQL obviously for databases. But they're on a different server.
 
Always listen to Zirak.
 
Well, at least it's not Java and Struts.
So much enterprise-level garbage on our sites.
 
user1596138
9:23 PM
Exactly. Although we're about a year behind on PHP updates because our host is basically a bunch of 60 year old men trying to keep up with the times. They're failing and have no idea what they are doing.
 
@Jhawinsss Sounds secure
 
user1596138
@BenjaminGruenbaum Bad Benjamin!
 
user1596138
I'm honestly just ready to get out of here. I'm supposedly developing an iOS app for them also. Although I have no idea what I'm doing, I have to learn as I go.
 
lol
 
user1596138
Objective C is very different from PHP and JS.
 
9:29 PM
I don't know. None of them have much to do with C.
 
@Jhawinsss Really? I thought that it was very similar to them, being a managed dynamic language and all
 
I thought Obj C was backwards compatible with C. At least I'm sure it was at one point.
 
Add that to the fact that none was invented by Brittany Spears...
 
@Zirak , not that that wouldn't explain a thing or two...
 
user1596138
@BenjaminGruenbaum Maybe it is. But not to me.
 
9:31 PM
maybe that was in the dim and distant past
 
Good evening :) im reading some book and i found sentence "Within the same scope, variables not yet defined cannot be forward-referenced". English is not mine "main" language, is "forward-referenced" typo or what it means. Thanks.
 
@Srle I'm not sure, can you give more context?
 
It means this:
 
Or listen to that guy. He owns a monkey.
 
Dear god this win 8 tablet is horrible.
 
9:33 PM
function () {
    console.log(myVar); // undefined
    var myVar = 0;
}
 
!!should we wait for rlemon to unveil /fuckable?
 
@Zirak Certainly
 
@Jhawinsss seriously?
 
@rlemon Hurry up!
 
9:34 PM
Oooh did you fix it?
we can do inline eval now?
 
var x = 5;
function lol(){
   console.log(x);
   if(false){
       var x = 7;
   }
}
lol();//undefined
 
No, I made built-in. Added maps for some inputs and special output for when you try and do it on a user. Some easter eggs.
 
Oh fun!
 
user1596138
@BenjaminGruenbaum I don't completely understand the question... But I struggle a lot more learning objC than I did with PHP or JS.
 
@Zirak this is the example: http://pokit.org/get/?4e9dbce4047f581f9ab6e505d5563238.jpg
(and the explanation is: Because "Within the same scope, variables not yet defined cannot be forward-referenced" explain why the inner closure can see variable tooLate but the outer cannot)
 
9:36 PM
I found Objective C even harder to learn because of the weird reliance on graphical tools
Like how you have to drag and drop things
 
@Srle Then listen to phenomnomnominal and BenjaminGruenbaum, they are correct
 
The course I took refused to show a way to do it using code
And it was pretty confusing in the end
 
@Jhawinsss It's a completely different language... it's not even close, it's not managed, or dynamic.
 
@phenomnomnominal @BenjaminGruenbaum @Zirak thanks :)
 
@Zenith BRACE YOURSELF. NOOBS ARE COMING. — Å ime Vidas 2 mins ago
made my day lol
 
user1596138
9:40 PM
@BenjaminGruenbaum I never said it was...
 
@Jhawinsss not saying you said it was either.. :P
 
user1596138
@BenjaminGruenbaum If you mean where I replied to him and said "Maybe it is" I simply said that because I didn't care to have a dispute, I'm rushing to get something done so I can go the fuck home.
 
Guarantee you the OP asks why staticContainer is undefined. — Gabe 6 mins ago
 
That too rofl
 
user1596138
Should I just setup a CMS for these people or what? I'm tired of this shit.
 
user1596138
9:48 PM
Anybody got a good reason not to use a public CMS? If not, does anyone have any suggestions?
 
@Jhawinsss For what you're doing assuming you already have PHP? Probably wordpress
@Jhawinsss ask in the PHP room though
 
user1596138
I don't want to use wordpress though... That's for sure.
 
user1596138
I haven't been considering it but now that I am I'll do some research tonight. I hate the idea but I can't take these people anymore.
 
Drop in some Joomla or Drupal? IIRC @FlorianMargaine does some of the latter
 
AAA
How do I get a "permanent" access token with Facebook's Graph API?
All I want to do is parse the JSON data via Javascript and display it in an HTML document. No special user permissions or fancy stuff. How do I "refresh" the token in Javascript?
 
9:56 PM
!!> Math.PI.toString(33)
 
@Esailija "0.8cvfu0vrt34"
@Esailija "0.8g20kq0cb3c"
 
anyone get a long string on console?
 
@Esailija "3.4m6dn4ow9r"
 
user1596138
Well, I'll look around tonight. I'll probably only have time to actually do anything on or after Monday.
 
user1596138
Thanks guys. My goal is to get them setup on a good CMS I think and then ditch the company for something better. I don't want to leave them stranded because I've known the boss for longer than I've worked here. Kind of a tough position.
 
9:58 PM
One potentialy dumb question. Closure (of some function x) is made in time of invoking that function? So when interpreter see x(); closure is made?, or it is made before function is invoked(on declaration) or...?
 
wut
can you give code
 
@Esailija yes
 
is the bot not running v8?
 
I get "3.4m6dn4ow9qwe210nr3u0cdqkcnrbmwlh7kmfeapn9fijt38kie44jvdqh2vfrd6ogbvurnjq2bqkbr01f97av5k7uaffclrl3hmt2glugpaqe422qgfn81ca8pa73pmt51ewqo9234ckm2twg1qgwmahsv1pdti9bug3bjc9w0sn9ul421...
@Esailija Bot is on firefox now
 
ahhh
fuuuu :)
run this in chrome console Math.PI.toString(33).match(/[a-z]+/g)[29]
 
10:01 PM
LOL
 
and they are not really in a hurry to fix it... should serve as a good engine detection test
 
Is it a bug though?
 
kinda like @cc_on is for JScript
yes
 
@Esailija
im speaking generally, for example:
var a = 10;
function x() {...}
var b = 100;
x();
And "b" is available in x function, but if put var b = 100, after x() b is undefined(via hosting) so closure is made on function invocation :$ ?
hoisting*
 
it should simply be base33digits decimal point base33digits
!!> 3..toString(33) + "." + 141592653589793..toString(33)
 
10:04 PM
@Esailija "SyntaxError: identifier starts immediately after numeric literal"
@Esailija "3.31mawg0ufw"
 
something like that is the correct result
not a string of 1000 characters
xD
 
@Esailija Math.E.toString(33).match(/[a-z]+/g)[134].substring(1,4)
 
lol
you should also check out
console.dir( String.prototype.localeCompare.prototype )
then navigate to constructor, <function scope>, Closure
you will see native source code
 
Where?
Also, I love what Date.prototype is :P
@Esailija oh lol, nice find!
How did I just get access to <function scope> there? That's supposed to be impossible iirc
 
well it's the debugger
it can even stop your code from running!
 
10:11 PM
Yeah, but still if I wanted to do something like that for one of my objects, I wouldn't be able to
 
yes not from normal js
from debugger you can do lots of stuff, like traverse the heap
 
I'd need something like parent or something
 
and therefore closures
although I suppose there is a flag to pass to chrome to get access
 
I tried, didn't find it, then again I quit after about 20 minutes
 
well nope it's just V8 API
you can do it in nodejs though
 
10:17 PM
Yeah, in node js it's possible :)
var counter =0;
function findStuff(wat){
 for(var j=0;j<100;j++){
 var y = Math.random();
 window.y =y;
 var x = Math.asin(y).toString(33).match(/[a-z]+/g)
 for(var i=0;i<x.length;i++){
     if(x[i].indexOf(wat)>=0){console.log(i,y,x[i],x);return; }
 }
 }
 console.log("done attempt "+(++counter)+" still nothing in window.y");
 setTimeout(findStuff,0);
}
Fun with chrome
 
:D
 
if(~x[i].indexOf(wat)) return console.log(i,y,x[i],x);
 
This is what happens when I write code in developer tools :P
 
yea it's a common trap "it will just be 1-2 lines no need to switch to editor"
 
Also probably return y instead of global
 
10:23 PM
@rlemon figure it out?
groups are just for colors
 
@BenjaminGruenbaum you're returning undefined
 
I know, doesn't mean it's a good idea
 
m59
Does anyone understand why an img tag doesn't seem to expand its parent at all?
img 100x100 but parent 0x0
 
@m59 floated?
positioned absolutely?
 
m59
nope
 
10:28 PM
the image is not in content-flow
or you are doing something else that doesn't make sense
 
m59
doh, bad character in display: block
my bad haha
display: blck doesn't do anything :)
 
racist CSS
 
m59
dunno how I missed that
 
screen blindness
 
1 message moved to Trash can
 
10:30 PM
haha
 
Smoking is bad for you, kids
 
@copy 4 characters! for(a in r=readline(i=0))putstr(r.slice(~a)<'!'?' ':r.match(/\S/g)[i++])
 
I know
Different strategy
 
!!>/\S/g.exec('Test abc 123')
 
10:36 PM
@Shmiddty ["T"]
 
(0.9677625258918852).toString(33).match(/[a-z]+/g)[82].substr(3,4)+(0.2432088248897344).toString(33).match(/[a-z]+/g)[157].substr(2,2)+" "+(0.6791548361070454).toString(33).match(/[a-z]+/g)[103].substr(5,4)
@rlemon Run this in chrome ^
 
!!>(0.9677625258918852).toString(33).match(/[a-z]+/g)[82].substr(3,4)+(0.2432088248897344).toString(33).match(/[a-z]+/g)[157].substr(2,2)+" "+(0.6791548361070454).toString(33).match(/[a-z]+/g)[103].substr(5,4)
 
@powerc9000 "TypeError: (intermediate value).toString(...).match(...)[82] is undefined"
 
@powerc9000 run it in chrome console
 
!!/slidepoop
 
10:39 PM
Mar 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.)
 
Aint nobody got time for that
Why do you toString(33)? WHY BASE 33
 
probably a higher occurrence of word-like strings
 
!!/buttstuff
 
yesterday, by rlemon
I would totes do butt stuff to him
 
!!/gayclubs
 
10:41 PM
Mar 18 at 20:08, by Loktar
I've been to gay clubs more than regular clubs lol
 
the bug occurs only on odd bases, could use 35 too to get the letters x, y
 
ah interesting
 
xDd
 
var counter =0;
function findStuff(wat){
 for(var j=0;j<1000;j++){
    var y = Math.random(),
        x = y.toString(35).match(/[a-z]+/g)
    for(var i=0;i<x.length;i++) if(~x[i].indexOf(wat)) return console.log(i,y,x[i],x),y
 }
 if(i++%200 === 0) console.log("done attempt "+(counter)+" still nothing in window.y");
 setTimeout(findStuff,0,wat);
}
@Esailija no love for zirak
 
need 36 for z
 
10:44 PM
.toString(35).replace(/0/,'z')
 
If I ask 'how does this code work with the slide poop above and you answer - that's like 2000 rep in stack overflow, that's how bad the quality of questions being upvoted has gotten.
 
yeah there are just many things most programmers think are magical
rngs are not just bitwise xors randomly hacked together, they magically come up with random numbers
and compilers....
 
Compilers are awesome :)
 
"javascript can parse C#?!!?!"
and so on
 
@Esailija but JS is a scripting language and C# is a programming language!
 
10:51 PM
did you saw the python implementation
on hacker news
 
Brython, yeah
 
lots of sad comments
 
Even tried to get opinions on it here. @phenomnomnominal said he didn't like it, @copy said he'll look into it later and never got back to me on that :P
What do you think of that sort of project? There was one with Ruby not too long ago too
 
well they're unusable unless you throw years into it
seriously you can't just parse python and output js
well you can, but it will perform 100000x slower
 
Almost as slow as CPython :P
 
10:54 PM
he even used 2 arrays in js to implement python dict
 
Yeah, I peeked at the implementation, it looked very naive
It looks like it was built in a way that v8 (and other engines) would have a very hard time optimizing
 
the hard part, optimizations, error reporting etc that would make it usable take 99% of the effort and were completely left out
anyone can make a compiler that just directly generates code
but because of the magical myth, most don't realize it
 
I think it's pretty much a part of every CS degree
 
@BenjaminGruenbaum I am having many interesting things open at the moment, can't open more things
 
@copy That's not a complaint, that's a reminder, don't worry about it
 
10:56 PM
does the average developer have cs degree?
 
I'm not sure, that's a good question, I'm not convinced the answer is "no". At least here.
Then again there are many bad colleges too, that output incompetent programmers. Also most programmers I met in in interviews were very incompetent.
 
well I'm thinking globally, just think of the average question on SO for example
just think of the billions of forum posts everywhere else
 
That's the kind of high quality questions on SO
 
@phenomnomnominal edit ALL the answers :P
 
Haha
"JavaScript is the language that jQuery gets compiled to in order to run properly in the browser"
 

« first day (963 days earlier)      last day (3977 days later) »