« first day (1417 days earlier)      last day (3530 days later) » 

9:00 PM
that exist in hundreds of websites. Am I wrong ?
 
yum would let you search via an asterisks, i.e. yum list packagename*. I guess this is the best way with npm: npm search express|egrep ^express
 
@SterlingArcher If you can, you should really use ems in your media queries instead of pxs
 
Is there some sort of "package" that does Login / Sign in / User management system, that I could use like using Bootstrap, etc.
 
Our codebase is like the Bible - by finding the right snippet, you can justify anything.
2
 
@SomeKittensUx2666 LOL
 
9:01 PM
@Basj It's all a factor of effort vs reward. If it takes more time to find a pre-packaged solution than it does to do it yourself, which should you do?
 
@Shmiddty Pay someone else to do it
 
@SomeKittensUx2666 Hope I was so religious. 50% of time I can't find it :P
 
@Shmiddty sometimes you're just not aware of a well-known system
For example, a few months ago, I wasn't aware of Bootstrap (webdev is not my job)
I could have used effort (as you say @Shmiddty) to try to code myself from scratch all these design stuffs...
But fortunately, somebody told me about Bootstrap.
 
What does Bootstrap have to do with Facebook?
 
Now I'm asking if perhaps there is the same kind of pre-done stuff for user log in / sign up management
i.e. instead of re-inventing the wheel, using some package available on github
 
9:04 PM
Well you can sign up with facebook using OAuth 2 I think
 
Note the self invoking function
 
@Basj I'm pretty sure you're going to end up with spaghetti and not a wheel
 
@AdamBarak of course, I never use loops anymore - I hardly know the last time I used one... If I had your reqs I'm sure I could come up with a proper iterative approach
 
@Basj whats your development language for this project of yours
 
if the iteration is stateful you just need to compose it from coroutines to give the iteration branches
 
9:05 PM
Well, to cut a long story short, do everyone re-code from scratch the sign up page / login page / register pager / lost password page, etc. ? or do you reuse stuff that does this ?
@taco HTML + CSS + JS + jQuery + Bootstrap + PHP
 
!!youtube semi pro jive turkey
 
@Basj Depends
How bad is it?
 
9:06 PM
@Basj - I don't understand the question - no "everyone" does not using PHP to make a login form?
 
Also, I very rarely have substantial JS in my login form, let alone jQuery.
@IanClark Why not? PHP makes it very easy
Especially now with password_hash() and password_verify()
 
@SecondRikudo hope's joking you're right, PHP is AWESOME
 
I never said PHP was awesome.
I said it makes it very easy to get right.
(Without having to know crypto, that is)
 
It's made things notoriously easy to get wrong in the past :P
 
@IanClark I mean : is there a "magical stuff" (in the same way Bootstrap was magical when I discovred it, instead of recoding everything from scratfch) that prevents to re-code everything about user amangement / login / etc. ?
 
9:08 PM
Sadly, it still does.
@Basj Again I ask, depends. How bad is it?
Are you hashing passwords?
 
@SecondRikudo how bad what ?
 
How bad is your current implementation
 
i don't have any !
 
@Basj your process should be like this:
*) Have I chosen my server-side language?
Yes? -> Try and find someone who has integrated Facebook with it
No? -> Find an easy solution using an language / framework
 
9:10 PM
re-code implies that you need to code it again, hence you already have something
 
@SecondRikudo I meant re-code in the meaning : "code again what somebody has already coded"
sorry I'm not native english speaker
@IanClark what kind of framework could I use for this ?
 
@Basj any, google
 
@SecondRikudo That's pretty bad :p
 
indeed :)
@IanClark One example ?
 
@PeeHaa XD
@Basj Coding a login functionality "from scratch" should take you about 30 minutes
With all security best practices and everything
 
9:13 PM
@SecondRikudo What is your hourly rate ? ;)
 
I'm available for $15 for every 15 minutes on codementor. See my profile for details.
 
user2620028
Remember to use the same password for all users, save it in a text file in the root directory of your site and make your server file browsing accessible. Email the user their permanent password when they sign up, and dont forget to ask for their social security number and credit card number for password reset reasons even though you will never reference them.
 
@SecondRikudo And a complete Google in 3 weeks
 
@AaronSiciliano So most awesome in one single message \o/
 
@AaronSiciliano sound advice
I shall take it to the grave
 
9:15 PM
@SecondRikudo Thank you for the fiddles. I actually took that approach but applied to the form elements instead of a parent item. This is how I tweaked it to make it work (finally :D)
for(i=0;i < form.length; i++){
(function(i) {
	form[i].onclick = function(event) {
		event.preventDefault();
		form_inline[i].style.display = "block";
		alert(i)
		};
	})(i);
}}
 
@AaronSiciliano I heard these things "hashes" and "salts" - I can just completely ignore them, right?
 
Wonderful!
 
onclick o.O
 
@AdamBarak Please refactor to form[i].addEventListener("click", function(event) {
 
@JimmyHoffa Well, I have the same requirements as Reddit and SO does as far as it can go
 
9:16 PM
Try to use that from now on
 
*Hopes i is defined somewhere*
 
if it takes you 30 minutes to make a login form, it's taking too long: developers.google.com/+/features/sign-in
 
onclick is fine, so long as you know that it can only support 1 event
 
user2620028
@IanClark Make sure to always use a method that can be reversed, that way you can send out recovery emails to your users with their current password instead of just having them set a new one. Your user doesn't have to remember a new password AND hackers can redirect that email to their email to get the users password which they undoubtedly use on every website they have ever signed up on.
 
@IanClark I'm not done refactoring the code ;-) I just wanted to make it work first
 
9:17 PM
@AdamBarak onclick can only handle a single event, where as addEventListener can support multiple. Also, in your for loop, use var i so that you're not creating an inplicit global variable
 
@SecondRikudo Yes yes I'm going to do that now
 
@AaronSiciliano and could I limit the length of the password? I'd really only like it to be between 3-5 alpha, all lowercase, characters? Or is that too many?
 
(is implicit global correct? I vaguely remember having this issue)
 
user2620028
@IanClark Sounds good to me!
 
@SterlingArcher Well, for an inline editable form how many events do you think it needs to listen on? :P
Anyway yes I'm going to fix that too :-)
 
9:18 PM
@SterlingArcher global in that it propagates up to the closest object, which will be the window object in client side JS
 
user2620028
@IanClark Saves you the step of just converting it straight to .toLowerCase() on the backend anyways!
 
I think?
 
@AdamBarak exactly, so as long as you KNOW that there will only be one event, onclick is perfectly fine, and even a bit more verbose in respects to older browser versions
@IanClark that sounds right, I'm going to look it up though
31
A: "var" or no "var" in JavaScript's for in loop?

Gabriel LlamasUse var, it reduces the scope of the variable otherwise the variable looks up to the nearest closure searching for a var statement. If it cannot find a var then it is global (if you are in a strict mode, using strict, global variables throw an error). This can lead to problems like the following....

 
@SterlingArcher Yep. I'm going to use the shorter one at the end anyway
I like first to hack a code away even if it sucks like hell
then I refactor it top-down when I get it to work
 
That's sometimes okay and often terrible
 
9:22 PM
I'm more of a middle-top-bottom refactor-er
 
He's a programmer who MOVES FAST and BREAKS THINGS
 
haha
 
Right I'm running away, night all :)
 
wait a moment I can look at Reddit's source code... duh
@IanClark Night
 
9:34 PM
I don't want to spam the room with HTML, but is anybody in here knowledge with bootstrap grids and element widths within said grids?
 
Is it possible to change values of a property's value using jQuery? I am trying to change the stacking: 'normal' to stacking: 'percent' and be able to toggle it on and off.
plotOptions: {
column: {
stacking: 'normal',
depth: 40
}
},
 
@AliGajani This is a basic JS operation. What have you tried?
 
I've tried the toggle from jQuery, but it doesn't seem to work at all. :(
 
I'd suggest brushing up on the basics of JavaScript: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
Fuck dude
 
9:44 PM
!!s/e/es/
 
@SomeKittensUx2666 Fuck dudes (source)
 
no thank you
 
I'm trying to get a responsive form going, but when I shrink the screen, at a media point the inputs expand for a second, and then when you keep going it resumes normal
I don't get it >.<
 
@SterlingArcher show us your media query
sounds like its' only looking at one size instead of a range
 
It's not a custom one, it's using bootstrap grids
I only wrote 1 media query for restyling the header
 
9:45 PM
Ugh. Do it yourself, noob.
 
boss wants bootstrap son D:
 
fuck the popo
 
I wish there were a way to prove that I got downvoted by the guy who wrote the other answer :P
 
m59
Can't you see his rep history?
 
I kind of feel like if you answer a question you shouldn't be able to downvote any answers.
 
9:50 PM
Call the Rep police
 
m59
@Retsam well... just today I downvoted every other answer on a post where I have an answer.
and I'm sure you'll agree with my reason.
 
I think that you should be able to downvote other answers, but only if you would have downvoted them otherwise
 
m59
@Neil I don't even see any downvotes on you recently.
 
And seeing how nobody is really able to admit it to themselves, nobody should downvote other answers
0
A: Should I throw guard exceptions that will be thrown by internal methods anyway?

NeilGenerally the purpose behind throwing the exception yourself is to provide your own personal exception. For example, if Truncate were a method available to use in a library, lets call it ABC, it might be nice to have all your exceptions fall under a base exception called ABCException which also ...

According to his rep history, it probably wasn't him afterall
Maybe it's just my paranoid brain
 
m59
-1
A: passing parameter to javascript onclick function

BironDavidTry this var $myElem = "<li onclick=\"foo();\" class=\"item\">submit</li>" function foo(){alert("ok");} $('body').append($myElem); And with parameter var toto = "ok"; var $myElem = "<li onclick=\"foo('"+toto+"');\" class=\"item\">submit</li>"; function foo(foo1){alert(foo1);} $('body')...

this is one of the worst posts + set of answers I've ever seen.
and one of the users is 50k+ !!!!
I guess I neglected to downvote it back then for the very reason that I had an answer on it. I'm hoping for no revenge downvotes because future viewers really need to see my answer rather than the others.
 
9:56 PM
I mean, yeah, I've downvoted other answer myself if I really think they're bad... but it seems abusable enough that the abuses might outweigh the benefits.
 
m59
oh wait, that's not the 50k one
 
@Retsam like when you bleed to death from a paper cut on a winning lotto ticket?
 
I think when they thought up the voting system, they were fully expecting half to be in the negative and the other half in the positive
 
@SomeGuy ever look at an image on reddit and think something in your head and open the comments praying it is the top comment reddit.com/r/pics/comments/2f9qby/…
this was that moment.
 
0
Q: Bootstrap Grid Layout Input Width

Sterling ArcherSo I'm trying to create a simple responsive form using bootstrap grids, but it is being very tricky for me. You can ignore most of what I'm posting (the coldfusion for starters, is redundant) but pay attention to the grid classes! <div id="custom-wrapper"> <div class="row"> <div clas...

If anybody knows, great! If not, will look more when I get home. See y'all tomorrow morning! <3
 
10:02 PM
film?
 
the ninth gate
 
ok, going to try it
 
only a 6.7 :/
I liked it..
also, if you haven't seen The Outsiders, you should
 
it isn't scary... right?
the ninth gate
it's midnight here
 
ninth gate? no, slightly suspenseful, but a long drawn out suspense
 
10:07 PM
oh, ok, thx
 
like you know there is evil looming, but no one jumps out at you
 
good
 
The Outsiders is a classic. not scary or a comedy or anything, just a good old wholesome movie
I'm trying to think of other must watches you can add to your list
(I assume you have a list)
 
I don't really
 
well... make one!
:P
 
10:10 PM
I try to watch as soon as possible all of the films people tell me I should watch
 
anyone worked with meteorjs
mrt migrate-app hanging pastebin.com/u11CXWaG
 
I'm writing code to persist changes to a knockout observableArray back to my server and it really feels like I'm reinventing the wheel. Anyone know of a library to do this? I've searched around but only found a few half-finished projects.
 
is meteorjs even that popular
 
Found a new bike path to work. Runs all the way along the river. This makes me happy.
 
I will be buying this
no question
 
10:24 PM
Build your own
 
0
Q: javascript - have promises call at end of for loop

spenfI have this code and I want to make the code wait until the asyncrnous query called prom has finessed before restarting the first for loop. So the array will be reset, before it starts the first for loop again. items = []; var promises = []; for (var i = 0; i < userArray.length; i++) { ...

 
I'm kind of picky about my coffee makers. I'd have to try the coffee first
 
I console.log() an array and it outputs Array[4]. Later on, after diddling, it outputs ["1", "2", "3", "4"]. It appears as if it's not longer an "array object". Is this right? Is this why I can't call .slice() on it?
 
not sure where you get the first, but the latter looks like what I'd expect to see for an array in console.log
!!> console.log([1,2,3,4].map(String))
 
@rlemon Since you have that lorem pizza site, thought you might find this interesting smashingmagazine.com/2014/05/14/…
 
10:31 PM
@rlemon "undefined" Logged: ["1","2","3","4"]
 
@taco nice, i'll look at it. but lorempizza isn't responsive on purpose
 
A <picture> wrapper element is coming to wrap the <img> tag for responsive images
 
why the hell would you be looking up dummy images on your mobile :P
 
@rlemon makes sense
 
I see chrome log Array[x] all the time. I can click the array and see the contents.
 
10:36 PM
@rlemon I often frequent lorempizza on my 2004 nokia smart phone
 
Can anyone please help
0
Q: Define function and use as onchange in the select statement instead of directly using .change(function)

PSDebuggerWhat is wrong with defining a function and using it as onchange in the select statement instead of directly using .change(function). I want to use this to display a different combo box : function MetricLayerShowHide (){ var type = $(this).val(); if...

 
10:52 PM
Anybody here work with CommonJS?
I'm trying to decide if it adds the slightest value to follow their AMD spec exactly, or just leave the 'exports' and 'module' portions off altogether, only having the special 'require' and everything else being straight forward
 
Are you trying to recreate AMD or CommonJS from scratch?
The general motivation for following a spec is to be compatible. Otherwise it's not CommonJS, but JimmyHoffaJS. What is your environment?
 

« first day (1417 days earlier)      last day (3530 days later) »