« first day (1674 days earlier)      last day (3268 days later) » 

12:17 AM
Can anyone help me with an API error with google?
Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET googleapis.com/calendar/v3/users/me/calendarList/primary: (404) Not Found' in C:\wamp\www\newOLP\scripts\oAuth2\Google\Http\REST.php on line 110
Google_Service_Exception: Error calling GET googleapis.com/calendar/v3/users/me/calendarList/primary: (404) Not Found in C:\wamp\www\newOLP\scripts\oAuth2\Google\Http\REST.php on line 110
 
12:48 AM
@Matt are you using PHP?
 
1:06 AM
@royhowie yes I am
 
:-(
 
I did a return before the error the line occurred at and it gave me "( ! ) Fatal error: Call to a member function getSummary() on a non-object in C:\wamp\www\newOLP\scripts\oAuth2\oAuthPhp.php on line 65"
What wrong Jan?
 
PHP is
 
Why?
 
1:15 AM
What is the point of assigning a variable name to an IIFE? It seems like you can't call it again anyways? See:
> var M = (function(){console.log("VAR M")})();
VAR M
> M
undefined
 
@Kitler Have you had any referrals from your profile?
@ApathyBear In that case, there isn't
usually the IIFE returns something
 
I see
 
Aha. Nice rant. I agree. Xd
 
@SomeKittens DO referrals?
 
@Kitler yeah
 
1:16 AM
I have ~3 not sure where they came from though
 
!!> var c = (function () { var nextId = 0; return function generateId() { return nextId++; })(); c()
 
@SomeKittens "SyntaxError: missing ; before statement"
 
well, you get the idea
 
Yea I get you.
 
2:04 AM
oi
 
 
4 hours later…
6:15 AM
w3schools.com/cert/default.asp lol w3schools offers certificates
 
I'm wondering if I'd rather shoot myself in the foot literally or by buying one of their certificates
 
I think all certificates are useless, but a w3s one would probably provide negative value
see it on a CV => no hire
 
7:06 AM
ugh, if only I could use arrow functions!
var that = this;
this.generateHash(password, function (err, hash) {
    if (err) {
        return done(err);
    } else {
        that.password = hash;
        return done();
    }
});
until I added var that = this (to access the User model), the password wasn't being saved, because this no longer referred to the model
this.generateHash(password, (err, hash) => {
    if (err) {
        return done(err);
    } else {
        this.password = hash;
        return done();
    }
})
 
.bind(this)?
 
@JanDvorak eh, I guess; I think using that is clearer
anyway, last year, when I was first learning node and express, I followed this guide to learn how to use passport
I never really paid much attention to config/passport.js and have been copypasta'ing it in all my projects
sort of annoyed I never looked, since their file is really bad/promotes bad programming practices
 
7:34 AM
@AwalGarg yeah
 
8:07 AM
there is no scala room ? :(
 
8:31 AM
I was hoping if someone knew Scala here?
 
@argentum47 ask the Java room (if there is one)?
 
@SomeKittens what is Batarang?
 
@royhowie browser plugin for debugging and profiling Angular.js apps
Very helpful, I'd definetely recommend using it if you're working with angular
 
stackoverflow.com/questions/30284965/… I feel like this should be possible with only html/css (no JS)
 
8:42 AM
!!define hoe
 
@MadaraUchiha hoe An agricultural tool consisting of a long handle with a flat blade fixed perpendicular to it at the end, used for digging rows.
 
@royhowie You can't create that with just html/css.
@royhowie Also, CSS cannot respond to clicks, so yeah, JavaScript is required.
!!nudge 25
 
@MadaraUchiha Nudge #6 registered.
 
@rlemon Youuuuuuu sonovabitch
Touche. Well done.
 
does rlemon has a crush on that woman
 
9:08 AM
@MadaraUchiha nudge
 
@CapricaSix Domo
 
 
2 hours later…
10:40 AM
@Room hi, good morning
 
10:55 AM
hai
 
Hai
 
whats up ?
 
I'm studying :/
Well, evidently I'm not, but I'm supposed to be
 
@SomeGuy Whatcha 'possed to be studying?
 
"Engineering Mechanics"
It's kind of interesting, but I'm sick of it
 
Not all of it, but I've seen some of the stuff on the repo
It's awesome
 
buy it ?
 
Yeah, I think it'll be worth it
 
just did
 
Nice. Tell us how you like it!
 
11:05 AM
Day after tomorrow is my exam
i need to study.
ps the vc meeting went well today
 
Haha mine is tomorrow
Which exam do you have?
 
@SomeGuy good luck.
@SomeGuy Semester / College Finals
Subject : Soft Computing ( Which should be named as poor mans AI )
 
I thought you were done with that
@Abhishrek Congrats!
 
@SomeGuy finally now i will be.
once and for-all
though i have a very strong urge
 
Awesome
 
11:06 AM
to quit college on my last exam xD
 
Haha just stick it out, man
 
people quit on day 1 i quit on day t - 1
@SomeGuy yeah wil have today
 
11:35 AM
so, I'm writing a codepen blog post on tips and tricks of canvas animations. Thoughts? (of course it's just a draft, it's not even 1/3 )
http://codepen.io/MateiGCopot/blog/canvas-animations-tips-and-tricks
 
@towc 404
 
-_-
probably only visible by me for now
 
Yeah I 404 too
 
404
 
so, do you like my 404? :D
 
XD
 
12:58 PM
Just gave that talk, was fine, sped through it too fast but was fine.
 
@BenjaminGruenbaum sowwy I couldn't be there
Was it recorded?
 
what a dog.
 
1:14 PM
@Zirak Sometimes I worry that about you as well.
 
 
1 hour later…
2:39 PM
Hello @BenjaminGruenbaum !!! Could I ask you something about an algorithm?
There are given three vectors v_1, v_2, v_3 of dimension m where the elements are real numbers.
Can we determine if there are 3 numbers, one from each of the vectors, that have sum equal to 0, with an algorithm that is quicker than $O(m^2)$ ?
 
user1596138
3:24 PM
@HatterisMad
 
user1596138
 
user1596138
@SterlingArcher almost wastedgifable
 
3:58 PM
Hi guys, JavaScript beginner here, i found some code written in jQuery but i needed it in JavaScript, could someone 'translate' it please.
function selectCourt(id){
$(document).ready(function(){
$.ajax({
data: 'id=' + id,
url: "ajax_house.php",
success: function (result) {
$("#house").html(result);
}
});
});
}
 
@user3620442 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.
@user3620442 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.
 
Go home cap, you're drunk
!!info
 
@rlemon I awoke on Thu, 07 May 2015 12:36:42 GMT (that's about 10 days ago), got invoked 582 times, learned 340 commands, but forgotten 3 commands
 
@Zhegan hey how come you are always here but never speak anything? Is this a bot account for a room regular?
 
user1596138
@AwalGarg Zhegan = NSA
 
user1596138
4:09 PM
> Zhegan
chat user since 2011-02-15
last message 104d ago
last seen 1m ago
 
user1596138
Whoa. Yeah, maybe somebody died with chat open 104 days ago?
 
user1596138
Mar 26 '14 at 8:51, by Zhegan
@SomeGuy http://jsfiddle.net/89Mfa/
 
user1596138
lol that fiddle. I hadn't ever thought of that happening before
 
@Zirak is Zhegan your sock acount? (Zirak ... Zhegan; sound similar so I thought maybe)
> 1 all time rooms
> 17 all time messages
there's got to be a badge for this guy. Always here. All the time, never speaks a word.
 
4:28 PM
@royhowie ivarni covered it, browser plugin that helps with Angular debugging.
I'm a collaborator, so ping me if you have comments or issues (or just open an issue)
 
@SomeKittens you can do nlogn easily
Lol wrong ping that was for @evinda
Also, mobile sux
 
btw, are there any good reference materials where I could learn about "why should you use angular 2" out there, @SomeKittens >
 
@BenjaminGruenbaum Firstly we sort the vectors with the O(m*logm) algorithm, right?
But then how could we find the three elements such that their sum is equal to 0 in time O(m*logm) ?
Could you give me a hint?
 
you might recall that I avoid frameworks in general, but I would prefer to keep up to date with this stuff anyway
(in case I actaully come across a situation where framework is really the only good approach)
 
@AwalGarg this sounds like a relatively easy to fix bug bugs.php.net/bug.php?id=64822
 
4:47 PM
Hello guys I'd really appreciate it if you could give me a hand with this code cuz I am stuck and don't know what to do. stackoverflow.com/questions/30276953/…
 
is it possible to make this gallery instagram-gallery-umc.herokuapp.com grid fit exactly to the screen size
so like the image sizes are chosen proportoinal to the screen size so theres no half an image or cut off part on the last row. know what i mean?
 
5:04 PM
@FlorianMargaine \o/ lxr.php.net/xref/PHP_5_4/ext/gd/gd.c#3933 here I see the definition of the internal function called, and from what I understand, something similar to an fclose is missing, right?
 
@AwalGarg should be
@AwalGarg first step is to create a branch, create a failing test, fix the code, make the tests pass :)
@AwalGarg 5.4 is security fixes only btw, so work on the 5.5 branch
 
hi
 
@MadaraUchiha hey
 
@FlorianMargaine great, I will spin up a windows vm and try to fix it (I can't repro it on linux anyways so vm)
 
Hey
Is this true? Will io.js merge back into Node?
 
5:15 PM
yes, soon.
 
@tereško It's not something that'll make you go from no framework to framework
but it is a very nice framework
 
@GabrielTomitsuka docs.google.com/document/d/… scroll down and find "Join the node foundation"
 
hi
does anyone know a good epub reader
for windows
 
Morning. :)
 
@ApathyBear good morning
 
5:31 PM
@ApathyBear hullo
how's the job hunt?
 
@evinda how'd you do it for 2?
 
@SomeKittens It's slow. I have been pretty picky so far.
Going to hop on Hired soon, though
 
@ApathyBear very cool
Wish I had some advice on what kind of picky to be
 
@BenjaminGruenbaum We look at the elements that are at the midpoint of the interval. If the sum v1[mid]+v2[mid]=0, we are done. If v1[mid]+v2[mid]<0, we increase j till v1[mid]+v2[j]>=0. If v1[mid]+v2[j]=0 we are done. Otherwise, we decrease i till v1[i]+v2[j]<=0. If v1[i]+v2[j]=0, we are done. Otherwise we deduce that there are no two numbers such that their sum is equal to 0.
Is my idea right?
 
I want a job that has Javascript involved to some degree
And that won't low ball me >__>
 
5:47 PM
@ApathyBear Average JS job around here is 135k
 
user1596138
I don't give advice on careers, I'm not in the position to ;p
 
user1596138
Like some of the other users here.
 
user1596138
@SomeKittens and a home costs $3K/month xD
 
user1596138
Where is "here"? I want to compare cost of livings
 
Bay area
 
5:48 PM
@Jhawins My rent is $1,490/mo for 1BR
 
user1596138
@SomeKittens Oh nice that's not so bad. You always make it sound worse :P Do you have a long commute?
 
I'd much rather put half of a Bay Area salary into savings than 80% of one elsewhere.
@Jhawins I always pick the stuff that's right in SF because it's fun to scare you folks.
I live in Alameda, not SF. Commute is ~40 minutes.
 
user1596138
> $85K in Papillion: Comparable salary in San Francisco, CA $161,027
 
user1596138
Jesus christ lol. I can't even wrap my head around this.
 
3 mins ago, by SomeKittens
I'd much rather put half of a Bay Area salary into savings than 80% of one elsewhere.
 
user1596138
5:52 PM
IF you can save half of it.
 
Those VC dollars are sure fun!
@Jhawins I'm at ~55%
 
user1596138
You haven't had that job that long lol
 
how does that change the numbers?
 
user1596138
And you still live in a 1BR. What is it going to do to your salary when you get a real-sozed home?
 
I've been here for two years
 
user1596138
5:54 PM
I'm just saying. It works great when you live as if you just got there.
 
user1596138
I don't have much info on your specific situation, please don't take me as judging.
 
user1596138
I just can't picture not spending assloads of money to live like a normal person in the midwest
 
if you're dumb enough to buy a house out here, that's your own fault.
 
user1596138
That's what I mean. I can totally buy a house here.
 
user1596138
Not that I want to
 
5:56 PM
I could too, but I can't justify the investment against the market (given how long we plan to stay out here)
 
Where do you plan to go next?
 
user1596138
But no really that's sweet. You have the potential to save SOOO much more. The purchasing power of those dollars is 2* anywhere else in the world and you can spend it anywhere else in the world. So
 
I always thought Seattle/ Austin would be cool..
 
@ApathyBear back to the Northeast US
 
user1596138
Idk where I'm gonna end up but tbh I could see myself in this area (maybe at this job, too early to say) for a very long time.
 
user1596138
I've always loved the thought of emigration.
 
I live in Los Angeles right now. I am looking for jobs in two places tbh
In the bay or down here
 
@ApathyBear ...wait what? I thought you were on the peninsula.
 
Yea I used to live in San Carlos/ Redwood city, moved down
(I am from LA)
Spent some time here doing remote work, life was good. Then the company ran out of money
 
user1596138
I'm not allowed to think of future endeavors right now.
 
user1596138
6:02 PM
I just moved 620 miles lol
 
@evinda how fast can you solve 2 equations with 2 variables?
 
o_o where did you move from?
 
user1596138
@ApathyBear Indiana to Omaha, NE area
 
user1596138
I am to establish credit and increase my net worth for the next... Uhh... For awhile. Because now I get my old monthly pay 4 times a month
 
NEBRASKA !
That place was a myth to me for awhile
 
user1596138
6:05 PM
@ApathyBear this area isn't like the rest of Nebraska. The other side of town is Iowa, a little southeast is MO and a little southwest is KS. It's hilly and full of trees and Omaha is a 1.2mil person city (10 minutes from me)
 
user1596138
If you go west for too long it turns into absolutely nothing I am told. But this area isn't so bland honestly (compared to my 20K person county back in Indiana)
 
Thats awesome
I had just never met anyone from Nebraska before
 
user1596138
@ApathyBear @Loktar works here too, I got a job at his place of work actually.
 
Yea I think he mentioned that earlier, what company is it?
 
user1596138
Ehh. I don't like to share my own company employment details and on top of that I would now be sharing @Loktars (which I haven't seen him publicize either), so I'm gonna have to skip that one.
 
user1596138
6:08 PM
You have never heard of it though. It's not a company that people would recognize from outside the area I don't think
 
Fair enough, I wasn't asking for the company specifics, more like what you were going to do there
 
user1596138
Ah :P. My title is software engineer, but I am focused on front end right now. I could take up backend or DB tasks if I wanted to though.
 
user1596138
We do scrum
 
user1596138
Lots of JS, we are using React heavily on the project I'm on right now.
 
user1596138
I think the backend is .NET so I have no interest in backend dev here lol.
 
6:11 PM
Cool :o
 
user1596138
It's pretty cool. Pay is hilarious to me cause I used to work for $15/hourly
 
Haha, thats a nice come up then :P
I'll tell you one thing about the Bay area I miss the most -- the Coffee. The stuff down in LA is garbage
 
Hi, has anyone had problems with their posts being viewed? the last two posts haven't had anyone view them at all except myself
 
Hey all
@RichardHarris edit your posts to update them. Don't comment.
@RichardHarris there's a little edit link
 
thanks taco. I tried that also but didn't seem to help at all
 
6:22 PM
I upvoted your questions at least
 
will try editing it again see if it gets any attention
ok, thanks taco! sunday is often a good day so might get someone look at it lol
how do I find it in the questions list? can't see it there anywhere
 
I see them in your profile
 
yes, but I mean in the general questions section?
If they aren't in there then I'm guessing people won't be able to see them to help?
 
@RichardHarris you can always link us the posts
 
don't like to post them in here feel like i'm pestering people but if anyone wants to take a look i'd appreciate it
Ok, after the edit it has posted as updated, now on page 8 of the questions lol thanks @taco
 
6:33 PM
no problem. You worded the question well. Maybe you just posted late at night
 
yes, was thinking it might not have been the best time but had been working on the coding all day and thought I'd see if I got anything over night
glad it made sense at least lol
@taco do you think it is easy to implement what I'm trying to do? I need to move on so might just duplicate the coding for each chart, but if it's quite simple will wait for a solution
 
Man.. I'm so forgetting things...
Okay, I got a file path accesing this file: ex/ex/ex/index.html
I want to point a link to target.html
but target file path is: ex/target.html
How do I set a link to that file without using ../ method.
Such as it will start from ex instead of where index.html is located.
 
is there a reason for not using ../ @Matt?
 
Well, apparently when I am using the ../ method it not finding my file, so I was gonig to try to use it from the root file instead of relative path.
 
can't you just use /ex/target.html
 
6:47 PM
are you putting in two ../? like this ../../
 
I wanted to go up 3 folders I believe so I did ../../../<file path>
@nick I tried to do that, but it didn't work. I'll try again.
@nick It didn't work
 
uh
 
what I did when having this problem was use ../ to go back to the root then specify the whole path
 
user1648409
Why is some css selector like that:
$('input[name={\'Firstname\': \'' + first + '\', \'Surname\': \'' + sur + '\'}]')
Not possible in jquery?
 
are you hosting these files or not?
 
6:51 PM
Files are on wamp server in a www\ folder
 
ok
 
rather than say just going back two
 
@RichardHarris wouldn't / represent the root though?
 
so in your example would I think be ../../../ex/file
I mean your first root folder of your file structure
is this in a css file btw?
 
Me? No, it is a JS file. I should add I'm trying to use it in an AJAX function.
I thought it did, but it isn't working
 
6:55 PM
you might need four ../
try four or two, if it's not working and just specifying the whole url isn't working it might not be a problem with your file path
 
I tried :/ let me try again.
 
do you have the full line of code containing the file path you're using?
 
Yeah. Hold on.
 
@BenjaminGruenbaum In linear time, or not?
 
new/pl/ca/sc/ca.js
Is where the current js file is at.
I am calling the js script on
 
6:58 PM
@Matt Is that from w3schools? Don't ever use code samples from w3schools
 
new/pl/ca/someFile.html
Yeah, I didn't feel like making my own since I lost my AJAX handler I made.
I was debating doing it in jquery, I think I should at this point.
 
Also,
 

« first day (1674 days earlier)      last day (3268 days later) »