« first day (1867 days earlier)      last day (3067 days later) » 

12:05 AM
@rlemon that's why I only do projects for hours billed. I'll give an estimate, but things change and estimates change.
 
@copy, @FlorianMargaine I want to read more on how X handles event sources like keyboards and mice. Stuff like how symbol files are parsed, how they're matched against, the X keyboard extensions protocols, etc. Do you know of any good resources? I'm feeding from scrap man pages and random articles.
 
Anyone knows about Stormpath? when creating an app, how do i get the api secret key?
 
@Codeman exactly, but it is always important to also not gouge as the freelancer.
 
@Zirak i'm imagining that
 
@rlemon agreed, but I also understand my worth.
I charge at least $105/hr for things I'm experienced in, typically
 
12:09 AM
ohh yea, wasn't saying anything like that.
just making the point to towc
 
yeah :)
 
100$ per hour. That's 4000 per week with my shift times
 
freelance is much different than salary work
 
i earn 10k per month
but the gov roams it to 5k after taxes ;_;
 
move?
 
12:11 AM
I charge about 70% higher than my hourly rates for freelance stuff
@KarelG doesn't Belgium have like... free college and healthcare and a good social net and such?
 
yes, belgium does
 
I'd rather pay higher taxes and have all that
personally
 
still, at me, 50% gets removed. But stock traders, rich people(with a lot renting properties) gets -30%
 
@Zirak I'd check the code
 
and large companies ~0%
<_<
if they ask them 1%, then my 50% would be reduces to ... let say 40%
 
12:13 AM
I don't get free education, but most other things. 50% of my wages are gone after spending due to taxes, but you're also not taxed on income that low.. nor would you make income that low.
but free education would be sweet.
 
I mean, I graduated with only $45k in debt and I was pretty lucky
plenty of people graduating with over $100k in debt
 
the famous 'murica
 
@KarelG desert eagle is not that difficult to shoot
it's only a .44 magnum
 
I'm paying 600€ per year for university
 
it's not about the weapon. i see an american, with red shirt, 2 guns and shooting the whole clip out
 
12:21 AM
@copy I paid ~$15k just for tuition for university per year
 
In my gulp file I get a bunch of css files via gulp.src(['main.css', '*.css']) which I then concat into one file and finally get the hash of the single file contents which I using for caching. I assume that because of *.css the css files may load in any order they please and so based on chance the hash might change even if none of the files change? Is there a way around this while keeping main.css at the top?
 
that's freedom for him
 
here, you won't see that. You may only use guns in determined areas (shooting range / hunting fields -
 
$5,651 + $392.18 for each credit hour over 15
 
12:22 AM
O_O
my subscription price was not even that amount ... 900 EUR
 
if you're not a resident... $14,400 + $997.30 for each credit hour over 15
keep in mind this is a cheap state school
 
then i have to buy books/ other materials myself. that's all
 
yup. still hate your high taxes? lol
 
yearly ~1000 - 1500
 
I pay $120/mo for internet, so $1440 a year for my education.
 
12:23 AM
yeah this is up to $30k/year in tuition. and this is for a very cheap public university
 
i studied at the best university of belgium
 
Ivy League you're looking at $60k or more per year
 
KU Leuven
Are you not afraid for possible lost of talents ?
 
I don't think I would study if I had to pay $20k or more for it
 
@KarelG in the US student loans are a standard thing (Canada as well)
 
-3
Q: Use Node.js as Shell

WilliamHow might I set up node.js as a shell replacement for bash? Is this even possible?

 
So GRID Autosport assigned me "Jan Dvorak" as my teammate for the last event. I shit you not.
 
12:50 AM
 
1:22 AM
@Zirak Looks like the failures are unrelated :-)
 
1:55 AM
Should I put a navbar in a directive (AngularJS)?
 
2:13 AM
@Zirak IE11 works on it as well
heh win 7 was crazy IE8-IE11 (I'm pretty sure anyway.. unless it was Win 8 for IE11)
yeah IE11 is possible on Win 7, I forget since I downgraded to 9 at work so I could test things, but I'm hoping this announcement is a big push to gtfo older vs of IE
@joshhunt when I need a specific order I set it up in a config usually
instead of passing in *, pass in an array of the files if order is important
 
yeah I ended up finding gulp-sort which lets me use a customer comparator
 
ah nice
 
can you check the css room for me? I have a question (js) in there that you might know the answer too
or just look at this: jsfiddle.net/nae0ozLu
 
^ @rlemon is a master of sort
 
cool thanks, I'll wait for him. It just seems very verbose
 
2:21 AM
if (a === 1000 || a === 10) {
    return -1;
} else if (b === 1000 || b === 10) {
    return 1;
}
I mean you can shorten it up a tad with that
but I bet someone knows of a better way overall
 
2:35 AM
@Loktar I think this slightly changes the logic? 1000 and 10 are considered equal rather than 1000 being always in front of 10?
 
good point
I just looked at the output and called it good lol
and it was wrong hah
 
:P
 
2:52 AM
Microsoft is pushing hard for Win 10. I almost have another pad downloaded it this morning... I see no way now a causal user can avoid upgrading.
To a system that is reported to uninstall your anti-virus as part of auto update.
 
3:05 AM
@Sheepy there is reason why you need to remove antivirus before UPgrading windows OS
it is because otherwise it can mess it harder
within months windows 10 will be a regular update anyway
 
3:25 AM
No. Not upgrade. Update. After you already have Win 10.
http://tech.slashdot.org/story/15/11/25/049259/windows-10-fall-update-uninstalls-desktop-software-without-informing-users
 
3:46 AM
I've got a route that sends a json, I make the request from Angular (using $http), how could I make the request synchronus? I need it because it loads the static content (Mostly text) of the application
Right now I have:

$http.get( '/api/v1/content' )
            .success( function ( data ) {
                $rootScope.static_content = data;
            } )
            .error( function ( data, status ) {
                console.log( 'Initialization Error: could not load content.json', data, status);
            } );
server side endpoint:
app.get( '/api/v1/content', function ( require, response ) {

    response.setHeader( 'Content-Type', 'application/json' );
    readJSONFile( './client/content.json', function ( err, json ) {
        if ( err ) {
            throw err;
        }
        return response.json( json );
    } );

} );

function readJSONFile( filename, callback ) {
    require( "fs" ).readFile( filename, function ( err, data ) {
        if ( err ) {
            callback( err );
            return;
        }
        try {
 
Ah. :)
 
4:59 AM
Ah, no grunt or gulp, just use npm...
But I still love grunt...
 
Hi can any one help me? i am getting problem in FF
to get scrollTo
scrollTo not working in Firefox
 
5:16 AM
@Mr_vasu Use scroll.
 
5:28 AM
Hi!! can any one tell me how to send dropdown selected value from ajax to spring...
 
@Heena 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:52 AM
@Heena what did you try?
 
1 message moved to Trash can
@Heena Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
ok sorry
 
fiddle plz
or at least google...
 
<td><select id="designation"  name="designation" path="designation"  onchange="doAjaxPost()" >
				<option value="Admin">Admin</option>
				<option value="Agent">Agent</option>
				<option value="QA">QA</option>
				<option value="TeamLeader">TeamLeader</option>
				<option value="QAadmin">QA Admin</option>
			</select></td>
 
@sheepy
here is my code: function runscroll(){
            scrollTo(document.body, 10, 600);
        }
        var scrollMe;
        scrollMe = document.querySelector("#scrollMe");
        scrollMe.addEventListener('click',runscroll,false)
        window.onscroll = function(){
            if(window.pageYOffset>80){
                scrollMe.style.opacity = "1";
            }
            else{
                scrollMe.style.opacity = "0";
            }

        };
            function scrollTo(element,to,duration){
when i runt that code in FF, it now excuting @Sheepy
 
5:57 AM
@Heena wheres the code for doAjaxPost()?
 
this the dropdown and i have field by name reporting person...when i select dropdown same value to be displayed.
 
1 message moved to Trash can
@Heena Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
i am new to ajax so it may not be perfect
function doAjaxPost()
		{
		var datavalue = document.getElementById('designation').value;
		alert(datavalue);
		$.ajax({
			type:"POST",
			contentType:'application/json; charset=utf-8',
		      dataType : 'json',
		      url: "/login",
		      data: JSON.stringify(datavalue), // Note it is important
		      success: function(response){
		    	    // we have the response
		    	    $('#reportingPerson').html(response);
		  	    	  	    },
		    	    error: function(e){

		    	    }
		      });
 
here i am using spring mvc and database also
 
6:34 AM
Hello everyone.
 
@neet_jn 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.
 
Anyone here have any experience with firebase/angularfire?
I'm attempting to query the latest announcement in a collection, and simply display that object's properties in my view.
I know of firebase, but I have little to no experience with queries.
I know how to logically bind controller/scope data into my view, more specifically speaking I just need help on the angularfire portion.
Getting the latest announcement from my collection.
I'm assuming I would use a filter like so,
$firebaseArray( ref.limitToLast(1) )
In which case, how do I extract data from that one element in the returned array.
var x = $firebaseArray( ref.limitToLast(1) );
// x[0] == null
Why?
I guess I could use an ngRepeat, but I feel as if that would be inefficient.
 
6:56 AM
Is it okay to have code structure like this
$(function(){

    var myfunct = function(){


            $('#date1').datetimepicker({
                format: 'YYYY-MM-DD'
            });

            $('#date2').datetimepicker({
                format: 'YYYY-MM-DD'
            });

            $('#date3').datetimepicker({
                format: 'YYYY-MM-DD'
            });
    };



    myfunct();

});
 
There's absolutely nothing wrong with that.
 
@jemz are you familiar with classes?
@neet_jn that's not true
 
@jemz if thats all there is to the code, I find that redundant
 
You could classify utils into namespaced objects, but all else considering, it is valid.
 
7:05 AM
$(function () {
    var DATE_FORMAT = 'YYYY-MM-DD';
    $('.date').datetimepicker({
        format: DATE_FORMAT
    });
});
 
assuming you can change the HTML
if you can't, swap the class selector for $('#date1, #date2, #date3')...
 
Can one not do $('#date1,#date2,#date3') in jquery? It's been a while since I used it
 
yep, you can
 
Yeah I like phenom's style, tho I was going to offer
$('#date1 #date2 #date3').datetimepicker({
                format: 'YYYY-MM-DD'
            });
oh.
simply because date time format has great potential to change
 
7:09 AM
I have a hard time coming up with a scenario where I'd need 3 different date formats on the same page
 
Not on same page / request, but re: globalisation
 
When they change, you refactor. Don't aim to write code which will work for eternity, aim to write code which you can understand and maintain for eternity.
 
rather code should echo what your intentions are...that being said, you are only initializing datepickers...why wrap it in a function and call that...

do just that part...initialize datepickers...
or datetimepickers...
 
@ivarni I'm with you
I can maybe think of 2, (start date and end date)
but 3?!
 
Anyone here use ConciseCSS before?
room dies whenever I ask a question
 
7:22 AM
@Mr_vasu Ah. There, you declared a function "scrollTo" that overrides the default scrollTo. Good luck debugging it.
 
@neet_jn No. I didn't answer because I just got into work
 
Was just joking around lol, no worries.
Was a trivial question regardless.
Thanks for the consideration though.
 
no, no sweat off my balls
 
Judging by github.com/ConciseCSS/concise.css it's not exactly immensely popular :p
 
Initial commit was 2 months ago, give'em a break :P
 
7:26 AM
nuh uh :p
 
@rism One ISO for <time>'s datetime attribute. One long form for data listing. One short form for some current status. This is a site I am working on right now.
 
user3119231
7:36 AM
sup ladies and gentleman
 
#pandas
Working on my first full scale Angular based web app.
Keeping it nice, simple, and clean. My only concern is responsive designing.
 
@Sheepy Nice. I was endorsing @phenomnomnominal's style to avoid repetition but if you have an actual need for varying formats within a page then obviously that breaks down.
 
user3119231
@neet_jn You wrote "heaven" in the title wrong - You wrote "haven" -> neetgroup.net
 
meant to be haven
It's an inside joke.
In any case, that's just a placeholder.
 
user3119231
never ever mind
 
7:41 AM
Trying to rough up a base design I can work with.
 
user3119231
user image
3
 
LOL
 
user3119231
made my day! :D
 
wish there was a follow up of it in a dumpster
 
user3119231
grandpa is sitting like: oh, let me clean my desktop ... My Computer huh? Let me fix this
 
7:45 AM
So why does the monitor disappear when he deletes the computer?
 
That's windows 95. He's probably dead now.
 
Well gais. Time to call it a night, 2:46AM and I have to be up by 6 lelel
Nice chat fellas, I'll definitely be partaking here again :)
 
user3119231
It is a unspoken rule that if you delete your "My Computer" symbol, your pc disappears in dark matter.
 
user3119231
@towc Hey Matei Copot
 
hey
 
7:50 AM
@ivarni Microsoft can't get everything right, geez, give'em a break
 
!!s/every/any/
 
@AwalGarg @ivarni Microsoft can't get anything right, geez, give'em a break (source)
 
Hello is it possible to count how many times setinterval function is called?>
 
count++ within the setInterval function?
 
no sir i have setinterval in for loop
it will run 2 times
now i want counter for each function
 
7:59 AM
hi all
 
@MuneemHabib You could use globals or closures.
4
Q: How do I find out how many times a function is called with javascript/jquery?

WeblurkPerhaps an odd question but here it goes: I have a function which I call periodically and within that function I need to know which iteration I'm in, or how many times the function has been called. A simplified version of the problem: jQuery( document ).ready( function(){ setInterval( "myFu...

 
sir if i use global/closure then it will increment each time a function is called
i want 2 counter
like if for loop is running 2 times then it will be 2 counters
and if it is running 3 times then it will be 3 counters
 
1
Q: Working with AngularJS and jquery.dataTables. Changes do not get updated

Julo0sSHere is the problem, I actually try to get AngularJS working with jquery.dataTables. This dataTables looks pretty good and powerful. I found some interesting things about the way to make it work with angularJS and built a jsFiddle with the main ideas. I have a table, built dynamically with dat...

if anyone has an idea :)
 
@MuneemHabib Do you want a counter that increases, or do you want many counters?
 
is it possible to pass incremented values to setinterval function?
sir setinterval function is in for loop i want counter for each setinerval function
 
8:08 AM
@MuneemHabib Sorry, I don't really get what you want to do. anonymous functions used in setInterval subject to normal closure rules, which is the preferred way to share variables in javascript.
 
sir i am passing specialslength in setinterval function
i have to set counter to zero
if it reach setinterval length
 
http://stackoverflow.com/revisions/33933390/1
Capitalize Every Single Word!
 
#goodedit
 
user3119231
var professional = 1000;
for (var skill = 0; skill  < professional; skill++){
	learn(skill);
}

function learn(a){
	if (a < professional){
		console.log("not enough yet");
	}
	else{
		setInterval(function(){
			console.log("U da real mvp!");
		}, 1000);
	}
}
 
this looks like the kind of marketing that HR people find humoristic
 
8:16 AM
with angularJS.$http, is there any reason to use "params" in query instead of putting all the data stuff in "data"?
 
@MuneemHabib sorry, I don't understand, if multiple counters is the issue then you could just use an array and increment the value at the index that corresponds to your counter, so arr[0]++, arr[1]++, etc
 
@DenysSéguret and it'll never tell you that you're the real mvp...
 
goodmorning
 
@Neil well seen. But any HR bullshit must be buggy, that's consistent
 
8:23 AM
@DenysSéguret Wasn't expecting anything better from HR :P
 
user3119231
!!urban dictionary HR
 
@Maurize No definition found for dictionary HR
 
human resource
 
@Maurize your cam is still running, shut that off please
 
user3119231
Wh0t did you say?
 
8:26 AM
2 messages moved to Trash can
 
myVar is getting overwitten in every loop. setInterval.length is 1 - unlikely what you mean.
I have a feeling of what you are getting to, but can you describe what you are trying to do at a higher level?
 
Animated gifs are painful
 
user3119231
But funny as fuck
 
painful +1 funny +0
 
has anyone faced a problem where you have a staging website setup on heroku and the correct facebook app configurations like added the site url and a correct callback url like website-stage.herokuapp.com/api/auth/facebook/callback and then when one does FB.login() then getLoginStatus show nothing and FB.login() open a popup but it doesn't redirect back
 
user3119231
8:27 AM
@Sheepy ratings from sheeps are invalid.
 
how can I do this ?
 
Hey! Racism! Q.Q
 
"ajaxPostJustDoIt"
 
user3119231
Bad Javascript - Do more Jquery api.jquery.com/jquery.ajax
 
Hello
I have one basic question related to jQuery syntax anybody here?
 
8:34 AM
just ask :P
 
please don't ask
 
@Abhishrek didn't see your ping, just message me in Steam next time and I'm joining if I have time :)
 
@eirenaios Read room rules linked at top right. Specifically the "Asking for Help" section.
 
@SterlingArcher what was it like? more EasyCore?
could've been Chunk!No, Captain Chunk! - Restart... good one
 
@GNi33 SO GOOD
 
8:41 AM
@phenomnomnominal I KNOW RIGHT?
also, how are you? long time no see :)
 
Its a general basic syntax question I have already refereed internet now want to know simple answer so came here to discuss.
What $ indicates in jQuery
 
I'm pretty good dude, just recovering from a broken jaw :P Pit injury :D
 
@eirenaios $ === jQuery // If you want to ask a question here, you subject to the rules here, so you should reading them. One of them is "don't ask to ask just ask".
 
yes that i know
 
seriously? ouch, that must've sucked :/
 
8:42 AM
Haha no didn't hurt at all luckily, just have to eat soft foods for ages
 
can somebody explain a in detail?
 
Do you know the Smith Street Band?
 
no. should I?
 
It happened at their show, totally worth it
You absolutely should
 
@eirenaios What details do you want? It is an alias for jQuery. It is short. It does not conflict with i, j, k, or most lazy undeclared global variables. Its name is dollar sign. Its code point is U+0024.
 
8:43 AM
I'll give them a shot
 
ok thanks @Sheepy for the answer, Bye have a nice day
okk
 
Melbourne band, try Sunshine & Technology. Killer album
all their stuff is great though, you could try the Don't Fuck With Our Dreams EP
 
@eirenaios jQuery uses $ because it is all about money
 
@phenomnomnominal oh, the sound good
 
Yeah I think you'll dig it
 
8:46 AM
Not something I'd expect jaw-breaking moshpits at a show, but really good
 
any back end guy here ?
 
node.js?
 
eewww no way
that can't be called backend at this point
 
you had a look at the room name, did you?
what would you call backend then?
 
Core .Net
yes, I am here :)
 
8:49 AM
okay, I can't talk about .net
 
@Mathematics Pretty sure you're not qualified to make that definition.
 
If any of you have Cordova+WP experience, we'd appreciate some help on this:
1
Q: WP8.1 Inputpane (Keyboard) pushes/shifts cordovaView/Html content

BeatI encountered a very strange behaviour in my ionic/cordova app on the windows phone 8.1 platform, where i implemented an instant messenger. I teared my whole application down to a simple cordova (starter) application to eliminate potential side effects with other app related code like other css ...

 
@phenomnomnominal in an informal discussion, I would allow it
 
Any hints from people without experience are also welcome ;D
 
@Mathematics backend === code run on a server. Node.js code === code run on a server
 
8:53 AM
@phenomnomnominal really digging "Tom Busby" right now
 
@GNi33 Nice, Why I Can't Draw is my fave of that album
 
any idea why does the scrollbar appear? codepen.io/towc/pen/a33766d9f2cf6a49613616ad9f3cd835
 
morning
 
'morn
 
I don't get this. I'm looking at the source of a page that submits a form using JavaScript. I disabled JavaScript entirely. It's still redirecting..
It doesn't have a meta redirect either. /confused
 
9:05 AM
link?
 
@towc pastebin.com/evEcxxUN (at kissmanga.com/Manga/Girl-Friends, which does a "js check", redirects, sets a cookie, then operates as normal)
I was assuming "No JS is no redirect, so the challenge won't work, let's verify"
And it does work..
 
@Maurize yeah, she does a lot of crazy cool shit
 
Could someone take a look at this?
0
Q: jqplot only render a subset of tickLabels

EratesI'm using jqplo to render a graph of the past days with a value for that day. I want to show the tickLabels, but only on mondays. I can't seem to figure out how to do it. This is the javascript I have at the moment. I was thinking I should have a function behind the showLabel option of the tick...

 
@towc Oh nevermind it's a HTTP header >_<
 
9:09 AM
I've been going through Google and the jQplot docs for the past day, but can't find a proper sollution
 
user3119231
jQplot? Whats this?
 
a library for drawing charts
javascript
 
user3119231
Lol clicking on next page lets firefox crash -> codepen.io/picks/16
 
user3119231
anybody have the same problem?
 
@Maurize that is f*cking art
 
user3119231
9:19 AM
@Neoares that is fcking Neoares! *claps hands for da mvp
 
o/
 
user3119231
\o
 
@Maurize I expected that to be a lot more code
 
same
but look this
if (s.w > 1 && Math.random() < s.l / 1.6834e4 - 2.6e-2) {
  str.push({x: s.x, y: s.y, a: s.a, ab: s.ab, w: s.w,
    p: [], l: Math.min * s.w | s.w * 3.2e1 * (1 + Math.random())});
}
 
user3119231
My thinking is that a perfect script must be clear and clean.
 
9:20 AM
yeah, she uses a lot of convoluted maths ;)
 
that would be 20 lines on my code
 
also likes single lettered variables
but once you get how it works it's amazing
 
user3119231
Several "compilers" (compressors) switches variable names into letters to save size
 
all of them do that
 
user3119231
Some of them just if you enable the option ~
 
9:22 AM
I hope they do it by default
 
user3119231
Isn't really intelligent by default. If you check your script after a year you will know why.
 
user3119231
a = a + b / c * xy = c - b + a ycnaiofna
 
her point is that she used to javascript a long time ago, and when she did there weren't those awesome IDEs around, so she wanted to keep the variable names simple in order not to get confused (if you write that code yourself, it's probably quite easy to understand) and risk typos, and she never tried to switch to those more verbose versions
 
user3119231
and you will just sit there like "what the fuck is this shit"
 
user3119231
 
9:32 AM
@Maurize of course it is. Obfuscated/minified JS is not for reading and coding in it, that's what's the source file is for. This is purely to reduce the file size and nothing else
If you minify your js and throw away the source, so you can just stare at minified JS after a year, well... then you're an idiot
 
@GNi33 I actually enjoy parsing minified/obfuscated code for sport
I treat it like a crossword puzzle
The more you do, the bigger the picture you get, and the more options you have :)
 
Well, everything's cool for fun and giggles. I sometimes even have to do it in my job when working with weird 3rd party stuff
But it's not the "usual" way of doing things ;)
 
@MadaraUchiha I guess you'd enjoy writing userscripts for google services, then
 
That it is not
@AwalGarg I don't do cryptic crosswords.
 
heh
 
9:39 AM
Someone has any recommendations of charting libraries for an AngularJS based project?
 
battlefront mod imgur.com/a/ib8nW
most realistic mod ever
 
That looks ridiculously good.
 
crl
Guys, can you create a modal/toolbar inside a contenteditable (the goal is to not lose the focus/selection of text) and not have the button editable though jsfiddle.net/crl/0zuge52w?
 
@GeoPhoenix ?
 
crl
9:47 AM
> So, to make a span NON-contenteditable inside a contenteditable div, you just set it's contenteditable attribute to true! link
what.., and it's its :<
damn you still lose the focus, I'm stupid, well just need to avoid inputs
 
-4
Q: Using JavaScript for coding competitions

e11438This might be a silly question but has bothering me for a time. the question is "is there any proper way to use JavaScript in coding competitions". normally i use java with eclipse IDE for coding competitions and what i do is make class like this, public class Solution { static int add(int a, ...

 

« first day (1867 days earlier)      last day (3067 days later) »