« first day (1123 days earlier)      last day (3808 days later) » 

12:00 AM
@rlemon Item(s) added.
 
!!todo get
 
@rlemon (0)write userscript to add individual bin message button
 
cool, cool cool cool
yea I have no answer to your question
 
can somebody help me out with this fiddle?
http://jsfiddle.net/eN7S6/
I can't make it execute upon submit
 
> Uncaught ReferenceError: showTab is not defined
 
12:01 AM
Nah, I think I'll just have a view folder, to make it more flexible
 
((inputone * 1) * (inputtwo * 1))
this is redundant
inputone * inputtwo
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>
</html>
my blog is coming along nicely.
 
Yeah, pretty nice.
 
That's my blank HTML5 template
 
Looks promising
 
I'm old school. I type it by hand
 
12:05 AM
omg you don't use Dreamweaver ?
You're so 2013
 
I proudly used DW until ... check profile to see when he joined SO 2011!
 
I imagine Dreamweaver is like a crack addiction. Can't get away from the autocomplete, but the whole thing is just bad for your health.
 
honestly the file management and auto complete + ftp integration were all I used
the file management and ftp integration I miss (n++ has OK plugins for it)... but getting rid of auto complete was the best thing I ever did
 
I even used the FTP for a while, until I just start developing on localhost only
 
i'm bad. I develop online software online (prototype in online editors like jsbin and test live)
 
12:12 AM
I would love to see new type of web based IDE, solely for web development, that eased past a lot of the manual steps with testing as you go.
Like saving, and switching the window to the browser, and refreshing the page.
 
I rely on FDD
 
Hi room. I got a question.. Maybe you can help me..
 
PROBABLY NOT
 
If you could check this pastebin.com/LKqW67fu
I got an if statement which never returns "success"
 
Anyway you could format that?
 
12:23 AM
Let me format it
Sorry about that
 
@ManolisC. EEEK
@ManolisC. better now
 
Yeap! Totally forgot it
Sorryyy
 
which if
line number please
 
still a wall of code. What should I focus on?
 
So in line 42 if you see "if (d == 'success')"
I need to set that d to success in the contact.php file right?
 
12:26 AM
d isn't a string
 
you need to return the string 'success' from contact.php
 
doing $d = 'success' in PHP won't achieve that
 
Above if (d == 'success') do console.log(d);
 
Because the form currently works. But never returns sucesfull message
 
not return, echo
 
12:27 AM
Yeah sorry
 
@ManolisC. you'd need to echo success and nothing else. Not even whitespace. Extra newlines like to creep in in PHP.
 
Hmm Ok let me check
(thanks to everyone!!)
 
ok since we are all in a helpful mood. someone design me a website!
:D
 
@ManolisC. If you send a JSON, whitespace is insignificant. I recommend always sending JSON, if only for extensibility
 
Sorry for posting code here but it's just 4 lines... is that ok ?
if(isset($_POST)){
if (mail ($to, $subject, $body, $from)) {
return "success";
}
}
 
12:30 AM
3 mins ago, by Jan Dvorak
not return, echo
 
echo "success";
 
also ensure you're not echoing anything else
 
I tried it but still getting "mail not sent"
 
4 mins ago, by Shea
Above if (d == 'success') do console.log(d);
What does your console say d is?
 
men and women of the internet! I have a question. What's the best promise/future library for node?
 
12:32 AM
It probably says some PHP error
 
My metrics for best are: fast, lightweight
 
@Shea Give me 1' to change it
 
@david why lightweightness on server?
@david I can code something for you. Just dump me the specs. $5/hour should do.
 
because all my servers are potatoes. (oversold cheap vpses)
I can code a promise library myself, i'd just like to use a standardised one
 
wait, you're fighting for hard drive space?
 
12:35 AM
@Shea If i added, then when i click submit, the page reloads
 
nope, main concern is memory
 
Mmmmhmmmm.....
 
lightweightness usually correlates to fast and stable. the main consideration is speed
 
@ManolisC. Might want to try that one again.
 
12:37 AM
@ManolisC. add a logging call just before return false to ensure the code gets there. Are you getting any exceptions? Have you checked already?
@david lightweightness usually correlates to the lack of years of incremental bugfixes.
 
He must be getting some error with do console.log(d);
 
oh. #facepalm
 
I'm not sure a promise library should have years of incremental bugfixes :S
 
I'm getting this error
[Error] SyntaxError: Expected token 'while' (contact_form.js, line 49)
Line 49 is " return false;"
 
Replace do console.log(d); with console.log(d);
 
12:39 AM
@ManolisC. reread the message that made you include do in the code. Notice what text is formatted as code. It's console.log(d). "Do" is text.
 
@ManolisC. It's okay, I add weird words in strange places all the time
 
Ok now i get this
"ReferenceError: Can't find variable: d"
 
WHERE ARE YOU ADDING THAT LINE???
 
!!s/time/time. Banana./
 
Now i added before return false as you told me :S
 
12:43 AM
@phenomnomnominal @ManolisC. It's okay, I add weird words in strange places all the time. Banana. (source)
 
@ManolisC. uh... not that line.
 
@ManolisC. Put it where you had it here but take "do " off.
 
I said "another" console.log. As in, console.log("I'm not overlooking exceptions. Duh.")
 
Pretty sure $to, $subject, $body, $from are undefined in PHP
 
12:45 AM
Ok now i get "success"(in the console) without the quotes but still getting "mail not sent"
 
@ManolisC. newlines?
 
Let me show you both js and php file
 
EEEK
 
DAMMIT!
 
@ManolisC. FFS... Just try this: if (d.replace(/^\s+|\s+$/g, '') == "success")
 
12:47 AM
protein skimmer had a bad seal..... now there is was ~3 gallons of salt water on my living room floor
 
18 mins ago, by Jan Dvorak
@ManolisC. If you send a JSON, whitespace is insignificant. I recommend always sending JSON, if only for extensibility
 
js: http://pastebin.com/G8gKs6Di
php: http://pastebin.com/GgT1nLm6
 
@Shea or that
 
nvm
 
Perfect! Now it works! Tried with @Shea
So I guess there was whitespace
 
12:49 AM
oh, yeah, and...
 
@MarioMarín 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.
 
<font> is deprecated!!!
and bad
 
Delete ?>, you don't need it
 
from the php file?
 
@Shea no need to delete it either
 
12:51 AM
Yeah, that'll probably stop the white space
 
Maybe i could also write it like this
if (mail ($to, $subject, $body, $from)) {echo "success";}
 
Why would that make a difference?
 
That won't do anything
If there's a blank line after ?>, it will send it, but if you delete ?> if won't.
 
@Shea IIRC, one trailing whitespace per file will be consumed and not sent
 
Oh ok! Thanks @Shea
 
12:54 AM
lest we forget...??
 
@JanDvorak Maybe not on Linux, but I recall having some issues with this, experimenting with my own PHP cache engine on Windows
 
0
Q: Cloud9 git push -> fatal: Authentication failed

Noah HuppertIn Cloud9 whenever I try and push to a github repository with the terminal I get the following error: fatal: Authentication failed I am using git push origin master to push to the repository. I have my ssh key added in github so that is not the problem.

 
@angularijustmether 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.
 
@ManolisC. ouch
 
@BartekBanachewicz ?
 
1:01 AM
> php
 
@Loktar Were you bitten!? Strip! Prove you weren't bitten.
 
Generating simple 2d terrain
 
@Loktar ah nice
 
posted on November 12, 2013 by Loktar

In a few of my demos I’ve used 2d terrain. I love the effect and its really easy to do especially in 2d. The algorithm I use most is Diamond Square also known as Midpoint Displacement. What’s great about the algorithm besides its easy of use is that it can be used for simple 2d […]

 
1:02 AM
@Feeds you've come late, man
 
@Loktar you could just use 1D simplex noise though, I guess.
 
yea
I might do an article on that too
 
I stole the implemenation from Florian Bosch
 
going to do one on even simpler terrain tomorrow, not sure what the method is actually called though
 
@Loktar how does it work?
also damn you're all old here :v
 
1:04 AM
@BartekBanachewicz I love midpoint displacement mostly for things like this cdpn.io/Ggolp
heightmap stuff
although you can use perlin for that as well
 
yeah start using WebGL already :)
 
heh yeah I should
I did start last week a bit actually
hard to find tutorials that dont use three.js though
I should just read some opengl es tuts
 
If you struggle with something, I might be able to help
 
damn, now my article is likely to look like shyte
 
WebGL isn't that different from OpenGL after all
@Loktar yep.
 
1:06 AM
I mean... you already wrote an article. :P half my work is done :P
 
> Why Learn Javascript
 
@rlemon hah nice Im going to do 3d rotation later this week actually
 
@BartekBanachewicz see the brackets
 
@rlemon your irony meter must be off today
 
a lot of your topics are things I plan on doing, minus css/trees/html5 video
 
1:07 AM
y'all will teach me JS, and I'll teach you 3d graphics :v
 
@BartekBanachewicz deal :P
I actually used to do 3d all the time years ago
see loktar.com lol
a few of my older programs
 
@BartekBanachewicz is that your field? Real time or photorealistic (or somewhere in between?)
 
^ my fav part
lol Im going to include an animated gif with every article from now on I think
 
.
Hey people
 
@phenomnomnominal conformance at work, realtime as a hobby
 
1:12 AM
did you make the gif?
 
yea
 
nice
 
i'm making some Kraft Dinner! that is also cool
 
I asked for what I was making at my old job at my new one - Boss said he'd rather give me a raise. YES
 
1:15 AM
@SomeKittens did you make that?
 
No, sadly. I did make a gif with that: googlyify.2013.nodeknockout.com/show/AZNbTeEEO
 
That's swag
 
@SomeKittens LOL
 
@SomeKittens what! It's not even automated!
 
 
1 hour later…
2:41 AM
It has arrived!!!
http://www.razerzone.com/au-en/gaming-keyboards-keypads/razer-orbweaver/
 
0
Q: JSprint Set Printer shared printer

Lucas JuanHow can I set the printer name in jsprint if it is a shared printer? Because if I just name it as is the printer name I got an error saying that it cannot see the printer. Thank you guys.

0
Q: Remove part of an url in pagination

CraigI have a javascript function that I use to get the user's screen resolution by which attaches it to the url for me to use elsewhere in my site. It does this by placing something like this. r=1;width=1366&Height=768 at the end of the url. The full url loooks like this http://localhost/main-video...

 
3:24 AM
@Imperative 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.
 
3:36 AM
@DD. u aren't back yet :'(
i mis u
 
@AbhishekHingnikar DD. is afk: stalking
 
@monners I suck with those man
I have the lower model of that
cant remember the name
but I cant get used to it
 
4:16 AM
@Loktar Yeah, I have nostramo (lower version) but this arrived in the mail today. Tried the Logitech G13 as well, but this is much more comfortable
Once ya get used to it it's amazing. Being able to use your thumb for 4 functions instead of just one is awesome
well, 6 functions when you include the two trigger buttons
10 functions if you map the diagonals :P
 
heh nice, yeah Nostramo is the one I have
 
5:01 AM
@Chandranshu 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.
 
Morning
 
Hi Sneha
 
@snickle 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.
 
Morning everyone!
@AbhishekHingnikar hi bhai!! :)
 
5:20 AM
Has anyone worked with Sammyjs?
 
@JuzzCoding \o good morning
@BadgerGirl where di u saw sneha o_O ?
 
Oh, that's Suja. Damn names.
 
@BadgerGirl xD
 
5:36 AM
@AbhishekHingnikar , @BadgerGirl is your sis ..
:)
 
yes :P and so are you
omg sisception ?
 
Hiyalo Guys
 
5:46 AM
lol
 
6:31 AM
WHY ON EARTH IS JAVASCRIPT A GRAVEYARD NOW
 
7:17 AM
0
Q: Advance word match javascript library

user32025I am looking for a word match library that can be used for "text suggestion" drop down menu. Few criteria of what I am talking about: The .search or indexOf will match with anything but don't differentiate words like "The", "An"... in beginning of the string. For example, if query=the, then i...

 
7:42 AM
@AbhishekHingnikar US veteran day ?
 
room mode changed to Public: anyone may enter and talk
 
@BenjaminGruenbaum :-(
besides good morning :-)
 
Any idea why that would get downvoted? stackoverflow.com/a/19860108/1348195
 
@BenjaminGruenbaum I suppose it's because you see to advocate the join+string manipulation solution
 
> I don't see the issue with a _.map - it sounds like the better approach
 
7:51 AM
Your answer would probably be better with the "_.map is OK" part before
@BenjaminGruenbaum I know what you mean
I just think the reason you got downvoted is because your answer starts by making a bad suggestion.
Happens to me all the time
You should probably keep this solution to a second part : "Now, if you really want a no _.map solution, here's one, mostly for fun:"
 
I like tomalak's solution more
 
I don't
I don't see the point in making a reusable function when you have a function like _.map already ready. Unless you do this swap dozens of time in your code, which seems unlikely.
This is really a good use case of _.map, there's no need for anything else.
 
@AbhishekHingnikar hey man
 
@MikiBrv 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.
 
8:07 AM
@DannyBeckett \o
thats opinionated
for a beginner Benji's code is kinda shocky
 
@CapricaSix Do bots help answer questions on xcode?
 
@AbhishekHingnikar lol... I wondered if you could do me a quick favour... my phone went for a swim, so now I'm on a piece of shit Nokia... I haven't heard from Sumi, she was supposed to email me about 2 weeks ago. I sent her the payment already. Could you WhatsApp her for me, asking what's going on please? :)
 
@Shea ["x","b","c","x"]
 
!!>Array.prototype.replace = function (search, replace) { return this.map(function (value) { if (search === value) return replace; else return value; }); }; testing = ['a', 'b', 'c', 'a'];testing.replace('a', 'x');
@BenjaminGruenbaum I think the simple answer would have been "no, not without some extra wrapper code."
 
8:29 AM
0
Q: MSGesture events from Iframe in WinJs

kumarI am using MsGesture() to get gesture s from my app(HTML/JAVASCRIPT). I working for Swipe gesture from IFrame for few days; var div; var gest; gest = new MSGesture(); //div = document.getElementById("div_Id"); div = document.getElementById("iframe_Id"...

 
@AbhishekHingnikar Let me know :)
 
@AbhishekHingnikar how is tomalak solution better... even I don't understand it
 
Its not better i just find it more explainatory
 
I don't understand it
I mean, I'm not a noob, how it is simpler/more explainatory/better, when I don't even understand it?
 
regardless though i have upvoted both answers
@DannyBeckett da hell
 
8:42 AM
?
 
well... i know for a fact what shes into these days, college has campus drives
and shes currently incharge for the c.s. department (so yeah i report to her if i want a job via college)
but i will talk to her
 
yeah but do you remember me asking if you'd seen what she'd made?
 
and also you can install blue stacks on your computer :P and use whatsapp on it :P ... thanks in advance
 
she said she was going to email it
 
i haven't been able to meet her , so nppe
i am kinda stuck
into building something awesome !
i will call her after college hours today besides i wish to conversate with you
 
8:44 AM
nice, never knew about blue stacks
 
thanks abhi! :D
i'm there
 
8:56 AM
@DannyBeckett come back ?
 
if he comes back he will read it but how he reads now?
 
@web2students.com i can call his phone
 
@404NotFound nice name
 
@404NotFound i am using ur picture
my pic is not found
 
9:12 AM
o/
 
@GNi33 \o
 
@AbhishekHingnikar thanks buddy
i need one help in jquery
 
@DannyBeckett whoops my internets
 
@AbhishekHingnikar Your webcam has gone black
 
9:27 AM
refresh
 
can anybody help in jquery problem
 
which/what problem
 
who was it ? identify yourself
 
rejoin if you want, whoever it was :p
 
@404NotFound oh sheesh, just ask your question
Don't ask if you can ask.
 
9:31 AM
jsbin.com/iMAzehE/4/edit here instead of anchor link i want to show pop up when i sumbit form
 
and after the close window's popup? @404NotFound
 
it should go to form action page
 
@404NotFound You probably don't want a popup window
i could show you how, but most browsers strongly dislike popups
 
@Neil i want to show message to user when user clicks on sumbit button
message must be in popup window...
 
ok I understand and I write...
 
9:36 AM
$('input[type=submit]').submit(function(e) {
  e.preventDefault();
  // Show dialog here
});
@404NotFound Like this?
 
This not function... @Neil I had similar problem...
 
when i click on sumbit button nothing seems to happen
 
@404NotFound maybe because you're not doing anything?
 
if i remove above code then it's redirecting me to my action page
 
Can you show me the code where you have a submit button?
There is no submit button on the page you gave me
 
@AbhishekHingnikar remember to watch that video :P youtube.com/watch?v=0kezjj03ao4
 
@404NotFound Ok, now you have a submit button, but you're not connecting it with anything
 
sure :D
i think I have watched it on Indian television
 
ah ok!
 
It isn't enough to throw a button on a page. You have to specify what happens when you click on it
If it is a submit button, it is usually meant to send a request to a server, but if you're using it to show a dialog, you should probably use input type="button" instead
 
9:47 AM
or <button>
 
@Neil in form action i have mail.php file.... when user clicks on submit button first i want to show dialog box to user... when user clicks on close button it will go to my form action page which is mail.php
 
@404NotFound Think about it for a second: these are two distinct operations
 
yup this is client requirement.. i dont know how to deal with it
 
You have a button which when clicked, opens the dialog
That's action #1
Once you have that, you need to do something when that dialog closes, that's action #2
It seems to me you already have action #1 working fine
even if it is not a button
Am I correct in that assumption?
 
yes exactly
 
9:51 AM
@DannyBeckett i think shes racist against ourself (XD)
thats definitely not how you speak like an indian hahaha
 
@AbhishekHingnikar so now an indian is teaching me to be racist....nice! :p
without me even knowing it
lmao
 
i left a comment on the video actually, but she never replied
 
just be yourself we will adapt and you dont have to make sure people feel good or bad
 
apparently she was Miss India, haha
 
9:52 AM
i will be with you most of the time to translate :P
 
Okay, in your <a href="#close" title="Close" class="close">X</a>
 
cool ;)
 
chick.very_beautiful === true && chick.witful === false
 
You need to add onclick="$('form').submit()"
 
she's not beautiful!
 
9:53 AM
assuming the form works, when you close the dialog, it will go to mail.php
 
i've seen good looking indian girls, she's not one of them
 
shes almost 50+ if she was mis india back then she would be
 
lmfao, true
 
you will need to make your form action be mail.php though
@404NotFound You with me so far?
 
yes i am here only
from jquery how i can make action ?
 
9:56 AM
ehehe wait that I write..
 
@404NotFound See above
In the code above, when you click on the close button, jQuery looks for "form" tag and then triggers submit on it
All data that you have in the form will be sent to the mail.php (assuming action="mail.php")
 
Is there a way to calculate the font-size for a text to fit into a div, WITHOUT a while loop?
 

« first day (1123 days earlier)      last day (3808 days later) »