« first day (1813 days earlier)      last day (3128 days later) » 

12:00 AM
@SomeKittens depends on what you mean?
 
well 3K rep isn't "high rep"
also
0
A: Changing An Elements Content

GrafiCode Studiothis should solve: $( "#button" ).toggle(function() { $("h1").html("Change here"); }, function() { $("h1").html("Revert back here"); });

seems to me the banter here isn't really malicious
not sure why you are getting upset
 
@rlemon it's the internet, getting offended is a national pastime.
 
The reason I got upset was the part "Ahem... Are you blind?", while it turned out he was the blind one.
 
@phenomnomnominal Trying to figure out how to swap out filter nodes in a realtime system
 
@SomeKittens I thought that was shooting up schools...
 
12:02 AM
without recreating the whole system
 
@icecub how so?
 
Fun Fact: There is a mass shooting every 23hrs in the US
Wait, not fun, the other thing
 
horrible :(
@SomeKittens what's the general architecture?
 
> Gun activists shocked to discover tragedy used to push agenda for stopping said tragedies
 
@rlemon Because the person that asked the question complained it turned his button invisble. This suggested that .toggle() was doing something totally different. If they looked at the event toggle page, it noted it was deprecated and now used for toggling visability. Hence he was blind for not noticing that
 
12:07 AM
his comment "are you blind" appears to be in direct response to your "ahem" comment about it 'not working' when a working fiddle was provided.
 
I admit, I didn't know it myself either untill they told me I was wrong. So I started thinking as I'd find it extremely odd that a library would use 2 exact same functions for totally different things.
 
@phenomnomnominal post-its
 
is a filter node just a function?
 
@rlemon Agreed. But my comment wasn't wrong. Just because something happens to work on an old version of a library, doesn't make it valid code. Especially not when the someone tells you what it's doing instead of what you expected it to do.
 
no it wasn't.
 
12:11 AM
@phenomnomnominal It's an observable, technically
 
ahh
I was going to say just eval it :P
 
@SomeKittens not shocked at all really, just annoyed because people ignore the murders that happen every day in places like Chicago which have stricter gun laws :)
 
but your bitching in here seemed kinda unwarrented imo. no offence or anything, I'm just calling it as I see it
 
I don't think anyone is shocked that an agenda would be pushed after a shooting
since it happens every time.
 
@Loktar where do you sit on gun control?
 
12:13 AM
@phenomnomnominal he's against sitting on guns
 
especially with bayonets
 
come to Canada, you only risk being shot if you dress like a moose or cheer for the wrong team during playoffs.
 
/me shudders
 
No worries. I prefer a good discussion over ranting. Even if I'm the one being wrong in the end :) Perhaps I'm just tired at the moment and more easily offended
 
@phenomnomnominal A little more complicated though:
export let times = gustav.transformer('times', (mulitplier=2) => {
  return (iO) => {
    return iO.map(num => num * mulitplier);
  };
});
 
12:14 AM
@phenomnomnominal I'm against gun control. But for enforcing current laws, in addition to providing training and better mental health care.
 
^ registers as times.
 
@icecub "are you blind?" is blunt, but honestly, I wouldn't take it as an attack.
shrug it off?
 
@rlemon that wouldn't give him his dopamine hit
 
@SomeKittens That did though xD
 
Say the user wants to set multiplier to 7 instead of 2
I need to create a new one and then swap it out on the DAG
 
12:15 AM
@Loktar eats his poutine and keeps his mouth shut
 
@SomeKittens is it the export that registers it or the call to transformer?
 
@phenomnomnominal No, that's just a TS thing
 
@SomeKittens yeah I know. Okay, so wouldn't you just run it again with multiplier = 7?
or do the transforms happen is some sort of order?
 
let times = gustav.transformer('times', (mulitplier=2) => {
  return (iO) => {
    return iO.map(num => num * mulitplier);
  };
});

let numberGen = generateNumbers();
let timesNode = times(7);
let cs = consoleSink();

gustav.addDep(timesNode, numGen);
gustav.addDep(cs, timesNode);

gustav.init();
^ current way things work
gustav.replace mebby?
 
how does addDep work? why goes timesNode get added twice?
 
12:19 AM
function addDep (fromNode, toNode)
so the graph becomes cs -> timesNode -> numGen
 
@Loktar so, have you logged into Diablo yet?
 
a bit verbose for now, will clean that up as I gain a better understanding of what's going on.
 
I've sent you like 15 'gifts'
I have no idea what the fuck they are
 
@SomeKittens ahh. Right, so the connection graph isn't just linear
gustav.swapDep maybe?
 
I suppose
my other problem is I've shot myself in the foot by using Symbol
works perfectly on the backend but I can't send that to the frontend.
 
No polyfill - V8's got it natively
(and therefore node)
(because iojs)
(yayyyy)
((I'm speaking) with (a lisp))
 
(yeah, (but for the client))
 
@phenomnomnominal can't JSON stringify symbols
 
oh duh, no shit
 
so I could just give 'em ids 'n such
but that'd get weird
 
12:25 AM
why not make their 'symbol' just function.toString()
 
how would that differentiate times(4) from times(7)?
 
ha, it wouldn't.
 
and thus my problem
in the current situation, times(whatever) returns a Symbol. Yaaay uniqueness!
 
12:41 AM
@SomeKittens Here, for instance, FP may be of help: If addDep returned the new tip of the node and didn't mutate some internal data structure, you could refer and replace nodes as you wish.
It'll require some re-wiring, and may not be as memory efficient. But it's an interesting way to think about it.
 
Hmm this is really odd. It seems my browsers don't load js from localhost? Even a very simple window.onload = alert("test"); doesn't work. Works perfectly fine on fiddle though
 
lulz ignore me, in your specific example the difficulty will be the same. It'll show in more complex cases.
If you want to change an initial node, you'll have to change all nodes after that point
Since your iO variable changes
 
Never mind.. Confusing language with type, lol
 
@SomeKittens If you memoized the function that gustav.transformer returns that would return the same Symbol for the same function and arguments?
although then you still have the symbols issue
 
12:59 AM
@Zirak there's already composition elsewhere in the system (yay FP)
Hadn't thought about needing to redo everything after that node
Blast.
No, intentionally
@phenomnomnominal ∆
 
∆v
I wonder if the license plate DELTA V is taken...
 
You might have the same transform applied in two places
 
does Gustav overlap Rx at all, or am I misundersanding it?
 
Gustav uses Rx as the transport mechanism
 
ohh, because I was looking at demo.js and thought "ohh, like Rx".
ohh, i got the oerfect ui for it... what was ti called..
so UI for this is open souce and JS: noflojs.org/example
 
1:15 AM
very nice
 
I played with it once and was easily able to make my own objects to link together.
 
I looked at that way back when
They've gotten better. I remember digging through and seeing a lot of buzzword and not much action.
might steal some of that
 
1:59 AM
mehverything is meh
 
2:31 AM
these pups go hard
 
2:43 AM
I need an adult
 
3:21 AM
If anyone has some comments on SQL let me know... files.meetup.com/18663359/…
 
@royhowie good question, have you tried data compression... or using a MD5 hash on larger data to convert it to a hash and then do a lookup later?
 
@asolar huh?
 
If you do a hash on a dataset it will have a unique ID ...
 
3:38 AM
@asolar I'm not sure what the context of your question is.
 
With your question, I think you need to do a hash or some type or not use as much data... :P
 
@asolar not my question; just some garbage I found
 
I was just thinking about SQL and looking for some other ideas.
Whats going on over there?
 
Go home, @asolar, you're drunk.
 
:P
Look... we got a planet to save... people to feed... and well... javascript to solve it all?
 
3:45 AM
javascript for president
 
as if we don't have enough problems with class.
 
Returning to the world of programming after a hiatus. Looking for some guidance. Anyone have ideas?
0
Q: Search third party website...Search Engine API?

panoramicI’m in the preliminary stages of creating a website that includes a search function that allows the user to search public filesharing and storage websites. Subsequently the user’s results will be displayed in a variety of formats on our website based on the file extension. In order to display t...

 
If you are just learning to program ... make a game maybe? However, its a lot of stress... if you can figure out how to make a game that isn't stressful let me know. I want to make a game called GOFISH the idea is to surf the web and save words you like to a friends list...
 
Not learning to program, its just been a while since I've played around with it.
 
4:07 AM
night everyone!
 
 
2 hours later…
5:53 AM
Happy new weekend
 
6:12 AM
So apparently Adblock, Adblock Plus, and AdBlock are three separate things. Fucking hell.
 
6:26 AM
 
6:55 AM
 
7:10 AM
@AwalGarg you would not enjoy the experience of sexual intercourse with hell.
@RoelvanUden o/
 
@Abhishrek You would not like to be told what figure of speech means.
 
@AwalGarg I did not realize you have upgraded to support figure of speech !
 
7:23 AM
@Abhishrek hangman
 
Tags on profile box at 4 and 20 ... must not earn new badges ... maintain the 420
 
just testing
 
@ChingChing 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.
 
7:47 AM
anyone used ionic view?
 
crl
8:07 AM
ironic view, sometimes
 
 
2 hours later…
10:10 AM
anyone know a cross mac/pc way to format EHD to support files > 40gb
FAt won't cut it
 
      $(function () {
            var $temp = $("#spa");

            //jQuery function
            $temp.randomColor();
        });

        jQuery.fn.extend({
            randomColor: function () {
                var color = getRandomColor();
                $(this).css("background-color", color);
            }
        });

        function getRandomColor() {
            var letters = '0123456789ABCDEF'.split('');
            var color = '#';
            for (var i = 0; i < 6; i++) {
                color += letters[Math.floor(Math.random() * 16)];
// whats wrong with that ???
 
10:27 AM
github.com/petkaantonov/bluebird#browsers links bluebird.core.js and bluebird.core.min.js are dead. How do you tell them? Opening an issue for a dead link in a readme sounds a little bit too much
I know there is some contributors on the project here, maybe you can do something
 
Easy PR
 
I don't want those t-shirts, feel free
 
@dievardump ping benji
 
@BenjaminGruenbaum see 4 messages before
11.65kb gzipped is quite big though :(
 
Think about the developer time it'll save
 
10:35 AM
I know, I juste think it's big for a "core"
But I like bluebird ^^
 
    $(function () {
                var $temp = $("#spa");
                $temp.randomBorder().randomBackgroundColor();
            });

            $.fn.randomBackgroundColor = function () {
                var color = getRandomColor();
                console.log(color);
                this.css("background-color", color)
            };

            $.fn.randomBorder = function () {
                var color = getRandomColor();
                console.log(color);
                this.css("border", "1px solid " + color)
 
try with .css('backgroundColor' ..)
 
No, its problem with order for eg:
$temp.randomBorder().randomBackgroundColor(); // randomBorder working background not working
$temp.randomBackgroundColor().randomBorder(); // background working but border not working
 
you should return this at the end of every $.fn.whatever, no ?
 
oh ty it worked :)
 
10:44 AM
I would .randomize(name) with name either border or background
those long names are pretty ugly
 
hmmm yes, its for casual just learning jquery custom function anyway .randomize(name) good idea thank you
 
GUYS! Tweet at @jargnar about rlemon's slide poop if you want it to show up live at PyCon India!
 
@SomeGuy you are at pycon?
 
Yeah
 
Hey old man
 
10:47 AM
Told you I was going, didn't I?
 
:D
 
Only old people go to PyCon?
 
googling "slide poop rlemon" was a really bad idea.
 
Hahaha
 
@SomeGuy ofcourse. Don't you know the laws?
 
10:47 AM
!!slidepoop
 
Mar 13 '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.)
 
so, I'm looking for a logo... This one is simple and doesn't look too bad, but still doesn't feel very right...
like, not enough information about what do I do?
and probably way too simple
 
write your resume in it
 
suggestions?
@AwalGarg -_-
was thinking more something like just "web dev" or similar
"front-end web dev"
the rainbow jumps a bit too much to the eye I think
but I still think it's not a bad idea
 
that background color looks similar ^_^
 
10:56 AM
?
 
0. git add . -u
 
maybe this?
 
@dievardump It's legit
 
uuhh! I like this one though:
what do you think? too messy?
 
11:09 AM
Yes, it's too squished.
Putting it below the rainbow but keeping the darker colour may help; but not so close to the rainbow.
 
The f in that typeface also looks a bit out of place
 
I don't really know about getting the text below the rainbow...
@Zirak how would you suggest fixing that?
this is all Verdana btw
 
Use a different font
 
Use monospace
 
11:29 AM
I wouldn't use a rainbow though
 
reason?
pretty much anything graphical I do involves rainbows, so...
 
@towc oh yeah, you have two greens and no purple on your rainbow
 
@Zirak kinda planned. I hated how the purple looked in it
and the green just showed up
there are 7 pieces of the bar, and they linearly change hue from 0 to 250 (/360). I don't really mind the double green
 
11:45 AM
Current status, applying for an ESTA travel authorization to visit the US. "Parent First Name contains invalid characters"
So basically I am forced to submit false information
 
    .line {
        display:inline-block;
        width:10%;
        height : 3px;
    }

    $temp.colorLine();

    $.fn.colorLine = function () {
                var div = "<div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div><div class='line'></div></div>";
                $(div).find(".line").each(function (index, element) {
I'm trying to generate color line after a div its line colorful border-bottom
 
@dievardump don't really like it
 
Me neither
 
// me too
 
11:49 AM
I wanted to see if it was possible to pattern like that
looks better on the second label though
But I still don't really like the rainbow ^^'
 
WORKING :)
$.fn.colorLine = function () {
            var div = $("<div></div>");
            for (var i = 0; i < 10; i++) {
                var span = $('<span class="line"></span>').css("background-color",getRandomColor());
                $(div).append(span);
            }
            this.after(div);
            return this;
        };
this give neat colorful border-bottom
 
Do you really need the div ?
Well forget about that
 
12:04 PM
old style C function declarations look horrible
 
$.fn.colorLine = function (height,noOfColors) {
            var div = $("<div></div>").css("margin", "0px");
            width = 100/noOfColors
            for (var i = 0; i < noOfColors; i++) {
                var span = $('<span></span>').css({
                    "width": width + "%",
                    "height": height,
                    "background-color": getRandomColor(),
                    "display" : "inline-block"
                });
                $(div).append(span);
            }
how about this
OK ??
 
OK
 
crl
OK
 
but its not appearing right below the div eg:
$("#foo").colorLine("4px",8):
<div id="foo"></div>
//some space here i dont know y ??
// my border
a little space between foo and my border any idea y ?
 
crl
jsbin it
 
12:14 PM
jsbin ??
 
crl
yes
 
i don't know what does jsbin mean ?
okk i got it googled it
 
crl
well played
 
well, since you can actually use google, there might be some hope for you after all
 
@Zirak masters, yeah
 
12:18 PM
how can i upload image here i wanna show that image
 
@Zirak : BSc (First/Bachelor's degree) -> MSc (Second/Master's degree) -> PhD (Doctorate)
Professor is just an honorary title, like knighthood
@dievardump there is a GH issue for that, hmm
 
Oh boy, Im wondering why my string replace does not work: jsfiddle.net/y66wh26k/7 any idea whats wrong there?
 
pls see that
// here is the code
$temp.colorLine(4,20);
$.fn.colorLine = function (height,noOfColors) {
            var div = $("<span class='color-line'></span>").css("margin", "0px");
            width = 100/noOfColors
            for (var i = 0; i < noOfColors; i++) {
                var span = $('<span></span>').css({
                    "width": width + "%",
                    "height": height + "px",
                    "background-color": getRandomColor(),
                    "display" : "inline-block"
 
Is there any website that will just help you to share your computer config without installing addons ?
I can't seem to find one
 
@BenjaminGruenbaum It took a long time to figure that out
 
12:25 PM
Could've just waited for me :D
 
@dievardump Define "computer config"
 
any one ?
 
processor, ram, gpu, os ...
 
@BenjaminGruenbaum An excuse to work on my ASCII table skills is always welcome
 
ill have a look simply
 
12:26 PM
heh
 
@Simply I look at it
 
thank you
 
@dievardump Linux? hwinfo / dmidecode. Windows? systeminfo
 
@Asperger its working fine but I've no idea why that space between
 
I wanted a noob to go on the website get a "share this" link and send me the information without havig to open something else than a link
 
crl
12:27 PM
@Asperger Did you want to do elem = elem.replace('.', ''); ? (replace return a new string)
 
@simply it should work fine because the margin is 0
 
But meh, I'll tell him that
 
@crl yes, I wanted to replace the dot character with an empty string. Actually remove it entirely
 
@Asperger yes i thought the same but not working :(
 
TIL dmidecode
 
12:28 PM
@dievardump Browser based? Of course not!
 
@Simply can you post a fiddle?
 
ok give me a sec
 
@Zirak I was expecting some flash or silverlight to do those horrible things
 
@Simply then I could inspect the stuff. I think there might as well be a margin or padding somewhere
 
crl
@Asperger so do elem = .. and it'll work
 
12:29 PM
@ctr oh crap, you are right.
@crl I didnt save the new value. Thanks for clearing my head!
 
I have a 3 megs of L3 cache. I wonder how good/bad is that.
 
crl
also it's ugly to do:
if (something) {
    var x = ...
}
// do things with x
 
L3 is the cache between processor and RAM right?
 
@crl I will have an if else too
@crl one condition checks for a period at the start of a string and the other for a hash sign
unless of course you have a cleaner idea. Im open to best practice
 
12:33 PM
@Simply I will check now
 
crl
@Asperger I mean you should use a variable in his scope only, here it works because var is a bit 'broken' in javascript (it stays defined everywhere after use), but if you used the new let it wouldn't work
 
@Asperger its giving me $().colorLine not a function
 
crl
var x=..;
if (stuff) {
    x = 2
}
// other things with x
 
@crl you mean I should not set a var within a condition?
 
1 message moved to Trash can
@Simply Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
12:36 PM
@Simply you use jquery I see
 
crl
@Asperger yes if you use it after, outside of the condition
 
@crl ok, I will do that. Thank you so much for your advice
@Simply did you always use the current jquery or have you been using an older one?
Oh ok it works now
what have you changed?
 
using 1.10.2
do you think that is a jquery problem?
 
12:38 PM
no
you didnt wrap it in a function, therefore it was not defined
 
:focus {
    outline: -webkit-focus-ring-color auto 5px;
}
this making the space between them :)
 
@Simply could be because no padding or margin there
you are right!
I saw it now. Actually did some testing, I couldnt see any changes by removing the outline and you?
 
    .color-line {
        outline: -webkit-focus-ring-color auto 0px !important;
    }
// added this but no use :(
 
Maybe that isnt the case
 
hate this
its not working in any way
its really very strange
This working :)
https://jsfiddle.net/Lta4vwhb/9/
 
12:49 PM
@Simply This reminds me
I hate programming
It doesn't work
it doesn't work I hate programming
 
its working now :)
https://jsfiddle.net/Lta4vwhb/10/
 
I hate programming
It works! I love programming
 
@Tushar haha true
 
nginx.com/oreilly-guide/… this is awesome-ish
wait
 
@Simply what did you change?
 
1:03 PM
instead of this.after i used append
 
@Simply ok great : )
 
5
Q: CSS Border Colour Into 4 Colours

Peter JenningsIs there any way that I can have 4 different colours on one side of a border in CSS? I currently have #header { border-color:#88a9eb; } I want to have a border of 4 solid colours, with a 25% split on each, Is this something that is possible? I want to make a solid version of this without the ...

Just saw your fiddle, I think this is better approach
 
@Tushar this fixed to 4 colors only what if i want more colors and custom height?
mine works with any height & any no of colors
 
You can add colors in background-image: linear-gradient(to right, rgb(139, 191, 64) 25%, rgb(230, 27, 33) 25%, rgb(230, 27, 33) 50%, rgb(124, 196, 236) 50%, rgb(124, 196, 236) 75%, rgb(254, 181, 17) 75%);
 
@Tushar hmm this give neat linear colors, ok let me do
 
1:11 PM
@Simply And for height update background-size: 100% 4px;
@Simply jsfiddle.net/tusharj/mvfxs0qp check this updated demo
 
@Tushar nice :)
 
@Simply If this has helped you, upvote the answer, he's put lot of efforts
You can also check other answers, they're also cool
 
1:54 PM
!!should i focus on rep ?
 
@Abhishrek Of course not
 
@CapricaSix =/
!!should i get education ?
 
@Abhishrek No
 
!!should i die ?
 
@Abhishrek I can neither confirm nor deny
 
1:55 PM
lmfao
 
@BenjaminGruenbaum that mark miller's dissertation you posted on the list looks interesting. What can I expect to learn from reading it? It's a wee bit too long :P
 

« first day (1813 days earlier)      last day (3128 days later) »