« first day (1846 days earlier)      last day (3120 days later) » 

crl
4:01 PM
I prefer more improvised meetings than the fixed agile / sprints schedule things, but I'm not in a real team (just with my boss)
 
@crl are those lemons?
 
crl
@Loktar could you share your DnD stuff if it's not private? just for ideas before I make some shit
@rlemon of course
 
I lied not food time yet :(
 
Hi All, i need to create a photo sticker single page application, which library should i use to put stickers on image, svg, canvas? any idea
 
crl
what's a sticker?
 
4:06 PM
sticker, something like star..it can be any small image
 
crl
and what do you want to do with them more precisely?
 
!!s/ti/u/ 26703187
 
@AwalGarg what's a sucker? (source)
 
!!urban sucker
 
@KendallFrey [Sucker](http://sucker.urbanup.com/3828) A person that has been tricked into something.
A gullible person.
 
4:09 PM
lollipop lollipop
 
hey it will just a small image editor ,on top image you can place a sticker, from list , and then can save those, move those sticker...
 
@Shahzad like this stickeryou.com/2/stickermaker ??
 
aw man, I should play some lollipop chainsaw
 
@rlemon yes you are right, that app contains extensive features, i just only needs stickers and put them on image, use can export image after wards
 
@Shahzad Canvas should work fine then
 
4:11 PM
@rlemon why do you think canvas is better than svg?
btw i am good at javascript , but my svg/canvas experience is poor...
 
well, check them both out and choose the best tool for the job you're doing
both are viable solutions in your opinion, so pick which one you think will work best for you
 
it's a shame there's no good SVG to raster functionality in the browser
 
crl
you could do it in pure html, with DnD a bit like me :), and for exporting the image, no idea
 
yea but that is a lot harder to export
 
crl
yea just take a screenshot!
 
4:14 PM
you would need something like html2canvas
 
ohh man in html, i will get stuck in maintaining it's css
 
so in the end it is still canvas :P
 
html2canvas is always janky, too
 
o/
Anybody knows a good library to make dfd's / flow charts in javascript ?
 
@ssube yea, I've seen some people use it well.
I never had good results
 
4:14 PM
there's just too much for it to accurately reproduce the whole render
it's like Wine and games on Linux
 
@Abhishrek try d3
 
Wine and games? isn't that an oxymoron?
 
crl
or c3js, no flow charts.. too bad
 
@Abhishrek @SimonSarris works for a company that makes a lib for those iirc
 
@rlemon it's their most vocal, most visible market and brings in very little money, despite taking more development time than anything else
 
crl
4:16 PM
@rlemon no that's a tautology
 
@rlemon I once made a pretty good slot machine in Minecraft
 
@crl Your mom is a tautology thanks to all those facelifts.
 
@KendallFrey I just like the passcode doors
would make mp maps a lot more enjoyable I think
 
crl
:)
 
4:17 PM
This is crude, but could someone suggest a better way of doing this: jsfiddle.net/jLLrrejc/1
This seems like a ghetto way of checking.
 
yea
 
crl
!!urban ghetto
 
@crl [ghetto](http://ghetto.urbanup.com/466) 1. (n.) an impoverished, neglected, or otherwise disadvantaged residential area of a city, usually troubled by a disproportionately large amount of crime
2. (adj.) urban; of or relating to (inner) city life
3. (adj.) poor; of or relating to the poor life
4. (adj.) jury-rigged, improvised, or home-made (usually with extremely cheap or sub-standard components), yet still deserving of an odd sense of respec(snip)
 
stop storing states/data in the DOM if you need it in JS
DOM is not a data-store
 
I know I know...I'm trying to improve my habits here.
 
4:19 PM
don't discriminate the dataset !
 
crl
and dataList and <script> templates
 
Use native JS properties when applicable. $(this).text() == this.textContent
Less bloat, nicer code.
 
use === and not ==
 
^
 
user1596138
4:20 PM
@SterlingArcher Don;t listen to them you should use == in most cases
 
user1596138
Don;t jump on the bandwagon
 
=== ensures type match correect?
 
always open curly brackets on the same line
 
4:21 PM
trollers gonna troll
 
Use = instead.
 
@Jhawins lmao
 
user1596138
Everybody is all like use === instead of == there's no benefit.
 
user1596138
Haha good morning plebs
 
crl
use 3=, equivalent to ===
 
4:21 PM
=*3
 
==3
 
<3 is equal to ==
 
Ugh, I'm designing an object to mimic data storage. It's kind of painful
 
I understand I need to use vanilla JS and not store data in the DOM, but does it make sense to check the values of my second table within the event listener on the first table? That seems wonky for some reason.
 
4:22 PM
derp
magic how much is going on nowdays
 
it's okay to store some string or number based data on dom nodes
dataset is there for a reason
 
!!afk lunch
 
Time to google dataset...
 
@AmericanSlime Why are you not using a JavaScript framework?
 
is that a troll now ? :P
 
4:23 PM
This whole chat is a troll.
 
I didn't think I needed one if I could mustard my way through with my shit code.
 
crl
well each thing at a time, he's learning dataset first
 
Oh god... mustard...
 
I need to implode
 
2 hours ago, by Sterling Archer
> sardathrion 8 points : 2 replies : 23 minutes ago reply
Stay safe: condom + mustard + second condom. If one condom breaks, either you or she will know. ^_~
 
4:25 PM
Ah I forgot about the data attributes...nice.
 
@AmericanSlime plz use angularjs and bootstrap
 
it's just fine for simple datatypes, any more complex or more data it's a no no again
 
@AwalGarg I can't tell if you're being serious or not lol/
 
me too lol
 
just trolling, @AmericanSlime you are going the right way :) vanilla js all the things!
 
crl
4:27 PM
boobstrap ain't bad
 
@KendallFrey Command mustard learned
 
@rlemon great link
 
@SomeKittens rlemon is afk: lunch
 
I use that method all the time
 
4:30 PM
poff
 
crl
had a friend called popoff at school #coolstory
 
how do you guys handle dynamic node creation/html templating with vanilla js in general ? #SERIOUSQUESTION #NOTROLL
 
crl
with react
 
write little dom module to convert json to dom elements and use it.
 
4:31 PM
@jAndy with templates
 
as I said, pure vanilla js
 
hi, is it not right to modify the state in componentDidMount or componentDidUpdate ? I have to set the left position dynamically (= width of the element + padding * 0.5)
 
@jAndy Don't. Using libraries is an important part of being a smart developer.
 
es6 is such a massive improvement to javascript... it feels like frameworks aren't as necessary anymore
 
crl
handlebarsjs is quite like pure js
 
4:33 PM
I used the #notroll hashtag so trolling is not allowed
 
@corvid they are, they can just be much lighter
 
@jAndy Strictly vanilla js is not exactly maintainable. writing a single function breaks the "vanilla js" barrier.
 
@SomeKittens lol omg
 
@jAndy I'm not rolling
 
4:33 PM
highrolling
 
they see me rollin'
 
with shadowDow, or templating like underscore does or as the dark lord says
 
@AwalGarg Explain how having a function no longer makes it vanilla?
 
@SterlingArcher they all end up cuddlin' on the couch, smoking too many cigarettes, and spinning poi
 
tryin' to catch me playin 'just the tip'
 
4:34 PM
something that is not written by me is not vanilla to me .. XD
 
Because vanillajs means your set of identifiers must correspond to whatever is natively available in the standard lib. Every utility function you write constitutes to expanding the library of functions available to you.
 
@SterlingArcher when has that ever been the case when erybody rollin?
you're lucky if it doesn't turn into a full blown orgy
 
You're not wrong
 
why isn't it called chocolate js
 
@jAndy that's racist
 
4:36 PM
Ah ok...I understand now, thanks.
 
strawberryjs is also fine.. also kicks vanilla flavor by far
 
this is vanilla js code for browser land: alert(2+2);
 
eval("2+2")
 
@ssube Dunno, I usually find it easier to write my own packages if they're small enough so there's more granular control over how they work. But then again, I'm not exactly a great developer
(PRs are a pain to deal with)
 
@AwalGarg I'm still trying to figure why I would write a module to convert json data into html instead of transfering ready to use HTML with variable placeholders to replace on the client dynamically
 
4:38 PM
@corvid That's objectively wrong.
 
a lot of great functionality nowadays in vanilla these days
 
Always reuse.
 
 
@jAndy because you can't do the latter feasibly
 
Reuse is good, but the problem is not having control of the code imho
 
4:39 PM
why is that
 
whats the best way to parse this pastie.org/10532309 ? I want like { company: name, location: name} in nodejs
 
@corvid why do you need control?
 
because dom has no api for identifying valid placeholders in text contexts and parsing them out
 
@argentum47 DOMParser
 
it sounds like you're running into the "I want to do this thing, but subtly different" problem. That's not a problem with the common libraries, it means you don't understand the patterns you're using correctly.
That subtle difference you think you need today will come back to break your code in a few weeks.
 
4:40 PM
Most recently, I was using a package that had a dependency on a package I didn't want to use (a client-side router that was deprecated) so I wanted to use a different router, otherwise the rest of it was fine
 
If you find yourself doing something novel, you've most certainly done something wrong to get their.
 
DOMParser is a great way to have native js templating.. together with ES6 Template strings
 
crl
@Nick "in nodejs"
 
that's why I feel like that is much better than using json data
 
crl
or maybe DOMParser exist in node
 
4:41 PM
@jAndy I have this markup string: <span class="{{foo}} {{bar}} baz">hello {{troll}}</span>. substitute the placeholders with keys from a store object.
 
@crl I don't think so, but you can look on npm for dom parsers
 
@ssube I dunno. Sometimes people do weird things and I don't get why they're doing them, but not sure if it's worth putting in a PR
 
Ever had colleagues who are individually responsible for quite a big part of company code come to you and ask if you could explain them when they should use IF ELSE vs IF ELSE IF vs IF IF??? Happened 7 hours ago and I'm still feeling depressed
 
@AwalGarg new DOMParser.parseFromString(<span class="${foo} ${bar} baz">hello ${troll}</span>, 'text/html');
something like that
how can you write ticks in chat here :P
\`
 
`
 
4:44 PM
i dun think there is a DOMparser in node
 
@argentum47 find something on npm, then
 
@jAndy that confines you to a single render iteration. what if the value of troll changes to "Zirak" from "benji"? Do you re-render all of the HTML?
 
crl
@Jonathan tell him to do the fizzbuzz problema
good start
 
 
@AwalGarg well, of course when parsing the template you create node references
but you would have the same problem using JSON based data for templating
 
4:46 PM
@jAndy the method you gave does not do that.
@jAndy not with a carefully thought out spec
 
it would require logic for any approach under the hood to have like "life reflection" of data
the question is if you really want that
I don't.. that's why I can see much value in AngularJS or something similar
 
crl
@AmericanSlime html5demos.com not bad site
 
user1596138
@Jonathan This makes little to no sense. Good try
 
@jAndy more often than not, you do. But if you have a specific case where you don't, then ofcourse.
 
dang it, its difficult to get it like that with regex.. :( I will try to write the simplest htmlparser ever
 
4:49 PM
"simple" and "html parser" don't go together :P
 
@AwalGarg heh..
there are dots in that string, what kind of developer, passes stringified dom in xml
 
@argentum47 what are you doing?
 
go to google music to see if it's worth it.

"Your subscription has expired" wut
*hit resubscribe*
"Start your 3 month free trial!"
 
@AwalGarg I am trying to get the xml data, which I thought will include the location, title, company, and description separately, and then I can populate in database
 
So now I have 3 months of google music
 
4:54 PM
@argentum47 and you are not using an xml parser because?
 
crl
tony the pony
 
@AwalGarg I am using xmlparser,xml2js .. this is one sample result.s.rss.channel[0].item[0] has { title: title, a1nd link: link, description: description} and then s.rss.channel[0].item[0].description = <span><b>Company: </b>Futurz Human Resources Solutions Private Limited<br><b>Experience: </b>0 to 4<br><b>location: </b>Delhi&#x2C; Gurgaon<br><b>Ref: </b> 16509407'
 
so parse the description again
also see hangouts
 
0
Q: Has anyone proposed a Pipe operator for javascript?

Jared SmithMany languages have an operator that allows you to pipe the results of one operation into a call to another (e.g. the | operator in bash, the |> operator in F#). One of the great advantages to my mind of the common idiom of method chaining in javascript is that it reads top-to-bottom, left-to-ri...

hrm
 
crl
5:02 PM
   xhr.upload.onprogress = function (event) {
      if (event.lengthComputable) {
        progress.value = progress.innerHTML =  (event.loaded / event.total * 100 | 0);
      }
    }
can you things like that with fetch?
 
no
 
crl
meh.. crap
 
@rlemon thanks!
 
@Abhishrek rlemon is afk: lunch
 
user1596138
@SterlingArcher .... So he wants a sugar for existing JS methods
 
user1596138
5:06 PM
No functional change
 
sounds like it
 
user1596138
He should just learn JS as it is...
 
user1596138
 
user1596138
@SterlingArcher
 
crl
!!> eval('/* test */1+1')
 
5:09 PM
@crl "undefined"
@crl 2
 
my balls run away everytime I see that
lol dat impact
 
user1596138
 
Man that knee lock though
That's incredible
Man that knee lock though
 
user1596138
I still like the Baysted gifs better
 
@Zirak wanna go to humongous right now?
I'm starved
 
5:15 PM
Who has starved you
 
I need explanation from the internet
 
user1596138
 
@AwalGarg The Emotional Falsehood Inherent In Emoji Culture
 
user1596138
Doggy rescue... Somewhat violently lol
 
lolwat
 
user1596138
5:19 PM
Hold on I'll get the full video
 
@ssube so everytime you said "lol", you weren't laughing out loud? BASTARD!
 
user1596138
 
LOL
QPAOMN - quickly pushing air out my nose
 
LIAR! You didn't laugh out loud.
 
user1596138
@Nick This one is more accurate for me than lol in 99% of cases
 
crl
5:23 PM
saw this:
function entities(s) {
  var e = {
    '"' : '"',
    '&' : '&',
    '<' : '<',
    '>' : '>'
  };
  return s.replace(/["&<>]/g, function (m) {
    return e[m];
  });
}
here and a bit confused
 
well, that could be sanitizing stuff, but it's not doing much of anything
 
crl
hmm maybe it does add extra quotes actually like a&b becomes a'&'b
 
map of original:escape is a classic way to do simple sanitization
 
I'll sanitise ur mum
 
good, she needs it
 
5:31 PM
the fuck did I just find? meganet.com
 
I'm doing a lot of reading on React vs Angular
 
user1596138
@Nick The real web landing page for an onion site.
 
@crl wtf?
 
@Jhawins "onion site"?
 
I just wrote a patch for btrfs... work is fun
 
user1596138
5:33 PM
@Nick Yeah, darknet site, whatever. Tor browser site
 
crl
@OliverSalzburg it's a nice identity function
 
user1596138
A bitcoin market.
 
@FlorianMargaine wait, what. what'd you break fix?
 
crl
!!wiki btrfs
 
Btrfs (B-tree file system, pronounced as "butter F S", "better F S", "b-tree F S", or simply by spelling it out) is a file system format based on copy-on-write principles, initially designed at Oracle Corporation for use in the Linux operating system. Development began in 2007; as of August 2014, the file system's on-disk format has been marked as stable. Btrfs is intended to address the lack of pooling, snapshots, checksums, and integral multi-device spanning in Linux file systems. Chris Mason, the principal Btrfs author, has stated that its goal was "to let Linux scale for the storage that will...
 
5:35 PM
bets encryption
 
how should a module implement a debug flag? should work both on server and client
like NODE_ENV
what's the best practive
 
crl
#ifdef DEBUG
 
what is that
 
syntax error
 
crl
c++/c shit no? don't remember well
 
5:38 PM
I need some suggestion
 
Kind of confusing myself here.
 
@Mosho probably expose a debug flag. Usually you'd just run with debug on on the client.
And the server would check an environment variable.
 
wait a sec..
 
@BenjaminGruenbaum I would do NODE_ENV, but I need it on the browser
 
"selectedSources" : function() {
	$scope.getFieldsBySource(source).then(function(data) {
		angular.forEach(data.data, function(item, value) {
			return item;
		});
	});
},
 
5:40 PM
as it's a general package and not for just our code, I want something generic
 
I'm trying to set selectedSources to the data returned from the promise ajax call
But it's returning the function. What am I doing wrong?
 
@Mosho so when building it for the client replace production to false.
Or expose package.config
 
I'm trying to return an array of items
 
@BenjaminGruenbaum what about people importing it directly
 
@Mosho what about it?
 
5:42 PM
their bundlers need to deal with it
 
var production = (() => (typeof window === 'undefined') ? false : NODE_ENV === "production")(); // or something like that
 
crl
why the IIFE tho?
 
crl you have used angular right?
Can I ask something?
 
crl
ask around not just me
 
Check that link, photos section.
I want to represent in similar manner
I am confused how to do that
is there any module available for that?
 
5:47 PM
@SterlingArcher it does nothing, you re returning from a foreach
 
crl
the preview thing?
 
it should be a map, and you should return the result
 
Ugh I'm so confused. Lemme plug into this logic for a moment
 
I'm guessing
 
I like how watching unexpected jihad videos makes Google give me ads for Muslim dating sites.
 
5:49 PM
Yes Crl
 
@KendallFrey that's funny, I was listening to metal videos earlier and I got swedish commercials
 
Suppose I have an array that has url of various images. Now I would like to display them in similar manner
is there any module available that I can use
 
Why do you need a module? Write some code.
 
crl
@RanganathanSwamy no idea, try to search for angular photo gallery modal
 
1 message moved to Trash can
 
already did but I am left with no specific search results
Nick - I am new to angular, I just want to implement this somehow.
The angular guy left the team and now I have to implement the whole thing.
 
1 message moved to Trash can
 
@FlorianMargaine that's soo much cool
 
you little shit
 
congrats!
 
5:53 PM
@Nick I'm not little
 
oh hay y'all
 
wagwan
 
I know what MVC, but I keep seeing MV*...what's that mean?
 

« first day (1846 days earlier)      last day (3120 days later) »