« first day (1433 days earlier)      last day (3509 days later) » 

7:00 PM
I wouldn't read it either, but many italian teachers would consider it artwork
 
@KendallFrey Whose messages do you like most?
 
@copy his :P
 
Doesn't matter, as long as they're long
 
========================================================================D
There you go
 
You have no balls, copy.
 
7:01 PM
so Badger really does have your balls
2
 
@KendallFrey Roger.
 
The whole thing didn't fit
 
twss
 
twywss
 
7:02 PM
twbs
 
see? this is exactly the kind of shit my schoolmates would enjoy
 
@towc good! bring them here
 
I'm sure the NSA also enjoys our conversations
 
we will make them see how ugly your websites are :P
#shorts-fired
 
@rlemon you probably wouldn't want to meet them
 
7:02 PM
Shorts?
 
yes
 
@rlemon they already know
 
I think that's a euphemism for farting
 
yesterday, by rlemon
#shorts fired
I'm starting a new thing
 
but they think that's it's super hard to make a table... so nobody says anything against me for that
 
7:03 PM
I have absolutely no motivation today
 
@Shmiddty buy some
 
I'm just stoked today, I'm not going to jail
 
bad boy, bad boy, watcha gonna do...
Actually, what did you do?
 
didn't file taxes for ten years
got them sorted today
 
Today, on this day in history, I did NOT! Go to jail.
jesus christ the IRS would hunt me down for 4 months overdue
 
7:05 PM
!!inhistory
 
@rlemon That didn't make much sense. Use the !!/help command to learn more.
 
:( removed
 
fuckers
 
it was strange having to file 2003's T4
 
@mikedidthis I saw!
 
7:06 PM
I don't understand this, but it's mesmerizing: codepen.io/zadvorsky/pen/iwemx
3
 
oo that looks like fun
 
that's fucking sick
 
@NickDugger that almost scared me
 
7:08 PM
@SomeKittensUx2666 this passport dealio
 
user1596138
DEVELOPERS!
 
@rlemon oh, boy.
 
how do I add something to the user session object
 
JHAWINSES!
 
...user session?
 
7:09 PM
Mandatory wat is drugs
 
lol
 
Do I miss something here ?
0
Q: Assign null to javascript var - ends up as String

Matthias GrafI have initialized my variable as the following: var name = null; If I check it's value like this it doesnt do anything: if(name == null) { alert("Name = null"); } But if I change the if-clause to that, it works: if(name == "null") { alert("Name = null"); } Happy for every help.

 
passport.use(new LocalStrategy(function( ... ) {
  // query
  var user = res.rows[0];
  user.foo = 'bar'; // trying to get this later says undefined
  return done(null, user);
}));
@SomeKittensUx2666
 
@SterlingArcher have you seen the "I can break these cuffs" one?
 
Nooooo is it funny? lol
 
7:11 PM
haha yes!
 
@rlemon that should work....
 
@Loktar that is one jacked little person
jesus
 
haha yea still couldn't break those cuffs
 
video cuts out
who knows man
maybe he broke them and is on the loose somewhere
 
!!s/on the.+/under your bed/
 
7:13 PM
!!> 'null' === null
 
@Shmiddty maybe he broke them and is under your bed (source)
@SterlingArcher false
 
user1596138
!!> null === null
 
user1596138
lol
 
!!> var name = null; if (name === 'null') console.log("true");
 
@Jhawins true
@SterlingArcher "undefined"
 
7:13 PM
tf
 
lol.
It's cute how you're confused
 
user1596138
@Sterling why are you expecting it to work... Hahaha
 
dystroys question
var name = null;
undefined
if (name === 'null') console.log(true);
true
My browser console. I think it's definitely a window.name confliction
 
user1596138
@SterlingArcher Well yeah that's what I get
 
m59
@SterlingArcher and it's a fail == loose equality check.
 
7:16 PM
if (name == 'null') console.log(true);
true
 
m59
Let's use global variables and loose equality so we can fail and post scrub questions on SO!
 
Nay, it passes both
 
user1596138
!!> var name = null; console.log(typeof name); console.log(typeof null)
 
@Jhawins "undefined" Logged: "object","object"
 
user1596138
7:17 PM
var name = null; console.log(typeof name); console.log(typeof null)
string VM605:2
object
 
user1596138
I am also confused now.
 
@Jhawins, @SterlingArcher window.name is a string. When you assign something to it, it gets turned into a string as well
 
window.name = undefined;
name; // "undefined"
 
user1596138
@Zirak Oh
 
user1596138
7:18 PM
And the name is retained
 
user1596138
Because it's the window name...
 
user1596138
That makes total sense. Thanks @Zirak!
 
m59
That post needs to be deleted immediately.
 
@Zirak I had the exact same issue with window.status
-1
A: Assign null to javascript var - ends up as String

Ajk_PYou are just simply wrong. <h1 id="title">Javascript example no.2</h1> <input type="text" id="myTextField"/> <input type="submit" id="byBtn" value="Change" onclick="change()"/> function change(){ var name = null; if(name == null) { alert("Name = null value"); } if(name == ...

 
user1596138
7:20 PM
window.open("http://bigones.com", "named"); // name is "named"
 
> You are just simply wrong
 
user1596138
That's cool
 
classic
 
user1596138
TIL ^
 
m59
Somebody's a 20k+ noob
@m59 I do - it is quite rude to attack me personally. First, off I do not believe it is always better to use ===. Secondly, as I have argued, that question does not apply here. — user2864740 23 secs ago
 
7:24 PM
@SterlingArcher The worst for me is that I now remember it as a duplicate...
 
@dystroy dude you're telling me. It's a duplicate of MY duplicate
 
m59
The one I answered?
window.clear or something?
oh nm, that was something different, same problem, but my answer was on a post dealing with inline js.
 
That bro butthurt
 
m59
lol his last comment
He doesn't want me to teach about loose/strict equality, but somehow he's all for teaching people wherever possible.
Very logic.
 
Anyone here is a big fan of AngularJS? :P
console.log('profile2', Date.now());
$timeout(function () {
    console.log('timeout', Date.now());
    …
}, 0);
 
m59
7:28 PM
@Miszy well, I like it a whole lot, but my fandom is reduced a bit as of late.
format your code, bro (ctrl k)
 
@m59 got your back bro
 
output:
> profile2 1411067872784
> timeout 1411067873904

1411067873904 - 1411067872784 = 1120ms ?!
 
window.name = {foo: 'bar'};
name; // "[object Object]"
 
m59
@Miszy is that code running entirely by itself or within an app with other code?
 
I have no idea what's going on and I feel like I'm diving in some deep sh*t here.
@m59 It's within the application, but if one cycle takes over 1000ms there's something messed up :/
 
m59
7:29 PM
@Miszy well, there is first the fact that the timeout won't run at 0 no matter what. I think it's something like 4, so now we're down to 1116 lol
 
(function a() { window.name = { toString: a }; })()
InternalError: too much recursion
 
@m59 lol dat thread
 
@m59 I wouldn't care if $timeout with all Angular's overhead took 100ms in this case ;)
 
m59
@PeeHaa sigh. I just wanted to see === :)
 
And rightfully so! :)
 
7:32 PM
I love when people warp shit and play victim cards
 
I like how the room description is "We're not happy..." and then the top two starred messages are "Happy birthday!"
 
room topic changed to JavaScript: Everyone is wonderful.: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angularjs is on topic here. stop asking. Reg room here: chat.stackoverflow.com/rooms/59354 [ecmascript] [go-away-please] [horse-grooming] [javascript] [no-social-experiments] [phrasing]
 
Can I ask an Angular question here?
:P
 
m59
@Miszy you got prollems bro jsbin.com/piqari/1/edit
That ran in 9ms
 
:kick-mutes @PeeHaa:
 
7:34 PM
:D
 
!!> String.fromCharCode(3232, 95, 3232)
 
@rlemon "ಠ_ಠ"
 
@Retsam That's part of the reason I'm not happy. It's my birthday too.
 
m59
@PeeHaa so... do you actually have an Angular question, though?
 
7:35 PM
@m59 Kill me please. And repeat after me: Frameworks are for Prototypes ;)
 
@rlemon Wait... that can take an array?
 
m59
Now I'm asking for you to ask your question that you asked if you could ask....
 
mind blown.
 
Neh that's too javascripty for me :-)
 
@Shmiddty not array, N arguments
 
7:36 PM
I'm going to hate Angular from now on.
 
@Shmiddty seriously?
 
Sure it can. String.fromCharCode.apply(String, [])
 
m59
@Miszy hm... really? I don't agree with that article a bit.
 
@Shmiddty that is using apply
;) not the same
 
@rlemon :p
 
7:37 PM
Is there such a thing as a command line tool that basically just changes git commands to something sane?
 
apply converts the array of arguments into N arguments
 
!!tell Shmiddty spec String.fromCharCode
 
@twiz learn git?
 
Like git uncommit instead of git reset --soft HEAD something.. something something...
 
7:37 PM
@m59 Well… at some point you'll find yourself wasting time on hacking internals of the framework instead of doing your job efficiently.
 
@twiz make an alias \
 
@rlemon There is a tool called "learn git"?
 
@twiz Write one and share with the world
 
I've never had a reason to read the spec on fromCharCode
 
7:38 PM
@Zirak yea, I'm thinking about it. I just assumed someone else would have thought of it...
 
it does what you would expect it to do
 
There are several git clients, I'm not aware of any notable one
 
m59
@Miszy I haven't had that problem or seen any case where it was necessary (perhaps nice, but not necessary)
 
honestly, being able to pass in multiple values doesn't really go with the name
 
@twiz git pull --rebase upstream develop is my favourite ;)
 
7:38 PM
git init
 
String.fromCharCodes(arr) would probably make more sense, but whatevs
 
my favorite command
 
m59
@Miszy considering facebook is using a framework (react) and Google uses Angular for a bunch of stuff (that's why they made it), who am I to believe - Google and Facebook or blog guy?
 
I don't really want to just create aliases since that will only work on one machine and I will just confuse myself more
 
@m59 I had two issues which required hacking into Angular. Not nice ;)
 
7:40 PM
@twiz The same would happen if you make a git client which doesn't speak git :P
 
m59
Such as?
 
@PeeHaa how would anyone ever forget git uncommit?
 
@twiz i'm trying to only commit from my laptop now :P
use my desktop as dev, laptop as staging, laptop to push to prod
 
@m59 You could make the same argument for perforce over git, but I think most people would argue that git is the better vcs.
 
@twiz It's not about forget, it's about non standard making it really hard to work on different machines
 
7:41 PM
result = (':(', eval)(code);
This is the saddest line I've written to date
 
@PeeHaa That could be said about literally anything
 
I'm not saying that I necessarily agree with the "eschew frameworks" argument, but I do think the Appeal to Authority argument is flawed.
 
m59
@Retsam I don't know anything about it, but I bet you can't make the same argument for it. Either that, or we actually should be using it and don't know any better.
 
@twiz Not when something adheres to standard X
 
@m59 I had to decorate $anchorScroll so it doesn't get called on the initial page load but does on $locationChange. Tricky part: This has to be done in the config phase so I ended up writing this monster.
 
7:43 PM
You just know what you can expect
 
m59
Wrong, Appeal to Authority is a GREAT idea - a totally necessary one. You misunderstand what that fallacy actually is.
 
@rlemon , @KendallFrey can you some-how figure out how to compile pHash on widows ?
 
no
I treat widows with respect.
 
@AbhishekHingnikar phash.org/download
download it from their website
 
7:45 PM
@m59 Really? From the wikipedia summary:
 
what do I win?
 
> A says P about subject matter S.
A should be trusted about subject matter S.
Therefore, P is correct.
 
Happy birthday @Shmiddty
 
@rlemon thats a .zip
that won't compile
 
m59
@Retsam yes, that is a misunderstanding
 
7:46 PM
misses cImg, ffmpeg and a bunch of libs
 
m59
What you just copied and what you are saying are two different things.
 
@m59 Another one: Make ngClickDirective listen not only to the click event but also to a custom tap event… So another one.
 
like i said its hard, @rlemon i asked you cause afaik you have worked with native code on windows. .. i prefer compiling modules on linux.. [cause its easy] i
@Shmiddty happy birthday
 
@SterlingArcher blocked in Canada :(
 
@m59 Substitute A = "Facebook and Microsoft", P = "frameworks are worthwhile even for production code", S = "software development", and I think you have the argument you just made.
 
m59
7:46 PM
I never said they were correct
I said "who am I to believe?"
 
@KendallFrey that's what you get for being not from America
 
99% of me is from America
 
m59
in which cause, appealing to authority on the most sensible choice you can make
 
builds in VS for me
doesn't run :/
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
all of the dependencies are also on the site for download
I fail to see the issue other than you don't want to have to do the work ;)
 
m59
@Retsam the problem you're having is that you're assuming my statements to be arguments of logical deduction leading to facts, whereas I am using inductive reasoning to determine what we should believe.
Two different subjects and approaches.
 
user1596138
7:49 PM
Anyone want a reason to kill yourself?
 
user1596138
0
Q: Tidyup PHP if else function

dmti'm really struggling (as a PHP newbie) to tidy up this code and get it to work (statements within statements in wordpress). Hopefully you should be able to understand what i'm trying to do from the code i have below: Thanks for your help ... <?php if ($curauth->_mgm_user_status; > 'expired') {...

 
dat answer o_o
 
gave u canser ?
 
user1596138
Dat asker username
 
7:51 PM
2
Q: Scoping "this" in Javascript (and jQuery.extend)

tdavisSorry if this has been answered, but I couldn't turn up a search for it... a difficult thing to search for, I think! Say I have this: var MyPrototype = function() { this.init(); } $.extend(MyPrototype.prototype, { a: 5, init: function() { var thing = new SomeOtherClass(); ...

its all about meth guys !
 
m59
@Miszy Imo, things aren't modular and configurable enough with Angular
and that's why you had those issues.
 
@m59 Exactly ;) Because frameworks are for prototypes :D
That's why AngularJS 2.0 is not really a framework, it's more a collection of libraries.
 
m59
^ But it's really a framework :)
No need to reinvent wheels.
If you put together your own framework, it's still a framework.
Durandal (which Angular 2.0 takes a lot from) is a framework - it's just strong where Angular is weak.
and weak because it uses jQuery and knockout lol
 
idk. angular has IoC and DI.. I haven't used it, but it seems rather strict and guiding - I'd call it a framework
 
m59
Angualr 2 is going to be a lot different.
 
7:56 PM
can eating too many biscuits kill me ?
 
Sure
 
aww @m59 the comments were finally purged.
@m59 First, off I do not believe it is always better to use ===. Secondly, as I have argued, that question does not apply here. — user2864740 34 mins ago
makes me flinch slightly.
HE HAS 20K REP FFS
 
m59
yeah, that's kinda a fail place to stop.
 
HAMMERTIME!
 
m59
huehuehuehue
I need to discipline myself to stay away from main.
That place is overrun by vamps and trolls. It's scary.
 
7:59 PM
well he does frequent the Java tag
 

« first day (1433 days earlier)      last day (3509 days later) »