« first day (1745 days earlier)      last day (3218 days later) » 

6:00 AM
I will ask it in SO. will provide a link here.
Oh. read the second line here : w3.org/TR/CSS21/grammar.html#scanner
The "\377" represents the highest character number that current versions of Flex can deal with (decimal 255). It should be read as "\4177777" (decimal 1114111), which is the highest possible code point in Unicode/ISO-10646.
 
user3119231
Good morning, ladies and gentleman (more gentleman I think)
 
@Abhishrek if \377 is 255 (decimal) then it's octal !
Why the f they don't mention it
So in dec is 160-255 (first image)
So the second image indicates : 0..159 (decimal)
Now I see
the first one says : John.
the second one says : not Ringo/paul/george.
basically it's the same
 
yep
 
But still it has the boundry problem as you said.
not Ringo/paul/george can be also Yoko.
 
how ?
 
6:06 AM
[^\0-\237]....
 
erm second says 0 - 159 are allowed first says 160 - 255 are not allowed
that means the same thing ? Doesnt it ?
 
if the whole thing regarding ascii table only then the 255 is the limit yes
but if it talks about the unicode table then you have 10,000 ( for example)
so [^\0-\237]. can mean code point 10000
I dont know if it relates to code points or ascii codes.
wo....
I didn't know that /[\60-\71]/.test(';') represent octal !
I made a test : i.imgur.com/yebwgbN.png
wanted to check just digits
/[\60-\71]/.test('0') //true ( true for all 9)
Ok that's it.
 
7:00 AM
"So I have basically trained my eyes to..." Your eyes don't have minds of their own. — Cerbrus 2 mins ago
Oh Meta, u so silly
 
user3119231
Jo Cerbrus! :)
 
o/
 
user3119231
\o
 
Morning guys
Oh nice, my nuts got 11 stars :P
 
user3119231
Hehe, good news, huh? :D However if someone is interested, here is a good way to learn some tricks: code.tutsplus.com/tutorials/…
 
7:03 AM
@Cerbrus your craving for nuts
 
Hmmm, nuts
@Maurize: Those aren't JavaScript techniques, they are code snippets / libraries.
 
user3119231
@Cerbrus just saw that, too. So forget the link :D
 
user3119231
lol the title of this website is lying. >:(
 
Yea
 
user3119231
50% of the stuff there can be created with ease.
 
7:06 AM
@Maurize $("lalala").clickbaitify();
 
It's like "10 cooking techniques", then listing a bunch of microwave products.
 
user3119231
It's like - "I can jquery, I'm JScripter". :P
 
tutsplus accepts user submissions. not sure how the titles are set but it's totally possible they get set poorly. i usually like tutsplus though =/
 
user3119231
orteil.dashnet.org/cookieclicker for free time on work
 
user3119231
it is made with js B)
 
7:11 AM
if u boi using chrome.. setInterval(function () { $("#bigCookie").click(); }, 10); in console.. leave.. coffee.. kids, die.
 
user3119231
No, using fire-fucks.
 
@Maurize cookies? try meth clickingbad.nullism.com
 
@uselesschien Could not process input. Error: unterminated parenthetical on line 4
 
user3119231
@cswl This are not cookies.
 
@Maurize yeah theyre meth
 
user3119231
7:19 AM
@cswl uhhh nice.
 
cookies are for kids
 
user3119231
But they're nice.
 
7:37 AM
Morning' guys
 
user3119231
Morning guy!
 
hi everyone,i use play framework expression like ${data} data contain tag and content,but the html not parse the tag in expression
 
@uselesschien watch the strain
I so wish i was an RO
@RO's move this to thrash ?
 
Hi all
This fiddle is distorting while scrolling. Click on "toggle click" and then scroll the container jsfiddle.net/yet0xgat/25/show
on IE10
How to fix this on IE10 or IE11?
 
user3119231
7:50 AM
:-(
 
Please take your boobs elsewhere.
 
Madara, any idea about above problem?
 
@Mr_Green Distortions while scrolling sounds like a browser problem, not something you can solve
But I'm on linux, I don't have IE on this machine, so I can't even look.
 
I think the same. ok thanks
 
This world is full of things that don't go as you wish. The longer you live the more you realise reality is just made of pain, suffering, and emptiness…
 
8:01 AM
@cswl Are you clinically depressed?
 
Morning
 
@cswl Well, on the flip side, there's no pain without calm, there's no suffering without enjoyment, and there's no emptiness without fulfillment. So those must exist in the world as well :)
 
Hey guys do you know if there is a link between : value and value_
(in a form for example)
 
@Baldráni Nope. Completely different symbols.
 
Ok
 
user3119231
8:06 AM
@Neoares whats up
 
hey, if anyone's interested in following my Javascript C compiler, check it out:
i was confident that github would onebox, but i guess not. heh
 
That is both amazing and terrifying at the same time
 
@Purag I see regex, and terrible ones
 
heh...I was going down the wrong path, and then realize I should do it the right way.
learning about compilers as I go along, so of course won't be perfect. but right now I'm working on writing an Earley parser to go through the tokenized C and make abstract syntax trees out of it.
those trees should serve as an intermediary between source code and assembly
 
["string", /(".*")/g] <-- Facepalm
Are you writing this without a specs beside you?
 
8:11 AM
@RoelvanUden Nah, Im just quoting the great Madara of the Uchiha clan
 
@nhahtdh that one needs a ? somewhere. also, I have a C grammar I'm working off of.
plus, stuff in quotes should evaluate to "constant", so I'll work on that
 
@Purag No. It doesn't need the lazy quantifier
You shouldn't need them when lexing C grammar
 
comments definitely needed one
["comment", /(\/\*([\s\S]*?)\*\/)/g]
also, the tokenizer is not the best right now, but I'm working on it. haha
 
@Purag It's possible to write without the lazy quantifier
 
8:21 AM
ooh, how so? :D
 
@Purag I can't think of this in the head, so I construct a DFA and derive regex from it
 
@nhahtdh deterministic finite automata?
 
Yeah
 
hmm. haven't thoroughly learned finite state automata to begin with. reading a book on theory of computation now that talks about it.
 
@uselesschien no example, I see? :P
 
8:26 AM
@AwalGarg Gimme 500 seconds.
 
given
 
!!> [5, -Infinity, -21321, Infinity, 23423].sort(function(a,b) {return a-b})
 
@nhahtdh [null,-21321,5,23423,"Infinity"]
 
@nhahtdh (a,b) => a-b
Bot supports arrow functions :)
 
It doesn't seem to like "Infinity"
 
8:28 AM
!!> let a =0;
 
@cswl "SyntaxError: let is a reserved identifier"
 
@nhahtdh ES6 sort fixes this
 
Is it possible to add more files to jsfiddle/jsbin like plunker does ? i.imgur.com/EdlaK2Y.png
 
FF probably didn't fix it yet.
 
/me watches the strain
/me claps after every episode of season 2 !
 
8:29 AM
@AwalGarg What is the "fixed"/correct behavior?
On FF, that line returns Array [ -Infinity, -21321, 5, 23423, Infinity ]
Same for Chrome
 
@nhahtdh if sort callback returns NaN, it shall be treated as +0
In ES5, nothing was declared as to what shall happen if NaN was returned by sort callback.
See Annex D in the 2015 spec.
 
For some reason, the bot doesn't like -Infinity
 
@AwalGarg npm install -g twobinarex
:P
 
@uselesschien lol. Anyways, I still would like to support the edgecase. Do you have a link to any doc describing npm's support for binaries?
 
@AwalGarg see docs for package.json
 
8:40 AM
Didn't find anything.
 
> A lot of packages have one or more executable files that they'd like to install into the PATH. npm makes this pretty easy (in fact, it uses this feature to install the "npm" executable.)
 
user3119231
Is there a way to make scripts safe from stealing?
 
no
you can minimize them
 
user3119231
yeah, with this for example
 
8:41 AM
I use this one jscompress.com
 
@Maurize yes, don't write them
 
@uselesschien what does npm do if a binary is already installed by that name?
 
@AwalGarg go bollocks
 
@Neoares Meh
 
8:43 AM
What does aptitude do? What does pacman, yum do?
 
@MadaraUchiha Mooh
 
@uselesschien They're package managers.
Similar to npm for node
 
Tell the user that this package contains this command so he should remove the first before installing this.
If you're including binaries with your npm package, you need to specify that in your package.json.
 
@AwalGarg Not sure about Linux, but in Windows it just adds it and the first one in the PATH locations is executed, whether that is the npm module or something else.
 
@RoelvanUden wow that's a horrible behavior
 
8:45 AM
@AwalGarg Is it? Why?
 
{
  ...
  "bin": {
     "script1": "bin/script1",
     "script2": "bin/script2"
  }
}
like so
@MadaraUchiha I see
 
@RoelvanUden A TS user asking why "failing" silently is a horrible behavior? :-P
 
@AwalGarg It doesn't fail?
 
well it doesn't do what I'd expect it to do, right? Unless I understood you wrong. (I put failing in quotes because well it doesn't fail but...)
if gulp is already present in path, new gulp will be installed but not be usable, right?
 
@RoelvanUden would the name not be altered ? ( the last added binary will be renamed i think )
 
8:48 AM
@AwalGarg npm RENAMES BINARIES
to whatever name the developer specifies :P
So, when there's a conflict it will know
 
it will know and do what?
 
@AwalGarg npm install would fail if there are two npm binaries with the same name. But for example, in the case of TypeScript, you can have a npm and Visual Studio binary both in the PATH. One is in the npm folder, one in the VS folder, and the one that's found first according to the PATH chain is ran when you run tsc in command prompt.
 
@AwalGarg tell you and fail
 
meh, i'm currently having a nitpick about java interfaces, that inherited methods must be declared public. There is no reason which can justify this. good god javascript and ES6 which can unnerve me.
 
So doing npm install -g typescript@1.5.3 and then tsc --version can yield 1.4.0 because VS had installed it somewhere :P
 
8:50 AM
@RoelvanUden ah in that case I understood you wrong. Not the best behavior but not horrible at all.
@uselesschien and what do you think should dungeon be doing?
 
@AwalGarg I think it's the same for Linux systems, but I'm not 100% sure about that. I'm pretty sure, though, that you have a where binary too.
 
yes we do have where.
 
@AwalGarg Well, tell them and do what they want dungeon to do?
 
@uselesschien example of what the user could want?
 
!!> [523, 2, -2344, 230, -24, 867, 1029, -21].sort((a, b) => a < b ? "-Infinity" : a > b ? "1e234" : "000000000000000")
 
8:53 AM
@nhahtdh [-2344,-24,-21,2,230,523,867,1029]
 
What's the best way to write JS Unit Tests?
 
We don't even need to install two different packages using the same binary name, installing two different versions of the same package will require us to deal with this shiiiiitttteee.
I'd want it to install them and let me choose when to use what.
 
@uselesschien no we won't need to. read our miaou conversation again.
brb in 10 minutes
 
after lunch
 
@ziGi mocha is popular
 
8:56 AM
@nhahtdh please don't implement nested ternary operations anymore
not cool
 
ok
do I install it with npm?
ah yes
 
@KarelG woi nat
 
@ziGi ===
 
How good is IOS development?
 
8:57 AM
@RoelvanUden installed it already
 
@Mr_Green I would recommend not doing native development for most intents and purposes. But, it depends on your use case. I think Objective C is appalling, XCode is horrible, and Mac/iOS suck hard.
I didn't try Swift though.
 
@Mr_Green would you not think that your question is vague ? :p
 
@Mr_Green Better than Kiosk development but worse than XBox development.
 
I left iOS dev. 15 and a half years ago
 
Hey gang. So when I try to open a .js file, windows gives me a warning that it's 'potentially harmful' - which is not a worry, but... Does that mean js files can run things other than browser code?
 
9:02 AM
@Polyducks yes
 
@Polyducks node can run js files that can do anything on your computer
 
That's JScript
 
thanks for your inputs
 
@uselesschien @neil So you can do cool things? Like what? And do you need to have Node installed to make it do things?
 
what do you guys suggest me to go with as alternative to IOS?
 
9:04 AM
@Mr_green Android?
 
will that work on Iphone? i don't think so
 
@Polyducks Well, pretty much anything.. it's scripting language like dos shell or bash
 
@Mr_Green cordova
 
degrades performance, afaik
I mean if I compare ios and cordova, ios performance is more
 
@Polyducks By default, opening a JavaScript file opens the Microsoft JScript run-time which is some funky piece of shit, but resembles a browser for most intents and purposes. It can't really do anything to your system. It used to be able to, though, a few years ago. Now, if you use NodeJS to run JS files, it can do anything to your system (must have it installed and registered).
 
9:06 AM
There might be some safety features in place by default, not sure
Never tried to open a js file that formats my hard drive
 
@Mr_Green Bah performance is only an argument if you're building a AAA-game and have fucking amazing world-class expert skills that blows everyone's minds with your mind-blowing epic skills of awesomeness. If you're not, then that argument is moot, Cordova is more than fast enough for almost anything. And remember, always bet on JavaScript.
 
Thanks, I wish I could explain the same to my boss :)
 
Sorry, @Mr_Green, I had no idea what you were asking.
@RoelvanUden @Neil Ace! Thanks guys. Was just curious. Back to work now <3
 
@Mr_Green Why does an technologically incompetent boss make technical decisions? That makes no sense whatsoever. But hey, if he wants to waste a lot of time and resources, let him go ahead and do so I suppose. That might be a good argument to convince him, though.
 
@RoelvanUden have you ever worked in an office?
 
9:10 AM
@RoelvanUden do you have any good link so that I can show it to my boss.
ohh ok
 
@Polyducks Yes. I work there now. Us technical people make the technical decisions. That's how it should go. Your boss/manager-whatever should focus on business needs, manage progress, etc, NOT make technical decisions.
 
I will ask the same in IOS chat
 
@Mr_Green Only things that are biased. One person will shout "PERFORMANCE PERFORMANCE" or "NATIVE FEATURES NATIVE FEATURES" and another will counter that. It depends on your business needs. I for one know from personal experience that performance is rarely an argument (AAA games being the only exception, really)
 
i have a question for native english users: You have "saveState()" method. What's the opposite name for it ? "clearState()" ?
 
dontsaveState() ? (I am not native english user)
 
9:14 AM
or deleteState()
 
@KarelG It's called an antonym. Look at thesaurus.com/browse/save
 
or waste, depending on the meaning of save
 
In your case you want the "protect" meaning, so, it suggests...
destroy.
Which makes sense.
 
squanderState()
 
"don't save" covers all antonyms of save
 
9:15 AM
haha @neoares
 
@RoelvanUden at some companies, you need to have an approval before continuing your project after a technical decisions.
 
@KarelG Not the point there. I'm testing whether String with valid numeric value can be returned in comparison function
 
that state is just a state of the object which got changed during runtime. You either want to save it, or not save it
 
'clear' is fine in that case
 
@RoelvanUden there is no english word for that typical flemish word :P I mean "approval"
 
9:18 AM
fiat is good English too!
 
@RoelvanUden I've written a test, and I also have a file that I want to include to test
but var Money = require('../app/core/Money.js'); does not include the file
the Money object stays empty
This is the file I want to include
 
That file doesn't export anything.
 
I concur
That money.js isn't lucrative
 
Does anyone know if there is a Blackberry equivalent of @viewport in CSS?
 
Can I use parents of an element as a path ?
Like can I do something like that :
$(this).parents('.generalInfo').find('.specificInfo')
 
9:25 AM
@Neil please elaborate by saying it's not lucrative
I am still not really good in knowing how to organize my JS structure in an modular way
@RoelvanUden what do I have to export?
 
@ziGi modular way
@ziGi export Money
 
@uselesschien thx
@uselesschien thanks, I am gonna read a bit about exports :)
 
@KarelG I don't think I could function in such an environment... so if they swap from jasmine to mocha they have to sit on their hands untill the boss tells you can carry on?
 
you cannot swap from language 1 to 2 in the middle of development phase. You should have decided which language you should use during the initial project phase
 
9:29 AM
@uselesschien ok thanks, I've only worked with ExtJS namespaces so I was a bit confused
 
@KarelG that's just a testing framework
 
@KarelG Sounds like fun, who decides what a language change is then? Is ES5 -> ES6 a language change?
 
And they're similar.
 
@ziGi It was a bad joke.. we were talking about money afterall
 
@Neil haha nice, IT puns
@Neil do you like the structure of the file though?
it's the first OO JS file I have ever written to be honest :D
 
9:32 AM
looks fine to me
you might consider using an object that validates
and export validation logic there
but that might be overkill
 
Yeah, I was thinking the same
well there must be a core Validation object that validates int and float
you know that can be used
 
they seem like static methods anyhow
I'd probably make a separate validation utils js, and you export the instance (rather than the class)
 
@ivarni that's an update :p I mean going from PHP to ASP.NET
 
The validation logic itself shouldn't have side-effects so it's easily extractable and good candidates for reuse (in my opinion)
 
if the instance is null, you instantiate it, so it acts like a singleton
 
9:36 AM
@ivarni yeah, one more thing, how do you say to people that they should wrap the classes in try-catch blocks?
 
I'd also split those validation functions up so each one validates only one single thing and then chain them together
 
@ivarni ooo, chaining, I like it :)
 
@ivarni well that's how it's being done, they validate one thing
btw chaining is a code smell
 
it's a fad, not a code smell
 
@ziGi github.com/zigivicious/42/blob/master/public/app/core/… doesn't validate only one thing, it aggregates other validation rules :p
 
9:38 AM
@ivarni true
I agree
it's a mix of the two
but in general there should be a method called validatePositive and validateFloat
and just use them in the validateAmount
 
If I were to extract validation I would make the Money class mix them and keep them pure in the extracted class/object
 
Nah, validation logic should be out of money class entirely
You shouldn't have to worry about what the validation does
 
I set up validation like this:
            firstname: {
                required: {
                    msg: 'Vennligst fyll inn "Fornavn"',
                },
                notNumeric: {
                    msg: 'Inneholder ugyldig tegn',
                }
            },
the actual logic isn't in the model class
 
Not even calling multiple validation calls unless they were entirely separate situations
 
but declaring what validators should run is
 
9:41 AM
Ok I agree with you guys
that's a nice feedback
 
for a complex program, there should be a class dedicated to validation of a certain entity like money, and another class which holds only the raw validation that gets called by it
so to change what the validation is, you change one spot, and to change what types of validation to do for which field, you change the money validation class
but that's overkill for small programs :)
 
@Neil true, I just want to build something like a framework that has such modules that can be used for a Web App and validation on the front end so I don't have to rewrite them.
 
Hello everyone
 
@ziGi cool, well good start on the OO
 
@Neil I am more of a Back-End programmer doing DDD with CQRS and ES but I want to make something like a small front-end framework as a portfolio and to learn to write vanilla JS
 
9:50 AM
this is still technically backend though
 
I want to add a component in "ExtJS Grid" below grid header and up grid rows. Basically, i want to add a textbox for flitering data in grid.
 
@PuneetChawla ok
 
or is it? i just assumed that since you were using require that it was node.js, but I may be mistaken
 
@Neil it's not backend
I want to do an MVVM front-end that has validation logic
 
@uselesschien - i think you know about ExtJs.. Can u help me to solve it out.
 
9:52 AM
@PuneetChawla Why do you think so?
 
Btw, assert.equal(new Money(5, "EUR"), (new Money(3.50, "EUR")).add(new Money(1.50, "EUR"))); gives me the following AssertionError: {"amount":5,"currency":"EUR"} == {"amount":5,"currency":"EUR"} + expected - actual
 
How can I use .delay() with .done() ?
 
I know nothing about javascript libraries
or frameworks
literally
 
apparently
 
9:53 AM
I don't even know jQuery
 
when comparing two objects you have to do it by hand
 
You replied to me that's why i think, you have knowledge about it @uselesschien
 
@ziGi Or use an assertion library
 
I do :d
 
@PuneetChawla oh
 
9:54 AM
don't you see the assert
assert.deepEqual(actual, expected[, message])
I think I have to use deepEqual
 
@ziGi Then either you aren't using your assertion library correctly (there should be an object comparison assertion), or the library you picked sucks, and you need to choose a different one.
 
naah, I was not using it properly
describe('#add()', function () {
    it('3.50 and 1.50 should add up to 5', function () {
        assert.deepEqual(new Money(5, "EUR"), (new Money(3.50, "EUR")).add(new Money(1.50, "EUR")));
    });
});
passes
 
@ziGi actual === expected ? message : null
oh, mocha
 
mm, this is jasmine right @ziGi?
 
Mocha
 
9:56 AM
@Purag mocha
 
I read Mocha as Motsha
 
ah. never used it. what are you building?
 
@Purag give me a min, I'll show you
have to commit
 

« first day (1745 days earlier)      last day (3218 days later) »