« first day (902 days earlier)      last day (4032 days later) » 

12:01 AM
@RyanKinal have you watched the design pattern js video yet?
jesus he is painful to listen too
 
@rlemon Nope, not yet
 
wuddup?
 
Sweet!
 
ImIn++
 
so when can we start supporting ie9+ only?
like 2015?
 
12:12 AM
just get into an area of webdev where you don't have to support ie at all
 
And what, pray-tell is this mythical, unicorn-and-candy-filled area of web dev?
 
what i'm doing right now >_>
internal shit, for people who aren't noobs, and use real browsers
or shit for phones
 
Ah. Yes. I suppose that would do it.
 
it's pretty sweet
all the css3s
 
But browser fragmentation is ridiculous for phones...
 
12:14 AM
they're all webkit mainly
 
Really?
 
older versions are a little retarded...
 
@david I think web devs should start a union and refuse to develop sites for pre-IE9 browsers
 
like not supporting fixed position ><
but we seem to be targeting newer phone oses
 
According to PPK:
> There are over 20 mobile browsers. Many of them are webkit-based, but there is no consistent webkit experience
^ Eff that
 
12:15 AM
^
mobile webkit based browsers are all slightly different I find
mind you I have only tried a handful of mobile browsers.
 
how many of them are actually "major" browsers though?
Seems like safari and chrome have to make up a ridiculous majority of phone browsers
but I really have no cluie
 
PPK also says:
> If your site works in Safari, Android, Opera Mini, Opera Mobile, there’s a good chance it will work other places
 
Just not Windows Phone <7.8
ImIn++
 
Dolphin HD is pretty popular on android
 
I wonder if the windows phone will still be a thing a year from now....
 
12:19 AM
there are some other half baked browsers for android I see people using that are not chrome
 
That is some serious talent there.
 
@rlemon default browsers?
 
until android 4.0 the default browser wasn't chrome
 
I assume chrome is always default
 
it was some stupid shit
 
12:21 AM
oh damn...
 
and afaik that was to the vendors (manufacturers) discretion
 
They were just some webkit based self made browsers.
 
With chrome existing, why would the manufacturers even bother making a browser
 
Back then there was no Chrome for mobile.
 
oh nevermind.... ha
 
12:26 AM
They still develop crappy browser on their own though but now you have a choice.
 
@phenomnomnominal Does express automatically route for css and js?
 
to be honest as long as you're not doing anything crazy your site will work on everything. It's only IE that seems to really shit the bed over simple things.
 
No, you need to add middleware for static files
It's about 1 line
 
You know, sometimes I wonder what Bach or Beethoven or Mozart would say about the melody of such piano covers when they'd hear it.
 
@phenomnomnominal app.use(express.static(__dirname + '/public')); ?
 
12:31 AM
@XCritics, looks about right
 
getting 404'd out my butthole
 
do a console.log(__dirname); and check it's what you expect
 
@phenomnomnominal it is
 
You're static files are all in /public?
 
public/
/stylesheets
/javascript
/images
 
12:35 AM
hmm, should work
Not sure.
Can't really help, busy
 
Oh yea in other news, the Krav Maga they are teaching here is not what I've been looking for so that was a one-time thing.
 
do you have read permission for those files?
 
I'm either gonna go back to my roots (Taekwondo) or I'll try something new like Jiu Jitsu or its Brazilian variation.
 
I really liked aikido when i was doing that
 
Oh yea Aikido is quite interesting as well!
 
12:41 AM
although our sensei did a more martial version, rather than the stupid airy fairy style that some people do :S
 
The Krav Maga they are teaching here is kinda like a lightweight version of the military version. Of focuses on giving you means to escape a situation, and almost exclusively that.
 
is that the israeli one?
 
No or just very limited counter-attack parts.
Yea.
I mean the military version is not bad.
 
i've heard people say it's pretty much the best martial art you can learn
 
They have quick counter-attacks but this civilian version here not.
 
12:46 AM
i don't know much about it though
 
I'd love to have the chance to learn Systema Spetsnaz.
 
@phenomnomnominal fixed it with: app.use("/public", express.static(__dirname + '/public'));
 
Oh yeah, i think it changed in express 3
 
12:57 AM
bonj
 
0
Q: Loop through folder images in Canvas

BatmanI'm trying to have the canvas element on my page loop through a set of images within a folder. I've figured out how to set the image on the canvas but im not sure how to do multiple images one after another. I've thought possible using a for loop and an array but im not sure what the best way i...

 
Why the fuck do I keep having problem after problem, now my bootstrap css is all fucked up
 
Welcome to programming?
 
Gah.
 
i keep running out of ports
 
1:05 AM
imgur.com/a/A69Qt see I don't understand why just switching to express would cause my textfields to get smooshed together
 
inspect and find out!
there has to be some rule, and its not hard to find out what any space is caused by in chrome with inspect element
 
could be something in the headers...
are you using xhtml?
 
no
It was working perfectly when I was using vanilla node.js, then I just copy pasted my css and jade files, ran it in express now it's all fucky
 
is express stripping whitespace from the file?
 
I have no idea, I've been using Express for about 3 minutes
 
1:08 AM
viewsource that shit
 
Managed to fix it by setting pretty to true, no idea why that would do it, but, whatever at least I can go get stuck with something else hopefully less annoying
 
so I just tried to do the Hah, Gaaaaayyyyy to my gf... her response was; "Yea... don't do that... you can't do it right... you don't have that tw-changy voice he has... you know... the change twang."
 
Is it possible to remove the http timeout in node.js? req.connection.setTimeout(0) doesn't work.
 
@rlemon, marry her.
 
6
Q: How to set a timeout on a http.request() in Node?

ClaudioI'm trying to set a timeout on an HTTP client that uses http.request with no luck. So far what I did is this: var options = { ... } var req = http.request(options, function(res) { // Usual stuff: on(data), on(end), chunks, etc... } /* This does not work TOO MUCH... sometimes the socket is not...

from what i'm reading and what i've experienced with node... unless you're using some middleware you have to define the timeout
 
1:17 AM
It has a default timeout of 2 minutes, but I can't figure out how to change it.
Yes, I have read the manual and the source code and many questions on it.
 
github.com/joyent/node/blob/master/lib/http.js reading the source it looks like you actually have to set it to a real number
just set it to like an hour or something
 
How? Using the setTimeout method? That doesn't work.
 
nay. this cannot be changed (atm)
really it looks like a mess
 
1:39 AM
Noob question, if I have the mongodb module, do I still need to run a mongo server via command line, or does it create a server its self when I do the code for it ?
 
any one got an idea for a clever way to set up a div's style before appending so i can apply it to more than one div at same time ?
 
Well Finished TNG for like the hundredth time... Community for the third? I think so! @OctavianDamiean how many are you on now?
 
I'm still into my second time.
 
Why is it so hard to find a decent Mongo tutorial?
 
because you're a mong....go
 
1:46 AM
NO U
 
:O
 
m59
Ahahah, anyone recall me complaining that my ajax calls to cache some stuff were causing harsh lag?
It's really troll.
Probably my self-troll of the month.
I intended to pass i from a loop into a function that added its value to my object. I accidentally passed the object itself as that argument. This caused it to add the object to the object as that property, but continued adding the whole object to that object as that same property and so on and so on, until (I guess) the browser gave up and moved on.
Then, I tried to cache this monster disaster object.
And I was dealing with 7 objects of this sort, calling the cache function in quick succession.
I wonder what was causing the lag....
:)
 
m59
2:06 AM
--crickets-- Where is everyone!?
 
Playing my game
 
@copy link
 
m59
What technique does SO use for this chat?
Or, I guess I should ask if anyone knows what the best approach is for a javascript/ajax based chat is. Long polling?
 
WebSockets
 
2:14 AM
MongoDB or MongoJS
 
16
Q: What technologies were used to build the chat?

Bill PaetzkeI realize there is a similar, broader question here. But the answer is old and does not include the chat technology. Let me know (even if they completely rolled their own). Thanks! I am most interested in how they implemented Comet (aka HTTP push) it in .NET.

 
> GET http://copy.sh/iw/levels/level1.js 404 (Not Found)
:(
 
Just fixed
 
m59
@rlemon thanks
 
2:34 AM
THE APPLE KILLS YOU/
WHAT?
 
@XCritics I KNOW RIGHT?!
 
!!!!!!!!!!!!!!!!!
 
And he made the apple go higher so you lose everytime.
 
It's not even fun
 
2:37 AM
You're such a pussie
Go play Call of Duty
 
@copy is shoot not supposed to work on the first level?
 
Right
 
Just checkin
no gamefaqs walkthrough for this yet, I'll wait :P
 
I could make one. :P
 
Level 1, don't suck
Level 2, don't suck
 
2:47 AM
0
Q: social sharing script

ServerSideXCan someone explain how to grab this share tool from this site? http://www.labnol.org/internet/youtube-video-background/27933/ (bottom footer, the colorful bar that says "share / connect / subscribe") Thanks

 
Is using method='post' the only way to trigger the app.post ?
Or am I doing something wrong
 
Chrome seems to remember element state when you go 'inspect element' now?
As in it remembers if it was hovered when you clicked?
Did it always do that?
 
I don't think?
 
anyone use cocos2d-x html5?
 
    @phenomnomnominal sorry to bug yah :D I'm not sure which terms to google to parse the form information so I can use it in a function so I can register a new user, I have this,

    exports.new = function(req, res) {
    	function User(email, name, password, passwordc) {
    		this.email = email;
    		this.name  = name;
    		this.password = password;
    		this.passwordc = password;
    	}

    	var user = new User()
    }

I just need to know how to put variables into User, like req.parse.email?
 
3:00 AM
!!/google node.js get POST data
@XCritics ^
 
Thanks bud
Woo, it works!
 
m59
@phenomnomnominal did you see my post up there? I thought you might get a kick out of that.
 
Which one?
Ah
Haha, how annoying.
 
m59
It doesn't even make sense that it can add itself as a property of itself??
that's some back to the future stuff
 
guys
is this only me that who thinks websocket sucks ?
 
3:14 AM
Yes
Just you
> I think flash socket is way better
Dude...
 
Is it even possible to connect websocket to ordinary socket server?
I think no
 
3:37 AM
Is chrome intentionally making flash mess up these days? Its been kind of buggy for me recently.
that or I've been to a lot of shitty websites
 
So I have this, https://gist.github.com/Gacnt/054f7e9930311295cd0d

but at the very last console.log, it just says undefined for all the foundUser.whatever, what might be my issue here, didn't see anything when I googlged
also are people able to manually change those admin flags to 1 if they wanted to?
 
@XCritics just a guess, but maybe it has to do with the new User part. Did you try using an object just defined with {}
 
@twiz It saves just fine, I can view it with this Mongo GUI and all the information is in there just fine
 
oh
oh nevermind ha
I think you have to use find with an object
so it would be like find({email:user.email});
 
Refresh the gist
Still not working :P
 
3:52 AM
I haven;t used mongo much, so I don't know too well
 
Bah Zepto, y u no have nextAll??
 
@XCritics is foundUser itself undefined, or just its properties?
 
@tereško hi
 
@XCritics I think you need to use a forEach
 
Shouldn't need to cause it's only returning one result
 
4:01 AM
Does find() not always return an array? Either way, if you've ran that a few times, you'll have multiple rows with that info...
@XCritics What I mean is that I think its an array, so it needs to at least be foundUser[0].email, but not necessarily a loop. I think...
 
@twiz That's the answer I was looking for, woo thanks
 
yay
 
Now I have another problem :P
 
haha well, that's programming
 
Yes it definitely is.
 
4:14 AM
err I mean, what phenomomomommominal said...
 
Now I have this https://gist.github.com/Gacnt/054f7e9930311295cd0d

But I put in a random email to make sure the err would throw, but it crashes the whole app now with cannot find email for null
 
@twiz we had a big discussion in C# on what is exactly programming.
It was much fun.
 
Haha couldn't find a more vague discussion?
 
It was very specific. Not vague at all.
 
I mean broad more than vague
So, how would you define existence?
 
4:17 AM
That's a whole new question.
TLDR - I said that there is no real difference between a programmer and a user. Everyone else disagreed.
 
haha no, there is a difference. A user is a person that has a problem. A programmer is a person that does something about it.
 
A programmer inputs information into a computer that will change its state and future outputs. And so does a user.
 
@XCritics yea, I have no clue what the problem is...
@KendallFrey Well yea, a programmer is a user, but in a different context
 
It was a lot of fun to discuss.
 
A user can only be a user in relation to a specific interface.
but see this is so broad that its impossible to be wrong. haha
 
4:23 AM
The funny part was one guy was arguing that my argument was wrong, because he said I didn't understand von Neumann architecture. But my argument was only valid in a von Neumann context.
 
well.... luckily I do not understand von Neumann architecture... haha
well, I don;t know what it is anyway
 
good morning world
i am late for office -_-
cya all
 
@Darkyen thanks for stoppin by
haha
 
m59
@XCritics my wife and I have been watching IWBTG since you posted that
lolzz
 
hahaha
 
m59
4:28 AM
I eventually just skipped to video 55
night dudes
 
@phenomnomnominal Quick question, is SHA1 still good for hash?
Or has it been replaced
 
In order to hash user passwords, no, and neither is any cryptographic hash function
Use scrypt or bcrypt
 
@copy you can always use crypto.js =D
I love that library
 
Use crypto in the client and you're gonna have a bad time
 
not really, because if client sends faulty data
then it won't decrypt properly right?
 
4:37 AM
Invent cryptographic protocols and you're gonna have a bad time
(Insert picture from above here)
 
Is this still relevant?
84
Q: SHA512 vs. Blowfish and Bcrypt

ChrisI'm looking at hashing algorithms, but couldn't find an answer. Bcrypt uses Blowfish Blowfish is better than MD5 Q: but is Blowfish better than SHA512? Thanks.. Update: I want to clarify that I understand the difference between hashing and encryption. What prompted me to ask the question...

 
@TemporaryNickName If you use SSL, everything is save anyways. If you don't use SSL, nothing is save anyways. Point is, you don't need crypto in the browser
And there are more reasons than that
 
well, crypto is required for examples if your server only accepts DES encrypted data
 
@copy you familiar with MongoDB?
 
4:43 AM
@XCritics Nope
 
Damnit
 
I use SSL and do all hashing in the server.
 
Yes, I know you don't need encryption if you are using SSL or HTTPS
but crypto is still required in many situations
 
You can't use custom encryption for, say, just a password, because the hacker doesn't need to know the password if you don't use SSL. All he needs to know is what to send to the server.
 
Or he could replace your sha2 with function sha2(x) { return x; }
 
5:10 AM
Oh my shit man
How hard can it be to find Mongodb documentation on how to validate data on the database side
 
5:20 AM
 
@rlemon i did some work foru (x
@Feeds lol
 
@copy is it like, var password = bcrypt.hash(user.password);
I got the npm and I'm just reading through the docs
 
6:21 AM
@phenomnomnominal Hey so I can use AJAX in my registration, how might I return the AJAX, would it just me res.send({'success': 'Registration successfull'})?
@phenomnomnominal nvm finally found it in the api, res.json
 
6:37 AM
@Zirak Yeah, I've heard that. Have most of Local H's songs
 
@Feeds weak
 
Why is my form still submitting and refreshing to a new page?

$("#registeruser").click(function(e) { e.preventDefault();
	alert('Clicked!');
});
 
Make a fiddle
 
alright, sec
@AmaanCheval jsfiddle.net/eUT88
 
You don't have jQuery included in the fiddle
 
6:41 AM
You're not loading jquery.
 
Matt damon, so it must be on the jquery side then if it works there
 
Once you add jQuery, the fiddle works fine
 
Hello
I have a problem with regex
 
Hello
 
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.1.min.js"></script>

not good enough?
 
6:42 AM
I don't know
You might have another problem
 
My answer to a question doesn't seem to work with ' at least in js : stackoverflow.com/questions/15827314/…
 
No errors in the console? Do you see the alert?
 
What's wrong with the quote ?
 
@AmaanCheval no console errors, and no, page just redirects
 
@XCritics Try removing parts of your code that might be related to the form and see if it makes a difference
You're sure you're selecting the correct element, right?
No typos?
 
6:44 AM
!!> /^(?!.*-.*-.*)(?!.*'.*'.*)(?!.*\s.*\s.*)[a-zA-Z- ]+$/.test(" aaa-be")
 
    include header
     script(src='/public/javascripts/register.js');
     div.regbody
       form(class='form-signin', action='/register.html', method='post', id='register')
        h2.form-signin-heading Sign Up

        input(type='text', class='input-block-level', placeholder='Email Address', name='user[email]')
        input(type='text', class='input-block-level', placeholder='Username', name='user[username]')
        input(type='text', class='input-block-level', placeholder='Password', name='user[password]')
 
What is that? HAML or something?
 
Sorry, jade.
 
Seems okay
You might want to put the preventDefault on your form instead of the button, though
 
6:46 AM
Because someone who doesn't click the submit button, but hits enter in an input element in the form will keep going
 
Seems to work on the fiddle though? Should work the same here :/
oh
good call
$("#register").submit(function(e) { e.preventDefault();
	alert('Clicked!');
});

document.writeln('Test');
 
protip: Give your forms a name, access them with document.formName
 
Where have you put the JS that does that? ^
 
in register.js
the writeln shows on the page
 
Make sure it's in an onload if it's before the HTML, or it's after the markup
 
6:47 AM
its included in the body, did I do a bad?
 
Haha, personally, I include my JS at the end of the body
@copy Your game is pretty cool! No lag now, even though I have as many apps open as I did yesterday
 
github.com/Gacnt/busapp Here, feel free to run it yourself if you want
 
And now the spikes don't just appear, they slide up, so you can actually tell that they're traps
(Probably because of lag earlier)
@XCritics Why would I want to do that? :P
 
So I can go to bed :P
 
You can anyway :P
 
6:51 AM
haha not till I fix this :P
 
Have you heard of gh-pages?
 
no
 
It'd make it easier to just use that for live demos as you push to Github
 
Is it $(document).onLoad(function() {});?
i haven't used a lot of jquery
or .ready
 
I've used none
I think just $(function (){ }); does it
 
6:53 AM
$(window).load(func) or $(document).ready(func)
in the latter case it actually doesn't matter what's ... in $(...).ready(func) - and it's equal to $(func)
load waits for everything, including images, while ready just wants for the DOM to be fully loaded (i.e. all HTML transmitted)
 
yay it works now, wrapping it in $(function() {}); fixed it
so much rage
and on that note. I am out of here.
 

« first day (902 days earlier)      last day (4032 days later) »