I would like to create dev rules based on USB ports rather than USB devices.  I have two identical cameras where udevadm info --attribute-walk on both devices shows no differences. My use case would be akin to having one camera to be the left eye of a robot and the other the right eye. I need the feeds to be processed separately. Since I can't bind with information from udevadm as identifiers for my udev rules, I thought it might be possible to map it to a USB port from /sys/bus/usb and always have the cameras plugged in to that port.  I am currently having trouble knowing what information to extract out and the format to add into the camera.rules file.  Suggestions to other methods of solving the problem are more than welcome.
I´m having some trouble with my udev rule. At the moment, I had my udev rule setup to execute a script whenever a Android phone is connected to any USB port on the computer. But I don´t want the script to be executed from every USB port. I just want that the script to be execute in example when the phone is connected to the 4th USB port and nothing should happen when it is connected to 1st, 2nd or 3rd USB port.  How can I achieve that and how can I determine the for example 4th USB Port?  I would highly appreciate your help.  My current udev rule:  KERNELS="1-2:1.1", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}!="1d6b", ATTRS{idVendor}!="203a", ATTRS{idVendor}=="****", ATTRS{idProduct}=="****", RUN+="/usr/local/bin/tmp.sh $attr{serial}"
In CodeGear Delphi 2007, how can I turn specific warnings and hints off? I am attempting to turn off H2077 - Value assigned to 'varname' never used. Does "the same number of people" behave as singular or plural? This hurts my eyes to read it and my ears to say it, but the writer stands by          About the same number of people was awarded bachelor's degrees in 2010 as filed for personal bankruptcy (1.6 million).   Is the subject in this sentence singular or plural? What is the difference in Bayesian estimate and maximum likelihood estimate? Please explain to me the difference in Bayesian estimate and Maximum likelihood estimate? How can I add an empty directory to a Git repository? How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?) I want to change the key bindings on some of the keys on my keyboard.  I want some to run commands and others to activate different keys.  What applications can I use to do this?      Index:       (from within System Settings)             I'm still looking for answers using dconf and any other method. Is there a function to round a float in C or do I need to write my own?       float conver = 45.592346543;   I would like to round the actual value to one decimal place, conver = 45.6. Random real numbers that sum up to specific value Altering layer's CRS to correct Layer Misalignment in QGIS I've got a vector layer in my project which isn't aligned with the rest of the project (see attached JPEG).  These are work files so I'm not sure when they were created or how they might have been messed with since they were created.  We moved from ArcGIS to QGIS a couple of years ago.  The infilled blue vector layer is the one I need to move, slightly north and east, so that it correlates to the blue line (also a vector).  All layers (and the project) are currently in EPSG:27700 - OSGB 1936.   If I need to create a new CRS based on OSGB 1936 and give it some new parameters, then how would I go about this?  Further information:  This is on Exmoor in SW England, and the data is uniformly almost exactly 8m out to the SW point to point - i.e I need to shift it 8m NE. Prove existence of disjoint open sets containing disjoint closed sets in a topology induced by a metric. Question: Let $(X, d)$ be a metric space. Let $A$ and $B$ be disjoint subsets of $X$ that are closed in the topology induced by $d$. Prove that there exist disjoint open sets $U$ and $V$ such that $A\subset U$ and $B\subset V$.   Is this proof correct? : By assumption, $A\cap B=\emptyset$, so there is no pair like $(x_A,x_B)$ (i.e., $x_A\in A$ and $x_B\in B$), such that $x_A=x_B$. Because every metric space is Hausdorff, so for every pair $(x_A,x_B)$ there are two disjoint open sets $U_A\ni x_A$ and $V_B\ni x_B$; and thus union of all $U_A$s (which is an open set containing A) are disjoint from union of all $V_B$s (which is an open set containing A).   Thanks a lot for any help.    PS In special case of standard metric topology on $\mathbb{R}$, if $[a,b]$ and $[c,d]$ are disjoint (say $c&gt;b$), intuitively it is apparent that there is a 'space' between $c$ and $b$ so we can have two disjoint open sets, each of them containing $[a,b]$ or $[c,d]$. Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username? proving topological equivalence How would I show that $$d_E = \sqrt{\sum_{i=1}^n(x_i-y_i)^2}$$ and $$d_\infty= \sum_{i=1}^n|x_i-y_i|$$ and $$\sup\{|x_1-y_1|,|x_2-y_2|,...,|x_n-y_n|\}$$ are topologically equivalent on $\mathbb{R}^n$? I can do it for $\mathbb{R}^2$, but I'm not sure how a generalization looks like. Splitting lines by polygons in QGIS I have a river network (lines) and a .shp with states (polygon). I would like to split the lines at the state boundaries i.e. split lines by polygon boundaries. Is there a geoprocessing tool to do this in QGIS? I can't merge the lines by the way, since they are meaningfully split into tributaries/main river. Visiting Iran as a dual EU-American citizen Why is the speed of light defined as 299792458 m/s? Why is the speed of light defined as $299792458$ $m/s$? Why did they choose that number and no other number?  Or phrased differently:  Why is a metre $1/299792458$ of the distance light travels in a sec in a vacuum? How can I obtain an 'unbalanced' grid of ggplots? "See somebody do" and "see somebody doing" Evaluate definite interval of normal distribution I know that an easy to handle formula for the CDF of a normal distribution is somewhat missing, due to the complicated error function in it.  However, I wonder if there is a a nice formula for $N(c_{-} \leq x &lt; c_{+}| \mu, \sigma^2)$. Or what the "state of the art" approximation for this problem might be. Prove that if b is coprime to 6 then $b^2 \equiv 1 $ (mod 24) Let $\gcd(b,6) = 1$. Prove that $b^2 \equiv 1 $ (mod 24).  Now I have that as $\gcd(b,6) = 1$, we know that  $3\nmid b $ and $2\nmid b$ (else the GCD would be 3 or 2 resp.)  So as $2\nmid b$, $b$ must be odd. Hence $b^2$ is also odd.  Then I'm not sure where to take it from here? Maybe I've gone down the wrong path to start with, and should be looking more along the lines of the Chinese Remainder Theorem? I'm not sure. Why can't Discovery's Data Core be separated from the ship? Where and how does the Bleach anime diverge from the manga? I've seen almost all of the Bleach anime (at least what's been released dubbed), and I'm now interested in reading the manga. However, when the manga closely follows the anime I've already seen, I tend to get bored quickly. Thus, I'd want to pick up the manga at a point right before the anime began to diverge.  At what point in the manga is this?