« first day (1124 days earlier)      last day (3810 days later) » 

9:00 AM
"sugarcrm is good in general" - [citation needed]
 
Whoa whoa! We're no longer "the" official javascript room? Since when did EMCA stop supporting this chatroom? I protest!
 
@Neil SO did, yesterday.
 
@JanDvorak SO complained that someone was saying we represented SE?
 
@Neil Did you miss yesterday's drama about the auto-greeting ?
 
@Neil a mod complained in the SU main room that the bot greets look too official and they must be gone. Then another mod came here to tell us to stop greeting, despite the former mod having said "if ... the room's purpose is very specific to a well-defined group of people who consider the bot fitting and its greeting appropriate, we don't have any issues with it."
 
9:09 AM
tl;dr drama
 
@dystroy I suppose I would have noticed
 
Hey room. What do you use for websockets in node.js when you only want webscockets and don't want to support browsers which are not able to websocket ?
 
I think that is a bunch of hogwash actually
 
And second question : express looks nice. Any reason I should not use it ?
 
Since when has anyone ever entered a chatroom and expected its participants to "represent" anything other than typical internet?
Bot or otherwise
 
9:13 AM
@dystroy socket.io
@dystroy no
 
@FlorianMargaine Socket.io is full of fallback stuff. Isn't it a little too heavy to use when you just want pure websocket ?
 
@dystroy not really, your code is just like pure websocket. The fallback stuff comes for free
and you can disable it iirc
 
Thanks @FlorianMargaine
 
@dystroy Some ISPs (Vodafone, at least for me) don't support websockets
 
and sailsjs looks nice, Benjamin only says good things about it
I'd just go with it because I'm lazy
and have already done from scratch a dozen of times
 
9:18 AM
Well... doing a web app from scratch in node.js is fast and short anyway
 
there is a lot of boilerplate
 
it's just that it feels a little strange to always handle by hand things like mime-type, even if it's a few LOC
 
github.com/Ralt/Safran/blob/master/app.js this is basically a boilerplate file
 
that's why I consider a solution like express
 
this is with express
 
9:19 AM
but I'm not enthusiastic for MVC or templates (but you know that)
 
haha
honestly you should try it on something where this was thought out
maybe you'll like it
 
hi :-)
thats a valid point
you guys will have a fully baked design by tonight :P and hopefully gophMe should be up aswell
but i really have a bad feeling of building this with azure
 
I can see the update of the room's name and rules. o-O
@JanDvorak bureaucracy ?
 
9:37 AM
@TheLittleNaruto skip back to around 0AM GMT to read the drama
 
6 messages moved to Trash can
you guys are kids, seriously
3
 
kids, or just afraid of an unjust disciplinary action
 
Well, I was moreso refering to this
 
@FlorianMargaine i have lived my life under such governments
 
> We don't plan on moving there but the project itself could be interesting for the whole room to collaborate work on.
@Shea ^
 
9:39 AM
and well i am not a kid i am retarded
 
@AbhishekHingnikar it's not a government, it's a private company
deal with it
 
@FlorianMargaine In India Government is also a private company
very similar
 
they're kind enough to listen to us, that's already a great thing.
 
@FlorianMargaine I'm not hearing any reason not to advertise it
 
and the chat service is something free, they get nothing out of us, we're not even products there
 
9:40 AM
at the end of the day, however much we have given to this community, it has given back as well.
 
if I were SE, I'd just close the chat seeing how much drama this brings out.
 
You know our candidate for prime-minister by the ruling party gave the statement publically :

"It was congress which brought mobile phone in India in 1974 cause they realized that in this state government doesn't even listen to the people" . [ Mobile phone came in India late 1988 , besides the state he was speaking in had congress for almost 50 years]
 
WAT?
 
and ...
his recent amazingness : "India in size is bigger then the whole north america, infact a small state is bigger then europe"
 
@FlorianMargaine I really see hardly any drama, or shits being given by many people.
 
9:44 AM
@FlorianMargaine you sound like King Louis (however you spell it) the 16th
 
hello, can anyone suggest plugin for page transtitions , if each page content is in different html files? So far i found good looking solutions, but problem is that all "pages" are in one html file, seperated by divs, then divs are switching . But , i need to swtich between html files not divs... any solutions for this ?
 
@Merkley load the pages before transitioning
 
@AbhishekHingnikar let's say I'm a company named X. I offer a free side-service for people to enjoy. However, it turns out that: I don't see any gain from this, and it brings more drama to my company. What do you do? Do you keep the free side-service or do you close it?
 
@FlorianMargaine is SO main free from drama ?
 
SO main is not a side-service
 
9:47 AM
2. Is this not constructive ?
 
it is :P
imagine so without the chat.
200 comments on some answers when the OP is unable to understand stuff
 
@FlorianMargaine Hand control of it over to someone willing to handle the drama?
 
@JanDvorak more details please... can u explain concept ? For example i got main page, i chose next section in my navigation... what now?
 
If SO chat room was on GitHub, we wouldn't have any problems
Well, there's no doubt, just because of the fact that us as a community will make something that blows what we have now out of the water. Which is why SO chat room should just be on GitHub.
 
9:50 AM
@Merkley load the next page via AJAX; place the next page next to the current page; animate the position of both pages; remove the old page from DOM
 
@JanDvorak i guess, this is the time for starting to learn AJAX. :D Thanks ;)
 
@AbhishekHingnikar Waiting for @FlorianMargaine to tell you your emo is showing.
 
fuck it :P idc
he will just do what i am doing anyways
6 messages moved to Trash can
done
 
Yeah, whatever they force the bot to be, won't change the awesome community.
 
Ahh! it took me more than 5 minutes to go back to 0GMT.
 
9:57 AM
You know there's a transcript right?
 
@phenomnomnominal wait there was more drama ?
 
No, I mean you don't just have to keep clicking "load older messages"
Cause I can't see how else it could take 5 mins
 
The best thing is once we have the other chat up we can have the awesome mattmcdonald back
 
yes right that's what I did
@phenomnomnominal
 
@web2students.com at least try to contribute something of worth.
 
10:08 AM
ok
 
I thought that services were part of the Model layer. Am I wrong in thinking that? — Florian Margaine 7 secs ago
@BenjaminGruenbaum input ^
 
one sec
@FlorianMargaine you're not wrong in thinking that. There are two takes onthe subject.
People (Like the GoF) that say applications have models and people (like Fowler) that say that applications have a model layer.
 
Mongoose virtuals are pretty good !
 
10:31 AM
Unofficial JavaScript Room what is this?i mean why?what exactly it means, etc
 
jsfiddle.net/GMpZs/19 Can anyone help me out with this? Trying to dupe the checkbox (kinda' like) the way it's done on google forms, but every time I try doing so, the page reload as if it's post something to a server or something.
Wow, seems I need to learn to finish my words...
 
@FarizFakkel what you want?not getting anything
 
> onfocus="if(this.value==this.defaultValue)this.value='';"
EEEK
 
@BenjaminGruenbaum I see
room topic changed to JavaScript: THIS CHAT IS PROVIDED BY THE SO COMMUNITY "AS IS". THE CONTENTS OF THIS ROOM ARE NOT AFFILIATED WITH STACK EXCHANGE INC. IN ANY WAY. THE OPINIONS EXPRESSED HERE ARE NOT ENDORSED BY STACK OVERFLOW. BY JOINING YOU YIELD ANY WARRANTY, WRITTEN OR IMPLICIT TO YOUR SANITY. [consistency-of-suckiness] [ecmascript] [horse-grooming] [java-sucks]
 
10:40 AM
Wow, did not see that...
 
@web2students.com Unofficial Javascript Room
If you have any other questions, let me know
 
@BenjaminGruenbaum where does MVC fit in?
examples of frameworks using one or the other?
 
@web2students.com What do you mean, you're not getting anything?
@web2students.com Fiddle works right?
 
@Neil :P
@FarizFakkel i am not getting what you want. you want form should not submit on clicking on some button?
 
@web2students.com The form seems to submit, yeah. If you select "checkboxes" from the drop down screen, you see that a form can be configured for front end users fill in. When I click on the button that has selector .addcb it does dupe the div containing the checkbox, but it reloads the page.
I'm just not getting why exactly it does that. You guys might find out way quicker than I do.
@JanDvorak And I should just redo that part of the code. I hate how my co-worker just keeps copying and pasting code that is incomplete, is bad practice, or is just flippin' ugly.
 
10:49 AM
@FarizFakkel i also don't like copy and pasting but i do myself also :P
 
Well, I'm not prohibiting you from anything. Just make sure the stuff you do want to "legally steal" is valid.
Not that my stuff is perfect, you can tell by just looking at it. I've been screwing around too much.
 
Anyone good with AJAX requests and events?
 
@MagnusBurton go on
 
@JanDvorak I'm having a problem with my on click events and ajax requests. stackoverflow.com/questions/19951258/…
@JanDvorak thank you so much!
 
Well you guys have quite rapidly given up on me, haven't you? xD
 
11:01 AM
@JanDvorak wanna give me a hand
   if(!res[projectId]) res[projectId] = {};
   if(!res[projectId][memberId]) res[projectId][memberId] = {};
   if(!res[projectId][memberId][taskId]) res[projectId][memberId][taskId] = [];
Tell me how to fix the mess :)
 
= ||
 
please...................
 
= ||; not much better, though
 
what's that?
= ||
ohh
 
res[projectId] = res[ProjectId] || {};
 
11:02 AM
operand?
 
i get it
yeah
cheers
ill take a look
 
maybe you could abstract that into a function
ensurePath(res, [[projectId, {}], [memberId, {}], [taskId, []]]
 
nice
 
hi i am here again
 
function ensurePath(node, path){
  path.forEach(function(p){
    node = (node[p[0]] = node[p[0]] || p[1])
  })
  return node
}
 
11:06 AM
now i need to check to varaible in if condition
 
hello everyone
Can someone help me for the above?
 
lets var a=2, var b=2, I want to write a condtion which will check if ((a,b)==2)
is there anything like this?
or a==b==2??
please let me know the correct format
 
@Hriju a===2 && b===2
note that === is usually preferred over ==
 
@JanDvorak sweet, cheers
 
but I want to check both in one condition without using &&
 
11:10 AM
@connor.js of course, if you need high-perf, replace forEach with an old-timey loop
@Hriju nope
 
@JanDvorak kk
 
can somebody help me in this
http://stackoverflow.com/questions/19952080/updating-data-from-php-function-using-jquery-ajax
 
ok...
 
unless you want stuff like !!a * !!b
 
404 better is to use var like,var label=$("#ilabel").val(); not, label=$("#ilabel").val();
 
11:13 AM
!!> true+true
 
@JanDvorak [object WorkerErrorEvent]
 
@AndrewJackson wat?
 
$("#showform").html('<?php echo $d->fetchform() ?>'); what is this?
i think this is wrong
 
@web2students.com this everything is workign it's sending data also
 
@404NotFound
 
11:14 AM
there i am fetching data from my php function and trying to show in div
 
replace $("#showform").html('<?php echo $d->fetchform() ?>'); line to
$("#showform").html(data);
then see result @404NotFound
 
@web2students.com It's wrong like Miley Cyrus
 
it's ajax, how can php run
 
-1 for shouting. That is for all-caps and for all-bold — Jan Dvorak 12 secs ago
!!afk lunch (I hope)
 
@JanDvorak Dully noted.
 
11:17 AM
Hi how to make datetime picker read only
 
@404NotFound change as i said then see results and learn ajax from start to know more...it's tough to explain all things
 
@web2students.com i am not requesting $d-fetchform() file... so i wont get any response...
@web2students.com got solved
 
@404NotFound good but learn ajax concepts, it will solve problem for ever
 
yup sure
 
@Neil: Is that Miley v1.0 or v2.0? :-)
 
11:30 AM
@JanDvorak Idk, something to do with firefux. I'll figure it out in the morning, but it's running in Chrome now, for the meantime.
!!>true+true
 
@Shea 2
 
@vogomatix Miley v 1.43 beta
:P
 
@vogomatix Miley, the new release with all the bugs
 
@FlorianMargaine MVC in what context?
MVC is just a desing pattern... there is really no point in discussing names of things.
Just do SoC correctly and you'll be golden
 
lmao@topic
 
11:42 AM
como estas
 
11:52 AM
posted on November 13, 2013

Yesterday I tested screen.width/height and related properties in the mobile browsers. The conclusion is that screen.width/height is completely unreliable. There are two competing definitions of what screen.width/height actually means. In addition, a lot of browsers either ignore both definitions or have bugs in their implementation. Thus, when analytics packages proudly present screen resol

 
hi
@web2students.com hi
 
user365265
i'm looking for a valid htaccess rewrite rule
 
user365265
i need to redirect a page front_content.php?idcat=61&idart=142 to www.google.com/my_super_big_ass
 
user365265
RewriteCond %{QUERY_STRING} ^idcat=61&idart=142 [NC]
RewriteRule ^front_content(\.*)$ http://www.google.com/my_super_big_ass? [L,R=301]
 
user365265
this doesn't works - what is my mistake ?
 
12:01 PM
@cept0 There are none, nobody has figure the insanely complex syntax out yet
 
user365265
www.mysite.com/front_content?idcat=61&idart=142 works
 
user365265
but not with .php wtf
 
user365265
btw, the file really doesn't exist - i think, that apache shows the 404 first ? and then runs the htaccess ?
 
jsbin.com/IfOTEyEK/1/edit please look at thae code... i want id of every link when it get's pressed
 
user365265
 
12:03 PM
but i am getting id of first link only whichever link i click
 
user365265
yes, you are looking for an object with a "delete" class
 
user365265
and you have two elements, the first one is 1
 
user365265
alert doesnt show you chain messages, just one by one
 
user365265
better use console.log(123+' '+' madafacka*')
 
no i want only one id on which i click
i have around 100 anchor link and i am generating id from my db for every link... now user may click anyone of that link so when user clicks on it i want id of that particular link
 
DD.
12:06 PM
any phonegap people here?? @all
 
@cept0 i want id of link which gets clicked not all
 
@DD. o/
besides .. you haven't answered my question still which makes me really sad :-(
how on earth do you know me o_O ?
 
DD.
only through stack... :D @AbhishekHingnikar
 
now thats a relief
you scared me that day , besides what do you need help on phonegap with ?
 
@AbhishekHingnikar can you help in jquery
 
12:19 PM
@404NotFound sure can
I am in good mood :P
 
ha ha ha
in this http://jsbin.com/IfOTEyEK/2/edit i want id of clicked link
but i am getting id of first link only
 
@404NotFound i am solving this for you but i'd appreciate if you start reading the documentation :-)
 
@AbhishekHingnikar sorry please reffere this link jsbin.com/IfOTEyEK/1/edit
 
$(".delete").click(function(){
  alert($(".delete").attr('id'));
});
let me explain to you what that does
when the click happens it calls the function, inside the function you select all the elements with class delete and then call the attr function on that jQuery object which will return you id of first such element
Now javascript is a very amazing language.
 
DD.
12:23 PM
i'm able to get facebook friends birthday list... so now i need set reminder for this... @AbhishekHingnikar
 
got i should give alert($("this").attr('id'));
 
in javascript every event listener ( or function called when somebody is clicked etc ) is passed with the this pointer set to that element which got clicked
@DD. add me on fb ? jk jk
@404NotFound no
definitely not
 
DD.
ur id jk jk ??
 
"this" will select the element this
 
but it's working i tested it
 
12:24 PM
@404NotFound idk why its working but here is a better way
$(".delete").click(function(){
  alert(this.id);
});
or if you prefer the jQuery flavour
$(".delete").click(function(){
  alert($(this).attr('id')); // See no quotes on this ?
});
Thats why i said please spend almost 1 day reading the jQuery manual it will solve all these questions for you :-)
 
quotes was writing mistake here
 
@DD. can't add me on friends ?
@404NotFound cool :-) but you got my point right ?
you don't need jQuery for simple stuff like getting ids :D
 
yup i was reading .attr documentation then i wrote this code
nop i am using this id for making ajax request to my other file
 
DD.
is that id valid jk jk ??
 
@AbhishekHingnikar great thanks buddy
 
12:27 PM
no problem
@DD. it should be
 
DD.
hm ok... tonight will add
 
though i have strict filtering enabled for friends :P .. send me yours or message me
i will add you
besides if you want to build a notification app to get your friends birthdays from facebook
it should be rather simple using facebook api
just get list of your friends and then parse that data to get the stuff
 
DD.
i have parsed the fb friends lists...
ul unfriend me after seeing my fb profile pic :D @AbhishekHingnikar
 
@DD. i am not deterministic :P
@DD. and lol i just add everybody in this room who are common :P or frequent (:
 
DD.
but stuck with setting the reminder for birthday list...
 
12:32 PM
Using phonegap ?
 
DD.
yup
 
btw most phone's do have that feature inbuilt in the contact app if you synchronize the contacts list
 
DD.
but how it is related to fb ??
 
Your facebook app does that itself :P
basically you have to synchronise your contacts with facebook , and your contacts app will have inbuilt notification
afaik current phone gap doesn't has anything that hooks with Apple iOS Calender App nor Android Calender
you will have to write something in Java for Android which abstracts the Java API and opens it up in javascript
// dear god i am in such a good mood today
 
DD.
good to see u in gud mood :) thanks to god :)
can i do in this way devgirl.org/2013/07/17/… ??
 
12:37 PM
@AbhishekHingnikar yoooo bhai!! :)
Java is really soooo baddd
2
:(
 
great realization thumbs up
 
DD.
this is calendar app plugin, can i hook this to fb list ? @AbhishekHingnikar
 
but guess what .. its shameful for Java it came AFTER PYTHON , and C++ and still is way horrible then them :-)
@DD. Yes :P
basically the pseudo code will be like
 
@DD. are u Dave D. ??
 
DD.
thanks :) @AbhishekHingnikar
no :) @JuzzCoding
 
12:40 PM
hmmm
what does that star means???
:\
 
var friends = fg.getFacebookList();

function addBirthdayNotification(person){
     CalanderAppPlugin.registerEvent({ date:person.dob.dd,
                                             month:person.dob.month,
                                             time:preferences.time_to_notify_the_user
                                             recurring:true,
                                             repeat:'yearly',
                                             type:'notification',
                                             message:'Birthday of '+ person.firstName
@DD. ^ something liek that should it be
and now that i have helped people i must go back and help my own app
and then design some sexy incredible chat later
 
DD.
thank u :) will work on it@AbhishekHingnikar
 
@JanDvorak good evening/morning
 
@AbhishekHingnikar hello
 
I hope we have a relatively better day here :-)
 
12:52 PM
It seems for me it's evening , I won't mind to say good morning though ^_^ @JanDvorak Good Noon :)
 
@TheLittleNaruto it's noon here, by the way
 
13:53, to be exact
I've just come from a lunch
 
here it is off time.
18.24Hours
 
12:54 PM
@404NotFound hi , i was not at my desk at that time
 
@TheLittleNaruto ah, a half-zone. That's pretty rare.
 
@JanDvorak Where you're BTW ? (Country)
 
czech republic o-O?
 
yyep
 
12:57 PM
Wow! I love the continent Europe. Specially the accent
 
what accent? There are lot of countries here
 
Ah! I heard in many movies. Though I am not aware of different accents.
 
is that the russian accent that you like?
 
Russia comes in Europe ?
 
mostly
 

« first day (1124 days earlier)      last day (3810 days later) »