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

Your code would do some very odd things. But first, name your variables and CONSTANTS with meaning. You use the word PRIMES and yet I see nothing in the assignment about primes.

Line 8 to 14 are your for loop collecting what looks to be numbers to be checked and then a variable count is incremented.

Finally line 16 and 17 are a true mystery as why we would expect this to not crash. Very strange to use your loop variable i outside the loop.

You may want to refactor this one.

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

@J

If it's just an account password issue, www.lostpassword.com is my advice when NTPASSWD (see google) doesn't cut it.

About your second question. Many Microsoft versions do that until the OS is installed. You might have to install a driver or activate a drive after the installation.

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

$.ajax is not a function sounds right to me but I'm not big on your code. Sometimes folk get code from the web and it's just broken.

PS. Adding with edit. Did you check for syntax errors by opening your browser's JS/debug console?

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

I would not worry about Edge as I read other complaints at https://www.google.com/search?client=opera&q=ajax+fails+on+edge+browser

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

Actually it does paint a clearer picture. Here I find a lot of admins with multiple OS skills. I worry when an admin asks if they can download Linux. At some point they should have done that, ran that, picked up the skills so they are ready to boot it and get the user's files out.

It's very old advice I handed out. Check out the date at http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

Me? Just a person that has been on so many projects over the years from the GE-310 and on. CP/M, DOS, Windows, Apples, Linux, Windows 1.0, NT to present day. Ran a repair shop, worked on firmware, hardware designs, wrote in assembler and many other languages. Apps galore over the years from embedded to factory automation to SQL to well, what next?

Now working on things like Android apps which as you guessed is Android Studio on W10 and for CVS, still sorting that out.

Along the way, you run into a lot of recovery disaster jobs and stories.

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

Turning off should be fine as I've yet to encounter or read about a "shutdown and we'll spread" ransomware.

-> How did you recover from your disaster last year? I read we talked about backup and now here we are again.

Antivirus would be nice but doesn't stop everything. This is all about us, backups and not installing ransomware. That is, I only read where the owner/user installs the ransomware. And since they might overrider the antivirus and have, just having antivirus is not enough.

You've answered part of my question. I worry that the company is hobbling the new IT staffer.

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

I wonder if there is more to the story. Sometimes a company will remove the tools required to do the job.

For example while I have NTPASSWD (which I don't need to write about as we have google) every once in a while the IT staffer is forbidden to google it up.

Or they are not allowed to pay for lostpassword.com, buy a spare HDD to clone to and so on.

Is anyone impeding the work? In other words, this should have been completed by now. What's the holdup?

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

Sorry but Linux has been downloadable for decades.

Also this -> http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

That was over a decade ago. No learning Linux. Just boot and get your files out. Be sure to use a more current distro.

-> I want to pry. What IT staff that admins Windows Server is this? I won't beat them up but it sounds like they are very new.

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

That's OK. A mirror is just a real time copy but won't save you from corruption and a lot of other failures. All this means is you can pull it or boot Linux to get to your files.

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

I'm sorry I didn't directly address the login issue. My thought is you would NEVER do that since it can be boobytrapped.

At least I warned you (nod to Tim the Enchanter.)

If you can't use NTPASSWD (see google) then pay up at www.lostpassword.com since it's cheap.

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

Remember we don't have to login. Besides, running this infected machine can lead to further damage.

It's like you are fire and insist on running. I read above advice about getting your files out. This is a standard routine. You get the drive over to some Linux box to copy out your files. If you know they can be decrypted, then you have your files and head to your decryption methods.

Remember you write it is decryptable so that means you know how. What you don't know is how to get the files out.

That would be the old standard routine. Remove drive from infected PC, boot Linux and get the files copied out to where you can work on them.

I think at this point we are going in circles. I get it that folk want a choice of the red or blue pill that will just fix it but this is mildly complicated work. Not impossible, just complicated. It might be scary to those that never booted Linux or moved drives around.

Glad to read you haven't taken to drink yet.

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

@J

We have to tackle this step by step. Remember that ransomware does not always encode files. It appears that recent ransomware is just wiping out files and hope you pay. They keep the money and have no decoder.

-> You have now stepped into the disaster plan with both feet. That is, you know you need to obtain your OS DVD, go get a Linux (too easy, I hope anyone that runs Windows Server knows how to go get this) and most of all, backups. If these files are irreplaceable then they are on backups. If not, they weren't worth backing up?

Some folk lash out over such events. I feel for them but for many that don't backup, don't have a disaster plan and run a loose ship that ransomware was installed by the user/owner/someone (so far I have yet to find an instance of a drive by ransonware.) Let's call it their Waterloo. They get soundly trounced and if they survive, they become a steadfast believer in backups and disaster plans.

I think about 2 or 3 out of 100 swear off Windows forever and 1 will toss the entire system in the bin and hide out on their smart phone.

BACK TO DECRYPTING. Since we have the new ransomware and a few you can decode the problem now is:

What Ransomware is it?

That's the big question since if you don't know the name of the daemon you can't be sure how to decrypt it.

cereal commented: " they become a steadfast believer in backups and disaster plans." lol +15
rproffitt 2,701 https://5calls.org Moderator

You raised a lot of issues here. It's unclear why there is no installation CD (it's more likely to be a DVD) since well, it's one of the things you need to fix issues from time to time. I know with all the natural disasters there's a reason to be in such a pickle but I'd take the owner of such a server to task about being lax in regards to the company disaster plan.

But here we are. My bet is you'll have to remove drives so you can on a machine running Linux which as write by cereal will not execute any code but allow full access to backup what you want if the backups were not done. Linux will also let me copy in a file, edit if need be. But this is your support staff skills and not something you may find on the web as a step by step. In short, get the drives out and backup, then attempt a fix from another OS. That OS will likely be Linux.

Microsoft still sells Server 2012 media if you can't find a copy on the web. Once in a while I find an IT staffer flailing about, unwilling to pay the man for the media. I can't imagine why they delay.

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

That page is by just one person and it appears you can contact him to ask if he has built it on your selection of OS, VS and more.
In this case, a fine reason to ask the author.

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

I went back to the pages and areas do look dated. Especially the references to Android 4.x. which is about 4 years ago.

I didn't want to upset you but the docs definitely have the feel that those that run this project may have moved on.

Here's my advice. Hunt down who runs this project and try to contact them directly about where to get support.

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

It looks to me that this project is abandoned. Why do I write this? Reading many pages at the site have outdated references like Android 4.x at http://taco.visualstudio.com/en-us/docs/get-started-first-mobile-app/#run-your-app-in-an-emulator and many other pages there.

To me this and more would have me never start such an endeavor on this platform.

SimonIoa commented: No it's not abandoned. And there is nothing about any outdated refference +0
rproffitt 2,701 https://5calls.org Moderator

Sadly this seems to never have a short answer. Read https://forum.ionicframework.com/t/cant-run-npm-install/103573/22 where they go round and round and a short explainer at the end.

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

@S.

The best tools are what you can wield and create results. Now I'm not an expert on Android Studio but I will share that I'm up to my neck using AS.

Let me share the story as much as I can due to client agreements. The client is one of my oldest and they tried outsourcing and they ended up with a collection of tools like Eclipse and all the other parts in order to make an Android developer system. So setting up is a PITR. After they called it quits with a few outsource places they can back to me with a problem/bug that needing fixing. For some reason I didn't get into the Eclipse setup they told me just wouldn't compile their project. Given the 30 day deadline I went back to AS and the project loaded and compiled. I was then able to address the issues.

So my thought is you have to choose the tools that work for you. In the case of Android work, AS is my go to solution since I need it to just work. I do not want to be mired in "production hell." (thanks Tesla.)

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

That's an odd question since when a CPU gets sick, you see all sorts of problems from The Dead PC to BSODs and corrupted drives.

But that aside, how about https://downloadcenter.intel.com/download/19792/Intel-Processor-Diagnostic-Tool
You can google one for AMD, others.

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

More to the point:

Log control at runtime. The system variables associated with log tables and files enable runtime control over logging:

The global log_output system variable indicates the current logging destination. It can be modified at runtime to change the destination. 

From https://dev.mysql.com/doc/refman/5.7/en/log-destinations.html

However my bet is you'll have to do the flush command for MySQL to start using the new log file.

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

This is a rabbit hole. How deep you want to go is up to you. For me I found log rotation to suffice and here's the link I used to refresh my memory on this subject.

But there are many rabbit holes here. That is, MySQL has more than one log. I think it's best to find and use a log rotation script and use that to rotate/maintain/control log growth.

Read https://dev.mysql.com/doc/refman/5.7/en/log-file-maintenance.html for examples.

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

While we could go on and on, consider this ping result.

C:\>ping 0.0.0.0
Pinging 0.0.0.0 with 32 bytes of data:
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Ping statistics for 0.0.0.0:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

So think about this. 127.0.0.1 actually exists and if there is a server on your machine then it can get the message.
Now look at 0.0.0.0. It just fails. This is a good thing if you want the packets bound for candyland.com to just die.
And yes, how this works depends on the OS and it's IP stack so you can open a discussion on that and end up with a dissertation.

Reverend Jim commented: Wish I'd thought of trying that ^_^ +14
rproffitt 2,701 https://5calls.org Moderator

I would be guessing you are asking about http://www.responsivefilemanager.com/support.php and the problems it has.
The fact the site has many year old support questions may mean it's either perfect or abandoned.

However, I find no Windows PCs to work the same today. Folk install different browsers, change settings, some have overreaching antivirus suites, firewalls, different DNS or CDNs and this leave you the challenge of debugging what happened this time.

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

This is only the lesson about saving often and to enable backup copies.

https://www.reddit.com/r/Jokes/comments/362mme/jesus_and_the_devil_are_having_a_contest_on/ again if you missed it.

However there are spammers that will take the trouble to not help you with Corel file recover.com replies. They are just the devil's workers in disguise.

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

Another method from my days of schmatic drawing. Trying in ASCII.

      4
<-----/----->

To show an electrical bus you would draw one line that had the slash and the number notating how many lines were in the bus.
See "Bus" at http://www.rapidtables.com/electric/electrical_symbols.htm

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

How about cheating? It's clear you are going to have to check if the new line has been drawn before. And here's what may be a cheat.

Change the line draw to a rectangle with fill. If the lines are just vertical and horizontal the rectangle with the fill or texture pattern would be pretty easy. Nod to http://zetcode.com/gfx/java2d/shapesandfills/

OK so as your rectangle width increases then the texture patern might have more lines.

As to supporting all possible angles, this would be a matter of rotating the fill pattern and using that pattern.

-> Not saying this is the best solution but wanted to share my thought of a dirty fix.

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

Just a thought about line 16 which is if($currentdate > $returndate){
That looks like why you have to wait a day to see a fines result. What if you had used the => or >= so that line would work if today was the returndate?

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

Again, no. Not that simple. Since only you know what the monitors are (no model numbers in your posts) as well as what video card you are considering, only you can answer "will it work?"

If you want a clear answer you'll need to supply details such as monitors you have and what card you will likely buy.

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

No you may not use more than ONE monitor at a time.

You may not also use a DVI-D (there are no less than 5 types of DVI, you must specify) since the board you wrote about has no such connection.

Now that you are possibly going to add a video card, there are a few cheaps ones that are single monitor use only. Until you know what you are getting plus full model numbers on the monitors the answer will be no or unclear.

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

This one is simply no. https://www.gigabyte.com/Motherboard/GA-H81M-S-rev-10#sp shows one and only one video port.
http://download.gigabyte.us/FileList/Manual/mb_manual_ga-h81m-s_e.pdf confirms one video port. Looks to be VGA.

To get to 2 monitors you'll have to add a video card and the onboard might disable so be sure your card notes dual monitor support.

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

@Stefen, while I see how, you must dig in a little here as your files, your responsibility. Blindly using scripts is something I don't advise.

Did you notice this line?
` if Ubound(flds) >= 2 Then

That section could be changed to just > 2 and then you could copy that section to have a handler for = 2 and alter the code to handle just the a-b.jpeg as you wish.

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

@Stefan. If you don't want the echo's, read https://ss64.com/vb/echo.html to either set them to not be interactive or comment, remove as you see fit.

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

Doesn't sound like too much work. Sort by name, cut and paste to the folder you want. There are file mover apps but even at the many files, shouldn't take too long.

https://www.google.com/search?q=file+mover+app

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

Add more detail. Such as is this something you want Windows File Explorer to do, or are you writing an app?
If WFE, you have to share which Windows.
If an app, share your code after you read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

It appears folk have written web pages about this. Here's how I found them: https://www.google.com/search?q=combine+Windows+7+32+and+64+bit+installer

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

https://datatables.net/forums/ seems to be specific to this product.

https://datatables.net/forums/discussion/35702 seems to note centering the table on the page.
Notice how they want their examples.

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

@R, that usually points to assembly errors. Most common find is an extra mounting post in the case randomly touching the back side of the motherboard. Drives the owner nuts as it works then not and takes it in and it works.

I've lost count how many times we see that issue.

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

I can share what we do in the shop with such a PC. Ready? We downsize it. Any component that isn't required to get a BIOS screen is removed. If that doesn't bring it back we remove the case because a lot of homebuilt PCs have extra mounting posts and create issues.

So if you downsize it to just motherboard, CPU+HSF, one stick of RAM and PSU without a case and it still doesn't stay up, it's one of those 4 parts.

Ritesh_4 commented: worked with bare minimums +7
rproffitt 2,701 https://5calls.org Moderator

@cainam29. Since the top post issues appear to be solved, you should start a new thread for your new issue or problem. I don't see a mention of send email in your top post.

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

While you didn't put this into a programming forum I did find this question has been kicked around for over a decade.

https://www.google.com/search?q=How+to+read+from+a+text+file+into+an+html+page+using+Java+Servlet%3F

So given folk have been working it for so long, it's a sure bet something good has been created you can use.

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

Try sharing your code. Also, you also may be interested in prior answers from https://www.google.com/search?q=PHP+Meta+Tags+in+with+different+tags+in+every+page

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

Just a thought. Did you try the right arrow key? Also try tab, control+right arrow.

ddanbe commented: You're too kind :) +15
rproffitt 2,701 https://5calls.org Moderator

When I see a login like that I cringe. The basic problem is that the password is stored in the clear rather than a hash salted result. Here's priors about this.

https://www.google.com/search?q=Dont'+store+passwords+in+databases

In those discussions you'll find many examples. Add the keyword PHP to get more specific.

In other words, you dug a hole and I shouldn't hand you a shovel.

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

About supporting diffferent paper sizes, etc.

For that you want to think about TEMPLATES that your code reads in to format the output.

For example your receipt code would be vastly upgraded to read some text file that it uses to tailor the receipt to the printer and client.

For example, I used a rather spiffy HTML file as my template and used variables in my template file to indicate what was to be replaced in that string. EXAMPLE:
&DATE& &TIME&

Would be in the template file. So your receipt printer routine reads that line into a string then you substitute the date and time in the string with the current date/time then print that string.

This template method means you can tailor your system to each client and printer.

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

OK, a tutorial about connecting the code to the event.
http://www.visual-basic-tutorials.com/form/ProgressBarT.htm

Notice that Lightning Icon on the control's property's box? That's where you can tie your other controls to a method/handler.

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

Most common issue? The coder forgot to connect the event to the code that handles the event. It's not automatic.

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

As to speed, are key fields indexed? https://dev.mysql.com/doc/refman/5.7/en/mysql-indexes.html for example notes how the index matters for WHERE statements.

Is Manufacturers indexed?

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

I don't see the problem but did you try the visual studio query builders?
One is built into VS. Read https://technet.microsoft.com/en-us/library/ms141087(v=sql.105).aspx

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

The everyday cr2032 is Lithum and other materials.
http://data.energizer.com/pdfs/cr2032.pdf points out the nominal voltage and I've seen these come in hot at 3.3V no load so there's about a 10% varience or more.

For me I call them gone with they are under 3.0V no load.