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

I think I'd read priors on CSV comparisons in Python. I like the solution at https://stackoverflow.com/questions/38996033/python-compare-two-csv-files-and-print-out-differences since it covers how to handle one of many situations and would be easy to extend to what you want to do.

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

This looks correct on the surface but from what I read is not reliable. That is, may not have the desired effect in all situations. I'd leave it alone and complete your app. The background color of a button doesn't add much value IMO. Also if you want, just make the button a graphic and take full control.

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

@kavi_3. Here at DaniWeb there is a way to create articles. I checked your profile and didn't find where you put up any of your articles yet.

Time to get cracking.

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

@K. Just a thought. Would all the social media account purging have an effect?

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

My brother uses his Apple TV for such. Works great.

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

I'm just getting into Python and didn't recall any such feature so I looked at https://www.google.com/search?q=python+drop+down+menu and sure enough you need to pick out your Tk or similar library then you can do this.

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

@all. I tried to use some online Java regex tools and it appears something is indeed different about Java. (duh?)

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

PS. I was unclear. Let's keep it short. You can't have two servers listening on the same port. Which will answer? Think about it.
Same for a client. It can't share it's port either. Who gets the answer?

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

It's your design. That is, you get to work out what ports to use and to connect to for your apps.

For your server, it would listen on some port, the client would connect to that port and the server would respond to the client requests. The client (a nice one) would disconnect when done.

For 2 apps with some client+server in each, that would be 2 server ports. Right? And how would your app know if it was first or second? (neat problem to solve in itself!)

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

Remember I asked you to think about the port numbers? I only see 1111 in all the code so if this is on the same PC, same app but two instances, why would that work?

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

Same app, OK, but I see no reason for this to work in some simultaneous (your title) action given the first post.

You need to debug your code. Add prints, etc. Also watch out for what ports you use since you can't use the same port for more than one connection. That's something basic I see new programmers run into a lot.

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

PS. In your reply I see what may be a missing nul are line 66.
This and more is noted at https://stackoverflow.com/questions/49076572/socket-c-application-in-visual-studio-does-not-work-over-ethernet-connection-b?rq=1

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

Where do you think the issue is? That is, why not add debug statements to see what is happening?

Also, there are many systems where firewalls eat or block such work.

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

@D, how many posts/discussions do you have open on SQLIA? My answer is too many.

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

Your topic doesn't seem to match your post content. Also, you didn't ask a question.

For the topic I've yet to see a non-threading solution. That is to do simultaneous work I had to spin up another thread or instance to achieve simultaneous work.

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

https://www.w3schools.com/php/php_mysql_prepared_statements.asp notes SQLIA and why we use this method.

As to your question, why not echo/print the query before you pass it to the actual execute()?

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

@L. There you used "it" again. To ask me to jump through hoops (nod to RJ) to get the code, decode/read to figure out your logic is quite the high jump.

Where's your design document? That is, in psuedo code or English, how your code works. Sometimes folk proceed right to code which is fine for small things but this isn't a small thing.

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

PS. https://www.google.com/search?q="thrower"+genetic+algorithm+examples might find working examples but it's a stretch to expect others to read your code to figure out what it does and why it does not work.

Again, avoid "it doesn't work" posts and replies.

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

Let's go with I gave my thoughts on review (get your code up to standard.) Now you reveal it's not working.

That's far too vague and asking a lot for folk to slog through the entive app.

Pare it down to just the line you can't get to work. Where is that?

Before you post again read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question about COMPOSING A GOOD QUESTION. "It doesn't work" is going to go downhill too fast.

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

What needs checking? PEP8 coding standards?

Use http://pep8online.com/

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

Q. what will prepared statement detect as a userID?

A. I don't see your code so I can't tell yet.

Tell more, but the article was clear enough for me. That is, it doesn't allow user input to a variable to be used in the SQL statements.

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

Wasn't this hotly debated about 4 years ago and they are going back to systemd?

Also, did you want to repeat the prior debate?

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

My old method was to sort then scan for dupes. Took me a few minutes rather than write code.

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

I'm thinking the TRIM SQL commands. Oh, yeah, seems a well worn topic. Pick from https://www.google.com/search?q=sql+display+to+2+digits

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

The other classic is "Make it smaller." The less parts the better to reduce what parts that are suspect. This method is well known and you can find many priors by Googling "The Dead PC."

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

Good to see that. Still seeing thermalprint in the menus.

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

Welcome to the forum. Your post however needs work. You left out what language you were working in. Don't count on everyone thinking "it's SQL" or maybe you need the result to show on a web site.

Read the next link then update your post with your missing detail and questions.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

This sounds like other than a programming question. That is, you are seeking a solution rather than help in coding.

Maybe this should be turned into a RFQ (request for quote) or something you put out for hire?

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

@John_206. There's a low bar on spam (some call that promote/promotion) so if you want to promote you contact the site's advertising staff so you can do this. Otherwise it is likely to be treated like spam.

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

@Syafiqur, you seem to be dismissing a few things.

First, it's not a small passage of code. NLP is something you study and work on for years. If you have just started you might be under the impression it's something folk can do in just a day or a few hours.

Second you are restricting your implementation to just Python. Not a bad idea since I think this is great for portability.

Finally you say you have the logic so where are you stuck? That is, when converting from your logic that you wrote down, it's hopefully in a step by step process that you take a step and break that down into code.

Where is your written down logic?
Where is your work on any of the steps?

You will find that on bigger tasks you usually never find folk write the code for you but may help with a block but you have to become deeply engaged in the work. So far your posts are leaning towards "Gimme the code to do this."

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

Welcome back. You say you need a certificate? There are many easy to get ones out there.
Examples at https://www.google.com/search?q=financial+advising+certificate+john+oliver

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

Not to leave you without more reference. https://www.quora.com/Is-there-is-an-app-to-convert-direct-speech-into-indirect-speech also notes a fine source plus here I see an advert for a NLP (natural language processing) development system that claims you can start building apps in 3 months.

Udacity’s NLP Nanodegree program gets you cutting-edge building apps in just 3 months!

I am encountering newer programmers that tackle problems that require a lot of work. Some burn as they discover this or expected this to be a ready to use function.

Maybe you can take a shortcut to build an app to just deal with your one example?

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.

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

Thanks for the report back. Now there are some that will call this not a great fix but hey, sometimes you can't go over all the code and have to go with a wrap solution as I noted.

Your supplied code didn't find Waldo for me. Or rather I didn't see where you could have included this class more than one.

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

When I develop an algorithm I do so manually then write done how I got from the beginning to the end. You have your work ahead of you unless you meant to post this as a for-hire piece of work.

Once I sketched out the algorithm then I start thinking about how to implement that in code.
Sometimes I find students try to code first rather than use their head first.

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

From your link I read:

Return a random decimal number (no seed value - so it returns a completely random number >= 0 and <1):

Then I read your question about SELECT SQL and do not get how these two SQL commands/functions are related. I certainly found nothing in the SQL documentation that included both.

On top of that, your question about SQLrand "a system" is about "a system" and not the SQL function.

Do you understand that "a system" is not "a function"?

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

The common fix or reply about this with a google search seems to be "wrap your class in code to check for the function/class."

So the entire Class MysqlConnect is wrapped like this:

if (class_exists('MysqlConnect') != true) {

    class MysqlConnect { ... }

}

`

annya commented: its worked +0
rproffitt 2,701 https://5calls.org Moderator

@ddanbe, you may want to keep in mind there is yet another big change on its way.

Read https://www.daniweb.com/community-center/daniweb-community-feedback/threads/516316/biggest-daniweb-pain-points/3#post2242308 where Dazah and Daniweb merge.

While I can't fathom why "thermalprint" is in the forum menus or why C# is now missing, the upcoming changes appear to again move further away from the usual programming forums.

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

This looks like a duplicate post to me. If you can, clean it up.

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

You seem to want to debate the various app store rules. I think you can do that but won't make any progress. Too bad you didn't make the app dynamic in the image retrieval. Ad supported apps don't put the brand logos in your app. So if you had put in code to show a list of web sites and fetched the logo from the web to show alongside your text, it might have got past the review since your app didn't use copyrighted or trademarked images that were embedded in your app.

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

The first step is to share how you do this now. Then automate that in VB.net.

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

This seems to be exactly what the tutorial at https://reactjs.org/docs/rendering-elements.html writes about.