« first day (1720 days earlier)      last day (3243 days later) » 

9:02 AM
Trying to understand what you mean by visually edited programs
 
@Kitler it was in the article I linked.
@BenjaminGruenbaum I wrote such a language remember! :D
man was/is it shitty
 
lol
Anyway, I have some actual Haskell to write, got any genetic learning library you can recommend?
 
actually last time I looked I couldn't find anything interesting
rather disappointing
OTOH I remember simple genetic algorithms being pretty trivial to implement
like, taking 30 minutes in Java
 
so, about 30 hours for ghc to stop complaining?
 
noob :P
either way, I'd rather read compiler errors than stack traces
 
9:18 AM
@BartekBanachewicz very very simple genetic algoritms, then...
 
yeah
I remember this roulette thing
 
(source: I've my own GA library in java, with which I've made the IA of most of my games, including tribo)
 
linky link
 
@BartekBanachewicz not public (and old and super ugly anyway)
 
@DenysSéguret we did them in class so yeah they weren't particularly advanced
 
9:19 AM
especially if you use proper type declarations for functions, "main.hs:34:5: map expects [[a]] as its second argument but receives [a] in map foo x" is far better than "<lib>:2:3456: undefined is not a function in <lib> in..."
 
TypeError is my personal JS favorite
it can happen a lot of times but p much never with something I'd call a type error
 
most often type errors are either typo errors or null pointer exceptions.
 
hehe
Typo Erorr
 
@SomeKittens you around?
 
@BartekBanachewicz do you mean IE ?
 
9:32 AM
can you use map by itself?
 
@AaronHarding by itself?
 
if steps is an array, just calling steps.map(function(step) { .. });
 
@phenomnomnominal it's ~2-3am for him, so I doubt it
 
as in, it's not being returned into a variable
 
@AaronHarding yes, you can
 
9:33 AM
thanks
 
@AaronHarding semantically, you probably want forEach though
 
@AaronHarding you mean to mutate
 
yeah i thought so
 
just doing a codereview, and it's how it's used
 
9:33 AM
it's ok
 
looks like map used to return into a variable and then things changed
 
depending on the quality level, I wouldn't reject for that
 
@FlorianMargaine alright, thanks
@FlorianMargaine (y)
 
Postgres forevah
 
@FlorianMargaine looks like the result of the NoSQL movement :P
 
9:36 AM
what world needs though
is more spatiotemporal databases
 
@BartekBanachewicz as in, datomic + spatial search?
 
dunno what you mean by "datomic", but spatial search + frequent changes
(unlike GIS bases which change not-so-often)
 
@BartekBanachewicz datomic.com
 
morning
 
@BartekBanachewicz datomic is built in clojure
it has the concept of immutability and metadata for each change, e.g. date
 
9:41 AM
I see
 
it's... interesting, although I haven't personally got usage for it
 
select all classes which have child class y
 
@Learner kamoolox
 
@Learner is this a question?
 
@FlorianMargaine ewwww, whats that
 
9:43 AM
@Learner foobar
 
@JanDvorak yes
 
it is not. What is the question?
 
How can I select all x class parent elements which have child class y in jQuery
 
in jQuery?
 
9:45 AM
@JanDvorak yes
 
hint: :has
 
ta
 
@FlorianMargaine nice
 
@Gemtastic click on the faces, 2 are awesome
 
@FlorianMargaine like 2:2? :P
 
9:47 AM
@Gemtastic yup
 
:)
 
10:16 AM
Hello all :)
this is my code
 
ah, the joy caused by using tabs
 
the problem is when i am selecting the text box and trying some input inside it then also the alert box is getting displayed.
 
are you looking for console.log?
 
@JanDvorak,me?
 
@Amit yes
 
10:21 AM
@JanDvorak, no
 
then what's the problem?
 
can calc reference other elements widths?
 
calc can use relative units
 
@JanDvorak, I do not have idea on console.log.
@JanDvorak, I have shared my code and my problem both. Now what could be the possible solution?
@JanDvorak, I am really stuck here :(
 
@Amit What exactly is the problem? It's doing what you told it to.
 
10:26 AM
On F8 key press its showing "right" alert box, on any other key press it is showing "error" alert. Till here its fine. But I have added a textbox. When I am trying typing something inside the textbox then also the alert box is coming
@JanDvorak,On F8 key press its showing "right" alert box, on any other key press it is showing "error" alert. Till here its fine. But I have added a textbox. When I am trying typing something inside the textbox then also the alert box is coming
 
NO NEED TO PING ME!!!
 
Okay
 
and no need to duplicate your message just because I'm not typin at 24000 WPM
or typing one sentence on multiple lines
like now
just so that you don't have a feeling I'm not doing anything
now... back to normal conversation:
 
:(
:)
 
\o/
 
10:29 AM
keydowns inside a textbox are still keydowns. Either add a second handler to the textbox to stop propagation, or in the first handler check the event target if it's a text area
 
JSON sucks
 
@PriyanshuChauhan 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.
 
BSON sucks
 
!!wiki BSON
 
10:34 AM
BSON /ˈbiːsɒn/ is a computer data interchange format used mainly as a data storage and network transfer format in the MongoDB database. It is a binary form for representing simple data structures and associative arrays (called objects or documents in MongoDB). The name "BSON" is based on the term JSON and stands for "Binary JSON". == Data types and syntax == BSON documents (objects) consist of an ordered list of elements. Each element consists of a field name, a type, and a value. Field names are strings. Types include: string integer (32- or 64-bit) double (64-bit IEEE 754 floating point number...
 
also, why?
 
My physics prof. say so.
 
Also, why are you telling us?
 
I'm creating notes.
 
:)
 
10:39 AM
I am making some XMLHTTPRequests, but whenever I request to a .txt file, I get:
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
It's not even an HTML Document, how do I get around this?
 
how many CPUs can use FireFox?
 
httpRequest.responseType = "text";
httpRequest.setRequestHeader('Content-Type', 'text/plain');
 
@Neoares You mean, like worldwide?
 
yes i guess
I ask this because FF developoer edition it's suposed to use many CPUs
 
No CPU can really utilize firefox. I believe a single Firefox instance can theoretically utilise all of the cores on a single machine, though.
 
10:42 AM
so what's the point of the new FF developer edition feature?
"multi-process" they call it
"electrolysis"
 
multiprocess => more separation => more fault protection
 
Firefox sucks
 
@PriyanshuChauhan you suck
:c
 
@PriyanshuChauhan what doesn't suck?
 
10:47 AM
lol, so many emotions ^^ why cant we agree to hate on IE instead :P
 
+1
 
why "instead"?
 
All browsers suck. They're like printers. The best you can hope for is to find the one that's most convenient and least terrible for your needs.
 
I'd rather hate w3(?!c).* than IE
 
I earned a lot of money because browsers exist, so I will not complain. (this time)
 
10:48 AM
MS edge is coming this month
 
s/MS edge/IE 12/
 
@JanDvorak you mean w3toocoolforschools?
 
I don't know that site but it sounds like yet another w3schools clone
 
Can we change subjects and hate on frameworks instead?
 
Structs sucks
 
10:49 AM
angular--
 
struts*
 
can we just hate jQuery?
 
Backbone
 
Not a w3schools clone, just a joke and YOU DIDN'T GET IT! *cries and runs away*
 
@Neoares NO!
 
10:51 AM
Does anyone work with grails + angularJS?
 
I'm trying to copy how google inbox slides in the side menu and resizes the middle div, How can I get a div (div1)to change width (make smaller) when another div (div2) is brought in from the screen using css calc? I was thinking of getting the x position of the div2 and subtracting that value from the width of div1, while shifting the div over to the left.
 
@PriyanshuChauhan Just grails and bootstrap really
though if things start getting complex, I might start using angular
 
@neil
I'm using it for almost a year. It's great. How can you still work on GSPs?
@neo
@Neoares you suck
 
ö
 
@PriyanshuChauhan It helps to template for sure
I also use custom tags, so it isn't cluttered
 
10:59 AM
You're right about templates. But I was talking about benefits of SPAs
 
I was going to post a question on the the main site about the XMLHttpRequest Character encoding error, when I realized that firefox requires the current html page to have a meta charset declared in order to make ajax requests.. which is really weird. Chrome didn't show this error, neither IE.
 
hey guys, i have a contenteditable div. i'm doing an .on("blur") event on it, however it remains with the wiggly spellcheck lines when i blur from it
 
@Jarede spellcheck="false"
 
@afonsomatos
 
that's called pinging someone
 
11:03 AM
sorry. yes i have element.spellcheck = false; but that doesn't seem to be making a difference
 
it's not javascript
it's an html global attribute
<div spellcheck="false" ...
also, if you want to set in javascript, the value has to be a boolean.
although you have to set it first in the html tag IIRC
 
<div spellcheck="sucks"> worked for me
 
@Jarede try element.spellcheck = false;
 
@PriyanshuChauhan wanna kick?
 
11:06 AM
done
 
ok so yes, setting it on div to false works... but you can't seem to turn it on and off via JS
 
@Jarede be sure you don't add quotes to the spellcheck value.
It has to be a boolean.
Or a falsy value. Non-empty strings are truthy.
 
Houston, we have a problem!
 
@blumonkey 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.
 
great first message
 
11:08 AM
"we"?
 
Yes Sir!
 
hi btw :)
 
Hello :) Such nice much delight
so anyways, I have two ajax calls, back to back, they are like:
ajaxcall1;
ajaxcall2;
Both of them target the same page, bascially they store simple statements in a db
What is happening is both the statements are being assigned the same id. But thats not the case when i use sync AJAX (which is more like JAX :P) But i know thats definitely not the solution
So, is this a problem on the front-end or on the code that handles the db logging and stuff?
 
ajaxcall1().then(ajaxcall2);
 
sounds like a server-side issue
do not fix server issues on the client
 
11:13 AM
ajaxcall1():then(ajaxcall2); is more like calling the 2nd function from the "success" function of 1, right?
 
correct
 
@afonsomatos ahh yep i got it working now... so i see by disabling it by default, it doesn't retroactively spellcheck, it only spellchecks going forward
 
correct; it's sequencing them
 
i mean, disabling it by default, and then enabling it on a click event
 
Okay, actually, the db-handling is done by a 3rd party opensource project, so i guess i have to posst an issue there... :/
 
11:14 AM
@JanDvorak more like do not let server face issues because of the client
 
thanks a lot @JanDvorak
@AwalGarg so i should sequence my calls?
 
In the mean time, sequencing your calls is a decent workaround, but be aware of the security issues this bug might cause
 
@blumonkey yes, for now.
 
@JanDvorak Security issues like ?
 
You're going to have duplicate IDs. Being able to fix that is the best option, users only being able to ruin their part of the database through userscripts is the second best.
and by "fix", I mean "without the users knowing" and by "ruin" I mean "without an automated fix"
 
11:20 AM
Oh, Okay. So first try to fix the server-side stuff, if not, then try it on the client-side? Thats what you say?
 
your db should not be letting in duplicate ids in the first place.
 
@AwalGarg I was thinking the same, but i thought maybe my calls were two fast to handle?(O.o)
 
if you can't fix the server entirely, at least make sure people won't be able to grief each other.
 
Then again if i cant handle 2 calls, how will it cope the strains of the production environment
 
11:22 AM
if your db can't handle concurrency from a single client, it is bad.
 
@JanDvorak right. I will see whats the best sol.
 
but if your DB can't handle any concurrency, it is far worse
 
you sound guilty of using mongodb ~_~
 
@AwalGarg Exactly!!. How the heck did you know? :O
 
mongo is not made to put in production. it is just a toy for 3yo.
 
11:24 AM
This is something called Learninglocker, based off laravel. It uses mongod and is an LRS to store TinCan compliant statements. I hope im making any sense.
 
mongodb is used in conjunction with elasticsearch
 
it is also used in conjunction with a toy car when the 3yo gets bored of errors like above
 
how can I not do this? I end up with 50% instead of 100% - 50px:
width: calc(100% - @nav-width);
where @nav-width = 50px
 
just put 50px instead of @nav-width then
 
its a less variable I need to use..
 
11:30 AM
hmm, I should know that. shit.
 
@AwalGarg :( I feel defeated. I will check with the developers regarding the capabilities of LearnignLocker. Thank you all for your help
 
are you from India?
 
why is my "storage" developer tool not working in firefox 40?
 
@AwalGarg if I do this I get -50%, not good .
width: calc(100% - 150px);
 
@SuperUberDuper hmm I see that issue too. lemme do some fisting.
 
11:35 AM
> lemme do some fisting
I didn't know you felt that way about me
 
@SuperUberDuper do this: calc(100% ~"-" @var)
 
works nice!
 
@AwalGarg explain that real quick to a css scrub?
 
thanks, also is there a way to add in the x position of another element to this calc? @AwalGarg
 
@Cereal it is less, not css
@SuperUberDuper ofcourse not
 
11:37 AM
calc() is css, is it not?
I know @var is a less variable
Everything else should be css
 
@Cereal ~ tells less to skip evaluation of the - thingy
so 100% ~"-" @x transpiles to 100% - <x> literally. Else less will actually subtract x from 100 and put that in
 
Ah
 
less knows math. css knows math inside a function. @SuperUberDuper wanted to put math inside css math without letting less do the math. mathception.
 
I done this: document.getElementById('#mainContent').classList.add('adjustToSideNav');
#mainContent {
  display: inline-block;
  max-width: 1000px;
  .adjustToSideNav{
    width: calc(100% ~"-"  @sidenav-width);
    margin-left: -@sidenav-width;
  }
}
 
great work.
 
THE
11:43 AM
    $("tr.DesignedTableTR > td:not(:nth-child(2))").on("click", function(){ do something});

what if i have tr in an object,   var row = $("#id");
how can I use not for last td
 
> They do it with a bunch of media queries
wrong
 
0
Q: Linking css to another elements width using calc, to achieve google inbox side nav functionality

SuperUberDuperI'm trying to copy how google inbox slides in the side menu and resizes the middle div. They do it with a bunch of media queries which I hope to avoid. How can I get a div (div1)to change width (make smaller) when another div (div2) is brought in from the screen using css calc? I was thinking ...

 
media queries have nothing to do with that
 
well there code seems to have them..
 
there code also seems to have a css reset. doesn't mean it is used to resize containers.
@THE no easy way unless you can deduce a sure shot selector
else, just execute queryselector on the element itself
 
11:45 AM
@AwalGarg how do you let people access your localhost?
 
@argentum47 on what os?
 
I am on linux all the tiem
 
php -S localhost:<port>, then share your IP address with them.
or python -m SimpleHTTPServer
 
ew ... I know that but there are other problems, the website depends on the subdomain name
there was one gem proxylocal but then its down forever
 
11:49 AM
hello anyone knows about facebook access token?
 
yup that works too . but my account has expired :D
 
@FastSnail yes. they are 6ft tall and weigh 120lbs. Their favorite color is orange.
 
@FastSnail If you mean a CSRF token, it makes sense they would have one
 
actually wait, let me add +1 to my gmail
 
@argentum47 isn't it free for individuals?
 
11:50 AM
@JanDvorak can application like comment as someone using access token??
 
@FastSnail facebook has an API...=
 
@JanDvorak my friend has use djliker to get autolikes.but he says that now he also comment's to outer status,but not actually him
is it possible
 
THE
$.each(obj, function () {
    var row = $("<tr class='fruity-tr' data-sid='" + this.SID + "'>" +
                "<td class='fruity-td_cb'></td>" +
                "<td class='fruity-td_txt'><span>" + this.Name + "</span></td>" +
                "<td class='fruity-td_sd'>StartDate</td>" +
              "</tr>")
        .appendTo("#fruityTable");
this is happening in document ready and I need to add jQuery datetime textbox here,
"<td class='fruity-td_sd'>StartDate</td>" +
is it even possible
I am so confused
 
not enough jQuery
needs more
@JanDvorak help him, you jQuery lover
 
how many times are we going to have to tell you to format your code before you'll actually do it?
 
11:58 AM
@Neoares only if he formats the code. Wondering why Cap didn't trash it?
 
THE
@GNi33 I did but it reverted it, anyway added it back
 
!!are you sleeping?
 
@Neoares All signs point to yes
 
kek
 
clearly
 
11:59 AM
@THE very good
 
@THE ew
 

« first day (1720 days earlier)      last day (3243 days later) »