« first day (1640 days earlier)      last day (3309 days later) » 

user1596138
4:00 PM
It's only $46. I'll jus preorder it haha. One day in advance
 
I've seen it for $38ish
got mine for $34
 
user1596138
Damn where at?
 
g2a, I had some discount points though :)
 
I wanna play guitar hero
 
user1596138
@NickDugger You get your vacation figured out?
 
4:12 PM
@Jhawins I already went on vacation
got sunburned lol
 
user1596138
@NickDugger oh when?? That was fast or did you take last week?
 
@Jhawins I was gone from April 2nd - April 8th
Went 4 hours away to a decent beach
Spent 5 days just doing nothing
 
Happy Monday, everybody!
 
user1596138
@NickDugger Where'd ya go? Nice man. I need that.
 
user1596138
The rest of my motorcycle parts should be here today. I'm gonna take a 3 day weekend coming up and just ride and sleep in the grass
 
4:22 PM
Stupid knockout
made me spend hours for four lines of code
 
@jhawins At least take somebody with you, like a blowup doll
doubles as a pillow
 
user1596138
My jacket is a damn good pillow :P
 
user1596138
And riding this bike with 2 people is absolutely no fun hahaha
 
<form data-bind="submit: $root.selectPage.bind($root,$root.rootData.Page() )">
<input data-bind="value : $root.rootData.Page">
<button type="submit"> Go to a stupid page </button>
</form>
How can i prevent the input value from updating before the submit button is pressed? Any idea?
 
@Jhawins I went to North Padre Island google.com/maps/place/North+Padre+Island,+Texas/…
 
user1596138
4:25 PM
@NickDugger Oh right I always forget where Texas is. That's badass
 
user1596138
You know how far I have to drive to get to the ocean?
 
user1596138
Cause I don't
 
Very far
You've got Lake Michigan, kind of... but it's cold... even in the summer... lol
 
user1596138
About 10 hours if I go to the East coast (which seems like it would suck major dick)
 
user1596138
Yeah... But hey it's fresh water! That's nice.
 
user1596138
4:27 PM
I imagine sea water is annoyingly salty. Tbh I wouldn't have a clue
 
I've been scuba diving in Lake Superior before. That was really cold.
Never been to the ocean? man, it's so great
Very peaceful
 
Guys if anyone felt like taking a look at this i'd really, really appreciate it.
 
I can just stand there and stare out at it for a whole day. Hell, I did.
 
put break point for the service success function, please check your data change. — Ramesh Rajendran 4 hours ago
 
user1596138
@NickDugger Well Lake MI is kinda like that too... You can't see across at all?
 
user1596138
4:29 PM
I've been to the Canadian side too.
 
user1596138
But nope, never been to the ocean.
 
user1596138
@user2085143 Do what the comment says.
 
Morning
 
user1596138
1
Q: Refresh JSON Data Using Angular

user2085143Just finished a Codeacademy tutorial using angular to loop through some JSON data from a URL and display the data. Would love to know how to implement it so the data would be updated if the JSON data was changing periodically! I know I need to maybe refresh the http get request,but after that ...

 
user1596138
I'm going to leave this be, but I'm pretty sure this isn't the format in which we ask questions on Main.
 
4:45 PM
 
@rlemon On #arduino, I'm getting mixed responses about the steppers you linked
 
@SomeGuy rlemon is afk: lunchables
 
Do you think they'll be powerful enough for the plotter?
 
4:54 PM
user image
2
 
@SterlingArcher loewwww
 
inorite lol
 
@NickDugger How do you got your tabs there and the sidebar down there?
 
@Catgocat plugins
 
4:56 PM
gimme gimme
what plugins gimme
im serious doe :(
 
Brackets Working File Tabs and Extensions Toolbar Reposition and Projects is a good one too
 
thanks babe
 
user1596138
7 mins ago, by jAndy
user image
 
user1596138
Oh it's an image lol FU
 
5:03 PM
So what's the difference between //.exec() and .match()in regex?
 
user1596138
★
 
This 99% look like one of my friends from college
 
user1596138
> The exec() method executes a search for a match in a specified string. Returns a result array, or null.
 
Sean fucking Meyer. Got so drunk he razor scootered naked across campus
 
user1596138
> The match() method retrieves the matches when matching a string against a regular expression.
 
5:04 PM
I broke GridFS :\
 
user1596138
@StevensHaen match works on strings
 
user1596138
exec works on Regex objects
 
user1596138
It's RegExp.prototype.exec and String.prototype.match
 
user1596138
Basically you do regex.exec(string), you do str.match(regex)
 
Exec also can be called multiple times, and keeps an internal state of where it is in the process
 
5:08 PM
@Jhawins Is that all?
 
!!> var re = /./, str = "banana"; console.log(re.exec(str), re.exec(str), re.exec(str))
 
user1596138
@StevensHaen You asked what the difference was... They aren't the same thing
 
@Shmiddty "undefined" Logged: ["b"],["b"],["b"]
 
hm
 
user1596138
So yeah that's all :P
 
5:08 PM
nevermind
 
@Jhawins I see
 
user1596138
!!> /y/g.exec("tony the pony")
 
@Jhawins ["y"]
 
user1596138
!!> "tony the pony".match(/y/g)
 
@Jhawins ["y","y"]
 
user1596138
5:10 PM
You'll see some slight differences.
 
@Jhawins exec() also returns an array
 
user1596138
Yeah, both of those just returned arrays.
 
user1596138
exec remembers it's position tho
 
!!> var re = /./g, str = "banana"; console.log(re.exec(str), re.exec(str), re.exec(str))
 
@Shmiddty "undefined" Logged: ["b"],["b"],["b"]
@Shmiddty "undefined" Logged: ["b"],["a"],["n"]
 
5:13 PM
there we go
 
so weird
 
user1596138
!!> var reg = /./g; console.log(reg.exec("stuff")); console.log(reg.exec("stuff"));
 
@Jhawins "undefined" Logged: ["s"],["s"]
 
user1596138
Oh shit
 
We thought your mom returned an array, but it turns out anything you push there is lost forever.
 
5:14 PM
I also remember there was an issue in JScript, I think that might have logged b,n,n
 
user1596138
Ya know what just look at @Shmiddty's lol
 
@Jhawins "undefined" Logged: ["s"],["t"]
 
user1596138
There it is.
 
user1596138
The nice part about exec is it actually returns the index too
 
user1596138
VM411:1 ["s", index: 0, input: "stuff"]
["t", index: 1, input: "stuff"]
 
5:15 PM
I remember a codegolf where exec remembering its position was very beneficial
 
@SomeGuy inexpensive and works fine for me
I've used two of them no problem
 
!!> for(var re =/.{6}/g,str="abcdefghijklmnopqrstuvwxyz",o=[],a;a=re.exec(str);o.push(a));conso‌​le.log(o)
 
@Shmiddty "undefined" Logged: [["abcdef"],["ghijkl"],["mnopqr"],["stuvwx"]]
 
[^']* What does the asterisk do in this object? I know what it does in general, but what's the purpose here?
 
user1596138
@StevensHaen repeat?
 
5:19 PM
is this the new GTA? i.imgur.com/W9GoIVX.gifv
those graphics look slick
 
user1596138
@StevensHaen makes it all 1 match instead of tons of tiny single character ones
 
user1596138
@StevensHaen refiddle.com/28uj try removing it you'll see here's a fiddle
 
user1596138
!!> "stuff is here".match(/[^']/g) // this one has no *
 
@Jhawins ["s","t","u","f","f"," ","i","s"," ","h","e","r","e"]
 
@Jhawins What's the point of the single quote in there?
 
user1596138
5:21 PM
!!> "stuff is here".match(/[^']*/g) // this one has *
 
@Jhawins ["stuff is here",""]
 
user1596138
Idk. Is there a point to it?
 
@Jhawins Works the same way without the quote
 
user1596138
YEah.
 
@BenjaminGruenbaum haven't forgotten
okay, maybe I did
 
5:22 PM
everyone forgets :P
 
user1596138
@StevensHaen Just try it in the fiddle. It's incredibly obvious what that quote does
 
user1596138
Although I don't see how it could be useful. It breaks the match at single quotes
 
what's this error message even mean? Error: ENOENT, stat '/server/images/user.svg'
 
File not found
 
Oops :P
 
5:29 PM
ah. Not sure how to access it correctly in meteor.
trying to manually input a file into CollectionFS on the serverside
 
Did you try ./server/images/user.svg?
 
user1596138
@corvid Can you find a URL for it that you can open in the browser?
 
user1596138
Or is that Node/IO?
 
@GabrielTomitsuka that doesn't work
 
@corvid Okay, then the file doesn't exist.
 
5:34 PM
it exists on the file system, but I am not sure how to access it.
 
@Jhawins ("one two 100".match(/\d+/)). How are the parenthesis useful in this one?
 
this can't possibly work, right?
2
A: Unexpected value for "this" when using namespaces

taxicalaThats because this changes depending the scope, one way would be to bind an anonymous function: setTimeout(function(){this.bar}.bind(this), 250);

 
anybody know how to switch owners for an npm module? I'm listed as one of the collaborators, but I want to use my dev email not my personal email
I tried npm owner add from cli, but I might be doing it wrong I guess
 
5:51 PM
@taco doesn't owner add do stuff to the package manifest, which you then have to push?
 
ah, I guess. New to this
and by push you mean npm publish right
 
no idea
:D
 
ok
 
but probably.
 
I published a vanilla module before
 
MGE
5:52 PM
Hello, I've a problem. Im loading an iframe, and in the iframe I have a code that takes the width of a div inside the frame. with .width(); function. I sent this info via parent.sendsize(size); to the parent page. The problem is that the max width of this div is taking the iframe width, not the iframes div real width.
 
but this GoodEggs company is handing over this module to me, since they're not keep it up to date
 
NPM is the worst module system I've worked with to date, including C++ header tarballs.
 
Using "hodor" as a filler string (usually in replace of "baz") is like the decision I've made in a long while.
An actual line from a unit test I wrote today: expect(arr).toEqual(["foo", "bar", "hodor", "hodor", "hodor"]);
 
@ssube yeah, on a related note, I think we really should be using a private npm repo, like we do with our rpm's
 
5:54 PM
@taco sonatype nexus, local npm registry (and can do rpm repos and maven/ivy)
 
thx!
I'll bring it up to the guys
 
free and dead easy to set up, too
 
MGE
How can I send the width of a div from an iframe to the parent page?
 
I think we might use nexus for maven. I should check
 
@taco if you've already got it set up, just create a repo to proxy the global npm registry and a repo for publishing internal packages, then a group containing both
 
5:55 PM
it looks like we do. awesome
 
in your ~/.npmrc, set registry to the group (so you get proxy + internal) and in each package, set the package registry to your internal
 
@ssube cool, sounds easy enough
@ssube how do you set the package to local repo? Is there a flag or bit you set?
 
@ssube so something like this? docs.npmjs.com/misc/…
 
"publishConfig" : {
    "registry" : "http://nexus.place-i-work.net/nexus/content/repositories/npm-internal/"
}
and in your npmrc:
registry=artifact.place-i-work.net/content/groups/npm
init.author.name=username
init.author.email=username@place-i-work.com
email=username@place-i-work.com
_auth=token
always-auth=true
Your auth token should be the results of echo -n "username:password" | base64.
 
6:00 PM
I have part 3 of my tut series written, but I have to wait to get home to test the code in it before I publish it
 
those are from our internal docs
 
@ssube gracias amigo
we use ldap, so I'd have to see about the authentication stuff
 
if you have nexus tied into ldap, then the above should work
 
we do
 
if you don't need to auth into nexus, skip the last two lines
the important parts are always-auth (if you disable anon) and cat "_auth=$(echo -n "ssube:password" | base64)"
@taco if you can't figure it out, I can pull the exact repo configuration we have. It's fairly simple.
 
6:06 PM
I can see our private proxied repos for clojar and jBoss and such, I just don't think I have admin rights to Nexus
 
Tell your admin to set up a proxy repo "npm-proxy" with an "npm" provider and "https://registry.npmjs.org/" remote, a hosted repo "npm-internal" with an "npm" provider, and a repo group "npm" with both of those added ("npm-proxy" then "npm-internal").
iirc, that's all I did
 
$(".work img").on("mouseover", function() {
	$(this).animate({
			display: "none"
	}, 5000);
});
Guys, I am trying to make this work.
 
@ssube Thanks, should be enough info
 
When I do /d+/ why do I have to escape d if I'd like to use the special character? Why isn't this matching the letter d?
 
the proxy repo (and caching) cut 2-3 minutes off some of our builds
 
6:09 PM
On hover, the image inside this div should hide:
Let me get a jsfiddle
 
can you animate display?
I didnt think you could
 
No
you would have to animate opacity, and check if it's 0, then set the display
 
@Loktar No
!!tell HassanAlthaf jquery fadeOut
 
:P I know you can't but I think its more polite to word it as a question and have the person/asker look into it
but ty guys!
 
6:12 PM
Uhh
opacity doesnt work either.
When I do fadeOut
 
Even with gel my hair wont play nice today :(
 
This is what I get, give me a sec
 
45 minutes until we get to downvote everyone
 
some sort of movement between the divs is caused on hover
 
@HassanAlthaf define "Doesn't work". It seems to "work" for me. What are you expecting to see?
 
6:22 PM
@taco the movement after the image goes to display none
 
$(".work img").on("mouseover", function() {
	$(this).animate({
			opacitiy: "0"
	}, 5000);
});
 
@HassanAlthaf might be better to ask in the webdesign room

HTML / CSS / WebDesign

This room is now defunct. RIP.
something to do with the margins/display inline-block is my best guess
 
if you remove the margins it works fine
but thats not a viable solution :P
 
Brain isn't working today. How would you guys go about calling an API with x pages, without knowing how many pages there are, but having many requests open at once (x+20). Currently have it in a recursive function, calling one page at a time.
 
6:24 PM
@HassanAlthaf img { display: block }
in your css
 
^ +1
 
@Loktar When the img is transparent, it does that, so it's related to the img. If I remove the img it doesnt do that
 
Doesnt work Nick.
 
@taco Nick Riggs figured it out
@HassanAlthaf weird works for me now as well
 
It works on JSFiddle
Not on my whole code. :/
 
6:26 PM
sounds like a personal problem :d
 
function update(page) {
  var opts = {
    url: 'https://redacted/api/v1/channels/?limit=100&page=' + page,
    json: true
  };
  request(opts, function(error, response, body) {
    if (body.length) {
      body.forEach(function(channel) {
        cache[channel.token] = channel;
      });
      return update(++page);
    }
    setTimeout(update, 3000, 0);
  });
}
update(0);
 
you likely have a more specific css rule overriding it in your big project.
 
Yup, let me share it .
 
make a more specific rule in your big project
like
.work img {
display: block
}
 
@HassanAlthaf see HTML room
 
6:28 PM
@NickRiggs that is what I did.
 
I see an optical illusion in the jsfiddle jsfiddle.net/cLb5ap5s/2
when i stare at the corners of the photos. forget the name of that illusion though :|
 
Are you sure your eyes are ok?
Jk
 
I only see it once I've hovered over all of the images
 
my eyes aren't real
 
Yeah they're eggs right?
 
6:32 PM
lol
 
No, is that banana?
 
no, they're mirrors
 
@Nick Dugger Your profile pic
 
you are what you eat
 
If you eat an hamburger..
you're eating cow meat..
therefore you're a cow.
mind blowing
 
LOL
 
Dang man.
 
A guy in HTML/CSS room solved jQuery.
Which is @rlemon
 
re: the video I just posted
chris porter KILLS IT
I forgot he was in that ep
 
6:40 PM
@rlemon solved jQuery?
 
The black woman wins
 
How'd he manage that?
 
How is the new line character useful in a regex?
 
For spliting lines
lol
 
Guys;
$(".work img").on("mouseover", function() {
	 $(this).animate({
	 	opacity: 0
	 });

});
I have an element called .work h1
Is there any way I could I select that exact h1 as the img element I've selected?
 
6:45 PM
$(this).parent().find('h1')
 
$(this).parent().find('h1)
 
might be able to use .siblings('h1') depending on the positioning
 
Thanks.
 
<small>test</small>
 
6:56 PM
Oh dammit all I have to make a new database that virtually already exists >.< so tedious
 
1
Q: TypeError: Object #<MongoClient> has no method 'db'

sabbirI am new at node.js, mongodb, express and having so much trouble to set up database. My code (app.js) is given below var express = require('express'), app = express(), cons = require('consolidate'), MongoClient = require('mongodb').MongoClient, Server = require('mongodb').Server...

 
function findDate(string) {
  var dateTime = /(\d{1,2})-(\d{1,2})-(\d{4})/;
  var match = dateTime.exec(string);
  return new Date(Number(match[3]),
                  Number(match[2]) - 1,
                  Number(match[1]));
}
how do the Date() arguments work in this function?
 
month day and year
i think
 

« first day (1640 days earlier)      last day (3309 days later) »