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

You've asked the question quite a few times and I see good answers about WIA and TWAIN but you seen to be missing the problem. Ready?

There is no one single method that will work with all scanners on vb.net. Until you get your scanner in hand you won't know if you'll be implementing it in WIA, TWAIN or other.

As an example I have a scanner that has no WIA, TWAIN or any other programming interface. It's pretty nice in that it shows up as a drive letter and when you press the button on the scanner it scans and the old scan in that file vanishes and a new file with a new filename shows up.

To press the button on this one I would have to make a ROBOT to press the button.

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

AHH, now that's where I can see a design blow up. We went with UDP rather than TCP to avoid a pile of open sockets. Using UDP meant we developed our own protocol and you may not ask me for that. But if you were to try to open thousands of TCP sockets I can see where you would blow up.

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

@N, I am not trying that hard to get you unstuck from the usual new to this view or parallel processing. You can imagine what would happen to the internet if there was no buffer in systems today. I've given you a view to where your monster machine is overkill by sharing a little about the system the company here went with.

I've seen this before and usually the persons that go down this path burn out as they pile a million bucks into servers and run out of cash before the company lifted off.

Here the company went with a cloud so it could scale later. The group is a lot more seasoned and we knew to not overdesign this. We went with a simple desktop server during demos, later it fit on a laptop and finally went into a virtual host in a cloud system. It runs fine with thousands of clients.

PS. Get a measure of throughput. How many transactions per second can you achieve. Then think where the bottleneck is. With 24 CPUs it won't be the CPUs.

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

@N, there you go with an example over an IP sending data. That information will arrive in sequence and not parallel. You seem stuck on this and I don't have a good explainer to get you unstuck.

Forget parallel for many reasons like how IP stacks buffer and more then focus on throughput. Test and find the answer to the simpler question of "How many requests per second can my system process?"

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

And that's the confuser to most. I looked into what bootloader Unetbootin installs and it looks like Syslinux. You went looking for related Windows and if you or I did that, we would walk away confused.

I'm not there to dive any deeper but write that it's a boot loader that runs before Windows and that is what you want to work on.

To edit the boot configuration file you may have to boot another Live OS (I use so many today with names likde TAILS, Puppy, Ubuntu and others that I can't tell you which to use. All of them have GUI file managers and text editors so you get to dive in and find that file to edit to make it do what you want.

If you want to replace the bootloader your FIRST STEP is to clone the drive in case something goes wrong. Then use the boot repair for Windows 10. Try W10's own startup troubleshooter first and maybe http://neosmart.net/EasyBCD/ which has a free version.

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

Can you share this here in DANIWEB?

Your link appears to want me to sign up for yet another site.

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

@newbie. We never saw it. I didn't want to bring this up but how is your internet connection concurrent? That is, at the data center we used the packets would arrive one after another. Yes, to a human it seems concurrent but it really isn't.

So to test load you just load up the input and see how many packets your system can process per second. Bingo, you have your throughput numbers. My bet is your internet feed or drives will saturate before the 24 CPUs do.

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

Slow downs in most MySQL systems I've dealt with are usually caused by simple things like SELECT * statements.

I'm a little amazed you are approaching this scale of a system without a programming team. Here we had about a dozen working on the product at one point. I guess there are companies that would hope you as the lone programmer will do it all.

You certainly crushed the RAM and CPU count.

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

@N so you need to do load testing. My bet is you won't find this to bottleneck to RAM or CPU. And if we had a few thousand with a virtual host, and I'm repeating, the hardware you listed looks good from a million clients if the internet and disk bandwidth holds up.

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

PS. Yes I know about the MSG command (read https://www.lifewire.com/msg-command-2618093 ) but I found most get upset at what it does and does not work on.

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

I think that used Syslinux as the boot manager. http://www.syslinux.org/wiki/index.php?title=Config is your Wiki page on that but you can google like "How do I change what OS Syslinux boots? as well.

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

Nod to http://www.dreamincode.net/forums/topic/37974-creating-autocad-dxf-in-c/ as it's simple and short.

No, it's not Delphi but you as a programmer can handle that. Next you get to learn more about DXF syntax and think how to write the text in say Notepad then back to your code to write such from your app.

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

Sorry newbie14 but your questions are unclear. For example while I worked on a team that setup and have a live GPS tracker with so many features your questions are unclear and maybe you are not an English speaker. You wrote "What java tios ..." and didn't explain what tios means. It's not a word I encountered in Java or during our development cycle.

So back to the top. Your hardware specification of " ram to be 48Gb with 24 cpus. " sounds like sheer overkill to me. The system we ended up with is a virtually hosted app and handled thousands of vehicles. I can't imagine how many your server will handle but it must close to over a million.

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

@Obbie. Why not share the make, model of the scanner? That way folk can comment about how that one works rather than telling you in general terms.

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

I think you meant "Why does this app suck so much?"

I don't use some of the supplied apps. Why don't you install apps you like?

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

@newbie14. Sorry but your last post needs clarifying. I think I shared enough so far that you seem to be headed to overkill but then I don't know your code and system you went with.

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

Here's the deal with TWAIN or WIA. I've seen folk try that and it breaks as the next user has a different make/model scanner.

My view is this area is a mess so you have to pick a scanner and sort out how this one works.

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

@Obbie. I guess I was unclear. For each make and model this may change. So let's try again.

Supply us with a make and model and we'll see if the maker supplied an API or example.

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

I'm going with yes. Why? On a virtual host with MySQL and some JAVA code filing data away, 1K vehicles seem fine. The fleet uses cellular modems to send in location and the virtual host is on some hosting company.

I can only share so much about this but you with dedicated machine and 100 times the machine we use the only reason I could see it fail is a coding/config error. Or "Pilot error."

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

I wonder if by gps you meant GPS? If so I can share a little but not all about a fleet tracking system that I was a team member on. The GPS data would only go down to about 5 second intervals on the product so this was more of a bottleneck in comms (communication) than the SQL and app that filed the data.

As to heavy traffic this system still runs on a virtual host and you are 100X more than what we use on a fleet of about 1K vehicles.

My view is you are overdesigning. Or maybe you didn't try it on a simple server yet.

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

PS. I really need to check Rosseta Code more often.

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

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

@Obbie

Scanners are all over the map about grabbing a scan. So for each scanner you might have to re-write and sometimes call a model incompatible with your app.

Now if you were on Linux I'd point you to SANE.

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

English
Small world. I have apps that are bar code scanner compatible. The button is on the scanner and not n the app.

So far not one client has asked for the button to be in the app.

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

I'd like to see how too given this feature was removed from all Windows years ago (maybe a decade.) The reason was it was exploited and that exploit is now closed.

I know you want to do this but since your target OS no longer does this out of the box, you may be left wanting.

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

I see I asked about your install method and I used that to see what's up. It appears the setup was more than you wrote about.

Let's try again tomorrow. I have a clean Windows 10 PC that I can test this on late tomorrow. I need your install method so I can check it out.

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

I was reading the FAQ there and I'm not finding watir in that installer. I could be wrong about that.

https://stackoverflow.com/questions/15234316/unable-to-install-any-gems-watir-webdriver-selenium-webdriver has a few commands to check out including one to install watir.

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

Can you share your install routine, host OS (rarely matters).

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

My first checks would be to read a few priors at https://www.google.com/search?q=require+‘watir’

This tells me that more work is required to get your watir working. You write you researched this but didn't share your research method. I don't have a Ruby setup today so it may be a while till I can try your code.

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

Always add the time it took and what hardware you ran on.
http://www.mathblog.dk/sum-of-all-primes-below-2000000-problem-10/ shared code and times but I missed what computer they used.

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

I looked at that app for an API at their web site and found none. I also noticed they sell this as a NO CODE solution.

Maybe it's time to talk directly to their engineers about getting their API published?

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

Hello moonu.

When you post a job request like this be sure to supply all the details such as how much it pays and where to get the full specifications for the target CPU, BSP and more.

Otherwise folk may think you are pasting in some part of a homework assignment.

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

I see you like to share links about this. Can you also share how you find information?

That is, give a man a fish or teach him to fish is the question. How do you fish?

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

Small world. I had a car that would not get up to temp and caused all sorts of issues. The dealer's TECHNICIANS (they no longer employ mechanics) were astounded as I arrived with my laser spot thermometer.

Read http://www.aa1car.com/library/tstemp.htm on how to use and more.

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

Since you have a new question, maybe make a new post. Also, show your research to date so I don't duplicate your work.

I found your original question interesting since divide and concur is a real thing but not discussed much.

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

While I wonder if you have a typo there, https://www.google.com/search?q=Divide+and+Concur.+%2Bpython&ie=utf-8&oe=utf-8 does not answer where Python uses this.

Did you mean divide and conquer?

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

Thanks for working at this. I understand the engineering view on this.

An engineer when they see a glass half full would tell us the glass is twice as big as it needs to be.

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

A prior discussion that involves argv and seg faulting.

-> https://stackoverflow.com/questions/21670461/attempting-to-concatenate-strings-produces-a-segmentation-fault

Read the answer by jrr. It's a shame a small thing like this is hard for some.

Can you tell me why the simple solution is not used here?

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

this wat at least it allocates exactly the needs for the name,

If you work to allocate the exact space and it overflows, you get a seg fault. I offered a simple way but failed to convince you. Your choice here.

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

Your choice to work hard on getting the exact space it needs. Since it is seg faulting, your move. I know mine.

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

That's what many call "responsive." It's a concept you implement in your code and not something that is say, one line long or covered in a small answer.

Example priors: https://www.google.com/search?q=responsive+java
Graphic examples: http://imgur.com/gallery/3PE7T "GIFs That Explain Responsive Design Brilliantl"
Source: http://blog.froont.com/9-basic-principles-of-responsive-web-design/

You might counter this is about web design but it applies to apps as well.

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

Since this is C that line 2 where you declared the newFilename has an array with no space so it would fault on line 3.
Try simple like char newFileName[256];

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

I read your code 3 times and can't find a fopen for write. Just stdout.

So I think you are missing code before when it needs to do a little string work. That is, copy your argv to some string and concat what you want to that string, then open that for writing.

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

I see the code at https://www.sitepoint.com/community/t/curl-experiments/264321/21 if anyone wants to read it.

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

I have a few thoughts on this.

First, name your controls. That way you know what they are and later you don't find yourself flipping from code to form and back to verify your work.

Second. I bet you are using Visual Studio. Use the power there to break on line 18 of the C# code so you can check all the lines and variables in the block.

Finally, remove the try and see if it blows up with an error. You didn't handle an error so you could be blind to any error in the try block.

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

This is a common question for a new C or other language programmer. To know why I guess you could find books on the history of C and how it came to be. But it's mostly historic and you can code as you see fit. However, it is best to not fight the tide this time and learn how to code using the standard calls and accept that arrays and more start at zero.

As to the bit field question, that varies with the storage you chose. For Integer Types (noted at https://www.tutorialspoint.com/cprogramming/c_data_types.htm ) you have 1 to 4 bytes and since a byte (for most machines) is 8 bits that would be 8 fields per byte.

This can be considered arcana today by some. Let's say you are programming on an average PC today. Not much reason to encode data into bit fields. Just use variables to clearly state what you mean. In embedded programming bit fields are not going away. Some will open a debate on this. I think this quote applies here.

This has made a lot of people very angry and been widely regarded as a bad move.

Douglas Adams

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

Since you are using Visual Studio, pause at line 9 to get the command string you made in line 8. You can then test that command with your choice of sqlcommand ( https://technet.microsoft.com/en-us/library/ms165702(v=sql.105).aspx ) or tool of your choice.

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

The lack of comments means I have to decode each line to figure out what it does. Example? Lines 95 to 97 (and others.) Not everyone codes for this so your comments matter more than ever. And in a decade, how will you know what this did?

When posting for help on assembly, I think each line or close to each line needs a comment about what it is doing.

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

What's with the first lines of your post with 0, down vote and favorite?

Ahh, I see it. Reading https://stackoverflow.com/questions/44479738/load-a-microsoft-support-articles-outside-a-browser they wanted you to post more code.

-> That out of the way I went and researched my thoughts about wget and more with this search: https://www.google.com/search?q=wget&ie=utf-8&oe=utf-8#q=wget+a+microsoft+kb+number

https://www.sevenforums.com/windows-updates-activation/402888-wget-curl-fail-download-kb-html-page.html looked interesting and you can alter that to fit.

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

Welcome to DANIWEB. Good to see folk appreciate Dani's hard work on this.

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

I can read you.