« first day (1308 days earlier)      last day (3646 days later) » 

12:10 AM
 
@rlemon Noice
 
12:42 AM
@simon_d 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.
 
MGE
Hello, do you know why this is not working? The first part, work properly but the ajax doesn't work :( pastebin.com/GeC1MLf0 Thanks!
 
1:23 AM
@MGE solved?
 
MGE
nop
 
ok
 
MGE
I changed with this pastebin.com/AJKz7Fr3
 
html?
 
MGE
but nothing happens, the first part, works but the ajaxform doesn't work
sorry?
 
1:25 AM
you need to provide ALL of the relevant code
 
MGE
oops
sorry
 
no, that's PART of it
where's the HTML?
 
action="..."
why?
 
MGE
domain and page replaced
privacy
 
1:30 AM
do you know what a console is?
 
MGE
yes
no errors
 
what does it say?
 
MGE
nothing
 
@clrx 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.
 
1:54 AM
If anyone angular is still awake, why won't this service inject? jsbin.com/zuxoyaxa/1/edit
 
2:06 AM
@SomeKittensUx2666 solved?
 
Yes, but I don't know why.
The problem was injecting $scope
 
@SomeKittensUx2666 There's no such thing as $scope in a service
it should tell you that though
 
Yep, it doesn't.
 
you probably want $rootScope what are you expecting $scope to be? that where it's injected?
 
Yeah, I wanted $rootScope
needed to do a watch
 
2:13 AM
hi
i was wondering if you could help me with this .. http://jsfiddle.net/EhzqD/ .. its supposed to work like this -- if the window size has a width <= 400px , then the image selected would be first stretches to screen width and then adjust the height accordingly and then displayed on canvas. When the user saves the image the dimensions of the image is expected not to change, so i am relying on css here. And object-fit : contain doesnot work with mozilla.
but this does not seem to work . where am i going wrong.
 
2:34 AM
0
Q: Closing Promised Connections (Node JS)

jt0ddProblem with Closing Promised Connections I recently converted my Node app from running on my local machine to utilizing an Amazon EC2 for the Node app and a VPN for the file-serving and MySQL. I learned just enough about Promises to write the following connection snippet (which runs 3 queries...

 
2:46 AM
0
Q: Closing Promised Connections (JS)

jt0ddProblem with Closing Promised Connections I recently converted my Node app from running on my local machine to utilizing an Amazon EC2 for the Node app and a VPN for the file-serving and MySQL. I learned just enough about Promises to write the following connection snippet (which runs 3 queries...

 
holy fuck I just spend 4 hours talking to students and I am exhausted.
 
3:14 AM
hi
 
3:52 AM
@RUJordan hey
 
@samitha RUJordan is afk: the butterfly effect
 
:p
stackoverflow.com/questions/23692349/get-selected-value-in-angular-ng-optiona
 
4:09 AM
@Sagar_R 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.
 
m59
I setup a network shared folder in Windows with full read/write access. I'm accessing it from my VM Snow Leopard. The file info says I can read/write, but when I try to open it, it's denied - same from terminal. Any ideas?
heh, I can't access any of the files. I can only see them.
 
need a angular help
0
Q: get selected value in angular ng-option

samithaI have an object like bellow: var data = { BCS: ['a', 'b', 'c', 'd'], HND: ['e', 'f', 'g', 'h'], LMU: ['i', 'j', 'l', 'm'] }; And Bellow is my controller function getDivision($scope) { $scope.divisions = data; } And this is model <div ng-app> <div ng-controller='getDi...

 
coffeescript caffine
   exports.merge = (destination, sources...) -> destination[property] = value for property, value of sources for source in sources
 
@phenomnomnominal Did they learn anything?
 
@MarcKline wrong .i did the same thing before
when you get it key is selected as second option array
not the object value
when you selected BCS second option says B,C,S
 
4:45 AM
Just gonna leave this here: wizpert.com
 
@monners not teaching, hiring!
interns...
 
Ewwww
 
5:34 AM
0
Q: Transforming callbacks into promises

maaartinusI'm asking the server for a piece of information in two different ways. Without promises it could work as follows function callback(someData) { displaySomeData(); } request1(user.name, callback); request2(user.id, callback); Both request may return the needed information1 and one or both ...

 
@UÄŸurAldanmaz 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.
 
Serious question, why do most gay's act and speak like little girls? That really pisses me off
 
what
 
4
Q: Ajax callback function behaving randomly. What have i done wrong?

akshayI have following ajax function that behaves randomly. Sometimes alert success finally is displayed. On other occasions, second alert that is Failure: my status is 500 is displayed. promptId is passed on from the calling function. I have checked the prompturl and promptId. A valid value of promp...

 
hi all, I am using this code to display pdf in browser "<embed src="D:\Books\Git\Scott.pdf#toolbar=0&scrollbar=0&statusbar=0&navpanes=0" width="500" height="500">" I want only pdf in browser without any toolbar or scrollbar.. but this code does not work for me... please help
 
@samitha can you brief your requirement
 
OK... So I answered a question. Badly. I came back to explain why my solution wasn't really usable. And now it's accepted :\
0
Q: Font resize when Ctrl+ or Ctrl-

Shalini SubramaniWhile I press Ctrl+ or Ctrl- I want to maintain the font size as it is. It should not be even big or small. How to achieve that?

And OP says it works... ^^
 
@HSampat 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.
@Thuy 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.
 
6:08 AM
 
@sveva 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.
 
0
Q: Not able to display pdf in browser without toolbar

Maninder SinghI am using this code to display pdf in browser <embed src="D:\Books\Git\Scott.pdf#toolbar=0&scrollbar=0&statusbar=0&navpanes=0" width="500" height="500"> I want only simple pdf in browser to display without giving any option like download, print to the user. This code is not working for me. Pl...

 
 
4 hours later…
10:45 AM
First
3
 
10:55 AM
Second
Second
 
FFIII- oh fuck
!!you alive?
I'll give it a few minutes
 
11:08 AM
ping
 
New game, GitHero, it's like GuitarHero only you manage a huge repository with a ton of developers who create merge conflicts.
7
Story of my life
 
@mikedidthis Do you still want to think about the bash.org clone? It can be done, we just need to find a drudgen to do some of the annoying work I mentioned before :P
 
@Zirak yes sir!
 
@Zirak Like what?
The boring work for Bash.org might be something I'm up for
 
11:24 AM
But first make me a bot login script pl0x
 
Skittles is doing that, isn't he?
 
Complexity Genie
I love that.
 
@SomeKittensUx2666 [citation needed]
 
@BenjaminGruenbaum Special feature : the guy who always want to apply an automated tool to format or "document" the code
 
11:38 AM
Confirmed magic
 
There's only one reason it hadn't been downvoted and closed in a few dozen seconds...
 
Hey-O!
@Zirak Do you ever speak at conferences?
 
@monners Mostly with other people
 
Also, has anyone here played around with web components
@Zirak wut?
@Zirak Oh, I get it. Think you're funny, eh?
EH????
 
Think you're Canadian, eh?
 
11:49 AM
@Zirak I bet you had to think aboot that
 
@monners Didn't some aspects of it recently die out?
Imports maybe
 
Not sure. Watched Nicholas Gallagher give a talk on it. Keen to have a play.
 
@Zirak more info ?
 
You're asking me to recall something I read in some article about a month ago :P
I don't like the underthought of web-components, which seems like an attempt to make html more like a programming language.
 
I only see a tsunami of over-enthousiastic buzz regarding web components
 
11:52 AM
It's gonna go down the Ant path
 
@Zirak 100 % agree but I didn't look in depth
 
"What if we had <if> !?"
 
@Zirak Pffft. Some savant you are!
 
@Zirak I like it. HTML sucks. Going towards real GUI components is the way to go.
 
the fact some of those guys seem to be still promoting xhtml isn't helping me feel more secure...
 
11:53 AM
@Zirak What? I thought the idea was to have entirely independent modules with behaviour and styles that weren't reliant on a clusterfuck of shared definitions.
 
So don't bastardise html, as an extension of "don't bastardise HTTP"
 
hey guys, i am having trouble getting a script file to work. If I use a CDN for that js file, it works. But, if I run that .js file off my server, it won't work. Any ideas or ways to get it to work without using a CDN? Ive tried absolute and relative URLs. No go. The code is simply:
<script type="text/javascript" src="video-js/video.js"></script> but if I use the CDN <script type="text/javascript" src="//vjs.zencdn.net/4.3/video.js"></script>
it works
 
SO is running in read-only mode here
Is it all over world or just for specific countries?
 
Do we deserve better than http and html? Yes, we also deserve better than CSS and most of the DOM.
 
Because I can still see questions being posted on SO
 
11:55 AM
@Mr_Green no, we French we have a special tube to get SO
 
@Mr_Green stackstatus.net
 
blah blah SO
 
@Zirak I like http though
 
(just wanted to end a line with SO)
 
@jAndy now that's 2
 
11:55 AM
@jAndy hum... why ?
 
HTTP is great. But it sucks at state, which is what we want
 
@Zirak Beggars, choosers, all that.
 
html and http are both great at what they were meant to do
 
thats why websockets are there
 
@Zirak honestly? I like the way it handles state
 
11:56 AM
what if SO crashes badly that it will never recover?
 
They were not meant to be a better desktop experience
 
I can still live :)
 
@Mr_Green we'll lament
 
We want Better State, not another head ache!
 
the session way is a simple, asynchronous, yet effective way to handle state imho
 
11:57 AM
guys
 
not performant
 
is there a predefined function for + in JS?
 
hehe
 
@BartekBanachewicz no
 
@BartekBanachewicz Of course not
 
11:57 AM
@BartekBanachewicz: you talking about the unary or the binary operator?
 
@Qantas94Heavy binary.
 
@FlorianMargaine Yeah? You like broadcasting "I am a beautiful horse" to everyone, even when they don't give a shit? You like having to erase your line of thought every time you do a context switch?
 
What Florian/copy said then
 
@Zirak you're defining ethernet, not http
 
11:58 AM
!!s/horse/unicorn/
 
@jAndy @unicornshoe 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. (source)
 
wtf
wtf
 
there's a npm package, core.operators at least
 
!!s/unicorn/wang/
 
@monners I'm talking North Korea sending there leader with a girl name over here on a wang (source)
 
11:59 AM
@FlorianMargaine No, it's not about ethernet. You can see things like the BitTorrent protocol come to life over ethernet (which, btw, also sucks and we deserve better)
 
@BartekBanachewicz oh, that's nice
 
Where the fuck did that come from?
 
!!refresh
 
@Zirak define better
 
@FlorianMargaine doesn't look very popular
 
12:00 PM
whats wrong with the upgraded HTTP protocol (aka ws)
TCP connection underneath
 
I especially like ops.get('id') in that example
[{ id: 1 }, { id: 2 }].map(ops.get('id')) // => [1, 2]
 
@jAndy How do you store user state in http? How do you identify a user?
 
this should get standarized somehow
 
@Zirak you don't. But HTTP is not meant to do that
 
Cookies is the answer to both
@jAndy Exactly my point
May we move on now?
 
12:02 PM
NO
why would we want a data transfer protocol which also handles logic (state)
sounds like a horrible idea to me
 
code += foldr(String.prototype.concat, map(codegenBlock, blocks));
Bartek.js strikes again
 
@jAndy TCP is the transfer protocol
 
ouch should be foldr1
 
@jAndy Are you familiar with the OSI model, also known as the 7 layer or 5 layer model?
!!wiki OSI model
 
The Open Systems Interconnection model (OSI) is a conceptual model that characterizes and standardizes the internal functions of a communication system by partitioning it into abstraction layers. The model is a product of the Open Systems Interconnection project at the International Organization for Standardization (ISO), maintained by the identification ISO/IEC 7498-1. The model groups communication functions into seven logical layers. A layer serves the layer above it and is served by the layer below it. For example, a layer that provides error-free communications across a network provi...
 
12:05 PM
well I didn't mean data as bottom layer like TCP
 
TCP is really far from the bottom. It's still got IP and Ethernet (or Wifi or whatever) to go over.
 
HTTP is.. just a more specific protocol to transfer pre-defined data over an existing data transfer protocol no?
 
So far, HTTP fits in the 5 layer model: It handles both session and application level details.
That sucks
 
TypeError: String.prototype.concat called on null or undefined
wow
I am actually surprised by the value of that error
 
Why isn't there a way to talk about a user? A client?
Why are we stuck on the session level?
 
12:09 PM
I often talk about users and clients, just not to their faces.
 
Don't get me wrong, I don't know how to implement a better solution or how it might look like. I do know that http is not the right solution to this problem
 
the question is which problem you want so solve or actually.. what the problem really is
 
You have a program on the web. You have the user. The user logs in, ticks the "Remember me" checkbox. How does he get logged in the second time he visits the website?
 
http wants to be a state-less data transfer layer, session or state should be an application level
 
GRRRR
 
12:11 PM
@Zirak That's not true. OSI is 1000 years old. Session and application should be handled on one level
 
or I completely missunderstood the convo :P
 
I'm not talking about what http is good at
http is great on document retrieval
http is not great at keeping users logged in
http is great on passing forms around
 
@user2432612 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.
 
But that's not the point
We're beyond the forms era, just go to any website now and you'll see that
 
what is this "read-only" bs on stackoverflow?
 
12:13 PM
Anyway, just look at the travesty ASP.Net does to keep state. It's mortifying what they pass around on each and every request (even when not fetching documents, just a script or stylesheet)
 
Oh, so it's been like that all day?
 
I really don't see which problem you're describing here what you want to optimize eventually
banning on cookies ?
 
Basically:
- HTTP: Stateless
- HTTP + Cookies: Stateful?
Cookies are not the solution
 
state should be not a concern of OSI, should be on layer 8/9/10 pure app logic, besides minimal technical "state" so client and server can communicate savely
so we have a client which stores data and a server which knows which clients are around
 
How?
 
12:16 PM
@Zirak "sending things to everyone" is ethernet. http doesn't send thing to everyone
 
client tells server -> Hello I'm machine foorbar with UUID Zirak-0001
 
@FlorianMargaine I meant cookies
 
servers tells client -> Hi Zirak-0001 I know who you are now, nice to meet you
 
"Hi, I want this stylesheet. I am a beautiful horse."
"Here's you stylesheet, and thank you for that redundant information"
 
oh
stylesheets are for noobs anyway
I just meant http
 
12:17 PM
so what you're saying is, that sending the UUID (MAC or whatever) should auto-transfered on request ?
 
@jAndy Thank you for describing a 4 year old's authentication mechanism
 
and indeed, that's not performant, but I like how asynchronous it can be
 
@Zirak don't mention it !
 
ws are only 4 years old?
 
So we should totally just implement Kerberos over HTTP
 
12:18 PM
OK, the site is still read only, right ? So who dowvoted this ? stackoverflow.com/questions/23695070/…
 
@FlorianMargaine "4 year old's" as in "belonging to a 4 year old human"
And apparently I'm conveying myself horribly
Because for the 100th time, http is good. It's not good for state.
That's my entire point
 
Zirak is just another NSA agent who wants to implement better ways to supervise the world :P
 
uh
I am not sure how I could combine js generators with their mutability
 
@Zirak I'm saying I like how it handles state.
 
You like cookies?
 
12:20 PM
it doesn't
 
function head(xs) { return xs.next(); } pops off a value :F
 
See my entire previous rant
 
YOU
 
@Zirak who doesn't?
 
@jAndy SO WHAT SHOULD?
Oh, I now! Some other non-http protocol!
THANK YOU
 
12:21 PM
YOU SHOULD
:p
 
MY ENTIRE POINT
@jAndy HOW!>!@
L#@!P$ @cqbsf gyaeo[
 
WHY DO WE WRITE CAPS
 
Give me a solution for state over http, and I will send you flowers
 
the only way to solve that would be, that some org would change a lower level protocol (OSI) in that way, that some very very veeery unique id of any machine (MAC most likely) is statically transfered
and the receiver site would need to store and assign that data
 
FFS traceur errors are so helpful
 
12:23 PM
THATS NSA MAGIC
 
forget yield in a generator -> "cannot read property .length in undefined"
thanks that's very helpful
 
@jAndy MACs are already sent (not of the end client, that'll be a horrible security breach)
 
yea thats what I'm saying
 
Not to mention: What if the user is logged in from two different computers?
 
to have a true reliable protocol state, you need a unique id for a client which tells the server who you are.. and from that point on, NSA HAZ U
 
12:25 PM
NSA already has you
If they'd care, that is
Well this was a fruitless discussion, always nice to have it though
I would like to mention the BitTorrent protocol and the fact that it can prevent you from downloading the entire file every time you turn your client back on
 
I have no idea how bittorrent works
 
And yes, that's not a perfect analogy, but hey, it's a start.
 
any 2-sentences summary?
 
Mostly magic.
It's quite ugly
 
seq(fold1(function(a,b) { return a + b; }, [1,2,3]))
["[object Object][object Object]", "[object Object][object Object][object Object]"]
gotta love that
 
12:28 PM
iirc there's a tracker to know which IP seed a file, but then how the communication works between seeders and leechers at the tcp/ip level, no idea
@Zirak k :(
 
@FlorianMargaine The tracker tells clients where other clients are
 
yup
that's the communication between clients that I don't know how it works
 
They send each other parts of files
 
how?
isn't there any communication to know which file to send? which part to send?
 
Of course
 
12:32 PM
how does the leecher say: "you, get me this, you other, get me this"
or does it even do that?
 
"Give me block 1, 2, 25. I have block 4, 5, 100"
 
SO is back
 
@BartekBanachewicz you're adding objects?
 
@BenjaminGruenbaum nobody told me I can't
 
12:38 PM
HI
howz u all
 
Is that really an answer ? — dystroy 19 secs ago
 
howz u @dystroy
 
@Jatt.net Sorry, I don't speak howzu
 
ok
no probs
 
btw Roy language looks pretty nice
let v = (do ajaxRequest
  value <- {url: '/examples/helloworld.roy', payload: 'stuff'}
  console.log value
  return value
)
 
from @dystroy
user image
4
 
@BartekBanachewicz how is synchronization handled ?
@FlorianMargaine well, "I made this"...
meaning I don't remember where I stole it
 
I do, so I attribute :P
and it was probably on twitter.
 
let deferred = {
  return: \x ->
    let d = $.Deferred ()
    d.resolve x
    d.promise ()
  bind: \x f -> x.pipe f
}

let v = do deferred
  hello <- $.ajax 'examples/helloworld.roy'
  alias <- $.ajax 'examples/alias.roy'
  return (hello ++ alias)

v.done console.log
@dystroy dunno if the next example answers your question or not
 
I don't get it. Does the system determine it can go on after hello <- $.ajax 'examples/helloworld.roy' until a point where the value is needed ?
or does it even go on until a value is really needed, like in a log ?
 
12:48 PM
My regex works in regex101, but not in the target page: regex101.com/r/oP7fJ2
 
@dystroy Certainly looks like it. deferred is a Monad, and so the calls to $.ajax are linked together via bind, which amounts to piping them together here
 
This must be terribly costly in JS in a real program, no ?
 
@MajidFouladpour $1. Not \1
 
@dystroy Why, exactly? this looks reasonable
 
12:50 PM
Pretty sure?
> ':43'.replace(/:(\d+)/g, '<a>$1</a>');
"<a>43</a>"
 
MajidFouladpour Ryan Kinal is right. In the replace replacement strings, it's $n
 
Site is alive again
 
@Neil look at the starred messages
 
Means I have to get back to work? Damnit.
 
@Zirak You are right! Changed the token and it works now.
 

« first day (1308 days earlier)      last day (3646 days later) »