Member Avatar
Cody_5 Joined the Community
Member Avatar
filtre Replied To a Post in Prime Numbers Algorithm
Topic by _kr4t0s_ in Software Development


import re
def is_prime(num): return not re.match(r"^1?$|^(11+?)\1+$", "1" * num)
def pri(num): return is_prime(num) Reply by filtre
Member Avatar
Topic by newbie14 in Databases
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 … Reply by rproffitt
Member Avatar
ask_1 Joined the Community
Member Avatar
Hi All,
I am having a system which receive data from around 30K gps . Each unit will be inserting concurrently around 1 minute.
1.What tweak should I add to cater for this? I target my ram to be 48Gb with 24 cpus.
2. Once the data grow should I … Topic by newbie14 in Databases
Member Avatar
Tina_10 Joined the Community
Member Avatar
rproffitt 747 Replied To a Post in Prime Numbers Algorithm
Topic by _kr4t0s_ in Software Development
PS. I really need to check Rosseta Code more often.

Read https://rosettacode.org/wiki/Sieve_of_Eratosthenes Reply by rproffitt
Member Avatar
Topic by Obbie_1 in Software Development
The scanner manufacturer may have some open source code to use to write your own scanning apps. They may be in something like C++ using an API like Qt, but you should be able to adapt that to VB. It is the interfaces to the scanner that are critical here, … Reply by rubberman
Member Avatar
rproffitt 747 Gave Reputation to xrj in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
That's all ? Reply by xrj
Member Avatar
rubberman 1,239 Replied To a Post in Prime Numbers Algorithm
Topic by _kr4t0s_ in Software Development
The traditional (and mathematically rigorous) method to determine primes is using the Sieve of Aristostenes. Your method will work for small primes, but breaks down quickly, or becomes computationally overwhelmed by the number of itererations required. This Wikipedia article explaines it pretty well: https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes Reply by rubberman
Member Avatar
xrj 85 Replied To a Post in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
That's all ? Reply by xrj
Member Avatar
Topic by Nikhar in Software Development
c++
In any case, DO NOT use '\n' for new lines in C++. They generally will not flush the output buffer. Use the 'endl' operator instead, as in: `cout << "This is a complete line." << endl;` Reply by rubberman
Member Avatar
rubberman 1,239 Replied To a Post in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
The scanner manufacturer may have some open source code to use to write your own scanning apps. They may be in something like C++ using an API like Qt, but you should be able to adapt that to VB. It is the interfaces to the scanner that are critical here, … Reply by rubberman
Member Avatar
rubberman 1,239 Replied To a Post in Choosing cloud storage
Topic by dado.d in Cloud-based Applications
Also, what about dropbox? Not sure what their basic storage amounts are for the free version, but you can pay I think for more storage. Reply by rubberman
Member Avatar
rproffitt 747 Replied To a Post in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
@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. Reply by rproffitt
Member Avatar
Topic by Nikhar in Software Development
c++
You're probably 8 years late, @pankaj_13. Even tho it's an old question, I'm going to suggest one way of displaying `\n` on the console, using C++11:

Using raw strings (string literal officialy):



#include <iostream>

int main()
{
std::cout << R"(\n)";
return 0;
}

You simply type your string, enclose it … Reply by Coller
Member Avatar
Featured Dani 1,611 Replied To a Post in Private message notifications handled by Dazah
Topic by Dani in DaniWeb Community Feedback
> I do not see the point of having to go to DZ to change something pertaining specifically to DW messages.

The idea was that you have to go to Dazah because DaniWeb was no longer handling its own messaging and was essentially outsourcing notifications to the Dazah service. Moot … Reply by Dani
Member Avatar
Topic by Obbie_1 in Software Development
I mean a document or paper scanner instead of a barcode sir

Yes the scan button is always on the scanner, but this is for my thesis sir, my lecturer asked to design a digital document scanner application using visual basic ,, when the button scan in visual basic on … Reply by Obbie_1
Member Avatar
sunny_11 Joined the Community
Member Avatar
rproffitt 747 Gave Reputation to xrj in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
Do you mean how to input scanned bar codes? If yes, see for example: [here](https://www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET) Reply by xrj
Member Avatar
rproffitt 747 Replied To a Post in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
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. Reply by rproffitt
Member Avatar
xrj 85 Replied To a Post in make scanner device connect with vb.net
Topic by Obbie_1 in Software Development
Do you mean how to input scanned bar codes? If yes, see for example: [here](https://www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET) Reply by xrj
Member Avatar
Featured pty 241 Replied To a Post in Ruby/Watir - <Main> undefined local variable or method
Topic by mattyd in Web Development
The problem looks like it's the quote symbol on your require line, `require ‘watir’`.

In Ruby, this *needs* to be either a standard `'` or `"` pairing. If you really want to you can use [percent string syntax](https://ruby-doc.org/core-2.4.0/doc/syntax/literals_rdoc.html#label-Percent+Strings), in the`require %q{watir}` style, but in more than 14 years of Ruby … Reply by pty
Member Avatar
Featured gentlemedia 503 Replied To a Post in Rich Text Editor
Topic by SimonIoa in Web Development
You can grab the data with JS (or JQuery) and then you can do whatever you want with it.
https://www.google.com/search?q=get+content+of+contenteditable+for+PHP&gws_rd=cr&ei=GotKWcOpNIKZaevMqtAL Reply by gentlemedia
Member Avatar
Topic by Ritesh_4 in Networking
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 … Reply by rproffitt
Member Avatar
Martin_21 Joined the Community
Member Avatar
INGGRIS
How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help me sir Topic by Obbie_1 in Software Development
Member Avatar
Obbie_1 Joined the Community
Member Avatar
Featured SimonIoa 36 Replied To a Post in Rich Text Editor
Topic by SimonIoa in Web Development
Can a <div> hold a value to pass on for php? Reply by SimonIoa
Member Avatar
Ruth_1 Joined the Community