rproffitt 2,701 https://5calls.org Moderator

To create such would require what we call a requirements document. Your post supplied two sentences and as such falls flat as to requirements.

Beyond that, no one I know would write such a thing in just Java. Today you would create your requirements and design documents, get approval and then begin development. My thought is that it would more likely be another web site with the usual backend of SQL, PHP and such. Java might not be used but a safe bet is that Javascript would be seen on the frontend along with HTML.

There's a lot more such as proper security for the site, logins and data but you would call that out in your documents.

rproffitt 2,701 https://5calls.org Moderator

Here there is a push for a minimum 15 USD hourly wage. While I'd expect much more for good programmers you limited this to "python developer."

In all the work I've done I've had to use my knowledge of JavaScript, HTML, CSS, SQL and other technologies to work on the project. So hey, pay for just a python developer alone may be a fraction of what might be called a FULL STACK Developer.

In the USA the salary range for the full stack developer typically falls between $82,022 and $108,617 USD.
Not to upset you but a Python only developer would be closer to intern pay or minimum wage.

rproffitt 2,701 https://5calls.org Moderator

Sorry to have upset you. I know some are unhappy with microsoft, dell and more so let's hope I can win you back here.

The first step to getting this machine working is to have good, bootable install media. Now in some rare cases, mostly older PCs they can't boot from USB and we have to make DVD boot media so there's that.

Because we can't know if your PC has that issue, a step by step is not possible. But we can try and help you avoid a repair counter at the very least.

rproffitt 2,701 https://5calls.org Moderator

I think you should make your Windows install media with the usual media creation kit. Making it with Rufus throws in unknown variables.

It's been over a decade now and I've yet to have to use the .ISO download or Rufus for Windows.

-> Even if you don't have a key for Windows 10, there's not much broken if you don't activate. Example:

Yes, an unactivated Win10 can run almost normally and has only very small limitations. Just remember, Microsoft is like closing one eye at the moment about those unactivated Win10 copies. They have their own reasons for doing so at the moment.Mar 28, 2019

There's a lot of back and forth here yet you are not using the methods everyone I know in the business and here use.

A proper install stick might help but then again I've done clean installs and can't get on the Internet. THAT has never been a Windows issue but problems such as:

  1. Forgot to install some driver.
  2. The date/time is too far off.
  3. The machine has some trojan/malware/cracks/etc.
rproffitt 2,701 https://5calls.org Moderator

What code? Since there is no code, share where you are stuck.

rproffitt 2,701 https://5calls.org Moderator

Frankly no one I know would create this app. Instead they would setup the usual web server and site that does what you ask to avoid having to deal with distributing and updating some vb.net app.

Remember you didn't write this was some homework so this let's me write about how such an app is now done with a web server, possilbly PHP, HTML, and such.

There are many fine tutorials out there such as https://www.freecodecamp.org/news/making-an-awesome-inventory-management-application-in-php-and-mysql-from-start-to-finish-90bc5996680a/

rproffitt 2,701 https://5calls.org Moderator

Hi MickeyD.

I worry here you are thinking about keys and how they worked prior to Windows 10. Or maybe I missed where the current install isn't activated. Tell more what's going on so I can focus on that issue.

Activation changed with Windows 10. I no longer have to keep inventory of the 100 PCs at the office with keys, etc.

rproffitt 2,701 https://5calls.org Moderator

To me, this is poorly formatted so that stood out fast. Example at https://www.quora.com/How-important-is-formatting-code

I know some don't think it matters and some get upset about it. In school, such would be kicked back with either "try again", rejected or reduced grade. Here you are asking for help so put in the effort to present clean readable code.

Also, why is line 49 commented out?

PS. Dump variables before the line it fails at to check your work. Nod to https://www.w3schools.com/php/func_var_var_dump.asp

rproffitt 2,701 https://5calls.org Moderator

How would one go about finding these license details "burned into the Bios'?

For me it's just a boot off the installation media I made (noted above), a clean install, do the skip/don't have key step, and let it activate later.

Now I can see how folk new to this activation system may want to dig deeper but hey, after some hundreds of install/re-install/clean-installs I can't see why I'd dig into this now.

rproffitt 2,701 https://5calls.org Moderator

Formatting could help.

  1. There's a glaring issue with line 24.
  2. Then we have lines 69 to 73.
  3. I have trouble finding the matches for the braces top to bottom.
  4. Line 49 is commented out so it may try to run the code to post every time.
  5. Line 49's bracket, since the line is commented out may have a stray bracket below.

The formatting is a mess so I'll stop here.

rproffitt 2,701 https://5calls.org Moderator

Welcome. Be sure to complete your profile so folk can find your website.

rproffitt 2,701 https://5calls.org Moderator

Welcome to Daniweb.

Threads? Yesterday I used a heavy cotton thread.

rproffitt 2,701 https://5calls.org Moderator

Is there a case where both lines 3 and 7 are true?

rproffitt 2,701 https://5calls.org Moderator

I think when you use import you'll have to step up to a much better implementation such as:
https://www.codeproject.com/Articles/820116/Embedding-Python-program-in-a-C-Cplusplus-code

Hope this helps.

rproffitt 2,701 https://5calls.org Moderator

When I have a big job (I haven't had school assignments for decades) my approaches are:

  1. Design first, code later.
  2. If the design is overwhelming then I break the design into manageable components.
  3. If a component or chunk is still too big I break it down further.

Sometimes those new to this work try to code without the design or break it up into manageable pieces steps.

rproffitt 2,701 https://5calls.org Moderator

This must be your algorithm or you can't hand it in without a chance that the teacher will find it here.

-> Share where you are stuck so we can discuss possible ideas.

rproffitt 2,701 https://5calls.org Moderator

Questions:

  1. Are the spaces gone after line 11?
    If so, examine your regex parameters.
  2. Why is "" in line 11? I checked some documentation it seems like we don't need that.
rproffitt 2,701 https://5calls.org Moderator

Here's "the sentence" answer for SHA256. Why code when you can just put in the value and move on?

870a356982ccf7f8c50435cc52666de52c0ad4e5228c17d5f422bd7dad961113

rproffitt 2,701 https://5calls.org Moderator

What is this "swipping machine"? I used Google to see if it would shed some light and it was unclear.

If I change the words to "swiping machine" I get some hits about Point Of Sale but even then we would never code the credit card reader entirely today.

Why? Today's point of sale don't use the mag stripe by default. Instead the card reader is tasked with using the security chip or a payment system such as Apple pay and others.

This means if you want to develop a point of sale you would source the card reader/payment system and use their API for the payment system. You would never write the code for the "swipping machine."

rproffitt 2,701 https://5calls.org Moderator

This code on its own has mismatched brackets.

Again, count your left and right curly brackets and you see they don't match. I can't guess your code's intent so I can't fix it for you.

rproffitt 2,701 https://5calls.org Moderator

Thanks for the report back. Please mark this as solved.

rproffitt 2,701 https://5calls.org Moderator

IF the machine was upgraded to W10 Pro then the license is digital and trying to use the code on the back, in a registry and more is going to muck it all up.

I don't want to repeat a lot here but if the license was an upgrade etc, I've never had to do more than boot the install media, answer the question about "don't have the key now", move on and install. Tips:

  1. Remove all partitions to get a clean drive to install to.
  2. Don't connect to the Internet during install. Delay that till later.
rproffitt 2,701 https://5calls.org Moderator

Why not use a tutorial like https://www.w3schools.com/html/html_lists.asp ?

rproffitt 2,701 https://5calls.org Moderator

I don't see any code plus your choice of tags are quite unique. When selecting those tags, make sure they apply.

  1. What does security, networking and blue-screen have to do with this issue?
  2. Where's the code?
rproffitt 2,701 https://5calls.org Moderator

Here's the clue you should boot and do the clean install from "install media."

I had to install with Windows running.

The ONLY times I do that is if I want to get a free upgrade from Windows 8 to 10. ALL and I do mean all other times I boot the install media created with the method Jim and I noted and do the clean install.

-> BIG TIP or advice here. When I do the clean install I remove all partitions so I get a clean as I can without a lot of work drive to install on.

Your story sounds just like where it will trip up. Read my first reply above about Home or Pro and install media, not .ISO files.

rproffitt 2,701 https://5calls.org Moderator

YOU should be sharing what you know here. From your site: "EiBS, a professional Custom Software Development Company and Website Design Company, Ecommerce Development Company in Madurai, South India."

Why are you asking and not telling?

rproffitt 2,701 https://5calls.org Moderator

I used the method Rev Jim noted about "don't have the key."

Now there are things that happens too often so I'll keep it short.

  1. The client only had W10 Home. W10 Pro won't activate and they have to buy it.
  2. You mention the .ISO. Here I use the Windows 10 Media Creation Kit (the name changes over time so I may be a little off). In years I've never used the .ISO since I don't want to deal with that file.
Reverend Jim commented: Likewise. I use the MS MediaCreationTool to create a bootable USB installer +15
rproffitt 2,701 https://5calls.org Moderator

OK we can use the various loops and IF. Remember we have many design choices here but the goal is NOT to design well here as the assignment forbid arrays.

So we know we have 10 data lines to output so the first ten lines would be our loop.

I can't write code for you since that's your work so psuedo code will suffice.

for row from 10 to 1 
{
 output row and a space
 if n1 => row print a star and space else print two spaces.
 if n2 => row print a star and space else print two spaces.
 if n3 => row print a star and space else print two spaces.
 if n4 => row print a star and space else print two spaces.
 if n5 => row print a star.
 print the newline
} 
Print " 1 2 3 4 5"
saadbangashh commented: Thank you. It worked perfectly. +0
rproffitt 2,701 https://5calls.org Moderator

I'll lead with this: I have used remote ssh many times but NOT what you are trying. This is me just thinking about your question so here goes. My first thought is to get bash instead of tcsh.

Try "forcing a login shell" as noted at link so you get bash which from what you write seems to work. There are more ideas in that link as well.

rproffitt 2,701 https://5calls.org Moderator

I'd decide if you want to write some voting code or look at the link I gave. Remember I take it this is a real request from you and not another homework assignment. For homework you share where you are stuck.

eman_12 commented: ok thank you +0
rproffitt 2,701 https://5calls.org Moderator

Your second post in this thread doesn't look like credit card code. Looks like voting code. Mistake?

eman_12 commented: yes your are right i post wrong qestion +0
rproffitt 2,701 https://5calls.org Moderator

Maybe after line 8?

I get it that folk struggle to write code and some math but here most of us want you to write the code so you can fix it and maintain it later.

That is, if f1 is in radians, now you know how to convert to degrees so add a line if you must.

rproffitt 2,701 https://5calls.org Moderator

Since this is not homework but something you need for your app or work, try https://www.geeksforgeeks.org/program-credit-card-number-validation/

rproffitt 2,701 https://5calls.org Moderator

The conversion between radians and degrees is: degrees = radians * 180 / pi .

You should be able to do this when the need arises.

aphry1303 commented: Where do i put this exactly in my function? When i calculate the derivative of this func, it does not work. +0
rproffitt 2,701 https://5calls.org Moderator

I see nine such projects at https://github.com/topics/magic-the-gathering?l=c%2B%2B

Maybe use one of these to start, then add what you feel is missing. When done, contribute to the project you started with.

rproffitt 2,701 https://5calls.org Moderator

I see 9 such projects at https://github.com/topics/magic-the-gathering?l=c%2B%2B

Why start from scratch?

rproffitt 2,701 https://5calls.org Moderator

In short, if you want to use a handler to write to the log, then that's what you use and never use other methods to write to such log.

Tutorial at https://docs.python.org/3/howto/logging-cookbook.html seems complete enough to me.

clife commented: Thanks rproffitt, It looks good, will go through it +3
rproffitt 2,701 https://5calls.org Moderator

So the if statement can't be used? Harsh assignment there. Remember I have to take your words as they fell.

saadbangashh commented: We can use if statement and other basic tools +0
rproffitt 2,701 https://5calls.org Moderator

Shouldn't this vary by:

  1. Which compiler and libraries you use?
  2. Can it vary with the OS?

Remember that homework assignments are done by you but let's dig in. Where are you stuck?

rproffitt 2,701 https://5calls.org Moderator

I would be guessing if this is homework but we only assist where you are stuck rather than do your homework.

Today you see paper printing from apps but hey, printing on paper from an app differs from OS to OS. I've worked such on Linux and Windows and have not printed from an Android app yet but hey, new things to learn!

rproffitt 2,701 https://5calls.org Moderator

I had to read a little about Ansible but a quick thought would be that I would write out a new YAML (yml) file to automate this.

Remember this is like me being blind and given the tail of the elephant. I can't guess what your app is trying to do overall.

rproffitt 2,701 https://5calls.org Moderator

My debug methods would be:

  1. Check my syntax at and around that line.
  2. Echo/print/log the ABSPATH value at about line 7886 to see what it is.
  3. Add PHP to your tags (I'll try to add this for you.)
rproffitt 2,701 https://5calls.org Moderator

There's not enough story here to narrow it down. Try sharing, make, model, age, when you dropped it and so on.

rproffitt 2,701 https://5calls.org Moderator

Line 12 jumps out to me and I could be wrong here has an oddly named variable. Try something plain but descriptive.

Read https://www.w3schools.com/python/gloss_python_variable_names.asp as to why I worry that's the issue here.

rproffitt 2,701 https://5calls.org Moderator

Welcome. Are Swedish Fish popular there?

rproffitt 2,701 https://5calls.org Moderator

There are a lot of members that use Java. Can you expand your question?

  1. Is it a general Java issue?
  2. Is there a specific issue you need to discuss.
  3. Is there code you need to fix?
rproffitt 2,701 https://5calls.org Moderator

Please clarify if you are having a specific Python issue/question or if you are searching for folk to write this for you.

rproffitt 2,701 https://5calls.org Moderator

This looks to be a continuation of https://www.daniweb.com/programming/web-development/threads/535177/text-across-the-page-video-camera-screen where we kicked this around.

In short, if you use the native recording app, you can't exercise controls you want. You must source a new component as we discussed before.

rproffitt 2,701 https://5calls.org Moderator

A few problems here.

  1. "Reusable Code Snippet" is for you to share a working tested snippet along with you expounding what it is and does.
  2. Dumping code after what looks like a homework assignment rarely gets much more than "tell us where you see the issues."
  3. Edit or replace your post. Consider that few will complete your homework for you but most of us will help you if you tell us where you are stuck.
rproffitt 2,701 https://5calls.org Moderator

I'd review https://github.com/allenai/scispacy/issues/340 since it goes over the install plus another issue which while interesting does not apply from what I read in your post.