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

Frankly this may be a case of accuracy versus costs. Item 4 for example may be low value. Why do any of this for targets the user has little interest in? That and the time to travel 5 KM versus 5.1 KM has little need to be accurate. You could after some runs loosen up on accuracy and lump everything into loose categories of time like "under 5 minutes away" to other groups. Being accurate will be costly.

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

Nothing stood out in that log. Time to read priors and see how others solved this at https://www.google.com/search?q=printscreen+freezes+windows

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

Then it's time to add debug code. Print out the variables in line 10 before line 10 executes so you can see what it didn't like.

Also, see working examples like I read in https://www.daniweb.com/programming/software-development/threads/176391/how-to-move-files-to-another-directory-in-python

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

Poor post formatting aside, could the back and forward slash casue issues in line 6?
What is that letter r doing in line 6's parameter?
Do you need a trailing slash in line 7?

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

Whenever this comes up I remember how this is done at the office. We have a Microchip MIPS system so we use the C compiler and tell the compiler to save the assembler output for examination.

Seems simple enough. And free. http://www.microchip.com/forums/m783270.aspx

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

There is no short answer to this. Read https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/welcome-to-rds for the first overview and when you need more, read the links in Next Steps.

You'll have to get your CIO/CTO in on this and a budget.

That is, unless you are trying to go cheap and say VPN into a PC at the office?

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

@Doug_6

Everyone has Linux. It's free, easy to make a bootable USB stick and keep handy for times that you need a simple way to do the things that Windows throws down spike strips.

No learning Linux required. Read my old advice at http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

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

This job should not be written in code. It should be a single line command and what that command is may vary with the host OS.

Changing the delimeter could be done with the tr command. Read http://linuxcommand.org/lc3_man_pages/tr1.html
As to working the files from one directory to anoter, that's the old command line (dos style) for in (files.) do something.

Why code when it's one command line?

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

" view my Source is there is a way to hide it "

I'm going with nope. For content to show in web browsers you have to send HTML code. It's that simple.

The bottom line is that browsers need to see the unencrypted, plain text source code to create a webpage. For that reason, it's impossible to hide your HTML source code. If the browser can read it, which it needs to be able to do to render a webpage, then so can a user. That's the bottom line.
From https://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm

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

As I read your recent post at https://www.daniweb.com/community-center/threads/515773/python it appears you do know how to output from python.

Be sure to mark solved in your solved posts.

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

While I can't call any concise since that would be for you to judge I do find many articles and even videos on the subject matter with https://www.google.com/search?q=minimax+algorithm

Now that there are some hundred plus pages available your job is to find the one that speaks to you.

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

Take the time to read https://developers.google.com/edu/python/strings

Notice how the index into strings start at zero.

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

That makes sense. I'm surprised Visual Studio didn't balk at using variables before they were declared.
(Dim is where such is declared in VB)

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

I thought a broblem is a problem with your bro?

But the only thing I think I see, and I'm not sure because I can't do the same in VB here, is that I always want to set the text AFTER I have created or moved my object.

Try that.

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

Try https://www.computerhope.com/beep.htm as well as see if there is any service manual for this one.

Share what you find out.

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

@P, since you revealed nothing about your internet setup or location it is anyone's guess why your PC does this. Only the picture tells me this is some PC. Think of all the details required to work your issue.

Then we have countries and ISPs that block content. Also you could be at work or school that blocks YouTube. While I will not help folk get around work and school blocks do try Opera. Turn on the VPN in Opera and see what happens.

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

The last time I used a streaming plotter, yes, you can only feed it values along the y that match since the chart scrolls along and y must be same or the next value and then match until it's time for the chart to scroll. Nothing seems odd about that.

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

The last time I did this (was for work) we used a C complier.

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

In a pinch, I try some USB case to prepare the drive. As to power I rarely run into that as a run of the mill HDD takes at most 20 Watts. A good PC should have much more headroom or spare Watts.

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

Usually some file system error. fsck time. Example at https://askubuntu.com/questions/62295/how-to-fix-a-comreset-failed-error

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

Can you share the CPU in this box? That way we can see if it has SSE2.

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

That's correct. As you read priors you find that another app had locked the folder you want gone. The problem is now "what is that app?" I can't know since I don't run your PC.

It appears safe mode and clean boot didn't work out so go nuclear and boot up any current Linux OS and delete it there. Linux does not worry about Microsoft file permissions.

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

https://www.google.com/search?client=opera&q=Microsoft+SleepStudy finds priors. In short it looks like you often find tuneup apps (not from Microsoft) with a lock on this. Fix varies with each user. We always have options to try like safe mode and a clean boot.

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

The reply below is about an exit and "To avoid the infinity loop simply use a WaitHandle. To let the process be exited from the outer world use a EventWaitHandle with a unique string. Below is an example."

If you simply had a loop, then CPU should go to 100%. Sticking Sleep() in that loop would only limit what amount of work the loop could dispatch. This is why we choose to go simple at first (get it done!) and later refine to event driven designs.

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

About 100% CPU use in a loop. That's not unusual at all. You do need to move to an event driven system to get rid of an infinite loop.

Example at https://stackoverflow.com/questions/7402146/cpu-friendly-infinite-loop

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

Let's hear a little more. If this were for programming 3D gaming on 4K UHD displays, that budget is many times light.
If it's just to run some Java run of the mill usual homework, then why not what you listed?

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

About replicate what IIS does. Think about the years IIS and other systems with hundreds of programmers have been working on this.

Now, for your first expedition I don't think it's bad to need more cores and RAM. You'll get better with time.

That is, you don't come in 1st or even place well in your first races.

Again, I see nothing wrong with high CPU use with so little resources.

ryantroop commented: thanks for the kind words. +9
rproffitt 2,701 https://5calls.org Moderator

At the office we don't have a single single core machine left. The last lowly machine we had and someone stole it was a 2006 Dell E1505 Core Duo with 1GB RAM and 120GB SSD. You must have something even older.

On such a machine I see nothing wrong with 100% CPU and 100% everything. It's what it is. Since it's just a single core, all those threads would be dragging it down even more.

I can't guess what the goal here with a server that looks to cost less than Windows Server 2012. Tell your story. Sounds interesting.

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

That's a desktop so options are plentiful. Google "The Dead PC" to see how we reduce the parts inside to as few as possible.

Mind you that I am running into folk that don't want to troubleshoot but exclaim "just tell me how to fix it." For those folk you send them to the service counters in the world. If you want to try your first PC repair then it's the usual. Remove parts that aren't needed like all USB connections and try again.

Later if need be you try without drives or extra video cards.

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

Ahh the perils of the failing laptop. Your first order of business is to backup your stuff before it's lost. After that you may want to run some hardware test apps. I don't find any to be better than the rest but look out for failing HDDs as for some reason I saw a lot on Lenovo laptops. They tend to buy cheap seagates so maybe that's why.

The issues you noted were often traced to a failing HDD so try another drive as a test.

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

Psuedo code is easy to find the definition on the web, so that's not the hurdle here.

What I want you to do is forget that you are coding. Imagine you have to do this manually. What steps would you take and to get it ready for a computer program, think about what values you need to get and calculate along the way to the answer.

No computer programming today. Just how would you do this, step by step.

ddanbe commented: Nice advise. +15
rproffitt 2,701 https://5calls.org Moderator

Is this a tutorial or was the question forgotten?
Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question then update your discussion.

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

Far be it for me to replace Xamarin support but from what I see there are probably more files to be installed than just the APK. I remember other VS based dev systems like this one and new developers would crash and burn on topics like this.

That is, my bet is Xamarin documents how to deploy your apps. I don't duplicate such because I don't use this system but am familiar with another system and this really upset our new developer. (they were upset when I sate with them to go over the how to deploy pages in the docs.) They didn't last long. I don't understand that developer. I have no problem with sitting down (and getting paid) to review the docs.

In this other system you can deploy the Debug version so that's an easy fix to the Release build problem. I know some developers won't dig into what's different between the builds.

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

While I think you would be better off in Xamarin forums, I will ask a question since this is in Visual Studio. Nod first to their own forums at https://developer.xamarin.com/

As you know, there is no sin in using the Debug build. But in VS you would examine how your Debug build varies from your Release build. Therein lies why.

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

How you feel about all this is up to you.

Whatever I write here may make you feel worse since it's well known that your ISP, Google, Facebook, governments and more collect data. If you don't want this collected, then don't post, email or write such on the internet. About the last protected communication today is written mail. but even that has limits.

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

I didn't find such functionality when I looked. Read https://github.com/aspnet/Microsoft.Data.Sqlite/issues/357 on ideas to implement it yourself.

But my thought here is since it's an in-memory system, your code is making the changes so you would implement it as you see fit in your change code.

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

This thread is over 6 years old. If it didn't solve it for you, start a new discussion and share what you have for your code.
Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

(You!) Read your code. I see line 31 and a bit more find the item so a rather easy way is for your new method/function to use that to keep calling the old single remove until there are no more found.

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

Looks similar to https://www.codeproject.com/Questions/1230461/Modify-the-supplied-class-unorderedarraylist-the-f

Also, it's unclear what your assignment is here.

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

Then let's hear about the book used in the class. If it's online I can search the class book and text.

I worry that the exact wording matters here. For example
https://www.developer.com/java/ent/article.php/859381/SJCP-Exam-Preparation-Top-level-and-Inner-Classes.htm
and other tutorials don't call out an "outer class." So maybe it's all in the words used.

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

This seems to be something you would get on a test or quiz. Today, if I needed to check my thoughts on this I would try the following.

https://www.google.com/search?q=Which+of+the+following+are+not+allowable+modifiers+for+an+outer+class%3F

That seems to kick that around and find prior discussions on the question. But that's not why I'm replying.
I'm running into folk that won't try the question on a search engine. If you would, can you share why you don't use search engines or Google?

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

To be honest you need to write more about your issues. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

Don't assume folk know what Spring Batch is. Always supply the code passage that you are struggling with. Maybe someone will see the error.

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

I use google a lot about the BSOD. Also the same issues we saw in prior Windows BSODs apply to W10. I hate to write this but so many BSODs were hardware last year. And a high percentage were bad HDDs.

Best tool I found to get a quick overall look at drive health and the PC was SPECCY. But there are some that want more automation rather than reading the reports. Those sort of techs are going to be wiped out.

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

This is a common enough Android question. Did you try priors and tutorials like: http://www.instructables.com/id/HelloWorld-With-Exit-Button-AndroidStudio/

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

Sorry but I didn't do a deep dive into this area but can confirm I get a profile for every WiFi connection made. Now that Windows is often set to auto-connect to open hot spots, all it would take is to power up near some open hot spot.

Since it's a profile you don't use, I'd delete it and forgo the forensics.

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

Just tried the netsh wlan showall here and under profiles is a profile for each WiFi hotspot I have connected to.
The profile name matched exactly our hotspot SSIDs.

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

Yes. Not all USB ports are the same in this area. Can confuse the issue.