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

The HOSTS file is your poor man's DNS. If you had deployed a DNS in your network, then you could have used that. I'm no genius but I have my moments.

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

My second method. Not as scalable is to pass a boatload of information via a file. I've used the IP methods and files for years for communications among threads or apps. The problem with IPC is as you noted but for me I needed my systems to be agnostic about the OS. So once the IP or file method is known the apps can be on almost any OS or spread across a collection of computers without being locked to any specific OS.

Be aware I am sharing here and not engaging or attempting to tackle your IPC woes.

PS. Added with edit. For me I've never found IP communication to be slow. Since it can be local, it happens without any traversal to the external network.

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

I'm going to write "This is why I stopped using pipes and started using sockets." Also, with sockets I can scale across computers in the network.

Tcll commented: it's a good suggestion, but not what I'm looking to achieve ;) +4
rproffitt 2,701 https://5calls.org Moderator

The use of the HOSTS file is when you don't have a DNS under your control. If the other computers need access, you edit their HOSTS file as well. This is a workaround to where folk host their own interweb but don't have a DNS. Works well enough but a new networker will complain about having to edit all those HOSTS files. That's why you deploy a DNS for your network.

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

I'm going to give you what I use outside of Visual Studio. It's call WinMerge.

What is WinMerge?
WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

So you have your sets of files and this would be how I compare since comparing in VS's world doesn't seem obvious.

Reverend Jim commented: Thumbs up for WinMerge from me. +15
rproffitt 2,701 https://5calls.org Moderator

There was backlash against URL tampering and the change was rolled back for now. You can imagine the support issues when folk report issues and they supply you with the tampered URL.

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

That info doesn't seem to give us a cause. Try adding more detail.

  1. Make, model of the PSU.
  2. Age of the components.
  3. If you keep up the maintenance. Canned air, replace failed fans, etc.
  4. A Web Speccy report. Read how at https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web
rproffitt 2,701 https://5calls.org Moderator

I think the articles at https://www.google.com/search?q=CTR answer the first part of the question.

You claim to be in some Dubai company but I tracked you back to https://www.glassdoor.com/Overview/Working-at-FuGenX-Technologies-EI_IE649534.11,30.htm

Please do the first research so folk don't downvote you or throw shade at your company.

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

Let's try easy.

Add your IP to your HOSTS file. That way it will show on screen as some name but resolve to the IP. If folk show screen shots or look over your shoulder then the IP doesn't show.

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

If they are using a VPN you usually get the TZ of where they appear according to the VPN. There's nothing wrong about that which is why my view is to let them set the TZ in their profile.

But if you insist, then use this call: Intl.DateTimeFormat().resolvedOptions().timeZone

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

I read your deleted post and you may want to clarify if this is a PHP script or an iOS/Android app. You stated it ran on iOS/Android but I haven't deplored PHP wholely on mobile. It's usually some server instance and then a front end on the client. The way you wrote your deleted post could lead folk to take you at your word it run solely on the mobile device.

That aside, why not the usual web site of your own?

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

I was unclear. As a rule I don't duplicate the web but share what I'm using and am looking into. That is, I want what I write to be unique and not what you can google. If you want to lookd into ddrescue and bad sector workarounds, check that google I gave above.

But another nod to Deepspar's nearly automatic fixer for drives that delay to register or read badly. Watch that video about it.

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

Keeping in mind this is about POST and not SQL, http://php.net/manual/en/filter.filters.sanitize.php does seem like a good thing.
Other sanitizers at http://php.net/manual/en/filter.filters.sanitize.php might be used depending on the need.

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

@tony, I think it is an answer. Over the past few years I've been seeing a lot of iffy drives and been looking for reasons and methods to get the data out.

I forgot to mention another common tool we use. RECUVA. Free and plenty of tutorials on the web.

Adding with edit: I didn't mention anything from https://www.google.com/search?q=ddrescue+skip+bad+sectors

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

You have asked some very interesting questions plus using the name of a character in a series which is why I wrote that.

https://en.wikipedia.org/wiki/WAV does note metadata in .wav files but also notes that apps have been confused at times when you do that.

I have to write that I would not count on metadata to work in .wav files. You can try but I think this is an area you have to test and see how it turns out.

Tech_13 commented: wow +0
rproffitt 2,701 https://5calls.org Moderator

Why yes it can. And small world I just found a tool via Linustechtips that tackles that issue.

Watch and see what it is at https://www.youtube.com/watch?v=eyr14_B230o&feature=youtu.be&t=549

You may not want to buy that tool but there are data recovery shops that have it.

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

Thanks for this article. Here's another that tells a tale of not keeping your products up to date and secure.
https://www.wired.com/story/notpetya-cyberattack-ukraine-russia-code-crashed-the-world/?mbid=BottomRelatedStories_Sections_2

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

Explain what you mean by "when I run it from my board"? Most surfboards don't run apps or have a browser.

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

Let's focus on line 1. Didn't the class cover how to output text or strings? If it didn't why not google "How to print a string in Java?"

Part of what you learn when programming is how to research. If you disagree, please share why. I'm running into some that only want finished code or they call the discussions "not helping."

If you want finished code, I supplied that as well in 161 languages.

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

To look into this I first asked: https://www.google.com/search?q=How+to+report+bugs+to+the+Selenium+team%3F

This lead me to https://github.com/SeleniumHQ/selenium/issues so it appears there are plenty of bugs there.

https://github.com/SeleniumHQ/selenium goes over requirements that I'd check again before reporting a bug.

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

Just for all those wondering what's going on, I don't know but I did jump on another PC to check and it was logged in. So I logged out and could not log back in.

The first hint there was a problem was when I went to login on my Android phone. At first I thought it was just the phone but nope.

For now, if you are logged it, you can post and more. But DON'T LOG OUT.

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

@alan, there's something up. I know I can't login on mobile now.

Also, when I click Preview a new error shows up "The Member ID field is required."

My bet is something's broken and I dare not logout from Daniweb because I may not be able to get back in.

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

Why? Just put it on your page with the usual Submit button.
Example at https://www.w3schools.com/tags/tag_input.asp

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

I find it odd you used a cloud installer to install this. https://www.google.com/search?q=install+Python+web+server+on+localhost finds the answer you just need to install Python and if this is on Windows, read the changes noted at https://stackoverflow.com/questions/17351016/set-up-python-simplehttpserver-on-windows

PS. For Windows I'm using Ninite.com then checking off Python and using that installer.

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

@JC. I didn't intend to shame anyone. Let's hope they spend time on their composition of the question.

JamesCherrill commented: Agreed James Cherrill +15
rproffitt 2,701 https://5calls.org Moderator

Your reply may have revealed your true question. Such as how to encrypt. Using the TPM would be a strange idea since what you encrypt there should not be usable on your other machines. How to decrypt stuff with a TPM.

-> I'm going to advise you forget TPM and investigate other encryptions. If you post an unclear question, that is, the question that lead to this question, then you have folk guessing what lead you to this idea. The TPM ON ANDROID (most mobile platforms) should show you that's a dead zone. If you insist, sure, but you will be very much on an one person raft far out at sea without support.

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

This may be a rarely used API call. Read https://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem.useitemstyleforsubitems(v=vs.110).aspx

Example code is there in C and VB.net.

Also pick over the few priors with this -> https://www.google.com/search?q=UseItemStyleForSubItems

Reverend Jim commented: Well kewl. I can use that, too. +15
rproffitt 2,701 https://5calls.org Moderator

@OP. Exactly as pty noted. There is no known PDF editor that let's us edit as if we had the source. Now if you are really devious you can make a replacement page and replace the better page but if this is "your" document it may be time to have your staff re-create the source.

One of the many reasons for PDFs is to protect the source. But I have some good news. Many researchers will supply you source if you ask. It's always been a small mystery to me that the few times I've run into folk face to face on this they refuse to ask the author and owner or the document for an editable version.

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

You do have a source of sorts. There are PDF to Word and other convertors so you do that first, edit the resulting text and then print it to PDF with one of the many PDF kits out there.

Editing a PDF is pretty much as pty suggests. It's just a hack job and some will want the resulting PDF to be without the usual flaws you find with today's PDF editors. I'm sure you googled this so I'll pause here.

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

I think this is not a very new question as I check priors at https://www.google.com/search?q=Binary+Search+with+multiple+values (your topic!) The common way is to just sort it and the other matches are contiguous so you keep going till no match.

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

I'd consider learning the language which you want to market your products in. That question is not well formed and such can result in the opposite effect of what you were trying to achieve.

Also, don't be a shill.

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

OK, here's a reading of that report.

  1. The CPU is 61C which can cause throttling. The CPU will drop in speed to protect itself. Later we see 63C on a core.
  2. The temp inside the computer is pretty warm at about 37C
  3. The OS is an Enterprise version so you have OS support that we would kill for. That said, I defer all OS issues back to your company.
  4. The GTX 770 is getting to over 40C without much load.
    The age of this card isn't helping either.
  5. This PC has MIXED RAM makers. This can result in nearly impossible to diagnose hangs and reboots. Remove one or the other maker and keep testing.
  6. BIOS is out of date. Can cause issues with W10. I see 1104 at the maker's site.
  7. CPU voltage is a tad low. Read https://communities.intel.com/message/156156 and others where it may need to be bumped to 1.2V
  8. HDD SMART Values 01, C5, C6 show a drive with some errors. If they remain unchanged, fine, but if they keep going up that's a bad sign. Could be caused by too much heat.
  9. Too many SVCHOST entries and IP connections. You have the Enterprise OS version so ask your support to curb this.

Overall it looks like the usual hot PC. Too hot and it reboots.

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

That's a report from 2011. In fact it's the one shown as an example at
https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web

Are you sure you want my advice on what to do with a 1GB RAM PC running on a Celeron?

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

@Z. No report?

Read an example where we used the Web Speccy reports and it looks like it is fixed at https://www.cnet.com/forums/discussions/graphics-crash-while-idle-leading-to-system-lock/

I am not writing that this discussion applies to your issues but without the Web Speccy we can't see under the hood.

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

I'll be back tomorrow. There are those that fear so much and you can't help them.
As to will they get into your PC? Only if you do something strange such as install remote control apps and such.

There is no guarantees about this but I will share it's the method we use on the CNET forums. If folk don't want to work with you, you send them to repair counters.

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

There are risks by posting in any forum. Folk use facebook in spite fo the warnings. So it's up to you.

If you feel it's too much risk, get repair estimates at the usual PC repair shop. No offense meant but it's like showing up at a car repair shop and you have it under a tarp and won't tell what it is or let the mechanics see the beast.

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

Your choice. If you leave it anywhere else, just tell me where to find it.

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

@Z. I'd love to help more but without the Web Speccy report ( read https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web ) I am left with only what we have here and any guess would be just that.

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

@Z, sometimes. But just because I can see, say a high temp it could be debated if I found the source. That is, the report could show a high CPU temp but may not reveal if it's the fan, heatsink compound cracked or something else.

The Web Speccy is one of the best tools I've found to dive into PC hardware issues today. Takes some practise to use but worth reading.

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

Thanks for the report back. I generally like to gather more info before I hand out possible fixes. Just that engineer side of me.

The Speccy report will have the temperatures as well as other health items that may let us head off future issues.

Example: I continue to run into a lot of HDDs with excessive values in S.M.A.R.T. values 01 and 07. This is a sign the drive has begun to fail and causes all sorts of issues from slow PCs to BSODs.

Best of luck.

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

To me this sounds like your PC rebooted. This is not a little problem. I find when folk label things "a little problem" they want it to be a setting or a driver. Given the details it would be a miracle that someone can give an answer to fix this PC.

Try adding details. How about a Speccy report along with the PC's make, model, age, story about how you keep the heatsinks and fans clean and working along with the make, model of the PSU (power supply unit.)

Also, do you do your own PC repairs. It won't do any good to tell you a part to try changing if you don't do your own work.
Here's how to share the Web Speccy Report -> https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web

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

Bad company? Ahrefs won't answer such questions (for you) so my view is quite negative.

However if this was you trying to talk up Ahrefs tools, you achieved the opposite effect since companies that don't answer pre-sale questions don't deserve the sale.

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

Usually a sign of a dead card. There are now numerous pages about this on the web so it's unlikely there is any new ways to get what you didn't backup back short of recovery houses. But do try this in other PCs and especially ones that run Linux.

Once in a while a client/person will push back against this advice and all I can say is they are not helping themselves (in respect to trying and no backups.)

-> Face it folk. We only lose what we don't backup.

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

Let me share a real world example. For a software product that I designed over 18 years ago the data files were in .TAR files. Because reasons the company that uses this app had trouble making .TAR files.

Python to the rescue. I crafted a small under 10 line Python script that runs on Windows, Linux, Apple OS and what else means that no more searching for a tar app on whatever machine they happen to have.

This was this company's first exposure to Python and I hear they are creating other solutions in Python now.

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

@J. Don't leave out tags and such. This could be web, HTML or something else. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question before you reply and then update to fill in the missing details and tags.

That said, show your work so far.

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

Sure. The neat thing is that today there are online resources just a search away.

Ever hear of google.com? I know folk are sometimes new so here's a search for you:
https://www.google.com/search?q=Free+HTML+Tutorials

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

There's Amazon and I think that may be the best for prices since it's going to be what folk are looking for and you can see what others are selling the title for. Otherwise you have Ebay and sadly I see such usually for a dollar each at garage sales.

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

Can you try again and avoid the spammy link to a product I didn't find our iOS developer remotely interested in?

Reverend Jim commented: I removed the link +15
happygeek commented: And I removed the entire line plugging the product +16
rproffitt 2,701 https://5calls.org Moderator

Remember that this must be your app and code. Asking for help decompiling other than your code and apps is like "Help me jack this car."

I can't guess what you need to do. But I do consider the question about decompiling answered. There are more discussions about it but the entire reason to protect is well, do we need to go over that?

Also, a discussion about how such protection works would be on its own AFTER we note prior discussions on that subject. That is, once in a while folk ask a common question and while I know a bit about the subject I see I have little to add about it. What the member may be asking is for a class or tutorial to take them from what they know to a higher skill level. And that is rarely done. You can ask but in this topic of decompiling, it may take years to get to the skill level to alter an app that the source code is lost.

Let's say the source is lost. We assume it was your app so a rewrite is likely to be faster than the first time.

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

I have to answer yes. I don't know your skill level or what you know about byte code systems but the protection is usually by obfuscation. That is, the decompiled result will look nothing like the source and may be too much for those that are not into this sort of work.

So again. Decompilers do work but the protections make the outputs hard to impossible to read. Especially if it's not your code.