« first day (2616 days earlier)      last day (2557 days later) » 

11:00
@KamilSolecki
@underscore Without having actually looked at the code, you're probably nesting promises needlessly datchley.name/promise-patterns-anti-patterns/#2nestedpromises
You can return promises instead of forming that indentation-hell
where ?
i didn't return the promise here?
@SomeGuy
it's a recursive function
The problem i see is that you hold a node list but since the page was reloaded (left and returned) the references are not valid anymore.
is there any reason behind that ?
what i'm doing here actually
1) get all elements
2) click first
3) it will get the relevant page
4) log the details
5) get back to the previous page
6) click next
7) So on
How can i achieve that ?
i fixed it my self
thanks for the point @GabyakaG.Petrioli
@underscore cool. I think the idea is to move the browser.driver.findElements(by.css('#moreproductlist > ...)) inside the getDetails
11:13
yes
:D
simple
@KarelG i modify the code but it still dont kill the process
please show a mcve
Can we talk in a private chat @KarelG ?
wat
11:26
sorry no. Too busy with work. just come up with an mcve so that I can pinpoint the problem easily. It is obvious that you aren't familiar with node so time may be wasted if we would chat privately
Ok I understand
Sounds like a pretty backwards approach
Why aren't you simply making sure that your children are exiting properly instead of trying to force kill them?
@AndréBastos my brain left out the "process" on the first few readings of that title
1 message moved to Trash can
@PravinBhosale 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
How to do that? Im sending a message with "deleted" and catch the message from child to the parent and doing process.exit
11:34
@KarelG that's a very focused answer
@AndréBastos If your processes are not exiting and you don't know why, use npmjs.com/package/why-is-node-running
Then make adjustments to ensure that your process exits cleanly after sending the information to the parent
there's a package for everything nowadays
That package has been around for some time and has proven itself very useful many times
11:38
@OliverSalzburg he could do process.exit() at the end of the child process ... but he is doing copy pasta without understanding the code.
contains async code tho.
The way that call chain is constructed did not communicate to me that the author knows what they are doing
hence
> It is obvious that you aren't familiar with node
My code prints the child exited... but the parent is not doing anythign that's the problem
Let's move on. I just prepared myself a nice plate of ramen
that is why i linked you to the docs. Listen to the exit event. If parent detects a child process has exited, it can do something with the function bound to the exit emitter
11:41
@KarelG i'm not understanding
now, I see your code with multiple async and timers and ect ...
!!s/d ex/d exc/
@Neoares that is why i linked you to the docs. Listen to the exit event. If parent detects a child process has excited, it can do something with the function bound to the exit emitter (source)
tss you
11:42
@Neoares My code prints the child excited... but the parent is not doing anythign that's the problem (source)
I had internet issues in the worst moment
No parent should witness the death of their children. It's best not to attach listeners like that
That's what we call "ethically proper code"
oh, but what if the child dies automatically if the parent dies? Is that ethical too? 😮
That's fair game. It's the "I brought you into this world, …" principle
Everytime I restart my gulp process, I have a subliminal need of taking a gulp of water
11:52
You obviously need to switch tooling
Stat!
How to call all the function in functionNames array

var functionNames=['fun1','fun2','fun3','fun4','fun5'];
for(var i=0; i < functionNames.length; i++)
{
//LoadDataList is the service name
LoadDataList.functionNames[i]().then(function(Response){

console.log("Pravin inSide func "+Response);
});
}
man I wish you could write comments in JSON files
You can, sometimes
like when?
add comment key
11:56
vscode configuration
@KarelG yeah, but I don't like that workaround
@PravinBhosale LoadDataList[functionNames[i]]() ?
try to replace the names in array
Is there a reason why you are calling funcitons by their names?
12:01
i am trying to call all the functions in array
@Kamil
there aren't functions in the array, there are strings
^
thats why im asking
you're doing 'fun1'()
if you have that functions somewhere (like window), then you can do window[functionNames[i]]()
that still smells real bad practice
11 mins ago, by KarelG
@PravinBhosale LoadDataList[functionNames[i]]() ?
probably this
12:12
@KamilSolecki it is indeed
well, looks like I can stay here :D
the meeting apparently didn't happen. A couple of people I already knew and am friends with came and talked about other stuff
so I'll just keep on a level of semi-confusion about where I stand with the universe, and live on
It's safe to assume that a config name will start with a letter or a number, right.
currently redesigning the hackerspace website. I haven't done anything semi-productive in a while
@KamilSolecki how do you mean?
@KamilSolecki no
also, I've rediscovered chairs
they're useful
12:18
@towc configname.extension
nvm I workaround-ed it
 glob('*.json', {cwd: path.join(__dirname, dir)}, (err, filenames)
Now im thinking
hmmm
maybe I should make my configValidator transform into a config manager
lol @ this code
user image
2
@KarelG when you need spaces bad
Thats how my middle school IT teacher would do it
(his IT knowledge was mainly revolving around usage of excel, word and paint)
I bet he learned at W3schools
// Speaking about useful comments, it runs the thing.
start();
12:42
@PravinBhosale No
@KendallFrey LoadDataList[functionNames[i]]() this is not working
that sucks
kendall!
how goes my friend ?\
12:47
Do I know your friend?
your mom probably does
Hi there
@MageLerner 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.
12:54
can any one please guide me on this
-3
Q: Hide select option and select box based on selection using jquery

Pradip GarcharI am trying to make dependent select option base on selection. I have write jsfiddel for that.can anyone please guide me on this. Note:: height variable will be dynamic it is not working as it should work when i define height 50 it should hide Udluftningsventil with select box when 40mm energi...

omg
I just realized the reason why my schedules are not working properly
is because I did not set the timezone
so it defaults to zulu and im expecting local
13:09
yum analyzing query performances
but the indexing thing led to people setting up their dbs with too many indexes ... "because it is faster"
13:21
Thursday is the worst day of the week, absolutely terrible.
@hilli_micha Tuesday is the worst, they did a study
if it wasn't for the frog, wednesday is the worst
Well, Wednesday is like "cool, we're half way over" Thursday is all like "Shit, this home stretch is long"
13:37
if you're working only for the weekends you're a terrible person and you've wasted your life. cc @Loktar
so I'm eating carrot cake apparently
you people are annoying
@KendallFrey indeed, that's why blue tuesday exists
worst day of the year
@rlemon fridays are off here
try refrigerating them next time
they won't spoil so fast
13:51
no one is talking about question and answer :P
@KendallFrey sauce?
oh shoot
@MageLerner It's been closed, there's nothing to discuss. Try again
Is there an overhead for doing HTTP requests on localhost?
some
13:53
To communicate between node processes?
overhead or header?
but it was wrongly closed who ever did this
@KendallFrey @Loktar @ssube @Luggage
that's the sticker from my hot end fan
@rlemon I like the URL hash
it fell off mid print
and became part of the print
13:54
LOL
that's awesome man
You really got that printer honed in pretty well for it not to screw up the print after it fell off.
13:56
@BenjaminGruenbaum This may or may not be the same thing I read a long time ago: reuters.com/article/us-work-stress-survey/…
When we're talking about depressive days of the week, can we really compare anyone to the Brits?
@hilli_micha What do you have against us? :(
This is driving me nuts.

I have a reverse proxy to a locally running site. The proxy is https, the site is http.

For some god damn reason, the cookies are cleared on a post
@BenFortune I'm jealous of your cars.
@hilli_micha who even wants a tricycle car
13:59
Hey, I have a problem with Intl.NumberFormat. For some reason it does not show correct money symbols for all currencies. For example it shows Norwegian Krone as NOK as it should show it as kr. Is it possible to format numbers without symbol? So I could add the symbol by my self using coinify?

« first day (2616 days earlier)      last day (2557 days later) »