« first day (969 days earlier)      last day (3996 days later) » 

5:00 PM
@loading... I thought my answer was pretty good, but 4 characters is a wide margin here
 
in a nutshell. and probably missing important notes.
but you see how the concept is very simple, VERY simple (which is why we asked if you understood what you are asking), the implementations can and should very depending on your needs.
 
Hmm, I'll have a look after I've made dinner. I doubt you could do it in the same way that I did it in vim though.
 
@rlemon The part after the hashbang is not send to the server ... or am I getting you wrong?
 
@copy sorry that should be 'sent with ajax'
because we are no longer making regular requests
 
I limit my time on Anarchy Golf stuff now. It can get a bit obsessive! :-)
 
5:02 PM
@loading... nice name
 
@loading... absolutely
 
just so he knows only to send the part after the hashbang, we don't really care about the domain or anything before it
 
@rlemon Oh, right
 
Any idea why would the interactive ruby console throw "unexpected end-of-file" instead of just waiting for more input?
I'm not reading any files
 
brb smoke
 
5:04 PM
@JanDvorak we sure can help without code
 
require "cgi"
puts "<table>#{
  $>.slice_before(/-/).map{|x|"<tr>#{
    x[1..-1].map{|y|y.split /|/}.transpose.map{|y|"<td>#{
      y.keep_if(&:size).map{|z|CGI.encodeHTML z}.join("<br/>")
    }</td>"}.join
  }</tr>"}.join
}</table>"
 
But just in case, what I did in vim was, copy the original line, strip spaces from the original line, reverse the copy, then scan forward to each space in the copy and insert a space at the corresponding position in the original line (with spaces stripped).
 
@rlemon smoking and coding is bad for health
 
@redline They called and said they are not gonna pay me, and that they are gonna sue me if I dont give them there domain name
LOL
Oh man, I can't wait till I get to bring in my warehouse full of lawyers, this is gonna be fun
 
@loading... string reverse is too expensive in javascript
 
5:07 PM
Yeah, you'd have to loop backwards or something.
 
@BrandonGelfand A thousand monkeys taking the BAR?
@loading... do you want to see my solution?
 
No, bitch customer wont pay me, and wants to transfer her domain name to a new place, I told her sure, but heres ur bill
 
And JS doesn't really have an analogous operation to insert, unless you use splice on an array.
@Shmiddty sure!
 
xD Shes pist, wont pay, and isnt gonna get her domain name back until she does
 
for(a in r=readline(i=0))putstr(r.slice(~a)<'!'?' ':r.match(/\S/g)[i++])
 
5:08 PM
@BrandonGelfand ur grammer is teribl
 
:cringe:
 
@JanDvorak Don't correct me, and you misspelled terrible. :D
 
@BrandonGelfand that was deliberate; I'm surprised you didn't notice the other two mistakes
 
@BrandonGelfand He also misspelled grammar, but you wouldn't have noticed that..
 
I am pissed right now, please don't screw with me, I am not in the mood.
 
5:10 PM
@BrandonGelfand go take some midol
 
 
then gtfo if you don't want people to mess with you. This is the internet.
 
!!s/with me/me/
 
>Oh man, I can't wait till I get to bring in my warehouse full of lawyers, this is gonna be fun
Aren't you like 12, where the hell you gonna get all that
 
@Shmiddty I am pissed right now, please don't screw me, I am not in the mood. (source)
 
5:11 PM
@FlorianMargaine I am not looking for a fight right now, so please don't start one.
 
!!mute 1762305 30m
 
@FlorianMargaine Please give mute duration, see /help mute
@FlorianMargaine Muted user 1762305 for 30m
 
@CapricaSix I suppose you have a headache too. We never make love anymore!
 
@Gacnt 15 and my uncle is a lawyer thanks for asking
 
I'm sure all his lawyer friends want to work for free
Cause you know, going through court is extremely cheap.
 
5:13 PM
@FlorianMargaine we're not in gallery right now
 
it's ok. The customer is made up of cells... all of which are dead. so she doesn't exist. She can't pay her bill because she is not alive. She also cannot sue as a dead person.
 
I thought the bot auto did it
meh
@BrandonGelfand dude, it's the internet. You're not going to fight, no matter how much you want it
 
@Zirak can you add a !!/lockdown command to put the room into gallery
 
Are you sure we are not in gallery?
 
only because that is a kick ass command name
 
5:14 PM
we actually are
 
It will automatically adjust their access level, which is not relevant in non-gallery mode
 
@FlorianMargaine ok I was confused why the option was not there in control access
 
@Gacnt no lock symbol next to the name === not gallery
 
ah, it still was
 
room mode changed to Gallery: anyone may enter, but only approved users can talk
now we are in gallery
 
5:15 PM
refreshed the page -> wasn't there anymore
 
@rlemon Why didn't I see the option
 
room mode changed to Public: anyone may enter and talk
 
 
@FlorianMargaine that is strange. Normally a mode change invokes a refresh
 
it does
 
5:16 PM
@rlemon Any idea why I only see Public
 
but it's still wrong after the refresh
 
@rlemon I'm not sure anymore, because of what Gacnt points to above: You can only make a gallery room starting from a certain amount of rep
 
I have to refresh again to get the icon
 
probably 2k
 
Oh
 
5:17 PM
@Kit 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.
 
Ok, was curious
 
Kit
@Zirak Halps shez borken!
And hi!
 
EL&U! I almost forgot about you guys
 
@Shmiddty hmm, yeah that's neat. Give me a bit. Cooking!
 
5:18 PM
so we need to just get her up to 1K rep
 
@StuartKaufman 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.
 
we should do an answer donation: donate good answers (before you post them) to the bot so she can post them and get 1K rep
 
We gotta power-level my account first, then we do Caprica ;)
 
no cheating
good answers === rep
 
Kit
We'll all do Caprica.
Provided she's willing of course.
 
5:19 PM
!!are you willing?
 
@rlemon Absolutely not
 
LOL
 
:(
 
Kit
Damn it.
 
Actual chuckle
 
5:19 PM
I gave my bot a moral core
 
Kit
!!my place or yours?
 
@Kit You have an avatar?
 
@Kit yours
 
!!are you willing for $20?
 
@rlemon No
 
Kit
5:19 PM
Hahaha
 
Hi, I Wont Ask to Ask but Would You Mind If I asked a question?
 
!!are you willing for $10?
 
@KendallFrey Doubtfully
 
Getting better...
 
Kit
5:20 PM
@Zirak Yes?
 
!!is there any price I can pay you to go out with me?
 
@rlemon Yes!
 
!!are you willing for $2
 
@Kit Sorry, it should work now
 
@KendallFrey Nuh-uh
 
5:20 PM
!!Will you do it for free
 
@Gacnt Definitely
 
can you !== will you
 
Kit
!!Will you do me for free?
 
no, she's a slut.
 
@Kit All signs point to no
 
5:20 PM
I can do it for free... but I often have to pay.
 
1 message moved to Trash can
 
@Gacnt Yes, absolutely
 
:9931465 Um, maybe you need a refresher on what a whore is.
 
@rlemon Better?
 
@rlemon what?
 
5:21 PM
!!should Gacnt be a room owner?
 
!!undo
 
Bot decided.
 
13 secs ago, by Caprica Six
@rlemon Not a chance
 
!!Were you lying
 
5:22 PM
@Gacnt That didn't make much sense. Use the help command to learn more.
 
I've got a javascript function which loads a dialog when the page is loaded but I wanted to add window.onscroll to the beginning of the script so it only loads on scroll but I don't know the correct syntax or how to wrap the rest of the JS in this window.onscroll tag. Help would be greatly appreciated.
 
ohhh harr harr harr
today is fun
 
Kit
@Zirak Thanks, looking good.
 
so much conflict in the JS room.
 
Kit
Bye, boys!
 
5:23 PM
@StuartKaufman you want to know how to trigger a function onscroll?
 
@Kit Sorry about all the hiccups. A chat like this is a horrible medium for a bot
 
@CapricaSix I am a bot. Occasionally run by a person, but often just a bot. Don't abuse me and I won't abuse you. how can i run caprica6?
 
And well, I suck.
 
@rlemon Yes.
 
window.onscroll = functionName;
 
5:23 PM
!!/tell web2students-com help
 
@CapricaSix thanks, com'on now we are playing at sandbox...
 
ugh... why ohh why does code sometimes not work like expected?
 
@rlemon window.onscroll = loaddiv('div2', 'page1.html'); ??
 
to clerify: like [I] expected.
@StuartKaufman no
what is the difference between:
window.onscroll = foo();
and
window.onscroll = foo;
you might need to google this one
I can give you your answer, but you wouldn't be learning anything.
 
5:27 PM
Hmm... I actually don't think I can tell you the didffference between the two
hold on
Im thinking
NOT Googling
 
hit up google for the answer
 
no nono
 
NOT using the best resource we have is a bad idea. ;)
 
The first example = a function
2nd example a variable
 
At this point, if I need to choose a dependency manager, is there any alternative to RequireJS? I can't seem to find any other (recently maintained) projects.
 
5:28 PM
@StuartKaufman ok better example: are you in Chrome? or FF?
 
Chrome
 
open up the console and type in this:
function Foo() {
  return "Bar";
}

console.log(Foo);
console.log(Foo());
see what happens and try to think of how they are different now
 
@rlemon im a noob too so can i ask a question?
 
@Connor any question but that one...
 
you could have asked a question without the noob stuff.
also, asking to ask is in itself asking. so you have left me with no options but to allow question asking.
 
5:31 PM
@rlemon am i right in saying foo returns the value of foo, and foo() executes the value and returns the output?
 
tl;dr - Foo is the function. Foo() is the return value of the function after it has run.
 
Ok...
Im lost
 
ok, you want to assign a function to the onscroll event
 
one executes the function and stores what the function has to offer
 
@rlemon Sorry about that but Instead of moving it to trash
 
5:32 PM
@StuartKaufman the real question is. Do you want to learn or are you trying to get a quick fix
 
!!/tell StuartKaufman format
 
@StuartKaufman Format your code - hit Ctrl+K before sending and see the faq
 
1 message moved to Trash can
 
window.onscroll = function() {
    loaddiv('div2', 'do-you-have-a-dirt-bike-for-sale.html')
};
 
^
in your code window.onscroll === undefined
 
5:33 PM
ok so that question got ignored
 
because a function without a return value returns undefined
@Connor no, we answered it with the information above.
 
Evening
 
@rlemon Sorry about that. Could you permanently delete that message vs moving to trash?
 
nope
I really can't
not just me being a dick.
also, @StuartKaufman what is your browser support?
 
@StuartKaufman i think you can tho
 
5:36 PM
@Connor might have been too long now
you only have a few minutes
 
@rlemon point
 
@Nile Thank You So Much For This!!
 
@theintellects 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.
 
@StuartKaufman but... do you understand the difference between the function name and the function execution?
 
@StuartKaufman next time think about what calling a function does vs. setting a function to an event does
 
5:37 PM
give a man a fish...
 
is this the right place to ask a handlebars question?
 
@rlemon and @Nile I don't yet understand what Ive got. After implementing it and looking at it for a while It'll all start to come together
 
@StuartKaufman Doubtful. You need to really know what calling vs. assigning does
 
why does nothing happen if i type this in the console?
window.webkitNotifications.requestPermission();
 
@StuartKaufman if I give you some resources (blanket types and some more specific to this case) will you actually read / bookmark them?
 
5:39 PM
Sure
Im always reading stuff
 
@Connor webkitNotifications.checkPermission() probably returning one as well yes?
 
My head often spins and I get cross eyed I read so much
I just learned a TON of PHP, MySQL etc
 
lol
 
user1596138
8
Q: Webkit notifications requestPermission function doesn't work

AlexeyI am trying to implement support for WebKit's native desktop notifications on my site. When I try to ask for user's permission to use the notifications, absolutely nothing happens. For example, the following HTML does not prompt Chrome to ask me for permission: <html lang="en"> <head></head> <body

 
but I still have a LOT to learn
 
5:40 PM
@rlemon it returns 1 on every page bar this so i presume 0 is allowed
ohhh, cool
thanks
 
@StuartKaufman here are some more general JS resources

Javascript Resources.

Sep 4 '12 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 '12 at 13:40 by rlemon

 
@StuartKaufman The reason that your original attempt wasn't working is because () calls a function. Instead of window.onload() calling the function, the function was already called and window.onload was sent to the return value instead of the assigned function
 
@Nile I still havent even made it work
Im trying to keep up here
 
user1596138
@rlemon you ever used oDesk or Elance?
 
@Swathi 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.
 
5:42 PM
hello
ok
 
user1596138
I'm thinking of doing some freelance work. But only backend stuff with PHP. I don't want to overestimate my abilities.
 
Ok Now It Works!! Cool!! I'll have to sleep on what you guys have said and I'll be referrring to the resources that others provided. Thanks!! You Guys Are Awesome!!
 
@web2students.com That didn't make much sense. Use the help command to learn more.
 
@Jhawinsss nope
 
user1596138
5:47 PM
Ah. Alright.
 
/me gives up on the js tag. it is doomed
please paste your code! so that I can post according to your code! — Areeb Siddiqui 1 min ago
Even worse it wasn't even tagged js
 
it's like some shared online workspace?
 
user1596138
@rlemon Me?
 
user1596138
Yeah, basically. It's pretty cool actually.
 
@Jhawinsss i am also looking at freelancer work but it's tough to get work
 
user1596138
5:50 PM
@web2students.com Your website is garbage... Truth hurts.
 
user1596138
So is mine XD. But I didn't write it and I'm almost done with the re-write.
 
@Jhawinsss yes it is i will improve it
 
user1596138
Well this is the difference between me and you.
I know that I have a lot more to learn, I'm not ashamed of it and I'm going to stay within my own boundaries.
You, on the other hand, seem to think that you know everything and have tried to put yourself in a teaching position using your website.
 
@tsippert 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.
 
user1596138
I == Productive and intending to learn.
You == Self righteous without validation.
 
5:54 PM
@Jhawinsss I have, for work
lots of indians...
 
user1596138
@web2students.com I'm not perfect either. But you need to change the way you see yourself before you'll amount to anything more than you do right now.
 
user1596138
@FlorianMargaine ?
 
@web2students.com Why doesn't your site let me use the back button :(
 
I just got that you are saying web2 like web2.0 - a term that was coined over 14 years ago. Really makes you seem cutting edge.
 
@Jhawinsss used oDesk
 
user1596138
5:55 PM
@FlorianMargaine I meant the Indians.. Haha
 
@Jhawinsss it's not so, i am also learning as well as writing at same time and i am learning seo also, it's seo practical practice
 
I'll never understand why people say rude things, then follow it up with 'But no offense'
 
@Jhawinsss Oh. Just saying the competition is rude because there are lot of cheap indians.
 
@web2students.com your interface isn't interface ;)
 
user1596138
5:56 PM
@web2students.com Stop trying to teach people what you yourself don't even know.
 
and usually you get shit at the end.
 
user1596138
@FlorianMargaine That'd be annoying.
 
@Jhawinsss that's the truth
ask @AmaanCheval for more information, he works on such websites
 
user1596138
@FlorianMargaine Yeah, well I'll try it I guess.
 
@Jhawinsss it's the blind leading the blind.
 
user1596138
@FlorianMargaine Mind me asking what you charged?
 
@Jhawinsss I was a client
 
user1596138
@rlemon Exactly... I'd star it, but there would be no context.
 
user1596138
@FlorianMargaine Ah ok. I'm going at it the other way around.
 
user1596138
@web2students.com explain this comment to me please.
//4 spaces or better tab. some open source use spaces in that case use spaces
 
5:58 PM
if( condition ) {
  return true;
}
return false;

^--- every time I see this part of me dies, and that part takes you with it.
 
user1596138
^^?
 
function checkLogin(userLogin $user,$userName,$pass){
	if($user->login ($userName,$pass) ){
		return true;
	}
	return false;
}
why not just return $user->login(..)
 

« first day (969 days earlier)      last day (3996 days later) »