1. An improved magnetic clip cord for a tattoo machine comprising:
(a) a magnet bar;
(b) a metal bar;
wherein along a top surface of the metal bar, at predetermined locations are big hole and a small hole;
wherein the metal bar has a shape that is slightly larger than a cross-section of the magnet, and is U-shaped, so that when placed over the magnet bar, the metal bar does not touch any surface of the magnet bar;
(c) a power cord consisting of a coaxially insulated positive wire and a coaxially insulated negative wire run throughout the power cord;
(d) a spring;
wherein the spring provides positive upward direction for a bottom of the power cord;
(e) a brass connector;
wherein a end of the positive wire protrudes from the bottom of the power cord and is permanently affixed to the brass connector;
(f) a screw;
wherein the end of the negative wire protrudes from the bottom of the power cord, through an opening in the spring, and is permanently affixed to the top surface of the metal bar by the screw at the predetermined location where the small hole exists; and
(g) a non-conducting collar;
wherein the non-conducting collar is fitted between the bottom surface of the big hole of the metal bar and the brass connector; and
wherein attached to a tattoo machine is a second metal bar and a second magnet bar with a second nonconducting collar and second brass connector;
wherein a power cord of the tattoo machine consists of a positive wire and a negative wire;
wherein the positive wire is attached to the second brass connector;
wherein the negative wire is attached to the second metal bar;
wherein the two magnet bars will attract each other via the magnetic force which will in turn cause both brass connectors to touch, and simultaneously cause both metal bars to touch, thereby enabling electrical current to pass to the tattoo machine; and
wherein the flow of electrical current to the tattoo machine is stopped by the separation of the two magnet bars.
2. The non-conducting collar as described in claim 1 wherein the non-conducting collar is made from a plastic.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A computer system device, comprising:
a processor in communication with a network computer system control point; and
a memory coupled to the processor, the memory containing one or more sequences of instructions for controlling a network device and a data table, the data table comprising a plurality of rules organized in a first decision tree, the first decision tree comprising a plurality of chained branches of filter rules, each branch having a depth value defined by a number of linked pointers leading from a root of the tree to a tip of the branch;
wherein execution of the one or more sequences of instructions by the processor causes the processor to apply the first decision tree plurality of rules to data packets through the network computer system control point by:
setting a worst case tree depth threshold equivalent to a depth value of a longest chained branch of the first decision tree;
deleting one of the plurality of filter rules or adding a new rule;
if deleting the one of the plurality of filter rules, providing an incremental delete of the one filter rule from the first decision tree to a network data plane processor for application to network data packets; and
if adding the new rule, adding the new rule to a branch of the first decision tree to form an enlarged branch and determining a total rule depth of the enlarged branch;
comparing the enlarged branch total rule depth to the worst case tree depth threshold; and:
if the enlarged branch total rule depth is less than or equal to the worst case tree depth threshold, providing an incremental insertion of the one filter rule to the first decision tree to a network data plane processor by providing a definition of a decision node added to the enlarged branch of the first decision tree to the network data plane processor, wherein the new decision node is inserted into a copy of the decision tree local to the network data plane processor; or
if the enlarged branch total rule depth is greater than the worst case tree depth threshold, rebuilding the plurality of rules and the added new rule into a second decision tree, providing the second decision tree to the network data plane processor, and setting the worst case tree depth threshold equivalent to a depth value of a longest chained branch of the second decision tree.
2. The computer system device of claim 1, wherein execution of the one or more sequences of instructions by the processor further causes the processor to:
set the first tree worst case tree depth threshold responsive to the total of the plurality of rules in a longest branch in the first tree plus a value N; and
set the second tree worst case tree depth threshold responsive to a total of the plurality of rules in the longest branch in the second tree plus a value N.
3. The computer system device of claim 2, wherein execution of the one or more sequences of instructions by the processor further causes the processor to:
determine a tree total rule size; and
set the value N responsive to the tree total rule size.
4. The computer system device of claim 3, wherein setting the value N comprises reducing N in inverse proportion to an increase in the tree total rule size.
5. A computer system device, comprising:
a processor in communication with a network computer system control point; and
a memory coupled to the processor, the memory containing one or more sequences of instructions for controlling a network device and a data table, the data table comprising a plurality of filter rules organized in a first decision tree;
wherein execution of the one or more sequences of instructions by the processor causes the processor to apply the first decision tree plurality of filter rules to data packets through the network computer system control point by:
setting a maximum total rule change count value M;
deleting one of the plurality of filter rules or adding a new rule;
if deleting the one of the plurality of filter rules, providing an incremental delete of the one filter rule from the first decision tree to a network data plane processor for application to network data packets;
if adding the new rule, incrementing a total count of rule additions since a building of the first tree and comparing the incremented rule addition total count to M; and
if the incremented rule addition total count is less than or equal to M, providing an incremental insertion of the one filter rule to the first decision tree to a network data plane processor; or
if the incremented rule addition total count is greater than M, rebuilding the plurality of rules and the added new rule into a second decision tree; providing the second decision tree to the network data plane processor; and resetting the incremented rule addition total count to zero.
6. The computer system device of claim 5, wherein execution of the one or more sequences of instructions by the processor further causes the processor to:
determine a first tree total rule size;
set M responsive to the first tree total rule size;
determine a second tree total rule size; and
reset M responsive to the second tree total rule size.
7. The computer system device of claim 6, wherein execution of the one or more sequences of instructions by the processor further causes the processor to set M equal to 25% of a number of entries in the table since a last time the table was rebuilt.
8. An article of manufacture comprising a computer usable medium having a computer readable program embodied in said medium, wherein the computer readable program, when executed on a computer within a network computer system, causes the computer to:
apply a plurality of rules organized in a first decision tree to data packets in a network computer system, the first decision tree comprising a plurality of chained branches of filter rules, each branch having a depth value defined by a number of linked pointers leading from a root of the tree to a tip of the branch;
set a worst case tree depth threshold equivalent to a depth value of a longest chained branch of the first decision tree;
delete one of the plurality of filter rules or add a new rule;
if deleting the one of the plurality of filter rules, provide an incremental delete of the one filter rule from the first decision tree to a network data plane processor for application to network data packets;
if adding the new rule, add the new rule to a branch of the first decision tree to form an enlarged branch and determining a total rule depth of the enlarged branch;
compare the enlarged branch total rule depth to the worst case tree depth threshold; and:
if the enlarged branch total rule depth is less than or equal to the worst case tree depth threshold, provide an incremental insertion of the one filter rule to the first decision tree to a network data plane processor by providing a definition of a decision node added to the enlarged branch of the first decision tree to the network data plane processor, wherein the new decision node is inserted into a copy of the decision tree local to the network data plane processor; or
if the enlarged branch total rule depth is greater than the worst case tree depth threshold, rebuild the plurality of rules and the added new rule into a second decision tree, provide the second decision tree to the network data plane processor, and set the worst case tree depth threshold equivalent to a depth value of a longest chained branch of the second decision tree.
9. The article of manufacture of claim 8, wherein the computer readable program, when executed on the computer, further causes the computer to:
set the first tree worst case tree depth threshold responsive to the total of the plurality of rules in a longest branch in the first tree plus a value N; and
set the second tree worst case tree depth threshold responsive to a total of the plurality of rules in the longest branch in the second tree plus a value N.
10. The article of manufacture of claim 9, wherein the computer readable program, when executed on the computer, further causes the computer to:
determine a tree total rule size; and
set the value N responsive to the tree total rule size.
11. The article of manufacture of claim 10, wherein the computer readable program, when executed on the computer, further causes the computer to set the value N by reducing N in inverse proportion to an increase in the tree total rule size.
12. The article of manufacture of claim 8, wherein the computer readable program, when executed on the computer, further causes the computer to:
set a maximum total rule change count value M;
delete one of the plurality of filter rules or add a new rule;
if deleting the one of the plurality of filter rules, provide an incremental delete of the one filter rule from the first decision tree to a network data plane processor for application to network data packets;
if add the new rule, increment a total count of rule additions since a building of the first tree and compare the incremented rule addition total count to M; and
if the incremented rule addition total count is less than or equal to M, provide an incremental insertion of the one filter rule to the first decision tree to a network data plane processor; or
if the incremented rule addition total count is greater than M, rebuild the plurality of rules and the added new rule into a second decision tree; providing the second decision tree to the network data plane processor; and resetting the incremented rule addition total count to zero.
13. The article of manufacture of claim 12, wherein the computer readable program, when executed on the computer, further causes the computer to:
determine a first tree total rule size;
set M responsive to the first tree total rule size;
determine a second tree total rule size; and
reset M responsive to the second tree total rule size.
14. The article of manufacture of claim 13, wherein the computer readable program, when executed on the computer, further causes the computer to set M equal to 25% of a number of entries in the table since a last time the table was rebuilt.