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

Remember that since this is an assignment, most folk will not supply you with code. They might help you understand why a line of code or method fails but you get to write all the code. If it's something like "compute Pi" I might reply with atan(1) times 4 is a good way to get the max digits on a platform but beyond that, your assignment should be your code.

That out of the way, I found problem solving skills to be key to such problems. Often the person with the problem has not taken a step back to examine what the problem is, and then considered "can I break this problem into smaller problems."

That is, you might be considering the problem to be the assignment rather than the 100+ problems it presented for you to solve.

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

First a comment about line 3 in the first code snippet. I would state it's being called too many times. Also I hope the loop is frivolous and not what you actually intend as you could add 10000000 and be done.

As to the second issue. You inadvertantly called DoEvents thousands of times in code snippet one but in example 2, I found that Windows messages (again, something you need to study when you have time and even then, madness) needed more than one DoEvents with some delay to let the messages process and well, it's a Windows thing. As the coder you work around as best you can. Good hunting.

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

My thought here is there are waiting window messages. I don't know if you have background in how Windows works but your change to visiable is in a message and your code didn't break yet so the message isn't processed yet.

https://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents(v=vs.110).aspx notes an example where we need to call this to process those messages.

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

I'm reading line 11 where you put content into the variable "text" and line 12 where you call out "txt". To me this looks incorrect. I might be wrong.

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

That sounds like a neat idea. I think you'll be busy for months implementing this and getting it all bugged out. But I'm going with advice here. Break down the problem into manageable doable chunks. You have your high level goal but now you get to break it down into components your programming team can handle.

My thought is that you can break down the system to something like a classic design I use which is again high level but has worked for me many times which breaks a system into starting blocks like:

  1. The Interview. The screens that collect the information we need to get to the result.
  2. The Work. Here we use the interveiw answers to get more information and compute the answers for the last stage.
  3. The Report. Here we display, print or show the results.

Sometimes I run into new programmers that forget to break the problem down into chunks, steps or whatever you want to call work units.
Good luck in your assignment. You'll be at this for a long time.

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

@Reverend Jim. Last week had a few 38C days. Back to normal 20-22 days. I thought heat rises?

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

Greetings from the Lower South West (LSW).

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

@D. I can't answer that. It appears to be homework so follow it's instructions.

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

Creating a database in VB.net is documented at https://technet.microsoft.com/en-us/library/ms162576(v=sql.90).aspx

A very short example is there.

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

I think you need to add if this is the usual homework assignment. Which was:

Implement the perfect hashed data structure and provide Java application that demonstrates that its four basic operation methods function properly. Your application should store nodes for a stadium ticket application where the ticket numbers range from 2000 to 100,000 for a 60,000 seat stadium. The ticket number will be the key field and the nodes will also store the purchaser's name.

It certainly sounds like that assignment. The answer is on the web but here, this is handled another way.
Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

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

Modems come in various designs. We have classic ones that connect to some RS232 Serial Port that we rarely have to install any drivers and can test with AT commands, then WinModems that were slipped into some PCI slot and were generally thought to be the Devil's spawn. Now we have USB Modems that well, don't work at all on most PCs except when you follow the directions.

You may have to tell a lot more.

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

By "this address just won't work properly." do you mean their email address are your company or are you trying to pick up their mail on an external server?

Why I ask is you can find folk talking about TLS and Outlook 365 breakage.

The TLS implementation in 2003 is not compatible with the Office 365 servers. There is no work around. Turn off TLS, or don't get mail from Office 365 (and presumably a growing number of servers).

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

OK, opened up the source and there is some animated thing there that has a play button but here's the PNG that Edge didn't work with:
http://fresway.com/images/hover.png

I need to see if the PNG is using indexed color or not. Why?
https://www.google.com/search?client=opera&q=IE+does+support+transparency+in+indexed-color+PNG+images

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

The news I'm reading is "Mozilla intends to remove support for most NPAPI plugins in Firefox by the end of 2016." Except for Flash. This means when you find a broke version you have to bug report it and then use versions that work.

Nothing extraordinary is going on here. It's the last days for this for reasons you've read about for years.

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

Just for this I opened that URL in Opera and the image had a video play button on the left rainbow effect.

Maybe that's not a PNG at all?

pty commented: My theory is that Davy printed his images onto A4 paper and is holding it in front of his monitor... +9
rproffitt 2,701 https://5calls.org Moderator

Your problem description needs work. Maybe you wanted to write:

  1. Count the number of whale occurances in the text unless preceeded by the word "thee".

But you didn't write that so as it stands the word count would be zero's if I took your words literally.

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

This can't be left here without mentioning Microsoft's hilarious fail with this link:

http://www.telegraph.co.uk/technology/2016/03/24/microsofts-teen-girl-ai-turns-into-a-hitler-loving-sex-robot-wit/

"Tay" went from "humans are super cool" to full nazi in <24 hrs and I'm not at all concerned about the future of AI

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

I thought Microsoft's attempt to put one online was hilarious.

Read http://www.telegraph.co.uk/technology/2016/03/24/microsofts-teen-girl-ai-turns-into-a-hitler-loving-sex-robot-wit/

Did they take the time to reveal just how badly they do AI?

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

Just thinking. By now in your course you should be able to create the first part of the assignment which is:
"Write a java program that asks a person for his height (in meters) and weight (in kilograms)"

Did you get that far? If not, time to go back over the course to see where that was omitted, forgotten.

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

It appears you are in a course that just handed you an assignment or "homework." The course should work its way up to this moment. That is, if you weren't paying attention before, what you are assigned may be Greek to you.

Go back over the material before this to see what you missed.

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

Why do that? NotePad++ can show you the hex and the ASCII.

See these screens.

PS. VBA is not VB6. As VB6 is rare and dead now, can you clarify?

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

You'll have to reveal more. If you are using the EMAILTO method, it required the PC/Apple have a compatible email client.

"For a mailto "submit" to work there has to be a compatible e-mail client. There are millions of PC users who don't (e.g. people with
hotmail, gmail, yahoo), and many Mac users too. " - https://forums.adobe.com/thread/338547

So that might work, but today I find less and less folk install Outlook, Thunderbird or any email client. They use WebMail which means the Submig button works as well as the goggles did for Radioactive Man.

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

Maybe you don't want to use a callback? I'm guessing here since the error message still looks truncated.
Read https://stackoverflow.com/questions/44602874/warning-preg-replace-callback-requires-argument-2-to-be-a-valid-callback where it's covered by a reply with "You cannot use a plain text string with variables in it, it needs to be a callable (function), please check the documentation for more information."

Since you know what your code was supposed to do, change to another function or change the variables to callable functions.

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

I think which version PHP matters as I read priors at
https://www.google.com/search?q=preg_replace_callback()%3A+Requires+argument+2

You cut off your error message and didn't reveal which PHP version so my guess is you moved to PHP 7.

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

I worry that you fell into that hole due to using or upgrading VS from some version to VS 2015 COMMUNITY.
You see others note this on the web and http://www.anujvarma.com/visual-studio-does-not-display-4-0-or-4-5-framework-option-for-target-framework/

You might have to use other than the Community version of VS or try (I haven't tried) a VS install on a clean machine.

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

This sounds like a continuation of the problems you had at https://www.daniweb.com/programming/software-development/threads/510079/c-programming-mysql#post2227467

I think you need to contact the author of that web page and ask if they have a Windows only version.

Can you share why it must be C and not C++ or such?

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

Well an Integer is not a string so let's for giggles add 5 to 9 and the result is (integer) 14. We can't print that yet since it's not a string or characters. So there should be a function to convert integer to string and then the same pointer increment used to print out 4.

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

So something like http://www.eecs.qmul.ac.uk/~mmh/ItP/resources/studentdatabase1.html ?

That and others are just a google away. Have anyone mentioned Google to you yet? Why I ask is I do occasional run into folk that didn't know about search engines.

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

In many systems the string resides at some address and here's the trick. Think about how you print that string.
You pass the address of where the string is to the print function. Now to skip the first character, add 1 to the address and pass that address to the print or copy function.

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

This sort of problem has been kicked around since before 1986 and in http://rosettacode.org/wiki/Talk:Word_count you find out you need to define what a word is.

Then we can look at the dozens of solutions at https://rosettacode.org/wiki/Word_count and modify the wheel to fit what our task is.

If this is homework, read the first link here. If you need a wheel, read both links.

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

So I dropped your code as-is on http://phpfiddle.org and has issues that stopped me from seeing what it does.

Now that I tried that, you'll have to explain in detail what you need. Consider this as if you are outsourcing a project and detail it enough that others can write the function.

Or fix your code to run on http://phpfiddle.org

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

I read this twice and can't find what you really wanted to accomplish.
Also, watch https://www.youtube.com/watch?v=-5wpm-gesOY

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

Time to read https://www.tutorialspoint.com/c_standard_library/c_function_fgetc.htm again. I don't see any error checks in your code for the missing input file or the end of file handling.

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

I was googling about this and that explains why it looked stale. Since you are in school, that's your best network to find free help.

May want to stay local.

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

It appears you've been at this for over a year now.
https://angel.co/fakenamez

Can you reveal why you weren't able to attract talent?

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

In the case of common apps like Tic-Tac-Toe I might defer to https://rosettacode.org/wiki/Tic-tac-toe but if you were to supply other folk's code you would indeed be missing out on the real reason you took the course. I won't tell you why here.

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

Here's the dictionary for Pander (noun). "Gratify or indulge (an immoral or distasteful desire, need, or habit or a person with such a desire, etc."

There has been a slew of low quality questions from a few members that were done for nothing more than to expose their spam links in the tagline or a shill operation.

We pandered to them by allowing dozens of such low quality questions to stay. They were disingenuous (insincere) members and deserved, in my opinion nothing but a slap of the eject buttons. Did they break the rules? Not directly but did use the rules to stay.

In their case, it became clear over time what the game was and I'm unsure if they were left alone or ejected. This behavior if left unchecked signals "this is OK." This is not OK to me but I understand the desire to let them be as well as why I want them gone.

pty commented: The "will they ever add anything of value to any conversation" test sorts them out quick enough. +0
rproffitt 2,701 https://5calls.org Moderator

I'd start with research and a few tutorials. Since this is VB6 there appear to be many. Start like this:
https://www.google.com/search?client=opera&q=VB6+display+the+data+in+flex+grid+tutorial+examples

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

You write you need help but only dump code and supply the class assignent text. I can't find what issue stopped you from completing the assignment. Remember that homework help follows certain rules since if we did the homework for you, you would not be learning and later will have deeper problems.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question then add your problem and question.

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

@Mag_1. When the usual easy fixes fail you are often faced with posting to Bleepingcomputer.com. Be sure to read their rules on how and what to post. They have a lot of tools I don't use and many there create a custom removal script.

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

@JamesCherrilll.

And that's why its so important for training to cover this when they are young. Another example is the common use in SQL to use "SELECT *". I can't remember how many performance issues I've cleared up by correcting that one, but that's how they were taught so that's how they code.

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

@Daron_1. Since priming the data would be dummy data and not how you would in the real world, you would not offer those menu items until there is data in the database. You might add a Status bar with a record count and if zero, maybe say "No Records." The menu would grey out the unavailable items.

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

While I can't find why you need a firmware upgrade as you write it has picture and works, I did think to look for Linux support and it appears to be out there. Also ispy is open source and seems to support this camera. https://www.ispyconnect.com/man.aspx?n=AirLink

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

There's no question here. But I'll guess you want to know if a Citrix system could match your current run of the mill i7 based PC. In your test, no it didn't fare well but we don't know what the Citrix server is on. Until we know what powers the server it's easy to see for your use it's slower.

Your management should have no problem with you continuing to use your system and using the cloud system when its needed.

Citrix at first was not called cloud computing so that came later. It was more of a labeling effort rather than what I call cloud computing. In my view cloud computing can be a true cloud where your compute job can be spread over many CPUs in the compute farm. For Citrix this farm is usually pretty small and is sized to meet the meager needs rather than something for a power user.

Your Citrix server is most likely suited for Word and email use from the sounds of it.

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

Since you have Visual Studio you can break on the line that doesn't work (line 22?) and see what's up.

Also, I worry you have newlines in the input buffer so read https://stackoverflow.com/questions/17614761/calling-scanf-after-another-string-input-function-creates-phantom-input/17615082#17615082