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

@cam, which is exactly what is needed to make progress. I didn't read that till now but was guessing it.

WD and most OSes are not going to allow an app to write files in system protected folders. For that sort of work you use an installer.

What is this you are writing? Let's hope it's no virus or such.

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

And now for something completely different.

To avoid all this, have you tried crafting what you want to do in Python?

PS. How's this for a triple dose of Python? Wink wink, nudge nudge.

Reverend Jim commented: Say no more. +15
rproffitt 2,701 https://5calls.org Moderator

As to GNU signing options you can research that but here at the office where we craft and send out apps we would spending too much time finding out why the GCC or such is creating the problem. While we buy the Pro version of VS I have to wonder why this is an issue when folk want to make a Windows app when there are free versions of VS. Sometimes you run into someone that is campaigning for "only FOSS" which may conflict with the goal of app making that does this or that while avoiding other issues.

So here we are without details, no code, no minimal viable example so I'm left to chat about other areas. When you are ready, try sharing the deep dark (?) details.

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

I think we need to directly answer your top question. I bet some will be upset by it.

How to create a program that most likely won't have WD complain?

Craft it in Visual Studio (some complain but there are free versions) then get the code signed. I won't write about this here as we have:
https://www.google.com/search?q=code+signing+in+visual+studio

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

Sorry but that's not clear enough for me. Here I have apps that write in their distribution folder and no issues. WD might ask for permission to connect to the web or such but nothing is wrong there.

The world has changed and the wide open old Windows system is changing to avoid catastrophes by blocking possible rogue actions by apps.

Why not start by sharing a minimum viable example that shows the problem? If you don't shared details, everyone is guessing.

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

Still too little detail. Text files have not raised Windows Defender issues here. But if I were to write in system folders then I bet WD would complain.

As to use a win32 function I'm going with no because if it was that easy to disable WD, then WD and other antimalware apps would be defenseless against rogue apps and more.

Think about sharing details. What folder you are writing in and maybe some code that triggers the issue.

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

I'm going with "not enough detail about the problem." It's like I put a blindfold on you and asked you to describe the animal.

Remember the story of three blind men and an elephant?

Windows is heading towards app signing. This may be easier with Visual Studio and no, I will not enter into a dialog about FOSS or such.

rproffitt 2,701 https://5calls.org Moderator
  1. Exactly the type of hardware areas that you can run into trouble. My advice is to ask your developer to test out these areas now so you know if you can proceed with your development cycle. I will share that the company that tried something like what you lead with had to pull out of the deal and we had to step in with apps made in each dev system.

Of course this upsets folk that are looking for "I write the code one time for all platforms" and for me no big deal since my view is the DESIGN is where all the work was really done. That and the user interface.

  1. Sorry no. On top of that my works have been in products that either were military and later industrial control systems.
rproffitt 2,701 https://5calls.org Moderator

Just a comment about "change DNS IP records and". DNS changes have been known to take days or weeks so that change is not instant. Be sure you plan ahead for this. In other words, not an instant switch.

elamigosam commented: Understood. +3
rproffitt 2,701 https://5calls.org Moderator

@MickeyD. I'm going to write you should be sure it's on SSD first.

I just checked out http://www.marmaxcomputers.com/img/141117124430hp8200.pdf and it shipped with sluggish HDDs so to bring this up to speed and be on par with most PCs you see today, eject the HDD and move to SSD.

Your HP appears to be from 2012 and while it's OK I will predict that more RAM won't give it the kick you expected. SSD will. I have an even older (edited) HP D5000 desktop and even from 2009 I decided to see what this old iron had left in it by taking the RAM to the max (8GB) and changing to SSD and from a Nvidia 240 GPU to a 1060. You can read the results at https://www.cnet.com/forums/discussions/im-upgrading-some-old-iron-what-would-you-like/

To keep it useful to those that want to see the change I kept the changes to one at a time sharing the benchmarks and power consumption at each change.

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

@MickeyD. My story is about how you use it makes a difference and hopefully you picked up that SSD can really help a slug of a PC.

If you have 16GB RAM, but HDDs in the system I would change out the HDD to SSD before more RAM regardless of use.

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

I have a story. Mom needed a laptop to pay the bills and such. Nothing fancy. We had this 2006 Dell Inspron e1505 that survived our son's college so I pulled it out to see what we had. In the end we set it up with W10 on 1GB RAM, 120GB SSD and the e1505 has some 32 bit dual core Centrino.

It sounds horrible but this little beast would, from cold get to a web page on screen in just under 35 seconds. It was fine for web work so my mom used that for a year. Why only a year? Someone stole it. She says here new laptop with better CPU, RAM is a little slower!

MickeyD commented: OK, but I don't know how that applies to my question. +0
rproffitt 2,701 https://5calls.org Moderator

How about an article with over 114 implementations in ... 114 computer languages?

Read https://rosettacode.org/wiki/Binary_search

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

I have a question. Why are your rate1 to rate4 the same numbers as I see in a 2010 discussion at
https://www.dreamincode.net/forums/topic/196758-java-shipping-program/ ?

It would be incredibly coincidental if these were the same. If you are seeking homework help, just say so and share where we can find the assignment and remember that no one will write your homework for you. But you can get help on errors and more.

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

As to 1,000 years to load you can build just a text page for searching (Control+F) and if you need a link to an image, that's nothing special (or is it?)

As to legal issues, you'll need a lawyer or just get ready for a take down notice. I do enounter folk that feel that if it's on the Internet they can copy and use as they please. Hard to reason or talk to such today.

brokehero commented: I really need to have pictures to help anyone at all. Would they not be considered "fair use" if used to educate people/save lives? +0
rproffitt 2,701 https://5calls.org Moderator

Let's try simple. Like (edited) we did over a decade ago. Put it all on a page and tell the user to press Control+F to find "Black Bart's Bicycle" or such.

All the users I encounter can search for text on a page and since you want to get this information out there, why not simple?

brokehero commented: I want to include links to the images if they have not been removed but I took screenshots and have a works cited for them. also dont want to be sued +0
rproffitt 2,701 https://5calls.org Moderator

There appears to be missing code or steps in your post. Read https://docs.microsoft.com/en-us/sql/ssms/visual-db-tools/create-union-queries-visual-database-tools?view=sql-server-2017 for an example of the UNION but you may need to redo your query (I don't see that here) to use the UNION ALL as the error calls out.

bckelley commented: since this is the only place I can comment! [customerName] is a string from the database i.e. George, Fred, Alice whatever, that was a placeholder +0
rproffitt 2,701 https://5calls.org Moderator

"That's not good."

Before you do much of anything try to get your W7 CDKEY out with MAGIC JELLYBEAN KEYFINDER. It's free and you need this in case of a meltdown of the W7 OS. You can find W7 ISOs so I won't write about that.

Lattitudes are usually pretty tame laptops so this is not a good sign. Try another bootable OS (Linux) but other distros. See if the BIOS is current too. Using old BART's or old Linux to me is not what I'd do. I'd try current releases.

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

Since "occurs twice" appears to be the cause and what you need to investigate, where is the code that sets up or handles the drag, drop and mouse events?

PS. The code supplied doesn't appear to be causing this.

Milla S. commented: Thank you! +0
rproffitt 2,701 https://5calls.org Moderator

The answer to most if not all the questions is yes. I wish folk would number their questions and always end a question with a question mark so everyone can find the question and answer them by the numbers.

But I'm going to stop here and note that if the user can create the logins then there seems to be no reason to have any user security since this person created all 5 accounts. It's one really odd design and even odder to limit it to five. Hardcoding that limit may be adding complexity where leaving it to nearly unlimited might be better. That is, you do the usual please enter you account name then password and check if they are a current user and if so connect to their database.

And yes, SQL would be a great step up in learning the better methods and can push the security back into the database since leaving it in your app means the database is usually insecure.

As to being new, that wears off in time. Mostly by continuing classes and tutorials.

hyperion0 commented: Alright, thank you for informing me! +0
rproffitt 2,701 https://5calls.org Moderator

Out on a walk I recall something we did long ago to hide values that were at the time IN PLAIN SIGHT if you looked at the compiled code.

Let's say the secret number was coded like:

secret_number = 12345; // Hey that's my luggage combination too.

Since we had to distribute the compiled exe we would then do another operation on the variable so it wasn't so easy to pick off.

answer = value * (secret_number xor magic); // Not terrible secure but better.

Since Python is usually some plain text file, if the server was compromised then all secrets are laid bare but at least we have no real exposure of internal variables and constants from say Python scripts that run on the server and the client that is getting the output in their web browser.

Then again we could broach SQL injection which by now you know how to mitigate.

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

Can you tell me what you meant by "drop their out projects"? If it's a spelling error, fine but do correct this so folk know what you are asking.

Also why Turbo C++? It's from 1990, not that old is bad but for students, my advice is to move to something current like GNU C++, Visual Studio (Community Version is free) so they are not dealing with a near 30 year old system that will likely instill bad practices.

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

You followed with more questions. I'll put them into a list.

  1. Wrong place?
    This is fine.
  2. Cost of dev tools.
    The Community version is free. Android Studio is free. What's not to like here?
  3. Freeware one can download without spyware or advertising.
    I have installed both the ones I noted and consider them free from spyware and advertising. I can't guess if you would get them from a torrent or other than the source so maybe you are trying to avoid the source (Microsoft and Google) and ended up with a bad experience. I can't guess why folk do that.

As to the last question about Daniweb and navigating, I have yet to find any reading material about that.

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

The Windows.old folder is normal. There are a lot of articles about it on the web so I will avoid duplicating the web here. After some time, Microsoft will clean it off for you. You can ignore it if you wish or you can do more research.

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

I defer on a full dissertation and leave it at that.

  1. Paypal. Folk know it and use it.
  2. Amazon. With a high percentage of users in N.A. Folk will have a little more trust if you use this one.
rproffitt 2,701 https://5calls.org Moderator

There are at least six types of OLED displays noted at https://electronics.howstuffworks.com/oled3.htm but the pixels are being powered by row and column addressing which is why it does not take 3,020 external connections to the display panel.

Similar addresses and schemes were used in LCD displays and many get confused over a LED LCD display versus the OLED. One thing is not like the other as the saying goes.

Nether_1 commented: So each row is powered, unpowered, and then the next powered so quickly we think that it is being done smoothly? +1
rproffitt 2,701 https://5calls.org Moderator

If a site did that, it would be breaking some fundamental rules about password management. User name, sure but password, never.

Reading for you (pick a few articles):
https://www.google.com/search?q=never+store+passwords+in+a+database

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

Your post has a few issues.

  1. Use the forum code formatter.
  2. STATE what your questions are.
  3. If the code is failing, supply what line it is and the error output.
  4. Share how you debug your code. I find that I use my IDE to break on that line and look at the variables in the call. Can you do this?
    If not why not add a line of code to print out the values for you to check.
Reverend Jim commented: While you were commenting on the code formatting I was busy correcting it ;-P +15
rproffitt 2,701 https://5calls.org Moderator

Maybe it does. The Enter character code might be 10 (ASCII) is 10 or 0x0a hexadecimal. Or it could be EOF which might be -1.

Now see what happens when your putchar that to the screen. It may not be what you expect at all.

Maybe you wanted the cursor to move to the beginning of the line and drop down a line. THAT would depend on the terminal and OS. Remember this all began back in 1969 so many new programmers stumble around this because they don't know the history. Or what the enter key is returning.

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

Then it's a bum system that they have hung you out to dry. Ask for a refund and roll back to what worked until you find a new system.

The error is discussed on the web but it means you have to dive into the PHP code to find the error and fix it. But that's not why you are using MAMP. I take it you are not ready to dig into their product to fix it. I know I can't since I don't run MAMP and even if I did, this error would have me camping out at MAMP's support.

hapylfe commented: vb +0
rproffitt 2,701 https://5calls.org Moderator

@Michelle_15. You've posted a plea for help on page 9 of a 13 year old discussion. Do yourself a favor and make a new post with all the details since here, it's just like what a Vogon did with the intergalactic bypass plans.

ARTHUR DENT: Yes! I went round to find them yesterday afternoon. You’d hadn’t exactly gone out of your way to pull much attention to them have you? I mean, like actually telling anybody or anything.
leopard.jpg

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

I just looked into the cheapest "turn things on and off" solution I could find. How about under 7USD? Here's my copy of my prior reply.

  1. You are a programmer. Just an entry level one will do here.
  2. You are an electronics tech or better.
  3. You know that if you could have a "WiFi activated push button" you could solve this.

That said, the unit at https://www.electrodragon.com/product/wifi-iot-relay-board-based-esp8266/ is under 10 bucks and looks like how I'd solve this one.

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

https://twitter.com/DadroitGroup doesn't work either. Don't make threats, give us treats.

Update Aug 28 2019: The twitter account appears to be live again.

Walterion commented: What was the problem? Mac or Windows? +0
rproffitt 2,701 https://5calls.org Moderator

Sorry but this is where I'd use ImageMagick or another library. You left out the language tag and I don't know "code" as a language. I think you are using C# so here's the two googles I'd use to find a way to use ImageMagick.

  1. http://fileformats.archiveteam.org/wiki/ImageMagick
  2. https://www.google.com/search?q=using+imagemagick+in+C%23&gl=US
JamesCherrill commented: May not go down too well if this is (as appears) a homework assignment! +15
rproffitt 2,701 https://5calls.org Moderator

A few steps. First check your DANIWEB settings about emails. Once that is done you automatically get email when you create a new discussion or reply to an existing discussion.

To get a notification without posting a reply, click the Watch Topic icon.

watchtopic.PNG

PS. Adding note. This only gives you notifications of new replies to a topic that is open. To monitor for new discussions, you have to craft such with ideas from Dani.

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

To me it should appear to hang on line 57. Why? "The accept method waits until a client starts up and requests a connection on the host" is right out of the documentation. This app will sit there, waiting.

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

"Sources include solution files for Visual Studio 2002, 2003 and 2010." from its home page. This looks abandoned to me so if their examples are now failing you may want to try to contact the authors to ask if there is a mail list or forum just for Elmah but my short research finds it looks dated and abandoned. You may have to consider something else.

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

Delete appears to be with the virsh command. i.e. virsh snapshot-delete .

More documention is at https://libvirt.org/sources/virshcmdref/Virsh_Command_Reference-0.8.7-1.pdf

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

Just like your web site, your question has me ask what actions would you like them to take?

Some sites like Facebook want you to join.
Amazon has stuff for you to buy.
WebMd has information about your condition.
Wikipedia has information about well, everything.

Each one takes a different approach to offer the visitor choices on their next action but without you telling more my answer is to look at sites that offer what you offer for ideas. Who do you envy?

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

After decades of software development I start where I can. Agile seems to toss out the old ways of writing your software design specifications and more. You iterate and move to your goal without the docs. I have yet to see this when money is involved. They want docs, presentations before code.

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

This is great. As to practical use this saved hundreds of lives in 1864 when a pump handle was removed.
Today it is used to visualize answers to questions such as "nearest location for most customers" and more.

As it's one in your arsenal of graphical data presentation it's nice to see one with quite the history attached to it.
https://en.wikipedia.org/wiki/1854_Broad_Street_cholera_outbreak notes the "dot map" which is now known as a Voronoi diagram.

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

I'm going to write you really need to have the products folk want over this. Along with great service like you currently get from that company named after a river.

All your post neglect product and service over SEO. Why do you neglect the very thing that matters?

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

What is geche()?

Reverend Jim commented: A typo? +15
rproffitt 2,701 https://5calls.org Moderator

Few will guess why you can't do this. Supply a minimal viable example.

shanahunts commented: for ex. select * from tblmasterlist where re_order_level = '-1', interval (30) " +0
rproffitt 2,701 https://5calls.org Moderator

While you would need an attorney to weigh in I think https://github.com/PhilJay/MPAndroidChart/blob/master/LICENSE covers the licensed use very well as it looks to be the bog standard Apache 2.0 license.

Lines 123 to 128 are interesting as it may impact what you write in your own license agreement. Remember that I did not read all 201 lines but you should.

PS. As to your top question I could spend a day going over that question but given no one can code it all, you should use code and content so you can build your apps. Imagine trying to start over from say a single board computer, assembly language to OS to apps written all by you. While I applaud such efforts, at some point we have to move beyond "I wrote every line of code."

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

@alan.davies, busted. Photo evidence at https://imgur.com/gallery/x8nJN

alan.davies commented: Heh heh. +0
rproffitt 2,701 https://5calls.org Moderator

If one were to hold an open ended W10 discussion, it would never end. While you should ask questions, place each in its own discussion so they can be addressed. If you add a question in the middle or end, folk won't find it and you may never get an answer.

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

@cambalinho. Sorry but I don't see what Windows Defender has to do with your issues to this point. If you are trying to squeeze in a NEW QUESTION then you should start a NEW DISCUSSION.

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

@cambalinho.

Let's say you install a working driver but W10 replaces it. For this PC you need to disable W10's Automatic Driver Update system.

I do not write how as it's best you pick the article you like for that from https://www.google.com/search?q=disable+W10%27s+Automatic+Driver+Update+system&gl=US

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

I hope in the future you can make your discussion title match the post content.

Anyhow, what I'm encountering are folk that expected Microsoft to go get drivers for them. And get the settings right. Sorry, no. Microsoft has yet to perfect that aspect of Windows. "Driver Hell" is real. Microsoft has slightly improved since 1995 but barely.

For your laptop, try the laptop maker's web site for the drivers.