« first day (2283 days earlier)      last day (2664 days later) » 

1:00 PM
@Thaenor yeah, you're doing it wrong
 
FrontEnd O_O ?
 
?
 
@towc I'm looking at an example that does the same thing, but in their case it works...
 
that's the developer evangelist
 
914
Q: How to Loop through plain JavaScript object with objects as members?

edtHow can I loop through all members in a JavaScript object including values that are objects. For example, how could I loop through this (accessing the "your_name" and "your_message" for each)? var validation_messages = { "key_1": { "your_name": "jimmy", "your_msg": "hello wo...

 
1:00 PM
@Thaenor because they're doing it right
 
@towc thank you captain
 
@Thaenor they have a different object structure
you also need to check whether you're looking at an object or something else
only do the next for..in if typeof object[value] === 'object'
@Abhishrek what's the salary like?
 
depends on country :P
 
remote
shouldn't matter if it's remote, right?
europe
 
depends on where you're resident and paying taxes
 
1:03 PM
oh taxes :/
I didn't even think about that
 
@towc so if would just force iterate like I was doing before I was running through each character in the string that was the parent object and then I would go to the next level of child objects?
 
@Thaenor maybe, maybe not, maybe give me some money :)
or wait for someone else to answer, I'm doing things that I consider quite important
 
@towc Isn't that against the code of conduit of this chat or whatever?
I would've actually payed someone if I you asked this friday. But now I'm just far too close to the solution to spend any money on it.
 
@Thaenor no, because I told you that if someone else wants to answer, they can
I personally can't right now
 
unless I pay you? looool money will make you less busy
but that's just none of my business. You've already helped a lot, thanks.
 
1:08 PM
no, I'm busy getting money
I'm not lazing off
 
It's weird. I googled the idiom "in good earnest", only to find so little information about it. Does it exist in English for real? Do you use it in your daily life, my dear English-speaking fellows?
 
not every day, but it can come up
 
good to know.
 
how to get udemy paid course for free
 
yeah lol, literary writing is super hard in any language, you have lots of freedom
 
1:11 PM
@jacobian you hack it
 
or you get your employer to pay for it
 
i learn a lot programming from udemy
 
There're tons of supreme learning websites out there.
 
Hi Guys
i need help with Handlebars precompilation
 
hello human
 
1:13 PM
this is my task in grunt
 
1 message moved to Trash can
@Dramorian 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
 
handlebars: {
			compile: {
				options: {
					// configure a namespace for your templates
					namespace: 'morya.templates',

					// convert file path into a function name
					// in this example, I convert grab just the filename without the extension
					processName: function(filePath) {
					  var pieces = filePath.split('/');
					  return pieces[pieces.length - 1].split('.')[0];
					}
				},
				// output file: input files
				files: {
				'assets/js/compiled.js': 'assets/js/templates/*.hbs'
i recieved this message
Running "handlebars:compile" (handlebars) task
>> Destination not written because compiled files were empty.
>> 0 files created.
 
what other website beside udemy then?
 
please guide me with this error
 
i want to learn html5 but it says i should pay 15dollars
 
1:16 PM
@jacobian go on codecademy
 
highly recommend you try lynda.com.
 
i need to learn about canvas in html5. codeacademy is good but too short and not detail
 
packtpub.com gave a free month when I signed up, they have a nice collection of books
 
However, it seems that a Chinese bank card can't be tied to get started learning on it.
 
canvas? start on mdn's page
 
1:17 PM
Other options include treehouse, pluralsight, egghead, too many to enumerate.
 
@ZhengquanBai just curious, do you have international agreements with Estonia on tax evasion and double taxation?
 
Just to name a few, you gotta explore more by yourself.
 
completely free, up to date, full of resources
 
any help with handlebars grunt task??
 
1:19 PM
and make sure to check out work by this fella
@Dramorian no idea mate, sorry
 
@FilipDupanović I don't quite understand what you said, which signifies my answer to that should probably be no.
 
@towc Okay. Thanks.
 
i am trying to create this kind of software codecanyon.net/item/html5-coloring-book-animals-html5-game/…
 
@ZhengquanBai you can get some limited transnational residency rights in Estonia e-estonia.com/e-residents/about, dunno maybe you can open up a bank account w/out a company
 
While Chinese is closer to Japanese, I decided to learn Japanese through materials presented in English. It's great to get immersed in two foreign languages at the same time.
Okay, will checkout that out. thx.
 
1:28 PM
i learn new language using duolinggo
 
I learn new languages using google.
 
when i learn german,turn out in german there more alphabet than english
if i learn chinese or japanese then the alphabet will be totally different
 
I wanna raise the discussion here - Would you rather browse articles like Socth.io and study those or go through a youtube playlist with video tutorials on the subject of learning some language/framework?
 
The more efforts you devote to acquiring something you're not familiar with, the longer it will linger in your mind.
 
Say you want to learn react. Would rather watch a youtube video and repeat the exercices done there, or would you opt to just read and rewrite the code from articles like scoth.io
I personally go for the first, the videos, but I hate that I keep having to pause to I type everything down on my end...
 
1:35 PM
type faster
 
Watch it till the end without pausing. Then rewind the video and type what interested you.
 
@ZhengquanBai wise words.
 
chinese people like wise word
 
1:38 PM
@BenFortune damn!
 
Chinese people create wise words.
 
if only other people understood them
 
Chinese people have no knowledge about which English words are wise or not.
 
stackoverflow is not blocked in chinese?
 
Stackoverflow is partly blocked in Chinese.
 
1:40 PM
that feels like hell
 
Your score: 346 CPM (that is 69 WPM)
 
@jacobian sure. But for us educated people, we're not subject to these blocked websites at all.
 
I can only got up to 220 CPM ... :(
 
easy to sell vpn in china then
 
Your score: 281 CPM (that is 56 WPM)
I bought a shadowsocks service.
 
1:47 PM
Anyone doing anything interesting?
 
coding is interesting
 
@BenFortune drinking coffee, thinking of what to build today
 
i am waiting for SNL, they will have interesting trump's segment
 
@rlemon How's robogist coming along?
 
paused
the extension works
so motivation to continue work drops at that point.
like dark theme
it was almost a full year before I came back and overhauled the code for dark theme
 
1:50 PM
Ah that's a shame, I was enjoying the progress
Need to finish off my gameboy
 
Gosh
 
hello guys
i am sure more of you use linux
i try to remove windows 10 and install ubuntu on my ssd
during installation ask me that if want to install third party software i should turn off security boot
 
that's fine
do it
 
when i pressed turn off then i got a black screen
 
npm install -g ubuntu
 
1:58 PM
and now i can't install them
 
re-install
 
i tried
 
did you turn off security boot?
 
and again black screen
my monitor turn off and on again and again
like a loop
 
@gtzinos do it manually
go to your bios settings and disable secure boot
 
1:59 PM
and after 1-2 minutes it stops as a black screen
 
wait, is windows booting up ok at least?
 
and then restart and install
 
yes
i can boot windows
 
then do what the pootis says
 
ok guys i restart i will try it thank you
 
1:59 PM
The secure boot disable thing in ubiquity doesn't always work. So, try doing before running it.
Before you restart, go to your bios conf, disable secure boot.
 
2:10 PM
@ZhengquanBai if you ever plan to spend a lot of money for services abroad, it's good if you can do it from a billing address you own, you may be able to get some tax returns if you can prove the expenses
 
can anyone share something about modular javascript
 
cc @KendallFrey
 
@rlemon Thats crazy :o
 
@FilipDupanović Good to know. That's so nice of you to tell me that.
@poke You wanna write modular javascript?
Use webpack.
Every source file is a module and will be wrapped in a function in the generated file, which is conventionally named "bundle.js".
 
you poked the wrong poke
 
2:15 PM
@p0k8_
So the term for "@xxx" is "poke"?
 
no, ping
 
Modular javascript? Webpack to the rescue!
 
@rlemon I watched it live :P
 
If you want to write modular javascript, please go ahead and use webpack so that you can call it a day (or to put it another way, let webpack do the tricks for you). It's late into the night. Good night, buddy, see you tomorrow.
 
@ZhengquanBai if you make income as a skilled professional, you might be able to reduce your taxes based on the expenses you made on equipment, training and self-promotion, even for goods and services rendered abroad
 
2:29 PM
@FilipDupanović good to know. thx. good night.
 
@littlepootis There’s only one real poke.
 
Does any browser actually support import ?
 
stackoverflow.com/index.php
5
@Abhishrek Safari dev preview does
 
Dafuk, that was unexpected.
 
2:42 PM
and Edge, iirc
 
So have we accepted webpack/browserify as our savior forever?
With HTTP/2 the difference between bundling and using import shouldn't be much though right?
 
Does edge support HTTP/2 :3 ?
 
probably
 
@Abhishrek yep
Even IE11 has partial HTTP/2 support
 
2:44 PM
aha then :D
folks in 5 years from now we can stop using webpack
 
As long as you don't count on legacy support :P
 
5 years from now @BenFortune I can dream
I have a dream!
 
3:03 PM
thumbs.gfycat.com/… @KendallFrey ohh yes, the 'full' gif
I know you watched it
but these are outstanding
er, rather, that wasn't the recent launch. that one is months old apparently.
I should read more of the comments first :D
 
HI..
I have a grunttask defined like,

buildAppEnginePackage: {
        stdout: true,
        command: ['python', './build/build_app_engine_package.py', 'src',
                  out_app_engine_dir].join(' ')
      },
but I won't get any stdout, stderr from the defined command..
see I made stdout option set to true..
 
posted on January 15, 2017 by Axel Rauschmayer

Occasionally, you want Web Workers to communicate with each other. Doing so is not obvious as most Web Worker examples are about communicating between the main thread and a Web Worker. There, one uses postMessage() to send messages directly to the Worker. Alas, that doesn’t work for communicating between two Workers, because you can’t pass references to Workers around. MessageChannel The sol

 
why python always live on land?
 
3:24 PM
they can't breathe underwater
 
because they are always above C level
 
bad
 
3:40 PM
@Luggage o/
 
I can't help but think "duck boots" when I see your name
ducks in boots would be pretty cute
 
@jacobian :remembers he's on the internet: well actually, there are many places in Africa and Asia below sea level where Pythons do live. so they're not always above C level
 
0
Q: remove elements from array of any length to get array of fixed length in javascript

Siddharaj SolankiI need a function that removes elements from an array in such a way that after removal the array should have specified length. I know my question is not quite clear, so let me explain by an example. myArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] myFunction( my...

myFunction( array, desired_length) {
    //I need this code
}
sigh
 
3:53 PM
Hello :)
 
Someone used this before? npmjs.com/package/bootstrap-sass
I installed it via NPM and added : @import "bootstrap"; into my app.scss file on top..
Error: File to import not found or unreadable: bootstrap. But I got that error ><
 
How can I get the low byte from 16bit int in JavaScript? in Java I just do: byte lowByte = (byte)(value & 0xFF);
 
Anyone here (still) play factorio? I made a little mod. Lets you toggle "peaceful mode" at will.
 
@conan can you not do the same thing in js
anyone know how to have a getter in an object literal use fat arrow syntax
this is a typescript thing nvm
wait no its not.
 
You're saying I will not be able to do this operation in JS? :D
 
4:03 PM
@conan no you can!
 
Ah you mean I should be able to do the same thing! :D
 
anyways, i wanna do something like this: { get foo() => { return this.bar } }
@conan yes!
 
allright, I think I found a solution :P
 
how many people here use jekyll ?
 
4:11 PM
I used it
 
me
 
@NotBad4U 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.
 
Does this chat has its own android app?
 
4:28 PM
Actually, everyone there is being an idiot but I don't want to deal with it -_-
 
Angular 2 kek
also hey benjamin / ben? :-)
I have been following you on github for a while now and it's quite interesting some of the stuff that you've starred over this time :D
As I was writing that I realized like how much of a stalker I sound like :o
 
4:46 PM
I'm pretty much creeped out. Going to head out now - cheers :)
2
Ping me if you have something concrete you'd like to discuss though.
 
Haha will do :-D
 
5:35 PM
@BenjaminGruenbaum I'm building a new set of front steps, how should I proceed?
 
@rlemon step 1) steal socks
@MadaraUchiha I set up a meeting tomorrow at 11 for version hand-off. Let me know if that's stressful and I'll move it forward.
 
@BenjaminGruenbaum Should be just fine
 
I arrive normally when I have my bike, no unpredictable shit
 
instructions unclear, concrete steps now made from steel socks.
 
5:37 PM
Howdy does anyone know about unix plugin for windows hackaday.com/2016/03/30/windows-and-ubuntu-cygwin-can-suck-it
Windows 10
 
inb4 flat tire, chain escapes, steering rod dislocated
 
Will GUI apps be supported
 
@William Let's start with it properly supporting CLI apps
 
It's not about the time - it's more the "I don't want to apply pressure accidentally and cause people to not have fun" part. You still have some work to do before handoff and I want to make sure I'm not ruining your morning.
 
> Listen Ben, I shit you not, I was riding my bike down main street and a homeless man threw a turkey at me. not like a sandwich, fucker had a whole live turkey and just threw it at me. ~ Dor, probably.
 
5:38 PM
Then let's talk about GUI
@BenjaminGruenbaum Hmm? What work?
 
@rlemon I'd believe that.
 
@MadaraUchiha so will ssh run natively
And stuff like that then
 
@MadaraUchiha IDK, Tali's feedback, Gershon's?
 
@William They should
@BenjaminGruenbaum Done & Done
 
Adding analytics if you hadn't.
 
5:39 PM
@BenjaminGruenbaum Hmm, can't remember if I did, but fair enough
 
I just want to make sure I'm not ruining your morning. It sounded fine to me but I'm not that involved. Also I want to go over the code for like 20 minutes.
 
will it support proper file descriptors?
Otherwise it's not much better the Cygwin
 
Windows has a proper linux subsystem if you need one - you people realize that right?
 
@BenjaminGruenbaum "proper" isn't what I'd use to describe it.
 
^
 
5:41 PM
proper > truly what something is said or regarded to be; genuine.
 
@BenjaminGruenbaum Yeah, not what I'd use to describe it.
 
It's an actual linux running though.
I'm not sure what word other than "proper' would describe it.
It does anything a linux install can do.
 
So could I run node natively?
 
Yes, but Node runs natively on Windows anyway.
 
@BenFortune
not sure how far from London you are... but might be worth making the trip
 
5:52 PM
So another funny question but how do you press the esc key on the new MacBooks if you boot into windows or Linux
 
@BenjaminGruenbaum Networking is still borked, and zsh doesn't work
 
Doesn't make it any less of a linux.
 
I like that windows has a "linux on windows" thing, but it's not linux since linux is the kernel and there is no linux kernel
but linux compiled binaries can be used..
I think it'sa good move on MS's part, and I hope it improves in compatibility.
oops, I made it sound like I wasn't sure about windows having somethng, but it does. It had a posix compatibility layer for a long time, but not in all editions. Now the new "ubuntu on windows" or "linux on windows" is on all editions (windows 10+)
as l teast I think it's in all editions. I hope so.
I know you can use a windows x server to run some gui app on it, too, but I hope MS builds something more efficient in (I don't know what that would be, since I don't knwo the the internals of X or wayland)
@William by default, the bar is an ESC key and F-keys. It's not until software takes over that it display other things.
well, it's all software, but you know what I mean.
 
6:20 PM
Guys I want to know your opinion about this. Often when I debug my program I try to "think" like the computer and analyze step by step how things would procede. I would often even write the logical procedure or corrections on paper and if the logic works out it works in my program.
I noticed that I really avoided using the debugger most of the time and I have had no issues so far.
I believe debugging without a debugger can really improve your abstract thinking. What do you say?
 
I barely use a debugger myself. Just knowing the state of variables at the point of exception plus your method is mostly what I do in the JS world.
 
@Luggage thats what I do too. I also noticed if the design of your software is good debugging becomes even easier
 
I'd say that: yes, it can help. It's a form of mental exercise, but debuggers may be more productive sometimes.
 
I noticed that the times I needed a debugger was when I didnt really understand how a certain property or function (api) works.
If I know my tools then I know where the error is.
 
True, but that doesn't mean that debugging tools don't have value.
And I use them at least a little to get the stack trace and state of variables. As do you, I understand.
 
6:25 PM
Ya it does have value. I just wanted to say that I noticed that its such a great exercise once in a while
I mean CPU profiling etc is really valuable as well
 
But I agree.. if you are familiar with your codebase, you may often know the source of a problem without ever stepping through. No reason not to keep using your intuition of it's working for you
 
Its really impressive how browsers (chrome & firefox) have debugging tools that seem far more productive than eclipse and visual studio
 
Aye. Though, back in the day, you could connect VS to IE to get some half-decent debugging.
IE (and I assume Edge)'s built in debuggers are better, now, too.
 
haha really? Didnt know that was possible
 
They still suck compared to chrome's
 
6:27 PM
Yup.
VS would show all the JS files, allow breakpoints, etc.
 
Chrome is so top! I love the timeline and cpu profiling capabilities. Only a matter of time till we get code editor features! (I hope)
 
I think you can do that..
you can edit files through chrome. I'm not familiar with it, as I don't use it, though
also, since my junk is web-packed it's not as possible
 
6:42 PM
@Luggage do you know if ES8 / 9 is on the way?
 
@Luggage I'm skeptical it does that when booting windows or Linux but I'll take your word for it
 
@William It does work if you connect devtools to the file-system. Right-click a file in "Sources" tab to connect it. I'm not sure why the OS would have any effect on that.
But yes, not very useful once you've got a build-step in your workflow. Last I checked it didn't work with sourcemaps
 
@Asperger es2018 is coming
 
And I'm not sure it would even be possible without some really fancy hmr stuff
 
7:00 PM
as of right now. touchbar not compability with linux although there are other problems like the mouse and keyboard not be recognized at all also
problems further explained news.ycombinator.com/item?id=12924051
 
While I like my previous gen macbook,the new one is overpriced for it's power anyway
not a good choice for putting linux (native) on.
 
with secure boot on windows and apple hardware not being compability with linux i wonder how people will start with linux
 
there are laptops tha support it (like that dell that is popular for it)
also secure boot can often be disabled (don't may a laptop where it can't)
MS, themselves only require it to be turned on for the ARM devices running the limited windows, not full windows laptops
dell xps 13 develoepr edition is popular for linux
I'd prefer a 15", myself, but otherwise looks good
 
that is good i have no experience with secure boot on windows
 
7:11 PM
have not tried delll but looks good to me
 
system76 also makes linux compatible laptops.
 
i don't think someone should buy a custom ubuntu laptop when ubuntu is free in my oopinion
 
I care more than all the hardware i ssupported than if it comes with linux pre-installed..
and having a pre-installed option tell you it is
 
still the days of boot cds migth be over
 
the days of CDs, boot or not, are over
That's what i said
 
7:15 PM
sorry misread
 
7:31 PM
Hellou :)
 
Anybody got any ideas for UML diagrams I could include in this report that are easy as hell to make
I fucking hate UML
 
7:49 PM
so my 2 cents they should had left the esc key at minimum on the new macbooks along with the power key
 
Hello Guys
 
@MuradSofiyev 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.
 
Yeas I know @CapricaSix thanks
I want to learn advanced JavaScript What do you recommend me ?
 
@MuradSofiyev What do you already know?
 
8:17 PM
In a React component, I want to set the state based on a response from an API call. shouldn't I make the API call in componentWillMount() and set the initial state there? Why is componentDidMount() recommended for making API call?
 
@ray9209 Ideally, you'd execute the API call outside, and change the props
State should be used for view state, (for example, which option is selected in a select box or something like that)
 
8:46 PM
Hello !
If I have a array of json like this :
[ {id:0, text:"foo"}, {id:1, text:"bar"} ... ]
How can I extract all the text field into an array ?
I want ["foo","bar",...] but arr.text does not work
 
!!mdn Array.map
 
@MadaraUchiha Something went on fire; status 403
 
-_-
@Lordofdark Look at Array.prototype.map
 
That's exactly what I need thank you ! Couldn't find it by googling
 
in a dev environment, how can I configure webpack.config.js to show helpful console errors instead of showing the error occuring at some line in bundle.js, I would like to know exactly which one of my files the error originated in. I included devTool: "inline-source-map" in webpack.config.js but that doesn't seem to have helped.
 
8:57 PM
I need to remove duplicates from a js array that start with specific characters
 
sounds like you will need to utilise programming
 
array = ['math', 'mango', 'man', 'fruit']
 
there are no duplicates in there
 
I need to keep only one that starts with "ma"
I tried to modify all the examples found here stackoverflow.com/questions/16747798/…
but I cannot make it working... please help
:(
 

« first day (2283 days earlier)      last day (2664 days later) »