« first day (1572 days earlier)      last day (3391 days later) » 

5:04 PM
"The general advice for this is to drop require.js in favour of plain script loading"
 
user1596138
@Loktar That's somethin!
 
yeah its pretty sweet, used it for a project at work
socket.io was pissing me off and I wanted to try just ws
 
I just had an interesting thought.
You can make donuts from donuts
infinitely, scaling upward
 
What?
 
user1596138
5:08 PM
Yea socket.io pisses me off lol
 
You can make rings from rings. And then use those rings, which are made of rings, to make more rings.
etc.
 
user1596138
@Shmiddty I like it
 
primus looks good except the 'require.js' portion. But they might just be covering themselves.
 
Adz
err guys, I'm new to javascript so apologies if this sounds simple. I've defined a variable, var myArray; I then use a ajax post to php and assign the returned php to: myArray = JSON.parse(msg); . When i try to print the myArray, i get the message undefined . Any help please?
 
@Adz 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:09 PM
@Luggage hmm yeah idk I used commonjs
 
user1596138
@Adz What is the content of msg before JSON.parse?
 
@Adz Are you printing it on the ajax response? In the 'callback'?
 
er wait, no I didn't I just included the script tag
 
Adz
by print, do you mean alert? If I alert it it alerts the data that i need just fine
 
for the client anyway, since Im putting it on a site that has other js, my project was for tracking users.
 
5:10 PM
They suggest chaing your whole app to use script tags or browserify. Not conna happen
 
Adz
well it's undefined, but doesn't it get defined in the ajax?
 
It gets defined whent he ajax returns, but if you are printing/alerting it before that happens, while WAITING for a response, then you'll get undefined.
 
user1596138
@Adz Paste your code somewhere and link it please. It's probably simple but will be hard to figure out by guessing.
 
user1596138
Debugging by guessing is stupid
 
Adz
yeah sorry one second plz
 
5:11 PM
I'm pretty sure the Loch Ness monster is why myArray is undefined
 
fair enough
 
Dammit, Nessy.
 
@rlemon Do you watch a lot of crime shows?
 
@Shmiddty rlemon is afk: food time
 
user1596138
5:15 PM
@Adz Is that your exact code? Because it's syntactically absurd (I mean no offense it's ok to be a beginner)
 
.innerHTML = is happening before the ajax response
 
Adz
no it's not lol it pasted it weirdly
 
the alert() inside the success callback should work, though, I think.
 
Adz
yeah it does work
 
so, just put the innerHtml bit inside the success callback
That fires AFTER the response is received.
 
Adz
5:17 PM
ohh ok
 
user1596138
@Adz like luggage said, your success callback fires when the request finishes successfully. Your other code (where you try to access myArray) fires immediately. It's just happening too early.
 
Adz
great, thanks!
thanks for your help guys ,3
<3
 
I am NOT less than 3.
 
Adz
:(
 
@BenjaminGruenbaum writing tests :D
 
Adz
5:18 PM
>999999999999999999999999999999
 
Sarcasm over 9000 :O
So I found something more tedious than HTML content updates
Spanish content updates
 
lol
 
@KendallFrey 1 for 1
@Shmiddty not really
 
how come the french wiki about Charles de Gaulle doesn't have the cheese citation whilst the english wiki has?
I'm trying to look for the original citation
 
@rlemon my mom loves that crap
 
5:22 PM
the one I've found on most sites is in english: "How can you govern a country which has 246 varieties of cheese?"
 
@rlemon no fair
 
It always makes me chuckle on the inside when I see the inaccurate computer terminology.
 
@Shmiddty I watch documentaries and nerd humor and scifi
 
> Comment voulez-vous gouverner un pays où il existe 246 variétés de fromages ?
 
246 varieties of cheese?!
yes please
What does the rest of it say?
 
5:25 PM
Is there a sublime text 3 plugin to convert spanish characters into unicode?
 
@Shmiddty I was watching an animated video, and I noticed that the shadows were drawn impossibly. :/
 
Running replaces isn't fun
 
also, in one site I've found this, which seems pretty controversial:
> Un pays qui produit plus de 365 sortes de fromages ne peut pas perdre la guerre !
 
that's from Churchill ^
 
@KendallFrey That's pretty common in anime, actually. At least in the bargain barrel stuff
 
5:26 PM
and from another french site I find this:
> Comment voulez-vous gouverner un pays
où il existe variétés 365 de fromages ?
 
@SterlingArcher It is in REBEL
 
is it just national ego that they're augmenting the cheese count or are the sources just not accurate?
 
ST3 != REBEL :(
 
@FlorianMargaine oh, thanks!
 
@SterlingArcher It could be
 
5:27 PM
I don't understand the significance of this cheese discussion
 
Oh you rebel you
 
@Shmiddty I'm making a research in french about cheese for school
 
@SterlingArcher You mean from another charset to utf8?
 
I'm not sure if a cheese can research, let alone research in French...
 
@copy I think so. In my text editor I'd like to just click a button to convert accented spanish characters like í into &#237;
 
5:28 PM
Have you we invented sentient cheese?
Is that what "head cheese" is?
 
Fun fact: there are many marijuana strains named after cheese.
 
@SterlingArcher So convert to entities. Maybe that helps you google for it
Otherwise, write a script that does that for you
 
entities that's the word... thanks copy!
 
@towc :P
 
supernatural entities
 
5:29 PM
supernatural entitlements
 
user1596138
@SterlingArcher Example?
 
supernatural supplements
 
2 mins ago, by Sterling Archer
@copy I think so. In my text editor I'd like to just click a button to convert accented spanish characters like í into &#237;
 
@SterlingArcher That's not unicode, that's HTML entities
í is already unicode
 
2 mins ago, by copy
@SterlingArcher So convert to entities. Maybe that helps you google for it
D:
 
5:31 PM
yah yah
 
17 secs ago, by Sterling Archer
D:
 
Mmm general tsos shrimp is gewd
 
detached nipples
 
5:32 PM
hi
 
user1596138
@SterlingArcher So all accented characters, nothing to do with spanish.
 
user1596138
Or is English é different from Spanish é
 
Hm, TypeScript 1.4 question. When I have the following, why does it not accept options.jar = true (because jar does not exist on string|request.Options)?
function _modify(options: string|request.Options): request.Options {
    if (typeof options === 'string') {
        return { jar: true, url: options };
    }
    options.jar = true;
    return options;
}
 
never knew about this: "to cut the cheese" is apparently an euphemism for "to fart"
 
5:39 PM
lol @ "eufemism"
 
woops
 
lol, from Stephen Fry:
> Cheese is the celebration of milk when it goes 'off' big-time-stylee.
 
user1596138
@SterlingArcher idk I guess that feature isn't in ST3 it is native for ST2? the fuck?
 
wait... I can compound formatting now?
OMG
when did they change that?
 
5:44 PM
@Mosho about time
 
@rlemon month or two ago, maybe? fairly recent
 
@rlemon when couldn't you?
 
@KendallFrey nice. that always bugged me
 
I wonder if I can just run a global replace in ST3 with regex
 
@towc previous to the point where we can
@SterlingArcher you can
 
5:45 PM
@rlemon can't argue with that
 
Hmm i'll take a look
 
@SterlingArcher you can! :P
 
What's the syntax to replace a list with another list?
 
this is hard: I can't really find much correlation between cheese and France, which is what I was supposed to do... the only thing that cheese has to do with the country is the place it is produced in and the name, but nothing else: cheese doesn't seem to have any importance other than just cultural stuff... and nothing much to distuinguish france's way of doing stuff with cheese from other countries'...
 
user1596138
@SterlingArcher you can totally global replace
 
5:48 PM
Would it be like... find:(0,1,2,3) replace: (9,8,7,6)?
 
user1596138
Yeahhhh.... I don't think so.
 
user1596138
Idk
 
user1596138
No clue at all
 
ctrl + h, find "0,1,2,3" replace with "9,8,7,6"
:P now ask your real question ;)
 
Hush I'm actually trying to learn this one without being given the answer :P
Trying to figure out how to split several characters to find them all separately
aha!
([úáéíóñ¿])
 
5:54 PM
Hello
 
@SterlingArcher your ultimate goal is to just entitify those characters or what?
 
yes
So that I can run a simple regex replace instead of 7 replace alls
 
are you allowed to use js?
 
I got the selection regex down, but now I'm trying to figure out how to apply the entities in order to the find
 
user1596138
@SterlingArcher honestly a regex replace for each value is kinda messy why don't you just use the plugin?
 
5:56 PM
What plugin?
 
user1596138
After you solve this problem for shits and giggles of course
 
@towc this is for ST3 not a website
 
user1596138
 
@SterlingArcher oh
 
5:57 PM
Well now I want to solve it lol
 
I'm using jquery $.get( '/actions.php', {...}); and it is making multiple calls to actions.php until it returns some data. What could it be?
 
user1596138
Right lol. So solve it first either way don't be a pussy
 
@Azevedo what?
 
the gets just keep on getting!
 
also tried $.ajaxSetup({ cache: false }); but it stills keep making a burst of calls to actions.php until it returns some data
 
user1596138
5:59 PM
@Azevedo Judging from all 0 of your relevant examples, it's probably because Tom Cruise is still on the moon.
3
 
@Azevedo are you sure it's a burst of calls? Tried reading what your console says and not just looking at the colors?
 
@SterlingArcher figure it out yet?
 
@towc no errors at console. it just burst the call. I'd like it to make only one call to actions.php
 
user1596138
@Azevedo alert('this is one alert') // this fires one alert
 
user1596138
$.get( '/actions.php', {...}); // this sends one request
 
6:01 PM
@Azevedo show us the structure of the code maybe? That just means the relevant part: there's something else you might not have tooken care of
 
@rlemon nah, I tried ([&#237;&#243;&#241;&#233;&#225;&#250;&#191;]) as my replace but that replaces with just that full block of entities not the individual
 
just don't send all of your code!
 
user1596138
You must have the request wrapped in a function which is being called multiple times.
 
@SterlingArcher backslash'em?
 
@SterlingArcher I have no idea what your end goal is. jsfiddle.net/f9r25172/1 but I wrote some code
 
user1596138
6:02 PM
I promise you it isn't just running away lol
 
hold on.. i think it is related to api.jquery.com/event.stoppropagation
 
user1596138
Are you trolling?
 
user1596138
Or just posting random doc pages?
 
user1596138
!!afk lunch
 
@towc negative
@rlemon I'm just replacing those accented characters with HTML entities in ST3 so I don't have to run 7 different replace alls
 
6:05 PM
btw, what's ST3? Italian google shows me motorbikes
 
sublime text 3
 
oh -_-
 
when I do the ajax call from a link in the body it works ok (call). but when I call the ajax $.get() from a modal popup (dinbror.dk/blog/bPopup) it kind bursts the call
 
morning
 
and you're trying to replace all of the strange characters in a file with their respective entities? @SterlingArcher
 
6:06 PM
mornin
 
@SomeKittens morn'
 
@towc correct, thus, regex
 
@SterlingArcher you could always copy the text on the browser and do some js magic
just sayin'
 
Re: Node.js incubator: They're scared.
this is good news, because it means they won't try to absorb IO.js and then ruin it as well.
 
6:08 PM
@rlemon no JS D:
I want to figure this out the ST way
 
should be the same
except without my fancy map :?
 
You can run JS scripts in ST3 replace?
 
@SterlingArcher check out packagecontrol.io/packages/StringEncode
 
Well my co-worker said it's not possible without a script so you guys win :(
 
@SterlingArcher I don't think it's impossible
ok, yes I do
 
6:14 PM
@SterlingArcher damn that is a nice plugin packagecontrol.io/packages/StringEncode
just installed it and tested it out
 
I may try it after lunch
 
6:27 PM
@RoelvanUden if neither type on options: string|request.Options says it can have a jar property, then neither can, yeah.
 
in angular, with $resource, how can you structure a request which has a many-to-many relation with another table?
 
interesting, instead of "BC" french people can just say "avant l'ère commune" (before the comunal era/time)
 
So like BCE?
 
@towc why "communal" era rather than "common" or "current?"
 
@Retsam is it a real thing?
 
6:30 PM
Before C (the programming language)
 
@Luggage before C, there was only the DoD, and nobody accomplished anything
 
@towc Yeah; it's a thing. Personally, I find it kind of silly.
 
@ssube it actually refers to 0BC from what I understood
 
@towc BCE is the standard time system thing for, presumably, everywhere
 
@Luggage before C, there was chaos, then light and darkness divided...
 
6:31 PM
I thought (B)CE was part of the SI or something
 
into tabs and spaces.
 
I have an html table of yes/no (textual) like buttons. I'm transforming this javascript, which manually prevents rapid-fire clicks, to this version using Underscore. What should "data" (the variable) be changed to?
 
I've been waiting for this all winter
Bring on the snowburn baby! @Jhawins
 
Changing the acronym doesn't change the fact that our time system is still based on the birth of Christ; it's just a small level of obfuscation on that fact.
 
(Line 20 in the new version).
 
6:33 PM
@Retsam No, it's not, not really at all. It was supposed to be, but a bunch of uneducated old men got it wrong by a few years (depending on exactly who you think was the proper Jesus).
 
it's just that it looks like the french have too many standards for time counting!!
 
@SterlingArcher nice thumbnail
 
I think it's appropriate lol
 
A system based on some mostly-arbitrary year and cycling every yule, though, is equally silly.
 
@ssube Well, yes, there's a bit of debate about the exact year (and complications from some places where records were kept incorrectly, iirc) but that's not really relevant.
It's still based on the event, even if 1BC doesn't exactly coincide with the event itself (if, as some would argue, there was even such an event)
 
6:35 PM
we should start counting the time since the beginning of the universe (approx, every new approximation will change the current timings)
 
Whether some old guy made it up out of spite or it's completely arbitrary, nobody has ever come up with a good reason why we're at the year 2015 now.
 
christians can't say no because they already had their share
 
@towc yeah, a kelvin equivalent for time would be great
 
@towc We should just go back to the Roman system and just name the year after the current President or something.
 
having written code around timezone handling, I would love something that's always forward-counting
 
6:36 PM
or we could just start counting since Jon Skeet's birth, seems appropriate
 
for modern purposes, we have the unix epoch, which seems sufficiently soulless to be a rational basis for things
for history, we can just have signed epoch time, I guess
 
hey guys, does anyone know the right way to do this....I have a form in my angular directive...and form has some id and name attributes to it of course....now if I use this directive multiple times - these will repeat in the DOM, and since IDs/names need to be unique - I'm not sure how to go about it
thinking about adding a dynamic, changeable component to these IDs/names, but seems like cumbersome solution, there has to be a better way
 
okay, so, does $rootScope.$broadcast('error', e) change the e parameter in any way?
 
6:49 PM
@KendallFrey lol NOOOOOOOOO
Guys great news
 
well you got me there, need to figure how to log this (angular newb) - but I've inspected the dom, and I see there are multiple elements with the same ID which I know should happen - right?
 
My bank account situation will finally be over today. 8 days of hell is over
It's almost like an opposite Channukah
 
should not happen, sorry
btw. here's one timeless classic for y'all:) youtube.com/watch?v=hA1UqfMBrKg
 
I'm so excited now I can go shopping for new clothes and recklessly spend money again
!!afk vape sesh with happy thoughts
 
6:56 PM
@SterlingArcher did you see my dr who box wrap?
I vape off the Tardis now
 
user1596138
@SterlingArcher my bank's fraud department called me and told me someone spent all my money yesterday but I was walking out of Best Buy...
 
@Jhawins SterlingArcher is afk: vape sesh with happy thoughts
 
TomSka is great. I think my favorite is this one... mostly because of how much I enjoy puns.
 
asdfmovie is still king
 

« first day (1572 days earlier)      last day (3391 days later) »