« first day (1529 days earlier)      last day (3405 days later) » 

m59
12:02 AM
> But I am new to corn job stackoverflow.com/questions/25464160/…
 
@rlemon is the corn job expert around here
 
What's the typical way to load data from a server (say Flask) into AngularJS? For example, at the route /users/1, the account info for User 1 is displayed. I need Angular to know that it's the page for User 1 so it can make GET requests to the API to populate info.
I was thinking of doing 'ng-init = userId = {{ user_id }}', where the braces are Jinja2 templating and not Angular templating and render the template with user_id filled in from the server. But 1) it feels sloppy to initialize data through the html and 2) I can't get it to work anyway
 
@KendallFrey It doesn't match "What's" :(
 
@AwalGarg It matches What, right?
 
@AwalGarg try \w instead of a-z
 
12:11 AM
yeah. I attempted add the ' to it, but doesn't work :( see below
/\b([A-Z])['a-z]+\b/gm
 
@quantumtremor \w doesn't include ' anyway
 
@quantumtremor that won't work. I don't want _
well, it worked. nvm.
 
@AwalGarg Now try What'S
 
@KendallFrey works...
 
oh?
I guess it depends how you define works
 
12:14 AM
It just matches "What'" though, skips the "S".
 
It shouldn't match What, if I understand it
 
@AwalGarg That's what I expected
 
Basically, I am doing this:
1 hour ago, by Awal Garg
i should also make a userscript that would .toLowerCase() any capital letter at the beginning of the sentence.
 
About to get dinner with @SomeKittens
IF HE WOULD ARRIVE
 
12:16 AM
xD
 
[A-Z]('|[a-z])+
 
@AwalGarg Now to define what a "sentence" is
 
how is that
@AwalGarg
 
@quantumtremor that's no different than using ['a-z]
 
well, what is the issue
 
12:17 AM
@KendallFrey a ... sentence?
 
anyone know anything about Karma? stackoverflow.com/questions/27611493/…
 
@AwalGarg ReferenceError: 'sentence' is not defined
i.e. regex has no concept of a sentence
 
ok
I just want to see how the web looks like, when capitalization of the initial character of english sentences if removed.
 
it would look like this.
 
12:22 AM
that is hardly the "web", but well...
good night
 
@AwalGarg css?
 
shit
 
@Meredith where were you for the last 10 minutes??!
:p
 
why can't I see my awesome pirate hat on the avatars ? Are hats not shown there ?
 
12:24 AM
hmm, that rule won't do exactly what I want.
 
I can see it
@AwalGarg What are you trying to do?
 
@jAndy F5
 
already reloaded it multiple times.. mh
 
@jAndy maybe the winterbash script is bieng blocked?
 
@AwalGarg it's part of the main script
 
12:25 AM
@Meredith its... complicated.
@KendallFrey a meta post described it isn't. maybe it is changed now?
 
2 hours ago, by Awal Garg
i should also make a userscript that would .toLowerCase() any capital letter at the beginning of the sentence.
 
If I don't go to bed now, I will die.
Good night gentlemen!
 
@AwalGarg idk, all I know is that I read the script earlier today
 
gn8
 
str.split(". ")
 
12:27 AM
what should that split ?
 
@Meredith . . .
 
I mean, that's how sentences are delimited
Am I severely misunderstanding the issue
 
Probably!
Maybe?
 
You want to split text by sentences ?
 
Last Test
k, it works.
good night in All Reality.
 
12:36 AM
Quick question, how are you supposed to access an object's properties inside itself? All the answers here SO seem to say stuff about how the methods are called etc, but non offered a robust reliable solution...
 
Poor @SomeKittens
Look at this detour, exit was closed due to crash (?)
 
Are you in SF?
 
@SimonSarris Couldn't you go round the other side of the freeway, looks shorter....?
 
Hello ladies :)
how are we
 
8/10
 
12:47 AM
@SimonSarris RIP SomeKittens
 
1:45 AM
Closure Compiler can transpile (some) ES6 to ES3
 
1:57 AM
@KendallFrey no, just inconvenienced
@copy I'm visiting in-laws near Boston
 
@SomeKittens Have fun
 
He just left, I'm waiting for my ride. Great time, good food.
 
man so I switched to macbook from an hp and moved a server over. Now my api server is throwing an error at the first instance at the new keyword at server = new Hapi.server();
Where do I even start to look for solving this?
 
What error?
 
user2620028
2:33 AM
whats up guys
 
Quick opinion poll if there are any C++ and JavaScript crossover people around. How do you bind? I'll throw out QtScript as something I know of but have not used beyond idly answering some SO questions about it "because I can". But anyone use anything else, and have a remark like "qtscript sucks because..."
The head of Red said it looked "too complicated"
I suppose abstractly one could say Node.JS is a "C++ binding"
I'm looking for more examples in the set of [QtScript, Node.JS, ...] what is "..." to the cool kids?
 
Ouch. I just got the "Tenacious" badge. "0 point accepted answers, at least 5 and 20% of total"
 
2:59 AM
@HostileFork I prefer writing as much code as possible in a high level language like Python or JavaScript and leaving only the necessary heavy lifting to a language like C++
That is, I don't see a use-case for embedding JavaScript in C++
Game Engines maybe
 
@copy Well, browsers are a use case.
 
I don't usually write browsers
 
I've been doing some binding of Rebol/Red, and experiments aren't looking too bad: github.com/hostilefork/rencpp/tree/develop/examples
But it's hard to compare it to other things, because, kind of like you say... I don't do this much
 
@copy That's what we do for extensions in our LOB app
It's an old system, and thankfully that will be going away soon.
 
I might not have enough real-world experience to judge this (or not the right real-world experience)
 
3:09 AM
Red 0.5.0 released BTW, for anyone who is following our progress.
 
Or I the wrong experience
 
Oddly, when it comes to embedding, I just tinkered one day at random with Lua and VLC. I was looking for unanswered questions and had time. And traffic cones are kind of my totem animal
17
A: VLC Scripting with Lua: Jump to a specific time in a file?

HostileForkActually, the documentation does say you can do it...though not in so many words. Here's what it says about the interface for playlist parsers: VLC Lua playlist modules should define two functions: * probe(): returns true if we want to handle the playlist in this script * parse(): read th...

So that's sort of the lens I see embedding through, but Lua--as a language--seemed not interesting.
My "meh" attitudes on JavaScript are known as well, but at least it has a currency by being in the browser, so the Lua idea escapes me. Not that cool and not in the browser...why? No one has really convinced me yet.
 
It's minimal and fast
There has to be one minimal language
 
Turing Tape
Lambda Calculus
 
Assembler
 
3:16 AM
What's the use of Lua? Never seen it come up apart from game pads and TF2
 
@Skye 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.
 
Joking aside, I mean high level language
 
@Skye Well, pursuant to above, you've now seen it in VLC.
 
Ahh right
 
This issue has been around for a long time, grab a chair and listen to uncle Fork tell the tale of working at Microsoft on SQL Server around the time when the VBA generalization was at hand...
 
...except it's a short story. Mandate from on high, all office apps and general integration would run a common hook, and "Visual Basic for Applications" (VBA) was that hook.
And, what depresses me, is that things like Lua seem to be even lamer, if that's possible.
The key selling point--I'm told--is "small"
@KendallFrey I haven't played KSP but the youtube videos make it look pretty cute
 
It is cute
And a pretty good sim too
 
It's impossible
I got into space once
 
Getting into space is the least of my worries
 
lucky :P
 
3:23 AM
It's having enough money and science to put a mission together
 
@KendallFrey Back in my day, after we had walked uphill both ways to school, we had to play this game: youtube.com/watch?v=M92fmU7n3cU
 
Spaceplanes are the worst though
 
I've been basically everywhere in the sandbox :P
@Skye They're getting a lot better
@HostileFork I played Orbiter a few years ago. It was a shitty game, but a bang-on sim
 
@HostileFork my dad always brings up a flight simulator which is just aligning single pixels - do you know what he means?
 
I watched some of the more pathological videos and I do not know that there is a "true" correspondence between what happens and the expected physics.
 
3:25 AM
also taught me how to fly a rocket
 
@Skye You mean, do I know what "aligning single pixels" means? Well in context, I'd assume it is saying that you are given a task somewhat mundane which is that you have a very specific target with a high hysteresis control (aka joystick) to the point of you really wasting your time at the hands of an imprecise input.
"Desert Bus" is a funny tale, they play it in marathons to raise money
 
Yes, that sounds about right
 
It's not that bad - I made a 2D version in some sandbox flash game
 
In other Javascript question news, has any "emscripten'd" language ever been used to practical effect in a deployed app?
 
3:29 AM
What's the rel on the href tags used for? Maybe it's just past my bedtime, but MDN's explanation isn't doing much for me:
> For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a comma-separated list of link types values. The values and their semantics will be registered by some authority that might have meaning to the document author.
 
I see these emscripten things like at repl.it, but I wonder if there are any actual instances of someone deploying an app that is a web app calling into python or whatnot to do work
Is it only a tutorial gimmick?
 
rel = Specifies the relationship between the current document and the linked document
 
@HostileFork Yes (with the exception for languages that are specifically designed to be used for transpiling)
Like Coffeescript
 
@Retsam lternate,archives,author,bookmark,external,first,help,icon,last,license,next,nof‌​ollow,noreferrer,pingback,prefetch,prev,search,sidebar,stylesheet,tag,up
 
@copy We've got a rebol now, and are at a bit of a loss of what to do with it besides tutorials.
 
3:32 AM
Rebol in JavaScript?
 
Yup
 
@Skye Ah. What's the practical purpose for that? Is it used by like third-party tools, or for screen-readers or...?
 
@HostileFork Take some existing Rebol applications and put them in the browser?
 
@copy We'd have to map OpenGL to ... whatever, WebGL
 
@Retsam I don't think it is actually needed anymore with HTML5 but it's just so it is read correctly
 
3:34 AM
@Retsam <link rel="stylesheet" ... for example
 
@HostileFork Do all applications written in Rebol use OpenGL?
 
Although, I actually have a few "console-ish" app ideas. Small front ends with backends like PARSE
 
@KendallFrey Right but what about <a rel="stylesheet">, etc?
 
6 hours ago, by phenomnomnominal
What happens if you try to kick a RO?
Why, we get notifications of ROs getting kicked of course
 
@Retsam rel is limited to link
 
3:35 AM
@Retsam There is a chance the browser will load it as a stylesheet, but I don't know
 
<a href="http://chat.stackoverflow.com/rooms/17/javascript" rel="bookmark">Click Here</a> or this I guess
 
@BoltClock But, what happens if we kick a mod? :)
 
@copy They actually use AGG but there's an OpenGL port in a state of "questionable completion". But really, because Rebol "draws everything" (like Qt or what not) all it wants is a bitmap buffer and a few primitives.
 
@KendallFrey Try
 
3:36 AM
@Skye No, actually my above quote was copied from the anchor tag documentation... oops, I said "href tag" when I meant to say "anchor tag" in my question.
 
Ahoy hoy
 
( Í¡° ͜ʖ Í¡°)
 
Which is actually one of the downfalls, because people want native looking apps, not "80s cash register" (my terminology)
 
@HostileFork That would be quite easy to provide in the browser
 
So Red is abandoning that approach entirely, but it's also not written in C, and so not emscriptenable.
 
3:37 AM
I haven't come across <a rel="stylesheet" but I have come across <a rel="bookmark"
 
@HostileFork Not me, I'm working on a project for that kind of look
 
@copy where is your avatar from? I've seen it before somewhere
 
@Skye From this game: copy.sh/iw
 
@KendallFrey I make the analogy to classic car shows, a colleague who had a thing for Corvairs (engine in the back) and did restoration on them made me go to one. And I thought "booooring" but I went, and you realize in talking to the people competing for "best engine compartment etc." that there is such a thing as 'older and wiser' at times. blog.hostilefork.com/is-rebol-actually-a-revolution
 
@copy Ahh I see ^-^
(Just got a GB Colo(u)r & GBA emulator - I'm going to have some fun in bed, night all)
 
3:40 AM
phrasing
 
It was kind of fun, so, I guess to all the "software gear heads" I might suggest it's worthwhile to go see a little bit of "hardware gear head" stuff.
 
@HostileFork I just built a plastic, solar-powered robot. Does that count?
 
I'd also say, that taking a welding class is something software people might take a crack at.
 
I took welding in school
 
Me too
 
3:42 AM
I also welded about half of a go-kart frame together
 
Did you do mig and tig, or just oxy acetylene?
Tech has changed a bit
 
stick :)
 
Old skool :-)
 
welding at school was part of a general tech course I think, so I never went beyond stick.
 
I come from an era where, I kid you not, the boys took "shop" class and the girls took "home economics". We also split in PE where boys took wrestling and girls took, um, I don't know what they did actually. Something not that.
 
3:44 AM
then my dad bought an old buzz box somewhere and we made a go-kart
 
I did mig and oxy. Mig's fuckin' hard
 
@HostileFork They still do that, to some degree
 
I took like, a week to make this
user image
4
My first sculpture
 
@monners That's not the only thing. ayyooooooo
 
@KendallFrey Ayyo0o0o0o!
 
3:46 AM
I like it because it sort of turns into bands if you turn it, and its also stable
 
Does anyone here use an independent Digital to Analogue dongle for their music?
 
@monners Novation X-Station... several years old, but nice amplification on headphone out and lots of other features. Including XLR in, and, well, it's a keyboard.
I have "opinions"
 
@HostileFork lol, I was thinking something more along the lines of this
 
@monners Yes, I keep thinking, when I send songs to people "you're not really HEARING" it... I want them to hear as I do, at minimum. I just bought another pair of these amazon.com/Sennheiser-HD-280-Pro-Headphones/dp/B000065BPB
 
hi
 
3:52 AM
But of course, plugging those into a cheap audio out won't give you true enjoyment of the sound, insufficient amplification, bad DAC. But I dunno, I think most people can't really hear artifacting in MP3s. Like, you play transients and they can't tell the diff
 
i need help with javascript
 
3
Q: MouseOver CSS3D effect with javascript

DramorianI am trying to achieve mouseOver effect used here BigHero6. I am able to generate css3d matrix required for each and every tile according to their position. Here is what i have achieved so far with slow mouse movement, but if I am moving fast from one tile to another tile its notupdating prop...

 
@Dramorian How dare you be on topic.
 
@HostileFork what??
 
3:53 AM
Joke
 
@Dramorian He's kidding.
 
he he
Please help me with updating tiles
 
@HostileFork How dare you kid!
@HostileFork Are those weighted keys?
 
i want to update tile synchronously. that is the only thing pending and i am not able to figure out any way
 
@monners No. But their durability is high. I'd assume they don't make this model anymore, but, it has been a good purchase. My previous keys when I had more space were O1/W proX and Kurzweil PC88... had a Roland JP-8000 that I let go as well. :-/
 
3:58 AM
I've got a very basic midi keyboard, thinking about upgrading to something that'll actually inspire me to play more.
 
@monners I think, it's either in you or it isn't, what I've found is that I'm more obsessed with tools than I am with the music you make with the tools. I dunno. When I play it's tinkery. Just goofing with samples and what not, random junk. metaeducation.com/media/music/illogical.mp3
 
4:11 AM
Can anyone help me with mouseover effect question please??
 
@Dramorian I can upvote it
 
@HostileFork thanks. If you can suggest me some solution that will be great.
 
@Dramorian I only program in JavaScript grudgingly, I was here to ask about C++ bindings actually. I think the best way to look at or think of StackOverflow isn't necessarily that you get your answer immediately, but if your question is good, an answer will come with time. It's okay to try and say "I'm here, I'm alive" and tell people in chat who might be available that your question is there, but expecting that to change the answer rate might not be a great expectation.
 
@HostileFork Yeah. I am not very good JS dev and I working on this thing from last 10 days. I think this made me so eager to solve it. Sorry and thanks.
 
@Dramorian I am eager to solve some things too, the answer might take weeks. Each time you edit your question (hopefully to improve it and focus it and get closer to the solution) it gets popped up a bit in the priority list and more people see it. As the saying goes, "StackOverflow helps those who help themselves..."
 
user3949359
4:27 AM
Does anyone know of a jQuery plugin or solution that can increment a number in real time on the screen, like count fast from 1 to 15000 in whatever step?
 
user3949359
I also need to code up a replay button showing up on video end
 
4:42 AM
@HostileFork Thanks for the nice clue ;)
 
5:07 AM
lol, @rlemon you won your own giveaway? XD
 
5:44 AM
@rlemon Lucky! I wanted that game so bad lol
 
6:12 AM
Guys, I'm using jQuery... in Go. (Monthly challenge, hint hint) Send help.
 
6:26 AM
    function b(a, c, d) {
     d = document.createElement("a");
     d.tagName == "A" ? (function() { d.href = a; d.innerHTML = "DLink!" })() : "";
     var e = document.createDocumentFragment();
     while(c = d.firstChild) e.appendChild(c);
     return e;
    }
what is wrong with this b("http://abc.com"); the fragment has only the text
 
have know any one know how to make compitable IE9 for javascript
??
 
6:46 AM
 
the while shouldn't have been there
 
7:06 AM
hello
can anyone suggest me a good community(hangouts, articles) to share knowledge in javascript?
 
what are we doing?
 
@Tarun
hav
??
@Tarun
have know any one know how to make compitable IE9 for javascript
??
 
> rlemon has 6071 stars
Zirak has 3177 stars
Benjamin Gruenbaum has 1763 stars
Florian Margaine has 1496 stars
Loktar has 1283 stars
SomeKittens has 1073 stars
Ryan Kinal has 923 stars
Caprica Six has 880 stars
Kendall Frey has 817 stars
copy has 817 stars
 
@DineshChandra what you looking for exactly?
 
7:16 AM
@DineshChandra can you share code where you facing problem
 
@Tarun I have a form with javascript validation
That is working fine in chrome and firefox
 
@Dine
 
but in in IE9
 
@DineshChandra i guess you have lot of stuff or a complete application you want to make it IE9 compatible?
 
* but not in IE
 
7:18 AM
@Retsam is that starred messages or actual stars?
 
Actual stars.
 
7:40 AM
Coolbeans
 
1
Q: Parse CodeIgniter cookie with Node.js

s.m.I'm trying to parse a CodeIgniter cookie with node.js. I'm using this code to get all the cookies: function parse_cookies(_cookies) { var cookies = {}; _cookies && _cookies.split(';').forEach(function( cookie ) { var parts = cookie.split('='); cookies[ parts[ 0 ].trim() ] = ( pa...

 
8:06 AM
Wait what?
CodeIgniter + NodeJS = E_DOES_NOT_COMPUTE
@rlemon looks like your hotfix didn't work, you won yesterday's draw XD
 
@SecondRikudo what do you mean by that?
 
@s.m. CodeIgniter is PHP, how and why are you having CI cookies in a NodeJS environment?
 
@SecondRikudo i'm integrating node.js with PHP
 
Again... does not compute.
How does one "integrate" node.js with PHP?
 
@SecondRikudo how does that not compute?
@SecondRikudo look it up lol
 
8:12 AM
Not only are they completely two different languages, they use a completely different request scheme
 
@SecondRikudo just cause you never heard of it doesn't mean you can't do it...
 
What you just said amounts to "Yeah, I'm going to "integrate" my house with a trailer"
It doesn't make much sense, so I'm asking you again, what is it that you are doing exactly?
 
@SecondRikudo maybe integrate is the wrong word but you know what i mean, use them together
 
On the same domain?
 
@SecondRikudo i have a codeigniter website with a messaging system. I wanted to have the messaging system auto refresh so i used socket.io with Redis pub/sub for that
@SecondRikudo works great
 
8:15 AM
Okay that makes more sense.
 
@SecondRikudo i guess "integrating" can be misleading
@SecondRikudo wrong word lol
 
8:34 AM
@BenjaminGruenbaum wired.com/2014/12/…
 
Made sense to me. 'Integration' is not an uncommon term for making applications work together using messaging.
 
@TomW Integrate a messaging system with my existing codeigniter app would make more sense
Integrate PHP with NodeJS makes no sense.
 
8:51 AM
@SecondRikudo thanks for the help i tried to do the match but it returns null. When i do console.log on the cookie, instead of logging it in the serialized format, it logs it like this:
a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%2298f7cb7a7e9e01d3ca8b635e87a19ad2%2
2%3Bs%3A10%3A%22ip_address%22%3Bs%3A12%3A%22192.168.1.68%22%3Bs%3A10%3A%22user_a
gent%22%3Bs%3A72%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%3B+rv%3A34.0%29+G
ecko%2F20100101+Firefox%2F34.0%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A141932201
0%3B%7D001977ff45c5ef50284ee6e29e43af4dd5850e14
 
@s.m. Check my edit
Also, that's url encoded value, you can decode it pretty easily in JavaScript
 
@SecondRikudo somebody else gave me that link also, it doesn't work either. Probably because it's url encoded like you said?
 
I'll leave it as an exercise to you to discover how to url decode strings in javascript
 
@SecondRikudo shouldn't be too hard thanks for your help
@SecondRikudo so after i get it decoded do you think i should just deserialize it or do the match?
 
Deserialize
Parser > Regex matching (almost always)
 
9:00 AM
@SecondRikudo got you thanks
 
@SecondRikudo :P
 
can someone please explain to me if and if so why is ajax cache good to use?
 
@this.Tony If your server is stateless, same parameters and same request should mean same response in most cases
Most people won't miss a few comments added in the last couple minutes, so you can optimize
 
9:17 AM
@Neil would it be useful if i refresh a div with data in it via a submit button?
 
Does node support const yet?
 
@SecondRikudo Not that I know of
@this.Tony Depends entirely on what you want to do
You want a refresh button that will update sections of your page?
 
no everytime some for example hits the like button it will update the div to show the total number of likes @Neil
 
Ah, but do you really need to get this information from the server?
You know how many likes it has.. it is the number of likes it had before + 1
If it is really important that it stays current, you could use web sockets, but that is overkill imho
And performing an ajax request for information you pretty much already know is silly
 
well i sorta want to reload that so just in case some else likes it and say 2 other people like and and then you like it, it will show the original number + 3 + your like =total number
 
9:24 AM
Well would you really only want to refresh that number only after you like it?
 
hi everybody
i developed my first game in unity. kindly check and tell me how can i improve it
 
In other words, seems like you'd want it constantly updated or not at all
 
well in other words it refreshs the whole div including comments likes via any submit button
 
@NajeebullahShah Looks similar to another game I've played, I'm sure of it ;)
@this.Tony Then you should make a button (not a submit button) that on click sends ajax request and returns json
The json will contain the number of current likes, new comments (or all comments if comments can be edited aftewards)
Then you will update all the components of the page one by one
Angular might help you out here
So you can separate concerns
 
@neil so say i have 3 posts and i click on the like button on the 2 post json will update everything within the 2 post and not 1 or 3?
 
9:29 AM
@this.Tony Again, depends on what you want to do
 
but is that possible with json?
 
Otherwise you can make it update only the one
If you want to update all posts, the server will need to send informatino on all posts
@this.Tony *serious face* Everything is possible with json.
 
well i better get learning on json lol what is this angular you mentioned?
 
@this.Tony It is a framework that's supposed to help you organize events on your web page
 
hi all
 
9:33 AM
It is maybe a little overkill for doing only what you need, but presumably it may be useful for other things on your page as well
 
@neil so far i thinkk im going to try and learn json but thanks for the help
 
does anyone knows how to prevent cache for xmlhttprequests please?
i tried to add date().getTime() to url... but seems like it fails...
 
@this.Tony Json is just a way of organizing data
I just mentioned it because it is a preferred alternative to simply returning html from the server since you can do nothing else but add it to the page
 
it seems like what i want
 
You can manipulate json
 
9:44 AM
@Neil thanks for letting me know
 
And in fact, many developers think that what should be returned from the server should be only data
The client-side should apply that data however which way
And that leads to very flexible designs
 
that convenient to know!
 

« first day (1529 days earlier)      last day (3405 days later) »