« first day (1270 days earlier)      last day (3903 days later) » 

11:01
817 for me
wow.. what 2 years can do... unfortunately not in a good way
87 consecutive, though
thats 2014
how to check model data save in db ,use of backbone
11:01
help
that was 2012
@Sport The easiest way is to learn Backbone.
@Sport And how to use REST API
and how to create a REST API
or any kind of API
rest api
i am using
@jAndy You point is? :P Don't have time to watch all of it now :D
I've been to 2 or 3 of her talks
its just about the overall looking of her
11:03
always basic stuff, always really boring, and she's so presumptuous
she looks so much worse 2014 IMO
pfff, 147 missed chats.... /ignores
var PostwallModel=Backbone.Model.extend({

urlRoot: 'http://mysssssssss/rest/wallcomment/',
idAttribute: '_id',
defaults : {
uid: '',
chaid:" ",
post : " "
},

initialize: function() {
//console.log("<><><>post model model value<>"+this.model.get("userId"));
console.log("<><><>post model initialize<><><><><>");
},
//


});
return PostwallModel;
});
@j
@Sport First of all - format you code.
ok
11:04
Then read Backbone.Model documentation, there's a save method ;)
Once you get there you'll realize how useless Backbone actually is.
it seems that people just doesn't read documentations :|
It seems that people just don't Google anything.
or that
There's a Facebook group AngularJS Developers
man, getting reps is hard work
11:05
and a dude comes here asking "are there any good resources on AngularJS?"
My answer: docs.angularjs.org
var PostwallModel=Backbone.Model.extend({
urlRoot: 'mysssssssss/rest/wallcomment',
idAttribute: '_id',
defaults : {
uid: '',
chaid:" ",
post : " "
},

initialize: function() {
console.log("<><><>post model initialize<><><><><>");
},
});
return PostwallModel;
});
He: "That's exactly what I needed"
nothing but answering stuff for 2 hours, only 100 rep to show for it
-.-
@Sport Hit up, Ctrl+K, enter
11:06
@Mosho: too much quality, not enough quantity
this.model = new PostwallModel();
             var obj= new PostwallModel();
             obj.set({uid:'40',chaid:'1652',post:'the post is here'});
@Mosho I can +1 your answers if you want me to :D
optimum should be 3 minutes per answer
this is
@Miszy: lol serial upvoting reversed
11:07
@OneKitten Not serial, I'll do it from time to time xD
var PostwallModel=Backbone.Model.extend({
urlRoot: 'mysssssssss/rest/wallcomment',
idAttribute: '_id',
defaults : {
uid: '',
chaid:" ",
post : " "
},

initialize: function() {
console.log("<><><>post model initialize<><><><><>");
},
});
return PostwallModel;
});
once a day then! sounds like a plan
I understand SO has pretty fucking amazing algorithms preventing cheating ;)
this.model = new PostwallModel();
             var obj= new PostwallModel();
             obj.set({uid:'40',chaid:'1652',post:'the post is here'});
then I turn evil and flag you for moderator attention
11:07
@Miszy
help
@OneKitten ->
how to check thaw save in
db
@OneKitten now, now, no one likes a rat
@jAndy
11:08
a rat pretending to be a cat is even worse!
user2509223
sushi day
@Sport Your API will respond with a certain status
200, 201, 202 etc. are successful
404 is very successful
Backbone takes care of that, I guess?
@Sport why would you ping me and take my attention away from FOOD
user2509223
11:09
@Miszy for me only 200
@OneKitten 500 is even more :D
where i have to check this status
200, 201, 202 etc. are successful
can u add code
whre
i need to add
@Sport Google?
12
Q: Manage of server error response with backbone

Jaime RiveraI would like to know the best way to manage server error response on new, update or delete models. At this moment the server returns a http status code # 400. But the default error handler in Backbone is not showing the errors. How can i show these errors? Is it ok that the server returns htt...

According to RFC 2324, HTTP 418 is the only response which should be considered successful.
user2509223
@Sport its in the response header
11:10
We use 418s to log JS errors
@OneKitten : i know that
@derylius What do you mean? ;) You only consider 200 as successful?
@phenomnomnominal Hahaha, smart
CoffeeScript errors
user2509223
@Miszy yeah, if thats not the case i fucked up something for sure
i am using
js
11:11
@derylius But proper response to POST is 201 ;)
sometimes I want to show you guys an answer I made that I feel is cool, but I don't want to come off as a rep-beggar
wat do
just ask to not rep
gangsta
@Mosho make it community wiki, then post :P
you will still rep
community wiki
11:12
hmm
is it bad that I don't know what that is
@Mosho You can mark your answers as community wiki :P meta.stackoverflow.com/questions/11740/…
user2509223
@Mosho yeah you are a bad pers... doge
damm @Miszy you are fast
@Mosho : there is a cb at the bottom of the textbox. just click
@OneKitten That's NOT what she said.
11:14
pff, no thanks
@Miszy obj.set i need to use or obj.save
I'm not a beggar, but I'm still poor
need my reps
to save data in db
!!stat Mosho
@KarelG That dude sucks
11:15
@Mosho suggest edits that improve formatting lik i use javascript plz help
omg
user2509223
nice :D
I usually take walls of code and filter them through dirtymarkup.com
@OneKitten stop it plz.
11:16
   wow
so mosho
                very  rep
                        such  javascript
many  help
@Mosho seriously, I'll stop if I'm doing something annoying
@OneKitten sure, np, not annoying at all whatsoever, at all
I got a serious question, but please don't laugh at me guys.
go ahead
I am an owner of this room, do I get any perks/special commands? XD
user2509223
11:18
@Miszy pls
I seriously have no idea.
@Miszy you get to pay the membership fee!
@Mosho Sounds like MENSA :D
@Miszy: do something like !!mute 2074608
@Miszy I feel "JS room owner" looks better on my resume
11:19
!!tell Miszy help
@Miszy Information on interacting with me can be found at this page
!!mute 2074608 1
@Miszy Please give mute duration, see /help mute
I see, thank you :D
@Miszy Muted user 2074608 for 1m
11:20
who dat
user2509223
is it a league?
!!unmute 2074608
? :P
@Miszy Unmuted user 2074608
haha, poor somekitten
I feel like
user2509223
11:22
nice
I am impressed my friend
Gonna tweet about it ;)
Add to my resume
call my parents
@Miszy :
before you do that,
11:23
^ you ruined my joke
@Mosho go ahead
too late
Please? :P
user2509223
@KarelG im trying to eat here
eating spearfish ?
user2509223
11:24
LWAPOAFOOMM
@Miszy it's too late!
lay on the ground
try not to cry
That's more like me now.
user2509223
Laughing While A Piece Of Alga Flying Out Of My Mouth
i thought to put that rhino in, but apparently it's ok for yourself bro
11:26
:D
oi who bloody muted me
MURDER
@Miszy yea, sorry about each. I was confusing with native forEach.
jim carrey is the best
@Oleg I know, no problem :)
user2509223
11:27
Do you guys like Cara Delevingne? :D
LOL I didn't even realize until now.. ECMAscript is always good for a joke :P
document.getElementById
document.body.innerHTML =
var rofl = new XMLHttpRequest()
know what I mean ? :P
I... don't get it :(
ok quiz time, who knows what I'm talking about ?
@jAndy put it in my console, thanks for the virus
now posting from my toaster
ok 10 seconds are up
its totally inconsequential about camelCasing and how to separate acronyms and words
I mean.. lol "Id" is camelCased, HTML is not as acronym.. but XMLHttpRequest where HTTP is also an acronym .. is totally mixed up
11:32
While XML is
XMLHTTPRequest looks like shit though
yea.. who invented this crap :p actually you don't want to think about whats going on under the hood if this happened :P
@jAndy The guy who invented this is already fired. I read about it a few days ago.
but getElementByID would make some sense
@Mosho why?
11:33
should be XMLHTTPRequest or XmlHttpRequest
@Oleg it actually wouldn't
I don't know how many other cases are there in DOM Api which confused themselfs about this
brainfarted
excuse moi
It's snowing. I want to go back to bed.
11:34
multiple releases = different semantics
@Oleg so I was correct?
now I'm fucked either way
fml
but I guess... since Microsoft first came up with XHR stuff.. I already know who totally messed up XMLHttpRequest :p
> Miszy's Theorem: Rate of work done in time is directly proportional to the amount of work left to do.
And now I have 0 tasks on TODO list.
@jAndy I was gonna mention that that's MS's caps convention
as far as difficult things in programming go, I find naming things excruciating
11:35
@Mosho looks like your were :)
@KendallFrey yea.. I guess whoever came up with XMLHttpRequest was slightly mentally ill
because its pointless in itself :p
actually, in other languages like C#, HTTPRequest is in class HttpRequest ... camelCase :|
Pay your thanks to Mozilla for lowercase ttp in Http.
it's probably only in js
XMLHttpRequest (XHR) is an API available to web browser scripting languages such as JavaScript. It is used to send HTTP or HTTPS requests to a web server and load the server response data back into the script. Development versions of all major browsers support URI schemes beyond http: and https:, in particular, blob: URLs are supported. The name was standardized to XMLHttpRequest for compatibility. It may be misleading, in particular because any textual data may be received from the server, not just XML. Data are also commonly received as JSON, HTML, or as plain text. Data from the resp...
11:37
What do you think of Brendan Eich stepping down as a CEO?
@Miszy why would he be the CEO in the first place?
-would- > should
@Oleg Nope, it's a MS convention
Because there's noone better for this position.
@KendallFrey not according to wikipedia
(how do you spell no one? There seems to be 3 conventions)
11:39
Three letters or shorter, keep the caps. Four, use camelcase
@KendallFrey Id? ;D
"An interface called IXMLHTTPRequest was developed and implemented..."
@Oleg Well, maybe MOZ is responsible, but it is the MS convention regardless
did someone just upvote 3 of my answers lol
you guys :D
;)
moar
11:40
Windows app store is disgraceful
Front End Layers:

[Presentation:CSS] - [Behavior:JavaScript] - [Data/Structure: HTML]
@SteamFire it's gonna be reverted though :P
does Angular meet this requirements ?
@jAndy Yes.
heh, about the XMLHttpRequest, It's now being standardized in the W3C. It provides an easy way to retrieve data from a URL without having to do a full page refresh.
11:40
@Miszy how so ?
having huge parts of behavior within HTML
@jAndy Do you? I don't.
@jAndy I honestly don't see how that is bad. on the contrary
Define "behaviour" ;)
I don't use Angular, so I don't :P
11:41
I used to hate Angular. Now I think otherwise.
Somehow I also used to hate CoffeeScript...
well.. anything that is responsible for process and logic of my app = behavior
... but I'm to ashamed to acknowledge that I really like it now, so I won't.
@jAndy That goes to JavaScript
controllers or directives
HTML is only presentation
i am trying to change the a tag text within a jquery dialog
but that does not works
i think the dialog should be refresh, but i dunt no how to do that
@jAndy I think this is not suitable for apps nowadays.
11:43
Angular does not have behaviour in html, it has data bindings in html ;)
any help?
@Miszy doens't Angular use a lot of "logic" and variable within HTML to control ?
thanks
@jAndy Just denotes bindings, nothing more.
@jAndy not really if you step away from "html is the structure".
It looks more like "view" to me.
11:44
so I could tell what a code precisely does without looking into the HTML/Template ?
@paulcheung we need to see your code, try posting a test case on jsfiddle
HTML + CSS = Presentation Layer
who says that ?
Behavior + Data = JavaScript
Makes no sense if you say html is the data -_-
11:45
@jAndy Why would you need to?
you use the markup to present it
I'd say presentation is pure CSS
no
css is just a mere way to style your markup
with some cool toys
@jAndy you can present things without a single line of CSS
because of browser CSS
11:46
Hum, is there a problem with Caprica? It doesn't seems to work...
@CapricaSix :)
!!doge presentation,css,html,structure
$(".submit").click(function(){

var form = $("#buy-form");
var $alertDialog = $("#alert-dialog");

form.submit(function (event) { event.preventDefault();});
form.submit();
var validator = form.validate();
if (validator.numberOfInvalids() <= 0) {
$("#submittitle").text("submiting...");
}
nope... there is a problem...
HTML = skeleton
CSS = UI styling skeleton
JS = skeleton interaction
for me
11:47
HTML is a document, CSS is a way of displaying that document, JS is a way of making the document interactive.
^ yup
2
^-- yupyup
3
^ yupyupyup
I'm still in flux about Angular mixing too much "logic" and "behavior" into its templates/HTML
I use f.lux. It's awesome.
11:48
I haven't done anything really with Angular so I'm no in the position to judge
A lot of people are @jAndy, me too :)
But it works and it is pretty efficient.
Yes, it ad some logic in view but put the less you can
Define bindings and the way users interact with the application in html
one bad thing about that is.. its totally depenend on that framwork once and forever
when you cross that line
It's usually like that.
11:49
It add some logic view indeed
no its not
HTML should be completely on its own
so CSS
But usually you're not using HTML but some kind of templates engine
Handlebras, Moustache
regardless which "engine" runs behind it
!!moustache :D
@jAndy You can't use Handlebars templates with Moustache engine :P
11:51
Did you work with AJS before?
angular isn't always efficient
don't forget that it's a framework ...
It does the job.
pure js too
seems an invalid argument :|
AngularJS is good for small and medium applications
11:53
what do you mean with "small" ? < 50 line-ish code in angular ?
the problem with templates is indeed .. a real problem. To completely let HTML alone of any.. "code", its tough to separate but I still think it should
even if you choose to have small'ish "HTML" strings within your ECMAscript, that also would mix layers and you also would need placeholders and stuff
this guy should be removed from the developers world
http://stackoverflow.com/a/22936202/2412895
@KarelG By small I mean small applications, < 1000 lines of code I guess.
Or something.
and by medium? How much lines? :P
5000? I don't know.
11:57
Are you sure?
No.
I just said that ;)
5000 lines of code in angular ? And then you have a js behind ? That's a huge chunk of data for the client ...

« first day (1270 days earlier)      last day (3903 days later) »