« first day (1546 days earlier)      last day (3400 days later) » 

12:07 AM
Thanks all for helping testing! Version B it is then: based on current data inc ie6/7 (where a is 50% slower) and ff12 (where d is 20% faster, but not in ff28), it's the best allround performer. Chrome seems to prefer B (vastly). B also conveys intent the best and is shorter than d.
 
m59
Any tips for keeping my database backed up from my PAAS (openshift) ?
 
A_l
12:21 AM
I am using http://expressjs.com/api.html. and I have something that I dont understand
let say that I have this code:
var exp=express()
exp.get('/', function (req, res) {
.....
})
I want in the function(req,res) to send file to response how can I do that.
I only saw send but I thought that file is better to send with createreadstream and then pipe.
 
res.sendFile
 
A_l
thanks!
 
12:36 AM
how to install only the 'dist' folder of a github repository with bower ?
i don't need the entire repository ...
anyone ?!
 
> I want to buy some bitcoins. Ideally, I would like to buy them on the MtGox exchange (because the consensus seems to be that this is the most reputable exchange),
heh
@amin Not technically possible at this point.
 
but we can install a file with bower ...
i was surprised that we can't install folders with bower
anyway good to know ... thanks :)
 
There's a difference between the owner of a package uploading a file, and you selecting what files to install.
 
humm ...
 
@SomeKittens I'm about to do my first Yotractor demo!
 
12:43 AM
@phenomnomnominal wooooooo
 
What's your email? I'll flick you a zip of the current version.
Not ready to npm or github it
 
A_l
something that I dont understand about nodejs.
I want to create module that will be an object with some properties.
but dont want from this object to be singleton. something like simple java Inheritance.
 
man i really suck at maths
 
@SomeKittens sweet! Totally didn't expect it to work haha
 
12:57 AM
"Run Protractor" doesn't
node node_modules/protractor/bin/protractor e2e_tests/protractor.conf.js
{ '0':
   { [OperationalError: Command failed:
   /Users/randallkoutnik/Downloads/yotractor_somekittens/node_modules/protractor/node_modules/q/q.js:126
                       throw e;
                             ^
   Error: Could not find chromedriver at /Users/randallkoutnik/Downloads/yotractor_somekittens/node_modules/protractor/selenium/chromedriver.exe
 
Oh yeah that's not working yet, I gotta get websockets set up for that to work
Just run that top command?
node node_modules/protractor/bin/protractor e2e_tests/protractor.conf.js
 
m59
git push -fu
 
1:33 AM
@Zirak you still alive?
 
@SecondRikudo No
A clowder of kittens ate me
 
sorry
 
I'm working on a modified version of your auth script, (by modified I mean promisified), and for some reason I keep getting 404 when I try to access openid.stackexchange.com/account/login/submit every time
 
@SecondRikudo GO TO BED
 
@SomeKittens NOT BEFORE I FIX THIS FUBAR
 
1:36 AM
@SecondRikudo They throw you out if they don't like you
So if you don't send the parameters just right or something, they'll cry
 
I think the cookies are the problem
@Zirak I'm looking at the debugger and the store doesn't seem to contain anything...
I install tough-cookie like they said, and enabled it with request.jar() passed into the request with .defaults({jar: jarObj})
 
You sure you're using the request object with the right jar?
 
There's only one request object in the entire scope.
 
var reqlib = require('request'),
     jar = reqlib.jar(),
     request = reqlib.defaults({ jar: jar });

// only use request from now on
 
Oh
I need to set the request object to req.defaults?
 
1:45 AM
yeah
 
Just applied for a job at google in PA... not hopeful, but why the hell not, right?
 
Good luck
 
My girlfriend is in college in PA, and she's getting really lonely and wants me there, so I figured I may as well start the process... the long and painful process of moving... again... for the 4th time in the past 2 years...
I must be masochistic
 
in Lounge<C++>, 2 mins ago, by Borgleader
-4
Q: Please turn your solution in to the professor at the beginning of class on Tuesday

John Skeet's girlfriendQuestion 4 (10 pts): Write a function with the following prototype that will remove a particular value from a linked integer list. remove_val(node** N, int v) { ... }

 
@SecondRikudo removed, can you post the Q's content?
 
1:49 AM
@NickDugger basically what it says in the quote.
 
So, it's literally a homework assignment, pasted word for word? lol
 
yes
 
Fantastic
 
@Zirak that works
 
@NickDugger get on hangouts
 
1:52 AM
Neat
 
Now I just need to somehow pass the same request instance around to log in to chat with
 
@rlemon why?
 
@SecondRikudo so, you didn't goto sleep yet... I wonder ;)
 
But that would be tomorrow!!
@rlemon I last long.
 
@NickDugger because the cool kids are here
 
1:52 AM
At 124, I still last like a pro.
 
@rlemon I'm not cool, and I'm tired. Bugger off with that hangout nonsense
 
And with that, I will really go to sleep :D
 
@rlemon seriously, It's like... 8pm... that's practically midnight
 
it's 9pm here and i'm already half in the bag
:?
@KendallFrey can confirm
 
I'll do hangouts some other time. I'm the only front end developer at work right now and I'm busy as fuck and tired as fuck and stressed as fuck. I need drugs.
 
2:10 AM
I need to create a spreadsheet type of thing where I enter some values and it solves an equation for me, but I only have two equations with 2 parameters each, so it's not worth it to fire up Excel every time. What do?
 
mootools
 
Use for testing how much your website sucks on localhost
 
@NickDugger You talking to me?
 
I was, as a joke, but then it was a stupid joke, so no
 
oh ok
I'm kinda tired of typing 390*9.8*ln(3/2) into google all the time
 
2:15 AM
what's a good logo for something that can be draggable?
 
@KendallFrey Program it
 
but where?
 
Command line program
 
simple enough
 
Or chromium --app
 
2:17 AM
 
Too small
 
draggable and sortable
 
it's the concept, not the final draft
 
I wonder if we will have screens that are millions of pixels wide in the future, so that an icon size of 7028px makes sense
 
UUUUUHDTV
 
2:42 AM
The guy that I worked with/for at the startup I worked for, that made me want to kill myself because I was so miserable, commented on one of my github repos and said it was impressive. Well yeah? Fuck him and his grudge-less outlook... I try to forgive him at least once a week... forgiveness is a difficult thing
 
0
Q: Free interactive transcript API

indie blueI am looking for an interactive transcript API that is available for free/open source and usable for commercial websites. Here are a few examples of the same: http://www.jwplayer.com/ http://speakertext.com/captionbox Any recommendations/suggestions are very much welcome.

 
</3 Karma + Jasmine
0
Q: Jasmine with Karma: Ajax not working

Noah HuppertIssue I am running Javascript tests using Jasmine and Karma(As a test runner). The issue is that Ajax requests do not seam to be working. If I run the following Jasmine test with Karma: describe("Tests Ajax", function(done){ it("does not work", function(){ var options = { ...

 
3:03 AM
How can I tab through fields until I reach the end and go back to the beginning in a dialog?
 
Move focus with javascript
 
So what I mean is like the last button in my dialog ,which contains input fields, is a cancel button. How can I go from tabbing from cancel to the first input field in the dialog without the tabbing going to other parts of the page?
 
0
Q: HTML5 Canvas: Change Image Color

Mohit PandeyI have an image(in greyscale form) of which i want to change the color(user specific). Since its quite difficult to change the color of a greyscale image, i come with an approach. Image is divided into two parts. One is the image with white color. Second, a semi transparent image with grayscal...

good question that was unfairly downvoted - show some love!
@NickDugger Good to hear you're working on it. And you're right - it isn't easy.
 
It's getting progressively easier over time. Especially at the one year mark, I find myself much less angry about it than I was.
 
3:19 AM
You're what, 22? That's an incredibly mature perspective.
 
what was wrong with the startup?
feel free to share life advice and lessons
 
I've gone through life at a faster pace then most, I'd think. Not sure why I put myself through the hells that I have, but I think I'm done with the worst of it... for now.
The startup is seemingly dead now, but there was a lot of legal crap.
I met the guy on a forum, and we became close over time, hell, we were friends. We decided to start a company, and so I moved out to where he was and we worked out of a business incubator. I thought I was going to be his business partner, but over time it turned into me being a nobody that he could boss around while he made a hell of a lot of money and I could barely pay my bills
I was promised like 15-20% equity, and once I got there, he decided that he didn't want to give any away
it boils down to broken promise after broken promise, and it just built up and got to the point where I woke up depressed anbd miserable one day. I could'nt do it anymore, so I left.
 
Lesson #0: Get it in writing.
 
yes writing or payment upfront I think
 
Similar story here - was engineer #1 at a startup where the founder just wanted a code jockey.
 
3:27 AM
I had skype chat logs, and consulted my family lawyer who said that I might have a case worth pursuing
 
The same thing happened to a friend of mine
 
However, I was done and just wanted to move on
 
Moved across the country for that, thinking I'd do more than close tickets. Welp.
 
and the sad thing is the startup was on SharkTank and they didn't pay him a cent!
 
SharkTank is a terrible show
 
3:28 AM
Needless to say, he stopped offering his services so easily
lol why?
 
The deals they give are terrible, they used to charge equity just to appear on the show (no guaranteed money)
 
what they charged equity without any guarantee? That's terrible. I didn't know that
 
@rlemon wake up and help me with Canvas
 
I can canvas you with help
 
ok but im' drunk
 
3:30 AM
I was going to bed, but now I'm all worked up
 
Sim
can anyone help me with @media screen?
 
@SomeKittens To clarify his situation: He asked me a question about state manipulation, and then cleanly proceeded to a completely unrelated timing based question.
 
function colorImage (imgPath, r, g, b, x, y) {
  if (!y) { y = x; }
  var canvas = document.createElement('canvas'),
    context = canvas.getContext('2d');
  canvas.height = y;
  canvas.width = x;

  var img = new Image();
  img.src = '/img/' + imgPath + '.png';

  context.drawImage(img, 0, 0);

  var imgData = context.getImageData(0, 0, x, y);

  // For loop incrementing by 4 is easier than forEach
  for (var i = 0; i < imgData.data.length; i += 4) {
    imgData.data[i + 0] = r;
    imgData.data[i + 1] = g;
Why doesn't that render?
 
image isn't loaded
you have to wait for img.onload
 
how? This is pretty non-async.
 
3:33 AM
> I hope things are going well for you man
Well, shit... how can I not forgive him now?
 
s/non-async/sync/
wow, I'm dumb.
@rlemon thoughts?
 
It's weird that you first draw the image and then overwrite the full image with a single color
 
only thing I can think of is that the img isn't loaded
 
@copy Cribbing notes from here: stackoverflow.com/q/24405245/1216976
 
3:41 AM
wat
 
Billy Idol
 
@SomeKittens You're missing the if(data[p+3] == 0) continue;
 
@copy That wasn't in the answer, but worth a try
I assume that means don't write anything if the pixel is transparent?
 
Right
 
how do I hack NASA and get free HBO?
 
3:45 AM
Take less drugs
 
Also, I have a greyscale image my brother made, and I want to have two different planets on the background, each different colors.
 
Take a single color component from the image (they should all be the same), divide it by 255 and use it as a factor of the color you want
data[p + 0] = Math.floor(rgbColor.r * data[p + 0] / 255)
 
will that give me access to the ISS?
 
I hope not
 
Why must thou beith rude? Do not thou knowst that I am of human origin as well?
 
3:51 AM
@copy Is that an optimization or a way to actually get it to render?
 
@SomeKittens That's for your second idea, different from the original idea
 
ok, got it to render
@copy They're the same idea, just got it to render, but it's a green circle
trying average now
 
I'm gonna hack my keurig and turn it into a cow
milk for days, boiiiiiii
have you ever considered that milk is just liquid cheese?
 
Ugh, this code is ugly.
@rlemon At some point, I'm paying you to do a code review.
 
ahahahahahah
ditto
 
3:58 AM
pay me to philosophize about liquid cheese
 
@rlemon trade?
 
Sim
can anyone here help me with @media ?
 
@SomeKittens I fear I'm not worth it, but sure :P
 
4:12 AM
Way Off-topic Question: "Thank you for taking time out in speaking with me yesterday." Is this sentence grammatically correct?
 
"Thank you for taking time to speak with me yesterday"
 
#ETL(EnglishAsThirdLanguage)
@SomeKittens thanks mate!
 
!!rimshot
 
Does anyone know of a free/open source software that I can use to record Skype calls, just to check if I missed anything in the conversation, as in meetings?
 
Sim
4:21 AM
@RahulDesai windows voice recorder:)
 
@Sim Sounds good, but that would record only the audio. How about recording the video too? Like if someone shares the screen during the call.
 
Sim
screen recorder
 
camstudio.org looks good!
 
Sim
yup
 
5:01 AM
 
Sim
lol
water sure like that will help
 
5:17 AM
@RahulDesai I had work yestarday :( not a lot but something that needed investigation
 
@argentum47 ok
how did it go?
Any idea about his?
0
Q: Free interactive transcript API

indie blueI am looking for an interactive transcript API that is available for free/open source and usable for commercial websites. Here are a few examples of the same: http://www.jwplayer.com/ http://speakertext.com/captionbox Any recommendations/suggestions are very much welcome.

 
I has managed to generate the url, but now am stuck at creating the download link only when clicked, there are two ways I can think, write inline javascript or a separate controller action, but an action mean another page, I dun wanna do it
what you wanna do?
 
Sim
href
 
@argentum47 I want to use one for a commercial website.
 
no I mean you want to add caption to videos?
youtube also has their api, I saw once when I was trying to do the playlist download thing
 
Sim
5:29 AM
@argentum47 videojs or popcornjs
 
0
Q: How to enable resize on JsPlumb widget?

SajeetharanAm building a list of widgets with JSPlumb and AngularJS, i need to enable resize using the handler on each widget. There is an example already on it, i have implemented , but resize does not happen. here is my code, HTML: <div ng-controller="CustomWidgetCtrl" plumb-item class="item" resizeable>

 
6:09 AM
not really that thing
I want to achieve something like this: http://jsfiddle.net/rdesai/tz0opmf4/8/show/
The text in the transcript should be highlighted according to the audio in the video. You see what I am saying?
That fiddle does it but its not dynamic. If there is something where I can provide just the video and its transcript and it renders interactive transcript, that would be awesome. And yeah, it would be great if its open-source/free.
 
@RahulDesai ok so, you are looking for like .srt files
 
@argentum47 Ya
 
popcornjs like Sim was saying
or you could write a parser
 
Sim
i have been using videojs is the best
then there is jwplayer but it has ads
 
the simplest one would be to have an object like { startTime: , endTime:, comment } . and then is easy,
 
6:18 AM
Popcorn.js O_o
 
somebody help me
 
Sim
@Sajeetharan use css?
 
how?
 
Sim
fiddle it
 
Sim
6:21 AM
u know what
 
sim, i dont understand
 
Sim
its stuck on loading
give me few
 
@Sim popcorn.js doesnt seem to have interactive transcript feature, does it?
 
Sim
i know videojs does im not sure about popcorn js
so does jwplayer
 
interactive means what? you need to have that srt file somewhere which needs to be hard coded.
 
6:31 AM
@Sim Let me check videojs. BTW, jwplayer is not free for commercial websites.
 
Sim
@RahulDesai i personally perfer videojs cuz u can customise it the way u want
ohh and there is other one from dailymotion that one is good too
 
@sim why does it take much time to liad
 
shall i create a js fiddle
 
@argentum47 I agree. Interactive, as in, when you click on a particular sentence in the transcript, the video starts at that particular point and as the video goes on , the sentences are highlighted accordingly.
 
Sim
6:34 AM
make fiddle plz
@Sajeetharan its still stuck on loading i dono y
 
ew.
 
I love the video on videojs.com
Incredible.
 
Sim
@RahulDesai told u
 
yepp
@Sim Wheres the interactive transcript demo in it? Does it have that demo?
 
6:37 AM
@Sim Ya, I am currently using it.
 
lemme check
 
Sim
@RahulDesai direct link github.com/walsh9/videojs-transcript
@Sajeetharan i g2g but u can try this jqueryui.com/resizable
 
@Sim I tried the demo they have in there. It doesnt seem to be working. The transcripts do not load.
 
Sim
@RahulDesai im expert with <video> been messing with it for over 1 year can you setup a fiddle i will look at it tommorow?
good night if its night there
 
6:43 AM
@Sim That would be great! I will ping you the fiddle shortly.
@Sim Good night!
 
7:15 AM
Hey Guys. Can I ask a discussion question here?
 
Sure
 
I'm trying to implement the recurrence in the javascript. Right now it is very bare bone simple loop with interval.
I need something more accurate and useful.
From weekly recurrence I can guess it is something with 7 days interval between the date range.
This is what I have for weekly recurrence.
//Push in the selected dates in the selected array.
for (var i = 1; i < between.length; i += 7) {
selected.push(between[i]);
console.log(between[i]);

}
 
7:36 AM
some body help me on this jsfiddle.net/sajeetharan/d84f2m2v/7
 
user3949359
7:54 AM
How do I generate the package.json file with nodeJS (I'm on a Mac)?
 
@Zirak Well, I'd added it to-read. Then I started reading it. Then I stopped reading it and put it on the to-read again because removing it entirely was more work :P
It didn't feel like a book I really wanted to finish
I did only read like 10-20 pages, though
 
Hello Some Guy
Wanted to tell you : your wonderfully upvoted answer is the only one in the whole SO I keep starred so I can refer to it every time I forget how to freeze the browser :)
I know you don't feel like it was a very hard question but you made an answer that really helped a lot of developers
 
That's great to know! :D
I never realized that so many people were unaware of that feature
I guess that's what made it catch on
 
@SomeGuy I hope some guys at Google will realize how they failed making it obvious and that they'll try fix it.
 
@dystroy help on my question
 
8:04 AM
Hello Everyone
 
@JohnMax 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.
 
@Sajeetharan Don't ping people to try and get help
Nobody wants to help if they're being pestered for it
 
@SomeGuy ok sorry
 
I am using prototype js periodical update and would like to reset the frequency when it reaches a particular number
```<script language='javascript'>

function mettreajour_periodique(span_id, url_traitement, nos_parametres, our_frequency, our_decay)
{



var ajax = new Ajax.PeriodicalUpdater ({success: span_id}, url_traitement, {method:'get', frequency: our_frequency, decay: our_decay, parameters: nos_parametres, evalScripts: true});

if(our_frequency>=20) { alert(our_frequency); our_frequency=5; }
 
user3949359
Why do people sometimes refer to servers as "applications"?
 
8:08 AM
@Sajeetharan A few other random pings and I'll think you'll get banned
 
@dystroy There are a lot of features in Dev Tools that go unnoticed, really
They've got an article that documents them
 
@Sajeetharan Read the rules (top right of the screen). It's OK to ask a question here but make it interesting from the start and don't ask people directly.
 
ok got it
 
@nosille Because they are ? I'm confused at your confusion
 
user3949359
8:11 AM
@dystroy I see "application" used everywhere for all sort of purposes, hence the confusion.
 
hi guys, do you know how I can get the hoverover text to be where the text is located at? jsfiddle.net/kenhimself/yhhzy9vq/4
i've tried position:absolute but it would'nt respond :.
 
user3949359
Are all servers "application" ones?
 
A server isn't an application. A server is a logical and/or physical support of an application (or usually of part of it). And a server might serve things that don't classify as applications, like web sites.
 
Hi everybody ?
 
8:28 AM
Does anyone know how to get nodejs to be able to perform fs.unlink on read-only files on Windows? All I'm getting is EPERM, permissions denied, but a regular 'ol explorer can delete the file without issues.
 
I lost it at "Windows"
 
Unfortunate but true. Shall I make you lose it even more? We use Visual Studio to edit JS files at work. :P
 
@FlorianMargaine @Loktar @rlemon rebecca.blackfriday
 
 
user3949359
@dystroy what is an application then? The wikipedia description is unclear
 
8:40 AM
@nosille "Application" has a context-sensitive definition
So it depends on the situation heavily
 
user3949359
@SomeGuy A server application specifically
 
@nosille Since Steve Jobs came along, everything is an application (or, "app").
 
user3949359
@RoelvanUden Steve Jobs passed along, too.
 
@nosille That's unclear to me as well, but have a look at Bitnami
 
hello everyone
can someone pelase explain how everything is an object in javascript?
This is confusing me, I can't move on without grasping this
 
!!> typeof "string"
 
@Neil "string"
 
@Wehelie It would appear to not be the case. Hmm. :P
 
ok but how
everyone says string is an object
what does that actually mean?
 
user3949359
8:45 AM
@Wehelie You could call methods on it.
 
I don't say that. A lot of things are objects, but not primitives
 
@Wehelie - it means they are wrong, a string is a primitive
but new String() is an object
 
@nosille please give some examples
 
var obj = { hello:  'world' };
var objFunc = new function() { this.hello = 'world'; }
assert(obj.hello === objFunc.hello);
 
ok
but how is string such as "Hello World!" an object
 
8:49 AM
It's not !
 
but you can methods on it right?
 
Not exactly : you apply your method to a promoted primitive : an object made from the primitive
 
I don't think I understand what that means
can you break it down
 
!!> var a = "test"; a.b = 3; a.b
 
@dystroy "undefined"
 
8:53 AM
Here, what happens is
var a = "test"; (new String(a)).b = 3; a.b
That's what happens when you look up for a property on a primitive : you do it on a new object instead
It usually doesn't matter, unless you try to set the value of that property
 
@OctavianDamiean Where have you been, man?
 
what's really confusing is that fact everyone is saying "javascript objects are collections of name-value pairs"
when I hear this, I am thinking of associative arrays in PHP
 
and it is somewhat similar to that, except PHP sucks
 
9:01 AM
Yay
 
First to receive a badge !
 
Also, 2 more votes for the promise gold badge
 
typeof new String(); / "object" why?
 
Because it's an object
I feel like I didn't help, again :\
 
but typeof(String) is "function" and functions are objects right?
 
9:07 AM
String is a constructor function, you can call new String and get a String object, you can also call String or create a string literal to get a string primitive.
You should read es5.github.com
 
@BenjaminGruenbaum tada !
 
woah
Thanks, I guess :P
And now we wait for tomorrow for the score to update
 
Good luck
 
Thanks, it's my first gold badge for a tag I'm first in
Now I have to find something else to do :D
 
I don't pay attention to that at all, I have no idea what badges I even have ?
Now I just had to look, and I don't really have many badges do I? Who cares !
@BenjaminGruenbaum - you could always take up trainspotting as a hobby ?
 
9:34 AM
[jquery] Anyone know if there's an event that's triggered by .animation() ends? A catch all?
also hi
eeeeh nvm on that one, won't work anyway :/
 
Maybe I'll do python questions
Or Scala
 
9:51 AM
does anyone know how to export textframes from pdf using javascript in adobe pdf reader?
 
@HUSEYINSEKMENOGLU 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.
 
@HUSEYINSEKMENOGLU I know how to do it with pdfjs or spire.pdf in C#, both aren't particularly hard and you can find them in Google. I have no idea how to do it with adobe though.
 
user3949359
10:50 AM
What does a dictionary mean? Is it something like nesting of documents?
 
A dictionary is collection of words in one or more specific languages, often listed alphabetically (or by radical and stroke for ideographic languages), with usage of information, definitions, etymologies, phonetics, pronunciations, translation, and other information; or a book of words in one language with their equivalents in another, also known as a lexicon. According to Nielsen (2008) a dictionary may be regarded as a lexicographical product that is characterised by three significant features: (1) it has been prepared for one or more functions; (2) it contains data that have been selected for...
 
user3949359
@Neil I'm not looking for the broad definition, the one for JS rather.
 
@nosille You mean an object?
 

« first day (1546 days earlier)      last day (3400 days later) »