« first day (1244 days earlier)      last day (3929 days later) » 

Mornin'
'Ello.
@softarn I saw the context/get the joke but Jython if you didn't know. The Python kids are the only ones who have us beat on running it on damn near everything, everywhere.
@ErikReppen yea thought of that afterwards, but I dont know if I count that as python
It compiles directly to JVM bytecode.
00:29
cause it isn't really python, is it? haven't used it but wikipedia says some parts is missing
I will read wikipedia.
* finishes reading wikipedia.

Oh man, it took forever to get to the part about Jython.
@softarn I'm guessing the idea is core language, yes. "batteries included" standard Python library no. Which makes sense. The whole point is to use the JVM stuff, but Python style.
I wonder how widely used these JVM languages are
yea
121
Q: What? No error?

JwostyYour task is simple. Write a program that should obviously produce an error on first glance either when compiled or run, but either doesn't or produces some other unrelated error. This is a popularity contest, so be creative.

Scala and Groovy are pretty widely used I think but I'd be surprised if more than 10% of JVM usage doesn't involve Java. They also have Iron Python for .NET which is really weird to me.
I wonder if this is interesting enough
!!> ([0,1,2,3] + [,4,5,6,7,8,9]).split(',').map(Number);
00:35
@rlemon ["0","1","2","3","4","5","6","7","8","9"]
@rlemon [0,1,2,3,4,5,6,7,8,9]
This line in the wikipedia article is pretty funny. "Jython was initially created in late 1997 to replace C with Java for performance-intensive code accessed by Python programs, moving to SourceForge in October 2000."

Uh... No. I think it was written to not have to write stuff in Java.
!!> [0,1,2,3,...[4,5,6]];
@FizzyTea [0,1,2,3,4,5,6]
@FizzyTea uwot
m8
spread
00:41
doesn't work in Chrome sadly.
wubba? It doesn't error does it?
[0,1,2,3,...[4,5,6]];
SyntaxError: Unexpected token .
Not in Windows. Google's support on Linux is weak.
i'm running windows
00:44
Console gives me: [1, 2, 34, 5, 6]
I can confirm syntax error
(on Windows Chrome)
Oh sorry.
you using Canary?
Didn't realize you'd moved on from the split one.
Wow, I totally forgot to install Canary on this machine.
00:46
@ErikReppen "the split one" ?
The split method you posted above.
ohh
([1,2,3] + [4,5,6]).split(',').map(Number);
You've missed a comma.
00:50
paste this in your console
ڪ=1
atleast try and copy it
user image
2
Bacon Fries.
Mmm... heart disease in a blanket.
@ErikReppen nooo, it's just chips wrapped in bacon
Ill swap my heart for that right now
wtf @ chrome console for undefined.
undefined.
I guess any access operator with no right hand operand does that.
Now I've discovered the senior guys on my team would prefer to only use the div tag everywhere.
Lists? Nav? Tables? Nah. Good old div. She'll do 'er until you need a link.
01:14
@rlemon I keep seeing that and it's making me reaaallly hungry
Me too
01:44
me
3
so
let's
just
almost
heave
shit I had the console open
Sometimes you come across like a drunk person
Or Indian
you know, I get that a fucking lot
either drunk or high
but I've never been high in my life and I haven't had a drink in like 6 years
You should try it, maybe it inverts the effect
I don't mind drunk, but indian? that's below the belt
maybe with all my friends being either high or drunk half to time I had to pretend
and it stuck
That's a little sad
02:10
blehhh. Backbone is confusing
@Crow how so?
just trying to get it set up
02:33
yay I made a gruntfile
@Mosho Congratulations.
2.9
anyone know why I can put breakpoints in my coffeescript map in chrome dev tools but can't watch variables
lmao I had it browserify all files in a directory in which the browserified file was
03:05
Coffeewho?
@ErikReppen I beleive he's referring to an old, old wooden ship
@monners Ah the USS ScopingIs!@#$tarded. I heard it doubled as a one-way submarine.
03:21
Hi!
pastie.org/8913208 It doesn't respond when i move my mouse around when what it should do is get the nearest point, and select that, and move it to the position of the mouse until i lift the mouse up
Check compatibility tables. Pretty sure layerX is relatively new.
how would i use it
should i use x, since it's fullscreen?
I'll try that out
nope
clientX and clientY are probably the best bet.
didn't change a thing
ooh
Those are relative to the browser's viewport. Not sure layer is well-supported at all. I've never used it.
03:29
still doesn't update properly
'well-supported' I meant.
ok
i'veupdated to clientX
Does it work when you tell the drawing side of it exact coords and don't rely on mousemove? Canvas can be a little tricky.
i
i'll try that
I'M GETTING SOMETHING
http://arstechnica.com/gaming/2014/03/mozilla-strives-to-take-web-gaming-to-the-next-level-with-unreal-engine-4/
So that happened.
03:41
this method didn't work
window.setInterval(repaint(),1000/40);
what to change it to
@javawarrior window.setInterval(repaint,1000/40);
such bless
much thank
@monners Wait... compile C/C++ into JS? Head hurts...
YAAAY
I SOLVED MEH PROBBERS
thanks to everyone who listened
Just break stuff into pieces and try 'em all out. Reload is fast.
03:58
@ErikReppen I think you're missing the larger, pant-wetting awesomeness of that demo.
@monners Those graphics... GODDAMN!
Javascript is very cool
Ohh. That's what emscripten does. So is it Unreal Engine in web GL then?
hmm, so I made some changes and I have a wierd bug. I have mousemove events, and they stopped getting triggered by mouse movement and are now triggered by right clicking
any suggestions on even how to begin to debug this
no mousemove events are being triggered at all hmm
Do you get mousemove when you hold a mouse-button down?
kinda, only right clicks for some events, left clicks for others
wish I could give a link but it's in company servers
04:13
So even if you just try to log coords or something, mousemove gives nothing.
and I haven't touched those features at all
I haven't tried, but the breakpoints don't get called
I have a working version but I don't know where to look
I didn't care to look if those features worked in a while :\
Did you just try manually binding to mousemove in a console? I'd do that to make sure something really freaky isn't going on.
If that worked, I'd look to see if something is clobbering the event binding somewhere by breaking code in a silent way. jQuery for instance is notoriously silent sometimes.
works in my working backup, not in new version
document.onmousemove = function(e){console.log("mousemoved")}
No errors?
none
not when loading the page either
04:20
document.constructor.name
oh jeez
restarted browser
and it works
sigh
well, at least I didn't try to fix it and went completely mad
Buy more RAM.
company PC
I have 32GB
Yikes. Probably not RAM.
I mean at home
at work they have fuckall
04:22
I would steal RAM from coworkers anyway.
it has 8GB
and the browser was only open for a couple of days :\
oh well
happy it's not my code
Oh well Firefox will chew through that in like 5 minutes.
Actually FF seems stronger now, maybe. Or perhaps wishful thinking.
I do seem to have a leak
could it have reached that much...
I stopped using FF exactly because of that
even with memoryfox or whatever that plugin was called
hmm, how do I fix a memory leak like that
First I would verify it was for sure the app. If you can't dupe, it might have nothing to do with it.
I have a run button and function
when I span it memory usage of the process rises
by a bit, but it does
04:31
spam it or span it?
spam
click it a bunch of times
memory goes up
but nothing actually changes on the page
the app has gotten pretty big
and I don't know where to start
Sound like a leak of some kind. When I have no idea where to start and tools aren't helpful, I just start turning things off an trying again until the problem goes away.
trying the dev tools thing
by turning things off I mostly mean commenting stuff out.
yeah I understand
04:36
Haven't messed with Chrome's profiles tab much yet.
Heap snapshot looks like it might be of help.
@ErikReppen It's Unreal Engine 4
@monners yeah but it needs to plug into something I assumed. In windows it would be directX, right?
Alright. I tired. 'nite all.
gn
wow
it seems like even the mouseover events leave some memory behind
this tool seems nice
04:55
@ErikReppen Nope, JS
05:09
@SomeKittensUx2666 I hope there's a library out there called Nope.js
there's yepnope?
@ShaoweiLing Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
Ho ho ho
!!s/./undefined/g
@SomeKittensUx2666 undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined (source)
20 Minutes left in the day. I can't bring myself to start the next thing.
consider yourself lucky.
05:40
Would someone be so kind as to tell my why in this, i always equals 100 when I send the request?
Why are you trying to make 100 requests?
random trial & error of which id's are valid and which are not
Hi guys...
i want to perform
str.replace(/pass/g,"fail");
and
str.replace(/good/g,"bad");
is it possible to combine these two function as a single function?
str.replace(/pass/g,"fail").replace(/good/g,"bad");
like this...
thousands of lines of JSON and there's a misplaced I somewhere
how do you mean lol
05:55
finally got autocomplete on ace to work the way I want
only took me like 5 hours :|
ace?
what's wrong with ace editor
Didn't know what it was. Never heard of it. Looking at it now.
06:11
hi good morning all of you
i have some problem in kendo UI.?
?
by all means, grace us with your problem
/*Adding treeview*/
treeView = $("#treeview-left").kendoTreeView({
dragAndDrop: true,
dataTextField: "Item",
dataSource: argdata,
drop: onDrop
});
// editing any node
var nodeText=prompt("Please enter desired Node name","Item Name"),
currentText = treeView.data("kendoTreeView").select().find('span.k-in').first().text(),
node = treeView.data("kendoTreeView").select().find('span.k-in').first(),
nodeSpan = treeView.data("kendoTreeView").select().find('span.k-in > span.k-sprite').first();
node.text(nodeText);
!!welcome Shailendrsingh
@Shailendrsingh Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
ok thank you man.
06:26
@sansid1983 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
Hello Everyone
I would like some tips on using multiple instance of video.js player
is it possible
like creating 2 video tags and adding video sources to it. I am using video.js to create a player
@FlorianMargaine Hahaha, yes, thank you. That should have been obvious enough
Hey guise having a problem in ajax!
would anybody can help in this?
06:39
any ideas guys
07:05
Home at last
black sails is great
so tits

Web Application Developer

Crossway

We’re looking for a Web Application Developer. As a core member of our team, you will use your skills to…

Posted on Careers 2.0 on February 25, 2014

> Personal Qualities:

A love for God’s Word and His church. Commitment to an evangelical, historic Reformation understanding of the Bible, the gospel, and Christian doctrine. A genuine faith in Jesus Christ as one’s Lord and Savior, and active participation in a local church. Pleasing personal demeanor with a willing, servant’s heart. Energetic, organized, and timely.
uwot
Hahaha
> Crossway is a not-for-profit Christian ministry that exists to proclaim the gospel through publishing in order to, by God's grace:
What did you expect?
for them to hire a third party
but yeah
read it top to bottom
I felt like I was getting bel-aired
it's also probably illegal
07:22
Nope, I highly doubt it
@Morne Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@SomeGuy are you american now
Why would it be illegal for a religious organization to require only people of the same religion to work for them?
because they're not hiring them as religious workers
I'm just saying that if someone wanted to sue, they would have a case
I don't think so. Not a good case, anyway
07:24
I said "probably" because of that, I'm 85% sure it's 100% illegal to hire only people of a certain religious outside of religious work
@Mosho Only if you can prove that that's the basis of your not being hired.
Actually, maybe that's not even right. Religious affiliation isn't an immutable characteristic, so I think it might be ok.
> The exception applies only to those institutions whose “purpose and character are primarily religious.”
full of holes
07:26
That being said, I'd advise against putting out an ad that says "Christians need not apply..." :P
> ....whether it is not-for-profit; and whether it affiliated with, or supported by, a church or other religious organization.
> depends on
> have
or
facts to consider
whatever
it's clearly meant for religion based positions
Really?
> This exception is not limited to religious activities of the organization.
07:33
> However, it only allows religious organizations to prefer to employ individuals who share their religion. The exception does not allow religious organizations otherwise to discriminate in employment on the basis of race, color, national origin, sex, age, or disability.
> Requirements
> A love for God’s Word and His church.
What conflicts here?
They aren't discriminating on the basis of race, color, or any of the others
they don't prefer it, they require it
Maybe you're being nitpicky about "prefer"
Ah, cool
Yeah, try making a case for it
I'm not saying it's illegal as in, currently against the law
maybe that was the wrong word
"would probably lose in court"
It's more or less moot. Who'd apply for a position like that unless they actually fit the ... ahem... spiritual requirements?
07:36
bored lawyers
Nah, no money to be made
Yeah, it's not a good case
it may upset people, is all
not a very politically correct ad
Loktar might be a good fit.
Where do you get node 0.11 ?
0
Q: Detect if a function is a generator

FunkodebatIn preparation for fully adopted yield support, I've already find a seeming lack. Is there a way to detect if a function is a generator in nodejs 0.11+?

@SomeGuy Thanks a lot
Enjoy
@dystroy That's not the latest, by the way. This is blog.nodejs.org/2014/03/12/node-v0-11-12-unstable
@Kasun Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@dystroy simplest is git clone https://github.com/joyent/node
you can simply git pull origin master && git checkout ... when a new version comes in
and recompile
Just to test a specific version using the binary was ok
But yes, I might do this if I want to try to keep up with tip
07:58
just do some ln -s /path/to/node/bin/node /usr/local/bin/node-11 or something, and you'll just have to rerun make
Do you have an idea for the question I linked to ? I don't see any other solution than looking at the function as string...
2
A: check if function is a generator

Erik ArvidssonWe talked about this in the TC39 face-to-face meetings and it is deliberate that we don't expose a way to detect whether a function is a generator or not. The reason is that any function can return an iterable object so it does not matter if it is a function or a generator function. var iterator...

So a duplicate
@FlorianMargaine By the way, I asked Domenic to update the Wiki. He said that the wiki's meant to be a historic document, so there isn't any need to update it
(Regarding Promises being under Strawman on the wiki)
Does anyone know Symbol is? Says it's a native function in Chrome
!!> Symbol
@SomeGuy "ReferenceError: Symbol is not defined"
08:10
So it's either Chrome only, or it isn't there in WebWorkers
@SomeGuy What do you mean ? Do you ask what symbols in ES6 are ? or what ?
no, he means the Symbol object
@dystroy Try Symbol in your console
Erik used it in the answer I posted above
@SomeGuy It's not in Chromium as it seems
08:11
I guess all those questions regarding ES6 features are more targeted at node users
Yeah, probably. But I can't find any documentation for either
I have no problem with Symbol but I don't get what are those braces around "iterator"
Found something
Yeah, I don't understand the code, really
BTW it doesn't compile on latest node (with --harmony)
Domenic's post above explains some of it
Maybe it hasn't been implemented yet
But is in the standard
08:15
This is a weird syntax
@dystroy Try installing that and running the code
Finally, some documentation
Pizza! It's what's for breakfast.
@FlorianMargaine Yeah, KoaJS uses generators too
koajs is made exclusively for generators :P
08:18
I want to watch Raynos's actual talk (video)
Erik's code doesn't compile with Traceur either. I'm so confused jsbin.com/famefize/1/edit
Okay, Traceur might be a bit broken
Because even normal generators don't seem to work
@SomeGuy you might be broken.
hello guys
Ajax is not working in IE
0
Q: Javascript Ajax not working in IE 10

RafeeI have two files 1. page.cfm if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp...

"Ajax is not working in IE"... sigh...
yes
Why don't you test the other states and status to see what happens ? — dystroy 20 secs ago
08:27
okay
log the arguments of onreadystatechange each time it's called
console.log(arguments)
Hey, a badger. Hello !
(but we had some bowl of weirdness already this morning with ES6 Symbol.iterator)
If you google ES6 Symbols, you'll find a bunch of stuff
I don't exactly get the code he's using
But Symbols make some sense, now
I thought symbols were simple but how they mix with iterators is syntactically weird thoug
not my fault, chat's fault
@dystroy That's what she said.
Hu ?
08:33
And a talk which isn't in English to accompany those slides, yay - youtube.com/watch?v=fmZ98sl7XXw
@dystroy Hahaha
That's what she said
@SomeGuy There are languages other than English?!?
No. (That might be offensive for people who don't know the joke)
@SomeGuy those slides don't work for me. But I really must work...
@SomeGuy Ah yes. There's always penis.
Yeah, I've got to study too
I'll get back to this tomorrow
08:35
Just leave already.
@dystroy only with states : 3 & 4 its giving proper output of object type
08:56
Hi , i just wonder how stackoverflow uses to check users who entered chat room
and what about if they close chat tabs ? how they will be logged out.
var Objcpf = document.getElementById("customfield9");
console.log(Objcpf);
var cpf = Objcpf.value;
console.log(cpf);
$cpf = str_replace('.', '', $cpf); // Retira os pontos
$cpf = str_replace('-', '', $cpf); // Retira os hifens
console.log(cpf);
Before it runs the last console.log I receive Uncaught ReferenceError: str_replace is not defined
Anything obvious why it happens?
you didnt define this $cpf
ah, I see
I thought the var would be enough
use cpf without $

« first day (1244 days earlier)      last day (3929 days later) »