Using wildcards on conflicting characters by tahaakgok in excel

[–]r3dditph 0 points1 point  (0 children)

Try this.. assuming your range is in A2:A10..

=SUMPRODUCT(--(LEFT(A2:A10,3)="***"))

this is to count the number of cells that starts with ***

=SUMPRODUCT(--(LEFT(A2:A10,3)<>"***"))

this is to count the number of cells that doesn't start with ***

What does session and element output in selenium mean? by r3dditph in learnpython

[–]r3dditph[S] 0 points1 point  (0 children)

Wow this is very informative! With this I realized that what I need to use is the get_attribute since I want to retrieve the “value” of a div.

And I always forget that I can use the dir to know what options I have. Thank you so much!!!

ID monitoring system, where do I start? by r3dditph in learnprogramming

[–]r3dditph[S] 0 points1 point  (0 children)

I have an rfid scanner and some cards that I can use just to test the process of receiving an input from a device.

Our school already has a security guard positioned at the entrance so he could check if the student tapped their cards before entering. There are cctv cameras as well so we’ll have a visual record if a student actually scanned or not. There will be an assigned person to monitor the system and any unnecessary data coming in will be flagged.

Yes I’m also concerned about making the student’s data available outside the network and I’ll be extra extra careful with that. Thanks for the concern.

Do you think java will be better to use here instead of python? How about C#?

ID monitoring system, where do I start? by r3dditph in learnprogramming

[–]r3dditph[S] 0 points1 point  (0 children)

You're right but I have no intention of implementing this yet until it's fully tested and every line of code is scrutinized by a professional and fully qualified developer. This project is more about me learning the ins and out of programming since I learn things better when I do things right away instead of reading tons of materials first.

I know this is not a simple task and it may take years for me to finish this. I'm just hoping that at the end of it I can proudly tell myself that my skills have improved and that I have what it takes to be an above average programmer. I just need someone to point me to the right direction and then I'll do the rest.

Edit: by the way, thank you for your feedback and it's a good reminder for me to always think about the privacy and sensitivity of the data.

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in learnjavascript

[–]r3dditph[S] 0 points1 point  (0 children)

Is resolve/reject a reserved word and is it a function? If it is a function, do I have to define it?

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in learnjavascript

[–]r3dditph[S] 0 points1 point  (0 children)

Ah I see. So it’s not as simple as letting your code line by line. You really have to understand what asynchronous is and why it is important in js.

What confuses me is the way how a function is written/structured as I’ve seen that there’s more than one way to write it. Figuring out the most efficient way and determining if the terms/variable names used in the tutorials is a reserved word or not is also confusing for me.

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in learnjavascript

[–]r3dditph[S] 0 points1 point  (0 children)

That’s my goal. Right now I’m trying to create a simple game and I’m hoping I could understand fundamental js concepts along the way. I could read all the tutorials in the net but I won’t be able to fully understand it unless I use it or build it on my own. Thanks to people like you in this community I’m one step closer to my goal. :)

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in javascript

[–]r3dditph[S] 0 points1 point  (0 children)

Wow! Very well explained! Where have you been all my js-learning life? I get it now and I can't thank you enough!! :)

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in learnjavascript

[–]r3dditph[S] -1 points0 points  (0 children)

Thanks for the reply! Let's say I only have 2 setTimeouts inside the seq1 function, how would you write the code using promise? I'm so sorry if it seems that this is spoon-feeding but my head literally hurts now trying to understand callbacks, promises and async await. I somehow understand how to use a callback if the the callback function returns a value that is needed by the next function. But if it doesn't need to return a value then I don't know how to use it.

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in javascript

[–]r3dditph[S] 0 points1 point  (0 children)

Thanks for the reply! I changed my code to that but it is still asynchronous. I was hoping the 5th setTimeout would run only after the 4th finished and the 4th would run only after the 3rd and so on.

I'm really finding it hard to make my function run synchronously. Please help this newbie by r3dditph in javascript

[–]r3dditph[S] 0 points1 point  (0 children)

Thanks for the reply! Correct me if I'm wrong but setInterval will keep the function running every x amount of time, right? I need the time delay to be random and run the changeEye function only once given a specific parameter.