« first day (1598 days earlier)      last day (3335 days later) » 

12:30 AM
boo
 
Does anyone have some ideas on a easy to customize RSS reader? I want to look at some ideas like clustering of words maybe add a D3 plugin just to make is a little more eye friendly and fun.
 
why, that's for getting news to you, you want to make it into something else?
 
I've done some vector overlays that are kinda nice and maybe just see how stories are related visually rather then just a list.
 
pics?
links
 
Maybe with words like in an RSS feed?
 
12:35 AM
nice, a kite
 
Hi everyone
 
@AK1510 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.
 
I need some help at regular languages...
0
Q: Regular Languages-Closure Properties

Mary StarHow can we show that the class of regular languages is closed under the following operation?? Let $L_1$ and $L_2$ be laguages over $\Sigma=\{0, 1\}$. The operation is: $$\{x \in L_1 | \text{ for some } y \in L_2, \text{ strings } x \text{ and } y \text{ contains equal numbers of } 1s \}$$ I...

 
m59
@monners you there?
quite dead around this time
 
@m59 Sup
 
m59
12:45 AM
Sweeet. I'm in an endless debate in my mind.
Look at the usage of this thing: github.com/felixge/node-require-all
You just give it a dirname and it requires everything into an object.
For control, you can pass filter and excludeDirs
Just debating if it makes sense for it to try/catch the require so that you don't really have to filter
You could just ignore non-modules, which is nice, but then you're suppressing errors if, say, you had a legit module that was just broken and you should be notified.
Either way kinda sucks.
but now that I'm saying it, I guess the way it is is the only option. You just can't suppress those errors, so a potential bunch of filtering is the only choice.
 
1:06 AM
interesting project
 
 
2 hours later…
3:24 AM
Whoa quiet room!
 
m59
3:57 AM
@Unihedro yeah, Sunday nights are.
function foo(x) {
  // make x true unless passed in as false
  x = x === false ? false : true;
}
any shorter way? hit me with that code golf short circuit logic =D
 
4:13 AM
return x = (false || !!x);
@m59 That work?
 
m59
@monners nope, tried it already =D
 
Works in the function I tried...
 
@m59 false
@m59 false
 
Oh, I assumed you were passing in either true or false
 
@m59 false
 
m59
4:25 AM
@monners nah true is default.
 
!!> function foo(x) { return (false || !!x); } foo(true);
 
@monners true
 
m59
I rather miss my room owner privs right about now
 
4:53 AM
@rlemon that WSQL looks much like capybara
@m59 hi. long time no see
 
 
Hehe
 
@frogcoder 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:24 AM
Seems legit:
-3
A: Which is the most credible certification for HTML/CSS ?

Jenti DabhiMost credible is W3Schools certification http://www.w3schools.com/cert/default.asp

 
m59
5:39 AM
@argentum47 I've been around ;D Just quiet. Been busy.
@Qantas94Heavy the words... I haven't any.
 
6:26 AM
the bootstrap's compile and download only gives a config.json file. what to do with it?
 
m59
BERN IT
 
what :D
 
m59
rm -f config.json
 
nooo, but there is no bootstrap.css file.
 
m59
one less file to destroy
 
6:29 AM
in most of the answers it says, after having hit compile and download, it should download a zip with the config.json .
lol
 
m59
;D
 
7:09 AM
accessTokenManager.getLoggedInUser(req)
    .then(foundUser => userManager.upgradeGuestUserToFullUser(foundUser, userData),
          notFound => userManager.createRealUserWithIdentifier(identifier, userData))
    .then(user=> res.smartJSON(200, user))
bad or terrible ?
 
ASR
7:26 AM
is there any alternate for border-bottom css property?
 
@ASR You could use a pseudo element
el:after { content: ''; display: block; position: absolute; bottom: 0; width: 100%; border-bottom: ... ; }
 
ASR
@monners is it support in all browsers?
 
All modern browsers, yes
 
ASR
@monners IE 9???
 
Yep.
 
ASR
7:29 AM
:) ok thanks
 
But probably not IE8
 
ASR
@monners ok
 
hi all
 
@ASR No problem. Feel free to upvote one of my questions/answers
 
ASR
@monners but you have used border-bottom: in the above code
 
7:30 AM
@ASR Yeah, on the pseudo element. You can sub that out with a background image if you need to
 
ASR
&.active > a {
					background-color: #1b9ab0;
					border-bottom: #fff solid 2px;
				}
my css is like this
 
ok...
 
ASR
how can I write like above?
 
I don't follow
 
ASR
:(
 
7:32 AM
Why can't you just use border-bottom?
 
ASR
@monners its disturbing my navigation i.stack.imgur.com/TxKgH.jpg
 
@ASR box-sizing: border-box;
 
ASR
@monners ok I will try
thanks
 
 
2 hours later…
9:13 AM
anyone use ember?
export default DS.Model.extend({
type: DS.attr('string')
});



{{view "select" prompt="Account type" content=model optionLabelPath="Type" optionValuePath="id"}}
for some reason my dropdown has empty labels
 
9:38 AM
That awkward moment when you open a file and there are 47 lines of require !
 
@darkyen00 what's wrong with that?
 
47 is a lot for a single file.
 
import * as Foo from "./foo/";
@BartekBanachewicz all of them are from same directory.
 
@darkyen00 so?
 
smells like Eclipse...
 
9:41 AM
better syntax exists !
@dystroy js
 
   import Hate.Util
   (edited)
that's my longest import chain
 
@BartekBanachewicz That's cute
 
That's far from 47
 
I don't think it would be problematic if it was longer, really.
 
Mine is 5 line (once refactored)
i break them down
 
9:43 AM
@darkyen00 define "break down"
 
if you have a lot of smaller modules it makes sense to have loads of smaller imports
 
@BartekBanachewicz party, boogie, dance the night away
 
@BartekBanachewicz does that make sense now ?
I'd rather do var MedicineRoute = require('./components/MedicineRoute');
 
@darkyen00 it has X, XList, XS repeteated
for every part of the model
 
9:44 AM
yep.
 
which smells
 
@darkyen00 y u no es6 imports?
 
@SecondRikudo not my file.
I'd rather just
import * as Components from './components' :P
 
make a unifying module vOv
 
@darkyen00 Does that work with directories?
 
9:46 AM
would serve as a temporary workaround
 
Or does that require you to create one gigantic components file?
 
@SecondRikudo it works with directories
that is why it has the *
 
@darkyen00 That's not how I remember it...
 
iirc it does.
 
I remember the * being "import all exports from that module", i.e., you need a file with multiple export statements
 
9:55 AM
or maybe i am confusing it with some other language
 
@BartekBanachewicz isn't that similar to immutable's lazy sequences ?
 
@darkyen00 I've no idea what "immutable's lazy sequences" are so I can't tell
 
@SecondRikudo it seems that you are right, and i have confused it again from some langauge :-/
updated link,
 
@darkyen00 no, that's lazy evaluation and lazy seq. Lenses are compossable data accessors.
 
10:03 AM
Oh okay
got it.
 
That's proper immutable collections, not lazy evaluation/sequences.
 
@RoelvanUden it does support lazy seqs
 
Sure, that's certainly a foundation of immutable collections.
But it's so much more than that.
 
@RoelvanUden educate me
 
@darkyen00 Well collections imply things like persistent data structures
 
10:06 AM
And don't go all "Ah .NET and Microsoft are evil!" on me. It's the concept.
Especially the inner workings video is lovely.
 
Ah .NET and Microsoft are evil!
5
 
Just wanted to say I'm here in case anyone is wanting to say that and I haven't slapfighted anyone in 3 days
 
I think I should learn Agda
 
@SecondRikudo Nudge #1 registered.
 
10:27 AM
> The interactive mode is no longer supported. Don't complain if it doesn't work.
well fuck
 
@SecondRikudo nudge
 
@BenjaminGruenbaum got this from agda shell
 
@RoelvanUden I won't.
@BartekBanachewicz golden.
 
10:47 AM
yay I've managed to write a hello world
 
^ You must be a modern-day Wizard :-D
 
lol agda tutorial
> Step 1: Learn Haskell
> Unlike Haskell which has only prefix functions (ordinary functions) and infix functions (operators), Agda supports mixfix syntax. This allows you to declare functions where the arguments can appear anywhere within a term. You use underscores to refer to the “holes” where the arguments are meant to go.
woah.
this is pretty amazing @FlorianMargaine
 
example?
 
@FlorianMargaine if_then_else_ : ∀ { a } → Bool → a → a → a
 
@BartekBanachewicz underscorejs does this - it's mainly just confusing.
 
10:54 AM
hey guys, this might sound weird but how can I convert a html div with multiple paragraphs inside it, to an array in javascript? (each paragraph is a separate element in the array)? Is it possible?
 
@Brunaldo 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.
 
@BenjaminGruenbaum um that just looks like partial application w/o currying
 
I meant the pass underscores instead of parameters.
 
that's not the same
look at the if example
 
10:56 AM
It's pretty damn similar, in underscore-fp it works the same way.
 
uh it's really not
the agda example is about syntax. Yours is about semantics
 
_.partial(subtract, _, 20)
 
> You can call this function with if a then b else c, which desugars to if_then_else_ a b c.
 
@Brunaldo You could traverse the child nodes of the div and push the text of each onto an array.
 
@BenjaminGruenbaum yes this is a complicated JS way of writing (-20) and still not the point.
 
10:58 AM
HI
 
@Anko thanks I'll look into it
 
the agda syntax isn't about partial application in principle, it's about allowing expressions with terms in the middle
 
Oh wow, that sounds horrible :O
That's like taking the worse of lisp macros and C macros
I mean, it's probably great for writing DSLs but it has such abuse/confuse potential
 
@BenjaminGruenbaum of course.
 
If you don't get a distinction between keywords and things that are not keywords you're in a world of hurt - even if that distinction is only where terms are bound to appear.
 
11:00 AM
but if you like the haskell's if (I am not sure if I know anyone who does), you can set your perverse syntax free
 
"you can set your perverse syntax free" doesn't sound like an argument for the language.
Although it does sound like a nice way to write DSLs
 
_is'a_and'a'massive_ : S -> S -> S -> S
_is'a_and'a'massive_ person insultA insultB = person ++ " is a " ++ insultA ++ " and a massive " ++ insultB

--use

"Benjamin" is'a "wanker" and'a'massive "noob"
@BenjaminGruenbaum sounds like a fun thing in general
I supposed Florian would like it
 
Well, lisp is nice because it's homoiconic, this is just insanely powerful and unbound macros with no syntax indication.
 
I wonder what would happen if I wrote just "X" is'a "wanker"
would I get a partially applied fn?
bah, the language looks a bit unintuitive for some reason :P
 
11:45 AM
I don't have any unread mails for the first time in a year :D
 
let's celebrate
 
@BenjaminGruenbaum sending you a mail
 
THE
12:19 PM
How can I find the closet div down the hierarchy tree in dom
when this is clicked class="updown-image"
 
12:32 PM
I don't even know what he's talking about :
Hi does your solution require wake lock methods in onReceive method? This: PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "Whatever/any tag"); //Acquire the lock wl.acquire(); Log.d("widget", "in alarm manager. static method will come next"); //Release the lock wl.release(); — coolcool1994 16 mins ago
 
suggestions on gitapp.pagekite.me plz
best viewed on mobile :P
 
12:48 PM
@argentum47 Support non-JS environments :P
 
nah, :P I don't know how to do that. I was trying reactjs
 
Hello everyone, I have some error in my app. Can't pass data to modal window using angular. In $modal.open I have param resolve: { akey: {function() {return key;}}} - key is param of function calling popup and is filled when I call my function. But in modal which function param is akey and in function $scope.key = akey; is akey == undefined... what's wrong??
 
Psychic programmers to the rescue!
 
I need to add a lot of support, like viewing commits and notifications on updates
 
You may just want to post the relevant snippets, what you debugged, etc.
 
12:53 PM
great, I found it right now... stupid my mistake :D so, sorry... thanks :)
 
I was happy to serve as your rubber ducky.
 
:DD
 
@BenjaminGruenbaum how would you translate "destructuring" to Hebrew?
 
@SecondRikudo context?
 
@BenjaminGruenbaum We're discussing the translations of various JavaScript terms to Hebrew
"destructuring" as it's used in ES6, how would you translate it to Hebrew?
 
1:00 PM
Yeah, I understand, thinking about it.
How would you translate an object literal?
Destructuring is the inverse of structuring an object literal or an array.
 
@BartekBanachewicz sounds... uh, weird. I mean, it's powerful et al, but it means there's no sane way to know what are the arguments of something in a function
 
@FlorianMargaine mm?
what are the arguments to _+_ : N -> N -> N?
 
when you're reading the calling code, yes
 
1:26 PM
Is it safe to assume keys are handled in the same order every time I do for (var key in obj)
 
@Jonathan I'll answer that with another question: should it matter?
In other words, if order is important for you, why? It shouldn't be
 
In my case it does so now I'm thinking I should add the key/value pairs to an array instead
 
@Jonathan I would say so, yes
If order is important, yes
 
1:48 PM
@Jonathan no, it is not.
@Jonathan It is if you're using a Map though.
 
You recommend using a map over array with key/value pairs?
 
I'm not recommending anything - I'm letting you know what your alternatives are. You haven't actually told me what your use case is.
 
@BenjaminGruenbaum Wait what, order is guaranteed in a Map?
 
I'm building svg nodes which represent directions, each control must activate the next direction when pressed.

<g name="C-M02" transform="translate(0 0)" addresses="showControlAddress" class="controls" type="toggle">
<image xlink:href="../custom/images/F.png" width="40" height="40" action="E0_32179.02:0;E0_32179.03:1" addresses="E0_32179.02" type="toggleitem" />
<image xlink:href="../custom/images/B.png" width="40" height="40" action="E0_32179.03:0;E0_32179.02:1" addresses="E0_32179.03" type="toggleitem" />
I want to generate them from an excel list with addresses
 
@SecondRikudo It is, I looked it up
 
1:53 PM
I'll look into Map thanks
 
@Neil WTH
Wasn't the whole idea of a Map is that order doesn't matter and isn't guaranteed?
 
Depends on who you ask
It's more efficient if you don't care about order
But apparently it's guaranteed for javascript
 
@SecondRikudo yes, insertion order.
 
@monners Hahaha I'm not! I've only read 1 book a month this year!
 
If you know what the original key insertion order was.
 
2:02 PM
Wanna know why it's guaranteed?
 
@BenjaminGruenbaum What's the point?
 
Fuck you and efficient lookup and memory that's the point.
Sets too :D
They're also broken for lots of other reasons :D
 
However, if you want insertion order then you can use them.
 
@BenjaminGruenbaum If I wanted to preserve insertion order I wouldn't use a map
That's kind of the point...
 
2:03 PM
Well, the point is a key-value lookup
 
@BenjaminGruenbaum Which you want to make as efficient as possible...
Preserving order goes against that...
 
@SecondRikudo You also still have to use strings/numbers for keys :D
 
I can't see a case where you want a Map that preserves order.
 
Because using objects is completely pointless in Maps. (It's useful in WeakMaps though)
@SecondRikudo @Jonathan has one
 
Because maps double as a list of key/value pairs I suppose
 
2:06 PM
40 mins ago, by Jonathan
Is it safe to assume keys are handled in the same order every time I do for (var key in obj)
 
@BenjaminGruenbaum I saw his usecase, he doesn't want a map
At least, not a map in the conceptual sense.
 
I'm using an array now
with key value pairs
 
@Jonathan You can use map if you prefer
var myMap = new Map();
myMap.set(0, "zero");
myMap.set(1, "one");
for (var [key, value] of myMap) {
  alert(key + " = " + value);
}
 
@Neil let*
 
Arrays in es6 are pretty nice too since object literals don't need silly double naming.
 
2:13 PM
@Neil That MDN example throws in Chrome 41
 
@SecondRikudo +1
 
I wonder if I can get eslint in babel to forbid var
 
@BenjaminGruenbaum Wow, those sound awesome. Where were these courses?
 
@BenjaminGruenbaum Currently considering whether I should hammer the last nail in the coffin.
 
2:20 PM
@SomeGuy Hebrew university.
@SecondRikudo my opinions are here: meta.stackoverflow.com/questions/277773/…
@SomeGuy the cloud OS course is by a Dr Yaron Weinsberg
 
Oh, wow
 
@Jonathan It requires ecma6
 
Wow, that page is really old.
 
Why don't cool things happen in India?
 
Anyway, that guy worked on singularity and surprisingly he knew promises pretty well :D
 
2:22 PM
Hahaha you must have gotten along well!
 
Haha yeah, I googled it
 
He said they beat windows and linux by a ton in most benchmarks simply by not giving people raw memory access since it's a managed language which means they don't need protection rings and can make a lot less system calls which are really expensive.
 
didn't read your link, but your sentence makes me think of unikernels
 
It's actually a microkernel OS :D
But processes can share address space since there is no raw memory access.
Imagine processes were written in JS and not in C. You can't just corrupt another process's memory because you can't even get a reference to an object it owns.
There are no cross references - you can't just reference or dereference like in C and ask for whatever is at offset X in memory.
So you don't need kernel/user mode protection rings and the OS is a lot more free to do things for you.
 
2:28 PM
Huh
 
Of course, Microsoft dumped the project because it was a risk to Windows - good ol' Microsoft :d
 
But it'd still benefit them, right?
 
Benefit Microsoft? Well, the original idea was to use it in Azure.
 
Yeah
 
It was competition to Windows or something, who knows, Microsoft logic.
I can ask for more details in class next week.
Not the most updated, and fed by a student who mistyped "docker" as "dockers" lol
 
2:33 PM
@BenjaminGruenbaum Looks like there's a lot to learn in that course
 
I hope, it sounded really promising. Both did. Stoked for taking courses again :)
 
Was yesterday your first class?
How many weeks will it go on for?
 
@BenjaminGruenbaum Oh yeah, a huge shame it never was released. It was a really insanely good concept.
 
@RoelvanUden I really want to poke his brain about it :)
@SomeGuy 14, and yeah yesterday was the first class.
 
@BenjaminGruenbaum Indeed :-) And why it was abandoned :P
 
2:36 PM
Because Windows, I just said that :d
 
If it was embraced, y'know, a good thing for Windows too :P
 
y'all mean Microsoft
 
2:51 PM
Wait, that would look irrelevant to people not taking the course here.
 

« first day (1598 days earlier)      last day (3335 days later) »