« first day (1284 days earlier)      last day (3667 days later) » 

m59
4:06 PM
This ought to be easy as heck but I'm screwing up somewhere....
 
posted on April 22, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
m59
['a', 'b', 'c'] into ['a', '-', 'b', '-', 'c']
loop, splice, skip 1 sounded logical
 
!!> ['a', 'b', 'c'].join('-').split(/(-)/)
 
@Connor ["a","-","b","-","c"]
 
@m59
 
m59
4:11 PM
lol, so much smarter :)
uh..
actually, make that an x/y
The item I need to insert is an object reference.
 
why?
 
m59
and that isn't an x/y
 
like t = { item: '-' }?
 
m59
yeah, insert "t" in between each
 
t or t.item?
 
m59
4:13 PM
It's an angular filter that solves a pretty rare issue, but I just happen to need it
the whole object
 
oh
that's a different kettle of fish then
 
m59
Yeah, I was using a loop, splicing in the obj reference, then skipping the next item, but that adds too many and I can't work out why.
 
@m59 you don't have to modify the array do you?
 
m59
yeah?
 
why?
I mean modify the original array
 
m59
4:17 PM
yeah, to avoid angular inf digest
 
ohk
 
m59
heh, that would make it pleasant otherwise :)
 
@m59 "SyntaxError: missing ) after argument list"
 
m59
!!> var x=['a', 'b', 'c'], y={foo:'bar'}; for (var i=1; i<x.length; i+=2) { x.splice(i, 0, y); } console.log(x);
 
@m59 "undefined" Logged: ["a",{"foo":"bar"},"b",{"foo":"bar"},"c"]
 
m59
4:21 PM
....
Angular wtf.
@Connor apparently, I've been doing it right :)
 
yep ;)
 
wtf
@Jhawins ^
 
m59
@Connor bizzarro jsbin.com/ruyidila/1/edit
 
What does everyone think about the answer I just upvoted?
10
Q: Number of external requests when serving a resource

Benjamin GruenbaumSo, I have a web application that makes a lot of requests to the server for data. A project requirement is to have very fast server response times. The server is hosted on a cloud based platform. The app uses sessions to keep track of user authentication once they've logged in. Since it's hoste...

@AbhishekHingnikar try "the old men the boat"
 
4:32 PM
!!> do{performance}while(null)
 
@jAndy "ReferenceError: performance is not defined"
@manuvendev 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.
 
@BenjaminGruenbaum me poor english speaking person. Is there something wrong ?
 
@BenjaminGruenbaum Isn't it "the old man the boat"?
 
@BenjaminGruenbaum Huh. Interesting thoughts
 
4:51 PM
@BenjaminGruenbaum The old man the boat
@AbhishekHingnikar Try some garden path sentences (look it up on Wikipedia)
 
actually the first confused it
the second one was more perfect
JJ - Adjective
NN - Noun
 
@jAndy Guys watch your back, we have a GOV Spy right here.
 
I will cheat with the corpora btw
the corpora fed to it will consist of people's names explicitely tagged as nouns 8-)
 
@devtreat ahh, well then might I suggest foam board coated in drylok
animal safe (it is for my aquariums, so I imagine it would be for you) and you can make it look like natural rock
both are fairly easy to find, and pretty cheap.
@AbhishekHingnikar can it figure out "Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo"
 
@freetonik 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.
 
5:06 PM
@rlemon Thank you, I will do what you tell me. You'll see in the next picture :)
 
@rlemon its a chunker.
and it fails :D
 
:P
 
i doubt we will ever search for buffalo though xD
 
I will
 
5:14 PM
@rlemon haha it won't turn you down
it passes the query to google and bing aswell
and compares the x results
usually google results are ranked up [hell i know they will be more accurate tbh ]
 

JamExchange FM39.426

Featuring DJ Caprica. Room player: gist.github.com/CS1000/4553...
@Jhawins - I might have a fix for the BBB boot issue
testing now
 
@rlemon I'd love to participate but the internet here is too slow for streaming music
 
ouch
what do you listen too?
 
~3 times a day, it'll hiccup and move to dialup speeds, constantly dropping connections
 
ouch
we get that, not quite as often
once or twice a day
 
5:25 PM
I should just write a node.js script that pings google.com once a minute, and then records failures.
I could email it once a day.
@SomeKittensUx2666 Had to resend that four times.
@rlemon Can't. I should download some music but I don't.
 
howdy
 
@rlemon so i searched for buffalo thingy
the results made me shame
it gave just buffalos
and the place called buffalo
and the team called buffalo
and some drug called buffalo [that was off Bing]
 
@ArtyomPranovich 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.
 
5:41 PM
what did i just see ?
 
Just discovering what AngularJS can do
 
6:05 PM
!!tell chx101 google egghead.io
 
6:27 PM
lol what's with the starred messages?
 
0
Q: Microsoft bing maps api and loading modules issue

FozzI'm building a store locator and loading a custom module via require. The custom module is dependent on Directions & Search module from microsoft. I hate the callback hell and want to pre load the modules return a promise and action on the custom module once everything is loaded. Using bluebird ...

 
@FelipeVolpatto 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.
 
!!tell rujordan youtube developers developers developers
 
DEVLOOPERS
 
6:33 PM
WTF is wrong with this hello world jsbin.com/mahohiku/1
 
@Mike You're missing a short-and-curly
 
!!s/LOOP//
 
@AbhishekHingnikar That didn't make much sense. Use the !!/help command to learn more.
 
Or, maybe just a curly
 
@AbhishekHingnikar DEVERS (source)
 
6:35 PM
!!urban devers
 
@AbhishekHingnikar [Dever](http://dever.urbanup.com/1764412) A man who is large, hairy, smokes cigars and likes to get drunk at Anime Conventions.

Also, a Dever who is drinking will attack the person nearest to him, that is, if that person is speaking.
 
@RyanKinal: ??
 
So we developers are just Large, hairy man who smoke and have a loop inside them.
makes so much sense no ?
 
@Mike <p>{{val}</p>
What's missing?
 
6:35 PM
!!urban developers
 
@AbhishekHingnikar developers Generally referring to software developers - people who program computers. Highly valued by Steve Ballmer.
 
@RyanKinal Context!
!!xkcd grammar context-free
 
user3071008
haha
 
dat urban
 
6:36 PM
!!what
 
@KissKoppány That didn't make much sense. Maybe you meant: wat
 
!!urban developers 2
 
@AbhishekHingnikar developer [loser] [office] [worker] who spends his [time] [writing] [code] for [[da(snip)
 
thats fucking crazy. at least console should tell me wrong expression.
 
thats offensive :-
|
 
6:37 PM
@Mike Why?
What if that's what you meant?
 
thats an invalid expression, I think and I suppose that console could inform me
 
@Mike It's not invalid. Just incorrect.
It doesn't break, it just doesn't do what you want it to.
 
what eva, I console didnt inform me even about a warning...
 
:sigh:
Back in my day, we didn't have these fancy "consoles" to "inform" us about "warnings". We were lucky if we got a vague error in the status bar of IE5.
 
6:40 PM
@Mike are you really that thick?
 
@Mike - That's the problem with frameworks that takes strange text and turn it into something else. The HTML is per se NOT invalid, it's just that Angular doesn't understand it because of the missing curlybrace, and the console doesn't understand Angular, so what are you expecting ?
 
is that angular?
I've seen that when I used laravel php mvc framework
before*
 
I was seeing this in batarang
 
so if I'm good at laravel I'm good at angular as well?
 
@KissKoppány I'm guessing probably not. But maybe!
 
6:42 PM
than maybe it wasnt waste of time to learn laravel
btw laravel is really good and usefull but still a framework and I hate them somewhy
 
@SomeKittensUx2666: there is nothing being thick here. these things can be missed and dev has no way to see what went erong
wrong
 
@Mike "dev has no way to see what went wrong" ...other than understanding how the code works?
 
Other than the fact that your output is {{val}
 
:16000000 Congrats on 16,000,000 message!
in PHP, 23 mins ago, by ircmaxell
https://github.com/facebook/hhvm/blob/master/hphp/hack/src/parsing/ast.ml
 
@JohnnyJS 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:46 PM
It's always PHP
 
@SomeKittensUx2666: what the fuck is purpose of batarang for angular or console in general then?
 
"The tools don't point out everything I did wrong, so it's their fault"
 
wtf is batarang
 
!!> parseInt('074');
 
@SomeKittensUx2666 74
 
6:48 PM
@RyanKinal I'm afraid to google
 
An. Chrome plugin to help with Angular development.
 
isnt twig templating awfully same as angular?
 
@JohnnyJS Is twig a JS framework?
 
!!> parseInt(null);
 
@KissKoppány "NaN"
 
6:50 PM
Does it do two-way binding?
 
no. a php way of tamplating =)
 
Will it update the model when the view changes?
Will it update the view when the model changes?
 
XD sure not.
but if u r a quick developer in angular you will find twig easy
 
There are two differences right there ;-)
 
6:52 PM
@RyanKinal i agree.
 
Hi
 
I mean, the templating is similar, but that's not the entirety of what Angular is.
 
just wondering if anyone has used Auth0 before?
 
of course. i tried to learn angular. but too much got in the way. =|
 
howdy folks
has anyone in here used Amazon S3?
 
6:53 PM
@ShotgunNinja haven't seen you in a while! And yes.
 
How does one use both 'u' and 'you' in the same sentence?
 
sup @SomeKittensUx2666
Has anyone noticed an issue where uploading a media file to S3 eliminates the content type?
 
I'm trying to implement a single signon and don't know where to get the application ID from?
 
@ShotgunNinja Yep
 
Any thoughts why AJAX call keeps refreshing the page, and only occasionally reaching server side?
$("#st_dev_form").on('submit', function () {
	var user_val = $('#id_dev_preference option:selected').val()
	$.ajax({
		url: "{% url 'wlupdate' %}",
		type: "POST",
		dataType: 'json',
		data: {st_dev:user_val},
		success: function(response) {
			console.log("WTF");
		},
		error: function (xhr) {
			console.log(xhr)
		},
		beforeSend: function() { $('#wait').show();},
		complete: function() { $('#wait').hide();}
 
6:54 PM
It sucks.
@rodling I think you should probably format your code
 
@RyanKinal whats the combo for it again?
 
Does this just randomly occur, or is it directly related to client code not manually setting the content type every time?
 
Ctrl-k, or the fixed font button
 
where is your "return false;" ????
 
@ShotgunNinja Not sure
 
6:55 PM
@ShotgunNinja never seen that happen.
 
I encountered the issue because of an HTML5 audio tag refusing to play an MP3 file off of S3
 
Also, yes, @rodling. As @JohnnyJS says, you should have a return false in your on handler.
 
@RyanKinal how to write "code" ?
 
var widget = new Auth0Widget({
domain: 'YOUR_NAMESPACE',
clientID: 'YOUR_CLIENT_ID',
callbackURL: 'http://YOUR_APP/callback',
callbackOnLocationHash: true
});
 
@JohnnyJS Ummm. Wat?
 
6:57 PM
where do i get the client_ID from?
 
@JohnnyJS backtics like so
 
@JoeSaad Format please
 
@RyanKinal @SomeKittensUx2666 I really don't want to have to dig into an existing admin tool to see if the code sets the MIME Type properly every time...
 
like this or like 'that' or like \here\
 
var widget = new Auth0Widget({
        domain:                 'YOUR_NAMESPACE',
        clientID:               'YOUR_CLIENT_ID',
        callbackURL:            'http://YOUR_APP/callback',
        callbackOnLocationHash: true
    });
 
6:58 PM
found it =)
 
@RyanKinal @JohnnyJS bingo, thanks a lot!
 
@JoeSaad Hit shift-enter, and a button labeled "Fixed Font" will appear under the "send" button.
 
@ShotgunNinja Looks like s3 automatically applies audio/mpeg to mp3 files
 
@scotty 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:58 PM
hello
 
@SomeKittensUx2666 Well, my S3 is serving an MP3 with a content type of application/octet-stream, for some reason.
 
!!format
 
Format your code - hit Ctrl+K before sending and see the faq
 
foo(){
return a+b;
}
 
6:59 PM
It works in <audio> tags on Chrome, but not on Firefox or IE.
 
!!format 16000535
 
@RyanKinal did that get it right?
 
Format your code - hit Ctrl+K before sending and see the faq
 
Does anybody know how to edit a freaking footer using drupal CMS?
For the love of god, this is driving me nuts.
 
!!prettify
 
6:59 PM
@AbhishekHingnikar That didn't make much sense. Use the !!/help command to learn more.
 
!!help format
 
@AbhishekHingnikar format: User-taught command: <>Format your code - hit Ctrl+K before sending and see the [faq](http://chat.stackoverflow.com/faq)
 

« first day (1284 days earlier)      last day (3667 days later) »