« first day (963 days earlier)      last day (3968 days later) » 

2:00 PM
"Me" the interpreter does handle references, "me" the programmer doesn't have to know about them.
Because I don't deal with the references themselves. Only the values.
 
You as the programmer does have to know about them, because for example {} != {}
 
Wait a minute amigos
Zirak you said i can use the second and third parameter and change the values inplace in array right ? So those changes do appear in the original array , similar to call by ref in C
 
When you're comparing anything but a primitive value type, you're comparing references.
 
!!/tell Darkyen mdn Array.forEach
 
2:01 PM
@BenjaminGruenbaum ugh, you know what I meant
 
Are coworking spaces no longer a thing that happens?
 
@Zirak i know that -_-
 
Yes, that's what I meant
And it's not similar to call by ref!
 
@Zirak I know what you meant and I know that you understand how the language works. I just like being a precise asshole from time to time, we pass references by value :)
2
 
^
 
2:02 PM
"from time to time" would suggest there are times in-between when you aren't
 
@RyanKinal I missed the boat on coed bathrooms.
 
@Zirak When I sleep, most likely.
 
Find it in the memory, and change it!
 
@rlemon ?
 
at first thought i'm like. yea! coed bathrooms... then I think... wait... I have to endure their poop and they have to endure mine. not a good idea
 
2:03 PM
I'm confused
 
@RyanKinal coworking spaces made me think of coed bathrooms
my mind wanders
 
Do you make fish faces and talk to your fish
 
@BenjaminGruenbaum Don't lie, you dream about correcting my syntactical ambiguities.
 
Anyway... I was just thinking that I can really do my job from anywhere, as long as there's a decent internet connection. So, why shouldn't I travel, if I can find a place to work in my travels.
 
2:04 PM
@Gacnt nope. I don't "talk" to my fish. I yell at them
but only when they are being bad
 
Then I looked up some coworking spaces, and it seems they're all dead.
 
At least, in the two cities I tried.
 
Does anybody else have to be up at 4:30am for work
 
canada!
CANADA!
 
2:05 PM
Canada! \o/
 
are we the only canadians, eh?
 
Kendall
 
<--- kinda wants to be Canadian
 
Incognito as well
 
<--- grew up watching Canadian TV
 
2:05 PM
Who doesn't ;)
 
Canada sucks, not enough wars and violence and crime. Also not enough Murica'
 
@RyanKinal step 1) beard
step 2) maple syrup
step 3) beer
step 4) hockey
step 5) beer
 
OMG I'VE COMPLETED ALL THE STEPS
 
Step 6) repeat step 3 and 5
 
at the border you have to give up all guns and patriotism.
 
2:07 PM
I don't have any of those anyway
 
in Canada we're too polite to be patriotic. it's rude to the other countries.
3
 
Man I'm craving chocolate right now like a pregnant lady, I could go for a hersheys chocolate almods
 
I'm craving beer like an alcoholic at 10:55am
 
@rlemon Hahahaha
 
(disclaimer: it's illegal to sell liquor in Ontario before 11am iirc)
 
2:08 PM
!!s/like an alcoholic at 10:55am//
 
Really?
 
@BenjaminGruenbaum I'm craving beer (source)
 
some exceptions for holidays, but they are just "we'll sell it later" but still no earlier.
Hours of Alcohol Service
Liquor may be sold and served in Ontario during the following hours:
Licensed Establishments: Monday to Sunday: 11 a.m. to 2 a.m. New Year's Eve (December 31): 11 a.m. to 3 a.m.
Special Occasion Permit Events: Monday to Sunday: 11 a.m. to 2 a.m. New Year's Eve (December 31): 11 a.m. to 3 a.m.
Please note: Serving hours remain the same on federal, provincial, and municipal election days.
 
@rlemon It's bad here too, they started only allowing it before 11 pm
 
rlemon drinks sour pus
 
2:11 PM
eh, I see no problems with the 11am restriction
 
Except for pubs, and also taxed it heavily
 
@Gacnt coors and creemore
 
@rlemon I see the problem with limiting personal freedoms like that instead of investing in education.
 
or red wine (merlot or cab sav) or white rum
 
Beers are going to be like 10$ for a pint here, it's crazy
 
2:12 PM
@BenjaminGruenbaum well yea, there is that, but here the government controls all sale, and therefore is the only person making money off it (aside from the distributor)
so it's in their best interest to open earlier
 
@rlemon even beer?
 
{|align=right |- |} The Liquor Control Board of Ontario (LCBO) is a provincial Crown corporation in Ontario, Canada. It is accountable to the Ministry of Finance (Ontario). It was established in 1927 by Lieutenant Governor William Donald Ross, on the advice of his Premier, Howard Ferguson, to sell liquor, wine, and beer through a chain of retail stores. Such sales had been banned outright in 1916; thus, the creation of the LCBO marked an easing of the province's temperance regime (see Prohibition in Canada). LCBO stores are generally the only stores allowed to sell distilled spirits in O...
there is one single "private" organization called "The Beer Store" which is still government owned.
 
> distilled spirits
 
but 'private'
 
If the bank doesn't call soon I'm gonna shit
 
2:13 PM
So you can still get beer at the supermarket right?
 
tl;dr the only places you can buy any booze in ontario is "The Beer Store" and "LCBO"
 
"LCBO stores are generally the only stores allowed to sell distilled spirits in Ontario" , I'm asking if that applies to beer too?
oh wait
 
with the exception of ontario grown wines, which you can get in the Wine Rack (mini LCBO with just wine) from the super mart.
 
2:14 PM
@rlemon so it's a hassle to buy beer?
 
It's like a supermarket, for alcohol
 
all owned by the LCBO
@Gacnt we have one of the largest LCBO's in ontario in Kitchener
I'm all good.
@BenjaminGruenbaum yes and no
it's a hassle if you want beer past 5pm on a sunday
or past 9pm on any other day
but that applies to all alcohol
 
@rlemon
 
and out LCBO's sell everything, wine, spirits, beer, etc. Beer Stores only sell beer.
 
@rlemon It's not that big of a deal with hard liquer, I don't need to buy a bottle of vodka and drink it spontaneously.
 
2:16 PM
@Gacnt also, we don't have those: in ontario we have "Beer Stores" and "LCBOs" and "Wine Racks" (which like I said are mini LCBO kiosks with just wine)
@BenjaminGruenbaum basically you just have to plan ahead always. Friday I buy my weekend beer if I know I want some. otherwise I just stop on the way home from work if I want beer for that night.
it's open till 9pm, mon-sat
 
I bet you're foaming at the mouth from all this beer talk
Pun intended
cause beer is foamy
 
@rlemon is pot legal in Canada? I heard it was recently decriminalized in some part of the US
 
The recruiter guys are really after ex-zynga employees
 
it's decriminalized here as well
<32 grams and it's a fine and a slap on the wrist (if that)
 
@rlemon but you can't buy it in LCBO or anything, right?
 
2:19 PM
No, just in the alley behind the LCBO
 
more often, if you are not a dealer (just some guy who likes to have a puff at home every now and then) they will just ignore it
 
@BenjaminGruenbaum not yet
 
What are the rules regarding its public use?
 
there is a big push to legalize it.
@Zirak you can't use it.
but if you hide it in the slightest you can
it's strange.
 
2:20 PM
I love getting cut off in my truck and smelling weed after they're in front of me
 
morning everyone
 
I can legally go into a head shop and buy a big ass bong and papers and all that crap. I can even buy Salvia.
 
They have that artificial weed here in my town
everybody I know smokes it x.x
 
Salvia is legal in the US too isn't it?
my friend bought an ounce while i was at school heh
 
the government understands that if they legalize it they can tax it. but it's only going to drive a divide in "underground" dealers who will just increase potency and lower prices (like what happened to moonshine)
 
2:21 PM
@Gacnt We have that problem here too, some random small stores selling pot-like chemical substances, it's really bad :/
 
0
Q: Form validator and messenger - SFormProcessor - v0

pure_codeLooking for incremental improvements on this from processor and validator. It has a lot of ground to cover, so just incremental improvements. Basically ,it copies user input to an object literal text_obj and processes and manipulates as needed. /***********************************************...

 
@KevinMurphy yes it is legal, but a lot of places just outright banned it unofficially from being sold.
 
@rlemon If people will be able to buy legally, they'll buy legally.
 
Shit makes your heart explode, fo-realz word-up to yuh mutha.
 
...you probably didn't mean "literally"
 
2:22 PM
@BenjaminGruenbaum yes they will, but their concern is that the illegal trade would not die, and would have to compete with the legal trade. The only way would be to increase potency of their product.
 
Funny one :
0
Q: Combine node.js and Django?

Cris TowiI'm so interested in learning node.js and i have some trining in Django. I'd like to know if you can combine in One Project these two backend tecnologies. I'd like to use Django for the architecture MVC and node.js for the asyncronous parts. Is that posible? or I am dreaming I'd love to know w...

 
@rlemon I think it's like alcohol in the US during prohibition... I mean, I'm not into weed, but I think it's pretty silly that it's illegal
 
I could only justify it if smoking , and alcohol were illegal too
 
@BenjaminGruenbaum agreed.
 
2:24 PM
It's tricky to legalise these things, look at how much shit we're in with alcohol.
 
@MajidKamal 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.
 
now a handful of times i've been caught with it the cops just took a look at the situation, saw we were not harming or bothering anyone, and just walked away.
and I was a kid then (<20)
prime time to get busted for smoking a joint.
 
!!s/saw/seen/
 
@Gacnt now a handful of times i've been caught with it the cops just took a look at the situation, seen we were not harming or bothering anyone, and just walked away. (source)
 
@Gacnt yea.. I don't think that is right.
 
 
you're an idiot
 
OR amm iiiiiii
 
seen - past principal of see,
saw - past tense of see
 
!!is he an idiot?
 
2:27 PM
@Zirak Doubtfully
 
You've been fooled, my darling.
 
PHP ignorant here. Is there a problem with @BenjaminGruenbaum 's answer ? Would it be better with the addition of " in a string" ?
 
@dystroy no, it works. You can escape quotes in PHP just like in any other language...
:9826040 huh?
@nl-x Gosh, please read the FAQ. If you disagree with an answer you downvote it, you don't flag it, or edit it (unless you intend to fix it). Flags should not be used for disagreement with content. I think this answer is useful and solves OP's question as I understood it, you do not, sometimes there are disagreements in community driven sites. If you have a problem with my answer you can take it to meta. — Benjamin Gruenbaum 35 secs ago
 
/wikipedia command: Yes or no?
Name it /wiki, it'll hotlink the first result?
 
I thought we already had one :P
 
2:32 PM
That's a "yes" then. Makes sense.
 
@BenjaminGruenbaum I don't think your answer works here
You should use \" maybe
 
@dystroy go ahead and edit that in
 
@rlemon So which one is right lol
 
@BenjaminGruenbaum he seriously thinks your answer is "wrong"
like won't work
 
@rlemon I don't care if it works or it doesn't, what he did was wrong, if you disagree with an answer you don't edit it to say "THIS ANSWER IS WRONG"
 
2:36 PM
title="<div style=\"background-image:url('america.jpg'); border: ... \"></div>"
would have been my answer
but the \ for escape is still correct
 
@rlemon go ahead and edit that into my CW :)
 
> +1 for america.jpg, MURICA!
@Loktar where are you
that comment needs to be said by an american.
 
are most of you not american? :o
 
'MERICA!
 
Canadian, Indian, French, places in Europe
 
2:39 PM
wtf wikimedia, I can't get a damn uri...
 
unsure how many Asians we have.
 
Hi Somebody Please help me that I want to alert message if my textarea value edited in javascript? jsfiddle.net/Sriganesh/qysaG I want to alert a message if we click out of the editor after edited or changed the value.
 
(function() {
    var editor = document.getElementById('editor_content');
    editor.addEventListener('change', function() {
        alert(this.value);
    });
}());
 
@rlemon I'm not sure your answer makes sense
 
@KevinMurphy America, Fuck ye! Come again to save the modafukin day yeah!
 
2:42 PM
@BenjaminGruenbaum he has double ' ' inside a single "
but the ' ' are being rendered, ergo one must need to be a "
so you escape the " to not have it terminate the string for the opening "
 
I'm deleting this, too much drama for me
 
Starbucks (F yeah) Disney world (F yeah) Porno (F yeah)
 
I glazed the OPs question, saw the example. That is what he wants no?
 
probably, yeah
 
0
Q: Javascript library for Java source code reference

Igor S.Could you suggest any JS lib, that will "recognize" all Java classes in specified text and create reference link to page with this class? (similar to Eclipse Ctrl+click) There are plenty of good JS libraries to highlight code, but none of them have this feature.

 
2:43 PM
@rlemon Thank you
 
I love it when #(lines deleted) > #(lines added)
 
I have a question, how Indians speak English so well?
 
@O0oO0oOO0ooO Are you serious ? Did you have meetings with Indian coders ?
 
@O0oO0oOO0ooO Who are you, and why are you here?
 
2:49 PM
What?
 
It seems you have no purpose here. Nothing to add.
 
No I never had meetings with Indian coders. I mean I have few Indian friends and they are all good in English
 
@rlemon Hi its working in fiddle. One more doubt. When i used this into my page its not working. Do in need to add anything like $(document.body).click(function() { }); like that?
 
look in the fiddle
 
jquery select cloned element to jquery each
 
2:51 PM
include options are no-wrap body
 
@RyanKinal What do you mean? What's your purpose of staying in here?
 
I have some each function to wrap a class
 
@Vinay which means this page: fiddle.jshell.net/rlemon/qysaG/1/show includes the js before the closing body tag. no need to wrap anything.
 
$('.foo').each(function(){.....})
after cloning .foo it's not working
 
I enjoy the company. I share what little expertise I have. I threaten people into using good practice.
 
2:52 PM
Ever tried checking the JavaScript of porn sites?
 
"INLINE STYLE AND I BREAK YOUR FUCKING LEGS!" ~ Ryan Kinal
 
@RyanKinal You threaten well.
 
@rlemon yeah. But I want to try this to add in a seperate js file and make it work
 
how to select cloned to .foo element for each
 
!important and they'll never find your body
 
2:53 PM
@Vinay you can include seperate js files in the body as well
 
normally I use .on function for click event
 
@Vinay tl;dr best practice is to include this stuff in the body before the closing tag for perceived performance.
 
but now how to do that
 
@RyanKinal Was that a response to my question?
 
@rlemon Thank you so much. #
 
2:54 PM
@O0oO0oOO0ooO Yes.
 
I enjoy my room, college and work too
 
okok / badbet... /donttabthis...
TemporaryNickname / Oo00ooo0o
DumbSearch / kiddie names

.. who else
 
Question Generator
Jun 1 at 7:18, by Question Generator
@JanDvorak...can you solve my solutions?
 
@rlemon am using ruby on rails so its bit hard to include this into the body tag. its all like partial. :-( I want to trigger this function whenever change made into the editor by clicking outside the textarea. Thanks
 
javascript_include_tag?
 
2:57 PM
Is that a list of alter-egos, or of generally annoying people? If the latter there're always skoff and Connor.
 
pastebin.com/96ysdaem @Loktar see i told u it isnt that messy
 
BrendanGalfw/e
 
@Vinay you can't be serious
RoR can't possibly make it hard to include this into a partial.
any Ruby guys out here?
 
I just said above
 
am new to both .. :-(
 
2:58 PM
ok, well i'm telling you this is the path to take
 
<%= javascript_include_tag 'whatever' %> put your js in a file, and put at the bottom of your page
 
include libraries / shims / style information in the head. Store application logic / real program in the body before the closing tag. (for a general rule)
 
I included the js into ROR. My question is I added this function into the js file and when i check in the browser its not working.
 
check your console
and RoR might default to coffee-script
I can't remember
 

« first day (963 days earlier)      last day (3968 days later) »