« first day (1641 days earlier)      last day (3293 days later) » 

7:06 AM
Is Rikudo the only person here that signed up for the elections?
 
Nope
 
Oh, who else? I think Unihedro is sometimes here as well, but he's not really a regular, is he?
 
A (now less) regular who didn't make it to the primaries. I'd rather not say their name, lest they feel compelled to appear here more often.
 
Does his name start with a 'Z'?
 
THE
7:17 AM
please tell me
 
THE
.list {
display:none;
position:absolute;
right:0;
background-color:blue;
width:300px;
height:300px;
}

how can i add a button to this using positions
but I don't want to provide positions myself
I want to calculate them
 
mornings
 
THE
with right:0 why I get left, bottom, top as auto using jQuery ???
 
THE
7:28 AM
hahahahha
comn guys, its positions
can i add to offset of an element before setting it ?
I am getting offset of an elment let say top:4444px ; right: 4728px
can i add further to this
var offset = p.offset();
p.html( "left: " + offset.left + ", top: " + offset.top );
found it
 
8:09 AM
@RahulDesai Looks like that old Age of Empires game with everyone knocking the castle.
 
@RahulDesai Hahaha that's hilarious
 
8:22 AM
@THE I have no idea what you're trying to achieve
 
8:36 AM
I wish NamingStuff-101 was a course I had taken at school
 
8:47 AM
anyone here use soundcloud? mind testing my new app (still in beta!) mixmatic.io
 
9:09 AM
@ivarni Naming_Stuff-101, you mean?
:P
 
@PhilHudson Play functionality is broken. 0/10, would not visit again
 
what is broken with it?
 
I press the Play button, and no music is happening
 
click the share button so i can get the track your testing please?
the chain button
 
Already closed the page, but I think it was Dada Life September 2013 mix
 
9:16 AM
hmm i think there was an issue with that one mix - never seen that before, will look into it - but thanks
ah yeah, they deleted the mix - i need to handle that better
 
Also 2 UI remarks:
1. When clicking next, the current mix still keeps playing, but you first have to press "pause" on the next mix, before the play button becomes enabled
 
yupp that needs fixing too :) working on that
 
2. When you click on "now playing", you go to a mix page's details, where you have a button "find more mixes"
but this one always takes you back to 'Trance', the default category
 
ah yes thanks for that, couple of those we are actively working on - glad you found a bug on the single mix page for track 404s, :D
 
@PhilHudson The spacebar should let me play/pause
 
9:20 AM
got that as a feature we are working on too :D
thanks for testing guys, really useful
 
Btw, what does it use my soundcloud account for?
Does it store music preferences or something? Because there's no way to like/dislike a mix afaict
 
liking tracks
yeah the heart can like or dislike
 
Hi, anyone here is a jqgrid expert ?
 
link "jqgrid", define "expert", "here"
 
:D
right
well
i have a question, i am trying to understand client side data treatment vs server side
i want to know what params define each operation ?
 
9:27 AM
Never trust the client data to have passed through your javascript
 
unfortunately i need to be working with both
 
@Joseph You can and should work with both, just treat everything that's accessible on the client-side as public, and everything that gets passed to the server from the client as potentially dangerous. Validation on the client side should only be used to improve UX, never as the last (or only) line of defense.
@SecondRikudo What's the deal with confirming edits? I kinda feel like it's a bit cheap to accept some of these edits that aren't doing anything except capitalizing the first word in the first sentence, or correcting one typo, but leaving the rest of the obvious mistakes unchanged...
 
@monners ok thanks for the advice
@monners in fact , i have on technical question , how does the jqgrid library tell, lets say when clicking on the next page arrow, that it needs to search for data locally in case of a client side or that it needs to reload every thing after a server call ?
what's the determining parameter if you will
 
9:57 AM
what is the utility of github.com/IgorMinar/foodme/blob/master/app/js/directives/… , If i delete it doesn't affect anything
 
hi
I have two json with same attribute can any one tell me how to check that if any of the attribute is differen
?
 
@Vikas Compare them as string. If there are any different then they will be different.
 
@Sheepy you can have different strings representing the same object
 
@argentum47 seems to just be setting the checked attribute for some checkboxes, I suppose it wouldn't do much if you're not providing any values to it, e.g. the default behaviour might be the same as not having it there at all but you might loose functionality that you're not currently using if you remove it. Hard to tell without looking at a bigger chunk of the app
 
yeah let me try in that way i have unique id's I'll sort them with the id and then can check the difference
for the other attribute I want to know
 
10:02 AM
@JanDvorak Yes. I did assume that they were generated the same way.
 
@ivarni ok. i see. let me check the buying of food and etc. but could you pls explain the part "it wouldn't do much if you're not providing any values to it"
 
@Sheepy even changing the environment version can change the iteration order of hash entries
 
@argentum47 var values = ngModel.$modelValue || [];, if values ends up being [] then the entire block does literally nothing
 
false. It still has changed values
 
except wasting CPU cycles
 
10:05 AM
@JanDvorak Oh oh oh, yes I want to know that. What environment version?
 
@JanDvorak yeah, but I don't see any external effects
 
@Sheepy perhaps any two versions of Java
 
@JanDvorak Uh, anything more specific?
 
both HashMap and HashSet, I believe
 
gulp.task('test', function test() {
    return gulp.src('tests/**/*.js')
        .pipe(babel())
        .pipe(mocha());
});
Y u no worky :(
 
10:08 AM
@JanDvorak Correct
 
Doesn't seem to be transpiling, since I'm getting
Message:
    Unexpected reserved word
 
@BenFortune perhaps you meant to not call babel and mocha?
 
@JanDvorak I see your point. No, you don't need to change version for it to change in that case. Any operation that triggers bucket redistribution may result in different iteration order.
 
@JanDvorak Tests are in ES6, using gulp-babel and gulp-mocha
Full gulpfile is
var gulp = require('gulp'),
    babel = require('gulp-babel'),
    mocha = require('gulp-mocha');

function build() {
    return gulp.src('src/**/*.js')
        .pipe(babel())
        .pipe(gulp.dest('bot'));
}

function test() {
    return gulp.src('tests/**/*.js')
        .pipe(babel())
        .pipe(mocha());
}

gulp.task('default', function() {
    return build() && test();
});

gulp.task('build', build);
gulp.task('test', test);
Building works, but piping the tests doesn't
Do I need to build them into files first?
 
@ivarni for this part github.com/IgorMinar/foodme/blob/master/app/js/directives/… , they doing scope.$apply persists the values in values variable ?
how is the value persisting
oh sorry
nvm
 
10:23 AM
@monners If you feel it improves the post, accept, if you don't, reject
It's your post, you have a unilateral vote confirming edits on it.
 
Yes but you get a race condition of you use it in a self calling function. — Michael Dibbets 2 mins ago
wth does this guy want?
Nope. not gonna work because the function is not defined yet and registered in the global context. There is still that last bracket to parse and the setTimeout races it. — Michael Dibbets 20 mins ago
-_-
 
O_O
 
wat
 
o_O
 
(╯°□°)╯︵ ┻━┻)
 
10:32 AM
:D
 
BEN !
turn back the table
 
(╯°□°)╯︵ sʇǝqqᴉp lǝɐɥɔᴉW
 
┬──┬ ¯_(ツ)
hah the \ char doesn't work here
 
@KarelG It does, twice
┬──┬ ¯\\_(ツ)
 
not what i want to achieve. but oh well
good luck for ya on SO mod elections :)
 
10:41 AM
@SecondRikudo No, I meant in the review queue
 
@monners Ah, yes, there is a "too trivial" decline reason, IIRC.,
 
@SecondRikudo pretty sure that option is gone
 
> * no improvement whatsoever
This edit does not make the post even a little bit easier to read, easier to find, more accurate or more accessible. Changes are either completely superfluous or actively harm readability.
 
oh is it back?
 
if something like this is done
 var i = 1
  , j = 2;

does it not mean var i = 1; j = 2 ? . if not why ?
 
10:47 AM
the second one only declares i, the first one declares both
 
hey everyone
 
but in the first line after var i = 1 there is a new line, so why doesn't the compiler put a ; ?
 
how´s life?
 
@argentum47 the starting comma prevents a semicolon there
 
THE
10:51 AM
which preserveAspectRatio and viewbox values should I use to make my svg stretch to its full
 
i´m trying to disable the mouseover event on a google maps marker but it´s not working, i just want the event click, can anyone help me with this?:
 
THE
raise your hands if you know it
 
function infoBox(map, marker, data)
         {
          var infoWindow = new google.maps.InfoWindow();
          // Attaching a click event to the current marker
          google.maps.event.addListener(marker, "click", function(e)
          {
              infoWindow.setContent(data.content);
              infoWindow.open(map, marker);
          });

           google.maps.event.addListener(marker, 'mouseover', function(e)
          {
		  	  infoWindow.close();
    	  });
         }
i don´t want the mouseover the marker to show anything...just when you click on the marker
anyone?
 
Anyway I can dynamically create objects in javascript? Is it possible?
For example, I have an array with usernames. I want to dynamically create objects to add properties. like username.age = xx and so on
Or is there a better way to do this
 
are you looking for user[key]?
 
10:55 AM
you need an context or predefined object to do that. You also need to use the such called bracket notation for that dynamic
var users = Object.create( null );

...

users[ username ].age = xx;
 
why not var users={}?
 
@JanDvorak Because that would set the new object's constructor as well, which ya probably don't want to do unless you intend on using it. Object.create(null) avoids unintentional prototypal linkage.
Or something...
 
THE
@jAndy ever worked with d3.js ?
 
not at all
 
THE
my bad
how about svg :)
 
11:02 AM
ok...
when creating the marker
don´t set the title
that´s it
 
THE
anyone who is good with understanding bad text -
 
@THE Irony!
 
THE
 
@jAndy basically I have object names in an array. I need an object for each name in that array.
 
THE
it doesn't tells what to use to fit svg
 
THE
says nothing about how to fit my svg thing into the parent div
 
Bonus points: Ai is bad at respecting viewbox if you edit a vector's canvas or size. If you need the viewbox to be maintained, copy your vector, create a new Ai file with the correct dimensions, paste your vector, then save it as a SVG. Yes, I learnt this the hard way. You're welcome
 
var names = [ "Harry", "Jim", "Joe", "Jacko" ];

names.map(function( name ) {
  var obj = Object.create( null );

  obj[ name ] = { };
  obj[ name ].age = ~~(Math.random() * 99);
  return obj;
});
 
@THE Do what I said above, then just set the height and width to 100%
 
THE
@monners they are already though
 
11:09 AM
@doodla might look like something above
 
Fiddle?
 
THE
should i remove presenceAspectRatio and viewbox then
 
@jAndy That looks good. Thanks man.
@jAndy I'll try that and let you know if it worked for me.
 
@monners sounds easier to just fix the viewbox manually in a text editor :)
but then, I have a Java background so I have XML editing at ninja level
 
11:11 AM
@ivarni You'd think that, but if the coordinates are already borked because they're relative to a funky viewbox value then you'll need to change Every. Single. Coordinate.
 
THE
@monners its not stretching to full though
see the main content is resizing but svg stays on window resize
i want it to stretch as well you know
its not stretching
 
@THE Any particular reason you're doing this with SVG rather than normal DOM?
 
Ah, looks like the internal coordinates are being set relative to the load width/height. Hmmm, not sure how to overcome that.
 
THE
@SecondRikudo I wanted to learn svg :)
 
This is basically a <table>
@THE Fair enough.
 
THE
11:16 AM
also initial requirements were to add zooming to it + other animations but going to leave that for future
is there any preserveAspectRatio for full stretch as you can see in this picture
so the first one on the top left, its stretched to parent
how can i do same using preserveAspectRa....
 
What would you do if you caught your significant other secretly playing The Sims?
 
@monners I'd just be happy I had a significant other.
4
 
@KendallFrey haha
 
^^ That.
 
^^^ That.
 
11:29 AM
Well it's too late now. The body's already in the freezer.
 
Mmm, I love turkey
 
THE
only if anyone had loved JS would had helped me solve the svg issue
 
>:-(
 
@SomeKittens ^
 
THE
11:42 AM
why no one is interested in SVG ?
 
@THE because canvas is better
 
@KendallFrey sigh
 
@monners hi
 
!!afk Dreaming of SVG zombies
 
quora.com/… @SomeGuy @darkyen00 #ithappensonlyinindia
 
11:48 AM
SVG is shit
 
@ShahabQureshi 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.
 
that is why no one interested
use Raphaël JavaScript
 
>:-(
 
What happend @JanDvorak
 
):-<
 
11:52 AM
Why is @SecondRikudo and @Unihedro not in top :(
 
THE
@KendallFrey :|
 
@AwalGarg I haz low rep
Not everyone on Stack Overflow knows me. A lot of blind voters downvote purely due to my low reputation value.
 
@Unihedro Start rep whoring™.
 
Guys, I have about 500 commits (out of 550 or so) I want to squash together to one commit with a rebase
 
@AwalGarg I knowz
 
THE
11:53 AM
!! google svg vs canvas
 
THE
there is a huge difference between too....
 
@SecondRikudo is kinda on the top (btw, congrats)
 
@Unihedro Then do it ©.
 
@AwalGarg i'm coding
 
11:55 AM
@Unihedro Stop it ®.
 
You know how annoying it is to build something in Java.
 
@Unihedro i'll vote for you next election too! I'm a bit dissapointed now on those blind dv's
 
@AwalGarg Nananana, we use Ubuntu!
 
7 "classes" in and I'm not even sure how much of this achieves anything.
 
@SomeGuy Yes, some stabbing is due :P
 
11:55 AM
:D
 
Who the hell is Marjin Peters?
 
check his answers, he's a good guy
no wonder there
 
Yeah, he's awesome
 
~7k votes wtf :/
 
@AwalGarg An awesome participant. Massive and positive participation around SO, MSO and MSE.
 
11:58 AM
46k in python? :O upvotes
 
So I have an array of objects like this : i.imgur.com/iA7miN7.png
 
I now remember seeing him in the Python room, I guess.
 
What do I do to find out if a specific object name exists in the array? I don't want to check if the values match, or not.
 
It's never a good sign when code/data is presented through an image
 
12:00 PM
@doodla I have no idea what that represents.
 
@Unihedro its an array. of objects.
pretty much
debug mode in webstorm
 
@doodla You just said that in your own message above.
 
474
Q: Why is this program erroneously rejected by three C++ compilers?

James McNellisI am having some difficulty compiling a C++ program that I've written. This program is very simple and, to the best of my knowledge, conforms to all the rules set forth in the C++ Standard. I've read over the entirety of ISO/IEC 14882:2003 twice to be sure. The program is as follows: Here i...

 
:D
 
12:04 PM
75
A: Why is this program erroneously rejected by three C++ compilers?

JerryThis program is valid -- I can find no errors. My guess is you have a virus on your machine. It would be best if you reformat your drive, and reinstall the operating system. Let us know how that works out, or if you need help with the reinstall. I hate viruses.

I love this thread, xD
 
Good morning Java Scripters
 
\o
 
Morning @rlemon
Taverners had to kill your bot because it had a similar pattern to smokey's.
 
scroll.in/article/715918/… scroll.in/article/716595/… @SomeGuy @darkyen00 // not sure how I feel about these articles :/
 
@AwalGarg I've never seen anything about this until just now
 
12:15 PM
me neither. unsure which one has merit/is more truthful
this quora thing isn't as bad actually..
 
!!info
 
i.stack.imgur.com/pu0B6.png ... // post was about "being successfull or something"
 
@rlemon I awoke on Mon, 13 Apr 2015 19:38:53 GMT (that's about 16 hours ago), got invoked 24 times, learned 312 commands
 
@AwalGarg In my opinion, anyone who thinks that investing in science is a waste of money is an ignorant idiot.
 
@SecondRikudo Umm... that's not what he is saying.
 
12:20 PM
@rlemon In case you're interested oyc.yale.edu/physics/phys-200
I'm taking that to complement what we learn at college
 
nice
 
You going to take it?
 
twhs
 
Hahaha
 
@Unihedro @JanDvorak @jAndy
 
12:24 PM
oooh I love multipings
 
If you look in the console, 16 objects but some with the same name. Want a way to append to the objects, if possible
i mean if they have the same name
 
can't do that. object keys must be unique
(es5)
 
@AwalGarg What are 'lakh' and 'crore'? I thought you guys paid with roopees?
 
var json = JSON.stringify(vCard);
var json = $.parseJSON(json);
0
Q: Unable to return value from inside a function

HavihaviThis function is not letting me to pass data outside the function. It returns the correct data, but whenever i try to add it to an array or similar outside the function, it will not return anything. I am aware of some redundant json parse's and stringifies, but please ignore that. Ive tried set...

O.o
 
@rlemon Getting rid of whitespace, maybe
no wait, that's the other way around
 
12:27 PM
i might not be expressing myself clearly. Basically, I want to check if an object by the name exists ( ex, SRanganath ) and if it does, I want to add new keys to that object instead of creating another object with the same name
@JanDvorak
 
if( name in obj ) {
  obj[name].doSomething()
} else {
  obj[name] = somethingElse();
}
 
... and I especially love empty pings
 
forgot to add your name in my message. so...
:)
 
He got your attention though, so it worked
 
i'm a confused guy
:/
Fuck it. I'll just ask the problem. I may be going at it all wrong.
 
12:31 PM
Probably
 
Have this JSON( justpaste.it/kivu ) and need to format it into this table ( i.imgur.com/tg2R1eE.png ). I'm not sure how to get the data by username
been trying to group all the data by username objects. hasn't worked out so far
 
hi, anyone familiar with angularjs
 
!!welcome Lukas
 
@Lukas 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.
 
@Kippie 1 lakh = 100 thousand rs, 1 cr = 100 lakh rs.
 
12:40 PM
Why do people insist on answering duplicates...
 
@BenFortune Because of the sweet rep, man
 
High rep people at that.
 
how can the directives inside of a template for a directive be compiled first (in angular)?
for example, having a template like this:
<div class="file">
<lf-text-field disabled model="">
</lf-text-field><lf-button text="Browse" action=""></lf-button>
</div>
so the template refers to other directives
I need the lf-text-field and lf-button directives to be compiled and linked BEFORE linking the parent directive
 
@doodla did you look at my example?
 
@rlemon I hadn't.
 
12:43 PM
14 mins ago, by rlemon
if( name in obj ) {
  obj[name].doSomething()
} else {
  obj[name] = somethingElse();
}
 
I don't understand it.
What's going on?
 
var data = /* your json object */
var organizedData = {}; // new object for organized data
for (var i = 0; i < data.GetStatusReportResult.length; i++) { // loop over people
    var item = data.GetStatusReportResult[i]; // just makes things easier to write
    if (item.CreatedBy in organizedData) { // check if the key exists in the new object
        organizedData[item.CreatedBy].push(item); // if it does, add to its value (which is an array)
    } else {
        organizedData[item.CreatedBy] = [item]; // if not, create it
 
@Lukas It's been a while, but you might try setting priority (docs.angularjs.org/api/ng/service$compile)
Can't remember if it works for nesting or just multiple directives on same element
 
guys, can you think of a good reason why EVAL is evil in Javascript? (clientside)
 
@rlemon Holy... Something new everyday.
let me try and get my head around what's going on.
 
12:45 PM
@CSᵠ because it runs arbitrary code
 
I mean.. everybody knows EVAL is evil (tm), but does that apply to client size JS ?
@ivarni you can push all kinds of arbitrary js in the 1st place...
i'm really thinking about this for the last couple days, does not make sense...
 
@CSᵠ so you don't add XSS protectiong to your apps either?
 
can lead to injection type attacks
hard to debug
also causes your code to introduce a level of complexity most developers in JS wouldn't be used too
 
264
Q: Why is using the JavaScript eval function a bad idea?

Brian SinghThe eval function is a powerful and easy way to dynamically generate code, so what are the caveats?

 
eval makes me think. I don't like code that makes me think
 
12:47 PM
pretty sure it's quite slow as well, while we're piling on
 
@ivarni false
2015 bub
we've gotten better ;)
 
Oh well, I can't be right all the time :)
 
guys, I'm not sure how infinite scroll works on ionic... I can get it to work on a plain page completely fine though.
 
Don't suppose anyone has an idea about
3 hours ago, by Ben Fortune
var gulp = require('gulp'),
    babel = require('gulp-babel'),
    mocha = require('gulp-mocha');

function build() {
    return gulp.src('src/**/*.js')
        .pipe(babel())
        .pipe(gulp.dest('bot'));
}

function test() {
    return gulp.src('tests/**/*.js')
        .pipe(babel())
        .pipe(mocha());
}

gulp.task('default', function() {
    return build() && test();
});

gulp.task('build', build);
gulp.task('test', test);
 
Would anyone here know how I could convert a collada file in inches to metric? You'd be a lifesaver.
 
12:55 PM
Can't pipe the tests from babel to mocha
 
var $el = $('#scroll-div');
$(document).on('scroll', function(ev) {
    var offset = $(document).scrollTop() + $(window).innerHeight() + $el.offset().top;
    if(offset > $el.height()) {
        alert('loading more results...');
    }
});
works for the plain DOM but can't get it to work for an ionic scroll region...
 

« first day (1641 days earlier)      last day (3293 days later) »