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

Tell the forum more about the issue. At first glance the code is OK. But since success depends on many factors you may have to debug a failed insert.

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

Your request needs refinement. If this is homework or assignment, share the assignment along with your attempt so far. Also, tell what language as it may be important in the design.

https://www.w3schools.com/js/js_arrays.asp would be a primer or tutorial for Javascript arrays.

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

Tell me more about this printing requirement. Also, why is there tags about c here?

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

This one had me ponder a while on how to debug but then I read the code again and can you explain lines 81 to 83?

Up to this point you had added to total_days_passed but here, you didn't and those lines look like either a gaffe or well, tell me what you see.

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

I'll skip reading over 100 lines and noted this from the past.

Read https://www.daniweb.com/programming/software-development/threads/66698/exit-a-tkinter-gui-program

mangle200 commented: this doesnt work when i try to use it in a tkinter where i used dictionaries +0
rproffitt 2,701 https://5calls.org Moderator

I worry here that much code has been left unshared. Read https://forums.asp.net/t/2013649.aspx?Student+is+a+namespace+but+is+used+like+a+type+ for an example of what to look for.

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

Again from memory for the reason given, I recall setting the background color even if there is no text in a cell. You can also do more research on this but I do recall doing this before and it was just one thing. However given the half dozen versions of vb.net maybe that was then and now is now?

PS. https://social.msdn.microsoft.com/Forums/windows/en-US/c221ce86-5fb8-4f79-bfa2-caeb90437fee/change-a-cell-color-based-on-contents-in-datagridview-vbnet?forum=winforms notes backcolor use.

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

I see priors about that with this search: https://www.google.com/search?&q=run+java+app+in+web+browser

Since the exact answer varies with your code complexity, I pause here.

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

Aha! The brightness control. Just last month I had to work that issue and for that I turned to AUTOHOTKEY (what is, is all over the web) then a brightness control script for Autohotkey. As to W10 64 bit, I wouldn't bet on it.

Good luck.

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

I see tr (table row), th, (table header) but no td (table data.)

Also in your graphic example of items a, b and c, it's unclear what is data, what is the header. But since you only used th (table header) I suspect the result to be one row which is that header. I could be wrong but let's get you a tutorial with tr, th and td.
https://www.w3schools.com/html/html_tables.asp

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

I'm sharing from my experience. The reason to upgrade from Vista or W7 is to get that free W10 license. Once that is done, and this is not only me sharing this, you can clean install 32 or 64 bit W10 as the license is for W10 and not about the 32/64 bit question.

As to 2GB we install the 64 bit version and it is no slower than the 32 bit OS. This has been tested so many times. There's no reason for a 32 bit OS on this PC so far.

I could write more but my advice is:

  1. Get out the canned air and give the vents and heatsinks a good cleaning.
  2. If there is any sign of CPU overheating, replace the CPU heatsink compound. It's old enough that it has dried and cracked.
  3. Clean install W10 64 bit and test.
rproffitt 2,701 https://5calls.org Moderator

Note: Similar/same at https://community.acer.com/en/discussion/629753/gateway-p-6822-finding-correct-bios-upgrade

This looks to be some Core2Duo laptop and I have CLEAN INSTALLED W10 on such before. But this is old enough to have issues with cooling which is what I find to be the main cause of a BSOD after memory and then other issues.

Your question is best put to an Acer forum which you did but in this class of PCs I have never found the BIOS update to help as the machine usually had BSODs when it came in so it's not a W10 issue at all (or BIOS.)

-> I see you UPGRADED from Vista to 10 so after you have your W10 activated you can clean install W10 64 Bit to bring it current and avoid months of troubleshooting why it BSODs if it is a software issue.

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

From memory you set the background color instead of the forecolor. I'm on my machine without VB.net so I won't check this out for quite some time.

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

See "Play a Very Long Song File" at
https://python-sounddevice.readthedocs.io/en/0.4.1/examples.html#play-a-very-long-sound-file
as a possible workaround.

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

I looked at the API and don't see an obvious solution. But you should ask this in Etherscan forums found at https://etherscan.io/directory/News_And_Forums/Forums

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

" Ping code in its own sub routine " and why that works.

My thought is that the runtime/compiler optimizers are in play here. As you fixed it I'll pause looking over your code now.

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

Before we get to graphing, where's your code for the math functions?

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

I would need to see the code with the for loop to take a stab at this but there are known issues with screen updates in apps like this. You may have to insert a System.Threading.Thread.Sleep(small number here) after the .Refresh to get the text on screen to update. Also it's just one box that you overwrite so again you might be getting 4 numbers but only one number shows. Again, without the code that has the for loop, I will guess badly. I will have better guesses with the actual failing code.

That said, why not insert Debug.Print statements in said code so you can see where the issue is before you work on fixes?

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

You left out what happens with your code as is. If the file did not play I add a print statement just before the play statement so I can check out if I got the filename correct. If the filename is good then I print if the file exists to further debug.

Remember, I don't see much from you about error messages or what happens so far.

mangle200 commented: its not that it gives an error its only that the audio doesn't play +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

The bigger question. Do you have this information on backups so a failure on your PC or Google doesn't lock you out of websites you use?

That would be your first concern IMO.

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

I am not a TK person but on line 27 you have this variable "song" but I can't tell how it's value is set which leads me to ask how that is being set.

mangle200 commented: its in def __init__ and in SITUATIONS +0
rproffitt 2,701 https://5calls.org Moderator

Let's begin with there is no ready to use app. As you are posting on a Software Development Forum this means you intend to write this.

That said, I would not write this in c, c++, java or use microsoft-access. I would turn to Python.

Also noteworthy is your app could be contrued to be an attempt to hack accounts. Be careful here to not make others think that.

Here's some priors about using Python to log into websites: https://www.google.com/search?&q=python+log+into+website

That would be the first step in developing your full blown app.

PS. I'm going to warn you off about continuously doing this as some sites are smart about this and will consider continuous logins to be a sign of an attack and shut down that account.

Royvip commented: can you do me a software like that, i'm in vietnam websites in vietnam are not smart enough as you say +0
rproffitt 2,701 https://5calls.org Moderator

Break it down into smaller tasks.

  1. Do you know how to create programs in, using your tags in assembly, c++ and visual-basic for windows? (maybe you should pick one language.)
  2. Once you can create the basic program (many start with "Hello World!") then you can tackle your design (design before code.)
  3. Part of the design would be to look at your requirements and break it down to managable tasks.
  4. Pick that task then code that task.

If you are stuck on a task, then share that code along with what issue you think has you stumped. If you want others to code for you, then state the full design along with the price you will pay.

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

It looks like your code needs a rewrite as to lines 28 to 32 (tr and td versus th). (Not an offer to rewrite your code.)

The tutorial about table, tr, th and td is at https://www.w3schools.com/tags/tag_table.asp

So after line 27 you would use tr and then your td (data) and then close the tr (/tr) after line 32.

Hints:

  1. th = table header.
  2. tr = table row.
  3. td = table data.

TL;DR: The table has no data rows.

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

I used https://www.google.com/search?&q=OMNIKEY+SW+Dev+Guide+-+HID+Global to find the primers on how to write apps to work with this.
As the code we have is not shared, I will not be able to share code in any form here.

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

In C++ you see pointers which you can move the pointer with math.

In Python you have arrays and not pointers, hence the error.

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

It appears that you must reveal you are trying this on an Apple OS.

I'd try the ideas at https://github.com/ionic-team/ionic-framework/issues/11591

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

This question needs refinement. You wrote about your issue but then supplied hundreds of lines of code without an overview or where you think the system failed.

My thought is that the change in room should be similar to the initial join but with the new connection. Tell more where you think this failed in your code (by line number.)

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

Since it's been days since your post, consider https://sitecore.chat/

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

Please detail what you need to do as well as detail where in this 100+ lines of code you think this has failed.

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

"This just appears to be a homework assignment. Please show your code of what you have so far and where you're stuck, so we can help you. We won't just do all of your work for you." - Dani's usual homework response.

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

You may be overthinking this. A simple solution would be to make an array with the usual 1 to N values (N being your max song count.) The array is shuffled and you play them one by one.

This meets what I read from you as the random criteria without a repeat pick.

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

To the question, all the USB (2, 3, C) I've used work. However there is going to be someone with say Windows XP SP3 or some other reason why it won't this time.

As to speed. Even USB 1.0 was 11 megabits per second which is more than sufficient for most folk.

As to the slot, the make, model, age of this laptop is not here so no one can search for this laptop's specs.

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

A few issues with this.

  1. Your topic title seems to be rushed and incomplete.
  2. Your tag was for c++ but you ask for Matlab.
  3. There is no code shared or indication you have attempted to do what looks to be an assignment. Even if it was not an assignment it works best to share the code that you are having an issue with and (you) explain what you think the problem is.

At that point members might reply.

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

Take a little time to complete your DANIWEB Profile with your company information.

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

It's also been a great tool for the FBI to track people down!

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

It's been a few days but my view on this is not as a docker user but someone that has been on a lot of projects. As such this is opinion and example about how we tackle such in the past without relation to docker etc.

  1. Use the tools supplied. i.e. docker-compose.
  2. Make/write code that supplants the feature/function you need. i.e. read a config-file or whatever it takes if there is an aversion to using the docker-compose solution.
  3. Go commando. Forget all that and just set it in your code admitting you have to edit it there when it changes elsewhere. Also known as brute force programming. i.e. "get it done." Deal with other solutions later.

I don't know about you but in our developments, time was of the essence so we would often break rules in order to make the delivery date.
Since many are on the Agile path, we would lodge this as something to be worked on in the next sprint.

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

I took a gander at https://www.google.com/search?&q=How+to+delete+all+posts+of+Wordpress+at+once and have to write it looks like this question has answers.

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

That's a lot of questions but I've seen folk and companies spend little (their own time) to a lot where the company pays another for SEO/SEM work.
As to time, it's definitely not fast. Some want results in a week or less. Best to leave those to learn why this is not going to happen.

As to continue to work your SEO, it's a never ending task now.

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

As to who, that was just an Internet search but your tagline tells me you are such a source.

Is this spam? Smells like spam.

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

Can't answer. Here's why. Look at https://www.google.com/search?&q=Forum+script+on+WordPress which shows there are some hundred solutions so each one can vary on the "how to install."

That aside you as the developer will review a few, choose one or a few to try out and then as to the install, follow the supplier's instructions.

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

The problem here with shop rates is this may cost as much as a good used PC. Here you often here of a minimum shop fee which pushes the cost into the area of a new PC.

I wish I had more story but as it stands, it's new so why are you on the hook to take it in for repair?

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

Try to help or direct advice.

  1. It's a warranty issue. You wrote it's a new PC which I already countered above.
  2. These often need a motherboard, maybe a power supply.

It does not matter that your 2007 PC works or not. PCs are not consistent as to life span but the more you see as I do at the shops you learn that about 5 years is about when you start to see problems. These are fixable by replacing the failed parts BUT once in a while the client wants it to be fixed without changing out the failed parts. You listen and nod then present your estimate for repair.

Also it's old enough (you didn't reveal it's true age so I'll guess here) to need a new CMOS battery. That's 25 cents in bulk at the shop and we often slip one in without charge if the client is reasonable. Sometimes we get lucky and that's it so we charge nothing so there is no warranty and off they go.

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

I worry here that the story is incorrect as the i7 2600 appeared in 2011 so most of the PCs made with this are far older than 5 years and may be tired and worn out. You might ressurect such with a new motherboard and what else has broken but then again you wrote "new pc" so this is clearly a warranty issue.

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

This is a common plea for either a finished app or homework. In either case we ask you to supply what you have so far in code and write what line or issue is stopping you.

If this is something you are hiring out then state so no one misunderstands this is a job for hire.

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

There's your clue. "copy the codes"

As the code you supplied so far will never include your MySQL setup I can't verify that your first steps such as the connection string are correct.

You must know your code and single step it in Visual Studio till you find the line that throws the error. Then you can examine that line and what variables are in use at the time.