« first day (1051 days earlier)      last day (3895 days later) » 

7:01 PM
@JanDvorak with eval I get ["panel", "{{button | snakeCase}}"]
Why would that be?
 
isn't that correct?
 
@JanDvorak Why wouldn't i get the active part?
 
@Pinocchio ah, right: wrap in parens
 
@BadgerGirl That's what you say.
 
block vs object stuff
 
7:05 PM
@JanDvorak Cheers :)
 
hi
 
I'd like to do something on my website exactly like in chat overflow rooms, you see that little arrow down in the beginning of any reply that displays the info of the reply
I'd like to do something like that
 
just an image with a hover response and a click response
and with a data-attribute linking the related element
 
are we talking about the same thing?
 
7:16 PM
@Mokkun do you mean the "this is a reponse to" arrow?
 
nope
 
the message action popup?
 
that
 
the menu is just an absolutely positioned element
with a box-shadow and border-radius
the content appears to be easy to make
 
Can i have a confirm alert without using another JS library ?
if (confirm('Some message')) {
    alert('Thanks for confirming');
} else {
    alert('Why did you press cancel? You should have confirmed');
}
 
7:22 PM
Yes of course. Why didn't you just try it though?
 
@ఠ_ఠ What's the question? that isn't a library
 
@ఠ_ఠ this is library-less
 
@Mokkun What's the problem in creating that?
 
@Pinocchio I don't know what is used to create that window
 
ok and and also need a user authentication alert .is that possible ? \@JanDvorak
 
7:23 PM
Hi all
 
?
 
(function(){

  var Duel = Backbone.Model.extend({

    defaults: {
        left_provider: 'youtube',
        right_provider: 'youtube',
        left_id: '',
        right_id: '',
        left_title: '',
        right_title: '',
        left_user: '',
        right_user: ''
    },

    initialize: function(){
      console.dir(this);
    }

  });

  var duel = new Duel({ leftId: 'pGFf3SRP1bE', rightId: '2MN1vXO5JeI'});

  console.log(duel.toJSON());



  var DuelView = Backbone.View.extend({

    initialize: function(){
 
@Mokkun html, css? bit of javascript to position it seeing as it moves
 
I got Uncaught TypeError: Cannot call method 'replace' of undefined From underscore
What's the problem here?
 
@Pinocchio could you show me a fiddle example please?
 
7:24 PM
@ఠ_ఠ uh, what? Do you mean confirm?
 
@Mokkun Do you know html & css?
 
ho i see
the template must be before the script
sorry guys
 
@Pinocchio yes
 
i have a html dropdown list.and there is a option called special .when our sales team used that option they need to have a manager level confirmation to do it.\ \@JanDvorak
 
@Mokkun So, what cant you do then?
 
7:27 PM
@ఠ_ఠ the client-side cannot be relied upon for authorisation
it can present an authentication dialog, however
 
can we used ajax and validate user pass from the database ? \|@JanDvorak
 
@Pinocchio I never seen that in html css
@Pinocchio creating a window like that
 
@ఠ_ఠ sufficiently tech-savvy users can easily access data that is protected only by javascript
 
@Mokkun It's a box just a <div> with some height, width, border-radius
 
how do you make it appear and disapear
 
7:30 PM
@Zirak |ʘ‿ʘ)╯
 
@Mokkun Try and make it. if you get stuck send me the fiddle link
@Mokkun javascript.
 
@Pinocchio I think you meant "jQuery".
 
@synth3tk no.
 
You sure? 90% of answers involve "Use jQuery", so it must be good.
 
jQuery is not a silver bullet
jQuery is just a rubber tyre for a wooden wheel
 
7:34 PM
@synth3tk Do you wan't to know why 90% of answers are jQuery
 
I should probably use the sarcasm font next time.
 
@synth3tk good idea
 
How do I do it?
 
italic code
 
@synth3tk When you're finished typing it press ESC
 
7:35 PM
 
*`sarcastic text`*
 
Go on from there. Or not.
 
this chat room is very helpful
 
Wrong screenshot
@SimonSarris ?
 
so, Sherlock 3 just finished shooting today. SO HAPPEH.
 
7:40 PM
ur ... book got price reduced ?
 
Speaking of answers using jQuery, I have a sad confession to make. I looked at this page for about 5 minutes before I got the joke...
 
holy shit, wrong sherlock. the wrap was on the TV series, not the movie. this is why things shouldn't use similar names.
 
@synth3tk TV series is still excellent
 
@synth3tk Wait, you were hoping it was the movie?
 
@SomeKittens i'm sure, but i've never seen it.
@Retsam yes. i thoroughly enjoyed the movies.
 
7:48 PM
TV series: Brilliant British cerebral thriller
Movies: RDJ as RDJ in RDJ: The Move
 
@synth3k You really should watch the television series; it's phenomenal.
 
I enjoy both, for different reasons
You might even say it's @phenomnomnominal.
 
@Retsam I'll eventually get around to it. Don't watch too much TV anymore.
 
I enjoyed the second movie (never saw the first); but I mostly managed it by imagining that I was watching "Herlock Slomes: Action Hero and distant-distant cousin to Sherlock Holmes : Detective Extraordinaire"
 
@Retsam That's the appeal to me. Action. I'm American. The movie adaptation of a dictionary better have explosions, fight scenes, and unnecessary drama.
 
7:51 PM
American movies are mostly tedious pap, but when they go right, they are excellent.
 
Oh, I'm American, too, and can appreciate action, (Absolutely -loved- Pacific Rim) but with Sherlock Holmes I more look for intelligence and wit.
 
I like that it's different. People keep trying to compare stuff to old stuff. Well, go watch the old stuff, you old stuff!
Take the super hero movies. "Ohhhh, it's not [favorite movie with hero in it]!!!!"
It's not trying to be. The whole point is it's different, and catering to another audience.
 
Right, but if you want to do something new; well... do it with something new.
 
(PACIFIC RIIIIIIIIIIIIM!!!)
 
So you're saying people can't have a different take on something
Nobody is forcing people to watch movies.
 
7:53 PM
I think within reason you can; they aren't forcing, but they are using the existing name to sell the movie.
 
Again, if people don't like how something old is being redone, then just don't throw money at it. If enough of you hate it, then it'll never happen again.
 
@synth3tk Girlfriends everywhere force their SO's to watch romantic comedies.
 
@SomeKittens That's different, because sex.
 
It's not entirely fair to say "Come pay to see this Sherlock Holmes movie!... Just kidding, it's just an action movie that we're using Sherlock Holmes to sell" (Note, I'm greatly exaggerating in this case)
 
7:57 PM
If I watch a trailer or couple of trailers about some movie coming out, and it contains a lot of action (even though this is based on Dr. Seuss), then whose fault is it that I went to watch the movie?
 
Because trailers are never deceptive.
 
So why would you trust it? Why not wait until someone else buys the DVD and you go watch it?
Since you don't trust trailers, but hate getting burned by over-explosiveness.
 
I'm not saying it's unethical, I'm saying it's a practice I'm not fond of.
 
I'm not either. I hate it.
"Oh look, here's the entire movie's good parts in 30-seconds"
Then you find out that the movie has literally 30 seconds of good part in 2 hours 30 minutes.
 
A big problem with the movie business is that it's all about getting people to come watch the movie, and very little about how good it actually is.
 
8:01 PM
Of course. It's also about playing the books to make it seem like a movie is very profitable, yet somehow not making it profitable while also making it profitable.
How any of that is legal, I'll never know. Oh wait: Lobbying.
 
A movie can be awful and still make tons of money because people aren't exposed to the awfulness until after they've already paid for it.
 
Yes, but then they try to not pay anyone from the boatload of money they made, yet at the same time the studio itself somehow gets the money.
And again, why I don't go see movies in theaters anymore is because I don't want to get burned (though I've only been burned once: Wolverine).
 
Mhmm. Though I can't entirely blame the movie industry for all the problems with the medium.
 
Most of the ones I've seen, I knew I would like. Inception, Ponyo, The Great Gatsby
 
It's not really the fault of the movie industry that significantly more people decided to see a sequel to an Adam Sandler comedy than Pacific Rim on its opening weekend...
 
8:05 PM
@Retsam Ultimately, we, as consumers, fail at voting with our money. Whether it's a movie, a product, a restaurant, or a video game company like EA Games.
We'll log onto Facebook and say "Oh my god, I hated that movie so much!" and then show up in line on Friday opening night for the sequel.
We break record numbers for Call of Duty every year
 
Yeah...
 
I haven't had cable in over two years. Haven't bought an EA game since BF2142 (until the humble bundle). And even then, it was because EA didn't get the money from me.
I put my money where my mouth is. But nobody else seems to know how to do that.
/rant
 
Well, to be fair, I'd say a lot of people just don't want intelligent media. They don't want a movie/game/tv show that makes them think.
 
That's a whole nother rant.
 
They are voting with their dollar; they just happen to want to vote for garbage.
So ... uhhh javascript...
It's a thing. Definitely a thing.
 
8:10 PM
Yeah. You know, there should be a Javascript room on SO.
 
Can you please stop abusing backticks? Syntax highlighting in english text is umm not very pretty.
 
If you don't do what he says you will get banned ... from life
 
@ThiefMaster I think we should tell @phenomnomnominal to update his script to avoid italic text
 
good idea (i didn't use the reply feature here on purpose :p)
 
@ThiefMaster Since you asked nicely.
 
8:17 PM
@ThiefMaster Why?
 
So you can guess if I like the idea of banning him or avoiding syntax highlighting for italic code - or maybe both
 
So what's wrong with using syntax highlighting for italics?
 
A mod doesn't like it and mods are gods.
 
Like, as in italic text itself is aesthetically unappealing?
 
ok, wtf
 
8:21 PM
Multiline messages don't get any markdown formatting.
Except for fixed font ones.
 
ah, ok
he likes this
but not this
 
Thanks for explaining that.
 
no problem. thanks for fixing my multi-line issue.
 
Ah. But it's just aesthetic preference, it's not something to do with the underlying mechanics or anything like that?
 
@rlemon I just saw your "wtf mate/" message on TeamSpeak from earlier. What were you saying?
 
8:30 PM
I know you'd like to thank your shit don't stank
But lean a little bit closer
See that roses really smell like poo-oo-ooo
 
I like the way you move. I like the way you move. I like the way you move. I like the way. I like the way. - Taylor Swift
 
WTF - Taylor Swift?
 
@synth3tk Hahaha
 
Yeah. She sang that song back in the early 00s, right?
 
@synth3tk maybe
 
8:33 PM
@Pinocchio Not maybe. Definitely. It came out right before Barry White released "In Da Club"
 
Shit song. anyways
:)
This is music
 
anyone knows how to get the keypath name inside a Handlebars helper? like "{{myhelper foo.bar}}" and get the "foo.bar" inside the options.hash
 
Not me
 
@mateusmaso {{myhelper[foo.bar]}}?
i don't even understand what you said though
 
@Pinocchio That's not music. This is music!
 
8:38 PM
@mateusmaso It looked like you were using angular so ignore that
@synth3tk That's not music. This is music!
 
The uploader has not made this video available in your country.
 
@synth3tk LOL
 
Well shit, first time that happened to me as an American.
I feel like a foreigner.
 
As music goes, I'm more into the classics
 
8:41 PM
@Pinocchio No no no no no. HERE'S music.
 
hey all
 
@Retsam You like Fleetwood Mac Then?
 
@Retsam Go jump into a pool of first year CS students. I hate you.
 
@synth3tk The type of music you've been posting. i get the impression this is your favourite song!
 
8:43 PM
@Pinocchio Close.
 
Would you mind to stop posting horrible music videos?
 
^^
 
@copy Yes, dad.
 
@synth3tk I consider my mission accomplished here.
 
This is all you need - youtube.com/watch?v=2w9QM9JmTWQ
 
8:45 PM
Now what do we talk about in the Javascript room? Java? Script?
 
@synth3tk We don't talk.
 
Oh. Ok then.
@copy The edits on that are hi-larious. Consider writing a sitcom, please.
 
You must be confusing hilarious with ... well, something else
 
user1125394
!!define flotation
 
@copy An itch in my twig-and-berries?
 
8:49 PM
@copy As a native English speaker who's actually pretty decent at grammar... I'm not quite sure how the wording of that should be myself...
 
8
Q: "Would you mind to do something?"

MarcinIs it correct to say "Would you mind to do something?". I've seen this usage in a few places, but it doesn't sound right to me. I would guess that it's proper to use "Would you mind doing something?" instead. Yet there are other verbs we could substitute here that make it sound correct with "to...

 
What a word! grammaticality
 
Would you mind stopping posting horrible music videos?
 
@copy That might be correct, but man does it burn my ears...
 
@copy Yeah, that just doesn't feel right.
 
8:52 PM
Granted, many grammatically correct things don't feel right.
 
would you mind if I asked you to stop posting horrible music videos?
 
Stop posting that shit?
 
@JanDvorak Well, but that's changing it. Now the question is asking if he minds the asking, not the stopping of the posting.
 
only good music videos
!!daybreak
 
8:53 PM
Would you please stop posting that crab?
 
s/b/p
 
Community hater.
 
Speaking of music and grammar; I enjoy this more than I probably should: youtube.com/watch?v=M94ii6MVilw
 
8:54 PM
!!buttstuff
 
Jun 4 at 14:36, by rlemon
I would totes do butt stuff to him
 
!!slidepoop
 
Mar 13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
!!artisticpoop
 
8:59 PM
@copy That's horrible. :(
 
user1125394
did you poop on purpose? to prank?
 
@cc Of course not. Who does?
amiright?
no?
 
user1125394
the slide didn't slide enough..
 
@BadgerGirl Oh you're right
 
...wow
 
9:12 PM
that sounds pretty interesting ("nodejs" on a microcontroller)
 
Eww
 
@JanDvorak Awesome :)
 
user1125394
home automation with nodejs
 
C is hard. Let's install javascript everywhere
 
I don't understand why people lay arguments out like this with an Array can someone explain please?
animate(properties, [duration, [easing, [function(){ ... }]]])  ⇒ self
 
9:20 PM
> the only thing that Java and Javascript have in common is that they both run everywhere (well, except for Java)
@Pinocchio that's not an array literal. These are optional arguments
 
You cannot really that JavaScript runs on a Raspberry – it does, but starting the browser takes 2 minutes
 
@copy node.js then
 
That works of course
 
@copy I think most people who'd be installing nodejs on a microcontroller aren't looking to browse the internet with it.
 
But no web applications. Which is the thing that makes JavaScript so interesting
 
9:23 PM
I thought RPi could run minecraft, not crawl it
 
@copy Not really... I think this whole Node.js thing is showing that javascript is an interesting language in it's own right.
 
But I wouldn't pick JS as my scripting language when Python runs in the same environment
 
@copy ... or Ruby
 
@JanDvorak Yeah
 
@JanDvorak Yeah, i know that but why are they laid out like that in documentation.
 
9:24 PM
@copy what's your opinion on Opal
In computer science, BNF (Backus Normal Form or Backus–Naur Form) is one of the two main notation techniques for context-free grammars, often used to describe the syntax of languages used in computing, such as computer programming languages, document formats, instruction sets and communication protocol; the other main technique for writing context-free grammars is the van Wijngaarden form. They are applied wherever exact descriptions of languages are needed: for instance, in official language specifications, in manuals, and in textbooks on programming language theory. Many extensions and ...
 
Ain't those ABNF?
 
@Pinocchio It's a common convention.
 
Haven't heard or see it before
 
You see it often in man pages.
 
maybe EBNF
 
9:27 PM
@Zirak I know it is, i don't understand it though, do they all come after eachother, where would i put the function if i didn't wan't the easing, because this doesn't work
$element.animate({ opacity: 0 }, function() {...});
The function isn't called, strange
 
The optional arguments must be specified in order; you can't "skip" any.
 
the brackets indicate you have tto specify the easing if you want to pass a function
 
@JanDvorak You were talking about the programming language, right?
 
@Pinocchio It's specified sequentially. Look at the second overload: api.jquery.com/animate/#animate-properties-options
 
Though you can always pass 'undefined', if you want to skip an argument; but that's not always safe.
 
9:29 PM
@Retsam you could use the object signature
@copy correct
 
@Zirak Yes, i did just literally go there and now i can tell the difference.
 
Looks verbose
 
Cheers
 
@copy Opal is basically Ruby
which mainly means a ton of built-in functions
 
user1125394
!!wiki opal
 
9:31 PM
Opale is a small settlement in the hills southeast of Žiri in the Upper Carniola region of Slovenia. It is made up of three dispersed hamlets: Log, Opale, and Laznar. References External links *[http://www.geopedia.si/Geopedia_en.html#L410_F10137314_T13_b4_x433841.5_y98065.5_s14 Opale on Geopedia]
 
and a nice syntax for passing a block to a function
 
Opal is a hydrated amorphous form of silica; its water content may range from 3% to 21% by weight, but is usually between 6% to 10%. Because of its amorphous character it is classed as a mineraloid, unlike the other crystalline forms of silica which are classed as minerals. It is deposited at a relatively low temperature and may occur in the fissures of almost any kind of rock, being most commonly found with limonite, sandstone, rhyolite, marl and basalt. Opal is the national gemstone of Australia, which produces 97% of the world's supply. This includes the production of the state of S...
 
damn. Not that Opal
 
user1125394
yea I know don't worry
 
I was so confused
 
9:33 PM
this opal: opalrb.org
 
That's my birthstone!
 
That's interesting
I'm missing some safety in JavaScript ... not sure if Opal provides that
I don't know Ruby though
 
what kind of safety?
 
Like no automatic type conversion and index errors
 
most Ruby operators are type-strict
out-of-bounds behavior is pythonic
 
9:39 PM
But then, at least undefined + 4 would be an error?
 
(above the array = nil, negative indices = taken from the back)
@copy correct. nil has no method +
 
And I can use a huge standard library?
 
yep
 
Not bad
 
Opal includes only methods that you actually use
into the compilation unit
the exact error message is NoMethodError: undefined method `+' for nil:NilClass
for 4+nil, it's TypeError: NilClass can't be coerced into Fixnum
 
9:44 PM
Worth a try ... I don't have an idea for a project now though
Maybe a game
 
mass and spring simulator?
 
user1125394
weakly-typed language -> type unsafe ?
 
@cc define "type-unsafe"
Ruby does a lot of checking
 
@copy Shunting-Yard is always fun
 
user1125394
@JanDvorak what copy said ' no automatic type conversion and index errors'
 
9:46 PM
@cc correct. You can only add / multiply / subtract compatible types.
 
@Zirak Naw, something that has not been done before
 
Adventure games also stress the limit of the language.
 
@cc calling undefined methods is an error unless that class also defines method_missing
 
You have to implement levels, which are composite structures (what happens when A occurs in B), user-input parsing, the game logic itself, ...
 
@copy How about trying to run a graphical OS in the browser?
 
user1125394
9:48 PM
btw js is more than weakly-typed, it's untyped if that anwer is true
 
And they're as wild and varied as you can imagine.
 
@BadgerGirl Shh ... it's a secret
I'm not good with level design and graphical design
 
Damn, I forgot how much I love Portishead.
 
Of course, text adventures ftw. Graphics are terrible.
 
That'd be an idea
 
9:50 PM
@cc javascript is not a compiled language
so the definition of compilability doesn't make sense
 
Right, if you want a compiled language, you should look into coffeescript.
 
what's more interesting is whether it's bound to crash and burn at runtime
 
Maybe Dominion
 
@Retsam That's just err, stupid.
 
@OctavianDamiean It was a joke.
 
9:52 PM
I see.
 
@Retsam you forgot to use the sarcasm font then
 
i dont know why i even forced something like ISP(interface segragation principle in JS) but in that manner would it be violation of this principle(in theory-definition of ISP) that i have some module "Shape" with interface which contain method A, B and C and than for examples i have module "Shapes" which is collection of object "Shape" but that module only use method A of object "Shape"?
 
user1125394
right
 
It was playing off the multiple meanings of the word "compile" in terms of programming languages and a general dislike of coffeescript to provoke deliberate ire in a hopefully humorous fashion.
 
asking just for curiosity
 
9:54 PM
@JanDvorak Shoot, you're right.
 
@Srle never heard of ISP
 
How do I get String.fromCharCode() to respond to the backspace key?
 
user1125394
@Srle is that a design pattern?
 
@Srle but it seems OK from the OOP standpoint
 
@copy You're looking for programming projects? Preferably games?
 
9:55 PM
Yeah, but I have exams now, so for later
 
@Jan Dvorak, @c c some OOP principle from SOLID grou which say "no client should be forced to depend on methods it does not use."
group*
 
@Srle define dependence
 
My friends find it shockingly difficult to find a half-decent place to play games like Hearts and Spades online. It seems like the general offering is basically still Yahoo! Games circa '95 or equivalent.
 
define "it"
 
@Jan Dvorak, i dont understand
 
9:57 PM
@Retsam I wrote a game before. If you don't pass the first level, it means that you're a bad programmer. copy.sh/iw
 
user1125394
@Srle how just implmenting a method would be 'depend'?
 
@PavanK 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.
 
@Srle javascript doesn't have interfaces. An interface is defined implicitly by usage, not explicitly
 
@c c, well im using require.js and if i load module "Shape"(which contain method A, B and C) into "Shapes" i will load everything
 
guys can anyone look at this if you have time.
 
9:59 PM
@Jan Dvorak, i know, here by the term "interface" i'm point to group of methods, not to the interface like in Java
 
0
Q: compute angle of rotation between two orthographic projections

Pavan K I Have the orthographic projection of a unit cube with one of its vertex at origin as shown above. I have the x,y (no z) co ordinates of the projections. I would like to compute the angle of rotation of the plane to get the second orthographic projection from the first one (maybe euler angles...

 
@Srle I wouldn't mind. You commonly require("http"), not require("http-get")
 

« first day (1051 days earlier)      last day (3895 days later) »