« first day (1254 days earlier)      last day (3917 days later) » 
00:00 - 15:0015:00 - 00:00

15:04
hi. this char '↓' is '\u2193' which can be tranlated to html entity via changing from hex to dec so : &#8595 ( decimal value) will be also the arrow down char. but I saw that '\141` is a in console. how's that 141 is calculated?
(a=97 dec)
@RoyiNamir: octals
@Qantas94Heavy yup thanks
!!> 0141 === 97
97..toString(8)
@Qantas94Heavy true
15:06
tnx
I hope you saw this : utf-8.jp/public/aaencode.html
6
i'm trying to figure how it works
@EliasGranja 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.
@Qantas94Heavy so why this doesnt work 8595..toString(8) ? (20623) ---> \20623
@RoyiNamir: only up to \255
ouch..
ok tnx
@RoyiNamir: sorry, my bad, that's meant to be \377
255 decimal
15:16
what ?
@PageOnline 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.
I dont understand
'\377' --->"ÿ"
Ale
Ale
!!> 0377
@Ale 255
Ale
Ale
15:19
Why .jp is so expensive
@Ale I see you clicked the link hahaha
Ale
Ale
:P
In fact I already knew that thing
that specific obfuscator ?
Ale
Ale
JSF*ck seems more difficult to me in fact
But aa is more ^______________^'ish
not that im saying - but the jp obfuscator is much less in size :P
15:22
@John 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.
Im going to send jquery.js to my collegue after that jp obfuscator haha
So, is Forever still the module people use to keep node running?
Ale
Ale
I dunno what ~┻━┻ means
...hmm
however I still dont understand how he got a = /`m´)ノ~┻━┻/['_'];
where's that a= come from
will be happy to know...
Ale
Ale
He substituted ` ゚ω゚ノ` with a
Just for readability
15:26
how ?
but the file contains ω゚ノ - how does Js engine knows what to do with it ?
And this is why I hate code golf with a passion....
@ndsc 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.
@twiz just a sequence of letter characters
the beginning of the file is ゚ω゚ノ=/`m´)ノ~┻━┻//
how does js read it ?
var ゚ω゚ = 999 --- fails
Ale
Ale
!!> ゚ω゚ = 999; ゚ω゚
15:29
@Ale 999
huh ?
I can swear it failed when i tested it
if so - that's understood
posted on March 23, 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) {} Whee!

strange that he mention a = /`m´)ノ~┻━┻/['_'] evaluates to a = undefined
I can play with the charcters there and it's still undefined
!!> var a=/`m´)ノ~┻━┻/['_']; a;
@RoyiNamir "undefined"
It's a regular expression
Ale
Ale
15:32
What's so strange about it?
yes but the chars inside has no meanning
!!> var a=/`m´)ノ~┻ la la la la la━┻/['_']; a;
@RoyiNamir "undefined"
Ale
Ale
!!> /Anime//*_*/['manga']
@Ale "undefined"
@Ale "undefined"
Ale
Ale
So ~┻━┻ is here for no reason
15:33
yup
i didnt test the rest , but it's there just to f* with us
I wonder if it's cross browser though.....(not that im going to use it but still...)
16:00
@JZL003 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.
@phenomnomnominal yeah, but I might still change my mind
Ale
Ale
> Haml
16:17
@MinhVuong 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
m59
16:35
app.all('/*', function(req, res, next) {
  if (foo) {
    res.write('foo');
  }
  res.sendfile('index.html', {'root': './../client-core/site/'});
});
Is that kind of thing not possible?
Would I have to read the file, prepend foo and then send that variable instead?
@John 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 would have thought so mate
@m59 what is the result? try using the raw write() instead of send();
m59
m59
huh?
With my code above - "Can't send headers after they are sent"
I thought "write" doesn't send headers.
@ErenorPaz 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.
@idFlood 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.
Please, someone!
0
Q: Unable to get WinJS.xhr to properly retrieve XML file

DemCodeLinesHere is what I have: function HelloFeed(WPFeedUrl) { var title, articles; WinJS.xhr({ url: WPFeedUrl }).then(function (rss) { title = rss.responseXML.querySelector("title").textContent; var items = rss.responseXML.querySelectorAll("item"); for (var n = 0; n < ite...

Ale
Ale
16:49
Okay, now study time
Everybody close the chat and start learning sth
/me away unburying Japanese textbook
m59
m59
@DemCodeLines you don't know AJAX calls are asynchronous?
17:13
^ am sure you guys have seen it already, no ?
there are two posts?
ugh, I just had a really good idea for my game but I am playing another game.
times are tough
17:38
@m59 I am very new to Win8 development. I chose to develop with JS because I thought it'd be easier, but I just suck with AJAX stuff and need some more learning ;)
@prism 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.
@RuiLima 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.
18:18
@Squirrl 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
Q: Angular promises run conditionally

user3245272I'd like to perform an asynch function conditionally, but I think I'm missing the correct syntax to say what I want. this.doUpToThreeThings = function(skipTheMiddleStep) { return doFirstThing().then(function (result) { if (skipTheMiddleStep) { return doThirdThing(); ...

m59
m59
@DemCodeLines it's not a hard concept
@m59 Hey you're back! I replied to your answer, as somethings are still unclear. I even gave the entire code I have.
m59
m59
var x = 'whatever';

WinJS().then(function() {
  x = 'something else';
});

console.log(x); // <--- it's still set to the original value of "whatever"
Because WinJS is asynchronous. It doesn't just hang there and wait for the ajax response
I am glad to show you my new NPM module that I've built these days. :-)
18:29
I understand that it continues to do other work and retrieves the response when ready, instead of stopping altogether, getting the response and then continuing
m59
m59
If you understand that, then consider what you're doing!
You're pushing to a variable AFTER you're checking to see if anything was pushed to it.
var BasketballItems = [];

WinJS().then(function() {
  BasketballItems.push('stuff');
});

console.log(BasketballItems) // <-- empty
Right, but then what should I be doing instead?
m59
m59
Exactly what I told you to do.
That code that you just posted makes more sense
m59
m59
WinJS().then(function() {
  BasketballItems.push('stuff');
  //PUT YOUR CODE HERE
});
18:33
If you look at the full function, you'll see that the structure is a little bit different.
m59
m59
You're becoming a help vamp.
it's alright, I guess I will figure it out
@m59 ????????
One question, are you specifically talking about this:
function HelloFeed(WPFeedUrl, BasketballItems1) {
        var title, articles;
        WinJS.xhr({ url: WPFeedUrl }).then(function (rss) {
?
m59
m59
@DemCodeLines there's nothing really to figure out. If you do something asynchronous, any code that depends on it need to be in the callback. Simple.
I'm not sure what you're asking. @DemCodeLines
@AbhishekHingnikar what?
@DemCodeLines the problem is that your whole application is essentially backwards
18:38
you using winjs promises ?
ewww.
they suck and bug man
m59
m59
Me? I don't know a thing about it. I'm just trying to explain asynchronous operations to him.
When you refer to WinJS().then(function() { BasketballItems.push... are you taking into consideration the huge function code block I posted called function HelloFeed... ?
m59
m59
Yes, and all of it is wrong.
@DemCodeLines i like dat naime
m59
m59
The only way any of that would work is if you were using promises, which is presently WAY to advanced for you to understand.
18:39
so much win
promises are used to make sure to execute the code only when the app is fully ready.
There are two files, default.js and data.js. The code I have is in data.js
default.js contains the app.onready ... stuff
m59
m59
Dude, just study asynchronous operations, callbacks, and promises. This is silly.
I hate that I can't explain little things
m59
m59
I totally get what your issue is.
You don't need to explain. I'm just not going to write code for you.
@AndreiVieru 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.
18:41
Yes, and I don't want you to write it either, else I will get the same problem in the future.
win8 is confusing (not ranting m59)
m59
m59
you either need to pass callbacks into your function so that the appropriate function will fire AFTER the async operation is complete, or adapt your code to use promises
which is just a nicer way of doing basically the same thing
promises is out of the question, it would get very dirty to restructure other stuff
callbacks are uncleaer
but ok
hi guys I am trying to get how many days remained for the next birthday but it seems like am not wining I have done the code please check it here on pastebin
any help please
m59
m59
@DemCodeLines last try jsbin.com/pikoyade/1/edit If you can't understand that, there's no helping you.
It looks like all of your stuff is global anyway, so you don't even have to pass the callbacks in (global sucks, by the way)
18:55
Thanks for the effort of bothering to do something for me.
anyone know why the heck my chat wouldn't autoscroll anymore in chrome?
its been doing it for a few days only on my home machine, anyone else ever have this issue?
really annoying
@DemCodeLines read Felix's answer on how to return from an AJAX call.
@Loktar tried removing extensions/userscripts?
Hmm its worth a shot, I think I only have like 2
@BenjaminGruenbaum Is that somewhere on the web?
Or do I need to scroll up
!!tell DemCodeLines google "How do I return the response from an AJAX call"
test..
hah ok wow
so it was due to this
crap..
chrome://flags/#enable-experimental-web-platform-features
^ when enabled the chat doesnt auto scroll anymore
thats pretty annoying :? oh well glad to know the cause
@Feeds I love this feed :D
@BadgerGirl haha sweet
19:10
@Loktar better fixed than not :P
@phenomnomnominal Either that one or the middle by Jimmy Eat World
I saw them last month, they were good
Awesome :) I want to see them too
@Diullei 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.
19:49
0
Q: angularJS scope not updated for function attribute inside promise block

Paulo SantAnnacontroller('SomeController', function($scope, simpleFactory, $routeParams) { init(); function init() { var myDataPromise = simpleFactory.getStuff($routeParams.id); // The method A works fine here $scope.A = function() { //return result['someAttrOfResul...

Hello people
20:11
Hello macroscripts
Hi badger
hello monners
hi macroscripts
Hello, World!
20:33
@Loktar , @SomeGuy @rlemon some fun frenzy shoot em up ? fps ?
store.steampowered.com/app/242720 looks pretty promising
20:46
@AkshayPatil 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.
Hey guys!
I need a good tutorial on how to make a chatroom, similar to this one
only less sexy
@Barakados there are some decent tutorials based on SignalR
is that better than node.js?
depends whether you like .net
...i want it to be in javascript
20:56
the client side is in js
@ІгарЦімошка 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.
@Barakados You could read the code of Miaou, which is a Chatroom like this one, github.com/Canop/miaou
i just need a basic one
but thansk
@LanPac 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.
@76484 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.
@BernaMariano 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 hour later…
22:08
!!riot
@monners That didn't make much sense. Maybe you meant: riot
(╯°□°)╯︵ ┻━┻
@T-- 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.
how would one use php with mysql?
22:31
@Barakados mysqli_... or PDO. Also, this is not the PHP room
so sorry
i meant javascript
node.js or browser?
browser
for login and such
use the javascript to talk to a server
You'll need to call a serverside script (such as PHP) with XHR or sockets or something
22:33
ok
sounds complex
how about a chatroom?
I tried node.js, but i'm not finding a good tutorial for it
My code keeps crashing
you need to store the data somewhere
I have like 4 blocks of WinJS.xhr (url: ...) code
for different urls
but it keeps crashing
I'm using a mysql database
i'm gonna use php
@DemCodeLines SSCCE, please?
22:35
I can't really give an example, since it's a Win8 app
Looks choice! I'll take a look into it
@DemCodeLines What's stopping you?
Well most people don't develop for Win8 here (I am guessing), so it'll be pretty hard to explain things.
then create a windows 8 room, and become github and get the fork out of here
jkjk stay for the cameras
I develop for Win8 at times
22:41
@AdrianPreuss 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.
hey guys i am having trouble in showing ajax response in title tag ..
var obj = jQuery.parseJSON(r);
document.title = obj.title;
i am using this.. but it's not showing..
23:17
@nick What's r ?
@monners ? How does that answer my question?
@Miszy Read the docs. r is the JSON string that's to be parsed.
Yeah, that's what I'm asking about. What is it?
What's the content of the variable r?
@Miszy Oh, right. Not what it's meant to be. lol, it could be anything!!!!
23:25
Everything depends on that :P
Well, let's not get ahead of ourselves. The value of r ain't gonna topple any world powers.
By the way: Dependency Injection in JavaScript, any recommended solutions, libraries? Is LinkedIn's Inject.js a considerable choice?
m59
m59
@Mosho do you remember that promise unwrapping issue when binding service data to $scope?
wat
m59
m59
aghhh I thought I had a solution, but it's still limited..
23:30
hmm, I don't remember that at all
m59
m59
Before 1.1.5, you could do $scope.something = myService.something();
and async stuff wouldn't affect the binding
haven't even used angular back then
m59
m59
$scope.something could be set to the actual promise and then gets the updated value when the promise resolves. Now you have to use .then()
so why not use then
m59
m59
just messier :)
23:33
yeah, I've always done that with callbacks
never had the other option
what's your proposed solution?
m59
m59
nothing :)
;o
@m59 I guess you could... send a reference of $scope.something to the service
and have it apply the resolved async response to it
m59
m59
meh
that's worse hehe
:P
23:48
@m59 Sup
m59
m59
yo
Werd
@nairware 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 hmm, return an object from the promise, and then assign to it from the .then, in the service?
just spit-balling, never really used promises to any meaningful extent :P
m59
m59
yeah, I kind of had it with object references, but you end up needing to copy all the obj properties
to avoid setting a new reference
23:51
create the object before the call, return it, and then assign to it after the call returns
would that create a new reference?
never bothered to look closely how JS deals with memory
@Mosho Magic.
m59
m59
yeah, but you have to assign properties to it (thus copy)
unless you want to have an arbitrary nest
what happens if you just assign to it
to the whole thing
m59
m59
$scope.foo = myService.uselessProp.foo
^ that would work
otherwise, you're replacing the object reference
23:55
o/
stackoverflow.com/a/22598761/2888561 Does my answer have an actual problem, or is it some douche downvote?
@eazimmerman Hi.
@bjb568 I see no downvote
23:58
Strange...
Oh. It's a +1,-1.
Ok, just a jealous voter.
00:00 - 15:0015:00 - 00:00

« first day (1254 days earlier)      last day (3917 days later) »