« first day (2265 days earlier)      last day (2908 days later) » 
00:00 - 16:0016:00 - 00:00

16:00
s/my clothes//
i like this answer
0
A: How do I get Month and Date of JavaScript in 2 digit format?

i100And another version here https://jsfiddle.net/ivos/zcLxo8oy/1/, hope to be useful. var dt = new Date(2016,5,1); // just for the test var separator = '.'; var strDate = (dt.getFullYear() + separator + (dt.getMonth() + 1) + separator + dt.getDate()); // end of setup strDate = strDate.replace(/(\b...

he used regex. But i'm going to do it the old fashioned way
user2620028
my washing machine at home wont drain the water out of it unless you hit it quite hard three times right above the timer after you turn it on.
mine drains the water out into the sink, which has decided to drain onto the floor
gonna go buy some caustic chemicals to pour down it later
I suggest magma.
but there are many things in the basement that I want to keep, like the new router I set up last night
16:15
your router is in the basement ?
yep, down with all the switches and the printer and AV receiver, so those are all wired. The wifi AP is upstairs and hooked into the router.
Colour me impressed.
16:28
hey guys, i'm semi new to learning jquery and i'm having trouble with a project where i'm trying to make a div slide from the right when a specific div is clicked. here's a jsfiddle of my issue: jsfiddle.net/pe3j57gr i think i'm missing something simple here...
having some of the styles inline and some in other places might be confusing things
your use of toggle does not seem to match any of the signatures at: api.jquery.com/toggle
it works just fine in this example though.. i'm not sure what the difference is fiddle.jshell.net/KFmLv/5750
That example includes jQuery UI, which has the slide 'easing'.
Also, jquery UI's .toggle takes the 'type' as it's first argument, the jquery one does not.
the docs show the difference.
one of the many reasons we hate jquery.
instead of waiting for some other library to be inconsistent with your API, why not start at home and contradict yourself?
16:44
jquery ui: .toggle( effect [, options ] [, duration ] [, complete ] )
jquery: .toggle( options ) or .toggle( duration [, easing ] [, complete ] )
#DeportJohnResig
@MadaraUchiha can you upload today? "some people" outside of R&D want to take a look
too late, he's being nominated for cabinet
Anyone knows the Grow Cube series ?
@BenjaminGruenbaum Already done
~4hours on chrome vs ~4hours on safari
same sites
16:55
How do you guys recommend doing modals in React?
React-modal
thanks luggage, at least i understand why it's broken now
user2620028
oh haha
user2620028
i just make my own every time... would take longer to configure someone elses modals to do what you want instead of just making it yourself
Do I need to do something special with TypeScript compiler to make source maps work?
17:03
a small library the handles rendering react components out-of-graph into another top-level container still frees from from the only tricky parts.
like react-portal or react-modal.
user2620028
yeah i have used react portal and liked that
I haven't tried react-portal. @Luggage seems neat
basically just the core part of modals.
yep
I am yet to see something that implements the modal spec gracefully though
'spec'?
@Abhishrek Because everyone has to be a smartass and create their own
And then sometimes clicking outside works, sometimes it doesn't. Sometimes ESC works, sometimes it doesn't. Sometimes TAB navigation works, sometimes it doesn't.
Also modals are pretty lazy design-wise
That is exactly why I want the dialog spec implemented :(
yea.. i have a bug in my modals now that the keyboard events aren't working right.. have yet to diagnose.
OMFG I just realized Safari has Autocorrect even here D:
we get it. you love safari. :)
17:08
NO, I am a terrible at spelling
terribal*
I am destined to embarrass myself with the smartness of autocorrect.
Back to Modal / Dialog
try clicking the leave all button of the chat
user2620028
i disable autocorrect on every device i get, i hate it
Is that what you guys see aswell?
@MadaraUchiha I get '404! PAGE NOT FOUND'
user2620028
17:10
its an alertbox
Maybe it's the changes me and Nitzan did, lemme take a look
user2620028
built into the browser
this is what I see
@MadaraUchiha you didn't pull from Nitzan's branch did you?
@BenjaminGruenbaum I did not.
17:11
@MadaraUchiha lemme change the web.config and check, the deploy went through right?
@Luggage nah lol
Chrome is still my primary dev browser
@BenjaminGruenbaum Yup
very weird alert style :/
17:13
I like chrome's since they are clearly not part of the page (and have the "no more dialogs" checkbox)
which is useful for porn viewing.
I don't see the files deployed @MadaraUchiha
@BenjaminGruenbaum I'm already out of the office.
you're fired.
Cool, please make sure it's up tomorrow morning - I hope I'll come I feel like shi
t
17:14
Hangouts?
Everything's cool
I'll try and see if someone is still there
@BenjaminGruenbaum Alright
Feel well
@psppsph Welcome to the JavaScript chat! Please review the room 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.
Nah, no rush - just make sure it's up tomorrow :)
17:15
Or else.
The four distinct forms of a letter all have one code, regardless of a letter's position in a word. The shape of a letter is handled by fonts, not by unicode. — yogur 31 secs ago
@Luggage Or else my status as Company Certified jQuery Expert™ gets revoked.
How will you get women after that?
@MadaraUchiha nope ,

example ضضضضضضض are stored as a standard Dhad ض \u0636 but shown as:

ﺿ \ufebf (start)
ﻀ \ufec0 (middle)
ﺾ \ufebe (end)
ﺽ \ufebd (independent)..

I want the shown unicodes , not the stored unicodes
(or men)?
@psppsph That's not easily possible.
17:18
or if it is.. many of us here will be un-familiar.
@Luggage he'll still be our PHP expert
You'll need to implement your own parser that can determine where in the word a letter is, and then apply the correct replacement
What are you trying to do?
Why do you need this information?
if there are separate codes for them, there might be some way to get that...
though, that contradicts the other "one code, font just draws it different" comment.
for sure font doesnt draw it differently , the unicode is different .. You can refer this : www.translationdirectory.com/articles/article1416.php
17:42
While this is python, it has a table of all the contextual shapes and a link to a python library that does what you want: stackoverflow.com/questions/33718144/…
you might need to build your own in javascript with that table.
@psppsph ohh github.com/louy/Javascript-Arabic-Reshaper maybe (javascript)
@psppsph yup. works. I used that libary and got the right values: pastebin.com/UHd3tbFH
will answer the question on main
user5534204
hi
user5534204
user5534204
18:10
anyone ?
Im reading ...
user5534204
@KarmaDoe : thanks friend
How are you changing values ?
And are you sure the new values should bring new results ?
user5534204
yes @KarmaDoe new values should bring new results. when I reload page or clear filters and checked it works. but when changing values it won't
user5534204
user5534204
18:21
any idea?
> Do I need to do something special with TypeScript compiler to make source maps work?
It generates the .map file. The source for the map is slightly wrong though
I can see its pointing to ./src/server
when it should be ../../src/server
user5534204
Hi How to display datatable export buttons in a dropdown menu?
18:36
1 message moved to Trash can
@Tharuperera Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
user5534204
var buttons = new $.fn.dataTable.Buttons(thisTable, {
     buttons: [
       'copyHtml5',
       'excelHtml5',
       'csvHtml5',
       'pdfHtml5'
    ]
}).container().appendTo($('#dropdown'));
user5534204
Hi How to display datatable export buttons in a dropdown menu?
user5534204
@CapricaSix : check now :)
18:56
@Tharuperera creating a fiddle/plunk/codepen example will help you get responses
guys, I need help, react!
get it?... as in instead of saying "pronto" I said "react"... becuase it's about react...
no?... ok, I'm sorry );
Uncaught TypeError: Cannot read property 'bind' of undefined
you spelled _addComent wrong
19:16
thank you!
@Luggage Wait
although, there seems to be something missing. It says it doesn't know _author
Didn't someone have this exact issue yesterday?
Got me. I was in the shop for repair, yesterday.
that would probably be me... 🙈
I keep misstyping comments comments comments
19:19
@Thaenor Consider using an editor or an IDE with symbol completion/intellisense
@MadaraUchiha Let's make a smart linter for dynamic properties: It keeps a pool of property names, and if there're very few cases (< 3) of a property with a low Levenshtein distance to another, more popular property, it detects it as a typo
We'll make so much money
Now do the work, I gave you the idea
I'd buy it
I still need to find where the author typo is... assuming it's a typo
@Zirak Don't you have a talk to prepare to?
Gonna wing it
Also, TypeScript
19:25
@MadaraUchiha They stole my idea
19:36
I don't ge it
my pen isn't working. I double checked everything. but it still says Uncaught TypeError: this.props._addComment is not a function
this function is called in a child component and declared in a parent component.
But it should work anyway.
@Thaenor You called it addComment in your props
Not _addComment
user5534204
@shm
user5534204
user5534204
jsfiddle.net/qt9p2fwt/3 can anyone help me to display export buttons inside drop down menu ?
@MadaraUchiha I just fixed that but it still doesn't work, I think.
Because I'm calling the event and not the function directly it shouldn't have the underscore, right?
19:40
The underscore is your convention vOv
the _handleSubmit function should do
this.props.addComment(author.value, body.value);
@Thaenor Yes
user5534204
pls help to show export buttons inside dropdown jsfiddle.net/qt9p2fwt/3
@MadaraUchiha and that's what it does but it still errors out.
@Tharuperera someone will help if they want/can. please don't spam.
user5534204
19:42
@Luggage : ah ok :)
I don't get this... if someone could help me out, I'd be grateful... codepen.io/Thaenor/pen/WoqBPB
<CommentForm addComent = {this._addComment.bind(this) } />
you misspelled it again.
come on, man.
@Tharuperera this answer that you've already found literally gives you a complete working example of what you need to do: stackoverflow.com/questions/35308273/…
user5534204
@david : yes I checked. but I'm struggling with showing it as inside dropdown select items.
19:45
/self-facepalm
I'm sorry. thanks @Luggage
user5534204
@david: see jsfiddle.net/qt9p2fwt/6 . please advice me
my advice is that you will need to learn enough html/css/javascript to be able to make your own dropdown, because a select isn't what you want.
@Luggage that's a penis.
19:56
see a doctor
@Luggage It's more like a surprised lemur with a foam baseball hand
I am really struggling with food in my current colony. between fields catching on fire, blight, power issues killing my hydroponics crops, I am STILL constantly hunting to eat.
user5534204
@david : can you kindly give some hint how to proceed ? pls
and I have 12 colonists
2 full time hunters.
@Luggage do you have any snakes?
20:00
No. I'm in a temperate forest. Lots of rabbits.
grizzly's, muffalo (a good source)
the bears are dangerous. gotta micro-manage hunting them
Were you suggesting a snake farm?
On one campaign, I managed to domesticate one of those giant boss animals
yeah, the last time i played i had like 200 snakes
for the sweet egg/corn meals
The one thing I distinctly remember about that campaign is that I had absolutely no troubles with raids of any kind.
Free weapons all the way
The Thrumbo?
the game is very much luck based :( I don't like the arbitrary nature of the events
user5534204
20:02
@david
especially the ones that you can't counter at all, like the 'bzzt' your walls explode event
@Luggage Right, that's what it's called
@Tharuperera I can't help you. You need to learn to program
@david Depends on the storyteller you pick
1 message moved to Trash can
@Tharuperera Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
20:03
Yea. I'm playing A16 with no "fuse" mods to prevent that, and it cost me a full crop from my hydro.
Bzzt: Now you're starving.
@Luggage I just turn it off on my playthroughs, i'm not sure if it makes it easier though because the director will just pick a different hazard to fill that spot right?
so I should see a few more raids or whatever to fill the gaps
turn off the battery thing, or all 'events'?
just the short circuit event
ahh, didn't realize you could.
i think you need to make a custom game type to do it
i also turn off infestations, which is really sad because i love the idea of them, the implementation is just terrible though
how would your colonists not notice 3 hives and a bunch of giant insects in your living room until it's too late?
20:06
the things that are undersground? I only had that once, since I mostly build in the open
but yea, they were a pain.
Hello children.
I play DF so I kinda have to dig into mountains to make my base, it just feels wrong otherwise
20:26
I still can't wrap my head around this draft-js thing... for the life of me, I can't figure out how to just remove one single entity from my content
user2620028
anyone have any advice for someone who wants to learn and retain a second language in their spare time?
@HatterisMad depends on which language, what are you going for?
user2620028
Thai
lol
Why Thai?
Oh in that case no clue. With any popular language you can usually just use duolingo/memrise and spend some time on sites written in that language
20:32
Who needs to learn a language when you can just buy that earpiece that translates anything you hear in real-time?
user2620028
i lived there for a year and studied while i was there, by the end of the year i was starting to hold conversations and now a year later without speaking it and i can barely remember anything
user2620028
@Waxi because its not only about the langauge, the language opens yourself to a different culture and a different way to think about things
I know, I was being an ass.
I visited Thailand once, cool place!
user2620028
then ass away, wouldn't want to deny you the opportunity.
user2620028
what were you doing there
20:33
Does Thailand have delicious food?
Vacationing for a month on the islands.
user2620028
@corvid yes but it also has its fair share of disgusting food
user2620028
@Waxi Phukket?
@HatterisMad Ko Samui, Ko Pha Ngan, and Ko Tao.
I went to the less touristy area.
user2620028
@Waxi You went to the most touristy areas of the entire country
user2620028
20:36
you went to all of the tourist party islands
user2620028
ko samui probably the prettiest
Haha...I thought it was less touristy than Phukket.
user2620028
well.... phukket is less touristy simply because thats where all the foreigners live
user2620028
there are more foreigners in phukket than the islands... but they likely live in phukket lol
user2620028
@corvid memrise actually has thai... thank you. I looked at duolingo before and they didnt have it
20:59
I like memrise slightly better, I feel like they're better at communicating how you're progressing
user2620028
i need to remember how to read and write thai :( its been too long
You just did it. That was right. "Thai".
user2620028
pasa thai e heya
user2620028
@corvid just tried to use it a bit and part of the lesson is writing in thai and i cant progress until i install the thai language, which i am not going to do on my work computer... kind of annoying
what the expression colloquially used when we discover something that's been there for a really long time?
21:14
maybe Armenian instead of Thai? looks the same to me, might even be easier
@Thaenor good morning Columbus?
@FilipDupanović almost... we were talking about how to make a site available to readers even if they are offline. The discussion went on from mobile apps to the use of web workers and even creating a quick auto bootable xampp server that ran from an usb drive.
And now I just remembered the user can simply save the page to pocket and read it later anywhere he wants.
"I just [insert expression here], that you can simply use Pocket and users will store the pages to later read them offline"
Finally!
ERGH, can anyone explain how you're supposed to retrieve an entity from an editorstate and get its range in Draft JS? I feel like this is needlessly complex for no reason
Nothing in the docs is even slightly helpful, either
You're the resident draft-js expert, here.
@Thaenor oh, is Pocket that popular :O?
21:22
Why the invite? I don't know draft-js and if I did, why another room?
@FilipDupanović I don't know. But I wouldn't mind sharing the word about it's awesomeness. wink wink
What promotion is that?
I misread what the favorite said. I thought you became a room owner, but apparently you were always one.
well, not always, but yes.
If it was recent for you, then here's my late grats!
21:29
This is awesome :D
Tonight's homework is to rewrite this piece of shit...
		obj.timeline.forEach(function(day){
			var td = document.createElement('td');
			td.setAttribute('class','weekDay');
			td.dataset.day = day.day;
			if (holidays.indexOf(day.day) >= 0) {
				td.innerHTML = 'Holiday';
			} else if (day.events.length === 0) {
				td.innerHTML = 'No Data';
			} else if (day.events.length === 2 && day.events[0].theEvent === 'Normal Arrive' && day.events[1].theEvent === 'Normal Leave') {
				td.innerHTML = '<i class="fa fa-check"></i>';
			} else if (day.events.length === 1 && day.events[0].theEvent === 'No Show') {
egad
can trim that in half in a few minutes.
The worst way I could possibly detect states and do things based on it.
Yeahhhh, I just needed something that kinda worked, but I'll improve it tonight cause it's straight awful.
hey guys i have a question regarding to materialize css chips
@AmarjytChahal Welcome to the JavaScript chat! Please review the room 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.
21:30
wel.. without any major changes, just de-duplicate and it'll be a lot shorter.
like the lines that are exactly the same except for red/orange/green.
Oh yeah you're right, I'll start there.
let color = ['red', 'orange', 'green'][day.events[0].status];
td.innerHTML = `<i class="fa fa-question fa-2x ${color}"></i>`;
maybe a for-of loop there even?
ohh, lots you can do, but jsut suggesting a simple way that'll trim it withut having to re-think how anythign is done.
highly localized de-dup.
i need help have a look this question
0
Q: set chip data initially from database in materialize css

Amarjyt Chahali have string in my database separated by "," like this "a","b","c","s" so i want to append this string value one by one in materialize css <div class="chips chips-initial"></div> in this div tag like this $('.chips-initial').material_chip({ data: [{ tag: 'Apple', }, { tag: 'Microsof...

21:34
OK, time to leave and take my ish with me, thanks for the advice yall.
have fun with homework o/
What's a good ultra-light template lib to suggest to people like Waxi..
though, template strings are probably 'good enough'.
I managed to lock up my device by trying to load a big webpage via JavaScript.
Sounds like you stumbled onto one of my products.
2
 
1 hour later…
22:39
Hey guys... remember that react pen I posted?
For some reason I can only make one comment. Other comments update the counter but they don't get added to the html... weird...
btw I'm editing the app atm so if you check it now there won't be any default comments.
there are errors thrown in the console
22:57
I wasn't seeing it... but I did now, they only happen when I tried to click "show comments"... I think I know what it is... but pray tell in case I'm wrong.
aaaand... it was another typo
fixed
yeap, the keys got messed up so React couldn't update the element tree for the comments
23:15
I had lenght ... instead of length so it wasn't updating the element id when adding new comments.
so strange that react doesn't natively support a way to make react request... in the tutorial I'm following they're using jQuery for ajax.
react is only concerned with rendering. It doesn't care how you get your data
@david makes sense.
besides it's really easy to just use jQuery or even vanilla.
it makes a lot of sense
different applications benefit from different types of data management. but they all render in basically the same way
@Luggage Here is what I ended up with from that problem I asked you about last week: pastebin.com/mbR6Rwrw
It is unfortunately the most ridiculous code I have ever written.
hi people, having a strange behavior on my page: julix.ca/404 - looks fine on desktop, but on mobile it's unnecessarily wide (i.e. repeats the background and you can scroll sideways even though there's nothing there)
23:29
you can maybe hide the horizontal scrollbar, but try cleaning up your styles
I'm already using background-size, specifically "100% auto" - the goal is to have the width be that of the screen and the height whatever that corresponds to without distorting the image.
you should use 100vh and 100vw then
the wrapper... well, try doing it without it being an inline block
looks like you want it to float left rather, but you can also do without that using flexboxes
I found it! I think it's the tooltip
yup, that was it.
whoa, that thing is totally not obvious
the tooltip or the whole thing? :D
23:43
the tooltip
esp to mobile users, they don't have a pointer to hover with
absolutely agree. I got it from here: http://www.w3schools.com/css/css_tooltip.asp
but it's horrible for non-hover and it's not ideal either way, as it pops out to the side (or above or below) -- I might make instead something that adds the content in a paragraph below (with like a plus/minus to show hide) -- and not overtop like that but rather pushing the other content downwards.
then again the message in the tooltip* is fairly unnecessary anyway, since the visible text already explains the error code.

*"The requested file could not be found. This can be due to an incorrect URL, a misnamed file, an improper directive within the .htaccess file, or a file having been uploaded to an incorrect folder."
are you in a rush? if not, you could convert your body to a flexbox container and play with media queries to position the wrapper
as for toggling the tooltip, there's also a trick to do a custom styled checkbox (sans the checkbox being seen, ofc) so you can use pure CSS to toggle the tooltip display
hmm, something like this, to get you going with how you can have fun with the :checked pseudo-class proto.io/freebies/onoff
00:00 - 16:0016:00 - 00:00

« first day (2265 days earlier)      last day (2908 days later) »