Best practice for comma separated input size for the search field

So to reiterate:

  • Users have .csvs or other files where large numbers of IMEis are listed
  • They need to be able to search for these IMEIs in your system

Ideally you’d have access to analytics or user interviews that could help you define the upper limit users search. It sounds like you don’t have access to either, so in the meantime we can make a few assumptions.

As you said, it seems the most likely scenario is that they’ll be copying and pasting these numbers, as they are difficult to correctly input due to their length. They likely won’t be checking their work, again due to length, so displaying the pasted content is mostly irrelevant – you can display “1234567890abcde, 1234567890abcde, and 498 more“, which should give them enough information about their search to complete their task.

The main bottleneck will likely be your backend system, not the UI. If you paste 500 IMEIs, how fast does the system respond? If it slows at any point and effects the UX, you’ve found your limit. If it responds adequately for 10,000 IMEIs, there’s little reason to limit it at all.

Search field comma separated input size best practice

In case working with large number of entries in web UI such as IoT device list with IMEI. And in case there is a need to make quick multiple selection by IMEI.
Would it be good practice to provide search field with possibility to enter comma separated IMEIs?
In most cases those IMEIs will be pasted into search field.

What would be sane maximum limit for such input?
50 IMEIs (850 symbols), 100 IMEIs (1700 symbols), even more?
What is main bottle neck for such solution?

I understand CSV file import could be used, but we want quicker solution.

co.combinatorics – Counting the number of weakly separated pairs

Given two $k$-subsets $I$ and $J$ of ${1 dots n}$, denote by $min(J)$ the minimal element in $J$ and by $max(I)$ the maximal element in $I$, we write $I prec J$ if $max(I)<min(J)$. The sets $I$ and $J$ are called weakly separated if at least one of the
following two conditions holds:

(1) $J-I$ can be partitioned into a disjoint union $J-I = J’ sqcup J”$ so that $J’ prec I-J prec J”$;

(2) $I-J$ can be partitioned into a disjoint union $I-J = I’ sqcup I”$ so that $I’ prec J-I prec I”$.

This condition is introduced in Leclerc and Zelevinsky’s paper Quasi-commuting families of quantum minors.

Let $N$ be the number of all weakly separated pairs $I, J$ where $|I|=|J|=k$ and $I, J subset {1, ldots, n}.

I have counted certain special cases. In the case of $k=2$, $n$ arbitrary, $N$ is the number of diagonal dissections of an $n$-gon into two regions. In the case of $k=3, n=6$, $N=54$. In the case of $k=3, n=7$, $N=224$. In the case of $k=3,n=8$, $N=652$. In the case of $k=3,n=9$, $N=1557$.

Are there some method in combinatorics to count the number $N$? Thank you very much.

In cell C1 of Excel, how can you select coma separated cells/values from column A that are not found in a coma separated list of values from cell B1?

In cell C1 of Excel, how can you use a formula to select a coma separated string of all missing cells from all rows in column A that the values are not found in a coma separated list of values from cell B1?

query – MySQL Join two tables with comma separated values

I’ve got two tables as below:


option_value option_name
tipologia_auto_1 Citycar
tipologia_auto_2 Berlina
tipologia_auto_3 SUV
Hobby_1 football
Hobby_2 Basket

Datimarketing (is the result of group concat of previous columns)

Hobby Car Type Datimarketing
Hobby_1 tipologia_auto_2, tipologia_auto_3 Hobby_1, tipologia_auto_2, tipologia_auto_3

I am looking to query my Carline table and associate the ‘option_name’ column with values from the Datimarketing table.

The output should be:

Hobby Car Type Datimarketing
footbal Berlina, SUV football, Berlina, SUV

Can this be accomplished by CONCAT or FIND_IN_SET?

Please help! Thanks in advance!

Four men and six women are to be seated along a round table.The number of cases where every two men are separated by two women is

(A) 3420
(B) 4320
(C) 1710
(D) None of these

These are the available options.

Want to solve Laplace equation for two mediums separated by an interface

I want to solve the Laplace equation for electrostatics in two different regions separated by an interface. I can’t understand how to impose a continuity condition for the electric field on the interface. Can anyone help me to figure out the problem?

uk – Save pitcher filters, what filters chemicals and metals from water, for separated British taps without space around it?

I wholly agree with the other answer which says that you could just get quality tap water from the staff or something like that.

However, for this answer I’m doing something I often do, which is accept the premise of the question itself, which says “I want a device to remove the following substances from water.” I am assuming (wrongly or rightly) that is a justified premise, and answering that.

Considering the substances that need to be removed, I’d say that this can not be accomplished by simple filters. As references for this statement, see answer 1 and answer 2.

You need either a distiller or reverse osmosis.

Incidentally, both these methods also remove pathogens, so there will be no need to additionally boil the water.

Reverse osmosis accomplishes this by pumping water through a membrane with very tiny holes. A good RO system removes everything you are talking about in the question. Here’s another answer in which I mention an RO system that is portable and can be connected to the tap through a hose, eliminating the space concerns.

You mention chlorine in OP. Please note that the higher the chlorine level, the more of a strain it will be on the membrane of the RO system. (For normal, municipal water chlorine levels, it’s not a problem, though.) But the higher the levels of chlorine, the more often the membrane will have to be replaced.

Distillation works by creating steam and collecting the steam as water. Since none of the chemicals or pathogens you mention will evaporate in the steam, they will be eliminated in the distillation process. Here’s a related answer in which I describe distillation in further detail. With most distillers, you manually pour the water into the distiller using a jug or something like that. Thus, the space is not a problem there either.

Please note that distillation is quite energy inefficient compared to RO. It uses a relatively high amount of electricity, whereas RO does not.

developing – What is the advantage of C41 with separated bleach and fixer baths?

The C-41 and E-6 processes and their cine counterparts evolved in an era where giant regional processing labs were the norm. I was technical manager for 7 such labs in the Southeast United States. Each was sized to handle 20,000 rolls of color film a day. Such labs as these were duplicated in countless locals worldwide.
Regardless of what you think, the vast majority outputted a top quality product, The standards were plus/minus 1/6 of an f-stop. Additionally, the color balance of outputted prints was topnotch.

That being said, when you process at this volume, the chemistry must have an indefinite life. Now we are talking, automatic temperature control, both heating and refrigeration. Test films are run interlaced with customer film. Test strips are measured and graphed with high precision.

Chemical tanks are filled with a tank formula and replenished, based on the graphs with a specialized replenished formula. The bleach must not only be replenished, it must be aeriated. The EDTA (red) bleach is iron based and its operation depends on the level of iron oxidation. The fixer accumulates silver complexes. As this fluid works to remove silver salts and metallic silver, it’s silver level must be controlled. This is accomplished by on-line electrolytic devices.

Besides all the problems of keeping the solutions at specification, the lab must sewer or haul-away to an licensed waste facility. In other words, fluids are treated, re-used and then finally discarded safely.

It is not economically feasible to mass process without keeping the bleach and fix as separate chemical baths. The color paper developing process did combine the bleach and the fix. This works out OK but separate would be better. This is true because paper prints can be reprinted if something goes wrong, film if ruined is usually not salvageable.

Separating bleach and fix is not a requirement is a home darkroom setting.

automata – NFA recognizing strings in ${0,1}^*$ that have two zeros separated $4i$ characters, for some $igeq1$

I am trying to design a nondeterministic finite automaton that recognizes the language of strings in $ {0,1}^{ast}$ that have two zeros separated by a string of length 4i, for some $i geq 1$.

Let $A = {w mid w in {0,1}^{ast}$ have two zeros separated by a string of length $4i$, for $i geq 1}$. Then we design a NFA that recognizes A

Let $M = (Q, Sigma, delta, q_{0}, F)$ , where

$Q = {q_{0}, q_{1}, q_{2}, q_{3}, q_{4}, q_{5}, q_{6}}$,

$Sigma = {0, 1}$

for any $q in Q$ and $a in Sigma$

$delta(q, a) =
{q_{0}} & q = q_{0}, a = 1\
{q_{0}, q_{1}} & q = q_{0}, a = 0\
{q_{2}} & q = q_{1}, a = 0 or a = 1\
{q_{3}} & q = q_{2}, a = 0 or a = 1\
{q_{4}} & q = q_{3}, a = 0 or a = 1\
{q_{5}} & q = q_{4}, a = 0 or a = 1\
{q_{2}} & q = q_{5}, a = 1\
{q_{2}, q_{6}} & q = q_{5}, a = 0\
{q_{6}} & q = q_{6}, a = 0 or a = 1\

$q_{0}$ is the start state, and

$F = {q_{6}}$

The state diagram is as follows:

enter image description here

I am not quite sure it is totally correct. Does $q_{0}$ should be a final state?