identifier
stringlengths 6
14.8k
| collection
stringclasses 50
values | open_type
stringclasses 7
values | license
stringlengths 0
1.18k
| date
float64 0
2.02k
⌀ | title
stringlengths 0
1.85k
⌀ | creator
stringlengths 0
7.27k
⌀ | language
stringclasses 471
values | language_type
stringclasses 4
values | word_count
int64 0
1.98M
| token_count
int64 1
3.46M
| text
stringlengths 0
12.9M
| __index_level_0__
int64 0
51.1k
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
US-15336505-A_2
|
USPTO
|
Open Government
|
Public Domain
| 2,005 |
None
|
None
|
English
|
Spoken
| 7,450 | 8,470 |
Thus the image reading unit body 170 can scan a document either when the document is placed on the document support surface 76 a of the document support 76 or when using the ADF 172. In the former case, the CIS 184 moves across the document support surface 76 a in the Z direction along the shaft 181 (see FIG. 1), while scanning the document supported on the document support 76 one line at a time. The individual photodiodes in the CIS 184 receive reflected light when a light source (not shown) irradiates a strong light on the document, and the CIS 184 converts the intensity (brightness) of the reflected light for each pixel of the document to electric signals. By converting these signals to digital data with an A/D converter (not shown), the image reading unit body 170 reads the image formed on the document as image data.
In the latter case, the CIS 184 is fixed at the left end of the document support 76 so as to oppose the pressure roller 187 via the document support 76. While fixed in this position, the CIS 184 scans one line of the document at a time as the document is conveyed by the ADF 172.
As shown in FIGS. 1 and 6, the control panel 100 includes: an upper panel surface 100 a, the lower panel surface 100 b, and a front edge 100 c.
An operating unit 102 including buttons and a display unit 104 are provided on the upper panel surface 100 a. It is noted that only either the operating unit 102 or the display unit 104 may be provided on the top of the control panel 100.
The lower panel surface 100 b has a declining extension 79 at its front part. The declining extension 79 declines gradually toward the front edge 100 c (+X direction). Both of the upper panel surface 100 a and the declining extension 79 slope downward toward the front side of the multifunction device 1.
The top surface 47 of the discharge tray 46 and the top surface 49 c of the cover 49 also slope downward toward the front of the multifunction device 1 in the region opposite the declining extension 79. The slopes of the top surface 47 and the top surface 49 c in the region opposite the declining extension 79 are substantially the same as that of the declining extension 79. In other words, the top surface 47 of the downstream portion 46 e and the top surface 49 c of the cover 49 slope downward toward the front of the multifunction device 1 at the same degree as the declining extension 79.
As shown in FIGS. 1 and 6, a panel circuit board 105 is disposed inside the control panel 100 and is electrically connected to the operating unit 102 and display unit 104. The panel circuit board 105 has a surface 105 a sloped at substantially the same degree as the slopes of the upper panel surface 100 a and the declining extension 79 of the lower panel surface 100 b. It is noted that the surface 105 a of the panel circuit board 105 may be sloped at substantially the same degree as at least one of the slopes of the upper panel surface 100 a and of the declining extension 79.
The front edge 100 c of the control panel 100 is positioned substantially flush with the front end 2 a (front edge 49 b of cover 49) with respect to the X-axis. With this construction, the front edge 100 c of the control panel 100 does not protrude from the front end 2 a of the main casing 2, thereby preventing the device 1 from becoming too large and forming a streamlined contour. Further, the control panel 100 is not so small as to recede rearward from the front end 2 a of the main casing 2, but is maintained at an appropriate size for ease of operations.
The underside surface 170 a of the main reading unit body 170 and the lower panel surface 100 b of the control panel 100 are integrally formed into the underside surface 70 a from a molded synthetic resin material. Hence, the underside surface 70 a is configured to have a smooth, continuous surface from the underside surface 170 a side to the lower panel surface 100 b side.
As shown in FIGS. 6 and 8, a grip part 77 is formed on the underside surface 70 a of the image reading unit 70.
The grip part 77 is formed as a depression in the widthwise center of the image reading unit 70, and is recessed into the image reading unit 70 farther than the surface of the underside surface 70 a. The grip part 77 is located on the declining extension 79 of the lower panel surface 100 b.
To open the image reading unit 70 as shown in FIG. 9(a), the operator inserts fingers into the depressed area of the grip part 77 and lifts upward. Hence, the image reading unit 70 can be moved upward, separating the underside surface 70 a of the image reading unit 70 from the top surface 47 of the discharge tray 46. This construction provides the user with better access to the discharge tray 46.
As shown in FIGS. 1 and 5-8, a plurality of guide ribs 73 protrude downward from the underside surface 70 a of the image reading unit 70 and extend in the front-and-rear direction. The guide ribs 73 extend from the upstream side position 170 c exactly above the upstream side edge 46 a of the discharge tray 46 continuously toward the front end 100 c of the control panel 100. In other words, the rear side edges of the guide ribs 73 are located on the upstream side position 170 c, while the front side edges of the guide ribs 73 are located on the front edge 100 c. The guide ribs 73 are provided over the depression of the grip part 77 as shown in FIG. 8. As shown in FIG. 6, the guide ribs 73 protrude farther downward than the bottom edge of the grip part 77, which is defined by the lower panel surface 100 b.
As shown in FIGS. 1, 5, 6, and 8, each guide rib 73 has a lower edge 71. As shown in FIGS. 1, 5, and 6, the lower edge 71 of each guide rib 73 extends substantially parallel with the underside surface 70 a in the XY plane. It is noted that the underside surface 70 a and the lower edge 71 of each guide rib 73 may extend in a straight line or in a curved line in the XY plane. As shown in FIG. 8, the guide ribs 73 are arranged parallel to one another in the widthwise direction (Z direction).
As described already with reference to FIG. 7, the discharge rollers 45 discharge paper 3 while maintaining the convex shape formed by the guide members 52 and 53. Thus, the discharge rollers 45 discharge paper 3 in a curved state that is convex on the top with respect to the widthwise direction.
As shown in FIG. 7, the guide ribs 73 extend downward farther near the widthwise edges than the widthwise center at their parts near the upstream side position 170 c. In other words, at their parts near the pair of the discharge rollers 45, the lower edges 71 of the guide ribs 73 near the widthwise edges are positioned lower than the lower edges 71 of the guide ribs 73 at the widthwise center.
Thus, the guide ribs 73 are configured to support at least the convex portion of the paper. This construction can easily determine the widthwise center of the paper discharged from the discharge rollers 45. Therefore, a plurality of sheets of discharged paper 3 can be orderly stacked on the discharge tray 46.
By discharging paper that is curved along the widthwise direction in this way, the paper is less likely to droop and push previously discharged paper stacked on the discharge tray 46. Further, the convex part in the paper is supported by the guide ribs 73 to ensure that the paper is conveyed reliably.
As shown in FIG. 6, a vertical distance H1 is defined as a distance between the lower edges 71 of the guide ribs 73 and the top surface 47 at the front edge 100 c. As shown in FIG. 5, a vertical distance H2 is defined as a vertical distance between the top surface 47 and the nip P2 between the discharge rollers 45 at the rear end of the discharge tray 46. The vertical distance H1 is substantially equal to the vertical distance H2. This construction keeps the vertical position of the control panel 100 as low as possible while reliably discharging paper equivalent to the amount that can be stacked on the discharge tray 46.
As shown in FIG. 6, the control panel 100 has a vertical height H4 that is greater than a shortest vertical distance H3 between the lower edges 71 of the guide ribs 73 and the document support surface 76 a of the main reading unit body 170. Therefore, while providing the main reading unit body 170 with various functions for scanning original documents, the main reading unit body 170 can be maintained at a small height, thereby keeping down the overall height of the multifunction device 1.
As shown in FIGS. 1 and 5, a static eliminating brush 75 protrudes downwardly from the underside surface 70 a of the image reading unit 70 for removing a static charge from paper discharged from the discharge rollers 45. The static eliminating brush 75 has: a holder part 75 b that is attached to the reader casing 170 b; and a brush part 75 a that is held by the holder part 75 b to be located below the lower edges 71 of the guide ribs 73. The static eliminating brush 75 extends in the widthwise direction (Z-axis).
It is noted that the static eliminating brush 75 may extend continuously across a prescribed range in the widthwise direction. Or, several static eliminating brushes 75 may be provided at intervals across the prescribed range in the widthwise direction.
The width of the range in which the static eliminating brush 75 extends in the widthwise direction (Z-axis) of the multifunction device 1 is approximately the same as or greater than the width of paper discharged from the discharge rollers 45. The brush part 75 a of the static eliminating brush 75 is positioned to contact or approach paper discharged from the discharge rollers 45 across the entire width of the paper.
The static eliminating brush 75 may have either a self-discharging or a grounded configuration that is capable of removing a charge from the paper.
With this construction, the static eliminating brush 75 can reliably prevent the paper 3 from sticking to the lower edges 71 of the guide ribs 73.
If the device 1 had no static eliminating brush and paper were discharged from the discharge rollers 45 and stacked while still in an electrically charged state, subsequent sheets of paper will not be reliably conveyed and stacked thereon. According to the present embodiment, by providing the static eliminating brush 75, these problems are resolved, enabling the paper 3 to be conveyed and stacked reliably.
As shown in FIGS. 1 and 5, a sensor 78 is attached to the reader casing 170 b to protrude downwardly from the underside surface 170 a for detecting when the amount of paper discharged from the discharge rollers 45 and stacked on the discharge tray 46 becomes excessive.
The sensor 78 is a rotatable lever-shaped member that detects when the amount of stacked paper is excessive based on the rotational angle of the lever. In the normal state, a tip end (lower end) of the sensor (lever) 78 is positioned lower than the lower edges 71 of the guide ribs 73. The sensor lever 78 rotates when the paper contacts the sensor lever 78. For example, the sensor 78 may be configured to detect an excessive amount of stacked paper when the lever remains at a slant for a prescribed amount of time. The sensor 78 can effectively prevent problems associated with the overstacking of paper 3. Further, since the sensor 78 is provided on the underside surface 170 a, the configuration allows for more freedom of design.
The discharge angle θ of the discharge rollers 45 has such an amount that when a paper is discharged by the discharge rollers 45 at the discharge angle θ, that is, diagonally upward, the paper contacts the lower edges 71 of the guide ribs 73 as shown in FIG. 5.
It is noted a path of a leading edge of paper discharged from the discharge rollers 45 depends on the weight and the hardness of the paper. A standard paper, PPC paper XEROX 4024 (A4) (trade name), for example, has average stiffness and average weight among almost all the kinds of papers usable in the multifunction device 1. When standard paper is discharged from the discharge rollers 45, the leading edge of the standard paper traces a path L1 within a region C1 over the upstream portion 46 b of the discharge tray 46 as shown in FIG. 5. According to the present embodiment, therefore, the shape of the top surface 47 on the upstream portion 46 b is configured to be substantially parallel to the path L1 within the XY plane.
As shown in FIG. 6, the lower panel surface 100 b of the control panel 100 and the lower edges 71 of the guide ribs 73 slant downward toward the front of the multifunction device 1. The leading edge of the standard paper discharged from the discharge rollers 45 traces a path L2 when moving through a region C2 near the downstream end of the image reading unit 70. According to the present embodiment, therefore, the shape of the lower panel surface 100 b in the region C2 (declining extension 79) and the lower edges 71 of the guide ribs 73 in the region C2 are configured to be substantially parallel to the path L2 in the XY plane.
The standard paper discharged from the discharge rollers 45 first contacts the lower edges 71 of the guide ribs 73 at a contact position P4. The lower edge 71 of each guide rib 73 is configured at the position P4 so that the lower edge 71 forms an angle of 20° or less with the paper surface near the leading edge of the paper. It is noted that if either one or both of the lower edge 71 and the leading edge of the paper are curved at the contact position P4, then the angle formed by the lower edge 71 and the paper surface at this point is defined by tangents to the curves at the contact position P4, In other words, if both the lower edge 71 and the leading edge of the paper are curved at the contact position P4, then the angle formed between a tangent to the lower edge 71 and a tangent to the standard paper surface at the contact position P4 is configured to be no more than 20 °.
With this construction, when the paper first contacts the lower edges 71 of the guide ribs 73, the paper does not receive a strong impact from the lower edges 71 of the guide ribs 73, but softly contacts and smoothly slides over the lower edge 71.
A line L3 is defined to extend straight from the nip P2 of the discharge rollers 45 along the tangential direction thereof. The line L3 intersects the lower edges 71 of the guide ribs 73 at an intersecting point P3 as shown in FIG. 5. When a slightly stiffer paper than the standard paper is discharged from the discharge rollers 45, the paper traces the path similar to the line L3.
According to the present embodiment, the lower edge 71 of each guide rib 73 is configured at the position P3 so that the line L3 also forms an angle of no more than 20° with the lower edge 71 at the intersecting point P3. In this case, if the lower edge 71 is formed in a curve at the intersecting point P3, then the angle formed between the line L3 and a tangent to the lower edge 71 at the intersecting point P3 is configured to be no more than 20°. This configuration can reduce the impact of the paper on the lower edge 71, even when the paper is a slightly stiffer paper than the standard paper.
When forming an image on paper of the maximum size that can be used in the multifunction device 1, the entire sheet of paper has to completely pass the transfer position P1 by the time the leading edge of the paper discharged from the discharge rollers 45 contacts the lower edges 71 of the guide ribs 73. In other words, the length of the path for conveying paper from the transfer position P1 to the contact position P4 shown in FIG. 1 is greater than the length of the maximum paper size that can be used in the multifunction device 1. Since vibrations generated when the paper contacts the lower edge 71 are not transferred along the paper to the transfer position P1, this configuration prevents adverse effects on the image transfer process. Therefore, such vibrations do not produce distortions in the transferred image, enabling a precise transfer operation.
As described above, the multifunction device 1 includes the image-forming unit 5 for forming images, the discharge tray 46 provided above the image-forming unit 5 for supporting paper discharged from the paper discharge rollers 45, and the reading unit 70 positioned to cover the top of the discharge tray 46 so that the top surface 47 of the discharge tray 46 opposes the bottom surface 70 a of the reading unit 70. The paper discharge rollers 45 are configured to discharge paper at an angle to the horizontal that enables the discharged paper to contact the bottom surface 70 a of the reading unit 70. In the reading unit 70, the control panel 100 is provided on the front side of the main reading body 170. The opening 82 is defined between the control panel 100 and the discharge tray 46. A user can pick up the paper discharged on the discharge tray 46 through the opening 82. Both of the upper surface 10 a and the lower surface 100 b of the control panel 100 are slanted to extend forwardly downwardly.
The multifunction device 1 has the paper cassette 6 disposed in the bottom section of the multifunction device 1 for accommodating stacked sheets of the paper 3; a conveying path positioned above the paper cassette 6 for conveying the paper 3 accommodated in the paper cassette 6 out of the multifunction device 1 via the transfer position P1; the feed roller 8 positioned above and near the front end of the paper cassette 6 for supplying the topmost sheet of paper 3 stacked on the paper cassette 6 along the conveying path; and the process unit 17 accommodating the photosensitive drum 27 and the toner box 34, disposed above the paper cassette 6 and near the feed roller 8. The process unit 17 can be removed from the multifunction device 1 along a path that extends in a substantially horizontal detaching direction that passes over the feed roller 8. The multifunction device 1 also includes the scanning unit 16 disposed above the process unit 17 and provided with at least the polygon mirror 19.
The scanning unit 16 is tapered toward the front in the detaching direction of the process unit 17 so that the side of the scanning unit 16 near the feed roller 8 is thinner to facilitate removal of the process unit 17. A portion of the conveying path is formed in an area between the process unit 17 and the paper cassette 6. The transfer position P1 on the conveying path is positioned lower than the top edge of the feed roller 8.
This construction facilitates the removal of the process unit 17. Further, by tapering the scanning unit 16 to be thinner in the area directly above the feed roller 8, the height of the multifunction device 1 at a position corresponding to the feed roller 8 can be made smaller than when the scanning unit 16 is not tapered.
Further, the position of the process unit 17 and the like can be lowered by the amount that the transfer position P1 is lower than the top of the feed roller 8, thereby reducing the height of the multifunction device 1 at the transfer position P1. Further, since the process unit 17 includes the photosensitive drum 27 and the transfer roller 30, the photosensitive drum 27 and transfer roller 30 can also be replaced when replacing the process unit 17.
As shown in FIG. 1, the upstream side edge 46 a of the discharge tray 46 is positioned at a lower position than the top edge of the fixing unit 18. Therefore, in comparison with a comparative case where the upstream side edge 46 a were positioned higher than the top edge of the fixing unit 18, the position of the pair of discharge rollers 45 can be lowered, without reducing the maximum number of stackable sheets of paper 3 in the discharge tray 46. Thus, the height of the portion of the multifunction device 1, under which the scanning unit 16 is disposed, can be made closer to the height of another portion of the multifunction device 1, under which the pair of discharge rollers 45 are disposed. This structure contributes to the improvement of the design of the multifunction device 1.
The present embodiment facilitates removal of the process unit 17 and reduces the height of the multifunction device 1 at the position of the feed roller 8 by making the scanning unit 16 in a tapered shape. Further, since the process unit 17 can be positioned lower by the amount that the transfer position P1 is lower than the top of the feed roller 8, the height of the multifunction device 1 at the transfer position P1 can be reduced.
The discharge rollers 45 discharge paper diagonally upward and convey the paper so that the leading edge contacts the lower edges 71 of the guide ribs 73 at a position P4. The lower edges 71 of the guide ribs 73 guide the discharged paper forward.
With this construction, the paper can be discharged from the discharge rollers 45 without pushing off previously discharged paper resting on the discharge tray 46 and can be guided forward along the lower edges 71 of the guide ribs 73 to be appropriately positioned on the discharge tray 46.
Further, by forming the grip part 77 as a depression, the grip part 77 does not impede the discharged paper 3, enabling the paper to be conveyed reliably.
It is possible to convey discharged paper along the lower edges 71 of the guide ribs 73 while maintaining only a small area of contact between the discharged paper and the lower edges 71 of the guide ribs 73. Accordingly, it is possible to reduce resistance in the conveying operation and to effectively prevent the paper from sticking to the lower edges 71 of the guide ribs 73 due to static electricity, thereby achieving more reliable paper conveyance.
The shape of the top surface 47 in the upstream portion 46 b (region C1) and the shapes of the lower panel surface 100 b and the lower edges 71 of the guide ribs 73 in the region C2 are determined to extend parallel with the conveying path of the standard paper. Accordingly, almost all the kinds of papers that are usable in the multifunction device 1 can be suitably guided and stacked on the tray 46.
More specifically, almost all the kinds of papers that are usable in the multifunction device 1 can be discharged along the lower edges 71 of the guide ribs 73. The behavior of the papers during discharge is stable. Hence, the present embodiment achieves a compact device that conveys paper in a stable manner.
For almost all the kinds of papers that are usable in the multifunction device 1, the leading edge of the sheet of paper discharged from the discharge rollers 45 traces a path that closely parallels the planar surface of paper already discharged and supported on the discharge tray 46 on the upstream side with respect to the direction that paper is discharged from the discharge rollers 45. Accordingly, the discharged sheet of paper can be stacked reliably without pushing off paper that has already been discharged.
The leading edge of the paper discharged from the discharge rollers 45 has an upwardly convex shape in the paper discharging direction. Hence, the leading edge of the paper does not incur much shock from the lower edges 71 of the guide ribs 73, but smoothly contacts the lower edges 71 of the same.
The image reading unit 70 can be raised upward as shown in FIG. 9(a). Accordingly, the control panel 100 can also be moved upward so as to separate the lower panel surface 100 b from the top surface 47 of the discharge tray 46. With this construction, it is possible to open the control panel 100 when needed, enabling the user to access areas below the control panel 100 or toward the rear side of the discharge tray 46. Hence, this construction prevents or eliminates operating difficulties or discharge problems that can result when making a device compact, improving operating efficiency and user-friendliness.
Paper fed from the front side of the paper cassette 6 by the conveying roller 11, feed roller 8, and pinch roller 10 is reversed in direction by the guide unit 55 so as to be moving toward the rear of the multifunction device 1. In this way, the paper is conveyed to the image-forming unit 5 disposed above the paper cassette 6. After the image-forming unit 5 forms a prescribed image on the paper and the image is fixed by the fixing unit 18, the conveying direction of the paper is reversed toward the front by the guide members 52 and 53. Subsequently, the pair of the discharge rollers 45 discharge the paper onto the discharge tray 46 disposed above the image-forming unit 5. This construction can achieve a compact device without impediments to discharged paper, and can thereby reliably discharge paper.
The multifunction device 1 is configured by vertically stacking the main reading unit body 170, the paper cassette 6, and the image-forming unit 5 so that the overall height of the device 1 is determined by the sum of the heights of these components. The height of the multifunction device 1 can be reduced by reducing the height H3 of the main reading unit body 170. Since the lower panel surface 100 b of the control panel 100 slopes downward toward the front 100 c of the device 1, the top surface 100 a of the control panel 100 can be disposed slant downward toward the front side 100 c while restraining the height H3 of the main reading unit body 170, thereby enhancing the user's ability to view and operate the control panel 100. That is, the user can easily view and operate the control panel 100 because the top surface 10 a of the control panel 100 slants downward toward the front side 100 c of the device at a certain degree of slope.
The top surface 100 a of the control panel 100 slopes downward toward the front to enable a user to view and operate the control panel easily. The multifunction device 1 has the thin flatbed portion between the document support surface 76 a and the underside surface 170 a of the main scanning body 170 (H3 in FIG. 6). If the bottom plate 100 b of the control panel 100 were level or were sloped upward toward the front of the device when increasing the vertical height of the control panel 100 (H4 in FIG. 6), it will be necessary to increase the overall height of the apparatus 1 excessively to accommodate the height of the control panel 100, making the manufacturing of a compact device difficult. However, according to the present embodiment, by sloping both the upper panel surface 100 a and the lower panel surface 100 b downward toward the front of the apparatus 1, the height of the apparatus 1 can easily be suppressed while maintaining the slope of the upper panel surface 100 a to facilitate viewing and operations, even when the flatbed section is made thinner.
Because the opening 84 a is formed in the front side, that is, the downstream side in the paper discharging direction, the user can mount and remove the process unit 17 and access discharged paper from the downstream side with respect to the paper discharging direction, thereby enhancing user-friendliness.
By integrating the underside surface 170 a and the lower panel surface 100 b, this construction eliminates impediments to the discharged paper 3 such as unevenness caused by separation between these two parts.
The guide ribs 73 protrude farther downward than the bottom edge of the grip part 77 so that discharged paper does not catch on the grip part 77 when sliding along the lower edges 71 of the guide ribs 73 near the grip part 77.
In the above description, the guide ribs 73 extend entirely from the upstream side position 170 c to the front edge 100 c. The upstream side position 170 c is located exactly above the upstream side edge 46 a of the discharge tray 46. However, the guide ribs 73 may not extend entirely from the upstream side position 170 c to the front edge 100 c. The guide ribs 73 may be provided at the minimum to pass through the contact position P4. That is, the guide ribs 73 may be formed from a position on the rear side of the contact position P4 continuously forwardly to the front edge 100 c. In other words, the rear edges of the guide ribs 73 may be located at any position on the rear side of the contact position P4 in the front-to-rear direction.
The grip part 77 may be located at the contact position P4 or on the front side of the contact position P4 in the front-to-rear direction. In this case, the discharge rollers 45 discharge paper diagonally upward so that the leading edge contacts the lower edges 71 of the guide ribs 73 at a position corresponding to the grip part 77 or at a position farther toward the pair of the discharge rollers 45 from the grip part 77. Also in this case, the lower edges 71 of the guide ribs 73 guide the discharged paper forward.
It is noted that in the above description, as shown in FIG. 7, the lower edges 71 of the guide ribs 73 are positioned lower toward the widthwise ends than in the center However, the guide ribs 73 may also be configured to have the same height.
Instead of the static eliminating brush 75, a static eliminating needle, or a conductive film may be provided on the underside surface 70 a, or a conductive resin material may be provided on the underside surface 70 a.
It is noted that the vertical positional relationship between the pair of discharge rollers 45 and the lower edges 71 of the guide ribs 73 is not limited to the example shown in FIG. 7, provided that the pair of discharge rollers 45 discharges the paper in a curved state and that the positions of the lower edges 71 of the guide ribs 73 are configured to form the same curved shape.
For example, the degree of curvature may be less than that shown in FIG. 7; the vertical distance between the pair of discharge rollers 45 and the lower edges 71 of the guide ribs 73 may be slightly decreased or increased; and the guide ribs 73 need not be spaced at regular intervals.
Second Embodiment
Next, a multifunction device according to a second embodiment of the present invention will be described with reference to FIGS. 11 and 12.
FIG. 11 shows an expanded view of the area relevant to the second embodiment FIG. 12 is an explanatory diagram showing the lower panel surface 100 b of the control panel 100 according to the second embodiment. The second embodiment differs from the first embodiment only in the shape of the guide ribs. Parts other than the guide ribs are identical to those in the first embodiment and, hence, a description of these parts has been omitted. Further, like parts and components have been designated with the same reference numerals.
As in the first embodiment, the declining extension 79 forms a portion of the image reading unit 70 on the front side and slopes downward gradually toward the front. However, guide ribs 173 are located within the area rearward of a rear edge P5 of the declining extension 79. That is, a leading edge P6 of the guide ribs 173 is positioned farther rearward than the rear edge P5 of the declining extension 79.
This construction eliminates the need to construct guide ribs 173 on both the declining extension 79 and the part rearward of the declining extension 79, but only on the part rearward of the declining extension 79. This simplifies the design, and enables the guide ribs 173 to be formed more precisely.
As in the first embodiment, the grip part 77 for lifting the image reading unit 70 upward is formed on the lower panel surface 100 b of the image reading unit 70 in the second embodiment. The grip part 77 is located on the declining extension 79. The front edges P6 of the guide ribs 173 in the second embodiment are located on the rear side of the grip part 77.
This construction effectively prevents or reduces the chance of the user's hand coming into contact with the guide ribs 173 when operating the grip part 77, making the feel of the operation more pleasant to the user.
Further, while the second embodiment is provided with the same control panel 100 provided in the first embodiment, the guide ribs 173 are disposed within an area to the rear of the control panel 100. In other words, the leading edge P6 of the guide ribs 173 is positioned farther rearward than a rear edge P7 of the control panel 100.
In the second embodiment, the opening 82 is formed between the front part of the discharge tray 46 and the cover 49 and the front part of the control panel 100, as in the first embodiment. A distance D1 between the leading edge P6 of the guide ribs 173 and the front edge of the opening 82 (the front edge 100 c of the control panel 100) in the front-to-rear direction is at least 5 cm. Since 5 cm or more separates the front edge of the opening 82 from the leading edge P6, the user is not likely to touch the guide ribs 73 when putting a hand in the opening 82.
Hence this construction reduces the chance of the user's hand bumping against or contacting the guide ribs 173 when the user puts a hand into the paper discharge opening, thereby improving operability.
The configuration described above is only one example. The guide ribs 173 may also be configured such that the leading edge P6 of the guide ribs 173 is positioned in front of the rear edge P5 of the declining extension 79, but behind the grip part 77, or behind the grip part 77 but in front of the rear edge P7 of the control panel 100. The leading edge P6 of the guide ribs 173 may also be positioned rearward of the rear edge P5 but forward of the rear edge P7.
Third Embodiment
Next, a multifunction device according to a third embodiment will be described with reference to FIG. 13.
FIG. 13 shows a variation of the construction shown in FIG. 7. In the third embodiment, the shapes of the paper discharge rollers and the guide ribs differ from those in the first and second embodiments. Except for the structure of the paper discharge rollers and the construction of the guide ribs, the remaining construction is identical to that described in the first and second embodiments, and the description of this construction has been omitted. Further, like parts and components are designated with the same reference numerals to avoid duplicating description.
In the multifunction device 1 according to the third embodiment, the paper discharge rollers 145 at the paper discharge outlet 124 are configured to discharge paper so that a convex part 3 a is formed in a portion of the paper in the widthwise direction, and concave parts 3 b that are concave on the top side of the paper 3 are formed at different positions than the convex part 3 a in the widthwise direction. Guide ribs 273 have lower edges 271 set at positions conforming to the shapes of the convex part 3 a and concave parts 3 b. Hence, the paper discharge rollers 145 are configured to discharge the paper in an undulated state. At the same time, the ends 271 of the guide ribs 273 follow the shape of the discharge paper. Hence, the guide ribs 273 are configured to absorb impact and friction with the paper over the entire width of the paper.
The paper is discharged through the paper discharge outlet 124 by the pairs of discharge rollers 145. In the preferred embodiment, each pair of the discharge rollers 145 includes one curved roller 145 b and a roller 145 a having a smaller width than the curved roller 145 b. The curved roller 145 b and roller 145 a rotate while in contact with each other so that a sheet of paper being discharged by the discharge rollers 145 is partially curved in the widthwise direction. In the example shown in FIG. 13, two of the curved rollers 145 b are provided, thereby generating the concave parts 3 b in two locations. The formation of the concave parts 3 b also produces a convex part 3 a between the concave parts 3 b so that the paper is undulated across the entire width when discharged from the paper discharge rollers 145.
Since the lower edges 271 of the guide ribs 273 conform to the curvature of the paper with this construction, the curved paper can be guided by the guide ribs 273 with suitable support.
Fourth Embodiment
Next, a multifunction device according to a fourth embodiment of the present invention will be described with reference to FIG. 14. In the fourth embodiment only the shape of the grip part differs from that in the first embodiment. The remaining structure of the multifunction device is substantially the same as that in the first embodiment, and a detailed description of this structure has been omitted. Further, like parts and components have been designated with the same reference numerals. As shown in FIG. 14, a grip part 177 for moving the image reading unit 70 is configured as a protrusion that protrudes downward from the underside surface 70 a of the image reading unit 70. The grip part 177 has a beveled part 177 a on the surface nearest the pair of the discharge rollers 45. The beveled part 177 a is sloped at an angle less than 90°, and preferably around 45°, with the lower panel surface 100 b of the control panel 100. When the paper moves by the grip part 177 during a discharge operation, the beveled part 177 a formed on the grip part 177 is configured to guide the paper forward without applying much resistance.
As in the first embodiment, the discharge rollers 45 of the fourth embodiment are configured to discharge the paper at an upward and forward slant. While being conveyed by the discharge rollers 45, the discharged paper contacts the lower edges 71 of the guide ribs 73 at a position that is rearward of the grip part 177 toward the pair of the discharge rollers 45 (specifically the contact position P4 described in the first embodiment). The paper is then guided forward along the lower edges 71 of the guide ribs 73. However, the multifunction device may be configured to discharge paper so that the paper directly contacts the grip part 177 on the underside surface 70 a. With this configuration, the beveled part 177 a can effectively suppress effects of the impact.
Fifth Embodiment
Next, a multifunction device according to a fifth embodiment of the present invention will be described with reference to FIG. 15.
The fifth embodiment differs from the first embodiment in that follow rollers are disposed on the bottom surface of the image reading unit 70. The remaining structure is identical to that described in the first embodiment, and a detailed description of this structure has been omitted. Further, like parts and components have been designated with the same reference numerals.
In addition to the construction of the first embodiment, the multifunction device of the fifth embodiment is further provided with follow rollers disposed on the underside surface 170 a of the image reading unit 70. The follow rollers roll along with the movement of paper discharged through the paper discharge port 24 in response to contact from the paper. In this example, the follow rollers are configured of a spur 120 and a roller 122 that are rotatably supported on the underside surface 170 a of the main reading unit body 170. When discharged paper contacts the spur 120 and the roller 122, the spur 120 and roller 122 guide the discharged paper, reducing friction generated between the paper and the lower edges 71 of the guide ribs 73.
While the guiding effects of the underside surface 170 a are enhanced by providing both the guide ribs 73 and the spur 120 and roller 122 as in the example shown in FIG. 15, it is also possible to omit the guide ribs 73 from the underside surface 170 a. In this case, the underside surface 70 a, per se. is configured to have the same shape with the lower edges 71 of the guide ribs 73 of the first embodiment in the XY plane. It is also possible to provide only the spur 120, only the roller 122, or a plurality of the spurs 120 or rollers 122.
While the invention has been described in detail with reference to specific embodiments thereof, it would be apparent to those skilled in the art that many modifications and variations may be made therein without departing from the spirit of the invention, the scope of which is defined by the attached claims.
(1) For example, the multifunction device of the embodiments described above is capable of forming images on various types of paper. However, the present invention may also be applied to a multifunction device that can form images on transparency sheets, fabric, or the like.
(2) Further, the multifunction device may be configured to allow an operator to remove only the developing cartridge 28, while the drum cartridge 26 of the process unit 17 remains in the multifunction device 1.
1. An image-forming device comprising: an image-forming unit forming images on a recording sheet; a sheet discharge unit discharging, in a sheet discharging direction, a recording sheet formed with an image by the image-forming unit; a sheet support unit disposed above the image-forming unit, and supporting sheet discharged from the sheet discharge unit; and a reading unit disposed above the sheet support unit, with an underside surface of the reading unit opposing a top surface of the sheet support unit, the sheet discharge unit being configured to discharge the sheet diagonally upwardly so that sheet discharged by the sheet discharge unit contacts the underside surface of the reading unit.
2. An image-forming device according to claim 1, wherein the sheet discharge unit is configured to discharge the sheet diagonally upwardly in a direction at a discharge angle θ from the horizontal, so that sheet discharged by the sheet discharge unit contacts the underside surface of the reading unit.
| 31,685 |
https://github.com/javra/lean/blob/master/tests/lean/run/congr_imp_bug.lean
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022 |
lean
|
javra
|
Lean
|
Code
| 448 | 900 |
----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
----------------------------------------------------------------------------------------------------
open function
namespace congr
inductive struc [class] {T1 : Type} {T2 : Type} (R1 : T1 → T1 → Prop) (R2 : T2 → T2 → Prop)
(f : T1 → T2) : Prop :=
mk : (∀x y : T1, R1 x y → R2 (f x) (f y)) → struc R1 R2 f
definition app {T1 : Type} {T2 : Type} {R1 : T1 → T1 → Prop} {R2 : T2 → T2 → Prop}
{f : T1 → T2} (C : struc R1 R2 f) {x y : T1} : R1 x y → R2 (f x) (f y) :=
struc.rec id C x y
inductive struc2 {T1 : Type} {T2 : Type} {T3 : Type} (R1 : T1 → T1 → Prop)
(R2 : T2 → T2 → Prop) (R3 : T3 → T3 → Prop) (f : T1 → T2 → T3) : Prop :=
mk2 : (∀(x1 y1 : T1) (x2 y2 : T2), R1 x1 y1 → R2 x2 y2 → R3 (f x1 x2) (f y1 y2)) →
struc2 R1 R2 R3 f
definition app2 {T1 : Type} {T2 : Type} {T3 : Type} {R1 : T1 → T1 → Prop}
{R2 : T2 → T2 → Prop} {R3 : T3 → T3 → Prop} {f : T1 → T2 → T3}
(C : struc2 R1 R2 R3 f) {x1 y1 : T1} {x2 y2 : T2}
: R1 x1 y1 → R2 x2 y2 → R3 (f x1 x2) (f y1 y2) :=
struc2.rec id C x1 y1 x2 y2
theorem compose21
{T2 : Type} {R2 : T2 → T2 → Prop}
{T3 : Type} {R3 : T3 → T3 → Prop}
{T4 : Type} {R4 : T4 → T4 → Prop}
{g : T2 → T3 → T4} (C3 : congr.struc2 R2 R3 R4 g)
⦃T1 : Type⦄ -- nice!
{R1 : T1 → T1 → Prop}
{f1 : T1 → T2} (C1 : congr.struc R1 R2 f1)
{f2 : T1 → T3} (C2 : congr.struc R1 R3 f2) :
congr.struc R1 R4 (λx, g (f1 x) (f2 x)) := struc.mk (take x1 x2 H, app2 C3 (app C1 H) (app C2 H))
theorem congr_and : congr.struc2 iff iff iff and := sorry
theorem congr_and_comp [instance] {T : Type} {R : T → T → Prop} {f1 f2 : T → Prop}
(C1 : struc R iff f1) (C2 : struc R iff f2) :
congr.struc R iff (λx, f1 x ∧ f2 x) := congr.compose21 congr_and C1 C2
end congr
| 15,308 |
https://github.com/tgouvea/springboot-angular5-backend/blob/master/src/main/java/com/tiagogouvea/api/security/JwtTokenFilter.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022 |
springboot-angular5-backend
|
tgouvea
|
Java
|
Code
| 177 | 671 |
package com.tiagogouvea.api.security;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.web.filter.OncePerRequestFilter;
/**
* Classe repsonsavel por filtrar o token e identificar se ele é valido ou não.
* @author oi404118
*
*/
public class JwtTokenFilter extends OncePerRequestFilter{
@Autowired
private UserDetailsService UsuarioDetailsService;
@Autowired
private JwtTokenUtil jwtTokenUtil;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
//Obtem o header de autorização
String token = request.getHeader("Authorization");
//Se token vazio não verificar
if(token != null && !"".equals(token)) {
//Recupera o nome de usuário do token
String nomeUsuario = jwtTokenUtil.obterNomeUsuarioDoToken(token);
if (nomeUsuario != null && SecurityContextHolder.getContext().getAuthentication() == null) {
//Recupera informações do usuário através do nome do usuário
UserDetails userDetails = this.UsuarioDetailsService.loadUserByUsername(nomeUsuario);
//Valida o token
if (jwtTokenUtil.validarToken(token, userDetails)) {
//Se token valido define as informações de autorização do usuário no contexto de segurança do spring
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());
authenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
logger.info("Usuário autenticado " + nomeUsuario + ", definindo contexto de segurança");
SecurityContextHolder.getContext().setAuthentication(authenticationToken);
}
}
}
filterChain.doFilter(request, response);
}
}
| 31,569 |
https://github.com/ahyiru/test-dh/blob/master/adminconsole/scripts/modules/accessKeys.js
|
Github Open Source
|
Open Source
|
MIT
| 2,015 |
test-dh
|
ahyiru
|
JavaScript
|
Code
| 493 | 1,669 |
app.module("Modules.Networks", function (users, app) {
var accessKeysCollection;
var networksCollection;
var devicesCollection;
var currentAccessKey;
var currentUser;
var accessKeysView;
var accessKeyEditView;
var showAccessKeys = function (userId) {
var retIt = $.Deferred();
var twacv = app.Regions.topWorkArea.currentView;
if (!(_.isUndefined(twacv)) && twacv == accessKeysView && ((currentUser == null && userId == null) || (currentUser != null && currentUser.id == userId))) {
retIt.resolve();
}
else {
var hasUser = $.Deferred();
var accessKeysCollectionOptions = null;
if (userId != null) {
currentUser = new app.Models.User({ id: userId });
currentUser.fetch({
success: function () {
accessKeysCollectionOptions = { userId: currentUser.id };
hasUser.resolve();
}
});
}
else {
currentUser = null;
hasUser.resolve();
}
hasUser.done(function() {
app.getCollection("AccessKeysCollection", accessKeysCollectionOptions).done(function (accessKeys) {
accessKeysCollection = accessKeys;
if (accessKeysCollection != null) {
app.getCollection("NetworksCollection").done(function(networks) {
networksCollection = networks;
app.getCollection("DevicesCollection").done(function(devices) {
devicesCollection = devices;
accessKeysView = new app.Views.AccessKeys({
collection: accessKeysCollection,
networks: networks,
devices: devices,
user: currentUser
});
var pathPrefix = userId == null && "accesskeys" || ("user/" + userId + "/accesskeys");
accessKeysView.on("itemview:edit", function (viewObject) {
var path = pathPrefix + "/" + viewObject.model.id;
Backbone.history.navigate(path, { trigger: true });
});
accessKeysView.on("addClicked", function () {
var path = pathPrefix + "/create";
Backbone.history.navigate(path, { trigger: true });
});
accessKeysView.on("backClicked", function () {
Backbone.history.navigate("user", { trigger: true });
});
accessKeysView.on("itemview:deleted", function (source, id) {
// close open view on delete
var bwacv = app.Regions.bottomWorkArea.currentView;
if (!(_.isUndefined(bwacv)) && bwacv == accessKeyEditView && currentAccessKey != null && id == currentAccessKey.id) {
Backbone.history.navigate(pathPrefix, { trigger: true });
}
});
app.Regions.topWorkArea.show(accessKeysView);
retIt.resolve();
});
})
}
else {
retIt.resolve();
}
});
});
}
return retIt;
};
var editAccessKey = function(userId, id) {
var retIt = $.Deferred();
var bwacv = app.Regions.bottomWorkArea.currentView;
if (!(_.isUndefined(bwacv)) && bwacv == accessKeyEditView && currentAccessKey != null && id == currentAccessKey.id &&
((currentUser == null && userId == null) || (currentUser != null && currentUser.id == userId))) {
retIt.resolve();
}
else {
if (id == "create") {
currentAccessKey = new app.Models.AccessKey({ }, { collection: accessKeysCollection });
}
else {
currentAccessKey = accessKeysCollection.find(function(ak) {
return ak.id == id;
});
}
accessKeyEditView = new app.Views.AccessKey({
model: currentAccessKey,
networks: networksCollection,
devices: devicesCollection,
user: currentUser
});
var path = userId == null && "accesskeys" || ("user/" + userId + "/accesskeys");
accessKeyEditView.on("cancel", function() {
if (app.Regions.bottomWorkArea.currentView == accessKeyEditView)
app.Regions.bottomWorkArea.close();
Backbone.history.navigate(path, { trigger: false });
});
accessKeyEditView.on("success", function(accessKey) {
if (!accessKeysCollection.find(function (ak) { return ak.id == accessKey.id; }))
{
accessKeysCollection.add(accessKey);
}
accessKeysCollection.sort();
if (app.Regions.bottomWorkArea.currentView == accessKeyEditView)
app.Regions.bottomWorkArea.close();
Backbone.history.navigate(path, { trigger: false });
});
app.Regions.bottomWorkArea.show(accessKeyEditView);
retIt.resolve();
}
return retIt;
};
var controller = {
accessKeys_show: function (userId) {
app.vent.trigger("startLoading");
showAccessKeys(userId).done(function () {
app.vent.trigger("stopLoading");
app.Regions.bottomWorkArea.close();
});
},
accessKeys_edit: function (userId, id) {
app.vent.trigger("startLoading");
// may be invoked as (userId, id) or (id)
if (id == null) {
id = userId;
userId = null;
}
showAccessKeys(userId).pipe(function() {
editAccessKey(userId, id);
}).done(function() {
app.vent.trigger("stopLoading");
});
}
};
var routes = {
"accesskeys": "accessKeys_show",
"accesskeys/:id": "accessKeys_edit",
"user/:userId/accesskeys": "accessKeys_show",
"user/:userId/accesskeys/:id": "accessKeys_edit"
};
var router = Backbone.Marionette.AppRouter.extend({ controller: controller, appRoutes: routes });
app.addInitializer(function (options) {
var rtr = new router();
});
app.bind("initialize:after", function (options) {
app.vent.trigger("addResource", "accesskeys", "Access Keys");
});
});
| 25,647 |
https://github.com/COMSYS/cppl/blob/master/Makefile
|
Github Open Source
|
Open Source
|
MIT, LicenseRef-scancode-public-domain, Apache-2.0
| 2,018 |
cppl
|
COMSYS
|
Makefile
|
Code
| 192 | 887 |
USE_SYSTEM_JSONCPP = 1
CC := g++
CPPFLAGS := -std=c++11 -O3
#CPPFLAGS += -gdwarf-4 -fvar-tracking-assignments
COMMON_OBJS := policy_definition.o\
policy_header.o\
policy_stack.o\
relation_set.o\
variable_set.o\
function_handler.o\
binary.o\
performance.o\
debug.o\
policy_stack_processor.o
ifeq ($(USE_SYSTEM_JSONCPP), 0)
COMMON_OBJS += jsoncpp.o
LIBHSONCPP :=
else
LIBJSONCPP := -ljsoncpp
endif
COMPRESS_OBJS := ast_print_visitor.o\
ast_preprocessor_visitor.o\
ast_policy_compressor_visitor.o
EVAL_OBJS := simple_reason_printer.o false_reason_printer.o dnf_convertor.o
OBJECTS := $(COMMON_OBJS) $(COMPRESS_OBJS) $(EVAL_OBJS)
LIB := -lboost_program_options $(LIBJSONCPP)
DOT_CC := equation_parser.tab.cc equation_scanner.lex.cc equation_driver.cc
RM := rm -f
MAKE := make
all: cppl_generator cppl_compress cppl_evaluate policy-decision-point
cppl_generator: cppl_generator.cc $(DOT_CC) $(OBJECTS)
$(CC) $(CPPFLAGS) -o $@ $^ $(LIB)
cppl_evaluate: cppl_evaluate.cc $(COMMON_OBJS) $(EVAL_OBJS)
$(CC) $(CPPFLAGS) -o $@ $^ $(LIB)
cppl_compress: cppl_compress.cc $(DOT_CC) $(COMMON_OBJS) $(COMPRESS_OBJS)
$(CC) $(CPPFLAGS) -o $@ $^ $(LIB)
equation_parser.tab.cc: equation_parser.yy
bison -d equation_parser.yy
equation_scanner.lex.cc: equation_scanner.ll
flex -o equation_scanner.lex.cc equation_scanner.ll
jsoncpp.o: jsoncpp.cpp json/json.h
$(CC) -c $(CPPFLAGS) $<
performance.o: performance.c performance.h
$(CC) -c $(CPPFLAGS) $<
.SECONDARY:$(OBJECTS)
%.o: %.cc %.hh options.hh debug.hh
$(CC) -c $(CPPFLAGS) $<
.PHONY: policy-decision-point
policy-decision-point:
$(MAKE) -C policy-decision-point
.PHONY: python-module
python-module:
$(MAKE) -C python-module
test:
make -C examples/test_cases/
make -C examples/test_cases/ clean
clean:
$(RM) cppl_generator cppl_compress cppl_evaluate
$(RM) equation_parser.tab.hh equation_parser.tab.cc
$(RM) equation_scanner.lex.cc
$(RM) position.hh location.hh stack.hh
$(RM) *.o
#delete output from reason printer
$(RM) *.json
$(MAKE) clean -C policy-decision-point
$(MAKE) clean -C python-module
| 9,090 |
https://github.com/KalgogSmash/libkml-unboosted/blob/master/examples/python/hellopoint.py
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,021 |
libkml-unboosted
|
KalgogSmash
|
Python
|
Code
| 351 | 688 |
#!/usr/bin/env python
# Copyright 2008, Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# 3. Neither the name of Google Inc. nor the names of its contributors may be
# used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# This program demonstrates use of the KML DOM Python SWIG bindings
# for creating a <Point> <Placemark> and serializing out to XML.
import sys
import kmldom
def main():
print '== This is %s' % sys.argv[0]
factory = kmldom.KmlFactory_GetFactory()
print 'Create a Point Placemark...'
print 'Create coordinates...'
coordinates = factory.CreateCoordinates()
coordinates.add_latlng(37.38,-122.123)
print 'Create Point and set coordinates...'
point = factory.CreatePoint()
point.set_coordinates(coordinates)
print 'Create Placemark and set geometry...'
placemark = factory.CreatePlacemark()
placemark.set_geometry(point)
print placemark.has_geometry()
print 'Create kml and set feature...'
kml = factory.CreateKml()
kml.set_feature(placemark)
print 'Serialize to xml...'
print kmldom.SerializePretty(kml)
# Python deletes placemark which in turn deletes point
# which in turn deletes coordinates.
if __name__ == '__main__':
main()
| 13,879 |
https://bs.wikipedia.org/wiki/NGC%206691
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
NGC 6691
|
https://bs.wikipedia.org/w/index.php?title=NGC 6691&action=history
|
Bosnian
|
Spoken
| 180 | 468 |
NGC 6691 (također poznat kao IRAS 18382+5535, MCG 9-30-31, PGC 62202 i UGC 11318) je prečkasta spiralna galaksija koja je udaljena oko 270 miliona sg od Zemlje i nalazi se u sazviježđu Zmaj. Najveći prečnik je 1,60 (126 hiljada sg) a najmanji 1,5 uglovnih minuta (118 hiljada sg). Prvo otkriće je napravio Lewis Swift 16. augusta 1884. godine.
Najbliži NGC/IC objekti
Sljedeći spisak sadrži deset najbližih NGC/IC objekata.
Također pogledajte
Novi opći katalog
Spisak NGC objekata
Spisak galaksija
Bilješke
Prividna magnituda od 12,9 – Apsolutna magnituda: M = m - 5 ((log10 DL) - 1), gdje je m=12,9 i DL=82,9 * 106.
1,60 uglovnih minuta – S = A * D * 0,000291 * P, gdje je A=1,60, D=82,9 i P = 3,2616.
Bazirano na euklidsku udaljenost.
Reference
Literatura
Vanjski linkovi
NGC 6691
NGC 6691 na Aladin pregledaču
NGC katalog
Interaktivni NGC Online Katalog
Astronomska baza podataka SIMBAD
NGC katalog na Messier45.com
NGC/IC projekt
NGC2000 na NASA sajtu
NGC na The Night Sky Atlas sajtu
IRAS objekti
MCG objekti
NGC objekti
PGC objekti
Prečkaste spiralne galaksije
UGC objekti
Zmaj (sazviježđe)
| 1,784 |
congressionalrec135cunit_478
|
English-PD
|
Open Culture
|
Public Domain
| 1,873 |
Congressional record
|
United States. Congress
|
English
|
Spoken
| 8,062 | 13,989 |
CRIME AND VICTIMIZATION Mr. Speaker, you may be aware that the Subcommittee on Health and Long-Term Care, which I chair, has over the past decade investigated a wide variety of frauds against Americans of all ages. These fraudulent schemes assume a wide variety of forms, including travel scams, bogus medical remedies and other types of health fraud, investment schemes, land fraud, and the sale of worthless yet costly insurance. Each and every one of us has had countless numbers of constituents who have been duped by the perpetrators of these activities. There can be no doubt that fraud is current- ly a profitable business. Hearings conducted by our subcommittee revealed that our citi- zens were being defrauded out of $10 billion per year through phony medical cures and procedures alone. Taken together, the cost of all types of consumer fraud is astronomical. The time has come to take action. The exist- ing mail and wire fraud statutes have two seri- ous shortcomings which hamper their effec- tiveness in protecting consumers. First, under current law, the perpetrator of a fraud, no matter how large or serious in scope, is often allowed to keep the profits and proceeds from his Of her illegal scheme after serving a brief sentence and paying a negligible fine. Second, the law does not contain any effec- tive provisions to assure that the victims of fraud are compensated for their losses. Consumer protection would be greatly en- hanced by connecting these two deficiencies through legislation I have introduced called the Fraud Victims Restitution Act. It would make the practice of fraud much less attrac- tive by providing for t)Oth civil and criminal for- feiture for mail and wire fraud— allowing the Government to deprive violators of their illicit profits before they have an opportunity to dis- pense with or hide them. This mechanism, which contains proper safeguards to protect the property rights of innocent third parties- including creditors— has proven effective in combating drug trafficking and the peddling of child pornography. Administrative costs would be minimal and would be borne out of the funds seized. More importantly, the Fraud Victims Restitu- tion Act would require that the profits and pro- ceeds seized from the fraudulent schemers be returned to the rightful owners, the victims. Often now, the victims of consumer frauds never see their money again. For sonw vic- tims, that means that their home or life sav- ings are gone forever. EXTENSIONS OF REMARKS The Fraud Victims Restitution Act, devel- oped through close consultation with national consumer and law enforcement experts, would be a dramatic step forward in consumer protection, stopping the alarming Increase in number of these fraudulent schemes and re- ducing the number of victims. Another area of concern noted by our sub- committee involves the increasing incidence of physical, financial, and emotional abuse perpetrated against the elderty at the hands of their loved ones or those entrusted with their care. Truly, abuse of the elderty Is a national disgrace. It is sad enough that each year around 4 percent, or over 1.1 million elderty Americans may be victims of abuse. It is sadder still that despite State efforts to strengthen legislation to protect estimates that dropouts cost us an- other 5 percent of lost income, or $11.6 bil- lion, in additional welfare payments. Some will argue we cannot afford to mount a large-scale, national effort. I say we cannot afford not to. Dropouts add to the deficit. A recent study estimated that new dropouts from 1 year's class, over their lifetime, will cost us $88 billion in lost tax revenues. We owe it to our children, and to ourselves, to act now and to act decisively. I have intro- duced a bill to set a national goal to improve our high school completion rate by the year 2000. The measure calls on the State to submit plans and provides States with the in- centives and resources to meet their goals. The bill safeguards that funds will be used in the schools that most need assistance and in- sures that graduation requirements will not be lowered. This is a propitious time to act. President Bush plans to make his administration the education Presidency. Dr. Lauro Cavazos who is the Secretary of Education had indicated that the dropout problem is one of his prior- ities. It would be a shame not to accept the challenge. CONCLUSIONS; A TIME TO ACT The lack of health care, the need to assure adequate incomes, affordable and safe hous- ing, the desire to safeguard young and old from abuse and criminal victimization, and the pressing demands of changing and aging fam- ilies should move us as a nation to move. It is time that we, a nation still steeped in prosperity, develop policies and enact reforms to assist our most treasured unit, the family. It is time we stop institutionalizing our chronical- ly ill and time we developed alternatives types of care such as home health care, day care and the like. It is time we stop warehousing our mentally ill in unlicensed and uncaring board and care homes and improve the qual- ity of care that such homes can provide. It is time we guarantee each child born in America the education he or she needs in order to pursue the happiness envisioned by our great Constitution. It is time we place into action our agenda for keeping America's families together— before the 20th century njns out. 8113 system for a computerized schedule of all meetings and hearings of Senate committees, subcommittees, joint com- mittees, and conunittees of conference. This title requires all such committees to notify the Office of the Senate Daily Digest— designated by the Rules Committee— of the time, place, and purpose of the meetings, when sched- uled, and any cancellations or changes in the meetings as they occur. As an additional procedure along with the computerization of this infor- mation, the Office of the Senate Daily Digest will prepare this information for printing in the Extensions of Re- marks section of the Congressional Record on Monday and Wednesday of each week. Any changes in committee schedul- ing will be indicated by placement of an asterisk to the left of the name of the unit conducting such meetings. Meetings scheduled for Thursday, May 4. 1989. may be found in the Daily Digest of today's Record. SENATE COMMITTEE MEETINGS Title IV of Senate Resolution 4, agreed to by the Senate on February 4. 1977, calls for establishment of a Meetings Scheduled MATS 9:15 a.m. Bantcing, Housing, and Urban Affairs To hold hearings to review the Depart- ment of Treasury's report to Congress on International economic and ex- change rate policy. SD-538 9:30 a.m. Appropriations Labor. Health and Human Services, Edu- cation Subcommittee To hold hearings on proposed budget es- timates for certain programs of the Departments of Labor. Health and Human Services, Education and Relat- ed Agencies. SD-192 Foreign Relations To hold hearings on the nominations of Ronald Prank Lehman II. of Virginia, to be Director of the U.S. Arms Con- trol and Disarmament Agency and Richard Reeves Burt, of Arizona, for the rank of Ambassador during his tenure of service as Head of Delega- tion on Nuclear and Space Talks and Chief Negotiator on Strategic Nuclear Arms. „^ ^.„ SD-419 Select on Indian Affairs To hold hearings on S. 611, to esUblish administrative procedures to deter- mine the sUtus of certain Indian ^■•°"P^- SR-486 Joint Economic To hold hearings on the employment- unemployment situation for April. 2359 Raybum Building 10:00 a.m. Appropriations Legislative Branch Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for the U- brary of Congress, Government Print- ing Office, and the Copyright Royalty Tribunal. „„ ,.„ SD-116 8114 OovemmenUl Affairs Oovemment Information and Regulation Subcommittee To hold oversight hearings on issues rel- evant to the 1990 Census. SI>-342 Judiciary Constitution Subcommittee To hold hearings on S. 386. to control the sale and importation of assault weapons, and S. 747. to protect the rights of legal owners while attacking the problems associated with the ille- gal use of assault weapons. SD-336 MAYS •:30 a.m. Appropriations Labor. Health and Human Services. Edu- cation Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for certain programs of the Departments of Labor. Health and Human Services. Education and Related Agencies. SD-192 Commerce, Science, and Transportation Science, Technology, and Space Subcom- mittee To hold hearings on possible climate surprises— predicting greenhouse warming. SR-253 10:00 a.m. Energy and Natural Resources To hold hearings on S. 783. S. 625. and H.R. 1722. bills to eliminate wellhead price and nonprice controls on the first sale of natural gas and make cer- tain technical and confirming amend- ments to the Natural Gas Policy Act of 1978. SD-366 Oovemmental Affairs To hold hearings on the nomination of William M. Diefenderfer III. of Virgin- ia, to be Deputy Director, Office of Management and Budget. SD-342 2:00 p.m. Armed Services Readiness, SustainabUity and Support Subcommittee To hold open and closed hearings on proposed legislation authorizing funds for fiscal years 1990 and 1991 for the Department of E>efense. focusing on the readiness and sust&inability pos- ture of selected unified combatant commands. SR-222 Foreign Relations To resume hearings on proposed legisla- tion authorizing funds for foreign as- sistance program. SD-419 MAT 9 9:00 a.m. Governmental Affairs General Services. Federalism, and the Dis- trict of Columbia Subcommittee To hold hearings on Federal and State solutions to crime and drug abuse. SD-342 9:30 a.m. Agriculture. Nutrition, and Forestry AgrknUtural Credit Subcommittee To resume oversight hearings on the Farmers Home Administration imple- menutlon of the Agriculture Credit EXTENSIONS OF REMARKS Act of 1987 (PL. to borrowers. 100-233). as it relates SR-332 Commerce. Science, and Transportation To hold hearings on industry and gov- ernment cooperation to promote the commercialization of new technol- ogies. SR-2S3 Finance To hold hearings on the impact of Sec- tion 89. of the Tax Reform Act of 1986. nondiscrimination rules applica- ble to employer-provided fringe bene- fits. SD-215 9:45 a.m. Labor and Human Resources To hold hearings on the proposed Amer- icans with Disabilities Act of 1989. SD-430 10:00 a.m. Appropriations Defense Subcommittee To resume closed hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense. S-407, Capitol Foreign Relations To resume hearings on the nature and extent of the threat of chemical and biological weapons proliferation. SD-419 Judiciary To hold hearings on the use of steroids. SD-226 2:00 p.m. Foreign Relations Business meeting, to mark up S. 808. au- thorizing funds for fiscal year 1990 and 1991 for the Department of State. S. 809. authorizing funds for fiscal year 1990 and 1991 for the U.S. Infor- mation Agency, and S. 810. authoriz- ing funds for fiscal year 1990 and 1991 for the Board for International Broad- casting. SD-419 Select on Intelligence To resume closed hearings on proposed legislation authorizing funds for fiscal years 1990 and 1991 for the intelli- gence community. SH-219 2:30 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs, focusing on inter- national narcotics control. SD-192 Finance Business meeting, to hear and consider the nominations of Charles H. Dallara, of South Carolina, to be Deputy Under Secretary for International Af- fairs. HoUis S. McLoughlin, of New Jersey, to be Assistant Secretary for Policy Development, Roger Bolton, of Virginia, to be Assistant Secretary for Public Affairs and Public Liaison, and Key C. James, of Virginia, to be Assist- ant Secretary for Public Affairs of the Department of Health and Human Services. SD-215 Labor and Human Resources To hold hearings on S. 110. authorizing funds for fiscal years 1990, 1991. and 1992 for family planning programs, and S. 120. authorizing funds for fiscal year 1990. 1991, and 1992 for adoles- cent family projects. May 3, 1989 life demonstration SD-430 MAY 10 UMI 9:00 a.m. Foreign Relations International Economic Policy, Trade, Oceans and Environment Subcommit- tee To hold hearings on the replenishment of the Inter-American Development Bank. S-116, Capitol 9:30 a.m. Commerce. Science, and Transportation To hold hearings in conjunction with the National Ocean Policy Study on oil spill clean up assessment and pre- vention, focusing on clean up status contaiiunent and natural resource as- sessment. SR-253 Govenunental Affairs Permanent Subcommittee on Investiga- tions To hold hearings to review drug prob- lems in public housing projects. SD-342 10:00 a.m. Agriculture, Nutrition, and Forestry To hold joint hearings with the Commit- tee on Appropriations' Subcommittee on Foreign Operations on global envi- ronment issues. SD-192 Appropriations Foreign Operations Subcommittee To hold joint hearings with the Commit- tee on Agriculture, Nutrition, and For- estry on global environment issues. SD-192 Appropriations Conmierce. Justice. State, and Judiciary Subconunittee To hold hearings on proposed budget es- timates for fiscal year 1990 for the Su- preme Court of the United States. S-146. Capitol Armed Services Strategic Forces and Nuclear Deterrence Subcommittee To hold closed hearings on operational requirements of the Strategic Air Command, and proposed budget re- quest for fiscal years 1990 and 1991 for strategic forces. SR-222 Finance To hold hearings on the European Com- munity's [EC] Program to complete its Internal market by 1992. SD-215 Foreign Relations To hold hearings on the proposed FSX Co-development Project with Japan, and to consider Senate Joint Resolu- tion 113, prohibiting the export of technology, defense articles, and de- fense services to codevelop or copro- duce the FSX aircraft with Japan. SD-419 1:30 p.m. Commerce. Science, and Transportation Merchant Marine Subcommittee To hold hearings on oil spill clean up as- sessment and prevention, focusing on oU spill prevention and maritime regu- lation. SR-253 9:30 a.m. Agriculture Rural Deve tion Sul To hold 1 10:00 a.m. Approprlat Defense Sv To contli May 3, 1989 icy, Trade. Subcommit- plenUhment >evelopment 116. Capitol •estry he Commit- bcommittee global envi- d Judiciary >pean Com- omplete its Judiciary Constitution Subcommittee To hold hearings on S. 675. to eliminate discriminatory barriers to voter regis- tration. 8D-226 2:00 p.m. Appropriations Defense Subcommittee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focus- ing on the foreign policy context of de- fense. SD-138 Armed Services To resume hearings on proposed legisla- tion authorizing funds for fiscal years 1990 and 1991 for the Department of Defense, and to review a 5-year de- fense plan. SR-222 Foreign Relations Business meeting, to continue markup of S. 808. authorizing funds for fiscal years 1990 and 1991 for the Depart- ment of SUte. S. 809. authorizing funds for fiscal year 1990 and 1991 for the UJS. Information Agency, and S. 810, authorizing funds for fiscal years 1990 and 1991 for the Board of Inter- national Broadcasting. SD-419 MATH 9:30 a.m. Agriculture. Nutrition, and Forestry Rural Development and Rural Electrifica- tion Subcommittee To hold hearings on rural development. SR-332 Appropriations Labor. Health and Human Services, Edu- cation Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for certain programs of the Departments of Labor. Health and Human Services, Education and Related Agencies. SD-116 Commerce, Science, and Transportation Science, Technology, and Space Subcom- mittee To hold hearings on space transporta- tion. SR-253 Governmental Affairs To resume hearings on export controls over chemical biological materials. SD-342 10:00 a.m. Appropriations Defense Subconunlttee To continue open and closed hearings on proposed budget estimates for fiscal year 1990 for the Department of De- fense, focusing on the Strategic De- fense IiUtiative (SDI). SD-192 Appropriations Transportation Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for trans- portation trust funds. SD-138 Foreign Relations Business meeting, to continue mark up of S. 808. authorizing funds for fiscal years 1990 and 1991 for the Depart- ment of SUte, S. 809. authorizing funds for fiscal years 1990 and 1991 tor the U.S. Information Agency, and S. 810, authorizing funds for fiscal EXTENSIONS OF REMARKS years 1990 and 1991 for the Board for International Broadcasting. SD-419 1:30 p.m. Armed Services Defense Industry and Technology Sub- committee To hold hearings on recommendations for an aqulsltlon policy agenda. SR-222 2:00 p.m. Energy and Natural Resources Energy Research and Development Sub- committee To resume hearings on S. 83, to estab- lish the amount of costs of the De- partment of Energy's uranlimi enrich- ment program that have not previous- ly been recovered from enrichment customers in the charges of the De- partment of Energy to its customers. SD-366 Foreign Relations Business meeting, to continue mark up of S. 808. authorizing funds for fiscal years 1990 and 1991 for tne Depart- ment of State, S. 809, authorizing funds for fiscal years 1990 and 1991 for the U.S. Information Agency, and S. 810. authorizing funds for fiscal years 1990 and 1991 for the Board for International Broadcasting. SD-419 Select on Intelligence To resume closed hearings on proposed legislation authorizing funds for fiscal years 1990 and 1991 for the intelli- gence community. SH-219 2:30 p.m. Select on Indian Affairs To hold hearings on S. 321. to revise pro- visions of law that provide a prefer- ence to Indians. SR-485 MAT 12 9:30 a.m. Appropriations Labor. Health and Himmn Services, Edu- cation Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for certain programs of the Departments of Labor, Health and Human Services. Education and Related Agencies. SD-192 Foreign Relations To hold hearings on the nominations of Donald Phinney Gregg, of Maryland, to be Ambassador to the Republic of Korea and John Cameron Monjo, of Maryland, to be Ambassador to the Republic of Indonesia. SE>-419 Rules and Administration To hold joint hearings with the Select Committee on Indian Affairs on legis- lation to esUblish a National Museum of the American Indian within the Smithsonian Institution. SR-301 Select on Indian Affairs To hold joint hearings with the Commit- tee on Rules and Administration on legislation to establish a National Museum of the American Indian within the Smithsonian Institution. SR-301 10:00 a.m. Finance International Trade Subcommittee To hold hearings to explore the problem of Industrialized countries manlpulat- 8115 Ing the value of their currencies to maintain a trade surplus, and to dis- cuss the U.S. response to this practice. SD-21S MAT 16 9:30 a.m. Environment and Public Works Toxic Substances, Envlroimiental Over- sight. Research and Development Sub- committee To hold hearings to review procedures relating to the use of chemicals in food crops. SD-406 Governmental Affairs Government Information and Regulation Subcommittee To hold oversight hearings on Federal information policy. SD-342 10:00 a.nL Finance Social Security and Family PoUcy Sub- committee To hold hearings to review proposed reg- ulations to implement the Family Sup- port Act of 1988. SD-215 1:30 p.m. Appropriations VA, HUD, and Independent Agencies Sub- committee To hold hearings on proposed budget es- timates for fiscal year 1990 for the De- partment of Housing and Urban De- velopment. SD-138 2:00 p.m. Armed Services Projection Forces and Regional Defense Subcommittee To resume hearings on proposed legisla- tion authorizing funds for fiscal years 1990 and 1991 for the Department of Defense, focusing on aircraft carrier force structure management. SR-232A MAT 16 8:30 ajn. Office of Technology Assessment The Board, to meet to consider pending business. EF-100, Capitol 9:30 a.m. Agriculture. Nutrition, and Forestry Rural Development and Rural Electrifica- tion Subcommittee To resume hearings on rural develop- ment. SR-332 Governmental Affairs Oversight of Government Management Subcommittee To hold oversight hearings on the use of off-the-shelf items by the Department of Defense. SD-342 Select on Indian Affairs Business meeting, to mark up S. 321, to revise provisions of law that provide a preference to Indians; S. 402, to pro- vide for the settlement of land claims of Puyallup Tribe of Indians in the State of Washington; S. 611. to estab- lish administrative procedures to de- termine the status of certain Indian groups: and proposed legislation to es- tablish an Indian museum in the Dis- trict of Columbia. 8R-485 2»-«68 O-90-83 (Pt 6) 8116 10:00 a-on. Appropriations Defense Subcommittee To resume hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focusing on land warfare. SD-192 Appropriations VA. HUD, and Independent Agencies Sub- committee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Housing and Urban Development. SD-138 2:30 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs, focusing on the Office of the Inspector General. Office of Disaster Assistance, and American Schools and Hospitals Abroad. SD-138 MAT 17 9:30 a.m. Commerce, Science, and Transportation To hold oversight hearings in conjunc- tion with the National Ocean Policy Study on marine fisheries manage- ment. SR-253 Commerce, Science, and Transportation Science. Technology, and Space Subcom- mittee To hold hearings on space commercial- ization. SH-216 Governmental Affairs To hold hearings on biological weapons proliferation. SD-342 Rules and Administration Business meeting, to mark up S. 136, to establish a single poll closing time in the continental United States for Pres- idential general elections, S. 377, to es- tablish a series of five Presidential pri- maries. S. 874. to establish national voter registration procedures for Presi- dential and Congressional elections. S. 326. to repeal a provision of the Feder- al Election Campaign Act allowing use of excess contributions, and S.J. Res. 98. to establish separate appropriation accounts for the Senate and the House of Representatives for the payment of official mall costs. SR-301 10:00 a.m. Agriculture. Nutrition, and Forestry To resume hearings on trading practices in the commodity futures markets. SR-332 Commerce. Science, and Transportation Communications Sut>committee To hold hearings on proposed legislation authorizing funds for the Federal Communications Commission. SR-232A 1:00 pjn. AiH>ropriations Defense Subcommittee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focusing on Army posture. SD-192 EXTENSIONS OF REMARKS 2:00 p.m. Armed Services To hold hearings on proposed legislation authorizing funds for fiscal years 1990 and 1991 for defense programs of the Department of Energy. SR-222 MAY 18 8:00 a.m. Veterans' Affairs To hold hearings on certain provisions of S. 13, S. 165, S. 573, S. 574, S. 748, bills to strengthen and improve Veter- ans' health care programs. SR-418 9:00 a.m. Commerce. Science, and Transportation To continue oversight hearings in con- Junction with the National Ocean Policy Study on muine fisheries man- agement. SR-253 Commerce. Science, and Transportation Aviation Subcommittee To hold hearings on airline concentra- tion. SR-301 10:00 a.m. Appropriations Defense Subcommittee To continue open and closed hearings on proposed budget estimates for fiscal year 1990 for the Department of De- fense, focusing on space programs. SD-192 Appropriations VA, HUD, and Independent Agencies Sub- committee To hold hearings on proposed budget es- timates for fiscal year 1990 for the De- partment of Housing and Urban De- velopment and certain independent agencies. SD-116 Governmental Affairs To hold hearings on nuclear and missile proliferation. SD-342 2:00 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs, focusing on the Peace Corps, African Development Foundation. Inter-American Founda- tion, Overseas Private Investment Cor- poration, and Export-Import Bank. SD-138 MAY 19 9:30 a.m. Select on Indian Affairs To hold oversight hearings on the U.S. Civil Rights Commission's effects on the White Mountain Apache Tribe. SR-485 10:00 a.m. Appropriations VA, HUD. and Independent Agencies Sub- committee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Housing and Urban Development and certain inde- pendent agencies. SD-116 May 3, 1989 MAY 31 2:00 p.m. Appropriations Defense Subcommittee To resume hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focusing on seapower. SD-192 JUNEl 9:30 a.m. Energy and Natural Resources To hold hearings on S. 710, S. 711, S. 712, bills to provide for a referendum on the political status of Puerto Rico. SH-216 Governmental Affairs Oversight of Government Management Subcommittee To resume oversight hearings on the use of off-the-shelf items by the Depart- ment of Defense. 8D-342 10:00 a.m. Appropriations Defense Subcommittee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focus- ing on Navy posture. SD-192 1:30 p.m. Governmental Affairs To hold hearings on alcohol abuse pre- vention. SD-342 2:00 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs, focusing on Cen- tral America. SD-138 Energy and Natural Resources To continue hearings on S. 710, S. 711, S. 712, bills to provide for a referen- dum on the political status of Puerto Rico. SH-216 JXmE2 9:30 a.m. Energy and Natural Resources To continue hearings on S. 710, S. 711, S. 712, bills to provide for a referen- dum on the political status of Puerto Rico. SH-216 2:00 p.m. Energy and Natural Resources To continue hearings on S. 710, S. 711, S. 712, bills to provide for a referen- dum on the political status of Puerto Rico. SH-216 JUNE6 10:00 a.m. Appropriations Defense Subcommittee To resume hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focusing on tactical airpower. SD-192 2:00 p.m. Energy and Natural Resources Energy Research and Development Sub- committee To hold hearings on the status of cur- rent and future use of alternative 9:30 a.m. Commerce, ! Consumer S To hold hi authoriz Trade C UMI May 3, 1989 >posed budget 1990 for the , focusing on 10. S. 711, S. a referendum Puerto Rico. SH-216 Management igs on the use I the Depart- on proposed cal year 1990 defense, focus- lol abuse pre- SD-342 nittee sed budget es- 90 for foreign using on Cen- SD-138 3. 710, S. 711, for a referen- tus of Puerto motor vehicle fuels in the United States. SD-366 2:30 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs, focusing on the Middle East. Paldstan and Afghani- stan. SD-138 JUNE7 9:30 a.m. Commerce. Science, and Transportation Consumer Subcommittee To hold hearings on proposed legislation authorizing funds for the Federal Trade Commission. Governmental Affairs To resume hearings prevention. SR-253 on alcohol abuse SD-342 10:00 a.m. Appropriations Defense Subcommittee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focus- ing on Air Force posture. SD-192 JXJNE8 8:00 a.m. Veterans' Affairs To hold hearings on certain provisions of S. 13. S. 263. S. 584. bills to provide for Veterans' health care benefits and other related measures. SR-418 9:00 a.m. Appropriations Defense Subcommittee To continue hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense, focus- EXTENSIONS OF REMARKS ing on manpower and personnel pro- grams. SD-192 9:30 a.m. Commerce. Science, and Transportation Consumer Subcommittee To continue hearings on proposed legis- lation authorizing funds for the Feder- al Trade Commission. SR-253 JUNE 12 9:30 a.m. Govenmiental Affairs Government Information and Regulation Subcommittee To hold hearings on proposed legislation authorizing funds for programs of the Paperworlt Reduction Act. SD-342 JUNE 13 9:00 a.m. Appropriations Defense Subcommittee To resume open and closed hearings on proposed budget estimates for fiscal year 1990 for the Department of De- fense, focusing on strategic programs. SD-192 2:30 p.m. Appropriations Foreign Operations Subcommittee To hold hearings on proposed budget es- timates for fiscal year 1990 for foreign assistance programs. SD-138 JUNE 14 9:00 a.m. Veterans' Affairs To hold hearings on certain provisions of S. 13. S. 86. S. 192. S. 405. and S. 846. bills to strengthen and improve VA health care programs, and related measures. SR-418 8117 JUNE 15 9:00 a.m. Appropriations Defense Subcommittee To resume hearings on proposed budget estimates for fiscal year 1990 for the Department of Defense. SD-192 JUNE 16 9:30 a.m. Governmental Affairs Governmental Information and Regula- tions Subcommittee To resume hearings on proposed legisla- tion authorizing funds for programs of the Paperwork Reduction Act. SD-342 JUNE 22 8:00 a.m. Veterans' Affairs To hold hearings on S. 404. to extend certain Department of Veterans Af- fairs home loan guaranty provisions, and related measures. SR-418 JULY 20 9:30 a.m. Veterans' Affairs Business meeting, to marlt up proposed legislation to revise certain provisions of VA health care programs. Including S. 13. S. 86. S. 165. S. 192. S. 263. S. 405. S. 564. S. 574. S. 748, and S. 846. SR-418 CANCELLATIONS MAY 4 11:00 a.m. Judiciary Business meeting, to consider pending calendar business. SD-226 6S 3. 710. S. 711, for a referen- tus of I*uerto >posed budget 1990 for the . focusing on es lopment Sub- 8118 CONGRESSIONAL RECORD— HOUSE HOUSE OF REPRESENTATIVES— 77riir«</ai(, May 4, 1989 May I 1989 The Houae met at 10 a.m. The Chaplain. Rev. James David Ford. DJ}., offered the following prayer As we gather on this National E>ay of Prayer to raise our voices with people from all over this land, we offer our gratitude, O God, for the rich blessings You have given to us. As those who have gone before, may we also build on the spiritual foundations of Justice, righteousness, mercy, and peace. Gracious God. bless ail the people of our Nation as each seeks to be faithful to the responsibilities of the present time. We come to this spe- cial day of prayer with thanksgiving for the gifts of the past and earnestly pray that Tour spirit will lead us in all the days to come. In Your holy name, we pray. Amen. member to the Select Committee on Nsu-cotics Abuse and Control. THE JOURNAL The SPEAKER. The Chair has ex- amined the Journal of the last day's proceedings and announces to the House his approval thereof. Pursuant to clause 1, rule I, the Journal stands approved. PLEDGE OF ALLEGIANCE The SPEAKER. Will the gentlewom- an from Indiana [Ms. Long] kindly come forward and lead us in the Pledge of Allegiance? Ms. LONG led the Pledge of Alle- giance as follows: I pledge allegiance to the Flag of the United States of America, and to the Repub- lic for which It stands, one nation under Ood. indivisible, with Uberty and Justice for APPOINTMENT OF ADDITIONAL MAJORITY BCEMBER TO SELECT COMMITTEE ON HUNGER The SPEIAKER. Pursuant to the provisions of section 103. House Reso- lution 84, 101st Congress, the Chair appoints the gentleman from Oregon [Mr. AuConf] as an additional majori- ty member to the Select Committee on Hunger. APPOINTBiENT OP ADDITIONAL MINORITY BOACBER TO SELECT COMMITTEE ON NAR- COTICS ABUSE AND CONTROL The SPEAKER. Pursuant to the provisions of section 303, House Reso- lution 84. 101st Congress, the Chair appoints the gentleman from Florida [Mr. OHAirr] as an additional minority ANNOUNCEMENT BY THE SPEAKER The SPEAKER. The Chair will remind Members that there had been an agreement that we would go into the Committee of the Whole immedi- ately upon our convening today and would not have speeches under the 1- mlnute rule. CONCURRENT RESOLUTION ON THE BUDGET-FISCAL YEAR 1990 The SPEAKER. Pursuant to House Resolution 145 and rule XXIII, the Chair declares the House in the Com- mittee of the Whole House on the State of the Union for the further consideration of the concurrent reso- lution. House Concurrent Resolu- tion 106. D 1003 in THX COMMITTEB OF THK WHOLE Accordingly the House resolved itself into the Committee of the Whole House on the State of the Union for the further consideration of the concurrent resolution (House Con- current Resolution 106) setting forth the congressional budget for the U.S. Government for the fiscal years 1990, 1991, and 1992, with Mr. Afplegate [Chairman pro tempore] in the chair. The Clerk read the title of the bill. The CHAIRMAN. When the Com- mittee of the Whole rose on Wednes- day. May 3, 1989, all time for general debate had expired. Pursuant to House Resolution 145, the concurrent resolution is consid- ered as having been read for amend- ment imder the 5-minute rule. The text of House Concurrent Reso- lution 106 is as follows: H. CoH. Rks. 106 Resolved by the House of Repreaentatives (the Senate concurring). That the budget for fiscal year 1990 is established, and the appropriate budgetary levels for fiscal years 1991 and 1992 are hereby set forth. MAXIMUM DEFICIT AMOUNTS Sbc. 2. The following levels and amounts in this section are set forth for purposes of determining, in accordance with section 301(1) of the Congressional Budget and Im- poundment Control Act of 1974, as amended by the Balanced Budget and Emergency Deficit Control Act of 1985. whether the maximum deficit amount for a fiscal year has been exceeded, and as set forth in this concurrent resolution, shall be considered to be mathematically consistent with the other amounts and levels set forth in this concur- rent resolution: (1) The recommended levels of Federal revenues are as follows: Fiscal year 1990: $1,065,525,000,000. Fiscal year 1991: >1, 144,675.000.000. Fiscal year 1992: $1,216,450,000,000. (3) The appropriate levels of total new budget authority are as follows: Fiscal year 1990: $1,350,925,000,000. Fiscal year 1991: $1,470,125,000,000. Fiscal year 1992: $1,547,075,000,000. (3) The appropriate levels of total budget outlays are as follows: Fiscal year 1990: $1,165,250,000,000. Fiscal year 1991: $1,232,725,000,000. Fiscal year 1992: $1,281,275,000,000. (4) The amounts of the deficits are as fol- lows: Fiscal year 1990: $99,725,000,000. Fiscal year 1991: $88,050,000,000. Fiscal year 1992: $64,825,000,000. RECOMMENDED LEVELS AND AMOUNTS Sec. 3. (a) The following budgetary levels are appropriate for the fiscal years begin- ning on October 1. 1989, October 1. 1990. and October 1. 1991: (1) The recommended levels of Federal revenues are as follows: Fiscal year 1990: $776,325,000,000. Fiscal year 1991: $831,775,000,000. Fiscal year 1992: $884,350,000,000. and the amounts by which the aggregate levels of Federal revenues should be in- creased are as follows: Fiscal year 1990: $5,800,000,000. Fiscal year 1991: $6,200,000,000. Fiscal year 1992: $6,300,000,000. and the amounts for Federal Insurance Contributions Act revenues for hospital in- surance within the recommended levels of Federal revenues are as follows: Fiscal year 1990: $69,925,000,000. Fiscal year 1991: $75,200,000,000. Fiscal year 1992: $79,900,000,000. (2) The appropriate levels of total new budget authority are as follows: Fiscal year 1990: $1,061,175,000,000. Fiscal year 1991: $1,157,800,000,000. Fiscal year 1992: $1,214,050,000,000. (3) The appropriate levels of total budget outlays are as follows: Fiscal year 1990: $945,175,000,000. Fiscal year 1991: $1,001,075,000,000. Fiscal year 1992: $1,040,400,000,000. (4) The amounts of the deficits are as fol- lows: Fiscal year 1990: $168,850,000,000. Fiscal year 1991: $169,300,000,000. Fiscal year 1992: $156,050,000,000. (5) The appropriate levels of the public debt are as follows: Fiscal year 1990: $3,122,800,000,000. Fiscal year 1991: $3,374,100,000,000. Fiscal year 1992: $3,599,700,000,000. (6) The appropriate levels of total Federal credit activity for the fiscal years beginning on October 1, 1989. October 1, 1990, and Oc- tober 1, 1991, are as follows: Fiscal year 1990: (A) New direct loan obligations, $19,025,000,000. (B) New primary loan guarantee commit- menU. $107,325,000,000. Fiscal year 1991: (A) New direct loan obligations, $19,425,000,000. O This tymbol represenu the time of day during tlie House proceedings, e.g., D 1407 is 2K)7 p.m. Maner set in this typeface indicates words inserted or appended, ratiier than spoken, by a Member of the House on the floor. UMI May I 1989 CONGRESSIONAL RECORD— HOUSE 8119 I of Federal I of Federal obligations. (B) New primary loan guarantee commit- ment*, $114,875,000,000. Fiscal year 1M2: (A) New direct loan obligations. $19,150,000,000. (B) New primary loan guarantee commit- ments, $119,700,000,000. (b) The Congress hereby determines and declares the appropriate levels of budget au- thority and budget outlays, and the appro- priate levels of new direct loan obligations and new primary loan guarantee commit- ments for fiscal years 1990 through 1992 for each major functional category are: (I) National Defense (050): Fiscal year 1990: (A) New budget authority, $305,500,000,000. (B) Outlays. $299,200,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $0. Fiscal yearl991: (A) New budget authority, $319,175,000,000. (B) Outlays. $310,175,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $0. Fiscal yearl992: (A) New budget authority, $332,500,000,000. (B) Outlays. $322,425,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $0. (2) International Affairs ( 150): Fiscal year 1990: _^^ ^^_ (A) New budget authority, $18,300,000,000. (B) Outlays, $16,700,000,000. (C) New direct loan obligations, $1,775,000,000. ^ ,. (D) New primary loan guarantee commit- ments, $6,425,000,000. Fiscal year 1991: „ (A) New budget authority. $18,100,000,000. (B) Outlays, $16,575,000,000. (C) New direct loan obligations, $1,800,000,000. (D) New primary loan guarantee commit- ments. $6,675,000,000. Fiscal year 1992: (A) New budget authority. $18,850,000,000. (B) Outlays, $16,675,000,000. (C) New direct loan obligations, $1,850,000,000. (D) New primary loan guarantee commit- ments. $6,950,000,000. ^^ w ,„ (3) General Science, Space, and Technolo- gy (250): Fiscal year 1990: (A) New budget authority, $14,425,000,000. (B) Outlays, $14,125,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments, $0. SSew budget authority, $15,075,000,000. (B) Outlays, $14,950,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments, $0. FHseal year 1992: (A)New budget authority. $15,700,000,000. (B) OutUys, $15,350,000,000. (C) New direct loan obUgatlons, $0. (D) New primary loan guarantee commit- ments, $0. (4) Energy (270): miie&I vear 1990: (A)New budget authority, $5,800,000,000. (B) OuUays. $3,800,000,000. (C) New direct loan obUgations, $2,000,000,000. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority. $6,025,000,000. (B) Outlays, $3,950,000,000. (C) New direct loan obligations, $2,100,000,000. (D) New primary loan guarantee commit- ments, $0. Fiscal year 1992: (A) New budget authority. $6,600,000,000. (B) Outlays. $4,375,000,000. (C) New direct loan obligations, $2,250,000,000. (D) New primary loan guarantee commit- ments, $0. ^ ,^ . t (5) Natural Resources and Environment (300): Fiscal year 1990: (A) New budget authority, $17,075,000,000. (B) Outlays, $17,525,000,000. (C) New direct loan obligations, $50,000,000. (D) New primary loan guarantee commit- ments, $0. Fiscal year 1991: (A) New budget authority, $17,875,000,000. (B) Outlays, $18,275,000,000. (C) New direct loan obligations, $75,000,000. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority, $18,550,000,000. (B) Outlays, $18,600,000,000. (C) New direct loan obligations. $75,000,000. (D) New primary loan guarantee commit- ments, $0. (6) Agriculture (350): Fiscal year 1990: (A) New budget authority, $18,050,000,000. (B) Outlays, $14,975,000,000. (C) New direct loan obligations, $10,050,000,000. (D) New primary loan guarantee commit- ments, $5,400,000,000. Fiscal year 1991: (A) New budget authority, $20,350,000,000. (B) Outlays, $16,350,000,000. (C) New direct loan obligations, $10,225,000,000. (D) New primary loan guarantee commit- ments. $5,475,000,000. Fiscal year 1992: (A) New budget authority. $21,075,000,000. (B) Outlays. $15,725,000,000. (C) New direct loan obligations, $9,675,000,000. (D) New primary loan guarantee commit- ments, $5,425,000,000. (7) Commerce and Housing Credit (370): Fiscal year 1990: (A) New budget authority, $13,275,000,000. (B) Outlays, $8,150,000,000. (C) New direct loan obligations, $3,200,000,000. (D) New primary loan guarantee commit- ments, $60,500,000,000. Fiscal year 1991: (A) New budget authority, $25,450,000,000. (B) Outlays, $19,650,000,000. (C) New direct loan obligations, $3,300,000,000. (D) New primary loan guarantee commit- ments. $66,350,000,000. Fiscal year 1992: (A) New budget authority, $25,075,000,000. (B) Outlays. $19,875,000,000. (C) New direct loan obligations, $3,375,000,000. (D) New primary loan guarantee commit- ments, $69,625,000,000. (8) Transportation (400): Fiscal year 1990: (A) New budget authority, $29,850,000,000. (B) Outlays, $29,025,000,000. (C) New direct loan obligations, $50,000,000. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority, $30,550,000,000. (B) Outlays, $29,750,000,000. (C) New direct loan obligations, $50,000,000. (D) New primary loan guarantee commit- ments, $0. Fiscal year 1992: (A) New budget authority, $31,700,000,000. (B) OutUys. $30,825,000,000. (C) New direct loan obUgatlons, $50,000,000. (D) New primary loan guarantee commit- ments, $0. (9) Community and Regional Develop- ment (450): Fiscal year 1990: (A) New budget authority, $7,150,000,000. (B) Outlays, $6,775,000,000. (C) New direct loan obligations, $1,000,000,000. (D) New primary loan guarantee commit- ments. $500,000,000. Fiscal year 1991: (A) New budget authority, $7,050,000,000. (B) Outlays. $6,850,000,000. (C) New direct loan obligations. $1,050,000,000. (D) New primary loan guarantee commit- ments. $525,000,000. Fiscal year 1992: (A) New budget authority, $7,250,000,000. (B) Outlays, $6,825,000,000. (C) New direct loan obligations, $1,100,000,000. (D) New primary loan guarantee commit- ments, $550,000,000. (10) Education, Training. Employment, and Social Services (500): Fiscal year 1990: (A) New budget authority, $42,025,000,000. (B) Outlays. $39,075,000,000. (C) New direct loan obligations, $25,000,000. (D) New primary loan guarantee commit- ments, $13,125,000,000. Fiscal year 1991: (A) New budget authority, $43,375,000,000. (B) Outlays, $42,500,000,000. (C) New direct loan obligations. $25,000,000. (D) New primary loan guarantee commit- ments, $13,550,000,000. Fiscal year 1992: (A) New budget authority, $44,325,000,000. (B) Outlays, $43,800,000,000. (C) New direct loan obligations, $25,000,000. (D) New primary loan guarantee commit- ments, $13,850,000,000. (11) Health (550): Fiscal year 1990: (A) New budget authority. $57,850,000,000. (B) Outlays. $56,225,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $375,000,000. Fiscal year 1991: (A) New budget authority, $63,150,000,000. (B) Outlays. $62,050,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $400,000,000. Fiscal year 1992: (A) New budget authority, $69,350,000,000. (B) Outlays, $68,150,000,000. (C) New direct loan obligations, $0. 8120 CONGRESSIONAL RECORD— HOUSE May 4. 1989 UMI (D) New primary loan guarantee commit- ments. MOO.000.000. (12) Medicare (570): Fiscal year 1990: (A) New budget authority, $123,850,000,000. (B) Outlays. $98,350,000,000. (C) New direct loan obligaUons, $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority. $136,250,000,000. (B) Outlays. $112,800,000,000. (C) New direct loan obligations. $0. (O) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budcet authority. $149,550,000,000. (B) Outlays, $127,825,000,000. (C) New direct loan obligations. $0. (O) New primary loan guarantee commit- ments. $0. (13) Income Seciirlty (600): Fiscal year 1990: (A) New budget authority, $185,700,000,000. (B) Outlays. $145,650,000,000. (C) New direct loan obligations. $50,000,000. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority, $217,425,000,000. (B) Outlays. $155,600,000,000. (C) New direct loan obligations. $50,000,000. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority. $220,800,000,000. (B) Outlays. $164,725,000,000. (C) New direct loan obligations. $50,000,000. (D) New primary loan guarantee commit- ments. $0. (14) Social Security (650): Fiscal year 1990: (A) New budcet authority. $5,450,000,000. (B) Outlays. $5,425,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority, $4,250,000,000. (B) OutUys. $4,280,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority. $4,975,000,000. (B) Outlays. $4,950,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. (15) Veterans BeneflU and Services (700): Fiscal year 1990: (A) New budget authority. $31,000,000,000. (B) OutUys. $29,800,000,000. (C) New direct loan obligations, $825,000,000. (O) New primary loan guarantee commit- ments. $21,000,000,000. Fiscal year 1991: (A) New budcet authority. $32,100,000,000. (B) Outlays, $31,550,000,000. (C) New direct loan obligations, $750,000,000. (D) New primary loan guarantee commit- ments. $21,900,000,000. Fiscal year 1992: (A) New budget authority. $33,100,000,000. (B) Outlays, $32,675,000,000. (C) New direct loan obligations. $700,000,000. (D) New primary loan guarantee commit- ments. $22,900,000,000. (16) Administration of Justice (750): Fiscal year 1990: (A) New budget authority. $10,400,000,000. (B> Outlays. $9,950,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments, $0. Fiscal year 1991: (A) New budget authority. $11,550,000,000. (B) Outlays. $11,475,000,000. (C) New direct loan obligations, $0. (D) New primary loan giaarantee commit- ments, $0. Fiscal year 1992: (A) New budget authority. $12,100,000,000. (B) Outlays. $12,025,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments. $0. (17) General Government (800): Fiscal year 1990: (A) New budget authority. $10,050,000,000. (B) Outlays. $9,675,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee conunlt- ments, $0. Fiscal year 1991: (A) New budget authority, $10,425,000,000. (B) Outlays, $10,250,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority, $10,900,000,000. (B) Outlays, $10,200,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. (18) Net Interest (900): Fiscal year 1990: (A) New budget authority, $197,550,000,000. (B) Outlays. $197,550,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority, $214,150,000,000. (B) Outlays. $214,150,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority, $226,650,000,000. (B) Outlays, $226,650,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. (19) Allowances (920): Fiscal year 1990: (A) New budget authority, $0. (B) Outlays, -$19,275,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1991: (A) New budget authority, $0. (B) Outlays. -$45,200,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority, $0. (B) OutUys, -$65,925,000,000. (C) New direct loan obligations, $0. (O) New primary loan guarantee commit- ments, $0. (20) Undistributed Offsetting Receipts (950): Fiscal year 1990: (A) New budget authority, -$32,125,000,000. (B) Outlays. -$39,325,000,000. (C) New direct loan obligations, $0. (D) New primary loan guarantee commit- ments, $0. Fiscal year 1991: (A) New budget authority. -$34,525,000,000. (B) Outlays. -$34,875,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments. $0. Fiscal year 1992: (A) New budget authority, -$35,000,000,000. (B) Outlays, -$35,350,000,000. (C) New direct loan obligations. $0. (D) New primary loan guarantee commit- ments, $0. SENSE OF THE COlOf ITTXX ON THE BUDGET Sbc. 4. It Is the Intent of the Committee on the Budget of the House of Representa- tives that— (1) Congress shall present the revenue portion of the reconciliation bill to the President at the same time as the spending reduction provisions of the reconciliation biU: and (2) the specific measures composing the governmental receipts figure will be deter- mined through the regular legislative and constitutional process, and agreements reached between the administration and the Committee on Ways and Means on revenue legislation reconciled pursuant to this agree- ment win be advanced legislatively when supported by the President of the United States. RECONCIUATION Sec. 5. (a) Not later than June 30, 1989, the committees named in subsections (b) and (c) of this section shall submit their rec- ommendations to the Committees on the Budget of their respective Houses. After re- ceiving those recommendations, the Com- mittees on the Budget shall report to the House and Senate a reconciliation bill or resolution or both carrying out all such rec- ommendations without any substantive revi- sion. HOUSE COMMriTEES (bKl) The House Committee on Agricul- ture shall report (A) changes in laws within Its jurisdiction which provide spending au- thority as defined in section 401(c)(2)(C) of the Congressional Budget Act of 1974, suffi- cient to reduce budget authority and out- Uys, (B) changes in laws within its jurisdic- tion which provide spending authority other than as defined in section 401(c)(2)(C) of the Act, sufficient to reduce budget author- ity and outlays, or (C) any combination thereof, as foUows: $1,172,000,000 in budget authority and $1,092,000,000 in outlays In fiscal year 1990, $1,172,000,000 In budget au- thority and $1,155,000,000 In outlays in fiscal year 1991. and $1,072,000,000 in budget authority and $1,055,000,000 in out- Uys in fiscal year 1992. (2) The House Committee on Banking, Fi- nance, and Urban Affairs shall report (A) changes in laws within its jurisdiction which provide spending authority as defined in section 401(cK2KC) of the Congressional Budget Act of 1974, sufficient to reduce budget authority and outUys, (B) changes in Uws within Its Jurisdiction which provide spending authority other than as defined In May 4. 1989 CONGRESSIONAL RECORD— HOUSE 8121 HK BUDGET e Committee Representa- the revenue bill to the the spending econclliation mposing the lill be deter- glslative and agreements ition and the s on revenue \X) this agree- itively when ' the United uie 30, 1989, sections (b) nit their rec- 'tees on the ses. After re- s, the Com- eport to the ition bUI or all such rec- stantive revl- on Agricul- ; laws within spending au- 1(c)(2)(C) of f 1974. suffl- Ity and out- I its Jurisdic- hority other 1(c)(2)(C) of dget author- combination )0 In budget > outlays in n budget au- outlays in !,000.000 in ),000 in out- section 401(c)(2)<C) of the Act, sufficient to reduce budget authority and outlays, or (C) any combination thereof, as follows: $0 In budget authority and $587,000,000 in out- lays in fiscal year 1990. $0 in budget author- ity and $519,000,000 In outlays in fiscal year 1991, and $0 In budget authority and $591,000,000 in outlays in fiscal year 1992.
| 6,194 |
sn84026749_1934-06-29_1_1_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,934 |
None
|
None
|
English
|
Spoken
| 3,957 | 5,299 |
WASHINGTON FORECAST Fair and continued warm tonight and Saturday; cooler Sunday. (Details on Page 11.) MEAN TEMPERATURES Washington 85 Los Angeles 71 New York 74 San Francisco 70 Chicago 88 San Diego 65 Detroit 89 Portland, Ore 63 Atlanta 83 Omaha 93 BOARD ORDERS $1.10 SCALE FOR PWA CARPENTERS OCEAN FLIERS WELL ON WAY TO POLAND Adamowicz Brothers Make Perfect Take-Off From Harbor Grace HARBOR GRACE, Newfoundland, June 29 (1.N.5.). —The brothers Adamowicz, Poland bound, took off just after sunrise today in their plane, The City of Warsaw, at 6:26 a.m. After early indecision as to whether they would start today because of reported high pressure conditions off the coast of Ireland, Joseph and Benjamin Adamowicz ordered their big Bellanca plane trundled out on the runway. Perfect Take-Off Both had slept soundly and breakfasted heartily. They climbed into the cabin, shook hands with the airport officials and took over the controls. Heading into a mild wind the big, heavily loaded plane gathered speed and before the end of the runway was reached glided into the air with apparent ease. It was a perfect take-off. The flyers circled the field once gaining altitude and could be seen waving farewell by the few spectators gathered at the field in the cool of the morning. Then the plane headed east and another transatlantic flight had started. Hoiris Enthusiastic Most enthusiastic among those at the field Holgar Hoiris, the Danish flyer who had piloted The plane up from New York, he had checked the City of Warsaw and found everything in perfect condition before the flight. Ben Adamowicz took over the controls from him and it was he that guided the plane down the runway on the take-off. Hoiris threw his hat in the air when he saw the wheels leave the ground. He declared it was one of the best aeronautic performances he had ever witnessed. The fliers have gasoline to last them 40 hours. They expect to make Warsaw in 33 hours. They had thermos bottles of hot coffee, water, and roast chicken in their luncheon basket in the plane. As The City of Warsaw carried no radio equipment, it is not expected that the fliers will be heard from until they are sighted over Europe, unless by some chance a ship should sight them. Jury Clears Woman in Death of Child Mrs. Dorothy Clapp, 31, of the 3100 block Dumbarton Ave. N.W., was cleared by a coroner’s jury today of blame in connection with the death of Mary Agnes Beane, 4, of the 3800 block Alton Pl. N.W. The child died in Emergency Hospital, June 22, shortly after she had been struck by an automobile driven by Mrs. Clapp. Witnesses said the little girl ran in front of the car. Divisional Codes To Rule in Shipping By International News Service Abandoning all-hope-for a general shipping code, Recovery Administrator Johnson announced today that the Administration was working on divisional codes to regulate various phases of the industry. A general shipping code offered several weeks ago was rejected by President Roosevelt after objections had been filed by the Department of Agriculture and the State Department. . Lynching of Three Captives Is Feared SUTTON, W. Va., June 29 (AP).—Fearing that the three prisoners accused of murdering Deputy Sheriff Earl Bland in escaping from the county Jail would be lynched if returned here, Camden O. Roode, alias Harvey E. Hall, 30, Frametown; Raymond Mace, 19, Chemical, and Elliott Keener, 18, Dane, were taken to Charleston by State police soon after their capture at Birch settlement. Newsboy "Ganged" And Robbed of $5 Five colored boys last night "ganged" Robert Hines, colored, 13, of the 1300 block of G St. N.E. at New York and Florida Aves. N.E. and robbed him of a change carrier and 85, the boy said. He is a newsboy. Borah Sees U. S. Paid By Foreign Powers “Eventually” By WILLIAM K. HUTCHINSON (Copyright, 1934, by International News Service) Europe’s governmental debts to the United States will be paid eventually, if America refuses to cancel them, Senator William E. Borah (R.) of Idaho predicted today. In an interview on his sixty-ninth birthday, celebrated after 27 years in the Senate, Mr. Borah, in response to questions, made these observations: America’s foreign debts will be paid because the great nations of Europe cannot let history record their repudiation. The next great phase in America’s economic development will be a sane redistribution of wealth. Depends on Prohibition may return unless the States master the problem of controlling the liquor traffic. Political racketeers are getting into politics because the better element of our people refuse to run for public office. On the question of foreign debts, Senator Borah said: FREE FORD PLEA BY FIRST LADY Despite rejection of her proposal for the serving of lunches to underprivileged school children during the summer months, Mrs. Roosevelt today made a further suggestion to alleviate the suffering of hungry children. The First Lady recommended that the 10 nursery schools which will be operated during the summer months be used to serve lunches under supervision of the teachers detailed to the nursery schools. Food could be prepared at the central kitchen, Mrs. Roosevelt said, and sent to the schools. This, she said, would relieve the school system of the responsibility of operating other school buildings for this purpose. The original school lunch proposal was turned down because of the shortage of funds. President Selects U. S. Union Delegates By International News Service The State Department today announced President Roosevelt has appointed the mayors of New Orleans, San Francisco, Worcester, Mass., and the city manager of Cincinnati as members of the American delegation to the meeting of the International Union of Local Authorities at Lyons, France, July 19 to 22. Mayor T. Semmes Walmsley, of New Orleans, will be chairman of the American delegation. Lovelorn Boy of 15 Treated for Poison A 15-year-old boy, John Graber, of the 1400 block of Girard St. N.W., today attempted suicide at his home because he was despondent over a love affair, according to police. The boy was said to have swallowed poison. He was given first aid by Dr. G. H. Boynton of Cas. Auality Hospital and is expected to recover. Fatality Stirs Car Strikers To Wrath In Milwaukee MILWAUKEE, June 29 (AP). One death, dynamiting, destruction of property and virtual tie-up of the street car lines today figured in the trolley strike as the situation hourly grew more tense. One rioter was dead, electro-cuted in an assault last night on the Lake Side power plant. Dynamite blew up a high-tension line tower in Waukesha county on the East Troy line, partly crippling power service to the southwest portion of the State as far west as White Water. Two sticks of dynamite, powerful enough to have disrupted electric service for blocks, were found along a transformer today on the northwest side of Milwaukee. As the fourth day of the strike wore on without hope of imminent settlement, the confusion threatened to spread into other industries. Following an all-night conference between company officials and Federal representatives, the company announced that no street railway "eventual settlement of the debt situation depends largely upon the attitude of our Government. If we stand firmly for payment, payments, in my judgment, will be made. These great countries are not going to move down the years with repudiation written across their records. When it becomes clear that there is to be no cancellation, in my opinion there will be payments. They are not going to take a decree of moral bankruptcy from the world’s court of public opinion." WEALTH STATUS VIEWED On the redistribution of wealth, he said: "What the next phase in America’s economic development may be, One may only guess. What it should be, and everyone who loves his country hopes it will be, is a more equitable distribution of wealth, a just distribution of those things which make for the comforts and pleasures of life. "It has been estimated that (Continued on Page 18, Col. 4) STUDENT FLIER HURT IN SPILL A student pilot was injured seriously today when his plane went into a nose dive and crashed as he was attempting to land at the Capital Airport on River Road, Md. The injured flier, Morris Ingling, 24, of the 1400 block Madison St. N.W., was taken to Providence Hospital by the Bladensburg Rescue Squad where X-rays are being made to determine the extent of his injuries. The plane, a three-passenger Travelair biplane, was demolished, the wings being torn from the fuselage and the motor being torn off. Attendants at the airport refused to give out information and ordered newspapermen from the field. Johnson to Refuse Cotton Wage Raise By International News Service The NRA will recommend that there be no increase in the wage scale in the cotton textile industry, Recovery Administrator Johnson announced today. His announcement was based on a special report by Leon Henderson, chief of the NRA research and planning division, which followed several weeks of study after union representatives of 300,080 workers agreed to forego a threatened strike. Coolidge Will Act as Treasury Head Thomas Jefferson Coolidge, assistant to Secretary of the Treasury Morgenthau, will act as Secretary during the month of July in the absence of Mr. Organization who is going to Montana with his family, it was announced at the Treasury Department today. Cars would be run until negotiations had reached a point where peace was assured. Eugene Domagalski, 24, was electrocuted by a high tension wire at the Lakeside plant when the mob broke down the fences surrounding the plant and stormed into the grounds. His was the first fatality in three nights of rioting. Searchlights Put Out Frank Brindza, 22, suffered serious burns when he came into contact with a live wire. Authorities said the two were leading a group of pickets that had stormed the fence after the mob had stoned and put out of commission a battery of large searchlights, plunging the grounds in darkness. The searchlights had been installed as a protection by the utility. Deputy Sheriff Herbert Foster and John Coons, a company guard, were injured when the mob overpowered a force of 60 deputy sheriffs and 40 police men guarding the plant. Entered as Second Class Matter at the Post Office at Washington, D.C. NO. 16,515 REVOLT NEAR AGAINST NRA LOW PRICES Code Authorities Announce Industries Can’t Keep High Pay and Short Hours By WILLIAM S. NEAL International News Service Protests so widespread that they amount almost to a threat of revolt against the NRA are being received by code authorities as a result of the new anti-price-fixing policy, it was disclosed today. In some instances, code authorities, heeding protests from member industries, have adopted vigorous resolutions of protests. The troubled situation is continuing, despite the efforts of the New York Times. Covery Administrator Hugh S. Johnson to assure business interests that NRA will prevent ruinous price-slashing. Applies to Future The new price policy, it has been emphasized by NRA, would apply only to future codes or in revision of existing codes. Since 95 per cent of industry is said to be codified, some NRA officials minimize the importance of the order. In many codes, however, price maintenance provisions are temporary, and hearings will be held soon on code revision. The new policy would apply in these cases. Flat declarations have been made in resolutions adopted by some code authorities that industries cannot continue to pay higher wages and grant shorter hours under the NRA unless minimum prices are fixed. White Is Named For Trade Position Dr. Wilford L. White, of Austin, Tex., has been appointed chief of the marketing research and service division of the Bureau of Foreign and Domestic Commerce, according to an official announcement from the Commerce Department today. The division, formerly known as the domestic commerce division, is noted throughout the business world for its direction of the Louisville grocery survey and the St. Louis drug survey. Edwin B. George, now with the NRA, preceded Dr. White as its head. First Nude Marriage In Public in Chicago CHICAGO, June 29 (IN.S.). The first public all-nude marriage ceremony in the history of undressing was performed today at a Century of Progress. Principals in the foremost “strip act” of the decade were Miss Jean May, 23, late of Amarillo, Tex., and later of the Zoro Nature Park colony, of Roselawn, Ind., and Charles Miller, son of a Milwaukee brewery official. The ceremony was performed by the Rev. Dr. William H. H. Hines, pastor of the Church of the Immaculate Conception, in Chicago. conducted by the Rev. Percy Ward, of the Liberal Church, who wore a leopard skin. Buffalo Girl Wins Personality Award ATLANTIC CITY, N. J., June 29 (I.N.S.).—Chosen as “America’s personality girl” by more than 3,000 persohs assembled on the steql pier here, Isabell Coffey, 17- year-old Buffalo High School •senior, today was “queen” of the 47th Annual Supreme Council of the Mystic Order of the Veiled Prophets of the Enchanted Realm. The judges announced the award on the basis of beauty, poise, and general attractiveness. Mail Sacks Looted On Cincinnati Train INDIANAPOLIS, Ind., June 29 (1.N.5.),-—A car of Big Four train, which left Chicago last night for Cincinnati, was broken into some where between Kankakee, 111., and Chicago and ten mail sacks were looted, A. C. Garrigus, postal in spector here, revealed today. He said, he did not believe the loot included any valuable mail, but that a thorough check was being made. Harriman Refused Bail by U. S. Court NEW YORK, June 29 (1.N.5.). Joseph W. Harriman, sentenced to four and one-half years in a Fed eral penitentiary for misapplica tion of the funds of his bank, to day, was denied bail by the United States Circuit Court of Appeals pending appeal. Execution of the aged banker’s sentence was ex tended for one week to July 9. FRIDAY, JUNE 29, 1934 ELCEN SWORN IN FOR SECOND TERM S ii r A • /|B ÜBA mA Bl w ■ lUib‘ B jB B I I i RILEY E. ELGEN FRANK CUNNINGHAM STARTING HIS SECOND TERM as a member of the Public Utilities Commis sion, Riley A. Eigen was sworn in today by Frank E. Cunninghanu clerk of the Supreme Court of the District of Columbia. Times Staff Photo. FAMILY FRIEND SWEARS ELCEN It was just an old Marylanders' family party today at the District Building when Riley Eigen was sworn in for his second term as member of the Public Utilities Commission by Frank E. Cunningham, clerk of the Supreme Court of the District of Columbia. Mr. Eigen's uncle, Jacob Eigen, was Frank Cunningham's Sunday school teacher at Westminster, Md., and Mr. Eigen himself is a native of Carroll County, Maryland. Mr. Eigen said today that it was not necessary for the Public Utilities Commission to meet to elect a chairman, that he would remain in that position. His appointment is for three years. Five Are Injured In Auto Accident Reckless driving charges were to be considered against Eddie Evans, 23, of Soldiers Home, in Traffic Court today as a result of a collision about midnight between two automobiles at Thirty-fifth Street and Reservoir Road Northwest, police say. Mr. Evans' car struck that of Wilmer O. Wood, 22, of East Falls Church, overturning the latter and injuring the driver, and passengers. Both drivers were treated at Georgetown Hospital for head cuts, not serious, while Benjamin Prince, 19, of the 1300 block I St. N. W., was treated for a possible skull fracture; Benjamin Prince, 19, of the 1300 block I St. N. W., for head cuts, and Claude May, 18, of Union, S. C., for shock. In The Times Today First Section Page Amusements 16, 17 Clubwomen’s Notes Daily News Reel 6 Fashions 22 Mark Kellinger 17 Service Orders 11 Times Table 11 Society 20, 21 Weather 11 World News 2 Second Section All Washington 1 Births and Marriages 2 Cast Into Eden 3 Comics 8, 9 Corum’s Sport Comment.... 11 Financial News, 6,7 Helen Essary 1 Edwin C. Hill, Editorial Sports. 16, 11, 12, 13 Pattern 6 Radio < 7 Resorts 4 J. T. Williams, jr..... Editorial Women’s Page 3 Telephone-- District 10M Published Week Days, Whittemore’s Balky Elevator To Be Fixed “The elevator works, but sometimes it does the queerest things.” Mrs. Roosevelt had this to say about the White House elevator today in announcing that the lift will be taken apart and put together again during the summer. It will require about three weeks to fix the elevator, she said, to “try to make it work.” 81 New Bombers Ordered By Army By International News Service Deciding to go forward immediately with plans to strengthen the nation’s aerial defense, the War Department today approved the award of contracts for 81 powerful bombers, and 280 airplane engines. The contract for the bombers, amounting to $3,195,450, was awarded to the Glenn L. Martin Company, of Baltimore, and the contract for the 280 airplane engines, amounting to $1,705,733, was awarded. To the Wright Aero nautical Corporation, of Patterson, N. J. Disabled Engines Set Lake Ship Adrift DETROIT, June 29 (1.N.5.). The lake passenger liner, Greater Buffalo, is adrift with disabled engines in western Lake Erie, the Detroit and Cleveland Navigation Company was advised today. Passengers were said to be in no danger. The lake was calm. The liner was en route from Buffalo to Detroit. President Clearing Desk Of Four Major Items Four major matters lay before President Roosevelt today as he tackled a heavy program in an effort to clear his desk and get away for his trip to Hawaii —the Frazier-Lemke farm mortgage moratorium bill, the railway pensions bill, and naming the stock market and the communications commissions. Farm Bill Veto Likely The White House announced that Mr. Roosevelt had acted on the farm mortgage and railway pension bill and is preparing a public announcement. This probably will be released at his 4 p.m. press conference. A veto was held almost certain for the farm mortgage bill, and there has within the past 24 hours developed a report that the railway pensions measure will be rejected. The latter would provide a bill to prevent the payment of the debt. THREE CENTS DULL 10 CHIDE DEFAULTERS By KINGSBURY SMITH International News Service Having sharply criticized the national policies of Chancellor Adolf Hitler of Germany in their relation to suspension of foreign debt payments, Secretary of State Cordell Hull today, prepared to deliver another verbal lashing to the other European debtor nations who have decided to stop payments on the 10,000 million dollars owed American taxpayers. Roused by the action of the European debtor nations in abruptly terminating further payments on the billions borrowed from this country, Secretary Hull was drafting a strongly worded statement in response to the latest British note rejecting his offer to consider payment of the debts in goods and services and asserting drastic reduction, was more important than methods by which payments might be made. President to Decide Secretary Hull discussed the statement with President Roosevelt and its issuance depended upon White House approval. Meanwhile, Secretary Hull awaited with interest Germany’s reaction to his reply to the German government’s note announcing a moratorium on all foreign debts and indicating resumption of payments depended upon the extent to which the creditors increased their purchases of German goods. Secretary Hull’s note was one of the most sharply worded documents yet sent to a debtor nation. Brushing aside the etiquette of the situation, the Pago 3, Co. 6, compulsory organizations to handle contributions from workers and twice as much by the employers. The measure, according to estimates, would cost the railroads $58,000,000 next year. The President may not announce the personnel of the new commissions until tomorrow or Sunday. Pecora Most Favored Ferdinand Pecora, dynamic counsel for the Senate Banking Committee in its investigation of the stock exchange, is still regarded as the most likely selection for chairman of the exchange commission. It was also reported today that Mr. Roosevelt had offered a post on this commission to Joseph P. Kennedy, New York and Boston financier who has had long experience in the “Street.” HOME EDITION WON’T YIELD, UNION HEADS DECLARE ‘Open Shop’ Threats Loom Again as Contractors Remain Adamant By EUGENE A. KELLY Difficulties between capital and labor flared again in Washington as the possibility of “open shop" policies for carpenters on PWA projects and plasterers. Overlooked by the highlights in today’s local labor developments, the Board of Labor Review's decision to order carpenters on PWA projects back to work at $1.10 an hour. Failure of negotiations to end plasterers strike. Effective Today The Board of Labor Review, following a hearing yesterday, will order carpenters on PWA projects back to work tomorrow at $1.50 an hour, it was learned today on high authority. The board was understood to be drafting the opinion regarding its decision. The board had been requested by five contractors here doing PWA work to force the carpenters back to work at $1.10 an hour instead of the union rate in Washington of $1.25. The contractors told members of the board they could not afford to pay the difference in the wage rate. This decision is expected to be vigorously fought by the carpenters. Although leaders of the carpenters could not be reached for a statement regarding their stand on the decision, their attitude on the proposed $1.10 rate was made clear in a statement made before the Board yesterday by Joseph Rinis, a member of the carpenters’ District council, who said his men would not return to work on the PWA projects unless they received $1.25 an hour. The five contractors will issue an ultimatum to the carpenters within five days after the decision of the Board is formally announced tomorrow, that they return to work for a $1.10 an hour or suffer the consequences of an open shop. Unless the carpenters comply with the decision of the board, advertisements will be placed in local newspapers calling for carpenters, whether affiliated with the union or not. Peace negotiations between the plasterers and their employers hit an impasse, it developed today. The plasterers have been out on strike. Since May 18 for $1.75 an hour. It was not known until today that the wage committee of the union plasterers, which has been meeting for the past week with a committee of the employing plasterers association, is not empowered to bargain and draw up a truce, according to George Lee, a member of the committee of the association. “Open Shop” Urged From Other Sources it was learned that several contractors have suggested to employers that they drop further peace negotiations and call an open shop. It was pointed out that the plasterers (Continued on Page 2, Col. 3) WILL ROGERS Says: BEVERLY HILLS, June 29. And they lay to rest Jimmy Wedell. He died as a soldier in the discharge of his duty, for he was teaching somebody else how to fly. When you realize aviation is the greatest advancement in our times and America is spending the most money, yet our whole Government, whole Army, had to wait to see how fast they could fly, till Jimmy Wedell through his own personality and personal honesty got financial backing from a generous and public-spirited Mr. Williams. Who knows but that aviation might not be permanently set back 100 miles an hour, through the loss of this fellow, with the knowledge that was buried with him. Such men should be grabbed up at once and put into our Government service. He had one thing that was in keeping with all great aviators and that was his modesty. (Copyright, 1914, by National Syndicate, Inc.).
| 22,530 |
https://github.com/bluexray/Horizon.Sample/blob/master/Horizon.Payment.Alipay/Domain/AlipayCommerceIotDevicelistCreateModel.cs
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022 |
Horizon.Sample
|
bluexray
|
C#
|
Code
| 79 | 448 |
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Horizon.Payment.Alipay.Domain
{
/// <summary>
/// AlipayCommerceIotDevicelistCreateModel Data Structure.
/// </summary>
public class AlipayCommerceIotDevicelistCreateModel : AlipayObject
{
/// <summary>
/// 设备对象列表+不唯一+用于批量创建设备记录+协议服务商指定+0个或多个设备对象列表,单次调用传入设备对象个数不能超过200
/// </summary>
[JsonPropertyName("device_list")]
public List<IotDevice> DeviceList { get; set; }
/// <summary>
/// 设备个性化信息列表+不唯一+用于设置设备的用户定制化信息+协议服务商指定
/// </summary>
[JsonPropertyName("device_personal_info_list")]
public List<IotDevicePersonalInfo> DevicePersonalInfoList { get; set; }
/// <summary>
/// 协议服务商id+唯一+指定操作数据归属于哪个协议服务商+协议服务商接入时由支付宝统一分配
/// </summary>
[JsonPropertyName("protocol_supplier_id")]
public string ProtocolSupplierId { get; set; }
/// <summary>
/// 蚂蚁统一会员ID
/// </summary>
[JsonPropertyName("user_id")]
public string UserId { get; set; }
}
}
| 17,250 |
https://github.com/inovua/reactdatagrid/blob/master/community-edition/packages/CheckBox/examples/index.tsx
|
Github Open Source
|
Open Source
|
MIT
| 2,023 |
reactdatagrid
|
inovua
|
TSX
|
Code
| 182 | 499 |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import { render } from 'react-dom';
import Checkbox from '../src';
import style from './index.scss';
var checked = true;
function nextValue(value, oldValue, info) {
if (oldValue === 1) {
//from checked to indeterminate
return 0;
}
if (oldValue === 0) {
//from indeterminate to unchecked
return -1;
}
if (oldValue === -1) {
return 0;
}
}
class App extends Component {
constructor(props) {
super(props);
this.state = {
checked: -1,
};
}
onChange(value, event) {
console.log('onChange', event, value);
this.setState({ checked: value });
}
render() {
function focus() {
console.log('focused');
}
const { checked } = this.state;
return (
<form className="App" style={{ padding: 20 }}>
<Checkbox
supportIndeterminate
checked={this.state.checked}
browserNative
onFocus={focus}
onChange={checked => {
this.setState({
checked,
});
}}
>
test
</Checkbox>
<Checkbox supportIndeterminate onFocus={focus} focusable={false}>
test
</Checkbox>
<Checkbox supportIndeterminate onFocus={focus} checked={true}>
test
</Checkbox>
<Checkbox supportIndeterminate onFocus={focus} checked={null}>
test
</Checkbox>
</form>
);
}
}
render(<App />, document.getElementById('content'));
| 18,792 |
https://stackoverflow.com/questions/6684091
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,011 |
Stack Exchange
|
Andy, Deepakshi I, Franka Matthes, Jonathan Henrique, McDougall Allred, Mohamed Abdelhamid, Ms. Miracle, Vimal Prasath, demongolem, https://stackoverflow.com/users/14601172, https://stackoverflow.com/users/14601173, https://stackoverflow.com/users/14601174, https://stackoverflow.com/users/14601528, https://stackoverflow.com/users/14601572, https://stackoverflow.com/users/14923033, https://stackoverflow.com/users/14923034, https://stackoverflow.com/users/14937712, https://stackoverflow.com/users/14944051, https://stackoverflow.com/users/236247, o8dztnl903
|
English
|
Spoken
| 125 | 205 |
Any Python modules out there that do anything with HTTP_ACCEPT_LANGAUGE?
I have read that decoding the potentially long string which can be returned from a website for HTTP_ACCEPT_LANGUAGE is not necessarily straightforward. Are there any packages out there in Python that try to do anything with this. I, in particular, am interested in getting at least the list of languages that are acceptable, if not getting them in their proper requested ordering. Ideally, if the full definition (which can be seen at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4) were implemented that would be the best case in case my requirements change.
some time ago I took this snippet from tweetengine
It's worked well for me. Hope it helps.
Sweet. I'll check it out later today and get back to you
| 42,308 |
https://github.com/bowtie-co/usac-craft-imm-website/blob/master/craft/plugins/redactorimageposition/templates/RedactorImagePosition_Settings.twig
|
Github Open Source
|
Open Source
|
MIT
| null |
usac-craft-imm-website
|
bowtie-co
|
Twig
|
Code
| 142 | 465 |
{#
/**
* Redactor Image Position plugin for Craft CMS
*
* Redactor Image Position Settings.twig
*
* @author Piccirilli Dorsey, Inc. (Nicholas O'Donnell)
* @copyright Copyright (c) 2016 Piccirilli Dorsey, Inc. (Nicholas O'Donnell)
* @link http://picdorsey.com
* @package RedactorImagePosition
* @since 1.0.4
*/
#}
{% import '_includes/forms' as forms %}
{{ forms.editableTableField({
label: 'Figure Config',
instructions: 'Specify figure classes/configuration.',
id: 'figureConfig',
name: 'figureConfig',
static: true,
rows: settings['figureConfig'],
cols: [
{
heading: 'Setting',
type: 'singleline',
class: 'code',
width: '20%'
},
{
heading: 'Value',
type: 'singleline',
class: 'code js-make-enabled',
width: '80%'
}
]
}) }}
{{ forms.hidden({
name: "figureConfig[0][0]",
value: "figureWrap"
}) }}
{{ forms.hidden({
name: "figureConfig[1][0]",
value: "figureLeft"
}) }}
{{ forms.hidden({
name: "figureConfig[2][0]",
value: "figureRight"
}) }}
{{ forms.hidden({
name: "figureConfig[3][0]",
value: "figureFull"
}) }}
{{ forms.hidden({
name: "figureConfig[4][0]",
value: "imageClass"
}) }}
{{ forms.hidden({
name: "figureConfig[5][0]",
value: "captionClass"
}) }}
| 38,298 |
https://github.com/DenisNet/Balance-Sheet-UWP/blob/master/BalanceSheet/NavigationBar/ProfileNavigationBarMenu.cs
|
Github Open Source
|
Open Source
|
BSD-2-Clause
| null |
Balance-Sheet-UWP
|
DenisNet
|
C#
|
Code
| 133 | 455 |
using System;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using BalanceSheet.Models;
using BalanceSheet.Views;
namespace BalanceSheet.NavigationBar
{
class ProfileNavigationBarMenu : BaseNavigationBarMenu, INavigationBarMenu
{
//public ProfileNavigationBarMenu()
//{
// //AppEnvironment.Instance.CurrentUserChanged += CurrentUserChanged;
//}
public string Label
{
get
{
var loader = new Windows.ApplicationModel.Resources.ResourceLoader();
return loader.GetString("SingIn");
}
}
void CurrentUserChanged(object sender, User e)
{
// Notify UI that user has changed.
NotifyPropertyChanged(nameof(Image));
NotifyPropertyChanged(nameof(Symbol));
NotifyPropertyChanged(nameof(Label));
NotifyPropertyChanged(nameof(SymbolAsChar));
}
public override Symbol Symbol
{
get { return Symbol.Contact; }
}
public Type TypePage
{
get { return typeof(SignInPage); /*return AppEnvironment.Instance.CurrentUser == null ? typeof(SignInPage) : typeof(ProfilePage); */}
}
public override NavigationBarPosition Position
{
get { return NavigationBarPosition.Bottom; }
}
//public override ImageSource Image
//{
// get
// {
// if (AppEnvironment.Instance.CurrentUser?.ProfilePictureUrl == null)
// {
// return null;
// }
// return new BitmapImage(new Uri(AppEnvironment.Instance.CurrentUser.ProfilePictureUrl));
// }
//}
}
}
| 24,220 |
https://github.com/CoderandGymnast/Soloen/blob/master/src/server/apis/src/entities/wallet.entity.ts
|
Github Open Source
|
Open Source
|
MIT
| null |
Soloen
|
CoderandGymnast
|
TypeScript
|
Code
| 46 | 124 |
import { MAX_LENGTH_LABEL } from "src/dtos/wallet/wallet.dto";
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import config from "../config"
@Entity({ name: config.database.tables.wallet })
export class Wallet{
@PrimaryGeneratedColumn()
id?: number
@Column({ nullable: true, length: MAX_LENGTH_LABEL }) /** [WARNING]: Changing rules would delete all data. */
label?: string
}
| 27,333 |
US-49384321-A_1
|
USPTO
|
Open Government
|
Public Domain
| 1,921 |
None
|
None
|
English
|
Spoken
| 2,121 | 2,621 |
Tire patch
' c. v.; HALL".
TIRE PATCH APPLICATION FI LED A UG-ZO, IQZI- Patented Oct. 24, 1922 JEBMdEil that as,
TIRE PATCH.
Application :filecl sigma 20, 1921. Serial No. 493,843.
To all ro 71 om may concern:
ide it known that CI-IARLEs V. HALL, a {citizen of the United States, residing at VVashing'ton, District of Columbia, has in- 5 vented certain new and useful Improvements in Tire Patches, of which the following is a specification.
This invention relates to repairing devices For use in connection with pneumatic tires,v
has particular reference to tire patches to be inserted in the casing or shoe of inflatable motor vehicle tires.
The primary object of theinvention is to provide a patch of such character as to be readily inserted in the. tire casing so as to "fully protect the inner tube and which is so a'hchored or fastened'ther'ein as to be held against rotative or circumferential movement with respect to the tire.
A further object is to providemeans of a simple andimproved nature for firmly maintaining the patch in proper position bridging. thecut or break in the casing or shoe, and which will be prevented from bulging 1f protruding through thebr'eaki Astill iurther object is to so construct the patch and assemble the same with respect to the inner andouter casings as to prevent rubbing or chafing, thus obviating wearing devices heretofore proposedfor the accomplishment of the. same purposes.
Still further and particular objects are to provide a tire patch for the purposes stated 4 which is of extremely simple construction and which may be manufactured at low cost; which is readily applicable to the tire;
which is as easily applied as other devicesv now used for the same purposes; which requires no skill in its proper application; which may be quickly applied to the tire;
Fig. 1 is a sectional view taken through a ness as to withstand the strains, stresses and of the inner tube, an objection common'to pneumatic tire of fam lial construction andillustrating the application of a tire patch constructed and assembled in acordance with the invention.
Fig. 2 is a perspective view, parts broken away, of the patch removed from the tire, and
Fig. 3 is a fragmentary sectional view showing a reinforcing means which may be used in carrying out the invention.
In carrying out the invention, I propose to apply the patch to the injured element of the tire so as to properly span, bridge or cover and protect the weakened or cut portion, and to secure the patch so positioned as to positively prevent the same moving or shitting with respect to the injured part, either laterally or circumferentially of the wheel, as well as to prevent the patch or a portion thereof protruding 0r bulging out when closing a break or hole in either the inner tube or casing. The patch element is preferably formed of flexible, tough, nonelastic material, of any desired or required material and size, and being of such thick- Wear to which the patch must necessarily be subjected. As an element suitable i'for an anchoring device or means for the patch, the valve stem of the inflatable tube is used The patch of my invention, in being applied as set forth, is secured to the valve stem of the tire, and the means whereby the said valve stem and the patch are connected may assume various forms or devices. Inthe present 1nstance, as one practical embodiment of the invention, the patch is shown as applied to thatire between the inner tube and the outer casing, it being assumed that the break or injured member is the casing, and the said patch near one edge is PIOVldGd WItl I an opening sufiiciently large to permit oi the valve stem passing through and snugly fitting the same.
Referring now more particularly to the drawings, 4- represents the telly of the vehicle wheel, 5 the demountable or tire holding rim, 6 the casing or shoe of the tire, and 7 the inner tube therefor. The inner tube is equipped with the inflating tube or valve stem indicated at 8, which projects through the wheel and demountable rims as is well known. These parts are all standard, and while in the present instance one particular form of inflatable tire is shown, for the purposes of illustration, it will be understood that the invention is equally as well carried out in connection with other types of pneumatic tires.
The improved tire patch is indicated generally at 9, and includes a strip or band of tough flexible material of suitable length and of a width to substantially pass entirely around the inner tube 7. The patch is shaped longitudinally so as to conform substantially to the curvature or circumference of the tire, and also fits snugly against the inner Walls of the outer tube or casing. The patch is of such thickness as to resist wear and abrasion, and normally assumes the shape and position shown in Fig. 2 of the drawing.
The thickened portion of the patch is of such extent as to enclose the inner tube, and
is provided near one edge with an opening 10 of such size as to accomn'iodate the stem 8 of the tube inflating device. The opening 10 is preferably located midway the ends of the patch and in the thickened portion thereof. The opposite longitudinal edge of the patch is provided with a thin flap or wing 12 coextensive with the length of the patch, and adapted to be anchored between the head of the casing and the supporting rim therefor.
In Fig. 3 of the drawings, there is shown a portion of the tire patch, the openinglO thereof being reinforced with a ring or fold 11. By reinforcing the opening, it is apparent that danger of pulling out of the opening will be overcome and the life of the patch therefore lengthened.
In applying the patch to the tire, the easing is removed from the rim and'the tube is taken from the casing. The patch is inserted in the casing so as to bridge the cut or break therein, with the opening 10 located over the space between the adjacent edges of the casing beads. It may be found more expedient to first apply the patch to the inner tube before the latter is inserted in the casing, and this is done by engaging the patch over the tube with the tube inflating stern protruding through'the opening 10. The tube and patch are then inserted in the casing, with the patch. so positioned as to properly bridge the cut or tear in the latter. Theflap at the opposite or free edge of the patch is passed out and around the casing head, and when the casing is applied to the rim this flap is securely compressed between the bead and the bead holding'devices.
With the patch thus applied, .it is apparent that the hole or cut in the casing will be properly closed and the inner tube will be protected against damage. By reason of the patchbeing posltively held to the inner tube,
shifting of the same will be prevented,-as
will shiftingor relative movement between the inner tube and patch as well as between the casing and patch. This positive holding of the patch willprevent thesame'from becomingrmisplaced and exposing the inner patch wherebythe latter wil nasaooe tube through the cut or hole in the casing. It will be understood,-of course, that when thetire is inflated after the patch has been applied, the pressure within the tube will causethe patch to be firmly held between the will be applied with its apertured side nearest-the rirn cut. For instance, in Fig. 1 the patch is applied for arim cut in the side of the casing'indicated at a, and it is obvious that air pressure within the tube cannot force the patch to bu] through the rim cut, by reason of the patch beingheld positively by the valve stem 8; little or no outward pressure being exerted upon the flap edge of the patch at the other side of the casing. In instances where the cut in the casing happens upon one or the other side of the casing, the patch will'be applied with its apertured side nearest the cut. I
From the foregoing, it is apparent that I have provided a tire repair patch of extremely simple construction and which may be easily and quickly applied to the injured tire with assurance of proper sealing of the hole or cut. As the patch is held. positively within the casing and cannot bulge through the opening in the casing, danger of damage to or puncturing ofthe patch is overcome. to the inner tube and patch, heretofore due to shifting or oscillating of the patch relative to the inner tub e,-is prevented.
In the present instance, for purposes of illustration, there is shown one opening 10 in the patch, but it is apparent that twov or more of such openings may be provided therein if required or helieved necessary. By applying a ferrule orring, or other reinforcing element, such as stitching, around the opening 10, danger of the opening pulling out or stretching is overcome.
While the above is a description of the invention in its preferred embodiment, it is obvious that minor changes in the details of construction and-method of application may be resorted to without departing from the invention as defined by the time 1. Ina tire patch, protective-strip adapted for insertion in a tire casing-betweenthe latter andthe i-nnertube, the said strip be ingof such size as to pass laterally entirely around the inner tube, and an element on said inner tube to be en aged with said l be held against lateral as Well as-circumferential*movement in said casing. i
291 11 a tire patch, a protective strip for insertion in 3,1311% caslng between the latter and the inner tube, the said strip being of such wldth as to pass substantially entirely around the inner tube, and the said strip having an opening therein to receive the valve stem of the said inner tube.
3. In a tire patch, a strip or sheet of protective material adapted for insertion in a tire casing between the latter and the inner tube thereof, and means positively connecting the inner tube and patch whereby the latter will be held against movement with respect to said tube.
at. In a tire patch, a strip or sheet of nonclastic material adapted toenclose a portion of the inner tube of a tire, and cooperatiug means on the patch and inner tube whereby the toriner will be held positively against movement relative to the said tube.
5. in a tire patch, a strip or sheet ot proteeti've material adapted to enclose a portion of the inner tube of a tire, and the said strip having an opening in its body portion near one edge thereof to receive the valve stem of the tube.
6. In a tire patch, a sheet of protective material adapted to enclose a portion of the inner tube of the tire, and means on the patch cooperating with the valve stem of the tube for holding the patch to the said tube.
7. The combination with a tire casing and the inner tube thereof, of a patch adapted to be inserted in the casing between the latter and the inner tube, the said patch having an opening therein to receive the valve stem of the inner tube, and a wing on said patchremote from said opening to be clamped between the casing and its holding rim.
8. In a tire patch, a strip of protective material adapted to be positioned within a casing and to circumscribe the inner tube therein, and means whereby said strip may be anchored upon element independent of: the patch and housed by said casing.
9. In a tire patch, a strip of protective material adapted to be placed within a casing between the latter and the inner tube, means at one end oi said strip for engagement with said tube and means at the op posite edge whereby the said strip may be held between a wheel rim and tire shoe.
1.0. In a tire patch, a strip of flexible m aterial of substantially short length adapted to be applied to a tube to cover an abrasion or weakness therein and being 01": a Width greater than the transverse circumference of the tube, the said strip having an opening near one edge thereof to receive a projection on the tube, vand means independent of the tube whereby the opposite edge of the strip may be maintained against movement.
- In testimony whereof I afiix m signature.
CHARLES HALL.
| 34,241 |
https://stackoverflow.com/questions/35080965
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016 |
Stack Exchange
|
David, Guruprasad J Rao, Kevin S, https://stackoverflow.com/users/2065039, https://stackoverflow.com/users/3300774, https://stackoverflow.com/users/5384463
|
English
|
Spoken
| 256 | 573 |
Dynamically change Button functionality on onclick event
I would like to have a single button that does 2 functions without having to refresh or visit another page. 1. First will be Add to Cart button when clicked it will add a product to a cart and once the product is added to cart the button should 2. change to Remove from cart and when clicked Remove from cart button it should remove the item from cart and again change the button again back to Add to cart.
Right now I am using very simple onclick event button
<button class="btn btn-sm btn-inverse btn-embossed" onclick="ajaxSubmit('/add/product/<?php echo $productId; ?>/"><span><?php echo $this->__('Add to Cart') ?></span></button>
Product can be removed with url below
/remove/product/<?php echo $productId ?>/
I have already tried several options from other forums but I couldn't achieve it.
Can you show us what you have tried?
The easiest way is to use two buttons and hide one. See http://stackoverflow.com/questions/8685107/hiding-a-button-in-javascript for details how to hide a button.
I suggest you to move your ajax call from onclick event so you don't need o duplicate long code. Second add parameters like current action and id to data for jQuery access.
$('.product-btn').click(function(){
if($(this).attr('data-action')=="add"){
ajaxSubmit('/add/product/'+$(this).attr('data-id')+'/');
$(this).attr('data-action','remove');
$(this).children('span').html('Remove from cart');
}else{
ajaxSubmit('/remove/product/'+$(this).attr('data-id')+'/');
$(this).attr('data-action','add');
$(this).children('span').html('Add to cart');
}
});
<button class="btn btn-sm btn-inverse btn-embossed product-btn" data-action="add" data-id="<?php echo $productId; ?>"><span><?php echo $this->__('Add to Cart') ?></span></button>
I think jQuery is causing conflict as I am getting Uncaught TypeError: Cannot read property 'click' of null error
I am getting Uncaught ReferenceError: ajaxSubmit is not defined error.
| 38,856 |
https://github.com/Matthew-Krueger/GEOGL/blob/master/Engine/Source/Utils/Timing/Timer.cpp
|
Github Open Source
|
Open Source
|
Zlib
| null |
GEOGL
|
Matthew-Krueger
|
C++
|
Code
| 307 | 740 |
/*******************************************************************************
* Copyright (c) 2020 Matthew Krueger *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
* arising from the use of this software. *
* *
* Permission is granted to anyone to use this software for any purpose, *
* including commercial applications, and to alter it and redistribute it *
* freely, subject to the following restrictions: *
* *
* 1. The origin of this software must not be misrepresented; you must not *
* claim that you wrote the original software. If you use this software *
* in a product, an acknowledgment in the product documentation would *
* be appreciated but is not required. *
* *
* 2. Altered source versions must be plainly marked as such, and must not *
* be misrepresented as being the original software. *
* *
* 3. This notice may not be removed or altered from any source *
* distribution. *
* *
*******************************************************************************/
#include "Timer.hpp"
namespace GEOGL{
const char* cStringEscape(const char* toEscape){
static char buffer[4096];
strcpy(buffer, toEscape);
size_t originalIndex = 0;
size_t originalSize = strlen(toEscape);
size_t index = 0;
for(originalIndex = 0; originalIndex<originalSize; ++originalIndex){
char currentChar = toEscape[originalIndex];
if(toEscape[originalIndex] != buffer[index]){
exit(-1);
}
if(currentChar == '\"'){
buffer[index] = '\\';
++index;
buffer[index] = '\0';
/* now copy the string from this point onwards */
strcat(&buffer[index],&toEscape[originalIndex]);
}
/* don't forget to increment the original index */
++index;
}
return buffer;
}
Instrumentor::Instrumentor()
: m_CurrentSession(nullptr), m_ProfileCount(0)
{}
void Instrumentor::beginSession(const std::string &name, const std::string &filepath){
m_OutputStream.open(filepath);
writeHeader();
m_CurrentSession = new InstrumentationSession{ name };
}
void Instrumentor::endSession(){
writeFooter();
m_OutputStream.close();
delete m_CurrentSession;
m_CurrentSession = nullptr;
m_ProfileCount = 0;
}
void Instrumentor::writeHeader(){
m_OutputStream << R"({"otherData": {},"traceEvents":[)";
m_OutputStream.flush();
}
void Instrumentor::writeFooter(){
m_OutputStream << "]}";
m_OutputStream.flush();
}
}
| 26,790 |
https://github.com/willglynn/artichoke/blob/master/artichoke-backend/src/extn/core/random/mod.rs
|
Github Open Source
|
Open Source
|
MIT, BSD-2-Clause
| 2,020 |
artichoke
|
willglynn
|
Rust
|
Code
| 709 | 2,444 |
use rand::{self, Rng, RngCore};
use std::convert::TryFrom;
use std::fmt;
use crate::extn::prelude::*;
pub mod backend;
pub mod mruby;
pub mod trampoline;
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub enum Seed {
New(Int),
None,
}
impl Seed {
fn to_reseed(self) -> Option<u64> {
if let Self::New(seed) = self {
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
Some(seed as u64)
} else {
None
}
}
}
impl TryConvertMut<Value, Seed> for Artichoke {
type Error = TypeError;
fn try_convert_mut(&mut self, value: Value) -> Result<Seed, Self::Error> {
let optional: Option<Value> = self.convert(value);
self.try_convert_mut(optional)
}
}
impl TryConvertMut<Option<Value>, Seed> for Artichoke {
type Error = TypeError;
fn try_convert_mut(&mut self, value: Option<Value>) -> Result<Seed, Self::Error> {
if let Some(value) = value {
let seed = value.implicitly_convert_to_int(self)?;
Ok(Seed::New(seed))
} else {
Ok(Seed::None)
}
}
}
pub fn srand(interp: &mut Artichoke, seed: Seed) -> Result<Int, Exception> {
let mut borrow = interp.0.borrow_mut();
let old_seed = borrow.prng.seed();
borrow.prng.reseed(seed.to_reseed());
#[allow(clippy::cast_possible_wrap)]
Ok(old_seed as Int)
}
pub fn urandom(interp: &mut Artichoke, size: Int) -> Result<Vec<u8>, Exception> {
match usize::try_from(size) {
Ok(0) => Ok(Vec::new()),
Ok(len) => {
let mut buf = vec![0; len];
let mut rng = rand::thread_rng();
rng.try_fill_bytes(&mut buf)
.map_err(|err| RuntimeError::new(interp, err.to_string()))?;
Ok(buf)
}
Err(_) => Err(Exception::from(ArgumentError::new(
interp,
"negative string size (or size too big)",
))),
}
}
pub struct Random(Box<dyn backend::RandType>);
impl Random {
#[must_use]
pub fn new(seed: Option<u64>) -> Self {
Self(backend::rand::new(seed))
}
#[must_use]
pub fn interpreter_prng_delegate() -> Self {
Self(Box::new(backend::default::Default::default()))
}
#[inline]
#[must_use]
pub fn inner(&self) -> &dyn backend::RandType {
self.0.as_ref()
}
#[inline]
pub fn inner_mut(&mut self) -> &mut dyn backend::RandType {
self.0.as_mut()
}
#[inline]
pub fn initialize(interp: &mut Artichoke, seed: Seed) -> Result<Self, Exception> {
let _ = interp;
Ok(Self(backend::rand::new(seed.to_reseed())))
}
pub fn eql(&self, interp: &mut Artichoke, other: Value) -> bool {
if let Ok(other) = unsafe { Random::try_from_ruby(interp, &other) } {
let this_seed = self.inner().seed(interp);
let other_seed = other.borrow().inner().seed(interp);
this_seed == other_seed
} else {
false
}
}
pub fn bytes(&mut self, interp: &mut Artichoke, size: Int) -> Result<Vec<u8>, Exception> {
match usize::try_from(size) {
Ok(0) => Ok(Vec::new()),
Ok(len) => {
let mut buf = vec![0; len];
self.inner_mut().bytes(interp, &mut buf);
Ok(buf)
}
Err(_) => Err(Exception::from(ArgumentError::new(
interp,
"negative string size (or size too big)",
))),
}
}
pub fn rand(
&mut self,
interp: &mut Artichoke,
max: RandomNumberMax,
) -> Result<RandomNumber, Exception> {
match max {
RandomNumberMax::Float(max) if !max.is_finite() => {
// NOTE: MRI returns `Errno::EDOM` exception class.
Err(Exception::from(ArgumentError::new(
interp,
"Numerical argument out of domain",
)))
}
RandomNumberMax::Float(max) if max < 0.0 => {
let mut message = b"invalid argument - ".to_vec();
string::write_float_into(&mut message, max)?;
Err(Exception::from(ArgumentError::new_raw(interp, message)))
}
RandomNumberMax::Float(max) if max == 0.0 => {
let number = self.inner_mut().rand_float(interp, None);
Ok(RandomNumber::Float(number))
}
RandomNumberMax::Float(max) => {
let number = self.inner_mut().rand_float(interp, Some(max));
Ok(RandomNumber::Float(number))
}
RandomNumberMax::Integer(max) if max < 1 => {
let mut message = String::from("invalid argument - ");
string::format_int_into(&mut message, max)?;
Err(Exception::from(ArgumentError::new(interp, message)))
}
RandomNumberMax::Integer(max) => {
let number = self.inner_mut().rand_int(interp, max);
Ok(RandomNumber::Integer(number))
}
RandomNumberMax::None => {
let number = self.inner_mut().rand_float(interp, None);
Ok(RandomNumber::Float(number))
}
}
}
#[inline]
pub fn seed(&self, interp: &mut Artichoke) -> Int {
let seed = self.inner().seed(interp);
#[allow(clippy::cast_possible_wrap, clippy::cast_sign_loss)]
let seed = seed as Int;
seed
}
#[must_use]
pub fn new_seed() -> Int {
let mut rng = rand::thread_rng();
rng.gen::<Int>()
}
}
impl RustBackedValue for Random {
fn ruby_type_name() -> &'static str {
"Random"
}
}
impl fmt::Debug for Random {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Random")
.field("backend", self.0.as_debug())
.finish()
}
}
#[allow(clippy::module_name_repetitions)]
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)]
pub enum RandomNumberMax {
Float(Float),
Integer(Int),
None,
}
impl TryConvertMut<Value, RandomNumberMax> for Artichoke {
type Error = Exception;
fn try_convert_mut(&mut self, max: Value) -> Result<RandomNumberMax, Self::Error> {
let optional: Option<Value> = self.try_convert(max)?;
self.try_convert_mut(optional)
}
}
impl TryConvertMut<Option<Value>, RandomNumberMax> for Artichoke {
type Error = Exception;
fn try_convert_mut(&mut self, max: Option<Value>) -> Result<RandomNumberMax, Self::Error> {
if let Some(max) = max {
match max.ruby_type() {
Ruby::Fixnum => {
let max = max.try_into(self)?;
Ok(RandomNumberMax::Integer(max))
}
Ruby::Float => {
let max = max.try_into(self)?;
Ok(RandomNumberMax::Float(max))
}
_ => {
let max = max.implicitly_convert_to_int(self).map_err(|_| {
let mut message = b"invalid argument - ".to_vec();
message.extend(max.inspect(self));
ArgumentError::new_raw(self, message)
})?;
Ok(RandomNumberMax::Integer(max))
}
}
} else {
Ok(RandomNumberMax::None)
}
}
}
#[allow(clippy::module_name_repetitions)]
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)]
pub enum RandomNumber {
Integer(Int),
Float(Float),
}
impl ConvertMut<RandomNumber, Value> for Artichoke {
fn convert_mut(&mut self, from: RandomNumber) -> Value {
match from {
RandomNumber::Integer(num) => self.convert(num),
RandomNumber::Float(num) => self.convert_mut(num),
}
}
}
| 18,755 |
https://www.wikidata.org/wiki/Q98936639
|
Wikidata
|
Semantic data
|
CC0
| null |
Alter Jaarsmoorgraben
|
None
|
Multilingual
|
Semantic data
| 101 | 320 |
Alter Jaarsmoorgraben
ca. 100 Meter langer Graben in Hamburg-Eidelstedt
Alter Jaarsmoorgraben ist ein(e) Fluss
Alter Jaarsmoorgraben Commons-Kategorie Alter Jaarsmoorgraben
Alter Jaarsmoorgraben Staat Deutschland
Alter Jaarsmoorgraben liegt in der Verwaltungseinheit Hamburg
Alter Jaarsmoorgraben Bild Quelle Alter Jaarsmoorgraben.jpg
Alter Jaarsmoorgraben geographische Koordinaten
Alter Jaarsmoorgraben Ort Eidelstedt
Alter Jaarsmoorgraben Länge
Alter Jaarsmoorgraben Google-Knowledge-Graph-Kennung /g/11jrx6nbh2
Alter Jaarsmoorgraben
Alter Jaarsmoorgraben instance of river
Alter Jaarsmoorgraben Commons category Alter Jaarsmoorgraben
Alter Jaarsmoorgraben country Germany
Alter Jaarsmoorgraben located in the administrative territorial entity Hamburg
Alter Jaarsmoorgraben image Quelle Alter Jaarsmoorgraben.jpg
Alter Jaarsmoorgraben coordinate location
Alter Jaarsmoorgraben location Eidelstedt
Alter Jaarsmoorgraben length
Alter Jaarsmoorgraben Google Knowledge Graph ID /g/11jrx6nbh2
| 2,174 |
sn86076142_1908-01-07_1_3_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,908 |
None
|
None
|
English
|
Spoken
| 2,200 | 3,310 |
TONOPAH DAILY BONANZA. TONOPAH. NEVADA, JANUARY 7, 1908. THE STOCK MARKET Following are the quotations received by the Kenneth Donnellan Company: Monday, January 6, 1908. Tonopah District. Bid. Asked. Tonopah Min... $ Montana Tonopah Ex McNamara. Midway Belmont... North Star. West End.. Rescue.... Jim Butler. 70 75 25 17 55 69 81 31 04 39 80 80 Goldfield District. Sandstorm 21 Columbia Mt.... 17 Jumbo Ex 58 Booth 18 Blue Bull...... 17 Adams 06 Silver Pick..... 28 Blue Bell...... 08 St. Ives 42 Lone Star 09 Atlanta 31 Great Bend 23 Empire.... 03 Red Top Ex 12 Florence 3 90 Diamondfield Con 18 Daisy 93 Fraction 70 Goldfield Con... 465 Red Hills 33 Grandma 06 Florence Ex.... 14 Yellow Tiger... 12 Bullfrog District. Gold Bar 35 Mayflower...... 15 Tramp Con 17 Bonnie Claire... 10 Manhattan District. Consolidated....'23 Dexter 05 Mustang Ex..,. 03 Bronco '.... 03 Thanksgiving.... 24 Other Districts. Goldyke R. M. Co 02 Nevada Hills... 2 85 Pitts. S. Peak... 1 40 Eagles Nest.... 21 ALL EYES ARE CONRAWING (Continued from Page 1.) 32 05 40 22 18 19 18 07 30 09 10 33 24 13 92 20 94 71 67 35 07 15 14 40 16 18 24 10 04 04 03 87 23 says as high as $20,000. The Miller lease is conceded by all to be one of the best in the district and great developments are expected when cross cutting begins on the 60-foot level, as sensational values have been obtained in quantity on some of the adjoining properties in the immediate vicinity. The Miller lease is thoroughly equipped for good work and has a large commodious shaft house over the workings. Valuable Ore Pound in a Gopher Hole A diminutive little desert gopher is responsible for the latest strike of high-grade ore in Rawhide. B. E. Sweet and L. Farr, who are operating on the I. X. L., which joins the rich Poor Boy claim, while prospecting their ground recently, came across a gopher hole where some likely-looking dirt was pushed to the surface. Sweet obtained some water and panned it and both he and his partner were electrified to find a string of gold almost around the pan. They immediately proceeded to open up the ground and now have a well-defined ledge 40 inches wide, four inches of which assays as well as $500. Both Farr and Sweet are much elated over their good fortune. The new strike attracted a great many out to the scene and all who have examined it say that a new bonanza has been discovered. MAZUMA HILLS SHIPS RICH ORE The fourth shipment of ore from the famous Mazuma Hills at Seven Troughs is being hauled to Lovelock from the mine by the Frey freighting teams and stored in the Pittwarehouse, awaiting the completion of a carload. The last loads, containing 178 sacks, arrived Tuesday morning, making 460 sacks now in the warehouse. Another load will be brought in today, when the consignment will be forwarded for treatment to the smelters at Salt Lake City. As soon as the present carload is completed, the teams will commence the hauling of the fifth carload, and regular shipments in the future will be. continued. The ore being brought to Lovelock is the accumulation from the development of the property during the past two months, no stopping at any note having been done to produce the tannage now being marketed. The value of the ore being sent out could not be ascertained, but the Tribune representative was informed by an official high in the councils of the company that the present shipment would eclipse any yet forwarded from the property. The Reagan lease, situated on a portion of the Mazuma Hills ground, has also joined the ranks of "high grade" shippers. A carload of ore from the lease, some of it of the picture variety, will be brought to Lovelock next week and sent to the smelter. Preparations for moving the ore are well under way, and the lease has entered the new year with one of the banner high grade shipments of the Seven Troughs district. Lovelock Tribune. The Nevada Club will cater to your particular wants. It is the place of uniform courtesy. tf We are not selling out at cost, but we can save you money on your wet goods. H. J. Hall & Co. tf Corporation seals of every description furnished on the shortest notice by the Bonanza. Bees Laxative Cough Syrup for coughs, colds, croup and whooping cough grow in favor daily. Mothers should keep it on hand for children. It is prompt relief to croup. It is gently laxative, driving the poison and phlegm from the system. It gives immediate relief. Guaranteed. Sold by Tonopah Drug Co. Advertise in The Bon. Are you going to Goldfield? If you are, then stop at THE HOTEL CASEY Where Casey treats you right. THIS IS THE LEADING HOTEL. FIRST-CLASS GRILL. ROOMS EN SUITE; BATH; HOT AND COLD WATER. Control of Tiger Is Sold for $150,000 One of the biggest transactions yet recorded in the district is the transferring of 51 per cent of the Nevada Tiger Company's property to Mr. McLaughlin of Fairview and associates for the sum of $150,000. This embraces some of the best ground on the Royal and Tiger claims that have developed showings that have electrified the entire district by the richness and extent of the ore. The entire vicinity is a network of the most wonderful display of gold values and many extremely conservative men, after carefully studying the geological conditions, contend that the largest and richest ore body ever developed in the history of the State of Nevada has been struck. And the fabulous values being opened up in different places on this immense lead bears out the belief of expert opinion. Even in these days of strenuous finance, big sums have been offered at different intervals for portions of this property, but McLaughlin and associates finally secured control of the bonanza at what is conceded an extremely reasonable price, considering the immense possibilities of this now famous property. It will be unnecessary to go through a painful, expensive operation for Piles if you use Manzan. Put up in a collapsible tube with nozzle, ready to apply. For any form of Piles. Prices 50c For sale by Tonopah Drug Co. A HAPPY THOUGHT. Stranger, My friend, why are you swearing so? Cussity, Why? Because of a blank fool of a doctor. I got some pills for a pain in my back and the directions read, "Take one a half hour before you feel the pain coming on." Harper's Weekly. KINDNESS. He Pardon me, madam; I didn't see you. She (distressingly plump) Oh, my dear monsieur, you are so kind!" Transatlantic Tales. The best of service can be found at the Nevada Club; the most magnificent establishment west of New York. tf Pinosalve Carbolized acts like a poultice, draws out inflammation and poison. Antiseptic healing. For chapped hands, lips, cuts, burns. Sold by Tonopah Drug Co. Subscribe for The Bonanza. This is in the width. From Galena and copper until the altar near, In- A 60-Stamp Hill is Shipped from Denver NEW ADVERTISEMENTS. SHERIFF'S SALE. LEASERS WORKING AT CAMP TOBEN Many favorable reports continue to come from Camp Toben, situated 15 miles from Goldbanks. The latest is contained in a letter received the early part of this week by E. P. Waldo from his partner, A. H. Hoyt, who is developing properties there in which Mr. Waldo is interested. In an interview with a Tribune representative Mr. Waldo stated that development was being vigorously prosecuted in that section this winter. Several leasers are at work and many prospectors are developing their ground with good results. On the White Iris claim, in which he is interested, a crosscut tuunel is being run to intersect the main lead traversing the property. This ledge is about eight feet wide and on the surface yields average values of about $20, principally in gold. The tunnel is now In 30 feet, at which point a blind lead about three feet in width has been encountered, "U1L" D""" ninnPfl Traill HPnVPr Ktv P'timan. Plaintiff, vs. Golden An- the yellow metal In the pan. Mr. iJIIIlpAI 1 1 Vila fv.ll ,t 'chor ..Mining Company, a eorpora- r.u i K ni..,J iha la. I tlon- i'erendant. viuu i - . Ry vlrn, or an ex;rntlon Issued out est development and is confident that o the Fifth Judicial .'Jistrict Com e .if , , . . t j ,. News has been received or tne snip- the State of Nevada, in and to wnen me mum iu tu,.,.Cu v, nPnver of a 60-stami mill Vo"ni of to m- -"reeled and or- rock is shipping quantities will b nwnt trom Denver or a oo stamp mm (Ii,rH(, up(m n 1ud4..ni!.t ronaereA ln . . by Mr. Polechec of Milwaukee. said Court on tin- 2d day of December, iounn. , , .,.,..,. ... 1907, In favor of Key Pittman.i Plain nn th S,,lrM IP.., on the Dandy 1 ms mul wm luuilu'- ue tiff, and against Oold.-n Anchor Mining. , i v run n hnft "ne o arrive in Rawhide, where at Company, a corporation, Defendant, for claim or the Hill property, a Shaft vami.,. the mim of $lu.lS8.li0 (Ten Thousand has been started about 40 feet from the l,re8ent 8ta mills ale becoming llundred ttml V;igtyciKht ttnd inas Deen srarieu auoui iu it r v absolute necessity. It is remark- u-ioo Dollar, lawful money of the the ledge. At a depth Of 10 feet a u" "u. ' United States of America, besides costs vpln three feet wide was encountered, ab,e w,th ,ne hndreds of 10,18 of ie and interest: I have this day levied vain three feet Wide was encountered mi.lin.r mirnoses that there "Pn all of the rltrht. title, claim and from which the leasers are sacKing. , , ... interest of said ietend.int, of. in and. -,,, ,,, ahnvra ., free ale not several quartz mills in the to the following d.-scrlbed real estate, crnlrt and the leasers intend to thor- PO,irBe r con8trucuon- Bobtail," Mm. rick." Limerick No. ,. ,Ko tlme Mr. Polechec is a well known oper- 2." -sky No. 2," "Sky No. 3," "Ice Ber(?h uukiu.v iuuo..i .i. ... - u,.... ..,.!( Fraction I No. 1. (or "Iceberg No. I") ennHnninff the shaft down to tap the ,,,r W'lU "' "Ice Berali (Fraction. No. 2," (or "Ice-. 1 a .1.1 h ..ill run ii Ira nhoiit chased one of the Murray leases 0 hern No. 2"). "K U." 'Salvation (or main lead, which will requite about (. tsaiut.ition"). ' vship," "Sky." and SO feet Of Sinking t,,e Dald H' met Fraetion ,hat ha8 "MUl-Uay l-Wtl-.n." lode mlnlnK claims. '. , uhnwn tin such snlendid values of situated in tii- Touopnli Mining i.is- The largest ana mosi nnpunaui trlct. Nye I'ounty. State of Nevada ,i...,t,.. .lnrlnir th oast three " ,l""""v"r claims mt- etntimioun and oon- " ;. stltute one uroup. and adjoin and lit weeks wad made On ttie Uypsy group, to the n..rtli and nest of the mlnlna owned bv Mullln and Schofleld. A The N.-vada Club ill cater to ou. prop,.r.v f TonrH Midway Mining owned Dy AlUlim ana aino.ie.u. want. It is the place of Com-a. .. ; sni.1 l,,lm also adjoin and tunnel has bren driven In on the vs-ln "lur " lie t.. east and north of the mining. ui m ... - 1 nient lompun). In romnoard of porphyrltli quarti. Also ail of t.- buildinas. improve. ' . . . , , ta . ., th ou tan t buy macaroni in a dry 1 m-nta an.l ma hlnerr sltuatea ther-on wun Boom i" " - - . . .... yo v,.v whUkev "r si-Purtenanl tia-ret h.n,ln frail. On th aiirfarv ttll I K,KMI" mor' n,,r fS" 50a l"l . . '"''lie notl.e l I rreby riven that " , J . , . ,h In a Rroory tore. for we "ell wnis- mill. 01 tueiuln. t:..- :ih Iuy of Jam- Bvo murn" ,: ,n lh Uhv to thm: , rou can av BWt V ?- a. m. of ,urn lauclloii fr Irnrfiu monev of the l'ie Iphlllesj " 'Htnles ..f Amrri-n. il the riant, till, urrfan-i Thf Anwu Brad f 1! n-ra an I r,;"!" "' , "' ;r'Vn."n'- . .-I. .r. mm. lu. filtml -. I h . .V1.I ' . -. . 1 ., .. It is a great pleasure to announce that our store is now open for business. We are proud to announce that we have opened a new store at the right place, where we are proud to serve our customers with the best products and services. Our store is known for its exceptional service and exceptional service. In addition to our regular offerings, we also offer a wide range of other products, including books, stationery, and other miscellaneous items. Our store is known for its exceptional service and exceptional service. For those interested in our offerings, we invite you to visit our store. We look forward to serving you soon. Sincerely, The Management
| 21,453 |
https://webmasters.stackexchange.com/questions/56801
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014 |
Stack Exchange
|
Simone Carletti, https://webmasters.stackexchange.com/users/1647
|
English
|
Spoken
| 402 | 537 |
How to handle 404's in GitHub Pages while using Jekyll?
I've setup my site at GitHub using Jekyll framework. I've a problem with 404's. I added a 404.html and it is working well for some typos. But, since in Jekyll categories are rendered in a separate directories and when a user is trying to access the URL like www.example.com/category/ it shows the GitHub's 404 instead of my custom 404.html and also I don't want to index the category so what can I do?
P.S: Added a index.html to each and every category is a good idea. But, while building it overwrites everything in Jekyll.
According to the GitHub documentation on custom 404s you are out of luck:
Custom 404s only work when they are served from the root of a Pages domain, for example a project using a custom domain or a user pages repository.
It looks like sub-folders are not supported. Only the root folder.
That's not correct. They are, as long as you use a custom domain or you are creating a user pages. I agree, the explanation is a little bit confusing.
GitHub allows you to create a custom 404 page but there is a caveat. The 404 will be displayed only if you use a custom domain or for user pages.
Custom 404s only work when they are served from the root of a Pages domain, for example a project using a custom domain or a user pages repository. A custom 404 page on project pages that are not using a custom domain will not work
In other words, the 404 error page will not work for project pages with no custom domain.
In your case, it looks like you are using a custom domain thus the limitation may not apply to you. Are you sure your 404 is working correctly and you don't have an issue elsewhere?
Just to show you an example, in our company blog we use Jekyll, we host the page on GitHub pages and we have a custom 404 error page. As you can see, it also works on a subfolder.
Try to visit this page
http://blog.dnsimple.com/2011/invalid
and you can check yourself. If it helps you to debug, the pages are generated directly by GitHub. We have another repository where we publish the HTML pages to GitHub (instead of a Jekyll powered website), I should check if in that case it also works.
| 642 |
bub_gb_uwH2ho1idZoC_39
|
Latin-PD
|
Open Culture
|
Public Domain
| 1,652 |
Seraphica theologiae moralis polyanthea. Ordine alphabetico in singularum materierum (!) titulos digesta ... nec non in Minoritarum gratiam, dum in hoc opere, & Scoti doctrina contra aliquos recentiores præcipuè defenditur ... A reuerendo patre fr. Ioanne Maria da Castilento ... compilata
|
Giovanni Maria, da Castilenti, sec. 17
|
Latin
|
Spoken
| 8,017 | 18,808 |
DIFFIC VI Ertum cft ex Conc. T ;4. A7. c.10. non poffecapitulum dimifforias pro ordinibus futcipiendis infra annü à mor tc Epifcopi ; excipiuntur tamen ab ipfo duo ca(üs f. c. quando quis at&tatur ab obligationc fuícipiendi ordines tam ratione bencficijs accepti; quam accipiendi. Itaque Dico primo, quod fi Patronus infra annum confertctbe- neficium requirens ordinem, feu minorem , feu maiorem , poteft capitulum infra aanum concedere litteras dimiffocias, vtordinctur ab aliquo Epifcopo Catholico ; Ita ctiam dicen- dum , fi prafentatus ; vcl electus fuilTet, vel nominatus pro aliquo beacficio, pro quo ordocíKt neceffarió fufcipiendus antc mortemEpifcopi, poffet eidem dimifforias litteras pro ordinc fufcipiendo concederc. ta eram Garz de benef. p. $- €. M olfeff. t.Y. trac.6. c7. 5. 20. Dico fecundo, quodClerico obtinenti à Sede Apoftolica facultatem fufcipiendi ordines infra annum fedis vacantis à quocuaque Antiftite Catholico de licentia ordinati] proprij» poteft rationc buius facultatis füb ordinarz dare litteras di- mifforias. Ita Barbofa de poteft. Epifc. p. ». allegat. 2. nu.14- Adde etiam quod potefl cidcm teftimonium idoncitatis face- rc ex codem Darbofa n.16. iicet Moneta de vlt. voluntatibus C. 10. n.182.referat, (tilum Modernum Curiz Romanz effe, vt fede Epifcopali vacante ip quoque littera tc(timoniales dentur ad Epifcopo antccefiori. Dico quarto; quod licet Capitulum fede vacante infra an- num poflit dare licentiam Epifcopo extero in Dicecefi pon- tificalia exercent & ordinandi proprios fibi fubditos, non tamen potcít darc licentiam ordinandi clerícos (abditos (edis vacanüs. Ita Quaranta v. cant? fea. vac. l'iafec. 1n prax« Epifc. p^1«€-1« dr1,2. S ratio clara eft , quia idem cft darc licentiam Epifcopo extéro ; vt ordinet clericos ícdis vacantisinfra an- num sac dare eisdimi(Iorias ordinationes , quod à Concilio prohibetur . » Dico tamen quinto ; quod in cafibus in quibus infra anni poteft conccdere dimifforias ; poteft etiam difpenfare in in- terfitijs ex Sac. Congregat. tefte Z4rmentario in. addit. ad ve« copill. leg. AN auar.l.3.T «18. 0M artba de surifd. p.23. c.9. C Id o. mob. confult.ar. $.T .2. p. $. & ratio cft , quia conccílo princi- paliori conceditur minus ad executionem principalioris ne- cc(fariam, difpenfarc autem in intetftiti;s ct aliqucd neceffa- tium ad rccipiendos ordines infra annum. Vtrum Capitulum fede vacante [uccedat. Fpifcopo 1m itrifie ione delegata fiue ab bomine , (iue à. sure DIFFIC VIL D'$ primo, quod communius negant Iuri(te Capitulum (ede vacante fuccedere Epifcopo in iJs » qua ipfi (unt ab hominc impofita, hinc non fuccedit in poteftate litterarum executorialium » quz dantur in perfona Epifcopi , fi confe- rant poteftatem non cócurcentem cum iuriscommunis po» tcftatc, ncc fucceditsin mondaro fa&to Epifcopo etiam litte» ris pra-fentatis ante mortem, amplia Tertio, nec fuccedit ca- ituluin, nec cius Vicarius fede vacante in poteftate data. Epifcopo » vel eius Vicario alternatiué abfoluendi aliquem ab aliquo referuato Sedi Apoflolicz. Ita Feliz. im cap.eam te n. 17. de referip. Rubricit, G Imola ibidem Ludouic- Roman-conf. 606. Sbrot. im trail. de Vic Epifc. Y. q 16.8" quaranta verb. Capiu- 5::apituluin Sede vacánte. "Capitulum Sede vacant.-Suabfequenter , C" ini fin-q. 3. && tatio vidctur effe, quia in his, qua: iure (peciali »& accidenrario fi- :ué ab hominc committuntur Epifcoposvel cius Vicario vidc- .xur effe-electa. induftria, (cu diligenua talis períonavnde vi- ;detur tributa noua iurifdi&tio » quod 6 ea » que ab homine ; vclàin re fpcciali committuntur. Epifcopo fic per quandam annexionem (cn. additamentum ad geacralem , & ordinaria iux ifdi£ttonem Epifcopi , tunc quia pertinct ad. iuci(dictionc E ifcopalem ordinariam » nam idea judicium ficri debet dc addiaméolosquod de principalicundum Abb.in Cleíp.(ta- -xutum in 3-oppofito de ckc&t. fuccedir in iftis Capitulumsquia fuccedicin iurifdictione ordinaria Epifcopali . Ita: Anton. Butr. 4n 6.éum im cuntlis de elecl.Geamnianan c. quamquam de eletitn 6 dr Fin. lac«eit- Xu 1 Y Dico fecundo, quod licet communiter Iurifta: doceant ca- pitulum (ede vacante non fuccedere Epi(copo in iurildickio- - ne delegata ctiam à iure communi, (ed. folummodo in iurif- - dictione ordinaria; quia in i]s » que demandantur Epifcopo à iure communi ctiam tanquam Sedis Apollolicz delegato ; pouus Papze- voces fupplenturquam Epi(copi; Capitulum au- tem (ucceditin (upplendo vices Epifcopi» non Papa. Ita. Genua nmian. in cape vnico de maior. C7 ohed.an 6. Joannes Andr. quer communiter (equuntur Dotlores inc«ad. abolendamáde ba- zit. Abbasinc.olsm Cardin. Z bar Clem-.q-9« de H eret. E c- - eric. de fent. conf. 1 0. Bellamer- concluf. 166.6 Pbalip. Franc. an C.vnico de musor. C" obed.in 6. hanc dicicelfe comauné » iure optimo.quia deleguio eft priuilegiuin perfonales& con fcquzntcr -odiofum , quod ftcicté. incerprerandua ». nec cx- tcndendum. Attamcn alij benignius diftineuunr, quod extra ncceffita- tc, & vtilitatem prazcfata opinio. vera eft» nec capitulum debet ; quicquam attentarein ijszquz dependenc3 iucifdictione da- taàirdcc communi Epitcopo canquam Sedis Apofltolica: delc- gato» at vcro in caíu neceflitaus, & vtiliratisactus expedien- di, & (uccc(lor Epifcopusnon (it de proximo creandus s po- teft Capitulum etiam ca excqui;qua: Eodcopg comma àiuce communi tamque Sedis Apo(tolicz delegato. ex beni- * gn interpretatamente Suami Pontificis. 1tà Paw. par-1.q. , "Ao4ub n«apde mente Innoc. C" F1olien[u imc. ad. &bolendam de - beret. C7. notat quaranta loc«c: Qua ce exallegata do&krina. . . Colligendum primo , quod licet Capitulum fede. vacantc . non valcat vifirare Moniales exemptass quas pozeít Epifco- pustanquam Sedis Apoftolice delegatus vt in. praxi docct nofter Az irazda 7 .1.q. $0 ar.G. 6 Barbo[ain Conc. T vid. fef. 2$1.qen.i« refert fusffe decifum wi Sae. Rota Romana sn Bag. ans vifiandi die Y. 1ulig 1595. coram Orano , auamen (i vr- gear neceffitas, vcl vulitas Monaf(lerij ». juxta prefatam: opi- nionem potcrit vifitarc, £i íucce(lor in proximo non fit Ven- turus, non tamen exempta Regularibus fubicita, quia à pro- prijs Przlatis potiunt in. cafibus claufuram concernentibus prouideti . lta Sacr. Congreg. apud Garziam de benef. p: $. €.7. num.4$5. Armendariusaddit. compel. leg. Nauar. l. x. Tit. 6.dc vetitat.lib.1.8. 2. n 84. & Darb. de «an. decif collect nias. Coilige fecundo; Capitulum fede. vacante non potic (ufpé. . dere Pradicatoeres Regulares actu. preedicantes » quia in fu- fpendendo Pradicatorcs Epifcopus c(t Sedis. Apoltolica de- atus vt patet cx Conc-Tuid. ; :.; Collige tertio, quod Capitulum Sede vacante, & eius Vi- €arius confe(facios Regulares admi(fos à mortuo. Epi(copo non poteft füfpendere per torum rempus Sedis vacantissquia Epifcopus tanquam delegatus. Sedis Apoftolicae actis luo- quA exemptos ad audiendas confefliones, quare ne eos pendet aim aut cius Vicarius. prohibetur à Clemen.. IV. & Pio V. Vide noft. Miranda /oc-csiBerdon. tpmonfe veg. vefol.36. Q^ Ditnamp-7.tra« v3 sn AM Veelintfols 184... * wu , el , Virum (i gertatur.quaflio alicusus iuvis vel werifAitlionalis. Epi- RAE ois circa delium de s«re yatrapatus beneficii , vel de loco an fit faa Diece[is necne v jucctdat Gapuulums ede ae cante in surjasélione talsa dejviendi . bg OPIEPEI C, VIL emm N £x communicet [orillas quia Capitulum Sede vacá, te fuccedic in iuri(di&ione Epi/copali, quatenus dicic bulum Minifteriums non ro iateicto piícopalis Sc» "r3 dis , aut alt efpicit, quare non :fuccedit Capit. lum in caíu » inquo Egi(copusnon haberec folus ti(ie- nem, fed cum alio ; quia tunc. iurifdictio non ett fplam nu- dum Minifterium Egifcopalesquare ad collegam dcuoluitur, non autem ad capicilum cfi dii«65. intellige fiin folidum baberct jurifdidionem hanc Epi(copus cum; collega; alias cj- fcc expectandus Epifcopus fucce(for ex c. quoniam Abbas dc offic. dcleg. Idem diceadum pr.) folutione prac(entis difficul- . atis quod quotiefcunque vertitur qua:ftio fuper. proprietate alicuius iuris, feu iuri(dictionis:non (uccedit capitulom in.» cxaminationcs & decifione talis quzitionis , quià poffet. ge- nerari preiudicium Epiícopo fucceffori;cum Eccle(ize , &» :Scdes Epi(copalistempore (edis vacantis careat Icgitimo de- fentore c.fin.ncc fed.vac; vnde patetjn. hoc ca(u. non aded nudum tmíniflerium iucifdidt;onis ; fed defenfio iurium Ec- clc(ia vel (edis Epi(copalissquz ad Epi(copum;vt Epií(copum pertinet ex d.c. fin.. , Itaque quando. ccactatur an bencficiaim vacaus (it de iure patronatus. alicuius !aici,an vero peciincat ad Epi(copum,vel . it nc aliquis (ubiectus ; an exemptus » vel fit ne bic locusde . Diaccfi;sannon, X fimilianon potcft Capitulum(ede; vas caute fe intromittere » quia hec decidenda fpectant ad Epi- ícopum ;tamquam Patronum iurium (ua: Ecclefie, 8c Dias- Cc(i vndc licet bx quaitiones fuerint incepti ante mortem Epifcopi; non potitlnt profcqui à capitulo » fed expectindus tuzcciioc Epifcopus. Ita lup 1.47.9.G7 Dodlores 14d. e. figs C quaranta lac-cir, Vnde ;olliges quod tanto.minus.e(t dicédum.fuccedere ia emo- Ju mentoex icildiétionc » & figillo «Curia » vel alias vides quaque ad Epifcopum proueniente, etiamfi fueric commune cum capitulo ipfo, qu:a (olum in lioc caf iabebit Capitulum pacte fuam. & alcera referuabitur tüccetfort , vel ad cameram Apottolicam d:uolucturs(icut cít in Kegno Neapolitano. Ita Zabar.in clemenr. (tatutum de elect. q. $. Poterit tamen Ca- pitalum mulétas pecunt cias in cautis 'udicialibus excoreas iuxta menrem Concil. Trident feli. 25.de reformat c 5. fta- um locis pijsafflignare, X ex dictis emoluinceatisalijs puta fi- gilli, interpofitionis decreti poena: impolfite: contca contu- maccspote(t Capitulum deducere rationabiles: expenfas vide Glof.in d.clemen dlatutum verf.expenfe. vade quaranta loc- cit» trum Capitulum fede vacante babeat: iur vifirandi Diecefino fimiliter difpenjandt, abjoluends excommunicands , alie nandi loca Ecclefta y executores T eálamentorum copepellendi [icut poterat. Eprfcopuse DIFFIC IX [yiepsiao quod quando non fperatur de proximo (uc- ceffor Epifcopus, poteft capitulum vifitare Dieecefimyne patiantur damnum fpicituale fubditi .. lta. Poruorzoit. 1n deca, cum olimde matorit, C obed. Soc. im tracl.de v (irat.col a. alij. Imo Sacr.Con tein Pamphilonen(i 3. Febr. & 1o Decem- br.1619. apud. Barb. canon. deci(ioa; c.42.n.7 1. pocctt capitit- lum fede vacante poft lapfamannum die vifitationis (act ab Epifcopo vacante vificare Diaxce(imtempore trienai] nó expe«tato» licet Epifcopus vacans foletet (olum.vifitare fia» gulis triennijs. an autem loca immediacé (ubicéta Sedi Apo» ítol.qug tanquam delegatus Epifcopus vi(itat dic vt (uprasa» Quod inflante nccelTitate, & vulitate potfet;vc notat Pauinus q-7«3n fin.G" Quaranta (oc. ctt, SN Dico (ccandos quod Capitulum Sede vacante pote(t diípé- fatcin omaibus catibus, in quibus onn Epifcopus,vade di &um eft (upra ex: noftro Rodrrg. G- AN auarrospolle dilpen(a- re fede vacante capitulumcum iliegitimis. ad ordines nino* rcs, & beneficium ámplex iuxta rex eum c. 1*de fite Presbyts An vcro: poffit ia irregularitatibus: difpen(arc, & à peccae tisabfoluere Sedi Apoftolica rcfccuatis iuxca facultate da- tam Epifcopis sw c.Licet de vefarm.fe[f. 24 .6. a Cone-T rident, ncgat parum probabiliter sar. de enfer. dt/pe 4i fet» à. aVra- men probabilius affirmandumsquia fpectat ad iurifdictionem ordinariam Epifcopalem ralis di(penfatio ; & abfolutio. Ita etiam /Zenriquan f[dmme.Y 4.0.20. S. in.Guttier, [.2.. canon«qq. € 3.1.10. e Quante lec. cir. quicquid alijin .contracium ve- lint, quia potcítas. baec data e(t in fauorem animarum potius, quam ratione digaitatis Epilcopalis, vt alibi dictum cft, ergo. wanfirad Capitulum hac poteítas IESU ^ cd E r4 patiantur in ncceffitate fpicituali . Tta eram Sac. Congregat. Conc. de 1:.[aruar. 1622. apud Scliiir in cadon: (electio. £ap.25- att.ó. iria x Dico fecundo, quod capituli Sede v. e ' nte habt potcftaté ferendi ceníuras; ctiam excommunicátíoné ob in rcuclatio- - nis, & monitoria concedendi iuxta méte Sacr. Concilij Trid. fef. 1 5. c. 1. de reformat. co modo quo Epifcopus , & confe- quenter abíolucndi à qualibet excommunicatione, & cenfu- zaà qua poterat (nus Prideceffor iure cómuai, fpectat enim potedas ferendi cenfuras, & ab cis abfoluendi ad pote(tarem, & iüciídictionem ordinariam Epifcopalem,& confequenter faccedit in poteftate abíoluendi ab omnibus iltis ecxcommue nicationibus, peccatifque referuatis Epifcopo ; de quibus ha. betur (7 glof. c. 2. d$ p&nit.. G' remif. 1n 6. MN Adde; quod cum in hifce omnibus habeat jurífdictionem otdioariam Capitulum fede jvacante. potcft paenitenciarium con(titacre propcer periculum , quod immincreporeft ani- smabus, vc rccté notant PaunussC* Quanta loc. cit. ^Y Adde ctiam polle capitulum fede vacante abfolucre à iura- 3fmento, quia pertincrad iurifdidtionem ordinariam.Ita Cat- dinal. conf. 3$. Felin.inc. 1 de 1ureiur. &y edntón« Gagliard.in tra£l.de abjolut.à duramiS 4.n.V1. Dicotertio, quod Capitulum Sede vacie non potcft alie- nare bona immobilia ; & ea; quae feruando feruari poffunt ex 4i qua dc rebut c eprecarie i z«q. a.poterit tamen alienare ca, «qu: fcruando fcruari non poffunt ; vt notat Pasin.par.2.5.8. 5.3. ctiam (ine Superioris alterius licentia, vt docet 74b5.:» c. 1. de fede vac. Sicut etiam fine Supeciorisauthoritate poterit yo mutuo recipere pro in(tanti nccetfitate ; & vtilitate uz Ecclef; modoncgotium dilationem non patiatur , & - interca non poflit haberi Superioris aathoritas , & ralis obli- gatio afficiet eriam Superiorem fuccetforem. Ita Kurz. 4.8.5. ao. Guttier lY can qq. C. Y. Redoanan tratl.de vebecclef.mon alie- nandit q«30. qui addit in finc, ita 2tiam feruatum Scdc vacan «c per obitum Summi Pontificis collegio Sacro Eimincniif- 4imorum. Ex hac doctrina 2 Colligc etiam; quod licet Sede vacante ad Capitulum non vranfeat, nec deuoluatur pote(tas infcudandi bona infcudati olia dependentia à menía Przelati (i iam Sede vacante fint deuoluta, tamen fi inueftitura eflet neceffaria , poffet ea in- fcudarc alteri, quia tuac nullum fieret prziudicium fücceffo- €i; immó fi effet confuüctado ea infeudaudi,quando ipfo Pra. lato cacerct, effet feruanda. Ixa. 4 Ponte i2 comment.ad T aqui feud. dare pot.m. 157. . : Dico quarto; quod Capitulum Sede vacante poterit com- pellere executores Teflamentorum non folum, verui etiam executoris officium profequi ipfis ncgligentibus, ita commu. niter Doétores in c«loannes, G' 1b Cour. n. 2. de teffamenti, Card. in clem-vnica de T edam. Vau. pane, 2.4.7. imó poreft cogere ipfos executores ad rationcs reddendas . Ita /;»ela su dl. Clem.vnico n. 5.Franc.in c.vnico de matorit, & obed. $n 6.q. 11. quia hzc omnia ad iurifdictioncin pertinent. ordinariam 'Epiícopalem. Ex quibus. Adauerte, quod probabile admodum eft Capitalum Sedc vacante fücccdere etiam in.exactione Manualis obedientie, m in: quibufdam locis (tatuto dic clerici (ao Praelato ex- dhibere folent cum muncribus, quia obedientia e(t de lege iu- ri(dickiohis ex c. conquerenie de offic. ordin. in qua capitulum fuccedit, &" licet Cardin. Ziabar.ztdeatur diceve 1m c.bi ty qua de epaiorit, C. obed.q.4.in finc, dicat non obferuari , quod Capi. alum cxigat obedientiam, licet pec dictum c. his quz ; poíTit «am exigercatramen Quaranta loc. cit.q.8. referoquod Nea- poli Sede vacantc fuit in praxi feruatum in prima Dominica sneníis Maij, quo die capicalum cxcgifle ait reuerentialemsSc manualem obedientiam abalijs, qui tenebantur comparere floribus, fru&ibus, catcrifque alijs munufculis ; &c. Vtrum Cepitulum fede vacante po[fit beneficia covferre prejenta- t4 inilitueres re[figrzationes beneficiorum accipere » benc- ficio priuare. fecundum iwris difpofitionem. DIFFIC. X Ico primo; quod non folum iure communi antiquo pro- 9b capitulo conferre bencficia Sede vacante ex c 2. $t fede vac. verum etiam hodic iurc nouiffimo Pru: P confli- pictiont qua incipit Santilfiams và Chrzibà Patersd babetur in Bul. t^ Capitulum Sede vacante. fel. 1167. otunia bencficia-.vacantia tempore Sedis vacantis Epifcopalis quomodolibet ad Epifcoporum collationem; pro« uifionem, pre(entátionem, electionem ; (eu. quamuis: aliam difpofitionem qüomodolibet pertineatia ipfis Papae referua. tit etiamfi vacarcát ób culpam inferiorum Przlaroram noa confcrentium quia quomodolibet vacantía generaliter lo- quendo referuavt notat Osaranta loc.cits quel. 9. ^'' Dicofecundo; quod licct aliqui. voluerint Capitulum pof- fe conferre Sede vacante beneficia, quorum collatio fpectat ad Epifcopum cum con(ilio, & confcníu capituli ipfius;atta- men contrarium prohibetur 32 c.vaice S. cum vero nt ftd.vac. 1n 6. vt notant. Parzias p. 2.q. 1.5.2, IN auar.conf.1 nc Sed.vac. in nouiff. quia hoc effet, ac fi cum confilio folo deberet con. ferri, nà ad alternatiuz veritatem fufficit alterum adimplere ex c.in aiternatiuus (um. elof, de veg.iur. 156. pro confilio ergo non tenctur, nam adire Capitulum; & con(ilium non cfl ne- ceffarium quia ad verltatem alternatiuz füfficic,vt akera pars ' «crificecr aliter confenfüs ad. Papam deéuoluitur ; quod eti3n7 extendunt ad eum , qui conferret vna cum Epifcopi conícníu, vcl cófilio,quia in ncutro fuccedit Capitulü, vnde fi conferre debecet cum foloconfilio ; poterit.couferre abfque confilio capituli, nec tenetur ab aliquo alio confilium petere vacante Epifcopo ex d.c-vinco 84i». cuius rationem adducüt. Gemin. & Franeusloc.cit. fi vero folusconfeafüs debet ex- pectari füccetfor ; qui confentiar. ro elor-tz d- Sfi. verf-cunn confilio, tbi f(cribente: efofa in c.[i pro te efcr. 1 6. expeCtanti in tali occafione carrit tempus, qtia expectanti legitime im- pcdito non currit tempus ex capi. quit diuer[rtatero de canceff- prb. é c (in, de elect : : Quod fi contenfus praeftandus effet ratione iuri(iictionis Epifcopalis, vt in concctlione iuris Patr. & decim.ex culus de surtpatr-[accedit capttulnyut optimcrota Dusn. loc.cit.nMte Dico tertio, quod Capitulum Sede vacante potet licite co- ferte illud bencficiuzs cuius collatio communiter fpc&tat ad Epifcopum, & capitulum; quia vao deficiente» vel inhabili cxiftente, alter confert de iure communi ex c. vnicone Sede vacat. in 6. ex ciuídem rationis identitate amplia polle capi- tulum prafentarc, & eligere; quoties prafentatio , & electio fpe&tat ad vtrumque, communiter ratio buius affertur pec oann.AM onacban d.c. vntco ne fede vacan 6 Gemin.r France 4n c-vitico de maior." obeds n 6. 6. Lambert. a l.2. ar 14q.2» principals , dicitur autem aliquod communiter pertinere.» » quando zquale ius qualibet pars habct in actu , vt notat Ge- -minianus loc.cit. ' - Dicoquatro, quod ad Capituli Sede vacante fpcctat infti- tucre;& prouidere aeconomos in parochialibus vacantibus » iltifque Écclefias commendare, vt carum iura regat admi- niftrcc; doncc fuerit à Superiore de (ucceflore prouifum cx c.cum vos vbi Paporm.n. 2. de offic.ordinaud.dr Gem. in d.c. visco, Felin.im d.c-eum olim , &'alij vcrum in Regno Neapo- litano camcra (latim capit pofleffionem iucium. reddituu. « Dico quinto, quod poteít Capitulu: in(tituere prae(cnta- tos à Parrono, vtexpre(sé habctur in c. 1. de inftitut. in 6.ctià poteft confirmare electiones , quas Epifcopus viuens confir- mabat, vt notat Shroz» in ma.de sc. Epift.l 2. q. 70-14. Daun. p:2-3-4. C" quaranta loc. cit. Ex quo Collige »quod fi clcctio alicuius dignitatis (pc&taret ad ca- pitulum ; duplici jute fungi potet Sede vacante capitulum «f. eligendis & contirmandi' cle&tum , eligit quidem in taki cafu iure capitularí, & confirmat iuce Epifcopali ita Glofay& Do&or in c.penult. defüppl. neglig. prat. in 6. ; Dico fexto, quod. Capitulum Sede. vacante poteft dare li- centiam alicui voleatizedificare Ecclefiam cum Iure patrona cus Calder. faa tit-de iurc patr. quem " fequunuir,modo non apponatur conditio in. przeiadicium Epifcopi, reddit autem racionem Calderinus quare banc poteítatem zdificandi Ec- cle(iam poffit dare Capitulum Sede vacante , eft; nc (i expc- &eétur (ucce(for Epifcopus ; poeniteat interea volentem Ec- clcfiam zdificare, periculum enim in hifce rebuseft in mora- contra diípofita 17 3.c.de éeve patr. lide quarantam loc«cit.— Dico feptimo; quod Capitulum Sede vacaate potcft rcci- perc bencficiorum. rc(ignationem in duobus cafibus , primó quando fieret ex caufa ncceffatía, non autem quando libere , & fimpliciter. [ta Rebutt? in praxi Titulo d? D«uoluuon. n. 9$.& Quaráta loc.cit.(ecüdo quando rcfignatio fit i» paenam ipíius Refigaantis vr patet 4» extrau execrabilit $. caterum de p. : Capitulum Sede vacante. grab. aduette tameo hane refignationem acceptandam effe . antequam in Confiftorio fiat proui(io de füccetlore Prarlato, 'aliter non valeret;quia expe&tandus effec Praclatus;vt in Ro. ta decilum fnilfe refett. Parif. in tratar. de reguat. benef. lib. 7.qu41.12.. Dico octauo; quod Capitulum Sede vacante poteft fu3m athoritaeto interponere in beneficiorum permutatione in duobus : afibus, prio , quandocol latio corum commun:tec fpeckat ad capitulum & pifcopum ex glof. notabili; & com. nuniter approbaca in Clem. in Verbo coníterantur »& » ibi Imoja n.1 1. dc rerum perrautac. & [ubar. confil.36.. num.2. fecundo; poteft interponere authoritatem in permutatione "beneficiorum in ca(ü rclignacionis modo fupccus expofito. Dico nono » quod Capitulum Sede vacante pore(t vnire bencficiain illis omnibus cafibus in quibus poteft Epifcopus; dummodo non fiat prxiudicium menfe £pifcopali , & nihil de cius iurc pereat. Ita Doclores in Clem.1. de flar. Af onac« in c.i. de maiorit. Q^ obed: 1m 6. Petri de. Pevufto in tr.de vnion. ecclef.c.4. n9. Ioanner Bapt. de Caccialup, in tratl, de ynioni- bus art. 3.1.19. Rebuff. in prax. tit. de vnione benef. nu. 36. 6c à contrario fcnfu concludunt etiam poffe di(membrare bene- ficia in cafibus, in quibus de iure pote(t Epifcopus difimem- brarc. Conttariorua enim eadem doCtrina ; in Rebuff. loc. cit. num. 19 ] Adde quod durabit tam vnio; quam diffolutio facta pec Capitalum 5ede vacante etiam tempore noui Epifcopi ccca- ti, vt concludunt Perrus de Perau(to 1n trat de veuocat.vurouis n. 16.7" 17.F elin-in d.c. cura alim in fine , C alij. Dico decimo; quod Capitulum Sede vacante licet non có- ferat bencticia, attamen potett in cafibus à iurc permiflis pri. uarc beneficio feruatis feraandis ipfa Deneficiatos delinqué- tes. Ita Dacfores in c.cam oli à Pana p. 1, q.6. an principio y O7 quaranta loc. cit. Vtrum Capitulum Sede vacsute poffitconcedere Indulgentias , quas pofJunt Epijcopi ér exequi litteras informa dignum, cogaofcere degaudente immanitate i; DIFFIC XI. Atiant DoGtoresalii aiunt; alij negant ducuntur;qui nc- gant, quia licet concedere indulgentias pertineat ad cla- uem i1urifdictionis ; attameneft iutiídictio przcisé conceffa dignitati Epifcopali ex c. Accidentibus de cxce(íu. l'rab. & » communem hanc negatiuam tcllatur. Card, Zabar.. in clem. 29.de penit.. C" venn(j-PauirpV-q4. C" alij. ... Affirmant tamen etiam probabiliter Ludouicus Bolognin. in fuo tradt.de mu cui videzuc jahzrerc. AVanar. de Jub. et Indalg- praefertim fi capitulum haberet id cx confuctad. c Henriq. $n fumm.l.7.de indule.c. , 1. tutius tamen alfcrit Q«a- vanta cum Zabar.C Pauino loc. ct. haac poteítatem conferri à capitulo alicui Epifcopo. Illud tamen.verum eft; quod Capitulum Sede vacante; nec cius V icacius poffunt exequilitteras Apoflolicas in forma di- gnum, & aliasdircétas Epifcopo rstione dignitatis . Ita Sac. Congreq» conc«in Canenotanenfi 1. dd uguil A63 dpud Barbof.da £anan,.decif. C41. tem nec poteft Vicarius capitularis cognofcerec aufas de- Jinqucntium coníugientium ad Ecclefiam ;an g»udeant Im- munitate ad finem eos extraheadi. lta $4c.Congreeg.t 1.Febr, 1633.apud Barb. colle 123-C7 fperellaratl.3 a8, C Quifnam infra otlo dieriutra quorum terminum coeitur ey. Con. cilio T ridentino capitulum ad eligendum (ibi Vicarium capitularem debeat suvifdic lionem Epifco- palem admini[lrare. PBIFPEIC, XII: j .* 2 N?9 defucrunt qui nec improbabiliter cenfuerunt (tatim V poft mortem Epifcopi adminittrationem Sedis Epi(co- palis pectinete ad Acchidiaconum,; & cop(ícquenter infra a octo illos diesinfra quos à Concil. Trid. /e.14.c.16. cogicip Capitulum fibi eligere Vicarium, exercet poti iuriídictio- nem Epiícopalem perseytum 12 c. 1. C in cad bac de officio elrcbidilta )broz, vn trailide Vai. Epifc 11.3.61. Sc alij. Attamen; quia talísadinipilratio datur Archidiacono fc. de repictàs non vacante .. quando Epiícopus viuio fed impe» 21$ ditur abíens nec Vicarium fibi eligit , tanc ad Archidiaconá dcuoluitur iurifdictio Epifcopal's ; ne animedetrimenta pa- tantur, at vero Sede vacante iiniediaté ad capitulum tran- fic iuci(dictio, Epifcopalis de iure communi, quaretotücm ca- pitulum adminiftrare debere intra ter:nianm o&to dicrum offeque etiam hunctceminum abbreniare;& ante octo dies 'icarium conftituere notat Ouarana S. prin debitatur. [oc, Cit- CP colbgituz ex tex» in 3. Exclefle: veidroy vbi eriam zdbbas tont, i. de elect. Quod fiadeffet.difcordia inter. Canonicos in electione Vicatij & plures atlumerentur ; iiie. cenfebitur leoitimus ex declarat. Sac.Congteg. qui magis idoneus habcbit conditio- nes, i qaalitates à: Sacr. Concilio appofitas. Ita Q«uaranta Aoc» cit, Notandum ctiam hic e(t, terminum o€o dierü po(t mor- tem Epiícopi capitulo ad eligendum | Vicarium conftituto à Sacr. Concil. Trid. currere ctiam capitulo à die translationis proprij Epifcopi ad aliam Ecclefia, quándocerto (ciatur fuif- (c calis Epifcopus à Dapa abfolutus à vinculo prioris"Eccle- fia; quía tunc veré dicitut Sedes Enifcopalis vacare per tranf- lationem;etiam fi non adeptus etfct potleffionem alterins Ec- cle(iz» quia uncetiam ei cetfat adariniftrarios & fru ctunm petceptio, & ira cen(uiffe, & decliraffe Sac.Congregationem fuper caufas Epifcoporum tefert. Ouaranta loco cit. . T ermi- num oclo dier Virum Capitulum poffit Picarium à fc eletlumy dr cou- . VIDA YCEHOCAYC « » DIFFIC. XIII. N Egatunt multi eo ducti iundamento , quia fi. Vicarium à fe ele&tum potiet ad libitum reuocare Capitulum fe- queretur abfurdum ; quod Vicarius non procederet a'acri- tet, fed admodum (cgniter in adminiltranda iuíitia contra Canonicos particulares, à quibus dependeret eius 4motio , quod non fequitur in Vicario Epifcopi; quia licec üt a:ooui- bilis, tamen à folo Epifcopo amouerti poteit; imo potc(t Eji- fÍcopus iudicare finc Vicario ; quod tamen non cft in capitu- lo, tacile enim, fi effet amouibilis Vicarius à capitulosdarctur occafio canonicis in vitia prolabendi, quia V icaciusnon pot- fct cos punire cx timore, neab illis amoueretur, Attamen alipaffirmarunt po(fe capitulum amoucre Vica- rium, nam,vt Pauin. p.. q. 10. nu. 7. probar. Vicarius: potet amoucri ad libitum ab eo cuius e(t Vicarius, ita videtis atfe- rere etiam Nauar. conf 9. de elect. in antiquis. & D. Anto. nin. j.p. fun. Tiít.19 c.10.$.2. in fine. Verum hodie adeft Sacr. Congregationis decretum ,. vt Vicarius capitularis non poffit amoucri a capitulo. (ine caufa ab ipfa Sac. Congregatione prius approbanda , qux certiora- ti debct de caufa , alioquin rcuocatio » & amodo cffct nulla. Ita babeiur apad Quaranten loco cit. $. ín cai vero & aono 16 1. noujtlimé,& ante etiam multoties ab cadem Sac.Con- greg. decreaum fuiffe docet Barboía de canon decifion.c..; *. 0.47. & in Deci(. Apod. collect. 125. nu.9. poftquam autear Vicarium ex approbatione, & licentia Sac. Congregat.debet infra terminum dierum o&o aliam eligere ; alioquia electio deuoluitur ad Metropolitanum, vel antiquiorem Epifcopum: ex Sacr. Congreg. apud Gacziam de Denef.p.$ c.7.num. 2 5». declarat. j. : Cauíz autéjquz iu(z videntur ad petendam Vicarij reuo- cationem tres praccopié à Doctoribus enumcrantur. Pcimo,. quando in. fuo munere excquendo admodim cffet negligés. Hfin.ffl.ubi pupsl- edacari deb, C? Lfi quot C. de off. praf pret. Baer, decif.1 $ 3.5.20. Secundo ; qnando preuaricarerc. in officio illud male gerendo fcilicet vendendo iutticiam . & alia inilia faciendo, ita Petrus Bellug. 1 foec. Princ.rulr. x6. de prtnatzffic. $ princeps n.6. quinimmo capitulum tenetur de dclicto Vica- rij fi quanto citius, po(tquam id ei innotuerit, norramouc- ret ne docet Pausa doc.cit.n.12« Tertio, caufa quando appare. ret infufficiens in exercitio illius officij ex c-quamus tz'fle 7.4. 1. Boer.decif. 149«n-17. Vide AM enocbium in addit.ad librum pri mum de arbi. 1ud.q.$ $.n.19; Addc; quod vna ex iltis iuftis caufis exifteite potet Ca- pitulum reuocare Vicarium etiam fi interpofitum cflet iura- mentum à canonicis fub certa pena de non renrouendo, quia iuramentum non cft vinculum iniquitatigquare Ae . cient £16 effent feriuci remouendo: Ita D. /ni0n. loc-cit. Pauin.d.3.10. n7. Sbroz 1n d.tr3c.l 5.5.33. 134 Quaranta loc.cir, Virum Capitulum poffit dare confeltorem Vicario à fe elello , fs ifle non fuerit Doclor. DIFFIGC XIV. AT reípondendum, quia per cóttitutionem Leo- nis X.quz incipit Regimiti vniuerfalis Ecclefic fol. 188. in Bulla difponirur ; quod etiam iudices à Sedc Apoltolica deputati fi in altero iurium non facrint graduati » atíc(Torem partibus non fufpcctum a(fumere, & fecundum eius relatio- ncm iudicare tenentur; itaque cepitulum debet darc conful- torem Vicario non Doctori ; quod fi capitulum. negligeret, poffci ipfe Vicarius Doctorem folo bene vifum partibus non fufpe&um in cafibus in quibus eius iudicio indigereta(fumc- re, & ita Sacr. Congregationem («per caufa Epzeoporum cenfaif- f docet Quasanta loc-Cut« ) Virum Capitulum teneatur eligere perfonam de evemio fuo sn Vicarium Sede vacante, G' an. [alariandus ab, apfo.capitulo elecus Vicarius. DIFFIC. XV. D'e primó quod non cogitur Capitulum cligete Vica- rium Sede vacante de fuo gremio capitulari ; fi vcro ad. - effet idoncusin ipfocapitulo ceteris paribus mandat Sac.Có- gregatio, vt ceteris przferatur, quie eriam declarauitsctic ir- ritam cle&ionem factam Vicarij non DoGoris, quando ha- beri poteft Do&tor. ide Quarantam $ [cxto dsbit. Dico fecundo; quod Capitulur tenetur ex bonis Ecclcfize vacandis falarium affignare competens Vicario à fe clecto ctiam fi fucrit Canonicus de fuo gremio, quia nemo tenetoc fuis lipendijs , militate c. cum ae de prafcript. C* officium fauns. nemini debet cffe damnofum |. fed (i quis ex. fignatoribus ff. quemadmod. teitam.aper. ydeos doce: Cardin. $n clerms.fbatutum 8-7.dt elt£l. [mola ibid. Strog.de vic.epife.l. 1.q.55- Aduertant ramen canonici ; quod non poffunt cü Vicatio à (c clecto; paciíci vt emoluméta fint diuidéda inter fe ipfos, & Vicarium, quia admitteretur fimoniía , veram cft tamen ;. d non iacidcrenc in penas omncs tra 2.de (ymon. licer de ip(a patticiparent rc ipfa; quia talis extrauapans habeto. cum folum in fimonia coramiffa in bencficio & inordine, vt docet AN'auar. in manaali confeffars c« 33. n. 113. Vide Quaran- tam: loc-cit« Vtrum [i moreretur Vicarius Epifcopi dum spfein ree vsotis partibus dezity vnde prouidere mon poteft , po[fit etsam Capstilum Vigarium creare. DIFFIC XVL F&emnant communiter Doctores , (i abfentia fit longe puta; quia vp ad in Italie aliqua vrbe meraretur in Polonia, Hifpania; & fimilibus, nam longa abfentia compa- fatur morti vt notant Cardin cuscps 1 arbos offic. vic. Vital-in clem..$.v0 lumus q. $.defor. comp. & ita (eruatum faif. fc in praxi refertQuaranta à Capitulo Arclriepifcopalis Ec- €lcfiz: Neapolitanz fecuta motte Vicarij Generalis ín ipfa ci- uitare, dum bone memoriz Annibal de Capua Atchiepifíco- pus Neapolitanus exiftcbat in Polonia Nütius Summi Pon- tificis vt refert Quaranta. Item dicendum quando Sedes Epifcopalis quafi vacaret juxtatex.in fi c.f) Epi(copus dc png ro in 6. vbi ftatuirar, quod fi Epifcopus à Paganis, & Scifimaticis capiat non à Metropolitano;ícd à capitulo, ac fi per mortem Sedes vacaret facicnda e&t eledtio Vicarij. Virum fatla eletiione Vscari Stde yacantes remanest aliquid vwrs/di£liomis 2m ipfo capitulo ele£lore DIFFIC XVII D Ico pritrio; quod poft Vicatij ele£tionem capitulum nom abdicat à fe iqrifdictionem babituale m» fed folum actaa- lem, quia exercitium eius alteri committit ; vndc vt dictum c(t caufa cxiftente potefi illum remouerc. Dico fccundo , quod Capitulum in comntiffione danda.» . CapitulumSede vacante. Vicario; quem elegit, poteft fibi aliqua. referuare, vt docct, Guttier.l.Y.can.q.9. c. 11. & omnimodi iuri(dlétienem iuxta - fuum libicam confert; & minuit; quare Vicarius electus pof- fet etiam litteras monitoriales concedere ad finem reuela- tionis, nifi fpccialiter in commiffionc non fucrit folo hoc à capitulo prohibitum. & fibi referuatum , Dicotertio, quod poft Vicarijconftitutionem factam à capitulos curare vt immunitas, & libertas Ecclefiaftica feruc- tur, & nulla ex parte imminuatur ad ipfum (pe&tat capitulü ; non autem ad Vicarium; vt patet in litteris à Clem.8. datis ad canonicos ad rebicp: fcopatus IN eapolitags à. Quaranta relatis. Vtrum capitulum Scde vacanze poffit a Vicario a. fe eleflo in ali- qua caufa f'afpendi, vel interdici, CY an Vicarius capitulari: excommunicatis , vel fefpenfus ab ipfo capitula ab- folui valeas. DIF FI C. XVIII. Tyre primo , quod Vicarius capitularis non poteft capitu. lum füfpendere, & interdicere , quia iuri(dictio Vicarij dependet ab ip(o Capitulo, & füfpen(o Capitulo effet fufpen- fus etiam Vicarius quod ctiam procedit, quando Vicarij de- utatio fa&a foretà Metropolitano , vel viciniori Epiicopo in defectu, & negligentia capituli in eligendo vr optime no- tant Suar. de cenf.difp.7. fe(3.5 . G* Ouaranta lec.cit.án fine, quia talis negligentia in eligendo dat authoritatem Archiepifco- po, vel bpifcopo viciniori lupplendi defe&um capituli ; norme autem rollit iurifdictionem à capitulosnà fi moreretur clectus iftc pofict ctiam termino diccum octo alium eligere poterit tamen Vicarius Canonicos particulares cenfurisafticete, 5» quia vt fic non funt Capitulum. Dico fecundo, exiod Vicarius fi foret excomimunicatus;fü- fpeníus, & interditus, cuius abfolutio pertineretad. ordina- rium, poteft ex commifTione capituli abfolui ex c. vnico de maiorit. & obcd. ia 6. vcl à Superiore Capituli . Vide Qra- ranam loc. cit. Virum capitulum Sede vacante pe[fit agitare caujas [ua Ecclefie, & an &mrrat prefcriptio tali tempa- rt eontra ipfam Ecclefiam DIFFIC XIX. qybertino » quod Sede vacante Capiulum non poteft caufas (ue Ecclefiz agitare regulariter loquendosquan» do vero; & in quibus cafibus poffic agitari rali tempore cau fa Ecclefie. Vide Felim.in c. MN n.7.de refcrrotis. Licct autem Sede vacantenon poflint agitari caufz Eccle- fia, attamen non. füpt deneganda confcripia falaria. Aduo- catis ipfius Ecclefia» quia ft Ecclefia ipfis non indiget in cau- fa agitatione, indigere tamen poteft confilis, ficuc accidere eíl, ti ipfa de fato vcxetur , vcl Pen redditus Epifcopae diffipentur, & ita determinant. Cardinak. é» /mola iu 6lc- ment. cum de elect. Dieo tertio ; quod etiamfr caufa Ecclefia: effet czepta viue te Epifcopo, non currit ci prefcriptio Sede vacante, quia in- terim dormir, & tempus vacationis femper de medio fubdu- citut cx c.auditis de Prae(cript. pote(t tamen ipfa Ecclefia va- canscontra alias Ecclefias prarícribere ; nc quod in fui fauo- rcm introductum cft;vercatur in lt fionem . Ita 77oflienf. tw fiam T u-ne fede vacante. : Quando expiret poteftas Vicarij Sede vecante à capi- twlo coniituti ,. DIFFIC Xx. D Ico primosquod licet aliquis voluerint expirare potefta- tem Vicarij Capitularis statim atque facta fuerit proui- fio , & nominatio füccefforis Epifcopi à Summo Pontifice , attamen hac opinio reprobara fuità Rota Roman. in vna Burgeuf. Canonicatus, & decifüm non expitare poteftatem Vicatij capitularis per folam prouifioncm,& nominationem fatam noui Epifcopi, fed requiri, vt de promotione fuccef- foris litera conficiantur, & virtute carum poffeffionem có- fequatur (acceffor, itaque poteftas & iurifdictio Capituli du- rát víqucquó nouus Epifcopus capint poffeffionem per litte tarum oftenfionem ; quia tüc folum poteft nouus Epifcopus yü Carccr., Vi fua iutifdickione , & Vicarium conftítuere » vt patct pet Extrauag. Bonif.P 111. snuntle de elect. AN .» Dico (ecuado,quod immediare ceffaret iurifdí&io Vicarij capitülatis,( à Sede Apoftolica fuerit alteri vacantis Ecclcfize cuta demandara ex c 1 $.de elect. 1 &.. -: (Nec non immcediaté expirat eo tempore, juo capitulo e(- fet eias authoritas fignatc determinata , vt fupra etiam tacá €(ipotfecapitalumad ccrtum dumtaxat rempusvicarium con- ftituerey quo maturato ftatim eius authoritas expicat;& infra ato dicsalium debet conftituere; pro vcà Sac.Congregar.de- terminatum eífc rcfert Quaranta ;, vide Payinum m d. q. 10, nuns 6. —. Perum Vicarius capitulevis teneatur ftare Syndicatui , C* coram quo finito officio, DIFFIC. XXI. y. emer omnino refpondendum teneri ftare Syndica. sui coram Epiícopo nouo (ücceffoce ex dect.Conc. T rid- Kf 24. de reform.c.16, fab bifce verbis (Epi(copus vero ad eam- dem Eccle(iam vacantem ptopofitus ex isque ad eam fpectat ab codem Vicarios& alijsquibufcunque officialibus, & Admi- ni(iratoribus,qui Sede vacante fuerunt à capitulo ; vel ab alijs in eiuslocum conftituti , etiam(i fuerint ex eodem Capitulo rationem exigat officiorum,iuti(dictionis, & adminiftratio- nisaut cuiufcunquc corum munctis. poffitque eos punire.» Qui in corum officio, & admiai(trationc deliquerint ; etiamfi predi&ti officiales de redditis rationibus à capitulosvel à depu- tatis abfolurionem;aut liberationem obtinuerint) hzc Con- cilium idem fentiffc videtur. Pauinus in d.tr.p.2.9:7. lo Vicario vero Epifcopi viuentis non currit hec difpofitio, in gratiam enim dignitatis Epiícopalis eiusofficiales non te- nentur ftare Syndicacui,vt declarauit Gregor. XIII. in quibuf- dam litteris datis anno 1 ;78, directis Clero ; &« communitati Tarentinorum d eni pritendentibus Archiepi(copi Vica- tios Syndicatui c(fe obnoxios refpondit hifce verbisapud Qua- zantám. S'atutpiut, & mandamul quod V'icarij , ép officsaler (iue particulares etiam foraneis nuncu patiptr edema ZArcbiepi/Copuns, fiue tius pro tempore [ucceffares in d.Ecclefia T aventina, (iue. ejus dliecefi deyutattyvel deputandi ad aliquem [indicatum sullo modo teutantir aut eidens quouis modo (intobnoxi), — . - Virum Vicarius: capitularis (ine cananiéus , ffue esie. praecedat eauonicos Catbedralss Eccle(see im cboro, év proceffiombus , C». «n iucretur abfens à cbora. quotidianas diflributyones - DIFFIC.' XXII. Ico primo » quod quando V icarius eligitur vnus ex Ca. nonicis Cathedralis Ecclefia ia choro. debet federe in.» locoíii Canoaüizatus , nec poteft antiquiores praecedece ex €. à collatione, ibi Geminian. nu.6. Franc. n.4. de appellat. in 6. nam in choro confideratut vt Canonicus, non vt Vicarius, vt loquituts 4 enocb.de avbitr. Ind.l.. 2. cent. y. cafu 68. lirnitat tamen IN auarr.conf-1«de officio icar. nifi alid contraria con- fuctudine fuerit legitíimé inttoductum;qua feruanda forct. Dico fecundo, quod Canonicus clectus V icaritis Sede va* cante probabiliter multi volunt quod lucretur quotidianas di(lributioncs (i.occafione incumbendi (uo officio abit à Choro ca rationc, quod cenfetu: efíc in (cruitio Ecclefia , cü magis commodum fit Eccle(iz ; vt deputetut. vnus ad exer- cendam iuri(dictionem. propter difficukarem congregandi totum Capitulum,& competcendas qua poffint oriri intcc fingulos de Capitulo.Ita Dauin.ín tract. de offic. & pot. cap. fcd.vac. p.z q.10 n.5. R cbuff.in prax.p. 1. T it. de vic, epiíc.nu. $.& Rota Kom deci(. 22. diuerí.n.6. p.2. Attamcmquod non debeat percipere quotidianas diftribu- tioncs fitempore diuinorum incumbens officio. (ao abfit à Choro Canonicus factus Vicarius capitularis probabiliter fuadet etiam Monctain tra&tat. dé diftribut, quotid. patte 2. quzft.13.nu. 53. en Potiet tamen dici, quod (i Vicaciatus officium gratis exer- €ct iu. gratiam capituli, & Ecclefiz » debeat haberi prze(ens Choto ; dum abcfi ratiope (ui officij excquendi canonicus factus Vicarius Capitularis, quod (i habcar falariuro füfficiés, non videtur ratio, quare duplex accipiat iucrüm Canonicus Vicarius abfens à Choro, r7 Dico tertio, quod (i Vicarius capitularis eligatur non Ca nonicus; in proceffionibüs,& in Choro poft primam digni. tatem in. Capitulo poteft (edere, & przcederc, itaut dignrot, de Capitulo poít Epifcopum preercur Vicarium capítularé. Itafoann. Andr. & Gemin. in cap. penult: de offic. legati in 6; determinaates, quod in EcclefiJs in quibuseft prepofitas etiamfi Archidiaconus gerat vicem Epifcopi Sede vacante, & tunctemporis imperet Przpofito , tamen przfértur Ar- chidiacono, quia poteftas illa vti temporalis, & breui duratu- ra non faciteum baberi maiorem. Ita ctiam Fein. in. RubA de maior.Cf obed.nu.10. IN'scol. Boer. intracedecrd. éy prect grad.vtr.for.p.X. mV. Cr exprefie vnagis firmat Sbroz.. lsbr a«de Vic Epsftop-.1.5.n.20.G* Quaranta lococit- $.8. dubirature Carcer. Virum carcer ad folam cuklodium, anetiam ad. pa-. nam [it pretipn inuenta. DIEFIC L (ons à verbo coercco fuam trahere Aethimologiam 24 fenriunt. Doctores muki , quafi poriusad coercendum Reum;ne fagiat ; quam ad poenam infligendam fit inuentus exl. r. de Cuftodia Rcor. de iurc ctiam Canonico ad corre. €&ionem magis pracipué datur carcer ; quam ad vindictam; Primusaacem qui pro Clericis ob hunéfinem determinauit €arcercs. fuit Eugenius Secundus: antiquiffimo autem ceme porc fuiffe carcercsad rale factorum ca(todiam hiaberur Ge- nef. 29. vbicarceti mancipatus legitar Innocens Sanctus Io. fephi Vide nofter RedriqT 1.4.16. ar. 9. 2. Hi teron; Rodriqu., re/ol. 43. Gomez, T .$.var.c. 9. nu.8.Seenrar de 7dnolas in directi. p220.13. Clar. libe. fententS.fin.q.48.n.6.€*. 3, Farinac.T .x. l. 244. 27« ni. 98. Attamen licet ad cuftodiam praecipue fit car- cct inuentus. Attamen Dicendum etiam praifati Doctores putant in pernam, ia mulétam deli&orü dari carcerem, (icut iam vfus obtinuit, & in praxi apud Regulares maximé feruatur , cum fit maeis congruum Religioforum crimina occulta carcerum imaccra- tione punirc;quam alijs corporalibus peenis publicis in (can- dalum pufillorurn; & detrimentum honoris Retigionis/tsa- dalizantur enim laici qui, (i Clericis ex c.laicos 2.qu.6. folent effe valdeinfe(ti , quid Regularibus ? PE Carceres camen debent effe regu'ariter humani ; fitamen dentur in penam poffunt effe fecuriores, & obícuriores, non tamen ica; vclectionem impediant, at omnino (emper tales, vt propter. nimiam rigiditarem , & afperiratem malam va- letüdinem valeant inducerc ; & confequenter, vel inficmita- tcs perpecuas, vel ctiam. mortem , hinc aduertat-Przlatus; quod in carcere inhurpano excedens diceretur horuicida. Ita nofter Portel.u.carcer n. 32 Rodr. log-cit.q. 17.art. 3. Virum de fa£lo po[fimt clericis ér Regulares carcevibur mancipari : Q* an de carcerationt poffit dàri appellatio. DIPFIC. II. D'? rimo , quod nec Clerici (zeculares, nec Regulares an Sie de facto Carceri mancipari , quia carccratio in» famar, & irreparabile damnum affert. Bald. i» cap fi clericus, C.de Epifcop. audien. C" 4n lite cap.de integre veítitut. [afon snl. 4-S-condemnandum ff. de re iudicata G* Méenochb.de arb.caf. 87. debetergo Praelatus contra eos (umamariam informationem capere de dclicko faltem poem famam, vcl denun- ciationem: przecedentem legitime przíumptam;& (i per duos tefics conflicerít ; poteft procedere ad capturam, niti enorme delictum fuerit adco notorium , vt nulla cergiucríatione » calari valeat, & fuga probabilis non. timeatur. 1ta notler Kodriquez & Portell. loc. citar. adde. eciam nifi adár proba- bilis timor; quod feducturas fitteftes, vt deftruatur infoc- matio» quia tunc ad fincm formandi inquiüitionem carce» rari poteít maxim hoc fitdidum pro Clericis (zculacbus ita Genuenf. in prax« Arch. Neapolit, cap. 29. & dc rraxi communi Do&or, te(tatur Iul. Clar. in prax- paragraf. tin» quz(t. 28. : E - Dc fado autem Clericum ; etiam fi dr Pelro. d ni 2x8 jufié Carccrans incidic in excommunicationem ex cap. fs cleracos.dle fent, excomuanicsin 6, [a Genuenf. loc« €. mum» 5. er tamen bcae verum quod (i clericus ad morum correctio. nei detincatur carceratus pcr aliquot dies, eciam fine pro- ec(u , non videtur Epifcopus excommunicatus cum. temeri« tasin Epiícopos & iniuria in clericum in hoc caíu. ee(Tace vi dpgpora à iuxta d:c (i clericos... Pu.. D & fscundosquod de carceratione ad cu(todiam;vel mo- ram giam correctionem non licet appellare;quia aon datur per (ententiam, vt optimé notar [ul. &lar-quod (i jà penam, delicti detars quia per (catenam datuc in hoc cafa pore(l. fie-. piappelatio * | LS Daci tamen locum petenda iniutiz pro iniu(ta cagceratio, nec maxiiné in religionibus docet noffec Porrdoc«cit.n.3. Virwn liceat priuatis céudbusaberé cárceres priuatas. DIEFIC Ik N Egantcommuniter Iuciftz s quia ad iucifdictionem ha., bentem fpce&tat babere catcereshinc fi quis priuatus ali- qucm incarcerarct etiam pro notoriocriminc capite puni- tur» vt habetur C.de coavaéBar, [owmecltb. ta, commit cnim, «rixa, l(z Maic(tatis, vt poré iurifdictionem vfurpans; &. idco priuatü catcecem habere ad incarcecandum vlumo lup. plicio pumitüc.ex. [. vnica C.de primuto Carcera, ab, hac tamcn, DÉ S. Eximuntuc primo.ij qui habeat iuscapiédi, & detinendi, vt. Domini proprios (cruos.& parcites proprios filios, vchabc- tur l1. & z4cde Da. quaje non committunt priuatum carcc- rem Dominus (uum fecuum fi incarcezec nec (i Pater filiura, etiamdoni carce;i tradat ex J.vriea G.de princ» cares , : Eximuntur (ecundo, qui babepr potcflatem detinendi cos ; qui ia Cagranti, crimine atroci, jnucniuntur ; & «creditores, (uos debitores figientes, qu) came non po(Tunt cos, detinctc vltra horas viginti, aliter committunr priuatum carcerem, (i vltra boc «eapus à lege ttatutum detineanreyx Zeapirsbr: Bar-. f de dd hut. vide noftrum H1 ungarell.v. carcer febee., Varam carceri mancipatus poffit. licite [ine peccato. aue : figart s. carceres fringere. DIFFICG. 1V. Ico primo., quod. Carceri perpetuo. mancipatus;u(ta, ob, (ua delidta pracedenre fententia, ram (zculacis ». quam Cicricus mortaliter peccac aufuügiens» quja pazna acceptata poü (cnicauam latam obligat ad moytale » (cecus. (i f;ocentia fuccicin iu(ta»X de in iu(tiria fibi in. coní(cienüa , vclalias le- itimé conítiteric quia tunc parc(t licicé aufugere. Ità nofter edr. T 3.4.4 riui q.i. : Dico fecundo; quod ju(té carccratus. fi. tímeat fe ad mor- tem damnandum , vel. ad mcmbri abícitlionem probabiliter multi v.lunt, quod poflit aufugere, modo velit fe de peccato. commilfo penitere; & proponat efficaciter ad meliorem fru. gem redire, (ccus fi animo pcrícuerandi in delictis effugereti. aufugientcm etiam cum bono emendationis. propo(ito.aiunt non peccare cos;qui adiuganr,vel ef con(enfum; fauocem,vel confilium praeí(tant; modo abit violentia in tertium. & fine fícandalo;vcl danino Cuftodis; & fine animo foucndi iniqui- tatess(ed (olum animo compal(lionisia proximum ve] afium. bonum finm. Ita Z4rgelur after P. fugere s. alentsay. Sotun. Graff cy ali. infra citandi, vbi etiam. hoc putat vcrum , fi fen- tentia fit dataconrra Reuny quod.eriam. probat g/o/jp caater cattra $ fed cim bit 125.4. 6 fnt! quad babetur. 1.4.3. $.. ptotani- dlu»o in fin. c l1 ff de bonor-qui mortdibi confuet. vnde coclu« dit cum D. Thom.2.2. 9.69; quod £e damnaius, potcft ci, bum MAMIV ION ME nature conferdationem«diitans cft. (as... pra legem pofitiuum; ergo licité quis carceri dainpatus ; & » mortem timens, vel membri abfcifBonems»vel fame perire s. ft carcerem anfagere & cibum (urere, Au vcto.teneas tur fugere: vel cibum (uraece negat noftcr Angclus: quia pae« nam iuflé illatam pto fuo peccato potefl patienter fu(tincte. ; Dico tertio, quod licet dioi iai ramenta ad etftia utn Carcecem negent licere 'a/ept.T 4. difp.í. q» $» Sotuts. E rfe 7 oletusapud S eidinn xa. trad]. Fais xis ma. gnum detrimentum afferunt bono publico cffra&tiones car. €crum» quia ctimira paffign impunita cemanercur volunt ta« Carcer, - men illi Doctores licere fugam conütlcreyquia confiüiumaa c(t proxima caufa cffractionis.. , Attamen nofter Pillalob. im fumn.T . Y. trafs 16, qui citat Ca- det. P'ajqueza C Lefatem M avder. lac. ctt. «doris, C T uria- nut quot CitatyC7 fequitur Diana trac-$. M tfeirefolua. voa; pros ' babilinsexi(Lumant liceresSc ratio cfl;quia iuxta ipforum Opi- nionom licet confülere cffractionem; ergo cffra&io de (e bo Dà c(t, & non mala , anxlium vcro ferie iaflrumcnta mi» ni(ttabdo, aut quocunque-alio modo adiumando ad rem bo: nam con(cquondam non c(t malum,fcd bonum, itaque (i ef. fractio coniulitur,vt bata. X non;pcccamino(as crit eciam is citum, & non peccaminofum in(trumenta auxilidt; & fa» uorem przbere ad cain confequendam, Quare Diana cam Siluio Joc.cit, iuxta (enientiam noflri Apgcli-in diéto:Supe. riorilimitat modo non ad(it nocumentum cu(todi,quare vo- lunc; quod alligare magus cuítodj dormienti , vel in terram «um profterncre abfque notumenio non e(fe mortale. , Ad raügnem aurem contracie opinionis dicerem s quod. licet euagnim detrimentui (it bono publico. effractio. €ar- cerum;quia delicta patfim impunita remancrenc, attamen (i cffractio fiat cx iufta cauía ; puta. (i (it iniutta carceratio ,-vel (encentiaygl ,adfic lex naturalis fugam confülens,&on fiim. mediate contra bonum publicum quiadcli&ta poffunt alio. modo puairi, quam per iniuflam fententiam, & eriam quam ob cauaa mortis, vcl membri abíciffionis fententiam, pu- nite enim morte, velab(cilfione membri non eft delegena- turapo(fet ezgo prouideribono communi alia via; quam nó. horrcat natura, itaque folum cffcactio. carcerum iuxca- (cun dam conclutioncm licita etl tanto magissquia tales puaiuncur lcge ciuili vc infa » lex autem ciuilis noo ponenspenaim cor- poralem, probabile eft ; quod ad peccatum mortale noní obli-. BeG vt dicemus;n fca V.lex, .. . Collige primo; quod cfiringens carcerem,ctíam.fi ad eum. temporanee. ciTet damnatus, 6 carcer tit valdc inhumanus,& neceffitasadeffer alendi parétes, vek familiam (uam non pec- caret confiquenrer nec auxilians, vel (uadcns; quia lex. nas ura pofitiuz lcgi praualet. Ita ctiam Bonacin.de leg.dif. 10. Gollige (ccando ; quod carcerem offringens. in. cafibus: fu» x pofitis, (i fugiant alij, non tenetáy ad. damna; quia vtens. iure (uo preecec intentum alium, damnificans non tencturc ad, damna, íccus, fi confilerct fagáme Ita ctiam.nofter "V illalob. loc.cit.quem euam fequitur Diana, Attamen., Dico vkimo; quod licet catcerum:cffra&tores in foto poli, & ia con(cientia non peccent in cafibus fupradi&tis , & limi- tationibus pofitis, attamen in foro fori capite puniuntur-etia: facta contpiratione cum,eis fagientescx Ll. in.cas dc cuftod. rccer. Aducrcé autem quod. Keligiofus carcerum effractor non poteft. eijci ab ordíne proptcc hoc(oiuwn delidium; vt docent noflci Porcell. & eo quia propter hoc folim dclictum noa dicitur in corri- gibilis vide infra v.ciectio.. . ; Psf o Adde etiam, quod licet (zcularis, fugiens & carcere habea. tur pro. contcílo etiam (i efftactionem. non committeret tamen,hoc in. Religiofis non.practicatur . nam vt. norat no« fter Vngarell, V.carcer ích, q. hoc folumve tum, c(t in fora. fori ciuili, quod prafumptionibus aliquando. fundatar ; Re- ligiofi autcm rimulas. iuris vitare debent » vt magis chatirare. dudti, quam.iuridica caufa correctiones infligetc vidcan- tur. Íta ctjam;notter. Portcll. n.4. triam Index teneatur carceres vifitare , C* panperi- fp bus prouidere. (o DIFFIGC V.. Vdicem teneri füb mortali vifirare carceres, & pauperi- bus prouidere multotum c(t fententia ; vt infra V. Iudexs forté rédibicí(ermo tenetur enim facere, vt cís neceífaria » mini(trcntar, « perfonaliter vificare (altem per pium dee: , legatum. Cod. dc Epi(cop. aud. libro ;.immó. ex offició po- » dum vifiratliberareé carceratum fi ad friuolanrioftan- tiam, vel (ine inílacau(a; vel dcliCto. commiffo.cognofcat de-: tentum factis tamen prius Danuis, vt notat noftcr gae vellus bit [ch e«Vide zAngelumsnofirum v. ca ctr 6s ; Virum Cardinalis: Puirum carceratums ob et alienum à carcere i extrabent teneatur faluere fuss debitoribus , GP an carceratus illi, qui etiam fe inuitumm à carcere liberauit a5 Alienum fuo debitori folucns , teneatur vedderesquod pro fuo Itberatione folust. DIFFIC. VI. D'e primo quod extrahens conentur à carcere; vel 4 ma- nibus familia [udicis; iu(íu fui cteditoris, tenctur ad fo- lutionemtotius zris ; quod carceratusdebebat , & expen(as etiam pro carccrationis executione , eft enim proxima caufa , damni creditori illati propter calem debitoris;fui violentam €xcarcerationem. Ita communiter. An verà fi denuo prefatus debitor paulo pot in carcerem conijceretuc, cencatür adhuc pravfatus ; qui liberauit cum in damnum creditoris foluzre ip(i zs cotum ; quod debet recar- ccratus Debitor, affirmant Martha ff. noui. T.2. Tit. de cac- Cer. c.44, & Nald. hic. Verum rigidé nimis;fufficere enim pu- arem in foro confcientiz , quicquid 2r de foro fori, quod predictus cximens à carcere curctactü carcerandum à fc ex carceratum in fsuorem creditoris ; antequam fiat impotens ad folucadum, ita .n. reddit, quod abftulit;quod fi excarcera- tus nó fit potens recarceratus qui potens etat ; quádo fuit pri- mo cxcarccratus , non videtur faltem improbabile cum dictis Dod&toribus in fauorem creditoris fencirc. Dico fecundo , quod cacceratus ob es alienum ex zquitate faltem tenctur reflituere pecuniam ci , qui ipfi inuito fuo cre- ditori (oluit , vtà carcere eum liberaret, fecundum iuftitiam tamen nox tcuetur. Ita Burr. £7 C.3.9.2. de for. compet. quia przumitur donatfe ; dum fc inuito pro fepecuniam foluit ; ratione aucem inzratitudinis vitanda faltem debet coafeífor talem ad rcítitutionem acriter faadcrc. Vtrum in iufl& carceratuss liberatu/que [«b promifione iurata redeundi an oblgetur redire. DIFFIC. VII. ON Egantnoftri Angelus hic $. 4. Vngarcll. fch. h. & Gut- N ticrez de immu.confirmar. 1.c. 57. quia iuramentum nó cft in materia debita, fecus (i iufté etlet carceratussquia deber fccundum probabilem fententiam redire, ctiam fi mortis im- mineret periculum. [ta no(ter 24nae[us Panornnit.inc.[i vero de a3urciur. fedtu uide dicendo infraV. iuramentum.
| 3,018 |
https://eo.wikipedia.org/wiki/Butanono
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Butanono
|
https://eo.wikipedia.org/w/index.php?title=Butanono&action=history
|
Esperanto
|
Spoken
| 514 | 1,632 |
{| class="wikitable floatright" width=10%
|-style="background: green; color: white"
|colspan="2" style="text-align: center;"|Butanono
|-
|colspan="2" style="text-align: center;"|<center>
|- style="background: green; color: white"
|colspan="2" style="text-align: center;" |Plata kemia strukturo de la Butanono
|-
|colspan="2" style="text-align: center;"|<center>
|- style="background: green; color: white"
|colspan="2" style="text-align: center;" |Tridimensia strukturo de la Butanono
|- style="background: green; color: white"
|colspan="2" style="text-align: center;" |Alternativa(j) nomo(j)
|-
|colspan="2" style="text-align: center;" |
Etil-metil-ketono
Metil-etil-ketono
2-butanono
Metil-propano
Metil-acetono
MEK
|-
||Kemia formulo||{{KemiaFormulo|C|4|H|8|O}}|-
|CAS-numero-kodo||78-93-3
|-
|ChemSpider kodo||6321
|-
|PubChem-kodo||6569
|-
|Merck Index||15,6143
|- style="background: green; color: white"
|colspan="2" style="text-align: center;" |Fizikaj proprecoj|-
|Aspekto||senkolora likvaĵo kunmenta aŭ ketona odoro.
|-
|Molmaso||72.11 g·mol-1
|-
|Denseco||0.8054 g cm−3
|-
|Fandpunkto||-86 °C
|-
|Bolpunkto||79.64 °C
|-
|Refrakta indico||
|-
|Ekflama temperaturo||-8.9 °C
|-
|Memsparka temperaturo||505 °C
|-
|Solvebleco||Akvo:
27.5 g/100 ml
Miksebla kun alkoholo,etero kaj benzeno
|-
|Mortiga dozo (LD50)||2737 mg/kg (buŝe)
|- style="background: yellow; color: black"
|colspan="2" style="text-align: center;" |Sekurecaj Indikoj
|-
|Risko||R11 R23/24/25 R36 R39 R66 R67
|-
|Sekureco||S9 S16 S36/37 S45
|- style="background: yellow; color: black"
|colspan="2" style="text-align: center;" |Pridanĝeraj indikoj
|-
|colspan="2" style="text-align: center;" | Danĝero
|- style="background: yellow; color: black"
|colspan="2" style="text-align: center;" |GHS etikedigo de kemiaĵoj
|-
|GHS Damaĝo-piktogramo||
|-
|GHS Signalvorto||Damaĝo
|-
|GHS Deklaroj pri damaĝoj||
|-
|GHS Deklaroj pri antaŭgardoj||
|-style="background: yellow; color: black"
|colspan="2" style="text-align: center with=50%;"|Escepte kiam indikitaj, datumoj estas prezentataj laŭ iliaj normaj kondiĉoj pri temperaturo kaj premo(25 °C kaj 100 kPa)
|}Butanono aŭ metil etil ketono (MEK) estas organika kombinaĵo, senkolora likvaĵo, alte brulema, kun forta kaj agrabla dolĉeca odoro. Industrie ĝi produktatas grandskale kaj ankaŭ okazas nature en spurkvantoj. Ĝi estas solvebla en akvo kaj ordinare uzatas kiel industria solvanto kaj kiel katalizilo en la fotopolimerizado de la metakrilata acido.
Butanono estas bonega ordinara solvanto kaj uzatas en procezoj pri fabrikado de gumoj, rezinoj, celuloza acetato, nitrocelulozaj kovraĵoj kaj vinilaj tavoloj. Pro tio, ĝi trovas uzojn en la fabrikado de plastaĵoj, tekstilaĵoj kaj parafina vakso, kaj en dompurigaj produktoj tiaj kiaj lakoj, vernisoj, farbo-forigiloj kaj purigagentoj.
Ĝi posedas similajn proprecojn al acetono sed bolas sub pli alta temperaturo kaj posedas signifoplenan pli malaltan vaporigo-rapidon. Butanono ankaŭ uzatas kiel solvanto de sekaj feltokrajonoj uzataj kiel markigiloj sur kretotabuloj.
Sintezoj
Sintezo 1
Preparado de la 2-butanono per oksidado de 2-butanolo:
Sintezo 2
Preparado de la 2-butanono per hidratigado de la 2-buteno:
Sintezo 3
Preparado de 2-butanono per traktado de acetila klorido kaj etano:
Sintezo 4
Preparado de la 2-butanono per traktado de propanoila klorido kaj metano:
Sintezo 5
Hidratigo:* Preparado de la 2-butanono per hidratigado de 1-butino:
Sintezo 6
Preparado de la butanona oksimo per traktado de butanono kaj hidroksilamino sekvata per Rearanĝo de Beckmann en acida medio:
Sintezo 7
Preparado de la propano per traktado de butanono kaj hidrazino:
Sintezo 8
Preparado de la butanona cianhidrino per traktado de butanono kaj cianida acido:
Sintezo 9
Preparado de la butanono per traktado de propanalo kaj klorometano''':
Literaturo
NIST Chemistry WebBook
Groundwater Chemicals Desk Reference, Fourth Edition, John H. Montgomery
Chemical Book
Chemicalland21
Cameo Chemicals
Industrial Organic Chemistry, Klaus Weissermel, Hans-Jürgen Arpe
Kunrilataj kemiaĵoj
Vidu ankaŭ
Ketonoj
Butano
Propanono
Ciklopropanono
Hidrokarbonido
Ciklopropanolo
Ciklopropeno
Dumetila karbonato
Benzofenono
Metil-etil-ketono
Referencoj
Hidrogenaj kombinaĵoj
Alkoholoj
| 22,409 |
https://es.wikipedia.org/wiki/Treffurt
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Treffurt
|
https://es.wikipedia.org/w/index.php?title=Treffurt&action=history
|
Spanish
|
Spoken
| 69 | 112 |
Treffurt es un municipio situado en el distrito de Wartburg, en el estado federado de Turingia (Alemania), a una altitud de . Su población a finales de 2016 era de unos y su densidad poblacional, .
Se encuentra ubicado cerca de la ciudad de Eisenach y de la frontera con el estado de Hesse.
Referencias
Enlaces externos
Página web oficial del distrito de Wartburg
Localidades del distrito de Wartburg
| 39,810 |
https://ceb.wikipedia.org/wiki/Troglohyphantes%20lakatnikensis
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Troglohyphantes lakatnikensis
|
https://ceb.wikipedia.org/w/index.php?title=Troglohyphantes lakatnikensis&action=history
|
Cebuano
|
Spoken
| 49 | 104 |
Espesye sa kaka ang Troglohyphantes lakatnikensis. Una ning gihulagway ni Drensky, 1931. Ang Troglohyphantes lakatnikensis sakop sa kahenera nga Troglohyphantes sa kabanay nga Linyphiidae.
Kini nga matang hayop na sabwag sa Bulgaria. Pagka karon wala pay siak nga nalista ubos niini niya.
Ang mga gi basihan niini
Kaka
Troglohyphantes
| 618 |
https://github.com/pokk/ZIKViper/blob/master/Demo/ZIKThoroughViperDemo/ZIKThoroughViperDemo/NoteListModule/NoteListViper/ZIKTNoteListViewPresenter.h
|
Github Open Source
|
Open Source
|
MIT
| 2,022 |
ZIKViper
|
pokk
|
C
|
Code
| 37 | 182 |
//
// ZIKTNoteListViewPresenter
// ZIKTViperDemo
//
// Created by zuik on 2017/7/16.
// Copyright © 2017年 zuik. All rights reserved.
//
#import <Foundation/Foundation.h>
@import ZIKTViper.ZIKTViperPresenter;
#import "ZIKTNoteListViewEventHandler.h"
#import "ZIKTNoteListViewDataSource.h"
NS_ASSUME_NONNULL_BEGIN
@interface ZIKTNoteListViewPresenter : NSObject <ZIKTViperPresenter,ZIKTNoteListViewEventHandler,ZIKTNoteListViewDataSource>
@end
NS_ASSUME_NONNULL_END
| 28,979 |
https://www.wikidata.org/wiki/Q27905879
|
Wikidata
|
Semantic data
|
CC0
| null |
Catégorie:Transport routier dans l'Indre
|
None
|
Multilingual
|
Semantic data
| 23 | 52 |
Catégorie:Transport routier dans l'Indre
page de catégorie d'un projet Wikimedia
Catégorie:Transport routier dans l'Indre nature de l’élément page de catégorie d'un projet Wikimédia
| 43,898 |
dailyreview1878113018810930_2396
|
English-PD
|
Open Culture
|
Public Domain
| null |
None
|
None
|
English
|
Spoken
| 5,916 | 10,991 |
GOLD MIRIAM.—The Medoces Service rays— The Gatling gold mine, situated on lot 9, in the ditch of the opera house of Medoc, is now being worked by H. K. Robinson, of New York, for a turn-out of rapital deposits in the city. Should the stock now be made prove as satisfactory as expected, the property will be purchased by the same shareholders for $210,000. Among the properties are currently employed, the work having been carried on night and day. The mill is twenty-five feet deep, the vein still continuing downward. At a depth of about 80 feet, two inches, each attending about 30 feet. The art taken from this shaft is nearly pure, consisting of fully 1,500 feet, the vein showing a width of from 3 to 15 feet. Some excellent ore is now being taken out of the Emily mine, and the vein is steadily improving. As a consequence, the property feels very jubilant over their prospects. Nothing being done at the Dean & Williams at present. Result. It is reported Kearney roared like a madman and worked himself into a turmoil, foaming at the mouth, and had to be carried home. His protest intensified the public excitement. His opponents assert that these b simulated for the purpose of inflaming his followers and the public. GOLD MIRIAM.—The Medoces Service rays— The Gatling gold mine, situated on lot 9, in the ditch of the opera house of Medoc, is now being worked by H. K. Robinson, of New York, for a turn-out of rapital deposits in the city. Should the stock now be made prove as satisfactory as expected, the property will be purchased by the same shareholders for $210,000. Among the properties are currently employed, the work having been carried on night and day. The mill is twenty-five feet deep, the vein still continuing downward. At a depth of about 80 feet, two inches, each attending about 30 feet. The art taken from this shaft is nearly pure, consisting of fully 1,500 feet, the vein showing a width of from 3 to 15 feet. Some excellent ore is now being taken out of the Emily mine, and the vein is steadily improving. As a consequence, the property feels very jubilant over their prospects. Nothing being done at the Dean & Williams at present. Result. It is reported Kearney roared like a madman and worked himself into a turmoil, foaming at the mouth, and had to be carried home. His protest intensified the public excitement. His opponents assert that these b simulated for the purpose of inflaming his followers and the public. GOLD MIRIAM.—The Medoces Service rays— The Gatling gold mine, situated on lot 9, in the ditch of the opera house of Medoc, is now being worked by H. K. Robinson, of New York, for a turn-out of rapital deposits in the city. Should the stock now be made prove as satisfactory as expected, the property will be purchased by the same shareholders for $210,000. Among the properties are currently employed, the work having been carried on night and day. The mill is twenty-five feet deep, the vein still continuing downward. At a depth of about 80 feet, two inches, each attending about 30 feet. The art taken from this shaft is nearly pure, consisting of fully 1,500 feet, the vein showing a width of from 3 to 15 feet. Some excellent ore is now being taken out of the Emily mine, and the vein is steadily improving. As a consequence, the property feels very jubilant over their prospects. Nothing being done at the Dean & Williams at present. Result. It is reported Kearney roared like a madman and worked himself into a turmoil, foaming at the mouth, and had to be carried home. His protest intensified the public excitement. His opponents assert that these b simulated for the purpose of inflaming his followers and the public. DHTSJCIAX, SCROBOX sad ACCOl'CHKR. Oveft- I oate at ths McGill Grilege, MMtrsal, Okmmt ri tbsfUellad CoenUes ot Northumbsrkad sad Durtuun omm sad Isstdsoce, Charlotte Stcest, opposite the Railway S tetio w - - , UT , . I • dll7%m VIOK’8 Illustrated Floral Guide, A MurraruL «OU at lOO Pawwa. Oow Ookmrwd Flower Plata, and ODO idua- trmtin m, wish PeesHp t tene of ths Wt PIwvots sad Va t nim, wHh price «t seeds, end How to grow these All tor s rrv s OteFT hfAErr le BaglWi orOenaae VICK'S 8IBD6 ere the Nest ia the world. Ftt* Cmte Is* pesteve wttl bey the Fteia u. Ones, tedtiw how to rvt them The rlowar mad VstriaNs Omrdwa, its P egee, ria o s to v wd Ptotee,aad msar hondrsd Rngni fluanetag Judge Fission, of ths Superior Court, In passi n g upon the appeal from tbs sentence of Judge Eli. It b reported Mayor Kallooh says the ballots for the CMaaae' Protective Union CralMade Dwe Tbs Dublin Frwemmm of ths 10th March warmly thanks tbs Canadian Govern meat for its generous gift of $100,000 to ths Irbh relief fund, and says the gratitude of tbs Irish peop le b " specially doe to tbs Premier, 8u John Maudoaald, for inserting a clause oa the sub¬ ject in the speech from the Throne. The /We¬ eks* adds that thb action of ths Premier “ harmonises well with the oouree he has aal- formly followed during hb long ca ree r of power in Canada towards our race and creed.** LETTER BALANCES THE "EVER-READY” LETTER BALANCES, InriHNincv RELIABLE LETTER SCALES faem foe. to lfc, Jl'ST MCKIVCD At the “BeTiew" Stationery Store. TOKBR S Oo. WOOD FOR SALE. AMD tTLIT, a* Mra* kfas-UH* *T I PUSH EL. DHTSJCIAX, SCROBOX sad ACCOl'CHKR. Oveft- I oate at ths McGill Grilege, MMtrsal, Okmmt ri tbsfUellad CoenUes ot Northumbsrkad sad Durtuun omm sad Isstdsoce, Charlotte Stcest, opposite the Railway S tetio w - - , UT , . I • dll7%m VIOK’8 Illustrated Floral Guide, A MurraruL «OU at lOO Pawwa. Oow Ookmrwd Flower Plata, and ODO idua- trmtin m, wish PeesHp t tene of ths Wt PIwvots sad Va t nim, wHh price «t seeds, end How to grow these All tor s rrv s OteFT hfAErr le BaglWi orOenaae VICK'S 8IBD6 ere the Nest ia the world. Ftt* Cmte Is* pesteve wttl bey the Fteia u. Ones, tedtiw how to rvt them The rlowar mad VstriaNs Omrdwa, its P egee, ria o s to v wd Ptotee,aad msar hondrsd Rngni fluanetag Judge Fission, of ths Superior Court, In passi n g upon the appeal from tbs sentence of Judge Eli. It b reported Mayor Kallooh says the ballots for the CMaaae' Protective Union CralMade Dwe Tbs Dublin Frwemmm of ths 10th March warmly thanks tbs Canadian Govern meat for its generous gift of $100,000 to ths Irbh relief fund, and says the gratitude of tbs Irish peop le b " specially doe to tbs Premier, 8u John Maudoaald, for inserting a clause oa the sub¬ ject in the speech from the Throne. The /We¬ eks* adds that thb action of ths Premier “ harmonises well with the oouree he has aal- formly followed during hb long ca ree r of power in Canada towards our race and creed.** LETTER BALANCES THE "EVER-READY” LETTER BALANCES, InriHNincv RELIABLE LETTER SCALES faem foe. to lfc, Jl'ST MCKIVCD At the “BeTiew" Stationery Store. TOKBR S Oo. WOOD FOR SALE. AMD tTLIT, a* Mra* kfas-UH* *T I PUSH EL. DHTSJCIAX, SCROBOX sad ACCOl'CHKR. Oveft- I oate at ths McGill Grilege, MMtrsal, Okmmt ri tbsfUellad CoenUes ot Northumbsrkad sad Durtuun omm sad Isstdsoce, Charlotte Stcest, opposite the Railway S tetio w - - , UT , . I • dll7%m VIOK’8 Illustrated Floral Guide, A MurraruL «OU at lOO Pawwa. Oow Ookmrwd Flower Plata, and ODO idua- trmtin m, wish PeesHp t tene of ths Wt PIwvots sad Va t nim, wHh price «t seeds, end How to grow these All tor s rrv s OteFT hfAErr le BaglWi orOenaae VICK'S 8IBD6 ere the Nest ia the world. Ftt* Cmte Is* pesteve wttl bey the Fteia u. Ones, tedtiw how to rvt them The rlowar mad VstriaNs Omrdwa, its P egee, ria o s to v wd Ptotee,aad msar hondrsd Rngni fluanetag Judge Fission, of ths Superior Court, In passi n g upon the appeal from tbs sentence of Judge Eli. It b reported Mayor Kallooh says the ballots for the CMaaae' Protective Union CralMade Dwe Tbs Dublin Frwemmm of ths 10th March warmly thanks tbs Canadian Govern meat for its generous gift of $100,000 to ths Irbh relief fund, and says the gratitude of tbs Irish peop le b " specially doe to tbs Premier, 8u John Maudoaald, for inserting a clause oa the sub¬ ject in the speech from the Throne. The /We¬ eks* adds that thb action of ths Premier “ harmonises well with the oouree he has aal- formly followed during hb long ca ree r of power in Canada towards our race and creed.** LETTER BALANCES THE "EVER-READY” LETTER BALANCES, InriHNincv RELIABLE LETTER SCALES faem foe. to lfc, Jl'ST MCKIVCD At the “BeTiew" Stationery Store. TOKBR S Oo. WOOD FOR SALE. AMD tTLIT, a* Mra* kfas-UH* *T I PUSH EL. T. K FITKIIRALD, <A DAILY EVENING REVIEW, PETERBOROUGH, THURSDAY, APRIL 1, 1880. LABBFIKUI ASKKCf #F TBB IITIIW,- j be an important railway centra. It ia certain ■r. W. C. — ■■Ann. tat kM atf !■* that Mon Ion* lb* euMScuWion of tbo ’ink to #4 iHWt •* tta. l tkrlill ,b**nta ; Omm will pUratuoa ton inton lincof ton Mid- ; in LOST BOTH _ •T tta Btvlavi to ultoriM* In naa tra Alo ftInnnt ion hi (ttotilp ttaai n* aton tanl f n ton Priatlai •■tcwi—Nwrtta at Paat OApf , Ijta li li Pailg Evening Review THURSDAY, APRIL 1 , 1880. T. K FITKIIRALD, <A DAILY EVENING REVIEW, PETERBOROUGH, THURSDAY, APRIL 1, 1880. LABBFIKUI ASKKCf #F TBB IITIIW,- j be an important railway centra. It ia certain ■r. W. C. — ■■Ann. tat kM atf !■* that Mon Ion* lb* euMScuWion of tbo ’ink to #4 iHWt •* tta. l tkrlill ,b**nta ; Omm will pUratuoa ton inton lincof ton Mid- ; in LOST BOTH _ •T tta Btvlavi to ultoriM* In naa tra Alo ftInnnt ion hi (ttotilp ttaai n* aton tanl f n ton Priatlai •■tcwi—Nwrtta at Paat OApf , Ijta li li Pailg Evening Review THURSDAY, APRIL 1 , 1880. T. K FITKIIRALD, <A DAILY EVENING REVIEW, PETERBOROUGH, THURSDAY, APRIL 1, 1880. LABBFIKUI ASKKCf #F TBB IITIIW,- j be an important railway centra. It ia certain ■r. W. C. — ■■Ann. tat kM atf !■* that Mon Ion* lb* euMScuWion of tbo ’ink to #4 iHWt •* tta. l tkrlill ,b**nta ; Omm will pUratuoa ton inton lincof ton Mid- ; in LOST BOTH _ •T tta Btvlavi to ultoriM* In naa tra Alo ftInnnt ion hi (ttotilp ttaai n* aton tanl f n ton Priatlai •■tcwi—Nwrtta at Paat OApf , Ijta li li Pailg Evening Review THURSDAY, APRIL 1 , 1880. What was the end and the work—the land, and that the building of the Tomato and the Western Pacific Railroad in Ottawa and a connection in London shape with the Grand Junction will complete the railway system in all directions except northward. The Trenton Canal, which is likely to be completed in a few days, will be completed in a few days. The railroad facilities would place our town in regard on Tuesday morning. The eastern railroads, when the latter approach, would be able to travel to the city barometer. That they should all unite in encouraging the accomplishment, instead of indulging in that petty scheme in exceptionally fine weather and comparison. The following editorial was written by the editor of the "TOWN TRAPS." What was the end and the work—the land, and that the building of the Tomato and the Western Pacific Railroad in Ottawa and a connection in London shape with the Grand Junction will complete the railway system in all directions except northward. The Trenton Canal, which is likely to be completed in a few days, will be completed in a few days. The railroad facilities would place our town in regard on Tuesday morning. The eastern railroads, when the latter approach, would be able to travel to the city barometer. That they should all unite in encouraging the accomplishment, instead of indulging in that petty scheme in exceptionally fine weather and comparison. The following editorial was written by the editor of the "TOWN TRAPS." What was the end and the work—the land, and that the building of the Tomato and the Western Pacific Railroad in Ottawa and a connection in London shape with the Grand Junction will complete the railway system in all directions except northward. The Trenton Canal, which is likely to be completed in a few days, will be completed in a few days. The railroad facilities would place our town in regard on Tuesday morning. The eastern railroads, when the latter approach, would be able to travel to the city barometer. That they should all unite in encouraging the accomplishment, instead of indulging in that petty scheme in exceptionally fine weather and comparison. The following editorial was written by the editor of the "TOWN TRAPS." Of the date of April 1st, contains the following: The Halibarton Railway with the place. The sympathy of the community will be with the people of the north, and is now seeking to deprive freely accorded to the parents, who, in addition to the bereavement, have to endure the agony of the poor boys dying by incense. The Tomnte Gazette of the 19th ultimo, concerning the arrangements we may have, we should all unite in its opinion that the town is a better place for the poor boys, and that they do not wish to be left alone. We do not have the slightest doubt that the people of the town and the credit of the town and the credit of the town are not to be taken into consideration. It was certainly not taken into consideration. Of the date of April 1st, contains the following: The Halibarton Railway with the place. The sympathy of the community will be with the people of the north, and is now seeking to deprive freely accorded to the parents, who, in addition to the bereavement, have to endure the agony of the poor boys dying by incense. The Tomnte Gazette of the 19th ultimo, concerning the arrangements we may have, we should all unite in its opinion that the town is a better place for the poor boys, and that they do not wish to be left alone. We do not have the slightest doubt that the people of the town and the credit of the town and the credit of the town are not to be taken into consideration. It was certainly not taken into consideration. Of the date of April 1st, contains the following: The Halibarton Railway with the place. The sympathy of the community will be with the people of the north, and is now seeking to deprive freely accorded to the parents, who, in addition to the bereavement, have to endure the agony of the poor boys dying by incense. The Tomnte Gazette of the 19th ultimo, concerning the arrangements we may have, we should all unite in its opinion that the town is a better place for the poor boys, and that they do not wish to be left alone. We do not have the slightest doubt that the people of the town and the credit of the town and the credit of the town are not to be taken into consideration. It was certainly not taken into consideration. iximwinw . 111 I 1 IH T On raraipi of the bulllt.no. of ton finding , of tbo Uftlooo bodira, on number of pra- -—•—- mi'tott fa ta l if w rt oirrfW fm . . , „ . „ „ g _ , oat wbet nttnmpt, If uy, bod booo nob On*wi. Much 10.-Mr. Soowoou noomod bo« to e*#ct o rtocoo. Tb* fit* rail wra rota the debaU on the Budget, opposing the National at the boom of tta boy Burge, where it was Policy. learned that hie stepfather, Mr. Price, was an* bom oojr of tbo P ta rabranngh poporo, nor wcold Mr Floii.vi odmlttod tbot tbo otoUmonto fjVJSlS hliGfiUSSt’fa. TwJir oay P ta ran bo wurotod to mJrim ouch potato- of tbo mombor for Woot Klein (Mr. Cracy). tbot 5? , *JrLv”*** P” ,, *h* to fKU that «*. TlMOftastoonM |^ t ' cLtkSSS hi} JW*. oHbor gin no tbo ontbority « which tbo poro. f^Ud ond wra. foUin* hod boon oontmwtod. *** n * ,t *** p - nh^'oS^k'^o grok oppoorod, or ratnet tboliboloa tbo town Tbo bon. mombor for ConlwoU bad oortoinly w* kta^tW tl£ ton ™ wkfai Iteonroyn Oor contemporary, tbo ^ taturmdrom thoputta.oonomod.dwjini “L??^terliStorlLd“lh^Cd£ Rgrail rarau to know oomothiag about tbo Mr. Com,’, .UUm.nU, bat thi. much .» Z ^ oathonblp of tbo objoctiooobta porogropb otooo bo oold on bobolf of tbo mombor for Woot PPZl GOME AND SEE OUR $12 Saits ! Good- Canadian Tweed. $14 Saits ! Fine Business Suit $16 Suits ! ScotcL Twee* - $18 Saits ! All Wool Worsted. TO ORDER. iximwinw . 111 I 1 IH T On raraipi of the bulllt.no. of ton finding , of tbo Uftlooo bodira, on number of pra- -—•—- mi'tott fa ta l if w rt oirrfW fm . . , „ . „ „ g _ , oat wbet nttnmpt, If uy, bod booo nob On*wi. Much 10.-Mr. Soowoou noomod bo« to e*#ct o rtocoo. Tb* fit* rail wra rota the debaU on the Budget, opposing the National at the boom of tta boy Burge, where it was Policy. learned that hie stepfather, Mr. Price, was an* bom oojr of tbo P ta rabranngh poporo, nor wcold Mr Floii.vi odmlttod tbot tbo otoUmonto fjVJSlS hliGfiUSSt’fa. TwJir oay P ta ran bo wurotod to mJrim ouch potato- of tbo mombor for Woot Klein (Mr. Cracy). tbot 5? , *JrLv”*** P” ,, *h* to fKU that «*. TlMOftastoonM |^ t ' cLtkSSS hi} JW*. oHbor gin no tbo ontbority « which tbo poro. f^Ud ond wra. foUin* hod boon oontmwtod. *** n * ,t *** p - nh^'oS^k'^o grok oppoorod, or ratnet tboliboloa tbo town Tbo bon. mombor for ConlwoU bad oortoinly w* kta^tW tl£ ton ™ wkfai Iteonroyn Oor contemporary, tbo ^ taturmdrom thoputta.oonomod.dwjini “L??^terliStorlLd“lh^Cd£ Rgrail rarau to know oomothiag about tbo Mr. Com,’, .UUm.nU, bat thi. much .» Z ^ oathonblp of tbo objoctiooobta porogropb otooo bo oold on bobolf of tbo mombor for Woot PPZl GOME AND SEE OUR $12 Saits ! Good- Canadian Tweed. $14 Saits ! Fine Business Suit $16 Suits ! ScotcL Twee* - $18 Saits ! All Wool Worsted. TO ORDER. iximwinw . 111 I 1 IH T On raraipi of the bulllt.no. of ton finding , of tbo Uftlooo bodira, on number of pra- -—•—- mi'tott fa ta l if w rt oirrfW fm . . , „ . „ „ g _ , oat wbet nttnmpt, If uy, bod booo nob On*wi. Much 10.-Mr. Soowoou noomod bo« to e*#ct o rtocoo. Tb* fit* rail wra rota the debaU on the Budget, opposing the National at the boom of tta boy Burge, where it was Policy. learned that hie stepfather, Mr. Price, was an* bom oojr of tbo P ta rabranngh poporo, nor wcold Mr Floii.vi odmlttod tbot tbo otoUmonto fjVJSlS hliGfiUSSt’fa. TwJir oay P ta ran bo wurotod to mJrim ouch potato- of tbo mombor for Woot Klein (Mr. Cracy). tbot 5? , *JrLv”*** P” ,, *h* to fKU that «*. TlMOftastoonM |^ t ' cLtkSSS hi} JW*. oHbor gin no tbo ontbority « which tbo poro. f^Ud ond wra. foUin* hod boon oontmwtod. *** n * ,t *** p - nh^'oS^k'^o grok oppoorod, or ratnet tboliboloa tbo town Tbo bon. mombor for ConlwoU bad oortoinly w* kta^tW tl£ ton ™ wkfai Iteonroyn Oor contemporary, tbo ^ taturmdrom thoputta.oonomod.dwjini “L??^terliStorlLd“lh^Cd£ Rgrail rarau to know oomothiag about tbo Mr. Com,’, .UUm.nU, bat thi. much .» Z ^ oathonblp of tbo objoctiooobta porogropb otooo bo oold on bobolf of tbo mombor for Woot PPZl GOME AND SEE OUR $12 Saits ! Good- Canadian Tweed. $14 Saits ! Fine Business Suit $16 Suits ! ScotcL Twee* - $18 Saits ! All Wool Worsted. TO ORDER. No Better Value in Town! gSS^CANT BE BEAT for Cut, Style and Workmanship! aathoooblp of tbo objectionable paragraph oinoo bo oold on bobolf of tbo member for Woot .j“ 1 v‘ 1* w t* ‘JJTTt-fS. “V It io dbtolo ooy tbot it woo ooot nooo Fetor- KtatolMr^ Coro tbot to mode blrilteawlto »«Wd*Wi o dredge lying olongridotbr&ooo'o b m»b.W. £> MMtoto ,tbto to both, roo; iT^J fitb^S MmTTS “Vt 1“ 4 ^**T&2* bat tfftUeoaatraot tbo ScruwwOl not beta- traotwortby oridoneo oond bor oat o«or tbo boyo, olthoagh It woo n tatotowotet oattho mmmy of oar wolf MO, In Mr. Foooaw, oo roprooocting nn ogricaltaral ^.ISj^SlniSlhL. nu Fort ~IUd order tbot bo or oka mar bo properly bald diotrlct. tpoka of tbo bonolt tbo toman bod “V. , * mU fr “* S" 7”? e * U “ • np to merited w^ototoon.* ^ dSf^fiSTth? SS Ho dSSd uS «• wo< ^ r!."v>’r“Lr! arrr clotbino stobs. ooor*# } H. LEBRUN. No Better Value in Town! gSS^CANT BE BEAT for Cut, Style and Workmanship! aathoooblp of tbo objectionable paragraph oinoo bo oold on bobolf of tbo member for Woot .j“ 1 v‘ 1* w t* ‘JJTTt-fS. “V It io dbtolo ooy tbot it woo ooot nooo Fetor- KtatolMr^ Coro tbot to mode blrilteawlto »«Wd*Wi o dredge lying olongridotbr&ooo'o b m»b.W. £> MMtoto ,tbto to both, roo; iT^J fitb^S MmTTS “Vt 1“ 4 ^**T&2* bat tfftUeoaatraot tbo ScruwwOl not beta- traotwortby oridoneo oond bor oat o«or tbo boyo, olthoagh It woo n tatotowotet oattho mmmy of oar wolf MO, In Mr. Foooaw, oo roprooocting nn ogricaltaral ^.ISj^SlniSlhL. nu Fort ~IUd order tbot bo or oka mar bo properly bald diotrlct. tpoka of tbo bonolt tbo toman bod “V. , * mU fr “* S" 7”? e * U “ • np to merited w^ototoon.* ^ dSf^fiSTth? SS Ho dSSd uS «• wo< ^ r!."v>’r“Lr! arrr clotbino stobs. ooor*# } H. LEBRUN. No Better Value in Town! gSS^CANT BE BEAT for Cut, Style and Workmanship! aathoooblp of tbo objectionable paragraph oinoo bo oold on bobolf of tbo member for Woot .j“ 1 v‘ 1* w t* ‘JJTTt-fS. “V It io dbtolo ooy tbot it woo ooot nooo Fetor- KtatolMr^ Coro tbot to mode blrilteawlto »«Wd*Wi o dredge lying olongridotbr&ooo'o b m»b.W. £> MMtoto ,tbto to both, roo; iT^J fitb^S MmTTS “Vt 1“ 4 ^**T&2* bat tfftUeoaatraot tbo ScruwwOl not beta- traotwortby oridoneo oond bor oat o«or tbo boyo, olthoagh It woo n tatotowotet oattho mmmy of oar wolf MO, In Mr. Foooaw, oo roprooocting nn ogricaltaral ^.ISj^SlniSlhL. nu Fort ~IUd order tbot bo or oka mar bo properly bald diotrlct. tpoka of tbo bonolt tbo toman bod “V. , * mU fr “* S" 7”? e * U “ • np to merited w^ototoon.* ^ dSf^fiSTth? SS Ho dSSd uS «• wo< ^ r!."v>’r“Lr! arrr clotbino stobs. ooor*# } H. LEBRUN. evtfsr that he or she may he properly held district, spoke of the benelt the farmer* had TV rr f m to maHttd rsmit^iiMi * u oo, but no one there would admit having seen wp so msmsu iipuimim, derived from the new tariff. He f— hi that mjHft a t >11 At th« N«« FWr. r* We are happy te do all wt can to enooorage a wooUeaa bad In cr sassd ia prioe under the tariff, M (JirrhuB. as tbs reaideota ttme <adi iL fopoatont atonor, and thoroforo wo cboorfally ££££ worn iotorriowoA Tbo oaow oomdoto tbo ropwoo* of oar ooatomp^ to do^T to ££££: «d & * Jf*: giro H any In fa rro rinn to our pooomoioa oa tklo pro,, tkom. Ho ooald toko ETgonUomea IviSf^bo ™ " bJ * rt ' ^^f^lhilt^r ^ if^-nT 7 ^ 7 dlitonao from tbo oharo. bat Mr. Lyoao myo bo Tbo UboUoao pongrogb Srot appeared In tbo T” L ”.f L °° .*1 . t ??T ZT* “t**” tboaght tboBhgi woro making for the Humber, Fort Hope tfaidr, and woe tkanoo oxtroetad by n ntJ«n«n oooopt hU ond dbcoro the ttotUSS tbo Toroto <Mo. Wo woro nawUltog to oo- truth t Ho conteoded that oor manufacturer, oom that tbo 0ofde bad grotaitoaoly tannlod 7n hb^ ** wiDd "^ of mrerol hoaoo. mnong oth.r. each o oloador oa oar town, ond thoroforo onro- uJS. that of o lodr named MeKroyTlmt Ml ooooood fully aoorcbod tbo oolumae <d oor two loool coo- Tbo raoolutioao won tEon rood a aaoood time. ^|™ nk jftwf UmrMtorwud^tbaTwan'lro tempamrbe. oo being tbo mb oraSabb oonreo Hnu rP h *P. wnt . «f tbo lUl ,i ’ tb. JmT at tbo Jfow Fort. evtfsr that he or she may he properly held district, spoke of the benelt the farmer* had TV rr f m to maHttd rsmit^iiMi * u oo, but no one there would admit having seen wp so msmsu iipuimim, derived from the new tariff. He f— hi that mjHft a t >11 At th« N«« FWr. r* We are happy te do all wt can to enooorage a wooUeaa bad In cr sassd ia prioe under the tariff, M (JirrhuB. as tbs reaideota ttme <adi iL fopoatont atonor, and thoroforo wo cboorfally ££££ worn iotorriowoA Tbo oaow oomdoto tbo ropwoo* of oar ooatomp^ to do^T to ££££: «d & * Jf*: giro H any In fa rro rinn to our pooomoioa oa tklo pro,, tkom. Ho ooald toko ETgonUomea IviSf^bo ™ " bJ * rt ' ^^f^lhilt^r ^ if^-nT 7 ^ 7 dlitonao from tbo oharo. bat Mr. Lyoao myo bo Tbo UboUoao pongrogb Srot appeared In tbo T” L ”.f L °° .*1 . t ??T ZT* “t**” tboaght tboBhgi woro making for the Humber, Fort Hope tfaidr, and woe tkanoo oxtroetad by n ntJ«n«n oooopt hU ond dbcoro the ttotUSS tbo Toroto <Mo. Wo woro nawUltog to oo- truth t Ho conteoded that oor manufacturer, oom that tbo 0ofde bad grotaitoaoly tannlod 7n hb^ ** wiDd "^ of mrerol hoaoo. mnong oth.r. each o oloador oa oar town, ond thoroforo onro- uJS. that of o lodr named MeKroyTlmt Ml ooooood fully aoorcbod tbo oolumae <d oor two loool coo- Tbo raoolutioao won tEon rood a aaoood time. ^|™ nk jftwf UmrMtorwud^tbaTwan'lro tempamrbe. oo being tbo mb oraSabb oonreo Hnu rP h *P. wnt . «f tbo lUl ,i ’ tb. JmT at tbo Jfow Fort. evtfsr that he or she may he properly held district, spoke of the benelt the farmer* had TV rr f m to maHttd rsmit^iiMi * u oo, but no one there would admit having seen wp so msmsu iipuimim, derived from the new tariff. He f— hi that mjHft a t >11 At th« N«« FWr. r* We are happy te do all wt can to enooorage a wooUeaa bad In cr sassd ia prioe under the tariff, M (JirrhuB. as tbs reaideota ttme <adi iL fopoatont atonor, and thoroforo wo cboorfally ££££ worn iotorriowoA Tbo oaow oomdoto tbo ropwoo* of oar ooatomp^ to do^T to ££££: «d & * Jf*: giro H any In fa rro rinn to our pooomoioa oa tklo pro,, tkom. Ho ooald toko ETgonUomea IviSf^bo ™ " bJ * rt ' ^^f^lhilt^r ^ if^-nT 7 ^ 7 dlitonao from tbo oharo. bat Mr. Lyoao myo bo Tbo UboUoao pongrogb Srot appeared In tbo T” L ”.f L °° .*1 . t ??T ZT* “t**” tboaght tboBhgi woro making for the Humber, Fort Hope tfaidr, and woe tkanoo oxtroetad by n ntJ«n«n oooopt hU ond dbcoro the ttotUSS tbo Toroto <Mo. Wo woro nawUltog to oo- truth t Ho conteoded that oor manufacturer, oom that tbo 0ofde bad grotaitoaoly tannlod 7n hb^ ** wiDd "^ of mrerol hoaoo. mnong oth.r. each o oloador oa oar town, ond thoroforo onro- uJS. that of o lodr named MeKroyTlmt Ml ooooood fully aoorcbod tbo oolumae <d oor two loool coo- Tbo raoolutioao won tEon rood a aaoood time. ^|™ nk jftwf UmrMtorwud^tbaTwan'lro tempamrbe. oo being tbo mb oraSabb oonreo Hnu rP h *P. wnt . «f tbo lUl ,i ’ tb. JmT at tbo Jfow Fort. tomporanoo. oa naing too moot .raaaaio oonm JP 1 ?. Hnu r.P h *P. wnt . ‘^ fom^Utn of tbo lth , iDX to roach tb. wharf to tb. Vow ; from which tta Guide could obtain (inforntttion ~|*T **” d,ffer * nt »*•*• W9Tt r ** d ™ but wove gradually bring drifted further about oor towa. Unhappily for tbo credit of Ontbo thrao cent doty oo ccane wcob, mTi *?j 1 * ■ h *J t . b ? “* Fatorborongb wo dboororod two porngrnpbo In Mr. Cmoolio, ukod w bother there would bo £2 ,**** 7l , diMtot odbovtob to tb. to»«~e, pablbbml -W™. «• - - •- oa Monk Mtk, which no r onoo n obh man eon Sjo, ■ and Jama. McBeoy.'aad tboir trotbor-ia donbt loapind tha Oaidr with tta idea of tha year woo that there won ao mono woob tm On tbo thrao cent duty on comm woeb. Z7*'J!r erntdeem ofth. thin k Umcmuptoit. cftb.ro. TSASS'ASJaSl l-pro-« tom yd J^tutepyl. tomporanoo. oa naing too moot .raaaaio oonm JP 1 ?. Hnu r.P h *P. wnt . ‘^ fom^Utn of tbo lth , iDX to roach tb. wharf to tb. Vow ; from which tta Guide could obtain (inforntttion ~|*T **” d,ffer * nt »*•*• W9Tt r ** d ™ but wove gradually bring drifted further about oor towa. Unhappily for tbo credit of Ontbo thrao cent doty oo ccane wcob, mTi *?j 1 * ■ h *J t . b ? “* Fatorborongb wo dboororod two porngrnpbo In Mr. Cmoolio, ukod w bother there would bo £2 ,**** 7l , diMtot odbovtob to tb. to»«~e, pablbbml -W™. «• - - •- oa Monk Mtk, which no r onoo n obh man eon Sjo, ■ and Jama. McBeoy.'aad tboir trotbor-ia donbt loapind tha Oaidr with tta idea of tha year woo that there won ao mono woob tm On tbo thrao cent duty on comm woeb. Z7*'J!r erntdeem ofth. thin k Umcmuptoit. cftb.ro. TSASS'ASJaSl l-pro-« tom yd J^tutepyl. tomporanoo. oa naing too moot .raaaaio oonm JP 1 ?. Hnu r.P h *P. wnt . ‘^ fom^Utn of tbo lth , iDX to roach tb. wharf to tb. Vow ; from which tta Guide could obtain (inforntttion ~|*T **” d,ffer * nt »*•*• W9Tt r ** d ™ but wove gradually bring drifted further about oor towa. Unhappily for tbo credit of Ontbo thrao cent doty oo ccane wcob, mTi *?j 1 * ■ h *J t . b ? “* Fatorborongb wo dboororod two porngrnpbo In Mr. Cmoolio, ukod w bother there would bo £2 ,**** 7l , diMtot odbovtob to tb. to»«~e, pablbbml -W™. «• - - •- oa Monk Mtk, which no r onoo n obh man eon Sjo, ■ and Jama. McBeoy.'aad tboir trotbor-ia donbt loapind tha Oaidr with tta idea of tha year woo that there won ao mono woob tm On tbo thrao cent duty on comm woeb. Z7*'J!r erntdeem ofth. thin k Umcmuptoit. cftb.ro. TSASS'ASJaSl l-pro-« tom yd J^tutepyl. _ Brown, determined to attempt a r—c ue. They w.M.."u-n":^m": pj-biru.ir.v." svzzs l z \ THE CASE OF THE STORE- {»■***> »!««». OMpoond.... imports woo nnoblwto^H'Moml. 0 The two*Mc£eon H IS TDWN-w. Otoe welt Britain. It waa alao tboaght that fEL” PP’rl.T zPTPtP.,, II. a. IzS ‘TAKE THE CASE OF THE STORE KEEPEH8 IN TOWN-to to. oaly to walk J*^ ttom Mprtod out u'STUu, but kotoly to4 from day lo day up and down oar main street «*• enoouragement to oar woollen lndaiiries ^ ^ ^ they claim to hiM mlloil to rolStoTHtyAREDOINCI NOTHING, ri« mtbTtotor ttoT^tor bof could JTUt 111 1. BO wo,l, *V U * t »>* lbt of bankrupt, baa *}** p ^"- ** learor than abnat two mibo; and their boot swollen to each unpreced en ted dimensions. Bat JFTS. ** tW ! being half full of water, and they being very the others have .offered the menu- ^^^urnid TW? XnnSL v£?ed tti f. stor ms in Pstarbonegh most be doing well! determined to imooee the doty. emttways through n Air ef Arid ilnn, and Oar record ia, in s fmT of aqj increaae, two JJ" ttl *exUudlng the time during which tbooghtmemnw, from the direction she waa manotocrtariiw otoafalbhmonto doaod, one aa ““™LJ| , ^T ooll,n ■ MchJn »ry ooaU bo hg^^riTon, would load .boat Port Dalhaaoie. _ Brown, determined to attempt a r—c ue. They w.M.."u-n":^m": pj-biru.ir.v." svzzs l z \ THE CASE OF THE STORE- {»■***> »!««». OMpoond.... imports woo nnoblwto^H'Moml. 0 The two*Mc£eon H IS TDWN-w. Otoe welt Britain. It waa alao tboaght that fEL” PP’rl.T zPTPtP.,, II. a. IzS ‘TAKE THE CASE OF THE STORE KEEPEH8 IN TOWN-to to. oaly to walk J*^ ttom Mprtod out u'STUu, but kotoly to4 from day lo day up and down oar main street «*• enoouragement to oar woollen lndaiiries ^ ^ ^ they claim to hiM mlloil to rolStoTHtyAREDOINCI NOTHING, ri« mtbTtotor ttoT^tor bof could JTUt 111 1. BO wo,l, *V U * t »>* lbt of bankrupt, baa *}** p ^"- ** learor than abnat two mibo; and their boot swollen to each unpreced en ted dimensions. Bat JFTS. ** tW ! being half full of water, and they being very the others have .offered the menu- ^^^urnid TW? XnnSL v£?ed tti f. stor ms in Pstarbonegh most be doing well! determined to imooee the doty. emttways through n Air ef Arid ilnn, and Oar record ia, in s fmT of aqj increaae, two JJ" ttl *exUudlng the time during which tbooghtmemnw, from the direction she waa manotocrtariiw otoafalbhmonto doaod, one aa ““™LJ| , ^T ooll,n ■ MchJn »ry ooaU bo hg^^riTon, would load .boat Port Dalhaaoie. _ Brown, determined to attempt a r—c ue. They w.M.."u-n":^m": pj-biru.ir.v." svzzs l z \ THE CASE OF THE STORE- {»■***> »!««». OMpoond.... imports woo nnoblwto^H'Moml. 0 The two*Mc£eon H IS TDWN-w. Otoe welt Britain. It waa alao tboaght that fEL” PP’rl.T zPTPtP.,, II. a. IzS ‘TAKE THE CASE OF THE STORE KEEPEH8 IN TOWN-to to. oaly to walk J*^ ttom Mprtod out u'STUu, but kotoly to4 from day lo day up and down oar main street «*• enoouragement to oar woollen lndaiiries ^ ^ ^ they claim to hiM mlloil to rolStoTHtyAREDOINCI NOTHING, ri« mtbTtotor ttoT^tor bof could JTUt 111 1. BO wo,l, *V U * t »>* lbt of bankrupt, baa *}** p ^"- ** learor than abnat two mibo; and their boot swollen to each unpreced en ted dimensions. Bat JFTS. ** tW ! being half full of water, and they being very the others have .offered the menu- ^^^urnid TW? XnnSL v£?ed tti f. stor ms in Pstarbonegh most be doing well! determined to imooee the doty. emttways through n Air ef Arid ilnn, and Oar record ia, in s fmT of aqj increaae, two JJ" ttl *exUudlng the time during which tbooghtmemnw, from the direction she waa manotocrtariiw otoafalbhmonto doaod, one aa ““™LJ| , ^T ooll,n ■ MchJn »ry ooaU bo hg^^riTon, would load .boat Port Dalhaaoie.
| 38,252 |
2016/62014FB0133/62014FB0133_MT.txt_1
|
Eurlex
|
Open Government
|
CC-By
| 2,016 |
None
|
None
|
Maltese
|
Spoken
| 167 | 575 |
C_2016364MT.01005301.xml
3.10.2016
MT
Il-Ġurnal Uffiċjali tal-Unjoni Ewropea
C 364/53
Digriet tat-Tribunal għas-Servizz Pubbliku (L-Ewwel Awla) tal-1 ta’ Awwissu 2016 – Poniskaitis vs Il-Kummissjoni
(Kawża F-133/14) (1)
((Servizz pubbliku - Uffiċjali - Pensjonijiet - Artikolu 11(2) tal-Anness VIII tar-Regolementi tal-Persunal - Trasferiment lejn l-iskema tal-pensjoni tal-Unjoni ta’ drittijiet tal-pensjoni miksuba taħt skemi oħra - Deċiżjoni li tirrikonoxxi akkreditazzjoni ta’ snin ta’ servizz li tapplika d-DĠI l-ġodda dwar l-Artikoli 11 u 12 tal-Anness VIII tar-Regolamenti tal-Persunal - Artikolu 81 tar-Regoli tal-Proċedura - Rikors manifestament infondat))
(2016/C 364/68)
Lingwa tal-kawża: il-Franċiż
Partijiet
Rikorrenti: Jonas Poniskaitis (Brussell, il-Belġju) (rappreżentanti: J.-N. Louis, R. Metz u D. Verbeke, avukati)
Konvenuta: Il-Kummissjoni Ewropea (rappreżentanti: inizjalment J. Currall u G. Gattinara, aġenti, sussegwentement G. Gattinara, aġent)
Suġġett
Talba għal annullament tad-deċiżjoni dwar it-trasferiment tad-drittijiet għall-pensjoni tar-rikorrent fl-iskema tal-pensjoni tal-Unjoni, deċiżjoni li tapplika d-DĠI l-ġodda dwar l-Artikoli 11 u 12 tal-Anness VIII tar-Regolamenti tal-Persunal.
Dispożittiv
1)
Ir-rikors huwa miċħud bħala manifestament infondat.
2)
Kull parti għandha tbati l-ispejjeż tagħha.
(1) ĠU C 16, 19.01.2015, p. 50.
| 31,642 |
https://github.com/milica/mapquest/blob/master/core/module/Application/src/Application/Document/Quest.php
|
Github Open Source
|
Open Source
|
MIT
| 2,014 |
mapquest
|
milica
|
PHP
|
Code
| 190 | 650 |
<?php
namespace Application\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/** @ODM\Document */
class Quest {
/** @ODM\Id */
private $id;
/** @ODM\Field(type="string") */
private $title;
/** @ODM\Field(type="string") */
private $desc;
/** @ODM\Field(type="int") */
private $start;
/** @ODM\Field(type="int") */
private $finish;
/** @ODM\ReferenceOne(targetDocument="User") */
private $user;
/** @ODM\ReferenceOne(targetDocument="Map") */
private $map;
// ******* SETTERS ******* //
public function setTitle($val) {
$val = trim($val);
if(empty($val)){return false;}
$this->title = $val;
return true;
}
public function setDesc($val) {
$this->desc = $val;
return true;
}
public function setStart($val) {
if(!is_int($val)){return false;}
$this->start = $val;
return true;
}
public function setFinish($val) {
if(!is_int($val)){return false;}
$this->finish = $val;
return true;
}
public function setUser($val){
if(!is_a($val, 'Application\Document\User')){ return false;}
$this->user = $val;
return true;
}
public function setMap($val){
if(!is_a($val, 'Application\Document\Map')){ return false;}
$this->map = $val;
return true;
}
// #****** SETTERS ******# //
// ******* GETTERS ******* //
public function getId(){
return $this->id;
}
public function getTitle() {
return $this->title;
}
public function getDesc() {
return $this->desc;
}
public function getStart() {
return $this->start;
}
public function getFinish() {
return $this->finish;
}
public function getUser(){
return $this->user;
}
public function getMap(){
return $this->map;
}
// #****** GETTERS ******# //
}
| 82 |
sn83030272_1877-01-24_1_3_2
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,877 |
None
|
None
|
English
|
Spoken
| 6,096 | 11,131 |
pi ini 'ii Put" iP'ellired alnce tbe inorillllg of iiiuo Unit no man ever ahull li Ulu jutlgi in Iu own ii.-'. "f a though I'" sit-, tmii other illilgoa! ami n may mv nye fall upon my lioniinirile friend hrom N'ty Jei-aei IMr, l'i (ingluiya a' 1 am rcmindeil linil the blitlioat eourt In Ir Hlupi hna recently d'K'hleil thai im a i i He- I. igllalure, no ,-t- r- eiaeol Hi" loglalntive powereiu nallluto a mnn, alUioiili Im mny it with otlmra, a judge in hia own onae, ao iiormoiia i in" pr ling whop nidged byis'iiimon htWi uowmuu elbUa, and ' ifiiinon --ii-". Hut wear - wan. "I Hial I' it'" held Hint Ih Hons, a liliyo 111 la p .. t. tl " Hon- - imn lulfll tin count! they may lliruW oiil -ii" Kiat 'lind an ill r Si ib", until lio IIIHim'ill M il Um ehi urn uppnlllbtl r in.iiii. . iu,.- la piai tibia, I'a-iy pilgu'ol Ih" I'liualiliitli-n pr. ai'lllM Hi" ilatnle" k in which l'i" Itvo II I- k or one Houae can proalraln tin (ioverniueiit. One 1 1-..is imn. ;n.-" to -,,-, appropriation Pills, or levy bill, or any bill III flmo toola or may appropriate legislation - Una, 'I n oli lora may refuse to receive or may vub' for Ineligliilii iiiiidl'tiiPa, The President "I th" I'n! d KlaP - may refuse to receive - 1 1 nl", or to pay for the time, or to provide for the event, 'Inn Uovernor "I III" HtuPi may "I rlify or ecrlify bllaely, 'I'ii" House mat i liiao in attend, UIPl mi on. It all provision, Toe uiuiwer JolTeraun nave "Thu Uoveriiioiil aia "ii U ns""t of t'n- fov- iiriPHli so must every free inveriunenl real whil" it Ktnn l at all, and whenever representatives and states and people make the UuVwrilBtoni and li iivu it tu luuguiau und die. It will go down, na other Onvimnient 1 hav" Mono, lo Hi" aopBluhn of lilaated hatloBalltiva and burbal apoeha. Ik a ma- i girl leaa to be treated than oBe mnn? A In the midst of the hour, a President of the Senate for the purpose and the same act of the Senate for the purpose of deciding a county meeting, it is one mode. I keep a different course of my hour at the starting of a summer session, a majority of the two members of Congress, by the President of the Senate in the Orrton case, might make him President of the Senate for one year or for four. The minimum so constituted as a satisfactory report of power than a majority vote of the two Houses. Mr. President, I have been then stating my own reasons for declining on the last of the Constitution. Let me now, as I would have before done, and to a higher reason, in the main, what I have been by ill-treatment then. -worn ii w" nr" awora to nxocut th" Con- atitutloB, L"t in" Inuulre what haa i u done kiii"" Hm Oonatltutlon waa Inunched nnd before. Let me begip with B feaolutioti which Iiiik been adopted by Hm UonsUtutlonal Uonvcn lion whloh ha boon Indd aailuflningUiejurlaillc Hon qrdaineil hy Uie CoiiatiUiUon. On s--pi. 17. I7at, the tlonatltutlonnl foBventlon miotitod two reaolutlona, They wi re Iranandltea to the Cmgri'M of Ujo Ciiniialeratlon, TheOongreaa a lew day afterward, on tho Mh, aeeepbal Uie report wilhoul lo iuiu upon it ntherwiae, Theae a eompaiiylng dooiimento nn-l iitheni Were -"lit pitlm Htatea with th" CtinatTtution, which ('mi- atltiltion wna proi ndciltobe mllned or re- ited, One reaofullnn r mmended thnt tho s uiile Kin. ul. I appoilil n 1'ri Kldi nt for the koI" purpoae uf , aud ouUBUBB th" "l""lorul toti-s. The reaolutinn did not profeaa lo define or preaerlbe any power; it merely dealgnat'Hl an ocenalolt, ami referred Hi" ohjcekl of that aaloni Rdldnot prop, to ormform tothe modef which Hm Oonatitutloh would bring In. I'll" Conalltiitlon dir""t"d Hint Hi" elector, should (tend tin Ir eertllleite to Hi" President of The Senate This riM, lution auggest that limy kIimiI I!.-iit lo tin- Br-retnry of Hm I'lrt.'d Htai-. Who wn Hial'Why, it was Ihe Clerk "f tlteoldContinental National Congress, They had tmi mi" Hoiiao, and had a Hcrk.and ihi wa Um man. The recolutlon did not even prop..e thai ih" oouuung ahould Ink" pl.e e in th" pn a.-n f tie- two HOUaeB, wj verwaati dolt. But what further? Onorgn Washington had I a BBanimously elected I'r-'-el ut. Every elector had to-t"-l for him unanimously. All those who chose "I" lor had voted unanimously. Everybody knew II would be -o irom Hm Befflnnliajb JollB adnlBa was ovM-wlmliuintily eli-i-t d Vb-Pr"ld. nt. Tim koI. uiuily ol Um pr Hint ol deehurllig Hint eleition was ilk" the aonimBlty ol Hi" s Mary of smt.- wh. n ha aanoBncea timl N"tv V"iir' Day For the Fourth of July, or some other legal holiday, arrived. Tha inn" for comntoBctBg pro ilnga wa the 4th of March, Hat, a quorum of the Bcniite fun wa eleven men, (to quorum, came, IbvI mtlona buagtBg men to appear fail"'!, until Hm nth oi April, to aaeemble eleven men at the Cap itol, Then they were notHenntora, Not one o! He ui was sworn in until thesdof January afterward, I fas. nnd theae eleven itnaworn Hen atora luatembled and ommeneed " pro Ilnga under Hm -aid Conatltution." What del they do? Tim , iiikk"i Ui'k ordi r, lo wiii'-h I i-rave Un- attenl "ii " th" s. nut": April a. iT-n --is I.,... Thai Mr. Rll.wnrth hi'nrin the II, ,ii, , ,1 It- ; tit, i III . thnt i .il'" nun al IRC - iml" I leraast, tlisl , I'ri-.i.l- nl It . I. . t.-.l rm Hi. anla I -.1 l-i' nl hi ntna tin- rvrurkaua ami a,,, iha vow - ni laa 1 1. ua , i it" -, r " aiau i atari ,,i a I'o -iai nt una te a i'n -nl- nt .,i Hi., I mill -I..U-. I stop there for a moment. The resolution proceeds, but stopping there. I ask, is the prescription of authority or instructions? Let his opinion in to ways. Happen at the last session of the Senate this order had been prepared. "Be it resolved, That the Senate, Rag, a Senator from Vermont, is appointed President of the Senate for the purpose of trying the impeachment in the Senate. A. H. Heavenhead, a member of the bar, would that resolution have meant that the President of the Senate was to do the whole matter of trying that impeachment. Even if he should do so, simply because he is not acting in a manner that he is not. Even if he should do so, he would be a good man and should do so, when the Governor of New York by preamble denounces the murder he has committed, as often does, an individual to find himself in a murder and to exert the habitual. In an act of the whole, the authority of the whole was, in a resolution, "topped the rule," it would indicate that the authority of the House should be given. But the general rule, that should be given, would indicate that the authority of the House should be given. But let us turn to the particular manner in which the order is given. Let us turn to the particular manner in which the order is given. , r i" i-i - at a. ia Ua- tuim is .' ul tin- il ..a , tu mat i.-.i ii.iu atH) Whaldnly? It ' maPt b" Iv otint tho elee- l ral ytaV-a. Mr. Sargent Way not, thea. open the .''rt.n- cat -f Mr.Conkllng I thought I had aaalgned thai reaaon, beoauao the Conatltulton innl or . ;.ir -l who ahould open the i'i-titl atea, i ahould uiideratand Unit the ConaUiution pro k rils-d what he was n, do, aud w hat .-tlmr were to dp, " Ami tiuit th Henate i now ready in th" s--iiiit" Uhambcr to proceed in th" pr --in- uf th.- Houae lo dUw'hantu that ejiily, nnd that Hm Henate have appointed one "f t.e-ir inh-r to -it nt Hi" i lark - deak to make n list of tin- tot as lin y shall ! dcolaroif" an 1 " d- - l.ir- d." 1 pike ii. im in-. " rea I " ' r " ri -nrirt d ntlbmiiting it lo the w adomofthe Honae t" appoint on or more of their mem. I-I f ,r th., hk- purpoae," who reported (that '-. f.llsworih did) thai In- baa delivered ihe moaaage," tt ii ,i .i. i the Houae TheRotue reaolved H at they would hip n l for Uie purt - pr 1 in th" meaauge .1 lit red 1 y Mr. Ella Worth. I iiKk iwaio whin waa that purpoe I Tlfv did attend. I'h" i' i1 tk made tim onutni r- atlon of ih" top. Wind el.- i nrredr A committee waa appoint i toprepun the ertl flui", w rd P r word, which the Proal iP ut of the Bi'liale ahould sh-n. nnd ha was do u d P. u;ii that ei-riiU " it - llul Is-fore Hint w - done Mr. Madia ai , t.. s.iy Hmt pi" I. hnd dlr -l 'd hi in t iu, -nn Ue s- uat that Ui" II 1 1- ha-i ogr I thai th-. lection ahould laa erullod "r BoUil'! liow mark- ut th" manner ami hy Hi-- pentona whom in- Henate ahould ! plenaist Jo dlrett, Itlkd til"! 'onalltulio i - in - t- -I that IP - Preahleut td Hi" Heilllto h ii 1. 1 ivrtify --r il PTmlll", what Would thu UoUau I. at, tu dp With "on isllng to tbo Henapi th" inaUing of Unit aelectlonior w ' would ill Date have to do with xer -is- im: tin- "I I Bill Uio eor.imttt prepared a eertlfl 'ate, and th" I'r Ki.. ut ,.f tie s. inalo wn cniiinianded hv Hi- rder oi the two Houaea, or b) the order ol the Si'inip-. io whom -t waa inimilted, to certify it. Ti'" -.ri.,; ,t,- anid Ihn Prcald nt of the s- nut" hod inuut'sl th votea. I hat" no iloiil-t oi It; I havenodoul hocounted tliem. If the trull nd ii" km wn. nil the other ton Hi'mitora w hu Were Un r Iluied them : limy Were curl- o-ilie iu Ulna line. Th" teller made Hi" numeration ; int what Hm lellera did. or what in" Prealdenl did, wiiMuttboivnuwuidundao- iplh - .' n " ol He twu IP ni-,. Hi;p --I omniitl fill" Bcnate nnd tha s aale had direct"d the telb'rl toau.lt tlmt r l li -it", might lltey ii "t have algncd it with "'inai truth? Bupnoae Hi v luel dli tod th" -.um up-" 1 1 Ki-n tliu isTtlniib', might not Hm is illlUliUeO hat - sluie-d it Willi OluaJ li " I? Hut. II Is said. Ill rtllnvit" Implied that th" Pr- Kid nt of Um S n it - h el .-- , I I Up'powi'i toiuilgonnddoturniine whul u mid 1 1 l. It is - , I, an 1 truly, thai thu all r it rtilliiitea for many y-ars were in Uielilll BU "f thla an i nt form, No they w i". Sow. I iik the 8 nat"t uld"r whi-tborUiey meiuii or were Intended lo moan Uial h" w ho algned ihein had exi i' land Una power to judge an i d term I no. t tarn to i-"". Anron Hurr w is Prealdent of Hi" S ual". Ill bis Iiud emlneii'', lUt depii-toii by tlie s- nntor from i Ihlo, im won- Uie dial Inc. lion of being pot only clear Imu h d. hill lltlrej Id, and ii t- r aa h" ehuruml with boiug dilll I ul ol iireroitiillveor distrustful ol rcaliibilit) or k i'-.ikk -rti -n. I a- ! Hm H mil" to hear 't hai Anrun Purr snld: "Tie- tltnu huvlnir come to ""'int in rtillcntoa, thu Prtatldcut ul tho Sen Hi aiiiii Mi. Hi rl in From what pat;.- d- - - Ih S a.i tor i ml I Mr. t oilkllng 1 rend fr Ih Iiiplbltion on nnge un, Hr. "iirr i:d'd Unit, iiiripini i Pot-. llloru lllul bei ii ti mall li ! I., him - ia! i-1 i. i ta, which, Irom tl Iidnraenieula upon llloiu, ai pair d to Pe tie- t,, , ot III" i-p- I, i- ,.f a Prcaidelil mi I Vlcu-Preaidi'Utl thai Hm r luriiK lorward-'it hy mail ua Well a the Uiiplt"iil"a aehi In apia'ial m- aacngera bud ' -n r- -v -d hy Imn in d'.i" lu-i -. N w, Inaktlie Hi'iiiilo loo'iK.-rt" lie Wiiaatl'lri saiii.' I i - Keiiu toraiiud llepreacnbitivi a, Yoiiwilln Mr pro wed, geutleinen," In-said, "I ml Hi ft t us tie- CouaUtiit ion and laws direct," mid hu' i a i er ativlmi no eauae for irefer"iiia In Un ordi r of oianiiig Hm ret ii ma ho would pur sn" it pogriitiliioal iirriiiigoiii at. V w. Mr. Pivalifoni.turii i-i tii" cerllfl'Nil i mi Hm n t pngit ii'ige it. II ra is in ' iin"lcui Pirili co I: " Tie- llliilerslun "I oertil1 - i1. be ha "mi nt-"I the vopi, allbo lrh freali on Ida hp- wvro the word timl tin tltinatltutioii -nni-milleil it to ih" I! pr ai nlatlv'-a of lliu HuiP .- and li'" ll-'pr-K 'titntlvi nl I i" i pi''.. Take t!7. IntliHIlll had ui. V . Indi an.) tint- a Stat--. IP r Henalora alii here, ,uel in the IlllllHiI ot 11 Ipri - 1 , ' "1 1 - Hill W Ul, 11 II- Iri'-k. H mi alor of one if tim ".111-1111. P- tor yiei-l'i'i ld"iil r"'"iitly voitl for, Mr. Taylor, from in" silt, -a Niv fork, when her . . rllll . In w ik r a I, r -K 1 1 ami 1 I; " I olljii I lo timl tot". II WI - m i 'd tha! Indiiin,i, Inning dlapuailiuiia 'n tlfoaii ilnya) loreign I 1 I ie liana U"W. Illol I'llal h .' alio" mil ', 1 1, 1 1 1 pari ol I II in-01- and a-"ie- nl "I'lno'a Were I. el al h r than. 111 e : - pi - I w u a I" 'an ol tti in 1 1 re .. - urre I ' Did in.' preaidi nt ol Un H 1 no naeiimu to I ' runn ' Mr. Varuuni, 11 li p. reaclltlliivo li-"" N-'W V-u'k itn l Hi r - w ia no itviiiy-aiHsinil loiut rule Uieii, I h 1 tut I uior. .-- : rl. -nl Iruni Phlu pi 1 'lie ia1 r 111 1 -1 .' Mr. VltrilUhl IllllVeil Ullll III" II iik a k- i.ir.il-' til ie- old" win Iher I n yiiP'Should l un d ,.1 n 1. 'l two Houaea del 1m1-.1l . T 1 - id .1 -I...I ', They did couahlor, No'iody aiigu -- 1 lliatllio Preaid ni "i Ihn Boii ibi had iiiiytbing ui Hi World to dn wall it. Uni in IHit.na uaniii, i im idi-ti'i -al eeitlll al". 'I'' n a-is iiindo tie-eiu- -.1 u. !i - two 1 1 - .11-. ,011, In -Ind the count of th" toh', iii" Proahieiil uf Uie lew Si ual" did iii-Uiiiu BXcepI what tle-v euinmiiudi'U him t" uo Tltey proponed tie- tvtui oi Uie certilleatoi they dirautuil him to -Ian It mi l did. nnd Hie v-rllfl -nl" Mated Hint hoconntod tin tot". .No doiilit he did In Hm 111 ilium li- al ""ii". lb- In ard Hi" tuhtihition fend, II" looked at it. Re was ninvinopd of the eiiiu:--r.i'i .11. 11-, ,11, noun I it to llmlwo Hon"". II" -iaiu'd Hi rtlflcniea. As the link at which Adam KtaP d on the end of February. The nomination had been appointed. But it was from the beginning, for him. For whatever to ascertain and report the mode in which the electoral vote should be, examined. A land of separation if the President of the Senate had the right to declare the majority. When he made the declaration, he said, "I declare the majority, when he made the declaration, and on it he made no further remarks to declare the majority. When he made the declaration, he said, "That he delivered the oath, assuming his oath to the nation might hear, what did he say? That he delivered the oath, showing that the Constitution was in his high opinion. In the high opinion of the United States, and to the constitution of both Houses of Congress, expressed in their resolution, passed at the previous meeting, I now declare that the majority, by the vote of the people, will be determined." A alien a man arose, amid the tumult, A remark of chancellor Kent, which were By the honor of the author from Indiana, which Had been read as a author by the author from Indiana, Which had been read as a author by the author from Indiana. The remark, which I shall read, fell from the lips of the audience in the audience. The address was also known by him to be the form of hold dlaaertatloni general ami elementary, doalguod i-i Impart oBUiue natructlon of hlalory und law toheglnBera iu tin- study uf tin- ktw, 1 think 1 mu-t have horroweu Ki-nm of hia word, lea, he any tlmt "they iiv of that ebv mentary kind which la not only naaenllal to nvert peraon who purauea the aeien r tho law iik a prui-H I proleaaion. tail Ik deemed iiaeftil ami ornnmentai to geBtlomen Ib every puraillt." Thui Kpi-iiking to young men of uniimti"". who wit" layiuit Ih" foBB ilntloBa of nurture at 1.0. wa obaerve Hint llm lanitliage Im emjploya I nai'irallv iii-vi--, t or rather Ifleoncluaivo pad wnniingin Judicial oxaotniiae. what doea he nay: "In the I eae of queatlonalna votea and n claaeiy poBtoatod aietrtluB. this power Buty Im all Important. Tiuit iK Hm power to count. I nubirdl p, mv honorable friend frmn Indiana, if evoyy tiling Hud itimm, good, had and ilidllierenl la to be itounted, a yon would aay th" multiplication table, n would hid be " ail import. .ut." It would m-t 1 1 any tuiportnn"! nl till 11 that Was th" law. Hut now lm kiuk: .tmi 1 tin-. nan' m tin- iba-aof ni nil laxlaiaBva pro VtriuaenUie Mlbjrcl Unit tin- I'ri-il-iil ia lln- -, 11.4', rnnnl the yotai nisi .n itiiiiim- Bic rraalti anil that tha t,, line - it.- ara ai aal) ai ipt ti-ii- io arlini. iha nu 1 in m at ui-- im "i anil Bnj arearacy rt tin Iranaa Utin, nil a- ie 1 "iii- a aa bote ba Bunk 0) Un alt Van Mr. Prealdent. on thai inriu" 1 begtoaubmll three rcmarke, In the Ural phtoe, " I preaumn." I n I m t a-k lawyera whether unit ia Hm tiTin employed hy 11 great mngiatraPi long aeeBatomed t-i weigh exact "niis with unfi t red hand the ojU"atloBa Uial came before liuu. nnd to Pronoun - dlatinetty hia jiuUiimut upon them. I preaBino " ta not tip- laBguage ol nnle-ial '-Mi -lusit'-li' --- or CXaetBeBB, On. hOl nr. Kiimnnda it laagueaa, Mr.OonkliBg -A an sk? xea, ngiteaat BBd a very pariP'tinhl" form ol h When you OB- abler whnl lollowa: " in theabaeB I all l"K'i- laiiv ' provision.' lio'-Kiinv in. iu who hold up Kent aa nBUioriiy after tnni deay Uio power ol the Houaea to legislnte? Or. ' - - it le.t Uat y.-t Iim Pr, sld' nt I ofth" R-nnt". line It' Why ? H" doe It hy the pie - "li s- .if I'm IkhIv, ii th tpinol Hie l "Iv. itiider tl ttmmand of tin l u(y.ju5l as lut lt!ii"lt'i rtlflna to to which I buvcr-feri ill mid tv h"n a coufereni 111 iti. .- 1. ai IHiinted, tii" t in ,r Innuiri'a, "lit whom idinil Ui" com mit! ' appointed?" and aiitin Henntor it. "By Um Chair," ind the hair api nta, Doea h do it in l.o. 1 1' pbr -- ,, ncopWn aijoc? Doea Im do n In- a rlghl whnh inln-r'st 111 him. or doe ll" do It aa tile 1 reflex, tim mirror In whb'h is r- il -t.-vi tim authi rltr arpl p . r .,r the Henut ? Now, Mr. Prealdent, I aay thai the word of ' I'1 .11 II 1 K ut clearly nn an thai in Ins opin 1 m th nd rmlnntlon ol the elm torn) vote w; within th" 1 tw-nuil In : provinea. Mr. President, pausing over the resolution of 1878, the committee to which I have referred, and the return of the committee, which I have considered as the trio of authorities cited in the case, I am not going to come to, and hope I may make more with more interest over the present time. I am not going to make a decision, but rather, I am not going to make a decision. This right will be given to the people, no matter how it may be, in the very near future. When the day arrives, two Honorable gentlemen, I think, framed the treaty. The Senate, in the meantime, framed the treaty. Representative of the two Hon. Teller was appointed, and the committee, numbering the votes, announced the vote. Mr. Conkling announced that he would not vote for Mr. Edmund today. Mr. Edmund then moved that the Senate go into a committee, and he would ask Mr. Edmund to vote on the bill tomorrow. Tl in :i"ii for an exe ullvo s"K-i,'ii wna tin n ngri 'il to, and wlmn th" door were ri ipemsl 1 e- Hennte tpliouriteil. Tlie auliji twaadlaciiaa -1 In Hi.' Houae by M"ra. s , if" llb'p., Mnaa.i, William Pp. Mi.1, ami Tu In r ill in., li.i.i .Mr. s, H" I. 'gK -d III II- 1- 1 . I- nl-' I- I .,.,!! -I. a ap p 1 t yoii! I, he anid. m ike lie- I'r- aid .,1 -! the I n a--1 Si in s tin "i ut urn and tool of Uio Houae ol li pi k. ma! 1-. Mr. in ;.m- It id Hie I'onipr iae bulls' 1111" it tv.i uUiiitoibu 1 a- u .-mi hiippin .---'. 1 iu uouulry, An I.,- Haul Hrcallu "it it"- ll.ni- u. Till UIC. J PIE, JOB, . A fleet of 1(1 i". t i.i I ' ' . '1 1 - t .... 1 .',..1; . aiij in. at si-i ai - -ii-,. tur aaleal ef rha tt .- i.i Bun, Tne WkeblvHun published thl morning ai- lain- lln a-ta-S III. 1 1 I-I- -I ' i n. 111' i ,,11111 , ..in 11 li- 1 p.- up last 111 llnlli II- laa 1 .. - - . .-, 1 .' - I ' . a '- 111 I 1 . - ' 1.' ,t II 1 nil 1 inn k . Un- Kraini 1 a I. i-i -mi nn- linw in,- l' -a Ii' Vsf Meniil I'mnniuii'ii t" Winiiliiuieo fits 1 we 1 li . 11 -i- ra nn 'a in iieul-iiiiiit I'Hi'anrd ual In- tllti sTh" I'r. leiiiicr III 11 Had W n Un 1 i.I'tii Wan mnl Tnrkey'i I um! All-it, 1 1,, ll... Ki on ' . in I' ivnr in 1 llrnliil 1 nun- -, 1 1 , a., ... a. n , ,11 in,., ni huril aalidairy . lln I.- 1 i'a K ' "' 1 irai ni iauili 1 as. 1 ii.- Krw Ji'r-i-l s n.ilnr. ii I'll,- 1', 1-1 a.l I .- lim II 1 - .1 , 1, ii-n. nun in 1. iK'i'raiali'il ia iu. M at-v 11. 1 , 1 a ' 1 I Vi lt.; ! ' Sniri 11, n.iii'i'- I 1 a I ., , pt it a -. . 1 a i-- I . .. . 1 ' ' rim Heaitili i .--mi. nn wgtraataa V-. ini 'aaof 111" na 'll. M.I.. ul Mn tnm la flllt ar I ul- Bill oil Pv "Kins' Ulgglna'a (1 rii.nii latunitry B -i- I Ii- H- fln lit it Ih w 'I 1 1, m a I. ' I'n th, 1- - 1 1 lloii 1 pi i e .ni fiirnlturo and cnriada, I' a ,,, -li . .1.1 ., 1 1.1 HI, a 1.W t.l.ll..ilil ili-.l Put .1. 1' ' pUn I not li" deprived of l.ihU' I rt. ui ii.i un Maitii a Tvt-tiilug Caollal IWa. aaa M iiv I TCI ii ivn roHMr.m 1 ir. Tram at, Jan. H P, U timmilBlhal bj Hp Sio I, iMhMBja r'-fl" ted hBBJ exeiled mar ket, and tim volume, -d bualncea wa alao haai Important, ex".-pi in Uriia hiiop'. whleh wna fully up lo Monday' Iran-nlluii. Titer" waa Very natnrally a mor' Irmgnlnr tone, Ineldeol to the ahlRtnn of raott Inrgnhtoekaol ilankM hated y Kterday, and it HmBB 1 latrarlah fei-llng 1 - un 1 ol i -1 1 ill" deall&tfa. Lakarlhori hetltotBg Hm flgnroheBd '! tim niark at. however, but eon- trarv I" XpaotBUUtJ look t'lrllmr BpWBfd lum to a; . ftef iiiit-iuir op-'in'ii ai it. with a rjBjeBj drop io .Mi't. in me Rnal trade, huwaier, ttM pri Inclined tout', aoller 1. nnd Dtoaed ni 57';, bnyara, Weatorn Uaiofl rape Bed atrong at TTxti an advai f t uul. a- om pared With Mn. tiny' i loKiiiK lluui". and inrllmr nilllBd In 77 'it bul Huk mot" m wn. regarded with uaplctonj ne being pKi apnamodla, o thai before the Aral board then wa a drop ol i oeut to 7n't. Prom llii- point, however, tin- prh " na-nln nsto lo 7; '4. thoui.'h again yielding to tim krareat ftglirol uf llm day iu Um Anal tfBBBBOtloMi Hlehlgnn Oentral phiyod a nanaplottoua pnrt in th" morn ina, with "tirlv al" al 5a'. ',1 MH, buyal I. " i'.' : Init It Kisiti advan I to Nit. BBd at- !rii-'t"ii a rood miaxanru ol alteBuofl in the mil. Ki-'pu-nl I ru u - a 1 ii ii 1 k. ih-iuuh and dcBiy drop, nini; Iii I'.", in tip- llmil hour, and ohadiig a! c it Uehiwnre, Lackawanna ami W"P-rn waa maf irii.-lv abildy up tu mlddny at "4l,"7il4'"74'i, W ith a rally I" 71 '., at th" ml lanrd. and "ll- iiiK later al 71. ; Hew Jersey Central on limited, tninu"1l"ii- rnligiiiK nl,11 n "' U."',n'"t It. The si. Paul Ki-u kK were atrougi'r ai iait9' for 11 mmon, and tafiataS for the prolorrpOj w ith ileal aalea at W and HI reapoctlvely, The Northern Western remained a more marked un provement, tim ooBimon rhilng hi e eent. in 17 'ii, and the preferred'lu lalt.bu! cloalng at Mlfi Union I'm ill- wa- h' ll r at MV, Ihoiudi drops ping llnally to at I again, aoller i. Itoi'K lalano moved up to Pw i, mid Brlc wa moreactly in the nfb'moon at in." in',. Pacific Mail, on reah pnrciiaaea, rulln-d from MH to WM. and Ohio sold nl 1. wiih Wnt Mah aavanelBg from a1., to ii', lieluwiira un I Hiioaon waa I VI e cent lower at r.'. aeller and N-w V-i k Central rnged nt PH anal, aeller a, ami nu. aidler ao8 nu1. for g-aharu bda, The remainder of the li-t did lm' Bttrail -1 llnltnntlop. Th" de. eh im ol th" lending fa tor it - iii Hu- II nn I Inair ol trad" Kilt" to Hm mark, I a tired appi -arnii--" ini' tim tmi" wa ttaauy at Um uuotatiou noted I" hlW, Tlmt:.. 1. 1 market opened actlt rml weak at lOH'f, tnoitgh Rulaieejuonlly bcfvymlng flrinerM IMS, at whleh latter flgurea It clnaual, Th" ad-tan-" iu foreign exenangi contributed to the atronger tone, but. In anticipation ol an ami cable airltlemenl ol tie- PrealuentiB) iiBeattoB. Uiere wn 11 I".- coufldout - 1., iu Un- htai half hour of bunlnoaa. Tin- foHowtail wars Hi iirierp-nt tramtai-tlniit : i" a a me, i" -.j t a im', 1 l' -it c ti him I'lll.tM I"". , II in A M In,', I a . m ioUa Iii laani tit.- rale- I"" t nn luuiii intimi - - . .1 a-a- I',, .1. mul . .111 Tin-"! il 1 I, 111 1111.'. l Iha Itnld RArti.inir ts.iirlini'n1 I. f!l 1. i"i '-i u',t,i 1, 1 ua i$ltnTBjaiii ,111,1 ai 0 in v hall i I -e- l"l ll- - a I': -i-nr r. -i I ," ;7 til in rallrd Ismtla, m, 1 ii-i'i ual in nan mn raal n un- i-ni 1 iii at f 1 ii.'mi. ti" ain 1 htiMncM at tha t'tilU'U atataa --' rrsa-nrirwaa aiht -t-ipta, Wi72,4tV!i ia iaur 1 ni.-io-. PlsT.HIfj, ..I.I lial r-i-.'.l - - 71 . nr. rj'iicy ri'iti't-. Bwi,iaai ii ra r. 1-. , payin i't fli'v i 4l-:i. earranc i.i.nn. an .a- -11 , n nun. f;: 00 Tl.,- uiiirii.il h'Vsinit! 1 ii '.. 111 'i a-i-i 1. na ti lit" a BnaiiMO; mil ii.l.ita nierlils Btllil.iMII taB ti-.i.iM. ui-1 I'liui-ii .--i,'ini mit, .nui 1,.. iik luaaa 'Ji ler r ', ni,i, n. Tin 'a 1 lm. t'i Rahkia Knalaailwal ? il, 1 r, isuil fn.lfjn Tl" t'-'-1 - ai il.iiin-.iii: ir."liu-r. .-nr. J ! talaaBtai. fur IB weeh cinUna tadaj - ic .1 rr.p -ji rort-lan Xrhaaa ml a limin r. nisi tie- iiieitaBoaa 1. n- .ni mii ,1 ia 1 i and M -I t-ir ie ual ill ui-nul ii .i.iii-. in -.ii. pi. 11 .1 .. ii) or mil-, adavato i J' In II. t iineuri irmii lln ni" "rli-i IV In ih -ii,- v marital rail itaina arera flvatlt nnVrstl at t 1 g ". 'a ceBt, wh'. tin- 1.11IK i-i i'n- naatiUml in-ni 1. tit j I sin-a Baiira 1in.1i traniat-Uons wara aBValatl riraVclaal 'i j ri-iinn- i .al. if. 1 ,..i-k il nl i.i7 I 1 "it 1 1 um. nt tiiaali Ihniiah leal acUva, war aria I I tliftiaiah iiiu-- 1 1 1 - i -ir-.i is 1 .1 i-si7-, 1 I iMrin now, and Io-Bm wars ) .en atrona iml flaaraa. fl Ilia lulivwiim arm Uie I V a cluaUal arlcaa: 1 u 1. 1 .1 ' ' Bat JaWt J n r a rnr a. .u i , P -. l" n. -,ts. r 117 11711 1 J r .i.K-l.r III, III-. I 11. ,w c .117 Il7i2 1 B 1 .. ii.,- ui-, jiait f. a. i-itsr 11. 111 ' , I ll.. r ,rO, In .... I K PI !.... li. Ilia J I' tu. v, ., ,, I..,, lum! I. ... l.r. Ill1, III, 1 fj I - a-, a i. '. 1' II". Ill I ' .-.-I.. II., ilil'Z J I I .i....... ip., ill ' - 1 1 ... -n. r I"- H'J 1 J I s n-. "7. r 111 111 , ni I'm i .1 I'. , I a ia, 117. 1:1', III', 1 1 1 stai,- bond rti'- ' ihroat, ml raAaelMl .1 rdr trada I Wa acta Mlfi. T u, nld.al till 11 do n 1 Brvt. tj ,. .i.mi. a. w. tjhanBa aadPaa Ti-t . jaM 17 cinr. a Boruiarailarn Wit BTM '''. a7 "in-- I a'weatarn id :'. -', .'.7', M IBM ilui'.K I nn, 1 1'.-111- lOi I"., Inj 1".' i". , 1 in.-. n.ir innl unira-y n-', ua iJ CoL.chl ami lan.ivn a Rti ii plaa..Col.,t1a and tail rat as as Ra ai 1 ei. i aatl Ktanarxh Rati na i I.i. 1 a mi l Mum , pi J liri I '- a 1 I' ,'IUll .Vltull III . lln I Caaten hr si I Pel . UsR R Wrnlora 71', 74'J 74'; 71', 14H , Pal . Iluilain Uaaal 7n , 7", , an on: I t ! nn. I.xii-... Inn , pKIU l-i, 1 11 ore! I A rtsan Kaprsiti - ..7 .',71? d I nted stall' KatirsM . v. v as .',4 ,4'J I i Wt-lta. ranto k I Ri . - - at . I to.' nn; 1 1 ; pau pad II. irlrm im 1 1" in 111 , 141 j Hall aial l Jim ... IX l l I 1 I . 11', I p. ,11 ni 1 ki jnaid . .. an -.si i'a '.sii, -j7 H lltlnnin ivnuil . .... .ki . r.K . 7 m, B I ik- Hli'in 7 " .7 , si 1 ,7', HTM I V1.l1 ivntral , , 1 , ..-', 4WM Bnrriaaiat Kawx-i - - -- Bl'l , Mil. in. 1 ai eniil . 1 ' , 1 ", 1 . . p . I', J Hit ami ai pen ta 1- . c . 4 , i , 4 Kw VurkiVnlral 11, i n . I". PH lodaf I k.aJiTai 1 iiilrol ai nil ual, an. .14 f 01 . an 1 1 7 7 7 7', 7V t-i-.'.. .,.. ... jr. ; . j ju 19 2'.-; rnn.uii.i .. . IB. l iit-liiimh 4 ki Wayua p i i a lm Iui , unu I' i-p .- ..; Hinaoari- -iii a V rr...... - - 1 1', ia yuiak-ilti . 'l mm '." v. I - I II -All 11 Mi'iil'lnlll 1"', PI Bt. Issik g. '. a R .. . - 4-, 1 I I-. k 1' .1 v pi Rti! BBJI T nPi Wah B Wan " , '', "', 7 I rllinn i'n. nl" RP, " 4 op, ul Rfl ' W 1 -n i 11 i nn-11 1-1 .. , 7", 71 , 7uK A... II -.11.1 Uli- II.I- l. I 1 I.', - MAMISE 1 v 11 ; .1.11. i.st 1:. aivtTi-i 1 iui t a ai ran sir - a--- T IT s , ns m . . j 41 HH. II M .0 Ml. t.,, Randy lb , R u,uui l.iauJ it oi.Uniiuato.... aw - tret Tag -tt 1 . aar, J " n. Ri it 11 1. tin. Kanicioa. Rav iitiali Jan la aaai . . u, 1 . , 1.1... w Jan 5, and Larag s. tt,,-. : RUndai 1 J iim rh.r. I - 1. Ilintd, K .1 11 .l.i.i, 1' .tit, mil , Nui out. - -1 nun', 11. i a - ' J Rnu ... li.i.i- .. 11, ,1 1 I! It i- 1 Ball, 1 Ki ind, Pity Paint, and Hi iit-li p v . ' , i.i 11 1 .'-. 11 ..... s.. ' J tl. t ' ' ' . - . ;' I II- .' ' I' 1 1 S....I Jilt !1 uiintil -il . lie cat. ijl I Vim nr.- net igg, uul Bay amy aalr. t hy di a 1 I'arkm II ill aal-aui t'ai h i lai It - ( 1 11.- natural i-.a-r aial ti-a-n, tin .,...,--:,..:.,.,-.. a - it- -11 . 1. l---is-i .it'- Traaaca .... 1. t il.liil Ii. AV il:l MAI1F.R III rl ! Inn I it Minn: .la - - daii.-lin-r 1 Uie line I-11 1 1 " - - - 11 n ... nata. ' , . t 1 1 -i. 1 1 UAi I tUIRU-PYIP-AI a,- tt -k M .1. mi Taealay 1 1 ti ,, .i-ni - -' n , ni.- tun. n. 1 1 - Mm -.i iw r p., of 1 I'liiUdi'lpiilit, Pa. ' It. finnMAN 11 1 M ,11 tm-. 1 in j... vp . i-e . 1 rtorai in, 11 lailvi - .inn 11 ail 1. ai 111 1 nn it nr.- In' ii- 'I iii ii" ml II , ' .1 1' tl Post im v uio. j.i it pol In thn '"ih 1 , UriH'kliu, ia IIiiiik 1 - .. .' 11 still ill 1 1 ii klvn . u . 1. u en wMua . ilia Ilia ' il 1 " at,. 1. 1 "ll . ' ' III! ' III - ii ' t I Htpftilll -'uiitm, I'll il tt I V ll. . it .UIN l,:-., V ,1 -,, I t , I I II KM, ti.in-. - i. 1 in . st 111 r ..- ... KI.VA rilll it ' lis nut PHF.M 1 1 n:T in I. k Allll, U n .1,0111 . . N. 11 1 . i k ntt HVVIT'N i.iii iiisti i.iii tin.. il.i.U..ll, 4. it,... .... 4. Mwltl ax til u, !..
| 39,172 |
sn88074815_1919-06-06_1_7_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| null |
None
|
None
|
English
|
Spoken
| 4,040 | 5,494 |
TO DAY, JUNE 6, 1913. Mrs. C. H. Lloyd, Editor. Office Phone No. 1 Residence Phone No. 88 The Annual Confederate Veterans' Dinner— For a great many years the Dickinson chapter, U. D. C., have given a dinner to the Confederate Veterans on the third day of June —the birthday anniversary of Jefferson Davis, the only president of the Confederacy. This delightful custom was abandoned during the world war, but now that the war is over the Daughters decided to have the dinner as usual this year, so on Monday at the Ocala House the Confederate Veterans' dinner was served. And such a dinner! Daughters seemed to have taken more pains even than in former years in the preparation of this feast and it was truly a dinner fit for the most fastidious. A large number of the Veterans were in attendance and quite a number of them were accompanied by their wives or other members of their families. A few minutes after twelve o'clock the Rev. Smith Hardin asked the blessing, after which the large assembly "fell to" with a zest that was a pleasure to behold and everyone greatly enjoyed the bounteous dinner. The tables were prettily adorned with spring blossoms and among the good things served chicken pillows and chicken in several other styles, potatoes, salads, macaroni, beef, lamb, vegetables, pickles, coffee, cakes, pies and other good things—even including cigars for the Gen. Alfred Ayer, adjutant of the Marion Camp No. 56, in a most eloquent speech, thanked the Daughters for not only this magnificent dinner but for all of the many courtesies that they have been always pleased on confer upon the Veterans. It is impossible to mention personally all those who made this affair such a success, but Mrs. W. W. Harriss, president of Dickison chapter, and all the other officers and many of the members were on hand to see that no one was overlooped. Next Week’s Attractions at the Temple Theatre— The week’s program of special features at the Temple Theatre are particularly good ones, a number of Ocala's favorites to be shown. On Tuesday, Constance Talmadge, who is probably more popular than any other movie actress with the Temple's patrons, will be in an unusually attractive photoplay, "An Experimentation Marriage." On Wednesday, delightful Peggy Hyland in "The Rebellious Brico," will be the attraction. On Thursday, adorable little Mary Pickford, who has been repeatedly voted the most popular of all the movie stars, will play in "Rebecca of Sunnybrook Farm," in which play as the charming little Rebecca, she is said to have the loveliest of all her screen roles. On Friday there will be another very popular favorite when Madge Kennedy in "The Perfect Lady" will be the attraction. Monday's and Saturday's programs will be announced later. Sergeant Clarence C. Meffert, after an absence from home of a year and nine months, arrived home Saturday afternoon in splendid health. He has the distinction of being the first man drafted from Marion county. For some time he was stationed at Camp Jackson but for almost the past year has been in France. He reached New York about ten days before and was sent to Camp Mills, where he received his final discharge from the army, coming directly home from that camp. His many friends here are delighted to have him back again. With most of our soldier boys returning home, Ocala begins to look natural again, the popular Court Pharmacy corner again looking like it did in the days before the war. The friends of Mrs. W. M. Richardson will be sorry to learn of the accident that befell her a few days ago. She started out in the backyard to feed her chickens and in some manner slipped and fell down the steps, hurting herself quite seriously. Mrs. Richardson was moved to the home of her daughter, Mrs. A. Bouvier, and is still laid up and it will probably be some days before she will be able to be out again. Mr. W. K. Zewadski has received the pleasing news that his son, Lieut. O. B. Zewadski, is now en route home from France and is expected to arrive home the latter part of month. In the Malm of Society, Ocala Girl Quietly Married Last Sunday Afternoon— The announcement of the marriage of Miss Jewel Marlowe, of this city, and Mr. Harry J. McCully, of Fellowship, was quite a surprise to their many friends as no announcement of their plans had been made. On Sunday afternoon, the young couple accompanied by several of their special young friends drove up to the Methodist parsonage on Fort King avenue, where they were quietly united in marriage by Rev. Smith Hardin. Late Sunday afternoon, the new bride and groom motored to the home of the former near Fellowship, where they will reside. Mrs. McCully is a daughter of Mrs. R. A. Sandifer, of this city, and is well known to a large circle of friends who are very cordially interested in the news of her marriage. Mr. McCully is a son of Mr. S. J. McCully, one of the most prominent farmers in his section of the county, and the young groom is himself a very successful farmer. The Ocala Banner unites with the many other friends of Mr. and Mrs. McCully in expressing to them its congratulations and best good wishes. Marrying Young— In an exchange the other day, we long article from a thoughtful writer telling the girls that they should marry young, between 30 and 25, anyhow, and not wait till they are 30 or 40 or perhaps older. It is an ideal life where the match is sensibly arranged. Of course, people may be married for society and not for companionship, and much of their lives is started down the wrong channel of life. It takes a union of high ideals to be a successful one, and one need not be forever in getting hold of those ideals. But people generally improve by marrying. Even selfish people do, for they always have something to live for besides themselves, and that is the necessity of a true life. It is a sorrowful sight to see so many sweet maidens out in the current of life by themselves, and so many splendid young fellows going the same direction without the courage to invite them to come on and go together.—Ohio State Journal. Avery-Perry Wedding— On Sunday afternoon, May 26th, at the home of Mr. H. B. residing four miles west of Oxford, Miss Esther Gertrude Perry, daughter of Mrs. W. Perry of Oxford, was married to Mr. John Lamar Avery, a nephew of Mr. York. The Rev. R. L. Clyburn of Summerfield officiated. Besides the relatives, a host of friends of these popular young people witnessed the ceremony.— Summerfield Chronicle. Miss Hussey to Wed—Mr. and Mrs. John Knox Hussey announce the engagement and approaching marriage of their daughter, Minnie Eleanor, to Mr. Russell S. Wood, the wedding to take place at their home, 39 E. Duval street, on the evening of June 25th, at 6:30 o'clock. —Times-Union. Miss Hussey is a niece of Mrs. G. S. Scott, of this city, and has visited her here a number of times. Mrs. H. C. Dozier and children, Cornelia and Harry, who for over a year have been in Chattanooga, Tenn., Manhattan, Kans. and Chicago, Ill., where Capt. Dozier has been located, arrived home Monday afternoon and are at present the guests of Mr. and Mrs. John Dozier. Their friends are delighted to have them home again after their long absence and will be delighted to learn that Capt. Dozier will in all probability receive his discharge from the service within the next few weeks and will return to his home in this city to resume his medical practice here interrupted by his volunteering his services to the medical reserve corps, U. S. A. The Times-Union of Wednesday prints a picture of Mr. Igou, of Eustis, with the following comment: "The handsome South Floridian who is said to be the best dressed member of the legislature, led the fight in the senate for the special committee's good roads measures, all of which went through the senate by big majorities." Early in the session, on the day that Senator Igou saw the last of these measures, pass the house, he also witnessed the passage of his new circuit bill through the house. Mr. Igou also engineered the citrus canker and other appropriations through the senate. THE OCALA WEEKLY BANKER. OCALA, FLORIDA. Local and Personal: Mrs. F. H. Logan and children left Tuesday for Ohio to spend the summer. Mr. and Mrs. F. R. Hocker and son motored to Daytona Beach on Saturday for a short visit. Mrs. George Howell, of Jacksonville, is visiting her relatives at Fort McCoy for a few weeks. Mrs. George Blitch and little son, Hardy Croom, of Williston, were Ocala visitors Wednesday. Mr. L. R. Chazal and family have been spending this week at their cottage at Woodmar-on-Lake Weir. Mr. and Mrs. Harvey I. Thompson left yesterday for Philadelphia and Atlantic City to spend the summer. Mrs. R. T. Adams and daughter, Dorothy, will leave in a few days for Chicago and points in Iowa for the summer. Messrs. L. R. Chazal and C. H. Lloyd went up to Jacksonville Wednesday afternoon for a short visit on business. Col. John M. Martin went up to Jacksonville on Tuesday to be present at the funeral of his daughter-in-law, Mrs. John M. Martin, Jr. Mr. J. C. Davant and Mr. Frank Saxon, Jr., represented Broksville in Ocal during the week. They say that their section is prospering finely. Mr. Frank G. Anthony, now of Saratoga, is in the city on a visit to his mother, Mrs. Fannie Anthony, and his brother, Mr. Perry Anthony, and family. Mr. and Mrs. H. M. Hampton and children and Mr. and Mrs. G. C. Morgan are spending a short while at Lake Weir, having taken a cottage for a few days. Mr. Tom Barnes, a former valued employee of this paper, who is now with the Tribune in Tampa, came up on Sunday for a few days' visit among his relatives and friends. Mr. and Mrs. George Nash, of Jacksonville, are guests at the Arms House for a visit of several weeks. Mr. Nash is an auditor and is here on business connected with his position. Mr. and Mrs. J. A. Walters are planning to leave soon for their former home in Montezuma, Ga., for a visit of some weeks with relatives. They will also visit other places in Georgia during their absence. Mr. and Mrs. Burton, of Sparr, were numbered among the visitors in Ocala on Wednesday shopping and attending to other business. Mr. Burton is the senior member of the firm of Burton-Stephens Company of Sparr. Mr. and Mrs. R. A. Green are guests at the Arms House for a short visit before going north for the summer. They have been for some time past in the Manatee section and Mr. Green brings very excellent reports of the crops in that section for the past season. The class of 1919 school for nurses of the California hospital held their commencement exercises on Tuesday evening, June third, in the Garnett clubhouse in Los Angeles, Cal. Among the graduates was Miss Anne Wilmer Snowden, a former Ocala girl, a daughter of Dr. R. R. Snowden, for many years a well-known Ocala chemist. Miss Snowden is a niece of Mrs. B. A. Weathers, of this city. Capt. H. F. Watt has received his final discharge from the army medical reserve corps and arrived home Saturday from Asheville, N.C., and has already commenced his medical practice, taking up the threads where he left off nearly two years ago. As has already been stated Dr. Watt saw a great deal of service in France, was badly gassed, and since returning to this country has been in the hospital at Asheville for some time, but is now entirely cured and been discharged from the army as "all right." His patients and other friends are immensely glad to have him home again. Mrs. E. T. Helvenston and children are spending a week at Daytona Beach. Miss Sara Herndon left Tuesday afternoon for Johnson City, Tenn., to spend the summer with relatives. Dr. D. M. Smith, who has been in Jacksonville for some time having his eyes treated, arrived home the first of the week. Judge and Mrs. W. E. Smith spent the weekend with Mrs. Smith’s sister at Sanford, motoring over in their car. Mr. and Mrs. Phil Robinson, of Inverness, spent Saturday and Sunday in Ocala, the guests of the former's parents. Mr. and Mrs. Harry Borland and son, James, and Ted Drake, have been spending this week at Daytona Beach, motoring over last Saturday. Mrs. Lawrence Kelly and her baby son came down last Saturday from Gainesville to spend some time with Mrs. Kelly's parents, Mr. and Mrs. J. R. Moorhead. Miss Catharine Livingston, who has been spending some time with relatives in South Carolina, expects to leave soon for the mountains of North Carolina to spend the summer. Dr. and Mrs. J. M. Gross, of Miami, have gone to New Hampton, Mo., to visit the latter's parents, after which they will visit Dr. Gross' former home in Virginia. They will be away a month. Mr. and Mrs. L. A. Gabel are very happy over the arrival of a little daughter at their home in this city. They have four small sons and little Miss Mary Catharine is their first little girl. Mrs. Frank Howse, Mrs. O. B. Howse, Mrs. M. H. Stovall and Mrs. J. B. Koonce have gone to Daytona Beach to spend the summer. They have taken a cottage on the beach until September. Judge Richard McConathy, owing to business engagements, did not go to Kentucky last week with Mrs. McConathy, but will Join her in a few weeks, after which they will go to California for the summer. Lieut. C. H. Lloyd arrived home Sunday afternoon from Atlanta for a two weeks' leave. He will return to Camp Gordon on the 17th and will then receive his discharge from the army, after which he will return home for good. James and Bob Chace, who attend school at Mercersburg, Pa., will go from there to Roanoke, Va., to join their mother and younger brothers for a visit at the home of their aunt, Mrs. S. E. Powell, before returning home. Miss Eloise Henry, who will arrive home in a few days from the Woman's College at Tallahassee, will be accompanied home by a number of her young college friends, and they will enjoy a big house party together at the Henry home at Lake Weir. Miss Mamie Ruth Sanders, of Dunnellon, who was graduated from the Dunnellon high school on the 17th, will attend the Woman's college at Tallahassee next year. Miss Sanders is a very clever young girl and for her graduation composed the class poem and the class song. She also sings and plays very sweetly and took a prominent part in all the musical programs of the school. The friends here of Mr. J. B. Koonce, who is engaged in Y. M. C. A work in France, will be interested in learning of a recent automobile accident that he was in. With a number of other men, he was in a car going over the Marne river. In some way, the driver lost control of the machine, which ran off the bridge and turned a somersault into twelve feet of water. Very luckily, and still more miraculously, all of the occupants of the car except the chauffeur escaped entirely unhurt, and he was only slightly cut. Mr. Koonce recently spent his vacation most enjoyably in Italy. Theatre Party for Miss Mary Harris— Wednesday night Mr. and Mrs. Richard Stroud entertained at a theater party at the Temple theater in compliment to their guest, Miss Mary Harris of Fayetteville, N.C., who is leaving for her home after a delightful visit of two weeks in Ocala. Mr. and Mrs. Stroud's guests met at the Temple theater sitting room and saw George Walsh in the second show. After the picture, this jolly party went to the home of Mrs. Stroud’s parents, Mr. and Mrs. J. C. Jackson, where they danced for an hour or more on the big veranda, the music being played by the victrola. Assisted by her mother and her sisters, Mrs. Macintosh and Miss Margaret Jackson, the hostess served punch, intimes and cake during the evening. Those enjoying this pleasant social affair were Misses Mary Harris, Grace Palmer, Lucien Gissendaner, Sidney Perry, Louisa and Loureen Spencer, Theo and Virginia Beckham, Catherine Henry, and Messrs. Mack Taylor, Christie, Otis Green, Joe Borden, Laurie Izlar, Linn Sanders, Welsh and Dick Dewey and Wellie Meffert. Miss Christine Close Hostess at Dancing Party Tuesday night at the home of her aunt, Mrs. E. H. Martin, on Lake Weir avenue, Miss Christine Close was the hostess at a most enjoyable dancing party. For several hours these young school boys and girls had the very best time imaginable, dancing to the strains of the Victrola. Late in the evening, Mrs. Martin served ice cream, cake, and punch to her niece's guests. She was assisted by Mrs. DeHon, Mrs. L. N. Green, and Miss Mabel Meffert. The following were those present at this affair: Misses Christine Close, Janet and Jessie Rae Culverhouse, Mildred Crosby, Mildred Bullock, Jess DeHon, Clifton Sexton, Frances Lummus, Margaret Gerig, Sidney Cullen, Marian Meffert, Mary Lane, Louise and Mary Kincaid of Newberry, and Wilfred Harold, J. W. Crosby, James Knight, G. L. and J. M. Meffert, Lindsey Troxler, Marion Lummus, and Lynn Hollinrake. For Mrs. Paul Simmons, Mrs. Leverett Futch entertained Friday afternoon with a charming bridge party at her beautiful home on Fort King avenue in honor of her sister-in-law, Mrs. Paul Simmons, who has recently moved to Ocala from Wetter, Ga. Oleanders and ferns were used to advantage in decorating the entire lower floor of the residence. Pink and white roses being artistically arranged in baskets and gardenias on the screen veranda where The guests of honor were presented with a "Book of Luncheons," and the highest score was made by Mrs. J. D. Robertson who was awarded a cut glass bud vase. At six o’clock a delicious salad course and sweet course was served. Those invited were Mrs. Paul Simmons, Mrs. Harry Walters, Mrs. K. G. Peek, Mrs. H. M. Hampton, Mrs. Anna Holder, Mrs. F. H. Logan, Mrs. Frederick Hocker, Mrs. John Taylor, Mrs. Carson Lee, of Washington, D.C., Mrs. H. A. Watterman, Mrs. Ernest Crook, Mrs. Dr. Shepherd, Mrs. Raiford Simmons, Miss Alice Bullock. Miss Mamie Taylor, Miss Marguerite Porter, Miss Mary McDowell. Rev. Herndon Accepts Call to Winston-Salem Rev. J. R. Herndon, who for the past few years has been the pastor of the First Presbyterian church in this city, has recently been tendered a call to the Presbyterian church at Winston-Salem, N.C. Mr. Herndon, after due consideration, has decided to accept this call, and he and his family will move to their new home at an early date. Mr. Herndon, during the duration of the war, has been an indefatigable worker in many of the war activities and has made a great many friends not only in his own church but all over the city and the county, and they all wish for him a very happy and prosperous pastorate in the new field in which he is so soon to enter. Mr. Leslie Anderson expects to leave at an early date for Kentucky, in which state he expects to make his future home. Mr. Anderson has accepted a very splendid position with one of the biggest tobacco firms in Kentucky, which state is the longer home of both his father and family. Mother. Piano Recital Wednesday Night Night Wednesday night, at her home on Oklawaha avenue, the music pupils of Miss Dorothy Lancaster gave their annual piano recital. There were quite a number of the parents and friends of these young pianists present to hear their concert, and the playing of Miss Lancaster's pupils was most enjoyable. She has quite a large class and their playing Wednesday night showed evidence of very careful and excellent training. The educational committee of the Florida division, U. D. C., composed of Mrs. H. H. McCreary, of Gainesville, chairman, and the following ladies, Mrs. J. M. Alvarez of St. Petersburg, Mrs. J. C. Blocker of St. Petersburg, Mrs. Rita DeMuro Dame of Inverness, Mrs. E. L. Carney of Ocala, Mrs. Frank Brown of Jacksonville, and Mrs. L. B. Saunders of Brooksville, after due consideration of the several applications for the scholarship maintained at the Florida State College for Women at Tallahassee by the division, awarded said scholarship to Miss Frances Ramage of Leesburg. The scholarship at the University of Florida was awarded at the recent state U. D. C. convention held in Jacksonville to Mr. Horace Wilson of Starke. Both of these young people will enter the respective colleges in September and are entitled to the full four-year course if they meet the requirements of the organization. Mr. John McLin, another splendid young man, who was living in Ocala when he answered his country's Call by joining the navy, arrived in Ocala last Friday afternoon for a few days' visit to see his many friends here long enough to say "howdy" to them. During his service in the navy, he was on a number of boats and crossed the ocean several times. He was very popular with many Ocala friends, all of whom were rejoiced to see him again well and in the best of spirits and ready to begin all over again his business career so suddenly interrupted by Uncle Sam's call to arms of all his young men. Mrs. R. S. Hall and youngest son, Harrington, left Wednesday afternoon for Asheville, N.C., to join Mr. Hall and Messrs. Earl, Robert, and William Hall, who left last Saturday in their car for Asheville. Mr. Hall has purchased a pretty home in Asheville for his family and they expect in the future to spend the greater part of their time their Ocala friends will be very sorry to learn that they do not expect to again make this city their home, but hope to make frequent visits here. Mr. Sam Barco came up Wednesday from Miami and returned today to his home in that city, accompanied by his mother, Mrs. J. M. Barco, who has been ill in the hospital in this city for some time. Mrs. Barco is very much better and she expects to be in Miami for some time with her son and family. Mr. Sam R. Pooser, traveling out of Orlando for the Ambrosia Products Co., is in the city for a short visit to his mother and brother and other relatives. Mr. Pooser, who is a former Ocala boy, is doing well and is looking well, and his Ocala friends were delighted to see him. . While here, Mr. Pooser booked a number of nice orders for his firm. Mr. and Mrs. T. S. Trantham announce the birth of a baby girl on Wednesday. Mrs. Trantham was formerly Miss Josephine Bullock, and this little girl is the second daughter of Mr. and Mrs. Trantham. Mrs. Robert Markley and Miss Sue Barco left this afternoon for their home in Clearwater after a short visit here, having come up to see their mother, Mrs. J. M. Barco, before her departure for Miami. Capt. J. D. Brown, who is stationed at Camp Humphrey, near Washington, D.C., arrived home on Wednesday for a short visit with his parents and sister, Mr. and Mrs. Jake Brown and Miss Helen Brown. Mr. and Mrs. G. A. Douglass and children of Arch Creek, near Miami, are expected in Ocala tomorrow for a visit to their relatives in his city. They will make the trip in their car. Mr. R. A. Burford, Jr., after a short visit in Ocala and Orlando, returned Wednesday afternoon to his home in Atlanta. News of the Week. Weddings, Parties, Club Meetings, Etc.
| 42,989 |
https://stackoverflow.com/questions/57264441
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019 |
Stack Exchange
|
Qiang Zhang, gregory, https://stackoverflow.com/users/2057509, https://stackoverflow.com/users/6834925
|
Danish
|
Spoken
| 346 | 731 |
python: interpolation for a closed circle
I want to interpolate a circle by using some given points. I refer to the scipy.interpolate, and use the interpolate.splprep to interpolate my circle. However, the interpolated circle is weird, and it is different from the standard circle:
And my code is:
import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate
t = np.arange(0, 1.25, 0.25)
x = np.sin(2*np.pi*t)
y = np.cos(2*np.pi*t)
tck,u = interpolate.splprep([x,y], s=0)
unew = np.arange(0, 1.01, 0.01)
out = interpolate.splev(unew, tck)
plt.figure()
plt.plot(x, y, 'x', out[0], out[1])
plt.axis([-1.05, 1.05, -1.05, 1.05])
plt.title('Spline of parametrically-defined curve')
plt.show()
Of course, if I give more points, such as: t = np.arange(0, 1.25, 0.1), the circle would look better. But, I still can not accept this result. Is there any better interpolation method to interpolate the circle?
Fisrt Edit:
@gregory mention that scipy.interpolate.CubicSpline can be used to interpolate a circle. And the example code is:
theta = 2 * np.pi * np.linspace(0, 1, 5)
y = np.c_[np.cos(theta), np.sin(theta)]
cs = CubicSpline(theta, y, bc_type='periodic')
However, it use the theta and [cos, sin] to represent the circle, but what if we do not know the formulation about the curve? What if we only have (x, y)? Can we parametrically represent the curve, like interpolate.splprep?
scipy.interpolate.CubicSpline seems to do the trick: https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.CubicSpline.html
Thank you for the kindly answer. However, I am a little confused about how to use this function, and I have edit my question. Could you please have a look at the edit question?
The cubic spline will fit a third degree polynomial to your data, supposedly a circle, and your points are far appart pi/2 radians, so you should consider using more closely spaced data or otherwise, interpolating with polar coordinates. This way your data will be constant radius, turning interpolation unneeded. If you add some noise or pertubation to your data, option bc_type='periodic' just works fine with polar coordinates, as @gregory stated.
Matplotlib (plt) Polar Coordinates:
plt.axes(projection = 'polar')
Coordinates will be angles in radians and a function of (or measured) radius at the corresponding angles.
| 22,488 |
https://github.com/afck/casper-node/blob/master/node/src/components/api_server/event.rs
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
casper-node
|
afck
|
Rust
|
Code
| 119 | 403 |
use std::fmt::{self, Display, Formatter};
use derive_more::From;
use crate::{
effect::{requests::ApiRequest, Responder},
types::{Deploy, DeployHash},
};
#[derive(Debug, From)]
pub enum Event {
#[from]
ApiRequest(ApiRequest),
GetDeployResult {
hash: DeployHash,
result: Box<Option<Deploy>>,
main_responder: Responder<Option<Deploy>>,
},
ListDeploysResult {
result: Vec<DeployHash>,
main_responder: Responder<Vec<DeployHash>>,
},
GetMetricsResult {
text: Option<String>,
main_responder: Responder<Option<String>>,
},
}
impl Display for Event {
fn fmt(&self, formatter: &mut Formatter) -> fmt::Result {
match self {
Event::ApiRequest(request) => write!(formatter, "{}", request),
Event::GetDeployResult { hash, result, .. } => {
write!(formatter, "GetDeployResult for {}: {:?}", hash, result)
}
Event::ListDeploysResult { result, .. } => {
write!(formatter, "ListDeployResult: {:?}", result)
}
Event::GetMetricsResult { text, .. } => match text {
Some(tx) => write!(formatter, "GetMetricsResult ({} bytes)", tx.len()),
None => write!(formatter, "GetMetricsResult (failed)"),
},
}
}
}
| 775 |
https://github.com/jrharmon/roslyn/blob/master/src/EditorFeatures/Test2/Rename/RenameEngineTests.CSharpConflicts.vb
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,021 |
roslyn
|
jrharmon
|
Visual Basic
|
Code
| 7,255 | 30,012 |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Rename.ConflictEngine
Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename
Partial Public Class RenameEngineTest
Public Class CSharpConflicts
<Fact(Skip:="799977")>
<WorkItem(773543)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub BreakingRenameWithRollBacksInsideLambdas_2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
class C
{
class D { public int x = 1; }
Action<int> a = (int [|$$x|]) => // Rename x to y
{
var {|Conflict:y|} = new D();
Console.{|Conflict:WriteLine|}({|Conflict:x|});
};
}
</Document>
</Project>
</Workspace>, renameTo:="y")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(773534)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub BreakingRenameWithRollBacksInsideLambdas_1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
struct y
{
public int x;
}
class C
{
class D { public int x = 1; }
Action<y> a = (y [|$$x|]) => // Rename x to y
{ var {|Conflict:y|} = new D();
Console.WriteLine(y.x);
Console.WriteLine({|Conflict:x|}.{|Conflict:x|});
};
}
</Document>
</Project>
</Workspace>, renameTo:="y")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(773435)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub BreakingRenameWithInvocationOnDelegateInstance()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class C
{
public delegate void Foo(int x);
public void FooMeth(int x)
{
}
public void Sub()
{
Foo {|Conflict:x|} = new Foo(FooMeth);
int [|$$z|] = 1; // Rename z to x
int y = {|Conflict:z|};
x({|Conflict:z|}); // Renamed to x(x)
}
}
</Document>
</Project>
</Workspace>, renameTo:="x")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(782020)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub BreakingRenameWithSameClassInOneNamespace()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using K = N.{|Conflict:C|}; // No change, show compiler error
namespace N
{
class {|Conflict:C|}
{
}
}
namespace N
{
class {|Conflict:$$D|} // Rename D to C
{
}
}
</Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub BreakingRenameCrossAssembly()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="Visual Basic" CommonReferences="true" AssemblyName="VBAssembly1">
<ProjectReference>CSAssembly1</ProjectReference>
<Document>
Class D
Public Sub Boo()
Dim x = New {|Conflict:$$C|}()
End Sub
End Class
</Document>
</Project>
<Project Language="C#" CommonReferences="true" AssemblyName="CSAssembly1">
<Document>
public class [|C|]
{
public static void Foo()
{
}
}
</Document>
</Project>
</Workspace>, renameTo:="D")
result.AssertLabeledSpansAre("Conflict", "D", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInsideLambdaBody()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
class Proaasgram
{
object z;
public void masdain(string[] args)
{
Func<int, bool> sx = (int [|$$x|]) =>
{
{|resolve:z|} = null;
if (true)
{
bool y = foo([|x|]);
}
return true;
};
}
public bool foo(int bar)
{
return true;
}
public bool foo(object bar)
{
return true;
}
}
</Document>
</Project>
</Workspace>, renameTo:="z")
result.AssertLabeledSpansAre("resolve", "this.z = null;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<WorkItem(1069237)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInsideExpressionBodiedLambda()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
using System.Collections.Generic;
using System.Linq;
public class B
{
public readonly int z = 0;
public int X(int [|$$x|]) => {|direct:x|} + {|resolve:z|};
}
</Document>
</Project>
</Workspace>, renameTo:="z")
result.AssertLabeledSpansAre("direct", "z + this.z", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve", "z + this.z", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<WorkItem(1069237)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInsideExpressionBodiedLambda2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
using System.Collections.Generic;
using System.Linq;
public class B
{
public static readonly int z = 0;
public int X(int [|$$x|]) => {|direct:x|} + {|resolve:z|};
}
</Document>
</Project>
</Workspace>, renameTo:="z")
result.AssertLabeledSpansAre("direct", "z + B.z", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve", "z + B.z", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInsideMethodBody()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
using System.Collections.Generic;
using System.Linq;
public class B
{
public readonly int z = 0;
public int Y(int [|$$y|])
{
[|y|] = 0;
return {|resolve:z|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="z")
result.AssertLabeledSpansAre("resolve", "return this.z;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInInvocationWithLambda_1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolve1:Outer|}(y => {|resolve2:Inner|}(x => {
var z = 5;
z.{|resolve0:Ex|}();
x.Ex();
}, y), 0);
}
}
static class E
{
public static void [|$$Ex|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="L")
Dim outputResult = <code>Outer((string y) => Inner(x => {</code>.Value + vbCrLf +
<code> var z = 5;</code>.Value + vbCrLf +
<code>z.L();</code>.Value + vbCrLf +
<code>x.Ex();</code>.Value + vbCrLf +
<code> }, y), 0);</code>.Value
result.AssertLabeledSpansAre("resolve0", outputResult, RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve1", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolve2", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInInvocationWithLambda_2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolve1:Outer|}((y) => {|resolve2:Inner|}((x) => {
var z = 5;
z.{|resolve0:Ex|}();
x.Ex();
}, y), 0);
}
}
static class E
{
public static void [|$$Ex|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="L")
Dim outputResult = <code>Outer((string y) => Inner((x) => {</code>.Value + vbCrLf +
<code> var z = 5;</code>.Value + vbCrLf +
<code>z.L();</code>.Value + vbCrLf +
<code>x.Ex();</code>.Value + vbCrLf +
<code> }, y), 0);</code>.Value
result.AssertLabeledSpansAre("resolve0", outputResult, RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve1", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolve2", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInInvocationWithLambda_3()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolve1:Outer|}((y) => {|resolve2:Inner|}((x) => {
var z = 5;
z.{|resolve0:D|}();
x.Ex();
}, y), 0);
}
}
static class E
{
public static void [|$$D|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="Ex")
Dim outputResult = <code>Outer((y) => Inner((string x) => {</code>.Value + vbCrLf +
<code> var z = 5;</code>.Value + vbCrLf +
<code>z.Ex();</code>.Value + vbCrLf +
<code>x.Ex();</code>.Value + vbCrLf +
<code> }, y), 0);</code>.Value
result.AssertLabeledSpansAre("resolve0", outputResult, RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve1", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolve2", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInInvocationWithLambda_4()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolve1:Outer|}(y => {|resolve2:Inner|}(x => {
var z = 5;
z.{|resolve0:D|}();
x.Ex();
}, y), 0);
}
}
static class E
{
public static void [|$$D|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="Ex")
Dim outputResult = <code>Outer(y => Inner((string x) => {</code>.Value + vbCrLf +
<code> var z = 5;</code>.Value + vbCrLf +
<code>z.Ex();</code>.Value + vbCrLf +
<code>x.Ex();</code>.Value + vbCrLf +
<code> }, y), 0);</code>.Value
result.AssertLabeledSpansAre("resolve0", outputResult, RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve1", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolve2", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictResolutionInInvocationWithLambda_5()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolve1:Outer|}(y => {|resolve2:Inner|}(x => {
var z = 5;
z.{|resolve0:D|}();
x.Ex();
}, y), 0);
}
}
static class E
{
public static void [|$$D|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="Ex")
Dim outputResult = <code>Outer(y => Inner((string x) => {</code>.Value + vbCrLf +
<code> var z = 5;</code>.Value + vbCrLf +
<code> z.Ex();</code>.Value + vbCrLf +
<code> x.Ex();</code>.Value + vbCrLf +
<code> }, y), 0);</code>.Value
result.AssertLabeledSpansAre("resolve0", outputResult, RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolve1", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolve2", outputResult, RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ParameterConflictingWithInstanceField1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Foo
{
int foo;
void Blah(int [|$$bar|])
{
{|stmt2:foo|} = {|stmt1:bar|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="foo")
result.AssertLabeledSpansAre("stmt1", "this.foo = foo;", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("stmt2", "this.foo = foo;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ParameterConflictingWithInstanceField2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Foo
{
int foo;
void Blah(int [|$$bar|])
{
{|resolved:foo|} = 23;
{|resolved2:foo|} = {|stmt1:bar|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="foo")
result.AssertLabeledSpansAre("stmt1", "this.foo = foo;", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("resolved", "this.foo = 23;", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolved2", "this.foo = foo;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ParameterConflictingWithInstanceFieldRenamingToKeyword()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Foo
{
int @if;
void Blah(int {|Escape1:$$bar|})
{
{|Resolve:@if|} = 23;
{|Resolve2:@if|} = {|Escape2:bar|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="if")
result.AssertLabeledSpansAre("Resolve", "this.@if = 23;", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpecialSpansAre("Escape1", "@if", RelatedLocationType.NoConflict)
result.AssertLabeledSpecialSpansAre("Escape2", "this.@if = @if;", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("Resolve2", "this.@if = @if;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ParameterConflictingWithStaticField()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Foo
{
static int foo;
void Blah(int [|$$bar|])
{
{|Resolved:foo|} = 23;
{|Resolved2:foo|} = {|stmt1:bar|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="foo")
result.AssertLabeledSpansAre("Resolved", "Foo.foo = 23;", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("stmt1", "Foo.foo = foo;", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("Resolved2", "Foo.foo = foo;", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ParameterConflictingWithFieldFromAnotherLanguage()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<ProjectReference>VisualBasicAssembly</ProjectReference>
<Document>
class Foo : FooBase
{
void Blah(int bar)
{
{|Resolve:$$foo|} = bar;
}
}
</Document>
</Project>
<Project Language="Visual Basic" AssemblyName="VisualBasicAssembly" CommonReferences="true">
<Document>
Public Class FooBase
Protected [|foo|] As Integer
End Class
</Document>
</Project>
</Workspace>, renameTo:="bar")
result.AssertLabeledSpansAre("Resolve", "base.bar = bar;", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact>
<WorkItem(539745)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictingTypeDeclaration()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true" LanguageVersion="CSharp6">
<Document>< { }
}
]]></Document>
</Project>
</Workspace>, renameTo:="Goo")
result.AssertLabeledSpansAre("ReplacementCInt", "C<int>.Goo(i, i);", RelatedLocationType.ResolvedReferenceConflict)
result.AssertLabeledSpansAre("ReplacementCString", "C<string>.Goo(s, s);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingToInvalidIdentifier()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|Invalid:$$Foo|}
{
{|Invalid:Foo|} foo;
}
</Document>
</Project>
</Workspace>, renameTo:="`")
result.AssertLabeledSpansAre("Invalid", "`", RelatedLocationType.UnresolvedConflict)
result.AssertReplacementTextInvalid()
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingToInvalidIdentifier2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|Invalid:$$Foo|}
{
{|Invalid:Foo|} foo;
}
</Document>
</Project>
</Workspace>,
renameTo:="!")
result.AssertLabeledSpansAre("Invalid", "!", RelatedLocationType.UnresolvedConflict)
result.AssertReplacementTextInvalid()
End Using
End Sub
<Fact>
<WorkItem(539636)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingToConflictingMethodInvocation()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Program
{
static void F()
{
}
class Blah
{
void [|$$M|]()
{
{|Replacement:F|}();
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="F")
result.AssertLabeledSpansAre("Replacement", "Program.F();", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingToConflictingMethodInvocation2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Program
{
void M()
{
int foo;
{|Replacement:Bar|}();
}
void [|$$Bar|]()
{
}
}
</Document>
</Project>
</Workspace>, renameTo:="foo")
result.AssertLabeledSpansAre("Replacement", "this.foo();", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact>
<WorkItem(539733)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingTypeToConflictingMemberAndParentTypeName()
' It's important that we see conflicts for both simultaneously, so I do a single
' test for both cases.
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|Conflict:Foo|}
{
class [|$$Bar|]
{
int {|Conflict:Foo|};
}
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(539733)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingMemberToNameConflictingWithParent()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|Conflict:Foo|}
{
int [|$$Bar|];
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(540199)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenamingMemberToInvalidIdentifierName()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|Invalid:$$Foo|}
{
}
</Document>
</Project>
</Workspace>, renameTo:="Foo@")
result.AssertReplacementTextInvalid()
result.AssertLabeledSpansAre("Invalid", "Foo@", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MinimalQualificationOfBaseType1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class X
{
protected class [|$$A|] { }
}
class Y : X
{
private class C : {|Resolve:A|} { }
private class B { }
}
</Document>
</Project>
</Workspace>, renameTo:="B")
result.AssertLabeledSpansAre("Resolve", "X.B", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MinimalQualificationOfBaseType2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class X
{
protected class A { }
}
class Y : X
{
private class C : {|Resolve:A|} { }
private class [|$$B|] { }
}
</Document>
</Project>
</Workspace>, renameTo:="A")
result.AssertLabeledSpansAre("Resolve", "X.A", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542322)>
Public Sub EscapeIfKeywordWhenDoingTypeNameQualification()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
static class Foo
{
static void {|Escape:Method$$|}() { }
static void Test()
{
int @if;
{|Replacement:Method|}();
}
}
</Document>
</Project>
</Workspace>, renameTo:="if")
result.AssertLabeledSpecialSpansAre("Escape", "@if", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("Replacement", "Foo.@if();", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542322)>
Public Sub EscapeUnboundGenericTypesInTypeOfContext()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int>;
class A<T>
{
public class B<S> { }
}
class Program
{
static void Main()
{
var type = typeof({|stmt1:C|}.B<>);
}
class [|D$$|] { }
}
]]></Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("stmt1", "var type = typeof(A<>.B<>);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542322)>
Public Sub EscapeUnboundGenericTypesInTypeOfContext2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int>;
class A<T>
{
public class B<S>
{
public class E { }
}
}
class Program
{
static void Main()
{
var type = typeof({|Replacement:C|}.B<>.E);
}
class [|D$$|] { }
}
]]></Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("Replacement", "var type = typeof(A<>.B<>.E);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542322)>
Public Sub EscapeUnboundGenericTypesInTypeOfContext3()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int>;
class A<T>
{
public class B<S>
{
public class E { }
}
}
class Program
{
static void Main()
{
var type = typeof({|Replacement:C|}.B<>.E);
}
class [|D$$|]
{
public class B<S>
{
public class E { }
}
}
}
]]></Document>
</Project>
</Workspace>,
renameTo:="C")
result.AssertLabeledSpansAre("Replacement", "var type = typeof(A<>.B<>.E);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542651)>
Public Sub ReplaceAliasWithGenericTypeThatIncludesArrays()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int[]>;
class A<T> { }
class Program
{
{|Resolve:C|} x;
class [|D$$|] { }
}
]]></Document>
</Project>
</Workspace>,
renameTo:="C")
result.AssertLabeledSpansAre("Resolve", "A<int[]>", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542651)>
Public Sub ReplaceAliasWithGenericTypeThatIncludesPointers()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int*>;
class A<T> { }
class Program
{
{|Resolve:C|} x;
class [|D$$|] { }
}
]]></Document>
</Project>
</Workspace>,
renameTo:="C")
result.AssertLabeledSpansAre("Resolve", "A<int*>", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542651)>
Public Sub ReplaceAliasWithNestedGenericType()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using C = A<int>.E;
class A<T>
{
public class E { }
}
class B
{
{|Resolve:C|} x;
class [|D$$|] { } // Rename D to C
}
]]></Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("Resolve", "A<int>.E", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact()>
<WorkItem(535068)>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(542103)>
Public Sub RewriteConflictingExtensionMethodCallSite()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class C
{
C Bar(int tag)
{
return this.{|stmt1:Foo|}(1).{|stmt1:Foo|}(2);
}
}
static class E
{
public static C [|$$Foo|](this C x, int tag) { return new C(); }
}
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("stmt1", "return E.Bar(E.Bar(this,1),2);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(535068)>
<WorkItem(528902)>
<WorkItem(645152)>
Public Sub RewriteConflictingExtensionMethodCallSiteWithReturnTypeChange()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class C
{
void [|$$Bar|](int tag)
{
this.{|Resolved:Foo|}(1).{|Resolved:Foo|}(2);
}
}
static class E
{
public static C Foo(this C x, int tag) { return x; }
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Resolved", "E.Foo(E.Foo(this,1),2);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact(Skip:="535068")>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(535068)>
<WorkItem(542821)>
Public Sub RewriteConflictingExtensionMethodCallSiteRequiringTypeArguments()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
class C
{
void [|$$Bar|]<T>()
{
{|Replacement:this.{|Resolved:Foo|}<int>()|};
}
}
static class E
{
public static void Foo<T>(this C x) { }
}
]]></Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Resolved", type:=RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("Replacement", "E.Foo<int>(this)")
End Using
End Sub
<Fact(Skip:="535068")>
<Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(535068)>
<WorkItem(542103)>
Public Sub RewriteConflictingExtensionMethodCallSiteInferredTypeArguments()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
class C
{
void [|$$Bar|]<T>(T y)
{
{|Replacement:this.{|Resolved:Foo|}(42)|};
}
}
static class E
{
public static void Foo<T>(this C x, T y) { }
}
]]></Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Resolved", type:=RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("Replacement", "E.Foo(this, 42)")
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub DoNotDetectQueryContinuationNamedTheSame()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System.Linq;
class C
{
static void Main(string[] args)
{
var temp = from {|stmt1:$$x|} in "abc"
select {|stmt1:x|} into y
select y;
}
}
</Document>
</Project>
</Workspace>, renameTo:="y")
' This may feel strange, but the "into" effectively splits scopes
' into two. There are no errors here.
result.AssertLabeledSpansAre("stmt1", "y", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(543027)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameHandlesUsingWithoutDeclaration()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System.IO;
class Program
{
public static void Main(string[] args)
{
Stream {|stmt1:$$s|} = new Stream();
using ({|stmt2:s|})
{
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="x")
result.AssertLabeledSpansAre("stmt1", "x", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("stmt2", "x", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(543027)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameHandlesForWithoutDeclaration()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Program
{
public static void Main(string[] args)
{
int {|stmt1:$$i|};
for ({|stmt2:i|} = 0; ; )
{
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="x")
result.AssertLabeledSpansAre("stmt1", "x", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("stmt2", "x", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAttributeSuffix()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
[{|Special:Something|}()]
class Foo{ }
public class [|$$SomethingAttribute|] : Attribute
{
public [|SomethingAttribute|]() { }
}
</Document>
</Project>
</Workspace>, renameTo:="SpecialAttribute")
result.AssertLabeledSpansAre("Special", "Special", type:=RelatedLocationType.NoConflict)
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAddAttributeSuffix()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
[[|Something|]()]
class Foo{ }
public class [|$$SomethingAttribute|] : Attribute
{
public [|SomethingAttribute|]() { }
}
</Document>
</Project>
</Workspace>, renameTo:="Special")
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameKeepAttributeSuffixOnUsages()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
[[|SomethingAttribute|]()]
class Foo { }
public class [|$$SomethingAttribute|] : Attribute
{
public [|SomethingAttribute|] { }
}
</Document>
</Project>
</Workspace>, renameTo:="FooAttribute")
End Using
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameToConflictWithValue()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
class C
{
public int TestProperty
{
set
{
int [|$$x|];
[|x|] = {|Conflict:value|};
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="value")
' result.AssertLabeledSpansAre("stmt1", "value", RelatedLocationType.NoConflict)
' result.AssertLabeledSpansAre("stmt2", "value", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("Conflict", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact>
<WorkItem(543482)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAttributeWithConflictingUse()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
class C
{
[Main()]
static void test() { }
}
class MainAttribute : System.Attribute
{
static void Main() { }
}
class [|$$Main|] : System.Attribute
{
}
</Document>
</Project>
</Workspace>, renameTo:="FooAttribute")
End Using
End Sub
<Fact>
<WorkItem(542649)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub QualifyTypeWithGlobalWhenConflicting()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
class A { }
class B
{
{|Resolve:A|} x;
class [|$$C|] { }
}
</Document>
</Project>
</Workspace>, renameTo:="A")
result.AssertLabeledSpansAre("Resolve", "global::A", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
End Class
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameSymbolConflictWithLocals()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class C
{
void Foo()
{
{ int x; }
{|Stmt1:Bar|}();
}
void [|$$Bar|]() { }
}
</Document>
</Project>
</Workspace>, renameTo:="x")
result.AssertLabeledSpansAre("Stmt1", "this.x();", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(528738)>
Public Sub RenameAliasToCatchConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using [|$$A|] = X.Something;
using {|Conflict:B|} = X.SomethingElse;
namespace X
{
class Something { }
class SomethingElse { }
}
</Document>
</Project>
</Workspace>, renameTo:="B")
result.AssertLabeledSpansAre("Conflict", "B", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAttributeToCreateConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
[{|Escape:Main|}]
class Some
{
}
class SpecialAttribute : Attribute
{
}
class [|$$Main|] : Attribute // Rename 'Main' to 'Special'
{
}
</Document>
</Project>
</Workspace>, renameTo:="Special")
result.AssertLabeledSpecialSpansAre("Escape", "@Special", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameUsingToKeyword()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
using [|$$S|] = System.Collections;
[A]
class A : {|Resolve:Attribute|}
{
}
class B
{
[|S|].ArrayList a;
}
</Document>
</Project>
</Workspace>, renameTo:="Attribute")
result.AssertLabeledSpansAre("Resolve", "System.Attribute", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(16809)>
<WorkItem(535066)>
Public Sub RenameInNestedClasses()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
namespace N
{
class A<T>
{
public virtual void Foo(T x) { }
class B<S> : A<B<S>>
{
class [|$$C|]<U> : B<{|Resolve1:C|}<U>> // Rename C to A
{
public override void Foo({|Resolve2:A|}<{|Resolve3:A|}<T>.B<S>>.B<{|Resolve4:A|}<T>.B<S>.{|Resolve1:C|}<U>> x) { }
}
}
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="A")
result.AssertLabeledSpansAre("Resolve1", "A", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("Resolve2", "N.A<N.A<T>.B<S>>", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("Resolve3", "N.A<N.A<T>.B<S>>", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("Resolve4", "N.A<T>", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact()>
<WorkItem(535066)>
<WorkItem(531433)>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameAndEscapeContextualKeywordsInCSharp()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System.Linq;
class [|t$$o|] // Rename 'to' to 'from'
{
object q = from x in "" select new {|resolved:to|}();
}
</Document>
</Project>
</Workspace>, renameTo:="from")
result.AssertLabeledSpansAre("resolved", "@from", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(522774)>
Public Sub RenameCrefWithConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
using F = N;
namespace N
{
interface I
{
void Foo();
}
}
class C
{
class E : {|Resolve:F|}.I
{
/// <summary>
/// This is a function <see cref="{|Resolve:F|}.I.Foo"/>
/// </summary>
public void Foo() { }
}
class [|$$K|]
{
}
}
]]></Document>
</Project>
</Workspace>, renameTo:="F")
result.AssertLabeledSpansAre("Resolve", "N", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameClassContainingAlias()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
using C = A<int,int>;
class A<T,U>
{
public class B<S>
{
}
}
class [|$$B|]
{
{|Resolve:C|}.B<int> cb;
}
]]></Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("Resolve", "A<int, int>", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameFunctionWithOverloadConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
class Bar
{
void Foo(int x) { }
void [|Boo|](object x) { }
void Some()
{
Foo(1);
{|Resolve:$$Boo|}(1);
}
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("Resolve", "Foo((object)1);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameActionWithFunctionConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
class Program
{
static void doer(int x)
{
Console.WriteLine("Hey");
}
static void Main(string[] args)
{
Action<int> {|stmt1:$$action|} = delegate(int x) { Console.WriteLine(x); }; // Rename action to doer
{|stmt2:doer|}(3);
}
}
]]></Document>
</Project>
</Workspace>, renameTo:="doer")
result.AssertLabeledSpansAre("stmt1", "doer", RelatedLocationType.NoConflict)
result.AssertLabeledSpansAre("stmt2", "Program.doer(3);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(552522)>
Public Sub RenameFunctionNameToDelegateTypeConflict1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class A
{
static void [|Foo|]() { }
class B
{
delegate void Del();
void Boo()
{
Del d = new Del({|Stmt1:Foo|});
{|Stmt2:$$Foo|}();
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="Del")
result.AssertLabeledSpansAre("Stmt1", "Del d = new Del(A.Del);", RelatedLocationType.ResolvedReferenceConflict)
result.AssertLabeledSpansAre("Stmt2", "Del", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(552520)>
Public Sub RenameFunctionNameToDelegateTypeConflict2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class A
{
static void [|$$Foo|]() { }
class B
{
delegate void Del();
void Bar() { }
void Boo()
{
Del d = new Del({|Stmt1:Foo|});
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("Stmt1", "Del d = new Del(A.Bar);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameFunctionNameToDelegateTypeConflict3()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class A
{
delegate void Del(Del a);
static void [|Bar|](Del a) { }
class B
{
Del Boo = new Del({|decl1:Bar|});
void Foo()
{
Boo({|Stmt2:Bar|});
{|Stmt3:$$Bar|}(Boo);
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="Boo")
result.AssertLabeledSpansAre("decl1", "new Del(A.Boo)", RelatedLocationType.ResolvedReferenceConflict)
result.AssertLabeledSpansAre("Stmt2", "Boo(A.Boo);", RelatedLocationType.ResolvedReferenceConflict)
result.AssertLabeledSpansAre("Stmt3", "A.Boo(Boo);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(552520)>
Public Sub RenameFunctionNameToDelegateTypeConflict4()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class A
{
static void Foo(int i) { }
static void Foo(string s) { }
class B
{
delegate void Del(string s);
void [|$$Bar|](string s) { }
void Boo()
{
Del d = new Del({|stmt1:Foo|});
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Del d = new Del(A.Foo);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(552722)>
Public Sub RenameActionTypeConflict()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
class A
{
static Action<int> [|$$Baz|] = (int x) => { };
class B
{
Action<int> Bar = (int x) => { };
void Foo()
{
{|Stmt1:Baz|}(3);
}
}
}]]>
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("Stmt1", "A.Bar(3);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
<WorkItem(552722)>
Public Sub RenameConflictAttribute1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
[{|escape:Bar|}]
class Bar : System.Attribute
{ }
class [|$$FooAttribute|] : System.Attribute
{ }
]]>
</Document>
</Project>
</Workspace>, renameTo:="BarAttribute")
result.AssertLabeledSpansAre("escape", "@Bar", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameConflictAttribute2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
[{|Resolve:B|}]
class [|$$BAttribute|] : Attribute
{
}
class AAttributeAttribute : Attribute
{
}
</Document>
</Project>
</Workspace>, renameTo:="AAttribute")
result.AssertLabeledSpecialSpansAre("Resolve", "A", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<WorkItem(576573)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug576573_ConflictAttributeWithNamespace()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
namespace X
{
class BAttribute
: System.Attribute
{ }
namespace Y.[|$$Z|]
{
[{|Resolve:B|}]
class Foo { }
}
}
</Document>
</Project>
</Workspace>, renameTo:="BAttribute")
result.AssertLabeledSpansAre("Resolve", "X.B", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(579602)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub Bug579602_RenameFunctionWithDynamicParameter()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class A
{
class B
{
public void [|Boo|](int d) { } //Line 1
}
void Bar()
{
B b = new B();
dynamic d = 1.5f;
b.{|stmt1:$$Boo|}(d); //Line 2 Rename Boo to Foo
}
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo", RelatedLocationType.NoConflict)
End Using
End Sub
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub IdentifyConflictsWithVar()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
class [|$$vor|]
{
static void Main(string[] args)
{
{|conflict:var|} x = 23;
}
}
</Document>
</Project>
</Workspace>, renameTo:="v\u0061r")
result.AssertLabeledSpansAre("conflict", "var", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(633180)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub CS_DetectOverLoadResolutionChangesInEnclosingInvocations()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
static class C
{
static void Ex(this string x) { }
static void Outer(Action<string> x, object y) { Console.WriteLine(1); }
static void Outer(Action<int> x, int y) { Console.WriteLine(2); }
static void Inner(Action<string> x, string y) { }
static void Inner(Action<string> x, int y) { }
static void Inner(Action<int> x, int y) { }
static void Main()
{
{|resolved:Outer|}(y => {|resolved:Inner|}(x => x.Ex(), y), 0);
}
}
static class E
{
public static void [|$$Ex|](this int x) { } // Rename Ex to Foo
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("resolved", "Outer((string y) => Inner(x => x.Ex(), y), 0);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(635622)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ExpandingDynamicAddsObjectCast()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class C
{
static void [|$$Foo|](int x, Action y) { } // Rename Foo to Bar
static void Bar(dynamic x, Action y) { }
static void Main()
{
{|resolve:Bar|}(1, Console.WriteLine);
}
}
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("resolve", "Bar((object)1, Console.WriteLine);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(673562)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameNamespaceConflictsAndResolves()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
namespace N
{
class C
{
{|resolve:N|}.C x;
/// <see cref="{|resolve:N|}.C"/>
void Sub()
{ }
}
namespace [|$$K|] // Rename K to N
{
class C
{ }
}
}
</Document>
</Project>
</Workspace>, renameTo:="N")
result.AssertLabeledSpansAre("resolve", "global::N", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(673667)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameUnnecessaryExpansion()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
namespace N
{
using K = {|stmt1:N|}.C;
class C
{
}
class [|$$D|] // Rename D to N
{
class C
{
[|D|] x;
}
}
}
</Document>
</Project>
</Workspace>, renameTo:="N")
result.AssertLabeledSpansAre("stmt1", "global::N", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(768910)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameInCrefPreservesWhitespaceTrivia()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
<![CDATA[
public class A
{
public class B
{
public class C
{
}
/// <summary>
/// <see cref=" {|Resolve:D|}"/>
/// </summary>
public static void [|$$foo|]() // Rename foo to D
{
}
}
public class D
{
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="D")
result.AssertLabeledSpansAre("Resolve", "A.D", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
#Region "Type Argument Expand/Reduce for Generic Method Calls - 639136"
<WorkItem(639136)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class C
{
static void F<T>(Func<int, T> x) { }
static void [|$$B|](Func<int, int> x) { } // Rename Bar to Foo
static void Main()
{
{|stmt1:F|}(a => a);
}
}
</Document>
</Project>
</Workspace>, renameTo:="F")
result.AssertLabeledSpansAre("stmt1", "F<int>(a => a);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<WorkItem(725934)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_This()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">
using System;
class C
{
void TestMethod()
{
int x = 1;
Func<int> y = delegate { return {|stmt1:Foo|}(x); };
}
int Foo<T>(T x) { return 1; }
int [|$$Bar|](int x) { return 1; }
}
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "return Foo<int>(x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_Nested()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
public static void [|$$Foo|]<T>(T x) { }
public static void Bar(int x) { }
class D
{
void Bar<T>(T x) { }
void Bar(int x) { }
void sub()
{
{|stmt1:Foo|}(1);
}
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("stmt1", "C.Bar<int>(1);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact(), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_ReferenceType()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; } // Rename Bar to Foo
public void Test()
{
string one = "1";
{|stmt1:Foo|}(one);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<string>(one);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_ConstructedTypeArgumentNonGenericContainer()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename Bar to Foo
public void Sub()
{
D<int> x = new D<int>();
{|stmt1:Foo|}(x);
}
}
class D<T>
{}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<D<int>>(x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_SameTypeParameter()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System.Linq.Expressions;
class C
{
public static int Foo<T>(T x) { return 1; }
public static int [|$$Bar|]<T>(Expression<Func<int, T>> x) { return 1; }
Expression<Func<int, int>> x = (y) => Foo(1);
public void sub()
{
{|stmt1:Foo|}(x);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<Expression<Func<int, int>>>(x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_ArrayTypeParameter()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
public void [|$$Foo|]<S>(S x) { }
public void Bar(int[] x) { }
public void Sub()
{
var x = new int[] { 1, 2, 3 };
{|stmt1:Foo|}(x);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Bar")
result.AssertLabeledSpansAre("stmt1", "Bar<int[]>(x);", RelatedLocationType.ResolvedReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_MultiDArrayTypeParameter()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { }
public void Sub()
{
var x = new int[,] { { 1, 2 }, { 2, 3 } };
{|stmt1:Foo|}(x);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<int[,]>(x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_UsedAsArgument()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; }
public void Sub(int x) { }
public void Test()
{
Sub({|stmt1:Foo|}(1));
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Sub(Foo<int>(1));", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_UsedInConstructorInitialization()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; }
public void Test()
{
C c = new C({|stmt1:Foo|}(1));
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "C c = new C(Foo<int>(1));", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_CalledOnObject()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; } // Rename Bar to Foo
public void Test()
{
C c = new C();
c.{|stmt1:Foo|}(1);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "c.Foo<int>(1);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_UsedInGenericDelegate()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; } // Rename Bar to Foo
public void Test()
{
FooDel<int> foodel = new FooDel<int>({|stmt1:Foo|});
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "FooDel<int> foodel = new FooDel<int>(Foo<int>);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_UsedInNonGenericDelegate()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< {return 1; } // Rename Bar to Foo
public void Test()
{
FooDel foodel = new FooDel({|stmt1:Foo|});
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "FooDel foodel = new FooDel(Foo<int>);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_MultipleTypeParameters()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
public void Foo<T, S>(T x, S y) { }
public void [|$$Bar|]<U, P>(U[] x, P y) { }
public void Sub()
{
int[] x;
{|stmt1:Foo|}(x, new C());
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<int[], C>(x, new C());", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<WorkItem(730781)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_ConflictInDerived()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { }
public void Sub()
{
{|stmt1:Foo|}(1);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "base.Foo(1);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(728653)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameGenericInvocationWithDynamicArgument()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename Bar to F
public void sub()
{
dynamic x = 1;
{|stmt1:F|}(x);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="F")
result.AssertLabeledSpansAre("stmt1", "F", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(728646)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ExpandInvocationInStaticMemberAccess()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename Bar to Foo
public void Sub()
{
}
}
class D
{
public void Sub()
{
C.{|stmt1:Foo|}(1);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "C.Foo<int>(1);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(728628)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RecursiveTypeParameterExpansionFail()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename Bar to Foo
public void Sub()
{
C<int> x = new C<int>();
{|stmt1:Foo|}(x);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<C<int>>(x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(728575)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameCrefWithProperBracesForTypeInferenceAdditionToMethod()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename to Zoo
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Zoo")
result.AssertLabeledSpansAre("cref1", "C.Zoo{T}", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_GenericBase()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< { } // Rename Bar to Foo
}
class D : C<int>
{
public void Test()
{
{|stmt1:Foo|}(1);
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<int>(1);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(639136)>
<Fact(Skip:="Story 736967"), Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub GenericNameTypeInferenceExpansion_InErrorCode()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< // Rename Bar to Foo
{
x = 1;
}
public void Test()
{
int y = 1;
int x;
{|stmt1:Foo|}(y, x); // error in code, but Foo is bound to Foo<T>
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="Foo")
result.AssertLabeledSpansAre("stmt1", "Foo<int>(y, x);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
#End Region
<WorkItem(1016652)>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub CS_ConflictBetweenTypeNamesInTypeConstraintSyntax()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document><![CDATA[
using System.Collections.Generic;
// rename INamespaceSymbol to ISymbol
public interface {|unresolved1:$$INamespaceSymbol|} { }
public interface {|DeclConflict:ISymbol|} { }
public interface IReferenceFinder { }
internal abstract partial class AbstractReferenceFinder<TSymbol> : IReferenceFinder
where TSymbol : {|unresolved2:INamespaceSymbol|}
{
}]]></Document>
</Project>
</Workspace>, renameTo:="ISymbol")
result.AssertLabeledSpansAre("DeclConflict", type:=RelatedLocationType.UnresolvedConflict)
result.AssertLabeledSpansAre("unresolved1", type:=RelatedLocationType.UnresolvedConflict)
result.AssertLabeledSpansAre("unresolved2", type:=RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(1193, "https://github.com/dotnet/roslyn/issues/1193")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MemberQualificationInNameOfUsesTypeName_StaticReferencingInstance()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
static void F(int [|$$z|])
{
string x = nameof({|ref:zoo|});
}
int zoo;
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="zoo")
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1193, "https://github.com/dotnet/roslyn/issues/1193")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MemberQualificationInNameOfUsesTypeName_InstanceReferencingStatic()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
void F(int [|$$z|])
{
string x = nameof({|ref:zoo|});
}
static int zoo;
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="zoo")
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1193, "https://github.com/dotnet/roslyn/issues/1193")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MemberQualificationInNameOfUsesTypeName_InstanceReferencingInstance()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
void F(int [|$$z|])
{
string x = nameof({|ref:zoo|});
}
int zoo;
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="zoo")
result.AssertLabeledSpansAre("ref", "string x = nameof(C.zoo);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1193, "https://github.com/dotnet/roslyn/issues/1193")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub MemberQualificationInNameOfMethodInvocationUsesThisDot()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class C
{
int zoo;
void F(int [|$$z|])
{
string x = nameof({|ref:zoo|});
}
void nameof(int x) { }
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="zoo")
result.AssertLabeledSpansAre("ref", "string x = nameof(this.zoo);", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1053, "https://github.com/dotnet/roslyn/issues/1053")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameComplexifiesInLambdaBodyExpression()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< => 5;
static int N(long b) => 5;
System.Func<int, int> a = d => {|resolved:N|}(1);
System.Func<int> b = () => {|resolved:N|}(1);
}]]>
</Document>
</Project>
</Workspace>, renameTo:="N")
result.AssertLabeledSpansAre("resolved", "N((long)1)", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1053, "https://github.com/dotnet/roslyn/issues/1053")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub RenameComplexifiesInExpressionBodiedMembers()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs">< => {|resolved2:N|}(0);
int N(long b) => [|M|](0);
int P => {|resolved2:N|}(0);
}]]>
</Document>
</Project>
</Workspace>, renameTo:="N")
result.AssertLabeledSpansAre("resolved1", "new C().N((long)0)", RelatedLocationType.ResolvedNonReferenceConflict)
result.AssertLabeledSpansAre("resolved2", "N((long)0)", RelatedLocationType.ResolvedNonReferenceConflict)
End Using
End Sub
<WorkItem(1027506)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestConflictBetweenClassAndInterface1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class {|conflict:C|} { }
interface [|$$I|] { }
]]>
</Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("conflict", "C", RelatedLocationType.UnresolvableConflict)
End Using
End Sub
<WorkItem(1027506)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestConflictBetweenClassAndInterface2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class [|$$C|] { }
interface {|conflict:I|} { }
]]>
</Document>
</Project>
</Workspace>, renameTo:="I")
result.AssertLabeledSpansAre("conflict", "I", RelatedLocationType.UnresolvableConflict)
End Using
End Sub
<WorkItem(1027506)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestConflictBetweenClassAndNamespace1()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class {|conflict:$$C|} { }
namespace N { }
]]>
</Document>
</Project>
</Workspace>, renameTo:="N")
result.AssertLabeledSpansAre("conflict", "N", RelatedLocationType.UnresolvableConflict)
End Using
End Sub
<WorkItem(1027506)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestConflictBetweenClassAndNamespace2()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
class {|conflict:C|} { }
namespace [|$$N|] { }
]]>
</Document>
</Project>
</Workspace>, renameTo:="C")
result.AssertLabeledSpansAre("conflict", "C", RelatedLocationType.UnresolvableConflict)
End Using
End Sub
<WorkItem(1027506)>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestNoConflictBetweenTwoNamespaces()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
namespace [|$$N1|][ { }
namespace N2 { }
]]>
</Document>
</Project>
</Workspace>, renameTo:="N2")
End Using
End Sub
<WorkItem(1729, "https://github.com/dotnet/roslyn/issues/1729")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestNoConflictWithParametersOrLocalsOfDelegateType()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
class C
{
void M1(Action [|callback$$|])
{
[|callback|]();
}
void M2(Func<bool> callback)
{
callback();
}
void M3()
{
Action callback = () => { };
callback();
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="callback2")
End Using
End Sub
<WorkItem(1729, "https://github.com/dotnet/roslyn/issues/1729")>
<Fact, Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub TestConflictWithLocalsOfDelegateTypeWhenBindingChangesToNonDelegateLocal()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test.cs"><![CDATA[
using System;
class C
{
void M()
{
int [|x$$|] = 7; // Rename x to a. "a()" will bind to the first definition of a.
Action {|conflict:a|} = () => { };
{|conflict:a|}();
}
}
]]>
</Document>
</Project>
</Workspace>, renameTo:="a")
result.AssertLabeledSpansAre("conflict", "a", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(446, "https://github.com/dotnet/roslyn/issues/446")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub NoCrashOrConflictOnRenameWithNameOfInAttribute()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class C
{
static void [|T|]$$(int x) { }
[System.Obsolete(nameof(Test))]
static void Test() { }
}
</Document>
</Project>
</Workspace>, renameTo:="Test")
End Using
End Sub
<WorkItem(1195, "https://github.com/dotnet/roslyn/issues/1195")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictWhenNameOfReferenceDoesNotBindToAnyOriginalSymbols()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class C
{
void Test()
{
int [|T$$|];
var x = nameof({|conflict:Test|});
}
}
</Document>
</Project>
</Workspace>, renameTo:="Test")
result.AssertLabeledSpansAre("conflict", "Test", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(1195, "https://github.com/dotnet/roslyn/issues/1195")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub NoConflictWhenNameOfReferenceDoesNotBindToSomeOriginalSymbols()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Program
{
void [|$$M|](int x) { }
void M() { var x = nameof(M); }
}
</Document>
</Project>
</Workspace>, renameTo:="X")
End Using
End Sub
<WorkItem(1195, "https://github.com/dotnet/roslyn/issues/1195")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub NoConflictWhenNameOfReferenceBindsToSymbolForFirstTime()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class Program
{
void [|X$$|]() { }
void M() { var x = nameof(T); }
}
</Document>
</Project>
</Workspace>, renameTo:="T")
End Using
End Sub
<WorkItem(1195, "https://github.com/dotnet/roslyn/issues/1195")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub ConflictWhenNameOfReferenceChangesBindingFromMetadataToSource()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
using System;
class Program
{
static void M()
{
var [|Consol$$|] = 7;
var x = nameof({|conflict:Console|});
}
}
</Document>
</Project>
</Workspace>, renameTo:="Console")
result.AssertLabeledSpansAre("conflict", "Console", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(1031, "https://github.com/dotnet/roslyn/issues/1031")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub InvalidNamesDoNotCauseCrash_IntroduceQualifiedName()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|conflict:C$$|} { }
</Document>
</Project>
</Workspace>, renameTo:="C.D")
result.AssertReplacementTextInvalid()
result.AssertLabeledSpansAre("conflict", "C.D", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(1031, "https://github.com/dotnet/roslyn/issues/1031")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub InvalidNamesDoNotCauseCrash_AccidentallyPasteLotsOfCode()
Dim renameTo = "class C { public void M() { for (int i = 0; i < 10; i++) { System.Console.Writeline(""This is a test""); } } }"
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document>
class {|conflict:C$$|} { }
</Document>
</Project>
</Workspace>, renameTo)
result.AssertReplacementTextInvalid()
result.AssertLabeledSpansAre("conflict", renameTo, RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(2352, "https://github.com/dotnet/roslyn/issues/2352")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub DeclarationConflictInFileWithoutReferences_SameProject()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test1.cs">
class Program
{
internal void [|A$$|]() { }
internal void {|conflict:B|}() { }
}
</Document>
<Document FilePath="Test2.cs">
class Program2
{
void M()
{
Program p = null;
p.{|conflict:A|}();
p.{|conflict:B|}();
}
}
</Document>
</Project>
</Workspace>, renameTo:="B")
result.AssertLabeledSpansAre("conflict", "B", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(2352, "https://github.com/dotnet/roslyn/issues/2352")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub DeclarationConflictInFileWithoutReferences_DifferentProjects()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true" AssemblyName="CSAssembly1">
<Document FilePath="Test1.cs">
public class Program
{
public void [|A$$|]() { }
public void {|conflict:B|}() { }
}
</Document>
</Project>
<Project Language="C#" CommonReferences="true" AssemblyName="CSAssembly2">
<ProjectReference>CSAssembly1</ProjectReference>
<Document FilePath="Test2.cs">
class Program2
{
void M()
{
Program p = null;
p.{|conflict:A|}();
p.{|conflict:B|}();
}
}
</Document>
</Project>
</Workspace>, renameTo:="B")
result.AssertLabeledSpansAre("conflict", "B", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
<WorkItem(2352, "https://github.com/dotnet/roslyn/issues/2352")>
<WorkItem(3303, "https://github.com/dotnet/roslyn/issues/3303")>
<Fact>
<Trait(Traits.Feature, Traits.Features.Rename)>
Public Sub DeclarationConflictInFileWithoutReferences_PartialTypes()
Using result = RenameEngineResult.Create(
<Workspace>
<Project Language="C#" CommonReferences="true">
<Document FilePath="Test1.cs">
partial class C
{
private static void [|$$M|]()
{
{|conflict:M|}();
}
}
</Document>
<Document FilePath="Test2.cs">
partial class C
{
private static void {|conflict:Method|}()
{
}
}
</Document>
</Project>
</Workspace>, renameTo:="Method")
result.AssertLabeledSpansAre("conflict", "Method", RelatedLocationType.UnresolvedConflict)
End Using
End Sub
End Class
End Namespace
| 22,168 |
https://github.com/yjxsfyqzysxdysz/test/blob/master/cli/verify2/src/components/untils/Loading/Loading.vue
|
Github Open Source
|
Open Source
|
MIT
| 2,023 |
test
|
yjxsfyqzysxdysz
|
Vue
|
Code
| 354 | 1,313 |
<template>
<div class="loadingBox">
<ul class="g-circles" :style="scaleFun">
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
<li :style="{ backgroundColor: colorType === 'blueColor' ? '#007dff' : '#fff' }" class="circle"></li>
</ul>
</div>
</template>
<script>
export default {
name: 'loadingBox',
props: {
loadingZoom: {
type: String,
default: '1'
},
colorType: {
type: String,
default: 'whiteColor'
}
},
computed: {
scaleFun() {
return `transform: scale(${this.loadingZoom}, ${this.loadingZoom})`
}
}
}
</script>
<style lang="scss" scoped>
.loadingBox {
ul,
li {
margin: 0;
padding: 0;
list-style-type: none;
}
ul {
position: relative;
transform: scale(0.9) translate(7px, 7px);
-ms-transform: scale(0.9) translate(7px, 7px);
-webkit-transform: scale(0.9) translate(7px, 7px);
}
li {
width: 14px;
height: 14px;
line-height: 20px;
text-align: center;
margin-top: 5px;
margin-left: -20px;
border-radius: 50%;
position: absolute;
left: 50%;
opacity: 0.1;
animation: opacity 1.2s linear infinite;
-ms-animation: opacity 1.2s linear infinite;
-webkit-animation: opacity 1.2s linear infinite;
&:nth-of-type(1) {
transform: rotate(-36deg);
transform-origin: 20px 40px;
animation-delay: -0.1s;
}
&:nth-of-type(2) {
transform: rotate(-72deg);
transform-origin: 20px 40px;
animation-delay: -0.2s;
}
&:nth-of-type(3) {
transform: rotate(-108deg);
transform-origin: 20px 40px;
animation-delay: -0.3s;
}
&:nth-of-type(4) {
transform: rotate(-144deg);
transform-origin: 20px 40px;
animation-delay: -0.4s;
}
&:nth-of-type(5) {
transform: rotate(-180deg);
transform-origin: 20px 40px;
animation-delay: -0.5s;
}
&:nth-of-type(6) {
transform: rotate(144deg);
transform-origin: 20px 40px;
animation-delay: -0.6s;
}
&:nth-of-type(7) {
transform: rotate(108deg);
transform-origin: 20px 40px;
animation-delay: -0.7s;
}
&:nth-of-type(8) {
transform: rotate(72deg);
transform-origin: 20px 40px;
animation-delay: -0.8s;
}
&:nth-of-type(9) {
transform: rotate(36deg);
transform-origin: 20px 40px;
animation-delay: -0.9s;
}
&:nth-of-type(10) {
transform: rotate(0deg);
transform-origin: 20px 40px;
animation-delay: -1s;
}
}
@keyframes opacity {
3% {
opacity: 1;
}
75% {
width: 8px;
height: 8px;
opacity: 0.6;
}
}
}
</style>
| 43,151 |
https://ja.wikipedia.org/wiki/%E3%83%89%E3%83%AB%E3%83%BC%E3%82%A2%E5%B8%9D%E5%9B%BD
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
ドルーア帝国
|
https://ja.wikipedia.org/w/index.php?title=ドルーア帝国&action=history
|
Japanese
|
Spoken
| 113 | 5,330 |
ドルーア帝国(Durhua Empire)は、任天堂(開発・インテリジェントシステムズ)のコンピュータゲーム『ファイアーエムブレム』のシリーズ作品中『暗黒竜と光の剣』(リメイク版『新・暗黒竜と光の剣』も含む)『紋章の謎』『アカネイア戦記』に登場する架空の国家。
概要
ドルーア帝国とは、アカネイア大陸南部ドルーア地方において地竜族の末裔メディウス(詳細は後述)が二度にわたり建国した竜人族マムクートの帝国である。マケドニアの密林地帯、古くよりマムクートが住まう地に建国された。
歴史
第一次ドルーア帝国
第一次ドルーア帝国はアカネイア暦490年に建国された。
当時のドルーア帝国の実態がどのようなものだったかは定かではない。数少ない文献には「彼らは自らの武器も作れない未熟な種族であったが人語を話す事ができ、自分達の長はメディウスであり自分達の国はドルーアであると語った」と記されている。ドルーア帝国は人間の国との国交や関係は持たなかった。また、アカネイア聖王国からは「未開の蛮族」と蔑まされていた。
アカネイア暦493年、アカネイア聖王国へ侵攻し滅亡に追い込む(第一次ドルーア戦争)。その後も侵攻を続けアカネイア大陸のほぼ全ての地を掌握する。しかし、アリティア地方出身の英雄、アンリ一世が七日七晩に及ぶ戦いの末メディウスを討伐し、アカネイア暦498年に帝国は滅亡。以後、マムクート達は大陸各地へ散って行く。
第二次ドルーア帝国
アンリのメディウス討伐から100年後のアカネイア暦597年、カダインの暗黒司祭・ガーネフの手でメディウスが復活。
アカネイア暦598年、旧領土内(マケドニア北部)に第二次ドルーア帝国が再興され、アカネイアを再び滅亡に追い込むが(暗黒戦争)、マルス率いる連合軍によって再びメディウスは討伐され、アカネイア暦605年、帝国は二度目の滅亡を迎えた。
国旗
ゲーム中には一切登場せず、設定画のみ存在する。フィールド(背景)は水色。コンパートメントは寄り合わせた黒と白の縄、およびそこから吹き上がる炎。その上に下向きの三日月が乗る。この炎はマムクートの力を、月は人知れず暮らしてきたドルーアの民族性をそれぞれ象徴している。月の内部に城壁、背景にドルーアの地理を象徴するかのような密林の木々が描かれる。エスカッシャンはきわめて小さく、外側が赤、内側が橙色。図柄は描かれておらず、剣と一組となっている。これを左向きの緑色の竜がサポーターとして支える。サポーターが中心に配置され、竜がもっとも目立つ図案である。
主な地名
王城であるドルーア城は魔竜族ゼムセルが守護しており、王城付近には、死者を復活させることが出来る伝説の杖「オーム」が納められた復活の神殿がある。
マケドニア王国との国境には野生の飛竜が飛びかい蛮族が支配する未開の地、飛竜の谷があり、谷を越えると、かつてメディウスが神竜ナーガに命じられて守護していた場所、そしてナーガによって地竜族が封印されたといわれる古代竜族の遺跡、竜の祭壇が存在する。
地竜族と魔竜族
地竜族
国王である暗黒竜メディウスが属する地竜族は、竜族の中でも神竜に次いで強大な力を持っていた。
「闇のブレス」という強大な攻撃力と戦う者の力を半減させる力を持ち(全ての竜に有効なファルシオンや霧のブレスも例外でなく、特効でダメージが増大してから半減される。新・暗黒竜と新・紋章では攻撃力半減の設定はなくなっている)、他の竜族を遥かに超える生命力を持つ種族だが、地竜達は長老達の意見に従わずにその大半が封印されたため、現存する数は稀少である。
王族だったメディウスただ一人が部族の方針に逆らい、竜石を使いマムクートとなった。それ以外の数千の地竜は封印の祭壇に封じられている。
暗黒竜
地竜が力を蓄え変体した姿。長い首と顎、巨大な体躯と翼をもち、竜と称するにふさわしい威容を持つ。闇のブレスの威力と効力も引き続き健在。本来眠りについたメディウスがこの姿に変わるのには100年はかかるはずであったが、ガーネフは4人の穢れなき高貴な女性を生贄として捧げることにより、短期間でメディウスを変体させた。作中でこの姿で登場するのはメディウスのみ。
魔竜族
ドルーアの将モーゼスやゼムセルをはじめとした多くのドルーア兵が属する魔竜族は、アカネイアに棲息するマムクートの中でも高い魔法防御力を有する種族である。
その大半は暗黒竜メディウスに付き従っている。物語中では残虐な言動が目立つが、元々はナーガやメディウスの盟友として1000年前の大戦争で人間に味方した一族であり、マムクートに対する迫害で人間を敵視するようになった。
野生化した者たちは主に竜の祭壇付近に生息している。凶暴さでは他の竜と比べても一線を画している。
人物
皇帝
メディウス (Mediuth)
声:茶風林(ヒーローズ)
クラスはマムクート。『暗黒竜』、『紋章』に登場する。
『暗黒竜』、『紋章』に登場する、ドルーア帝国の王で最強の地竜。まだ変体していない頃から「暗黒竜(もしくは暗黒地竜)」の異名で人々から恐れられていた。『暗黒竜』の旧設定では何処からか現れて神竜族を壊滅させ、世界征服を夢見た存在となっている。暗黒戦争という名称も彼の異名から来たものである。
同系列の作品においては、マルスにとって最大の敵というポジションに位置している。
古代における竜族の衰退
繁栄していた竜族に種としての終わりの時が来た時、一部の竜族は存続のためその身を人間の姿へと変えた。
しかし、竜族であることに誇りを持っていた多くの竜族達は、姿を変えることを嫌い、理性を失っていった。
やがて、理性を失い暴走した竜族達が人間を襲い始め、人間は窮地に立たされた。そのため、人間を哀れんだ神竜族の王ナーガは人間たちを救うための戦いを始めた。戦いは壮絶を極めたが、ついにはナーガ率いる神竜族が勝利し、地竜達をドルーアの地底深くに封印し、地竜達へ施した封印が解けないように封印の盾を、人間達に自らの牙から切り出した神剣ファルシオンを、それぞれ残してラーマン神殿へと残した。
この時、地竜族の王族でありながら、部族に逆らい、神竜王ナーガの下で唯一人間に味方した地竜がメディウスである。彼はその後も、ナーガの言いつけを守り、守り部として地竜を封じ込めた竜の祭壇を長く守っていた。
第一次ドルーア戦争時
しかし、人間たちが力をつけるに従って横暴になり、弱体化してマムクートとなってただ平和に暮らしているだけの竜族たちまでも蔑視し虐げるようになってくると、メディウスはその人間達の裏切りに激怒した。
元々は悪逆な性格ではなく、人間に好意的(むしろ献身的とさえ言ってよい)であり、ナーガ同様、人間の救世主となったほどのメディウスだったが、人間のその余りの身勝手さによって、祭壇を荒らされたばかりか同胞を皆殺しにされるという悲劇に見舞われた事から怒りと絶望に苛まれ、ドルーアの地にマムクート達を集めると、増長し自分達を平然と虐げる人間を滅ぼすためにドルーア帝国を興し、その皇帝となった。その攻撃は凄まじく、メディウスが垣間見た悲劇の最大の元凶であり、怨敵でもあったアカネイア聖王国は滅亡し、人間達は奴隷のように虐げられた。
しかし、やがて人々の希望であったアカネイア王家の生き残りであるアルテミス王女が、アリティアの地で生き延びて隠れていることが分かると、ドルーア帝国の行いの真実すら知らない人間達は反撃の狼煙を上げる。再び解放戦争がドルーアと人間との間で起き、最期には神剣ファルシオンを手にした英雄アンリによってメディウスは倒されるのである。
暗黒戦争時
だが、絶大な生命力を誇る地竜は完全には滅びないためメディウスは100年の時を経て甦った。それでも完全に力を取り戻すことは容易ではなく、マフーを持つ悪の司祭ガーネフと手を組まざるを得なかった。
メディウスは再びドルーア帝国を興すと、グルニア、マケドニア両王国を併合、アカネイア聖王国を滅ぼし大陸中を侵攻するが、最期はアンリの子孫であるアリティア王国の王子マルスによって倒される。これが俗に言う「暗黒戦争」、『暗黒竜と光の剣』『紋章の謎』第1部・暗黒戦争編のクライマックスである。
英雄戦争時
暗黒戦争後、メディウスはガーネフの野望により4人のシスター(ニーナ、エリス、レナ、マリア)の生命力で変体し、暗黒竜となって再び復活を果たす。しかし封印の盾と(ゲームの進め方次第では手に入れないこともあり、かつクリアも可能。)ファルシオンを手にしたマルスの手によって再び倒されてしまう。この再復活にまつわる部分が、紋章の謎第2部における英雄戦争である。
したがって、これら3つの戦争における最大の元凶は人間であり、かつてマムクートとなった竜族が人間を守っていたのにもかかわらず、その恩を忘れて力を失った竜族に危害を加えるようになった事柄と、封印の盾を破壊した(その張本人こそが初代アカネイア王国建国者アドラ1世であり、アカネイア王家にまつわる呪われた悲劇もここから始まるとされる)ことが原因だと言っても良いであろう。
本編以外のメディウス
メディウスは、小説版ではラーマン神殿の神官長という官職に就いていた。だが、当時盗賊であったアドラ1世とその部下達に騙された挙句に、部下である神官達を皆殺しにされてしまう。
島田ひろかず版の『ファイアーエムブレム』の漫画では額が弱点という設定になっている。
鈴木銀一郎が『聖戦の系譜』の外伝作品として小説「最後の地竜族」(ファミ通ゲーム文庫刊、ISBN 9784893668899)を執筆している。
『幻影異聞録♯FE』では、メインストーリーのラストボスとして登場。
将軍
ショーゼン (Shozen)
クラスはマムクート。『暗黒竜』、『紋章』(第1部)、『新・暗黒竜』に登場する。
アカネイア王国の首都パレスの侵攻の任命を受けたドルーアの将軍、パレス周辺を守っていた。火竜族。
いわゆる猪武者であり、誘き寄せればどこまでも追ってゆくという、やや守将には向かない性格。
モーゼス (Moses)
クラスはマムクート。『暗黒竜』、『紋章』(第1部)、『新・暗黒竜』に登場する。
魔竜王バジリスクといわれるマムクートで、アリティア城に立てこもるメディウスの第1の僕。
アリティアを占領し、罪の無い(ただし、人間に迫害を受けていた彼らにとっては人間=悪人の先入観があったわけだが。)人々を殺害した残虐な人物でもある。
マルスの姉であるアリティア王女エリスをガーネフに差し出し、マルスとエリスの母であるリーザを殺害した。占領下のアリティア城を支配する。
ゼムセル (Zemsel)
クラスはマムクート。『暗黒竜』、『紋章』(第1部)、『新・暗黒竜』に登場する。
ドルーア城城門を固めていた魔竜。ゼムセルは、元々自分達が暮らしていた世界を奪われたのは人間達のせいだと考えている。
『暗黒竜』では台詞が無い。『紋章』ではドルーアの大地を犯した人間に対して怨みを持っている。
グーベル (Gubel)
クラスはジェネラル。『アカネイア戦記』に登場する。
暗黒戦争初期、侵攻の任を受けアカネイア王城パレスを占領したドルーアの将軍。
ブルザーク (Bulzark)
クラスはマムクート。『アカネイア戦記』に登場する。
メディウスからニーナ捕縛の勅命を受け、カミュ一行を追う火竜の将軍。
冷静な人物でカミュがドルーアを裏切ることを予測しており、ドルーアの精鋭部隊、そして金により味方に付けた近隣の山賊を率いてニーナを捕えようとした。
カミュに「降伏するなら捕えた部下たち共々寛大な処置で接する」としたが、実際は見せしめとして囚人用の檻に押し込めて馬車で引かせ、ドルーアまで着るものも食べるものも死なない程度にしか与えなかった。その後はドルーアの地下牢にカミュを幽閉した。
なお、ブルザークを倒すことも可能で、その場合はメディウスが直々に出陣しカミュを捕らえることとなる。
脚注
参考文献
佐野真砂輝&わたなべ京著 ファイアーエムブレム 角川書店(株)
ゲームミュージック ファイアーエムブレム キャラクターテーマ集 日本コロムビア(株)
関連項目
ファイアーエムブレム
ファイアーエムブレム 暗黒竜と光の剣
ファイアーエムブレム 紋章の謎
BSファイアーエムブレム アカネイア戦記
ファイアーエムブレム 新・暗黒竜と光の剣
ファイアーエムブレム 新・紋章の謎 〜光と影の英雄〜
マムクート
ファイアーエムブレムTCG
ファイアーエムブレム (アカネイア大陸)
ファイアーエムブレムの地理
架空の帝国
| 32,097 |
https://github.com/Hugo-tuya/tuya-home-sdk-react-native/blob/master/ios/Pods/TuyaSmartBLEMeshKit/ios/TuyaSmartBLEMeshKit.framework/Versions/A/Headers/TYBleMeshDeviceModel.h
|
Github Open Source
|
Open Source
|
MIT
| 2,021 |
tuya-home-sdk-react-native
|
Hugo-tuya
|
C
|
Code
| 99 | 349 |
//
// TYBleMeshDeviceModel.h
// TuyaSmartBLEMeshKit
//
// Created by 黄凯 on 2019/3/21.
//
#import <Foundation/Foundation.h>
#import <TYBluetooth/TYBluetooth.h>
NS_ASSUME_NONNULL_BEGIN
@interface TYBleMeshDeviceModel : NSObject
/**
设备名称
*/
@property (nonatomic, strong) NSString *name;
/**
设备本身
*/
@property (nonatomic, strong) TYBLEPeripheral *device;
/**
地址
*/
@property (nonatomic, assign) uint32_t address;
/**
产品 id
*/
@property (nonatomic, strong) NSString *productId;
/**
设备版本号
*/
@property (nonatomic, strong) NSString *version;
/**
mac 地址
*/
@property (nonatomic, assign) uint32_t mac;
/**
设备 uuid
*/
@property (nonatomic, strong) NSString *uuid;
/**
设备大小类
*/
@property (nonatomic, assign) uint32_t type;
/**
融合类拓展信息
*/
@property (nonatomic, strong) NSString *vendorInfo;
@end
NS_ASSUME_NONNULL_END
| 23,611 |
US-201514605638-A_1
|
USPTO
|
Open Government
|
Public Domain
| 2,015 |
None
|
None
|
English
|
Spoken
| 7,531 | 8,895 |
Joining method
ABSTRACT
A joining method includes a butting process configured to butt a first metal member and a second metal member each having a front surface with various heights to form therebetween a butt portion with various heights; and a welding process configured to apply a friction stirring to the butt portion by a stirring pin of a rotation tool while only the stirring pin of the rotation tool contacts with the first metal member and the second metal member of the butt portion. The welding process may be configured to insert the stirring pin of the rotation tool into the butt portion from front surfaces of the first metal member and the second metal member and apply the friction stirring to the butt portion while an insertion depth of only the stirring pin is kept approximately constant.
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is based upon and claims the benefit of priority from Japanese Patent Applications No. 2014-012551 filed on Jan. 27, 2014, No. 2014-075625 filed on Apr. 1, 2014 and No. 2014-107666 filed on May 26, 2014; the entire contents of which are incorporated herein by reference.
BACKGROUND OF THE INVENTION
The invention relates to a joining method for welding metal members together by a friction stirring.
There is known a friction stir welding (FSW) for joining metal members together. The friction stir welding is a method in which a rotation tool is rotatingly traversed along the butt portion between metal members, to plastically fluidize a metal or metals along the butt portion with the frictional heat produced between the rotation tool and the metal members, thereby solid-phase joining the metal members together.
For example, Patent Document 1 (Japanese Patent Application Laid-open No. 2008-290092) discloses a technique that the friction stir welding is applied to the butt portion between metal members by use of a rotation tool including a shoulder section and a stirring pin protruding from the lower end surface of the shoulder section.
For example, Patent Document 2 (Japanese Patent Application Laid-open No. 2002-79383) discloses a technique that plate-shaped metal members are stacked on each other before a rotation tool is inserted from the surface of an upper-side metal member to apply a friction stirring to the lap portion.
In each friction stir welding according to the Patent documents 1 and 2, the friction stirring is performed by pushing the lower end surface of the shoulder section of the rotation tool into the surface of the metal member by a few millimeters.
When metal members each including an inclined surface or a curved surface are butted against each other, the resulting butt portion has various heights. When plate-shaped metal members each including an inclined surface or a curved surface are stacked on each other, the resulting lap portion has various heights. In these cases, if a conventional rotation tool is used to perform a friction stir welding, the shoulder section of the rotation tool contacts with the inclined surface or the like, which makes it difficult for the rotation tool to travel. Further, when the friction stir welding is applied to the butt portion or the lap portion with the inclined surface or the like, it is difficult for a stirring pin to be inserted into the butt portion or the lap portion at a deep position, thereby occasionally causing a joint defect.
On the other hand, there is another case in which the friction stir welding is applied to a lap portion which is formed by stacking a first metal member having a front surface with various heights on a second metal member with a constant plate thickness, with the first metal member's back surface in contact with the second metal member's front surface, and the friction stir welding is applied to the lap portion thus formed. In this case also, traveling of the rotation tool is obstructed by the changes in height of the front surface of the first metal member, a surface on the side from which the rotation tool is inserted, which causes a joint defect in the conventional rotation tool.
SUMMARY OF THE INVENTION
The invention is directed to a joining method which enhances operability of a rotation tool and secures joining of metal members even if the height of a butt portion or a lap portion varies.
The invention is directed to a joining method which enhances operability of a rotation tool and secures joining of metal members even if one of the metal members has a surface that varies in height, on the side from which the rotation tool is inserted.
A first aspect of the invention provides a joining method including: a butting process configured to butt a first metal member and a second metal member each having a front surface with various heights against each other to form therebetween a butt portion with various heights; and a welding process configured to apply a friction stirring to the butt portion by a stirring pin of a rotation tool while only the stirring pin of the rotation tool contacts with the first metal member and the second metal member of the butt portion.
In a conventional rotation tool, the shoulder section contacts with metal members during friction stirring. On the other hand, according to the joining method of the invention, there are not any cases in which a shoulder section of a rotation tool contacts with metal members. Therefore, while the stirring pin is inserted in the butt portion at a sufficient depth, a relative height position of the rotation tool is easily adjusted in accordance with the variation of the height of the butt portion. Further, the stirring pin is easily inserted at a deep position in the butt portion even if the butt portion has various heights, thereby securely joining the metal members together along the butt portion. In addition, while only the stirring pin contacts with the first and second metal members, the friction stirring is performed, which reduces a load exerted on the friction stir apparatus. Therefore, without exerting a large load on the friction stir apparatus, the butt portion is friction stirred at a deep position.
The welding process may be configured to insert the stirring pin of the rotation tool into the butt portion from front surfaces of the first metal member and the second metal member and apply the friction stirring to the butt portion while an insertion depth of the stirring pin is kept approximately constant. The welding process may be configured to insert the stirring pin of the rotation tool into the butt portion from front surfaces of the first metal member and the second metal member and apply the friction stirring to the butt portion while an insertion depth of the stirring pin is adjusted such that a depth of a plasticized region produced by the friction stirring is approximately constant.
According to the joining methods, a joining strength for each joint portion is kept approximately constant.
A second aspect of the invention provides a joining method including: a stacking process configured to stack a first metal member on a second metal member, with a back surface of the first metal member in contact with a front surface of the second metal member, to form a lap portion therebetween, the first metal member having various heights at least at the back surface thereof, the second metal member having various heights at least at the front surface thereof; and a welding process configured to insert a stirring pin of a rotation tool into the first metal member from a front surface of the first metal member toward the lap portion and apply a friction stirring to the lap portion by the stirring pin of the rotation tool while only the stirring pin of the rotation tool contacts with both the first metal member and the second metal member of the lap portion or the first metal member of the lap portion.
In a conventional rotation tool, the shoulder section contacts with a metal member during friction stirring. On the other hand, according to the joining method of the invention, there are not any cases in which a shoulder section of a rotation tool contacts with a metal member. Therefore, while the stirring pin is inserted at a sufficient depth, a relative height position of the rotation tool is easily adjusted in accordance with the variation of the height of the lap portion. The stirring pin is inserted to the lap portion disposed at a deep position, thereby securely joining the metal members together at their surfaces on the lap portion. In addition, the friction stirring is performed with only the stirring pin disposed in contact with both the first metal member and the second metal member or the first metal member, which reduces a load exerted on the friction stir apparatus. Thereby, without exerting a large load on the friction stir apparatus, the lap portion disposed at a deep position is frictionally stirred.
The welding process may be configured to apply the friction stirring to the lap portion while an insertion depth of the stirring pin is kept approximately constant.
The welding process may be configured to adjust an insertion depth of the stirring pin such that a depth of a plasticized region produced by the friction stirring is approximately constant.
According to the joining methods, a joining strength for each joint portion is kept approximately constant.
A third aspect of the invention provides a joining method including: a stacking process configured to stack a first metal member including a front surface with various heights on a second metal member with a back surface of the first metal member in contact with a front surface of the second metal member to form a lap portion therebetween; and a welding process configured to insert a stirring pin of a rotation tool into the first metal member from the front surface of the first metal member toward the lap portion and apply a friction stirring to the lap portion by the stirring pin of the rotation tool while only the stirring pin of the rotation tool contacts with both the first metal member and the second metal member of the lap portion or the first metal member of the lap portion.
In a conventional rotation tool, the shoulder section contacts with a metal member during friction stirring. On the other hand, according to the joining method of the invention, there are not any cases in which a shoulder section of a rotation tool contacts with a metal member. Therefore, even if the first metal member has a front surface with various heights, the stirring pin is easily inserted to the lap portion disposed at a deep position. This makes it possible to securely join the metal members together at their surfaces on the lap portion. In addition, the friction stirring is performed with only the stirring pin disposed in contact with the metal member, which reduces a load exerted on the friction stir apparatus. Thereby, without exerting a large load on the friction stir apparatus, the lap portion disposed at a deep position is friction stirred.
The stirring pin includes a circumferential surface having a spiral groove cut therein.
The spiral groove extends counterclockwise from a proximal end side to a distal end side of the stirring pin, and the rotation tool rotates clockwise. The spiral groove extends clockwise from the proximal end side to the distal end side of the stirring pin, and the rotation tool rotates counterclockwise.
According to the joining method, the metal member plastically fluidized is guided along the spiral groove to travel to the distal end side of the stirring pin, thereby reducing an amount of metal which overflows to the outside of the metal member.
According to the joining methods of the inventions, if the height of the butt portion or the lap portion varies, operability of the rotation tool is enhanced and a joint is secured. In addition, even if the first metal member for inserting the rotation tool includes a front surface with various heights, operability of the rotation tool is enhanced and a joint is secured.
BRIEF DESCRIPTION OF THE ACCOMPANYING DRAWINGS
FIG. 1A is an elevation view illustrating a welding rotation tool of the embodiments;
FIG. 1B is a schematic sectional view illustrating a welding condition using the welding rotation tool;
FIG. 2A is a perspective view of metal members for a joining method according to a first embodiment of the invention;
FIG. 2B is a perspective view illustrating a butting process of the joining method according to the first embodiment;
FIGS. 3A and 3B are views illustrating a welding process of the joining method according to the first embodiment, FIG. 3A is a perspective view, and FIG. 3B is a sectional view taken along IIIB-IIIB in FIG. 3A;
FIG. 4A is a longitudinal sectional view illustrating a joining method according to a first modification of the first embodiment;
FIG. 4B is a longitudinal sectional view illustrating a joining method according to a second modification of the first embodiment;
FIG. 5 is a longitudinal sectional view illustrating a joining method according to a third modification of the first embodiment;
FIG. 6 is a perspective view illustrating a joining method according to a second embodiment of the invention;
FIG. 7 is a longitudinal sectional view illustrating the joining method according to the second embodiment;
FIG. 8A is a longitudinal sectional view illustrating a joining method according to a first modification of the second embodiment;
FIG. 8B is a longitudinal sectional view illustrating a joining method according to a second modification of the second embodiment;
FIG. 9A is a longitudinal sectional view illustrating metal members according to a third modification of the second embodiment;
FIG. 9B is a longitudinal sectional view illustrating a joining method according to the third modification of the second embodiment;
FIG. 10 is a longitudinal sectional view illustrating a joining method according to a fourth modification of the second embodiment;
FIG. 11 is a longitudinal sectional view illustrating a joining method according to a fifth modification of the second embodiment; and
FIG. 12 is a longitudinal sectional view illustrating a joining method according to a third embodiment of the invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment
The embodiment of the invention will be described in detail with reference to the drawings. Firstly, the description will be given of a rotation tool for welding (referred to as a welding rotation tool).
As shown in FIG. 1A, a welding rotation tool F is composed of a connection section F1 and a stirring pin or probe F2. The welding rotation tool F corresponds to “a rotation tool” in the Claims. The welding rotation tool F is made of, for example, a tool steel. The connection section F1 is a portion that connects with a rotation axis D of a friction stir apparatus as illustrated in FIG. 1B. The connection section F1 in a cylindrical shape is formed with screw holes B in which bolts are fastened, respectively.
The stirring pin F2 extends downward from the connection section F1 and is coaxial with the connection section F1. The stirring pin F2 tapers down from the proximal end to the distal end thereof as extending from the connection section F1. The stirring pin F2 has an outer circumferential surface having a spiral groove F3 cut thereinto. In the embodiment, in order to rotate clockwise the welding rotation tool F, the spiral groove F3 extends counterclockwise from the proximal end to the distal end. In other words, the spiral groove F3 extends counterclockwise as viewed from the top when being traced from the proximal end to the distal end.
It is noted that if the welding rotation tool F rotates counterclockwise, the spiral groove F3 may extend preferably clockwise from the proximal end to the distal end. In other words, this spiral groove F3 extends clockwise as viewed from the top when being traced from the proximal end to the distal end. Such a set spiral groove F3 guides a metal plastically fluidized during friction stirring to the distal end of the stirring pin F2. This guide reduces an amount of a metal which overflows to the outside of the metal members to be joined (or first and second metal members 1A and 1B).
As illustrated in FIG. 1B, when the welding rotation tool F is used to perform friction stir welding, only the rotating stirring pin F2 is inserted into the metal members 1A and 1B to be joined, and the welding rotation tool F travels while the respective metal members 1A and 1B to be joined and the connection section F1 are kept apart from each other. In other words, the friction stir welding is performed with the proximal end of the stirring pin F2 disposed outside the metal members to be joined. On the traveling locus of the welding rotation tool F, the friction stirred metal is hardened and a plasticized region W is formed.
Next, the description will be given of the joining method according to the first embodiment. As illustrated in FIGS. 2A and 2B, the end surfaces 1 a of the metal members 1A and 1B are butted against each other to form a butt portion J therebetween, along which friction stirring is performed to join the metal members. The metal members 1A and 1B are metal members, respectively, and the portions to be butted are identical in shape with each other. The metal members 1A and 1B are made of equivalent materials. The materials of the metal members 1A and 1B are not specifically limited if they are friction stirrable metals. For example, each material may be appropriately selected from aluminum, aluminum alloy, copper, copper alloy, titanium, titanium alloy, magnesium, magnesium alloy and the like.
As illustrated in FIG. 2A, each of the metal member 1A and 1B is composed of a primary section 2 of a rectangular parallelepiped, and a projection section 3 of a trapezoid section formed on the primary section 2. The projection section 3 has a front surface 3 a positioned above the front surfaces 2 a and 2 b of the primary section 2. The projection section 3 has a first front surface 3 b which inclines to the front surface 3 a and connects the surface 2 a of the primary section 2 and the front surface 3 a of the primary section 3. The projection section 3 has a second front surface 3 c which inclines to the front surface 3 a and connects the front surface 2 b of the primary section 2 and the front surface 3 a of the projection section 3.
In the joining method according to the embodiment, a butting process and a welding process are performed. As illustrated in FIG. 2A, the butting process serves as a process for butting the end surfaces 1 a and 1 a of the metal members 1A and 1B against each other. In the butting process, the metal members 1A and 1B are butted against each other such that a respective front surface of the metal member 1A and a corresponding front surface of the metal member 1B are flush with each other.
As illustrated in FIG. 2B, in the butting process, the end surfaces 1 a and 1 a of the metal members 1A and 1B are brought in face-to-face contact with each other, forming a butt portion J. The butt portion J is formed with various height positions. That is, if a height (elevation) of the butt portion J at a start point (insertion position) for the friction stirring is set to be a reference height, the butt section J has sections with various heights, among which are ones whose heights are different from the reference height, from the start point to the end point. The butt portion J of the embodiment includes a first flat section Ja, a first inclined section Jb, a second flat section Jc, a second inclined section Jd, and a third flat section Je.
As illustrated in FIG. 3A, the welding process serves as a process for applying a friction stir welding to the butt portion J by use of the welding rotation tool F. In the welding process, the stirring pin F2 of the rotating welding rotation tool F is inserted into the end portion of the first flat section Ja of the butt portion J, and the welding rotation tool F travels relatively along the butt portion J. In this embodiment, the welding rotation tool F performs the friction stirring with the rotation central axis always disposed in parallel with the vertical axis. Portions of the metal members 1A and 1B around the stirring pin F2 are friction stirred by the welding process, and thereby the metal members 1A and 1B are welded together. On the traveling locus of the welding rotation tool F, a plasticized region W is formed.
As illustrated in FIG. 3B, in the welding process according to the embodiment, a friction stirring is applied to the butt portion J with only the stirring pin F2 disposed in contact with the metal members 1A and 1B while the insertion depth of the stirring pin F2 along the butt portion J is kept approximately constant. In the welding process according to the embodiment, the friction stirring is performed by vertically moving the welding rotation tool F relative to a base (illustration omitted) on which the metal members 1A and 1B are fixed.
This makes it possible for the depth Za of the plasticized region W of the first flat section Ja, the depth Zb of the plasticized region W of the first inclined section Jb (the depth of the plasticized region W on the line orthogonal to the first surface 3 b), and the depth Zc of the plasticized region W of the second flat section Jc to be approximately equal to each other. “Insertion depth” of the stirring pin F2 means a distance from the front surfaces of the metal members 1A and 1B to the distal end of the stirring pin F2 on the rotation central axis of the welding rotation tool F.
It is noted that though in the welding process according to the embodiment, the welding rotation tool F is vertically moved relative to the base (illustration omitted), a friction stirring may be performed by vertically moving the base while the welding rotation tool F is being fixed at a height position.
According to the above-described joining method of the embodiment, there is not any case in which a shoulder section would contact with metal members. Thereby, while the stirring pin F2 is inserted at a sufficient depth in the butt portion J, a relative height position of the welding rotation tool F is easily adjusted in accordance with the variation of the height of the butt portion J. Even if the height of the butt portion J varies, the stirring pin F2 is easily inserted into a deep portion of the butt portion J, thereby securely welding the metal members 1A and 1B together along the butt portion J. That is, even if the butt portion J between the metal members 1A and 1B has an upward inclination (upward gradient) or a downward inclination (downward gradient), operability of the welding rotation tool F is enhanced.
The depth of the plasticized region W is kept constant, and the joining strength of the joint portion is kept constant even if the height of the butt portion J varies.
In addition, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 1A and 1B, which reduces a load exerted on the friction stir apparatus. This makes it possible to friction stir the deep portion of the butt portion J without exerting a large load on the friction stir apparatus.
It is noted that at the height change point of the butt portion J and the inclined surface (first inclined section Jb or second inclined section Jd), it is occasionally difficult for a depth of the plasticized region W to be constant even if the insertion depth of the stirring pin F2 is rendered constant. In such a case, the insertion depth of the stirring pin F2 of the welding rotation tool F at the butt portion J may be appropriately adjusted such that the depth of the plasticized region W is approximately constant.
First Modification
Next, the description will be given of modifications of the present embodiment. FIG. 4A is a longitudinal sectional view of a butt portion in a joining method according to a first modification of the first embodiment. FIG. 4B is a longitudinal sectional view of a butt portion in a joining method according to a second modification of the first embodiment. The first modification as illustrated in FIG. 4A differs from the above-described embodiment in that the height of the butt portion 51 varies and the front surfaces of metal members 1C and 1D serve as curved surfaces, respectively.
The welding process of the first modification serves as a process for applying the friction stir welding to the butt portion 51 by use of the welding rotation tool F. In the welding process according to the first modification, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 1C and 1D while the insertion depth of the stirring pin F2 from the front surfaces of the metal members 1C and 1D at the butt portion 51 is kept approximately constant. The connection section F1 of the welding rotation tool F is apart from the front surfaces of the metal members 1C and 1D during the friction stirring.
Second Modification
The second modification as illustrated in FIG. 4B differs from the above-described embodiment in that the upward inclination (upward gradient) and the downward inclination (downward gradient) are alternately contiguous with each other.
The welding process of the second modification serves as a process for applying a friction stirring welding to a butt portion J2 by use of the welding rotation tool F. In the welding process of the second modification, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 1E and 1F while the insertion depth of the stirring pin F2 from the front surfaces at the butt portion J2 is kept approximately constant. The connection section F1 of the welding rotation tool F is apart from the front surfaces of the metal members 1E and 1F during the friction stirring.
In such joining methods according to the first modification and the second modification, the surfaces of metal members 1C and 1D serve as curved surfaces and the upward inclination and the downward inclination of the metal members 1E and 1F are sequentially contiguous to each other. These cases also serve advantageous effects as approximately the same as those of the above-described first embodiment.
Third Modification
FIG. 5 is a longitudinal sectional view illustrating a joining method according to a third modification of the first embodiment. The third modification differs from the first embodiment in that the friction stirring is applied to joint surfaces with the welding rotation tool F disposed perpendicularly to the joint surfaces.
As illustrated in FIG. 5, when the welding process of the third modification is performed, a friction stirring is performed while the welding rotation tool F is inserted in the joint surfaces perpendicularly thereto. In the welding process of the third modification, the friction stirring is applied to the first flat section Ja, the second flat section Jc and the third flat section Je with the rotation central axis of the welding rotation tool F disposed in parallel with the vertical axis. On the other hand, the friction stirring is applied to the first inclined section Jb and the second inclined section Jd by inclining the welding rotation tool F to the vertical axis with the rotation central axis of the welding rotation tool F disposed perpendicularly to the joint surfaces (first surface 3 b and second surface 3 c) of the first inclined section Jb and the second inclined section Jd.
In the case of performing the third modification, the friction stirring may be performed with the welding rotation tool F fitted to a robot arm having an end provided with a rotation driving unit such as a spindle unit. Such a friction stir apparatus facilitates changing an angle of the rotation central axis of the welding rotation tool F relative to the vertical axis. Therefore, even if the height of the butt portion J varies, an angle of the rotation central axis of the welding rotation tool F is changed relative to the vertical axis during the friction stirring. This makes it possible to perform a continuous friction stirring with the welding rotation tool F always disposed perpendicularly to the joint surfaces.
The third modification also serves advantageous effects as approximately the same as those of the first embodiment. The welding rotation tool F is inserted into each joint surface perpendicularly thereto, which makes it possible to apply the friction stirring to the deep portion of the butt portion J even if a joint surface is an inclined surface. If a joint surface is a curved surface, the friction stirring may be performed with the rotation central axis of the welding rotation tool F disposed in parallel to the normal line of the joint surface.
The above-description is given of the embodiment of the invention and the modifications, and, in addition, the appropriate design modifications are possible within the scope of the invention. For example, before the welding process is performed, a small-sized rotation tool F may be used for performing the friction stirring or a welding may be used for performing a temporary welding process. This prevents the butt portion from opening during the welding process.
When the welding process is performed, tab members may be disposed at both the ends of the butt portion. Each tab member has a surface to which the start position and the end position may be set. After the welding process finishes, the tab members may be cut off. This setting enhances operability of the welding process. The setting makes it possible to finely finish the side surfaces of the metal members 1A and 1B.
Second Embodiment
Next, the description will be given of a joining method according to the second embodiment of the invention. As illustrated in FIG. 6, in this embodiment, metal members 101A and 101B are stacked on each other, forming a lap portion J11 therebetween. The metal members 101A and 101B are welded together at their surfaces on the lap portion by use of the friction stirring. The metal members 101A and 101B are metal plate members, respectively, and identical in shape with each other.
The metal members 101A and 101B are made of equivalent materials. If each material of the metal members 101A and 101B is a friction stirrable metal, each material is not particularly limited. The material may be appropriately selected from, for example, aluminum, aluminum alloy, copper, copper alloy, titanium, titanium alloy, magnesium, magnesium alloy and the like.
As illustrated in FIG. 6, metal members 101A and 101B are composed of first flat sections 102, inclined sections 103, and second flat sections 104, respectively. The first flat sections 102, the inclined sections 103 and the second flat sections 104 have constant thicknesses and plate shapes, respectively. The second flat sections 104 are formed at higher positions than those of the first flat sections 102, respectively. The inclined sections 103 connect end sides of the first flat section 102 and opposite end sides of the second flat sections 104, respectively.
The metal members 101A and 101B of the embodiment have constant thicknesses and both the front surfaces 101 a and the back surfaces 101 b thereof each are formed with various heights. On the other hand, the metal members 101A and 101B of the embodiment are not limited to this if: the metal member 101B disposed on the lower side has various heights at least at the front surface 101 a thereof; and the metal member 101A disposed on the upper side has various heights at at least the back surface 101 b thereof; and said at least front surface 101 a and back surface 101 b are in face-to-face contact with each other.
In the joining method according to the embodiment, a stacking process and a welding process are performed. As illustrated in FIG. 6, the stacking process serves as a process for stacking the upper metal member 101A on the lower metal member 101B with the former's back surface 101 b disposed on the latter's front surface 101 a. In the embodiment, the front surface 101 a of the lower metal member 101B and the back surface 101 b of the upper metal member 101A are identical in shape with each other. In the stacking process, the front surface 101 a of the lower metal member 101B and the back surface 101 b of the upper metal member 101A are disposed in face-to-face contact with each other, thereby forming a lap portion J11.
The lap portion J11 (boundary surface between the metal members 101A and 101B) is formed with various height positions. That is, if a height (elevation) of the lap portion J11 at the start point (insertion position) for the friction stirring is set to be a reference height, the lap portion J11 has sections with various heights, among which are ones whose heights are different from the reference height, from the start point to the end point. In the embodiment, the lap portion J11 is composed of a first flat lap portion J12, an inclined lap portion J13, and a second flat lap portion J14. The upper metal member 101A of this embodiment has a constant thickness, and heights of the lap portion J11 and the surface 101 a of the upper metal member 101A vary together.
As illustrated in FIG. 7, the welding process serves as a process for applying the friction stir welding to the lap portion J11 by use of the welding rotation tool F. In the welding process, the stirring pin F2 of the welding rotation tool F rotating clockwise is inserted from the surface 101 a of the upper metal member 101A, and the welding rotation tool F is moved relatively on the surface 101 a of the upper metal member 101A. The metal around the lap portion J11 is friction stirred by the welding process, thereby welding the metal members 101A and 101B together. On the traveling locus of the welding rotation tool F, a plasticized region W is formed. In the welding process, the friction stirring is performed with the rotation center axis of the welding rotation tool F always disposed in parallel with the vertical axis.
The insertion depth of the stirring pin F2 may be set such that the plasticized region W formed by the friction stirring extends at least to the lap portion J11. On the other hand, in this embodiment, the distal end of the stirring pin F2 is set such that it contacts with the lower metal member 101B.
As illustrated in FIG. 7, in the welding process according to the embodiment, a friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 101A and 101B while the depth of insertion of the stirring pin F2 toward the lap portion J11 is kept approximately constant. The connection section F1 of the welding rotation tool F is apart from the front surface 101 a of the upper metal member 101A during the friction stirring. In the welding process of this embodiment, the friction stirring is performed by moving the welding rotation tool F vertically relative to the base (illustration omitted) on which the metal members 101A and 101B fixed.
This friction stirring makes it possible for the depth Za of the plasticized region W of the first flat lap portion J12, the depth Zb of the plasticized region W of the inclined lap portion J13 (the depth of the plasticized region W on the line orthogonal to the inclined section 103) and the depth Zc of the plasticized region W of the second flat lap portion J14 to be approximately equal to each other. “Insertion depth” of the stirring pin F2 means a distance from the surface 101 a of the metal member 101A to the distal end of the stirring pin F2 on the rotation central axis of the welding rotation tool F.
It is noted that though in the welding process according to the embodiment, the welding rotation tool F is moved vertically relative to the base (illustration omitted), the friction stirring may be performed by vertically moving the base while the welding rotation tool F is being fixed at a height position.
According to the above-described joining method of the embodiment, there are not any cases in which a shoulder portion would contact with a metal member. Therefore, while the stirring pin F2 is inserted at a sufficient depth, a relative height position of the welding rotation tool F is easily adjusted in accordance with the variation of the height of the lap portion J11. Even if the height of the lap portion J11 varies, the stirring pin F2 is easily inserted to the lap portion J11 disposed at a deep position, thereby securely welding the metal members together at their surfaces on the lap portion J11. That is, even if the lap portion J11 of the metal members 101A and 101B has an upward inclination (upward gradient) or a downward inclination (downward gradient), the operability of the welding rotation tool F is enhanced.
The depth of the plasticized region W is made constant, which makes it possible for the joining strength of the joint portion to be kept constant even if the height of the lap portion J11 varies.
In addition, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 101A and 101B, thereby reducing a load exerted on the friction stir apparatus. This reduction makes it possible to apply the friction stirring to the lap portion J11 disposed at a deep position without exerting a large load on the friction stir apparatus.
In the welding process, the friction stirring is performed by bringing the distal end of the stirring pin F2 in contact with (or into) the lower metal member 101B, thereby securely welding the metal members 101A and 101B together at their surfaces on the lap portion J11.
It is noted that at the height change point and the inclined surface (inclined lap portion J13) of the lap portion J11, it is occasionally difficult for the depth of the plasticized region W to be constant even if the insertion depth of the stirring pin F2 is rendered constant. In such a case, the insertion depth of inserting the stirring pin F2 of the welding rotation tool F toward the lap portion J11 may be appropriately adjusted.
First Modification
The following description will be given of the modification of the embodiment. FIG. 8A is a longitudinal sectional view illustrating a joining method according to a first modification of the second embodiment. FIG. 8B is a longitudinal sectional view illustrating a joining method according to a second modification of the second embodiment. The first modification as illustrated in FIG. 8A differs from the above-described embodiment in that the upward inclination (upward gradient) and the downward inclination (downward gradient) of the lap portion J11 are alternately contiguous with each other.
The welding process of the first modification serves as a process for applying a friction stir welding to the lap portion J11 by use of the welding rotation tool F. In the welding process of the first modification, while the depth of the stirring pin F2 toward the lap portion J11 is kept approximately constant, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 101C and 101D. The connection section F1 of the welding rotation tool F is apart from the front surface 101 a of the upper metal member 101C during the friction stirring.
Second Modification
The second modification illustrated in FIG. 8B differs from the above-described embodiment in that the height of the lap portion J11 varies and metal members 101E and 101F are curved in a vertical direction.
The welding process of the second modification serves as a process for applying a friction stir welding to the lap portion J11 by use of the welding rotation tool F. In the welding process of the second modification, while the insertion depth of the stirring pin F2 toward the lap portion J11 is kept approximately constant, the friction stirring is performed with only the stirring pin F2 disposed in contact with the metal members 101E and 101F. The connection section F1 of the welding rotation tool F is apart from the front surface 101 a of the upper metal member 101E during the friction stirring.
The joining methods according to the first modification and second modification serve advantageous effects as approximately the same as those of the above-described embodiment even if each front surface 101 a of the metal member 101C and 101D has an upward inclination and a downward inclination contiguous with each other or each front surface 101 a of the metal member 101E and 101F is a curved surface.
Third Modification
The third modification illustrated in FIGS. 9A and 9B differs from the second embodiment in that the front surface 111 a of a metal member 111A for inserting the welding rotation tool F is flat, while the height of the lap portion J11 varies.
A lower metal member 111B serves as a plate member formed with different thicknesses. The lower metal member 111B includes a thin wall section 112, a thick wall section 114 thicker than the thin wall section 112, an inclined section 113 extending between the thin wall section 112 and the thick wall section 114. The inclined section 113 has a trapezoidal section. The inclined section 113 has a front surface which is contiguous with the front surfaces of the thin wall section 112 and thick wall section 114. The inclined section 113 is inclined upward from the thin wall section 112 to the thick wall section 114. Thereby, the front surface 111 a of the lower metal member 111B is formed with various heights. The back surface 111 b of the lower metal member 111B is flat without various heights.
The upper metal member 111A is identical in shape with the lower metal member 111B. The upper metal member 111A is disposed in point symmetry with the lower metal member 111B. Thereby, the front surface 111 a of the upper metal member 111A is flat or horizontal without various heights. The height of the back surface 111 b of the upper metal member 111A varies.
In the stacking process, the lower metal member 111B and the upper metal member 111A are stacked on each other, with the former's front surface 111 a and the latter's back surface 111 b in face-to-face contact. As illustrated in FIG. 9B, the stacking process produces a lap portion J11. The lap portion J11 is formed with various height positions. That is, the lap portion J11 is composed of a first flat lap portion J12, an inclined lap portion J13 and a second flat lap portion J14.
As illustrated in FIG. 9B, the welding process serves as a process for applying a friction stir welding to the lap portion J11 by use of the welding rotation tool F. In the welding process, the stirring pin F2 of the welding rotation tool F rotating clockwise is inserted from the front surface 111 a of the upper metal member 111A. The welding rotation tool F is moved relatively on the front surface 111 a of the upper metal member 111A. In the welding process, the friction stirring is applied to a metal around the lap portion J11, thereby welding the metal members 111A and 111B together. On the traveling locus of the welding rotation tool F, a plasticized region W is formed. In the welding process, the friction stirring is performed with the rotation central axis of the welding rotation tool F disposed in parallel with the vertical axis.
In the welding process according to the third modification, the friction stirring is performed by moving the welding rotation tool F vertically relative to the base (illustration omitted) on which the metal members 111A and 111B are fixed. The insertion depth of the stirring pin F2 may be set such that at least plasticized region W formed by the friction stirring extends at least to the lap portion J11. In this embodiment, the insertion depth of the stirring pin F2 is set such that the distal end of the stirring pin F2 contacts with the lower metal member 111B in accordance with the variation of the height of the lap portion J11.
| 1,609 |
https://github.com/AlessandroParrotta/parrlib/blob/master/src/matrix2f.cpp
|
Github Open Source
|
Open Source
|
MIT
| 2,021 |
parrlib
|
AlessandroParrotta
|
C++
|
Code
| 261 | 806 |
#include <parrlib/Matrix2f.h>
#include <parrlib/OtherUtil.h>
#define PI 3.141592
Matrix2f::Matrix2f(){
}
Matrix2f::Matrix2f(float m[2][2]) {
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
this->m[i][j] = m[i][j];
}
}
}
Matrix2f::Matrix2f(float f) {
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
this->m[i][j] = 0.f;
}
}
m[0][0] = f;
m[1][1] = f;
}
Matrix2f::~Matrix2f(){
}
Matrix2f Matrix2f::operator+ (const Matrix2f &other) const {
Matrix2f result = Matrix2f();
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
result.m[i][j] = this->m[i][j] + other.m[i][j];
}
}
return result;
}
Matrix2f Matrix2f::operator- (const Matrix2f &other) const {
Matrix2f result = Matrix2f();
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
result.m[i][j] = this->m[i][j] - other.m[i][j];
}
}
return result;
}
Matrix2f Matrix2f::operator* (const Matrix2f &other) const {
Matrix2f result = Matrix2f();
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
result.m[i][j] = this->m[i][0] * other.m[0][j] +
this->m[i][1] * other.m[1][j] +
this->m[i][2] * other.m[2][j] +
this->m[i][3] * other.m[3][j];
}
}
return result;
}
void Matrix2f::setupRotation(const float &angle) {
float theta = outl::toRadians(angle);
m[0][0] = cos(theta);
m[0][1] = -sin(theta);
m[1][0] = sin(theta);
m[1][1] = cos(theta);
}
namespace pmat2 {
mat2 rotate(const float &angle) {
mat2 m = 1.f;
m.setupRotation(angle);
return m;
}
mat2 translate(const vec2& v) {
mat2 m = 1.f;
return m;
}
}
| 23,093 |
02002221_4
|
LoC-PD-Books
|
Open Culture
|
Public Domain
| 1,883 |
History of Effingham county, Illinois.
|
None
|
English
|
Spoken
| 7,323 | 9,683 |
From the organization of the county until some time in the " forties" the entire tax upon all property was five mills on the dollar. The whole revenue from taxes iu the countj" the first year was $50. The next year it rose to S58 The increase upon these figures vvas very gradual. Indeed, so much so, that in 1837 the total revenue collected in the county was S122.27. The heaviest taxpaj'er in 1837 in the county was John Funkhouser, S5. The next heaviest, Robert Moore, $3.25; John Martin, S3. Then followed John McCoy, Presley Funkhouser, Rile}' Howard, W. J. Hankins, Bartholomew McCann, William Freeman, C. Duncan and John Trapp, $2 each. T. J. Gillenwaters paid $1.75. There were 142 names on the tax book, and thej- averaged 86^ cents each. If there were any tax-record books before the year 1837 kept, which is very doubtful, they are lost now. The tax record of 1837 is a little book of ten pages, made for a school HISTORY OF EFFINGHAM COUNTY. copj- book; has a paper back, on which is a wood-cut intended, probably, to represent a school-room exhibition daj'. The audience is represented by four or five grown people, all sitting straight as arrows and as flat against the paper as if they had been just taken out of a hydraulic tobacco press ; a like number of similar looking children are perched in a row on benches, and a putt\'-faced little Henry Clay is on the rostrum. His left hand and arm is pasted flat and tight to his leg, his right arm is stiff and straight at an angle of forty-five, and j-ou can almost hear his piping treble as he exclaims: " How large was Alexander's pawV The cost of this record book could not have been less than five cents, because that was the smallest monej' they had in those daj's, and for the further reason that then it cost money to indulge in the decorative arts. It is said that the purchase of this book made a profound sensation throughout the countj' and became the ruling question in politics for some time, some contending it was too prettj' a book to spoil b}' writing in it, others holding that such extravagance would be ruinous to all, and still others saying that they believed in the county keeping in the lead in the fine arts, even if it did cost money. This public discussion evidently taught the official a lesson, because the book for the next year was made at home, and consisted of foolscap paper cut and stitclied. In 1838, W. J. Hankins certifies to the Cuuuty Court the following as the total rev- enue of the count}' : Tax on personal propert)' $162 57^ Real estate for 1836-37-38 29 45 Total $192 02i Marryitig and Gicing in Marringe. — There were weddings here when the parties nad to go to Vandalia to get the license, among the earliest of which was the marriage of Burgess Pugh to Pamelia Jenkins, 1329. IMrs. John 0. Scott informs us she attended this wedding as a j'oung girl. She remembers the bride had on some kind of a white dress and store shoes ; that there was chicken pie and honey Pjr dinner. John Trapp performed the ceremony', and when it was over the groom told him he would bring him his pay in a short time in "real strained beeswax." About the same time Mike Robinson and Delilah Pugh, and Enoch Neavills and Laura Pugh, Jesse White and Katie Neavills, Mary Parkhurstand James Porter were all married. The first marriage license issued fiom the count}' was January 21, 1833, to James C. Haden and Nancy Nesbitt. The next was March 28 of the same year, to John 0. Scott and Patsy B. Parkhurst. The County Clerk was verv cautious about Issuing marriage licenses without first having the parents' or guardians' consent, as the following will show; " Mr. hankins pies ishue m^- son fielden Mcoy licens for Marrieg for I hav noe objec- tions to the sam, Nov. 1835.". Again ; " Mr. Hankins, pleas to letJohn Chadwcll hav Liesns and you will oblige your friend I Kant atend to git m^- self "Richard Cohea." It is proper to explain the above bj- stating that Chadwell married Elizabeth Cohea Novem- ber 19, 1835. Micheal Brockett married JIary Thomasson August 18, 1834. It is certified in the records that on 27th April, 1835, was " Laufley joined to gether as husban and Wife Jackson tiner, and Sin they Land." On 13th June, 1833, Pendleton Nelson mar- ried Eliza Martins. Jul}' 12, 1836, Alexander McWhorter mar- ried Margaret Loy. The following tells the story for Elizabeth Sullivan: HISTORY OF EFFIXGIIAM COLXTV. ■13 " I asserte that Eleizabeth Sullivan is over eighteen years old, and is her own agent. "Dec, 1834. " P. A. T. Sullivan." This document clears up all doubts as to whether Pat was willing to act as the agent for Lizzie in the matter of marrying or not. He evidentl}- was not. But when he was for the last time appealed to to do something, his rudd^' face glowed a little more than usual, and he stormed and raved and called for pen, ink and paper, and fixed himself at the table to fire at the Count3' Clerk the above formidable State paper. The imagination can almost see him as examines carefuUj- his pen, dipping it into the ink, sucking it clean, and again closely examin- ing it, before spreading himself all over the table and biting his tongue; the old goose-quill fairl}' creaks and sputters as he puts upon the virgin paper the truth about his daughter being •'her own agent." He boldly "asertes" that she is. and holds himself ready to pummel all who doul)t it or say one woid to the contrary-. The diflFerent officials who performed the dif- ferent marriages in those days seem to have all dropped into the same st3ie of writing their re- turns upon the back of the licenses. They each apparently thought it highly proper to sa3- that they had '• solemnized the rites of matri- mon}-," etc. They must have met with great difficulties in spelling the word " solemnized," as in the diflFerent returns it is spelled incor- rectly as many as fourteen or fifteen times. For instance: Sollemise, solemize, solemise, sol- oise, solemside, solemsided, solamis, solmnis, soUomondise, solimsis, solimize, soUumise, sol- imnize, soUemis, etc. Among the first of preachers to marry a couple was one who made the following poet- ical and rather neat return: "According to law and injunction of Heaven, On the 2 of June, 1837, In wedlock I joined, during natural life. The within Jessee Fuller and Rhoda, his wife. " Geo. M. Hansen, L. D., M. E. C." lu searching among these " quaint an curious volumes of forgotten lore," the following docu- ment was dug up in the rubbish. It is a bill rendered b^- James B. Hamilton, and as near as the types can give it, it is in the following facts and figures: " I dowe sert^-f}- to the Corns Cort of Effing- ham an State 111 That Mr Henry BouUs Fell Sick at mj' hous on 16 July 1840 and was beried the 25 of the same instant. Funerl Ex Spences " For nersin and nersment — maid out — Mr T.Levitt an H Laukfort 15 00 for plank and nales from Brent Whit- field 2 00 to Davis for Meckin the Cofin 3 00 to T. H. Gillinwatrs Srawdiu 3 25 It is onl3' b}' inference that the world will ever know whether BouUs died at all or not. We are informed that he "Fell Sick" on the 16th and was "Beried the 25 of the same instant," and that Gillinwaters furnished the " Srawdin " (shroud). Who was the damsel that the bill tells us, at the end of the line " Nersin an Nersment," was the " maid out " ? Why did she go out? What was she doing there, an3'how? The account says ^istinctl3- and unmistakably that " He fell " sick " at m3- house," not in my house. If the " maid " was helping with the " nersin an nersment " she could not have been in the house to have au- thorized the announcement that there was a " maid out." Schools. — Mrs. John 0. Scott reports the first school ever taught here was in 1831, by her brother, Elisha Parkhurst. who at that time was a mere lad, not over twelve years of age. Thomas I. IJrockett, realizing tiie pressing necessities in this line, set about it and cleaned up and fixed a stable on his premises, and hired Elisha, whom he overlooked and superintended and assisted in all emergencies. The neigh- bors, John Allen, John McCoy, Lilly, Stephen Austin, Widow Dagner (two grandchildren), 44 HISTORY OF EFFINGHAM COUNTY. sent their children and made a school of fifteen or twenty pupils. Elisha apparently was a suc- cessful teacher, although a boy, and for years he taught in various parts of the countrj'. The next school was taught by Dr. John Gillenwa- ters (a cousin of the Jud^e), in Ewington, in 1833. A room was rented for this in some private residence. The next in order was Samuel White, who taught in the garret of Judge G-il- lenwater's house. These were pioneer schools, and, considering all the circumstances, were very good indeed. The only Latin they ever taught was to make their pupils pronounce the letter z " izzard." The people of those days, compared with the present generation, had some very healthy ideas about schools. They believed a school was a place of training in the " three R's," and that its usefulness stopped at the " rule of three." A picture of Elisha Parkhurst's school in Brockett's stable, more than half a century' ago, would be an appropriate as well as sug- gestive scene to hang upon the walls of every school room in our count3'. It was a long time before the rudest log schoolhouses were erected. The people were sparsely scattered in the sparse neighborhoods. They were poor in this world's goods as a rule. Teachers were scarce, and so were books. There were a large portion of the grown peo- ple that could neither read nor write, and some of these had lived where there was no use to be made of these accomplishments, and thej- had no realizing sense of the importance of teaching their children to read and write, in order to prepare them for what was soon com- ing, namely, mail facilities by the hour, cheap postage, and abundant and cheap literature ; a people transformed from trappers and hunters into an eager commercial and trading commu- nity, where a ceaseless activitj' is combined with that rapid, broad comprehension, that could ever}- morning look over the movements of the commercial world of the preceding twenty-four hours, and form his conclusions and put into instant execution his plans and purposes for the next twelve hours. In 1838, John Fuukhouser, the School Com- missioner for the county, made a report to the court of his ofBcial acts and doings for the years 1837-38. The report is addressed to the " Onorable Commrs. Cort, June, 1838." He charges himself with $146.76 for the year 1838. Then follows : "Dec 5, 1837. Amount paid on last return. Shoes not demanded, 38.21^." Total, 184.671. The inference is that there was $38.21 of the money of 1837 that had not been called for by orders, and this swelled the total fund to $184.67. He then credits himself as follows : Paid Thomas Loy for teaching .school in T. 8, R. 5, 28.33i Ruella Griffith, do., T. 8, R. 6, . . 9.88 This he says was all he paid out for the j-ear 1837. For the next year, he paid Sam Huston, teacher, $24.79. Thomas M. Loy, do., 41.67. Charles Gilkie, do., 16.58. Ruella Griffith, 20.12. This shows that for the'j'ear 1838 there was paid to the four teachers that taught the schools of the county, $103.10. The number of school children in the county, from the best obtainable estimates of that time, was four hundred. Four schools were taught, and one hundred and twenty-five pupils would be a fair estimate of the number that were in attendance upon the schools in the county, and 82^ cents per capita was the total expense. The assessment for the pi'esent year in the city of Effingham school district is $6,000. The school attendance is about five hundred. The difference in then and now is as 82^ cents is to $12 per pupil. Those were in part pay schools — these are free' schools ^p^-e^-z^-z-^j T HISTORY OF EFFINGHAM COUNTY. 47 Those were managed b^' the people — these by the State. There are no statistics, iinfortu- natei}-, bj' which the comparative illiteracy of then and now of the rising generation can be shown. This is much to be regretted. The fundamental idea of all schools is to take care of the mind and morals of children and train them up in the way the}' should go assisted in the moral work b3- religion and the church. This being admitted, we have this light thrown upon the subject of progress made in intelligence and marals in the fiflj' years just past. There has been as marked improvement in tlie number and qualit}' of our present splendid and expensive church build- ings as there has been in the schoolhouses in that time. So has the improvement in uum- b'.irs and superiority of ministers of the Gospel kept equal pace with the race of school teach- ers of then and now. It has cost many thou- sands of dollars to erect the numerous school buildings in the county. From Elisha Park- hursts pioneer school room in Brockett's sta- ble to the elegant and elaborately furnished high school room of to-day is a long stride in educating mankind. This was onlj- paralleled by the places of worship tiien and now, and to complt e the picture in a ministerial line let Boleyjack and Beecher stand forth. The ad- vance all round has been marked and great, especially in the matter of expense and show. Are these finger boards lining the highways back fifty years, that point out an equallj- great improvement in public manners, morals, or in- telligence ? Illiteracy is a crime, but so is pinching poverty. Illiteracy and ignorance are not synonymous terms. But neither are education and expense sj'nonymous terms. Is outward change in teacher or preacher, or great extravagance in the sclioolhouses, any proof that morals or education is improved ? The people pour their money into the school treasury unsparingly. Not only without grudg- ing, but freely and gladly. Why ? Because they are told and believe that the system is about perfect, and the only possible cause of its failure to perfect mankind is the absence of a sufficient quantity of it, and its universal ap- plication to all ciiildron. Does this fiftj- years' experience and practice in this county- prove this or the contrary ? We have plenty of men near the age of fifty years who were reared here, and some of them learned to read and write after they were thirty years old. The}' had not the benefit of those primitive schools, as there are many here now antl sucih there alwaj-s will be, who reap none of the benefits of the modern school. Compare the average man and woman, natives of this Slate, who were reared under the poor, meager pay schools of the olden time, with the average man and woman from different States, reared under the benign influences of the most liberal free schools. Is illiteracy banished? Do crimes cease and immorality flee to the mountains before the mightj' tread of this grand army of free schools ? Is there a proportionate disappear- ance of the one with the appearance of the other? The multitudinous mass of mankind will say yes / The figures of statistics will alone tell the true story. This is no place to discuss the question of how to make better the common school, even if it is one of supreme importance. We pass to other parts of the subject, content with this statement. The schools are based upon the idea that all can and should become philos- ophers, with no difference among men, except in degree of advancement. Whereas the truth is that the best and most difficult thing for so- cietj' to do is to produce gentlemen. True, it is that the home influence and training is where this precious commodity to society- is mostly to come from, yet if the schools ever arrive at the point where the^' can, even in the smallest degree, supply this to the cliildren of homes that have it not, then will there be the com- mencement of the real school. Tlien mav the c 48 HISTORY OF EFFIjSTGHAM COUNTY. school teacher, snrroiindeci bj' his school familj', like the proud mother of the Gracchi exclaim : "Behold, these are my jewels! " Men have interested themselves in education since recorded, and even before recorded time. The earliest traditions present only grown men, seeking to educate themselves. Children then were left to grow, with only the restraints or training that society and home forced upon them, their education being left to their own exertions after they became men and women. Remember that such schooling advanced all mankind — made civilization out of barbarism. A little book entitled " Ten Days in Athens," gives us some account of a school, taught in the porches and the gardens by Epicurus. This little book tells the secret of the intellectual greatpess and glory of Athens, that immortal cit3'— the mistress and nourishing mother of civilization — whose grand work has for 3,000 years stood as a beacon light upon the troubled waters. The school of Epicurus had no aid from the State, it had little, if any more, ele- gance or paraphernalia than did the boy teacher — Elisha Parkhurst's school in Brockett's stable. It was without books. Yet it was a fountain of profound philosoph}-, from which his fol- lowers might drink, and drink long and deeply. The routine of his school-room were his con- versations in which he gave them the ripened wisdom of his mind. He gave them true knowl- edge — that knowledge that lifts truth from error; the greatdoctrine that the highest and most en- during pleasure in life is the acquisition of new truths that come of the better understanding and comprehension of the mental and ph3-sical laws; that this alone destroyed ignorance, and that ignorance is the fruitful source of the evils that afflict mankind. In discussing the gods, he bluntly told his pagan school that their dieties no more caused rain to come to make the grain grow than did the}- send the rain to rot in the field the gathered but ungarnered products of the farm; that to worship these gods in the hope that the worship would be pro-rated anil paid in future great favors was not the most ennobling religious idea of which a great and pure soul could contemplate or have. What, think you, would this old pagan school teacher saj', could he now pay us a visit, and be taken to Oxford Universit}', and in solemn soberness shown the exact and priceless facsimile, that is there so carefully preserved, of the horn that blew down the walls of Jericho? Epicurus had been reared in paganism; he had been cradled in its lap, had taken it with his food from his mother's breast, and, like all men, had adopted the religion of his fathers. Yet he grew to be intellectually almost a demi- god. He did not grow to think iu the old groves of formulated ideas where " to dally was to be a dastard — to doubt was to be damned." He was nominallj- a pagan, but he wor- shiped truth alone, and with " an eastern de- votion he knelt at the shrine of his idolatry." He was illiterate, but who iu the ages since he was upon earth has been great enough to take his master's seat in the school-room ? Another great man, but not his peer, was the Swiss, Pestolozzi, the school teacher who lived and taught school a hundred jears ago. He believed and taught that there was much error in the fundamental idea and s}'stem of the schools. He contended that mere mem- orizing from books was not education, was not the source of knowledge; that knowledge came not by being told so and so, either by the books or the teacher, but bj- experimental lessons where not only the brain, but the heart the eye, the touch, in fact, all the avenues to the brain were not onlj' partakers but become part and parcel of the lesson. Pestolozzi took issue with the schools as the system and science of teaching had been the accepted practice for sixteen hundred j-ears before his da}'. He established a school and attempted to put in practice his theories. His HISTORY OF EFFINGHAM COUNTY. 49 school was a failure, not because of the defects of Ills discoveries in the system, but because he taught in advance of his day — a cause of as much loss to mankind probabli' as all other causes combined. It is true that, in the insti- tutes and conventions of teachers we are told and re-told, as often as these bodies meet, that all schools are now taught strictly upon the •' Pestilozzian plan," as the}' term it. Go stud}' what the great Swiss sa3's, and j'ou will be amazed at the wide misunderstanding that exists between his ideas and the practices of the school room. The profound thinker, Locke, has slapped the faces of the first schools of I<]urope, with the "learned ignorance" thcj- annually pour upon the world, labeled " Education. ' He tells them illiterate intelligence is inflnitelj- prefer- able to " learned ignorance." And 3'et a I'nited States Senator, in Congress two years ago, in discussing some school subject, an- nounced that " every illiterate person in our country is a menace to our free institutions," and from the fact that he did not say that he had any fears of ignorance, it is a fair presump- tion that the Senator, in common with most men who think vaguely and talk loosely-, con- founding words with a shocking recklessness, useil the word '• illiterate " when he meant ignorance. Richard Grant White discussed very ably re- cently, in the North American Review, the ques- tion " The Public Schools a Failure," in which he arrays the statistics of illiteracy and crime of a certain number of States north of the Po- tomac with an equal number south of that river. They were States of free public schools and States without them, classified and compared. In the United States Census of 1870, Dr. Earle discussed at much length the question of public schools and insanity, and basing his con- clusions upon the Government statistics, he draws some frightful conclusions. A committee of gentlemen in Chicago, deeply interested in the schools, who had been ap- pointed to investigate the subject in that city, reported unanimously that they could arrive at no other conclusion but that the whole system had been so pressed and pushed by the cry I'or improvement that they were now almost value- less as a means of education. A prominent school man of California suras up his investigations, and he has no hesitation in putting down as his best judgment that the whole S3-stem is so full of faults that it is of doubtful value. These men may, and it is to be hoped they are, in error upon this vital question; j'et thej- start a discussion that can- not but prove wholesome. It is the waters that are stirred that are pure and healthv. Educate! Educate! Teach all men, though what is true education first; then you cannot provide too much of this, nor is the necessary cost a question for a moment's consideration. Because it is-the inestimable boon to man — the basis of civilization and man's welfare. The young State of Illinois manifested a deep interest in this important subject. On the 13th of April, 1818, it was admitted as a State in the Union, and Congress in the act of admis- sion offered for the State's " free acceptance or rejection " the following; among other proposi- tions: 1. "That section numbered sixteen in every township, and when such section has been sold or otherwise disposed of, other lands equivalent thereto, and as contiguous as ma}- be, shall be granted to the State for the use of schools. 3. " That five per cent of the net proceeds of the lands lying within such State, and which shall be sold by Congress from and after the 1st day of January, 1810, after deducting all expenses incident to the same, shall be re- served for the purposes following, viz.: Two- fifths to be disbursed under the direction of Congress in making roads leading to the State, the residue to be appropriateil by the Legisla- ture of the State for the encouragement of 50 HISTORY OF EFFINGHAM COUNTY. learning, of which one-sixth part shall be ex- clusively bestowed on a college or universit3'." These propositions were accepted by the State Constitutional Convention at Kaskaskia on the 2Gth day of August, 1818. January- 15, 1825, the Legislature passed an act for the " establishment of free schools and other purposes." An amendment to this act was passed February 17, 1827, providing, among other things, as follows: " The legal voters of any school district, at their regular meetings, shall have power in their discretion to cause either the whole or one-half of the sum required to support a school in such district to be raised by taxation. And if onlj' one-half be raised b3- taxation, the remainder may be required to be paid by parents, masters and guardians, in proportion to the number of pupils which each of them shall send to such school. " Sec. 4. No person shall hereafter be taxed for the support of any free school in this State unless by his or her own free will and consent, first had and obtained in writing. Any person so agreeing and consenting shall be taxed in the manner prescribed in the act to which this is an amendment. Provided. That uo person shall be permitted to send any scholar or schol- ars to such school unless such person shall have consented as above to be taxed for the support of such school, or by the permission of the trustees of said school. And proi-ided, That all persons residing within the limits of a school district shall at all times have the privilege of subscribing for the support and establishment of anj- such schools." In May, 1827, a general act relating to the school lands was passed by the Legislature pro- viding for the appointing by the County Com- missioners' Court of three Trustees in " each township where they may deem it expedient, and where the population thereof will admit, to be called the Trustees of the School Land," making the Trustees a body corporate, requir- ing them within six months after their appoint- ment to survey section sixteen, or such other land as ma3- be selected in lieu tliereof, in tracts not less than forty nor more than one hundred and sixty acres, make a plat thereof for the Commissioners' Court, authorizing it to reserve from sale certain timber or stone or coal lands, and to lease said lands, etc., etc." These Trustees were required to laj- off school districts, so that each district should not have less than '• eighteen scholars subscribed or going to school." The State then levied an annual two-mill tax on the property of the State for the maintenance of schools, and thus step by step laid the founda- tion for our free schools upon a broad and lib- eral and wise financial plan. The State put the means in the school men's hands. It did all it could do in this wa}' in the cause of education, and if there is any failure in the sj'Stem, it is the fault, not of its financial provisions, but of the organizers and the workmen in the school- room. From the little beginning in Brockett's stable has grown the public free schools of the county, of which there are seventy -seven school dis- tricts, that have three log, sixty-three frame and ten brick schoolhouses, with an enrollment of pupils of 4,238, a daily attendance this school year (1882) of 327,659, the average school terra of six and five-tenths months, with the scliools classed as graded, and an attendance upon these graded schools of 1,449. There were ninety-five teachers employed. The total expenditure for 1882 was $30,685.79; the amount paid teachers, $19,416.51; the highest monthly salary paid was $75, and the lowest $15, an average of $31.58. We have a school in- debtedness of $13,650. There are other than the free schools — ten schools vvith an enroll- ment of 520. The number of children under twentj'-one years of age in the count}' is 9,443, and the number of school age— that is, between six and twenty-one — is 6.218. The number of illiterate persons in the county is placed at six- HISTORY OF EFFINCiHAM COUNTY. 51 teen. This is palpably an error, but by how much the number is understated cannot be known. The schools of EfHngham County rank well with those of other counties in the State, and this evidences a commendable spirit of enterprise and liber.ality of the people. They are deeply interested in this important work, and the money they freely paj- in such large sums demands of our school men a wise discharge of their duties. It demands of them that the}- shall educate, to the best, the rising generation; that thej' shall neither waste the lives of their children nor their money by false education. There is noth- ing in this life of more importance than the school-room. There is no class of people that are surrounded with such important responsi- bilities as the educator. A mistake here is a crime. To teach the young a falsehood is to poison the mind and pollute the soul. The evils of such an act are well-nigh incurable. Here is the paved highway to ignoi-ance and mental sterility that is a menace indeed to civilization itself Let it be remembered that these pioneers had to begin at the foundation and from there build. To create our possessions and belongings. Did thev build only upon the eternal rocks ! WtUiam J. ffan/L-ins. — Of the early legal and official life of this count}', we know of no man who stands out in the picture more promi- nently than Judge William J. Hankins. He came here just when he was most needed and his finger marks are everywhere, telling the story of his handiwork, and writing his epitaph in the hearts, not only of his descendants, but of the thousands who arc reaping, and who will in the future enjoy the fruits of his labors and his foresight. He came here in 1832, with a wife and sev- eral young children — impelled, doubtless, by the Napoleonic impulse of destiny. A new county had been incorporated by- the Legisla- ture, and its people were few, and there was a demand for men competent to do the work of placing the infant municipality upon its feet. An unorganized community of people were placed by law to themselves, and society and fellowship was to be created, their own police and local laws to be made and executed, the wheels and machinery of a little govern- ment were to be constructed and adjusted, and the whole to be so adapted that it would work harmoniousl}- and without friction. It is the men of the strong intellects and force of character that come to the front when important work, especially work that is not routine, is to be done. Judge Hankins. in his small way — smaller because his field of opera- tions was, in the nature of things, circum- scribed within the smallest limits — is as much an expression of this truth as was the Little Corporal, whose " frown terrified the glance its magnificence attracted." In the first elections ever held in the county, Hankins was elected Count}- Commissioner, and he organized the County Commissioners' Court and was the central figure in all the official acts and doings of that body. He was, at the same time. County Surveyor, Justice of the Peace, Postmaster, and in nearly every im- portant special commission, or supervision, or agent for the people or county, he was invari- ably the master, mover and leader. At one time or another he held about every position of public trust in the county, and in each and all was lie ever honest, faithful and com- petent. His education in the school books had been limited and meager. His chirograph}- was good; his spelling bad and his grammar faulty, and yet he wrote many legal and other documents and papers that are models of terse- ness, completeness and perspicacity. He^evi- dently had been his own schoolmaster mostly, and he had wrought out for himself a practical education of great value to himself and the people of the count}-. He probably, if alive 52 HISTORY OF EFFINGHAM COUNTY. and in his prime, could not pass a successful examination for a fourth grade teacher's cer- tificate, yet it is a question if there has ever been a school teacher in the county but that could have gone to Hankins to learn — and there have learned much ot incomparable value. He helped the helpless, aided the weak, fed the hungry and was a generous and warm-hearted friend to all mankind, as were all men who knew him, a friend to hira. Among the simple rustic pioneers he lived a useful and busy life. If he had ambition, it was not made of that " sterner stuff " that pro- tects its friends by crushhig to death all oppo- nents. He must have felt he was superior to the majority of his surroundings, yet he was never officious or offensivelj- dictatorial. When the count^-'s record of social life, its legal and official growth and existence, the peoples prosperit}', happiness and joj', together with their griefs and pains are rendered and the accounts closed, the great book completed, bound and ready to put away, let it be in- .scribed "The work of William J. Hankins and others." Among the earliest elections in the county was a memorable race made by William Free- man for Justice of the Peace. In those good days, that official was most commonly called " Squire," not Esquire, but Squire, and some pronounced it Square. Freeman was ambitious to serve his country-, and to his ear the title Squire was a long step in the line of honorable promotion. There was another man who coveted the prize, and so the two became can- didates. The contest was spirited, and on the daj- of election it was, to put it mildlj', red hot. The candidates and their friends, in looking for the official worm, literalh- left no stone unturned. As election day waned, the con- test raged only the fiercer. It was hurrah! for one side, and hurray! for the other. Living witnesses testif}- that before the middle of the afternoon some of the ablest " blowers and strik- ers " at the polls had grown so wear}' and ex- hausted, at Freeman's expense, that they could not walk straight. This and some other unfavor- able symptoms so discouraged Freeman that he went home before the polls closed, convinced that he was defeated. He had, in slang par- lance, " thrown up the sponge." He lived two or three miles out of Ewington. To the surprise of ever\' one, when the polls were closed. Freeman was elected by two votes. A few of his friends mounted their horses and rode to his house to inform and surprise him with this good fortune. He was in bed, sound asleep. They roused him, called him out and told him he was elected Justice of the Peace. At this he raved and swore, as did the army in Flanders, and bid his friends go back and tell the election that he was not, and iiad not been, a candidate for Justice of the Peace, and that he would either have squire or nothing; that was what he ran for, and he would not be fooled with by anybody. He changed his mind in time to qualify as Justice of the Peace, and made an efficient officer, discharging his duties not only honestly, but with abilit}-. Of the early comers here, the man first licensed and authorized to vend goods in our county was John Funkhouser. His line of work lay in a different avenue from that of Judge Hankins, but it was parallel and equally important to the j'oung commonwealth. He was a merchant, miller, farmer, trader in stock, and a buyer and seller in everything that the people wanted to bu}- and sell. When there was no trade or commerce, no stores nor money before for the convenience of the people, he or- ganized and made the wa}' for these. He opened the avenues for money to come and cir- culate among the people, as well as for indus- tries that furnished imployment to men that, without him, would have, of necessity, been idle, and perhaps dissolute. In this way his depend- ants outnumbered those of any man who has HISTOKV OF EFFINGHAM COUNTY. 53 ever been in the counU-, and his strong, clear jiKlgmeut, quick foresight and nerve in those broad fields of commerce that brought him profits and the communit}- gains and the means of manj' comforts, are bright examples of how much better it is to give in that which encour- ages men to help themselves by their own ex- ertions than that old and mistalsen charity that doles out its stinted aids and fosters by it the idleness and want of tlu'ift that first produced it. His executive abilities must have been of no common order. He not only had to direct and plan his multiform business, but he had to create it where tliere was none before, as well as think and provide for his little arm}- of de- pendants, and so wise and just did he manage this that what made him a rich man, con- tributed to the wealth and comfort of the entire community. His liberality and generosity to- ward his dependants and neighbors is well told in a little anecdote. He advised one of his men to plant a little piece of ground in corn, and he would furnish seed, teams, etc., neces- sary for him to work it. It was a little out-of- the-wa}' patch of ground of three or four acres. This man did as advised, and the season proved not the best for corn. In the fall, he got Funk- houser's wagon and gathered it, and took it all. When asked about the one-third for rent, he re- plied : " Why, you see there was no third. There was only two loads in the field. That was my two-thirds, and I reckon as how you don't want your third, when it didn't grow." Funkhouser enjoyed this joke the balance of his life. John Funkhouser was born in Green Countj', Ky., in the year 1778. He died in this county, in 1857. He came to Illinois in 1814, and located in Gallatin County. He moved to Wayne County in 1819, and to Effingham in 1833, and improved the farm now the property and possession of C. F. Lilly, in Jackson Town- ship; lierc he opened a store and built a horse-'^ mill, and commenced those extensive business operations that grew and multiplied until the da}- of his death. When his strong, generous and busy hands fell nerveless at his side in death, his life-work was taken up, where he had stopped, by his son, Presley Funkhouser, who proved a worthy son of a worthy sire. He not only carried ou successfully the extended operations inaugu- rated by his father, but increased and enlarged them in every way. A willing tribute that is paid to his memory by all who knew him in life, was, that he was the most generous and liberal of men. He helped all with a free and liberal hand. A man of strong head, warm heart, and a plethoric purse made him a citizen that was a boon to the people of the county, whose like we may never look upon again. The oldest living persons born in the county are two — a man and woman, born the same night, in the same house, and not twins. These two persons are Thomas Austin and Martha Tucker, nee Brockett, born 14th of November, 1828. Stephen Austin and family arrived in this count}-, and that night, in the house of Thomas I. Brockett, with whom Austin stopped, was born Thomas Austin and Martha, the daughter of Thomas I. Brockett. Martha mar- ried Jonathan Tucker. So far as can be ascer- tained, these were the first births in the county. These two oldest children of the county were born in what is now Jackson Township, where they are both still residing. For a new border settlement, where the press- ing want was people, these two little squalling pioneers were a most encouraging beginning, and truly great must have been the sensation of the day to the half-dozen or so of families that then occupied all the territory that now constitutes Effingham County. Henry Turner was born December 28, 1830. Births and deaths follow each other in nat- ure's order. The first death that we have any account of was that of Isaac Fuller, who was killed in the year 1829 or 1830. He had found 54 HISTORY OF EFFINGHAM COUNTY. a bee-tree, and the hive was in a limb of the tree, to where he climbed, in order to cut off the limb. As he stood by the body of the tree and cut the large limb, it commenced to fall, and, instead of brealiing directly, split, and that part uncut held it to the main tree, while the other part caught the body of Fulfer against the main bodj' of the tree and pushed it up a consider- able distance, with such force that he was crushed to death almost instantly. When the outer part of the limb had come to the roots of the tree, the body of poor Fulfer was released, and life wholly extinct, it fell and lodged upon the limb, and the friends of the dead man had some difficulty in getting his body down to the ground. In 1830, a negro who had been a laborer at work on the National road, during the winter, started to go to Vandalia on foot, and was frozen to death on the way, a " Dacotah bliz- zard" meeting him in a short time after he left the cabin on the Little Waliash. His name is not mentioned. It is a curious accident that the first two births should have happened as they did, and as is related above, as well as it is remarkable that the first two deaths known were violent ones.
| 2,013 |
https://github.com/nilproject/NiL.JS/blob/master/TestSets/jsfunfuzz.js
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,023 |
NiL.JS
|
nilproject
|
JavaScript
|
Code
| 10,343 | 26,357 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is jsfunfuzz.
*
* The Initial Developer of the Original Code is
* Jesse Ruderman.
* Portions created by the Initial Developer are Copyright (C) 2006-2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/********************
* ENGINE DETECTION *
********************/
// jsfunfuzz is best run in a command-line shell. It can also run in
// a web browser, but you might have trouble reproducing bugs that way.
var ENGINE_UNKNOWN = 0;
var ENGINE_SPIDERMONKEY = 1;
var ENGINE_JAVASCRIPTCORE = 2;
var engine = ENGINE_UNKNOWN;
var jsshell = (typeof window == "undefined");
var isRhinoTestBed = ('stderr' in this );
if (isRhinoTestBed) {
dump = function() {};
dumpln = dump;
printImportant = dump;
quit = function() {};
} else if (jsshell) {
dump = print;
dumpln = print;
printImportant = function(s) { dumpln("***"); dumpln(s); }
if (typeof line2pc == "function") {
engine = ENGINE_SPIDERMONKEY;
version(180); // 170: make "yield" and "let" work. 180: sane for..in.
options("anonfunfix");
} else if (typeof debug == "function") {
engine = ENGINE_JAVASCRIPTCORE;
}
} else {
if (navigator.userAgent.indexOf("WebKit") != -1) {
engine = ENGINE_JAVASCRIPTCORE;
// This worked in Safari 3.0, but it might not work in Safari 3.1.
dump = function(s) { console.log(s); }
} else if (navigator.userAgent.indexOf("Gecko") != -1) {
engine = ENGINE_SPIDERMONKEY;
} else if (typeof dump != "function") {
// In other browsers, jsfunfuzz does not know how to log anything.
dump = function() { };
}
dumpln = function(s) { dump(s + "\n"); }
printImportant = function(s) {
dumpln(s);
var p = document.createElement("pre");
p.appendChild(document.createTextNode(s));
document.body.appendChild(p);
}
}
if (typeof gc == "undefined")
gc = function(){};
function simpleSource(s)
{
function hexify(c)
{
var code = c.charCodeAt(0);
var hex = code.toString(16);
while (hex.length < 4)
hex = "0" + hex;
return "\\u" + hex;
}
if (typeof s == "string")
return "\"" + s.replace(/\\/g, "\\\\")
.replace(/\"/g, "\\\"")
.replace(/\0/g, "\\0")
.replace(/\n/g, "\\n")
.replace(/[^ -~]/g, hexify) // not space (32) through tilde (126)
+ "\"";
else
return "" + s; // hope this is right ;) should work for numbers.
}
var haveRealUneval = (typeof uneval == "function");
if (!haveRealUneval)
uneval = simpleSource;
if (engine == ENGINE_UNKNOWN)
printImportant("Targeting an unknown JavaScript engine!");
else if (engine == ENGINE_SPIDERMONKEY)
printImportant("Targeting SpiderMonkey / Gecko.");
else if (engine == ENGINE_JAVASCRIPTCORE)
printImportant("Targeting JavaScriptCore / WebKit.");
function printAndStop(s)
{
printImportant(s)
if (jsshell)
quit();
}
/***********************
* AVOIDING KNOWN BUGS *
***********************/
function whatToTestSpidermonkey(code)
{
return {
// Exclude things here if decompiling the function causes a crash.
allowDecompile: true
&& !(code.match( /for.*for.*in.*in/ )), // avoid bug 376370
// Exclude things here if decompiling returns something bogus that won't compile.
checkRecompiling: true
&& (code.indexOf("#") == -1) // avoid bug 367731
&& !( code.match( /for.*\(.*in.*const/ )) // avoid bug 352083, with for loops or array comprehensions
&& !( code.match( /arguments.*\:\:/ )) // avoid bug 355506
&& !( code.match( /\:.*for.*\(.*var.*\)/ )) // avoid bug 352921
&& !( code.match( /\:.*for.*\(.*let.*\)/ )) // avoid bug 352921
&& !( code.match( /do.*let.*while/ )) // avoid bug 352421
&& !( code.match( /for.*let.*\).*function/ )) // avoid bug 352735 (more rebracing stuff)
&& !( code.match( /for.*\(.*\(.*in.*;.*;.*\)/ )) // avoid bug 353255
&& !( code.match( /new.*\.\./ )) // avoid bug 382339
&& !( code.match( /new.*\.\(/ )) // avoid bug 377059 most of the time
&& !( code.match( /while.*for.*in/ )) // avoid bug 381963
,
// Exclude things here if decompiling returns something incorrect or non-canonical, but that will compile.
checkForMismatch: true
&& !( code.match( /const.*if/ )) // avoid bug 352985
&& !( code.match( /if.*const/ )) // avoid bug 352985
&& !( code.match( /const.*arguments/ )) // avoid bug 355480
&& !( code.match( /var.*arguments/ )) // avoid bug 355480
&& !( code.match( /let.*,/ )) // avoid bug 382400
&& !( code.match( /for.*;.*;/ )) // avoid bug 381195 :(
&& !( code.match( /\[.*\].*=.*\[.*=.*\]/ )) // avoid bug 376558
&& !( code.match( /with.*try.*function/ )) // avoid bug 418285
&& !( code.match( /if.*try.*function/ )) // avoid bug 418285
&& (code.indexOf("-0") == -1) // constant folding isn't perfect
&& (code.indexOf("-1") == -1) // constant folding isn't perfect
&& (code.indexOf("default") == -1) // avoid bug 355509 harder
&& (code.indexOf("delete") == -1) // avoid bug 352027, which won't be fixed for a while :(
&& (code.indexOf("const") == -1) // avoid bug 352985, bug 353020, and bug 355480 :(
&& (code.indexOf("import") == -1) // avoid bug 350681
&& (code.indexOf("export") == -1) // avoid bug 350681
&& (code.indexOf("?") == -1) // avoid bug 355203
&& (code.indexOf("p.z") == -1) // avoid bug 355672 (this is the most common trigger)
// avoid bug 352085: keep operators that coerce to number (or integer)
// at constant-folding time (?) away from strings
&&
(
(code.indexOf("\"") == -1 && code.indexOf("\'") == -1)
||
(
(code.indexOf("%") == -1)
&& (code.indexOf("/") == -1)
&& (code.indexOf("*") == -1)
&& (code.indexOf("-") == -1)
&& (code.indexOf(">>") == -1)
&& (code.indexOf("<<") == -1)
)
)
,
allowExec: true
&& code.indexOf("for..in") == -1 // for (x.y in x) causes infinite loops :(
&& code.indexOf("finally") == -1 // avoid bug 380018 and bug 381107 :(
&& code.indexOf("valueOf") == -1 // avoid bug 355829
&& code.indexOf("<>") == -1 // avoid bug 334628, hopefully
&& (jsshell || code.indexOf("nogeckoex") == -1)
&& !( code.match( /delete.*Function/ )) // avoid bug 352604 (exclusion needed despite the realFunction stuff?!)
&& !( code.match( /function.*::.*=/ )) // avoid ????
,
allowIter: true,
checkUneval: true
// exclusions won't be perfect, since functions can return things they don't
// appear to contain, e.g. with "return x;"
&& (code.indexOf("<") == -1 || code.indexOf(".") == -1) // avoid bug 379525
&& (code.indexOf("<>") == -1) // avoid bug 334628
&& code.indexOf("RegExp") == -1 // avoid bug 362582
};
}
function whatToTestJavaScriptCore(code)
{
return {
// Exclude things here if decompiling the function causes a crash.
allowDecompile: true,
checkRecompiling: true,
checkForMismatch: true
&& !code.match( /new.*\(.*\).*\./ ) // avoid bug 17931
&& !code.match( /new.*\(.*\).*\[/ ) // avoid bug 17931
,
allowExec: true
&& !code.match(/with.*const/) // avoid bug 17924
&& !code.match(/catch.*const/) // avoid bug 17924
&& !code.match(/break.*finally/) // avoid bug 17932
&& !code.match(/continue.*finally/) // avoid bug 17932
,
allowIter: false, // JavaScriptCore does not support |yield| and |Iterator|
checkUneval: false // JavaScriptCore does not support |uneval|
};
}
function whatToTestGeneric(code)
{
return {
allowDecompile: true,
checkRecompiling: true,
checkForMismatch: true,
allowExec: true,
allowIter: ("Iterator" in this),
checkUneval: haveRealUneval
};
}
if (engine == ENGINE_SPIDERMONKEY)
whatToTest = whatToTestSpidermonkey;
else if (engine == ENGINE_JAVASCRIPTCORE)
whatToTest = whatToTestJavaScriptCore;
else
whatToTest = whatToTestGeneric;
/*******************
* DRIVING & TESTS *
*******************/
var allMakers = [];
function totallyRandom(depth) {
var dr = depth + (rnd(5) - 2); // !
return (rndElt(allMakers))(dr);
}
function init()
{
for (var f in this)
if (f.indexOf("make") == 0 && typeof this[f] == "function")
allMakers.push(this[f]);
}
function start()
{
init();
// dumpln(uneval([f.name for each (f in allMakers)]));
count = 0;
if (jsshell) {
// Number of iterations: 20000 is good for use with multi_timed_run.py. (~40 seconds on a PowerBook G4; reduction isn't bad.)
// Raise for use without multi_timed_run.py (perhaps to Infinity).
// Lower for use with WAY_TOO_MUCH_GC, to 70 or so.
for (var i = 0; i < 20000; ++i)
testOne();
dumpln("It's looking good!"); // Magic string that multi_timed_run.py looks for
} else {
setTimeout(testStuffForAWhile, 200);
}
}
function testStuffForAWhile()
{
for (var j = 0; j < 100; ++j)
testOne();
if (count % 10000 < 100)
printImportant("Iterations: " + count);
setTimeout(testStuffForAWhile, 30);
}
function testOne()
{
++count;
var code = makeStatement(8);
// if (rnd(10) == 1) {
// var dp = "/*infloop-deParen*/" + rndElt(deParen(code));
// if (dp)
// code = dp;
// }
dumpln("count=" + count + "; tryItOut(" + uneval(code) + ");");
tryItOut(code);
}
function tryItOut(code)
{
// regexps can't match across lines, so strip line breaks.
var wtt = whatToTest(code.replace(/\n/g, " ").replace(/\r/g, " "));
// This section applies to all engines, so it should only be used for avoiding hangs.
wtt.allowExec = wtt.allowExec
&& code.indexOf("infloop") == -1
&& !( code.match( /const.*for/ )) // can be an infinite loop: function() { const x = 1; for each(x in ({a1:1})) dumpln(3); }
&& !( code.match( /for.*const/ )) // can be an infinite loop: for each(x in ...); const x;
&& !( code.match( /for.*in.*uneval/ )) // can be slow to loop through the huge string uneval(this), for example
&& !( code.match( /for.*for.*for.*for.*for/ )) // nested for loops (array comprehensions, etc) can take a while
;
if(verbose) {
dumpln("Verbose, count: " + count);
dumpln("allowExec=" + wtt.allowExec + ", allowDecompile=" + wtt.allowDecompile + ", checkRecompiling=" + wtt.checkRecompiling + ", checkForMismatch=" + wtt.checkForMismatch + ", allowIter=" + wtt.allowIter + ", checkUneval=" + wtt.checkUneval);
}
// tryHalves(code);
var f = tryCompiling(code, wtt.allowExec);
if (0) {
if (wtt.allowExec && ('sandbox' in this)) {
f = null;
if (trySandboxEval(code, false)) {
dumpln("Trying it again to see if it's a 'real leak' (???)")
trySandboxEval(code, true);
}
}
return;
}
if (f && wtt.allowDecompile) {
tryRoundTripStuff(f, code, wtt.checkRecompiling, wtt.checkForMismatch);
}
var rv = null;
if (wtt.allowExec && f) {
rv = tryRunning(f);
tryEnsureSanity();
if (0 && engine == ENGINE_SPIDERMONKEY) {
tryTestDVG(code);
tryEnsureSanity();
}
}
if (wtt.allowIter && rv && typeof rv == "object") {
tryIteration(rv);
tryEnsureSanity();
}
// "checkRecompiling && checkForMismatch" here to catch returned functions
if (wtt.checkRecompiling && wtt.checkForMismatch && wtt.checkUneval && rv && typeof rv == "object") {
testUneval(rv);
}
if (count % 1000 == 0) {
dumpln("Paranoid GC!")
dumpln(count);
realGC();
}
if(verbose)
dumpln("Done trying out that function!");
dumpln("");
}
function tryTestDVG(code)
{
var fullCode = "(function() { try { \n" + code + "\n; throw 1; } catch(exx) { this.nnn.nnn } })()";
try {
eval(fullCode);
} catch(e) {
if (e.message != "this.nnn is undefined") {
printAndStop("Wrong error message: " + e);
}
}
}
function tryCompiling(code, allowExec)
{
try {
// Try two methods of creating functions, just in case there are differences.
if (count % 2 == 0 && allowExec) {
if (verbose)
dumpln("About to compile, using eval hack.")
return eval("(function(){" + code + "});"); // Disadvantage: "}" can "escape", allowing code to *execute* that we only intended to compile. Hence the allowExec check.
}
else {
if (verbose)
dumpln("About to compile, using new Function.")
return new Function(code);
}
} catch(compileError) {
dumpln("Compiling threw: " + errorToString(compileError));
return null;
}
}
function trySandboxEval(code, isRetry)
{
// (function(){})() wrapping allows "return" when it's allowed outside.
// The line breaks are to allow single-line comments within code ("//" and "<!--").
if (!sandbox) {
sandbox = evalcx("");
}
var rv = null;
try {
rv = evalcx("(function(){\n" + code + "\n})();", sandbox);
} catch(e) {
rv = "Error from sandbox: " + errorToString(e);
}
try {
if (typeof rv != "undefined")
dumpln(rv);
} catch(e) {
dumpln("Sandbox error printing: " + errorToString(e));
}
rv = null;
if (1 || count % 100 == 0) { // count % 100 *here* is sketchy.
dumpln("Done with this sandbox.");
sandbox = null;
gc();
var currentHeapCount = countHeap()
dumpln("countHeap: " + currentHeapCount);
if (currentHeapCount > maxHeapCount) {
if (maxHeapCount != 0)
dumpln("A new record by " + (currentHeapCount - maxHeapCount) + "!");
if (isRetry)
throw new Error("Found a leak!");
maxHeapCount = currentHeapCount;
return true;
}
}
return false;
}
function tryRoundTripStuff(f, code, checkRecompiling, checkForMismatch)
{
if (verbose)
dumpln("About to do the 'toString' round-trip test");
// Functions are prettier with line breaks, so test toString before uneval.
checkRoundTripToString(f, code, checkRecompiling, checkForMismatch);
if (checkRecompiling && checkForMismatch && engine == ENGINE_SPIDERMONKEY) {
try {
checkForExtraParens(f, code);
} catch(e) { /* bug 355667 is annoying here too */ }
}
if (haveRealUneval) {
if (verbose)
dumpln("About to do the 'uneval' round-trip test");
checkRoundTripUneval(f, code, checkRecompiling, checkForMismatch);
}
}
function tryRunning(f)
{
try {
if (verbose)
dumpln("About to run it!");
rv = f();
if (verbose)
dumpln("It ran!");
return rv;
} catch(runError) {
if(verbose)
dumpln("Running threw! About to toString to error.");
dumpln("Running threw: " + errorToString(runError));
return null;
}
}
// Store things now so we can restore sanity later.
var realEval = eval;
var realFunction = Function;
var realGC = gc;
function tryEnsureSanity()
{
// At least one bug in the past has put exceptions in strange places. This also catches "eval getter" issues.
try { eval("") } catch(e) { dumpln("That really shouldn't have thrown: " + errorToString(e)); }
// Restore important stuff that might have been broken as soon as possible :)
if ('unwatch' in this) {
this.unwatch("eval")
this.unwatch("Function")
this.unwatch("gc")
}
if ('__defineSetter__' in this) {
// The only way to get rid of getters/setters is to delete the property.
delete eval;
// delete Function; // doh, this triggers bug 352604!
delete gc;
}
eval = realEval;
Function = realFunction;
gc = realGC;
// These can fail if the page creates a getter for "eval", for example.
if (!eval)
printImportant("WTF did my |eval| go?");
if (eval != realEval)
printImportant("WTF did my |eval| get replaced by?")
if (Function != realFunction)
printImportant("WTF did my |Function| get replaced by?")
}
function tryIteration(rv)
{
try {
if (!(Iterator(rv) === rv))
return; // not an iterator
}
catch(e) {
// Is it a bug that it's possible to end up here? Probably not!
dumpln("Error while trying to determine whether it's an iterator!");
dumpln("The error was: " + e);
return;
}
dumpln("It's an iterator!");
try {
var iterCount = 0;
var iterValue;
// To keep Safari-compatibility, don't use "let", "each", etc.
for /* each */ ( /* let */ iterValue in rv)
++iterCount;
dumpln("Iterating succeeded, iterCount == " + iterCount);
} catch (iterError) {
dumpln("Iterating threw!");
dumpln("Iterating threw: " + errorToString(iterError));
}
}
function testUneval(o)
{
// If it happens to return an object, especially an array or hash,
// let's test uneval. Note that this is a different code path than decompiling
// an array literal within a function, although the two code paths often have
// similar bugs!
var uo, euo, ueuo;
try {
uo = uneval(o);
} catch(e) {
if (errorToString(e).indexOf("called on incompatible") != -1) {
dumpln("Ignoring bug 379528!".toUpperCase());
return;
}
else
throw e;
}
if (uo == "({})") {
// ?
return;
}
var uowlb = uo.replace(/\n/g, " ").replace(/\r/g, " ");
dumpln("uneval returned the string: " + uo);
if ( true
&& uo.indexOf("[native code]") == -1 // ignore bug 384756
&& uo.indexOf(":<") == -1 // ignore the combination of bug 334628 with bug 379519(a)
&& (uo.indexOf("#") == -1 || uo.indexOf("<") == -1) // ignore bug 379519(b)
&& (uo.indexOf("#") == -1) // ignore bug 328745 (ugh)
&& (uo.indexOf("{") == -1 || uo.indexOf(":") == -1) // ignore bug 379525 hard (ugh!)
&& uo.indexOf("NaN") == -1 // ignore bug 379521
&& uo.indexOf("Infinity") == -1 // ignore bug 379521
&& uo.indexOf("[,") == -1 // avoid bug 379551
&& uo.indexOf(", ,") == -1 // avoid bug 379551
&& uo.indexOf(",]") == -1 // avoid bug 334628 / bug 379525?
&& uo.indexOf("[function") == -1 // avoid bug 380379?
&& uo.indexOf("[(function") == -1 // avoid bug 380379?
&& uo.indexOf("new Error") == -1 // ignore bug 380578
&& !uowlb.match(/<.*\/.*>.*<.*\/.*>/) // ignore bug 334628
&& !(uo == "{}" && !jsshell) // ignore bug 380959
)
{
// count=946; tryItOut("return (({ set x x (x) { yield /x/g } , x setter: ({}).hasOwnProperty }));");
uo = uo.replace(/\[native code\]/g, "");
try {
euo = eval(uo); // if this throws, something's wrong with uneval, probably
} catch(e) {
dumpln("The string returned by uneval failed to eval!");
printAndStop(e);
return;
}
ueuo = uneval(euo);
if (ueuo != uo) {
printAndStop("Mismatch with uneval/eval on the function's return value! " + "\n" + uo + "\n" + ueuo);
}
} else {
dumpln("Skipping re-eval test");
}
}
function tryHalves(code)
{
// See if there are any especially horrible bugs that appear when the parser has to start/stop in the middle of something. this is kinda evil.
// Stray "}"s are likely in secondHalf, so use new Function rather than eval. "}" can't escape from new Function :)
var f, firstHalf, secondHalf;
try {
firstHalf = code.substr(0, code.length / 2);
if (verbose)
dumpln("First half: " + firstHalf);
f = new Function(firstHalf);
"" + f;
}
catch(e) {
if (verbose)
dumpln("First half compilation error: " + e);
}
try {
secondHalf = code.substr(code.length / 2, code.length);
if (verbose)
dumpln("Second half: " + secondHalf);
f = new Function(secondHalf);
"" + f;
}
catch(e) {
if (verbose)
dumpln("Second half compilation error: " + e);
}
}
function errorToString(e)
{
try {
return ("" + e);
} catch (e2) {
return "Can't toString the error!!";
}
}
// Function round-trip with implicit toString
function checkRoundTripToString(f, code, checkRecompiling, checkForMismatch)
{
var uf, g;
try {
uf = "" + f;
} catch(e) { reportRoundTripIssue("Round-trip with implicit toString: can't toString", code, null, null, errorToString(e)); return; }
checkForCookies(uf);
if (checkRecompiling) {
try {
g = eval("(" + uf + ")");
if (checkForMismatch && (""+g) != (""+f) ) {
reportRoundTripIssue("Round-trip with implicit toString", code, f, g, "mismatch");
}
} catch(e) {
reportRoundTripIssue("Round-trip with implicit toString: error", code, f, g, errorToString(e));
}
}
}
// Function round-trip with uneval
function checkRoundTripUneval(f, code, checkRecompiling, checkForMismatch)
{
var g, uf, ug;
try {
uf = uneval(f);
} catch(e) { reportRoundTripIssue("Round-trip with uneval: can't uneval", code, null, null, errorToString(e)); return; }
checkForCookies(uf)
if (checkRecompiling) {
try {
g = eval("(" + uf + ")");
ug = uneval(g);
if (checkForMismatch && ug != uf) {
reportRoundTripIssue("Round-trip with uneval: mismatch", code, uf, ug, "mismatch");
}
} catch(e) { reportRoundTripIssue("Round-trip with uneval: error", code, uf, ug, errorToString(e)); }
}
}
function checkForCookies(code)
{
// http://lxr.mozilla.org/seamonkey/source/js/src/jsopcode.c#1613
// These are things that shouldn't appear in decompilations.
if (code.indexOf("/*EXCEPTION") != -1
|| code.indexOf("/*RETSUB") != -1
|| code.indexOf("/*FORELEM") != -1
|| code.indexOf("/*WITH") != -1)
printAndStop(code)
}
function reportRoundTripIssue(issue, code, fs, gs, e)
{
if (e.indexOf("missing variable name") != -1) {
dumpln("Bug 355667 sure is annoying!");
return;
}
var message = issue + "\n\n" +
"Code: " + uneval(code) + "\n\n" +
"fs: " + fs + "\n\n" +
"gs: " + gs + "\n\n" +
"error: " + e;
printAndStop(message);
}
function extractCode(f)
{
// throw away the first and last lines of the function's string representation
// (this happens to work on spidermonkey trunk, dunno about anywhere else)
var uf = "" + f;
var lines = uf.split("\n");
var innerLines = lines.slice(1, -1);
return innerLines.join("\n");
}
function compiles(code)
{
try {
new Function(code);
return true;
} catch(e) {
return false;
}
}
// Returns an array of strings of length (code.length-2),
// each having one pair of matching parens removed.
// Assumes all parens in code are significant. This assumption fails
// for strings or regexps, but whatever.
function deParen(code)
{
// Get a list of locations of parens.
var parenPairs = []; // array of { left : int, right : int } (indices into code string)
var unmatched = []; // stack of indices into parenPairs
var i, c;
for (i = 0; i < code.length; ++i) {
c = code.charCodeAt(i);
if (c == 40) {
// left paren
unmatched.push(parenPairs.length);
parenPairs.push({ left: i });
} else if (c == 41) {
// right paren
if (unmatched.length == 0)
return []; // eep! unmatched rparen!
parenPairs[unmatched.pop()].right = i;
}
}
if (unmatched.length > 0)
return []; // eep! unmatched lparen!
var rs = [];
// Don't add spaces in place of the parens, because we don't
// want to detect things like (5).x as being unnecessary use
// of parens.
for (i = 0; i < parenPairs.length; ++i) {
var left = parenPairs[i].left, right = parenPairs[i].right;
rs.push(
code.substr(0, left)
+ code.substr(left + 1, right - (left + 1))
+ code.substr(right + 1)
);
}
return rs;
}
// print(uneval(deParen("for (i = 0; (false); ++i) { x(); }")));
// print(uneval(deParen("[]")));
function checkForExtraParens(f, code)
{
var code = code.replace(/\n/g, " ").replace(/\r/g, " "); // regexps can't match across lines
var uf = "" + f;
// numbers get more parens than they need
if (uf.match(/\(\d/)) return;
if (uf.indexOf("(<") != -1) return; // bug 381204
if (uf.indexOf(".(") != -1) return; // bug 381207
if (uf.indexOf("else if") != -1) return; // bug 381742
if (code.indexOf("new") != -1) return; // "new" is weird. what can i say?
if (code.indexOf("let") != -1) return; // reasonable to overparenthesize "let" (see expclo#c33)
if (code.match(/for.*in.*=/)) return; // bug 381213
if (code.match(/\:.*function/)) return; // why?
if (uf.indexOf("(function") != -1) return; // expression closures over-parenthesize
if (code.match(/for.*yield/)) return; // why?
if (uf.indexOf("= (yield") != -1) return;
if (uf.indexOf(":(yield") != -1) return;
if (uf.indexOf(": (yield") != -1) return;
if (uf.indexOf(", (yield") != -1) return;
if (uf.indexOf("[(yield") != -1) return;
if (uf.indexOf("yield") != -1) return; // i give up on yield
// Sanity check
var euf = eval("(" + uf + ")");
var ueuf = "" + euf;
if (ueuf != uf)
printAndStop("Shouldn't the earlier round-trip test have caught this?");
var dps = deParen(uf);
// skip the first, which is the function's formal params.
for (i = 1; i < dps.length; ++i) {
var uf2 = dps[i];
try {
var euf2 = eval("(" + uf2 + ")");
} catch(e) { /* print("The latter did not compile. That's fine."); */ continue; }
var ueuf2 = "" + euf2
if (ueuf2 == ueuf) {
print(uf);
print(" vs ");
print(uf2);
print("Both decompile as:");
print(ueuf);
printAndStop("Unexpected match!!! Extra parens!?");
}
}
}
/**************
* RANDOMNESS *
**************/
function rnd(n)
{
return Math.floor(Math.random() * n);
}
function rndElt(a)
{
return a[rnd(a.length)];
}
/**************************
* TOKEN-LEVEL GENERATION *
**************************/
// Each input to |cat| should be a token or so, OR a bigger logical piece (such as a call to makeExpr). Smaller than a token is ok too ;)
// When "torture" is true, it may do any of the following:
// * skip a token
// * skip all the tokens to the left
// * skip all the tokens to the right
// * insert unterminated comments
// * insert line breaks
// * insert entire expressions
// * insert any token
// Even when not in "torture" mode, it may sneak in extra line breaks.
// Why did I decide to toString at every step, instead of making larger and larger arrays (or more and more deeply nested arrays?). no particular reason...
function cat(toks)
{
if (rnd(170) == 0)
return totallyRandom(2);
var torture = (rnd(170) == 57);
var s = maybeLineBreak();
for (var i = 0; i < toks.length; ++i) {
// Catch bugs in the fuzzer. An easy mistake is
// return /*foo*/ + ...
// instead of
// return "/*foo*/" + ...
// Unary plus in the first one coerces the string that follows to number!
if(typeof(toks[i]) != "string") {
dumpln("Strange item in the array passed to Tmean: toks[" + i + "] == " + toks[i]);
dumpln(Tmean.caller)
dumpln(Tmean.caller.caller)
printAndStop('yarr')
}
if (!(torture && rnd(12) == 0))
s += toks[i];
s += maybeLineBreak();
if (torture) switch(rnd(120)) {
case 0:
case 1:
case 2:
case 3:
case 4:
s += maybeSpace() + totallyRandom(2) + maybeSpace();
break;
case 5:
s = "(" + s + ")"; // randomly parenthesize some *prefix* of it.
break;
case 6:
s = ""; // throw away everything before this point
break;
case 7:
return s; // throw away everything after this point
case 8:
s += UNTERMINATED_COMMENT;
break;
case 9:
s += UNTERMINATED_STRING_LITERAL;
break;
case 10:
if (rnd(2))
s += "(";
s += UNTERMINATED_REGEXP_LITERAL;
break;
default:
}
}
return s;
}
// For reference and debugging.
/*
function catNice(toks)
{
var s = ""
var i;
for (i=0; i<toks.length; ++i) {
if(typeof(toks[i]) != "string")
printAndStop("Strange toks[i]: " + toks[i]);
s += toks[i];
}
return s;
}
*/
var UNTERMINATED_COMMENT = "/*"; /* this comment is here so my text editor won't get confused */
var UNTERMINATED_STRING_LITERAL = "'";
var UNTERMINATED_REGEXP_LITERAL = "/";
function maybeLineBreak()
{
if (rnd(900) == 3)
return rndElt(["\r", "\n", "//h\n", "/*\n*/"]); // line break to trigger semicolon insertion and stuff
else if (rnd(400) == 3)
return rnd(2) ? "\u000C" : "\t"; // weird space-like characters
else
return "";
}
function maybeSpace()
{
if (rnd(2) == 0)
return " ";
else
return "";
}
function stripSemicolon(c)
{
var len = c.length;
if (c.charAt(len - 1) == ";")
return c.substr(0, len - 1);
else
return c;
}
/*************************
* HIGH-LEVEL GENERATION *
*************************/
var TOTALLY_RANDOM = 100;
function makeStatement(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = rnd(depth); // instead of depth - 1;
if (depth < rnd(8)) // frequently for small depth, infrequently for large depth
return makeLittleStatement(dr);
return (rndElt(statementMakers))(dr)
}
var varBinder = ["var ", "let ", "const ", ""];
var statementMakers = [
// Late-defined consts can cause problems, so let's late-define them!
function(dr) { return cat([makeStatement(dr), " const ", makeId(dr), ";"]); },
function(dr) { return cat([makeStatement(dr), makeStatement(dr)]); },
function(dr) { return cat([makeStatement(dr-1), "\n", makeStatement(dr-1), "\n"]); },
// Stripping semilcolons. What happens if semicolons are missing? Especially with line breaks used in place of semicolons (semicolon insertion).
function(dr) { return cat([stripSemicolon(makeStatement(dr)), "\n", makeStatement(dr)]); },
function(dr) { return cat([stripSemicolon(makeStatement(dr)), "\n" ]); },
function(dr) { return stripSemicolon(makeStatement(dr)); }, // usually invalid, but can be ok e.g. at the end of a block with curly braces
// Blocks and loops
function(dr) { return cat(["{", makeStatement(dr), " }"]); },
function(dr) { return cat(["{", makeStatement(dr-1), makeStatement(dr-1), " }"]); },
function(dr) { return cat([maybeLabel(), "with", "(", makeExpr(dr), ")", makeStatementOrBlock(dr)]); },
function(dr) { return cat([maybeLabel(), "with", "(", "{", makeId(dr), ": ", makeExpr(dr), "}", ")", makeStatementOrBlock(dr)]); },
// C-style "for" loops
// Two kinds of "for" loops: one with an expression as the first part, one with a var or let binding 'statement' as the first part.
// I'm not sure if arbitrary statements are allowed there; I think not.
function(dr) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", makeExpr(dr), "; ", makeExpr(dr), "; ", makeExpr(dr), ") ", makeStatementOrBlock(dr)]); },
function(dr) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), makeId(dr), "; ", makeExpr(dr), "; ", makeExpr(dr), ") ", makeStatementOrBlock(dr)]); },
function(dr) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), makeDestructuringLValue(dr), " = ", makeExpr(dr), "; ", makeExpr(dr), "; ", makeExpr(dr), ") ", makeStatementOrBlock(dr)]); },
// "for..in" loops
// -- for (key in obj)
function(dr) { return "/*for..in*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), makeForInLHS(dr), " in ", makeExpr(dr-2), ") ", makeStatementOrBlock(dr)]); },
// -- for (key in generator())
function(dr) { return "/*for..in*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), makeForInLHS(dr), " in ", "(", "(", makeFunction(dr), ")", "(", makeExpr(dr), ")", ")", ")", makeStatementOrBlock(dr)]); },
// -- for each (value in obj)
function(dr) { return "/*for..in*/" + "/* nogeckoex bug 349964 */" + cat([maybeLabel(), " for ", " each", "(", rndElt(varBinder), makeLValue(dr), " in ", makeExpr(dr-2), ") ", makeStatementOrBlock(dr)]); },
// Modify something during a loop -- perhaps the thing being looped over
// Since we use "let" to bind the for-variables, and only do wacky stuff once, I *think* this is unlikely to hang.
// function(dr) { return "let forCount = 0; for (let " + makeId(dr) + " in " + makeExpr(dr) + ") { if (forCount++ == " + rnd(3) + ") { " + makeStatement(dr-1) + " } }"; },
// Hoisty "for..in" loops. I don't know why this construct exists, but it does, and it hoists the initial-value expression above the loop.
// With "var" or "const", the entire thing is hoisted.
// With "let", only the value is hoisted, and it can be elim'ed as a useless statement.
function(dr) { return "/*for..in*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), makeId(dr), " = ", makeExpr(dr), " in ", makeExpr(dr-2), ") ", makeStatementOrBlock(dr)]); },
function(dr) { return "/*for..in*/" + cat([maybeLabel(), "for", "(", rndElt(varBinder), "[", makeId(dr), ", ", makeId(dr), "]", " = ", makeExpr(dr), " in ", makeExpr(dr-2), ") ", makeStatementOrBlock(dr)]); },
function(dr) { return cat([maybeLabel(), "while((", makeExpr(dr), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, makeStatementOrBlock(dr)]); },
function(dr) { return "/*infloop*/" + cat([maybeLabel(), "while", "(", makeExpr(dr), ")", makeStatementOrBlock(dr)]); },
function(dr) { return cat([maybeLabel(), "do ", makeStatementOrBlock(dr), " while((", makeExpr(dr), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, ";"]); },
function(dr) { return "/*infloop*/" + cat([maybeLabel(), "do ", makeStatementOrBlock(dr), " while", "(", makeExpr(dr), ");"]); },
// Switch statement
function(dr) { return cat([maybeLabel(), "switch", "(", makeExpr(dr), ")", " { ", makeSwitchBody(dr), " }"]); },
// Let blocks, with and without multiple bindings, with and without initial values
function(dr) { return cat(["let ", "(", makeLetHead(dr), ")", " { ", makeStatement(dr), " }"]); },
// Conditionals, perhaps with 'else if' / 'else'
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", makeStatementOrBlock(dr)]); },
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), " else ", makeStatementOrBlock(dr-1)]); },
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), " else ", " if ", "(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1)]); },
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), " else ", " if ", "(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), " else ", makeStatementOrBlock(dr-1)]); },
// A tricky pair of if/else cases.
// In the SECOND case, braces must be preserved to keep the final "else" associated with the first "if".
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", "{", " if ", "(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), " else ", makeStatementOrBlock(dr-1), "}"]); },
function(dr) { return cat([maybeLabel(), "if(", makeExpr(dr), ") ", "{", " if ", "(", makeExpr(dr), ") ", makeStatementOrBlock(dr-1), "}", " else ", makeStatementOrBlock(dr-1)]); },
// Exception-related statements :)
function(dr) { return makeExceptionyStatement(dr-1); makeExceptionyStatement(dr-1); },
function(dr) { return makeExceptionyStatement(dr-1); makeExceptionyStatement(dr-1); },
function(dr) { return makeExceptionyStatement(dr); },
function(dr) { return makeExceptionyStatement(dr); },
function(dr) { return makeExceptionyStatement(dr); },
function(dr) { return makeExceptionyStatement(dr); },
function(dr) { return makeExceptionyStatement(dr); },
// Labels. (JavaScript does not have goto, but it does have break-to-label and continue-to-label).
function(dr) { return cat(["L", ": ", makeStatementOrBlock(dr)]); },
// Functions which are called?
// Tends to trigger OOM bugs
// function(dr) { return cat(["/*hhh*/function ", "x", "(", ")", "{", makeStatement(dr), "}", " ", "x", "(", makeActualArgList(dr), ")"]); }
];
function maybeLabel()
{
if (rnd(4) == 1)
return cat([rndElt(["L", "M"]), ":"]);
else
return "";
}
function makeSwitchBody(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var haveSomething = false;
var haveDefault = false;
var output = "";
do {
if (!haveSomething || rnd(2)) {
// Want a case/default (or, if this is the beginning, "need").
if (!haveDefault && rnd(2)) {
output += "default: ";
haveDefault = true;
}
else {
// cases with numbers (integers?) have special optimizations that affect order when decompiling,
// so be sure to test those well in addition to testing complicated expressions.
output += "case " + (rnd(2) ? rnd(10) : makeExpr(depth)) + ": ";
}
haveSomething = true;
}
// Might want a statement.
if (rnd(2))
output += makeStatement(depth)
// Might want to break, or might want to fall through.
if (rnd(2))
output += "break; ";
if (rnd(2))
--depth;
} while (depth && rnd(5));
return output;
}
function makeLittleStatement(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
if (rnd(4) == 1)
return makeStatement(dr);
return (rndElt(littleStatementMakers))(dr);
}
var littleStatementMakers =
[
// Tiny
function(dr) { return cat([";"]); }, // e.g. empty "if" block
function(dr) { return cat(["{", "}"]); ; }, // e.g. empty "if" block
function(dr) { return cat([""]); },
// Force garbage collection
function(dr) { return "gc()"; },
// Throw stuff.
function(dr) { return cat(["throw ", makeExpr(dr), ";"]); },
// Break/continue [to label].
function(dr) { return cat([rndElt(["continue", "break"]), " ", rndElt(["L", "M", "", ""]), ";"]); },
// Import and export. (I have not idea what these actually do.)
function(dr) { return cat(["export ", makeId(dr), ";"]); },
function(dr) { return cat(["export ", "*", ";"]); },
function(dr) { return cat(["import ", makeId(dr), ".", makeId(dr), ";"]); },
function(dr) { return cat(["import ", makeId(dr), ".", "*", ";"]); },
// Named and unnamed functions (which have different behaviors in different places: both can be expressions,
// but unnamed functions "want" to be expressions and named functions "want" to be special statements)
function(dr) { return makeFunction(dr); },
// Return, yield
function(dr) { return cat(["return ", makeExpr(dr), ";"]); },
function(dr) { return "return;"; }, // return without a value is allowed in generators; return with a value is not.
function(dr) { return cat(["yield ", makeExpr(dr), ";"]); }, // note: yield can also be a left-unary operator, or something like that
function(dr) { return "yield;"; },
// Expression statements
function(dr) { return cat([makeExpr(dr), ";"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", ";"]); },
// Various kinds of variable declarations, with and without initial values (assignment).
function(dr) { return cat([rndElt(varBinder), makeLetHead(dr), ";"]); }, // e.g. "const [a,b] = [3,4];"
function(dr) { return cat([rndElt(varBinder), makeLetHead(dr), ";"]); }, // e.g. "const [a,b] = [3,4];"
function(dr) { return cat([rndElt(varBinder), makeLetHead(dr), ";"]); }, // e.g. "const [a,b] = [3,4];"
];
// makeStatementOrBlock exists because often, things have different behaviors depending on where there are braces.
// for example, if braces are added or removed, the meaning of "let" can change.
function makeStatementOrBlock(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
return (rndElt(statementBlockMakers))(dr)
}
var statementBlockMakers = [
function(dr) { return makeStatement(dr); },
function(dr) { return makeStatement(dr); },
function(dr) { return cat(["{", makeStatement(dr), " }"]); },
function(dr) { return cat(["{", makeStatement(dr-1), makeStatement(dr-1), " }"]); },
]
// Extra-hard testing for try/catch/finally and related things.
function makeExceptionyStatement(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
if (dr < 1)
return makeLittleStatement(dr);
return (rndElt(exceptionyStatementMakers))(dr);
}
var exceptionyStatementMakers = [
function(dr) { return makeTryBlock(dr); },
function(dr) { return makeStatement(dr); },
function(dr) { return makeLittleStatement(dr); },
function(dr) { return "return;" }, // return without a value can be mixed with yield
function(dr) { return cat(["return ", makeExpr(dr), ";"]); },
function(dr) { return cat(["yield ", makeExpr(dr), ";"]); },
function(dr) { return cat(["throw ", makeId(dr), ";"]); },
function(dr) { return "throw StopIteration;"; },
function(dr) { return "this.zzz.zzz;"; }, // throws; also tests js_DecompileValueGenerator in various locations
function(dr) { return cat([makeId(dr), " = ", makeId(dr), ";"]); },
function(dr) { return cat([makeLValue(dr), " = ", makeId(dr), ";"]); },
// Iteration uses StopIteration internally.
// Iteration is also useful to test because it asserts that there is no pending exception.
function(dr) { return "for(let y in []);"; },
function(dr) { return "for(let y in [5,6,7,8]) " + makeExceptionyStatement(dr); },
// Brendan says these are scary places to throw: with, let block, lambda called immediately in let expr.
// And I think he was right.
function(dr) { return "with({}) " + makeExceptionyStatement(dr); },
function(dr) { return "with({}) { " + makeExceptionyStatement(dr) + " } "; },
function(dr) { return "let(" + makeLetHead(dr) + ") { " + makeExceptionyStatement(dr); + "}"},
function(dr) { return "let(" + makeLetHead(dr) + ") ((function(){" + makeExceptionyStatement(dr) + "})());" },
// Commented out due to causing too much noise on stderr and causing a nonzero exit code :/
/*
// Generator close hooks: called during GC in this case!!!
function(dr) { return "(function () { try { yield " + makeExpr(dr) + " } finally { " + makeStatement(dr) + " } })().next()"; },
function(dr) { return "(function () { try { yield " + makeExpr(dr) + " } finally { " + makeStatement(dr) + " } })()"; },
function(dr) { return "(function () { try { yield " + makeExpr(dr) + " } finally { " + makeStatement(dr) + " } })"; },
function(dr) {
return "function gen() { try { yield 1; } finally { " + makeStatement(dr) + " } } var i = gen(); i.next(); i = null;";
}
*/
];
function makeTryBlock(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
// Catches: 1/6 chance of having none
// Catches: maybe 2 + 1/2
// So approximately 4 recursions into makeExceptionyStatement on average!
// Therefore we want to keep the chance of recursing too much down...
var dr = depth - rnd(3);
var s = cat(["try", " { ", makeExceptionyStatement(dr), " } "]);
var numCatches = 0;
while(rnd(3) == 0) {
// Add a guarded catch, using an expression or a function call.
++numCatches;
if (rnd(2))
s += cat(["catch", "(", makeId(dr), " if ", makeExpr(dr), ")", " { ", makeExceptionyStatement(dr), " } "]);
else
s += cat(["catch", "(", makeId(dr), " if ", "(function(){", makeExceptionyStatement(dr), "})())", " { ", makeExceptionyStatement(dr), " } "]);
}
if (rnd(2)) {
// Add an unguarded catch.
++numCatches;
s += cat(["catch", "(", makeId(dr), ")", " { ", makeExceptionyStatement(dr), " } "]);
}
if (numCatches == 0 || rnd(2) == 1) {
// Add a finally.
s += cat(["finally", " { ", makeExceptionyStatement(dr), " } "]);
}
return s;
}
// Creates a string that sorta makes sense as an expression
function makeExpr(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
if (depth <= 0 || (rnd(7) == 1))
return makeTerm(depth - 1);
var dr = rnd(depth); // depth - 1;
var expr = (rndElt(exprMakers))(dr);
if (rnd(4) == 1)
return "(" + expr + ")";
else
return expr;
}
var binaryOps = [
// Long-standing JavaScript operators, roughly in order from http://www.codehouse.com/javascript/precedence/
" * ", " / ", " % ", " + ", " - ", " << ", " >> ", " >>> ", " < ", " > ", " <= ", " >= ", " instanceof ", " in ", " == ", " != ", " === ", " !== ",
" & ", " | ", " ^ ", " && ", " || ", " = ", " *= ", " /= ", " %= ", " += ", " -= ", " <<= ", " >>= ", " >>>=", " &= ", " ^= ", " |= ", " , ",
// . is special, so test it as a group of right-unary ops, a special exprMaker for property access, and a special exprMaker for the xml filtering predicate operator
// " . ",
// Added by E4X
" :: ", " .. ", " @ ",
// Frequent combinations of E4X things (and "*" namespace, which isn't produced by this fuzzer otherwise)
" .@ ", " .@*:: ", " .@x:: ",
];
var leftUnaryOps = [
"--", "++",
"!", "+", "-", "~",
"void ", "typeof ", "delete ",
"new ", // but note that "new" can also be a very strange left-binary operator
"yield " // see http://www.python.org/dev/peps/pep-0342/ . Often needs to be parenthesized, so there's also a special exprMaker for it.
];
var rightUnaryOps = [
"++", "--",
// E4X
".*", ".@foo", ".@*"
];
var specialProperties = [
"prop",
"__iterator__", "__count__",
"__noSuchMethod__",
"__parent__", "__proto__", "constructor", "prototype"
]
var exprMakers =
[
// Left-unary operators
function(dr) { return cat([rndElt(leftUnaryOps), makeExpr(dr)]); },
function(dr) { return cat([rndElt(leftUnaryOps), makeExpr(dr)]); },
function(dr) { return cat([rndElt(leftUnaryOps), makeExpr(dr)]); },
// Right-unary operators
function(dr) { return cat([makeExpr(dr), rndElt(rightUnaryOps)]); },
function(dr) { return cat([makeExpr(dr), rndElt(rightUnaryOps)]); },
function(dr) { return cat([makeExpr(dr), rndElt(rightUnaryOps)]); },
// Special properties: we love to set them!
function(dr) { return cat([makeExpr(dr), ".", rndElt(specialProperties)]); },
function(dr) { return cat([makeExpr(dr), ".", rndElt(specialProperties), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeId(dr), ".", rndElt(specialProperties), " = ", makeExpr(dr)]); },
// Binary operators
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), rndElt(binaryOps), makeExpr(dr)]); },
// Ternary operator
function(dr) { return cat([makeExpr(dr), " ? ", makeExpr(dr), " : ", makeExpr(dr)]); },
function(dr) { return cat([makeExpr(dr), " ? ", makeExpr(dr), " : ", makeExpr(dr)]); },
// In most contexts, yield expressions must be parenthesized, so including explicitly parenthesized yields makes actually-compiling yields appear more often.
function(dr) { return cat(["yield ", makeExpr(dr)]); },
function(dr) { return cat(["(", "yield ", makeExpr(dr), ")"]); },
// Array functions (including extras). The most interesting are map and filter, I think.
// These are mostly interesting to fuzzers in the sense of "what happens if i do strange things from a filter function?" e.g. modify the array.. :)
// This fuzzer isn't the best for attacking this kind of thing, since it's unlikely that the code in the function will attempt to modify the array or make it go away.
// The second parameter to "map" is used as the "this" for the function.
function(dr) { return cat(["[11,12,13,14]", ".", rndElt(["map", "filter", "some", "sort"]) ]); },
function(dr) { return cat(["[15,16,17,18]", ".", rndElt(["map", "filter", "some", "sort"]), "(", makeFunction(dr), ", ", makeExpr(dr), ")"]); },
function(dr) { return cat(["[", makeExpr(dr), "]", ".", rndElt(["map", "filter", "some", "sort"]), "(", makeFunction(dr), ")"]); },
// RegExp replace. This is interesting for same same reason as array extras.
function(dr) { return cat(["'fafafa'", ".", "replace", "(", "/", "a", "/", "g", ", ", makeFunction(dr), ")"]); },
// XML filtering predicate operator! It isn't lexed specially; there can be a space between the dot and the lparen.
function(dr) { return cat([makeId(dr), ".", "(", makeExpr(dr), ")"]); },
function(dr) { return cat([makeE4X(dr), ".", "(", makeExpr(dr), ")"]); },
// Dot (property access)
function(dr) { return cat([makeId(dr), ".", makeId(dr)]); },
function(dr) { return cat([makeExpr(dr), ".", makeId(dr)]); },
// Index into array
function(dr) { return cat([ makeExpr(dr), "[", makeExpr(dr), "]"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", "[", makeExpr(dr), "]"]); },
// Containment in an array or object (or, if this happens to end up on the LHS of an assignment, destructuring)
function(dr) { return cat([maybeSharpDecl(), "[", makeExpr(dr), "]"]); },
function(dr) { return cat([maybeSharpDecl(), "(", "{", makeId(dr), ": ", makeExpr(dr), "}", ")"]); },
// Sharps on random stuff?
function(dr) { return cat([maybeSharpDecl(), makeExpr(dr)]); },
// Functions: called immediately/not
function(dr) { return makeFunction(dr); },
function(dr) { return cat(["(", makeFunction(dr), ")", "(", makeActualArgList(dr), ")"]); },
// Try to call things that may or may not be functions.
function(dr) { return cat([ makeExpr(dr), "(", makeActualArgList(dr), ")"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", "(", makeActualArgList(dr), ")"]); },
function(dr) { return cat([ makeFunction(dr), "(", makeActualArgList(dr), ")"]); },
// Try to test function.call heavily.
function(dr) { return cat(["(", makeFunction(dr), ")", ".", "call", "(", makeExpr(dr), ", ", makeActualArgList(dr), ")"]); },
// Binary "new", with and without clarifying parentheses, with expressions or functions
function(dr) { return cat(["new ", makeExpr(dr), "(", makeActualArgList(dr), ")"]); },
function(dr) { return cat(["new ", "(", makeExpr(dr), ")", "(", makeActualArgList(dr), ")"]); },
function(dr) { return cat(["new ", makeFunction(dr), "(", makeActualArgList(dr), ")"]); },
function(dr) { return cat(["new ", "(", makeFunction(dr), ")", "(", makeActualArgList(dr), ")"]); },
// Sometimes we do crazy stuff, like putting a statement where an expression should go. This frequently causes a syntax error.
function(dr) { return stripSemicolon(makeLittleStatement(dr)); },
function(dr) { return ""; },
// Let expressions -- note the lack of curly braces.
function(dr) { return cat(["let ", "(", makeLetHead(dr), ") ", makeExpr(dr)]); },
// Array comprehensions (JavaScript 1.7)
function(dr) { return cat(["[", makeExpr(dr), makeComprehension(dr), "]"]); },
// Generator expressions (JavaScript 1.8)
function(dr) { return cat([ makeExpr(dr), makeComprehension(dr) ]); },
function(dr) { return cat(["(", makeExpr(dr), makeComprehension(dr), ")"]); },
function(dr) { return cat([" /* Comment */", makeExpr(dr)]); },
function(dr) { return cat(["\n", makeExpr(dr)]); }, // perhaps trigger semicolon insertion and stuff
function(dr) { return cat([makeExpr(dr), "\n"]); },
function(dr) { return cat([makeLValue(dr)]); },
// Assignment (can be destructuring)
function(dr) { return cat([makeLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeLValue(dr), " = ", makeExpr(dr)]); },
// Destructuring assignment
function(dr) { return cat([makeDestructuringLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeDestructuringLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeDestructuringLValue(dr), " = ", makeExpr(dr)]); },
function(dr) { return cat([makeDestructuringLValue(dr), " = ", makeExpr(dr)]); },
// Destructuring assignment with lots of group assignment
function(dr) { return cat([makeDestructuringLValue(dr), " = ", makeDestructuringLValue(dr)]); },
// Modifying assignment, with operators that do various coercions
function(dr) { return cat([makeLValue(dr), rndElt(["|=", "%=", "+=", "-="]), makeExpr(dr)]); },
// Watchpoints (similar to setters)
function(dr) { return cat([makeExpr(dr), ".", "watch", "(", uneval(makeId(dr)), ", ", makeFunction(dr), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "unwatch", "(", uneval(makeId(dr)), ")"]); },
// New-style getter/setter, imperative
function(dr) { return cat([makeExpr(dr), ".", "__defineGetter__", "(", uneval(makeId(dr)), ", ", makeFunction(dr), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "__defineSetter__", "(", uneval(makeId(dr)), ", ", makeFunction(dr), ")"]); },
function(dr) { return cat(["this", ".", "__defineGetter__", "(", uneval(makeId(dr)), ", ", makeFunction(dr), ")"]); },
function(dr) { return cat(["this", ".", "__defineSetter__", "(", uneval(makeId(dr)), ", ", makeFunction(dr), ")"]); },
// Old-style getter/setter, imperative
function(dr) { return cat([makeId(dr), ".", makeId(dr), " ", rndElt(["getter", "setter"]), "= ", makeFunction(dr)]); },
// Object literal
function(dr) { return cat(["(", "{", makeObjLiteralPart(dr), " }", ")"]); },
function(dr) { return cat(["(", "{", makeObjLiteralPart(dr), ", ", makeObjLiteralPart(dr), " }", ")"]); },
// Test js_ReportIsNotFunction heavily.
function(dr) { return "(p={}, (p.z = " + makeExpr(dr) + ")())"; },
// Test js_ReportIsNotFunction heavily.
// Test decompilation for ".keyword" a bit.
// Test throwing-into-generator sometimes.
function(dr) { return cat([makeExpr(dr), ".", "throw", "(", makeExpr(dr), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "yoyo", "(", makeExpr(dr), ")"]); },
// Throws, but more importantly, tests js_DecompileValueGenerator in various contexts.
function(dr) { return "this.zzz.zzz"; },
// Test eval in various contexts. (but avoid clobbering eval)
// Test the special "obj.eval" and "eval(..., obj)" forms.
function(dr) { return makeExpr(dr) + ".eval(" + makeExpr(dr) + ")"; },
function(dr) { return "eval(" + uneval(makeExpr(dr)) + ", " + makeExpr(dr) + ")"; },
function(dr) { return "eval(" + uneval(makeStatement(dr)) + ", " + makeExpr(dr) + ")"; },
// Uneval needs more testing than it will get accidentally. No cat() because I don't want uneval clobbered (assigned to) accidentally.
function(dr) { return "(uneval(" + makeExpr(dr) + "))"; },
// Object.prototype stuff
function(dr) { return cat([makeExpr(dr), ".", "hasOwnProperty", "(", uneval(makeId(dr)), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "propertyIsEnumerable", "(", uneval(makeId(dr)), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "isPrototypeOf", "(", makeExpr(dr), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "__lookupGetter__", "(", uneval(makeId(dr)), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "__lookupSetter__", "(", uneval(makeId(dr)), ")"]); },
function(dr) { return cat([makeExpr(dr), ".", "valueOf", "(", uneval("number"), ")"]); },
// Constructors. No "T" -- don't screw with the constructors themselves; just call them.
function(dr) { return "new " + rndElt(constructors) + "(" + makeActualArgList(dr) + ")"; },
function(dr) { return rndElt(constructors) + "(" + makeActualArgList(dr) + ")"; }
];
var constructors = [
"Error", "RangeError", "Exception",
"Function", "Date", "RegExp", "String", "Array", "Object", "Number", "Boolean",
"Iterator"
];
function maybeSharpDecl()
{
if (rnd(3) == 0)
return cat(["#", "" + (rnd(3)), "="]);
else
return "";
}
function makeObjLiteralPart(dr)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(dr);
switch(rnd(8))
{
// Old-style literal getter/setter
case 0: return cat([makeId(dr), " getter: ", makeFunction(dr)]);
case 1: return cat([makeId(dr), " setter: ", makeFunction(dr)]);
// New-style literal getter/setter
case 2: return cat([" get ", makeId(dr), maybeName(dr), "(", makeFormalArgList(dr-1), ")", makeFunctionBody(dr)]);
case 3: return cat([" set ", makeId(dr), maybeName(dr), "(", makeFormalArgList(dr-1), ")", makeFunctionBody(dr)]);
/*
case 3: return cat(["toString: ", makeFunction(dr), "}", ")"]);
case 4: return cat(["toString: function() { return this; } }", ")"]); }, // bwahaha
case 5: return cat(["toString: function() { return " + makeExpr(dr) + "; } }", ")"]); },
case 6: return cat(["valueOf: ", makeFunction(dr), "}", ")"]); },
case 7: return cat(["valueOf: function() { return " + makeExpr(dr) + "; } }", ")"]); },
*/
default: return cat([makeId(dr), ": ", makeExpr(dr)]);
}
}
function makeFunction(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
if(rnd(5) == 1)
return makeExpr(dr);
return (rndElt(functionMakers))(dr);
}
function makeFunPrefix(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
switch(rnd(20)) {
// Leaving this stuff out until bug 381203 is fixed.
// Eventually this stuff should be moved from functionMakers to somewhere
// like statementMakers, right?
// case 0: return "getter ";
// case 1: return "setter ";
default: return "";
}
}
function maybeName(depth)
{
if (rnd(2) == 0)
return " " + makeId(depth) + " ";
else
return "";
}
function makeFunctionBody(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
switch(rnd(4)) {
case 0: return cat([" { ", makeStatement(depth - 1), " } "]);
case 1: return cat([" { ", "return ", makeExpr(depth), " } "]);
case 2: return cat([" { ", "yield ", makeExpr(depth), " } "]);
case 3: return makeExpr(depth); // make an "expression closure"
}
}
var functionMakers = [
// Note that a function with a name is sometimes considered a statement rather than an expression.
// Functions and expression closures
function(dr) { return cat([makeFunPrefix(dr), "function", " ", maybeName(dr), "(", makeFormalArgList(dr), ")", makeFunctionBody(dr)]); },
function(dr) { return cat([makeFunPrefix(dr), "function", " ", maybeName(dr), "(", makeFormalArgList(dr), ")", makeFunctionBody(dr)]); },
function(dr) { return cat([makeFunPrefix(dr), "function", " ", maybeName(dr), "(", makeFormalArgList(dr), ")", makeFunctionBody(dr)]); },
function(dr) { return cat([makeFunPrefix(dr), "function", " ", maybeName(dr), "(", makeFormalArgList(dr), ")", makeFunctionBody(dr)]); },
// The identity function
function(dr) { return "function(q) { return q; }" },
// A generator that does something
function(dr) { return "function(y) { yield y; " + makeStatement(dr) + "; yield y; }" },
// A generator expression -- kinda a function??
function(dr) { return "(1 for (x in []))"; },
// Special functions that might have interesting results, especially when called "directly" by things like string.replace or array.map.
function(dr) { return "eval" }, // eval is interesting both for its "no indirect calls" feature and for the way it's implemented -- a special bytecode.
function(dr) { return "new Function" }, // this won't be interpreted the same way for each caller of makeFunction, but that's ok
function(dr) { return "(new Function(" + uneval(makeStatement(dr)) + "))"; },
function(dr) { return "Function" }, // without "new"! it does seem to work...
function(dr) { return "gc" },
function(dr) { return "Math.sin" },
function(dr) { return "Math.pow" },
function(dr) { return "/a/gi" }, // in Firefox, at least, regular expressions can be used as functions: e.g. "hahaa".replace(/a+/g, /aa/g) is "hnullhaa"!
function(dr) { return "[1,2,3,4].map" },
function(dr) { return "[1,2,3,4].slice" },
function(dr) { return "'haha'.split" },
function(dr) { return "({}).hasOwnProperty" },
function(dr) { return "({}).__lookupGetter__" },
function(dr) { return cat(["(", makeFunction(dr), ")", ".", "call"]); },
function(dr) { return cat(["(", makeFunction(dr), ")", ".", "apply"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", ".", "watch"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", ".", "__defineSetter__"]); },
];
function makeLetHead(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
if (rnd(2) == 1)
return makeLetHeadItem(depth);
else
return makeLetHeadItem(depth) + ", " + makeLetHeadItem(depth - 1);
}
function makeLetHeadItem(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
// 0 or more things being declared
var lhs = (rnd(3) == 1) ? makeDestructuringLValue(dr) : makeId(dr);
// initial value
var rhs = (rnd(2) == 1) ? (" = " + makeExpr(dr)) : "";
return lhs + rhs;
}
function makeActualArgList(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var nArgs = rnd(3);
if (nArgs == 0)
return "";
var argList = makeExpr(depth);
for (var i = 1; i < nArgs; ++i)
argList += ", " + makeExpr(depth - i);
return argList;
}
function makeFormalArgList(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var nArgs = rnd(3);
if (nArgs == 0)
return "";
var argList = makeFormalArg(depth)
for (var i = 1; i < nArgs; ++i)
argList += ", " + makeFormalArg(depth - i);
return argList;
}
function makeFormalArg(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
if (rnd(4) == 1)
return makeDestructuringLValue(depth);
return makeId(depth);
}
function makeId(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth; // !
switch(rnd(200))
{
case 0:
return makeTerm(dr);
case 1:
return makeExpr(dr);
case 2: case 3: case 4: case 5:
return makeLValue(dr);
case 6: case 7:
return makeDestructuringLValue(dr);
case 8: case 9: case 10:
// some keywords that can be used as identifiers in some contexts (e.g. variables, function names, argument names)
// but that's annoying, and some of these cause lots of syntax errors.
return rndElt(["get", "set", "getter", "setter", "delete", "let", "yield", "each"]);
case 11: case 12: case 13:
return "function::" + makeId(dr);
case 14:
return "x::" + makeId(dr);
case 15: case 16:
return rndElt(specialProperties);
}
return rndElt(["x", "x", "x", "x", "x", "x", "x", "x", // repeat "x" so it's likely to be bound more than once, causing "already bound" errors, elimination of assign-to-const, or conflicts
"x1", "x2", "x3", "x4", "x5",
"y", "window", "this", "\u3056", "NaN",
// "valueOf", "toString", // e.g. valueOf getter :P // bug 381242, etc
"functional", // perhaps decompiler code looks for "function"?
" " // [k, v] becomes [, v] -- test how holes are handled in unexpected destructuring
]);
// window is a const (in the browser), so some attempts to redeclare it will cause errors
// eval is interesting because it cannot be called indirectly. and maybe also because it has its own opcode in jsopcode.tbl.
// but bad things happen if you have "eval setter"... so let's not put eval in this list.
}
function makeComprehension(dr)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(dr);
if (dr < 0)
return "";
switch(rnd(4)) {
case 0:
return "";
case 1:
return cat([" for ", "(", makeForInLHS(dr), " in ", makeExpr(dr-2), ")"]) + makeComprehension(dr - 1);
case 2:
return cat([" for ", "each ", "(", makeId(dr), " in ", makeExpr(dr-2), ")"]) + makeComprehension(dr - 1);
case 3:
return cat([" if ", "(", makeExpr(dr-2), ")"]); // this is always last (and must be preceded by a "for", oh well)
}
}
// for..in LHS can be a single variable OR it can be a destructuring array of exactly two elements.
function makeForInLHS(dr)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(dr);
// JS 1.7 only (removed in JS 1.8)
//
// if (version() == 170 && rnd(4) == 0)
// return cat(["[", makeLValue(dr), ", ", makeLValue(dr), "]"]);
return makeLValue(dr);
}
function makeLValue(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
if (depth <= 0 || (rnd(2) == 1))
return makeId(depth - 1);
var dr = rnd(depth);
return (rndElt(lvalueMakers))(dr);
}
var lvalueMakers = [
// Simple variable names :)
function(dr) { return cat([makeId(dr)]); },
// Destructuring
function(dr) { return makeDestructuringLValue(dr); },
function(dr) { return makeDestructuringLValue(dr); },
// Properties
function(dr) { return cat([makeId(dr), ".", makeId(dr)]); },
function(dr) { return cat([makeExpr(dr), ".", makeId(dr)]); },
function(dr) { return cat([makeExpr(dr), "[", "'", makeId(dr), "'", "]"]); },
// Special properties
function(dr) { return cat([makeId(dr), ".", rndElt(specialProperties)]); },
// Certain functions can act as lvalues! See JS_HAS_LVALUE_RETURN in js engine source.
function(dr) { return cat([makeId(dr), "(", makeExpr(dr), ")"]); },
function(dr) { return cat(["(", makeExpr(dr), ")", "(", makeExpr(dr), ")"]); },
// Parenthesized lvalues can cause problems ;)
function(dr) { return cat(["(", makeLValue(dr), ")"]); },
function(dr) { return makeExpr(dr); } // intentionally bogus, but not quite garbage.
];
function makeDestructuringLValue(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
var dr = depth - 1;
if (dr < 0 || rnd(4) == 1)
return makeId(dr);
if (rnd(6) == 1)
return makeLValue(dr);
return (rndElt(destructuringLValueMakers))(dr);
}
var destructuringLValueMakers = [
// destructuring assignment: arrays
function(dr)
{
var len = rnd(6);
if (len == 0)
return "[]";
var Ti = [];
Ti.push("[");
Ti.push(maybeMakeDestructuringLValue(dr));
for (var i = 1; i < len; ++i) {
Ti.push(", ");
Ti.push(maybeMakeDestructuringLValue(dr));
}
Ti.push("]");
return cat(Ti);
},
// destructuring assignment: objects
function(dr) { return cat(["(", "{ ", makeId(dr), ": ", makeDestructuringLValue(dr), " }", ")"]); },
function(dr) { return cat(["(", "{ ", makeId(dr), ": ", makeDestructuringLValue(dr), ", ", makeId(dr), ": ", makeDestructuringLValue(dr), " }", ")"]); },
];
// Allow "holes".
function maybeMakeDestructuringLValue(depth)
{
if (rnd(2) == 0)
return ""
return makeDestructuringLValue(depth)
}
function makeTerm(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
return (rndElt(termMakers))(depth);
}
var termMakers = [
// Variable names
function(dr) { return makeId(dr); },
// Simple literals (no recursion required to make them)
function(dr) { return rndElt([
// Arrays
"[]", "[1]", "[[]]", "[[1]]", "[,]", "[,,]", "[1,,]",
// Objects
"{}", "({})", "({a1:1})",
// Possibly-destructuring arrays
"[z1]", "[z1,,]", "[,,z1]",
// Possibly-destructuring objects
"({a2:z2})",
// Sharp use
"#1#",
// Sharp creation and use
"#1=[#1#]", "#3={a:#3#}",
"function(id) { return id }",
"function ([y]) { }",
"(function ([y]) { })()",
"arguments"
]);
},
function(dr) { return rndElt([ "0.1", ".2", "3", "1.3", "4.", "5.0000000000000000000000", "1.2e3", "1e81", "1e+81", "1e-81", "1e4", "0", "-0", "(-0)", "-1", "(-1)", "0x99", "033", (""+Math.PI), "3/0", "-3/0", "0/0" /*, "(0x50505050 >> 1)" */ ]); },
function(dr) { return rndElt([ "true", "false", "undefined", "null"]); },
function(dr) { return rndElt([ "this", "window" ]); },
function(dr) { return rndElt([" \"\" ", " '' ", " /x/ ", " /x/g "]) },
// E4X literals
function(dr) { return rndElt([ "<x/>", "<y><z/></y>"]); },
function(dr) { return rndElt([ "@foo" /* makes sense in filtering predicates, at least... */, "*", "*::*"]); },
function(dr) { return makeE4X(dr) }, // xml
function(dr) { return cat(["<", ">", makeE4X(dr), "<", "/", ">"]); }, // xml list
];
function maybeMakeTerm(depth)
{
if (rnd(2))
return makeTerm(depth - 1);
else
return "";
}
function makeCrazyToken()
{
if (rnd(2) == 0) {
// This can be more aggressive once bug 368694 is fixed.
return String.fromCharCode(32 + rnd(128 - 32));
}
return rndElt([
// Some of this is from reading jsscan.h.
// Comments; comments hiding line breaks.
"//", UNTERMINATED_COMMENT, (UNTERMINATED_COMMENT + "\n"), "/*\n*/",
// groupers (which will usually be unmatched if they come from here ;)
"[", "]",
"{", "}",
"(", ")",
// a few operators
"!", "@", "%", "^", "*", "|", ":", "?", "'", "\"", ",", ".", "/",
"~", "_", "+", "=", "-", "++", "--", "+=", "%=", "|=", "-=",
"#", "#1", "#1=", // usually an "invalid character", but used as sharps too
// most real keywords plus a few reserved keywords
" in ", " instanceof ", " let ", " new ", " get ", " for ", " if ", " else ", " else if ", " try ", " catch ", " finally ", " export ", " import ", " void ", " with ",
" default ", " goto ", " case ", " switch ", " do ", " /*infloop*/while ", " return ", " yield ", " break ", " continue ", " typeof ", " var ", " const ",
// several keywords can be used as identifiers. these are just a few of them.
" enum ", // JS_HAS_RESERVED_ECMA_KEYWORDS
" debugger ", // JS_HAS_DEBUGGER_KEYWORD
" super ", // TOK_PRIMARY!
" this ", // TOK_PRIMARY!
" null ", // TOK_PRIMARY!
" undefined ", // not a keyword, but a default part of the global object
"\n", // trigger semicolon insertion, also acts as whitespace where it might not be expected
"\r",
"\u2028", // LINE_SEPARATOR?
"\u2029", // PARA_SEPARATOR?
"<" + "!" + "--", // beginning of HTML-style to-end-of-line comment (!)
"--" + ">", // end of HTML-style comment
"",
"\0", // confuse anything that tries to guess where a string ends. but note: "illegal character"!
]);
}
function makeE4X(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
if (depth <= 0)
return cat(["<", "x", ">", "<", "y", "/", ">", "<", "/", "x", ">"]);
var dr = depth - 1;
var y = [
function(dr) { return '<employee id="1"><name>Joe</name><age>20</age></employee>' },
function(dr) { return cat(["<", ">", makeSubE4X(dr), "<", "/", ">"]); }, // xml list
function(dr) { return cat(["<", ">", makeExpr(dr), "<", "/", ">"]); }, // bogus or text
function(dr) { return cat(["<", "zzz", ">", makeExpr(dr), "<", "/", "zzz", ">"]); }, // bogus or text
// mimic parts of this example at a time, from the e4x spec: <x><{tagname} {attributename}={attributevalue+attributevalue}>{content}</{tagname}></x>;
function(dr) { var tagId = makeId(dr); return cat(["<", "{", tagId, "}", ">", makeSubE4X(dr), "<", "/", "{", tagId, "}", ">"]); },
function(dr) { var attrId = makeId(dr); var attrValExpr = makeExpr(dr); return cat(["<", "xxx", " ", "{", attrId, "}", "=", "{", attrValExpr, "}", " ", "/", ">"]); },
function(dr) { var contentId = makeId(dr); return cat(["<", "xxx", ">", "{", contentId, "}", "<", "/", "xxx", ">"]); },
// namespace stuff
function(dr) { var contentId = makeId(dr); return cat(['<', 'bbb', ' ', 'xmlns', '=', '"', makeExpr(dr), '"', '>', makeSubE4X(dr), '<', '/', 'bbb', '>']); },
function(dr) { var contentId = makeId(dr); return cat(['<', 'bbb', ' ', 'xmlns', ':', 'ccc', '=', '"', makeExpr(dr), '"', '>', '<', 'ccc', ':', 'eee', '>', '<', '/', 'ccc', ':', 'eee', '>', '<', '/', 'bbb', '>']); },
function(dr) { return makeExpr(dr); },
function(dr) { return makeSubE4X(dr); }, // naked cdata things, etc.
]
return (rndElt(y))(dr);
}
function makeSubE4X(depth)
{
if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(depth);
// Bug 380431
// if (rnd(8) == 0)
// return "<" + "!" + "[" + "CDATA[" + makeExpr(depth - 1) + "]" + "]" + ">"
if (depth < -2)
return "";
var y = [
function(depth) { return cat(["<", "ccc", ":", "ddd", ">", makeSubE4X(depth - 1), "<", "/", "ccc", ":", "ddd", ">"]); },
function(depth) { return makeE4X(depth) + makeSubE4X(depth - 1); },
function(depth) { return "yyy"; },
function(depth) { return cat(["<", "!", "--", "yy", "--", ">"]); }, // XML comment
// Bug 380431
// function(depth) { return cat(["<", "!", "[", "CDATA", "[", "zz", "]", "]", ">"]); }, // XML cdata section
function(depth) { return " "; },
function(depth) { return ""; },
];
return (rndElt(y))(depth);
}
var count;
var verbose = false;
var maxHeapCount = 0;
var sandbox = null;
// https://bugzilla.mozilla.org/show_bug.cgi?id=394853#c19
//try { eval("/") } catch(e) { }
// Remember the number of countHeap.
tryItOut("");
init();
/**************************************
* To reproduce a crash or assertion: *
**************************************/
// 1. Comment "start();" out.
//start();
// 2. Paste the "tryItOut" lines from the run's output in here.
// grep tryIt LOGFILE | grep -v "function tryIt"
// If you're lucky, you'll only need the last line. Otherwise, use Lithium to
// figure out which lines are needed.
// DDBEGIN
// DDEND
// 3. Run it.
for (var i = 0; i < 10000; i++)
makeStatement(8);
| 7,758 |
https://github.com/SAP/openui5/blob/master/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js
|
Github Open Source
|
Open Source
|
Apache-2.0, LicenseRef-scancode-unknown-license-reference
| 2,023 |
openui5
|
SAP
|
JavaScript
|
Code
| 481 | 2,039 |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/ui/thirdparty/jquery",
"sap/ui/documentation/sdk/controller/BaseController",
"sap/ui/model/json/JSONModel",
"sap/ui/documentation/library",
"sap/base/util/Version",
"sap/base/Log",
"sap/ui/documentation/sdk/util/Resources"
], function(jQuery, BaseController, JSONModel, library, Version, Log, ResourcesUtil) {
"use strict";
var sNeoAppJsonPath = ResourcesUtil.getResourceOriginPath("neo-app.json"),
sSapUiVersionJsonPath = ResourcesUtil.getResourceOriginPath("resources/sap-ui-version.json");
return BaseController.extend("sap.ui.documentation.sdk.controller.ReleaseNotes", {
onInit: function() {
this._oView = this.getView();
// Async resource handling
this._requestResources();
this._resourceAvailabilityHandler();
// Setup models
this._oModel = new JSONModel();
this._oVersionModel = new JSONModel();
this._oView.setModel(this._oModel);
this._oView.setModel(this._oVersionModel, "select");
library._getAppInfo(this._processAppInfo.bind(this));
},
_processAppInfo: function (oAppInfo) {
var oVersion,
iMajor,
iMinor,
sVersion,
oVersions;
if (!(oAppInfo)) {
return;
}
oVersion = Version(oAppInfo.version);
iMajor = oVersion.getMajor();
iMinor = oVersion.getMinor();
if (oVersion.getSuffix() !== "") {
if (iMinor % 2 !== 0) {
iMinor = (iMinor + 1);
}
}
sVersion = iMajor + "." + iMinor;
this._updateVersionInformation(sVersion);
oVersions = {
items : []
};
while (iMinor >= 28) {
sVersion = iMajor + "." + iMinor;
oVersions.items.push({
key : sVersion,
value : sVersion
});
iMinor = iMinor - (iMinor <= 60 ? 2 : 1);
}
this._oVersionModel.setData(oVersions);
this.appendPageTitle(this.getModel("i18n").getProperty("RELEASE_NOTES_TITLE"));
},
_processLibInfo: function (aLibs, oLibInfos) {
var iReleaseNotes,
aReturnLibs = [],
iLength = aLibs.length,
fnProcessLib,
i;
fnProcessLib = function(sVersion, oValue) {
iReleaseNotes += oValue.notes.length;
aLibs[i].versions.push({
version : sVersion,
notes : oValue.notes
});
aLibs[i].versions.sort(function(a, b) {
return Version(b.version).compareTo(a.version);
});
};
for (i = 0; i < iLength; i++) {
aLibs[i] = oLibInfos[aLibs[i]];
aLibs[i].versions = [];
if (aLibs[i].relnotes) {
iReleaseNotes = 0;
jQuery.each(aLibs[i].relnotes, fnProcessLib);
// We publish the library in the model only if there are release notes available
if (iReleaseNotes > 0) {
aReturnLibs.push(aLibs[i]);
}
}
}
this._oModel.setData({libs: aReturnLibs});
this._hideBusyIndicator();
},
_requestResources: function () {
this._oNeoAppJsonPromise = jQuery.ajax(sNeoAppJsonPath);
this._oSapUiVersionJsonPromise = jQuery.ajax(sSapUiVersionJsonPath);
},
_resourceAvailabilityHandler: function () {
jQuery.when(this._oNeoAppJsonPromise, this._oSapUiVersionJsonPromise).then(
// Success
function(oNeoAppJson, oSapUiVersionJson) {
// Store needed data
this._oNeoAppVersions = oNeoAppJson[0].routes;
this._sSapUiVersion = oSapUiVersionJson[0].version;
// Make version select visible
this._oView.byId("VersionSelect").setVisible(true);
}.bind(this),
// Error
function() {
Log.warning("No neo-app.json was detected");
}
);
},
/**
* Compares 2 UI5 version strings taking into account only major and minor version info
* @returns {boolean}
*/
_compareUI5Versions: function (sVersionA, sVersionB) {
var oVA = Version(sVersionA),
oVB = Version(sVersionB);
return (oVA.getMajor() + "." + oVA.getMinor()) === (oVB.getMajor() + "." + oVB.getMinor());
},
_updateLastReleasedVersion: function (sVersion) {
// If selected version is the same as release version check that last released version is not higher
// than release version and if so set the release version as last
if (this._compareUI5Versions(sVersion, this._sSapUiVersion) &&
parseFloat(this._sLastReleasedVersion) > parseFloat(this._sSapUiVersion)) {
this._sLastReleasedVersion = this._sSapUiVersion;
}
},
_getLastVersionFromNeoAppJson: function(sSelectedItem){
var iLength = this._oNeoAppVersions ? this._oNeoAppVersions.length : 0,
sVersion,
i;
for (i = 0; i < iLength; i++) {
sVersion = this._oNeoAppVersions[i].target.version;
if (this._compareUI5Versions(sVersion, sSelectedItem)) {
return sVersion;
}
}
},
handleVersionChange: function (oEvent) {
var oItem = oEvent.getParameter("selectedItem"),
sSelectedVersion = oItem.getKey();
this._updateVersionInformation(sSelectedVersion);
},
_updateVersionInformation: function(sSelectedVersion) {
var sVersion;
this._sLastReleasedVersion = this._getLastVersionFromNeoAppJson(sSelectedVersion);
this._updateLastReleasedVersion(sSelectedVersion);
// Fallback if there is no version info available in resource files
sVersion = this._sLastReleasedVersion ? this._sLastReleasedVersion : sSelectedVersion;
this._showBusyIndicator();
library._loadAllLibInfo("", "_getLibraryInfoAndReleaseNotes", sVersion,
this._processLibInfo.bind(this));
},
_showBusyIndicator: function () {
this.byId("releaseNotesObjectPage").setBusy(true);
},
_hideBusyIndicator: function () {
this.byId("releaseNotesObjectPage").setBusy(false);
}
});
}
);
| 31,780 |
https://github.com/EndlessCheng/codeforces-go/blob/master/main/400-499/449B.go
|
Github Open Source
|
Open Source
|
MIT
| 2,023 |
codeforces-go
|
EndlessCheng
|
Go
|
Code
| 250 | 744 |
package main
import (
"bufio"
"container/heap"
. "fmt"
"io"
)
// github.com/EndlessCheng/codeforces-go
type pr49 struct {
v int
d int64
isT bool
}
type hp49 []pr49
func (h hp49) Len() int { return len(h) }
func (h hp49) Less(i, j int) bool { return h[i].d < h[j].d || h[i].d == h[j].d && !h[i].isT } // 同等距离下优先选不是火车的路
func (h hp49) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
func (h *hp49) Push(v interface{}) { *h = append(*h, v.(pr49)) }
func (h *hp49) Pop() (v interface{}) { a := *h; *h, v = a[:len(a)-1], a[len(a)-1]; return }
func (h *hp49) push(v pr49) { heap.Push(h, v) }
func (h *hp49) pop() pr49 { return heap.Pop(h).(pr49) }
func CF449B(_r io.Reader, out io.Writer) {
in := bufio.NewReader(_r)
var n, m, k, v, w, wt, ans int
Fscan(in, &n, &m, &k)
type nb struct {
to, wt int
isT bool
}
g := make([][]nb, n)
for ; m > 0; m-- {
Fscan(in, &v, &w, &wt)
v--
w--
g[v] = append(g[v], nb{w, wt, false})
g[w] = append(g[w], nb{v, wt, false})
}
for ; k > 0; k-- {
Fscan(in, &w, &wt)
g[0] = append(g[0], nb{w - 1, wt, true})
}
vis := make([]bool, n)
q := hp49{{}}
for len(q) > 0 {
p := q.pop()
v := p.v
if vis[v] {
if p.isT {
ans++
}
continue
}
vis[v] = true
for _, e := range g[v] {
q.push(pr49{e.to, p.d + int64(e.wt), e.isT})
}
}
Fprint(out, ans)
}
//func main() { CF449B(os.Stdin, os.Stdout) }
| 46,407 |
https://github.com/GroupeStageSPPP/Mission1/blob/master/.gitignore
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,014 |
Mission1
|
GroupeStageSPPP
|
Ignore List
|
Code
| 5 | 15 |
*/bin
*.tmp
*.zip
*.pdf
*/obj
| 30,097 |
US-90819206-A_2
|
USPTO
|
Open Government
|
Public Domain
| 2,006 |
None
|
None
|
English
|
Spoken
| 7,159 | 15,515 |
Preparation of Compounds of Formula (I) and their Conversion tohomopolymers, copolymers, and oligomers, are illustrated in Schemes 1-9.
Synthesis of Compounds of Formula (I)—Monomer Ligands
Compounds of formula (I) are generally prepared as shown schematicallybelow and as described in greater detail in the Experimental andExamples section.
Several salicylaldehydes functionalized with an immobilizing or couplinggroup, such as, —OH, —SAc, or —CH═CH₂, and a linker (L′) of either arigid spacer (phenylacetylene or phenylene) or a flexible spacer (alkylor ethylene glycol) were prepared as precursors in the synthesis ofunsymmetrical salen ligands, as outlined in Scheme 1.
For the preparation rigid of linker-based compounds, a Pd-catalyzedSonogashira or Suzuki coupling reactions to yield 2a-c (Path A) wasemployed. Both coupling reactions showed tolerance to the presence ofhydroxy, acetylsulfanyl, vinyl, or formyl functional groups.Salicylaldehydes 2d and 2e were produced by nucleophilic substitutionsof 3-tert-butyl-5-chloromethylsalicylaldehyde with RONa (R═H, —CH₂CH₂OH)(Path B). Friedel-Crafts alkylation of 2-tert-butylphenol with7-methyl-7-octenoic acid, followed by the reduction of the carboxylicacid with LiAlH₄ and the acid-catalyzed formylation reaction produced 2fwith a long alkyl chain (Path C).
As shown in Scheme 2, for the preparation of enantiopure unsymmetricalsalen ligands, a one-pot approach was used to avoid the isolation stepof the mono-imine intermediate that is prone to the undesireddisproportionation reaction. Hydrogen chloride was selected to form aprotective acid salt of one amine group of the diamine. Themono-ammonium salt 3 was prepared in near quantitative yield from a 1:1molar ratio of (R,R)-diaminocyclohexane and 2.0 M hydrogen chloride inether. The first condensation between 3 and3,5-di-tert-butylsalicylaldehyde was carried out in a 1:1 (v/v) mixtureof anhydrous methanol and ethanol at ambient temperature. Use ofactivated 4 Å molecular sieves to remove the water formed during thereaction was found significant in reducing the reaction time to fourhours and depressing the exchange of the salicylidene moieties. Afterthe first condensation was complete, a solution of the functionalizedsalicylaldehyde 2 in dichloromethane was added to the reaction system,followed by the slow addition of an excess of anhydrous triethylamine asa deprotective base. The TLC analysis and
¹H NMR spectra showed that the second condensation was completed withinfour hours and only traces of symmetrical salens were detected.
The target unsymmetrical salen ligands 4 were isolated in 60-85% yieldsas light yellow solids by means of column chromatography on silica gelpretreated with methanol or methanol/triethylamine. The reaction wasvery time and reproducibility efficient and was easily scaled up andcarried out on a multigram scale.
The preparation of mono-functionalized Mn- and Co-salen complexes 9 andattached to a norbornene monomer via a stable phenylacetylene linker areshown in Scheme 3. The mono-functionalized salens were obtained by thede-symmetrization of 1,2-diaminocyclohexane 2 with HCl to yield themono-ammonium salt 3. After reaction of 3 with 4, the resultingmono-ammonium imine was deprotected with NEt₃ in the above describedone-pot procedure and reacted with the functionalized aldehyde 6. Afteran esterification of the resulting unsymmetrically substituted salen 7with 8 and subsequent metalation, the functionalized Mn- and Co-salennorbornenes 9 and 10 were obtained in good yield.
Cyclooctene-functionalized salen ligands were prepared, for example, asshown Scheme 4. Esterification of 3-t-butyl-2,5-dihydroxybenzaldehydeand cyclooct-4-enecarboxylic acid in the presence of1,3-dicyclohexylcarbodiimide (DCC) and 4-dimethylaminopyridine (DMAP)yield the salicylaldehyde cyclooct-4-enecarboxylate product. A one-potstepwise condensation of (R,R)-diaminocyclohexane mono-ammonium saltwith 3,5-di-t-butylsalicylaldehyde and the salicylaldehydecyclooct-4-enecarboxylate in a 1:1:1 molar ratio affordedcyclooct-4-en-1-yl substituted unsymmetrical salen ligand in 84% yield.
Polymerization of Compounds of Formula (I) Synthesis and Polymerizationof the Mono-Norbornene Functionalized Salens
The monomeric metalized complexes 9 and 10 were homo- and co-polymerizedusing a controlled polymerization method, such as ring-openingmetathesis polymerization (ROMP), and thereby avoided apost-polymerization metal complexation step. The polymeric manganese andcobalt complexes were used as supported catalysts, for example, forasymmetric epoxidations of different olefins and for the hydrolytickinetic resolution of epoxides. The polymeric catalysts showed excellentcatalytic activity and selectivity. Unexpectedly, the activity andselectivity of the catalyst was found to depend upon the density of thecatalytic moieties along the polymer backbones. In general, thecopolymer complexes were slightly more active and selective as catalystscompared to the homopolymer complex analogues. This was true for boththe manganese and the cobalt-based catalysts. When the cobalt-salenmoieties were present in the copolymer chain at less than about 15%(i.e., cobalt-salen derived monomer:co-monomer molar ratio) in thepolymer backbone a drop in catalytic activity was observed.
ROMP of the analytically pure and fully characterized monomers using the[Ru] 3° C.-generation Grubbs catalyst, yielded p(9) and p(10) as shownin Scheme 5. Furthermore, copolymers of 9 and 10 were prepared with theunfunctionalized norbornene 11 to (i) site-isolate individual catalystsites and (ii) probe the effect of catalyst loadings on the catalyticactivity.
As shown in Scheme 6 the monomeric cobalt salen complex 38 was obtainedvia an acylation of salen ligand 25c with norbornene chloride 26,followed by a complexation of Co(OAc)₂. ROMP of the analytically pureand fully characterized metalated monomer using the 3′-generation Grubbscatalyst, yielded homopolymer p(38). Copolymers of 38 were prepared withthe unfunctionalized norbornene 29 to (i) site-isolate individualcatalyst sites and (ii) probe the effect of catalyst loadings on thecatalytic activity. The polymerization rates were followed using ¹H-NMRspectroscopy by focusing on the signals of the olefin protons. In allcases, monomer conversions (monomer to catalyst ratios up to 100:1) werequantitative after one to two hours. Moreover, ¹H-NMR spectroscopy ofthe homopolymerizations of ten equivalents of 29 and 38 using the3′-generation Grubbs catalyst revealed that the polymerization kineticswere similar with complete monomer-conversion achieved after about 2-5minutes. The results suggest that the copolymerization of 38 and 29yield statistical copolymers p(38.29), i.e., the monomers containing thecatalytic moiety of formula (I) are randomly dispersed in thealkyl-norbornene copolymer matrix. These polymeric Co(II)-complexescould be oxidized to the corresponding Co(III) compounds p(38a) andp(38a-co-29) by O₂ in the presence of acetic acid to afford thecorresponding acetate (L=—OAc).
Homopolymer and Poly(styrene)-Supported Co(Salen) Complexes
The reuse (reusability or recyclability) of a metal-based catalyst is afundamental characteristic for the broad commercial acceptance ofhomogeneous or heterogeneous catalysts. One reaction that haspotentially large industrial implication is the hydrolytic kineticresolution (HKR) of diols from racemic epoxide mixtures usingcobalt-salen complexes. While a wide variety of supported Co-salencomplexes have been reported, they often decompose (at least partially)under the catalyzed reaction conditions. Thus, the robustpoly(norbornene) and poly(styrene) supported salen ligands of thepresent disclosure were prepared. The polymer supported ligands could bemetalated, for example, with cobalt to yield the fully supportedCo-salen complexes that were as active as their non-supported analogs.This complex can be recycled and reused without decomposition.
Homopolymer chiral Co(salen) and copoly(styrene)-immobilized chiralCo(salen) complexes were prepared by the free radical polymerization ofa styryl-substituted unsymmetrical salen monomer, alone or with astyrene co-monomer, as shown in Scheme 7.
Subsequent metalation with Co(OAc)₂ provided the metalated products asshown in Scheme 8, which products exhibited desirable catalyticproperties in, for example, the hydrolytic kinetic resolution of racemicepichlorohydrin.
For example, a one-pot condensation reaction of(1R,2R)-1,2-diaminocyclohexane monohydrochloride salt,3,5-di-t-butyl-2-hydroxybenzaldehyde, and3-(4-vinylphenyl)-5-t-butyl-2-hydroxybenzaldehyde in a 1:1:1 ratioafforded the desired unsymmetrical mono-styryl substituted salen ligand(1) of Scheme 7 in 85% isolated yield. Free radical polymerization of 1in the presence of various amounts of the initiator AIBN gave thecorresponding homopolymers 2-4 with different chain lengths.Copolymerization of the styryl-salen and styrene in the absence orpresence of divinylstyrene produced soluble linear copolymers (5-7) orinsoluble cross-linked resins of Scheme 8, respectively. Metalation ofthe polymers and the copolymers of the styryl-salen with cobalt(II)acetate generated the corresponding polymer-supported cobalt-salenprecatalysts (Co(2-7)) in quantitative yields with cobalt loadings of0.38-1.53 mmol/g.
Synthesis of oligomeric Co(salen) Complexes via Ring-Expanded OlefinMetathesis of Cyclooctene Substituted Salen Monomers.
As shown in Scheme 9, catalyst 4 was prepared on multi-gram scale fromstarting materials described above in Scheme 4. Treatment of thecyclooct-4-en-1-yl substituted unsymmetrical salen ligand 7 withCo(OAc)₂.4H₂O, produced the corresponding Co(II) complex 3 as a brickred solid. In the presence of 2-4 mol % of the third generation (3°)Grubbs catalyst 9, both 7 and 3 underwent the ring-expanding olefinmetathesis in dichloromethane to give unsymmetrical oligomericmacrocycles 8 and 4, respectively. These ring-expanding reactions werefound to be rather fast and clean. In situ ¹H NMR revealed that themetathesis of 7 was complete in 20 min, as evidenced by the up-fieldshift of the alkenyl proton signals from 5.72 ppm for oligomer 7 to 5.42ppm for oligomer 8 and line-broadening of almost all peaks. Theoligomeric nature of 8 was verified by an analysis with the gelpermeation chromatography (GPC) although the absolute value of thenumber-average molecular weight (M_(n)) would have a substantial errordue to the lack of appropriate standards. However, the MALDI massspectrometry provided unambiguous details of the structures of theseoligomers at a molecular level. The spectrum of 4 (not shown) indicatedthe exclusive formation of oligomeric macrocycles as a mixture ofpredominantly dimeric to tetrameric species with observable traces ofhigher homologues up to a decamer (3: m/z=700, 4: m/z=1,400 (dimer),2,099 (trimer), 2,799 (tetramer), and so forth). Furthermore, 4 canalternatively be prepared from the metalation of the oligomeric ligand 8with Co(OAc)₂.4H₂O, and demonstrated an identical mass spectrum to thatobtained from the metathesis route.
HKR of allyl glycidyl ether with polymeric co-salen catalysts was alsoevaluated. The resolution reactions were carried out at ambienttemperature with 0.6 equiv of water and 0.01 mol % loading of catalystscalculated on the basis of cobalt. The resolution was completed in 12 hin the presence of 4(OAc) as the catalyst as shown in Scheme 10. Theremaining allyl glycidyl ether was determined by the chiral GC method tohave an enantiomeric excess (ee) of over 99% in a conversion of 51%.Despite a brief induction period in the initial HKR, catalyst 4(OTs) ofScheme 9 readily completed the resolution in 6 h with over 99% ee forthe epoxide. In comparison, the monometallic unsupported complex 3(OAc)gave less than 1% ee for the epoxide in 12 h, suggesting that complex 3had little if any affect on the HKR of allyl glycidyl ether in such alow catalyst loading.
A number of other HKR examples were accomplished on various terminalepoxide substrates and the conditions and results are tabulated in Table1.
Supported Metal-Salen Catalyzed Preparative Processes
The cobalt-salen polymer supported catalysts were discovered to beuseful as generally highly active for hydrolytic kinetic resolution(HKR) of terminal epoxides. The manganese-salen polymer supportedcatalysts were discovered to be useful as generally highly active forthe asymmetric epoxidation (AE) of olefins. In embodiments, designcriteria for salen polymer supported catalysts of the disclosureinclude: (i) the supported catalyst should possess an optimized salenligand sphere, (ii) the salen ligand preferably can be attached to thesupport via a single linker (L′) to minimize steric restrictions; (iii)for Mn-salen species, the catalyst loading should be sufficiently low tomaximize site isolation of the catalytic centers to minimize theformation of catalytic inactive oxo-bridged dimers, whereas for Co-salenspecies, the active catalyst is preferably selected at a high enoughdensity to permit the proposed simultaneous activation of epoxide andnucleophile via two different cobalt centers; and (iv) the morphology ofthe supports should ensure free access of reactants to all active sites.Accordingly, in embodiments, mono-functionalized salen cores wereattached via a single site to a soluble poly(norbornene) backbone. Forthe attachment, chemically inert C—C bond linkages via aphenylene-acetylene linker were used and were found to minimize catalystdegradation during the epoxidation reactions. Variations of the catalystactive site density could be readily achieved by homo- orco-polymerizing metalated salen monomers having a polymerizable groupby, for example, ROMP.
Hydrolytic Kinetic Resolution (HKR)
The oligo(cyclooctene)-supported Co(II)(salen) complex 4 of Scheme 9 wasexamined for catalytic efficiency in the HKR of terminal epoxides. Twomethods were developed to generate the Co(HIII)(salen) species, theactive catalytic species for the HKR, with different counterions. MethodA involved the aerobic oxidation in the presence of an excessive amountof acetic acid. After the mixture was stirred in dichloromethane in theopen air for 30 min, all volatiles were removed in vacuo to afford4(OAc) as a brown solid. Method B used 1.05 equiv of p-toluenesulfonicacid in THF as the acid reagent. The oxidation and workup under thesimilar conditions gave green 4(OTs) as the crude catalyst. Both ofthese catalysts were highly soluble in common epoxides and enabled theresolution reactions to be performed neat.
In embodiments, the polymeric cobalt-salen catalysts of the disclosurewere used in HKR of racemic substrates, such as rac-epichlorohydrin orallyl glycidyl ether as shown in Scheme 10. HKR of rac-epichlorohydrinwas accomplished with, for example, 0.5% of the polymeric cobalt-salencatalyst of Scheme 8 and afforded the (S)-epichlorohydrin in 44% yield(88% theoretical yield) and >99% ee. The catalyst could be reused withalmost identical reactivity and enantio-selectivity after isolation andreactivation.
TABLE 1 Hydrolytic kinetic resolution of various terminal epoxides.^(a)Loading Time ee ^(c) Yield ^(d) Entry R Method ^(b) (mol %) (h) (%) (%)1a n-Bu A 0.01 2.0 >99 43 2a Cl A 0.01 2.5 >99 44 2b Cl B 0.01 2.5 >9943 3a AllylOCH₂ A 0.01 12 >99 48 3b AllylOCH₂ B 0.01 6.0 >99 46 4aPhOCH₂ A 0.01 20 >99 46 5a^([e]) Ph A 0.1 24 >99 45 5b Ph B 0.1 18 >9948 ^(a) Reactions were performed on 0.05-0.1 mol scales undersolvent-free (neat) conditions. ^(b) Method A: 4(OAc) as the catalyst;Method B: 4(OTs) as the catalyst. ^(c) Determined by chiral GC or HPLCmethods. ^(d) Isolated yield. ^([e])1 mol % (based on the epoxide) ofHOAc was added.
Asymmetric Epoxidation
As shown in Scheme 11, the polymeric Mn-salen complexes were evaluatedas asymmetric epoxidation catalysts. The olefins styrene 12,1,2-dihydronaphthalene 14, and cis-β-methyl styrene 16, were selected assubstrates, representing a terminal, a cyclic and a cis-disubstituted,non-cyclic olefin, respectively. Following published procedures, thepolymeric catalysts of the present disclosure,N-methyl-morpholino-N-oxide (NMO), the olefin, and chlorobenzene ordodecane as an internal standard, were dissolved in methylene chloride,cooled the solutions to −20° C., and the peracidmeta-chloroperoxybenzoic acid (m-CPBA) was added in three equal portionsover a period of two minutes.
Kinetic studies of the reactions via GC-analysis showed the highactivities of the polymer-supported Mn-salen catalyst systems of Scheme5 with quantitative conversion using four mol % Mn after 150-300seconds. The epoxidations of styrene 12 and cis-β-3-methyl styrene 16were as fast as control experiments that used an original non-supportedJacobsen complex. Only in the case of 1,2-dihydronaphthalene 14, theepoxidation rate with p(9) is somewhat slower than the rate of theoriginal Jacobsen-catalyst. The copolymer complexes p(9.11) hadcatalytic activities that were higher than the homopolymer complexanalog p(9). All reactions are quantitative after five minutes or less,suggesting excellent substrate access to metal-complex catalytic sites.Table 2 lists additional results for catalytic epoxidation of olefins12, 14, and 16.
TABLE 2 Epoxidation of unfunctionalized olefins. ¹ Temp. Conv. ee EntryOlefin ² Epoxide Catalyst (° C.) (%) ³ (%) 1 12 13 Jacobsen −20 100 34 212 13 p(9) −20 100 32 3 12 13 p(9.11)₁₁ −20 100 33 4 12 13 p(9.11)₁₃ −20100 32 5 12 13 p(9.11)₁₉ −20 100 33 6 14 15 Jacobsen −20 100 88 7 14 15p(9) −20 100 76 8 14 15 p(9.11)₁₁ −20 100 81 9 14 15 Cycle 2 −20 100 4710 14 15 Cycle 3 −20 85 6 11 14 15 p(9.11)₁₃ −20 100 81 12 14 15p(9.11)₁₉ −20 100 82 13 16 17 Jacobsen −20 100 93 14 16 17 p(9.11)₁₁ −20100 92 All epoxidations were carried out at −20° C.: ¹ with m-CPBA (2eq.), NMO (5 eq.) and 4 mol-% Mn-catalyst in CH₂Cl₂. ² Styrene (STY) or1,2-dihydronaphthalene (DHN). ³ after five minutes.
The supported catalysts also had outstanding selectivities. For theepoxidation of styrene 12 and cis-β-3-methyl styrene 16 the enantiomericexcesses (ee's) are comparable to the unsupported Jacobsen catalyst(32-33% ee vs. 34% ee for 13 and 92% ee vs. 93% ee for 17). For theepoxidation of 1,2-dihydronaphthalene 14, the ee's with the polymericcatalysts are slightly lower than with the Jacobsen catalyst (76-82% eevs. 88% ee) but among the highest ee's reported for any immobilizedsalen complexes (10-84% ee). Although not limited by theory, a possiblereason for the somewhat lower selectivities of the presently disclosedsupported systems is their slower reaction rate, which increases theamount of racemic epoxide produced by a slow background reaction withoutthe need of a catalyst. As observed for the epoxidation rates, theenantioselectivities of the copolymers p(9.11) are very similar (81-82%ee) and higher than the homopolymer p(9) (76% ee), suggesting a goodsite-isolation of the manganese centers even for the 1:1-copolymer.
The polymeric Mn-complexes could be separated easily from the reactionmixtures by precipitation into Et₂O/MeOH and subsequent centrifugation.In all cases, the polymer catalyst was recovered quantitatively. In onestudy of the reusability, p(9.11)₁₁ was selected and represented thecopolymer system with the best catalytic performance and the highestmanganese loading. Unfortunately, after separating the polymer byprecipitation, the residue was no longer completely soluble in methylenechloride. When the resulting suspension was used as a catalyst for theepoxidation of 14, the epoxidation rate was slower than the one with thenon-recycled polymer. This drop of activity after recycling is even morepronounced in the third cycle, where only 85% conversion of 14 after 300seconds was achieved. Even more dramatic was the decline ofenantioselectivity from 81% ee over 47% ee (second cycle) to only 6% eeafter the third cycle, demonstrating that p(9.11)₁₁ was not reusable.Whether the observed reduced solubilities and the subsequent drops inactivity and selectivity are a result of the dimerization of Mn(III)-and Mn(V)═O centers (i.e., leading to cross-links between differentpolymer chains), or a degradation/chemical modification of the catalyst,i.e., the backbone olefins of the poly(norbornene)s could be crosslinkedor epoxidized, remains uncertain.
The results with the Mn-poly(norbornene)s as chiral epoxidationcatalysts clearly reveal that by following the above described criteria,immobilized catalysts with outstanding activities and selectivities thatare comparable with the catalytic activities and selectivities of theoriginal non-polymeric Jacobsen catalyst, can be prepared and utilized.Furthermore, the polymeric Mn-salen complexes can be easily removed byprecipitation and subsequent centrifugation allowing for the removal ofthe vast majority of the metal species after complete reactions.
Similarly, the polymeric Co-catalysts of the disclosure can be easilyand readily removed or separated from a reaction mixture and desiredreaction products. The separated polymeric cobalt-salen catalysts can bereused or recycled, for example, at least once in a second reaction withhigh retention of activity and selectivity. Although not limited bytheory, the effect of the linker group (L′) and polymer backboneflexibility on the activity and selectivity of immobilized metal-salencatalysts is believed to be significant in bi-metallic processes withpolymeric Co-catalysts, and less significant or insignificant inmono-metallic processes with polymeric Mn-catalysts.
EXPERIMENTAL SECTION
All reactions with air- and moisture sensitive compounds were carriedout under an argon atmosphere using standard Schlenk techniques.Diethylether (Et₂O), tetrahydrofuran (THF), methanol (MeOH) and ethanol(EtOH) were distilled over sodium/benzophenone, and dichloromethane(CH₂Cl₂) and triethylamine (NEt₃) were distilled over calcium hydrideand stored in dry Schlenk-flasks under argon. All other reagents andsolvents were purchased from commercial sources and used as receivedunless otherwise noted.
Gas-chromatographic analyses were performed on a gas chromatographequipped with a flame-ionization detector and a HP-5 column (30 m×0.25mm×0.25 μm). The temperature program for GC analysis was as follows: 2min. 50° C. followed by heating to 140° C. at 30K/min and heating to300° C. at 40 K/min under constant pressure with inlet and detectortemperatures kept constant at 330° C. The enantiomeric excess of theepoxides of styrene 12, 1,2-dihydronaphthalene 14 andcis-β-methylstyrene 16 were determined using a GC-MS with a Dex 120column (30 m×0.25 mm×0.25 nm). The temperature programs were as follows:for Sty-O 13: 80° C. for 50 min, 20 K/min to 200° C. (t_(R)(firstenantiomer)=46.3 min, t_(R)(second enantiomer)=49.5 min); for DHN-O 15:125° C. for 40 min, 20 K/min to 205° C. (t_(R)(first enantiomer)=34.9min, t_(R)(second enantiomer)=36.8 min); for MSty-O 17: 90° C. for 40min, 20 K/min to 190° C. (t_(R)(first enantiomer)=33.3 min, t_(R)(secondenantiomer)=36.4 min).
Kinetics and selectivities of the hydrolytic kinetic resolution ofepichlorohydrin 18 was analyzed on a GC-FID with a γ-TA column (30m×0.25 mm×0.25 cm). The temperature was kept at 60° C. for 15 minfollowed by heating at 10 K/min to 160° C. (t_(R)(S-18)=10.2 min,t_(R)(R-18)=11.7 min, t_(R)(diol R-19)=25.1 min).
NMR spectra were recorded on a 300 MHz or a 500 MHz instrument. Chemicalshifts (ppm) of ¹H- and ¹³C-spectra are referenced to residual solventsignals as internal standards. The fine structure of the proton signalswere specified with “s” (singlet), “d” (doublet), “t” (triplet), “q”(quartet), “m” (multiplet), “dd” (double-doublet) and “br s” (broadsinglet).
Gel-permeation Chromatography analyses (GPC) were carried out using abinary pump coupled to a refractive index detector. The GPC wascalibrated using poly(styrene) standards using a column set with CH₂Cl₂as the eluent.
Column-chromatography was carried out on technical grade silica gel (60Å, 40-63 μm) at a pressure of ca. 50 kPa.
Polymer Characterization Although the metal complexes 9 and 10 areparamagnetic, it was possible to investigate the polymerization ratesusing ¹H-NMR spectroscopy by solely focusing on the signals of theolefin protons. In all cases, monomer conversions (monomer to catalystratios up to 100:1) were quantitative after one to two hours. Moreover,following the homopolymerizations of ten equivalents of 9, 10 or 11 by¹H-NMR, it was found that the polymerization kinetics of all threemonomers using the 3′-generation Grubbs catalyst were similar withcomplete monomer-conversion after about 2-5 minutes. These resultssuggest that the copolymerization of 9 and 11 and 10 and 11 yieldstatistical copolymers p(9.11) and p(10.11), i.e., the monomerscontaining the catalytic moiety are randomly dispersed within thealkyl-norbornene matrix.
It is well known that polyelectrolyte and metal-salt containing polymerscannot be characterized by gel-permeation chromatography (GPC), mostlikely due to interactions of the polymers with the packing material andthe formation of aggregates during the process. The same limitationholds true for the present metal-containing polymers and no GPC resultsof any polymer containing more than ten repeating units could beobtained in either THF, chloroform, or methylene chloride. Therefore, nopolydispersities (PDIs) or molecular weights for the high molecularweight polymers are included. However, the values for the molecularweights and the polydispersities of p(9) (M_(w)=5,900, M_(n)=4,400,PDI=1.34) and p(10) (M_(w)=55,400, M_(n)=18,300, PDI=3.03) confirmed asuccessful and quantitative ROMP of the monomeric complexes.
Three different analysis methods were used to determine the metalcontents of all monomers and polymers. First, all compounds were ICP.Second, the C, H, N, and O-contents were analyzed by elemental analysis.Since the monomers contain only the elements C, H, N, and O but for themetal and its ligands (such as chlorine, etc.) one can calculate themetal content by subtracting the C, H, N, O—(and in case of theMn-complexes Cl) contents from 100 percent. The remaining contents arethe metal complex. The results of these two methods are shown in Table3.
TABLE 3 Elemental analysis and ICP-data of the polymers.%-found/(%-calcd.) Entry Polymer C ¹ H ¹ N ¹ O ¹ Cl/S ² Me ³ Me ⁴ 1 p(9)68.67 7.02 3.27 9.09 n.d. ⁵ 11.95⁶ 5.00 (70.71) (6.92) (3.44) (7.85) —(11.09) (6.74) 2 p(9.11)₁₁ 71.10 7.65 2.64 9.72 2.26 5.68 4.68 (72.13)(7.78) (2.63) (9.01) (3.33) (5.15) (5.15) 3 p(9.11)₁₃ n.d. ⁵ n.d. ⁵ n.d.⁵ n.d. ⁵ n.d. ⁵ n.d. ⁵ 3.86 (3.51) 4 p(9.11)₁₉ 75.05 9.63 0.84 11.690.96 1.83 1.39 (75.15) (9.53) (0.91) (11.47) (1.16) (1.79) (1.79) 5 1073.33 7.21 3.49 8.33 — 7.64 8.00 (73.54) (7.20) (3.57) (8.16) — (7.52)(7.52) 6 p(10) 71.06 7.06 3.57 8.95 — 9.36 6.96 (73.54) (7.20) (3.57)(8.16) (7.52) (7.52) 7 p(10.11)₁₁ 72.88 7.89 2.76 9.89 — 6.58 5.96(74.32) (7.99) (2.71) (9.28) (5.70) (5.70) 8 p(10.11)₁₃ 74.25 8.73 1.9511.15 — 3.92 3.95 (75.11) (8.80) (1.82) (10.42) (3.84) (3.84) 9p(10.11)₁₉ 75.50 9.50 0.90 11.96 — 2.14 2.02 (75.92) (9.62) (0.92)(11.59) (1.94) (1.94) 10 p(10c) 65.42 6.79 2.60 15.02 3.97 6.20 5.60(69.16) (6.65) (2.93) (11.73) (3.36) (6.17) (6.17) 11 p(10c)_rec 57.656.27 2.58 20.47 5.10 7.93 4.27 (69.16) (6.65) (2.93) (11.73) (3.36)(6.17) (6.17) ¹ Determined by elemental analysis. ² Determined byelemental analysis, S only for p(10c.11) and p(10c.11)_rec (entry 10,11). ³ Determined by 100 − (sum of percentages of other elements). ⁴Determined by ICP. ⁵ Not determined due to lack of sample material. ⁶Content of MnCl, determined by 100 − (sum of percentages of otherelements).
Finally, where possible, the chlorine content of all polymers wasdetermined. The manganese compounds generally contain one Cl ligand onall metals. Therefore, by analyzing the chlorine content, one cancalculate the metal content. Using this methodology, the manganesecontents of p(9.11)₁₁ was calculated to be 3.50% (calcd. 5.15%) and thatof p(9.11)₁₉ to be 1.48% (calcd. 1.79%). While one should expect thesethree methods to agree in the metal contents, it was found that allthree methods slightly diverge from the theoretical expected metalvalues (some methods suggest a higher metal content while others suggesta lower one), which is attribute to the error of the three analyticalmethods due to the small sample sizes and the low metal percentage ofall polymers. With these limitations in mind, the values for the metalloadings of the polymers are within the error range (in most cases±0.5%for all three methods) in good agreement with the theoretical values.These results suggest that the metalated salen complexes do notdecompose during the ROMP. It is important to note that always fullycharacterized and purified, i.e., by column chromatography, metalatedmonomers were employed during the ROMP, and that the co-monomer ratiosare approximately the same as the theoretical targeted ratios.
Hydrolytic Kinetic Resolution Reaction Analysis The catalyticperformance of the polymeric cobalt complexes p(10) and p(10.11) werestudied in the HKR of racemic epichlorohydrin (ECH) 18 (Scheme 10).Since only the Co(III) complexes are catalytically active in thisreaction, we oxidized the obtained Co(II) polymers p(10) and p(10.11)were oxidized by stirring methylene chloride solutions of the polymerswith acetic acid under an atmosphere of air (X=OAc). After removal ofthe solvent and the excess AcOH in vacuo, the desired Co(III)-salenpolymers p(10a) and p(10a.11) with acetates as counterions wereobtained. For the HKR reactions, the Co(II)-polymers were dissolved in amixture of methylene chloride, 18, and chlorobenzene as an internalstandard, followed by the addition of 0.7 equivalents of water to startthe resolution. The addition of some methylene chloride as a solvent wasnecessary because the copolymers were not fully soluble in 18. Similarprocedures were used to obtain p(10b)(X=I) and p(10c)(X=OTs).
The reaction kinetics of the HKR were studied via chiral GC-analysis.Using either the homopolymer p(10a) (X=OAc) or the two copolymersp(10a.11)₁₁ and p(10a.11)₁₃, epoxide (R)-18 was fully converted afterfive hours to its corresponding diol, leaving pure (S)-18 in thereaction mixture in above 99% enantiomeric excesses. After this timeperiod, 55% of the racemic 18 is converted, i.e., all of the unwanted Renantiomer is converted to the diol while only 5% of the desired epoxidehas been converted, indicating selectivities similar to the originalJacobsen CoOAc catalyst (53% conversion, >99% ee under solvent-freeconditions). The epoxidation rates with p(10a.11)₁₁ and p(10a.11)₁₃ areslightly higher than the ones using p(10a). This finding, at firstimpression contradicts the assumption of a bimetallic mechanism for theHKR, and may be the result of a higher backbone flexibility of thecopolymers in comparison to the sterically more congested homopolymers.However, further dilution of the salen-moieties along the polymerbackbone polymers p(10a.11)₁₉) resulted in a dramatic drop of theactivity (only 43% conversion and 80% ee after five hours), while theselectivities remained the same (e.g., p(10a.11)₁₁: 44.5% conv., 78.4%ee and p(10a.11)₁₃: 45.5% conv., 81.0% ee after one hour). This resultsuggests that the extreme dilution of the catalytic moieties along thepolymer backbone results in the deactivation of the catalysts due to theunlikelihood of two catalytic moieties being in close proximity to eachother, a prerequisite for the bimetallic catalytic pathway.
Using p(10a), the HKR of 18 can also be carried out under solvent-freeconditions. In this case, the reaction rates are faster than the ratewith p(10a) using CH₂Cl₂ as the solvent as well as the rate of theoriginal Jacobsen complex, resulting in (S)-18 with >99% ee after lessthan two hours. However, an increase in conversion (62%) suggests thatthe polymeric catalyst is less selective under these reactionconditions. When comparing the kinetics of the non-polymeric JacobsenCoOAc-salen catalyst (X═OAc) of the formula:
with the monomeric catalysts 10a, it was found that 10a is slightly lessselective than the Jacobsen catalyst indicating that the lowerselectivity of the polymers are primarily a result of the differentcatalyst structure (phenylene-acetylene linker instead of a tert-butylgroup in the 5-position of one of the aromatic rings) and not based onthe polymeric support. This result suggests that even small changes inthe structure of the salen core can have a significant effect on thecatalytic properties of the resulting complexes.
Another important variable that has been studied with Co-salen catalystsis the choice of the counterion on the metal center. It has beenreported that very nucleophilic counterions like Cl can attack theepoxide very fast resulting in small amounts of byproduct, whilecatalyst activity can be increased dramatically with moreelectronegative counterions, such as —OTs, and like counterions.Finally, non-coordinating counterions like PF₆ ⁻ or BF₄ ⁻ can suppressthe undesired reduction of Co(III) to Co(II). To investigate if thiscounterion effect holds true in the present polymeric system and toinvestigate whether changes to counterion of the polymeric catalyst canbe used to control their activities and selectivities, polymers p(10b)and p(10c) were prepared with iodide and tosylate counterions,respectively. Polymer p(10b) was obtained by oxidizing 10 with iodineand subsequent ROMP of 10·I. In contrast, p(10c) (X=OTs) was obtained byoxidizing the polymer p(10) with O₂/p-toluenesulfonic acid.Interestingly, when either p(10b) or p(10c) were employed as catalystsin the HKR of 18 under solvent-free conditions, both catalysts showedhigher activities than p(10a). In particular p(10b) was highly active,with (s)-18 being obtained in >99% ee after less than one hour. However,the selectivities of p(10b) and p(10c) are somewhat lower than that ofp(10a) (conversions for obtaining (S)-18 with >99% ee: 66.7% usingp(10b), 69.7% using p(10c) and 62.0% using p(10a)). These resultsdemonstrate that a counterion effect exists for the polymer-supportedCo-salen catalysts of the present disclosure.
As a result of the outstanding activities of p(10c), this polymericcatalyst was used to optimize other reaction conditions. In an attemptto improve selectivities, CH₂Cl₂ was added to the reaction as a solvent.Unfortunately, the reaction was significantly slower with only about49.0% 18 converted after 11.5 hours (87.9% ee of (s)-18). Nevertheless,higher enantiomeric excess of (S)-18 at 50% conversion observed underthese reaction conditions indicate an increase in selectivity of p(10c)when a solvent is added. The effect of decreasing catalyst loading onthe activities and the selectivities was also investigated. When thecatalyst loading of the polymeric CoOTs-catalyst was decreased to 0.2mol-% Co for the HKR of 18, a decrease in activity (the reaction tookeleven hours for a complete conversion of (R)-18) and a decrease inselectivity were observed (after 11 hours, 67.2% of the racemic epoxidewas converted). Moreover, a comparison of the enantiomeric excess of theremaining (S)-18 at similar conversions suggested an increasedselectivity with a decrease of the CoOTs-amount (0.2 mol-% p(10c): 47.4%conv., 78.2% ee, 0.5 mol %: 51.4% conv., 64.4% ee). These resultsdemonstrate that for the CoOTs-poly(norbornene) catalyst the use of lesscatalyst loading can be advantageous in embodiments.
All polymeric Co-complexes could be easily separated from the reactionmixtures by precipitation into Et₂O and subsequent centrifugation. Bysimply washing the obtained Et₂O-solution with water(R)-3-chloro-1,2-propanediol 19 was removed nearly quantitativelyresulting in pure (s)-18. This protocol is considered to be an importantadvantage to the normally used methodology of distilling off 18 from thecrude reaction mixture since remaining Co(III)-salen complexes arereported to catalyze the decomposition and the racemization of theepoxide during the purification process. Since the polymeric Co—OAccomplex p(10a) gave the best selectivities, this catalyst was selectedto study the reusability of polymeric Co-salen catalysts. Afterre-oxidation with O₂ in the presence of acetic acid, recycled p(10c)showed the same resolution rate and selectivities as the originalpolymeric catalyst p(10c) (i.e., 61.8% conv.>99% ee of(S)-18 after 150min). However, the need of ultra-sonication in order to dissolve p(10a)fully in a solution of 18 and chlorobenzene before the catalysisindicated reduced solubility. The solubility of the polymeric catalystdeclined further for the third catalytic cycle. It was not possible todissolve the twice-recycled p(10a) fully in the reaction mixture, evenafter the addition of CH₂Cl₂ as solvent and ultra-sonicating themixture. As a result of the lower solubility, the reaction rate droppedfor the third cycle with only 78.8% ee after three hours (49.6%conversion). However, after 11 hours 61.0% of the racemic epoxide wasconverted and (S)-18 was obtained with 97.8% ee, indicating that thepolymeric catalyst was still active and very selective, and that afteran appropriate reaction time enantiomerically pure (S)-18 could beisolated in good yields. Similar results for the reusability (i.e., thesolubility problems and subsequent low resolution rates) were obtainedwith the polymeric Co—OTs-salen p(10c). Analysis of p(10c) by ICP beforestarting the recycling experiments and after the third catalysis cycleshowed that the metal content of the polymer decreased from 5.60% to4.27%. This decrease in metal content cannot be explained with the errorrange of the elemental analysis. Since a leaching of metallic cobalt hasnot been reported in the literature, it is suggested that this slightdecrease in metal content may be due to a cleavage of the ester bondsresulting in a loss of a complete salen moiety from the polymer.Accordingly, more chemically robust or inert Z connector groups aresuggested, such as a —CH₂— or —Ar— in place of —C(═O)O—. A second recycling method in the literature involves removal of thesubstrates by fractionated distillation followed by the addition of morestarting material to the metal containing residue. While this methodsuggests repeated usability of the Co-catalysts, it has severaldisadvantages including the potential for the undetected decompositionof the catalyst (i.e., leaching of cobalt) and that epoxides such as(S)-18 may racemize during this process. However, because of thesolubility-issues encountered during the separation of the catalyst byprecipitation, this recycling method was also investigated wherebyCH₂Cl₂ was also used as a solvent. Starting with 11 mg p(10a) in thefirst cycle, 56 mg of an red-brown solid were obtained after distillingoff CH₂Cl₂, (S)-18 and 19. Subsequently, the residue was dried in vacuoand the Co(II)-complex reoxidized with O₂/AcOH. The increased massindicates an incomplete removal of the substrates, in particular3-chloro-propane-1,2-diol (boiling point 213° C.). The recycledpolymeric catalyst showed a somewhat lower activity in the second cycle.It took eleven hours instead of five to obtain (S)-18 with >99% ee (57%conv.). After recycling and reoxidation, 99 mg of a brown residue wereisolated after the second catalysis cycle. In the third cycle thisresidue showed a catalytic performance that was comparable to the onedescribed for the second cycle. Interestingly, no solubility problemswere observed using this methodology in contrast to the results with theprecipitation method. Thus, the method of recycling selected may be animportant factor in determining the properties and performance of arecycled catalyst.
The polymeric cobalt-salen results demonstrate a highly active andselective supported cobalt salen catalyst. Furthermore, copolymercomplexes were slightly more active than their homopolymer analogs.Finally, a counterion effect was observed in the present supportedcatalyst systems that enable a tailoring of their activities andselectivities. The present supported catalysts can be easily removedfrom the reaction mixture and allow for the easy removal of metalspecies from the product. However, using the precipitation method, thesupported catalysts were recycled once as a result of their decreasedsolubility after the reoxidation step.
Preparation of Starting Materials
(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[3-tert-butyl-5-(4′-hydroxyphenylethynyl)salicylidene]-1,2-cyclohexanediamine (4a)(Scheme 2)(R,R)-1,2-Diaminocyclohexane mono(hydrogen chloride) (108 mg, 0.72mmol), 3,5-di-tert-butyl-2-hydroxybenzaldehyde (168 mg, 0.72 mmol), and4 Å molecular sieves (100 mg) were charged into a 25 mL flask equippedwith a magnetic stir bar and a septum. Anhydrous ethanol (3 mL) andanhydrous methanol (3 mL) were added and the bright yellow solution wasstirred at room temperature for four hours. A solution of5-(4′-hydroxyphenylethynyl)-3-tert-butyl-2-hydroxy-benzaldehyde (211 mg,0.72 mmol) in anhydrous CH₂Cl₂ (6 mL) and anhydrous NEt₃ (0.20 mL, 1.44mmol) were added. The red solution was stirred at room temperature foradditional four hours. The reaction mixture was filtered through a shortpad of dry silica gel and the silica gel was flushed with CH₂Cl₂. Thesolvent was removed under reduced pressure. The residue was purified bycolumn chromatography on silica gel (ethyl acetate/hexanes=1:5) toafford 4a (323 mg, 75%) as a yellow-orange powder. R_(F) (SiO₂, ethylacetate/hexanes=1:5)=0.13. [α]²⁰ _(D)−136° (c 0.5, DCM). ¹H NMR (500MHz, CDCl₃): δ=1.26 (s, 9H), 1.44 (s, 9H), 1.46 (s, 9H), 1.40-1.53 (m,2H), 1.82-1.93 (m, 2H), 1.66-1.81 (m, 2H), 1.93-2.05 (m, 2H), δ3.25-3.77 (m, 4H), 6.81 (d, J=8.7 Hz), 7.00 (d, J=2.5 Hz), 7.19 (d,J=2.0 Hz, 1H), 7.35 (d, J=2.5 Hz, 1H), 7.40 (d, J=8.7 Hz, 2H), 7.41 (d,J=2.0 Hz, 1H), 8.22 (s, 1H), 8.28 (s, 1H). ¹³C NMR (125 MHz, CDCl₃):δ=24.4, 29.4, 29.6, 31.5, 33.1, 33.2, 35.0, 34.2, 35.1, 72.0, 2.2, 87.2,88.3, 112.5, 115.7, 115.6, 117.7, 118.4, 126.1, 127.3, 132.7, 133.1,133.2, 136.7, 137.9, 140.1, 155.7, 158.4, 161.5, 165.2, 166.2. MS (ESI):m/z (I_(rel))=607 (56, [M+1]⁺), 291 (84, C₂₅H₃₁N₂O₂ ⁺). HRMS (ESI) calcdfor C₄₀H₅₁N₂O₃ ([M+1]⁺): 607.3899; found: 607.3888. Anal. Calcd forC₄₀H₅₀N₂O₃ (606.38): C, 79.17; H, 8.30; N, 4.62, O 7.91; found: C 78.61,H 8.26, N 4.63, O 8.03.(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[5-(4′-acetylsulfanylphenylethynyl)-3-tert-butylsalicylidene]-1,2-cyclohexanediamine(4b)(Scheme 2). (R,R)-1,2-Diaminocyclohexane mono(hydrogen chloride)(128 mg, 0.85 mmol), 3,5-di-tert-butyl-2-hydroxybenzaldehyde (199 mg,0.85 mmol,), and 4 Å molecular sieves (100 mg) were charged into a 25 mLflask equipped with a magnetic stir bar and a septum. Anhydrous ethanol(3 mL) and anhydrous methanol (3 mL) were added and the bright yellowsolution was stirred at room temperature for four hours. A solution of3-tert-butyl-5-(4′-acetylsulfanylphenylethynyl)-2-hydroxybenzaldehyde(300 mg, 0.85 mmol) in anhydrous CH₂Cl₂ (6 mL) and anhydrous NEt₃ (0.27mL, 1.9 mmol) were added. The red solution was stirred at roomtemperature for additional four hours. The reaction mixture was filteredthrough a short pad of dry silica gel and the silica gel was flushedwith CH₂Cl₂. The solvent was removed under reduced pressure. The residuewas purified by column chromatography on silica gel (ethylacetate/hexanes=1:10) to afford 4b (339 mg, 60%) as a yellow powder.R_(F) (SiO₂, ethyl acetate/hexanes=1:5)=0.47. [α]²⁰ _(D)−144° (c 0.5,DCM). ¹H NMR (300 MHz, CDCl₃): δ=1.24 (s, 9H), 1.42 (s, 9H), 1.43 (s,9H), 1.43-1.60 (m, 2H), 1.84-1.94 (m, 2H), 1.66-1.83 (m, 2H), 1.94-2.08(m, 2H), 2.43 (s, 3H), 3.24-3.44 (m, 2H), 6.96 (d, J=2.4 Hz, 1H), 7.21(d, J=2.0 Hz, 1H), 7.32 (d, J=2.4 Hz, 1H), 7.37 (d, J=8.4 Hz, 2H), 7.40(d, J=2.4 Hz, 1H), 7.51 (d, J=8.4 Hz, 1H), 8.26 (s, 4H), 8.28 (s, 4H),13.60 (br s, 1H), 14.33 (br s, 1H). ¹³C{¹H} NMR (75 MHz, CDCl₃): δ=24.4,29.3, 29.6, 30.4, 31.6, 33.1, 33.3, 34.2, 35.0, 35.1, 72.4, 72.5, 86.7,91.6, 111.9, 117.8, 118.6, 125.2, 126.0, 127.1, 127.5, 132.1, 134.3,132.7, 133.5, 136.6, 137.9, 140.2, 158.0, 161.5, 165.0, 166.2, 193.8. MS(ESI): m/z (I_(rel))=665 (59, [M+1]⁺), 449 (69, C₂₇H₃₃N₂O₂S⁺), 331 (100,C₂₁H₃₅N₂O). Anal. Calcd for C₄₂H₅₂N₂O₃S (664.37): C, 75.86; H, 7.88; N,4.21, O 7.22; found: C, 75.79; H, 7.93; N, 4.06, O 7.19.(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[3-tert-butyl-5-(4′-vinylbenzene)salicylidene]-1,2-cyclohexanedediamine(4c)(Scheme 2). A 250 mL flask was charged with(1R,2R)-1,2-diaminocyclohexane monohydrochloride salt (1.51 g, 10 mmol),activated 4 Å molecular sieves (4.0 g), anhydrous methanol (40 mL), andanhydrous ethanol (40 mL). 3,5-Di-tert-butyl-2-hydroxybeizaldehyde (2.34g, 10 mmol) was added in one portion and the reaction mixture wasstirred at room temperature for four hours. After complete consumptionof the aldehyde as monitored by the TLC, a solution of3-tert-butyl-2-hydroxy-5-(4′-vinylphenyl)benzaldehyde (2.74 g, 10 mmol)in dichloromethane (80 mL) was added to the reaction system, followed bythe slow addition of triethylamine (2.8 mL, 20 mmol). The reactionmixture was stirred at room temperature for additional four hoursfollowed by the removal of the solvents. The residue was dissolved indichloromethane (100 mL), washed with aqueous hydrochloric acid (1 M, 50mL) and water (2×50 mL), and dried with magnesium sulfate. Flashchromatography of the crude product with (ether/hexanes=1:50) afforded4c (5.05 g, 85%) as a yellow solid. Mp: 177-178° C.; [α]²⁰ _(D)−156° (c0.5, DCM). ¹H NMR (400 MHz, CDCl₃): δ=1.22 (s, 9H), 1.42 (s, 9H),1.44-1.51 (m, 2H), 1.46 (s, 9H), 1.70-1.84 (m, 2H), 1.88-1.91 (m, 2H),1.97-2.02 (m, 2H), 3.30-3.38 (m, 2H), 5.25 (d, J=11.0 Hz, 1H), 5.77 (d,J=17.6 Hz, 1H), 6.74 (dd, J=11.0, 17.6 Hz, 1H), 6.97 (d, J=2.5 Hz, 1H),7.21 (d, J=2.5 Hz, 1H), 7.31 (d, J=2.5 Hz, 1H), 7.40-7.45 (m, 4H), 7.49(d, J=2.5 Hz, 1H), 8.30 (s, 1H), 8.35 (s, 1H), 13.69 (s, br, 1H), 14.01(s, br, 1H). ¹³C{¹H}NMR (100 MHz, CDCl₃): δ=24.5, 24.6, 29.5, 29.6,31.6, 33.3, 33.4, 34.2, 35.1, 35.2, 72.6, 113.6, 118.0, 119.0, 126.2,126.7, 126.9, 127.1, 128.2, 128.3, 130.5, 136.0, 136.6, 136.7, 137.8,140.2, 140.7, 158.2, 160.2, 165.8, 166.2. IR: v=3082, 2999, 2952, 2933,2860, 1628, 1467, 1440, 1390, 1271, 1252, 1171, 840 cm⁻¹. UV-vis (THF):λ=262, 300, 340 nm. MS (FAB): m/z (I_(rel))=592 (100, M⁺). Anal. Calcdfor C₄₀H₅₂N₂O₂ (592.85): C, 81.04; H, 8.84; N, 4.73.; found: C 81.06, H8.95, N 4.72.(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[3-tert-butyl-5-(hydroxymethyl)salicylidene]-1,2-cyclohexanedediamine(4d)(Scheme 2). A 100 mL flask was charged with(1R,2R)-1,2-diaminocyclohexane monohydrochloride salt (151 mg, 1.0mmol), activated 4 Å molecular sieves (200 mg), and anhydrous methanol(10 mL). 3,5-Di-tert-butyl-2-hydroxybenzaldehyde (234 mg, 1.0 mmol) wasadded in one portion and the reaction mixture was stirred at roomtemperature for four hours. A solution of3-tert-butyl-2-hydroxy-5-(hydroxymethyl)benzaldehyde (208 mg, 1.0 mmol)in dichloromethane (10 mL) was added to the reaction mixture, followedby the slow addition of triethylamine (0.27 mL, 2.0 mmol). The reactionmixture was stirred at room temperature for additional four hoursfollowed by the removal of the solvents. The residue was dissolved indichloromethane (20 mL), washed with water (2×20 mL), and dried withmagnesium sulfate. Flash chromatography of the crude product on silicagel (ether/hexanes=1:4 to 1:1) afforded 4d (0.39 g, 75%) as a lightyellow solid. [α]²⁰ _(D)−318° (c 0.5, DCM). ¹H NMR (400 MHz, CDCl₃):δ=1.23 (s, 9H), 1.41 (s, 9H), 1.42 (s, 9H), 1.43-1.51 (m, 2H), 1.70-1.80(m, 2H), 1.88-1.92 (m, 2H), 1.96-2.02 (m, 2H), 3.29-3.38 (m, 2H), 4.52(s, 2H), 6.96 (d, J=2.2 Hz, 1H), 7.01 (d, J=2.0 Hz, 1H), 7.25 (d, J=2.0Hz, 1H), 7.31 (d, J=2.4 Hz, 1H), 8.28 (s, 1H), 8.29 (s, 1H), 13.68 (sbr, 1H), 13.97 (s br, 1H). ¹³C{¹H}NMR (100 MHz, CDCl₃): δ=24.5, 24.6,29.5, 29.6, 31.6, 33.3, 33.4, 34.2, 35.0, 35.2, 65.6, 72.60, 72.61,118.0, 118.5, 126.2, 127.0, 129.0 (2 overlapping lines), 130.1, 136.6,137.7, 140.1, 158.1, 160.3, 165.5, 166.1. MS (EI): m/z (I_(rel))=520(100, M⁺). Anal. Calcd for C₃₃H₄₈N₂O₃: C, 76.11; H, 9.29; N, 5.38,found: C, 76.19; H, 9.51; N, 5.07.(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[3-tert-butyl-5-(2′-hydroxyethoxymethyl)salicylidene]-1,2-cyclohexanediamine (4e)(Scheme 2).(R,R)-1,2-Diaminocyclohexane mono(hydrogen chloride) (276 mg, 1.83mmol), 3,5-di-tert-butyl-2-hydroxybenzaldehyde (460 mg, 1.83 mmol), and4 Å molecular sieves (200 mg) were charged into a 50 mL flask equippedwith a magnetic stir bar and a septum. Anhydrous ethanol (5 mL) andanhydrous methanol (5 mL) were added and the bright yellow solution wasstirred at room temperature for four hours. A solution of3-tert-butyl-2-hydroxy-5-(2′-hydroxyethoxymethyl)benzaldehyde (460 mg,1.83 mmol) in anhydrous CH₂Cl₂ (10 mL) and anhydrous NEt₃ (0.51 mL, 3.66mmol) were added. The red solution was stirred at room temperature foradditional four hours. The reaction mixture was filtered through a shortpad of dry silica gel and the silica gel was flushed with CH₂Cl₂. Thesolvent was removed under reduced pressure. The residue was purified bycolumn chromatography on silica gel (ethyl acetate/hexanes=1:3) toafford 4e (725 mg, 70%) as a yellow powder. R_(F) (SiO₂, ethylacetate/hexanes=1:3)=0.23. [α]²⁰ _(D)−262° (c 0.5, DCM) ¹H NMR (500 MHz,CDCl₃): δ=1.24 (s, 9H), 1.41 (s, 9H), 1.42 (s, 9H), 1.43-1.55 (m, 2H),1.83-1.92 (m, 2H), 1.61-1.81 (m, 2H), 1.93-2.08 (m, 2H), 2.01 (br s),3.28-3.38 (m, 2H), 3.54 (m, 2H), 3.72 (br s, 2H), 4.40 (s, 2H), 6.98 (d,J=2.3 Hz, 1H), 7.01 (d, J=1.6 Hz, 1H), 7.22 (d, J=1.6 Hz, 1H), 7.31 (d,J=2.3 Hz, 1H), 8.29 (s, 1H), 8.30 (s, 1H), 13.70, (br s, 1H), 14.00 (brs, 1H). ¹³C{¹H} NMR (125 MHz, CDCl₃): δ=24.3, 29.4, 29.5, 31.5, 33.3,34.2, 34.9, 35.1, 63.0, 71.2, 72.5, 72.6, 73.4, 117.9, 118.4, 126.1,126.8, 126.9, 129.6, 129.8, 136.5, 137.4, 140.0, 158.1, 160.3, 165.3,166.0. MS (ESI): m/z (I_(rel))=565 (13, [M+1]⁺), 349 (48, C₂₀H₃₃N₂O₃ ⁺),331 (100, C₂₁H₃₅N₂O⁺). HRMS (ESI) calcd for C₃₅H₅₃N₂O₄ ([M+1]⁺):565.4005; found: 565.4001. Anal. Calcd for C₃₅H₅₂N₂O₄ (564.39): C,74.43; H, 9.28; N, 4.96; found: C, 74.38; H, 9.30; N, 4.85.(R,R)—N-(3,5-Di-tert-butylsalicylidene)-N′-[3-tert-butyl-5-(7′-hydroxy-1,1′-dimethylheptyl)salicylidene]-1,2-cyclohexanedediamine(4f)(Scheme 2). (R,R)-1,2-Diaminocyclohexane mono(hydrogen chloride) (59mg, 0.39 mmol), 3,5-di-tert-butyl-2-hydroxybenzaldehyde (92 mg, 0.39mmol), and 4 Å molecular sieves (200 mg) were charged into a 25 mL flaskequipped with a magnetic stir bar and a septum. Anhydrous methanol (5mL) was added and the bright yellow solution was stirred at roomtemperature for four hours. A solution of3-tert-butyl-2-hydroxy-5-(7′-hydroxy-1′,1′-dimethylheptyl)benzaldehyde(125 mg, 0.39 mmol) in anhydrous CH₂Cl₂ (10 mL) and anhydrous NEt₃ (0.15mL, 0.90 mmol) were added. The red solution was stirred at roomtemperature for additional four hours. The reaction mixture was filteredthrough a short pad of dry silica gel and the silica gel was flushedwith ethyl acetate. The solvent was removed under reduced pressure. Theresidue was purified by column chromatography on silica gel (ethylacetate/hexanes=1:3) to afford 4f (208 mg, 84%) as a bright yellowpowder. [α]²⁰ _(D)−200° (c 0.5, DCM). ¹H NMR (300 MHz, CDCl₃):δ=1.00-1.15 (m, 2H), 1.16-1.31 (m, 2H), δ 1.25 (s, 6H), 1.23 (s, 9H),1.28 (s, 9H), 1.42 (s, 9H), 1.43-1.59 (m, 6H), 1.70-1.80 (m, 2H),1.88-1.92 (m, 2H), 1.93-2.08 (m, 4H), 2.01 (s, 1H), 3.29-3.38 (m, 2H),3.54 (t, 2H), 6.98 (d, J=2.2 Hz, 1H), 7.01 (d, J=1.8 Hz, 1H), 7.25 (d,J=2.0 Hz, 1H), 7.31 (d, J=2.4 Hz, 1H), 8.29 (s, 1H), 8.31 (s, 1H), 13.71(s br, 2H).
| 27,986 |
adventuresdocto03russgoog_9
|
English-PD
|
Open Culture
|
Public Domain
| 1,868 |
The Adventures of Doctor Brady
|
William Howard Russell
|
English
|
Spoken
| 7,200 | 9,461 |
It is all because we had a tremendons jolly supper- party the night before we came away, and some fellow threw a bolster at SneU. He thought it was jae, and so down he pops me — the spiteful beast — as 'unsatisfactory/ Really, mother, that means nothing at all. Look at my place in school, and see.'' " Class Master's Report," she goes on : *' He might do better — moved up a division in his half." Jack meets her inquiring glance with an easy smile. " There, isn't that first-rate ? Moved up a division, mother, eh !" '^ Yes ; but, my boy, ' he might do better.' How is that?" " Oh, of course, I might have moved up to the very top, if I could. You must remember, dear mother mine, that I had the deuce of a cold from that wetting I got" (the outrigger upset with him on the river) ''just before the examination. And nothiug pleases old Mouldy Bill — ^thaf s the name we give Venables, who has the class I'm in — ^he's such an awful clever chap himself. Read on, mother ; it's a jolly report this time, I can tell you." The confiding mamma continues : " Place in class of twenty-seven boys — sixteenth." " There ! sixteenth ! I'm above eleven fellows. 266 THE ADVENTURES OP Tibbs, who is two years older^ is below me; and all the other chaps are first-rate. I was nineteenth^ you remember, last half/' Mrs. Asgill sighs gently, and coughs for fear Jack would think she was at all disappointed^ '' Greek— B. ' B/ is bad, John, is it not ?" ^^ That's Mouldy Bill again, mother. I hate Greek anyway ; but it was a horrid chouse to give me a B., for I did my Euripides first rate.'' '^ Latin — ^B.," she reads and pauses, whilst Jack breaks out, triumphantly — ^^ Yes ; but I was ' V. B.' last half; and Flack swears I've got on famously. I will be sure of ' G.,' or maybe, ' V. G.,' next half." *' Mathematics — ^V. B.," Mrs. Asgill gulps out, with a quaver in her tone indicative of great con- cern. '^ I always heard mathematics were highly necessary for a clergyman, and that you can't get into Cambridge without them." '' Then, darling mother, you are quite wrong. It's classics you want for the Church j anyway, I know more mathematics than old Mack, who is a clei^- man ; and Snell can't do a proposition in Euclid, and they say he'U get a bishopric somewhere abroad very soon. The sooner the better, say I ; for our grub is beastly. I'm half-starved." DOCTOR BRADY. 267 This was a masterly stroke, for it led Mrs. Asgill at once away to the question of dietary, and her face grew wan with alarm as she detected in the sinewy £rame of her son evident traces of Snell's stinginess in the matter of beef and mutton. I didn^t know all this about the boys at the time, but I heard plenty of such stories after I was a few days at the college ; and I saw, too, that some of the hardest-working feUows were those who had least need to provide for themselves in life. Prayers came at last. He who knows the secrets of all hearts can judge how many knelt before Him with any thought of asking for grace and pro- tection, or of what Snell was thinking as he jerked out in a snappish, irritable way the words of the College Litany. Then we trooped off to the dormi- tories, and went through the form of going to bed ; but when the lights had been out in my room for half an hour, I heard the scraping of a ma.tch, and Bundle, my next neighbour, summoned me to the banquet which I had provided. ^'We have it in the kitchen, so as Snell mayn^t hear us. We\e tipped Dowly and Cookey with two ' boV a-piece of your tin. Put on your jacket. Follow me. Mum^s the word — as light as you can.^^ And putting his bit of candle in a 268 THB ADVENTUBES OF tiny dark lantern which he took from his box^ Bundle led me along the passage, the eye of Ught preceding him, and the whole transaction having that semblance of burglary which made it very agreeable to my comrade, famous as he was for his acquaintance with the deeds of ''Three-fingered Jack/^ " Dick Turpin/' and the heroes of the New^ gate Calendar. I knew it was all wrong. I did not care for the supper; but I was too weak to resist ; and many of us are led astray, not because we like to take the wrong path, but because we are not strong enough to shake off the hand which is guiding us. It was a banquet indeed I The kitchen gas was alight, the large table covered with a cloth that had seen some service upstairs, a grand array of tin pannikins and plates, and a miscellaneous display of edibles, in which a large pie, a pile of tarts, hot sausage8,and a cold fowl, were conspicuous. Bottles of ginger and currant wine were mingled with pots of marmalade and jam. The guests were all assem. bled, mostly big boys I had seen at the upper end of the room, and took not the slightest notice of me ; the kitchen door was shut carefully. Bundle surveyed the table as he took his place, and pointed to a seat on the bench. DOCTOR BRADY. 269 '^ How is this. Winter/^ he asked in a low tone of displeasure, '' no oysters ? I wouldn^t give a farthing for a supper without oysters/' ''Most votes carried, PossyP' (my friend was propositus of a class, and was generally addressed by this familiar name). " Pat's money was very little, you know ; and there's such a jolly lot of cholera about : lobsters are awful cheap. Look at these five I got from Finn's for six and sixpence, cracked and cut up so as not to make a row." Bundle was amenable to argument, and with an injunction not to make a clatter with the plates, and to talk low, the feast began. It must be admitted that a boy's enjoyment of the pleasures of the table is not dependent on agreeable society or brilliant iconversation. He eats and drinks for the sake of himself, not of his company; and silence rather en- hances than diminishes his zest. And so, serious as savages, we sat and revelled in large platefuls of incongruous meats and in beakers of dreadful drinks, regardless of the morrow, and quite con- tent with our enforced abstinence from an inter* change of ideas. Everything was said in whispers. "Nubbles, I say, what a chouse you arcj that's the last Banbury; you had two before." ''Pass the marmalade this way, and a sweet biscuit." 270 THE ADVENTURES OF If any sound above a whisper was heard^ Dowly, who was thrown out as a iddette in the passage in his night-shirty so that he might pretend he was coming to see what was the matter if Snell operated a descent on ns^ appeared with a pale face at the door and uplifted finger, and hissed out, ^' I say; now then, he^s a-tumin' in bed, I can tell you. I heerd that laughing quite plain through the door, so I did/^ These interruptions and admonitions could not damp the enjoyment, which was at any rate not protracted; for in an amazingly short space of time the bottles were drained, the lobsters were but shells, the fowls but bones, the cheese but rind, the jam pots emptied. The assembly of. Sybarites broke up, and one by one filtered through the doorway and glided away to their rooms, to face the horrors of nightmare or to sleep in peace, according to their digestions; and as I followed Bundle, who closed the rear, I saw Dowly ravaging among the dishes, and searching in vain for any satisfactory remnant of the feast. Our breakfast was very like the tea of the pre- vious night. It was a wonder to me to see the composed, innocent look of the young fellows in chapel, and above all, the guileless look of Bundle, DOCTOR BRADY, 271 who, as one of the choir, wore a white surplice ; I knew that some of them, at all events, had been sitting np till all hours, with their heads up the chimney in their rooms, smoking, and that Kundle had gone o£f with a bottle of the college grocer's sherry and another of brandy under his arm, and had not retired to bed till daybreak. The array of masters in their gowns, the awful presence of Moody himself — a large sleek man, with black eyes and heavy beetling eyebrows, and a sallow face — impressed me immensely. I repented greatly of my rashness in venturing to look at him ear- nestly, for he suddenly caught my eye, and stared at me with an expression so severe and tremendous that I felt quite weak about the knees, and blushed till my ears tingled. The service was over, and we marched from the chapel to the main building to the sound of a frmereal bell. The head of the column passed through the arched door, and as my turn came I saw two of the boys at each side with pencil and paper engaged in ticking off the names. As I walked in one of them asked me sharply for my name. " Oh, Brady ? You are to go in to Dr. Moody at once, d^je hear ? Boom A. Now then, sharp, Paddy.^^ 272 THE ADVENTUBE8 OF The htun of voices sounded in my ears like tKe rushing of waters ; and twice I put my hand on the door and withdrew it, for somehow or other I fancied the black-eyed, stem-faced man knew of our doings, and would visit on me aU the sins of the night^s dissipation. At last I was inside the dreaded portal and face to face with the doctor, who was standing at his desk looking over the exer- cises of the upper form, young men rather than boys, who were going up to the University. He saw but took no notice of me, and went on with his examination of the papers before him, whilst I underwent a different examination from the young gentlemen who were awaiting the results of his criticism. What the deuce were they laughing at? I could not see anything to laugh at. They did, for neither the cut of my jacket nor my boots, nor the colour of my tie, nor my pantaloons, were familiar to these young Brummels, who had no idea of the fashions prevailing at Kibnoyle, or knew that Andy Kane, the tailor, took all his designs from the plates in ''The Magazine of Taste/' Dr. Moody raised his head and beckoned me to approach. '' Your guardian tells me,'' he said, " you were DOCTOR BRADT. 273 considered by Dr. Ball to have made fair progress. Dr. Ball is a good scholar — in fact, for one of the alumni of the Silent Sister, he may be termed an elegant and accomplished scholar; and his edition of^Bion^ — a pretty trifle — is known to ns over here. What were yoii reading when you left?^^ I stammered through my list. '^ Hum ! — ^that sounds very fairly ; quite up to our fourth form. Now, Brady, let me hear you read and translate. Begin there.^' The passage in Juvenal which Dr. Moody pointed out to me was one I knew tolerably well ; and, with confidence somewhat restored, I began to read aloud as I was desired. Before the second line was well begun I was aware of a titter among the Brummels, which soon became a roar of laugh- ter, as Dr. Moody, with his hands to his ears, exclaimed — " There, there ! — ^that will do ! Such quantity ! Dear me, how very dreadM ! We must set at work at once on this I" In fact, my pronunciation was of the broadest — or of the flattest Continental — type, and my prosody was feeble. I was much ashamed; and when I was called on to read a chorus from the VOL. I. 18 274 ADVENTURES OF DOCTOR BRADY. " Phoenissse^^^ and was greeted with fresh merriment in my Greeks I felt inclined to throw down the book or fling it at some felloVs head. It was the foretaste of my persecutions. Another boy would have got through the ordeal well enough, but as I was obstinately bent on haying my own way, and in doing battle with all comers, I soon had my hands fiill of quarrels and fights. My morbid feeling was increased, perhaps^ by the want of a friend. Mr. Bates was far away. It seemed as if I were quite alone in the world, — abandoned to my fate among a crowd of pitiless mocking strangers, who exerted 6very ingenuity to irritate and annoy me. CHAPTER XIV. THB FLIGHT. " I REALLY do not know whether we can overlook this insubordinate and quarrelsome spirit much longer/^ said Dr. Moody. '^ You are never happy except you are engaged in personal conflicts — one of those ^ in hello gaudentes^ proelio ridentes.' " "Thej will not let me alone, sir — they are always at me.'' " At you, sir ? — at you ? What do you mean by that? Here have you been reported for fighting with Bicketts, Botcher, Wylie primus, the twa Crawleys, within this quarter — ^not to speak of your boarding-house squabbles.'' ^' There are more than those, sir. You only hear when I have the best of the fight. You don't know that I have been licked by ever so many of the big fellows, because I wont stand their making game of me." 18—2 276 THE ADVBNTUBES OF " It is a dreadful spirit V^ ejaculated the prin- cipal — '^ a dreadM spirit — a word and a blow. You have^ I find^ received corporal pnnislinient about once a week^ and have bad tbe most severe imposi- tions^ and yet you persist in these encounters/' " If I were to be killed on the spot, or to die, sir, I cannot help it. Why are they allowed to persecute me — to ridicule, and sneer, and jibe at me ? Fve borne it as long as I could. Some of the fellows have lefl off, but others will not ; and if you could only know how I am tried you would punish my tormentors, and not me/' "You say you have been fighting with the senior boys, and have been beaten — who were they ?*' "I cannot teU you, sir. Some of them had black eyes as well as I had.'' ^' Black eyes ! why if s your invariable condition, sir. It is disgraceM to the college. I will promise you this : bring np before me any boy who annoys you without a cause, and I will inquire into the case and inflict on him condign punish- ment, if he deserves it. You may go; the last five hundred lines are condoned." I went forth fix>m the presence with a burning sense of wrong. In that hard time Mrs. Prince had Deen my only comforter. DOCTOB BBADY. 277 . "What! another black eye?'' the good matron vould exdaiin^ " and the yellow scarcely gone oflf the last one yet. That's near two pounds of raw beef I've had to pay for out of my private pocket. Why, it's no eyes youll have at all very soon, you dreadful Brady." The poor soul had some Hibernian tendencies herself— they stopped short of black eyes — ^but her encounters with Mrs. SneU, and Dobbs, the cook, and Grimes, the head chambermaid, were frequent and stormy. It was on the evening of the day I had been in to Dr. Moody — ^hang these doctors, my life is weary of them ! — I was working away at my desk. Dowly came in with a tray full of letters to SneU, who examined each before he called up the boy for whom it was intended. We all knew the postman's ring, and every eye was directed to the desk. " Has Jones got his tip, I wonder ?" " There's a black seal for Elimmis ; his governor's been seedy." '' Look at little Mac ! he's got a post-office order, and a lot of stamps." '' Brady ?" called out SneU. " Two letters— one from India, with a shilling to pay." I walked up to the desk. There was a letter 278 THE ADVBNTUBBS OP inth a large black seal; it was fix>in Mr. Bates. There was another in a clear sharp handwriting, which made me start as I took it np. I went back to my seat. I looked at the last letter again and again. With hesitating hand I tore it open, and read : — ** Anripore, June 10th, 18—. " My dbak Son,— I write to yon in the hope that you have not qnite forgotten you haye a mother. Some day when we meet I will tell you, my dear son, why I thought it best for your welfare that I should not cast any part of the burthen of my sad fate upon you ; and no doubt you have been taught to hate me, and have been told I did not care for you. My dear Terence, 1 will mot say a word against your grandfather. He was your dear papa^s father, and he took a strong part against me because I made the greatest sacrifice that a woman could make for his son and for you ; but I have never ceased to think of you and to love you. Though so far away, I have taken care of you as weU as I could. My servant used to tell me about you ; and when he was sent away I had friends who took care to let me know of your wel- £Eire. I cannot tell you how I suffered when the DOCTOB BBADY. 279 news came that you were drowned ; but that was soon set to rights. I was very sorry, too., indeed, when I heard of my father-in-laVs death, though he was not kind to me. I am told you are growing tall and strong, and that you are very like your father. I am glad to hear that; for I have been unhappy about you. You are my son, and by your father's wishes I was to take charge of you ; but I was not able then, and I only live now to see you, and show how your poor mother loves you. I cannot leave this country, for I have no money, and live on the kindness of my friends ; but I trust you will be able some day to help me. You are going into the army, and you must come out to India ; and then we will return together, and live together always. You will be a very rich man some day. Look affcer your property, and do not believe any one who tells you there is not a fortune belonging to your grandfather. I prin- cipally write to warn you against the Desmonds. Your poor father told me long ago that the Desmonds had taken all the lands of the Brady family. I have been told that the brother of Mr. Denis Desmond is a great man in Ireland, and that he is your guardian, along with a low Irish attorney. I would come over and shield you against them if I 280 THE ADVENTURES OP could ; but I want you to promise your mother not to sign any pai)er, or to do anything about your property without letting me know first. The Desmonds feel they have got our property un- justly. They are aU as cunning as serpents. I am told there is a niece of Mr. Desmond's — ^a Miss Butler — ^who is to have all the money. She lives near you, and it is said they will try to make you marry her; and, in that case, the Desmonds would get the estates. Of course, you are too young yet, but these bad people look a long way ahead. I am dying to hear firom you. I will tell why you have not heard from me before, some day. Believe me, it was for your good. When you write direct to me, ^ Mrs. Brady ' — ^you have been taught, perhaps, to think I have no right to the name — ' care of Messrs. Colville and Arbuthnot, Madras.^ With tears in my eyes, I sign myself, ^' Your loving mother, *'Maby Brady.'' I read this long letter again and again. The prayer-beU roused me firom my study of every line. Why did she write to me now ? Why had she been silent for years ? Were all these warnings DOCTOB BRADY. 281 against secret machinations devised to deprive me of some unknown rights ? As I read '' Miss Butler's " name, and the words, " they will try to make you marry her/' my cheek flushed, and I felt a little fluttering of my heart. " How little can she know the truth V^ I sighed. Marry Mary Butler I Have you not been told the truth of this hapless mother of yours ? See how she seeks to arouse your suspicions of your friends ! Are you not unhappy and suspicious now ? Bemember your grandfather's last injunctions ; stern and cruel as they were, it is plain they were just. No, Terence; steel your heart. The day will come when you will see her face to face. Then you can hear and judge for yourself. If she loved you so she would not leave you in your solitude and sorrow. Prayers were over. These reflections were my prayer. " And may Heaven have mercy on her and have pity on me V^ closed them, as I rose from my knees. We trooped off to our rooms. My mother's letter was next my heart. I had not read the other yet, but I put my end of candle on my trunk by the side of my cot, and opened it. It ran as follows : — 282 THB ADVENTURES OF "Dublin,. '' Dbab Terence^ — I am sorry to say that there is no cheering intelligence to give you about Lough-na-Carra. The country is in a dreadful state^ and no money is to be had at all. McTurk and Skinner^ who are, you may remember, attorneys for that lady in India, have oddly enough turned up as solicitors for an English mortgagee who wants his money. In fact, I fear Sweatenham CoUege is too expensive for us, and you must make up your mind to leave at Christmas. '' The lady I speak of has been playing some of her pranks again. She is in the hands of some smart fellows, and she has served the trustees with notice that she has equitable claims in her own and her son^s name on Lough-na-Carra, which she intends to substantiate ; and, actually she is going, she declares, to try Sir Richard's title to Kilmoyle by a writ of ejectment. I beg of you to enter on no correspondence with her, as I hear she intends to try and use you for her purposes. Eemember your grandfather's advice, and his last request that evening ! I believe he was right. '' Yours ever, ^^A. Bates.'' DOCTOR BRADY. 283 " Now, then, you Paddywhack ! Put out your dip, will you!'^ growled a great Jewish-looking fellow, named Morris, from the next hed. ^^ Out at once, do you hear, Mr. Potato I What's the use of your reading letters from people who can't spell?'' Mrs. Prince brought in a large piece of beef- steak for Mr. Morris next morning. It was not cooked. There were one thousand lines of the *' Odyssey" for me. I made up my mind that night. " Here's four pound nine and sixpence ; it was all I could get," said Dowly. I had now ascer- -tained his name was Pluckley, but the Oreek vocative of '' slavey" had become the general way of addressing him. "The watch was one pound fifteen, and the clothes were only two pounds. I couldn't get more than a quid for all the books ; the resf s for my commission, you know. You can give a good supper out of it I" Whilst the house-boys were in the playground and I was in '^ The Study,^' as it was called, en- gaged, as it was supposed, on my never-ending task of writing out lines, I was preparing a short letter to Mr. Bates. I told him the story of my suffer- ings. I was sorry to grieve him, but I could do 284 THE ADVENTURES OP notlimg dishonourable ; I could not bear to trouble my friends. It would be better to let Lough-na- Carra go altogether. He could sell off eyerything except the portraits^ and a few things my grand- father prized. I would write to him as soon as I had made up my mind^ and had got something to do. And so^ bathing the letter with tears — I knew not why they fell — ^I sealed up my letter and put it in my pocket. There were three fellow-victims with me, biting the ends of their pens or scribbling away, and at intervals looking up at the open windows and envy- ing the sparrows which twittered on the branches of the old elm-tree outside. " If any one asks/^ said I, " say I am gone for a walk.^' '' By Jove, Brady, wont you catch it if your im- position's not done this time!'' squeaked little Tyrwhitt secundus. " You're too plucky by half I" ^' Well, I dare say I shall catch it, if they catch me. Good-bye.'' I walked along the passage, opened the door into the garden, and in another minute was out in the lane which led to the street. There were the secret police of the college to be evaded if I got out of bounds; but I knew Sweatenham well by DOCTOR BEADY. 285 tins time^ and turning down a cross street^ I struck out on the high road to London. I shied my trencher over a hedge, took my cricket-cap fix>m under my jacket, and walked along at a fair pace towards Todley station. I knew there would be an up-train in half an hour, and I could just catch it. As I live there is '^ Sweet William/' our itinerant confectioner, coming towards me ! I owe him three shillings. '' You're out for a spree, I 'spose, Mr. Brady ? Thank you, sir. No change I Well, that is hand- some. I wish you'd tell Mr. Bundle I must have the half-sovereign he got of me. It's ruination to deal with some of you young gentlemen; it is, indeed. Lor* bless you ! I wont say a word of see- ing you. Good evening, master." The rail was on my right. I heard far off the whistle of the engine leaving Sweatenham; and soon the rattle of the train came along with the breeze. It was a hard race. How the black speck and its cloud of steam grew on me as I ran and looked over my shoulder I Puff ! puff ! puff ! every breath seemed to pant over me. The station is close at hand — ^the beU is ringing — a country cab, with a pile of luggage and an old lady and children inside, all with eager faces turned to the train^ 286 THB ABVENTUBBS OF are driving up^ the driver whipping the reeking horse. *' 'Ma, there's Master Brady, of Snell's/' It is one of the horrid ofi&pring of Mrs. Mather, the wife of the coUege-porter. I put on a tremendous spirt — ^bounded in through the door as the porter was closing it — heard a cry of despair from Mrs. Mather and the children. " Second-class to London.'' ''No second-class, this train. First-dass from Todley to London. Now, sir, be quick !" The beU rang ; with another bound I was on the platform, leaped into a carriage as the guard's whistle blew and in a minute more, as I sat wiping my fore- head, the die was cast. The express-train was rattling onwards to London. My companions stared at me ; a stately old woman, whose novels I had dis- turbed — a young gentleman, her son, on whose foot I had trodden — a pretty little girl dozing in the comer. The latter just looked up ; I was certainly not the ideal of her doze, for she closed her eyes agam. The stately old lady was very restless. In my inadvertent haste I had selected the seat next the door which was opposite to her also ; and so, after a minute, she said, ''Alfred, would you mind asking this young gentleman to move his DOCTOR BRADY. 287 feet a little farther back; these carriages are so narrow/^ Alfred looked at me severely. My poor feet had crept like mice under the seat^ and had not crept out again ere she spoke. ^' Alfred, would you see if I have not left one of my books on that seat.^^ I had hopped up and left the seat void and open for inspection ere the sentence was finished. But the stately old lady, who was, I discovered, the wife not the mother of Alfred (and why he sat at the opposite comer in face of the sleeping girl was what I could not understand), resolved on war. I was very hot from my race ; the carriage was like a green-house. She called on Alfred to ask me to put up the window. Then Alfred had to move a great many cloaks and Straps and cases from the net over my head, and brought his waistcoat-buttons very close to my nose. Never was there such an inde- fatigable old stateUness in adjusting herself. Her little skeleton foot was a beauty which could not be destroyed by age, and so it was in a constant state of flourish. She dropped innumerable small arti- cles upon me, and glanced at me angrily as if I were the cause of their falling. On sped the train, oscillating at the curves and 288 THE ADVENTURES OF jumping at the stations^ where we caught a phan- tasm of faces and figures^ running into a mass of eyes and coats and dresses, like the visions of a night- mare ; and at each swing and roll and rock of the carriages, the lady gave a little cry and clasped her hands as if for mercy. It was intolerable. After a long run of an hour the train stopped at Dins- win. There was a row of young ladies in curls behind a counter dressed with Banbury tarts, cheesecakes, sandwiches and preserves under glass- cases ; busy waiters, hovering about round tables laden with quaint soups and such generous fare as suits the taste of the travelling Briton in his own land. I escaped from the stately and active old lady. Ere the bell rang I had marked a vacant seat in a carriage far away, and had esconced myself in a comer. No one disturbed me as the train moved on, for my only fellow passenger remained asleep in one of the comers opposite. I tried to think out some plan as we whirled on, but my thoughts wandered into doudland. I counted my money — two pounds, a crown-piece, three shillings, and a hal^nny. What was I going to do ? I did not know. Had I not read of many poorer than I who had made their fortune once they were bold enough to seek it in the wide DOCTOR BRADY. 289 wide world ? Was there no Brother Cheeryble who would take pity on a poor lad as he gazed earnestly on a windowfal of advertisements ? Was there no fortune left for a youngster who had faith and courage, and a desire to work for life and honour ? London was before me ! There was bread to be won and honour to be gained yet. I woidd not tax the kindness of my friends ; I woidd leave Lough-na-Carra to the care of those who woidd see I suffered no wrong in my absence, and then from some distant land I woidd return with untold gold and a proud name to retrieve the fortunes of my house. I would wander to India and seek out the repentant woman, who would cast herself into my arms and drown my reproaches in her tears. We should all be happy ! Far away in my reverie, as the Alpine village is seen from the hiU-top by the weary traveller, indistinct in the evening shadows, and yet the goal to which he is tending, there was that to which I could scarce give form and sub- stance. Would she welcome me when I returned to lay aU the rewards of my toil and long-suffering at her feet ? How can I tell with what bliss my dreams survived the ordeals through which my fancy delighted to lead me ? Here was I, a runaway from school — a fretfiil, VOL. I. 19 290 THE ADVEKTUBES OF angry^ disappointed boy — ^and yet in my reverie I was a prince in fairy-land^ scattering largesse all about the world and Lough-na-Carra and Eilmoyle. Would I change with that youngster opposite whose valet came to the window when we stopped^ to ask '* my lord^' if he needed anything ; and who evi- dently wondered what a schoolboy in a cap and jacket^ and without even a railway wrapper, could be doing with his face flattened against the glass of the carriage. I do not know if I would have ex- changed my dreams for any reality short of their fall fruition. Would I have accepted even the ideal I dreamed of as the full satisfaction of my hopes and the end of all my aspirations ? We flew along through the night; the screech of the steam was scaring the night-owls. There was suddenly a cry which broke through my dreams. The carriage groaned under the rigour of the brakes. My companion's head was out of the window. ''There's something wrong, I think/' he said, " A smash of some kind at the end of the train." With many groans and screams, the engine whistling all the while, the train, shaking like a living creature in mortal agony, halted at last. There was a {ramp of feet, a flashing of lights — DOCTOR BRADY. 291 voices crying, " Guard ! what is the matter ? — \^ there aay danger?^' '^ By Gtwl ! I say, there is a smash/^ repeated my lord, and leaped out at his side of the carriage^ I followed him. Down in the dark the lamps^ were glaring, and then arose a tumult as of an agitated crowd. The citizens of the moving world had been roused by the crash as when an earthquake summons the sleepers to death. Swarming from the carriages they came forth and thronged the narrow line. Above cries of alarm and terror rose through- the night air the moan of the engine, and the fierce hissing of the steam. Alas ! what a sight it was. The carriage I had left was the last but one- Turning a curve in a steep embankment, the coupling which held it and the van had broken^ There was a pile of broken wood and ironwork heaped up against the bank of earth. In the midst of all that ruin there were the dying and the dead. I stood staring vacantly at the shapeless destruction before me. Am I an evil genius ? Do I sow misery and death in my path ? I was pushed aside by strong men. When I heard the guard exclaim — '^ Will any one run to Langley, and give the alarm ? — straight up the line, nigh four miles away V^ I was off like a deer, and outstripped my^ 19—2 292 THE ADVENTURES OP rivals in the race. I was glad to escape fix)in the horrid scene. I had seen the fair young girl drawn forth. Oh ! let me not dwell on it. I ran through the night, fast by the road side along by the embankment, from which I could see lights in houses far away, where perhaps there was mirth, and happiness, and revel ; through deep cuttings, into which the stars alone shone from above ; through a dark, dripping tunnel, filled with the vapours of the night, in which my footsteps echoed along the vaulted roof. Once or twice I passed men at crossings, or seated by their fires, and startled them as I ran by, panting, with scarce voice enough to cry out — "Anawftd accident! Help! help! Down the line'' — and so ran on. My feet tripped on beams, on bars of iron, on sleepers and heaps of ballast. I was on my legs again regardless of bleeding hands and feet. On and on, and still no town in sight — ^no glare of lamps — ^no sign of succour; but on a sudden turn there came in view an array of lights, green and red, and the gas burning cheerily along the station platform. I sped along with a fresh effort. There was no one on the platform. Crying out, '^ Help ! help !'' as I ran, I passed door after door, till a handle yielded, and I was in a blaze of ight — ^the first-class waiting-room, with its listless DOCTOR BRADY. 293 or sleepy occupants^ waiting for the London train. I could scarce speak ; the place appeared to whirl round me. ^^ For Heaven's sake — Help! — Help! A dreadful accident ! — Bishopshope ! four miles away/' I was faint and bleeding ; I had eaten but little that day^ and had husbanded my little store. I saw terrified eyes glaring upon me ; 1 heard voices — a hundred questions. There was a cry, ^' Get him wine ! Send for a surgeon !'' I remember no more. There was a stranger sitting by my bedside, when I recovered my senses. I was in a strange room, neat, and clean, and small ; a dapper little maid, with her hair tucked under a white cap, held a cup in one hand, and a candle in the other, close to the bed. The stranger had his fingers on my wrist, and removed them. '^ He's all right ; no lesion of any consequence. I must go off to assist at once. You may give him some beef-tea or soup in an hour or so ; and I will come to gee how he is in the morning.'' I was wide awake ; one hand was bound up ; I felt a bandage on my knee ; but otherwise I was only conscious of a great desire to eat. ^^Tell me, sir, if you please, are many people injured?" ''We fear so. Telegraph reports some fatal 294 THE ADVENTURES OF cases. Thank your stars you have escaped. Good- bye for the present^ and keep quiet^ and get a good night's sleep.'' The little maid stood still. '* What have you got there, please, Mary ?" '^ Physic. My name's Anne, not Mary." '^WeU, Anne, will you, if you please, throw tiway that physic, or keep it for the doctor. I am ^starving. Tell me where I am, who you are, and if I can get anything to eat, and what time it is, and all about the accident." "Why ifs only ten minutes or so since you scared the first-class waiting-room. Mrs. Pitcher, in the bar, hasn't come to herself yet. Every •one in Langley's gone off to Bishopshope. The ixain from London arrived just after Mr. Stock, the doctor, came, and they've all gone to the place." "But where is this?" " The Station Hotel, to be sure. I'm the second chambermaid. Mrs. JoUy, our first, is looking after beds, and hot water, and things, for it will be a heavy night for us. Dear me, I'm quite afeered to think when the trains do come in. All your clothes is spoiled; but we must wait till the luggage comes for a change." DOCTOR BRADY. 295 '' Anne, I'm dreadfully hungry/' ''The doctor said you was to have chicken- broth, or the like of that, in an hour/' '' I tell you I shall die. I fainted, I sup- pose, from want of something to eat. Can't y6u, Anne? — do get me something; and do— do at once !" The little maid nodded her head, and laughed. " Thank you, Anne." In a little she came in, bearing a tray with half a cold fowl, and a small decanter of sherry, and put it on the bed. I perceived for the first time I could not use my hand. Anne saw the state of the case at once. She cut up the fowl for me, and smiled and nodded her head at every morsel I took, helped me to wine, raised her plump hands in wonder when I asked for more, and with a " Well, I never !" and a pleasant laugh of wonder, trotted off for fresh supplies, and repeated the process. There came the slow measured puff of an engine ; the station bell rang, and was answered by all the bells in the hotel. Little Anne turned very pale. " Theifre come," she said. " This is the third time we've had them here. I do dread it, to be 296 THE ADVENTURES OF 8ure. But I must go now. The waiters are back^ and if you want anything in the nighty one will eome/^ I could not rest ; I got up and listened. There were heavy feet moving slip-shod^ as if carrying burthens; there were cries and moans of agony; doors were shut and opened. The night was awfiil. How could I sleep, and think that close to me were those in mortal agony, expecting Death, the Comforter ? But I crept back to my room at last, and closed my eyes.
| 36,354 |
75299d159c7b681c576b6ebf53112b13
|
French Open Data
|
Open Government
|
Various open data
| 2,009 |
AO_2009_sgciv_panel_politique_ville.pdf
|
cnis.fr
|
French
|
Spoken
| 777 | 1,206 |
Paris, le 4 mai 2009 - N° 122/D130
AVIS D’OPPORTUNITÉ
Panel « politique de la ville »
__________
Type d’opportunité : enquête nouvelle
Périodicité : cycle d’enquêtes pluri-annuel
Demandeur : Délégation interministérielle à la Ville (DIV), Département observation et évaluation.
Au cours de sa réunion du 24 mars 2009, la formation « Démographie, conditions de vie » a examiné
le projet de panel « politique de la ville ».
L’enquête qui répond à une demande du ministère de la ville est soutenue par l’Observatoire national
des zones urbaines sensibles (Onzus). Elle a vocation à servir de pièce maîtresse pour l’évaluation
des effets de la politique de la ville sur les individus qui en bénéficient, au-delà des effets propres au
quartier lui-même.
L’enquête vise à appréhender les phénomènes de mobilité résidentielle au sein des quartiers de la
politique de la ville, la perception des habitants vis-à-vis des politiques publiques mises en œuvre et
l’impact de ces dispositifs sur la trajectoire de vie des bénéficiaires. Outre les sujets traités
classiquement par les enquêtes ménages (composition et caractéristiques du ménage, conditions de
logement, revenus, questionnaire individuel), les thèmes ayant trait plus particulièrement à la politique
de la ville feront l’objet de parties variables au cours des différentes vagues d’interrogation. Ils
porteront en priorité sur l’environnement du quartier (types de commerces, d’équipements collectifs
(transports en commun, école, …), services de santé), l’existence et la nature des programmes de
rénovation urbaine engagés dans le quartier et l’opinion des ménages sur ces opérations, la situation
par rapport à l’emploi (chômage, en emploi, recours passé ou présent aux dispositifs d’aide à
l’emploi), les parcours scolaires des enfants scolarisés (niveau d’étude en cours, difficultés
rencontrées, recours à des dispositifs de réussites scolaires), la participation ou les recours à la vie
associative au sein du quartier.
L’enquête qui est réalisée sur un panel d’individus couvrira environ une vingtaine de quartiers de la
politique de la ville en France métropolitaine et éventuellement dans les Dom. La première et la
dernière interrogations auront lieu en face à face (par Capi ou questionnaire papier) et porteront sur le
tronc commun et un thème variable. Les questionnements intermédiaires, réalisés par téléphone, se
limiteront à un des thèmes particuliers retenus. L’objectif est d’obtenir 3 000 ménages répondant à la
première vague. Toute personne du ménage enquêté, âgée de 16 ans ou plus, soit environ 5 000
personnes, sera interrogée (individus panels) à chacune des vagues. Les individus quittant un
ménage panel entre deux interrogations feront sans doute l’objet d’un suivi. La collecte de la première
vague est prévue dans le courant de l’année 2010. Les enquêtes téléphoniques auraient lieu de 2011
à 2012 et la dernière enquête en face à face en 2013. Le questionnement en face à face ne devrait
pas excéder une heure. Les enquêtes complémentaires par téléphone dureraient entre 15 et 20
minutes.
L’échantillon sera obtenu par un tirage à deux degrés : sur les quartiers de la politique de la ville puis
sur les ménages. Le choix des quartiers sera élaboré par stratification sur un nombre très limité de
caractéristiques (en rénovation urbaine ou pas essentiellement), même si le premier degré du
sondage ne permet en aucun cas une représentativité des quartiers dans l’espace des quartiers
traités. La représentativité est recherchée sur le deuxième niveau du sondage, c’est-à-dire en
population générale sur l’ensemble des quartiers retenus au premier degré. On procède à un
échantillonnage sur les logements. Les modalités détaillées du plan de sondage sont encore à l’étude.
Un comité de pilotage et de suivi sera mis en place et sera constitué essentiellement de représentants
des départements de la DIV intervenant dans la gestion et le suivi des dispositifs, de l’Agence
nationale pour la rénovation urbaine (ANRU), de l’Agence nationale pour la cohésion sociale et
l’égalité des chances (ACSé), des Chefs de projet, d’associations intervenant dans la mise en place
des dispositifs destinés aux quartiers, de la DARES, de la DREES, de l’ONPES et de INSEE. De plus,
le projet d’enquête et les différentes phases de préparation seront présentés et débattus au cours de
séances du conseil d’orientation de l’Onzus.
Les résultats seront diffusés dans les publications de l’Observatoire national des ZUS. Un groupe
d’exploitation sera alors mis en place avec les partenaires financiers et les instituts qui auront été
associés à la conception de l’enquête. A l’issue de cette première phase exploratoire conduite par le
groupe d’exploitation, les données seront disponibles pour des chercheurs sous convention avec la
DIV.
La formation émet un avis d’opportunité favorable à cette enquête en panel dans son ensemble. Si
des questions sensibles venaient à être envisagées , la formation demande alors que l’enquête lui soit
à nouveau soumise pour opportunité.
| 33,349 |
https://zh.wikipedia.org/wiki/%E5%B7%AB%E7%99%BD%E6%85%A7
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
巫白慧
|
https://zh.wikipedia.org/w/index.php?title=巫白慧&action=history
|
Chinese
|
Spoken
| 15 | 499 |
巫白慧(),男,祖籍广东惠州,生于香港,中国印度哲学研究专家。巫白慧专长梵语文学,因明学和印度哲学,为印度哲学研究和中印文化交流做出了突出贡献。曾任中国社会科学院哲学研究所研究员、博士生导师,中国社会科学院学部委员。
生平
2014年10月2日在北京病逝
著作
主要著作有《圣教论》、《奥义书哲学与佛教》、《印度哲学》及《〈梨俱吠陀〉神曲选》等。
奖项和荣誉
1984年荣获印度国际大学颁发的名誉文学博士学位及最高荣誉教授称号。1985年荣获“印度总统奖”。
评价
“巫白慧从正理因明的沿革出发,认真探究了新因明的核心理论因三相。通过对《因明入正理论》梵本与汉译的对比研究,巫先生明确指出,玄奘所翻译的因三相,完全符合原著意旨,契合因明原理,既准确又具有科学的创造性,从而澄清了学术界长期以来在因明理论上和文义上对玄奘译文的怀疑和误解”。
参考资料
Bai
英屬香港人物
中國社會科學院研究員
中華人民共和國哲学家
中国佛学家
| 30,463 |
https://pl.wikipedia.org/wiki/%D2%B2%D3%99
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Ҳә
|
https://pl.wikipedia.org/w/index.php?title=Ҳә&action=history
|
Polish
|
Spoken
| 22 | 77 |
Ҳә – dwuznak cyrylicy wykorzystywany w zapisie języka abchaskiego. Oznacza dźwięk [], czyli uwargowioną spółgłoskę szczelinową gardłową bezdźwięczną.
Kodowanie
Przypisy
Dwuznaki cyrylicy
| 44,346 |
https://github.com/maximegavens/sis/blob/master/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/Variable.java
|
Github Open Source
|
Open Source
|
EPL-1.0, MIT, BSD-3-Clause, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
| 2,020 |
sis
|
maximegavens
|
Java
|
Code
| 6,768 | 13,634 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sis.internal.netcdf;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Locale;
import java.util.regex.Pattern;
import java.io.IOException;
import java.time.Instant;
import javax.measure.Unit;
import org.opengis.referencing.operation.Matrix;
import org.apache.sis.referencing.operation.transform.TransferFunction;
import org.apache.sis.storage.DataStoreException;
import org.apache.sis.storage.DataStoreContentException;
import org.apache.sis.storage.InternalDataStoreException;
import org.apache.sis.coverage.grid.GridGeometry;
import org.apache.sis.coverage.grid.GridExtent;
import org.apache.sis.math.Vector;
import org.apache.sis.math.MathFunctions;
import org.apache.sis.measure.NumberRange;
import org.apache.sis.util.Numbers;
import org.apache.sis.util.ArraysExt;
import org.apache.sis.util.collection.WeakHashSet;
import org.apache.sis.internal.util.Numerics;
import org.apache.sis.internal.util.CollectionsExt;
import org.apache.sis.util.resources.Errors;
import ucar.nc2.constants.CDM; // We use only String constants.
import ucar.nc2.constants.CF;
/**
* A netCDF variable created by {@link Decoder}.
*
* @author Martin Desruisseaux (Geomatys)
* @author Johann Sorel (Geomatys)
* @version 1.1
* @since 0.3
* @module
*/
public abstract class Variable extends Node {
/**
* Pool of vectors created by the {@link #read()} method. This pool is used for sharing netCDF coordinate axes,
* since the same vectors tend to be repeated in many netCDF files produced by the same data producer. Because
* those vectors can be large, sharing common instances may save a lot of memory.
*
* <p>All shared vectors shall be considered read-only.</p>
*/
protected static final WeakHashSet<Vector> SHARED_VECTORS = new WeakHashSet<>(Vector.class);
/**
* The pattern to use for parsing temporal units of the form "days since 1970-01-01 00:00:00".
*
* @see #parseUnit(String)
* @see Decoder#numberToDate(String, Number[])
*/
public static final Pattern TIME_UNIT_PATTERN = Pattern.compile("(.+)\\Wsince\\W(.+)", Pattern.CASE_INSENSITIVE);
/**
* The unit of measurement, parsed from {@link #getUnitsString()} when first needed.
* We do not try to parse the unit at construction time because this variable may be
* never requested by the user.
*
* @see #getUnit()
*/
private Unit<?> unit;
/**
* If the unit is a temporal unit of the form "days since 1970-01-01 00:00:00", the epoch.
* Otherwise {@code null}. This value can be set by subclasses as a side-effect of their
* {@link #parseUnit(String)} method implementation.
*/
protected Instant epoch;
/**
* Whether an attempt to parse the unit has already be done. This is used for avoiding
* to report the same failure many times when {@link #unit} stay null.
*
* @see #getUnit()
*/
private boolean unitParsed;
/**
* All no-data values declared for this variable, or an empty map if none.
* This is computed by {@link #getNodataValues()} and cached for efficiency and stability.
* The meaning of entries in this map is described in {@code getNodataValues()} method javadoc.
*
* @see #getNodataValues()
*/
private Map<Number,Object> nodataValues;
/**
* The grid associated to this variable, or {@code null} if none or not yet computed.
* The grid needs to be computed if {@link #gridDetermined} is {@code false}.
*
* @see #gridDetermined
* @see #getGridGeometry()
*/
private GridGeometry gridGeometry;
/**
* Whether {@link #gridGeometry} has been computed. Note that the result may still be {@code null}.
*
* @see #gridGeometry
* @see #getGridGeometry()
*/
private boolean gridDetermined;
/**
* If {@link #gridGeometry} has less dimensions than this variable, index of a grid dimension to take as raster bands.
* Otherwise this field is left uninitialized. If set, the index is relative to "natural" order (reverse of netCDF order).
*
* @see #getBandStride()
* @see RasterResource#bandDimension
*/
int bandDimension;
/**
* Creates a new variable.
*
* @param decoder the netCDF file where this variable is stored.
*/
protected Variable(final Decoder decoder) {
super(decoder);
}
/**
* Returns the name of the netCDF file containing this variable, or {@code null} if unknown.
* This is used for information purpose or error message formatting only.
*
* @return name of the netCDF file containing this variable, or {@code null} if unknown.
*/
public String getFilename() {
return decoder.getFilename();
}
/**
* Returns the name of this variable. May be used as sample dimension name in a raster.
*
* @return the name of this variable.
*/
@Override
public abstract String getName();
/**
* Returns the standard name if available, or the long name other, or the ordinary name otherwise.
* May be used as the {@link RasterResource} label, or the label of a {@link Raster} as a whole
* (including all bands). Standard name is preferred to variable name when controlled vocabulary
* is desired, for example for more stable identifier or more consistency between similar data.
*
* @return the standard name, or a fallback if there is no standard name.
*
* @see RasterResource#identifier
*/
public final String getStandardName() {
String name = getAttributeAsString(CF.STANDARD_NAME);
if (name == null) {
name = getAttributeAsString(CDM.LONG_NAME);
if (name == null) {
name = getName();
}
}
return name;
}
/**
* Returns the description of this variable, or {@code null} if none.
* May be used as a category name in a sample dimension of a {@link Raster}.
* This information may be encoded in different attributes like {@code "description"}, {@code "title"},
* {@code "long_name"} or {@code "standard_name"}. If the return value is non-null, then it should also
* be non-empty.
*
* @return the description of this variable, or {@code null}.
*/
public abstract String getDescription();
/**
* Returns the unit of measurement as a string, or {@code null} if none.
* The empty string can not be used for meaning "dimensionless unit"; some text is required.
*
* <p>Note: the UCAR library has its own API for handling units (e.g. {@link ucar.nc2.units.SimpleUnit}).
* However as of November 2018, this API does not allow us to identify the quantity type except for some
* special cases. We will parse the unit symbol ourselves instead, but we still need the full unit string
* for parsing also its {@linkplain Axis#direction direction}.</p>
*
* @return the unit of measurement, or {@code null}.
*
* @see #getUnit()
*/
protected abstract String getUnitsString();
/**
* Parses the given unit symbol and set the {@link #epoch} if the parsed unit is a temporal unit.
* This method is invoked by {@link #getUnit()} when first needed.
*
* @param symbols the unit symbol to parse.
* @return the parsed unit.
* @throws Exception if the unit can not be parsed. This wide exception type is used by the UCAR library.
*
* @see #getUnit()
*/
protected abstract Unit<?> parseUnit(String symbols) throws Exception;
/**
* Sets the unit of measurement and the epoch to the same value than the given variable.
* This method is not used in CF-compliant files; it is reserved for the handling of some
* particular conventions, for example HYCOM.
*
* @param other the variable from which to copy unit and epoch, or {@code null} if none.
* @param overwrite if non-null, set to the given unit instead than the unit of {@code other}.
* @return the epoch (may be {@code null}).
*
* @see #getUnit()
*/
public final Instant setUnit(final Variable other, Unit<?> overwrite) {
if (other != null) {
unit = other.getUnit(); // May compute the epoch as a side effect.
epoch = other.epoch;
}
if (overwrite != null) {
unit = overwrite;
}
unitParsed = true;
return epoch;
}
/**
* Returns the unit of measurement for this variable, or {@code null} if unknown.
* This method parses the units from {@link #getUnitsString()} when first needed
* and sets {@link #epoch} as a side-effect if the unit is temporal.
*
* @return the unit of measurement, or {@code null}.
*/
public final Unit<?> getUnit() {
if (!unitParsed) {
unitParsed = true; // Set first for avoiding to report errors many times.
final String symbols = getUnitsString();
if (symbols != null) try {
unit = parseUnit(symbols);
} catch (Exception ex) {
error(Variable.class, "getUnit", ex, Errors.Keys.CanNotAssignUnitToVariable_2, getName(), symbols);
}
}
return unit;
}
/**
* Returns {@code true} if this variable contains data that are already in the unit of measurement represented by
* {@link #getUnit()}, except for the fill/missing values. If {@code true}, then replacing fill/missing values by
* {@code NaN} is the only action needed for having converted values.
*
* <p>This method is for detecting when {@link RasterResource#getSampleDimensions()} should return sample dimensions
* for already converted values. But to be consistent with {@code SampleDimension} contract, it requires fill/missing
* values to be replaced by NaN. This is done by {@link #replaceNaN(Object)}.</p>
*
* @return whether this variable contains values in unit of measurement, ignoring fill and missing values.
*/
final boolean hasRealValues() {
final int n = getDataType().number;
if (n == Numbers.FLOAT | n == Numbers.DOUBLE) {
final Convention convention = decoder.convention();
if (convention != Convention.DEFAULT) {
return convention.transferFunction(this).isIdentity();
}
// Shortcut for common case.
double c = getAttributeAsNumber(CDM.SCALE_FACTOR);
if (Double.isNaN(c) || c == 1) {
c = getAttributeAsNumber(CDM.ADD_OFFSET);
return Double.isNaN(c) || c == 0;
}
}
return false;
}
/**
* Returns the variable data type.
*
* @return the variable data type, or {@link DataType#UNKNOWN} if unknown.
*
* @see #getAttributeType(String)
* @see #writeDataTypeName(StringBuilder)
*/
public abstract DataType getDataType();
/**
* Returns whether this variable is used as a coordinate system axis, a coverage or something else.
* This is a shortcut for {@link Convention#roleOf(Variable)}, except that {@code this} can not be null.
*
* @return role of this variable.
*
* @see Convention#roleOf(Variable)
*/
public final VariableRole getRole() {
return decoder.convention().roleOf(this);
}
/**
* Returns whether this variable can grow. A variable is unlimited if at least one of its dimension is unlimited.
* In netCDF 3 classic format, only the first dimension can be unlimited.
*
* @return whether this variable can grow.
*
* @see Dimension#isUnlimited()
*/
protected abstract boolean isUnlimited();
/**
* Returns whether this variable is used as a coordinate system axis.
* By netCDF convention, coordinate system axes have the name of one of the dimensions defined in the netCDF header.
*
* <p>This method has protected access because it should not be invoked directly. Code using variable role should
* invoke {@link Convention#roleOf(Variable)} instead, for allowing specialization by {@link Convention}.</p>
*
* @return whether this variable is a coordinate system axis.
*
* @see Convention#roleOf(Variable)
*/
protected abstract boolean isCoordinateSystemAxis();
/**
* Contains information computed together with {@link Variable#getGrid(Adjustment)} but are still specific to
* the enclosing variable. Those information are kept in a class separated from {@link Grid} because the same
* {@code Grid} instance may apply to many variables while {@code Adjustment} may contain amendments that are
* specific to a particular {@link Variable} instance.
*
* <p>An instance of this class is created by {@link #getGridGeometry()} and updated by {@link #getGrid(Adjustment)}.
* Subclasses of {@link Variable} do not need to know the details of this class; they just need to pass it verbatim
* to their parent class.</p>
*/
protected static final class Adjustment {
/**
* Factors by which to multiply a grid index in order to get the corresponding data index, or {@code null} if none.
* This is usually null, meaning that there is an exact match between grid indices and data indices. This array may
* be non-null if the localization grid has shorter dimensions than the dimensions of the variable, as documented
* in {@link Convention#nameOfDimension(Variable, int)} javadoc.
*
* <p>This array may be created by {@link #getGrid(Adjustment)} and is consumed by {@link #getGridGeometry()}.
* Some values in this array may be {@link Double#NaN} if the {@code "resampling_interval"} attribute was not found.
* This array may be longer than necessary.</p>
*
* @see #dataToGridIndices()
*/
private double[] gridToDataIndices;
/**
* Maps grid dimensions to variable dimensions when those dimensions are not the same. This map should always be empty,
* except in the case described in {@link #mapLabelToGridDimensions mapLabelToGridDimensions(…)} method. If non-empty,
* then the keys are dimensions in the {@link Grid} and values are corresponding dimensions in the {@link Variable}.
*/
final Map<Dimension,Dimension> gridToVariable;
/**
* Only {@link Variable#getGridGeometry()} should instantiate this class.
*/
private Adjustment() {
gridToVariable = new HashMap<>();
}
/**
* Builds a map of "dimension labels" to the actual {@link Dimension} instances of the grid.
* The dimension labels are not the dimension names, but some other convention-dependent identifiers.
* The mechanism is documented in {@link Convention#nameOfDimension(Variable, int)}.
* For example given a file with the following netCDF variables:
*
* {@preformat text
* float Latitude(grid_y, grid_x)
* dim0 = "Line grids"
* dim1 = "Pixel grids"
* resampling_interval = 10
* float Longitude(grid_y, grid_x)
* dim0 = "Line grids"
* dim1 = "Pixel grids"
* resampling_interval = 10
* ushort SST(data_y, data_x)
* dim0 = "Line grids"
* dim1 = "Pixel grids"
* }
*
* this method will add the following entries in the {@code toGridDimensions} map, provided that
* the dimensions are not already keys in that map:
*
* {@preformat text
* "Line grids" → Dimension[grid_x]
* "Pixel grids" → Dimension[grid_y]
* }
*
* @param variable the variable for which a "label to grid dimensions" mapping is desired.
* @param axes all axes in the netCDF file (not only the variable axes).
* @param toGridDimensions in input, the dimensions to accept. In output, "label → grid dimension" entries.
* @param convention convention for getting dimension labels.
* @return {@code true} if the {@code Variable.getGrid(…)} caller should abort.
*
* @see Convention#nameOfDimension(Variable, int)
*/
boolean mapLabelToGridDimensions(final Variable variable, final List<Variable> axes,
final Map<Object,Dimension> toGridDimensions, final Convention convention)
{
final Set<Dimension> requestedByConvention = new HashSet<>(); // Only in case of ambiguities.
final String[] namesOfAxisVariables = convention.namesOfAxisVariables(variable); // Only in case of ambiguities.
for (final Variable axis : axes) {
final boolean isRequested = ArraysExt.containsIgnoreCase(namesOfAxisVariables, axis.getName());
final List<Dimension> candidates = axis.getGridDimensions();
for (int j=candidates.size(); --j >= 0;) {
final Dimension dim = candidates.get(j);
if (toGridDimensions.containsKey(dim)) {
/*
* Found a dimension that has not already be taken by the 'dimensions' array.
* If this dimension has a name defined by an attribute like "Dim0" or "Dim1",
* make this dimension available for consideration by 'dimensions[i] = …' later.
*/
final String name = convention.nameOfDimension(axis, j);
if (name != null) {
if (gridToDataIndices == null) {
gridToDataIndices = new double[axes.size()]; // Conservatively use longest possible length.
}
gridToDataIndices[j] = convention.gridToDataIndices(axis);
final boolean overwrite = isRequested && requestedByConvention.add(dim);
final Dimension previous = toGridDimensions.put(name, dim);
if (previous != null && !previous.equals(dim)) {
/*
* The same name maps to two different dimensions. Given the ambiguity, we should give up.
* However we make an exception if only one dimension is part of a variable that has been
* explicitly requested. We identify this disambiguation in the following ways:
*
* isRequested = true → ok if overwrite = true → keep the newly added dimension.
* isRequested = false → if was previously in requestedByConvention, restore previous.
*/
if (!overwrite) {
if (!isRequested && requestedByConvention.contains(dim)) {
toGridDimensions.put(name, previous);
} else {
// Variable.getGridGeometry() is (indirectly) the caller of this method.
variable.error(Variable.class, "getGridGeometry", null, Errors.Keys.DuplicatedIdentifier_1, name);
return true;
}
}
}
}
}
}
}
return false;
}
/**
* Returns the factors by which to multiply a data index in order to get the corresponding grid index,
* or {@code null} if none. This array may be non-null if the localization grid has shorter dimensions
* than the ones of the variable (see {@link #mapLabelToGridDimensions mapLabelToGridDimensions(…)}).
* Caller needs to verify that the returned array, if non-null, is long enough.
*/
double[] dataToGridIndices() {
double[] dataToGridIndices = null;
if (gridToDataIndices != null) {
for (int i=gridToDataIndices.length; --i >= 0;) {
final double s = gridToDataIndices[i];
if (s > 0 && s != Double.POSITIVE_INFINITY) {
if (dataToGridIndices == null) {
dataToGridIndices = new double[i + 1];
}
dataToGridIndices[i] = 1 / s;
} else {
dataToGridIndices = null;
// May return a shorter array.
}
}
}
return dataToGridIndices;
}
}
/**
* Returns a builder for the grid geometry of this variable, or {@code null} if this variable is not a data cube.
* Not all variables have a grid geometry. For example collections of features do not have such grid.
* This method should be invoked only once per variable, but the same builder may be returned by different variables.
* The grid may have fewer {@linkplain Grid#getDimensions() dimensions} than this variable,
* in which case the additional {@linkplain #getGridDimensions() variable dimensions} can be considered as bands.
* The dimensions of the grid may have different {@linkplain Dimension#length() lengths} than the dimensions of
* this variable, in which case {@link #getGridGeometry()} is responsible for concatenating a scale factor to the
* "grid to CRS" transform.
*
* <p>The default implementation provided in this {@code Variable} base class could be sufficient, but subclasses
* are encouraged to override with a more efficient implementation or by exploiting information not available to this
* base class (for example UCAR {@link ucar.nc2.dataset.CoordinateSystem} objects) and invoke {@code super.getGrid(…)}
* as a fallback. The default implementation tries to build a grid in the following ways:</p>
*
* <ol class="verbose">
* <li><b>Grid of same dimension than this variable:</b>
* iterate over {@linkplain Decoder#getGrids() all localization grids} and search for an element having the
* same dimensions than this variable, i.e. where {@link Grid#getDimensions()} contains the same elements
* than {@link #getGridDimensions()} (not necessarily in the same order). The {@link Grid#forDimensions(Dimension[])}
* method will be invoked for reordering dimensions in the right order.</li>
*
* <li><b>Grid of different dimension than this variable:</b>
* if no localization grid has been found above, inspect {@linkplain Decoder#getVariables() all variables}
* that may potentially be an axis for this variable even if they do not use the same netCDF dimensions.
* Grids of different dimensions may exist if the netCDF files provides a decimated localization grid,
* for example where the longitudes and latitudes variables specify the values of only 1/10 of cells.
* This method tries to map the grid dimensions to variables dimensions through the mechanism documented in
* {@link Convention#nameOfDimension(Variable, int)}. This method considers that we have a mapping when two
* dimensions have the same "name" — not the usual {@linkplain Dimension#getName() name encoded in netCDF format},
* but rather the value of some {@code "dim"} attribute. If this method can map all dimensions of this variable to
* dimensions of a grid, then that grid is returned.</li>
*
* <li>If a mapping can not be established for all dimensions, this method returns {@code null}.</li>
* </ol>
*
* Subclasses should override this class with a more direct implementation and invoke this implementation only as a fallback.
* Typically, subclasses will handle case #1 in above list and this implementation is invoked for case #2.
* This method should be invoked only once, so subclasses do not need to cache the value.
*
* @param adjustment subclasses shall ignore and pass verbatim to {@code super.getGrid(adjustment)}.
* @return the grid geometry for this variable, or {@code null} if none.
* @throws IOException if an error occurred while reading the data.
* @throws DataStoreException if a logical error occurred.
*/
protected Grid getGrid(final Adjustment adjustment) throws IOException, DataStoreException {
final Convention convention = decoder.convention();
/*
* Collect all axis dimensions, in no particular order. We use this map for determining
* if a dimension of this variable can be used as-is, without the need to search for an
* association through Convention.nameOfDimension(…). It may be the case for example if
* the variable has a vertical or temporal axis which has not been decimated contrarily
* to longitude and latitude axes. Note that this map is recycled later for other use.
*/
final List<Variable> axes = new ArrayList<>();
final Map<Object,Dimension> domain = new HashMap<>();
for (final Variable candidate : decoder.getVariables()) {
if (candidate.getRole() == VariableRole.AXIS) {
axes.add(candidate);
for (final Dimension dim : candidate.getGridDimensions()) {
domain.put(dim, dim);
}
}
}
/*
* Get all dimensions of this variable in netCDF order, then replace them by dimensions from an axis variable.
* If we are in the situation #1 documented in javadoc, 'isIncomplete' will be 'false' after execution of this
* loop and all dimensions should be the same than the values returned by 'Variable.getGridDimensions()'.
*/
boolean isIncomplete = false;
final List<Dimension> fromVariable = getGridDimensions();
final Dimension[] dimensions = fromVariable.toArray(new Dimension[fromVariable.size()]);
for (int i=0; i<dimensions.length; i++) {
isIncomplete |= ((dimensions[i] = domain.remove(dimensions[i])) == null);
}
/*
* If there is at least one variable dimension that we did not found directly among axis dimensions, check if
* we can relate dimensions indirectly by Convention.nameOfDimension(…). This is the situation #2 in javadoc.
* We do not merge this loop with above loop because we want all dimensions recognized by situation #1 to be
* removed before we attempt those indirect associations.
*/
if (isIncomplete) {
for (int i=0; i<dimensions.length; i++) {
if (dimensions[i] == null) {
final String label = convention.nameOfDimension(this, i);
if (label == null) {
return null; // No information allowing us to relate that variable dimension to a grid dimension.
}
/*
* The first time that we find a label that may allow us to associate this variable dimension with a
* grid dimension, build a map of all labels associated to dimensions. We reuse the existing 'domain'
* map; there is no confusion since the keys are not of the same class.
*/
if (isIncomplete) {
isIncomplete = false; // Execute this block only once.
if (adjustment.mapLabelToGridDimensions(this, axes, domain, convention)) {
return null; // Warning message already emitted by Adjustment.
}
}
/*
* Remembers which dimension from the variable corresponds to a dimension from the grid.
* Those dimensions would have been the same if we were not in a situation where size of
* localization grid is not the same than the data variable size.
*/
final Dimension varDimension = fromVariable.get(i);
final Dimension gridDimension = domain.remove(label);
dimensions[i] = gridDimension;
if (gridDimension == null) {
warning(Variable.class, "getGridGeometry", // Caller (indirectly) for this method.
Resources.Keys.CanNotRelateVariableDimension_3, getFilename(), getName(), label);
return null;
}
if (adjustment.gridToVariable.put(gridDimension, varDimension) != null) {
throw new InternalDataStoreException(errors().getString(Errors.Keys.ElementAlreadyPresent_1, gridDimension));
}
}
}
}
/*
* At this point we finished collecting all dimensions to use in the grid. Search a grid containing
* those dimensions in the same order (the order is enforced by Grid.forDimensions(…) method call).
* If we find a grid meting all criterion, we return it immediately. Otherwise select a fallback in
* the following precedence order:
*
* 1) grid having all axes requested by the customized convention (usually there is none).
* 2) grid having the greatest number of dimensions.
*/
Grid fallback = null;
boolean fallbackMatches = false;
final String[] axisNames = convention.namesOfAxisVariables(this); // Usually null.
for (final Grid candidate : decoder.getGrids()) {
final Grid grid = candidate.forDimensions(dimensions);
if (grid != null) {
final int gridDimension = grid.getSourceDimensions();
final boolean gridMatches = grid.containsAllNamedAxes(axisNames);
if (gridMatches && gridDimension == dimensions.length) {
return grid; // Full match: no need to continue.
}
if (gridMatches | !fallbackMatches) {
/*
* If the grid contains all axes, it has precedence over previous grid unless that previous grid
* also contained all axes (gridMatches == fallbackMatches). In such case we keep the grid having
* the largest number of dimensions.
*/
if (gridMatches != fallbackMatches || fallback == null || gridDimension > fallback.getSourceDimensions()) {
fallbackMatches = gridMatches;
fallback = grid;
}
}
}
}
return fallback;
}
/**
* Returns the grid geometry for this variable, or {@code null} if this variable is not a data cube.
* Not all variables have a grid geometry. For example collections of features do not have such grid.
* The same grid geometry may be shared by many variables.
* The grid may have fewer {@linkplain Grid#getDimensions() dimensions} than this variable,
* in which case the additional {@linkplain #getGridDimensions() variable dimensions} can be considered as bands.
*
* @return the grid geometry for this variable, or {@code null} if none.
* @throws IOException if an error occurred while reading the data.
* @throws DataStoreException if a logical error occurred.
*/
public final GridGeometry getGridGeometry() throws IOException, DataStoreException {
if (!gridDetermined) {
gridDetermined = true; // Set first so we don't try twice in case of failure.
final GridMapping gridMapping = GridMapping.forVariable(this);
final Adjustment adjustment = new Adjustment();
final Grid info = getGrid(adjustment);
if (info != null) {
/*
* This variable may have more dimensions than the grid. We need to reduce the list to the same
* dimensions than the ones in the grid. We can not take Grid.getDimensions() directly because
* those dimensions may not have the same length (this mismatch is handled in the next block).
*/
List<Dimension> dimensions = getGridDimensions(); // In netCDF order.
final int dataDimension = dimensions.size();
if (dataDimension > info.getSourceDimensions()) {
boolean copied = false;
final List<Dimension> toKeep = info.getDimensions(); // Also in netCDF order.
final int numToKeep = toKeep.size();
for (int i=0; i<numToKeep; i++) {
Dimension expected = toKeep.get(i);
expected = adjustment.gridToVariable.getOrDefault(expected, expected);
/*
* At this point, 'expected' is a dimension of the variable that we expect to find at
* current index 'i'. If we do not find that dimension, then the unexpected dimension
* is assumed to be a band. We usually remove at most one element. If removal results
* in a list too short, it would be a bug in the way we computed 'toKeep'.
*/
while (!expected.equals(dimensions.get(i))) {
if (!copied) {
copied = true;
dimensions = new ArrayList<>(dimensions);
}
/*
* It is possible that we never reach this point if the unexpected dimension is last.
* However in such case the dimension to declare is the last one in netCDF order,
* which corresponds to the first dimension (i.e. dimension 0) in "natural" order.
* Since the 'bandDimension' field is initialized to zero, its value is correct.
*/
bandDimension = dataDimension - 1 - i; // Convert netCDF order to "natural" order.
dimensions.remove(i);
if (dimensions.size() < numToKeep) {
throw new InternalDataStoreException(); // Should not happen (see above comment).
}
}
}
/*
* At this point 'dimensions' may still be longer than 'toKeep' but it does not matter.
* We only need that for any index i < numToKeep, dimensions.get(i) corresponds to the
* dimension at the same index in the grid.
*/
}
/*
* Compare the size of the variable with the size of the localization grid.
* If they do not match, then there is a scale factor between the two that
* needs to be applied.
*/
GridGeometry grid = info.getGridGeometry(decoder);
if (grid.isDefined(GridGeometry.EXTENT)) {
GridExtent extent = grid.getExtent();
final long[] sizes = new long[extent.getDimension()];
boolean needsResize = false;
for (int i=sizes.length; --i >= 0;) {
final int d = (sizes.length - 1) - i; // Convert "natural order" index into netCDF index.
sizes[i] = dimensions.get(d).length();
if (!needsResize) {
needsResize = (sizes[i] != extent.getSize(i));
}
}
if (needsResize) {
final double[] dataToGridIndices = adjustment.dataToGridIndices();
if (dataToGridIndices == null || dataToGridIndices.length < sizes.length) {
warning(Variable.class, "getGridGeometry", Resources.Keys.ResamplingIntervalNotFound_2, getFilename(), getName());
return null;
}
extent = extent.resize(sizes);
grid = grid.derive().resize(extent, dataToGridIndices).build();
}
}
/*
* At this point we finished to build a grid geometry from the information provided by axes.
* If there is grid mapping attributes (e.g. "EPSG_code", "ESRI_pe_string", "GeoTransform",
* "spatial_ref", etc.), substitute some parts of the grid geometry by the parts built from
* those attributes.
*/
if (gridMapping != null) {
grid = gridMapping.adaptGridCRS(this, grid, info.getAnchor());
}
gridGeometry = grid;
} else if (gridMapping != null) {
gridGeometry = gridMapping.createGridCRS(this);
}
}
return gridGeometry;
}
/**
* Returns the number of sample values between two bands.
* This method is meaningful only if {@link #bandDimension} ≧ 0.
*/
final long getBandStride() throws IOException, DataStoreException {
long length = 1;
final GridExtent extent = getGridGeometry().getExtent();
for (int i=bandDimension; --i >= 0;) {
length = Math.multiplyExact(length, extent.getSize(i));
}
return length;
}
/**
* Returns the dimensions of this variable in the order they are declared in the netCDF file.
* The dimensions are those of the grid, not the dimensions of the coordinate system.
* In ISO 19123 terminology, {@link Dimension#length()} on each dimension give the upper corner
* of the grid envelope plus one. The lower corner is always (0, 0, …, 0).
*
* <div class="note"><b>Usage:</b>
* this information is used for completing ISO 19115 metadata, providing a default implementation of
* {@link Convention#roleOf(Variable)} method or for building string representation of this variable
* among others. Those tasks are mostly for information purpose, except if {@code Variable} subclass
* failed to create a grid and we must rely on {@link #getGrid(Adjustment)} default implementation.
* For actual georeferencing, use {@link #getGridGeometry()} instead.</div>
*
* If {@link #getGrid(Adjustment)} returns a non-null value, then the list returned by this method should
* contain all dimensions returned by {@link Grid#getDimensions()}. It may contain more dimension however.
* Those additional dimensions can be considered as bands. Furthermore the dimensions of the {@code Grid}
* may have a different {@linkplain Dimension#length() length} than the dimensions returned by this method.
* If such length mismatch exists, then {@link #getGridGeometry()} will concatenate a scale factor to
* the "grid to CRS" transform.
*
* @return all dimensions of this variable, in netCDF order (reverse of "natural" order).
*
* @see Grid#getDimensions()
*/
public abstract List<Dimension> getGridDimensions();
/**
* Returns the range of valid values, or {@code null} if unknown. This is a shortcut for
* {@link Convention#validRange(Variable)} with a fallback on {@link #getRangeFallback()}.
*
* @return the range of valid values, or {@code null} if unknown.
*
* @see Convention#validRange(Variable)
*/
final NumberRange<?> getValidRange() {
NumberRange<?> range = decoder.convention().validRange(this);
if (range == null) {
range = getRangeFallback();
}
return range;
}
/**
* Returns the range of values as determined by the data type or other means, or {@code null} if unknown.
* This method is invoked only as a fallback if {@link Convention#validRange(Variable)} did not found a
* range of values by application of CF conventions. The returned range may be a range of packed values
* or a range of real values. In the later case, the range shall be an instance of
* {@link org.apache.sis.measure.MeasurementRange}.
*
* <p>The default implementation returns the range of values that can be stored with the {@linkplain #getDataType()
* data type} of this variable, if that type is an integer type. The range of {@linkplain #getNodataValues() no data
* values} are subtracted.</p>
*
* @return the range of valid values, or {@code null} if unknown.
*
* @see Convention#validRange(Variable)
*/
protected NumberRange<?> getRangeFallback() {
final DataType dataType = getDataType();
if (dataType.isInteger) {
final int size = dataType.size() * Byte.SIZE;
if (size > 0 && size <= Long.SIZE) {
long min = 0;
long max = Numerics.bitmask(size) - 1;
if (!dataType.isUnsigned) {
max >>>= 1;
min = ~max;
}
for (final Number value : getNodataValues().keySet()) {
final long n = value.longValue();
final long Δmin = (n - min); // Should be okay even with long unsigned values.
final long Δmax = (max - n);
if (Δmin >= 0 && Δmax >= 0) { // Test if the pad/missing value is inside range.
if (Δmin < Δmax) min = n + 1; // Reduce the extremum closest to the pad value.
else max = n - 1;
}
}
if (max > min) { // Note: this will also exclude unsigned long if max > Long.MAX_VALUE.
if (min >= Integer.MIN_VALUE && max <= Integer.MAX_VALUE) {
return NumberRange.create((int) min, true, (int) max, true);
}
return NumberRange.create(min, true, max, true);
}
}
}
return null;
}
/**
* Returns all no-data values declared for this variable, or an empty map if none.
* The map keys are the no-data values (pad sample values or missing sample values).
* The map values can be either {@link String} or {@link org.opengis.util.InternationalString} values
* containing the description of the no-data value, or an {@link Integer} set to a bitmask identifying
* the role of the pad/missing sample value:
*
* <ul>
* <li>If bit 0 is set, then the value is a pad value. Those values can be used for background.</li>
* <li>If bit 1 is set, then the value is a missing value.</li>
* </ul>
*
* Pad values should be first in the map, followed by missing values.
* The same value may have more than one role.
* The map returned by this method shall be stable, i.e. two invocations of this method shall return the
* same entries in the same order. This is necessary for mapping "no data" values to the same NaN values,
* since their {@linkplain MathFunctions#toNanFloat(int) ordinal values} are based on order.
*
* @return pad/missing values with bitmask of their role.
*
* @see Convention#nodataValues(Variable)
*/
@SuppressWarnings("ReturnOfCollectionOrArrayField")
final Map<Number,Object> getNodataValues() {
if (nodataValues == null) {
nodataValues = CollectionsExt.unmodifiableOrCopy(decoder.convention().nodataValues(this));
}
return nodataValues;
}
/**
* Builds the function converting values from their packed formats in the variable to "real" values.
*/
final TransferFunction getTransferFunction() {
return decoder.convention().transferFunction(this);
}
/**
* Reads all the data for this variable and returns them as an array of a Java primitive type.
* Multi-dimensional variables are flattened as a one-dimensional array (wrapped in a vector).
* Example:
*
* {@preformat text
* DIMENSIONS:
* time: 3
* lat : 2
* lon : 4
*
* VARIABLES:
* temperature (time,lat,lon)
*
* DATA INDICES:
* (0,0,0) (0,0,1) (0,0,2) (0,0,3)
* (0,1,0) (0,1,1) (0,1,2) (0,1,3)
* (1,0,0) (1,0,1) (1,0,2) (1,0,3)
* (1,1,0) (1,1,1) (1,1,2) (1,1,3)
* (2,0,0) (2,0,1) (2,0,2) (2,0,3)
* (2,1,0) (2,1,1) (2,1,2) (2,1,3)
* }
*
* If {@link #hasRealValues()} returns {@code true}, then this method shall
* {@linkplain #replaceNaN(Object) replace fill values and missing values by NaN values}.
* This method should cache the returned vector since this method may be invoked often.
* Because of caching, this method should not be invoked for large data array.
* Callers shall not modify the returned vector.
*
* @return the data as an array of a Java primitive type.
* @throws IOException if an error occurred while reading the data.
* @throws DataStoreException if a logical error occurred.
* @throws ArithmeticException if the size of the variable exceeds {@link Integer#MAX_VALUE}, or other overflow occurs.
*/
public abstract Vector read() throws IOException, DataStoreException;
/**
* Reads a subsampled sub-area of the variable.
* Constraints on the argument values are:
*
* <ul>
* <li>Argument dimensions shall be equal to the size of the {@link #getGridDimensions()} list.</li>
* <li>For each index <var>i</var>, value of {@code area[i]} shall be in the range from 0 inclusive
* to {@code Integer.toUnsignedLong(getShape()[length - 1 - i])} exclusive.</li>
* <li>Values are in "natural" order (inverse of netCDF order).</li>
* </ul>
*
* If the variable has more than one dimension, then the data are packed in a one-dimensional vector
* in the same way than {@link #read()}. If {@link #hasRealValues()} returns {@code true}, then this
* method shall {@linkplain #replaceNaN(Object) replace fill/missing values by NaN values}.
*
* @param area indices of cell values to read along each dimension, in "natural" order.
* @param subsampling subsampling along each dimension. 1 means no subsampling.
* @return the data as an array of a Java primitive type.
* @throws IOException if an error occurred while reading the data.
* @throws DataStoreException if a logical error occurred.
* @throws ArithmeticException if the size of the region to read exceeds {@link Integer#MAX_VALUE}, or other overflow occurs.
*/
public abstract Vector read(GridExtent area, int[] subsampling) throws IOException, DataStoreException;
/**
* Wraps the given data in a {@link Vector} with the assumption that accuracy in base 10 matters.
* This method is suitable for coordinate axis variables, but should not be used for the main data.
*
* @param data the data to wrap in a vector.
* @param isUnsigned whether the data type is an unsigned type.
* @return vector wrapping the given data.
*/
protected static Vector createDecimalVector(final Object data, final boolean isUnsigned) {
if (data instanceof float[]) {
return Vector.createForDecimal((float[]) data);
} else {
return Vector.create(data, isUnsigned);
}
}
/**
* Maybe replaces fill values and missing values by {@code NaN} values in the given array.
* This method does nothing if {@link #hasRealValues()} returns {@code false}.
* The NaN values used by this method must be consistent with the NaN values declared in
* the sample dimensions created by {@link RasterResource}.
*
* @param array the array in which to replace fill and missing values.
*/
protected final void replaceNaN(final Object array) {
if (hasRealValues()) {
int ordinal = 0;
for (final Number value : getNodataValues().keySet()) {
final float pad = MathFunctions.toNanFloat(ordinal++); // Must be consistent with RasterResource.createSampleDimension(…).
if (array instanceof float[]) {
ArraysExt.replace((float[]) array, value.floatValue(), pad);
} else if (array instanceof double[]) {
ArraysExt.replace((double[]) array, value.doubleValue(), pad);
}
}
}
}
/**
* Returns a coordinate for this two-dimensional grid coordinate axis. This is (indirectly) a callback method
* for {@link Grid#getAxes(Decoder)}. The (<var>i</var>, <var>j</var>) indices are grid indices <em>before</em>
* they get reordered by the {@link Grid#getAxes(Decoder)} method. In the netCDF UCAR API, this method maps directly
* to {@link ucar.nc2.dataset.CoordinateAxis2D#getCoordValue(int, int)}.
*
* @param j the slowest varying (left-most) index.
* @param i the fastest varying (right-most) index.
* @return the coordinate at the given index, or {@link Double#NaN} if it can not be computed.
* @throws IOException if an I/O operation was necessary but failed.
* @throws DataStoreException if a logical error occurred.
* @throws ArithmeticException if the axis size exceeds {@link Integer#MAX_VALUE}, or other overflow occurs.
*/
protected abstract double coordinateForAxis(int j, int i) throws IOException, DataStoreException;
/**
* Sets the scale and offset coefficients in the given "grid to CRS" transform if possible.
* Source and target dimensions given to this method are in "natural" order (reverse of netCDF order).
* This method is invoked only for variables that represent a coordinate system axis.
* Setting the coefficient is possible only if values in this variable are regular,
* i.e. the difference between two consecutive values is constant.
*
* @param gridToCRS the matrix in which to set scale and offset coefficient.
* @param srcDim the source dimension, which is a dimension of the grid. Identifies the matrix column of scale factor.
* @param tgtDim the target dimension, which is a dimension of the CRS. Identifies the matrix row of scale factor.
* @param values the vector to use for computing scale and offset.
* @return whether this method has successfully set the scale and offset coefficients.
* @throws IOException if an error occurred while reading the data.
* @throws DataStoreException if a logical error occurred.
*/
protected boolean trySetTransform(final Matrix gridToCRS, final int srcDim, final int tgtDim, final Vector values)
throws IOException, DataStoreException
{
final int n = values.size() - 1;
if (n >= 0) {
final double first = values.doubleValue(0);
Number increment;
if (n >= 1) {
final double last = values.doubleValue(n);
double error;
if (getDataType() == DataType.FLOAT) {
error = Math.max(Math.ulp((float) first), Math.ulp((float) last));
} else {
error = Math.max(Math.ulp(first), Math.ulp(last));
}
error = Math.max(Math.ulp(last - first), error) / n;
increment = values.increment(error); // May return null.
} else {
increment = Double.NaN;
}
if (increment != null) {
gridToCRS.setElement(tgtDim, srcDim, increment.doubleValue());
gridToCRS.setElement(tgtDim, gridToCRS.getNumCol() - 1, first);
return true;
}
}
return false;
}
/**
* Constructs the exception to thrown when the variable position can not be computed.
*
* @param cause the reason why we can not compute the position, or {@code null}.
* @return the exception to thrown.
*/
protected final DataStoreContentException canNotComputePosition(final ArithmeticException cause) {
return new DataStoreContentException(resources().getString(
Resources.Keys.CanNotComputeVariablePosition_2, getFilename(), getName()), cause);
}
/**
* Appends the name of the variable data type as the name of the primitive type
* followed by the span of each dimension (in unit of grid cells) between brackets.
* Dimensions are listed in "natural" order (reverse of netCDF order).
* Example: {@code "SHORT[360][180]"}.
*
* @param buffer the buffer when to append the name of the variable data type.
*/
public final void writeDataTypeName(final StringBuilder buffer) {
buffer.append(getDataType().name().toLowerCase(Locale.US));
final List<Dimension> dimensions = getGridDimensions();
for (int i=dimensions.size(); --i>=0;) {
dimensions.get(i).writeLength(buffer);
}
}
/**
* Returns a string representation of this variable for debugging purpose.
*
* @return a string representation of this variable.
*
* @see #writeDataTypeName(StringBuilder)
*/
@Override
public String toString() {
final StringBuilder buffer = new StringBuilder(getName()).append(" : ");
writeDataTypeName(buffer);
if (isUnlimited()) {
buffer.append(" (unlimited)");
}
return buffer.toString();
}
/*
* Do not override Object.equals(Object) and Object.hashCode(),
* because Variables are used as keys by GridMapping.forVariable(…).
*/
}
| 4,812 |
https://github.com/MBeijer/fasttracker2-clone/blob/master/src/ft2_module_saver.c
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,019 |
fasttracker2-clone
|
MBeijer
|
C
|
Code
| 1,928 | 6,272 |
// for finding memory leaks in debug mode with Visual Studio
#if defined _DEBUG && defined _MSC_VER
#include <crtdbg.h>
#endif
#include <stdio.h>
#include <stdbool.h>
#include "ft2_header.h"
#include "ft2_audio.h"
#include "ft2_gui.h"
#include "ft2_mouse.h"
#include "ft2_sample_ed.h"
#include "ft2_module_loader.h"
/* These savers are directly ported, so they should act identical to FT2
** except for some very minor changes. */
static SDL_Thread *thread;
static uint16_t packPatt(uint8_t *pattPtr, uint16_t numRows);
// ft2_replayer.c
extern const char modSig[32][5];
extern const uint16_t amigaPeriod[12*8];
bool saveXM(UNICHAR *filenameU)
{
uint8_t *pattPtr;
int16_t ap, ai, i, j, k, a;
uint16_t b, c;
size_t result;
songHeaderTyp h;
patternHeaderTyp ph;
instrHeaderTyp ih;
sampleTyp *srcSmp;
sampleHeaderTyp *dstSmp;
FILE *f;
f = UNICHAR_FOPEN(filenameU, "wb");
if (f == NULL)
{
okBoxThreadSafe(0, "System message", "Error opening file for saving, is it in use?");
return false;
}
memcpy(h.sig, "Extended Module: ", 17);
memset(h.name, ' ', 20);
h.name[20] = 0x1A;
memcpy(h.name, song.name, strlen(song.name));
memcpy(h.progName, PROG_NAME_STR, 20);
h.ver = 0x0104;
h.headerSize = 20 + 256;
h.len = song.len;
h.repS = song.repS;
h.antChn = song.antChn;
h.defTempo = song.tempo;
h.defSpeed = song.speed;
// count number of patterns
ap = MAX_PATTERNS;
do
{
if (patternEmpty(ap - 1))
ap--;
else
break;
}
while (ap > 0);
h.antPtn = ap;
// count number of instruments
ai = 128;
while (ai > 0 && getUsedSamples(ai) == 0 && song.instrName[ai][0] == '\0')
ai--;
h.antInstrs = ai;
h.flags = linearFrqTab;
memcpy(h.songTab, song.songTab, sizeof (song.songTab));
if (fwrite(&h, sizeof (h), 1, f) != 1)
{
fclose(f);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
return false;
}
for (i = 0; i < ap; i++)
{
if (patternEmpty(i))
{
if (patt[i] != NULL)
{
free(patt[i]);
patt[i] = NULL;
}
pattLens[i] = 64;
}
ph.patternHeaderSize = sizeof (patternHeaderTyp);
ph.pattLen = pattLens[i];
ph.typ = 0;
if (patt[i] == NULL)
{
ph.dataLen = 0;
if (fwrite(&ph, ph.patternHeaderSize, 1, f) != 1)
{
fclose(f);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
return false;
}
}
else
{
c = packPatt((uint8_t *)patt[i], pattLens[i]);
b = pattLens[i] * TRACK_WIDTH;
ph.dataLen = c;
result = fwrite(&ph, ph.patternHeaderSize, 1, f);
result += fwrite(patt[i], ph.dataLen, 1, f);
pattPtr = (uint8_t *)patt[i];
memcpy(&pattPtr[b-c], patt[i], c);
unpackPatt(pattPtr, b - c, pattLens[i], song.antChn);
clearUnusedChannels(patt[i], pattLens[i], song.antChn);
if (result != 2) // write was not OK
{
fclose(f);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
return false;
}
}
}
for (i = 1; i <= ai; i++)
{
if (instr[i] == NULL)
j = 0;
else
j = i;
a = getUsedSamples(i);
memset(ih.name, 0, 22);
memcpy(ih.name, song.instrName[i], strlen(song.instrName[i]));
ih.typ = 0;
ih.antSamp = a;
ih.sampleSize = sizeof (sampleHeaderTyp);
if (a > 0)
{
memcpy(ih.ta, instr[j], INSTR_SIZE);
ih.instrSize = INSTR_HEADER_SIZE;
for (k = 1; k <= a; k++)
{
srcSmp = &instr[j]->samp[k-1];
dstSmp = &ih.samp[k-1];
memset(dstSmp->name, ' ', 22);
memcpy(dstSmp, srcSmp, 12+4+2 + strlen(srcSmp->name));
if (srcSmp->pek == NULL)
dstSmp->len = 0;
}
}
else
{
ih.instrSize = 22 + 11;
}
if (fwrite(&ih, ih.instrSize + (a * sizeof (sampleHeaderTyp)), 1, f) != 1)
{
fclose(f);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
return false;
}
for (k = 1; k <= a; k++)
{
srcSmp = &instr[j]->samp[k-1];
if (srcSmp->pek != NULL)
{
restoreSample(srcSmp);
samp2Delta(srcSmp->pek, srcSmp->len, srcSmp->typ);
result = fwrite(srcSmp->pek, 1, srcSmp->len, f);
delta2Samp(srcSmp->pek, srcSmp->len, srcSmp->typ);
fixSample(srcSmp);
if (result != (size_t)srcSmp->len) // write not OK
{
fclose(f);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
return false;
}
}
}
}
removeSongModifiedFlag();
fclose(f);
editor.diskOpReadDir = true; // force diskop re-read
setMouseBusy(false);
return true;
}
static bool saveMOD(UNICHAR *filenameU)
{
bool test, tooManyInstr, incompatEfx, noteUnderflow;
int8_t *srcPtr, *dstPtr;
uint8_t ton, inst, pattBuff[64*4*32];
int16_t a, i, ap;
int32_t j, k, l1, l2, l3, writeLen, bytesToWrite, bytesWritten;
FILE *f;
instrTyp *ins;
sampleTyp *smp;
tonTyp *t;
songMOD31HeaderTyp hm;
tooManyInstr = false;
incompatEfx = false;
noteUnderflow = false;
if (linearFrqTab)
okBoxThreadSafe(0, "System message", "Linear frequency table used!");
// sanity checking
test = false;
if (song.len > 128)
test = true;
for (i = 100; i < 256; i++)
{
if (patt[i] != NULL)
{
test = true;
break;
}
}
if (test) okBoxThreadSafe(0, "System message", "Too many patterns!");
for (i = 32; i <= 128; i++)
{
if (getRealUsedSamples(i) > 0)
{
okBoxThreadSafe(0, "System message", "Too many instruments!");
break;
}
}
test = false;
for (i = 1; i <= 31; i++)
{
ins = instr[i];
if (ins == NULL)
continue;
smp = &ins->samp[0];
j = getRealUsedSamples(i);
if (j > 1)
{
test = true;
break;
}
if (j == 1)
{
if (smp->len > 65534 || ins->fadeOut != 0 || ins->envVTyp != 0 || ins->envPTyp != 0 ||
(smp->typ & 3) == 2 || smp->relTon != 0 || ins->midiOn)
{
test = true;
break;
}
}
}
if (test) okBoxThreadSafe(0, "System message", "Incompatible instruments!");
for (i = 0; i < 99; i++)
{
if (patt[i] != NULL)
{
if (pattLens[i] != 64)
{
okBoxThreadSafe(0, "System message", "Unable to convert module. (Illegal pattern length)");
return false;
}
for (j = 0; j < 64; j++)
{
for (k = 0; k < song.antChn; k++)
{
t = &patt[i][(j * MAX_VOICES) + k];
if (t->instr > 31)
tooManyInstr = true;
if (t->effTyp > 15 || t->vol != 0)
incompatEfx = true;
// added security that wasn't present in FT2
if (t->ton > 0 && t->ton < 10)
noteUnderflow = true;
}
}
}
}
if (tooManyInstr) okBoxThreadSafe(0, "System message", "Instrument(s) above 31 was found in pattern data!");
if (incompatEfx) okBoxThreadSafe(0, "System message", "Incompatible effect(s) was found in pattern data!");
if (noteUnderflow) okBoxThreadSafe(0, "System message", "Note(s) below A-0 were found in pattern data!");
// setup header buffer
memset(&hm, 0, sizeof (hm));
memcpy(hm.name, song.name, sizeof (hm.name));
hm.len = (uint8_t)song.len;
if (hm.len > 128) hm.len = 128;
hm.repS = (uint8_t)song.repS;
if (hm.repS > 127) hm.repS = 0;
memcpy(hm.songTab, song.songTab, song.len);
// calculate number of patterns
ap = 0;
for (i = 0; i < song.len; i++)
{
if (song.songTab[i] > ap)
ap = song.songTab[i];
}
if (song.antChn == 4)
memcpy(hm.sig, (ap > 64) ? "M!K!" : "M.K.", 4);
else
memcpy(hm.sig, modSig[song.antChn-1], 4);
// read sample information into header buffer
for (i = 1; i <= 31; i++)
{
songMODInstrHeaderTyp *modIns = &hm.instr[i-1];
memcpy(modIns->name, song.instrName[i], sizeof (modIns->name));
if (instr[i] != NULL && getRealUsedSamples(i) != 0)
{
smp = &instr[i]->samp[0];
l1 = smp->len / 2;
l2 = smp->repS / 2;
l3 = smp->repL / 2;
if (smp->typ & 16)
{
l1 /= 2;
l2 /= 2;
l3 /= 2;
}
if (l1 > 32767)
l1 = 32767;
if (l2 > l1)
l2 = l1;
if (l2+l3 > l1)
l3 = l1 - l2;
// FT2 bug-fix
if (l3 < 1)
{
l2 = 0;
l3 = 1;
}
modIns->len = (uint16_t)(SWAP16(l1));
modIns->fine = ((smp->fine + 128) >> 4) ^ 8;
modIns->vol = smp->vol;
if ((smp->typ & 3) == 0)
{
modIns->repS = 0;
modIns->repL = SWAP16(1);
}
else
{
modIns->repS = (uint16_t)(SWAP16(l2));
modIns->repL = (uint16_t)(SWAP16(l3));
}
}
// FT2 bugfix: never allow replen being below 2 (1)
if (SWAP16(modIns->repL) < 1)
{
modIns->repS = SWAP16(0);
modIns->repL = SWAP16(1);
}
}
f = UNICHAR_FOPEN(filenameU, "wb");
if (f == NULL)
{
okBoxThreadSafe(0, "System message", "Error opening file for saving, is it in use?");
return false;
}
// write header
if (fwrite(&hm, 1, sizeof (hm), f) != sizeof (hm))
{
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
goto modSaveError;
}
// write pattern data
for (i = 0; i <= ap; i++)
{
if (patt[i] == NULL)
{
// empty pattern
memset(pattBuff, 0, song.antChn * (64 * 4));
}
else
{
a = 0;
for (j = 0; j < 64; j++)
{
for (k = 0; k < song.antChn; k++)
{
t = &patt[i][(j * MAX_VOICES) + k];
inst = t->instr;
ton = t->ton;
// FT2 bugfix: prevent overflow
if (inst > 31)
inst = 0;
// FT2 bugfix: convert note-off into no note
if (ton == 97)
ton = 0;
// FT2 bugfix: clamp notes below 10 (A-0) to prevent 12-bit period overflow
if (ton > 0 && ton < 10)
ton = 10;
if (ton == 0)
{
pattBuff[a+0] = inst & 0xF0;
pattBuff[a+1] = 0;
}
else
{
pattBuff[a+0] = (inst & 0xF0) | ((amigaPeriod[ton-1] >> 8) & 0x0F);
pattBuff[a+1] = amigaPeriod[ton-1] & 0xFF;
}
// FT2 bugfix: if effect is overflowing (0xF in .MOD), set effect and param to 0
if (t->effTyp > 0x0F)
{
pattBuff[a+2] = (inst & 0x0F) << 4;
pattBuff[a+3] = 0;
}
else
{
pattBuff[a+2] = ((inst & 0x0F) << 4) | (t->effTyp & 0x0F);
pattBuff[a+3] = t->eff;
}
a += 4;
}
}
}
if (fwrite(pattBuff, 1, song.antChn * (64 * 4), f) != (size_t)(song.antChn * (64 * 4)))
{
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
goto modSaveError;
}
}
// write sample data
for (i = 0; i < 31; i++)
{
if (instr[1+i] == NULL || getRealUsedSamples(1+i) == 0)
continue;
smp = &instr[1+i]->samp[0];
if (smp->pek == NULL || smp->len <= 0)
continue;
restoreSample(smp);
l1 = smp->len / 2;
if (smp->typ & 16) // 16-bit sample (convert to 8-bit)
{
if (l1 > 65534)
l1 = 65534;
// let's borrow "pattBuff" here
dstPtr = (int8_t *)pattBuff;
writeLen = l1;
bytesWritten = 0;
while (bytesWritten < writeLen) // write in 8K blocks
{
bytesToWrite = sizeof (pattBuff);
if (bytesWritten+bytesToWrite > writeLen)
bytesToWrite = writeLen - bytesWritten;
srcPtr = &smp->pek[(bytesWritten << 1) + 1]; // +1 to align to high byte
for (j = 0; j < bytesToWrite; j++)
dstPtr[j] = srcPtr[j << 1];
if (fwrite(dstPtr, 1, bytesToWrite, f) != (size_t)bytesToWrite)
{
fixSample(smp);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
goto modSaveError;
}
bytesWritten += bytesToWrite;
}
}
else
{
// 8-bit sample
if (l1 > 32767)
l1 = 32767;
l1 *= 2;
if (fwrite(smp->pek, 1, l1, f) != (size_t)l1)
{
fixSample(smp);
okBoxThreadSafe(0, "System message", "Error saving module: general I/O error!");
goto modSaveError;
}
}
fixSample(smp);
}
fclose(f);
removeSongModifiedFlag();
editor.diskOpReadDir = true; // force diskop re-read
setMouseBusy(false);
return true;
modSaveError:
fclose(f);
return false;
}
static int32_t SDLCALL saveMusicThread(void *ptr)
{
(void)ptr;
assert(editor.tmpFilenameU != NULL);
if (editor.tmpFilenameU == NULL)
return false;
pauseAudio();
if (editor.moduleSaveMode == 1)
saveXM(editor.tmpFilenameU);
else
saveMOD(editor.tmpFilenameU);
resumeAudio();
return true;
}
void saveMusic(UNICHAR *filenameU)
{
UNICHAR_STRCPY(editor.tmpFilenameU, filenameU);
mouseAnimOn();
thread = SDL_CreateThread(saveMusicThread, NULL
#if SDL_VERSION_ATLEAST(2,0,4)
, NULL
#endif
);
if (thread == NULL)
{
okBoxThreadSafe(0, "System message", "Couldn't create thread!");
return;
}
#if SDL_VERSION_ATLEAST(2,0,0)
SDL_DetachThread(thread);
#endif
}
static uint16_t packPatt(uint8_t *pattPtr, uint16_t numRows)
{
uint8_t bytes[5], packBits, *writePtr, *firstBytePtr;
uint16_t totalPackLen;
totalPackLen = 0;
if (pattPtr == NULL)
return 0;
writePtr = pattPtr;
for (uint16_t row = 0; row < numRows; row++)
{
for (uint16_t chn = 0; chn < song.antChn; chn++)
{
bytes[0] = *pattPtr++;
bytes[1] = *pattPtr++;
bytes[2] = *pattPtr++;
bytes[3] = *pattPtr++;
bytes[4] = *pattPtr++;
firstBytePtr = writePtr++;
packBits = 0;
if (bytes[0] > 0) { packBits |= 1; *writePtr++ = bytes[0]; } // note
if (bytes[1] > 0) { packBits |= 2; *writePtr++ = bytes[1]; } // instrument
if (bytes[2] > 0) { packBits |= 4; *writePtr++ = bytes[2]; } // volume column
if (bytes[3] > 0) { packBits |= 8; *writePtr++ = bytes[3]; } // effect
if (packBits == 15) // first four bits set?
{
// no packing needed, write pattern data as is
// point to first byte (and overwrite data)
writePtr = firstBytePtr;
*writePtr++ = bytes[0];
*writePtr++ = bytes[1];
*writePtr++ = bytes[2];
*writePtr++ = bytes[3];
*writePtr++ = bytes[4];
totalPackLen += 5;
continue;
}
if (bytes[4] > 0) { packBits |= 16; *writePtr++ = bytes[4]; } // effect parameter
*firstBytePtr = packBits | 128; // write pack bits byte
totalPackLen += (uint16_t)(writePtr - firstBytePtr); // bytes writen
}
// skip unused channels
pattPtr += sizeof (tonTyp) * (MAX_VOICES - song.antChn);
}
return totalPackLen;
}
| 11,206 |
https://bg.wikipedia.org/wiki/Open-world%20assumption
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Open-world assumption
|
https://bg.wikipedia.org/w/index.php?title=Open-world assumption&action=history
|
Bulgarian
|
Spoken
| 691 | 1,578 |
Open-world assumption (OWA, ) е термин от областта на представяне на знанието (), с който се означава допускането, че в една формална логическа система истинната стойност на дадено съждение може да бъде истина, без значение дали за съждението е известно дали е вярно или не. Обратният термин е closed-world assumption (CWA, презумпция за затворен свят), според който всяко съждение, което е истина, е предварително зададено в системата като истина.
OWA дава формален израз на неформалната представа, че никой отделен агент или наблюдател не разполага с пълното знание и следователно не може да прави допускания за затворен свят. OWA ограничава видовете логически изводи и дедукционни изводи, които могат да бъдат направени, до онези, които следват от съжденията, известни на агента като истинни. За сравнение, при презумпцията за затворен свят, на агента е разрешено да прави логически извод на база липсата на знание дали съждението е вярно, като всичко, което следва от съждението е лъжа.
Евристично погледнато, презумпцията за отворен свят се прилага, когато представяме знанието в система в процеса на откриването му и не можем да гарантираме, че сме открили или ще открием пълната информация. При OWA, съжденията относно знание, което не се съдържа или не е логически изведено от знанието, съдържащо се в системата, могат да се смятат за неизвестни, вместо за истинни или неистинни.
Програмни езици за семантичен уеб, като например OWL, се базират на допускането за отворен свят. Липсата на конкретно съждение в уеб принципно означава, че съждението все още не съществува в явен вид, без значение от това дали е истинно или не и без значение дали вярваме, че то би било истинно или не. Накратко, от липсата на дадено съждение в базата знания, вземащият решение с дедукция не може (и не трябва) да прави логическото заключение, че съждението е лъжа.
Много процедурни програмни езици и системи за управление на бази данни правят предположението за затворен свят. Например, типичната база данни на авиокомпания не прави разпределение на местата за пътниците, а допуска, че пътниците без места не са се чекирали. Презумпцията за затворен свят типично се прилага, когато системата има пълен контрол над информацията, какъвто е случаят с много приложения за бази данни, където транзакционната система на базата данни функционира като централизиран „брокер“ и „арбитър“ на едновременните и конкурентни заявки от множество независими клиенти (агенти). Съществуват обаче и множество бази данни, поддържащи непълна информация. Например, в една система за подпомагане вземането на диагностични решения, на базата на това, че за даден пациент липсва информация за определена алергия, не може да се направи заключение, че пациентът не страда от такава алергия.
Примери
Пример 1
Съждение: А е гражданин на Франция.
Въпрос: Б гражданин ли е на Франция?
Отговор при „Затворен свят“: Не.
Отговор при „Отворен свят“: Неизвестно.
При презумпцията за отворен свят, невъзможността да се изведе истинността на даден факт не води до извода, че той е неистинен, а само до извода, че знанието ни за света е непълно.
Пример 2
Съждение: А е гражданин на Франция.
Допускане: Един човек може да е гражданин само на една страна.
Ново съждение: А е гражданин на Колумбия.
Отговор при „Затворен свят“: Грешка.
Отговор при „Отворен свят“: Логически се извежда ново съждение: Франция = Колумбия.
При „затворен свят“ добавянето на това ново съждение ще произведе грешка, тъй като първоначално е направено допускането, че един човек може да е гражданин само на една страна. При „отворен свят“ вместо да се изведе грешка се появява ново съждение. Логиката е следната: „Ако човек може да е гражданин само на една страна, а А е гражданин на Франция и на Колумбия, то Франция и Колумбия е една и съща страна.“
За отбелязване е, че при CWA направихме предположението, че Франция и Колумбия са различни страни. При OWA, това предположение за уникалността на имената (Unique Named Assumption, UNA) не се прави. Системите с презумпция за затворен свят имат UNA; системите с презумпция за отворен свят – нямат. Прецумпцията за уникалност на имената, обаче, може да бъде изрично добавена, т.е. ако има въведен списък на страните, може изрично да се въведе твореднието, че всяка страна от списъка е различна от всяка друга. В този случай OWA системата ще генерира грешка поради несъответствие.
Източници
Логическо програмиране
Представяне на знанието
| 45,489 |
US-201414911883-A_1
|
USPTO
|
Open Government
|
Public Domain
| 2,014 |
None
|
None
|
English
|
Spoken
| 7,774 | 9,392 |
Light emitting device for body hair
ABSTRACT
A light emitting device for body hair includes a light source unit that outputs light and a controller connected to the light source. The controller controls output of the light source unit so that output light of the light emitting device resulting from the output of the light source has a main peak region including an output light peak, which indicates maximum intensity, in a wavelength range of 1350 nm to 1550 nm. An integral value of a peak region short-wavelength component, which is a main peak region component at a short-wavelength side of the output light peak, is larger than an integral value of a peak region long-wavelength component, which is a main peak region component at a long-wavelength side of the output light peak.
TECHNICAL FIELD
The present invention relates to a light emitting device for body hair.
BACKGROUND ART
Patent document 1 discloses a body hair light emitting device that includes an LED lamp. The LED lamp emits light having a peak in the unique absorption wavelength of water in the near-infrared region. Patent document 1 discloses that when such light is emitted to a living body, the light acts to promote the hair growth effect of the living body.
PRIOR ART DOCUMENT Patent Document
Patent Document 1: WO 2009/123196
SUMMARY Problems to be Solved by the Invention
The inventors of the present invention have noticed that the above body hair light emitting device has a shortcoming in that the hair growth effect becomes difficult to promote as the light emission time becomes longer.
It is an object of the present invention to provide a body hair light emitting device that limits decreases in the amount of light absorbed by the living body even when the emission time of light increases.
Means for Solving the Problem
In one aspect, a body hair light emitting device includes a light source that outputs light and a controller that controls the output of the light source. The controller is connected to the light source. The controller controls the output of the light source so that output light of the body hair light emitting device resulting from the output of the light source has a main peak region including an output light peak, which indicates maximum intensity, in a wavelength range from 1350 nm to 1550 nm and so that an integral value of a peak region short-wavelength component, which is a main peak region component at a short-wavelength side of the output light peak, is larger than an integral value of a peak region long-wavelength component, which is a main peak region component at a long-wavelength side of the output light peak.
When the above integral value relationship is established, the decrease in the amount of light absorbed by a living body is limited even if the emission time of light increases compared to when the integral value of the peak region short-wavelength component is less than or equal to the integral value of the peak region long-wavelength component.
Effect of the Invention
The hair body light emitting device of the above embodiment limits decreases in the amount of light absorbed by the living body even when the emission time of light increases.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of one embodiment of a body hair light emitting device in one embodiment;
FIG. 2 is a cross-sectional view of a light source unit illustrated in FIG. 1;
FIG. 3A is a graph illustrating the spectrum of light in one embodiment;
FIG. 3B is a graph illustrating the spectrum of light in one embodiment when the light source temperature rises;
FIG. 3C is a graph illustrating the spectrum of light in one embodiment when the light source temperature further rises;
FIG. 4A is a graph illustrating the spectrum of light in a comparative example;
FIG. 4B is a graph illustrating the spectrum of light in the comparative example when the light source temperature rises; and
FIG. 4C is a graph illustrating the spectrum of light in the comparative example when the light source temperature further rises.
EMBODIMENTS OF THE INVENTION
A representative embodiment for the purpose of exemplification will now be described. The disclosure of the present specification is not intended to entirely cover the invention with only the representative embodiment. The disclosure also includes various embodiments obtained by at least partially deleting or replacing the structure of the embodiment or by adding other structures. The present disclosure basically includes the following embodiment.
In one embodiment, a body hair light emitting device includes a light source that outputs light and a controller that controls the output of the light source. The controller is connected to the light source. The controller controls the output of the light source so that output light of the body hair light emitting device resulting from the output of the light source has a main peak region including an output light peak, which indicates maximum intensity, in a wavelength range from 1350 nm to 1550 nm and so that an integral value of a peak region short-wavelength component, which is a main peak region component at a short-wavelength side of the output light peak, is larger than an integral value of a peak region long-wavelength component, which is a main peak region component at a long-wavelength side of the output light peak.
In one embodiment, preferably, a short-wavelength side maximum gradient, which is the maximum gradient of the main peak region at the short-wavelength side of the output light peak, is smaller than a long-wavelength side maximum gradient, which is the maximum gradient of the main peak region at the long-wavelength side of the output light peak.
In one embodiment, a light absorption spectrum of water has a light absorption peak region including a light absorption peak, which indicates maximum absorbance, in a wavelength range from 1440 nm to 1460 nm. Preferably, the controller controls spectrum of the output light relative to the light absorption spectrum of water so that the long-wavelength side maximum gradient of the main peak region is larger than a long-wavelength side light absorbance gradient, which is the maximum gradient of the light absorption peak region at the long-wavelength side of the light absorption peak.
In one embodiment, a light absorption spectrum of water has a light absorption peak region including a light absorption peak, which indicates maximum absorbance, in a wavelength range from 1440 nm to 1460 nm. Preferably, the controller controls spectrum of the output light relative to the light absorption spectrum of water so that the short-wavelength side maximum gradient of the main peak region is smaller than a short-wavelength side light absorbance gradient, which is the maximum gradient of the light absorption peak region at the short-wavelength side of the light absorption peak.
In one embodiment, preferably, the output light does not include a significant peak region except for the main peak region in a wavelength range from 1200 nm to 1600 nm.
In one embodiment, the main peak region includes a short-wavelength base point, which is a base point of the main peak region existing at the short-wavelength side of the output light peak, and a long-wavelength base point, which is a base point of the main peak region existing at the long-wavelength side of the output light peak. Preferably, a line connecting the two points of the long-wavelength base point and the output light peak has a larger gradient than a line connecting the two points of the short-wavelength base point and the output light peak.
FIG. 1 is a block diagram illustrating one embodiment of a body hair light emitting device 1.
The body hair light emitting device 1 emits light to a living body to promote the hair growth effect. Hair growth is an action that promotes the reproduction and growth of body hair from a living body. The hair growth effect is an effect that promotes the growth of hair in the living body. The emission of light promotes the hair growth effect so that hair grows easily.
The body hair light emitting device 1 includes a main unit 10 and a light source unit 70. The main unit 10 includes a plurality of elements. The elements of the main unit 10 include, for example, a main unit housing 20, a power supply 30, an operation unit 40, and a pulse generator 60. The light source unit 70 includes a plurality of elements. The elements of the light source unit 70 include, for example, a light source housing 71, a light distribution lens 72, and a light source 80.
The body hair light emitting device 1 includes a plurality of electric blocks. The electric blocks are driven by power supplied from the power supply 30. The operation unit 40, the controller 50, the pulse generator 60, and the light source unit 70 each correspond to an electric block.
The main unit housing 20 is formed from, for example, a resin material. The main unit housing 20 is, for example, is formed to allow for hand-carrying. The main unit housing 20 has a hollow interior to accommodate the elements of the main unit 10.
The power supply 30 is located in the main unit housing 20. The power supply 30 is coupled to the main unit housing 20. Further, the power supply 30 is electrically connected to the operation unit 40, the controller 50, the pulse generator 60, and the light source unit 70. The power supply 30 supplies each electric block with power from a primary battery or a secondary battery.
The operation unit 40 is formed on the main unit housing 20. The operation unit 40 has, for example, a button-type form. The operation unit 40 includes a power supply operation unit 41, an output operation unit 42, an emission time setter 43, and a frequency setter 44.
The power supply operation unit 41 is electrically connected to the power supply 30. The power supply operation unit 41 can change operation positions when operated by an operator. When the operation position of the power supply operation unit 41 is an ON position, the power supply 30 supplies each electric block with power. When the operation position of the power supply operation unit 41 is an OFF position, the power supply 30 does not supply each electric block with power.
The output operation unit 42 is electrically connected to the controller 50. The output operation unit 42 outputs an operation signal ST to the controller 50 whenever operated by the operator. The operation signal ST includes information indicating that the output operation unit 42 has been operated.
The emission time setter 43 is electrically connected to the controller 50. The emission time setter 43 outputs a time setting signal SM whenever operated by the operator. The time setting signal SM includes information designating a specified time that is the time for outputting light from the light source 80. The content of the time setting signal SM changes in accordance with the number of times the emission time setter 43 is operated. The time setting signal SM designates the specified time of, for example, one of 5 minutes, 10 minutes, and 20 minutes.
The frequency setter 44 is electrically connected to the controller 50. The frequency setter 44 outputs a change request signal SC to the controller 50 whenever operated by the operator. The change request signal SC includes information designating the frequency of the light output from the light source 80 (hereinafter, “the output frequency TL”). The content of the change request signal SC changes in accordance with the number of times the frequency setter 44 is operated. The change request signal SC designates the output frequency TL of, for example, one of 0 Hz, 200 Hz, 500 Hz, and 1000 Hz. When the output frequency TL is 0 Hz, the light source 80 is driven in a continuous emission mode, which is a mode for continuously emitting light.
The light source housing 71 is formed from, for example, a resin material. The light source housing 71 can be coupled to and separated from the main unit housing 20. The light source housing 71 has a hollow interior to accommodate the elements of the light source unit 70.
The light distribution lens 72 is formed from, for example, polymethylmethacrylate resin. The light distribution lens 72 has, for example, the shape of a truncated cone. The light distribution lens 72 is coupled to an opening of the light source housing 71.
The light source 80 is located in the light source housing 71. The light source 80 is coupled to the light source housing 71. Further, the light source 80 is electrically connected to the controller 50. The light source 80 outputs light in response to an output execution signal SA received from the controller 50. Further, the light source 80 stops the output of light in response to an output stop signal SB received from the controller 50. The light emitted from the light source 80 is output from the body hair light emitting device 1 through the light distribution lens 72. The light output from the body hair light emitting device 1 (hereinafter, “the output light”) is emitted to a living body.
The pulse generator 60 is located in the main unit housing 20. The pulse generator 60 is electrically connected to the controller 50. In response to an output change signal SD received from the controller 50, the pulse generator 60 pulse-modulates the output execution signal SA, which is input to the light source 80. The pulse modulation of the output execution signal SA changes the frequency of the light output by the light source 80.
The controller 50 is located in the main unit housing 20. The controller 50 controls the operation of the light source unit 70 in accordance with the operation signal ST, the time setting signal SM, and the change request signal SC.
The controller 50 outputs the output execution signal SA or the output stop signal SB to the light source when receiving the operation signal ST. The controller 50 alternately outputs the output execution signal SA and the output stop signal SB. The output execution signal SA includes information for outputting light from the light source 80. The output stop signal SB includes information for stopping the output of light from the light source 80.
After starting the output of light from the light source 80, the controller 50 measures the time the light source 80 emits light. When the measured time reaches a specified time, which is set in accordance with the time setting signal SM, the controller 50 outputs the output stop signal SB to the light source 80.
The controller 50 outputs the output change signal SD to the pulse generator when receiving the change request signal SC. The output change signal SD includes pulse modulation information corresponding to the information of the output frequency TL, which is included in the change request signal SC. The pulse modulation information pulse-modulates the output execution signal SA and changes the frequency of the light output from the light source 80. In this manner, the light source 80 outputs light in accordance with the instruction signal of the controller 50 (output execution signal SA, output stop signal SB, or output change signal SD).
FIG. 2 is a cross-sectional view illustrating one example of the light source unit 70.
The light source unit 70 includes the light source housing 71, the light distribution lens 72, and the light source 80. Additionally, the light source unit 70 includes a printed-circuit board 73, a conductive pattern 74, a resist 75, and a conductive component 76.
The printed-circuit board 73 is located in the light source housing 71. The printed-circuit board 73 is coupled to the light source housing 71. The printed-circuit board 73 is formed by, for example, a resin in which paper is impregnated with phenol. The conductive pattern 74 is formed on the printed-circuit board 73. The resist 75 is formed on the conductive pattern 74. The resist 75 exposes a portion of the conductive pattern 74. The conductive component 76 has the form of, for example, a wire. The conductive component 76 is connected to the conductive pattern 74.
The light source 80 has the form of, for example, an LED lamp. The light source 80 includes a plurality of elements. The elements of the light source 80 include an LED chip 81, a reflector 82, and a sealant 83.
The LED chip 81 is of a surface-mount type. The LED chip 81 is mounted on the printed-circuit board 73. The LED chip 81 is connected to the pattern 74 by the conductive component 76. The LED chip 81 is covered by the sealant 83.
The reflector 82 is located on the resist 75. The reflector 82 is attached to the resistor 75. The reflector 82 is formed from, for example, a metal material, a resin material, or a material having high reflectance. One example of a material having high reflectance is ceramics. The reflector 82 reflects light emitted from the LED chip 81 toward the light distribution lens 72.
The sealant 83 is arranged in a void defined by a reflection surface of the reflector 82. The sealant 83 is formed from, for example, a silicon resin, an epoxy resin, or a resin material having high transmittance. A resin material having a high transmittance is formed by a base material including glass or by mixing a light dispersant in a glass based material.
The output light of the body hair light emitting device 1 will now be described with reference to FIGS. 3A to 3C. The controller 50 controls the spectrum of the output light of the body hair light emitting device 1 with the output of the light source 80.
In FIGS. 3A to 3C, the single-dashed line represents the light absorption spectrum of water. The light absorption spectrum indicates the absorbance in the wavelength range from 1100 nm to 1800 nm as a value relative to the peak absorbance (reference absorbance).
In FIGS. 3A to 3C, the solid line represents the spectrum of the output light of the body hair light emitting device 1 (hereinafter, “the output spectrum”). The output spectrum indicates the intensity in the wavelength range from 1100 nm to 1800 nm as a value relative to the peak intensity (reference intensity).
In FIGS. 3A to 3C, the reference absorbance in the light absorption spectrum and the reference intensity in the output spectrum are each set to “1,” and the two spectrums are indicated superposed with each other. The output spectrum in each diagram corresponds to a relative spectrum that uses the absorption spectrum as the reference spectrum.
In FIGS. 3A to 3C, the light absorption spectrum and the output spectrum are indicated as spectrums obtained under a standard temperature environment. The standard temperature environment is, for example, a situation in which the atmosphere temperature is the room temperature.
The light absorption spectrum of water will now be described.
The light absorption spectrum is the light absorbance that has a significant level from approximately 1150 nm. In the wavelength range from 1150 nm to 1370 nm, as the wavelength becomes longer, the absorbance of the light absorption spectrum slightly increases. The light absorption spectrum has a light absorption peak region in the range from 1370 to 1540 nm. That is, the absorption peak, which indicates the maximum absorbance, exists in the wavelength range from 1100 nm to 1800 nm. The basal portion of the short-wavelength side of the absorption peak region exists at approximately 1370 nm, which is a shorter wavelength than the light absorption peak. The basal portion of the short-wavelength side has a convex inflection point. The basal portion of the long-wavelength side of the absorption peak region exists at approximately 1540 nm, which is a longer wavelength than the light absorption peak. The basal portion of the long-wavelength side has a concave inflection point. The light absorption peak exists at 1450 nm. The light absorption peak region has a convex inflection point at 1495 nm and a concave inflection point at approximately 1540 nm. The light absorption spectrum has another peak region in the wavelength range from 1750 nm to 1800 nm.
The output spectrum will now be described.
FIG. 3A illustrates the output spectrum when the temperature of the LED chip 81 (hereinafter, “the light source temperature”) belongs to the reference temperature region (hereafter, the “reference output spectrum”). FIG. 3B illustrates the output spectrum when the light source temperature belongs to a first temperature region, which is higher than the reference temperature region. FIG. 3C illustrates the output spectrum when the light source temperature belongs to a second temperature region, which is higher than the first temperature region. The reference temperature corresponds to the light source temperature when the LED chip 81 is sufficiently releasing heat under a standard temperature environment.
The reference output spectrum includes a significant component in the wavelength range from 1200 nm to 1600 nm. The reference output spectrum does not include a significant component outside the wavelength range from 1200 nm to 1600 nm. A significant component refers to a component that may affect the promotion of the hair growth effect.
The reference output spectrum has a main peak region including the output light peak that indicates the maximum intensity in the wavelength range from 1200 nm to 1600 nm. The reference output spectrum does not include a significant peak region except for the main peak region in the wavelength range from 1200 nm to 1600 nm. That is, the reference output spectrum includes a single peak region in the wavelength range from 1200 nm to 1600 nm. The significant peak region is a peak region (spectrum) that may affect the promotion of the hair growth effect.
The main peak region includes an output light peak at, for example, 1450 nm, which substantially conforms to the wavelength of light absorption peak. The basal portion of the short-wavelength side of the main peak region exists at approximately 1200 nm, which is a shorter wavelength than the output light peak. Further, the basal portion of the long-wavelength side of the main peak region exists at approximately 1600 nm, which is a longer wavelength than the output light peak. The main peak region may include an output light peak at a wavelength other than 1450 nm. The preferred range of the output light peak in the main peak region may be, for example, the wavelength range from 1350 nm to 1550 nm.
In one example, the main peak region has a convex inflection point in the wavelength range from 1330 nm to 1360 nm. The main peak region has a concave inflection point in the wavelength range from 1370 nm to 1390 nm. The main peak region has a convex inflection point in the wavelength range from 1390 nm to 1410 nm. The main peak region has a concave inflection point in the wavelength range from 1410 nm to 1420 nm. The main peak region has a convex inflection point in the wavelength range from 1420 nm to 1430 nm. The main peak region has a concave inflection point in the wavelength range from 1430 nm to 1440 nm. The main peak region does not have a clear inflection point in the wavelength range from 1450 nm to 1600 nm. The intensity at the peak of the main peak region (output light peak) is, for example, 60 μW/cm²/nm.
The main peak has at least the four characteristics described below.
The first characteristic will now be described. The integral value of the peak region short-wavelength component, which is the main peak region component at the short-wavelength side of the peak (output light peak) of the main peak region, is larger than the integral value of the peak region long-wavelength component, which is the main peak region component at the long-wavelength side of the peak of the main peak region.
The peak region short-wavelength component includes components from the basal portion at the short-wavelength side of the main peak region to the peak of the main peak region. One example of an integral value of the peak region short-wavelength component is 5400 μW/cm². The peak region long-wavelength component includes components from the peak of the main peak region to the basal portion at the long-wavelength side of the main peak region. One example of the integral value of the peak region long-wavelength component is 4338 μW/cm².
The second characteristic will now be described. The short-wavelength side maximum gradient, which is the maximum gradient of the main peak region at the short-wavelength side of the peak (output light peak) of the main peak region, is smaller than the long-wavelength side maximum gradient, which is the maximum gradient of the main peak region-wavelength component at the long-wavelength side of the peak of the main peak region.
The short-wavelength side maximum gradient is located between the wavelength of the peak (output light peak) of the main peak region and a predetermined wavelength at the short-wavelength side of the peak of the main peak region. One example of the short-wavelength side maximum gradient is located in the wavelength range from 1420 nm to 1450 nm. One example of the short-wavelength side maximum gradient is 0.59 μW/cm²/nm².
The long-wavelength side maximum gradient is located between the wavelength of the peak (output light peak) of the main peak region and a predetermined wavelength at the long-wavelength side of the peak of the main peak region. One example of the long-wavelength side maximum gradient is located in the wavelength range from 1450 nm to 1510 nm. One example of the long-wavelength side maximum gradient is 1.1 μW/cm²/nm².
The third characteristic will now be described. The long-wavelength maximum gradient is larger than the long-wavelength side light absorbance gradient, which is the maximum gradient of the light absorption peak region at the long-wavelength side of the peak (light absorption peak) of the light absorption peak region of water. One example of the long-wavelength side light absorption gradient is located in the wavelength range from 1490 nm to 1530 nm.
The fourth characteristic will now be described. The short-wavelength maximum gradient is smaller than the short-wavelength side light absorbance gradient, which is the maximum gradient of the light absorption peak region at the short-wavelength side of the peak (light absorption peak) of the light absorption peak region of water. One example of the short-wavelength side light absorption gradient is located in the wavelength range from 1420 nm to 1450 nm.
The inventors of the present invention have studied the relationship between the emission time of light and the amount of light absorbed in a living body (hereinafter, “the light absorption amount”). Based on the findings obtained from the results of the study, the inventors have specified the output spectrum having the above four characteristics. The items studied by the inventors of the present invention will now be described in detail.
In the conventional body hair light emission device, the hair growth effect becomes difficult to promote as the light emission time becomes longer. It is understood that this is because the light absorption amount decreases. It is understood that the light absorption amount decreases for the reasons described below.
In the light output from the body hair light emitting device, the living body mainly absorbs components superposed with the light absorption spectrum of water. Further, in the light output from the body hair light emitting device, in particular, the living body has a tendency to absorb components superposed with the light absorption peak region of water. Thus, the light absorption amount is mainly dependent on the amount of light output from the body hair light emitting device and the amount of the portion superposed with the light absorption spectrum of water in the output light.
When the light source is temperature-dependent, a rise in the temperature of the light source causes an effect in which the spectrum of light shifts toward the long-wavelength side of the reference spectrum (hereinafter, “spectrum shift”). The amount of the spectrum shifted by the spectrum shift (hereinafter, “the shift amount”), increases as the temperature of the light source becomes higher. The temperature of the light source rises as the emission time of light becomes longer. Thus, a longer light emission time increases the shift amount.
When the shift amount increases, the difference increases between the reference spectrum (light absorption spectrum) of the body hair light emitting device and the spectrum of the light output from the body hair light emitting device. Thus, in the amount of light output from the body hair light emitting device, the portion superposed with the light absorption spectrum of water decreases. A decrease in the superposed portion of the output light and the light absorption spectrum of water reduces the light absorption amount even when there is no change in the amount of light output from the body hair light emitting device. Thus, it becomes difficult to promote the hair growth effect.
The inventors of the present invention have studied the spectrum of light of which the portion superposed with the light absorption spectrum of water does not decrease much even when a spectrum shift increases the shift amount of the spectrum of light. The inventors have obtained the findings described below from the results of the study. When the integral value of the peak region short-wavelength component is larger than the integral value of the peak-region long-wavelength component, the light absorption amount does not decrease that easily even if a spectrum shift increases the shift amount of the spectrum of light compared to when the integral value of the peak region short-wavelength component is smaller than or equal to the integral value of the peak-region long-wavelength component. It is understood that this is due to the following reason.
A spectrum shift shifts the spectrum in one direction (long-wavelength side). Thus, an increase in the shift amount of the spectrum increases the portion of the peak region long-wavelength component that becomes non-superposed with the light absorption spectrum of water as compared with the peak region short-wavelength component. In contrast, the peak-region short-wavelength component exists in the short-wavelength side of the peak-region long-wavelength component. Thus, the portion that becomes non-superposed with the light absorption spectrum of water as the shift amount of the spectrum increases does not increase as much as the peak region long-wavelength portion. Accordingly, when the integral value of the peak-region short-wavelength component is larger than the integral value of the peak region long-wavelength component, the light absorption amount does not decrease much even when a spectrum shift occurs. Thus, even if the emission time of light increases, the effect for promoting hair growth does not decrease much.
The inventors of the present invention have checked the influence a spectrum shift has on the light absorption amount based on a comparison with the spectrum of light (hereinafter, “the comparative spectrum”) output from a light emitting device of a comparative example.
The comparative spectrum will now be described with reference to FIGS. 4A to 4C.
In FIGS. 4A to 4C, the single-dashed line represents the light absorption spectrum of water. The light absorption spectrum indicates the absorbance in the wavelength range from 1100 nm to 1800 nm as a value relative to the peak absorbance (reference absorbance).
In FIGS. 4A to 4C, the solid line represents the spectrum of the light output from the light emitting device of the comparative example (hereinafter, “the comparative spectrum”). The comparative spectrum indicates the intensity in the wavelength range from 1100 nm to 1800 nm as a value relative to the peak intensity (reference intensity).
FIGS. 4A to 4C illustrate the light absorption spectrum and the comparative spectrum obtained under a standard temperature environment. FIG. 4A illustrates the comparative spectrum when the light source temperature belongs to the reference temperature region (hereinafter, “the reference comparative spectrum”). FIG. 4B illustrates the comparative spectrum when the light source temperature belongs to the first temperature region. FIG. 4B illustrates the comparative spectrum when the light source temperature belongs to the second temperature region.
In FIG. 4A, the reference comparative spectrum has a significant component in the wavelength range from 1200 nm to 1600 nm. The reference comparative spectrum does not have a significant component outside the wavelength range from 1200 nm to 1600 nm.
The reference comparative spectrum has a comparative peak region including the maximum intensity as the output light peak in the wavelength range from 1200 nm to 1600 nm. The reference comparative spectrum does not have a significant peak region outside the comparative peak region in the wavelength range from 1200 nm to 1600 nm. That is, the reference comparative spectrum has a single peak region in the wavelength range from 1200 nm to 1600 nm.
The comparative peak region includes a comparative peak region short-wavelength component, which is a component at the short-wavelength side of the peak (output light peak) of the comparative peak region, and a comparative peak region wavelength component, which is a component at the long-wavelength side of the peak of the comparative peak region. The comparative peak region is shaped to be in substantial line symmetry with respect to a symmetric line that extends perpendicular to the peak of the comparative peak region. That is, the comparative peak region short-wavelength component and the comparative peak region long-wavelength component are in a line symmetry relationship with respect to the symmetry line.
The comparative peak region has an output light peak at, for example, 1450 nm, which substantially coincides with the wavelength of the light absorption peak. The basal portion of the short-wavelength side of the comparative peak region exists at approximately 1300 nm, which is a shorter wavelength than the output light peak. Further, the basal portion of the long-wavelength side of the comparative peak region exists at approximately 1600 nm, which is a longer wavelength than the output light peak. The intensity of the peak (output light peak) of the comparative peak region is, for example, 60 μW/cm²/nm.
The spectrum shift of the comparative spectrum will now be described with reference to FIGS. 4A to 4C.
When an operator operates an output operation unit of the light emitting device of the comparative example, a light source starts to output light. When the emission time of the light output from the light source is shorter than a first predetermined time, the light source temperature belongs to the reference temperature region. Here, the comparative spectrum is as indicated by the reference comparative spectrum of FIG. 4A. When the emission time is longer than or equal to the first predetermined time, the light source temperature shifts to the first temperature region and causes a spectrum shift. Consequently, for example, the light source temperature rises and changes to the comparative spectrum illustrated in FIG. 4B. When the emission time is longer than or equal to a second predetermined time, which is longer than the first predetermined time, the light source temperature further rises and shifts to the second temperature region. Consequently, for example, the comparative spectrum illustrated in FIG. 4B changes to the comparative spectrum illustrated in FIG. 4C as the light source temperature rises.
During the process in which the reference comparative spectrum of FIG. 4A changes to the comparative spectrum of FIG. 4B, the portions superposed with the light absorption peak region of water decreases in the comparative peak region long-wavelength component and the comparative peak region short-wavelength component. Further, during the process in which the reference comparative spectrum of FIG. 4B changes to the comparative spectrum of FIG. 4C, the portions superposed with the light absorption peak region of water further decreases in the comparative peak region long-wavelength component and the comparative peak region short-wavelength component.
The hatched portions in FIGS. 4A to 4C each illustrate the absorption amount of light in the light emitting device of the comparative example. The light absorption amount decreases in the order of the reference comparative spectrum of FIG. 4A, the comparative spectrum of FIG. 4B, and the comparative spectrum of FIG. 4C. That is, the light absorption amount decreases as the light emission time becomes longer. The light absorption amount at each wavelength of the comparative peak region may mainly be obtained from the product of the light intensity at each wavelength and the absorption of water.
The spectrum shift of the output spectrum will now be described with reference to FIGS. 3A to 3C.
When an operator operates the output operation unit 42, the controller 50 starts the output of light from the light source 80. When the emission time of the light output from the light source 80 is less than a first predetermined time, the light source temperature belongs to the reference temperature region. Here, the output spectrum is as indicated by the reference output spectrum of FIG. 3A. When the emission time is longer than or equal to the first predetermined time, the light source temperature shifts to the first temperature region and causes a spectrum shift. Consequently, for example, the light source temperature rises and changes to the output spectrum illustrated in FIG. 3B. When the emission time is longer than or equal to a second predetermined time, the light source temperature further rises and shifts to the second temperature region. Consequently, for example, the comparative spectrum illustrated in FIG. 3B changes to the output spectrum illustrated in FIG. 3C as the light source temperature rises.
During the process in which the reference output spectrum of FIG. 3A changes to the output spectrum of FIG. 3B, the portion superposed with the light absorption peak region of water decreases in the peak region long-wavelength component. Further, during the process in which the reference output spectrum of FIG. 3A changes to the output spectrum of FIG. 3B, the portion superposed with the light absorption peak region of water subtly decreases in the peak region short-wavelength component. Thus, in contrast with the comparative spectrum, the output spectrum subtly decreases the amount of light absorbed by a living body even when the emission time of light increases.
During the process in which the output spectrum of FIG. 3B changes to the output spectrum of FIG. 3C, the portion superposed with the light absorption peak region of water further decreases in the peak region long-wavelength component. During the process in which the reference output spectrum of FIG. 3B changes to the output spectrum of FIG. 3C, the portion superposed with the light absorption peak region of water also decreases in the short-wavelength component. However, the area of the peak region short-wavelength component is larger than the short-wavelength component of the comparative peak region. Thus, the portion superposed with the light absorption spectrum of water does not decrease much in the entire main peak region as compared with the comparative peak region. Accordingly, in comparison with the comparative spectrum, the output spectrum does not decrease the amount of light absorbed by the living body that much even when the emission time of light increases.
The hatched portions in FIGS. 3A to 3C each illustrate the absorption amount of the light output from the body hair light emitting device 1. In one example, the light absorption amount is generally the same in the reference output spectrum of FIG. 3A and the output spectrum of FIG. 3B. The light absorption amount of the output spectrum of FIG. 3B is less than the light absorption amount of the reference output spectrum of FIG. 3A and light absorption amount of the output spectrum of FIG. 3B. The light absorption amount at each wavelength in the main peak region may mainly be obtained from the product of the light intensity at each wavelength and the absorption of water.
The body hair light emitting device has the advantages described below.
(1) In the main peak region of the output light, the integral value of the peak region short-wavelength component is larger than the integral value of the peak region long-wavelength component. Thus, when a spectrum shift occurs, the superposed portion of the main peak region and the light absorption peak region of water does not decrease much. Accordingly, a decrease in the light absorption amount can be limited even when the emission time of light is increased.
(2) In the main peak region of the output light, the short-wavelength side maximum gradient is smaller than the long-wavelength side absorbance gradient. Thus, even when a spectrum shift occurs, the superposed portion of the main peak region and the light absorption peak region of water does not decrease much. This further improves the effect described in advantage (1).
(3) The long-wavelength side maximum gradient of the main peak region of the output light is larger than the long-wavelength side light absorption gradient of the light absorption peak region. Thus, even when a spectrum shift occurs, the portion of the peak region long-wavelength component that is not superposed with the light absorption peak region of water does not decrease much. This further improves the effect described in advantage (1).
(4) The short-wavelength side maximum gradient of the main peak region of the output light is smaller than the long-wavelength side light absorption gradient of the light absorption peak region. Thus, even when a spectrum shift occurs, the superposed portion of the peak region short-wavelength component and the light absorption peak region of water does not decrease much. This further improves the effect described in advantage (1).
(5) The body hair light emitting device 1 is advantageous over the light emitting device of the comparative example in the points described below. Further, the output spectrum (comparative spectrum) of the light output from the light emitting device of the comparative example differs from the output spectrum of the body hair light emitting device 1 in the points described below.
The comparative spectrum has a peak region (comparative peak region) that includes the maximum intensity as the output light peak in the wavelength range from 1200 nm to 1600 nm. The comparative peak region substantially has a line symmetry relationship with respect to a symmetric line that extends perpendicular to the peak (output light peak) of the comparative peak region.
The comparative peak region includes the comparative peak region short-wavelength component at the short-wavelength side of the peak and the comparative peak region long-wavelength component at the long-wavelength side of the peak. In one example, the comparative peak region short-wavelength component may have the same shape as the peak region short-wavelength component in the main peak region of the body hair light emitting device 1. However, the comparative peak region long-wavelength component has a line symmetry relationship with the comparative peak region short-wavelength component. Thus, the integral value of the comparative peak region long-wavelength component is larger than the integral value of the peak region long-wavelength component of the body hair light emitting device 1 in the above embodiment. Thus, in comparison with the peak region long-wavelength component of the body hair light emitting device 1, the portion of the comparative peak region long-wavelength component superposed with the light absorption peak region may be large.
The comparative peak region long-wavelength component exists in the shift direction side of the spectrum shift from the peak of the light absorption peak region. Thus, when a spectrum shift occurs, the ratio of the comparative peak region long-wavelength component that contributes to the formation of the portion superposed with the light absorption peak region is smaller than that of the comparative peak region short-wavelength component. That is, when a spectrum shift occurs, the portion of the comparative peak region long-wavelength component superposed with the light absorption peak region is formed at a lower efficiency than the comparative peak region short-wavelength component.
The integral value of the entire comparative spectrum in the light emitting device of the comparative example is larger than the integral value of the entire output spectrum of the body hair light emitting device 1. Accordingly, the light emitting device of the comparative example uses a large amount of electric energy to output light. Thus, the light source of the light emitting device of the comparative example tends to become hotter than the light source 80 of the body hair light emitting device 1. Accordingly, spectrum shifts easily occur in the light emitting device of the comparative example.
In this manner, in the light emitting device of the comparative example, the integral value of the comparative peak region long-wavelength component is large. This easily obtains a portion superposed with the light absorption peak region and easily promotes spectrum shifts as the consumed energy increases. Thus, when a spectrum shift occurs, the efficiency for forming the superposed portion of the comparative peak region and the light absorption peak region of water is likely to decrease.
In contrast, with the body hair light emitting device 1, the integral value of the peak region long-wavelength component is smaller than the integral value of the peak-region short-wavelength component. Thus, from the aspect of obtaining a superposed portion of the main peak region and the light absorption peak region of water, the next two advantages are obtained over the light emitting device of the comparative example.
The first advantage will now be described. In the main peak region, the peak region long-wavelength component, which contributes less than the peak region short-wavelength component to the formation of the superposed portion, has a low integral value. This reduces the energy consumed to obtain the superposed portion of the main peak region and the light absorption peak region of water compared to the light emitting device of the comparative example.
The second advantage will now be described. The integral value of the peak region long-wavelength component in the main peak region is smaller than the integral value of the comparative peak region long wavelength component. Thus, the electric energy used to obtain the superposed portion of the main peak region and the light absorption of water is small compared to the light emitting device of the comparative example.
The body hair light emitting device 1 may be implemented in other embodiments that differ from the above embodiment. Other embodiments include, for example, the modified examples described below. The modified examples may be combined with one another as long as there are no technical contradictions.
The power supply 30 may convert AC current of a commercial power supply to DC current and supply the converted power to each electric block.
The operation unit 40 may have the form of, for example, a switch or a touch panel.
The LED lamp may have a bullet-type form.
| 22,178 |
https://sv.wikipedia.org/wiki/Desa%20Salamsari
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Desa Salamsari
|
https://sv.wikipedia.org/w/index.php?title=Desa Salamsari&action=history
|
Swedish
|
Spoken
| 34 | 94 |
Desa Salamsari kan syfta på följande platser:
Indonesien
Desa Salamsari (administrativ by i Indonesien, lat -7,29, long 110,16), Jawa Tengah,
Desa Salamsari (administrativ by i Indonesien, lat -7,12, long 110,28), Jawa Tengah,
Robotskapade Indonesienförgreningar
| 20,559 |
https://stackoverflow.com/questions/10216109
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,012 |
Stack Exchange
|
Click Navas, Ernst Grantham, Shankar Kumawat, danparm, https://stackoverflow.com/users/1342234, https://stackoverflow.com/users/23433636, https://stackoverflow.com/users/23433637, https://stackoverflow.com/users/23433638
|
English
|
Spoken
| 348 | 971 |
Using XML with jquery to populate a slider with text
Working on a small project where I want to implement a jquery slider to hold testimonials on the website's support page. To make life easier I want the testimonials to be contained in an XML document. The slider works fine on the page but when I try to use a function to get the testimonial text from the XML document, it works as well as a North Korean rocket.
Scripts in :
<head>
<title>Crutchfield Customer Support - Online Support Center</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="support.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" type="text/javascript"></script>
<script src="slider/jquery.bxSlider.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#slider1').bxSlider({
auto: true,
autoControls: false,
nextText: '',
prevText: ''
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
type: "GET",
url: "testimonials.xml",
dataType: "xml",
success: function(xml) {
var select = $('#slider1');
$(xml).find('testimonials').each(function(){
var text = $(this).find('text').text();
select.append("<li class='test'>"+text+"</li>");
});
}
});
});
</script>
</head>
HTML for the slider:
<div id="testimonials">
<div class="testimonialGroupOne">
<ul id="slider1">
<li>loading</li>
</ul>
</div>
</div>
I may add another slider but probably not, could the problem be with the divitis?
So basically the ordered list doesn't populate, here's the xml file so far:
<?xml version="1.0" encoding="ISO-8859-1"?>
<testimonials>
<text>"I have been doing business with Crutchfield for over fifteen years and have yet to have a negative experience. Their customer service is second to none."</text>
<text>"I've been a Crutchfield customer for over 20 years. I've found their customer service and technical support to surpass every other vendor in this business. Without exception, every contact I've had with Crutchfield employees, I have found them to be professional, competent, respectful and patient."</text>
</testimonials>
UPDATE: http://danielparmelee.com/testbed/crutchfield_test/support.html when viewed live it appears to be working but leaving the li blank
UPDATE2: http://danielparmelee.com/testbed/crutchfield_test/support.html the script is adding my testimonial text to the slider but the slider is now dead
try this
var mySlider;
$(document).ready(function () {
$.ajax({
type: "GET",
url: "data/yourxml.xml",
dataType: "xml",
success: function (xml) {
$(xml).find('testimonials').each(function(){
xml_name = $(this).find('name').text();
$('#slide').append('<li>' + xml_name + '</li>')
});
$(function () {
mySlider = $('#slide').bxSlider({
auto: true,
controls: false
});
mySlider.reloadShow();
})
}
});
});
| 20,111 |
US-201615231351-A_2
|
USPTO
|
Open Government
|
Public Domain
| 2,016 |
None
|
None
|
English
|
Spoken
| 7,325 | 8,927 |
Additional device or service features may also be adjusted by a third party or by the wireless device upon the wireless device or the network determining that a geographic boundary threshold has been crossed. Device and/or service features that may be adjusted include but are not limited to information such as alerting ring tone, buzzer, vibration, video, flashing lights, text message, altering audio channel (such as but not limited to speaker or ear phone) based on the location of the called party and/or the location of the calling party. Furthermore, these services and/or features can be stored locally on the mobile device, stored in the wireless network, or stored in a combination of the mobile device and the wireless network. For instance, calls from a person at college stadium on game day could have a pushed ring tone of the college team fight song. Calls to a teenager at school could play the latest rap song when at school and play a standard ring tone when at home. In this way, a teenager's ring tone may be changed from the latest music with lyrics that might offend parents to more mellow music whenever the teenager is at home. A person's ring tone may change from a professional non-descriptive ring to more personality defining movie lyrics whenever the person leaves the office. Calls to a person in a movie theater can be automatically muted and switched from audio to another mode such as vibration. Prioritized, urgent, and emergency calls may not have the alerting signal changed, when regular or standard calls may yield control of the alerting type to the movie theater to automatically switch the standard or regular alerts for all phones in a theater to vibrate. A remote cell phone, such as the wireless device 114, could compare its known current location against a database of geographic zones for various business types to determine that the phone has entered a movie theater. Then, the alerting type could be automatically changed to vibration from an audible ring. Remote devices could allow a public mode that allows movie theaters, libraries, schools, etc. to adjust the alerting mechanism for non-priority calls (such as from friends) as opposed to family emergencies.
Priority levels could control for which calls the third party would be allowed to change the alerting signals when a person enters the geographic zone of the third party (such as a school, library, theater, etc.). A public mode may be managed using a security code for authentication. In one embodiment, user interface screens provided on the wireless device 114 may allow a user to select individuals from the user's “buddy” or contact list as having a privacy mode that does not allow for device features to be adjusted when communication is commencing with these individuals, as reflected in FIG. 6.
Alerting tones can change based on location, and the changes can include more options than just mute, vibrate, and audible sound. Tone changes based on location can be changed from one audible tune to another audible tune or from a tune at a high volume level to the same tune at a low volume level. As previously discussed, the portable electronic device 114 is capable of knowing its location through GPS, wireless network information such as beacon transmitted identifications, and/or near field wireless communications, according to exemplary embodiments.
In one embodiment, a method of using location information to push alerting information to the communications device 114 comprises receiving (710) location information regarding the communications device 114 (at the third party server 150); selecting (720) alerting information based on the location of the communications device 114 (by the third party server 150); and transmitting (730) to the communications device 114 information pertaining to the alerting information (by the third party server 150), as depicted in the flowchart of FIG. 7. In some embodiments, the information that is transmitted may be dependent on the operating rules of the communications device 114 or user. Further, a third party transmitting the alerting information may be authenticated before acceptance of any information. The types of transmitted may include sound, music, alert tone, video, image, or a theme. Further, transmitted information may change the alerting setting in the communications device 114 to a new nonsilent setting.
Operating rules, instructions, or preferences may be specified by the user or created by the third party server 150. The operating rules may be provided to the third party server 150 via a number of channels. For example, the operating rules may be keyed in by the user or other persons using a keypad on the wireless device 114. Alternatively, the operating rules may be provided via wireless communications network 110 and/or computer network 112. Operating rules may stipulate that features involving a phone call from a user's parents should not be affected.
FIGS. 8-9 show exemplary interfaces from the wireless device 114 that are used to select locations where device features may be adjusted, in one embodiment. In the illustration of FIG. 8, an interface is provided for a system utilizing the GPS receiver 116 as the location sensor 118. The user checks the boxes next to locations where the user opts to let features be adjusted when the user visits a location of the selected type. Similarly, FIG. 9 illustrates the same interface that is used in a system utilizing the RFID reader 117 as the location sensor 118.
Wireless network providers can provide third parties, such as advertising web sites, with the identity and location information that the network provider is (or will be) required to monitor. Further, wireless networks 110 can provide location information to scheduling applications and/or other software applications. For example, based on a person's current location and planned itinerary of business meetings, plane reservations, dinner reservations, etc., a software application using the information may infer that a user is not likely to make a scheduled appointment and either automatically reschedule the appointment or notify the user to determine whether the user wants to reschedule the appointment by bringing up a voice, video, data, or web page connection into the appointment reservation system to allow the user to pick a new time.
As another example, if a parent could set a curfew time for a teenager, a third party monitoring system could notify the parent if the teenager will not make it home on time or the system could notify the teenager when he/she must leave for home (based on distance from home as well as expected traffic delays and travel time) in order for the teenager to make the curfew. Similar notifications could be used to tell a person when to leave for a plane, office meeting, or other appointment.
Additional examples include automatically changing a ring tone/alerting sound automatically based on at least location information and possibly other factors such as time of day, day of week, etc. The alerting form can be other characteristics instead of or in addition to sound such as but not limited to visual indicators, vibrations, etc. that may flash or vibrate differently or in particular sequences based on location information.
Furthermore, the control of alerting sounds and other indicators (such as flashing and/or vibration) can be passed to a third party. The security control that authorizes a third party, such as but not limited to a church, a school, and a movie theater, to change alerting types, alerting signal amplitude levels, and alerting information signals can be based on an identifier for the church, school, movie theater, etc. plus a location range in which security is relaxed to allow the church, school, movie theater, etc. to change a cell phone or other portable electronic device from ring to vibrate. Outside of that geographic zone, the identifier for the church, movie theater, etc. would not have the authority to change a mobile device's alerting type, according to exemplary embodiments.
Also, the relaxation of a mobile device's security within a geographic area (such as a movie theater) may allow a mobile device to be switched from ring to vibrate based on any command to change modes from ring to vibrate that is received by the mobile device without requiring identifying information from the transmitter of the muting/vibrating command request. Based on a message from wireless equipment at the movie theater or church, the mobile device can use a learning mode to initially prompt a user by asking whether to allow the movie theater or church to have security access to change the alerting type for the mobile device. In addition to a location-based constraint on the security relaxation (as well as potentially an identifier-based constraint), the security rules may have an expiration time of two and half hours at the movie theater or an allowable control time window of one hour every week during church services.
Each business or entity (such as but not limited to: movie theaters, libraries, schools, churches, etc.) could have a different authentication identifier (ID). In a non-limiting embodiment, the wireless device may only allow the movie theater authentication ID to change the alerting settings of the wireless device when the wireless device is in the geographic location of the movie theater. As an example, when the movie theater authentication ID first asks for permission to change the alerting settings on the wireless device, the movie theater request message may include coordinates of the vertices of a polygon circumscribing the movie theater or the coordinates of a center plus a radius describing a circle containing the movie theater. The wireless device can compute the approximate area size over which the movie theater is requesting to control the wireless device's alerting settings to then inform the user of the wireless device with a reasonable estimate of the location range over which the user is surrendering security control of the alerting settings of the wireless device to the movie theater's authentication ID, which would be contained in the request message sent from the movie theater to the wireless device.
Further, in one embodiment, the wireless device 114 may receive transmissions identifying the current location, such as transmissions from an RFID tag or a WiFi beacon. Accordingly, based upon the received information, the wireless device 114 may ascertain the type of location being visited (e.g., a church) and then correspond by changing device settings in response to recognition of the new location.
In one embodiment, location information may be provided to the third party server 150 so that an application can track and update the status of events associated with a plurality of users, as illustrated in the flowchart of FIG. 10. For example, in one embodiment, a meeting program 165 hosted or embedded on third party server 150 or application server 160 enables a user to invite (1010) other users (“potential attendees”) to participate in an event, such as a scheduled meeting. Invites are sent (1020) by the meeting program to the potential attendees. Via the meeting program, the potential attendees may accept or decline (1030) the meeting invite or request. The meeting program can inform the user that made the request with the status of the meeting, such as who accepted or declined the meeting request. Additional information may also be tracked however. For example, each of the potential attendees may have a tracking device, such as GPS equipped phone 114 that is identified in the third party database 150. The meeting program may access the third party database 170 to receive the identification number for a potential attendee's tracking device, such as the wireless device 114, and request the attendee's current location from the location database 140. Therefore, as the meeting time approaches, the meeting program can ascertain (1040) which of the attendees that accepted the meeting request are close to or have arrived at the meeting location which is known to the meeting program. Further, the meeting program can identify (1050) the number of potential attendees that have arrived at the meeting location. The meeting program can provide (1060) reports or estimates of whether a particular person is expected to arrive at the meeting location before the meeting commences. Accordingly, the meeting program can also alert (1070) a potential attendee to inform the attendee that he or she is not on track to make a scheduled meeting before the meeting's start time so that the user can make attempts towards progressing to the meeting location, if he or she is not on his or her way.
FIGS. 11-13 illustrate exemplary graphical user interfaces for a monitoring system for use as a meeting monitor according to one embodiment. A user, in this case, a meeting organizer or initiator, can access the graphical user interface using a desktop or laptop-type computer system 198 having an Internet connection to the world wide web, using Internet browser software. As provided in FIG. 11, upon connecting to the Internet or to a corporate (or other entity's) Intranet and entering the appropriate URL to access the monitoring website, the user enters an access code for the meeting. The user may then be presented with a list of names of persons who the user is authorized to monitor. These may be users that the meeting organizer has invited to attend a meeting. In this example, the user is authorized to monitor the wireless devices 114, such as mobile telephones carried by potential attendees of a meeting. The list provided to the user indicates whether the wireless communication device 114 for each of the individuals is on or off. From this list, the user selects which of the individuals to monitor. A meeting organizer in this example selects to monitor each of the users that have indicated that they are to attend a meeting planned by the organizer. Using the scheduled event time, meeting location, and list of attendees, it may be determined who has arrived and who has not at the meeting location and/or the estimated time of arrival and/or estimated time en route (based on current location and possibly traffic patterns and travel time) of those attendees not yet at the even/meeting.
Other interfaces may include location-based fields and location-security fields in a meeting invitation. Such fields may also be incorporated into an acceptance notice or input screen. For instance, example location security fields might include check boxes on a meeting acceptance page with the check boxes specifying whether to reveal location information to other meeting attendees who would not otherwise have access to a user's specific location. Also, the fields might specify a time range for disclosing the location information such as thirty minutes before the start of the meeting until thirty minutes after a meeting.
These location-based and location-security fields related to a meeting could be global parameters in a meeting or scheduling system (e.g., Microsoft Outlook), or they could be per meeting parameters that are changed for various types of meetings that a user books to his/her calendar. The default value for the security settings could be configured as a global value for the meeting or scheduling system with individualized control to change the fields/settings to specific values on each meeting. For some meetings, a user might want to disclose location information and not disclose the location information for other meetings. These types of settings could be configured as a global default that gets applies to every meeting unless the user specifically changes the settings in a configuration for a particular meeting.
FIG. 12 is an exemplary screenshot representation of a graphical user interface to the meeting program. In the example shown in FIG. 12, an interface showing a meeting status is provided. The interface includes a location status column 1110 and a tracking tab 1105. The tracking tab 1105 may be used by an organizer of the meeting request to determine who has responded to the meeting request with acceptances or declinations. The location column 1110 is a field (or set of fields) to show the status of meeting attendees and their likelihood of making the scheduled meeting.
In some embodiments, the location field 1110 for the meeting organizer also could include a location information status when a meeting attendee's location information was not available based on: security limits, location system unavailability, or the attendee totally powering down his wireless device, perhaps by removing the battery. For instance, the field could be set to “Loc Info Not Available” when a meeting attendee's location information was not available. Also, the field could be set to “Loc Info Will Be Available in 18 Minutes” for an attendee that allowed his or her location to be disclosed thirty minutes before a meeting that is scheduled to begin in 30+18=48 minutes. The thirty minute lead time for disclosing location information by relaxing security restrictions is a non-limiting arbitrary number, which could be configured by the attendee when he or she accepts the meeting, or at some other time before the meeting begins.
Accordingly, other interfaces to the meeting system may also include fields for the location system. For example, one set of fields may allow meeting notice recipients to change the security settings (as part of the process of acceptance of a meeting request) for disclosing their location information to the meeting holder and/or other meeting attendees. Another set of fields would provide the meeting organizer (and perhaps other attendees and other proxy individuals with the proper security permissions) information to determine the aggregated location status of several scheduled meeting attendees as the meeting approaches in time and actually occurs.
Likewise, fields in displays to the meeting organizer or other person with appropriate access could further provide estimated time of arrival (ETA) and/or estimated time en route as well as summarized information relative to the meeting start time such as displaying “Person X will be (or is expected to be) 10 minutes late for the start of the meeting.” These estimates can be based upon historical and/or actual road traffic conditions and patterns as well as information on transit system and transit vehicle (such as airplanes, buses, trains, and boats/ships) delays and/or cancellations.
FIG. 13 provides an exemplary graphical user interface of the output for the monitoring system for monitoring potential attendees selected from FIG. 11. As can be seen, the screen display provides a map of the area surrounding the meeting location. The map is scaled such that each of the three individuals to be monitored appears on the same map. In this map, as can be seen, Jim (“3”) is located at the meeting place, Jeff (“2”) is located on the road leading to the meeting place, and Scott (“4”) is located at Billy's Bar. The system may also provide the speed of movement of the wireless device 114 carried by an individual and the direction of travel. Depending upon the amount of information stored in the location database 140, the system could also provide a history of an individual's movement throughout the course of the day.
Options may be provided to re-scale the map or to display additional information in greater detail. In this case, the system may indicate that Scott has stayed at Billy's Bar for at least two hours, since noon. The system also provides an estimation that Scott is not on track to make the scheduled meeting.
According to exemplary embodiments, the monitoring system of the present disclosure can be configured with added features depending upon the specific application for which the system will be used. Embodiments can be used to monitor individuals who carry any of several different types of wireless communications products, such as the devices 114. As one example, the monitoring system of the present invention can be used to monitor the location of an individual carrying an interactive pager. Likewise, the system can also be used for monitoring the location of an individual who carries a personal digital assistant that is configured for wireless communication on the wireless network 110. For the purposes of this disclosure, the interactive pager or personal digital assistant transmits control signals in the same manner as cellular telephones, and can therefore be used as monitoring equipment in the same manner. As yet another feature of exemplary embodiments, a user who accesses the monitoring system through a website on the Internet may wish to leave a text message for an individual who is being monitored. For example, a supervisor may wish to leave a message for an employee. During the operation of the monitoring system, the graphical user interface can include a feature to leave a text message for a monitored individual. The entered text is then communicated from an http server 195 to the wireless network 110, and on through a control channel to the wireless device 114 at the location in which it is registered.
Instead of just providing location information to a central or third party system, a third party monitoring system could provide location information about other remote co-workers or employees to remote devices 114. For example, an attendee to a meeting can be notified of how many other attendees have arrived at the meeting location. As another example, a police officer may be notified of how close the next back-up patrol car is located. A service technician may be informed of the location of another service truck that might have a needed tool to complete a service call.
In general, a person may have a default level of privacy for various groups that allows each of these various groups (such as, but not limited to family, friends, co-workers, acquaintances, strangers) different levels of information about a person's location. However, from time to time a user may wish to modify the location security preferences to provide more or less accurate information to various groups of recipients. For example, a user may decide to allow co-workers to have more accurate information about a user's location when a user is scheduled to attend a meeting at work. A person may choose to allow the co-workers to have more accurate information (than the normal/default level of accuracy provided to co-workers) from a time beginning thirty minutes before a scheduled meeting until thirty minutes after a scheduled meeting. Then co-workers will have more information about whether to hold up starting the meeting for a minute or two based on a person's pending arrival in the building as determined by the accurate information about the person's location.
Furthermore, the relaxation of security/privacy rules to allow more accurate location information to be conveyed to co-workers can be based upon acceptance of a meeting invitation in a scheduling or appointment system such as, but not limited to, Microsoft Outlook™.
For users of wireless network devices 114, concerns over privacy are well founded, especially when considering the increasing convergence of wireless communication networks 110 with global computer networks 112. Wireless networks 110 are now routinely in communication with the global computer network 112, providing network users with expanded services such as Internet access through their wireless devices 114. Through this same link, wireless network providers can provide third parties, such as advertising web sites, with the identity and location information that the network provider is (or will be) required to monitor. Consequently, third parties are able to identify a network user and track that user's every movement. Accordingly, a user may desire to limit the scope of information available to a third party regarding the user's current location.
In one embodiment, geographical location information for the wireless devices 114 to be monitored is calculated by the location server 120 and output to the location database 140. The location database 140 maintains the geographical coordinates or a geographical description for each wireless device 114 to be monitored and an account number identifying the wireless device 114. In alternative embodiments, the location database 140 may additionally store information such as the speed of movement of the wireless device 114 and the direction of its movement, with the speed and direction together implying the velocity vector.
In one embodiment, the location database 140 is connected to http server 195 to provide information to the Internet. The information provided in the location database 140 may be combined with information provided by mapping software (or hardware) and information retrieval directories, and the output is displayed on a website as a graphical interface (such as that shown in FIG. 12). The website can be accessed by authorized users through various media, including the personal computer 198 or a wireless handheld device, such as the device 114.
Using various opt-in or opt-out default rules plus user-defined or service-provider-defined rules, the user of the remote device 114, such as a cell phone, pager, PDA, MP3 player, or GPS receiver, could control whether location information is provided to others and at what level of geographic accuracy.
The rules on providing location information could vary based upon one or more of the following as well as possibly other additional factors: who is receiving the information about the location of the user (e.g., family, friends/buddy list, stranger); the location of the user (e.g., restroom, at home, in the office); the defined characteristics of locations (such as fuzzy zones in bathrooms); and time of day, work day, and/or holiday scheduling (e.g., location information provided to co-workers 9 AM-5 M-F versus provided to family 24 hours/day×7 days/week).
For instance, a user may elect to give his family exact location information, while less well-known acquaintances may only be entitled to receive location information about the user being within a particular city. Also, location information could be blocked by the user, in some embodiments. Parents have a blocking override option with the interface to find out the location of their children's cell phones on which the children have tried to block location, in some embodiments.
In addition, location information may include purposely fuzzy or inaccurate zones in which the location information transmitted into the location database 140 is not exact. For instance, under a particular positioning system technology, the location information may be accurate to within three feet. However, a person going into an office building restroom may not want to divulge his location that accurately. Upon passing into a location zone defined by a threshold boundary of a bathroom door, the reported location may just specify the bathroom, but not the specific location within the bathroom. The remote devices 114 (or the network triangulation devices) could automatically report less accurate information about location whenever the user crosses into one of these “fuzzy” or less-accurate geographical zones.
Accordingly, location information of a user may be purposely provided in a less accurate manner for privacy reasons. However, the accuracy of the mobile location information can be controlled at a finer granularity than just an on/off decision of allowing or not allowing accurate location information to be delivered to a specific group of users with authorized access. Instead, an employee may want to receive an incoming phone call and let his boss know that the employee is in the general vicinity of the office, but the employee may not want to let his boss know that the employee is in the restroom or even a specific stall in the restroom (if the location information is capable of providing that level of accuracy). Instead, users of location services may want certain geographical zones of privacy in which the location information is purposely provided to other people communicating with the users in a way that has less accuracy than the location system is capable of providing. Furthermore, users may wish to provide “dummy” information about their location for security reasons and other purposes. For example, a user may want to provide dummy information about being “in the office”, when the user is really out on a sales call at a business. Also, someone who is out-of-town on vacation may not want to disclose that he is out-of-town to every person with whom he communicates while on vacation. For business reasons and/or security reasons (related to the current occupancy of a person's residential home), a person may want to provide location information that indicates that the person is in town as opposed to being out-of-town.
In one embodiment, a pseudo-location service for use in wireless networks that track the locations and identities of network users provides pseudo-location information for a network user. The pseudo-location service provides a wireless network user with the ability to prevent the current location of her wireless handheld device 114 from being disclosed to parties other than the wireless network provider and possibly emergency personnel, such as a 911 response unit. The present disclosure contemplates future enhanced digital cellular networks, in which network users will use digital cellular handheld devices to access data from the global computer network 112, and in which digital cellular network providers will track the identity and location of each network user.
Referring to FIG. 13, in an exemplary embodiment, the wireless device 114 include a user interface 1210 and a pseudo-location processor 1230, and the wireless network 110 includes a pseudo-location network processor 1240 for providing pseudo-location service. User interface 1210 and the pseudo location processor 1230 are provisioned in the wireless handheld device 114 and are in communication with each other. The pseudo-location network processor 1240 is provisioned in the wireless network 110. In the context of an entire network, wireless network 110 is in communication with the plurality of handheld devices 114, and the pseudo-location network processor 1240 would be in communication with a plurality of user interfaces.
The device-based location system 115 and the network-based location system 111 provide the location of the wireless handheld device 114. Depending on the desired degree of accuracy, one or both of the location systems 111, 115 can be used to determine a device's location. As previously discussed, one embodiment of the device-based location system 115 is the GPS receiver 116 provisioned in the wireless handheld device 114. One embodiment of the network-based location system 111 is a WAP location service.
According to exemplary embodiments, the user interface 1210 is an application that operates on the wireless handheld device 114 and enables communication between the user of the device 114 and the pseudo-location processors 1230 and 1240. The user interface 1210 may prompt the user of handheld device 114 to enter commands initiating or suspending pseudo location activities. Examples of suitable user interfaces include menu selections, key sequences such as “87”, and graphical user interfaces (provided that the hardware and memory support such applications). In accordance with the user's command, the user interface 1210 alters the way in which the pseudo-location processors 1230 and 1240 operate. The user interface 1210 may recognize from where location information originates, and communicates with the appropriate pseudo-location processor 1230, 1240. That is, if the device-based location system 115 provides the location information, the user interface 1210 directs either of the pseudo-location processors 1230 or 1240 to replace the location information with a pseudo location. Correspondingly, if the network-based location system 111 provides the location information, the user interface 1210 directs the pseudo-location network processor 1240 to replace the location information with a pseudo location.
The pseudo-location processor 1230 and the pseudo-location network processor 1240 are applications that receive and execute commands from the user interface 1210, according to exemplary embodiments. Primarily, the pseudo-location processors 1230 and 1240 replace location information with pseudo-location information. For example, the processors 1230 and 1240 can disable a location system and substitute pseudo-location information or can receive location information and substitute pseudo-location information. Substituting pseudo-location information could comprise substituting location information that is near the current location or at a set distance from the current location. For example, pseudo-location information may be set to be five miles to the west of the current location. Alternatively, a predefined location may have been previously designated as a substitute for a current location. For instance, a user may designate that a location corresponding to the entrance of the user's work center is to be used as a pseudo-location for the location corresponding to the work center's restroom facilities.
To substitute pseudo-location information, the pseudo-location processor 1230 may either disable the device-based location system 115 or substitute pseudo-location information for the location information that system 115 provides. The pseudo-location network processor 1240 may remove location information from transmissions before they are forwarded outside of the wireless network 110. If the location information originates from the device-based location system 115, the pseudo-location processor 1230 removes the location information from the transmission and substitutes pseudo-location information, according to exemplary embodiments. If the location information originates from the network-based location system 111, the pseudo-location network processor 1240 may either disable the network based location system 111 or substitute pseudo-location information for the location information received from the network-based location system 111.
As one of ordinary skill in the art would understand, the pseudo location network processor 1240 could be a separate component of the wireless network 110, or could be a part of a proxy server that acts as an intermediary between a plurality of handheld devices and the computer network 112 to provide routing selection (i.e., what transport bearer is to be used), access control, addressing, protocol conversion (i.e., WML text to WML binary), caching, and transport interface between wireless and wired networks (e.g., WAP stack to traditional IP stack, HTTP/TCPIIP). The proxy server may be associated with or part of a gateway server that separates the wireless network 110 from the computer network 112, such as the Internet. The proxy server could also be associated with a firewall server that protects the wireless network 110 from intrusion via the computer network 112.
Based on the system architecture shown in FIG. 14, exemplary embodiments provide pseudo-location services by several exemplary methods, depending on which location system 111, 115 provides the location information: 1) If both the device-based location system 115 and the network based location system 111 provide location information, the user interface 1210 directs the pseudo-location network processor 1240 not to forward location information; 2) If only the device-based location system 111 provides location information, the user interface 1210 directs either the pseudo-location processor 1230 or the pseudo-location network processor 1240 not to forward the location information; and 3) If only the network-based location system 111 provides the location information, the user interface 1210 directs the pseudo location network processor 1240 not to forward the location information.
In one embodiment, the user interface 1210 can enable the user to establish a user profile, to be stored in the pseudo-location processor 1230 or the pseudo-location network processor 1240, as appropriate for the active location system 111, 115. The profile specifies conditions under which location information is blocked for a user. These conditions can include such parameters as the recipient of the transmission, the time of day, and the location of the user (i.e., if the user never wants to be caught in a particular location, she can specify that that location always be substituted with a pseudo-location). The user interface 1210 allows the user to establish, edit, enable, and disable the profile. When the profile is enabled, the pseudo location processor responsible for replacing the location information (processor 1230 or 1240) may evaluate the transmission to see if the transmission meets the profile parameters, and if so, replaces the location information with the appropriate pseudo-location. Thus, for example, if a user has specified that his or her employer is not to receive accurate location information, the pseudo-location processor 1230 or 1240 reads each data transmission to ascertain the recipient, compares the recipient to the names of the user's employers in the profile, and replaces the location information with pseudo-location information if the recipient's name matches those names (of the employers) listed in the profile.
FIG. 15 illustrates an alternate embodiment of the present disclosure in which a pseudo-location network user interface 1350 is provisioned in wireless network 110, in communication with the pseudo-location network processor 1340. The pseudo-location network user interface 1350 provides an alternate means of initiating or suspending pseudo-location services and for altering user profiles. Unlike the user interface 1310, which operates on device 114, the pseudo-location network user interface 1350 operates within the wireless network 110. For example, the pseudo-location network user interface 1350 could be a web-enabled graphical user interface accessible by a network user through the computer network 112. In this manner, a user would access the web page of the graphical user interface 1350 and change the parameters to affect the desired pseudo-location service. This web accessible interface 1350 would be especially beneficial for users who prefer to establish pseudo-location services for certain recipients only, because such a service would require a considerable amount of detailed input by the user.
According to one embodiment, the processors 1330 and 1340 are programmed to override pseudo-location services when necessary. For example, even if the user has chosen to activate a pseudo-location service for all transmissions, the pseudo-location processors 1330 and 1340 automatically reactivate the location service if the user dials 911 so that an emergency response service receives the critical location information. In another embodiment, a wireless network pseudo-location service is provided irrespective of related services.
To establish geographic zones, a user may utilize the user interface 1210, 1310 of the wireless device 114 or the user interface 1350 of the wireless network 110 to select points or nodes to define the zone. For example, FIG. 16 illustrates an interface screen which prompts a user to select a current location as a vertex within a geographic zone being established by the user. Therefore, the user may physically walk to a physical location where the user wants to establish a geographic zone and by using the user interface 1210, 1310 and selecting an OK button or by selecting a graphical OK link on the device display, a user can enter a vertex within a geographic zone. After the user has entered all the desired vertices, then the vertices are connected to establish a perimeter or zone. Accordingly, FIG. 17 illustrates an interface screen prompting a user to select a Done link to indicate that all the desired vertices have been entered. Alternatively, to establish a geographic zone, the user may input a current location, as identified by the GPS receiver 116 of the wireless device 114 for example, as a center of a circular perimeter or zone. FIG. 18 illustrates an interface screen prompting a user to input such a point. After the center is specified, then the user can input a radius for the circular perimeter or zone, as illustrated in FIG. 19. Accordingly, using the above approaches, a user can define a geographic zone. In accordance with one embodiment, the geographic zone is used to map a current location that falls within the zone to a pseudo-location. Similarly to the above approaches, a user may also specify the pseudo-location. For example, a user may physically move to a location which will be identified by the GPS receiver 116 of the wireless device 114 of the user. As shown in FIG. 20, a user interface, such as the user interface 1210, 1310, of the device 114 may enable a user to select the location as a pseudo-location.
Referring now to FIG. 21, one embodiment of the present disclosure is figuratively represented. As shown, vertices 1910 inputted by a user help define a geographic zone 1920. Therefore, when the wireless device 114 enters a location represented by the zone 1920, the location system 111, 115 may report the location, as reflected by the arrow 1930, as a pseudo-location to the third party server 150. In the example, the correct location of the wireless device 114 is 55 degrees north and 33 degrees east. However, in accordance with exemplary embodiments, a pseudo-location is reported corresponding to 40 degrees north and 74 degrees west.
In one embodiment, user interface screens provided on the wireless device 114 may allow a user to select individuals from the user's “buddy” or contact list or address book as recipients for pseudo-location information, as represented in FIG. 22.
FIG. 23 is a flowchart describing one embodiment of a method for instituting privacy control of location information. One embodiment of such a method includes defining (2110) a geographic area for which pseudo-location information is to be provided (via wireless device 114, location server 120, and/or third party server 150). The method further comprises defining (2120) parameters on which individuals or entities are to receive the pseudo-location information (via wireless device 114, location server 120, and/or third party server 150). Accordingly, if a current location of a user is received (2130) that falls into the geographic area, then pseudo-location information is reported (2140) to individual(s) or entities selected for receiving the pseudo-location information (via wireless device 114, location server 120, and/or third party server 150). Otherwise, if a current location of a user is received (2150) that is outside of the defined geographic area, then the correct location information is reported (2160) to individual(s) or entities not selected for receiving the pseudo-location information (via wireless device 114, location server 120, and/or third party server 150).
In some embodiments, whether creating a geographic zone for providing pseudo-location information or a zone or a geographic zone for adjusting device features, a user interface, such as the user interface 1210, 1310, may be provided on the wireless device 114 that allows the user to select popular geographic zones in the user's area or an area inputted by a user (via a zip code, for example). For example, FIG. 24 shows a screen interface allowing a user to select to implement a geographic zone according to establishments in the user's area, such as baseball park Turner Field, sports venue Philips Arena, and/or music and show venue Fox Theater.
While the system operation described herein and illustrated in the diagrams and flowcharts contains many specific details, these specific details should not be construed as limitations on the scope of the disclosure, but rather as an example of embodiments thereof. As would be apparent to one of ordinary skill in the art, many other variations on the system operation are possible, including differently grouped and ordered method steps. Accordingly, the scope of the disclosure should be determined not by the embodiments illustrated, but by the appended claims and their equivalents.
In the future, due to the mandate to establish E911 services, the wireless network 110 will be monitoring the locations and identities of the wireless handheld devices 114 for emergency purposes. As a result, network service providers will presumably attempt to capitalize on the mandated service by providing the locations and identities to web sites. Among other possible applications, web sites will use the valuable information to direct targeted advertisements to the handheld devices 114. For example, web sites may wish to locate wireless handheld devices 114 near a retail store, and send those devices an advertisement encouraging the network users to visit the store.
FIG. 25 is an exemplary block diagram showing circuit blocks constituting one embodiment, among others, of the wireless communication device 114 and particularly, a cell phone. The cell phone 114 includes a display screen (or “display”) 2328, a keypad or keyboard 2330, a speaker 2332 and a microphone 2334. The keys or “buttons” on the keypad 2330 may be provided as, for example, push-button keys or computer keyboard type keys or membrane keys or any other suitable design configuration. The choice of the type of keys on the keypad 2330 may thus depend on design and aesthetic considerations including, for example, the size, the weight and the desired physical contours for the cell phone 114. The display screen 2328 may display text or graphic messages thereon. For example, when the user browses the Internet 112, the display screen 2328 may display the content of web pages for the user to look at. In one embodiment, the display screen 2328 may be an LCD (liquid crystal display) display. In alternative embodiments, the display screen may be, for example, a TFT (thin film transistor) active matrix display or a touch-sensitive screen.
| 38,921 |
https://github.com/Gleuton/TCC_PucMinas/blob/master/frontend_web/src/views/nonconformity/impacted_process/store/state.js
|
Github Open Source
|
Open Source
|
MIT
| null |
TCC_PucMinas
|
Gleuton
|
JavaScript
|
Code
| 6 | 13 |
export default {
impactedProcess: []
}
| 43,709 |
https://github.com/edwcode/pruebaConcursoCocina.sql/blob/master/resources/views/evaluate.blade.php
|
Github Open Source
|
Open Source
|
MIT
| null |
pruebaConcursoCocina.sql
|
edwcode
|
PHP
|
Code
| 243 | 1,197 |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">votaciones</div>
<div class="panel-body">
<form class="form-horizontal" method="POST">
{{ csrf_field() }}
<div class="form-group{{ $errors->has('concursante') ? ' has-error' : '' }}">
<label for="sabor" class="col-md-4 control-label">Concursante</label>
<div class="col-md-6">
<label class="form-control">{{ $plate->InversaPlateUser->name }}</label>
</div>
</div>
<div class="form-group{{ $errors->has('titulo') ? ' has-error' : '' }}">
<label for="sabor" class="col-md-4 control-label">Titulo</label>
<div class="col-md-6">
<label class="form-control">{{ $plate->titulo }}</label>
</div>
</div>
<div class="form-group{{ $errors->has('comentario') ? ' has-error' : '' }}">
<label for="sabor" class="col-md-4 control-label">Comentario</label>
<div class="col-md-6">
<textarea class="form-control" disabled="true">{{ $plate->comentario }}</textarea>
</div>
</div>
<div class="form-group{{ $errors->has('foto') ? ' has-error' : '' }}">
<label for="sabor" class="col-md-4 control-label">Foto</label>
<div class="col-md-6">
<img src="{{ asset('assets/files/fotos/'.$plate->foto ) }}" width="100px">
</div>
</div>
<input type="hidden" name="id_user" value="{{ Auth::user()->id }}">
<div class="form-group{{ $errors->has('sabor') ? ' has-error' : '' }}">
<label for="sabor" class="col-md-4 control-label">Sabor</label>
<div class="col-md-6">
{{ Form::select('sabor', [''=>'valoracion por Sabor',0=>0,1=>1,2=>2,3=>3,4=>4,5=>5],null ,['class' => 'form-control', 'required'=>true]) }}
@if ($errors->has('sabor'))
<span class="help-block">
<strong>{{ $errors->first('sabor') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('imagen') ? ' has-error' : '' }}">
<label for="imagen" class="col-md-4 control-label">imagen</label>
<div class="col-md-6">
{{ Form::select('imagen', [''=>'valoracion por Imagen',0=>0,1=>1,2=>2,3=>3,4=>4,5=>5],null ,['class' => 'form-control', 'required'=>true]) }}
@if ($errors->has('imagen'))
<span class="help-block">
<strong>{{ $errors->first('imagen') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group{{ $errors->has('elaboracion') ? ' has-error' : '' }}">
<label for="elaboracion" class="col-md-4 control-label">elaboracion</label>
<div class="col-md-6">
{{ Form::select('elaboracion', [''=>'valoracion por Elaboracion',0=>0,1=>1,2=>2,3=>3,4=>4,5=>5],null ,['class' => 'form-control', 'required'=>true]) }}
@if ($errors->has('elaboracion'))
<span class="help-block">
<strong>{{ $errors->first('elaboracion') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Guardar
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
| 17,454 |
https://github.com/svenax/homebrew/blob/master/Library/Formula/usbmuxd.rb
|
Github Open Source
|
Open Source
|
BSD-2-Clause
| 2,017 |
homebrew
|
svenax
|
Ruby
|
Code
| 73 | 332 |
require 'formula'
class Usbmuxd < Formula
homepage 'http://marcansoft.com/blog/iphonelinux/usbmuxd/'
url 'http://www.libimobiledevice.org/downloads/usbmuxd-1.0.8.tar.bz2'
sha1 '56bd90d5ff94c1d9c528f8b49deffea25b7384e8'
head 'http://cgit.sukimashita.com/usbmuxd.git'
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'libusb'
depends_on 'libplist'
def install
libusb = Formula["libusb"]
inreplace 'Modules/VersionTag.cmake', '"sh"', '"bash"'
# The CMake scripts responsible for locating libusb headers are broken. So,
# we explicitly point the build script at the proper directory.
mkdir 'build' do
system "cmake", "..",
"-DLIB_SUFFIX=",
"-DUSB_INCLUDE_DIR=#{libusb.include.children.first}",
*std_cmake_args
system 'make install'
end
end
end
| 42,521 |
sn88063294_1943-10-14_1_23_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,943 |
None
|
None
|
English
|
Spoken
| 451 | 814 |
Shell Torn 4'hiimzi l*ass International Photo Stretcher bearers and infantrymen mov ing down the shell-torn Chiunzi Pass in Italy to join the foremost unit of their company which dug in on a 4\noll ahead of the pass. On the plain of Naples below is a (ierman depot burning after a U. S. air raid; to the right in background is smoking Mt. Vesuvius. A •lap’s Trilmlr lo a Yank m W JL ' 'ww ‘ ‘ la**m»t|on«! Bound Photo The grave of an American flier nn Kiska who flierl July 20, according to the rough marker made by the Japs who paid this unusual tribute to him. Allies IfttiiMMl This Pori i;? ■• ,^ r y i^HRSI^PF, CL M jagIMWWr t JF> #r ■ r i ,j>p fi ,, n iildii jPMI AJI .. BRu fl| W 1^ 1 *'_ > « I ' r ??>♦’ jaiWL^.^^M> • ’\ 1 ** , : Hr The port of Morta in the Azores that has been put at the disposal of the United States and British naval units by Portugal to help combat the l-boat menace, protect Allied supply from the U. sT* * i4fa MOF <.-*■+ * - .**. '■ * ,•■ & s is . l ||! ,pll, fl's™ <t i4t‘s<lw ; l!?^fw*vi 5ii ■■ * ‘'*ta. & sSmf&wrr ■ \ f %a m L'<SUHP 13i&, ? MtHfafi Ml <&JwL • , > V;. - ■ • IK • ■ w* ’• #t * . i. i niirr rm* -rTrrrmm — '" " *1 ' ***+**« ■■» ■ "jtk. - ; *SjgßE» ' Tfn-~ *<+ l->l * SRLtiL*' JT£* y-, vjBKKL* ■ ; jlßk v * V x $ • jj ||k ~ js| Br Jj J yk ’I9HL Ttm»« Photo Pretty Kllen Fronrath of Alma street, who is to day's candi date for pin up honors. < >ther pin-up giris m a y mail photos to the Times. Tlio W«*i^o|Ki|i( k r Kills in AH ion i Ttrri*« Photo Four youngsters from Carstens School stacking wastepaper at the school, left to right: Richard Brack ett, 14; Kenny Haynes, 13; Jack Baker, 13; Raymond Boyleau, 1-. lp§|B S .-^^P^W^lvp^l^i: 1 / Il i l i'iiii -4<t< ' ■■' " >* * - i Hp - r ~7 i BMBBP * J ■PHnW# *»■%'. ' l n*. *, W3*e«^*»^^ Tin* \<‘tv Italism Kiiins |r M fiCXSBT*' In*eruational Photo The square in Torre Annuziata, Italy, showing bombed out homes and gutted streets and a British tank rumbling through the street. THE DETROIT TIMES mmumaas^ry r"* y&tfj&W ./Cl [: % 3m*»^Mmmt -••• \i r 4. % liuF:. . A t **Kr li j * AJ £ ♦■*:,. > Thursday, October 14, 1941 Page 23.
| 22,110 |
https://github.com/nigelbayliss/oracle-db-examples/blob/master/optimizer/bulk_load/03_etable.sql
|
Github Open Source
|
Open Source
|
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, UPL-1.0
| 2,021 |
oracle-db-examples
|
nigelbayliss
|
SQL
|
Code
| 130 | 287 |
--
-- This script creates an external table.
-- The "dirs" script must be run first because
-- the directories are referenced.
--
DROP TABLE sales_ext
/
--
-- I like to specify the character set explicitly
-- because the external table would otherwise
-- inherit the characterset of the database and use
-- this when reading the datafiles. I prefer a fixed
-- width character set as it enables inter-file
-- parallism in both 11g and 12c.
--
CREATE TABLE sales_ext (
id NUMBER
, txt CHAR(100))
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY data_dir
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE
CHARACTERSET US7ASCII
BADFILE bad_dir: 'sales%a_%p.bad'
LOGFILE log_dir: 'sales%a_%p.log'
FIELDS TERMINATED BY '|'
MISSING FIELD VALUES ARE NULL )
LOCATION ( data_dir:'sales_1.dat',
data_dir:'sales_2.dat' ))
PARALLEL
REJECT LIMIT 10;
| 10,295 |
bpt6k62462559_4
|
French-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,885 |
Journal officiel de la République française. Débats parlementaires. Chambre des députés : compte rendu in-extenso
|
None
|
French
|
Spoken
| 7,901 | 12,727 |
Eh bien, messieurs, dans cette section de Maria, savez-vous ce qui est arrivé, .0 6 les électeurs républicains, moins un, ont sign, la contre protestation. (Tiès bien 1 très bien, i droite.) Qae reste t-il donc de toutes ces accusatif que l'on a développées tout à l'heure devau vous? Gomment 1 on vous apporte un dossi** P vêtu de 40 signatures, et, nous, nous opPO" sons i ce dossier un dossier de contre-prtjjrj tations qui est revêtu de 2,106 signature (Nouvelle approbation à droite. Iaterrop tions ironiques à gauche.) A gauche. C'est trop 1 M. Léon Chevreau. Et il y en a belu" coup de républicains honnêtes 1 M. Blachère. Oui, messieurs, nous en tout, je le répète, 2,106 signatures. Mais, messieurs, ne pouvait-on pas prMoit d'avance ces résultats ? Comment 1 voPl .là ul, prêtre qui dit, du haut de la chaire, qu'il va mieux étrangler un petit enfant que de vol'i pour la liste républicaine 1 Un autre déc qu'il vaut mieux tuer un père de famille qte de voter pour la liste républicaine. Un troi" troisième, toujours du haut de la chaire, if., firme que les républicains sont des frIpa et des bandits; un quatrième, que les répl1 blicains sont des incendiaires 1. Et dans 10 localités où de pareils propos ont pu être AI nus, les républicains ne se se sont pas 1,0"60 comme un seul homme pour protester coPU d'aussi violents outrageol (Vives d'approbation à droite. — Interruptions iro ques à gauche.) M. Dacoudray. Oh 1 nous sommes si h~' tués i ce langage de la part de ces meslÍeurs t M. Maurice-Faure. Voilà un singulier mépris de l'article 204 du code pénal l M. Dncoudray. C'est pour cela que non' demandons la suppression du budget dei cultes ! M. Blachère. Das prêtres, dites-vous, 0111 tenu un pareil langage, et vous avez 010 trente-quatre jours, — car il n'y avait encore aucune pièce au dossier remis à votre i" bg. reau, vo as avez mis trente-quatre jours P trouver quelques misérables protestations obtenues, on a va tout à l'heure comment 1 P* les localités où on aurait tenu ces propo*» j peine avez-vous trouvé un unique signata^ pour protester contre des outrages aussi s*", glants 1 En vérité, messieurs, est-ce que c" croyable ? (Très bien 1 très bien 1 à droite.) Vous dites que le clergé tout entier de Ym" dèche, sur un mot d'ordre, venu de son e?v que, s'est livré aux agissements les plus fI lents contre la liste républicaine ; et sur 11 400 paroisses du diocèse de Viviers, c'es'" peine si vous réunissez 30 signatures Po prouver ces agissements du clergé. Comment, sur 31 cantons qui composent département, il y en a deux ou trois sefl* ment où vous essayez de prouver l'action clergé, et dans les 28 autres cantons il fO 1 est impossible d'en trouver la moindre trace [ (Nouvelles approbation à droite.) Et ces protestations contre le clergé, cjJL ment se fait-il qu'elles émanent d'un cet nombre de communes presque toutes CO prises dans la zone d'action de M. Vielf*®*A l'auteur du dossier ? En dehors de cette %0 LI vous n'en trouvez plus 1 (Très bien ! très bIen C'est vrai 1 à droite.) i e* '&'Letta (d'Auray). C'est un commis aux l&, elachère. Eq vérité, il y a trop d'in. VRÎF..blauC8îs accumulées contre votre tttoo .Pour qu'elle soit acceptable. le '^1"8» je n'ai plus qu'un mot à dire sur étendu mandement de l'évêque de Viviers. ba beaucoup parlé, on a fait beaucoup de Wt H 5 mandement de l'évêque de Viviers. êpilco 1 Pas à discuter le foad de la lettre épi, pa. e, à examiner le mandement en lui de p » .1® n'ai à l'étudier qu'au point de vue fions qu'il a pu exercer sur les élece bien, de bonne foi, comment voulez-vous ® Rudement ou plutôt cette lettre cirn'elt e qui a paru seulement le 2 octobre, qui n'est arrifée dans les communes que le 3 ou r4 dans les communes que le 3 ou lenig 4 je 4 octobre, qui ne parvient qu'aux 1 a nnés de la Semaine religieuse, que Io "88 ecclésiastiques ne reçoivent même pas, Pttjg0 Ue cet abonnement est facultatif, comifojj ^Qlez-vous que cette lettre pastorale, i^terH' G8 porte, au bas de la première page, Cozn IttlOn formelle de la lire en chaire, torg "It boutez-vous qu'elle ait pu exercer ûuaence quelconque sur les élections ? Voie; a droite. C'est l'évidence môme ! toe î.cbère. Gomment ! voici un évêgue de Viviers, que vous dites inWfffl 61 je n'y contredis pas, qui veut Pl cisément sur les élections, comont a Y prend-il? On pourrait penser que inon Ou dix jours avant l'élection, il va bien der le diocèse de sa lettre-circulaire. Eli bier, aPRR à du tout ! Il ne charge même pas tifj» "Jjûeur d'augmenter d'un seul numéro le le 4ge de la Semaine religieuse, qui, comme je tout àl'heure, n'arrive qu'à quelques et à quelques personnes pieuses. (Très e4ni 0trè'J bten ! à droite. — Bruit à gauche.) n, le tirage n'est pas augmenté d'un seul i ^mêr ®r° et, au lieu d'envoyer plusieurs jours Ce la lettre pastorale, de façon que ^ctin Su Ptù'se en prendre connaissance, que loqi clergé puisse la lire, on se borne i er le 2 octobre, de telle sorte que, ^8 i Jiontagne, où le service de la poste le jâ5* à pied, elle n'est môme pas parvenue ♦ utes les paroisses 1 Mais bien plus, °tu Ji ettïe pastorale, au moyen de laquelle on eta remuer le diocèse, on a soin d'inter(ïj^folument au clergé de la lire en chaire ! ç oient très bien 1 à droite.) l'hç^ieurs, j'ai fini. Je vous disais tout à 4e I?:6 qu'on avait créé autour des élections <le rdèe e une véritable légende. kqi4 es d'efforts, et vous savez par quels () 8, (Très bien I très bien t à droite.) fin Il Ui.t dit aussi que l'évêque de Viviers jto'il Qohné le mot d'ordre à son clergé et VAI% agi puissamment dans l'élection. pûlli** V'euve a-t-on donné de cette action ? i.1 Ji'ven dans les pièces du dossier qui ®' et je vous défie d'en trouver la tki Par la bonne raison qu'elle n'a pas Q * Urès bien 1 très bien ! à droite.) ^tendu enfin voici un détail carac '^*Ua 6 qu'on trouve dans les premières provÔJÛ 18 déposées, — que le mandement de 1, t Îè4n'B de Viviers avait été la, commenté Ne n» ion en chaire, le 27 septembre, dans 4j teà les églises du diocèse, et je viens de vous démontrer qu'il n'a pu arriver que le 3 ou le 4 octobre dans les diverses paroisses. Vous voyez quelle valeur on peut accorder à de pareilles allégations. M. le comte de Lanjuinais. Très bien}1 très bien 1 M. Blachère. Messieurs, il y avait, dans les protestations, quelques griefs qui n'étaient pas à l'adresse du clergé. Ces griefs visaient personnellement les candidats élus. On les a retirés et on a déclaré très loyalement qu'on n'avait aucun reproche à leur adresser. En vérité, c'est un étrange procès que celuici, procès dans lequel on n'a pas un seul reproche à adresser aux accusés, et où les seuls accusateurs sont coupables 1 J'ai montré tout à l'heure, par les pièces du dossier, qu'il y avait eu des falsifications de textes. (Très bien ! très bien ! à droite.) Il est temps de voir l'issue de l'odieuse campagne d'invalidation poursuivie contre les élections de I'Ardèche; elle est, sachez-le bien, jugée sévèrement dans notre département, qui sait à quoi s'en tenir, parce qu'il connaît la vérité. Les républicains comme les conservateurs condamnent cette odieuse campagne. (Applaudissements à droite. — Interruptions à gauche.) Tout le monde a été trompé ici : les ministres, la presse parisienne, vous tous, messieurs, vous avez été trompés ; il est temps, je le répète, de voir la fin d'une aussi scandaleuse imposture. Vous nous devez nne réparation. (Exclamations à gauche. — Très bien ! très bien 1 à droite.) Oui, vous nous devez une réparation, vous tous qui avez cru à cette légende électorale; vous tous qui, de bonne foi, l'avez propagée dans cette enceinte, vous nous devez une réparation; j'en appelle à votre justice et à votre équité, et je vous demande de valider les élections de l'Ardèche, conformément aux con clusions de votre 1" bureau ; car, messieurs, en votant la validation des élections de l'Ardèche, vous voterez j'ose le dire, pour l'honneur de cette Chambre t (Très bien 1 très bien ! et applaudissements à droite.) M. le président. La parole est à M. Ma" dier de Montjau. Sur plvuieurs bines à gauche. Aux voix 1 — La clôture 1 Sur d'autres bancs. Non ! non ! M. le président. La clôture étant demandée. Plusieurs membres à gauche. Non 1 non 1 M. le président. Pardon ! la clôture a été demandée. Je consulte là Chambre. (La Chambre, consultée, ne prononce pu la clôture.) M. le président. La discussion continue. La parole est à M. Madier de Montjau. M. Madier de lIontjau. Messieurs, si tout ce qui vous a été si complètement et si agréablement raconté par mon honorable ami, M. Leporché, est vrai, incontestablemsnt vrai, il n'est pas possible, consciencieusement, et je dirai décemment, de valider cette élection. (Vives réclamations et interruptions à droite.) C'est M. Blachère qui l'a reconnu en commençant le discours que vous venez d'enten.. dre, et j'en prends acte. (Nouvelles interrup. tions à drote.) Oui, M. Blachère, lui-même. Vous n'aurez, ponr vous en convaincre, qu'à lira le Journal officiel, demain matin. iw Aussi ne restait-il à lui et à ses amis, et tout d'abord au rapporteur du bureau, qu'i nier absolument. (Bruit à droite.) Voix à droite. Vous n'avez rien entendu ! M. de S oland. M. Blachère a dit que tout ce qu'on avait allégué contre l'élection était faux, et il l'a prouvé. M. Madier de Montjau. Si c'est de ce côté (l'orateur montre la droite) un parti pris de m'empêcher de continuer, je m'y résignerai facilement, car je crois la Chambre déjà suffisamment éclairée pour bien voter ; si, au contraire, vous admettez que je puisse aller jusqu'au bout, veuillez ne pas m'interrompre à chaque minute. M. d'Aillières. Nous avons voté pour que la parole vous fût donnée. M. le président. Alors n'interrompez pas l'orateur. M. Madier de Montjan. Je disais que le rapporteur de la commission avait senti le besoin de nier ; mais il l'avait fait avec habileté en le faisant avec réserve. Il s'était borné, en effet, à mettre en présence le chiffre des protestataires et celui des contre-protestataires, puis comparant, il avait conclu que rien n'était vrai dans les protestations puisque le nombre des gens qui démentaient les protestataires était plus grand que le nombre des protestataires eux-mêmes. C'était, je le répète, prudent, et par cela même adroit. L'honorable M. Blachère, emporté par des sentiments que je comprends trop bien, a eu moins de mesure. Il a voulu établir en pesant sur chacune des articulations qui lui étaient contraires, qu'il n'y a pas un mot, un seul mot de vrai ; dans tout ce qui a été dit centre ssn élection, qu'à l'histoire honnête, sincère des élections da l'Ardèche, on a substitué une impertinente et menteuse légende dont on ne doit rien croire, absolument rien. Eh bien, messieurs, il y a au moins dans les affirmations qui se sont produites contre la véridique histoire, une chose vraie, et qui restera. Je le démontre,mes8ieur., tout d'abord et par autorité dd justice. Parmi les prêtres ac* cusés, parmi ces impeccables, contre lesquels nos amis justement indignés ont fait éntendrp leurs affirmations, se trouve un certain abbé Michel, curé de je ne sais plus quelle paroisse ardéchaise, dont on racontait que, jugeant que sa parole en chaire ou ailleurs contre les républicains et la République n'avait pas encore assez de poids, il avait à ce poids ajouté le complément de celui de son poing. Trouvant sur son chemin un malheureux facteur, porteur très régulier et très légal de paquets de bulletins républicains qu'il ne voulait pas livrer, il l'avait pris au collet, et ceci ne suffisant pas, il l'avait battu. (Mouvements divers), procédé si vif — convenez-en, — de la part d'un oint du Seigneur, qu'à moimême il ne fallait rien moins qu'une preuve incontestable pour me faire croire qu'au sortir de l'église, de la messe peut-être, un charitable curé, un vénérable prêtre, eût pu agir ainsi. Mais, messieurs, force m'a bien été de croire, dirai-je à mon grand regret, non, vous me traiteriez d'hypocrite et vous auriez raison, force m'a bien été de croire, en lisant dans un journal de ce matin, je crois, arrivé à propos, la sentence tout récemment rendue du tribunal correctionnel de Tournon contre l'abbé Michel qui, non content d'avoir battu, calomniait encore celui qu'il avait frappé en l'accusant de provocation. Les juges ont répondu : c Attendu que la provocation n'est pas prouvée, mais que le délit imputé à l'abbé Michel est, au contraire, très caractérisé, le tribunal condamne l'abbé Michel à 100 francs d'amende et aux dépens.. Pour des coups de poing bien appliqués, ce n'est vraiment pas cher ! (Marques d'assentiment à gauche ) ; , ; 7 M. Blachère et ses amis voudront-ils bien m'accorder que la légende est, en quelques points au moins, de l'histoire? Sous l'jmpres. sion du fait avéré, garanti par la justice, seront-ils un peu plus disposés à croire que les contre-protestations ne sont pas articles de ici et que pour être moins nombreux peut-être que leurs contradicteurs, les protestataires ne eont pas moins très dignes de confiance ? En voulez-vous la preuve ? Ah 1 messieurs, je ne vais pas revenir longuement sur tous les détails déjà si bien étudiés et si bien exposés de l'élection de l'Ardéche. Je veux, au contraire, par des considérations tirées de l'ensemble des choses particulières à cette élection, et par quelques autres d'un ordre tout général, démontrer, à quiconque n'a pas intérêt à ne pas se laisser convaincre, que les choses se sont bien passées comme on nous l'a dit, que tous les faits articulés contre les pieux champions de l'élection du 4 octobre sont exactement vrais. , Peut-on expliquer en effet facilement, mes sieurs, si l'on croit aux mensonges, qu'à quinze, vingt kilomètres, peut-être, de distance, un protestataire affirme un fait tout pareil à celui qu'un autre protestataire raconte à son tour, comme s'étant passé, loin de là, dans sa commune, où la première protestation a été faite ? M. le comte de Lanjuinais. Toutes ces protestations émanent de la même personne. M. Madier de Montjan, Croyez-vous qu'on ait inventé à Borne es à Vernoux, à ia fois, cet avis menaçant donné dans l'un et l'autre endroit à un électeur récalcitrant: mieux vaudrait avoir tué un enfant nouveauné que voter pour MM. Vielfattre, Boissyd'Anglas et leurs amis? -. , Non, messieurs, on n'invente pas, par hazard, en même temps, de tels mensonges. Si les protestataires se sont rencontrés dans leurs déclarations c'est que ceux dont ils ont rap. porté les paroles, habitués 4 mesurer le péché, n'en trouvaient pas de plus mortel que l'assassinat d'un nouveau-né, et qu'en déclarant plus horrible encore le vote en faveur des républicains ; lis savaient à merveille, connaissant ceux à qui ils s'adressaient, sachant agir sur eux, quelles conclusions terribles seraient tirées de leur comparaison et quelle impression elles produiraient. (Très bien 1 très bien! à gauche.) Si les protestataires ont menti, comment comprendre que de pauvres paysans, de petits marchands de village, se soient assez souvenus de l'histoire de la guerre des Albigeois, et des Albigeois pour prêter au prêtre, qu'ils accusaient faussement, un rapprochement entre cette guerre horrible, faite de persécutions odieuses, d'affreuses violences, contre ceux qui avaient le malheur de ne pas croire aux vérités de l'Eglise catholique, légitime et grande seulement aux yeux de cette Eglise, et la guerre non moins implacable dûe aux républicains ? Non, li encore, c'étaient les sentiments qu'on professait au moyen âge contre les Albigeois, les sentiments que l'on éprouve [encore qui parlaient contre les républicains 1 (Applaudissements à gauche et au centre.) Non, ce ne sont pas les paysans protestataires qui ont inventé cela 1 Et puis, toutes ces calomnies contre la République et les républicains, toutes ces injures, ne les voyons-nous pas chaque jour imprimer ce qui est plus grave encore que de les pro: férer — dans les journaux spéciaux que reçoivent avec amour MM. les curés et MM. les vicaires, tous les prêtres, eafin! et qu'ils lisent comme un bréviaire!. N'y dit on pas ce qu'on reproche aux prêtres de l'Ardèche d'avoir dit des candidats républicains?. Ces expressions grossières — si grossières que je ne veux pas les répéter — qui se trouvent dans ces journaux sont tombées des lèvres de leurs lecteurs assidus. Cela non plus, il n'était pas nécessaire de l'inventer 1 Mais, messieurs, des considérations d'un ordre plus général peuvent — je vous le disais au commencement prouver encore et mieux peutêtre, la vérité des protestations. Quoi! les prêtres de l'Ardèche seraient restés spectateurs paisibles de la lutte électorale qui s'accomplissait devant eux l Qaoi ! ils se seraient bornés à donner quelques sages et prudents conseils aux électeurs et à déposer modestemeet dans l'urne leur bulletin pour les candidats de la liste dite conservatrice? Vous ne le croyez pas vous qui les défendez, et vous ne le ferez croire & personne. Mais sous las précautions dont il croyait devoir entourer ses indications, M. l'évêque de Viviers leur disait qu'il ne fallait pas que l'anathème : 1 Malheur à ceux qui se sont tus t » pût les frapper. Il leur recommandait de parler, d'agir ; il le leur prescrivait dans cet énergique langage que je n'ai pas beioin de reproduire devant vous, puisque tout à l'heure M. Leporché vous l'a textuellement fait entendre. Et quand lançait-il ses injonctions ? La 2 octobre, a-t'on dit ; mais la retraite qui avait eu lieu à la fin de septembre au chef-lieu du diocèse, on l'oublie. N'avait-elle pas eu la primeur de la lettre pastorale ? On ne l'avait imprimée que le 2 octobre, soit tElle éclatait l'avant-veille de l'élection, mais on n'en aurait rien dH le 29 septembre à tous les prêtres, jeunes et vieax, réunis dans le séminaire de Viviers, tous la haute direesion de leur évêque? c', Du point de vue où il se plaça avec tous ses collègues, M. l'évêque de Viviers aurait étrangement, en ce cas, manqué à son devoir. Il avait sous sa main tout son monde, et il ne lui aurait pas dit ce qu'il avait écrit, ce qu'il allait publier trois jours après pour lui. Et ce missionnaire, non pas appelé par l'évêque, mais venu de loin, par ordre supérieur , pour échauffer le zèle du clergé de l'Ardèche, pendant que d'autres accomplissaient aiileurs la même iâzhe, en temps électoral, il ne dit mot non plus des élections ? Il s'en fût bien gardé ! Allons, messieurs, vous avez trop conscience du rôle et de l'ardeur de vos prêtres pour croire un mot de tout cela, pour croire ni à leur silence, ni seulement à leur réserve. Ils ont, autant qu'ils l'ont pu, enflammé les passions ; ils ont excité contre nos amis les haines les plus énergiques, les plus farieuses. (Applaudissements à gauche.) Et ce qui fait de nos affirmations, justifiées déjà par tant de choses, une certitude, de la vraisemblance une réalité, c'est cet autre fait démontré, indubitable, qu'un mot d'ordre venu de plus haut que l'évêché de Viviers s'imposait aux prêtres de l'Ardèche comme à ceux de toute la France. Oui, sur toute l'étendue du ptys, on avait provoqué le mouvement dont vous n'avez vu dans l'Ardèche qu'une partie, dont on a profité, sauf à le nier quand le souvenir en deviendrait gênant. Depuis combien de temps se préparait -on ? Qui le dirait au juste ? Mais on était depuis longtemps entré en campagne, et cette campagne, peut être avant que l'Ardèche y prît ouvertement part, les espérances que l'on fondait sur elle, l'ardeur avec laquelle on voulait la soutenir, ® affirmées dans un document auquel Je 00 plais à reconnaître bien haut Je raérite jdgoo complète franchise, — j'ai parlé de laI Iptta adressée le 6 septembre à M. l'amirai Gie, quel-Destouches par le comte de Mun : '11' « La France chrétienne attend mieux qu'une protestation. (Bruit à Û , M. Paul de Cassagnac. Pourquoi n0 sez-vous pas l'encyclique? M. Madier de Montjan. c Elle veut UlI combat sérieux, peut-être décisif. » Vous espériez la victoire le 4 octobre. Pluiieurs membres à droite. Et nous l'au' rons ! M. Madier de Montjau. Je vous gelutig bien le contraire 1 ry c Notre devoir, aj outiez vous, est der conduira en levant le drapeau de la allie contre les ennemis de la religion, de qn q nom qa'ils se couvrent. » 1 M. Paul de Cassagnac-. Quel rappo'*^ a-t il avec l'élection de l'Ardéche ? t nt i M. Madier de Montjan. « .en cooll nous suivre tous ceux qui ont souci de Die de leur âme. » Et un peu plus loin on lisait : d 1 L'Appel aux électeurs cttholiques t&V0 j à cette pensée. » e La France doit vivre, et la Révolu**011 j, tuera. * L'Appel aux électeurs oatholiques dbbl' autre document qui a sa valeur dans ce d particulier parce qu'il était écrit pour to France, avait déjà en effet commencé la de pagne ; ne fallait il pas, puisque, selon S(t' Mun, la France veut vivre et que la R -v dB' tion la tue, être debout, faire la veilléS rAie armes longtemps avant la bataille élect, poar tuer la Révolution? Ainsi pensait i je vers qui glorifiait le 16 septembre la lettrentail notre émineot collègue, et la comma it ainsi : or c Nous n'avons pas besoin d'insister;_ 0#r faire ressortir l'importance de cette lettre; c'est un véritable programme qui va pltlo. J8 que les prochaines élections. Il y fau doit jo!i commencement d'une campagne qui 110 s'arrêter que lorsque les catholiques a obtenu pleine satisfaction à leurs l'~ griefs. » Nous savons ce que sont ces fiordi, la suppression de la dîme. ( xclamatio droite.) • Un membre. Il fallait demander l'inva 1 tion de M. de Mun ! M. Madier de Montjau. Ne ,n. „ Je vous prouverai que cela a été écritk? ii vous par qui ? par l'évêque de Gand, "Vie do Broglie, qui, s'adressant au congrès de Vie blil' au nom de son clergé, demandait le réta bio, sement de la dîme abolie ; et par quelle tons ! (Nouvelles interruptions à droite.) dS M. Le Provost de LaunRy. Ce f0~ vulgaires calomnies que vous voulez peser sur nous par insinuation. ;" M. Paul de Cassagnac. Passez al1 je lugel (Bruit.) Vouloir faire invalider l'®16*^' de l'Ardèche à cause de la guerre del geois, c'est vraiment trop fort 1 M.Madiep de Montj au. a Et encore~<]~ M. Il^rdè^r» suis convaincu, ils s'en 'onj ft*v encore, à l'heure où je parle, et c'est it, qtli en étouffez l'éclat à la tribune ! En vé. >iejjjki ^i8?z*moi vous le dire : ce n'est pas te tes bien 1 très bien ! à gauche.) V blat que l'on poursuit, M. de Mun l'a dit, tV) « 46 tuer la Révolution. M. l'évêque de ** pirt n'est pas pour refuser de prendre ~ea î6 cette noble tâche, dit, en d'autres W (^es * a même chose : que le combat est 'es soutenir les droits de Dieu contre les 1d 0!tg de l'homme, pour soutenir avant 89 to bi 89 et ses suites. Pour cela tout est bon ! h bien ces droits de l'homme proclamés en cette r nos pères, nous en avons la garde et Dien ger e nous la faisons et nous la ferons bi,, rès bien ! très bien ! à gauche.) dis b-n. j,^eilds par là, entre autres choses, que tn^que puissent être les convictions d'un tè e Ou d'un laïque dévoué au catholicisme, le pas faire, parce que nous la Q® laisserons pas faire, parce que nous ~c. sevrons pas, sous prétexte de toléIo~, ::' de respect de la liberté de conscience, Stce %ap qui pourrait nous imposer un recul 9~c, tout ce qui pourrait anéantir ce jtoe dqb pères ont semé et ont fait germer en Q6 61 dans le monde par tant d'efforts et Quo de tant de sang. Nous ne permettrons 44tntq'8 les prétendus droits de Dieu reprenfyiLI* n 8 sur les droits de l'homme et de la cié,6 ile. Nous n'avons pas renvoyé les tétres u droit divin à leur église et envoyé f® rois cL roit divin en exil, pour sacrifier droit î'^aDaain> vT que notre conscience, à nous, f1Hr»po"e de défendre et pour le laisser jj. ux pieds par ses éternels ennemis. quand la campagne avait été ainsi Ntoa par eux, quand elle avait été suiles ,,:dant les quatres années écoulées entre v dernières élections et les dernières, « avait été, dans les derniers jours Suèrent le 4 octobre, menée partout nOUS l'avons vu, était-il possible qu'elle 4% eloduisît pas partout, et dans l'Ardèche eilr8>les résultats qui nous ont été »Sucft i? et ne nous suffit-il pas de cela pour ~Mt la véracité de toutes ces protestations ~Io l~ tes gens que vous n'avez pas le droit Ber de mensonge. )4,10 comte de Lanjuinais. Dont quel. sont des repris de justice. ~~<~M' de Montjau.de félonie, de ! i h» ?» d'accusations calomnieuses ? (Si 1 0 doit être invalidée. W êlection doit être invalidée. M J*clrère a dit tout à l'heure un mot proiNliju* offensant pour tous ceux qui ont d': quelques rares élections au milieu de hU'res. (Vives réclamations à droite.) pJ~ membres à droite. Comptez-les ! r4p l e8 1 'Idier de igontjitu. Ces% moi qui de lIontJau. C'est moi qui v 1 CODlDtez.lell ! M. Le Provost de Launay. Vous n'avez pa. invalidé un seul républicain depuis dix ans. M.Madier de Montjau. Je disque M. Blachère a prononcé tout à l'heure une parole aussi injuste que blessante pour tous ceux à qui elle s'adressait quand il a parlé de * l'odieuse campagne des invalidations. 1 (Oui 1 oui 1 i droite.) M. de Bandry-d'Asson. On aurait dû invalider en bloc tous les républicains, c'eût été plus vite fait!. (Rires et exclamations diverses.) Vous avez tous été nommés grâce à la pression administrative, vous le savez bien. M. le président. Aujourd'hui il n'est plus temps. (On rit.) Il fallait faire cette proposition en temps opportun, monsieur de Baudry d'Asson. M. Madier de lIontjau. Cette parole, je le répète, est profondément injuste. Sûr de ce qui se passe en moi, je ne crains pas d'affirmer que, parmi mes amis il n'en est pas un seul qui voulût infliger contre sa conviction, contre la justice, contre la raison, ce qui serait alors une insulte à un département et un ou. trage à des collègues. Nous pouvons nous tromper, nous ne sommes pas infaillibles, nous. M. Le Provost de Launay. Oh! non! Vous le prouvez tous les jours. M. Madier de Montjau. Mais quand nous invalidons, nous invalidons de bonne foi, selon notre conscience, après avoir examiné les dossiers. (Très bien 1 très bien t à gauche. — Vives protestations à droite) et nous invalidons, pourquoi? M. Gaudin de Villaine. Parce que vous êtes les plus forts 1 M. Madier de Monjean. Vous vous trompez ! parce qu'à cette époque où, comme vous nous le reprochez, nous n'avons plus la foi — l'ancienne s'entend — pendant cette période grave, critique, de transformation, de rénovation politique et sociale que nous traversons, pour échapper aux orages, pour sortir victorieux des tourmentes, une chose nous reste où gît notre salut : la conscience, la raison universelle, et la foi dans cette raison vivante, dans le suffrage universel. (Applaudissements à gauche.) M. Jolibois. La force primes le droit 1 M. Paplnaud. Ce sont les bonapartistes qui parlent ainsi 1 M. Madier de Montjau. Au milieu de nos agitations. (Interruptions à droite.) quand tout notre édifice social, toutes nos espérances, s'appuient là, sur ce terrain solide, le seul sur lequel nous puissions nous mouvoir en sûreté et fonder quelque chose, le laisser changer en sable mouvant par l'altération, la corruption du suffrege universel. A droite. Vous le violez à chaque instant ! M. le comte de Lanjuinais. Respectez-le alors 1 M. Madier de Montjau.R'importe par quel moyen, serait un crime, un crime, entendez-vous 1 Voilà pourquoi nous veillons sur les élections. (Applaudissements à gauche.) Un dernier mot, messieurs. Depuis que le débat contre cette élection est commencé, depuis qu'elle a été accusée, deux faits graves sont survenus. M. Louis Legrand (de Lecelles). Je demande la parole. M. Madier de Montjaa. D'abord le juge ment du tribunal de Tournon; je vous en ai parlé tout à l'heure ; et avant ce jugement la décision prise par M. le ministre des cultes contre un nombre de curés et de desservants de l'Ardèche plus considérable que le nombre de ceux accusés par les protestations. (Interruptions à droite.) Je vous fais remarquer, messieurs, que je n'ai pas dit une seule parole qui ait pu blesser personnellement aucun d'entre vous, (Exclamations à droite.) Oh 1 j'ai pu porter atteinte a vos convictions, j'ai pu dire des choses qui, par cela, même que je les affirmais quand vous les niiez, vous étaient désagréables; mais, je le répète, aucune de mes paroles n'a été intentionnellemeat blessante ou seulement discourtoise. Pourquoi donc ne m'accordez-vous pas le silence dont j'ai besoin pour suivre ma pensée et convaincre ceux de mes collègues qui peuvent être convaincus? Je continue. La majorité de cette Assemblée aura à voir, en se prononçant pour ou contre la validation, si elle veut condamner ou approuver les mesures prises par un ministre dont nous connaissons le libêrali sme, la parfaite loyauté, et qui n'a pas cru pouvoir moins faire, malgré sa modération trop grande peut-être, mais assurément pas exce ssive à cet endroit, que de frapper pour leurs excès plus de trente prêtres du diocèse de Viviers. Entre eux et lui choisissez ! Au i6 Mai. (Exclamations à droite), vous avez voulu lutter, et vous l'avez fait victorieusement, contre le gouvernement des curés; semoeunrdt, 'hui, après tout ce que vous avez vu, auj après tout ce que vons avez vu, après tout ce qui vous a été lu, après les menaces faites partout aux électeurs par le clergé, dressant devant eux le spectre de la damnation éternelle, prétendant n'agir que comme citoyens et employant, chose odieuse, contre la liberté du vote, toutes les armes de son arsenal ecclésiastique, voyez si vous voulez honorer et subir le terrorisme des curés. (Applaudissements à gauche. — Bruit à droite.) M. le baron Paul de Lamberterie. Vous en avez donc bien peur ? M. Madier de MontJau. Messieurs, quand je suis monté tout à l'heure à cette tribune, je venais de combattre pendant les trois jours qui m'ont séparé de vous, comme c'était, quoi qu'on m'en ait dit, mon droit et mon devoir, le bon combat pour ma cause et celle de mes amis, en attendant que je vinsse, comme c'était mon droit et mon devoir encore, la soutenir ici, pendant ces trois jours, j'ai touchéà trois départemements : le Gard, l'Ardèche, la Drôme et, si peu de temps que j'y aie passé, je ne saurais vous dire combien j'y ai recueilli d'imprécations indignées contre l'élection de l'Ardèche, d'ardentes espérances mises en vous. A gauche. C'est bien vrai ! M. Madier de Montjalt.combien de fois j'ai entendu des électeurs prendre l'engagement da lutter, si justice était faite, par tous leurs moyens, de toutes leurs forces, pour justifier l'Ardèche, à la condition d'être protégés, de n'être plus livrés aux prêtres. (Très bien 1 très bien ! à gauche.) Oui, voilà, messieurs, ce qui m'a été dit, ce que j'ai entendu, ce que j'ai promis de vous rapporter, et à la chaleur de la parole de ces bons citoyens, à leur colère, à la manifestation émue de leur espérance en votre justice, j'ai pu sentir où était la vérité, dans les protestations de ceux qui, au mépris des mena. ces les plus redoutables, ont eu le courage de témoigner pour la République et le droit, ou dans les dires de ceux qui, incapables de résister à la même pression, n'ont pas craint de les démentir. Voilà la part des protestataires, et voilà celle des contre-protestataires, elle est selon la vé nté et selon la justice» Laissons maintenant, messieurs, U justice faire son anvre. (ADPlaudiesp,,nent,s prolongés à gauche) M le président. La parole est à M. Legr&'ad (de Lecelles). M. Louis Legrand (de Lecelles). Messieurs, je ne vous demande que quelques instants d%ttention. J'appartiens à la majorité du ou ffeau qui vous propose de valider les élections de l'Ardèche. Je viens ici, après ces longs, pénibles, et j'ose ajouter cruals débats, d'ac cord avec M. le rapporteur, affirmer que notre conviction est restée la même ; si vous voulez examiner le dostier de cette élection, comme on ?a fait dans le bureau, et peser au poids de la justice le pour et le contre, la décision qui s'impose est la validation des élections que vous attaquez aujourd'hui, avec des généralités, avec l'histoire ancienDe, en sortant complètement du débat. (Applaudissements à droite.) La question à débattre, en effet, consiste à savoir si les six élus de l'Ardèche viennent devant vous par la volonté librement exprimée du suffrage universel. Voilà la question l (Nouvelle approbation à droite. ) Eh bien, ils ont eu à lutter contre deux listes, l'une, de républicains plus modérés, et l'autre, de répubhcatns plus ardents; c'est ainsi qu'on peut les désigner. Or, sur ces deux listes, celle qui est aujourd'hui attaquée, a obtenu une majorité de 6.000 voix sur la liste républicaine la plus favorisée. Messieurs, ce sont là des différence» dont il faut savoir tenir compte : elles sont considérables. M. Madier de Montjau, auquel je suc. cède à cette tribune, a obtenu, lui, 2,4u0 voix seulement. (Rires et applaudissements à droite.) M. Maurice Faure. M. Madier de Montjau n'était pas candidat. Il s'est désisté dans une lettre rendue publique. M. Madier de Montjau. Je n'ai jamais été candidat une heure. J'ai protesté contre l'inscription de mon nom sur une liste. J'avais mes raisons pour cela, et j'ai persisté pendant toute la période électorale. Si quelques voix ee sont détachées de la liste qui a eu le plus de voix et qui portait le plus de noms, — car l'autre n'a même jamais été complète, — si quelques pereonnes ont voté pour la liste où était mon nom. (Bruit à droite.) Comment ! je ne pourrais pas dire ce qui s'est passé dans un département en ce qui me concerne! J'ai été nommé par l'orateur, j'ai le droit de répondre. Je n'ai jamais, je le répète, accepté de figurer sur une liste ue candidats dans l'Ardèche. (Très bien! très bien! à gauche. — Brun et interruptions à droite.) M. Louifs L-P grand (de Lecelles). J'ac. cepte le débat tel qu'il résulte du recensement de tous les votes exprimés. A la suite de la liste Biachère, puisqu'on l'appelle ainsi, vient celle de M. Vielfaure, et ensuite une liste qui récolte de 2,600 à 2,400 voix, le chiffre de M. Madier de Montjau. Voilà la vérité. (Réclamations à gauche. — Très bien 1 à droite.) Oh 1 messieurs, qu'on soit candidat malgré soi, qu'on puisse être élu député malgré soi, c'est un phénomène que je ne connaissais pas encore. (Applaudissements à droite. — Bruit à gauche.) M. Bizarelli. On vous a dit que M. Madier de Montjau n'avait pas été candidat, que c'est malgré lui que son nom a figaié sur une liste ; pourquoi insistez-vouw, alors ? M. Madier de Montjau. Encore une fois, je n'ai jamais été candidat. (Bruit.) M. le président. Monsieur Mtdier de Montjau, voire rectification a été entendue : je vous prie 41 ne pas insister. M. Louis Legrand (de Lecelles). Messieurs, la différence énorme qui existe, au point de vue des suffrages obtenus, ept pour nous — et c'est la raison qui nous a dominés — la grande présomption, en matière de vérification de pouvoirs, que le corps électoral a agi dans la n'énitade de sa liberté et de sa souveraineté. (Très bien 1 très bien ! à droite.) Le devoir de ceux qui attaquent une élection, qui viennent s'inscrire en faux contre la décision du suffrage universel, est d'apporter autre chose que des généralités, et des appels à la violence et à la colère. (Applaudissements à droite. — Murmures à gauche.) M. le président. Monsieur Legrand de Lecelles, je ne peux pas vous laisser dire. (Interruptions à droite.). je ne vous laisserai pas dire qu'on a fait des appels à la violence. Vous n'avez probablement pas réfléchi à la portée et au sens de cette parole, et je vous prie de l'expliquer. M. Louis Legrand (de Lecelles). Je l'explique ainsi devant la Chambre tout entière : On a parlé de généralités, on a émis de grandes théories, on a rappelé des souvenirs tanglants de notre histoire ; chacun a compris ce langage oomme il a voulu. C'est là le danger que je signalais tout à l'heure. (Tièd bien ! très bien ! à droite ) M. Paul de Cassagnac. On a parlé des Albigeois I M. Louis Legrand (de Lecelles). Je crois inutile de continuer le débat à ce point de vue. Je reviens au dossier et à la question qui nous occupe, dont on s'est trop écarté, et moi-même aussi, je le reconnais. Voix à droite. Mais pas du tout! M. Legrand (de Lecelles). Quoi qu'il en soit, et en cela nous somme tous d'accord; que la fraude et le dol ne se présument pas et qu'on doit apporter des preuves pour que les juges puissent frapper. Eh bien, dans les circonstances actuelles, pouvez-vous frapper? J'ai suivi avec attention toute la discussion; qu'a-t-on relevé? Ce fait d'un curé qui a été condamné, paraît-il, à cpnt francs d'amen le pour s'être colleté avec un facteur rural. Je déclare qu'an spectacle pareil serait loin de m'impressionner favorablement pour un curé qai s'oublie à ce point, mais quelle influence ce fait peut-il avoir eu sur l'élection dans une commune où il n'y a que ïO électeurs environ ? Aucune ! Laissons donc ces infiniment petits. (Exclamations à gauche. — Approbation à droite.) En matière parlementaire, la jurisprudence est que quand un fait quelconque a pu ae produire, on apprécie si le nombre de voix qui a pu être déplacé est susceptible de changer le résultat du scrutin. Eh bien, ce fait, je l'affirme, n'a pas eu d'influence sur le résultat de l'élection, car il se passait dans une commune où il y a, je le répète, 80 électeurs au plus, et les candidats élus ont obtenu 6,000 voix de supériorité sur la liste la plus favorisée. (Très bien 1 à droite.) Voilà la situation. Le mot d'ordre ! A ce sujet, je rappelle mes contradicteurs à cette nécesssité de la preuve, et je reste, je crois, monsieur le président, dans les termes d'une discussion permise. M. le président. Parfaitement ! M. Legrand (de Lecelles), On a parlé d'un mot a'ordre qui aurait été donné dans le commencement de septembre 1885, six eemaines avant l'élection. Mais, quelle preuve en avez-voos ? Il y a un procès-verbal unique d'un commissaire (le police qui a ouï dire par une personne qu'il ne connaît pas, qu'un prêtre qu'il n? connsistait. pas, a entendu dirs par un prédicateur dont H ignore le no (Rires et applaudissements à droite) qu » * lS été question d'une communication faite aux ecclésiastiques qui étaient veIJ a0sister à la retraite cette année comme les allo nées précédentes. Ce mot d'ordre, comme dit l'éloquent g Madier de Montjau, il faut prouver qa tt* fil an point de départ. et qu'on voulait tuja Révolution 1. (Applaudissements à droRumeurs à gauche.) Il faut bien que je parle comme mon jaoaarable collègue pour ne pis être accusé de c ger le sens de ses paroles. Croyez-le bien, messieurs, il y a dans c élection, un grand péril, au point de vue de ja vérité, de la justice ! Ce péril, c'est la rumeur publique, c:est légende qu'on a faite autour de l'élection l'Ardèche. Quoi qu'on en dise, nous » «ommes préoccupés, messieurs, de la I^r® fantaisie de cette chèvre, imaginaire, blancr a ou rouge, peu importe, qu'on aurait, à 8 commune que l'on ne cannait pas, brûlée un bûcher à la façon du moyen âge 1 Tout cela est inexact. Et, pendant ce teinp disait la légende, le curé qui, soit dit en pas, sant, était mort depuis deux mois, fa sonner la cloche à toute volée. (fIès ni et rires à droite.). Voilà de ces faits qu'il faut ramener à If. vérité. Nous défendons ici les élus du * j frage universel; c'est à ceux qui combat»., leur élection à venir ici les preuves en maIns Je sais bien que les protestations son* t':¡ nues très tard, trente-quatro jours âpre* ql; le scrutin avait parle, M. Biachère le Si ces énormités, si ces propos, attribués a 4U' prêtres avaient pu se trouver dans leur °118 che, il se serait produit des protestatlO re immédiates ; et il n'aurait pas fallu atten5 si longtemps que le principal intéressé *l.( dans son arrondissement seul, écrire et r ger les protestations qui sont au dossier. (tP plaudissements à droite ) Ces protestations, on en a fait justice.J entendu dire dans le bureau que ce candid' malheureux, inutile de rappeler son n° vous le connaissez, recevait religieusement protestations, comme un notaire qui reÇ de un testament; lui qui sortait des ardeUrO -je la lutte, ayant le ressentiment de sa dé, faite 1 On oublie que le notaire, puisqu'on vau,t assimiler le protestataire à un notaire, ne & peine de nullité, instrumenter dans ItiS acte où lui-même ou les siens sont intéressésoi oublie que la loi, soucieuse de la vérité en III i' tière civile, repousse du prétoire ou du tétf0 gnage l'homme qui est parent jusqu'au 4a il trième degré de la partie qui plaide. Es' é. donc besoin de vous rappeler ces principes mentaires de la loi et de la justice? (Très ble 1 très bien 1 à droite.) Et ces protestations qui portent que. li-de signatures seulement, rédigées par ce notai*® circonstance,—le candidat vaincu,—il y a. f tre elles 584 protestations spontanées qo1 annulé ces signatures données plus on 0 légèrement je ne veux pas aller plus lol?tat,. par le maire de Vernon, dont on faisa t ; qui a signé trois fois, une fois pour dire : °jr jg une fois pour dire : non ; et une autre pour dire qu'il ne savait plus. (Rires.) Voilà vos preuves t Il y a encore ce qui a amené l'indïgn*^ de l'honorable M. Madier de Memtjau, -if, crois employer un mot qui n'a rien d'exceS — ia lettre pastorale de l'évêque de V*vl®s, qui est arrivée le 3 ou le 4 octobre. Je ne P* )0 pas de la Semaine religieuse; la liberté n'es tle privilège ae personne, et je crois que ce LIO «t a ® C0ntiuête nous a coûté assez 'de larmes Il 18 tlang dans le passé. (Protestations à gittci, Oui ! oui î Très bien I à droite.) S voulons la liberté pour tout le Pl "ohluurl tnembre. à uauchs. C'est nous qui ng ~ia Legrand (de Lecelles). Vous la voulez, ïemg W. ne pouvez la vouloir pour vous lenls. u~ bien, cette lettre, ramenons-la à ses eUe i ei' termes. Elle a été lue entièrement : elle int j. ^lùioif aux prêtres de se mêler à la lutte (hi"que, et ils ne s'y sont pas mêlés. es Ironiques à gauche.) Il ne suffit pas 9'tt fw £Qer qu'ils s'y sont mêlés, il faut le ^Uver /,' et vous n'avez absolument rien ProQv 4' ce su j et. (Nonl nonl très bien l a CÔté de cela, il y a cette lettre pastorale, Cette pas été lue au prône. qui est venue Pour î. ?.®e> comme les années précédentes, Ce e du Rosaire. Cet *ettre pastorale est purement et simDit raent Un document doctrinal, et vous ad. kottrez qu'il appartient parfaitement à l'évê. lue, t comme aux pasteurs protestants, ^iûs le Cas se présentera, tout comme aux t8. )4 *t.Olmis Guillot (Isère). Tout comme au j au mu phU t 111ORPand (de Lecelles).de défendre rrràa "110 culte dont il a légalement la garde. ~, len! très bien ! à droite.) te. léout. cela est vrai, ce n'est pas autour de 48 eChODS que ces mouvements plus ou koPassiorinés se sont produits, affirmés t. 88 allégations sans preuves. fe8ti°n est donc de savoir si, oui û0 n, il y a des fiefs qui appartiend.id't ¡ telle ou telle catégorie de can^8 (A.pplaudissements répétés à droite), Ok 8t, au contraire, suivant les causes géné4lea apprêciées par le public, chacun peut v&Br Ca?didature et recueillir le" suffrages r qui jae sont pu contents. (Très bien 1 ite.) Be sonl pas contents. (Très bien 1 y o PQ$b. ans quelles conditions la question se t4 s'agit de savoir si nous vivons tous » Sk®1® ïêtHr de suffrage universel respecté ou ~e'~t régime nouveau de bon plaisir. (Nouje a PPiaudistements à droite.) je YOUs demande pardon, messieurs, du )tend 8u. de ma discussion ; je ne devais point « la parole; j'ai fait ce que j'ai pi ; j'ai dans le bureau, avec la plus grande j &tio ce qui s'est produit pour et coatre. "i tiort, ce qui s'est produit pour et contre. 111'1", e conviction que j'exprime le moins ^1 (rtft Je puis; c'est le témoignage de ma Ncien ^6' mais prenez-y garde, messieurs; ilqlle Otnllles dans un pays, où l'opinion pu>toe f 11 toujours par se prononcer en faén VPPrimés! (Bravos et applaudisseIOn b droite. — L'orateur, en retournant à 1110 | reçoit les félicitations de ces collée Ja droite.) h)' ble président. Messieurs, votre prehe,, biieau conclut i la validation des opé'4t. conclut à la validation des ope4e, Riectorales du département de l'Ardè NdH^rché, par voie d'amendement, deI Je annulation de ces opérations. S. cts lUX voix la proposition d'annulaaux voix la proposition d'annula^strois demandes de scrutin public, 1^4 vW!® MM. Yves-Çruyot, Sigismond )f5 i. Ernesi Lefévre, Barodet, Camélilehelin Préveraud, Mathé, Daumas, ^Mu7?cbef°rt, G. Laguerre, H. Maret, Í!ièr; ureyfa8) Beauquier, Bourneville, Pé La 2e, de MM. Maurice-Faure, Camille Raspail, Ferrary. Doportal, Camélinat, Gastellier, Gamélinat, Habbard, Lefebvre, Yves, Gayot, Germain Casse, Bizarelli, Rattier, Cantagrel, Bovier Lapjerre, G. Perrin, Dacoudray. etc.; La 3'. de MM. Cornudet, Bayât, Thiers, Rochet, Guillaumou. Chantagrel, Devade, Crozet-Fourneyron, Papon. Stenackers, Audiffred, Brelay, Michou, Préveraud, Mathé, Lepoutre, etc. Le scrutin est ouvert. (Les votes sont recueillis et MM. les secrétaires en opèrent le dépouillement.) M. le président. Voici le résultat du dépouillement du scrutin : Nombre des votants 503 Majorité absolue. 252 Pour l'adoption. 302 Contre 201 La Chambre des députés a adopté. (Vives protestations à droite.) M. le baron de Mackan. Encore un département qui ne sera pas représenté au Congrès 1 DISCUSSION D'UNE INTERPELLATION RELATIVE AUX SUPPRESSIONS DE TRAITEMENTS PRO NONCÉB3 CONTRE DES MEMBRES DU CLERGÉ M. le président. L'ordre du jour appelle la discussion de l'interpellation de M. de Baudry d'Asson relative aux suppressions de traitements prononcées contre des membres du clergé.
| 39,424 |
2212663_1
|
Caselaw Access Project
|
Open Government
|
Public Domain
| 2,004 |
None
|
None
|
English
|
Spoken
| 219 | 342 |
PER CURIAM.
James T. Robinson seeks to appeal the district court's orders, one accepting the report of and recommendation of a magistrate judge, and the other denying relief on his amended motions filed under 28 U.S.C. § 2255 (2000). An appeal may not be taken from the final order in a § 2255 proceeding unless a circuit justice or judge issues a certificate of appealability. 28 U.S.C. § 2253(c)(1) (2000). A certificate of appealability will not issue absent "a substantial showing of the denial of a constitutional right." 28 U.S.C. § 2253(c)(2) (2000). A prisoner satisfies this standard by demonstrating that reasonable jurists would find that his constitutional claims are debatable and that any dispositive procedural rulings by the district court are also debatable or wrong. Miller-El v. Cockrell, 537 U.S. 322, 336, 123 S.Ct. 1029, 154 L.Ed.2d 931 (2003); Slack v. McDaniel, 529 U.S. 473, 484, 120 S.Ct. 1595, 146 L.Ed.2d 542 (2000); Rose v. Lee, 252 F.3d 676, 683 (4th Cir.2001). We have independently reviewed the record and conclude that Robinson has not made the requisite showing. Accordingly, we deny a certificate of appealability and dismiss the appeal. We dispense with oral argument because the facts and legal contentions are adequately presented in the materials before the court and argument would not aid the decisional process.
DISMISSED.
| 23,647 |
https://github.com/SeanOMik/discordpp/blob/master/docs/search/classes_13.js
|
Github Open Source
|
Open Source
|
MIT
| 2,022 |
discordpp
|
SeanOMik
|
JavaScript
|
Code
| 6 | 83 |
var searchData=
[
['webhook_534',['Webhook',['../classdiscpp_1_1Webhook.html',1,'discpp']]],
['webhooksupdateevent_535',['WebhooksUpdateEvent',['../classdiscpp_1_1WebhooksUpdateEvent.html',1,'discpp']]]
];
| 31,285 |
https://github.com/leereilly/djent/blob/master/src/styles/objects/grid.sass
|
Github Open Source
|
Open Source
|
MIT
| 2,021 |
djent
|
leereilly
|
Sass
|
Code
| 348 | 1,733 |
$responsive : true!default
$mobile-first : true!default
$gutter : $base-spacing-unit
$use-silent-classes : false!default
$push : true!default
$pull : true!default
$use-markup-fix : true!default
$breakpoints: ( 'palm' '(max-width: 400px)', 'lap' '(min-width: 601px) and (max-width: 1023px)', 'alpha' '(max-width: 500px)', 'beta' '(max-width: 640px)', 'gamma' '(max-width: 768px)', 'delta' '(max-width: 840px)', 'epsilon' '(max-width: 980px)', 'portable' '(max-width: 1023px)', 'desk' '(min-width: 1024px)' ) !default
$breakpoint-has-widths: ( 'lap', 'portable', 'epsilon', 'delta', 'gamma', 'beta', 'alpha', 'palm', 'desk' ) !default
$class-type: unquote(".")
@if $use-silent-classes == true
$class-type: unquote("%")
=grid-media-query($media-query)
$breakpoint-found: false
@each $breakpoint in $breakpoints
$name: nth($breakpoint, 1)
$declaration: nth($breakpoint, 2)
@if $media-query == $name and $declaration
$breakpoint-found: true
@media only screen and #{$declaration}
@content
@if $breakpoint-found == false
@warn "Breakpoint '#{$media-query}' does not exist"
=silent-relative
@if $use-silent-classes == true
position: relative
#{$class-type}grid
list-style: none
margin: 0
padding: 0
margin-left: -$gutter
@if $use-markup-fix != true
letter-spacing: -0.31em
@if $use-markup-fix != true
.opera:-o-prefocus,
#{$class-type}grid
word-spacing: -0.43em
#{$class-type}grid__item
display: inline-block
padding-left: $gutter
vertical-align: top
@if $mobile-first == true
width: 100%
box-sizing: border-box
@if $use-markup-fix != true
letter-spacing: normal
word-spacing: normal
#{$class-type}grid--rev
direction: rtl
text-align: left
& > #{$class-type}grid__item
direction: ltr
text-align: left
#{$class-type}grid--full
margin-left: 0
& > #{$class-type}grid__item
padding-left: 0
#{$class-type}grid--right
text-align: right
& > #{$class-type}grid__item
text-align: left
#{$class-type}grid--center
text-align: center
& > #{$class-type}grid__item
text-align: left
#{$class-type}grid--middle
& > #{$class-type}grid__item
vertical-align: middle
#{$class-type}grid--bottom
& > #{$class-type}grid__item
vertical-align: bottom
#{$class-type}grid--narrow
margin-left: -($gutter / 2)
& > #{$class-type}grid__item
padding-left: $gutter / 2
#{$class-type}grid--thin
margin-left: -(1px)
& > #{$class-type}grid__item
padding-left: 1px
#{$class-type}grid--wide
margin-left: -($gutter * 2)
& > #{$class-type}grid__item
padding-left: $gutter * 2
=device-type($namespace: "")
#{$class-type}#{$namespace}w-auto
width: auto
#{$class-type}#{$namespace}one-whole
width: 100%
#{$class-type}#{$namespace}one-half
width: 50%
#{$class-type}#{$namespace}one-third
width: 33.333%
#{$class-type}#{$namespace}two-thirds
width: 66.666%
#{$class-type}#{$namespace}one-quarter
width: 25%
#{$class-type}#{$namespace}three-quarters
width: 75%
#{$class-type}#{$namespace}one-fifth
width: 20%
#{$class-type}#{$namespace}two-fifths
width: 40%
#{$class-type}#{$namespace}three-fifths
width: 60%
#{$class-type}#{$namespace}four-fifths
width: 80%
#{$class-type}#{$namespace}one-sixth
width: 16.666%
#{$class-type}#{$namespace}five-sixths
width: 83.333%
#{$class-type}#{$namespace}one-seventh
width: (100% / 7)
#{$class-type}#{$namespace}one-eighth
width: 12.5%
#{$class-type}#{$namespace}three-eighths
width: 37.5%
#{$class-type}#{$namespace}five-eighths
width: 62.5%
#{$class-type}#{$namespace}seven-eighths
width: 87.5%
#{$class-type}#{$namespace}one-ninth
width: (100% / 9)
#{$class-type}#{$namespace}one-tenth
width: 10%
#{$class-type}#{$namespace}three-tenths
width: 30%
#{$class-type}#{$namespace}seven-tenths
width: 70%
#{$class-type}#{$namespace}nine-tenths
width: 90%
#{$class-type}#{$namespace}one-twelfth
width: 8.333%
#{$class-type}#{$namespace}five-twelfths
width: 41.666%
#{$class-type}#{$namespace}seven-twelfths
width: 58.333%
#{$class-type}#{$namespace}eleven-twelfths
width: 91.666%
#{$class-type}#{$namespace}hide
display: none !important
+device-type
@if $responsive == true
@each $name in $breakpoint-has-widths
+grid-media-query($name)
+device-type('#{$name}--')
| 14,531 |
https://github.com/guaxinim/compass/blob/master/src/main/src/org/compass/core/lucene/engine/store/RAMDirectoryStore.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,021 |
compass
|
guaxinim
|
Java
|
Code
| 336 | 861 |
/*
* Copyright 2004-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.compass.core.lucene.engine.store;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.RAMDirectory;
import org.compass.core.engine.SearchEngineException;
/**
* A directory store implemented using memory. Uses Lucene {@link org.apache.lucene.store.RAMDirectory}.
*
* @author kimchy
*/
public class RAMDirectoryStore extends AbstractDirectoryStore {
public static final String PROTOCOL = "ram://";
private final Map<String, Map<String, RAMDirectory>> dirs = new ConcurrentHashMap<String, Map<String, RAMDirectory>>();
public Directory open(String subContext, String subIndex) throws SearchEngineException {
Map<String, RAMDirectory> subContextDirs = dirs.get(subContext);
if (subContextDirs == null) {
synchronized (dirs) {
subContextDirs = dirs.get(subContext);
if (subContextDirs == null) {
subContextDirs = new ConcurrentHashMap<String, RAMDirectory>();
}
}
}
RAMDirectory dir = subContextDirs.get(subIndex);
if (dir == null) {
synchronized (subContextDirs) {
dir = subContextDirs.get(subIndex);
if (dir == null) {
dir = new RAMDirectory();
}
}
}
return dir;
}
@Override
public void cleanIndex(Directory dir, String subContext, String subIndex) throws SearchEngineException {
deleteIndex(dir, subContext, subIndex);
}
@Override
public void deleteIndex(Directory dir, String subContext, String subIndex) throws SearchEngineException {
Map<String, RAMDirectory> subContextDirs = dirs.get(subContext);
if (subContextDirs != null) {
subContextDirs.remove(subIndex);
}
}
@Override
public String[] listSubIndexes(String subContext) throws SearchEngineException, UnsupportedOperationException {
Map<String, RAMDirectory> subContextDirs = dirs.get(subContext);
if (subContextDirs == null) {
return null;
}
return subContextDirs.keySet().toArray(new String[0]);
}
public CopyFromHolder beforeCopyFrom(String subContext, String subIndex, Directory dir) throws SearchEngineException {
try {
String[] files = dir.list();
for (String file : files) {
dir.deleteFile(file);
}
} catch (IOException e) {
throw new SearchEngineException("Faield to delete ram directory before copy", e);
}
return new CopyFromHolder();
}
}
| 20,070 |
bpt6k9739940r_24
|
French-PD-Books
|
Open Culture
|
Public Domain
| null |
Histoire générale de l'Allemagne. Tome 6
|
None
|
French
|
Spoken
| 6,411 | 9,931 |
par laquelle il déclarait qu'il conservait à la ville tous ses privilèges, qu'il lui accordait le commerce libre dans tous ses Etats. Le treizième de mai de cette année 1312. mourut Thibault, Duc de Lorraine. Frédéric, ou Ferri IV. Son fils, fut son successeur. Frédéric naquit au château de Gondreville le 11 d'avril 1282. Il donna de bonnes preuves de son courage. Il se trouva à la bataille de Frouard, où les Comtes de Bar & de Salm furent faits prisonniers, et il parut avec distinction dans la journée de Denève contre les Comtes de Blamont d'Epinal. Dans ces États et dans les autres Provinces d'Allemagne, on fit la recherche des Templiers, dont l'Ordre fut aboli dans le Concile de Vienne par une bulle de Clément V. On ne les traita pas avec autant de rigueur qu'en France ; on se contenta de les disperser dans les monastères pour y faire pénitence, avec une pension modique prise sur les revenus de l'Ordre. Les Templiers se maintinrent même encore quelque temps dans les Provinces de Trêves, de Luxembourg et de Mayence. Pierre d'Achzpalter, Archevêque de Mayence, ayant pris la résolution de les chasser de son diocèse, tint un Concile des Évêques de la Province pour exécuter à la lettre la bulle du Pape. Hugues, Chevalier du Temple, de la famille des Comtes Sauvages du Rhin, vint à l'assemblée accompagné de vingt de ses confrères ; sa présence étonna les Évêques qui ne s'attendaient ni lui ni sa suite. Les Chevaliers soutinrent qu'ils n'étaient point coupables des abominations, dont on les avait accusés, et que les crimes de quelques particuliers ne devaient pas être imputés à l'Ordre entier. Ils trouvèrent dans le Concile les dispositions les plus favorables ; les Évêques ne purent se résoudre à condamner des gens qui n'avaient été ni cités ni convaincus pour produire leurs défenses, et leur jugement fut renvoyé au Pape auquel ils avaient appelé. Clément fit exécuter sa bulle, qui abolit par provision l'Ordre des Templiers, laissant leurs biens à la disposition du siège. Les terres et les maisons qu'ils possédaient en Lorraine furent confisquées. AN. DE J. C. Mort de Thibault Duc de Lorraine. Benoit XI, de Zarai., p. 314. Recherche des Templiers. Ils font dispersés dans des monastères. Naucler, général, 44. Brouver. t. 1. p. 1S7 aux Hospitaliers de saint Jean de Jérusalem : mais dans les ,autres Provinces les Seigneurs rentrèrent dans les biens des Templiers , en disant que leurs ancêtres les avoient donnes à ces Chevaliers 8c non aux Hospitaliers, & que puisqu'il n'y avoit plus de Templiers, il etoit juste que leurs biens revinssent à leurs anciens maîtres. En Bavière et en Autriche on ne pensa pas à inquiéter le peu de Templiers qu'il pouvait y avoir ; on y était occupé de guerres depuis la mort d'Étienne Duc de Bavière arrivée en 1311. Ce Prince avait laissé deux fils et trois filles ; savoir, Henri, Othon, Béatrix, Élisabeth et Agnès. La tutelle de ces pupilles appartenait à Othon Duc de la basse-Bavière, frère d'Étienne qui avait été élu Roi de Hongrie. Ce Prince mourut la même année qu'Étienne, après avoir déclaré par son testament, que la tutelle et la Régence des États de ses neveux étaient dévolues de droit à Louis de Bavière, qui par la mort d'Othon son frère aîné devenait Duc de la basse-Bavière, et son successeur dans la tutelle des enfants du Duc Étienne. Plusieurs Seigneurs vassaux des jeunes Princes ne voulaient point reconnaître Louis pour Régent. Frédéric Duc d'Autriche profita de leur disposition ; il employa les présents et les promesses pour se faire donner cette qualité, et vint à Landau sur l'Iser, où les États étaient assemblés. Louis de Bavière s'y était rendu également, les droits des prétendants y furent discutés. Frédéric soutenu des Seigneurs de son parti parla avec hauteur, et comme il refusait de se rendre aux raisons de son concurrent, Louis de Bavière dit : "Puissive Frédéric ne veuille avoir aucun égard à la justice de son droit, les armes en décideront." L'assemblée se répartit, et chacun retourna dans ses États pour se préparer à la guerre. Le Landgrave de Thuringe entreprit néanmoins de les réconcilier. Ses ministres allaient et venaient sans cesse d'une Cour à l'autre, pour représenter aux deux Princes les avantages qu'ils trouveraient dans un accommodement, et les malheurs certains qu'ils se precipitaient par leurs divisions. Ces remontrances furent inutiles : leur haine était trop vive, et les motifs. 1313. Leurs biens donnés aux Hofpitalikers de S. Jean, ou repris par les héritiers des fondateurs. Mort d'Etienne Duc de Bavière. Frédéric d'Autriche dispute à Louis de Bavière la tutelle des enfants de la Régence des Etats du Duc Etienne. Adl, efft. ann. Poc. Gent. I.zç. fart. 1. Lamlgr. Thuring. étaient trop intéressés sans. Louis avait le droit de son côté; mais Frédéric qui voyait la baie de Bavière à sa bienveillance, n'en désirait la Régence que pour réunir cette Province à son Domaine : cet objet éteignait en lui tout autre sentiment, & il n'était en aucune manière touché de l'intérêt ni de la condition des mineurs. Le Duc de Bavière qui avait tout sujet d'être irrité était cependant plus traitable que son ennemi sur les conditions de paix. Frédéric faisait naître chaque jour de nouveaux obstacles à l'accommodement. Il craignait qu'on n'exigeât de lui une renonciation entière à la Régence, et les partisans détruisaient tout ce que le ministre Thuringien s'efforçait de lui persuader pour le bien des pupilles, pour son honneur et la propre tranquillité. Tout ce qu'on put obtenir de lui ce fut une trêve qui dura une partie de l'année 1743. Pendant cet intervalle on travailla à la paix ; mais les prétentions du Duc d'Autriche furent si déraisonnables, que le ministre du Landgrave fut contraint de retourner en Thuringe sans avoir rien pu gagner de Frédéric. Ce Prince engagea Léopold son frère à lui envoyer des troupes de Suabe, il fit aussi des levées en Autriche ; mais la distance des lieux ne leur permit pas de se joindre assez promptement pour commencer ensemble la campagne. L'armée de Louis de Bavière vint camper à Södelbach, aux près de Frédéric qui s'était retranché pour envoyer des partis piller la Bavière, d'où ils revenaient chargés de butin. Le dessein du Duc d'Autriche n'était pas d'en venir si-tôt à une action générale, mais de lasser les Bavarois par les irruptions, en attendant la jonction des troupes Autrichiennes. Le Duc de Bavière ayant eu avis que le corps des Autrichiens s'était arrêté à Gamelforf, à cinq lieues de Mopsurg, détacha une partie de son armée pour aller à sa rencontre. Il le joignit et attaqua son camp. Le combat fut très vif et finit par la défaite des Autrichiens, dont la plupart périrent dans la rivière d'Ambre, tant ceux qui entreprirent de traverser à la nage que les autres qui voulurent passer sur un pont de bois, lequel se trouvant chargé rompit sous le poids des hommes et des chevaux. On fit prisonniers quatre cents gentilshommes de la meilleure noblesse d'Autriche. Les simples soldats demandèrent la vie à genoux ; mais Louis les fit massacrer, pour punir sur eux les violences des Suisses, et pour se débarrasser de ces prisonniers dont il ne savait que faire. Les armées de Louis et de Frédéric en marche. Frédéric desaute les Bayarois. L'esarmée de Louis & de Frédéric en marche. Frédéric desaute les Bayarois. Frédéric se vit alors sans ressource, il ne lui restait plus que son corps de troupes venues de Suabe, qui était très-inférieur à l'armée de Bavière : il avait affaire à un vainqueur irrité, qui aurait pu profiter de la conjoncture présente pour s'emparer des Etats de l'ancienne maison d'Autriche, sur lesquels il avait des prétentions. Toutes ces raisons l'obligèrent à demander la paix au Duc de Bavière, qui fit d'abord quelques difficultés de consentir à ce qu'on lui demandait : mais faisant réflexion à la conjoncture de la vacance de l'Empire, auquel il aspirait, & qu'il pourrait manquer en s'opiniâtant à continuer la guerre, il indiqua un Congrès à Salzbourg pour traiter d'un accommodement avec le Duc d'Autriche, Wichard Archevêque de cette ville, & Henri de Carinthie furent choisis pour être les arbitres de la paix. Le Duc d'Autriche renonça à la tutelle des enfants d'Etienne de Bavière, & à la Régence des Etats de ce Prince. Il promit de rendre le butin & les prisonniers qu'il avait faits, à condition que le Duc Louis donnerait la liberté aux quatre cents gentilshommes qu'il avait pris dans la journée de Gamelforf. Ces articles furent signés de part & d'autre, & exécutés de point en point. INTERREGNE A la mort de l'Empereur Henri VII, la division fut si grande parmi les Electeurs qu'ils furent près de quatorze mois sans pouvoir choisir de Roi des Romains. Henri Duc de Carinthie, qui prenait toujours le titre de Roi de Bohême, disputait à Jean de Saxe, le Luxembourg, les qualités de Roi et d'Electeur. Les Ducs de... AN. DE J. C. Frédéric demande la paix, Traité de paix entre Louis de Bavière & Frédéric d'Autriche. AN. de J. c... 1 3 14. Saxe, Jean & Rodolphe, étaient annémente dissemblables sur le même sujet. Le procès du Duc de Carinthie avec Jean de Luxembourg fut plutôt terminé. Le premier n'ayant point reçu l'investiture de Bohème n'en avait jamais été regardé comme Souverain : Jean au contraire avait été reconnu Roi de Bohème, et son élection ayant été confirmée dans une Diète, il avait été investi de ce Royaume par l'Empereur Henri VII. Mais le Duc de Carinthie soutenait qu'on ne pouvait, sans injustice, ôter à son épouse Elisabeth le droit de suffrage ; qu'elle était l'aînée des filles de Wenceslas V. Roi de Bohème, et que par cette raison le suffrage de ce Royaume lui appartenoit. On lui répondit que l'Office d'Electeur ne pouvait être exercé que par des mâles ; qu'on trouvait à la vérité que les femmes n'étaient point exclues de la Couronne de Bohème ; mais qu'une femme pût être Electrice, et que par une exception à la règle elle pût en faire les fonctions, c'était une chose dont on ne voyait pas d'exemples ; que son mari alors pouvait exercer l'Office d'Electeur, lorsqu'il était reconnu Roi par le Corps Germanique, condition qui manquait au Duc de Carinthie, pour n'avoir pas reçu de l'Empereur l'investiture de ce Royaume. Le différend entre les Ducs de Saxe, Jean & Rodolphe, fut plus difficile à terminer : Le nombre des Electeurs n'était pas encore réglé. On avait vu dans les Élections de Guillaume de Hollande & d'Alphonse de Castille deux Princes de la maison de Brandebourg donner leurs suffrages, & deux de celle de Bavière qui avaient accordé leurs voix à Richard Duc de Cornouailles. Quelques Electeurs étaient d'avis qu'on ne permit le droit de suffrage qu'à la branche aînée d'une maison Electorale. On discuta cette affaire sans la décider ; elle ne fut terminée que sous l'Empereur Charles IV, par la célèbre constitution appelée BULLI D'OR, qui porte en termes formels: Que les terres Electores, c'est-à-dire, celles auquelle le droit d'élire l'Empereur, ou les grandes Charges de l'Empire sont attachées, doivent être maintenues indéfiniment et inviolables. HENRI Duc de Saxe prétend à la qualité d'Electeur au préjudice de Jean Roi de Bohême. Actes. Ann. SOCIA Genlis. part. L 1. Gouvernement du Saint Empire c. 4. Wicquefort de l'Élection de l'Empereur. Les Ducs de Saxe, Jean & Rodolphe, se disputent le titre d'Electeur. Chron. Sterne. Pendant ces divisions le Pape publia deux bulles contre la mémoire de Henri : la première, au sujet de la protestation que ce Prince avait faite de n'être engagé à personne par le serment de fidélité. Le Pape déclare à ce Prince que les serments prêtés par Henri durant et après son couronnement à Rome, étaient des serments de fidélité, et doivent être réputés tels. Par la seconde bulle Clément appelle la sentence prononcée par l'Empereur contre Robert, Roi de Naples, attendu que ce dernier n'avait pas été cité canoniquement, et qu'il ne pouvait se présenter devant l'Empereur sans s'exposer à perdre sa liberté. « De plus, ajoute le Pape, le Roi Robert est notre vassal, et son domicile est dans ses États, et non dans l'Empire : il n'est donc point sujet de l'Empereur, et ne peut être accusé de lèse Majesté envers lui. » Ainsi par la supériorité que nous avons sur l'Empire, par la puissance en laquelle nous succédons à l'Empereur pendant la vacance, et par la plénitude du pouvoir que Jésus-Christ nous a donné en la personne de Clément VII, nous déclarons nulle et de nul effet cette sentence, et tout ce qui s'en est ensuivi. En vertu de ce droit que le Pape prétendait avoir de gouverner l'Empire pendant qu'il était vacant, il en fit le Roi Robert Vicaire en Italie, quant au temporel, à condition que ce Prince se démettrait de cette dignité deux mois après que le Roi des Romains qui serait élu aurait été reconnu par le saint Siège. Ce fut la dernière faveur que Clément V. accorda au Roi de Naples. Ce Pape mourut le 20 d'avril 1314, après avoir gouverné l'Église près de neuf ans. Les Cardinaux s'enfermèrent au nombre de vingt-trois dans le Palais Épiscopal de Carpentras pour procéder à l'Élection d'un souverain Pontife ; mais ils ne purent s'accorder, car les Français voulaient un Pape de leur nation et les Italiens qui désiraient retourner à Rome. 1514. Bulles du Pape contre la mémoire de l'Empereur Henri VII. Conflit. Vaflori in Décret, 1. 7. Bull. Clément VII. Raimondi. 13 14. n. t. Le Pape établit sans droit le Roi Robert Vicaire en Italie. Mort du Pape Clément VII. Soient leur brigue en faveur de quelque Prélât d'au-delà des monts. Les Cardinaux avaient reçu de tristes nouvelles d'Italie. Les Gibelins s'étaient emparés de Lucques, & cette ville fut pillée pendant huit jours par les Pisans & les Allemands. Ils surprirent ensuite le trésor de l'Église Romaine que le Cardinal Genuini de Monteforte, avait mis par ordre du Pape, en dépôt dans l'Église de saint Frédigius de Lucques : les maisons des Guelfes furent réduites en cendres, & les Gibelins s'imaginaient avoir droit d'exterminer tous ceux qu'ils regardaient comme leurs ennemis. La vacance du saint Siège & de l'Empire, la guerre que les Rois de Naples & de Sicile se faisaient avec fureur fomentaient tous ces désordres l'Italie se voyait déchirée par les irréconciliables factions des Gibelins & des Guelfes, sans pouvoir espérer de remède à ses maux. L'Allemagne en souffrait d'autres plus funestes dont elle ne pouvait se délivrer. La peste et la famine ravagèrent en même temps la Suisse, l'Alsace et les autres Provinces du Rhin. Guilliman assure qu'en 1313, la peste enleva près de treize mille hommes dans Strasbourg. Bâle, selon un autre auteur, en perdit quatorze mille ; les autres villes à proportion portèrent des marques de ce funeste fléau. Il y eut des villes et des bourgs où il ne resta pas un seul homme. Les riches allaient chercher leur sûreté dans des retraites éloignées, et les pauvres qui demeuraient étaient consommés par la faim ou emportés par la maladie. La famine suivit de près la peste. Les campagnes étant demeurées sans culture, on fut obligé de faire venir des blés de Sicile à Spire, à Mayence, à Cologne. Les Lorrains et les peuples des autres Provinces y accoururent pour acheter des vivres, qui furent insuffisants pour satisfaire tous leurs besoins. La famine augmenta la mortalité, surtout dans Colmar. En 1314, dit un auteur contemporain, on y enterra jusqu'à treize mille six cents personnes. La peste fut précédée et accompagnée d'inondations prodigieuses causées non seulement par les pluies excessives, mais aussi par la rupture des caniveaux. L'Italie dévastée par les guerres et les factions. L'Allemagne dévastée par la peste, la famine, et les autres calamités. Guitmund de Episcopale. Chronique de Vitold. Année 1313. Gesta Balduini. 1. J, vites des montagnes et des sources qui regorgeaient et se répandaient avec impétuosité dans les campagnes. On ressentit aussi en divers endroits des tremblements de terre et des vents orageux qui renversaient les arbres et les maisons : les loups et les autres animaux carnassiers forcés par la faim entraient sans crainte dans les villages et dévoraient ce qu'ils trouvaient. Ce fléau et les autres calamités obligèrent les Princes à s'enfermer dans leurs châteaux ; ce qui fit différer l'élection d'un Roi des Romains, et assoupit pendant quelque temps l'ambition de Frédéric d'Autriche et de Louis de Bavière qui briguaient l'Empire. Les malheurs n'étaient pas encore dissipés que ces deux rivaux recommencèrent leurs brigues. Leopold, Henri, Albert et Othon d'Autriche secondèrent de tout leur crédit Frédéric leur frère ; ils agirent avec tant d'habileté, que Henri de Werneburg Archevêque de Cologne, Rodolphe Comte Palatin, Rodolphe Duc de Saxe, et Waldemar Marquis de Brandebourg se déclarèrent pour Frédéric. Louis de Bavière n'avait encore dans son parti que l'Archevêque de Mayence ; il agit auprès de l'Electeur de Trèves et du Roi de Bohême, mais il vit bien-tôt qu'il n'y avait pas de fonds à faire sur leur parole. Leur indifférence déconcerta ses mesures, et dès lors il ne pensa plus à l'Empire. Frédéric informé des dispositions de Louis employa tout son crédit pour engager ce Prince à lui donner sa voix ; il lui promit une somme considérable qui détermina le Duc de Bavière en faveur du Duc d'Autriche. Celui-ci assuré de cinq voix ne s'occupa plus qu'à gagner les Electeurs de Trèves, de Mayence et de Bohême, et Jean Duc de la basse-Saxe, qui demeurèrent toujours inflexibles à son égard. Le Roi de Bohême n'avait garde de se déclarer pour le Duc d'Autriche qui avait fourni des troupes au Duc de Carinthie pour lui enlever la Couronne de Bohême : cette raison jointe à la crainte qu'il avait de voir augmenter la puissance de la maison d'Autriche l'obligérent à lui refuser son suffrage, et à se joindre à l'Archevêque de Mayence pour lui opposer un rival. Waldemar Marquis de Brandebourg était assez puissant par lui-même pour disputer l'Empire à Frédéric ; mais le Margrave occupé de guerres ou de négociations avec les Princes du nord ne pensait qu'à bien affermir son autorité contre ses voisins. Eric Duc de Schleswig fit avec le Roi de Danemark en 1313. un traité par lequel le Duc cédait au Roi ses prétentions sur la Frise mineure. Il résolution aussi aux vassaux du Roi tous les biens que lui ou son père leur avaient enlevés, et promettait de ne point donner entrée dans ses Etats aux ennemis de la Couronne de Danemark, et d'entretenir à ses dépens cinquante hommes pour le service du Roi. Quelques difficultés étant survenues au sujet de ce traité, le Roi de Danemark donna en 1314. une déclaration, par laquelle il consentait que les différends fussent jugés par des arbitres dans l'espace d'un an, offrait pendant ce temps-là de ne faire aucune hostilité, de conserver religieusement la paix, et d'entretenir l'amitié qui régnait entre lui et le Duc : il promettait au Duc, pourvu que le Duc se comportât à son égard en fidèle vassal, de lui rendre tous les bons offices qu'il pouvait exiger d'un Roi et d'un Prince. Ce différend fut suivi d'un autre que le Roi de Danemark eut indirectement avec les Margraves de Brandebourg : les habitants de Stralsund y avaient donné occasion. Depuis un certain temps ils inquiétaient Witzlas Prince de Rugen. Le Roi de Danemark qui protégeait ce Prince lui envoya une flotte pour l'aider à réduire la ville de Stralsund. Mais Waldemar de Brandebourg & Witzlas Duc de Poméranie ayant pris le parti des habitants de Stralsund, il emporta d'assaut, après quelques jours de negation, la ville de Loitz qui appartenait au Prince de Rugen. On s'attendait à voir la guerre s'enflammer de plus en plus, lorsque quelqu'un des Princes proposa un accommodement : on délibéra sur quelques articles et la paix fut conclue à condition que les habitants de Stralsund renonceraient à l'alliance qu'ils avaient faite avec la maison de Brandebourg ; qu'ils démoliraient les forteresses qu'ils avaient élevées tant sur la côte de l'île de Rugen que dans le continent ; qu'ils reconnaissaient le Duc Witzlas pour leur Prince & pour leur protecteur ; que le Prince de son côté les défendrait contre leurs ennemis, qu'il leur conserverait leurs libertés & leurs privilèges, et que les prisonniers faits de part & d'autre seraient remis en liberté. On craignait pareillement une rupture du côté de l'Estonie. Le Préfet de Réval et le Grand-Maître de l'Ordre Teutonique étaient en différend pour le règlement des frontières; mais le Roi de Danemark prélève les suites funestes que l'on appréhendait, en donnant pouvoir au Préfet et à trois gentilshommes de régler conjointement avec quatre Chevaliers les limites des deux Etats. Il promit solemnément d'accepter tout ce qui serait statué à ce sujet, et confirma la cession que le Roi Waldemar avait fait à l'ordre Teutonique du territoire de Harzland en Livonie. Les Dithmarsens se mirent cette même année sous la protection du Roi de Danemark, et lui promirent fidélité et obéissance, pourvu que ce ne fut pas pour prendre les armes contre l'Archevêque de Brême. Quelques gentilshommes Suédois mécontents des Ducs Eric et Waldemar firent aussi la même chose, et le Roi promit de les défendre contre ceux qui entreprendraient de les inquiéter. Le Roi pensa ensuite à régler les affaires de Poméranie: il racheta des Margraves de Brandebourg, pour cinq mille marcs d'argent, les droits qu'ils avaient sur la forteresse qui avait été élevée dans les guerres précédentes à frais communs vers l'embouchure de la rivière de Warne, enfin il donna le gouvernement de la forteresse de Loitz, avec les dépendances, au Prince de Rügen, de qui il l'avait retirée pour une somme d'argent. A peine ces ordres étaient-ils donnés, que le Prince de Rügen et les habitants de Stralsund recommencèrent à se faire la guerre. Le Prince se plaignait de ce que les habitants voulaient donner trop d'étendue à leurs privilèges; et il demandait qu'ils fussent réduits sur le pied des anciens privilèges. H uitfeld hiJL Dan.t. 3. ad m* 1313. 1314. Les Dithmarses & plusieurs Seigneurs Suédois se mettent fous la protection du Roi de DanemarcK. Dissérend renouvellé entre les habitans de Stral£und & leur Prince Witislas. villes de Wisinar & de Rostock.. Les habitans eadrefscreiitencore à Waldemar de Brandebourg , à qui ils offrirent une somme considérable pour obtenir de lui le recours. dont ils avoient besoin. Celui-ci s'étant joint à Wratislas Duc de Poméranie , se mit à ravager les terres du Princede Rugen situées dans le. continent, & s'empara d'une bonne partie des territoires de 'Tribhé{es y de Grimme & de Loitz ; il n'épargna pas même les frontières du Duché de Meckelbourg qui se trouvoient dans levoisinage. Le. Duc usa de représailles j &: se jetta sur les terres de la. maison de Brandebourg qu'il mit à feu à sàng.. Witi{1as eut encore recours dans cette occasion au Roi de Danemarck, qui dépêcha sur le champ un nommé Jean, Olaus, Seigneur de distin&ion dans le Royaume, pour aller demander au Margrave de Brandebourg la raifon* qui lui avoit fait prendre les armes contre son vassal. Waldemar répondit qu'il n'avoit pas intention de. faire la guerre à Witislas, ni de lui rien enlever ; mais qu'il, vouloit seulement dé fendre.la liberté des habitans de Stralsundqui étoient opprimés , & empêcher qu'on ne donnât atteinte au dernier traité, qui. avoit été confirmé par le Roi. Cette réponse ayant été communiquée à Wittekind, ce Prince écrivit au Roi de Danemark, pour lui offrir de se mettre plus avant dans sa dépendance, de le servir envers & contre tous toutes les fois qu'il en serait requis pourvu qu'il voulût employer ses bons offices pour lui faire avoir la paix; & au cas qu'il ne pût y réussir avant le douzième du mois de mars il demandait que le Roi lui envoyât six cents soldats pour aider à recouvrer les pays qui lui avaient été enlevés. Le Roi accepta les propositions du Prince, & lui promit que le secours qu'il demandait ne lui manquerait pas, si le Margrave de Brandebourg refusait de restituer ce qu'il avait pris. Cependant le Duc de Poméranie & le Margrave de Brandebourg consentirent à une Diète qui fut indiquée à Brodersby pour le deuxième de juin. Le Roi de Danemark, le Prince Wittekind & le Duc de Mecklenbourg furent invités de s'y rendre afin de mettre fin à la guerre; mais cette démarche ne fut d'aucun effet, parce que les Princes ne se trouvèrent pas au rendez-vous. Le Roi de Danemark était alors occupé à terminer ses propres différends avec Bernard de Rensbourg, & à réconcilier ce Prince avec les Dithmarses; il ménagea une trêve qui devait durer jusqu'au sixième de janvier suivant, & prit sous sa protection Bernard qui se rendit vassal de la Couronne de Danemark. Le Comte d'Alcanie & d'Anhalt fit aussi dans le même temps foi & hommage de ses terres au Roi, qui promit de le défendre dans toutes les occasions où un Seigneur est tenu d'accorder la protection à ses vassaux. Il parut dans ce temps-là un manifeste de Władysław Duc de Cracovie, par lequel il déclarait qu'il voulait faire alliance avec le Roi de Danemark, de Suède, & de Norvège. Après ces deux Princes, il nommait les Ducs de Rugia & de Mecklenbourg. Il promettait de les secourir contre les Margraves de Brandebourg lorsqu'il en serait requis; & s'engageait de ne faire la paix que de concert avec lesdits Princes, pourvu qu'ils donnassent leur parole qu'ils ne feraient pas la leur sans sa participation. Tous acceptèrent cette alliance, & les Ducs de Lünebourg entrèrent dans les mêmes engagements, sous la condition cependant qu'on ne pourrait les forcer de prendre les armes contre les Princes de la maison de Brunswick. Le Duc de Slewsic essaya cette année de faire soulever la Jutland méridionale contre le Roi de Danemark. Ce Prince en eut avis, & arriva à temps pour empêcher la révolte. Les Ducs de Suède étant venus à son recours, l'affaire se termina amiablement à Næstved, où le Roi renouvela l'alliance qu'il avait faite avec les Ducs de Suède. Par ce traité, ils promettaient au Roi des secours contre les Margraves de Brandebourg, & renonçaient à toute alliance ou traité contre lui. Eric s'appliqua ensuite à établir un meilleur ordre dans l'administration de la justice. Il fit dresser un Code pour... Le Roi de Danemark occupé à terminer ses propres différends. Le Roi de Danemark reçoit plusieurs Princes sous sa protection. Le Duc de Cracovie fait alliance avec le Roi de Danemark. Le Duc de Slewsic propose un soulèvement contre le Roi de Danemark. régler les affaires féodales dans l'Est de la Hollande ; il augmenta tellement le recueil des lois de la Zelande, qu'elles se trouvèrent composées de six livres au lieu de trois qu'elles contenaient auparavant. Quoique ce Prince donnât son application aux affaires qui regardaient le règlement du dedans de son Royaume, il n'oublia pas les hostilités que les Margraves de Brandebourg avaient faites sur les terres du Prince de Rugen son vassal ; il accorda sa protection à quelques-uns des vassaux du Margrave, qui mécontents de leur Prince, vinrent lui offrir les villes, les châteaux et les forteresses qui leur appartenaient ; il fit alliance avec l'Archevêque de Magdebourg et avec les Princes de Schwerin, de Mecklenbourg et de Holstein, et reçut l'hommage d'Eric de Saxe et des Comtes de Werle qui lui jurèrent fidélité, à condition qu'il les aiderait à défendre leurs terres, et qu'il prendrait leurs personnes et leurs biens sous sa protection. Tous ces changements ne pouvaient se faire sans qu'il survînt quelque difficulté ; aussi quelques-uns des Princes en vinrent-ils aux mains entre eux, principalement le Duc de Mecklenbourg et les Comtes de Werle : mais Eric qui avait intérêt de les voir d'accord, ne négligea rien pour les réconcilier. Cependant l'Archevêque de Mayence, ennemi de Frédéric Duc d'Autriche, différait d'assembler la Diète d'élection. Durant ce délai il détacha du parti de ce Prince les Marquis de Brandebourg et le Duc de Bavière, et fit entrer dans sa faction les Électeurs de Trèves, de Mayence, de Bohême, et Jean Duc de la basse-Saxe. Il gagna le Duc de Bavière en lui proposant l'Empire. Louis eut d'abord quelque scrupule sur la promesse qu'il avait faite de donner sa voix à Frédéric : l'Archevêque le tira d'embarras, sous prétexte qu'il était du bien de l'Empire qu'il ne s'oppose pas à la bonne volonté des Électeurs qui connaissaient le mérite de Louis, et qui ne pouvaient souffrir la fierté et l'ambition de son concurrent. Dès que cette nouvelle se fut répandue dans l'Allemagne, elle commença à exciter des mouvements qui firent. Le Code Danois retouché et augmenté par les soins du Roi Eric. La protection du Roi Eric recherchée par divers Seigneurs. Parti formé pour élever Louis de Bavière à l'Empire, et exclure Frédéric d'Autriche. Struvius per. [eés. 5. appréhender un schisme. L'Archevêque de Mayence crut le prévenir en convoquant la Diète d'élection ; il convint avec les Electeurs de son parti de l'indiquer à Francfort sur le Mein, pour le premier d'octobre. Six d'entre eux, savoir Pierre Archevêque de Mayence, Baudouin de Luxembourg Archevêque de Trêves, Jean Roi de Bohème son neveu, fils de l'Empereur Henri VII, Waldemar Marquis de Brandebourg, Jean Duc de Saxe, & Louis Duc de Bavière se rendirent le jour marqué, au lieu accoutumé, dans le fauxbourg de Francfort. Le Roi de Bohème vint à la Diète escorté de mille cuirassiers ; les autres Electeurs y parurent aussi avec des suites nombreuses, & surtout Louis de Bavière qui était à la tête de quatre mille hommes. Après la Messe du saint Esprit ils voulurent procéder à l'élection ; mais Waldemar de Brandebourg leur ayant remontré qu'il fallait attendre les autres Électeurs qui étaient à Saxenhausen proche de Francfort, ou savoir leur dernière volonté, l'élection fut remise au 20 d'octobre, et ce délai leur fut aussi-tôt notifié par une députation qu'on leur envoya. L'Archevêque de Cologne, le Comte Palatin du Rhin, et l'Ambassadeur de Rodolphe Duc de Saxe ayant alors refusé de se joindre aux six autres, ceux-ci, qui avaient plus de voix qu'il n'en fallait pour faire un Empereur, profitèrent de cette division et s'accordèrent pour élire Roi des Romains Louis Duc de Bavière. Comme il était prêt à son élection, il fut conduit aussi-tôt à l'Église de saint Barthélemy, où il fit le serment ordinaire et selon les cérémonies accoutumées, puis ils chantèrent le Te Deum, et publièrent le décret d'élection. C'est le second Empereur et le cinquième Roi de Germanie du nom de Louis. Cependant les autres Électeurs auxquels se joignit Henri Duc de Carinthie élurent Roi des Romains Frédéric Duc d'Autriche ami et allié de l'Archevêque de Cologne. Son élection et celle de Louis de Bavière sont rapportées dans les chroniques suivantes : Diète d'élection à Francfort. Louis Duc de Bavière élu Roi des Romains. Contra-élection de Frédéric Duc d'Autriche. portées différemment par divers auteurs, dont les uns fournissent qu'à la vérité Louis fut élu par les Archevêques de Mayence et de Trèves, par Jean Roi de Bohème, Waldemar Marquis de Brandebourg et Jean Duc de Saxe; et que Frédéric fut choisi par les suffrages de l'Archevêque de Cologne, du Comte Palatin, de Rodolphe Duc de la Saxe supérieure et du Duc de Carinthie. D'autres disent que les Electeurs étant demeurés chacun à la tête de ses troupes, n'agirent que par l'entremise de leurs Ambassadeurs qu'ils envoyèrent à Francfort : Que ceux de Rodolphe Comte Palatin, d'Othon Duc de Bavière, de l'Archevêque de Cologne et du Duc de Saxe, nommèrent Frédéric ; et les autres, savoir Jean Roi de Bohème, les Electeurs de Trèves et de Mayence et Jean Duc de Saxe, se déclarèrent pour Louis de Bavière. Rodolphe rapporte cette élection d'une autre manière. Il dit que Louis fut élu à Francfort par les Electeurs de Mayence, de Trèves, de Bohème et de Brandebourg ; et Frédéric à Bonn par les Electeurs de Cologne, le Comte Palatin et Rodolphe Duc de Saxe. Quelques-uns ajoutent que Waldemar de Brandebourg avait chargé son Ambassadeur d'opiner en son nom pour Frédéric d'Autriche ; mais que ce ministre s'étant laissé corrompre par le parti contraire, donna sa voix à Louis de Bavière, et qu'il en fut puni par une prison perpétuelle. Cependant la plupart des historiens conviennent que Louis eut le plus grand nombre des suffrages ; ce qui sume pour établir la canonicité de son élection, et anéantir celle de son rival. Comme le saint Siège était alors vacant, les Electeurs écrivirent de concert une lettre adressée au Pape futur pour le prier de couronner en temps et lieu celui qu'ils avaient légitimement élu. Cette lettre, dont le double fut donné au nouvel Empereur, se garde encore aujourd'hui dans les archives du Duc de Bavière. Fin de l'Interrègne HISTOIRE AN. DE J. C. 1314. Struvius. period. 9. sec-t. 5. Rebdorf. ad an, 1314. Theat. hist. J. C. period. 9. c. 5. Hertzpart. t. 1. c. 1. HISTOIRE GÉNÉRALE D'ALLEMAGNE LOUIS V. EMPEREUR [texte_manquant] Ainsi, si l'on considère que, dans le cas où deux Empereurs avaient pu occuper ensemble le trône Germanique, il n'y avait pas alors de Princes qui en fussent plus dignes par leur naissance par leur mérite que Louis de Bavière et Frédéric d'Autriche. Ils étaient tous deux petits-fils du célèbre Rodolphe de Habsbourg, l'un par son fils, l'autre par sa fille, et par conséquent cousins germains. Louis avait pour père Louis le Sévère, Comte Palatin et Duc de la Bavière supérieure, qui avait épousé en troisièmes noces Mathilde fille de l'Empereur Rodolphe, et sœur de l'Emp AN. DE J. C. 1314. Struvius. pe. riod.y.fest. j. père d'Albert père de Frédéric, de laquelle il eut deux fils, Rodolphe & Louis. Il laissa à Rodolphe son fils aîné le Palatinat, & à Louis la Bavière supérieure. Celui-ci était âgé d'environ trente ans, lorsqu'il fut élu Empereur ; il était né en 1184. & n'avait que dix ans lorsque son père mourut. Il fut élevé à la Cour de Vienne en Autriche sous les yeux de sa mère qui le fit instruire avec soin dans l'étude des belles-lettres. Il passait pour le Prince le plus robuste & le plus ingénieux de son temps. Sa taille était haute, sa chevelure blonde, son regard vif & sa marche précipitée. Il était brave, intrépide dans les plus grands dangers, habile pourvoyant à tout sans paraître occupé, constant, heureux dans ses entreprises, égal dans l'une & dans l'autre fortune, extrêmement jaloux des droits de sa Couronne. À ces qualités, qui font le grand Prince, il joignait celles qui font le bon Souverain. Il était affable, populaire, obligeant, & facile à pardonner : mais cette bonté lui attira dans la suite le reproche d'avoir mal administré la justice. Frédéric son competitor était fils aîné de l'Empereur Albert I. & d'Elisabeth Duchesse de Carinthie & Comtesse de Tirol. Sa taille avantageuse, sa bonne mine, & le délicat de son teint lui attirèrent le surnom de Bel qu'il lui demeurât. Il avait aussi plusieurs des bonnes qualités qui conviennent aux grands Princes. Il était brave, officieux, prudent & habile politique. Les Electeurs de son parti le conduisirent à Bonn, où il fut couronné par l'Archevêque de Cologne. Louis de Bavière reçut comme concurrent la Couronne à Aix-la-Chapelle des mains de l'Archevêque de Mayence, & fut placé solennellement sur le trône de Charlemagne. Comme l'Archevêque de Mayence ne pouvait produire aucune preuve du droit qu'il prétendait avoir de sacrer le nouvel Empereur, Baudouin de Trèves en demanda acte aux principaux Seigneurs qui assistèrent à la cérémonie. Il fut réglé que si dans un mois l'Electeur de Mayence ne pouvait produire son droit de sacrer le Roi des Romains, il serait censé n'avoir fait cette cérémonie qu'au nom de l'Archevêque de Trèves. AN. DE J. C. 1314.. Education, & belles qualités de Louis de Bavière. Eloge de Frédéric d'Autriche. Gesta Balthasar. 1. 7. c. 1. Phitusatus in Jud. Bavarii. sub finem. Qualités de Frédéric d'Autriche. Gesta Balthasar. 1. 9. c. 1. Louis de Bavière couronné à Aix-la-Chapelle. Dispute entre les Archevêques de Trèves & de Mayence sur le droit du sacre. D'Aix-la-Chapelle on conduisit Louis de Bavière à Cologne, où il fut reconnu Roi des Romains par les principaux de la ville. Ce Prince, pour donner à Baudouin de Trèves des marques de sa reconnaissance, confirma tous les privilèges que ses prédécesseurs avaient accordés à l'Église de Trèves : il fit même cession de tous les droits de Souveraineté qu'il pouvait avoir sur les terres & sur les personnes de cet Archevêché, en faveur de Baudouin & de ses successeurs. La date de cette concession est du deuxième de septembre 1314. L'Archevêque de Cologne ne put empêcher que le sacre de Louis de Bavière ne se fit à Aix-la-Chapelle, & que ce Prince ne fut reçu à Cologne par la bourgeoisie, parce qu'il était alors lui-même brouillé avec les habitants de l'une & l'autre ville. Le Prélat s'était ligué avec le Comte de Clervaux & quelques autres Seigneurs pour obliger les Coloniens à payer les impôts extraordinaires qu'il s'obstinait à vouloir lever malgré la défense des Diètes de Wurtzbourg & de Spire en 1287. & 1191, qui en avaient condamné l'injustice. Cet article de la paix publique avait été renouvelé sous les Empereurs Adolphe & Henri VII. Les Coloniens appuyés de l'autorité Impériale s'opposèrent toujours aux volontés de leur Prince ; le Prélat eut recours à la force, & après avoir reçu les troupes des Seigneurs ses alliés, il mit de distance en distance sur le Rhin sur les grandes routes, des corps de garde, qui troublèrent la tranquillité du commerce & la sûreté des chemins. La petite ville de Brühl se vit de retraite pour y renfermer le butin que les soldats faisaient sur les marchands. Ceux de Cologne les Seigneurs voisins se plaignirent hautement de l'infraction de la paix, & appelèrent à leur recours les Princes qui s'étaient rendus garants du traité. Baudouin de Trèves, le Roi de Bohême son neveu, Jean Comte de Hainaut, & Guillaume Comte de Hollande fournirent des troupes pour faire le siège de Brühl, & Gérard Comte de Juliers en eut la conduite. Cette ville résista pendant quatre mois, & fut enfin obligée de se rendre à composition. Il fut réglé qu'on remetttrait la place entre les mains de l'Archevêque.
| 32,220 |
https://zh-min-nan.wikipedia.org/wiki/Kiana%20%28Alaska%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Kiana (Alaska)
|
https://zh-min-nan.wikipedia.org/w/index.php?title=Kiana (Alaska)&action=history
|
Min Nan Chinese
|
Spoken
| 16 | 39 |
Kiana sī Bí-kok Alaska chiu Northwest Arctic kūn ê chi̍t ê chng-thâu (city).
Alaska ê chng-thâu
| 42,476 |
https://github.com/zealoussnow/chromium/blob/master/chrome/browser/ui/views/media_router/cast_dialog_sink_button.cc
|
Github Open Source
|
Open Source
|
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
| 2,022 |
chromium
|
zealoussnow
|
C++
|
Code
| 629 | 3,133 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/media_router/cast_dialog_sink_button.h"
#include <memory>
#include <utility>
#include "base/debug/stack_trace.h"
#include "base/strings/utf_string_conversions.h"
#include "build/branding_buildflags.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/media_router/ui_media_sink.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/chrome_typography.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_helper.h"
#include "chrome/grit/generated_resources.h"
#include "components/media_router/common/issue.h"
#include "components/media_router/common/mojom/media_router.mojom.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/base/ui_base_types.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/animation/ink_drop_impl.h"
#include "ui/views/border.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/controls/throbber.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/vector_icons.h"
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
#include "chrome/browser/ui/media_router/internal/vector_icons/vector_icons.h"
#endif
namespace media_router {
namespace {
gfx::ImageSkia CreateSinkIcon(SinkIconType icon_type, bool enabled = true) {
SkColor icon_color = enabled ? gfx::kChromeIconGrey : gfx::kGoogleGrey500;
return gfx::CreateVectorIcon(*CastDialogSinkButton::GetVectorIcon(icon_type),
kPrimaryIconSize, icon_color);
}
gfx::ImageSkia CreateDisabledSinkIcon(SinkIconType icon_type) {
return CreateSinkIcon(icon_type, false);
}
std::unique_ptr<views::ImageView> CreatePrimaryIconView(
const gfx::ImageSkia& image) {
auto icon_view = std::make_unique<views::ImageView>();
icon_view->SetImage(image);
icon_view->SetBorder(views::CreateEmptyBorder(kPrimaryIconBorder));
return icon_view;
}
std::unique_ptr<views::View> CreatePrimaryIconForSink(const UIMediaSink& sink) {
// The stop button has the highest priority, and the issue icon comes second.
if (sink.state == UIMediaSinkState::CONNECTED) {
return CreatePrimaryIconView(gfx::CreateVectorIcon(
kGenericStopIcon, kPrimaryIconSize, gfx::kGoogleBlue500));
} else if (sink.issue) {
auto icon = std::make_unique<views::ImageView>(
ui::ImageModel::FromVectorIcon(::vector_icons::kInfoOutlineIcon,
ui::kColorIcon, kPrimaryIconSize));
icon->SetBorder(views::CreateEmptyBorder(kPrimaryIconBorder));
return icon;
} else if (sink.state == UIMediaSinkState::CONNECTING ||
sink.state == UIMediaSinkState::DISCONNECTING) {
return CreateThrobber();
}
return CreatePrimaryIconView(CreateSinkIcon(sink.icon_type));
}
bool IsIncompatibleDialSink(const UIMediaSink& sink) {
return sink.provider == mojom::MediaRouteProviderId::DIAL &&
sink.cast_modes.empty();
}
std::u16string GetStatusTextForSink(const UIMediaSink& sink) {
if (sink.issue)
return base::UTF8ToUTF16(sink.issue->info().title);
// If the sink is disconnecting, say so instead of using the source info
// stored in |sink.status_text|.
if (sink.state == UIMediaSinkState::DISCONNECTING)
return l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_SINK_DISCONNECTING);
if (!sink.status_text.empty())
return sink.status_text;
switch (sink.state) {
case UIMediaSinkState::AVAILABLE:
return l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_SINK_AVAILABLE);
case UIMediaSinkState::CONNECTING:
return l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_SINK_CONNECTING);
default:
return std::u16string();
}
}
} // namespace
CastDialogSinkButton::CastDialogSinkButton(PressedCallback callback,
const UIMediaSink& sink)
: HoverButton(std::move(callback),
CreatePrimaryIconForSink(sink),
sink.friendly_name,
GetStatusTextForSink(sink),
/** secondary_icon_view */ nullptr),
sink_(sink) {
SetEnabled(sink.state == UIMediaSinkState::AVAILABLE ||
sink.state == UIMediaSinkState::CONNECTED);
}
CastDialogSinkButton::~CastDialogSinkButton() = default;
void CastDialogSinkButton::OverrideStatusText(
const std::u16string& status_text) {
if (subtitle()) {
if (!saved_status_text_)
saved_status_text_ = subtitle()->GetText();
subtitle()->SetText(status_text);
}
}
void CastDialogSinkButton::RestoreStatusText() {
if (saved_status_text_) {
if (subtitle())
subtitle()->SetText(*saved_status_text_);
saved_status_text_.reset();
}
}
bool CastDialogSinkButton::OnMousePressed(const ui::MouseEvent& event) {
if (event.IsRightMouseButton())
return true;
return HoverButton::OnMousePressed(event);
}
void CastDialogSinkButton::OnMouseReleased(const ui::MouseEvent& event) {
if (event.IsRightMouseButton())
return;
HoverButton::OnMouseReleased(event);
}
void CastDialogSinkButton::OnEnabledChanged() {
// Prevent a DCHECK failure seen at https://crbug.com/912687 by not having an
// InkDrop if the button is disabled.
views::InkDrop::Get(this)->SetMode(
GetEnabled() ? views::InkDropHost::InkDropMode::ON
: views::InkDropHost::InkDropMode::OFF);
// If the button has a state other than AVAILABLE (e.g. CONNECTED), there is
// no need to change the status or the icon.
if (sink_.state != UIMediaSinkState::AVAILABLE)
return;
if (GetEnabled()) {
if (saved_status_text_)
RestoreStatusText();
static_cast<views::ImageView*>(icon_view())
->SetImage(CreateSinkIcon(sink_.icon_type));
} else {
if (IsIncompatibleDialSink(sink_)) {
OverrideStatusText(
l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_AVAILABLE_SPECIFIC_SITES));
} else {
OverrideStatusText(
l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_SOURCE_NOT_SUPPORTED));
}
static_cast<views::ImageView*>(icon_view())
->SetImage(CreateDisabledSinkIcon(sink_.icon_type));
}
if (GetWidget())
UpdateTitleTextStyle();
}
void CastDialogSinkButton::UpdateTitleTextStyle() {
SkColor background_color =
GetColorProvider()->GetColor(ui::kColorDialogBackground);
SetTitleTextStyle(
GetEnabled() ? views::style::STYLE_PRIMARY : views::style::STYLE_DISABLED,
background_color);
}
void CastDialogSinkButton::RequestFocus() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
static bool requesting_focus = false;
if (requesting_focus) {
// TODO(jrw): Figure out why this happens.
DLOG(ERROR) << "Recursive call to RequestFocus\n"
<< base::debug::StackTrace();
return;
}
requesting_focus = true;
if (GetEnabled()) {
HoverButton::RequestFocus();
} else {
// The sink button is disabled, but the icon within it may be enabled and
// want focus.
icon_view()->RequestFocus();
}
requesting_focus = false;
}
void CastDialogSinkButton::OnFocus() {
HoverButton::OnFocus();
if (sink_.state == UIMediaSinkState::CONNECTED) {
OverrideStatusText(
l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_STOP_CASTING));
}
}
void CastDialogSinkButton::OnBlur() {
if (sink_.state == UIMediaSinkState::CONNECTED)
RestoreStatusText();
}
void CastDialogSinkButton::OnThemeChanged() {
HoverButton::OnThemeChanged();
UpdateTitleTextStyle();
}
// static
const gfx::VectorIcon* CastDialogSinkButton::GetVectorIcon(
SinkIconType icon_type) {
const gfx::VectorIcon* vector_icon;
switch (icon_type) {
case SinkIconType::CAST_AUDIO_GROUP:
vector_icon = &kSpeakerGroupIcon;
break;
case SinkIconType::CAST_AUDIO:
vector_icon = &kSpeakerIcon;
break;
case SinkIconType::WIRED_DISPLAY:
vector_icon = &kInputIcon;
break;
case SinkIconType::CAST:
case SinkIconType::GENERIC:
default:
vector_icon = &kTvIcon;
break;
}
return vector_icon;
}
// static
const gfx::VectorIcon* CastDialogSinkButton::GetVectorIcon(UIMediaSink sink) {
return sink.issue ? &::vector_icons::kInfoOutlineIcon
: GetVectorIcon(sink.icon_type);
}
BEGIN_METADATA(CastDialogSinkButton, HoverButton)
END_METADATA
} // namespace media_router
| 1,897 |
https://github.com/Diffblue-benchmarks/actframework/blob/master/src/main/java/act/controller/Controller.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
actframework
|
Diffblue-benchmarks
|
Java
|
Code
| 7,296 | 16,518 |
package act.controller;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import act.Act;
import act.app.ActionContext;
import act.conf.AppConfigKey;
import act.controller.meta.HandlerMethodMetaInfo;
import act.data.Versioned;
import act.route.Router;
import act.util.*;
import act.util.JsonUtilConfig.JsonWriter;
import act.view.*;
import com.alibaba.fastjson.JSON;
import org.osgl.$;
import org.osgl.http.H;
import org.osgl.mvc.result.*;
import org.osgl.storage.ISObject;
import org.osgl.util.*;
import org.osgl.util.Output;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.InputStream;
import java.lang.annotation.*;
import java.net.URL;
import java.util.Map;
import javax.inject.Inject;
/**
* Mark a class as Controller, which contains at least one of the following:
* <ul>
* <li>Action handler method</li>
* <li>Any one of Before/After/Exception/Finally interceptor</li>
* </ul>
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface Controller {
/**
* Indicate the context path for all action methods declared
* in this controller.
* <p/>
* <p>Default value: "{@code /}"</p>
*
* @return the controller context path
*/
String value() default "/";
/**
* Specify the port(s) this controller's action method shall be
* routed from.
*
* @return the port name
* @see AppConfigKey#NAMED_PORTS
*/
String[] port() default {};
/**
* Provides utilities for controller action methods to emit rendering results
*/
class Util {
public static final Ok OK = Ok.get();
public static final Created CREATED = Created.INSTANCE;
public static final Result CREATED_JSON = new Result(H.Status.CREATED, "{\"message\": \"Created\"}") {
};
public static final Result CREATED_XML = new Result(H.Status.CREATED, "<?xml version=\"1.0\" ?><message>Created</message>") {
};
public static final Result OK_JSON = new Result(H.Status.OK, "{\"message\": \"Okay\"}") {
};
public static final Result OK_XML = new Result(H.Status.OK, "<?xml version=\"1.0\" ?><message>Okay</message>") {
};
public static final NoContent NO_CONTENT = NoContent.get();
/**
* Returns an {@link Ok} result
*/
public static Result ok() {
H.Format accept = ActionContext.current().accept();
if (H.Format.JSON == accept) {
return OK_JSON;
} else if (H.Format.XML == accept) {
return OK_XML;
}
return OK;
}
/**
* Returns a {@link Created} result
*
* @param resourceGetUrl
* the URL to access the new resource been created
* @return the result as described
*/
public static Created created(String resourceGetUrl) {
return Created.withLocation(resourceGetUrl);
}
/**
* Return a {@link Created} result
*
* @return the result as described
*/
public static Created created() {
return Created.INSTANCE;
}
public static NotModified notModified() {
return NotModified.get();
}
public static NotModified notModified(String etag, Object... args) {
return NotModified.of(etag, args);
}
/**
* Returns a {@link Accepted} result
*
* @param statusMonitorUrl
* the URL to check the request process status
* @return the result as described
*/
public static Result accepted(String statusMonitorUrl) {
return new Accepted(statusMonitorUrl);
}
public static Result notAcceptable() {
return NotAcceptable.get();
}
public static Result notAcceptable(String msg, Object... args) {
return NotAcceptable.of(msg, args);
}
/**
* Returns an {@link NotFound} result
*/
public static Result notFound() {
return ActNotFound.create();
}
/**
* Returns an {@link NotFound} result with custom message
* template and arguments. The final message is rendered with
* the template and arguments using {@link String#format(String, Object...)}
*
* @param msg
* the message template
* @param args
* the message argument
*/
public static Result notFound(String msg, Object... args) {
return ActNotFound.create(msg, args);
}
/**
* Check if the input is `null` then throw out `NotFound` result, otherwise return
* the input back.
*
* @param o
* the input object to be evaluated.
* @param <T>
* the type parameter.
* @return
* the input `o` if it is not `null`.
*/
public static <T> T requireNotNull(T o) {
notFoundIfNull(o);
return o;
}
/**
* Throws out an {@link NotFound} result if the object specified is
* {@code null}
*
* @param o
* the object to be evaluated
*/
public static <T> T notFoundIfNull(T o) {
if (null == o) {
throw ActNotFound.create();
}
return o;
}
/**
* Throws out an {@link NotFound} result with custom message template and
* arguments if the object specified is {@code null}. The final message is
* rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param o
* the object to be evaluated
* @param msg
* the message template
* @param args
* the message argument
*/
public static <T> T notFoundIfNull(T o, String msg, Object... args) {
if (null == o) {
throw ActNotFound.create(msg, args);
}
return o;
}
/**
* Throws out an {@link NotFound} result if the boolean expression specified
* is {@code true}
* {@code null}
*
* @param test
* the boolean expression to be evaluated
*/
public static void notFoundIf(boolean test) {
if (test) {
throw ActNotFound.create();
}
}
/**
* Throws out an {@link NotFound} result with custom message template and
* arguments if the expression specified is {@code true}. The final message is
* rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param test
* the boolean expression
* @param msg
* the message template
* @param args
* the message argument
*/
public static void notFoundIf(boolean test, String msg, Object... args) {
if (test) {
throw ActNotFound.create(msg, args);
}
}
/**
* Throws out an {@link NotFound} result if the boolean expression specified
* is {@code false}
* {@code null}
*
* @param test
* the boolean expression to be evaluated
*/
public static void notFoundIfNot(boolean test) {
notFoundIf(!test);
}
/**
* Throws out an {@link NotFound} result with custom message template and
* arguments if the expression specified is {@code false}. The final message is
* rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param test
* the boolean expression
* @param msg
* the message template
* @param args
* the message argument
*/
public static void notFoundIfNot(boolean test, String msg, Object... args) {
notFoundIf(!test, msg, args);
}
/**
* Returns a {@link BadRequest} instance.
*
* @return a bad request response
*/
public static BadRequest badRequest() {
return ActBadRequest.create();
}
/**
* Returns a {@link BadRequest} instance along with error message.
*
* @param msg
* the message pattern
* @param args
* the message argument
* @return a bad request with error message
*/
public static BadRequest badRequest(String msg, Object... args) {
return ActBadRequest.create(msg, args);
}
/**
* Throws out a {@link BadRequest} if test evaluated to `true`.
*
* @param test
* the test
*/
public static void badRequestIf(boolean test) {
if (test) {
throw ActBadRequest.create();
}
}
/**
* Throws out a {@link BadRequest} with error message if test evaluated to `true`.
*
* @param test
* the test
* @param msg
* the error message pattern
* @param args
* the error message arguments
*/
public static void badRequestIf(boolean test, String msg, Object... args) {
if (test) {
throw ActBadRequest.create(msg, args);
}
}
/**
* Throws out a {@link BadRequest} if test string {@link S#blank(String)}.
*
* @param test
* the string to be checked
*/
public static void badRequestIfBlank(String test) {
if (S.blank(test)) {
throw ActBadRequest.create();
}
}
/**
* Throws out a {@link BadRequest} with error message if test string is blank
*
* @param test
* the string to be checked
* @param msg
* the error message pattern
* @param args
* the error message argument
*/
public static void badRequestIfBlank(String test, String msg, Object... args) {
if (S.blank(test)) {
throw ActBadRequest.create(msg, args);
}
}
/**
* Throws out a {@link BadRequest} if test object is `null`
*
* @param test
* the object to be checked
*/
public static void badRequestIfNull(Object test) {
if (null == test) {
throw ActBadRequest.create();
}
}
/**
* Throws out a {@link BadRequest} with error message if test object is null
*
* @param test
* the object to be checked
* @param msg
* the error message pattern
* @param args
* the error message argument
*/
public static void badRequestIfNull(Object test, String msg, Object... args) {
if (null == test) {
throw ActBadRequest.create(msg, args);
}
}
/**
* Throws out a {@link BadRequest} if test evaluated to `false`.
*
* @param test
* the test
*/
public static void badRequestIfNot(boolean test) {
if (!test) {
throw ActBadRequest.create();
}
}
/**
* Throws out a {@link BadRequest} with error message if test evaluated to `false`.
*
* @param test
* the test
* @param msg
* the error message pattern
* @param args
* the error message arguments
*/
public static void badRequestIfNot(boolean test, String msg, Object... args) {
badRequestIf(!test, msg, args);
}
/**
* Returns a {@link BadRequest} instance with error code specified.
*
* @param code
* the error code
* @return the bad request instance
*/
public static BadRequest badRequest(int code) {
return ActBadRequest.create(code);
}
/**
* Returns a {@link BadRequest} instance with error code and message specified.
*
* @param code
* the error code
* @param msg
* the error message pattern
* @param args
* the error message arguments
* @return the bad request
*/
public static BadRequest badRequest(int code, String msg, Object... args) {
return ActBadRequest.create(code, msg, args);
}
/**
* Throws out a {@link BadRequest} with error code if `test` evaluated to `true`.
*
* @param test
* the test
* @param code
* the error code
*/
public static void badRequestIf(boolean test, int code) {
if (test) {
throw ActBadRequest.create(code);
}
}
/**
* Throws out a {@link BadRequest} with error code and message if `test` evaluated to `true`.
*
* @param test
* the test
* @param msg
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void badRequestIf(boolean test, int code, String msg, Object... args) {
if (test) {
throw ActBadRequest.create(code, msg, args);
}
}
/**
* Throws out a {@link BadRequest} with error code if `test` string {@link S#blank(String) is blank}.
*
* @param test
* the test string
* @param code
* the error code
*/
public static void badRequestIfBlank(String test, int code) {
if (S.blank(test)) {
throw ActBadRequest.create(code);
}
}
/**
* Throws out a {@link BadRequest} with error code and message if `test` string {@link S#blank(String) is blank}.
*
* @param test
* the test string
* @param msg
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void badRequestIfBlank(String test, int code, String msg, Object... args) {
if (S.blank(test)) {
throw ActBadRequest.create(code, msg, args);
}
}
/**
* Throws out a {@link BadRequest} with error code if `test` is `null`.
*
* @param test
* the test object
* @param code
* the error code
*/
public static void badRequestIfNull(Object test, int code) {
if (null == test) {
throw ActBadRequest.create(code);
}
}
/**
* Throws out a {@link BadRequest} with error code and message if `test` is `null`.
*
* @param test
* the test object
* @param msg
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void badRequestIfNull(Object test, int code, String msg, Object... args) {
if (null == test) {
throw ActBadRequest.create(code, msg, args);
}
}
/**
* Throws out a {@link BadRequest} with error code if `test` is `false`.
*
* @param test
* the test object
* @param code
* the error code
*/
public static void badRequestIfNot(boolean test, int code) {
if (!test) {
throw ActBadRequest.create(code);
}
}
/**
* Throws out a {@link BadRequest} with error code and message if `test` is `false`.
*
* @param test
* the test object
* @param msg
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void badRequestIfNot(boolean test, int code, String msg, Object... args) {
badRequestIf(!test, code, msg, args);
}
/**
* Returns a {@link Conflict} instance.
*
* @return a 409 Conflict result
*/
public static Conflict conflict() {
return ActConflict.create();
}
/**
* Returns a {@link Conflict} instance with error message.
*
* @param message
* the error message pattern
* @param args
* the error message arguments
* @return a 409 Conflict result
*/
public static Conflict conflict(String message, Object... args) {
return ActConflict.create(message, args);
}
/**
* Throws out a {@link Conflict} if `test` is `true`.
*
* @param test
* the test
*/
public static void conflictIf(boolean test) {
if (test) {
throw ActConflict.create();
}
}
/**
* Throws out a {@link Conflict} with error message specified if `test` is `true`.
*
* @param test
* the test
* @param message
* the error message pattern
* @param args
* the error message arguments
*/
public static void conflictIf(boolean test, String message, Object... args) {
if (test) {
throw ActConflict.create(message, args);
}
}
/**
* Throws out a {@link Conflict} if `test` is `false`.
*
* @param test
* the test
*/
public static void conflictIfNot(boolean test) {
conflictIf(!test);
}
/**
* Throws out a {@link Conflict} with error message specified if `test` is `false`.
*
* @param test
* the test
* @param message
* the error message pattern
* @param args
* the error message arguments
*/
public static void conflictIfNot(boolean test, String message, Object... args) {
conflictIf(!test, message, args);
}
/**
* Returns a {@link Conflict} instance with error code.
*
* @param code
* the error message code
* @return a 409 Conflict result
*/
public static Conflict conflict(int code) {
return ActConflict.create(code);
}
/**
* Returns a {@link Conflict} instance with error code and message specified.
*
* @param code
* the error message code
* @param message
* the error message pattern
* @param args
* the error message arguments
* @return a 409 Conflict result
*/
public static Conflict conflict(int code, String message, Object... args) {
return ActConflict.create(code, message, args);
}
/**
* Throws out a {@link Conflict} with error code if `test` is `true`.
*
* @param test
* the test
* @param code
* the error code
*/
public static void conflictIf(boolean test, int code) {
if (test) {
throw ActConflict.create(code);
}
}
/**
* Throws out a {@link Conflict} with error code and message if `test` is `true`.
*
* @param test
* the test
* @param message
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void conflictIf(boolean test, int code, String message, Object... args) {
if (test) {
throw ActConflict.create(code, message, args);
}
}
/**
* Throws out a {@link Conflict} with error code if `test` is `false`.
*
* @param test
* the test
* @param code
* the error code
*/
public static void conflictIfNot(boolean test, int code) {
conflictIf(!test, code);
}
/**
* Throws out a {@link Conflict} with error code and message if `test` is `false`.
*
* @param test
* the test
* @param message
* the error message pattern
* @param args
* the error message arguments
* @param code
* the error code
*/
public static void conflictIfNot(boolean test, int code, String message, Object... args) {
conflictIf(!test, code, message, args);
}
/**
* Returns a {@link Unauthorized} instance.
*
* @return a 401 Unauthorized result
*/
public static Unauthorized unauthorized() {
return ActUnauthorized.create();
}
/**
* Returns a {@link Unauthorized} instance with error code specified.
*
* @param errorCode
* the application error code.
* @return a 401 Unauthorized result
*/
public static Unauthorized unauthorized(int errorCode) {
return ActUnauthorized.create(errorCode);
}
/**
* Returns a {@link Unauthorized} instance with error code specified.
*
* @param errorCode
* the application error code.
* @param message
* the application error message.
* @param args
* the message template arguments
* @return a 401 Unauthorized result
*/
public static Unauthorized unauthorized(int errorCode, String message, Object ... args) {
return ActUnauthorized.create(errorCode, S.fmt(message, args));
}
/**
* Returns a {@link Unauthorized} instance with `realm` specified.
*
* @param realm
* the realm of the `Unauthorized` response
* @return a 401 Unauthorized result
*/
public static Unauthorized unauthorized(String realm) {
return ActUnauthorized.create(realm);
}
/**
* Returns a {@link Unauthorized} instance with `realm` and `digest` specified.
*
* @param realm
* the realm of the `Unauthorized` response
* @param digest
* whether apply digest
* @return a 401 Unauthorized result
*/
public static Unauthorized unauthorized(String realm, boolean digest) {
return ActUnauthorized.create(realm, digest);
}
/**
* Throws out an {@link Unauthorized} instance if `test ` is `true`.
*
* @param test
* the test
*/
public static void unauthorizedIf(boolean test) {
if (test) {
throw ActUnauthorized.create();
}
}
/**
* Throws out an {@link Unauthorized} instance if `test ` is `true`.
*
* @param test
* the test
* @param code
* the app specified error code
*/
public static void unauthorizedIf(boolean test, int code) {
if (test) {
throw ActUnauthorized.create(code);
}
}
/**
* Throws out an {@link Unauthorized} instance if `test ` is `true`.
*
* @param test
* the test
* @param code
* the app specified error code
* @param message
* the app specified error message (template)
* @param args
* the error message template arguments
*/
public static void unauthorizedIf(boolean test, int code, String message, Object ... args) {
if (test) {
throw ActUnauthorized.create(code, S.fmt(message, args));
}
}
/**
* Throws out an {@link Unauthorized} instance with `realm` specified if `test ` is `true`.
*
* @param test
* the test
* @param realm
* the realm
*/
public static void unauthorizedIf(boolean test, String realm) {
if (test) {
throw ActUnauthorized.create(realm);
}
}
/**
* Throws out an {@link Unauthorized} instance with `realm` and `digest` specified if `test ` is `true`.
*
* @param test
* the test
* @param realm
* the realm
* @param digest
* whether apply digest
*/
public static void unauthorizedIf(boolean test, String realm, boolean digest) {
if (test) {
throw ActUnauthorized.create(realm, digest);
}
}
/**
* Throws out an {@link Unauthorized} instance if `test ` is `false`.
*
* @param test
* the test
*/
public static void unauthorizedIfNot(boolean test) {
unauthorizedIf(!test);
}
/**
* Throws out an {@link Unauthorized} instance with `realm` specified if `test ` is `false`.
*
* @param test
* the test
* @param realm
* the realm
*/
public static void unauthorizedIfNot(boolean test, String realm) {
unauthorizedIf(!test, realm);
}
/**
* Throws out an {@link Unauthorized} instance with `realm` and `digest` specified if `test ` is `false`.
*
* @param test
* the test
* @param realm
* the realm
* @param digest
* whether apply digest
*/
public static void unauthorizedIfNot(boolean test, String realm, boolean digest) {
unauthorizedIf(!test, realm, digest);
}
/**
* Returns a {@link Forbidden} result
*/
public static Forbidden forbidden() {
return ActForbidden.create();
}
/**
* Returns a {@link Forbidden} result with custom message
* template and arguments. The final message is rendered with
* the template and arguments using {@link String#format(String, Object...)}
*
* @param msg
* the message template
* @param args
* the message argument
*/
public static Forbidden forbidden(String msg, Object... args) {
return ActForbidden.create(msg, args);
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code true}
*
* @param test
* the test condition
*/
public static void forbiddenIf(boolean test) {
if (test) {
throw ActForbidden.create();
}
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code false}
*
* @param test
* the test condition
*/
public static void forbiddenIfNot(boolean test) {
forbiddenIf(!test);
}
/**
* Throws a {@link Forbidden} result if test condition is {@code true}
*
* @param test
* the test condition
* @param msg
* the message format template
* @param args
* the message format arguments
*/
public static void forbiddenIf(boolean test, String msg, Object... args) {
if (test) {
throw ActForbidden.create(msg, args);
}
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code false}
*
* @param test
* the test condition
* @param msg
* the message format template
* @param args
* the message format arguments
*/
public static void forbiddenIfNot(boolean test, String msg, Object... args) {
forbiddenIf(!test, msg, args);
}
/**
* Returns a {@link Forbidden} result
*/
public static Forbidden forbidden(int code) {
return ActForbidden.create(code);
}
/**
* Returns a {@link Forbidden} result with custom message
* template and arguments. The final message is rendered with
* the template and arguments using {@link String#format(String, Object...)}
*
* @param msg
* the message template
* @param args
* the message argument
*/
public static Forbidden forbidden(String msg, int code, Object... args) {
return ActForbidden.create(msg, args);
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code true}
*
* @param test
* the test condition
*/
public static void forbiddenIf(boolean test, int code) {
if (test) {
throw ActForbidden.create(code);
}
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code false}
*
* @param test
* the test condition
*/
public static void forbiddenIfNot(boolean test, int code) {
forbiddenIf(!test, code);
}
/**
* Throws a {@link Forbidden} result if test condition is {@code true}
*
* @param test
* the test condition
* @param msg
* the message format template
* @param args
* the message format arguments
*/
public static void forbiddenIf(boolean test, int code, String msg, Object... args) {
if (test) {
throw ActForbidden.create(code, msg, args);
}
}
/**
* Throws a {@link Forbidden} result if the test condition is {@code false}
*
* @param test
* the test condition
* @param msg
* the message format template
* @param args
* the message format arguments
*/
public static void forbiddenIfNot(boolean test, int code, String msg, Object... args) {
forbiddenIf(!test, code, msg, args);
}
/**
* Implement `RequestDispatcher.forward(String)` semantic. Calling this API is equivalent to
*
* ```java
* ActionContext ctx = ActionContext.current();
* ctx.forward(url, args);
* ```
*
* @param url
* the url template
* @param args
* the url argument
* @see ActionContext#forward(String, Object...)
*/
public static void forward(String url, Object... args) {
ActionContext ctx = ActionContext.current();
ctx.forward(url, args);
}
public static Redirect redirect(String url, Object... args) {
return Redirect.of(redirectUrl(url, args));
}
public static Redirect redirect(String url, Map reverseRoutingArguments) {
return Redirect.of(redirectUrl(url, reverseRoutingArguments));
}
public static void redirectIf(boolean test, String url, Object... args) {
if (test) {
throw redirect(url, args);
}
}
public static void redirectIfNot(boolean test, String url, Object... args) {
redirectIf(!test, url, args);
}
public static void redirectIf(boolean test, String url, Map reverseRoutingArguments) {
if (test) {
throw redirect(url, reverseRoutingArguments);
}
}
public static void redirectIfNot(boolean test, String url, Map reverseRoutingArguments) {
redirectIf(!test, url, reverseRoutingArguments);
}
public static MovedPermanently moved(String url, Object... args) {
return MovedPermanently.of(redirectUrl(url, args));
}
public static MovedPermanently moved(String url, Map reverseRoutingArguments) {
return MovedPermanently.of(redirectUrl(url, reverseRoutingArguments));
}
public static Found found(String url, Object... args) {
return Found.of(redirectUrl(url, args));
}
public static Found found(String url, Map reverseRoutingArguments) {
return Found.of(redirectUrl(url, reverseRoutingArguments));
}
public static void foundIf(boolean test, String url, Object... args) {
if (test) {
throw found(url, args);
}
}
public static void foundIfNot(boolean test, String url, Object... args) {
foundIf(!test, url, args);
}
public static SeeOther seeOther(String url, Object... args) {
return SeeOther.of(redirectUrl(url, args));
}
public static SeeOther seeOther(String url, Map reverseRoutingArguments) {
return SeeOther.of(redirectUrl(url, reverseRoutingArguments));
}
public static void seeOtherIf(boolean test, String url, Object... args) {
if (test) {
throw seeOther(url, args);
}
}
public static void seeOtherIfNot(boolean test, String url, Object... args) {
seeOtherIf(!test, url, args);
}
public static TemporaryRedirect temporaryRedirect(String url, Object... args) {
return TemporaryRedirect.of(redirectUrl(url, args));
}
public static TemporaryRedirect temporaryRedirect(String url, Map reverseRoutingArguments) {
return TemporaryRedirect.of(redirectUrl(url, reverseRoutingArguments));
}
public static PermanentRedirect permanentRedirect(String url, Object... args) {
return PermanentRedirect.of(redirectUrl(url, args));
}
public static PermanentRedirect permanentRedirect(String url, Map reverseRoutingArguments) {
return PermanentRedirect.of(redirectUrl(url, reverseRoutingArguments));
}
private static String redirectUrl(String url, Object... args) {
url = S.fmt(url, args);
if (url.contains(".") || url.contains("(")) {
String inferFullActionPath = Router.inferFullActionPath(url);
if (inferFullActionPath != url) {
url = ActionContext.current().router().reverseRoute(url);
}
} else {
if (!url.startsWith("/")) {
ActionContext context = ActionContext.current();
String urlContext = context.urlContext();
if (S.notBlank(urlContext)) {
url = S.pathConcat(urlContext, '/', url);
}
}
}
return url;
}
private static String redirectUrl(String url, Map reverseRoutingArguments) {
url = Router.inferFullActionPath(url);
url = ActionContext.current().router().reverseRoute(url, reverseRoutingArguments);
return url;
}
/**
* Returns a {@link RenderText} result with specified message template
* and args. The final message is rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
*/
public static RenderText text(String msg, Object... args) {
return RenderText.of(successStatus(), msg, args);
}
/**
* Alias of {@link #text(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderText renderText(String msg, Object... args) {
return text(msg, args);
}
/**
* Returns a {@link RenderText} result with specified message template
* and args. The final message is rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderHtml html(String msg, Object... args) {
return RenderHtml.of(successStatus(), msg, args);
}
/**
* Alias of {@link #html(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderHtml renderHtml(String msg, Object ... args) {
return html(msg, args);
}
/**
* Returns a {@link RenderJSON} result with specified message template
* and args. The final message is rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderJSON json(String msg, Object... args) {
return RenderJSON.of(successStatus(), msg, args);
}
/**
* Alias of {@link #json(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderJSON renderJson(String msg, Object... args) {
return json(msg, args);
}
/**
* Returns a {@link RenderJSON} result with any object. This method will
* call underline JSON serializer to transform the object into a JSON string
*
* @param data
* the data to be rendered as JSON string
* @return the result
*/
public static RenderJSON json(Object data) {
return RenderJSON.of(successStatus(), data);
}
/**
* Alias of {@link #json(Object)}
*
* @param data
* the data to be rendered as JSON string
* @return the result
*/
public static RenderJSON renderJson(Object data) {
return json(data);
}
/**
* Returns a {@link RenderJsonMap} result with any object. This method will
* generate a JSON object out from the {@link ActionContext#renderArgs}.
* The response is always in JSON format and ignores the HTTP `Accept`
* header setting
*
* @param data
* the varargs of Object to be put into the JSON map
* @return the result
*/
public static RenderJsonMap jsonMap(Object... data) {
return RenderJsonMap.get();
}
/**
* Alias of {@link #jsonMap(Object...)}
*
* @param data
* the data to be put into the JSON map
* @return the result
*/
public static RenderJsonMap renderJsonMap(Object... data) {
return jsonMap(data);
}
public static RenderJwt renderJwt() {
return RenderJwt.get();
}
public static RenderJwt jwt() {
return RenderJwt.get();
}
/**
* Returns a {@link RenderXML} result with specified message template
* and args. The final message is rendered with the template and arguments using
* {@link String#format(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderXML xml(String msg, Object... args) {
return RenderXML.of(successStatus(), msg, args);
}
/**
* Alias of {@link #xml(String, Object...)}
*
* @param msg
* the message format template
* @param args
* the message format arguments
* @return the result
*/
public static RenderXML renderXml(String msg, Object... args) {
return xml(msg, args);
}
/**
* Returns a {@link RenderBinary} result with an {@link ISObject} instance. The result will render
* the binary using "inline" content disposition
*
* @param sobj
* the {@link ISObject} instance
* @return the result
*/
public static RenderBinary binary(ISObject sobj) {
return new RenderBinary(sobj.asInputStream(), sobj.getAttribute(ISObject.ATTR_FILE_NAME), sobj.getAttribute(ISObject.ATTR_CONTENT_TYPE), true);
}
/**
* Alias of {@link #binary(ISObject)}
*
* @param sobj
* the {@link ISObject} instance
* @return the result
*/
public static RenderBinary renderBinary(ISObject sobj) {
return binary(sobj);
}
/**
* Returns a {@link RenderBinary} result with an {@link ISObject} instance. The result will render
* the binary using "attachment" content disposition
*
* @param sobj
* the {@link ISObject} instance
*/
public static RenderBinary download(ISObject sobj) {
return new RenderBinary(sobj.asInputStream(), sobj.getAttribute(ISObject.ATTR_FILE_NAME), sobj.getAttribute(ISObject.ATTR_CONTENT_TYPE), false);
}
/**
* Returns a {@link RenderBinary} result with a file. The result will render
* the binary using "inline" content disposition.
*
* @param file
* the file to be rendered
* @return a result
*/
public static RenderBinary binary(File file) {
return new RenderBinary(file);
}
/**
* Alias of {@link #binary(File)}
*
* @param file
* the file to be rendered
* @return a result
*/
public static RenderBinary renderBinary(File file) {
return binary(file);
}
/**
* Returns a {@link RenderBinary} result with a delayed output stream writer.
* The result will render the binary using "inline" content disposition.
*
* @param outputStreamWriter
* the delayed writer
* @return the result
*/
public static RenderBinary binary($.Visitor<Output> outputStreamWriter) {
return new RenderBinary(outputStreamWriter);
}
/**
* Alias of {@link #binary(org.osgl.Lang.Visitor)}
*
* @param outputStreamWriter
* the delayed writer
* @return the result
*/
public static RenderBinary renderBinary($.Visitor<Output> outputStreamWriter) {
return binary(outputStreamWriter);
}
/**
* Returns a {@link RenderBinary} result with byte array.
* The result will render the binary using "inline" content disposition.
*
* @param blob
* the body of byte array
* @return the result
*/
public static RenderBinary binary(byte[] blob) {
return new RenderBinary(blob);
}
/**
* Alias of {@link #binary(byte[])}
*/
public static RenderBinary renderBinary(byte[] blob) {
return binary(blob);
}
/**
* Returns a {@link RenderBinary} result with byte array and an `attachmentName`.
*
* The result will render the binary using "inline" content disposition
* if the `attachmentName` is empty string or "attachment" if the `attachementName`
* is non empty string.
*
* @param blob
* the body of byte array
* @return the result
*/
public static RenderBinary binary(byte[] blob, String attachmentName) {
return new RenderBinary(blob, attachmentName);
}
/**
* Alias of {@link #binary(byte[], String)}
*/
public static RenderBinary renderBinary(byte[] blob, String attachmentName) {
return binary(blob, attachmentName);
}
/**
* Returns a {@link RenderBufferedImage} result with image specified.
*
* The contentType will be set as default "image/png".
*
* @param image
* the buffered image instance.
* @return the result
*/
public static RenderBufferedImage renderImage(BufferedImage image) {
return image(image);
}
/**
* alias of {@link #renderImage(BufferedImage)}.
*/
public static RenderBufferedImage image(BufferedImage image) {
return new RenderBufferedImage(image);
}
/**
* Returns a {@link RenderBufferedImage} result wth image and content type specified.
* @param image
* the image
* @param contentType
* the content type
* @return the result
*/
public static RenderBufferedImage renderImage(BufferedImage image, String contentType) {
return new RenderBufferedImage(image, contentType);
}
/**
* alias of {@link #renderImage(BufferedImage, String)}
*/
public static RenderBufferedImage image(BufferedImage image, String contentType) {
return renderImage(image, contentType);
}
/**
* Returns a {@link RenderBufferedImage} result wth image and format specified.
* @param image
* the image
* @param format
* the format
* @return the result
*/
public static RenderBufferedImage renderImage(BufferedImage image, H.Format format) {
return new RenderBufferedImage(image, format.contentType());
}
/**
* alias of {@link #renderImage(BufferedImage, H.Format)}
*/
public static RenderBufferedImage image(BufferedImage image, H.Format format) {
return renderImage(image, format);
}
/**
* Returns a {@link RenderBinary} result with a URL.
*
* The result will render the binary using "attachment" content disposition.
*
* The name of the attachment is inferred from URL.
*
*
* @param url
* the URL to be rendered
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(URL url) {
return new RenderBinary(IO.inputStream(url), ActionContext.current().attachmentName(url), false);
}
/**
* Returns a {@link RenderBinary} result with a URL. The result will render
* the binary using "attachment" content disposition.
*
* @param url
* the URL to be rendered
* @param attachmentName
* the attachment name
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(URL url, String attachmentName) {
return new RenderBinary(IO.inputStream(url), attachmentName, false);
}
/**
* Returns a {@link RenderBinary} result with a file. The result will render
* the binary using "attachment" content disposition.
*
* The name of the attachment is inferred from file
*
* @param file
* the file to be rendered
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(File file) {
return new RenderBinary(file, ActionContext.current().attachmentName(file), false);
}
/**
* Returns a {@link RenderBinary} result with a file. The result will
* render the binary using "attachment" content disposition, with
* the `attachmentName` as the name of the download attachment.
*
* @param file
* the file to be downloaded
* @param attachmentName
* the attachment file name.
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(File file, String attachmentName) {
return new RenderBinary(file, attachmentName, false);
}
/**
* Returns a {@link RenderBinary} result with an `InputStream`. The result will
* render the binary using "attachment" content disposition, with
* {@link ActionContext#attachmentName()} as the name of the download attachment.
*
* @param inputStream
* the input stream from which byte content will be written to the
* attachment.
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(InputStream inputStream) {
return new RenderBinary(inputStream, ActionContext.current().attachmentName(), false);
}
/**
* Returns a {@link RenderBinary} result with an `InputStream`. The result will
* render the binary using "attachment" content disposition, with
* the `attachmentName` as the name of the download attachment.
*
* @param inputStream
* the input stream from which byte content will be written to the
* attachment.
* @param attachmentName
* the attachment file name.
* @return a `RenderBinary` result as described above
*/
public static RenderBinary download(InputStream inputStream, String attachmentName) {
return new RenderBinary(inputStream, attachmentName, false);
}
/**
* Render barcode for given content
*
* @param content
* the content to generate the barcode
* @return the barcode as a binary result
*/
public static ZXingResult barcode(String content) {
return ZXingResult.barcode(content);
}
/**
* Alias of {@link #barcode(String)}
*
* @param content
* the content to generate the barcode
* @return the barcode as a binary result
*/
public static ZXingResult renderBarcode(String content) {
return barcode(content);
}
/**
* Render QRCode for given content
*
* @param content
* the content to generate the qrcode
* @return the qrcode as a binary result
*/
public static ZXingResult qrcode(String content) {
return ZXingResult.qrcode(content);
}
/**
* Alias of {@link #qrcode(String)}
*
* @param content
* the content to generate the barcode
* @return the barcode as a binary result
*/
public static ZXingResult renderQrcode(String content) {
return qrcode(content);
}
/**
* Returns a {@link RenderTemplate} result with a render arguments map.
* Note the template path should be set via {@link ActionContext#templatePath(String)}
* method
*
* @param args
* the template arguments
* @return a result to render template
*/
public static RenderTemplate template(Map<String, Object> args) {
return RenderTemplate.of(args);
}
/**
* Alias of {@link #template(Map)}
*
* @param args
* the template arguments
* @return a result to render template
*/
public static RenderTemplate renderTemplate(Map<String, Object> args) {
return template(args);
}
/**
* This method is deprecated, please use {@link #template(Object...)} instead
*
* @param args
* template argument list
*/
public static RenderTemplate renderTemplate(Object... args) {
return RenderTemplate.get();
}
/**
* Kind of like {@link #render(Object...)}, the only differences is this method force to render a template
* without regarding to the request format
*
* @param args
* template argument list
*/
public static RenderTemplate template(Object... args) {
return RenderTemplate.get(ActionContext.current().successStatus());
}
/**
* The caller to this magic {@code render} method is subject to byte code enhancement. All
* parameter passed into this method will be put into the application context via
* {@link ActionContext#renderArg(String, Object)} using the variable name found in the
* local variable table. If the first argument is of type String and there is no variable name
* associated with that variable then it will be treated as template path and get set to the
* context via {@link ActionContext#templatePath(String)} method.
* <p>This method returns different render results depends on the request format</p>
* <table>
* <tr>
* <th>Format</th>
* <th>Result type</th>
* </tr>
* <tr>
* <td>{@link org.osgl.http.H.Format#json}</td>
* <td>A JSON string that map the arguments to their own local variable names</td>
* </tr>
* <tr>
* <td>{@link org.osgl.http.H.Format#html} or any other text formats</td>
* <td>{@link RenderTemplate}</td>
* </tr>
* <tr>
* <td>{@link org.osgl.http.H.Format#pdf} or any other binary format</td>
* <td>If first argument is of type File or InputStream, then outbound the
* content as a binary stream, otherwise throw out {@link org.osgl.exception.UnsupportedException}</td>
* </tr>
* </table>
*
* @param args
* any argument that can be put into the returned JSON/XML data or as template arguments
*/
public static RenderAny render(Object... args) {
return RenderAny.get();
}
public static Result inferResult(Result r, ActionContext actionContext) {
return r;
}
public static Result inferPrimitiveResult(
Object v, ActionContext actionContext, boolean requireJSON,
boolean requireXML, boolean isArray, boolean shouldUseToString) {
H.Status status = actionContext.successStatus();
if (requireJSON) {
if (isArray) {
if (byte[].class == v.getClass()) {
// otherwise it get encoded with base64
return RenderJSON.of(JSON.toJSON(v).toString());
}
return RenderJSON.of(status, v);
}
if (v instanceof String) {
String s = (String) v;
if (S.blank(s)) {
return RenderJSON.of(status, "{}");
} else {
s = s.trim();
char c = s.charAt(0);
if ('{' == c || '[' == c) {
return RenderJSON.of(status, s);
}
}
}
return RenderJSON.of(status, C.Map("result", v));
} else if (requireXML) {
return RenderXML.of(status, S.concat("<result>", S.string(v), "</result>"));
} else if (v instanceof byte[]) {
H.Format fmt = actionContext.accept();
if (H.Format.UNKNOWN == fmt) {
actionContext.resp().contentType("application/octet-stream");
}
return new RenderBinary((byte[]) v);
} else {
H.Format fmt = actionContext.accept();
String s = v instanceof String ? (String) v : $$.toString(v, shouldUseToString);
if (fmt.isText()) {
return RenderText.of(status, fmt, s);
}
DirectRender dr = Act.viewManager().loadDirectRender(actionContext);
if (null == dr) {
throw E.unexpected("Cannot apply text result to format: %s", fmt);
}
return new DirectRenderResult(dr, v);
}
}
public static Result inferResult(Map<String, Object> map, ActionContext actionContext) {
if (actionContext.acceptJson()) {
return RenderJSON.of(actionContext.successStatus(), map);
}
return RenderTemplate.of(actionContext.successStatus(), map);
}
/**
* @param array
* @param actionContext
* @return
*/
public static Result inferResult(Object[] array, ActionContext actionContext) {
if (actionContext.acceptJson()) {
return RenderJSON.of(actionContext.successStatus(), array);
}
throw E.tbd("render template with render args in array");
}
/**
* Infer {@link Result} from an {@link InputStream}. If the current context is in
* {@code JSON} format then it will render a {@link RenderJSON JSON} result from the content of the
* input stream. Otherwise, it will render a {@link RenderBinary binary} result from the inputstream
*
* @param is
* the inputstream
* @param actionContext
* @return a Result inferred from the inputstream specified
*/
public static Result inferResult(InputStream is, ActionContext actionContext) {
if (actionContext.acceptJson()) {
return RenderJSON.of(actionContext.successStatus(), IO.readContentAsString(is));
} else {
// name must be a blank string, `null` will trigger
// NPE in SObject lib
return new RenderBinary(is, "", true).status(actionContext.successStatus());
}
}
/**
* Infer {@link Result} from an {@link File}. If the current context is in
* {@code JSON} format then it will render a {@link RenderJSON JSON} result from the content of the
* file. Otherwise, it will render a {@link RenderBinary binary} result from the file specified
*
* @param file
* the file
* @param actionContext
* @return a Result inferred from the file specified
*/
public static Result inferResult(File file, ActionContext actionContext) {
if (null == file || !file.exists()) {
return notFound();
}
if (!file.canRead()) {
return forbidden();
}
if (actionContext.acceptJson()) {
return RenderJSON.of(actionContext.successStatus(), IO.readContentAsString(file));
} else {
return new RenderBinary(file).status(actionContext.successStatus());
}
}
public static Result inferResult(ISObject sobj, ActionContext context) {
if (context.acceptJson()) {
return RenderJSON.of(context.successStatus(), sobj.asString());
} else {
return binary(sobj).status(context.successStatus());
}
}
/**
* Infer a {@link Result} from a {@link Object object} value v:
* <ul>
* <li>If v is {@code null} then null returned</li>
* <li>If v is instance of {@code Result} then it is returned directly</li>
* to infer the {@code Result}</li>
* <li>If v is instance of {@code InputStream} then {@link #inferResult(InputStream, ActionContext)} is used
* to infer the {@code Result}</li>
* <li>If v is instance of {@code File} then {@link #inferResult(File, ActionContext)} is used
* to infer the {@code Result}</li>
* <li>If v is instance of {@code Map} then {@link #inferResult(Map, ActionContext)} is used
* to infer the {@code Result}</li>
* <li>If v is an array of {@code Object} then {@link #inferResult(Object[], ActionContext)} is used
* to infer the {@code Result}</li>
* </ul>
*
* @param meta
* the HandlerMethodMetaInfo
* @param v
* the value to be rendered
* @param context
* the action context
* @param hasTemplate
* a boolean flag indicate if the current handler method has corresponding template
* @return the rendered result
*/
public static Result inferResult(HandlerMethodMetaInfo meta, Object v, ActionContext context, boolean hasTemplate) {
if (v instanceof Result) {
return (Result) v;
}
final H.Request req = context.req();
final H.Status status = context.successStatus();
if (Act.isProd() && v instanceof Versioned && req.method().safe()) {
processEtag(meta, v, context, req);
}
if (hasTemplate) {
if (v instanceof Map) {
return inferToTemplate(((Map) v), context);
}
return inferToTemplate(v, context);
}
H.Format accept = context.accept();
boolean requireJSON = (accept == H.Format.JSON) || (accept == H.Format.UNKNOWN);
boolean requireXML = !requireJSON && accept == H.Format.XML;
if (null == v) {
// the following code breaks before handler without returning result
//return requireJSON ? RenderJSON.of("{}") : requireXML ? RenderXML.of("<result></result>") : null;
return null;
}
Class vCls = v.getClass();
boolean shouldUseToString = $$.shouldUseToString(vCls);
if (accept == H.Format.HTML && !shouldUseToString) {
requireJSON = true;
}
if ($.isSimpleType(vCls) || shouldUseToString) {
boolean isArray = vCls.isArray();
return inferPrimitiveResult(v, context, requireJSON, requireXML, isArray, shouldUseToString);
} else if (v instanceof InputStream) {
return inferResult((InputStream) v, context);
} else if (v instanceof File) {
return inferResult((File) v, context);
} else if (v instanceof ISObject) {
return inferResult((ISObject) v, context);
} else {
if (requireJSON || H.Format.UNKNOWN == context.req().accept()) {
boolean isIterable = v instanceof Iterable;
if (isIterable) {
v = new FastJsonIterable((Iterable) v);
}
// no need to check string case as it is already checked above
if (v instanceof $.Visitor) {
return RenderJSON.of(status, ($.Visitor) v);
} else if (v instanceof $.Func0) {
return RenderJSON.of(status, ($.Func0) v);
}
PropertySpec.MetaInfo propertySpec = PropertySpec.MetaInfo.withCurrent(meta, context);
boolean possibleLargeResponse = context.isLargeResponse();
JsonWriter jsonWriter = new JsonWriter(v, propertySpec, false, context);
return possibleLargeResponse ? RenderJSON.of(status, jsonWriter) : RenderJSON.of(status, jsonWriter.asContentProducer());
} else if (context.acceptXML()) {
PropertySpec.MetaInfo propertySpec = PropertySpec.MetaInfo.withCurrent(meta, context);
return new FilteredRenderXML(status, v, propertySpec, context);
} else if (context.accept() == H.Format.CSV) {
PropertySpec.MetaInfo propertySpec = PropertySpec.MetaInfo.withCurrent(meta, context);
return RenderCSV.of(status, v, propertySpec, context);
} else {
boolean isArray = vCls.isArray();
PropertySpec.MetaInfo.withCurrent(meta, context);
return inferPrimitiveResult(v, context, false, requireXML, isArray, shouldUseToString);
}
}
}
private static void processEtag(HandlerMethodMetaInfo meta, Object v, ActionContext context, H.Request req) {
if (!(v instanceof Versioned)) {
return;
}
String version = ((Versioned) v)._version();
String etagVersion = etag(meta, version);
if (req.etagMatches(etagVersion)) {
throw NotModified.get();
} else {
context.resp().etag(etagVersion);
}
}
private static String etag(HandlerMethodMetaInfo meta, String version) {
return S.newBuffer(version).append(meta.hashCode()).toString();
}
private static Result inferToTemplate(Object v, ActionContext actionContext) {
actionContext.renderArg("result", v);
return RenderTemplate.get();
}
private static Result inferToTemplate(Map map, ActionContext actionContext) {
return RenderTemplate.of(map);
}
private static H.Status successStatus() {
return ActionContext.current().successStatus();
}
}
/**
* Controller class extends this class automatically get `ActionContext` injected
* as a field
*/
class Base extends Util {
@Inject
protected ActionContext context;
}
}
| 24,680 |
cu31924082452560_7
|
US-PD-Books
|
Open Culture
|
Public Domain
| 1,847 |
A history of the Episcopal church in Narragansett, Rhode Island, including a history of other Episcopal churches in the state
|
None
|
English
|
Spoken
| 6,877 | 9,263 |
My Dear Sister: — Agreeable to your desire of the 11th current, I sent you, by my nephew, Nathaniel Seabury, J5500, old tenor, in gold and silver, as the value for your legacy. I have made good the depreciation of the money, and allowed interest to you for the whole time ; though I have been obliged to receive it at the depreciated value, and often had a great part of the money lying by me, for months together, for want of a proper person to let it to — at other times have been at the trouble and expense of law-suits, and in such cases, with us, we are always obliged to levy six months after judg- ment, for the money, without a farthing of interest being allowed — and I cannot help thinking, that, upon the whole, I have not received so much value for the legacy. I hope, in this affair, I have ap- proved myself to your acceptance ; if not, let me know, and if any mistake has been made, it shall be rectified ; although, I believe there is none. I must now repeat to you what you wrote to me in June, 1765 ; I hope the finishing of this affair will not put an end to our correspondence. Your near relation to that person who was the comfort of my life, and the joy of my heart, and that brotherly kindness with which you have treated me, will always make you and yours very near and dear to me. My nephew tells me that you have some thoughts of making a journey to New London some time hence ; when you are so near, I beg you to favor us so much as to make us a visit, as all my children are desirous of waiting on their aunt. I still remain in a state of widowhood, without the least appearance of altering that condition — and indeed, when I reflect that the dear, dead partner who has left me, to receive the reward of a well spent life, has not lefl her equal behind her — how can I attempt a second mar- riage, and how can I, my dear Sister, dwell upon so tender a subject ? Let it be our endeavor to meeet her in yon celestial regions, where bliss and immortality crown the happy subjects. My children all make their most profound compliments of duty to their dear aunt, and love to their cousins. With my sincere love to all my dear nephews and neices, I am, my dear Sister, Your affectionate Brother, James Helme. Mrs. Elizabeth Seab0ey. HISTORY OF THE NAEEAGANSETT CHURCH. 139 " His second wife survived him more than thirty years, and died February 6th, 1799, at the age of eighty-seven. Few better men have lived than Mr. Seabury. He discharged every duty of his sacred function, with the greatest diligence and indefatigable labor ; leaving behind him a character, held in high estimation, and an ex- ample worthy of imitation. " Mr. Seabury lefl four sons, Samuel, Adam, Nathaniel, and David, and three daughters, Mary, Jane, and Elizabeth. " Samuel, the eldest son by the first wife, was born at New Lon- don, in 1728, and graduated at Yale College, in 1748, and went to Scotland for the purpose of studying medicine, but turning his at- tention to theology, he took orders in the Church of England, and, on his return, settled in New Brunswick. In 1756, he removed to the Church of Jamaica, Long Island ; from thence he went to West Chester, in 1766, where he was rector of the church, and kept a classical school, until the British entered New York, in 1776, when being a royalist, he took refuge in that city, where he remained until 1783." In 1784, Mr. Seabury was recommended by the Episcopal clergy of Connecticut, and some in New York, for Bishop of Connecticut. He went to England for the purpose of being consecrated. The Archbishop of Canterbury, doubted his canonical authority to con- secrate, without the authority of an act of Parliament, a Bishop resident out of the British empire ; this, then, being by the treaty of peace, an independent and foreign country. The following, says Hawkins' Missions of the Church, is Mr. Granville Sharp's account of the interview between the Arch-. bishop of Canterbury, and the Bishop elect of Connecticut : — " Dr. Seabury, in coming to England, called on the Archbishop of Canterbury, for consecration, to the great surprise of the Arch- bishop, who was apprehensive it would give great offence to the Ame- ricans, with whom we had just then made peace ; and therefore, his grace (the very worthy and learned Dr. Moore,) wished to be al- lowed some time to consider of the request ; upon which Dr. Seabury very abruptly left the room, saying, ' If your grace will not grant me consecration, I know where to obtain it ; and immediately set off for Aberdeen. The Archbishop communicated to G. Sharp this account of Dr. Seabury 's behaviour; and G. Sharp, in return. 140 HISTORY OF THE KAREAGANSETT CHURCH. informed his grace, that a General Convention was actually ap. pointed in America, for the election of Bishops. On hearing this, the Ardhbishop gave G. Sharp authority to assure the Americaiis, that if they elected unexceptionable persons and transmitted proper certificates of their morals and conduct, and of their suitable abili- ties for so important a charge, he would do every thing in his power to promote their good intentions.' " It was certainly only reasonable that the Archbishop should take time to deliberate and to consult with his suffragans, on a mat- ter of such importance as the consecration of a Bishop for an inde- pendant pountry. Without, indeed, the consent of the crown, he could not legally consecr3,te ; and besides, he might have had scruples about the propriety of doing so, partly from the circumstance of the Bishop elect not being the choice of the whole church, and partly from an apprehension of giving umbrage to a power with whom a treaty of peace^had but lately been signed. Oii the other hand it was natural that Seabury, an hereditary missionary, who had lived through years and years of disappointed hope, and had seen the church languish for want of a head, should be impatient of further delay, and that fearful of legal obstructions, he should, even though it were somewhat precipitately, address himself to Bishops who were unfettered by state connection, and of whose sympathies he was well assured. Nor should it be forgotten, that he was strongly advised to adopt this course by one whose name, station and learning gave weight to, his opinion. Dr. George Berkeley, pre- benda,ry of Canterbury', who inherited all his father's zeal for the Colonial Church, had, for some time previously, been in correspon- dence with Bishop Skinner, of Aberdeen, on the subject of transmitting to America the gift of Episcopacy from the suffering Church of Scotland. **** " From Dr. Seabury's own account, it would appear that he did not even apply to the Scotish Bishops until he had ascertained that the government would not permit a Bishop to be consecrated without the formal request, or at least, consent of Congress, which, he added, 'there is no chance of obtaining, and which the clergy of Connecti- cut would not apply for, were the chance ever so good.' At length, every obstacle having been removed, Dr. " In a letter to his brother, Mr. Sharp thus expresses his gratifi- cation at the prospect of a successful issue of the labors of himself and others in this great cause. He says, January lOth^ 1786, ' the Church of England is likely to take the lead, and to be gloriously established in America.' And a week later the following entry oc- curs in his journal: — 'January 13th, 1786; informed by Mr. Adams, American ambassador, that the Convention of the Episcopal Church of America (which included Carolina, the Jerseys, and Maryland, as well as Virginia, Pennsylvania, and New York,) have written a letter to the two Archbishops, requesting them to conse- crate a person whom they should send ; that the letter was inclosed to him, and delivered with his own hand.' " The next morning he waited upon the Archbishop of Canterbury, 142 HISTORY OF THE NAREAGANSETT CHITRCH. who, he says, ' told me that theTequisition is a very proper one, and expressed in vefy respectful terms ; and assured me that he is a very sincere friend to what is proposed, and will promote it to the utmost of his power ; provided they send persons duly quali- fied.' "When all seemed thus .prepared, soma very formidable diffi- culties were suggested, respecting the orthodoxy of the persons to be elected, and the alterations which had been made in the Book of Common Prayer. As long as any uncertainty remained on these points, the greatest caution was necessary, and the Archbishop, therefore, demanded satisfactory proof that the clergymen to be presented for consecration, were in doctrine uncorrupt. In an- swer to the address of the Convention, the Archbishop thus expres- sed the unanimous opinion of the English Bishops. , ' While we are anxious to give every proof, of not only our brotherly affection, but of our facility in forwarding your wishes, we cannot but be ex- tremely cautious, lest we should be the instruments of establishing an ecclesiastical system, which will be called a branch of the Church of England, btit afterwards may possibly appear to have departed from it essentially, either in doctrine or in disci- pline.' " The church at large, is under the greatest obligations to the Bishops, for the faithful execution of their trust at this critical time. Their christian firmness, and a little wise delay, gave the Conven- tion an opportunity of withdrawing the most objectionable altera- tions in their Prayer Book, which was mainly constructed according to the revision of Archbishop Tillotson and a committee of Divines, in 1689. The preface states that, by an examination of the altered form, ' it will appear that this, church is far from intending to depart from the Church of England, in any essential point of doc- trine, discipline, or worship ; or further than local circumstances require, or to deviate in any thing essential from the thirty-nine ar- , tides.' " On the 17th July, 1786, Mr. Sharp waited on the Archbishop of Canterbury, with a copy of. the New American Prayer Book ; and a few days later, July 27th, 1786, he writes to his brother as fol- lows : — The Archbishop very obligingly read over to me the letters which he and the Archbishop of York wrote to the American Con- HISTOKY OF THE NAREAGANSETT CHTTECH. 143 vention, and the forms of the certificates and testimonials which they proposed as being satisfactory. The letter is exceedingly well drawn up, with all the solemnity and true Christian propriety that you could possibly wish on the occassion. " This very delicate and protracted, but important negociation, was now brought to a successful issue. The Rev. Wm. White, and the Rev. Samuel Provoost, who had been duly elected to the sees of Pennsylvania and New York, arrived in London at the end of November, 1786, bearing testimonials signed by the Conventions of their respective states. They were at once introduced to the Arch- bishop of Canterbury, by Mr. Granville Sharp, and formally pre- sented to his grace a few days afterwards, by Mr. Adams, the Ame- rican minister. At length, on the 4th February, 1787, [an act of Parliament having been passed for the purpose,] they were conse- crated in the Chapel of Lambeth Palace, by the Archbishop of Can- terbury, assisted by the Archbishop of York, and Bishops of Bath and Wells, and Peterborough. " The two Bishops did not linger in England, but embarked in a few days after their consecration, and arrived in New York on the 7th of April, — Easter Day, — a happy omen as it was considered, for the reviving church of that country, (soon after Bishop Madi- son was consecrated in London.) Thus at last, after nearly two centuries of struggle, the church was perfected in America. At the Episcopal Convention, in Philadelphia, in 1786, the va- lidity of the orders conferred on Bishop Seabury by the Scots Bishops, was questioned, which created some warmth, and means were immediately taken to obtain valid consecrations, as has been above stated, and the threatened difficulties were averted. — Bishop Seabury's consecration was afterwards admitted to be canon- ical. " Bishop Seabury," continues Thompson, " was the first Ameri- can citizen who attained to that title. Ou his return to this coun- try, he settled in his father's parish, at New London ; presiding, of course, over the diocese of Connecticut, and, in 1790, he was elected Bishop of Rhode Island, the clerical functions of which sacred offices he continued to exercise until his death, February 25th, 1796, aged sixty-eight. The following is inscribed on his tomb-stone, at New London : 144 HISTORY OE THE NAEHA&ANSETT CHTJECH. HEKE LIES THE BODY OF SAMUEL SEABURY, D. D., BISHOP OF CONNECTICUT AND EHODE ISLAND, WHO DEPARTED THIS TEANSITOEY SCENE, FEBEUAEY 25th, 1796, IN THE SIXTY-EIGHTH OF HIS AGE, AND THE ELEVENTH OF HIS EPISCOPAL CONSECEATION. INGENIOUS WITHOUT TEIDE, LEARNED WITHOUT PEDANTRY, GOOD WITHOUT SEVERITY. HE WAS DULY QUALIFIED TO DISCHARGE THE DUTIES OF THE CHRISTIAN AND THE BISHOP. IN THE PULPIT HE ENFORCED EELIGION } IN HIS CONDUCT HE EXEMPLIFIED IT. THE POOR HE ASSISTED WITH HIS CHARITY ; THE IGNORANT HE BLESSED WITH HIS INSTRUCTION. THE FRIEND OF MEN, HE EVER DESIGNED THEM GOOD J THE ENEMY OF VICE, HE EVER OPPOSED IT. CHRISTIAN ! DOST' THOU ASPIRE TO HAPPINESS ? SEABURY HAS SHOWN THE WAY THAT LEADS TO IT. " Charles Seabury, the youngest son of the Bishop, was born in West Chester, in May, 1770, and succeeded his father in the church, at New London. In 1796, he preached a while at Jamaica. His first wife was Anne, the daughter of Roswell Saltonstall, of New London, by whom he had issue. His son, Samuel Seabury, D. D., is the present rector of the church of the Annunciation, in the city of New York, and editor of the Churchman, a religious news- paper." "Bishop Seabury died in 1796. His death was a heavy loss to his infant communion ; yet he had lived long enough to leave a marked impress of his character upon its institutions. His influence was most important whilst the foundations of the ecclesiastical fabric were being laid. For he was a clear-sighted man, of a bold spirit, and better acquainted than any of his coadjutors with those guiding principles which were then especially required. His own bias, in- deed, was to extremes in the very opposite direction from that to which their inclination led them. Trained amidst the New England sects, he had early learned to value the distinctive features of his HISTORY OF THE NAEEAGANSETT CHTTRCH. 145 own communion ; and receiving the consecration from the Scotch Bishops, the affections of his heart opened freely towards them, and drew the whole bent of his mind towards their forms and practices. Had it been left to him alone to form the temper and mould the insti- tutions of the western church, there would have been little hope of its ever embracing the whole of the jealous population of that wide republic. But his views were a wholesome check upon those with whom he had to act. Of these, Bishop Madison had been bred a lawyer in the worst days of Virginia laxity. He was an elegant scholar, a good president of a college, and a mild and courteous gentleman ; but he had none of the Christian learning and little of the untiring energy in action which his difficult position rendered needful. Bishop White, mild, meek, and conciliatory, inclined al- ways to those councils which bore most faintly the stamp of his own communion, and fulfilling, through these qualities, a most important part in the common work, was indisposed by character and temper from taking resolutely the position which the times required. From that which he was sure was right, nothing indeed could move him ; but he was naturally over-tolerant of all opinions. " These very qualities made him a most useful coadjutor to the Bishop of Connecticut. For, as it was his great endeavor to secure unanimity of action, he was ready to take part in many things to which he was himself indifferent, when he saw his brother's earnest- ness concerning them. The same easy temper as to things he judged indifferent, which would have led him, for the sake of peace, to con- cede to the most opposite objections what ought not to be yielded, now made him take the stricter side in matters which he saw would not be given up by Bishop Seabury. On this principle he voted for reinserting in the liturgy the Athanasian creed, whilst he scrupled not to say that he would never use it ; and agreed to place in the communion office the prayers of invocation and oblation, though he himself had never regretted their omission." — Archdeacon Wilher- force. "August 15th, 1734. Cecelia Mumford, grand daughter of the Rev. James Honeyman, of Rhode Island, an infant and daughter of William Mumford, of 18a 146 HISTORY OF THE NAERAGANSETT CHtTECH. South Kingstown, was baptised by Mr. McSparran, of Narragansett ; the sureties were said Mr. McSparran, Mrs. Honeyman, and Mrs. Wickham." "July 10th, 1735. Mr. McSparran baptised William Mumford, a child, son of William Mumford, shopkeeper in South Kingtown. The sureties were the grand father, the Rev. Mr. James Honeyman, and the grand mother, Mrs. Elizabeth Honeyman, and the uncle of the child, Mr. Francis Honeyman." In 1704, the Society for the Propagation of the Gospel in Foreign Parts, at the solicitation of the wardens, appointed the Rev. James Honeyman their missionary at Trinity Church, Newport. Mr. Ho- neyman discharged the duties of his mission with great faithfulness and diligence for nearly fifty years. "Besides the cares of his own particular district," says Hawkins, " he made frequent visits to the neighboring towns on the continent, until another minister was assigned to them. Very early in his ca- reer, he felt the great disadvantages under which the church was laboring, for' want of a superintending head. Writing to the Secre- tary of the Society, in 1709, he says, 'You can neither well believe, nor I express, what excellent services for the cause of religion a Bishop would do in these parts ;' and he expresses a conviction that if one was sent, ' these infant settlements would become beautiful nurseries, which now seem to languish for want of a father to over- see and bless them.' In 1714, he presented a memorial to Governor Nicholson, on the religious condition of Rhode Island. The people, he says, were divided among Quakers, Ana-Baptists, Independents, Gortonians, and Infidels, with a remnant of true Churchmen. He then proceeds to suggest a remedy, in the settlement of a competent number of clergy in the several townships, under the jurisdiction of a Bishop, the establishment of schools, and a proper encouragement from the civil government. A new and most painful duty was im- posed on him, in 1723, in attending daily, for nearly three months, a HISTORY OF THE NAEKAGANSETT CHURCH. 147 great number of pirates, who were brought into Rhode Island, tried, condemned, and executed. " There is not, probably, a single mission; at the present time, in the "whole of our North American Colonies, so beset with difficulties and discouragements, and so entirely dependent upon the zeal and judgment of individual clergymen in charge, as were most of the parishes in the now independent States, at the commencement of the last century. No better instance can be given than this of Rhode Island, where a single clergyman was set to labor in the midst of a population hostile, for the most part, to the church, and without the smallest support from secular authority. In 1728, Mr. Honeyman, and another clergyman, the Rev. J. Mc- Sparran, who, since 1719, had occupied the mission of Narragansett, sent home a joint memorial," complaining of the " frowns and dis- couragements " to which they were subjected by the government. " The only further extract that need be given from Mr. Honey- man's correspondence, is dated Sept. 1732, and occurs in connection with an application to the society for a small increase of his stipend) to enable him to provide for his family: 'Between New-York and Boston, a distance of 300 miles, and wherein there are many mis- sions, there is not a congregation, in the way of the Church of Eng- land, that can pretend to compare with mine, or equal it in any re- spect ; nor does my church consist of members that were of it when I came here, for I have buried them all ; nor is there one person now alive that did then belong to it ; so that our present appearing is en- tirely owing to the blessing of God upon my endeavors to serve him. The late Henry Bull, in his manuscript history of Trinity Church i says, Mr. Honeyman was a gentleman well calculated to unite his own society, which grew and flourished exceedingly under his charge, as well as to conciliate those of other religious persuasions, all of whom he embraced in the arms of charity.' In 1750, the Rev. Mr. Honeyman died, after having lived to an advanced age, and to see his church large and flourishing. He was buried at the expense of the church, on the south of the passage from the gate to the church, where his tomb-stone now lies, and which is engraved as follows : " HERE LIES THE DUST OP JAMES HONEYMAN, OF VENEBABLE AND EVER WORTHY MEMORY, 148 HISTORY OF THE NAREAGANSETT CHURCH. for a faithful minister, of near fifty years, in the Episcopal Church in this town, which, by divine iniluence on his labors, has flourished and exceedingly increased. He was of a respectable family in Scot- land— an excellent scholar, a sound divine, and an accomplished gentleman. A strong asserter of the doctrine and discipline of the Church of England, and yet, with the arm of charity, embraced all sincere followers of Christ. Happy in his relative station in life, the duties of which he sustained and discharged in a laudable and exem- plary manner. Blessed with an excellent and vigorous constitution, which he made subservient to the various duties of a numerous pa- rish, until a paralytic disorder interrupted him in the pulpit, and in two years, without impairing hjs understanding, cut short the thread of life, on July 2d, 1750. There is a bust portrait of him in Trinity Church, Newport. " Sept. 3d, 1734, at the house of Mr. Benjamin Mum- ford, in South Kingstown, were intermarried, by Mr. Mc- Sparran, Arthur Gates Auchmuty to Ann Dickinson." Robert Auchmuty was the first of the American family of that name. He was the descendant of an ancient Scotch family, holding a barony in the north of that country. His father settled in Eng- land. Early in the eighteenth century, Robert came to this coun- try, and settled in Boston. He was considered a profound lawyer, and possessed remarkable talents, shrewdness and wit, and anecdotes of him have been handed down, from generation to generation, to this day. He was greatly respected and beloved, both in public and private life. His memory is held in high veneration by the bar in Massachusetts, and his opinions are still respected by the profession. He has many descendants still left there. He was^Judge of Admi- ralty many years before his death. Robert Auchmuty, son of Judge Auchmuty, was distinguished in his profession. He held the ofiice of Judge of Admiralty at the de- claration of Independence, when he left, and settled in England. He was one of the Commissioners, with Gov. Wanton, of Rhode Island, Samuel Horsemanden, Chief Justice of New- York, Frederic Sraythc) HISTORY OF THE NARRA6ANSETT CHURCH. 149 Chief Justice of New Jersey, Peter Oliver, Chief Justice of Massa- chusetts, to inquire into the destruction of the Gaspee, 1772. Speaking of the elder and younger Auchmuty, Wasburn, in his Judicial History of Massachusetts, says : Upon the death of Judge Byfield, in 1733, " Robert Auchmuty was appointed to succeed him, as Judge of Admiralty, and his com- mission embraced Massachusetts, New Hampshire, and Rhode Island. Sherly, afterwards Governor, was appointed at the same time Judge Advocate of the same court." Judge Auchmuty held the office until 1747, when he was super- seded by Chambers Russell. He was an eminent barrister, but when he was admitted to prac- tice does not appear. He was in practice soon after 1719, and the profession owed much to his character and efforts for the elevated stand it was beginning to assume, and the system and order which now began to distinguish its forms of practice. Among other public offices with which he was honored, he was one of the Directors of the Land Bank — was appointed, from time to time, to act as Attorney General, in the absence of that officer, and also, during the vacancy occasioned by the death of Mr. Overing. He was sent to England, in 1741, to settle the dispute between this province and that of Rhode Island, relative to the boundary line be- tween them. He resided at his seat in Roxbury. It was while he was in England that he is said to have conceived and matured the plan of expedition against Cape Breton and Louis- burg, which crowned the Provincial troops with so much glory and renown. He died in April, 1760. Mr. Bollan, so long the agent of the Pro- vince in London, studied his profession under Mr. Auchmuty's tuition. His daughter married the distinguished Judge Pratt, of New- York, and his two sons, Samuel was minister in New-York, and Ro- bert became an eminent lawyer in Massachusetts, and was for many years Judge of Admiralty in that province. Chambers Russell was appointed, in the place of the elder Auch- muty, as a Judge of Admiralty, for Massachusetts, New Hampshire, and Rhode Island, in 1747. He held this office until his death, in 1767. 150 HISTOKY OF THE NAHHAGANSETT CHURCH. " Upon the death of Russell, Robert Auchmuty, the younger, was appointed to his place by the Governor. This was in April, but on the 6th of July he was duly commissioned as Judge of Admiralty, for all New England,~with a salary of £300 a year. Previous to this time, the compensation of that officer had been a per-centage (usually five) upon all condemnations, and had not generally amounted to more than £100 per annum. His commission was received in March, 1769, when his salary was increased to £600 per annum. He continued to hold the office as long as the authority of the British Crown was recognized, and being a zealous royalist, he left the country, in 1776, for England. Previous to leaving the country, his place of residence was Roxbury. Although he had not the advantages of a collegiate education, he became an able and eminent lawyer. As an advocate, he was elo- quent and successful. Among his cotemporaries were Otis, Quincy, Hawley, and Judges Paine, Sargent, Bradbury, R. Sewall, W. Gushing, and Sullivan, and though lessJearned than some of these, he was employed in most of the important jury trials. It was to him, together with that class of lawyers above named, that the piofession owed the respectability which since his day has characterized the bar of Massachusetts. He held the office of Advocate of the Court of Admiralty from Au- gust 2, 1762, till his appointment as Judge, having been originally appointed in the place of Mr. Bollan, to hold the office during his absence." It is to be regretted that of men as distinguished in their day as'were the Auchmutys, father and son, so few memorials now remain. They will hereafter be found to have possessed a large share of the public confidence, and to have left a decided impress of their characters upon the profession which they adorned. The Hon. James Auchmuty, another son of the elder Robert, was also a conspicuous lawyer, and a Judge in Nova Scotia, where he resided many years. He had a son, a very gallan*^ officer in the British Army, who was killed whgn young, in a battle in the West Indies. The Rev. Samuel Auchmuty was another son of the elder Robert, born in Boston, in 1725, graduated at Harvard University in 1742, and was taken by his father to England, where he was ordained a HISTORY OF THE NAKKAGANSETT CHUECH. 151 minister in the Episcopal Church, and was appointed by the Society for the Propagation of the Gospel, an assistant minister of Trinity Church in New- York. He married, in 1749, a daughter of Richard Nichols, Governor of that Province. In 1764, at the death of the Rector, he was appointed to succeed him, and took charge of all the churches in the city, performing his arduous duties with faithfulness until the revolution. At that time he was making arrangements to return to England, in expectation of being consecrated Bishop of New- York. (By the old inhabitants of the city, he was always spo- ken of with the highest respect and affection, and as Bishop Auch- muty.) But that event rendered it necessary for him to stay by his devoted flock, and if possible, to keep the church together ; for he was a loya! subject of his sovereign, as well as a faithful minister of Christ. He continued his ministrations in the church, and succeeded in keeping his flock together. Dr. Auchmuty opposed the revolution and adhered to the cause of the king and the mother country, and when the Americans took possession of New York city, in 1777, it is said that a message was sent to him from Lord Sterling, by one of his sons ; " that if he read the prayer for the king the following Sunday, he would send a band of soldiers to take him out of the desk." His son knowing his father's indomitable spirit, did not deliver the message, but with some of his class-mates from ColumbiaCoUege, attended the church, with arms concealed under their gowns, and sat near the pulpit for his protection. He could not omit these prayers without, as he con- sidered, violating his ordination vows. As soon as he commenced reading it. Lord Sterling marched into the church with a band of soldiers, and music playing " Yankee Doodle." The Dr's. voice never faltered, but he went on and finished the prayers, and the soldiers marched up one aisle and down another, and went out again without any violence. After church, he sent for the keys of Trinity and its chapels, and ordered that they should not be again opened until the liturgy could be performed without interruption, and took them to New Jersey. When the British took possession of New York, he resolved at once to return to his beloved flock, and applied for leave to pass the American lines. This request was denied. With the unfailing energy that characterised his whole career, he determined to return on foot through circuitous paths to avoid 152 HISTOBY OF THE NARRAGANSETT CHURCH. the American lines. After undergoing great hardships ; sleeping in the woods, and heedless of exposure, he reached the city. During his absence Trinity Church and his parsonage had been burnt to the ground. His papers and the church records were all destroyed. The Sunday following, he preached in St. Paul's Church for the last time. The hardships he had undergone brought on an illness which terminated his life after a few days, March 4th 1777, in the fifty- second year of his age. He was buried under the altar of St. Paul's. Interesting notices of his labors, his sufferings, and death, may be found in Hawkins' " Historical Notices of the Missions of the Church of England, in the North American Colonies," London, 1845. Dr. Auchmuty received the degree of S. T. D., at Oxford, in 1766. The children of the Rev. Dr. Auchmuty weie, 1st— Mary Julianna, born 1750, married General Mulcaster, of the Royal Engineers, and left two sons and two daughters. 2nd--Margaret, died young. 3rd— Isabella, born 1753, married a Mr. Burton, of Kent, in Eng- land, and left no children. 4th— Robert Nicholls, born 1758, mar- ried Henrietta, daughter of Henry John Overing, his second cousin. He died at Newport, Rhode Island, January 28th, 1813, leaving eight children, one of whom is Mrs. Maria M. Wainwright, now living in Washington, D. C He was a graduate of Columbia Col- lege, and served as a volunteer in the English army, at the time of the revolution. 5th — Richard Harrison, born 1756, a surgeon in the Royal army ; was taken prisoner at Yorktown, and died while a prisoner on parole. 6th — Samuel, afterwards Sir Samuel, born 1758, graduated at Columbia College, served in Egypt, under Sir Ralph Abercrombie, was a Brigadier General and K. C. B., in 1807, and commanded the ejcpedition against Montevideo, which he took. He was promoted to be Lieutenant General, received the thanks of both houses of Parliament and a service of plate. He was after- wards intrusted with a very important command in ithe channelj at the time of Napoleon's threatened invasion ; was then Gover- nor of Madras, commander of an expedition against the Island of Java, which he took in 1811. On returning to England he again received the thanks of Parliament, and a service of plate from the East India Company. He retired for a while to his estate, in Kent, which he left on being appointed Commander of the Forces in Jre- HISTORY OF THE NAEHAGANSETT CHTTECH. 153 land, where he died, August 11th, 1822, and was buried in Christ Church, Dablin. The inscription on his tomb is : " Sacred to the memory of the Right Honorable Sir Samuel Auchmuty, G. C. B., of his Majesty's seventy-eighth Regiment of Foot, who died on the 11th August, 1822, aetat sixty-four, whilst commanding his Majesty's forces in Ireland. He was a brave, experienced and suc- cessful officer, and victorious whenever he had the command. He twice received the thanks of Parliament for his services. The cap- ture of Montevideo, in South America, and the Island of Java, in the East Indies, added both to his fame and fortune. This monu- ment was erected by his relatives, as a tribute to his private as well as his public worth,'' 7th — Jane, married Richard Tylden, of Heversham, Kent, in England, and had two sons and a daughter. Arthur Gates Auchmuty," says a correspondent, " must I think, have been the brother of the elder Judge Auchmuty ; he could have been only temporarily in Rhode Island, or I should have heard of his residing there, had it been otherwise. He was interred in Trinity Church yard, Newport. " December 11th, 1735. Dr. Giles Goddard, of Groton, in Connecticut, was married to Miss Sarah Updike, at the house of her father. Captain Lodowick Updike, by Mr. McSparran. Dr. Giles Goddard, immediately after his marriage, removed to New London, Connecticut, where he commenced the practice of medicine. He was also, for many years, postmaster of the town. In his professional character, he appears to have united much bene- volence with a considerable share of medical skill. He was from early life accustomed to the worship of the Church of England, and was a zealous defender of its doctrines and institutions, and on several occasions of pressing exigency, he proved himself a firm friend to its ministers. He continued to reside at New London un- til his death, which took place after a lingering illness, January 31st 1757, in the fifty-third year of his age. During his last sickness, he 19a 154 HISTORY OF THE NAEKAGANSETT CHURCH. became an earnest and heartfelt believer in the truths of revelation, and his dying words evinced in a remarkable manner, the power of divine truth, in sustaining the soul amid the struggles of the inevita- ble hour. He left a widow and two children — Mary Catharine Goddard and William Goddard, of whom the former died unmarried, at an ad- vanced age. William Goddard, the only son of Dr. Giles Goddard, was born at New London, October 20th, 1740. He was early in life apprenticed to James Parker, a printer, in New York, of whom he learned the practice of the art. Immediately, on becoming of age, he removed to Providence, Rhode Island, where he set up a printing press and established a weekly newspaper, called the " Providence Gazette and Country Journal,'' of which the first number was issued Octo- ber 20th, 1762. This paper was discontinued from May 11th to August 24th, 1765, in consequence of the excitement in the colony, occasioned by the Stamp Act ; and when its publication was resum- ed it bore the imprint of "Sarah Goddard & Co.," his mother having become associated with him in the establishment. The Gazette was the first paper ever printed at Providence, and at the period of its origin, there was but one other in the colony. When the differ- ences with the mother country began, it earnestly espoused the cause of the colonies ; and during the war of the revolution it was a faithful chronicler of events, and a firm supporter of the Declaration of Independence. After the repeal of the Stamp Act, Mr. Goddard left the Gazette in the hands of his mother, who now received the, assistance of Mr. John Carter, and repaired to New York, where he was for a short time associated with the proprietor of " Parker's Gazette and Post Boy.'' But leaving New York in the autumn of 1766, he set- tled in Philadelphia, associating with himself, as silent partners, the celebrated Joseph Galloway and Mr. Thomas Whaltur, a wealthy merchant, and commeneed the publication of " The Penn- sylvania Chronicle and Universal Advertiser." The first number was issued January 6th, 1767. It was conducted with ability and spirit, and soon gained a wide circulation. In consequence however, as is supposed, of a diflTerence in political sentiments between Mr. Goddard and his partners, he withdrew from the establishment, in HISTORY OF THE NAEEAGANSETT CHURCH. 155 1770. In the year preceding, the firm of Sarah Goddard & Co., at Providence, had been dissolved, and the Providence Gazette was given up to the management of John Carter. After being forced into an unhappy and somewhat violent controversy with his former partners in Philadelphia, who had now arra:yed themselves on the side of the crown, Mr. Goddard removed to Baltimore, where he soon became concerned in the publication of another newspaper. The first number appeared jn August, 1773, and was styled " The Maryland Journal and Baltimore Advertiser." This paper he con- tinued to publish twice a week, with but little interruption, till August, 1792, when he sold the establishment and retired to a farm which he purchased in Johnston, Rhode Island. In addition to his long connection with the public press of the country — a connection which he maintained with ability and distinc- tion— Mr, Goddard, soon after his removal to Baltimore, devoted himself with great earnestness, to the enterprise, then deemed of great importance to the colonies, of establishing, by subscription, a line of post-riders from New Hampshire to Georgia, in opposition to the English Post Office System, which was regarded as ill-arranged and oppressive in its rates of postage. He left the management of his journal in the hands of his sister, Mary Catharine Goddard, and travelled through the colonies for the purpose of forwarding the enter- prise. On the breaking out of the revolutionary war, however, the Continental Congress assumed the management of the Post Office, and Mr. Goddard received from Dr. Franklin, the Postmaster General, the appointment of surveyor of the Post-roads and comptroller of the Post Office ; an office which he held for several months, till becom- ing dissatisfied with the appointment of a successor to Dr. Franklin, he resigned the situation and returned to Baltimore. Here, amid the excitements of the revolution, he was more than once iovoJved in fierce political controversies, and became, on several occasions, the object of a popular fury so serious and threatening, that he deemed it prudent to repair to Annapolis, the seat of government, and place himself under the protection of the Legislative Assembly. This protection was promptly afforded, and the tumult of angry pas- sions passed away with the trifling incidents which had pro- duced it- He was married, MdV 25th, 1766, to Abigail Angell, daughter of 156 HISTORY OF THE HARKAGANSETT CHUKCH.
| 28,638 |
https://github.com/Davidzhaojb/record/blob/master/src/theme/theme.red.scss
|
Github Open Source
|
Open Source
|
Unlicense
| null |
record
|
Davidzhaojb
|
SCSS
|
Code
| 17 | 62 |
.red-theme {
visibility: inherit;
ion-toolbar {
--background: red;
}
ion-button {
--background: red;
--background-activated: red;
}
}
| 14,440 |
https://www.wikidata.org/wiki/Q21079010
|
Wikidata
|
Semantic data
|
CC0
| null |
Jim Munday, Sr.
|
None
|
Multilingual
|
Semantic data
| 1,611 | 3,572 |
Jim Munday, Sr.
Australian rules footballer (1887-1955)
Jim Munday, Sr. instance of human
Jim Munday, Sr. sex or gender male
Jim Munday, Sr. given name Jim
Jim Munday, Sr. given name James, series ordinal 1
Jim Munday, Sr. given name Joseph, series ordinal 2
Jim Munday, Sr. date of death 1955
Jim Munday, Sr. date of birth 1887
Jim Munday, Sr. occupation Australian rules football player
Jim Munday, Sr. AustralianFootball.com player ID 1889
Jim Munday, Sr. AFL Tables player ID J/Jim_Munday0
Jim Munday, Sr. sport Australian rules football
Jim Munday, Sr. member of sports team Geelong Football Club
Jim Munday, Sr. languages spoken, written or signed English
Jim Munday, Sr. family name Munday
Jim Munday, Sr. conflict World War I
Jim Munday, Sr. place of birth Geelong
Jim Munday, Sr. place of death Melbourne
Jim Munday, Sr. Google Knowledge Graph ID /g/11ckrbz1yy
Jim Munday, Sr. generational suffix L252248-F2
Jim Munday, Sr. sibling Bill Munday
Jim Munday, Sr. Find a Grave memorial ID 212356784
Jim Munday, Sr. place of burial Fawkner Memorial Park
Jim Munday, Sr.
Australianfootballspeler
Jim Munday, Sr. is een mens
Jim Munday, Sr. sekse of geslacht mannelijk
Jim Munday, Sr. voornaam Jim
Jim Munday, Sr. voornaam James, volgnummer 1
Jim Munday, Sr. voornaam Joseph, volgnummer 2
Jim Munday, Sr. overlijdensdatum 1955
Jim Munday, Sr. geboortedatum 1887
Jim Munday, Sr. beroep australianfootballspeler
Jim Munday, Sr. Australianfootball.com-identificatiecode 1889
Jim Munday, Sr. AFL Tables-identificatiecode voor speler J/Jim_Munday0
Jim Munday, Sr. sport Australian football
Jim Munday, Sr. lid van sportteam of club Geelong Football Club
Jim Munday, Sr. taalbeheersing Engels
Jim Munday, Sr. familienaam Munday
Jim Munday, Sr. militair conflict Eerste Wereldoorlog
Jim Munday, Sr. geboorteplaats Geelong
Jim Munday, Sr. overlijdensplaats Melbourne
Jim Munday, Sr. Google Knowledge Graph-identificatiecode /g/11ckrbz1yy
Jim Munday, Sr. generatiesuffix L252248-F2
Jim Munday, Sr. broer of zus Bill Munday
Jim Munday, Sr. Find a Grave-identificatiecode voor graf 212356784
Jim Munday, Sr.
Jim Munday, Sr. instancia de humanu
Jim Munday, Sr. sexu masculín
Jim Munday, Sr. nome Jim
Jim Munday, Sr. nome James, orde dientro la serie 1
Jim Munday, Sr. nome Joseph, orde dientro la serie 2
Jim Munday, Sr. data de la muerte 1955
Jim Munday, Sr. fecha de nacimientu 1887
Jim Munday, Sr. ocupación xugador de fútbol australianu
Jim Munday, Sr. deporte fútbol australianu
Jim Munday, Sr. miembru del equipu deportivu Geelong Football Club
Jim Munday, Sr. llingües falaes inglés
Jim Munday, Sr. apellíu Munday
Jim Munday, Sr. conflictu Primer Guerra Mundial
Jim Munday, Sr. llugar de nacimientu Geelong
Jim Munday, Sr. llugar de fallecimientu Melbourne
Jim Munday, Sr. hermanu o hermana Bill Munday
Jim Munday, Sr. identificador Find a Grave 212356784
Jim Munday, Sr.
Jim Munday, Sr. instancia de ser humano
Jim Munday, Sr. sexo o género masculino
Jim Munday, Sr. nombre de pila Jim
Jim Munday, Sr. nombre de pila James, orden dentro de la serie 1
Jim Munday, Sr. nombre de pila Joseph, orden dentro de la serie 2
Jim Munday, Sr. fecha de fallecimiento 1955
Jim Munday, Sr. fecha de nacimiento 1887
Jim Munday, Sr. ocupación jugador de fútbol australiano
Jim Munday, Sr. deporte fútbol australiano
Jim Munday, Sr. miembro del equipo deportivo Geelong Football Club
Jim Munday, Sr. lenguas habladas, escritas o signadas inglés
Jim Munday, Sr. apellido Munday
Jim Munday, Sr. participó en el conflicto Primera Guerra Mundial
Jim Munday, Sr. lugar de nacimiento Geelong
Jim Munday, Sr. lugar de fallecimiento Melbourne
Jim Munday, Sr. identificador Google Knowledge Graph /g/11ckrbz1yy
Jim Munday, Sr. sufijo de generación L252248-F2
Jim Munday, Sr. hermano o hermana Bill Munday
Jim Munday, Sr. identificador Find a Grave 212356784
Jim Munday, Sr.
Jim Munday, Sr. instancë e njeri
Jim Munday, Sr. gjinia mashkull
Jim Munday, Sr. emri Jim
Jim Munday, Sr. emri James
Jim Munday, Sr. emri Joseph
Jim Munday, Sr. data e vdekjes 1955
Jim Munday, Sr. data e lindjes 1887
Jim Munday, Sr. gjuhë që flet, shkruan ose këndon anglisht
Jim Munday, Sr. mbiemri Munday
Jim Munday, Sr. konflikt Lufta e Parë Botërore
Jim Munday, Sr. vendi i vdekjes Melburni
Jim Munday, Sr. vëllau ose motra Bill Munday
Jim Munday, Sr. ID e gjetjes së varreve 212356784
Jim Munday, Sr.
Jim Munday, Sr. instància de ésser humà
Jim Munday, Sr. sexe o gènere masculí
Jim Munday, Sr. prenom Jim
Jim Munday, Sr. prenom James, ordre dins la sèrie 1
Jim Munday, Sr. prenom Joseph, ordre dins la sèrie 2
Jim Munday, Sr. data de defunció 1955
Jim Munday, Sr. data de naixement 1887
Jim Munday, Sr. ocupació jugador de futbol australià
Jim Munday, Sr. identificador AustralianFootball.com 1889
Jim Munday, Sr. identificador AFL Tables de jugador J/Jim_Munday0
Jim Munday, Sr. esport futbol australià
Jim Munday, Sr. membre de l'equip esportiu Geelong Football Club
Jim Munday, Sr. llengua parlada, escrita o signada anglès
Jim Munday, Sr. cognom Munday
Jim Munday, Sr. conflicte Primera Guerra Mundial
Jim Munday, Sr. lloc de naixement Geelong
Jim Munday, Sr. lloc de defunció Melbourne
Jim Munday, Sr. identificador Google Knowledge Graph /g/11ckrbz1yy
Jim Munday, Sr. sufix de generació L252248-F2
Jim Munday, Sr. germà o germana Bill Munday
Jim Munday, Sr. identificador Find a Grave 212356784
Jim Munday, Sr.
Jim Munday, Sr. ist ein(e) Mensch
Jim Munday, Sr. Geschlecht männlich
Jim Munday, Sr. Vorname Jim
Jim Munday, Sr. Vorname James, Ordnungsnummer 1
Jim Munday, Sr. Vorname Joseph, Ordnungsnummer 2
Jim Munday, Sr. Sterbedatum 1955
Jim Munday, Sr. Geburtsdatum 1887
Jim Munday, Sr. Tätigkeit Australian-Football-Spieler
Jim Munday, Sr. AustralianFootball.com ID 1889
Jim Munday, Sr. AFL Tables-ID J/Jim_Munday0
Jim Munday, Sr. Sportart Australian Football
Jim Munday, Sr. Mitglied von Sportmannschaft oder -verein Geelong Football Club
Jim Munday, Sr. gesprochene oder publizierte Sprachen Englisch
Jim Munday, Sr. Familienname Munday
Jim Munday, Sr. Konflikt Erster Weltkrieg
Jim Munday, Sr. Geburtsort Geelong
Jim Munday, Sr. Sterbeort Melbourne
Jim Munday, Sr. Google-Knowledge-Graph-Kennung /g/11ckrbz1yy
Jim Munday, Sr. genealogischer Zusatz L252248-F2
Jim Munday, Sr. Geschwister Bill Munday
Jim Munday, Sr. Find-A-Grave-Grabstättenkennung 212356784
Jim Munday, Sr.
Jim Munday, Sr. nature de l’élément être humain
Jim Munday, Sr. sexe ou genre masculin
Jim Munday, Sr. prénom Jim
Jim Munday, Sr. prénom James, rang dans la série 1
Jim Munday, Sr. prénom Joseph, rang dans la série 2
Jim Munday, Sr. date de mort 1955
Jim Munday, Sr. date de naissance 1887
Jim Munday, Sr. occupation joueur de football australien
Jim Munday, Sr. identifiant Australianfootball.com 1889
Jim Munday, Sr. identifiant AFL Tables d'un joueur J/Jim_Munday0
Jim Munday, Sr. sport football australien
Jim Munday, Sr. membre de l'équipe de sport Geelong Football Club
Jim Munday, Sr. langues parlées, écrites ou signées anglais
Jim Munday, Sr. nom de famille Munday
Jim Munday, Sr. a participé au conflit Première Guerre mondiale
Jim Munday, Sr. lieu de naissance Geelong
Jim Munday, Sr. lieu de mort Melbourne
Jim Munday, Sr. identifiant du Google Knowledge Graph /g/11ckrbz1yy
Jim Munday, Sr. suffixe générationnel L252248-F2
Jim Munday, Sr. frère ou sœur Bill Munday
Jim Munday, Sr. identifiant Find a Grave de la tombe 212356784
Jim Munday, Sr. lieu de sépulture Fawkner Memorial Park
Jim Munday, Sr.
Jim Munday, Sr. sampla de duine
Jim Munday, Sr. gnéas nó inscne fireann
Jim Munday, Sr. céadainm Jim
Jim Munday, Sr. céadainm James, orduimhir 1
Jim Munday, Sr. céadainm Joseph, orduimhir 2
Jim Munday, Sr. dáta báis 1955
Jim Munday, Sr. dáta breithe 1887
Jim Munday, Sr. gairm imreoir peile Astrálaí
Jim Munday, Sr. spórt peil Astrálach
Jim Munday, Sr. teangacha Béarla
Jim Munday, Sr. sloinne Munday
Jim Munday, Sr. coinbhleacht an Chéad Chogadh Domhanda
Jim Munday, Sr. áit bhreithe Geelong
Jim Munday, Sr. áit bháis Melbourne
Jim Munday, Sr. siblín Bill Munday
Jim Munday, Sr.
Jim Munday, Sr. istanza di umano
Jim Munday, Sr. sesso o genere maschio
Jim Munday, Sr. prenome Jim
Jim Munday, Sr. prenome James, numero d'ordine 1
Jim Munday, Sr. prenome Joseph, numero d'ordine 2
Jim Munday, Sr. data di morte 1955
Jim Munday, Sr. data di nascita 1887
Jim Munday, Sr. occupazione giocatore di football australiano
Jim Munday, Sr. identificativo AustralianFootball di un giocatore 1889
Jim Munday, Sr. identificativo AFL Tables di un giocatore J/Jim_Munday0
Jim Munday, Sr. sport football australiano
Jim Munday, Sr. membro della squadra sportiva Geelong Football Club
Jim Munday, Sr. lingue parlate o scritte inglese
Jim Munday, Sr. cognome Munday
Jim Munday, Sr. conflitto prima guerra mondiale
Jim Munday, Sr. luogo di nascita Geelong
Jim Munday, Sr. luogo di morte Melbourne
Jim Munday, Sr. identificativo Google Knowledge Graph /g/11ckrbz1yy
Jim Munday, Sr. suffisso generazionale L252248-F2
Jim Munday, Sr. fratello/sorella Bill Munday
Jim Munday, Sr. identificativo Find a Grave 212356784
Jim Munday, Sr.
Jim Munday, Sr. instance of human
Jim Munday, Sr. sex or gender male
Jim Munday, Sr. given name Jim
Jim Munday, Sr. given name James, series ordinal 1
Jim Munday, Sr. given name Joseph, series ordinal 2
Jim Munday, Sr. date of death 1955
Jim Munday, Sr. date of birth 1887
Jim Munday, Sr. occupation Australian rules football player
Jim Munday, Sr. family name Munday
Jim Munday, Sr. place of death Melbourne
Jim Munday, Sr. Google Knowledge Graph identifier /g/11ckrbz1yy
Jim Munday, Sr. sibling Bill Munday
Jim Munday, Sr.
Jim Munday, Sr. instance of human
Jim Munday, Sr. sex or gender male
Jim Munday, Sr. given name Jim
Jim Munday, Sr. given name James, series ordinal 1
Jim Munday, Sr. given name Joseph, series ordinal 2
Jim Munday, Sr. date of death 1955
Jim Munday, Sr. date of birth 1887
Jim Munday, Sr. occupation Australian rules football player
Jim Munday, Sr. sport Australian rules football
Jim Munday, Sr. languages spoken, written or signed English
Jim Munday, Sr. surname Munday
Jim Munday, Sr. conflict World War I
Jim Munday, Sr. place of death Melbourne
Jim Munday, Sr. Google Knowledge Graph identifier /g/11ckrbz1yy
Jim Munday, Sr. sibling Bill Munday
Jim Munday, Sr. Find a Grave ID 212356784
| 33,994 |
https://mathematica.stackexchange.com/questions/126781
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016 |
Stack Exchange
|
Edmund, chuy, https://mathematica.stackexchange.com/users/19542, https://mathematica.stackexchange.com/users/237
|
English
|
Spoken
| 223 | 394 |
How to specify custom density function for GeoHistogram?
Bug introduced in 11.0.0 and persisting through 11.0.1 or later
GeoHistrogram is new in 11.0
Using GeneralUtilities`PrintDefinitions on GeoHistogram to investigate specifying a custom density function I noticed that it will accept an argument with Function head for the hspec parameter. However, when called with such a function GeoHistogram appears to completely ignore it.
SeedRandom[341];
vals = GeoPosition@#[[;; 2]] -> Last@# & /@
RandomVariate[MultinormalDistribution[{-27, 133, 50000},
{{15, -.2, .5}, {-.2, 20, .8}, {.5, .8, 10000}}], 300];
Then, for example, if I want the Max value in the bin to be the height specification.
GeoHistogram[vals, Automatic, Function[{bins, vals}, Max/@vals]]
However, this gives an error for the density specification and returns the plot equivalent to if Automatic was selected for hspec.
How do you specify a custom density function for GeoHistogram? I want to make use of much of the functionality of GeoHistogram but use my own density function.
I suspect I have the incorrect number of parameters or am returning an incorrect format from the function that is causing the error.
Update: Confirmed bug - [CASE:3719954]
I think its just a bug.
@chuy Checking with WRI.
While waiting I came up with this little nugget: Block[{Total = Max}, GeoHistogram[vals]]. It seems to work but is sooo risky that I don't consider it a solution or workaround.
| 24,604 |
https://github.com/MobileCaddy/ionic-kitchen-sink/blob/master/www/js/controllers/rest.controller.js
|
Github Open Source
|
Open Source
|
MIT
| null |
ionic-kitchen-sink
|
MobileCaddy
|
JavaScript
|
Code
| 233 | 828 |
/**
* Rest Controller
*
* @description description
*/
(function() {
'use strict';
angular
.module('starter.controllers')
.controller('RestCtrl', RestCtrl);
RestCtrl.$inject = ['$ionicLoading', '$ionicPopup', 'McRestService', 'logger'];
function RestCtrl($ionicLoading, $ionicPopup, McRestService, logger) {
var logModule = 'app.RestCtrl';
var vm = this;
vm.getLatestChatter = getLatestChatter;
vm.searchRemoteContacts = searchRemoteContacts;
/**
* Request the latest chatter post. Uses the McRestService, which itself takes
* care of running correctly on device or on CodeFlow. McRestService also
* takes care of aligning auth sessions.
*/
function getLatestChatter(){
$ionicLoading.show({
template: 'Getting chatter post',
animation: 'fade-in',
showBackdrop: true,
duration: 15000
});
var obj = {
method: 'GET',
contentType: 'application/json',
path: '/services/data/v36.0/chatter/feeds/news/me/feed-elements'
};
McRestService.request(obj).then(function(result){
console.log("getLatestChatter result", result);
$ionicLoading.hide();
var alertPopup = $ionicPopup.alert({
title: 'Last Chatter Post!',
template: result.elements[0].actor.displayName + ': ' + result.elements[0].body.text
});
alertPopup.then(function(res) {
// Do Nothing
});
}).catch(function(e){
logger.error("getLatestChatter error",e);
});
}
/**
* Use the McRestService to request an online "LIKE" search for contacts, based
* upon input from the UI
*/
function searchRemoteContacts(){
$ionicLoading.show({
template: 'Searching Salesforce',
animation: 'fade-in',
showBackdrop: true,
duration: 15000
});
var soql = "SELECT name, id FROM Contact WHERE name LIKE '%" + vm.contactSearchStr + "%'";
McRestService.query(soql).then(function(result){
console.log("searchRemoteContacts result", result);
$ionicLoading.hide();
if ( result.records.length == 0 ) {
var alertPopup = $ionicPopup.alert({
title: 'No contacts found!',
template: 'No match for "' + vm.contactSearchStr + '"'
});
alertPopup.then(function(res) {
// Do Nothing
});
} else {
vm.contacts = result.records;
}
}).catch(function(e){
logger.error("searchRemoteContacts error",e);
});
}
}
})();
| 26,343 |
sn85038614_1898-11-06_1_2_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,898 |
None
|
None
|
English
|
Spoken
| 6,165 | 9,901 |
2 THE RICHMOND DISPATCH-SUNDAY, NOVEMBER 6, 1898._ QUERIES & ANSWER THE ?TATB LAW WITH REXPEt TO DELIA-H EAT LANDS. CRUSTACEANS DESCRIBED BY SA^ Tbe ?.?iillhucnliin ln_lt?allo?_ AVIahi Sl?-*olmen-i of Thcm-llow ?o Trei Warts Cowa-Chlek-*?? Cholei and Ils Care. Eir. To th* Editer of the Dispatch: Plea?* an. wer In the Query colum what Um? the partridge law cornea In I King and -. id's, Vi. B. r 1' I: ir, unlawful to kill partridges In th county fron? February 1-th to Octobi Path, Atiralinm Lincoln" To the Bdttet of the Dispatch: Was A! rsham Lincoln (v?r ?i ' j-r,, i > .- K/i ring this >ou wi ectti?- h -sager, and oblige. I \ a J. NV B. Hi H WUS nominated as the c..n candidate in IS??, and owing to th disunion of the Democratic party, secure an easy victory. D?- ft .tUTi \ es, against 7: l-r JOhfl I ridge (Democrat). M for John D-II, Con rtltutloi.Hl Union ? and 1_ 1" Btephen \ Douglas, esndlduta of th north?.ni i An I...? .. _.?*..__ Inquiry. Bsaltbi nia a Ini tltuti >r i St.,.- v Washington, D. C, Dear Sir : I ha? information as to the : Cru- i y Thorn - in i?... ni to have i?raj ?i In the "Richmond Muaeum." it bus oc curr?-?i to ha th? uni if Richmond ? I If m; a?nala ?pro*, I : ?-ratified if you will kindly Inform m User the apedmens ai? sti.i . ,r_ reupectfullyi 9. W. TRUE, Htlve Curutor. Th* foregoing lett? r c? m? I to Rl hmo; < IB handed us f..r public ir. quiry. The curator of the College of Science, Dr. C. H. Bylaad, would be glad of any information on the subject, sent to him due, or otherwise, to the editor of the Dispatch. To the Editor of the Dispatch, I tell you through your query: "In the Sunday issue, if Wilson County, Virginia, of Albemarle County, Virginia, was elected, of Albemarle County, Virginia, or not, and if so, when? A. was greatly interested in a subscriber by answering this. I. T. Hardwick Post, Va. We have Car Nicholas was elected Governor of Virginia. In 1844, he was born in Hanover County, in 1757, and died in Milton, Va., October 10, 1820. He graduated at William and Mary College, was an officer in the revolutionary army and commanded Washington's Life Guards until it was disbanded, in 1758. His number of the convention that was the Constitution of the United States and was elected a United States Senator in place of Henry Tazewell, as a Democrat, serving from January 4, 1802, until his resignation, December 17, 1800. His father was the famous Robert Carter Nicholas, of Colonial times. To the Editor of the Dispatch: Will you please tell me what will take parts or knots off of cows' tails? I have a very bad case of cows' tails. I have tried lard, but it does not good. J. T. W. Toano, Va. It is often very difficult to remove. Warts from cows' tails. When they are small and have a broad basis. Sometimes, we see a great deal of olive oil after each milking. A small quantity of mints of camphor may be used to add to the oil with advantage. If this method is not successful, it may be necessary to cut off the warts with a pair of scissors and touch the sole with a stick of lunar can. If there are many warts, this treatment should only be adopted when the cow is dry. Nitric acid applied carefully with a solid brass rod to each wart may be used in some cases. M. in the Word's Meal. To the Editor of the Department: Please tell us whether or not fishes and rabbits are of as "meat." P. The word meat primarily signifies the flesh of vertebrate animals used as food; sometimes limited colloquially to the flesh of mammals, as opposed to poultry, fish, frogs, turtles, and the like, as "butcher's meat." Secondarily, the word signifying anything eaten for nourishment; solid food of any kind, victuals; hence that which sustains or comforts, as "meat and drink." "Meat" also signifies the edible part of anything, especially of food that has to be picked out or detached, as from a shell. It is sometimes used in the plural, as "the meat of an oyster," "walnut meat," the "meat of an egg." We quote principally from the Standard Dictionary. The Century follows pretty much the same classification, though it defines meat as the flesh of warm-blooded animals killed for food, and contains this with fish. From these definitions, we should judge that the word "mai" should never be applied to the flesh of fish, rarely to that of oysters, and never at all, except in the restricted sense noted above. Sot Chicken. To the Editor of the Dispatch: Can you. or seme one of your rt I tell me what can be tha trouble with fowls when they become iimi?r in taelr legs, drop thdr hi ads. and die, ., tliere Is any cure? J. A. P. 1'- wean. Va. We are unable, wlthaut further Infor mation mi th. subject, to stufe the di sease from which the f.wls are dying. It Is possible the disease may be the ao eelltd 'fowl-cholera." A discussion of that disc?.* and the Inveatlgatlon? of the United State.-? Agri cultural Deportasen! fonosinlsg it, are contain.-,l m imHetln No. 8. Which can be obi.-..ii.ii from the Su"**?a_.ntendent of To? unicnts, Washington, L>. C. for th Bum of 10 cent?. A further discussion of Huit class of di_.u_?* Is contain, d In the Twelfth ?n?l ThlHBaaMl Annual Reports of the l!ui*-_.u of Animal Indus try of tbat departnaeat, pago UM and tt.ii- 2U_ of this report are directions tor prevention and treatment Th pert can airo be obtained i-, ?j th? su Perint.ndent of documents. The "l'oi.lar I-ore??*' Home. 'Mm, V.? (Id i. ? __, lfMJg. To the Editor of the Dispatch: I read Mrs. Coteaaaa's letter, In which h? gave an int*resting Bket? h of ' | iar jFor_at " j.. Ufo? I i ounty, v_. trimer h.-in?. ,,% Thomas J.-rferson. "Pop. sr Fonal *_,? t,?_ual?-t ficai Mr. J? fc_*^ Disease ia a great and treacherous oceao. Man ever stands upon its shore and gazes out over its calm surface without a thought of danger. It licks his feet—it advances and recedes almost playfully—but all the sun will crack his bones and cat him, and wipe the crimson foam from its jaws as if nothing had happened, as it has been doing ever since the world began. A man who carelessly saunters along the shore of the insatiable sea of disease, will someday encounter a great storm in the form of some fatal malady and will be engulfed. Because a man does not have to go to bed when he suffers from a trivial indigestion, because he does not have to give up work when he gets nervous and cannot sleep at night, because he can still force down an unsatisfactory meal when he is suffering from loss of appetite, because by strong effort he can add a column of figures with a single head - no reason that these are trifling or to be neglected. They are the warnings of serious sickness. A man who promptly heeds them, and restores to the right remedy, will speedily recover his usual health. The man who neglects them will find that he is in the grip of consumption, for a nervous disorder, or some other dread malady, due to improper or insufficient nutrition. Dr. Pierce's Golden Medical Discovery is the best of all medicines for men and women who suffer in this way. It restores the lost appetite, facilitates the flow of digestive juices, invigorates the liver, purifies and enriches the blood and tones and builds up the nerves. It cures 98 percent of all chronic, bronchial, throat and lung affections, and is an unfailing remedy for nervous prostration. Medicine dealers sell it. Dr. William Cobbs, who had been only a child Emily, became the wife of Edward Blatua Butter, a naval officer of the United States navy, who is now at the Navy. The original house was built, but the solid, heavy brick walls were uninjured, and Mr. Butter had them filled in with woodwork, not only the original plan of the house. The rooms are octagonal-shaped, and all have two fireplaces—one in each end. They open into a large, square center which is used to be lighted by a sky. One corner-plastered and picturesque thing is the high mounds of the house. and little distance from it. Mr. Jefferson's plants poplar on them, and they are grown now. The earth has removed from the wine-cellars, and terraces grow. The present owner of the property, Mr. Christian S. Hutter, of Lynching, inherited it from his father, and spends his summers there. He keeps up its y, and has greatly improved the status. Mr. Hutter's oldest brother, William Hutter, graduated at Annapolis just before the war between the North and South commenced, was a midshipman in the Confederate navy, was assigned to the Confederate States ship Raleigh, and was killed at the battle of Hampton Roads, on the 6th of March. He volunteered, with others on his way to go aboard the sinking United States ship Columbia, and remove the wounded, and was shot by the Federals from Fort Monroe, while trying to escape their wounded, and after the ship had raised the white flag. His remains were brought home to the Forest, and he left his last sleep by his gallant youth in St. Stephen's old churchyard. There is another son, George Hutter, who is on the retired list in the United States navy. A. H. L. Law with Return to I am a farmer, To the Editor of the Dispatch: A sold a farm to a corporation, say two years ago. The corporation held it through years, and then gave it up to the previous owner. Can the previous owner be made to pay taxes on the farm for the three years? When it was in possession of the corporation... In regard to tax, B. R. C. Toa no, Va. It is not said how the corporation has the land, whether by deed or otherwise, or whether as purchaser or renter. If it held as purchaser In any way, without stipulation to the contrary, the corporation should have paid the tax for those years. But it was not paid, and the tax Is a lien upon the land, and It does not avail A that it ought to have been paid. It was n??t. and so A must pay It. or redeem the land Tf It has been sold to another, or bought In the name of the Auditor for the State. It is tros that the corporation, If It ought to have paid the tax. Is debtor to A, but the statute of limitation probably bars Ills recovery. The land is liable to the State, and tho present owner must pay the tax. We pre sume that It has been returned delin quent. The Code of 1.S87, section 6"A provides for the redemption of real estate return ed delinquent and sold 'for taxes. Section C64 provides for tha redemption by the owner, his heirs, &c., &c. of real estate sold for taxes, and purchased for the State in the name of the Auditor. At Its last session the General Assem bly (MS acts ttf'.-'98, page 34.1.) amended ami IB SBBCtSd thla section of the Code as amended and re-enacted in Acts of Assembly, March 6, 1894. This last act tnak?, important changea in the mode St proceeding to purchase delinquent lands from the Commonwealth. The pro n Is too long to publish here, but Will be found at page 343 of Acts of 1S:?7 98, and put in very plain terms. On page ?73 of the same session Acts 1? the latsBt provision for redeeming lands sold by the County Treasurer th n and bought in the name of the Auditor. This act amends and re-enacts section 1?4 of the Code as amended in 1890. It provides that "the previous owner of any such real estate, his heirs, or assigns, or any person having the right to charge the same with a debt, may, until further thereof, redeem such real estate by paying the Clerk of the county or corporation in which such real estate is situated, the amount for which the sale was made, with such additional sums as would have accrued from taxes and levies if the same had not been purchased by the Commonwealth, with in the amount for which the sale was made, at the rate of 6 percent from the day of sale, and on the additional sum from the 15th day of December in the year in which the same would be accrued. The Clerk shall enter the fact of such payment on the delinquent land book, opposite the entry of the tract or lot." When real estate is redeemed, as provided in this section, the Clerk shall certify the fact to the Commissioner of the Revenue of the county or city wherein the land estate is. It will be seen that the provision made for its redemption of lands forfeited to the State is simple, and the Clerk of an court by referring to the land book as well, and notify the Commissioner of the Revenue, and the former owner will be restored to his right in the land. In the case of a purchaser more than to be done. The notices, the survey, etc., fully shown, as said above, at page 243 of session Acts of 1879. Notice to Contractors. No notice will be taken of anonymous communications. In answering queries, our first attention will be given to the letters of those correspondents who ask but one question each. We cannot publish copyright songs and poems without the permission of the owner or copyright. This column is not an advertising medium. No query will receive attention if the answer to which would necessitate the advertising of any person's business or ware. Nor will any attention be given to the "strings" of questions. Every week, however, members of correspondents ignore this rule of ours, and afterwards wonder why the queries are not answered. Many queries are not answered because similar ones have been recently answered. We cannot undertake to ascertain the value of old coins. For that information, write to some dealer in them. We cannot undertake to answer queries by mail; we can only answer them through this column. We are frequently called upon to publish poems and slings, but we will not undertake to do so, except where the production called for has some historical or peculiar literary merit, and is not of especial access to the average reader. Address "Query Editor, Dispatch Office, Richmond, Va." N.B.?We do not read unsigned letters. Notices of New Books. History of the Game. By Herman Schurich. Volume I. 168 pages, Boston. Theo. Kroh & Sons, printers, Baltimore, Md. 1898. We do wish that our people were more appreciative of, and would do more to encourage and stimulate, studies and investigations akin to those made by the author of this publication. He is not the least worthy of those Virginia settlers, who have contributed so much to the material progress of the country. A gallant Confederate serving in Company D, Fourteenth Virginia Cavalry, and with Von Borcke, he is the author of an essay on German educational efforts in America, published at Leipzig in 1881 under the title "Geschütz der Deutschen Schulstrechen Ir Amerika," and edited the German paper Der Suden, published at Richmond in 1891. He resides now on his farm in Louisa County, Va. This volume contains an introductory chapter on "The Participation of Germans in the Discovery of America," and covers thereafter in ten chapters the period from the Colonial time to the end of the eighteenth century. A second volume will, we presume, cover the nineteenth century period. While much of his matter of the earliest Colonial period is not history, in the modern scientific sense, but rather speculation, and while we notice some minor inaccuracies—the author having misapprehended, and sometimes, we think, been misled by the German appearance of family known to have been English for generations, before their settlement in Virginia this work is one for which the student of historical history will be grateful, and it should be widely read. Typographical errors are rather numerous, and of a character justifying the inference that the compositors were Germans and with the English language. Too little attention has been given to the German element in our civilization, and we hope that this work, and one of some what similar character, upon which we have heard that General John B. Elliot, of Harrisonburg, is engaged, may enable us to better understand and appreciate the extent to which we are indebted to it in our growth as a Colony and as a very able man. We have a far better way to look carefully into the true history of their beginning. Virginia, which they have invaded, they will find a much greater German element and influence therein than they now conceive. To a German artist, Nicholas Loch, is attributed—the original portrait of Pocahontas, still preserved in Norfolk, England. John Loch was the first sculptor of the Allighany mountains. John R. R. Schurr, who married into a prominent Virginia family and resided in Manchester, acted in Virginia, at the beginning of the Revolutionary war, the first powder mill in America. Many of us have not before had our attention called to the fact that an edition of the laws of Virginia were printed in the German language in 1812, by order of the state Legislature. The following extracts from Mr. Schurr's comments on the influence and effects of slavery in Virginia: "There certainly would have been tenfold more commerce and manufacture in Virginia and the other Southern States if there had been intelligent, industrious, and patriotic free laborers, receiving pay for their work and spending their money for the blessings of life." Hut for slavery Virginia would be to day, as It w ?s in 17!?", the most populous ?state of tho Union, as well as the most wealthy and Influential. Slavery stilt had another disastrous effect?it has a t? n ileticy to degrade free labor and to ren tba free laborer worthless. The habit of giving preference to slave labor BBS operated to the prejudice of fieo labor. It has caused the population of little means to grow up In Idleness, to think labor de grading, to b^ Incapable of earnest : lar work, gad it kept away Immigration of white worklngmen, because they dis liked to be looked down upon and ti as negroes. The G.-rman settlers, wboaa number was much larger than Is general ly conceded, were With very few e\< p tlons opposed to slavery. ? Convlota and a great many ladantursd white ser vants, Irish and BootCh prisoners of -.?..ir. v.ere sent over from England in and af ter tho year MM but alter a gene] or two all tha*M ? i. asenta heroin* blended Into a homogen. of 'CavaltSTB*? aristocratic becauae they hud nn Inferior race be ?eath them. It is proven by facts that the G? rman -farmers In the Val ley and the Alleghanles, with few excep tions, owned no slaves. The nutnl r Of negroes has always bssa ?mailer the re than In other parta Of the State. Accord ing to statistical reports in IgJT, tha population in tha Altaghanjr Dtstri I amounted to only 7 per csat, In the Val M l-r e n? lint lg the Piedmont For colds ami coughs and all lung troubles Ayer's Kerry Pectoral Im the standard remedy. It is now put up in half-size bottles. _HAIF SIZK~.I1A._F PKICC KEEP POSTED. Unless you have kept pace with the rapid strides of Medical Science, ask to us for free treatise on the same and cure of all diseases. This little book will save days of sickness and dollars of expense, and should be in every home in case of necessity. Costs you nothing but the asking, and we will prove that RADAM'S MICROBE KELLER has, can, and will cure diseases hitherto considered incurable, by the best physicians in the world. Send for the book and notice Dr. Willard's report on page 49. Also the best household remedy for sores, cuts, burns, or bruises. VMS WILLARD, MICROBE KILLER CO., 121 Prince Street, New York, or F. E. LONG, 212 1-2 n. 9th street, Richmond, and Coast districts from 47 to 51 percent of the total population. SKORTH STORIES BY GEORGE MERE DITH. Charles Scribner's Sons, New York. For sale by the real Book and Stationery Company, Price, $1, post paid. The Seibners here present in pleasing form for the delight of the reader four short stories by this noted English author. "The Tale of Chloe" is not alone the tale of Chloe, but also concerns the late Duke of Di-Wilton, who is more a pretty milkmaid and takes her to the seclusion. Conclusion of his castle. This royal BOUM creature makes merry with the Duke in many ways, for but an event. pullh-ig his srhMkera pin-iun- >..rt? bull_ at him, etc.. ,-.n?l finally tiling Of Ik I to ha allowed te i tit a lasa? la aati ring pM< -. The Duke's cx - being un?.? nal,i_ i,y reueou of th?* yam balls, etc.. he eonssnts, sad pisase his charming wife under tha cars of an oid friend. Bean Beamish, and Chloe, a pretty young woman who is in love with MM Cussldy, Duch? 1 Susan, such is ser name, entera opon a tvlM career, in which ana la only ebechi ?l on tha ava of ment with faitbl l teldy by the dead body of Chloe, who, broken hi irted ry the treachery cf Csiseldy, determlnea to sai rlflca i -r blast? d : milkmaid Duchess, and hangs herself at the dOOr of Duel; : il?, i The Other ."ai,na," "The House on th- Beach," and "I he Case ol General Ople and l_ady Camper." ail of these stories are good, an.l Hn-lr Bl original in the aXtti in? 'I ! more than a story, ?t Is a hit-h of rank along with Bl idan's masterpieces. "?Ion HH lea. VIRGINIA LAW REOISTER, N her Numbi.-. "Volume IV. Edit?d by W. PL Eile. PubU bed by tha J. P. Bell Company, Richtno'id and Lynch burg. .Single number, 10 i Contents: Llttl? ton WullSi T ?-.-well. An analysis of Chapter IV of the Virginia Code. III. Anti-Football Legislation. IV. Virginia Decision Reported in Full. James V. Upton; 2. Liberty Buys Bunh vs. Otter-View Lud Company; Stern Brothers vs. Frank (Circuit Court). V. Editorial. IV. Not v. Mabelle. VI. Corre. The Register of this month should be almost consecrated to some or rather to their rights and duties, and the eyes of the law. The article among Muryers and the never-to-be-forgotten of Virginia dams, is a masterly analysis of the laws of Virginia. Which treats of the subject of women in the Old Dominion. No lawyer should be allowed to discuss the merits of the article, for every thing shows the unity and careful of the author. True, he has his own opinion disputed points, and hesitates to advance them in his forcible purpose atyle, but he accords ample time to the vitw of his and supports the reeder which will enable him to take his choice in the disputed points. The Virginia case is cited in full involves a question of dowel, whether it is as much as the owners, etc., of married women, etc., of married women. The Ideal has been plain that they have been a part of the world. It is, indeed, the only article on an ball. In which the student has no right to participate. The Wills will have the support of a large class, which favors outdoor sports. H- naya fOOt*l>ell leg alation, or r-, anti-foot-ball Ii, machinations of three clashes of people First a few mothers who come alarmed and horrified at more or less serious, that has some der their notice; SQCOnd, a few who have ever, perhaps, even the game played, who know nothing it, and who are the loudest in their denunciation and demands for prohibition; and, third, a few others who are familiar with the game, who have considered the question, and who, after brief deliberation, are of opinion that the game is too dangerous. According to the writer, the ascond? "trust to newspapers reporters for their data, get the news that now that a reporter distinguishes in giving his papers a blood-thrusting desire of an accident, and that his arm is easily permitted him to strike a bone in a fracture, a sprain into a dislocation, or aven to see "blood pouring from the bar," caused by a slight scratch behind it." This suits the situation as to the efficacy of the journalist's. I promulgated by one who has not in their mode of doing business with the same, lure which he would boast upon. A question of advice possession, is clarified to please the public, and is likewise a back to the medical fraternity. Inasmuch as it is understood that the public who read "W. R. A., Jr.'s," article on at least commend the bloodthirsty reporters for running their sanguinary proceedings, which gratuitous slurs are made against the Ledger Monthly for November. The initial number of the Ledger Monthly comes to us in an autumn cover of very great beauty. A wistful, dreamy, beautiful WOODBURY looks like a network of leaves in the brilliant colors of the Colonial Land. It is a symbolic picture of the American autumn, characteristic in color, form, and expression. Barely has anything beautiful appeared in the popular art of today. The contents of the Ledger Monthly embrace a rich variety of fresh and incoming reading matter and many trations. The frontispiece is a reproduction of Paul Selinger's painting entitled "The Prayer"?a picture of quite refined refinement and sentiment which was purchased for Mr. Thackeray. The original serial is a new story by Sir Walter Besant, entitled "The Grange Girl" and the first chapter of which appears in this number, with illustrations by Warren H. Davis, Eben E. Rexford contributes an old-fashioned story, entitled "The Poor House Folks' Thanksgiving," a story in which subject and style are in perfect harmony, and embellished by a picture representing the poorhouse folks eating their Thanksgiving dinner. Julia Magrathas a thrilling novelette of the "merry of a young American in one of the most interesting of the series." In the reproduction of children's pictures, it is impossible to conceive of the pictures from the originals, which for charm of pictorial art is impossible to conceive. There are nine pictures from Reynold, and they include: "The Lost Chord" and "Bir Arthur Sullivan make an interesting page, biographical and critical, combined with an artistic illustration of the subject of the poem. Article on "Seasonable Fashions," with Illustrations; on "Decorative Embroidery," on the "Kitchen and Cooking," on "Common Sense for Mothers and Nurses," stories for the young, fables for the nursery, poetry, miscellany, anecdotes, sketches, editorials, and recipes complete a magazine of uncommon interest. "The Solemnization of Matrimony." (From the Monumental Messenger.) The Catholics put marriage among the sacraments of the Church of Christ. St. Paul pronounces it a "great mystery." The Prayer Book speaks of it as a "Holy Estate." And the form of entering into that "Holy Estate" is called "The Solemnization of Matrimony." Whether or not it be accurate and orthodox to hold marriage as a sacrament may be left to Theologians and Controversialists to determine: But as we set down the ceremony as an entrance to a "Holy Estate," and the Apostle calls it a "great mystery," we may, about as well, let those who term it a sacrament have their way; only it is odd that their priesthood avoid the sacrament. Our liturgy in using the words "The Solemnization of Matrimony" means to make the ceremony solemn and sacred. It is not to be entered into unadvisedly or lightly, but earnestly, discreetly, and in the fear of God. The look of Truth is good reading in this connection. The first record of human history is The Blessed Sacrament of our first parents by the Great Creator. All the Sons of God, in joy, sang the Ephthalium. ThS (Stand ?'..nsnmmatlon Is the mar rtaga feast of th" Umb. The last call to th?- ?Son of .Man in glory is: "The Church and the brida say come!" ThS worda that tell of man's creation are: So (Jod BrBBtad man In His own image. In th-> Image of God created He him: .Male and t'. male create?! He them. Tho creation of man was the last and glorious of the works of God. Ami th.- beautiful pslr Wer* complete In one toother. Man wat strangely made up of pairs; of I, hamis. feet, and throughout hla atruotars: and he. hlmsell is bttt one of a pair: not made to be alone: rly incomplete hy himself. So it is not aurpiialng thai the caremony thai completes hla being, should I ment? a most high, holy, and rnyst- rioua oonaeorattOB of the one to the other of Oo ' hy others known as "th.- solemnization of matrimony." it is a "Holy Batata" to live the life that God has ordained. All throughout Scripturs, marriage is ammatJon devoutly y eiiibl. in and an.! promt a of Hassan. Th?' ?n Into the Holy II 'Y.ti ?s represent???! And th.f New JerusI m to lb .ran M a bride adurn r ber busl i if woman ! ? as positive ly a pu Holy bcrtptur* ?s tha of man ami his restoration to the loss and ?worship of God. They are mutually sup; 1? in? ntary. The virtues and powers of the one and the graces and gentlenesses of the other make up th? Royal Kobe of Righteousness of Man?mai" aft. r the IflMga of ?".oil. It is an offlca worthy of our liturgy olemnlsa no il to Impresa it* y and r a mi blllty -an?) an noun .-s th_t belong | to It as a A happy marriage, pious and lovir.g hold, a H> ?v n-blest home are after the Itnaga of H? ren. An tn-assort- I ' roof "rder which prl-ie, hness, and InallgloB, the wori?i, tha rerall, are quite the aroridty and unloving mother h?s hsr psrt in Qrsat Etabyloa: i and imbltloua buaband well stand for the Prince of dark ness. lltlvatl in of the virtues and -rar' s iry to B bsppy home ara to HsassB i as - ilssan? Of :?mony in the minds and hearts of all men and women is a v.iy f niahlng Haaren on 1 - tha rainbow la g i ' '"Vim,' kindness, so i- i|.. boma tha aitasss of a. in th?? weIl?ordsred I. ntatlv* of : tha lom An.i tha ; ray? r th t our i^-rd has. ' ?s. Our r.-'u-r, a ! I T! y .- | ! ar.- to b ' i sad n uns of fat! Hla peaysr sol ?nnize matrimony?fatb rimo.i .and moth rhood. I ? orrei-llon. araon, NT. C, N? amhsi 3, is^_. To tha I -, itch: Tha liai of Conl lerat? nasal otnct rs for Virginia an i North ?Carolina put, I li v lassas, if de signad to Include the names of natlra bom notwlth llng ti.e fact thai th, ir appoint* ?er States, must contsln man omli ions. The an i :. I to this I was born as a assistant surgeon from Bill to duty on the. I. Later, when the south was summoned, I was assigned duty at Drewry's Bluff, with the forces at that station. We desire to say to our distinguished staff that the Hal in question was not made up by the Dispatch, but by the war to Washington. Our publication was made from advance sheets, sent out to challenge criticism in the book itself. I see in your issue of October 9th, in the record of the office of the Consul of the Navy, that you report me as having been born in Virginia; also, that I was still in May 18, 1864. Both statements are errors. First, I was born in the report of my death. Colonel Draper, United States army, has been in the Navy Department for the past few months. There is no report of my death in the Navy Department. If you wish to the presidency of the Alabama Commission, Court in. The CBS of W. W. bet, for damages I did to his vessel. The Ili I captured, you will find I proved that I was the original Maxwell. I have also a BB-BBSf of ship's cippings to prove my statement. Yours respectfully. JOHN MAXWELL. Get the Basement, The specialist is the man of the age. There is no all-around skill nowadays. It is an who does himself to one thing is the master of success in that. He has the enviable reputation and unrivaled popularity of Dr. Gasas, west Vourtssath street, New York city. He has made a specialty of cases which cause debility and nervous prostration and in this field has no rival. Weak men and women, in him a benefactor and friend. He fills them out of the gloom of despair into the sunlight of hope. If you are weak and ailing, get his aid. You can consult him by letter free. Cost no nothing. He will give you back your strength, invigorate, and revitalize you; system. As he has cured others, he can cure you. Write to him today. Cards, bill-heads, statements, letter heads, note-heads, circulars, etc., printed by the company at low prices. Will give you good work at the same prices you pay for inferior work. Send us your orders and we will guarantee satisfaction in every particular. "A PERFECT FOOD? Wholesome and it is Delicious." WALTER, BAKER & CO.'S BREAKFAST COCOA "Hes stood the test of more than too years' money, and for purity and honest worth is unmatched. Costs less than ONE CENT a Cup. Trade-Mark on Every Package. WALTER BAKER & CO. LTD., Established 1780. DORCHESTER, MASS. Brood 9 Ms. L? U2? Without Saying if you want to get your money's worth you should trade at Rotiicrt & Co/s where you will certainly to WE CAN SAVE YOU FROM $10 TO $20 THESE GOODS. Manufacturers were low in filling orders, bought where we thought we could get them the quickest. Result! All shipped at once, and Over Crowded our space? Consequently we must make that will move them. Suits that were to bring $15 yours if you want one for $30. Corresponding prices on every Suit in house. Chamber Suits, in Walnut, Mahogany, and Oak? a very neat Suit, 10 pieces, French Plate Glass, tin- new Golden Oak finish, for $35. Cash or on easy payments. Carpets. One of our hobbies. We have them in every style?Hemp, Cotton, Wool, Two-and-Three-Piece. try? Velvet, Wilton, and Body Brussels. Carpets made, laid, and lined with promptness. No delay. Rugs, Art Squares, Linoleums, Lace Curtains. Mattings, Portieres, Blankets, Comforts, Etc, Dinner Sets, 100 pieces, Best for the Money, $12? FANCY ROCKERS, HATRACKS, CHIFFONNIERES. Every article marked plainly No deviation. CASH OR CREDIT. Weddin Gifts. Our stock abounds in articles suitable for Wedding or Birthday Gifts. An effort is our concern to offer newer and better qualities than can be found elsewhere. We have a particularly rich assortment of Silverware, from inexpensive but pretty trifles to massive pieces and sets. In Gold Jewelry, Spectacles, Stones, and Art Goods we are equally well prepared to meet your needs. Lower prices than ours for the same qualities you cannot find. THE NOWLAN CO. 621 East Main Street. The Lost Chord has been given from among us of tune. You can always find the same note, true and constant, in a Chicago Cottage Organ. It's heard forth with Boston H St. Co. in voked when she changed angels to earth in a magnificent manner that it was Heaven. Our Music Stock of Pianos, Organs, and Musical Instruments is unexcelled. CABLE PIANO CO., Successor to Richardson Rogers Co., J. Q. CURLEY, (Wgr M^ 213 east Broad Street. We manufacture the Coneover, Schumann, and other pianos. Sole agents for the Schumann Piano Co. ENNYS'S VALUABLE PILLS (LADIES) are recommended for all female complaints. French Fomio r\* mm __ a.?. __ _?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_?_? OluO l'A I* Kit!? KILL?ALK at 1*C. PER H UN DUET at iti_ , DISPATCH OFFIC |->i(U?.,1,?.u?-. I**'1*** *"***'yg, |-* M-..- 11 t. 1..' *_,,.1 I., M. M I? WM >?." _? J*..yarl.s., Sur? *r?a.\, ',-...?M ?.rw./(-?.-."kiinr??y T, eo-Ulaln. full p_piic-U.i.-i.-i.-i.-i.-i.-i.-i.-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i
| 27,713 |
https://simple.wikipedia.org/wiki/Tropical%20Storm%20Bret%20%281993%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
Tropical Storm Bret (1993)
|
https://simple.wikipedia.org/w/index.php?title=Tropical Storm Bret (1993)&action=history
|
Simple English
|
Spoken
| 85 | 114 |
Tropical Storm Bret was a deadly storm that crossed Venezuela, Colombia and eastern Nicaragua. Winds of this storm peaked at 60 miles an hour. Bret caused serious damage and the deaths of almost 200 people along its path. The storm happened in early August 1993. It was the deadliest Atlantic cyclone of the 1993 Atlantic storm season.
Atlantic tropical storms
20th century in Venezuela
20th century in Nicaragua
20th century in Colombia
August events
1990s in South America
1993 in North America
1990s in weather
| 22,036 |
1778214_1
|
Court Listener
|
Open Government
|
Public Domain
| null |
None
|
None
|
Unknown
|
Unknown
| 1,215 | 1,589 |
54 So. 2d 524 (1951)
SUNSHINE CONST. OF KEY WEST, Inc.
v.
BOARD OF COM'RS, MONROE COUNTY.
Supreme Court of Florida, en Banc.
October 19, 1951.
Thomas S. Caro, Key West, for appellant.
Paul E. Sawyer, Key West, for appellee.
*525 THOMAS, Justice.
In this case it seems that the issues would be more simply presented by developing the facts as we discuss the first two of appellant's questions.
The Board of County Commissioners caused to be published a notice that a public hearing would be held 13 March 1951 for the purposes of discussing the construction of a new jail and the repair and improvement of the courthouse, and hearing objections to the projects. This notice was intended to comply with Section 135.01, Florida Statutes 1949, and F.S.A.
The appellant contends that it did not because it appeared only in the issues of February 8th, 15th and 22nd and March 1st and 8th, of the Key West Citizen, a newspaper published "each day (except Sundays, Fourth of July, Labor Day and Christmas)" to quote the advertising manager's affidavit of publication. It is appellant's thought that the notice could have no efficacy because it appeared in the newspaper only four times in the thirty-day period preceding the day of the hearing, while the statute requires publication "for thirty days."
The appellant concedes that if a weekly newspaper had been used the five publications would have been sufficient, but insists that inasmuch as a daily was employed there could not have been compliance unless the notice appeared in every issue of the paper between February eleventh and March thirteenth. To support his position he cites three cases decided by the Supreme Court of Nebraska: Union Pac. Ry. Co. v. Montgomery, 49 Neb. 429, 68 N.W. 619; Stevens v. Naylor, 75 Neb. 325, 106 N.W. 446; and Claypool v. Robb, 90 Neb. 193, 133 N.W. 178. Neither is convincing.
The Legislature made no attempt to characterize the newspaper by the number of its issues. That body used only the term "newspaper" and then emphasized it by the provision that the notice appear in a newspaper published in the circuit if none was published in the county. To get a proper definition of a "newspaper" we must go to Section 49.01, Florida Statutes 1949, and F.S.A., where we find, so far as the number of publications is concerned, that a newspaper, in which legal notices may be given, is one published "once a week or oftener".
The county commissioners were authorized then to place the notice in a paper published "once a week or oftener" and they chose one published six days out of seven. But there was no injunction in the law to put the notice in each issue and so to hold would be to supply something not required or, we think intended. The qualification of a newspaper is not tested by the frequency of its issues so long as the paper is published at least once each week. There seems no reason to conclude that a board which has the choice of a weekly or daily newspaper would be required to publish a notice seven times as often in one as in the other. A notice appearing once each week in either would suffice.
We agree with the opinion in White v. Multnomah County, 74 Or. 96, 144 P. 1193. Under the Oregon law a notice of the sale of bonds was required to be given for two weeks in a newspaper in the county, in a leading newspaper in the city of Portland and in a financial newspaper in the city of New York. The first was a weekly, the last two were dailies. The court rejected the contention that the notice should have appeared in all issues of the dailies for the designated period.
The notice in the instant case was sufficient.
After the hearing the Board of County Commissioners adopted a resolution, pursuant to Sections 135.01 and 135.02, Florida Statutes 1949, and F.S.A., declaring the need of a new jail and repair of the courthouse, and providing for the levy of a tax of five mills for fifteen years to pay for the improvements. Later, a contract for the work was let and the commissioners agreed to deliver to the contractor certificates of indebtedness "in anticipation of the collection of the building tax."
There is ample authority in the opinions of this court for the issuance of certificates of indebtedness to finance the construction of a jail, Tapers v. Pichard, *526 124 Fla. 549, 169 So. 39, 41, and a courthouse, Posey v. Wakulla County, 148 Fla. 115, 3 So. 2d 799, in anticipation of the five-mill levy instead of waiting until the accumulated taxes levied and collected under 135.01 are sufficient for those purposes. To quote from the former opinion, the county need not wait until the cash is in hand but may pay for the construction "from the funds as they are collected * * *."
As this writer understands the opinions, the method approved by this court does not contemplate an obligation to pay to the certificate holder any moneys except those realized from the "building tax."
The certificates now proposed do not comport with that plan. It is to be stipulated in the instruments, according to the resolution of the commission, that to insure their "prompt and full payment * * * from the tax in anticipation of which [they are] issued and interest thereon the full faith and credit of said county is irrevocably pledged." (Italics ours). It might be plausibly argued that it was only intended to insure an application of the building tax to prompt discharge of certificates due, but if that be the sole idea there is no occasion irrevocably to pledge the full faith and credit of the county. If these words are superfluous they should be deleted; if they are not, the bonds would not be valid in view of Section 6 of Article IX of the Constitution, F.S.A.
If it is purposed to pay the certificates from the tax but the interest from some other source, for which the credit and faith of the county is pledged, as a literal interpretation would indicate, then the language is objectionable.
The ultimate test of the validity of obligations issued without an approving vote of freeholders who are qualified electors is the remedy of the holder in event of default. In the case of certificates with which we are dealing, a default should entitle the debtor to a coercive writ affecting only the income from the five-mill levy.
A discussion of appellant's third question would add nothing of importance to what we have already written.
So long as the proposed bonds remain in their present form without deletion of the objectionable language the bill contains equity. Therefore we are constrained to reverse the decree of dismissal.
Reversed.
SEBRING, C.J., and TERRELL, ROBERTS and HOBSON, JJ., concur.
CHAPMAN and ADAMS, JJ., dissent.
CHAPMAN, Justice (dissenting).
It is my view that the decree of dismissal entered below should be affirmed on authority of Tapers v. Pichard, 124 Fla. 549, 169 So. 39; Hearn v. Warner, 142 Fla. 281, 194 So. 791, and Posey v. Wakulla County, 148 Fla. 115, 3 So. 2d 799.
ADAMS, J., concurs.
| 11,809 |
https://ru.stackoverflow.com/questions/1429214
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,022 |
Stack Exchange
|
https://ru.stackoverflow.com/users/357705, ne110
|
Romanian
|
Spoken
| 144 | 605 |
не меняется state, когда к нему приходить новый данные из пропса
const [updateDesc, setUpdateDesc] = useState(desc.desc);
console.log(updateDesc);
const changeDesc = (e) =>{
setUpdateDesc(e.target.value);
setValueDesc(e.target.value);
}
return (
<div className="flex items-center bg-green rounded-md mb-[24px] p-[20px]" key={id}>
{
desc.desc ?
<>
<input type="radio" name="text" value={desc.desc_id} onChange={(event) => selectText(event.target.value)}/>
<div className="ml-[20px] text-sm font-normal">
<textarea value={updateDesc} onChange={(e) => changeDesc(e)} className="outline-0 bg-inherit" name="desc" id="id" cols="90" rows="5"/>
<p className="mt-[15px] text-extra-gray">{updateDesc.length} characters</p>
</div>
</>
:
null
}
</div>
);
};
Попробуйте использовать хук useEffect
https://ru.reactjs.org/docs/hooks-effect.html
const [updateDesc, setUpdateDesc] = useState(props.someValue);
useEffect(() => {
setUpdateDesc(props.someValue)
}, [props.someValue])
спасибо чел, выручил!
Только совсем не понятно зачем заворачивать пропсу в state?
https://codepen.io/latdev/pen/qBoaKpQ
function Inner(props) {
return <div>
<h2>Inner</h2>
<pre>Count {props.count}</pre>
<a href="#" onClick={$ => props.resetPtr()}>Reset</a>
</div>
}
function App() {
const [count, setCount] = React.useState(0);
return <div>
<h1>Outer</h1>
<Inner count={count} resetPtr={$ => setCount(0)} />
<a href="#" onClick={$ => setCount(count+1)}>Add</a>
</div>;
}
ReactDOM.render(<App />, document.getElementById("container"));
| 49,068 |
https://github.com/KRISHITECH/farmbot-web-app/blob/master/spec/controllers/api/devices/devices_controller_show_spec.rb
|
Github Open Source
|
Open Source
|
MIT
| null |
farmbot-web-app
|
KRISHITECH
|
Ruby
|
Code
| 76 | 232 |
require 'spec_helper'
describe Api::DevicesController do
include Devise::Test::ControllerHelpers
let(:user) { FactoryGirl.create(:user) }
describe '#show' do
it 'handles deviceless requests' do
user.update_attributes(device: nil)
sign_in user
get :show, params: {}, session: { format: :json }
expect(response.status).to eq(422)
expect(json[:error]).to include("You need to register a device first.")
end
it 'has expected keys' do
sign_in user
get :show, params: {}, session: { format: :json }
{ id: Fixnum,
name: String,
webcam_url: String }.each do |name, klass|
expect(json[name]).to be_an_instance_of(klass)
end
end
end
end
| 4,241 |
https://github.com/EMCECS/atmos-java-client/blob/master/src/main/java/com/emc/atmos/mgmt/bean/Rmg.java
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,022 |
atmos-java-client
|
EMCECS
|
Java
|
Code
| 405 | 858 |
/*
* BSD 3-Clause License
*
* Copyright (c) 2013-2018, Dell EMC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
package com.emc.atmos.mgmt.bean;
import javax.xml.bind.annotation.XmlElement;
public class Rmg {
private String name;
private String localTime;
private int nodesUp;
private int nodesDown;
private float avgLoad15;
private float avgLoad5;
private float avgLoad1;
@XmlElement
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@XmlElement
public String getLocalTime() {
return localTime;
}
public void setLocalTime(String localTime) {
this.localTime = localTime;
}
@XmlElement
public int getNodesUp() {
return nodesUp;
}
public void setNodesUp(int nodesUp) {
this.nodesUp = nodesUp;
}
@XmlElement
public int getNodesDown() {
return nodesDown;
}
public void setNodesDown(int nodesDown) {
this.nodesDown = nodesDown;
}
@XmlElement
public float getAvgLoad15() {
return avgLoad15;
}
public void setAvgLoad15(float avgLoad15) {
this.avgLoad15 = avgLoad15;
}
@XmlElement
public float getAvgLoad5() {
return avgLoad5;
}
public void setAvgLoad5(float avgLoad5) {
this.avgLoad5 = avgLoad5;
}
@XmlElement
public float getAvgLoad1() {
return avgLoad1;
}
public void setAvgLoad1(float avgLoad1) {
this.avgLoad1 = avgLoad1;
}
}
| 50 |
BA/1889/BA_18890129/MM_01/0003.xml_1
|
NewZealand-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,889 |
None
|
None
|
English
|
Spoken
| 3,348 | 5,631 |
Manner which created quite a sensation at the outset, the detectives are at a loss to conceive, unless it was to gain notoriety. London, Jan. 27. Sir Francis Dillon Bell, executive commissioner for New Zealand at the Paris Exhibition, will visit Paris next week in connection with the representation of New Zealand. Mr. Westgarth, the well-known financial authority, is making preparations for launching a trust association with its colonial headquarters at Melbourne. There is every prospect of the venture being a success. Mr. William O'Brien, who escaped from custody while a charge was being heard against him, is still at large, but the Court has passed a sentence upon him of four months' imprisonment without hard labor. It is believed that yesterday's episode was pre-arranged. The Pall Mall Gazette states that the opinion of very eminent counsel is being secured, and that there is every reason to believe that the action taken by the shareholders of the Queensland Investment Company against the local directors will be sustained. New Zealand, butter is quoted at £4 4s to £5 165. The statement that Mr. W. A. MoArthur, member for St. Austell, was about to resign his seat on the ground of ill-health is contradicted. The Pall Mall Gazette expresses the opinion that the third series of wool auctions in Yorkshire and on the Continent will be unexampled. Mr. Buskin, the well-known author, is recovering from his recent severe illness. The Economist expresses the opinion that the third series of wool auctions in Yorkshire and on the Continent will be unexampled. presided, admitted that Imperial federation was not beyond the reach of a statesman. The first step was perfecting the means of mutual defense. If it were understood - that any insult or attack on one member of the federation would be resented by all it would be greater security than all the armies that were now supporting the Empire. It is rumoured that Lord Sackville, formerly British Ambassador at Washington, has been appointed. Diplomatic Agent at Constantinople. The statue erected in memory of General Gordon in Trafalgar Square was today covered with flowers. The Maoris played a game at Somersets yesterday, winning by four goals and five tries to one goal and one try. New Zealand hemp is quoted at from £38 to £40 per ton. It is understood that Sir Henry Loch's term as Governor of Victoria will be extended. Mr. Phelps, United States Minister in London, was entertained at a banquet at the Mansion House on the occasion of his departure for Washington; Responding to the toast of his health, Mr Phelps referred to the cordial feeling existing between England and America. The Financial News criticizes adversely the New Zealand Loan accounts. The Eight Hon. Beresford Hope is attempting to upset Lady Sandhurst's election to a seat on a County Council. The residents of the island of Tubai have petitioned the British Government to annex the island. No decision has yet been arrived at by the Government in the matter. Further particulars to hand with respect to the scene which occurred at the trial of William O'Brien at Garrick yesterday show that Mr O'Brien and his counsel (Mr Healey) were met at the railway station by a crowd of sympathizers, and that O'Brien and Healey made an attempt to pass the police lines to mingle with the crowd. In the attempt to prevent this, they were ill used by the police. and they proceeded to walk out of the Court. O'Brien was seized by the police but slipped out of his coat, leaving that article of clothing in the sergeant's hands and made off. Outside the Court he was surrounded by thousands of sympathizers who defied the police. Armed with a warrant the latter vainly attempted to re-arrest the prisoner, and a riot ensued, the struggle between the police and O'Brien's party lasting several hours. THE BUSH ADVOCATE, TUESDAY, JANUARY 29, 1889. TINTED tne.lpipi^|rtte ; \ t; :■': that they cart have Printflt|M^ e>ery. descriptibn executed onijMl! ' shortest notice, and at Napier ra,TOW the 'Advocate Office, jOanevitkl. $ujv porfra Bush Industry; : v. WANTED Knowjb^ihe^Mfef; signed is a large bUYcfbffif^ class^butter, highest |itic#P?eirr 's?&■ ■'■•. counts settled ever jr :^ ; montii i Itmli either cash or goods tts':requir*d.\it> ,J. BOVVES, Diclceng-Styeet,Nfcpi^ , WANTED Known-Th'atGhaASs Mariibqe has e^dtedf hls ! Pnd- tographic Studio: next to iht'i 6ch601, Ndrsewpod. Carte de , Vjsifoe, :■} Hf per doz. ; Cabinet, 15s ,per half qbz. Out-doors Groups, Eesidedcefe, ttfii! to order. Every effort Md* to rfiff satisfaction. ' ' i; ; '^y. \\T : AIM 1 J^JJ, brAMrty all y l|pa«, •. T T ; :-• used and unusedj l^.awr M&fc Lities, large or small,: The UtftVosfc value given in caste "6f\ :^ipEfift (scraps, albums, boo^B»s.'ifciJ^fc'.). Prompt remittanc*'. tLna?4&fofiffl6n guaranteed in all cases. Adcfr'ess— Robert Botd, Penton Place, Ken- hington street, London. FOR CHRISTMAS PRESENTS, Toys, and Fancy Goods ! 1 It would be worth your while to pay An Early Visit To George Moore's FANCY GOODS & STATIONERY DEPOT. NEARLY OPPOSITE POST OFFICE, WOODVILLE. HE has just opened up his new Goods, which will be found to be the BEST and CHEAPEST erer offered in the district. All the Christmas Annuals in Stock. Lett's and N.Z. Diaries. Music and Musical Instruments of 1 All Kinds. ON SALE— A fine-toned Palace Organ, £20 cash, or on terms as per agreement. Specially Appointed Agent Fob ' The Illustrated London News (Aflta- tralian, edition), 6d per. copy : Sydney Bulletin, Mail and Tribune, Aielboflrnn Punch, Adelaide Lantern, N.Z. Family Friend, &c, which can be supplied through the post. Presentation and Prize Books. GEORGE MOORE, NEARLY OPPOSITE POST OFFICE, ' WOODVILLE. NEW BOOT STOEE. K. HOWE Desires to notify his customers and the General Public that he has added to his bootmaking business a READY MADS DEPARTMENT and has just received his first con signment of new and fashionable goods- Care has been taken ii selecting so that purchasers should be satisfied both with quality and style. Ladies' Kid Boots Ladies' Kid Shoes (button) Children's Kid Boots Children's Boots and Shoes in Variety Men's Boots all sizes and prices T, HOWE Will endeavor to supply & good article at a reasonable price, and invites a trial. BOOTS MADE TO ORDER, THE ADDRESS IS T, HOWE BOOTMAKER AND IMPORTER DANEVIRKE, Opposite Railway Hotel. AMERICAN BOWLING ALLEY WILL BE OPEN ON AND AFTER SATURDAY, FEBRUARY 26th, 1889. R. T. BRIGHOUSE. Business Notices. WANTED: That W. Prebbess, wholesale and Retail Fruiterer, Napier, has, the Best Assortment of Local Fruits and Imports direct in their season. Choice Fruits from Tasmania, and Sydney; also receives Weekly Shipments of Smoked Snapper, Mullett, Barracoutta, and other Cured Fish. Wholesale Purchasers liberally dealt with. MEDICAL NOTICE. DR. HENRY WILLIAMS, M.D., L.S.A., London, late Coroner and Provincial Surgeon, Blenheim, who has had 30 years' experience as an Updating Surgeon and Physician, can be consulted at his Dispensary, Yogel Street and McLean Street, Woodville. DANEVIEKE READY MOONEY STORE. A LARGE ASSORTMENT of Ladies', Gents', and Children's COLONIAL AND FOREIGN BOOTS AND SHOES. WE also invite Inspection of our Enlarged Stock of GROCERIES, IRON MONGERY, CROCKERY, and DRAPERY, Which we supply as usual at most reasonable prices. Agents for— Professor Biok's Non-explosive Liquid with Kerosene; price, 25 per bottle. Should be kept in every house. CANNOT BE SURPASSED. FOR SAFETY, DANEVIRKE AGENTS; Ronberg & Clausen. EXHIBITION AT ORMONDVILLE. WESTLAKE, having this season made a special trip to Wellington to select a choice lot of goods is in a position to offer the public this year, excellent value and good choice. CHRISTMAS TABLES CHRISTMAS TABLES Best Value ever offered in New Zealand ON THE SHILLING TABLE. Cashmere stockings worth 25c 6d Straw Hats 2s Glass Dishes 2s Towels 2s Buckets 2s Frying Pans 2s FOR ONE SHILLING EACH, AND A GREAT NUMBER Of FANCY ARTICLES CLOTHING! CLOTHING! Men's Colonial Tweed Suits, any size, from 35c upwards Youths' Tweed Suits any size Boys' Knicker Suits any size In fact, the people say, IT IS THE BEST AND CHEAPEST LOT OF GOODS EVER SEEN IN THE BUSH W. Westlake, WORKING MEN'S STORE ORMONDVILLE. W GARRETT. COMMISSION AGENT. Loans Negotiated from to,gio,ooo NO INQUIRY FEES. Offices: Browning-Street, Napier (next Union Steamship Co.) Business Notices. [Card.] TT A. BAMFORD, BARRISTER AND SOLICITOR, DANEVIRKE, HAWKINS' BAY. } /^j M. WHITINGTON, ASSAYER, AND METALLURGIST, Hastings-Street, Napier. E. V. DIXON, DRAUGHTSMAN & LANS and Specifications prepared for any class of work, buildings, machinery, bridges, etc. Estimates of timber, earth, and ironwork provided on the shortest notice, mill saws hammered and guaranteed true, Native business transacted, Terms Moderate. Why not patronize the practical man, Opposite Church of England, Danevirke. GROWNE & BARGH, Authorized and Licensed SURVEYORS, CIVIL ENGINEERS, LAND AGENTS, Etc. Agents for the Imperial Fire Insurance Company. Plans and Specifications of Road Works for Local Bodies prepared and all kinds of Survey work done. JOSEPH CHICKEN, WATCHMAKER & JEWELLER, OPPOSITE THE Railway Station, Ormondville. A LARGE Stock of Gold and Silver Jewelry always on view, which will be sold cheap for cash. £10,000 GIVEN AWAY TO BUYERS OF A BOTTLE OF BREAD ALBANE WHISKY. Shipped by Alex. Ferguson & Co., Glasgow. particulars from all Wine Merchants, Store-keepers, Hotel-keepers, Hotel-keepers, and Spirit Dealers. Wholesale Agents — Davidson, Irvine & Co., Napier, N.Z. WOODVILLE STEAM WOOD-WARE FACTORY. THE proprietor of above having a most complete plant of woodworking machinery and a large stock of Sawed timber, is in a position to supply, and will, Woodwork of all descriptions at half the usual cost. Builders will save money by obtaining, price list before ordering elsewhere. I QUOTE A FEW PRICES:— Pairs of sashes 4 lights size of glass, 28 x 15 at 11/6. Pairs of Sashes 4 lights size of glass, 32 x 18 at 14/-. Oasement sashes from 4/- each. Double Moulded four-pannelled doors from 11/6. FREIGHT PAID ON ALL GOODS. Table Legs from 2/~ a set. Special Prices for Large Orders. Apply to the Agents: Messrs RONBERG & CLAUSEN, OR TO W. D. SQUIRE, F2u'ct or y, Wood vi 1 c. /^IBKAP DRAPER FOR THE MILLION! The mime Ninepence is better than the Slow Shilling, S. G. Radford Having just received a lot of NEW GOODS, Purchased late in the season at a big reduction, is going to GIVE THE PUBLIC THE BENEFIT OF THE CHEAP PURCHASE. Come and Secure Bargains. Washing Prints, good quality, 25 lb per dozen yards Wasliing Muslins, for Pinafores, etc. Only 3rd a yard Men's Flannel Undershirts, only 25c each Men's Tweed Trousers, only 25c per pair Men's Silk and Satin Ties only 6c each White and unbleached Calico, 25c per pair Ladies' Corsets, white or colored, at 15c per pair Ladies' Corsets, white or colored, at 15c per pair Ladies' Corsets, 4c, 5c, and 6c per pair Ladies' Handkerchiefs only 15c each Ladies' Skirts, 15c, and 6c per pair Ladies' Hose, 6c, and 9c per pair Ladies' Lisle Gloves 6c, Taffeta is per pair Ladies' Umbrellas 2c 6c, 3c 6c, and 4c 6c Ladies' Black Jerseys from 3c to 10c All-wool Beiges 9c and 12c per yard Leather Slippers, 3c 6c, all sizes Men's Suits 21c, 2c 6c, and 30c, very strong FIRST-RATE DRESSMAKING AT LOW PRICES. S. G. Badford, London House Hastings-Street, Napier. Business Notices. T. O. Loughran, Barrister and Solicitor, Daneville and Waipawa. J. J. Browne, Dealer in General Merchandise, Ormondville. L. Siddell, Family Butcher, Market, Prime Meat to be had at this Establishment Families waited upon daily. Small goods a Speciality. W. Oatt-: I HAIRDRESSER, TOBACCONIST And Fancy Goods Dealer, Danevirke., TIANCY Goods and tobaccos; Always in Stock. REGISTRY OFFICE. Several Servants and Situations Waiting Engagements. Razors and Scissors Set and Ground. E. Hall ARTIST PHOTOGRAPHER, WOODVILLE & DANEVIRKE. High Class Photography At Wellington Prices. E. HALL'S Next visit to Danevirke will be on SATURDAY, 12th JANUARY, Staying Over MONDAY THE Urn ETTALL begs to draw attention to his NEW Cameo Enamel Vignette, which only has to be seen to be admired. Photography in all its Branches, including Enlargements in Oil, Water Color, Crayon, &c. Lessons Given in Water Color Painting, and Indian Ink, also Crystoleum Painting. STUDIO: Mr Wright's Restaurant, Danevirke, Where Arrangements can be Made for Sittings and Out-Door Work. Good Selection of Pictures. Mouldings Kept in Stock and Framed to Order. 1889 TDASMUSEN & CO. CHRISTMAS GOODS. NEW YEAR'S GOODS. NEW SEASON'S GOODS. RASMUSEN & CO, ALMANACS For 1889. PRESENTS For 1889. DRAPERY For 1889. RASMUSEN & CO., CHEAPEST STOREKEEPERS IN THE BUSH. Universal Satisfaction. Largest Variety. RASMUSEN & CO., GENERAL MERCHANTS, CROCKERY WAREHOUSEMEN BOOTS AND SHOES. RASMUSEN & CO. GOOD FOR ANYTHING. VALUE FOR YOUR MONEY. A Happy Christmas. RASMUSEN & CO., Danevirke. THE JUNCTION HOTEL NORSEWOOD. The Proprietor begs to return his thanks for the liberal patronage bestowed upon him since the opening of his house, and desires to assure the traveling public that every attention will be given to the wants of those favoring him with their patronage. The Hotel is now thoroughly stocked with everything of the best. Comfortable Bedrooms, a Splendid Billiard Table, and an excellent cause enable the proprietor to offer the most desirable accommodation to be found at a country hostelry. Special terms made for families visiting Norwood during the summer months. Capital stabling and paddock accommodation. Coach from the door to Ormondville three times daily. Communications by post attended to. A. WRIGHT, Proprietor. Must Go— If you use Andrew's Poisoned Wheat Fraseu & Co., Agents. Public Notices. THE BUSH ADVOCATE. A COUNTS for the Quarter ended Dec. 31 are now rendered and a prompt settlement would oblige. J. R "CLAYTON. WAIPAWA COUNTY COUNCIL. HENDERS will be received up to 1 Noon of FRIDAY, February 1st, 1889, for the right to collect the Dog Registration Fees collectible by the Council for the year ended December 31st, 1889. Tenders to state a lump Sum for the whole County or each separate Riding. Specifications to be seen at the County Office, Waipawa, and at Mr Ronberg's Store, Danevirke, Mr Ole Ericksbn's, Norsewood, and Mr R. Groom's, Or Mondville. The highest or, any tender not necessarily-accepted. C.TUELY, County Clerk. Waipawa, January 22, 1889. NEW BOARDING HOUSE. MES POWELL begs to announce that she has opened a Boarding House at Danevirke, and will provide accommodation at very reasonable rates. Terms from 15s per week. Address -MES POWELL, Miller's Road. (Late D. Me'Callum's house.) : AUTUMN MEETING OF THE DANEVIRKE JOCKEY CLUB. To be held on the Club's Course, Tahoraite, on WEDNESDAY, MARCH 6, 1889. Subject to the Rules of the Hawke's Bay Racing Association. All Races at this Meeting confined to Hacks only. President: Mr W. F. Knight. Vice-President: Mr G. D. Hamilton. Judge: Mr J. C. Fraser. Starter: Mr T. McDermott. Clerk of the Scales: Mr F. J. Popple well. Clerk of the Course: Mr R. Taylor. Handicapper: Mr J. Huntley. Stewards: Messrs G. Wratt. T. McDermott. O. Baddeley B. Denney M. Henderson R. Dickey F. J. Popplewell R. Taylor J. C. Fraser Hoera Rangi-wae- J. Allardice Kawae Programme. 1. Handicap Hurdle Rage, of 15 soys., second horse to save nomination and acceptance money from stakes; distance about 2 miles, over 8 flights of hurdles 3ft 6 in high. Nomination, 10s; acceptance, ss. 2. Handicap Pony Face, of 6 soys.; distance. about 6 furlongs. Nomination, 3s ; acceptance, 3s. Ponies 14h. 2in. and under. 3. Danevirke Handicap, of 25 soys., second horse to receive 5 soys. from the stakes; distance about 1 mile. Nomination, 10s; acceptance, 15s. 4. Selling Race, of 10 soys. Winner to be sold with all engagements for 15 soys. Any surplus to go to the funds of the Club; distance about 1 mile; maximum weight 9st 71b; allowed for every £5 off selling price. Entrance 10s. 5. Members' Handicap, of 10 soys.; distance about 1 mile. Minimum weight 9st 71b; horses to be owned and ridden only by those who are members before 13th of February. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys.; distance about 1 mile. Nomination, 5s ; acceptance, ss. 6. Flying Handicap, of 10 soys Handicap, 5s; Flying Handicap, 5s Wednesday, 20th February — Weights declared. Wednesday, 27th February — Entries for Selling Race, also ac- ceptances for Handicap Hurdles, ss; Handicap Pony Race, 3s; Danevirke Handicap, 15s; Members' Handicap, ss; Flying Handicap, ss. RULES AND GENERAL CONDITIONS. Colors, pedigrees, and performances must accompany entries in all cases. All events close at 9 p.m., on February 13th, with the Secretary at Danevirko, and no nomination and acceptance will be received unless actually accompanied by the necessary amount payable. Hack shall mean a horse that has never started in a weight-for-ago or handicap race, hack handicap excepted, and that is not nominated for a Derby, Guineas, St. Leger, or Sapling Stakes, up to date of nomination. Weight-for-age shall mean where the weight-for-ago scale has been carried. The races will be run in the order advertised. Five percent deducted from gross amount of all stakes. Wm. BIERRE, (Secretary The urgent need of clearing the Makotuku school site is very apparent just now while fires are burning all round the township, and one member of the Committee stated last evening that clearing the site would mean the salvation of Makotuku. This is indeed the case and the sooner, the site is cleared the better for all the houses in the town. The railway department, seems to be very careless too in preventing dry standing trees from being burned by fire (some 16 trees) by which the fire may be carried and may destroy railway property. Certainly the best medicine known is Sander and Sons' Eucalypti Extract. Test its eminently powerful effects in coughs, colds, influenza; the relief is instantaneous. In serious cases, and accidents of all kinds, be they wounds, burns, scaldings, bruises, sprains it is the safest remedy— no swelling— no inflammation, like surprising effects produced in croup, diphtheria, bronchitis, inflammation of the lungs, swellings, etc.; diarrhea, dysentery, diseases of the kidneys and urinary organs. In use at hospital and medical clinics all over the globe; patronized by His Majesty the King of Italy: crowned with medal and diploma at International Exhibition. Amsterdam. Trust in this approved article, and reject all others. Late Advertisements. TAKAPAU. MESSRS BAGNALL Bros, have been appointed agents for the Advocate and subscribers can obtain their papers from them. DANEVIRKE TOWN HALL. THURSDAY, JANUARY 31. ALF. LAWTON'S Company. EVERYTHING NEW, NOVEL, AND ORIGINAL. 100 laughs in 100 minutes. PRICES— 2s and 3s. notice! WE, the undersigned, hereby give notice that on the 1st day of January, 1885, at 10 o'clock in the morning, at the office of one COW and CALF, branded J.P. on off rump, now running at Tahoraite, are not claimed within 14 days they will be sold to defray expenses. HOANI WIIAETIRI, WIREMU DUNCAN. January 26. NORTH 70 MILE BUSH'S HORTICULTURAL AND INDUSTRIAL SOCIETY. FIRST ANNUAL SHOW at MAKOTUKU on FRIDAY, FEBRUARY 15th. Particulars in future advertisements. Circulars may be had at this Office. J. BRABAZON, Hon. Secretary. DANEVIRKE TOWN BOARD DISTRICT. RATING ACT, 1876. ANE NOTICE. -The Valuation List for the Danevirke Town Board District for the year 1889-90 is now open for inspection at the Advo- cate Newspaper Office.
| 31,354 |
https://stackoverflow.com/questions/1400735
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,009 |
Stack Exchange
|
Alexandre Mendes, Habib, Joseph, Remus Rusanu, Ryston Watts, https://stackoverflow.com/users/105929, https://stackoverflow.com/users/2766191, https://stackoverflow.com/users/2766192, https://stackoverflow.com/users/2766193, https://stackoverflow.com/users/2766261, https://stackoverflow.com/users/2768679, user2766193
|
English
|
Spoken
| 193 | 296 |
smo doesnot display installed instances in w2k8 sql2k8 cluster?
I have cretaed an application via COM interoperability(using SMO and created a dll consume it in c++) which retrieves the local instances of sqlserver(basically try for network instances and from that trace out for local to make it as work for remote discovery of sqlinstances).
it is worked in all cases except win2k8sql2k8 cluster it worked for win2k3and sql2k8 cluster also.
it seem to be exception occured in COM dll connection issue.But the same is work win2k8 sql2008 non cluster
do i need any work around????
any help regard this............
Thanks in advance
@Rames Rusan what is alternative for this
You need to list the instances on the 'cluster' name.
means i have to give the cluster name..this already i did.that y i told working for w2k3 sql2k8 cluster but failed in w2k8sql2k8 cluster only.
In a cluster there is no 'local' instance. Even though it runs on a physical node at any one time, the instance is logically located on the cluster resource name and address. Since your application cannot run on the cluster resource, by definition a clustered instance cannot be 'local'.
| 35,770 |
https://openalex.org/W4312578214_1
|
Spanish-Science-Pile
|
Open Science
|
Various open science
| null |
None
|
None
|
English
|
Spoken
| 4,128 | 8,296 |
THERYA NOTES 2022, Vol. 3 : 168-175
DOI: 10.12933/therya_notes-22-91 ISSN 2954-3614
New records of Sturnira bakeri in northwestern Ecuador: field
notes about the species
Nuevos registros de Sturnira bakeri en el noroccidente de Ecuador:
notas de campo sobre la especie
Marco A. Rodríguez-Segovia1*
Universidad Central del Ecuador, Facultad de Ciencias Biológicas. Numa Pompilio Llona y Yaguachi, C. P. 170303. Quito, Ecuador.
E-mail: marcozeus24@gmail.com (MAR-S).
*Corresponding author
1
Despite Sturnira bakeri is a recently described species, little is known about its intraspecific variation, feeding and flying habits, and reproductive patterns. This research aimed to confirm the presence of this species in northwestern Ecuador by comparing voucher specimens
with the available literature. Several specimens of S. bakeri were captured in northwestern Pichincha. I collected 2 vouchers, but I focused on
a variable specimen (a specimen with some different traits) and compared it with the original species description. Field notes on their physical appearance, reproductive status and other habits are included. The presence of S. bakeri in northwestern Ecuador is confirmed based on
craniodental characters (such as the presence of bicuspidate upper inner incisors, serrated inner cusps on the lower molars, oval sphenorbital
fissure, basisphenoid pits shallow and divided by a midline septum) and measurements similar to previous studies, but with some morphological differences like the shape of the zygomatic arches. Sturnira bakeri was found in secondary forests and pastures, it lives in sympatry with
S. ludovici, and eats fruits of some plant species: Piper, Vismia, Cecropia, Drymonia, Anthurium and Psychotria. Variable specimens complicate
species taxonomical identification and species definition. The new records with data about diet and habits help to fill gaps in knowledge about
the species in this zone of the neotropics.
Key words: Diet; habits; reproduction; sympatry; taxonomy.
A pesar de que Sturnira bakeri es una especie descrita recientemente, se sabe poco sobre su variación intraespecífica, hábitos de alimentación y vuelo, y patrones reproductivos. Esta investigación tuvo como objetivo confirmar la presencia de esta especie en el noroccidente de
Ecuador mediante la comparación de especímenes voucher con la literatura disponible. Varios ejemplares de S. bakeri fueron capturados en
el noroccidente de Pichincha. Recolecté 2 vouchers, pero me enfoqué en un espécimen variable (un espécimen con algunas características
diferentes) y lo comparé con la descripción original de la especie. Se incluyen notas de campo sobre su apariencia física, estado reproductivo
y otros hábitos. La presencia de S. bakeri en el noroccidente de Ecuador se confirmó por características cráneo-dentales (como la presencia de
incisivos internos superiores bicúspides, cúspides internas aserradas en los molares inferiores, fisura esfenorbital ovalada, fosas basiesfenoideas poco profundas y divididas por un septo) y medidas similares a estudios previos, pero con algunas diferencias morfológicas como la forma
de los arcos cigomáticos. Sturnira bakeri fue registrada en bosques secundarios y pastizales, vive en simpatría con S. ludovici, y come frutos
de varias especies de plantas: Piper, Vismia, Cecropia, Drymonia, Anthurium y Psychotria. Los especímenes variables complican la identificación
taxonómica y la definición de una especie. Los nuevos registros con datos sobre dieta y hábitos ayudan a llenar vacíos de conocimiento sobre
la especie en esta zona del neotrópico.
Palabras clave: Dieta; hábitos; reproducción; simpatría; taxonomía.
© 2022 Asociación Mexicana de Mastozoología, www.mastozoologiamexicana.org
Sturnira bakeri was formally described as a new species in
2014, the distribution of the species was restricted to the
tropical dry forests from the southwestern coast of Ecuador
(Velazco and Patterson 2014). A further study expanded
its distribution towards the northwestern Perú, in tropical
humid forests (Sánchez and Pacheco 2016). Another study
reviewed museum specimens and determined the presence of the species in tropical dry and humid forests from
southwestern Colombia, the same study reported voucher
specimens with characters different to the original species
description (Montoya-Bustamante et al. 2017).
Many species’ original descriptions do not consider the
natural intraspecific variation among individuals. They are
made on just few specimens, which could hinder taxonomic identification (Jarrín and Clare 2013). The S. bakeri original description was made based on 3 specimens
(Velazco and Patterson 2014). There are other similar
examples of this in the Sturnira genus such as S. aratathomasi that was described with 3 specimens, S. sorianoi
described with 3 specimens, and S. mistratensis described
with only 1 specimen (Peterson and Tamsitt 1968; Vega
and Cadena 2000; Sánchez-Hernández et al. 2005).
Another problem with species like S. bakeri is a lack
of information about their feeding and flying habits, as
well as their reproductive patterns (Velazco and Patterson 2014). A great part of the diet in Phyllostomid bats
Sturnira bakeri in northwestern Ecuador
is known thank to seed dispersal studies (Saldaña-Vázquez
et al. 2014; Arias and Pacheco 2019), but the taxonomical
identification of seeds dispersed by bats is fairly difficult,
which is caused by the limited number of field guides in
neotropics about this topic (Kirkbride et al. 2006; Lobova
et al. 2009; Magalhaes de Oliveira and Pereira 2016). Additionally, the diet of Phyllostomid bats is highly variable in
space and time (Mello et al. 2011). Flying habits allows to
understand which habitats or ecosystems are commonly
frequented by bats, this is useful when researchers want to
look for a specific species (Tirira 2017). Reporting pregnant
females or females with juveniles, at specific times of the
year, are the base for other researchers to search reproductive patterns, which can be useful in conserving species
(Tirira and Burneo 2012).
This research aims to present a variable specimen of S.
bakeri with interesting characters and compare it with other
studies, thus supporting the presence of S. bakeri in northwestern Ecuador and contributing with the knowledge of
intraspecific variation. I present some data about biological
measurements to help in the identification of this species in
this part of neotropics. I also provide field notes about feeding and flying habits, and reproductive status of specimens
recorded.
As a part of the research project called “Effects of fragmentation on the taxonomic, functional, and phylogenetic
structure of mammal communities in northwestern Ecuador”, supported by Universidad Central del Ecuador (UCE),
I had the opportunity to study living specimens of S. bakeri
captured between January and August 2021. I captured
bats using mist nets in 3 agro-ecological reserves: Pambiliño, Chontaloma and Mashpi Shungo; from northwestern Pichincha at the Andean Chocó. The reference ecosystem was the lowland evergreen forest (LEF) of the western
Andes Mountain range, the weather here is quite warm and
it presents intense rains most of the year (MAE 2013). I used
4 habitats to capture bats: primary forest (3 nights), secondary forest in natural regeneration (11 nights), secondary
forest in assisted regeneration (4 nights) and pastures for
cattle (3 nights). Two vouchers were collected and deposited in the Museo Ecuatoriano de Ciencias Naturales (MECN
6797 and MECN 6811) of the Instituto Nacional de Biodiversidad (INABIO) with the research license given by the Ministerio del Ambiente del Ecuador (MAE-ARSFC-2020-0.512).
The specimen MECN 6811 held the principal characteristics
of the species, but MECN 6797 had some craniodental differences, being a variable specimen.
I focused on the variable specimen (MECN 6797) to compare it with S. bakeri original holotype description from the
mammal collection of Museo de Zoología de la Pontificia
Universidad Católica del Ecuador (QCAZ; Velazco and Patterson 2014), and 2 later descriptions of the species. The
first used specimens from the collection of Museo de Historia Natural de la Universidad Nacional Mayor de San Marcos (MUSM; Sanchez and Pacheco 2016), and the second
used specimens from the collection of Universidad del
169
THERYA NOTES Vol. 3 :168-175
Valle (UV; Montoya-Bustamante et al. 2017). The weight
was taken in grams with a digital balance for both living
specimens and vouchers. The age was determined by seeing the fused degree of hand-wing epiphyses (Jarrín and
Kunz 2011). The body and craniodental measurements
were taken in millimeters with a digital caliper (Appendix
1, 2; McCarthy et al. 2006).
Besides morphological measures, I collected seeds from
captured specimens. A common method to obtain batdispersed seeds is to keep animals captured in mist nets
into cloth bags for 1 hr to defecate, bats usually digest their
food during this time because of their fast metabolism. I
preserved the seeds in Eppendorf tubes with 70 % alcohol,
and each sample was labeled with a unique number to
avoid confusion. Although this is a useful method to obtain
seeds, it is fairly common that bats usually defecate when
they are recently captured in mist nets due to stress, I also
preserved these samples (Arias and Pacheco 2019).
I dried all samples in paper envelopes inside a drying
machine in the laboratory. Then I separated the dried seeds
from other fecal residues. The taxonomical identity of the
seeds was determined under the microscope using field
guides (Kirkbride et al. 2006; Lobova et al. 2009; Magalhaes
de Oliveira and Pereira 2016). The seeds were deposited at
the MECN. I created a map with the known records of the
species (Velazco and Patterson 2014; Sánchez and Pacheco
2016; Montoya-Bustamante et al. 2017; Romero 2019), and
potential records (GBIF 2022; Figure 1). Finally, this note
includes some data about the species feeding and flying
habits, as well as data about reproductive status.
I captured 14 specimens of S. bakeri in the sampling
sites. The variable specimen was different from the S. bakeri original description in characters such as: the absence of
process of glenoid fossa, poorly developed sagittal crest,
zygomatic arches with a little concavity at the middle, and
clinoid process absent. Despite these differences, it holds
the main characteristics used in the original description:
serrated inner cusps on the lower molars, bicuspidate upper
inner incisors, oval sphenorbital fissure, basisphenoid pits
Figure 1. Current distribution of Sturnira bakeri in South America. It probably exists
in western Andes range from western slopes of Colombia to northwest Perú less than
2,000 m.
Rodríguez-Segovia
Table 1. Comparisons of craniodental measurements (mm) in Sturnira bakeri from northwestern Ecuador.
(Velazco and Patterson 2014)
Measurements
MECN 6797 ♀
Holotype
QCAZ 1463 ♀
(Sánchez and Pacheco 2016)
(Montoya-Bustamante et al. 2017)
(n = 31)
(n = 7)
Braincase breadth
10.12
10.4
9.88 - 10.92
10.49 - 10.87
Condylocanine length
19.7
20.3
19.41 - 21.22
19.87 - 20.65
Condyloincisive length
20.5
21.1
19.96 - 21.97
20.54 - 22.5
Dentary length
14.37
15
14.32 - 15.86
14.07 - 15.07
Greatest length of skull
21.74
22.7
21.96 - 23.86
21.9 - 23.5
Length of mandibular toothrow
6.98
7.7
6.95 - 8.05
7.36 - 7.96
Postorbital breadth
5.83
5.9
5.58 - 6.42
5.8 - 6.21
Mastoid breadth
11.82
11.9
11.37 - 12.19
11.96 - 12.46
Maxillary toothrow length
6.77
6.9
6.44 - 7.11
6.52 - 7.23
Width at M2
Zygomatic breadth
8.13
12.98
8.3
13.5
7.87 - 8.65
12.87 - 14.34
7.62 - 8.29
13.43 - 14.33
shallow and divided by a low midline septum, tetracolor fur
on the back and tricolor on the belly, and the IV metacarpal
shorter than the III metacarpal (Velazco and Patterson 2014;
Figure 2). The measurements of the voucher specimen were
similar to those presented in previous studies (Table 1).
Sturnira bakeri can vary in dorsal fur coloration from light
brown to slightly darker brown. Ventrally it can be light
brown, whitish and even yellowish in appearance. Some
adult individuals are totally grayish, this especially occurs in
juvenile and sexually immature (Figure 3). In general, the
lateral folds of the ears (pinna) are poorly marked, and some
specimens lack them completely.
Pregnant females were captured in April (n = 2; the body
measurements recorded for all the specimens are shown
in Table 2). I found the species flying on secondary forests
in natural regeneration (n = 5), secondary forest in assisted
regeneration (n = 4), in pastures for cattle (n = 5), but it
was not found in primary forest. Sturnira bakeri lives in
sympatry with other species of the same genus such as S.
ludovici (Velazco and Patterson 2014). I found 8 different
seeds in the feces of the captured bats: Anthurium spp., Vismia spp., Drymonia sp., Piper aduncum, Piper sp., Psychotria
sp., Solanum sp., and Cecropia spp. Seeds like Drymonia
sp., P. aduncum, and Psychotria sp., are shared in diet with S.
ludovici (Kirkbride et al. 2006; Lobova et al. 2009; Magalhaes
de Oliveira and Pereira 2016; Figure 3).
The taxonomical identification of variable specimens is
difficult when original descriptions are based on few specimens, this is because it fails in capturing all the possible
natural intraspecific variation of species (Jarrín and Clare
2013). A species could be variable across different biogeographic distributions, complicating the taxonomical identification and compromising the species definition (Calderón-Acevedo et al. 2022). In fact, some characteristics could
be variable depending on the development stage and sex,
as example, it has been reported that there exists age and
sex variation in skull characters in many mammalian species, including the human beings (Šrámek and Benda 2014;
Avelar et al. 2017; Voyta 2017). This study, added to pre-
vious studies, show that S. bakeri can vary in morphology
between different zones in the Neotropics (Sánchez and
Pacheco 2016; Montoya-Bustamante et al. 2017), which
will facilitate identification for other researchers. I consider that the best characteristics to identify S. bakeri are:
serrated inner cusps on the lower molars and bicuspidate
upper inner incisors, oval sphenorbital fissure, shallow basisphenoid pits, medium size (average ± standard deviation,
and range and number of individuals in parenthesis; see
Appendix 1 for measurements): FA = 43.42 ± 1.59 (41.11 47.32; n = 24), GLS = 22.50 ± 0.54 (21.74 - 23.5; n = 9), CIL =
21.24 ± 0.58 (20.5 - 22.5; n = 9), these data are based in sizes
Figure 2. Details from the skull and jaws of Sturnira bakeri (MECN 6797). bp =
basiesphenoid pits are shallow and divided by a low midline septum; osf = oval sphenorbital fissure; b = bicuspidate upper inner incisors; dn = deep notch at lower molars.
www.mastozoologiamexicana.org
170
Sturnira bakeri in northwestern Ecuador
Table 2. Body measurements and another data for Sturnira bakeri captured in northwestern Ecuador. FA = Forearm length, EL = Ear length, HF = Hind foot length, TL = Total length,
W = Weight on gr., Rep. S. = Age and / or Reproductive state.
Specimens
FA
E
HF
TL
W
Sex
Rep. S.
S. bakeri MECN 6797
41.81
13.56
12.36
55.8
17
♀
Adult
S. bakeri MECN 6811
43.32
13.71
12.4
59.73
23
♀
Adult
S. bakeri
44.7
13.71
13
55.78
24
♀
Adult
S. bakeri
45.63
14.86
14.4
63.15
23
♀
Pregnant
S. bakeri
41.81
13.56
11.5
55.8
17
♀
Juvenile
S. bakeri
47.32
10.25
11.1
69.56
25
♀
Pregnant
S. bakeri
44.83
12
11.3
57.53
18
♂
Juvenile
S. bakeri
43.14
12.1
11.6
58.42
25
♀
Adult
S. bakeri
44.31
11.19
11.14
60.84
26
♂
Adult
S. bakeri
41.3
11.1
11.5
59.35
20
♀
Adult
S. bakeri
43.15
14.52
10.52
64.98
28
♂
Adult
S. bakeri
41.95
11.81
11.18
61.36
23
♂
Adult
Adult
S. bakeri
43.55
11.88
12.56
55.18
22
♂
S. bakeri
44.07
12.36
11.43
52.75
21
♂
Adult
Minimum
41.3
10.25
10.52
52.75
17
-
-
Maximum
47.32
14.86
14.4
69.56
28
-
-
Mean
Standard deviation
43.64
± 1.67
12.62
± 1.38
11.86
± 1.00
59.30
± 4.47
22.29
± 3.36
-
-
from this study and previous studies (Velazco and Patterson
2014; Montoya-Bustamante et al. 2017), and a restricted
distribution to the western slopes of the Andes (Jarrín and
Clare 2013; Velazco and Patterson 2014).
Despite S. bakeri is considered as a least concern species
(Tirira 2021), there exist threatens for the populations of the
species in this part of neotropics due to fast habitat fragmentation in the Andean Chocó, which is caused by cattle
ranching, agriculture, deforestation and gold mining activities (Jarrín and Kunz 2011). Other places where the species is known like the western ecosystems of tropical dry
forest from Ecuador and Perú, are near to disappear due to
cattle ranching and agriculture (MAE 2013), more studies
will be necessary for monitoring the status conservation
and reproductive patterns of the species.
In addition to the cited vouchers, biogeographical and
genetic evidence supports S. ludovici presence in the western slopes of Ecuador (Jarrín and Clare 2013; Velazco and
Patterson 2013; Molinari et al. 2017). The information about
diet could be useful to understand niche partition with
sympatric species such as S. bakeri (Macarthur and Levins
1967), but it is difficult to understand in which dimension
of the niche they exactly differ without further studies.
There is a hypothesis about that many bats differs in the
temporal use of fruits depending on the state of ripeness
(Freeman 1988), the fruit mass, size and hardness have
been considered as important factors affecting the dietary
specialization for Phyllostomid bats (Saldaña-Vázquez et al.
2014), this suggest that serrated inner molars on S. bakeri
could be useful for hard not-quite ripe fruits, while flattened inner molars in S. ludovici could be useful for soft ripe
fruit. Current research considers that there exist intrinsic
factors (such as feeding behavior, mouth morphology, bite
force and digestive physiology) an extrinsic factor (such as
171
THERYA NOTES Vol. 3 :168-175
fruit physical characteristics, ingestible material of fruits,
fruit secondary metabolites, fruit nutrients and energy,
and spatio-temporal availability of fruits) determining the
dietary specialization and community structure in Phyllostomid bats (Saldaña-Vázquez et al. 2014). Bats from the
Figure 3. Natural color variation and diet of Sturnira bakeri. From left to right: A-C =
three adult males (the first male lacks lateral fold of the ears, third male has grayish skin).
D = pregnant female, E-F = Anthurium spp., G-I = Vismia spp., J = Drymonia sp. , K = Piper
aduncum, L = Piper sp., M = Psychotria sp., N = Solanum sp., O-P = Cecropia spp., Blue
grids scales are 1 mm x 1 mm.
Rodríguez-Segovia
genus Sturnira have been considered to be specialist in the
consume of Piper and Solanum, other species preferred by
these bats are Ficus, Cecropia and Vismia (Saldaña-Vázquez
et al. 2014; Arias and Pacheco 2019). The dietary items identified as Anthurium, Psychotria, and Drymonia are new for
the diet composition of the genus.
Acknowledgements
To J. Brito by their taxonomic suggestions at MECN and to
the anonymous reviewers who enriched this manuscript
with their comments.
Literature cited
Arias, E., and V. Pacheco. 2019. Dieta y estructura trófica en un
ensamble de murciélagos en el bosque montano del Santuario Nacional Pampa Hermosa, Junín, Perú. Revista Peruana
de Biología 26:169-182.
Avelar, L. E. T., et al. 2017. Aging and sexual differences of the
human skull. Plastic and Reconstructive Surgery – Global
Open 5:1-6.
Calderón-Acevedo, C. A., J. C. Bagley., and N. Muchhala. 2022. Genome-wide ultraconserved elements resolve phylogenetic
relationships and biogeographic history among Neotropical
leaf-nosed bats in the genus Anoura (Phyllostomidae). Molecular Phylogenetics and Evolution 167:107356.
Freeman, P. W. 1988. Frugivorous and animalivorous bats (Microchiroptera): dental and cranial adaptations. Biological
Journal of Linnean Society 33:249-272.
Global Biodiversity Information Facility (GBIF). 2022. GBIF Home
Page. https://www.gbif.org/. Accessed January 28, 2022.
Jarrín, P., and T. H. Kunz. 2011. A new species of Sturnira (Chiroptera: Phyllostomidae) from the Choco forest of Ecuador.
Zootaxa 2755:1-35.
Jarrín, P., and E. L. Clare. 2013. Systematics of Sturnira (Chiroptera: Phyllostomidae) in Ecuador, with comments on species
boundaries. Zootaxa 3630:165-183.
Kirkbride, J., J. C. Gunn, and M. Dalwitz. 2006. Family guide for
fruits and seeds. United States Department of Agriculture
(USDA) and Agricultural Research Service. Maryland, U.S.A.
https://nt.ars-grin.gov/seedsfruits/keys/frsdfam/index.cfm.
Accessed January 28, 2022.
Lobova, T., C. Geiselman, and S. Mori. 2009. Seeds dispersed by
bats in the Neotropics. The New York Botanical Garden. New
York, U.S.A.
Macarthur, R., and R. Levins. 1967. The limiting similarity, convergence, and divergence of coexisting species. The American Naturalist 101:337-385.
Ministerio Del Ambiente Del Ecuador (MAE). 2013. Sistema de clasificación de los ecosistemas del Ecuador Continental. Subsecretaria de Patrimonio Natural. Quito, Ecuador. http://app.sni.gob.
ec/sni-link/sni/PDOT/NIVEL%20NACIONAL/MAE/ECOSISTEMAS/DOCUMENTOS/Sistema.pdf. Accessed January 25, 2022.
Mccarthy, T. J., L. Albuja V., and M. S. Alberico. 2006. A new species of chocoan Sturnira (Chiroptera: Phyllostomidae and Stenodermatinae) from western Ecuador and Colombia. Annals
of Carnegie Museum 75:97-100.
Magalhaes De Oliveira, H., and B. Pereira. 2016. Guia de sementes dispersas por morcegos (Mammalia Chiroptera)
da América Latina. https://www.researchgate.net/publication/337008215_Guia_de_sementes_dispersas_por_morcegos_Mammalia_Chiroptera_da_America_Latina. Accessed
January 30, 2022.
Mello, M. A. R., et al. 2011. The Missing Part of Seed Dispersal
Networks: Structure and Robustness of Bat-Fruit Interactions.
Plos One 6:e17395.
Molinari, J., et al. 2017. A new polytypic species of yellowshouldered bats, genus Sturnira (Mammalia: Chiroptera:
Phyllostomidae), from the Andean and coastal mountain systems of Venezuela and Colombia. Zootaxa 4243:75–96.
Montoya-Bustamante, S., et al. 2017. First records of Sturnira bakeri Velazco & Patterson, 2014 (Chiroptera: Phyllostomidae)
from Colombia. Check List the journal of biodiversity data
13:2091.
Peterson, R. L., and J. L. Tamsitt. 1968. A new species of bat of
the genus Sturnira (Family Phyllostomidae) from Northwestern
South America. Life Science Occasional Papers 12:1-8.
Romero, V. 2019. Sturnira bakeri. In Mamíferos del Ecuador Versión 2018.0 (Brito, J., M. A. Camacho, V. Romero, and A. F. Vallejo, eds.). Museo de Zoología, Pontificia Universidad Católica
del Ecuador. https://bioweb.bio/faunaweb/mammaliaweb/
FichaEspecie/Sturnira%20bakeri. Accessed January 28, 2022.
Saldaña-Vázquez, R. A., et al. 2014. Intrinsic and extrinsic factors affecting dietary specialization in Neotropical fruit bats.
Mammal Review 44:215–224.
Sánchez-Hernández, C., M. L. Romero-Almaraz, and G. D. Scnell.
2005. New species of Sturnira (Chiroptera-Phyllostomidae)
from northwest south America. Journal of Mammalogy
86:866-872.
Sánchez, P., and V. Pacheco. 2016. New record of Sturnira bakeri
Velazco & Patterson, 2014 (Chiroptera: Phyllostomidae) from
Northwestern Peru. Check List the Journal of Biodiversity
Data 12:1984.
Šrámek, J., and P. Benda. 2014. Sexual and age size variation in
the western Palaearctic populations of Miniopterus bats (Chiroptera: Miniopteridae). Folia Zoologica 63:216-227.
Tirira, D., and S. Burneo. 2012. Investigación y Conservación sobre murciélagos en Ecuador. Pontificia Universidad Católica
del Ecuador, Fundación Mamíferos y Conservación y Asociación Ecuatoriana de Mastozoología. Publicación especial
sobre los mamíferos del Ecuador. Quito, Ecuador. https://
edipuce.edu.ec/wp-content/uploads/2021/07/Investigacion-y-conservacion-...-murcielagos-en-el-Ecuador.pdf. Accessed June 10, 2022.
Tirira, D. 2017. Guía de campo de los mamíferos del Ecuador.
Editorial murciélago blanco. Quito, Ecuador.
Tirira, D. 2021. Lista roja de los mamíferos del Ecuador. Ministerio de Agua, Ambiente y Transición Ecológica del Ecuador
(MAATE). Quito, Ecuador. https://www.researchgate.net/
publication/357205724_Lista_Roja_de_los_mamiferos_del_
Ecuador_2021. Accessed July 10, 2022.
Vega, M. C., and A. Cadena. 2000. Una nueva especie del género
Sturnira (Chiroptera: Phyllostomidae) de los Andes colombianos. Revista Académica Colombiana de Ciencias 24:285-287.
Velazco, P. M., and B. D. Patterson. 2013. Diversification of the
Yellow-shouldered bats, Genus Sturnira (Chiroptera, Phyllostomidae), in the New World tropics. Molecular Phylogenetics
and Evolution 68:683-698.
www.mastozoologiamexicana.org
172
Sturnira bakeri in northwestern Ecuador
Velazco, P. M., and B. D Patterson. 2014. Two new species of yellow-shouldered bats, genus Sturnira Gray, 1842 (Chiroptera,
Phyllostomidae) from Costa Rica, Panama and western Ecuador. Zookeys 402:43-66.
Voyta, L. L. 2017. Age related cranial characters from the viewpoint of species identification of Amur and Daurian hedgehogs (Lipotyphla: Erinaceidae). Russian Journal of Theriology
16:176-184.
Associated editor: José F. Moreira Ramírez.
Submitted: February 5, 2022; Reviewed: August 1, 2022.
Accepted: November 16, 2022; Published on line: November 24, 2022.
173
THERYA NOTES Vol. 3 :168-175
Rodríguez-Segovia
Appendix 1
Craniodental and body measurements used for this research.
Measurements
Description
Ear length (EL)
Distance from ear notch to ear tip.
Forearm length (FA)
Distance from the elbow (tip of the olecranon process) to the wrist including the carpals (this measurement is
made with the bat wing at least partially folded).
Hind foot length (HF)
Distance along foot from anterior edge of calcar to most distant claw.
Total length (TL)
Dorsally, distance from tip of the last vertebra to nose tip.
Braincase breadth (BB)
Greatest breadth of the globular part of the braincase, excluding mastoid and paraoccipital processes.
Condyloincisive length (CIL)
Distance between a line connecting the posteriormost margins of the occipital condyles and the anterior most
point on the upper incisors.
Condylocanine length (CCL)
Distance between a line connecting the posteriormost margins of the occipital condyles and a line connecting
the anteriormost surface of the upper canines.
Dentary length (DENL)
Distance from midpoint of condyle to the anteriormost point of the dentary.
Greatest length of skull (GLS)
Distance from the posteriormost point on the occiput to the anteriormost point on the premaxilla (excluding the
incisors).
Length of mandibular toothrow (MANDL)
Distance from the anteriormost surface of the lower canine to the posteriormost surface of m3.
Mastoid breadth (MB)
Greatest breadth across the mastoid region.
Maxillary toothrow length (MTRL)
Distance from the anteriormost surface of the upper canine to the posteriormost surface of the crown of M3.
Postorbital breadth (PB)
Least breadth at the postorbital constriction.
Width at M2 (M2-M2)
Greatest width of palate across labial margins of the alveoli of M2s.
Zygomatic breadth (ZB)
Greatest breadth across the zygomatic arches.
www.mastozoologiamexicana.org
174
Sturnira bakeri in northwestern Ecuador
Appendix 2
Craniodental and body measurements considered in this study. See descriptions in Appendix 1. Modified from Velazco and
Patterson (2014).
175
THERYA NOTES Vol. 3 :168-175.
| 23,052 |
https://arz.wikipedia.org/wiki/%D8%B4%D9%8A%D9%84%D8%A7%20%D9%88%D8%A7%D9%89.%20%D8%A7%D9%88%D9%84%D9%8A%DA%A4%D9%8A%D8%B1
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
شيلا واى. اوليڤير
|
https://arz.wikipedia.org/w/index.php?title=شيلا واى. اوليڤير&action=history
|
Egyptian Arabic
|
Spoken
| 54 | 204 |
شيلا واى. اوليڤير سياسيه من امريكا.
حياتها
شيلا واى. اوليڤير من مواليد يوم 14 يوليه 1952 فى نيوآرك, نيوجيرسى.
الدراسه
درست فى جامعة كولومبيا و جامعة لينكولن (بنسلفانيا).
الحياه العمليه
سياسيا عضوه فى الحزب الديمقراطى.
اشتغلت فى ترنتون, نيوجيرسى.
المناصب
عضو جمعيه نيوجيرسى العامه
لينكات برانيه
مصادر
سياسيين
سياسيين امريكان
دارسين فى جامعة كولومبيا
| 41,840 |
https://stackoverflow.com/questions/66489519
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021 |
Stack Exchange
|
Clint, CoDInG brO, Eliseo, https://stackoverflow.com/users/11701619, https://stackoverflow.com/users/7879634, https://stackoverflow.com/users/8558186
|
English
|
Spoken
| 290 | 746 |
Is there a better way of displaying JSON data from API in angular datatable?
I am using angular data table and I am able to get the data from api,but data table is showing "no records" message even when the data is there and when I am trying to sort them ,the data is going away.
export class SalesComponent implements OnInit {
salesRepData: any = []; //defining Array
constructor(private http: HttpClient) {
}
title = 'angulardatatables';
dtOptions: any = [];
ngOnInit() {
this.dtOptions = {
pagingType: 'full_numbers',
pageLength: 3,
processing: true,
};
this.fetchPosts();
}
private fetchPosts() {
this.http
.get('https:demo/api')
.subscribe(posts => {
if (posts) {
this.salesRepData = posts;
}
});``
}
}
<table class="table table-striped table-bordered table-sm row-border hover" datatable [dtOptions]="dtOptions">
<thead>
<tr>
<th>
Sales Rep
</th>
<th>
Total Commission
</th>
<th>
Commission earned
</th>
<th>
Commission pending
</th>
<th>Commission paid</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let sale of salesRepData">
<td>
{{sale.salesrepId}}
</td>
<td>
{{sale.totalCommission}}
</td>
<td>
{{sale.commissionEarned}}
</td>
<td>
{{sale.commissionPending}}
</td>
<td>
{{sale.commissionPaid}}
</td>
</tr>
</tbody>
</table>
after this.salesRepData = posts; add console.log(this.salesRepData) and look in the console and see if you have data
yes data is coming and it is being displayed in the datatable as well but it is still showing no records available at the bottom of the data table
Can you create an angular sandbox? https://codesandbox.io or similar and share?
https://therichpost.com/angular-datatables-with-custom-button-event-click-open-bootstrap-modal-popup/ In the data table, there is sorting option from the library itself. This sorting thing is working when I am passing hard coded data, but it is not working when I am using api to do the same
there are thousands of "datatable", I should think you use a jQuery data table but I don't know. here there a link that can be util: https://medium.com/@yankipranata_21138/full-tutorial-angular-datatable-for-beginner-9cca5585e5d8
| 47,369 |
https://github.com/opendcs/opendcs/blob/master/src/main/java/lrgs/archive/QualLogFile.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,023 |
opendcs
|
opendcs
|
Java
|
Code
| 1,274 | 4,714 |
/*
* $Id$
*
* This is open-source software written by ILEX Engineering, Inc., under
* contract to the federal government. You are free to copy and use this
* source code for your own purposes, except that no part of the information
* contained in this file may be claimed to be proprietary.
*
* Except for specific contractual terms between ILEX and the federal
* government, this source code is provided completely without warranty.
* For more information contact: info@ilexeng.com
*
* $Log$
* Revision 1.2 2015/04/02 18:27:04 mmaloney
* Store & retrieve EDL file statistics.
*
* Revision 1.1.1.1 2014/05/19 15:28:59 mmaloney
* OPENDCS 6.0 Initial Checkin
*
* Revision 1.4 2010/10/22 18:02:24 mmaloney
* fixed header line
*
* Revision 1.3 2009/04/07 14:17:05 mjmaloney
* Save Iridium Quality stats in quality.log
*
* Revision 1.2 2008/05/21 21:10:33 cvs
* dev
*
* Revision 1.1 2008/04/04 18:21:11 cvs
* Added legacy code to repository
*
* Revision 1.7 2007/09/07 19:16:38 mmaloney
* LRGS Updates
*
* Revision 1.6 2007/02/22 00:36:54 mmaloney
* Release preparation for LRGS 6.0
*
* Revision 1.5 2006/06/28 16:00:45 mmaloney
* Bug fixes.
*
* Revision 1.4 2005/09/11 21:40:31 mjmaloney
* dev
*
* Revision 1.3 2005/07/20 20:18:55 mjmaloney
* LRGS 5.0 Release preparation
*
* Revision 1.2 2005/07/15 18:15:05 mjmaloney
* Implemented quality logging.
*
*/
package lrgs.archive;
import java.io.LineNumberReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Date;
import java.util.StringTokenizer;
import java.util.TimeZone;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import ilex.util.EnvExpander;
import ilex.util.Logger;
import lrgs.lrgsmain.LrgsInputInterface;
import lrgs.statusxml.LrgsStatusSnapshotExt;
/**
This class contains methods for reading & writing the quality log file.
*/
public class QualLogFile
{
private static final String module = "QualLog";
private File file;
private SimpleDateFormat sdf;
private PrintStream output;
private static final int maxLength = 80*1440*10; // about 10 day's worth.
public static final String LogFileName = "quality.log";
/**
* Constructor.
* @param filename the file name
*/
public QualLogFile(String filename)
{
file = new File(EnvExpander.expand(filename));
sdf = new SimpleDateFormat("yyyy/MM/dd-HH:mm");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
output = null;
}
/** @return last modify time of the quality log file. */
public long lastModified() { return file.lastModified(); }
private void openLog(boolean append)
{
try
{
output = new PrintStream(new FileOutputStream(file, append), true);
if (file.length() == 0L)
{
output.println("# date/time domsatGood domsatPar aveBER maxBER"
+ " drgsGood drgsPar ddsGood ddsPar noaaportGood "
+ "noaaportPar lritGood lritErr nbGood nbPar "
+ "arcGood arcPar domsatDropped gr3110 iridium edl");
}
}
catch(FileNotFoundException ex)
{
Logger.instance().warning(module + " Cannot open quality log '"
+ file.getPath() + "': " + ex);
output = null;
}
}
/**
* Silently close the log file, if one is open.
*/
public void close()
{
try
{
if (output != null)
output.close();
output = null;
}
catch(Exception ex) {}
}
/**
* Appends an entry to the file.
* @param qle the entry.
*/
public void append(QualLogEntry qle)
{
if (output == null)
openLog(true);
else if (file.length() > maxLength)
{
close();
file.renameTo(new File(file.getPath() + ".old"));
openLog(false);
}
if (output == null)
return;
output.println(qle2String(qle));
}
/**
* Reads back 24 hours to initialize the quality entries in the
* status structure.
* @param lsse the status snapshot.
*/
public void initQualityStatus(LrgsStatusSnapshotExt lsse)
{
int drgsIdx = -1;
int domsatIdx = -1;
int ddsIdx = -1;
int noaaportIdx = -1;
int lritIdx = -1;
int netbackIdx = -1;
int gr3110Idx = -1;
int iridiumIdx = -1;
int edlIdx = -1;
for(int i=0; i < lsse.lss.downLinks.length; i++)
{
if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_DRGS)
drgsIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_DOMSAT)
domsatIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_NETBAK)
netbackIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_DDS)
ddsIdx = i;
else if (lsse.lss.downLinks[i].type==LrgsInputInterface.DL_NOAAPORT)
noaaportIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_LRIT)
lritIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_GR3110)
gr3110Idx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_IRIDIUM)
iridiumIdx = i;
else if (lsse.lss.downLinks[i].type == LrgsInputInterface.DL_EDL)
edlIdx = i;
}
Logger.instance().info("Reading quality log, domsatIdx=" + domsatIdx
+ ", ddsIdx=" + ddsIdx + ", drgsIdx=" + drgsIdx + ", edlIdx=" + edlIdx);
// We only are interested in last 24 hours.
long cutoff = (System.currentTimeMillis() / 3600000L) * 3600000L;
cutoff -= (3600000L * 23L);
LineNumberReader lnr = null;
try
{
lnr = new LineNumberReader(new FileReader(file));
String line;
while((line = lnr.readLine()) != null)
{
line = line.trim();
if (line.startsWith("#"))
continue;
QualLogEntry qle = parse(line, file, lnr.getLineNumber());
if (qle == null)
continue;
long t = qle.timeStamp.getTime();
if (t < cutoff)
continue;
int h = (int)(t / 3600000L) % 24;
lsse.lss.qualMeas[h].containsData = true;
lsse.lss.qualMeas[h].numGood += qle.archivedGood;
lsse.lss.qualMeas[h].numDropped += qle.archivedErr;
if (drgsIdx != -1)
{
lsse.downlinkQMs[drgsIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[drgsIdx].dl_qual[h].numGood
+= qle.drgsGood;
lsse.downlinkQMs[drgsIdx].dl_qual[h].numDropped
+= qle.drgsErr;
if (qle.drgsGood > 0)
lsse.lss.downLinks[drgsIdx].lastMsgRecvTime
= (int)(t / 1000L);
}
if (domsatIdx != -1)
{
lsse.downlinkQMs[domsatIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[domsatIdx].dl_qual[h].numGood +=
qle.domsatGood;
lsse.downlinkQMs[domsatIdx].dl_qual[h].numDropped +=
qle.domsatErr;
lsse.domsatDropped[h] += qle.domsatDropped;
if (qle.domsatGood > 0)
lsse.lss.downLinks[domsatIdx].lastMsgRecvTime
= (int)(t / 1000L);
}
if (ddsIdx != -1)
{
lsse.downlinkQMs[ddsIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[ddsIdx].dl_qual[h].numGood += qle.ddsGood;
lsse.downlinkQMs[ddsIdx].dl_qual[h].numDropped+=qle.ddsErr;
if (qle.ddsGood > 0)
lsse.lss.downLinks[ddsIdx].lastMsgRecvTime
= (int)(t / 1000L);
}
if (lritIdx != -1)
{
lsse.downlinkQMs[lritIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[lritIdx].dl_qual[h].numGood +=
qle.lritGood;
lsse.downlinkQMs[lritIdx].dl_qual[h].numDropped +=
qle.lritErr;
if (qle.lritGood > 0)
lsse.lss.downLinks[lritIdx].lastMsgRecvTime
= (int)(t / 1000L);
}
if (noaaportIdx != -1)
{
lsse.downlinkQMs[noaaportIdx].dl_qual[h].containsData=true;
lsse.downlinkQMs[noaaportIdx].dl_qual[h].numGood +=
qle.noaaportGood;
lsse.downlinkQMs[noaaportIdx].dl_qual[h].numDropped +=
qle.noaaportErr;
if (qle.noaaportGood > 0)
lsse.lss.downLinks[noaaportIdx].lastMsgRecvTime
= (int)(t / 1000L);
}
if (netbackIdx != -1)
{
lsse.downlinkQMs[netbackIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[netbackIdx].dl_qual[h].numGood +=
qle.netbackGood;
lsse.downlinkQMs[netbackIdx].dl_qual[h].numDropped +=
qle.netbackErr;
}
if (gr3110Idx != -1)
{
lsse.downlinkQMs[gr3110Idx].dl_qual[h].containsData = true;
lsse.downlinkQMs[gr3110Idx].dl_qual[h].numGood +=
qle.gr3110Count;
}
if (iridiumIdx != -1)
{
lsse.downlinkQMs[iridiumIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[iridiumIdx].dl_qual[h].numGood +=
qle.iridiumCount;
}
if (edlIdx != -1)
{
lsse.downlinkQMs[edlIdx].dl_qual[h].containsData = true;
lsse.downlinkQMs[edlIdx].dl_qual[h].numGood += qle.edlCount;
//Logger.instance().info("QualLogFile found EDL count for hour=" + h + ", v=" + qle.edlCount
//+ ", tally now=" + lsse.downlinkQMs[edlIdx].dl_qual[h].numGood);
}
}
}
catch(IOException ex)
{
Logger.instance().warning("Cannot initialize quality measurements: "
+ ex);
}
try { if (lnr != null) lnr.close(); }
catch(Exception ex) {}
}
/**
* Parses a line from the log file into a qual log entry.
* @param line the line of text.
* @param file the File object.
* @param linenum the line number in the file.
* @return entry or null if parse error.
*/
public QualLogEntry parse(String line, File file, int linenum)
{
StringTokenizer st = new StringTokenizer(line);
int n = st.countTokens();
if (n < 17)
return null;
QualLogEntry qle = new QualLogEntry();
try
{
qle.timeStamp = sdf.parse(st.nextToken());
}
catch(ParseException ex)
{
Logger.instance().warning("Invalid date in "
+ file.getName() + "(" + linenum + "): " + ex);
return null;
}
try
{
qle.domsatGood = Integer.parseInt(st.nextToken());
qle.domsatErr = Integer.parseInt(st.nextToken());
qle.aveDomsatBER = st.nextToken();
qle.maxDomsatBER = st.nextToken();
qle.drgsGood = Integer.parseInt(st.nextToken());
qle.drgsErr = Integer.parseInt(st.nextToken());
qle.ddsGood = Integer.parseInt(st.nextToken());
qle.ddsErr = Integer.parseInt(st.nextToken());
qle.noaaportGood = Integer.parseInt(st.nextToken());
qle.noaaportErr = Integer.parseInt(st.nextToken());
qle.lritGood = Integer.parseInt(st.nextToken());
qle.lritErr = Integer.parseInt(st.nextToken());
qle.netbackGood = Integer.parseInt(st.nextToken());
qle.netbackErr = Integer.parseInt(st.nextToken());
qle.archivedGood = Integer.parseInt(st.nextToken());
qle.archivedErr = Integer.parseInt(st.nextToken());
if (st.hasMoreTokens())
{
qle.domsatDropped = Integer.parseInt(st.nextToken());
if (st.hasMoreTokens())
{
qle.gr3110Count = Integer.parseInt(st.nextToken());
if (st.hasMoreTokens())
{
qle.iridiumCount = Integer.parseInt(st.nextToken());
if (st.hasMoreTokens())
qle.edlCount = Integer.parseInt(st.nextToken());
}
}
}
}
catch(Exception ex)
{
Logger.instance().warning("Parse error in "
+ file.getName() + "(" + linenum + "): " + ex);
return null;
}
return qle;
}
private String qle2String(QualLogEntry qle)
{
return sdf.format(qle.timeStamp)
+ " " + qle.domsatGood
+ " " + qle.domsatErr
+ " " + qle.aveDomsatBER
+ " " + qle.maxDomsatBER
+ " " + qle.drgsGood
+ " " + qle.drgsErr
+ " " + qle.ddsGood
+ " " + qle.ddsErr
+ " " + qle.noaaportGood
+ " " + qle.noaaportErr
+ " " + qle.lritGood
+ " " + qle.lritErr
+ " " + qle.netbackGood
+ " " + qle.netbackErr
+ " " + qle.archivedGood
+ " " + qle.archivedErr
+ " " + qle.domsatDropped
+ " " + qle.gr3110Count
+ " " + qle.iridiumCount
+ " " + qle.edlCount;
}
}
| 37,477 |
https://tex.stackexchange.com/questions/229006
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015 |
Stack Exchange
|
https://tex.stackexchange.com/users/149323, https://tex.stackexchange.com/users/27635, https://tex.stackexchange.com/users/71924, karlkoeller, slew123, uT5r
|
English
|
Spoken
| 426 | 989 |
vertical space between paragraphs and `topsep` in \usepackage{enumitem} cancel each other out
I'm using \setlength{\parskip}{\baselineskip} to insert vertical space between the paragraphs in my document. However this create a conflict with my list environments. To solve that I am using the enumitem package to set the space between the last line before my itemize environment and my first item to =0pt however, the paragraph spacing created with \setlength{\parskip}{\baselineskip} cancel this out. I can get at it by setting topsep to ~ -9pt, but them I loose the spacing between the last item and the next paragraph (MWE is below). I have deliberately chosen noitemsep as I also want less spacing between the individual item, I would like to keep this.
\documentclass{article}
% insert vertical space between paragraphs
\setlength{\parskip}{\baselineskip}
% Modifies itemized lists with enumitem http://www.ctan.org/pkg/enumitem
\usepackage{enumitem}
\setlist[itemize]{noitemsep, topsep=0pt} % , topsep=-9pt
% http://tug.ctan.org/tex-archive/macros/latex/contrib/blindtext/blindtext.pdf
\usepackage{blindtext}
\begin{document}
\blindtext
\noindent
This is the things cancel each other out:
% space I would like to get rid of is here!
\begin{itemize}
\item dummy first item
\item insert vertical space between paragraphs
\item \verb|[topsep=0pt]| in \verb| \usepackage{enumitem} |
\item dummy last item
\end{itemize}
\blindtext
\blindtext
\end{document}
Add before={\vspace*{-\baselineskip}} to your itemize options:
\setlist[itemize]{noitemsep, topsep=0pt, before={\vspace*{-\baselineskip}}}
MWE:
\documentclass{article}
% insert vertical space between paragraphs
\setlength{\parskip}{\baselineskip}
% Modifies itemized lists with enumitem http://www.ctan.org/pkg/enumitem
\usepackage{enumitem}
\setlist[itemize]{noitemsep, topsep=0pt, before={\vspace*{-\baselineskip}}} % , topsep=-9pt
% http://tug.ctan.org/tex-archive/macros/latex/contrib/blindtext/blindtext.pdf
\usepackage{blindtext}
\begin{document}
\blindtext
\noindent
This is the things cancel each other out:
% space I would like to get rid of is here!
\begin{itemize}
\item dummy first item
\item insert vertical space between paragraphs
\item \verb|[topsep=0pt]| in \verb| \usepackage{enumitem} |
\item dummy last item
\end{itemize}
\blindtext
\blindtext
\end{document}
Output:
thank you for a great solution! I did however not illustrate my document fully in my MWE so I ended up with a new (minor) issue. I have created a new question here where I address this. Thanks!
@uT5r You're welcome. I've answered your new question, too.
I just want to say thank you. I have been looking for this solution for a while! I now use the command:
\setlist[itemize]{leftmargin=*, nosep, before={\vspace*{-\baselineskip}}} in my document.
karlkoeller's answer works great for some time, but you should be aware of the following:
Using negative vspace for the environment can have unwanted side effects as in this question happened to me. The manipulation of vspace leads to Latex calculating the wrong vertical size and can lead to the page content overflowing for example the footnote area.
Instead you should manipulate \topsep before (and after, if necessary) the environment, to make it consume less vertical space.
| 39,418 |
sn83020847_1888-09-14_1_8_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| null |
None
|
None
|
English
|
Spoken
| 7,737 | 10,517 |
Springfield and Vicinity. The Young Men’s Christian association will issue in October the first number of a monthly publication called the Magnet, to be devoted to the interests of the association. Principal Samuel D. Sherwood of the Worthington-street school has bought a lot of land on the extension of Harvard street of the McKnight's for $800. He will build a residence. There will be two notable society marriages next month, Wallace Bowles to Miss Mabel Shurtleff, daughter of Judge Shurtleff, and Walter S. Robinson, son of the ex-governor, to Miss Homans. Daniel Russell, a Frenchman employed at Ryman’s seed store on Charles street and living at 87 Tyler street, was discovered to be sick with the smallpox Saturday and was taken to the pest-house Sunday. Among those who were registered at the Massasoit house Tuesday en route for Northampton with daughters or friends who are to enter Smith college was Mrs. J. G. Holland of New York and her niece, Miss May. One of the most notable social events in local Roman Catholic annals was the marriage at Sacred Heart church Wednesday evening of ex-Councilman John Doolan and Miss Elizabeth Gertrude Howard, daughter of Mrs. Ellen H. Howard. The grand circuit meeting on Hampden park opened Tuesday with a good afternoon’s sport. There was a large attendance for the first day, many more than last year, and everything passed off smoothly. Wednesday there was an attendance of 500. races close today. The canoeists are becoming excited already over the race off Calla Shasta camp Saturday afternoon, the last trial race before the final contest for the Barney cup. Boyen Vaux, called the best canoeist in the country, has written that he will take part in this trial race. Philip Bingle was arrested Wednesday forenoon at Bellows Falls, Vt., for stealing a horse and buggy belonging to Fisk Bros, meat men of this city. He has been suspected all along, because he was discharged from the firm’s employ Friday, and the team was stolen the next night. The executive committee of the fifth regiment, appointed to arrange for the annual reunion, met at the courthouse last week and decided to have the gathering on the 25th. The choice of the place lay between this city and Monson and was left with a committee of one to investigate and decide. A few of the friends and associates of F. H. Giddings in his newspaper and economic work in this city gave a dinner at Barr’s restaurant the other evening in honor of his election to a professorship in Bryn Mawr college for women in Pennsylvania. George A. Denison presided. Mr. Giddings goes to his new work the last of the month with the best wishes of all. The annual meeting of the Unitarian Sunday-school association will be held at the church of the Unity October 17 and 18. The gathering will be addressed the first evening by some well-known speakers to be engaged, and the next day will be devoted to the reading of papers and a discussion of them. A collation will also be served at noon of the second day. Mr. and Mrs. O. W. Bullock of 82 Temple street left Saturday for Tallapoosa, Ga., where they will spend the winter and spring months, as Mr. Bullock is much interested in the fast-growing town and has secured investments from a number of capitalists in the East during his three-months' vacation. They will keep their pleasant residence in this city for summer use for a time at least. Miss Louise Stebbins, daughter of John B. Stebbins, has just returned from an extended and interesting western journey. She first went to California early last spring with Mrs. James D. Safford, and after making a long visit there, took a trip up the Pacific coast, with other friends, to Alaska. The homeward journey across the continent was made over the Canadian Pacific railroad and included stops at several points. The prohibitionist congressional, senatorial and county conventions in this city last week made these nominations: For congress, Henry Cutler of Pittsfield; for senator, Frank A. Bowen of Palmer; for county commissioner, G. F. Wright of Palmer; for county treasurer, M. Wells Bridge; for register of deeds, J. E. Russell; for register of probate and insolvency, Samuel B. Spooner; for presidential elector, Dr. H. A. Gibbs of Lee. It is one of the pleasant manifestations of human nature that its benefactors are not “forgotten when they are gone,” and visitors to the Peabody cemetery in this city are always sure to see this trait illustrated in the flowers or other tokens of remembrance on Dr. Josiah G. Holland’s grave. All this summer, from the roses of July to the bittersweet of September—the bittersweet which the poet made so peculiarly his own—these tokens have marked the resting place of his earthly tabernacle. They have come from many places, from ladies of Brattleboro, Northampton, Holyoke and this city especially, and from unknown friends. Henry M. Smith, who died at Cromwell, Ct., Monday and buried from the Chapin memorial chapel in the Springfield cemetery this week, was well known in this city and Westfield, having married two daughters of the late O. W. Wilcox and made his home here for two or three years. He was the oldest son of H. B. Smith, one of Westfield’s best known citizens, and passed his 41st birthday last Sunday. For nearly a score of years he has been connected with the steam-heating business in which he was an expert, in Milwaukee, New York and Philadelphia. Recently he was again married at West Bergen, N. J., and the third wife survives him. A movement is well under way to organize a Connecticut river improvement association among the business men of Springfield, Holyoke, and Chicopee. A call for a meeting to be held in this city at an early day has already been signed by a large number of leading firms, corporations, and individuals in the three places, and will shortly be published. The plan is to form a strong association that shall take up the matter of improving navigation between here and Hartford earnestly, urge its importance upon Congress, and secure liberal national aid for the work. Congressman Whiting advises the promoters of the scheme that they have only to present their claims strongly at Washington to obtain the desired appropriations. The street railway company are keeping a very sharp outlook as to the methods of running cars by electric motors and it is only a question of time before cars in this city will be run by some electric system. Superintendent King thinks, at least, and he was much pleased with the Daffy system used on the Meriden road, which he inspected recently. The great test, however, is to come this winter, and before the system has weathered the rough season the Springfield authorities will simply stand as spectators. The Holyoke company are said to be even farther advanced in the direction of adopting this new motive power than the company here, but even they have not reached that decisive point which the agents of certain systems would have the public believe. It is pleasant to see our bronzed, hale, and cheerful-looking tourists coming back from their summer trips. Nathan D. Bill and F. G. Tobey are among those who have had particularly enjoyable experiences. Mr. Bill with A. B. Wallace and other friends spent six weeks in roughing it among the Rocky mountains of Colorado, finding much excellent sport. He tells a thrilling story, by the way, of an encounter with a bear, in which he found that discretion was the better part of valor. Mr. Tobey, on the contrary, tried the highest civilization of the European continent and looks as if he thoroughly liked it. A. N. Mayo and wife are among the Springfield people who have returned from Europe within a few days. Dr. and Mrs. F. W. Chapin arrived home Tuesday. They have been away for nearly three months, and traveled as far east as Vienna. City hall was about half filled the other night with an appreciative audience, noticeable perhaps by its lack of those who appeared to be actually laboring men, to listen to the address of Rev Dr Edward McGlynn, the famous apostle of the laboring man. Few Roman Catholics were present, as a ban has been placed upon their attendance upon these lectures. After a preliminary song by the Twilight quartet, a piano solo by Miss Hessler and a recital of “The New Crusade,” a poem inspired by “Father” McGlynn’s work, by Miss Pine of Hartford, the speaker was introduced as one who had consecrated his life to the uplifting of the laboring classes. His appearance is very impressive and he strikes one as being a man of deep convictions and thoroughly in sympathy with the laboring men. He spoke for a couple of hours, and his ideas were clean cut and logical and inspired sympathy for the cause in every heart, although everyone could not coincide with all his views. Few people who noticed two women, one plainly dressed in black, dark complexion, and full in figure, the other rather taller and clad in a simple traveling dress of blue, recognized Mrs William K. Vanderbilt and Mrs. Col. Jay of New York, as they stood quietly talking in front of the Boston and Albany building on Main Street Tuesday afternoon. They were waiting for Augustus Belmont’s tally-ho, with his four-in-hand, to approach, and belonged to a party composed of William K. Vanderbilt, O. K. P. Belmont and Col. Jay of New York who were bound for Lenox, having driven from Newport. The party arrived Tuesday morning and took dinner at the Massasoit house. Mrs. Vanderbilt and Mrs. Jay walked away from the hotel to avoid notice as much as possible while mounting the coach and were accosted by a ragged pedestrian who inquired how long before a State-street car would come along, replying kindly that as they were strangers in the city they could not tell. Soon, however, appeared the four handsome horses, gay with gold-plated harness, the reins of which Mr. Belmont held, and neatly dressed cockney grooms held the animals’ heads as the party took their places on the box. As the coach swept out of sight, a small booth-tickled seated on his box taking keen interest in the scene exclaimed to a companion, “Hey, Jimmie, look at the French corn doctor’s team.” Prof. R. M. Mather has arrived home at Amherst after a 14-months’ absence, most of the time having been spent in travel and study abroad. The Templeton hotel, famous as a summer resort, was burned last week with all its contents save a piano, also two barns and other outbuildings, stock and hay. The property belonged to Mrs. Charles H. Ellis, whose loss is $7000; insurance $5500. The fire broke out in the barn. The house and store of P. Blodgett, near by, was damaged $500, and Mr. Lincoln, proprietor of the stage line, lost $150 on carriages. A verdict in favor of Holmes was returned by the jury at Greenfield last week in the Holmes-Turners Falls lumber company case, after having remained out late Friday night. The jury found that the plaintiff was entitled to land along the lines, found by County Clerk Lyman as auditor, with another slice of about 20 feet in one direction. It is now understood that the litigation will be continued by several exceptions, which go to the supreme court. The sessions of the supreme court will begin at Greenfield on the 17th. A time will probably be set for trying Lincoln J. Randall, but it is understood that his counsel, Lawyer Brooks of Holyoke, is going to Europe and has asked for a postponement. This is likely to be granted and the trial will not come until November or December. George T. C. Holden, formerly landlord of the Greenfield Mansion house, will be manager this year of the Raymond at East Pasadena, Calif. Root Richmond, two Franklin county boys, have gone out with Mr. Holden and have charge of frescoing the rooms in the new hotel. S. V. R. Daniels died at Pittsfield Friday at 7 o'clock. 'clock at the home of his daughter, Mrs. R. B. Bardwell, on Francis avenue, after a lingering illness, the result of heart trouble. Mr. Daniels was 73 years old and was born in Stephen to Lynn, N.Y. He came to Pittsfield when 15 years of age and until he was of age worked on a farm. By shrewd business ventures he made some money and was one of the original owners of Jubilee Hill, now a well-populated part of the town. He was for many years engaged in the wholesale and retail flour and grain business, being associated with Dea James Francis for 26 years. Mr. Daniels was a man of unusually good judgment, and excellent business qualifications, and his enterprise and integrity made him a man among men in the town where he lived so many years. Decrees for these divorce cases were granted this week by the superior court at Greenfield last week: Lydia C. Leonard from Ira W. Leonard for cruelty; W.H. Pierce from Lizzie Jane Pierce, desertion; Adeline M. Slocomb from Edward M. Slocomb, adultery; Augusta C. Dodge from P.M. Dodge, adultery; Edgar A. White from Anna R. White, desertion. In the case of Isabel R. Howland against John J. Howland the libel was dismissed without prejudice. An association to be called the Leavitt cemetery association has been organized in Charlestown. A plat of land belonging to the Leavitt homestead and including the so-called Unitarian burying-ground has been given the association by John Leavitt of Waterloo, la., and Mrs. R.H. Leavitt of Buckland. The members of the association have already subscribed $800 to improve the grounds. The tract of land known as the “Old El Dorado” was purchased by the Leavitt estate. Farm, situated about a mile east of Heath Center, which has been for many years in the market, has been bought by Ralph Harris for a few hundred dollars. The fine old mansion in the south part of Great Barrington, recently bought by Col. W. L. Brown of New York for $17,000, was turned early Saturday morning. The fire started in the woodshed, and a small barn in the rear was also burned. The loss is nearly covered by insurance, and the place will be rebuilt this fall. The water supply for the steamer was cut off, as two ponds were empty on account of repairs. Col. Brown will rebuild. The citizens’ building company at Athol is responsible for the shoe shop which Hill & Green of Beverly are to occupy November 1. E. H. R. Lyman has bought of J. R. Trumbull the old Kingsley blacksmith property on Main street, Northampton, adjoining the lot that Mr. Lyman bought a year ago. The price was nearly $7,000, or about in the same proportion as the first lot bought, which was $10,000. It is understood that this block of land is not bought for the Forbes library site, but for other purposes. Dr. H. S. Bell of Granby has decided to remain in town and will at once build a house at the Center. The special town meeting at Pittsfield this week was well attended and W. R. Plunkett was chosen moderator. The article providing for the appointment of a committee to petition the Legislature for a city charter was agreed to and Joseph Tucker, H. S. Russell, John C. Crosby, Thomas C. Barber, and E. H. Nash were chosen the committee. It was voted not to buy the St. Stephen's church property. A bicycle factory will soon be added to the industries of Westboro by the White Cycle company. The inventor has been busily at work gaining subscribers to the stock and about $20,000 has been raised. James Hines, 42, who was employed in the machine shop at the Holyoke paper company, was standing on a ladder the other morning oiling a shaft, when his clothing was suddenly caught and his body was carried over the shaft very rapidly. His head and feet struck against the gears a few feet away and he must have been killed very quickly. He was discovered by another workman who removed the belt and stopped the shaft. R. S. Dillon & Co will complete their canvass for the new directory of Ware and Gilbertville by Saturday, and the results will be in the hands of the printers next week. They find an increase of 1600 in the population of Ware since 1884. Owing to the large increase in the number of scholars at Smith academy in Hatfield since it opened, it has been necessary to hire an assistant, teacher, and Miss Clara Graves of Hatfield has been secured. Miss Graves is a graduate of the academy and studied at Mt Holyoke seminary. The musical treat of the season at Greenfield was the concert Tuesday evening under the auspices of the Young Men’s Christian association. Miss Howe of Brattleboro was the bright particular star, and was supported by Mrs. Pratt of the same place and Mr. Flagg of North Adams, and their program numbers were essentially the same as those of the testimonial concert at Brattleboro last month. The temperance folks in Coleraine and vicinity have been rejoicing since the distillery business has closed in the town. The lovers of “stomach medicine” very generally go out of town when in search for a favorite beverage. Washington Wendell, 60, a prominent citizen of Orange, died this week of heart disease, after an illness of only three hours. He was a Christian science physician, and was prominently identified with the greenback party. He leaves a widow. A young tiger that has alarmed the denizens of Tolland, Otis and Sandisfield for a week, has been captured in a neat way, and is now back in the circus cage with its pa and ma. An attendant and a trusty companion traced the creature to the dense woods between Otis and Tolland, dug a pit-fall in a run-way leading to the Farmington river, and buried a toothless trap, held by a stout sapling. In the night they heard long loud snarls in the direction of the trap, and found the vicious runaway hanging head down from the sapling and trap by a hind foot, pulling up every bush within reach. Waiting till morning, when the animal was tired out, they easily made fast three ropes about his body and got him into the strong box. His only injury is a swollen foot. Secretary Greene has issued an elaborate poster, giving full particulars of the 39th annual fair of the Franklin county agricultural society, which will take place the 27th and 28th. The premiums in many cases have been increased. These are the purses offered for the trials of speed the last day: Free-for-all. All, trotting and pacing, $200; 2.35 class, trotting, $160; 2.50 class, trotting, $160; 2.50 class, trotting, $160. The house owned and occupied by Mrs. Mary S. P. Putnam near Wendell Depot in the town of Orange was burned at 4 o'clock Wednesday morning. The fire was set in the shed near where Mrs. Putnam slept and she narrowly escaped being burned to death by jumping through a window. The Pittsfield selectmen met the signers of ex-Collector Prout’s last year’s bond Wednesday for conference. The board thought that the bond must eventually be sued, and deemed it best to confer with the bondsmen before taking any action. The bondsmen have appointed a sub-committee to see Prout and obtain, if possible, an explanation of his conduct and a settlement of last year’s tax account. Further action in this peculiar mud pile will be determined by the result of this conference, but appearances indicate that the bond must be sued. The 100th birthday of Mrs. Cynthia Hathaway of Savoy was observed Monday at her old homestead in that town. Over 400 people were present including about 150 of her descendants of five generations. Mrs. Hathaway was one of 13 children and has raised the same number. She is a descendant of Abraham Pierce who came to this country in 1892 and is an interesting character. A dinner was served in the woods and was followed by speeches by several guests. EASTERN MASSACHUSETTS. The American Boynton family association held a reunion at Boston last week and celebrated the 250th anniversary of its arrival in this country. Nearly 100 people were present, and a genealogical address was given by Dr. John Farnham Boynton of Syracuse, N.Y., who exhibited charts. and family relics. J. B. Palmer, the Boston broker who has been recently tried for embezzlement, has filed a voluntary petition for insolvency, placing his liabilities at $801,000. Four Pullman car-loads of New England Odd Fellows started on an excursion to Los Angeles, Cal., from Boston last week to attend the sessions of the sovereign grand lodge the 17-20th. The clay model of the bust of George Bancroft has just been finished by Richard S. Greenough, the sculptor. It is larger than life and finely wrought. The casting will be done in bronze, and it will be placed in the Harvard university library. William Warren, the well-known comedian, is now very ill at Boston. Nantucket is to have a Casino. An organization has been formed with Gustav Hobbe, the well-known New York newspaper man and magazine writer, as president, and William Francis Johnson, a New York amateur actor, has been giving tableaux for funds. The landlord of the Larkin house at Watch Hill has sued Dr. Vauderpool of New York for $50,000, on the ground that he called a case of cutaneous eruption, scarlet fever, and caused a stampede among his guests last week so that the hotel had to be closed for the season. There was a disagreement of doctors on the disease. J. C. Drew of Lynn gave himself up in the police office last week as a forger to the amount of $20,000. He had charge of the financial matters of W. F. Monroe, a grocer, and had forged endorsements to notes signed by his employer. William B. Wood, one of the most prominent Boston merchants, died at his home at Lexington Sunday. He had been a dry goods commission merchant for many years, and resided at Brookline, where he had a wide circle of friends. He was a member of the Boston merchants’ association and of the Commercial club, and had served as president of both. Frank Glidden of Beverly was caught in a mud-hole while lobster-fishing on the Beverly flats Monday morning, and sank till the mud closed over and smothered him. Several parties remember hearing cries for help, but owing to a fog could not determine the right direction. Over 200 of those who joined in the wild rush for gold in 1849 held an enthusiastic reunion at the Revere house in Boston Monday evening. The dory Dark Secret, which started on its voyage from Boston to Queenstown some weeks ago, was abandoned at sea by Capt. Anderson, who arrived at New York this week in the Norwegian bark Nora. J. B. Wentworth, formerly a prominent Boston business man, but who met with reverses and was committed to Charles-street jail there for debt last October, where he was confined four days, has brought suit against Sheriff John B. O'Brien. Mr. Wentworth charges that he was kept from Monday morning until Thursday afternoon without food, and the suit grows out of this treatment. CONNECTICUT. The late Robert Buell of Hartford left among other legacies $500,000 to the orphan asylum and $500,000 to the Hartford library association. His wife, who died recently, was to have the estate during life and it was then to be divided proportion. Recently among those who had received legacies, the amount now to be divided is $136,000. A state convention of the prohibition league of Connecticut was held in the Loomer opera-house at Willimantic, last week, with about 500 representatives of prohibition clubs from all parts of the state in attendance. Rev. L. H. Squires of New Haven presided. A state league of prohibition clubs was organized with Theodore I. Beare of Thompsonville president; one vice president from each county; Fred M. Hopkins of Willimantic, secretary; George W. Kees of Norwich, treasurer. The league will hold annual meetings. Theodore Laniard saw James Barry insult Mrs. Barnard on the street at Bridgeport, Saturday night. He went home at midnight and undertook to put his wife out doors. She fought desperately, screaming “Fire,” “Murder.” Sylvester J. Brown of New York was sleeping in a room over the flat occupied by Laniards. He was awakened by the screams. Seeing the crowd outside, supposing the house was on fire and being dazed with sleep, he jumped from a fourth-story window, was impaled upon a wooden picket fence in front of the house and killed. He leaves a widow and two children. The prohibitionists of the 2nd Connecticut congressional district met at New Haven this week and nominated Edwin B. Augur of Middlefield. The exercises of the Marsh family reunion at Bridgeport closed last week with the election of these officers: President, Col Lucius B. Marsh of Boston; secretary, J. Johnson of Greenfield; treasurer, Edmund B. Marsh of Amherst; historian, Rev D. W. Marsh of Amherst. The next meeting will be held at the home of the president, Rev. D. W. Marsh of Amherst. A reunion will be held at Newark, N.J. N. D. Sperry personally superintended the laying of the bricks for the new Derby depot at New Haven this week. The first brick was laid by William L. Thompson, 74, the oldest brick-layer in the city. The funeral services of the late Col. George L. Perkins were well attended at Norwich Saturday. Rev. Dr. Howe officiated and the floral display was beautiful. The grave was lined with evergreens, and several little children brought baskets of clover, the centenarian’s favorite flower, and laid them on the casket. Josiah P. Griswold, who left Madison 20 years ago with only $2.50 in his pocket, returned the other day in a special car. He is now one of the wealthiest citizens of Topeka, Kan. The stockholders of the Hartford bridge company have voted to accept the award of $210,000 of the commissioners making it free. This will settle the question without further litigation or expense unless some of the towns interested take action. The fat-men’s association held its 22nd annual meeting and clam-bake at Glen Island last week. Only a few of the jolly old fellows could be coaxed from their warm homes to the chilly coast, but about 50 bushels of clams beside the chickens, lobsters and other “fixin’s” were served. One must weigh 200 pounds to be a member and several of them weigh nearer 300 pounds. Willard Perkins of Waterbury, weight 1565 pounds, and Patrick Brooks of New York city, weight 374 pounds, ran a race of 200 yards. Perkins was the declared winner. The Danbury Democrat is a New daily which made its first appearance at Danbury last week. Maj. Allen of the famous Hartford drum corps of that name will resign this year and an entertainment is to be given in his honor. James Fitzgerald of Rockville has been given the contract to put in the foundation for Rockville’s memorial and town hall, and began work Monday. The lot cost $37,000 and the building will cost $75,000. The Meriden Britannia company is about to build new factories for the manufacture of solid gold and silver articles. The main building will be 300 feet long, five stories high and will have two wings 140 feet long. The new business will employ about 600 hands. The directors of the Phoenix insurance company of Hartford Tuesday elected J. H. Mitchell of Philadelphia second vice-president of the company and George H. Burdick of Hartford secretary. Capt Franklin Sherwood, who died at Sherwood’s Island in Westport Sunday, aged 78, was the survivor of three brothers born triplets. Each had an inborn bent for the sea, and the resemblance of the three to each other was so perfect that it was difficult to distinguish them. Each became the commander of a vessel before he ended his career. Capt Franklin Sherwood retired 30 years ago to his island home at Westport. The wife of Joseph Breed, the late cashier of the Hartford national bank who defaulted and committed suicide a few days ago, has been qualified as the executrix of his will, and her bond was placed at $100, the assets being a gold watch and $25. His real estate was heavily mortgaged. One of Mr. Breed’s associates in the bank stated Monday that the deficiencies in the Goodwin estate were not the cause of suicide in his opinion, else Mr. Breed would have ended his life last January. It was from an entirely different reason, and one that is not likely To be known. The democrats of the 2nd Connecticut congressional district met at New Haven this week and nominated Washington I. Willcox of Middletown for Congress, to succeed Carlos French. Wilcox received 13 votes more than James P. Piggott of New Haven, and will probably be elected, as the district is democratic. Rev. Mr. Hicks of the Wethersfield Congregational church has resigned, and asks to be released by October 1. Mr. Hicks has been ill-health for some time, and has been advised to try the western climate. A recent call from the First church at Pueblo, Cat., has been accepted. The will of the late Martha Dunham of Hartford, a wealthy citizen, has been probated and contains a long list of bequests, mostly private. Austin C. Dunham and John C. Parsons of Hartford are executors. The residue of her estate after the paying of bequests is to be divided between the Roman Catholic apostolic churches of London and Sixteenth-street in New York. She gives $300 to buy a Hartford lot for a Roman Catholic apostolic church. Richard McBride, a prosperous farmer living at Meekertown near Winsted, had a fierce fight with a large eagle the other day in which he was badly wounded on the wrist. He found the bird in his barn, and four of his lambs suffering from fear of an attack. When the eagle soared to the roof of the interior and swooped down on a lamb grasping it in his talons, Mr. McBride made his attack. He stunned the eagle with a club but not before he had been bitten in the wrist. The bird revived in a few minutes and flew out of the wing. The door. Harriet Beecher Stowe arrived home at Hartford this week from her summer stopping-place at Sag Harbor. She was so ill last week that it was believed her death was near, but she has since rallied and may live some time yet. VERMONT. About 1000 people attended the reunion of the Winfield county association of veterans at Townshend last week including about 400 old soldiers. F. H. Brown, formerly Vermont manager of the Boston Journal, has bought the Bellows Falls Times of its present proprietor, A. N Swain, who has published it for 32 years. He will take possession October 1. Mrs. B. K. Richards of Kirby, just after stepping from train at the Brattleboro depot last week, became dazed by the approach of another train and was run over. One foot and a part of the other leg had to be amputated and her recovery is doubtful. The Missisquoi railroad depot at Enosburg Falls, was burned early last week morning, with all its contents. The safe was found to have been blown open by burglars, and the destruction of the depot by fire is attributed to this cause. Fifteen dollars was taken from the safe. The loss on the depot amounts to several hundred dollars. The Central Vermont depot at North Georgia was also gutted by accidental fire Friday night. Both depots were fully insured. Complete returns from all towns in the state give Dillingham 48,380, Shurtleff 19,426, Seely, pro., 1299, scattering 6. Dillingham’s plurality 28,954; majority over all 27,669. Dr. Edward Kirkland, son of Mrs. M. E. Kirkland, died at his home in Hartford last week. Inkland, was married in Leicester, Mass., Tuesday, to Miss Mary Chase of Atlanta, Ga. They will live in Bellows Falls, where the doctor has a good practice. John H. Senter has been appointed bank examiner in the state in place of J. J. R. Randall of Rutland resigned. Rev. Benjamin Ober, over 80, died at his Brattleboro home Saturday. He formerly preached for the Congregationalists in different towns in the county. His body was taken to Beverly, Mass., his native town, for burial. The barn and farm buildings owned by Hiram Barrett at South Strafford, were set on fire by a spark from a tramp’s pipe Monday evening, and as there are indications of the burning of someone in the barn it is supposed the tramp perished in the flames. The loss was $25,000, fully insured. A T £'ir HAMPSHIRE. The Cheshire county musical convention will begin October 1. Visitors have climbed the summit of Mt Washington last week in spite of the cold wave. The mercury has lurked below the freezing point most of the time, and reached 15 degrees above zero Thursday. The wind blew 80 miles an hour and the frost was very fine. Among the notable people present was J. H. Spaulding, who built the Tip Top house in 1853. Ex-Gov Berry, one of the few old war governors now living, celebrated his 92nd birthday at his home in Bristol recently. Mrs. Sarah Heald of Chester, 81 years old, has for the past 20 years lived alone, and carried on a small farm of her own. This summer she harvested her bay crop alone, and she keeps the farm looking better than the average. She has cut her own firewood for the past five years. These presidential electors were chosen by the New Hampshire democrats last week: Thomas Cogswell of Gilmanton, Harry Bingham of Littleton, George Van Dyke of Lancaster and William Aiken of Franklin. S. F. Shirley, manager of the firm of C. H. Nudd & Co, brokers at Manchester, N.H., is charged with embezzling $2000. Shirley claims to have friends who will make good his losses. He was an inveterate poker player and it is supposed the money has been used to pay losses in the game. He was an expert telegrapher and received a salary of $1500 a year. Col W. S. Pillsbury of Derry was nominated for councilor by the republicans of the 3rd district at Manchester on Monday. The democrats of the 1st New Hampshire congressional district renominated Congressman L. M. McKinney by acclamation at Dover, N.H., this week. RHODE ISLAND. “Spike” Murphy was bound over at Providence last week on the charge of murdering Waterman Irons August 24. Gorham Thurber of the Gorham manufacturing company of Providence died of heart disease while attending a meeting of the new cable tramway company last week afternoon. He was born in Providence 63 years ago, and founded the Gorham manufacturing company 30 years ago, remaining as its treasurer till last July. Prince Henri of the house of Orleans is the latest addition to royalty at Newport. He has been entertained and feasted by the “best” and has sent letters thanking the clubs for their courtesies. A breakfast was tendered him yesterday by Isaac Bel, Jr., ex-minister to the Netherlands. He will sail for Europe Saturday. MAINE. Senator and Mrs. Frye have returned to Lewiston. Mrs. Frye will remain at Lewiston several months to finish a semi-political novel, which is said to be stirring and cleverly handled. Suits have been brought against the Biddeford and Saco savings institution by Detective Nicholas Power of Halifax, N.S., to recover the reward offered for the arrest of Defaulter McNeally. Judge Emery sentenced Whitney and Foster, the robbers of old Peter Bennett, to 10 and 8 years respectively in the state prison, in the supreme court at Bangor last week. Mrs. Azubah H. Ryder, the Orrington woman who has reached the age of 106 years, lost her oldest son, aged 80, and a nephew, aged 90, within a few days. An insane woman answering to the description of Mrs. Paul, the missing Lewiston woman, has been seen in the woods at Freeman. One man succeeded in catching her by the hand and tried to lead her from the forest, but she became violent and escaped. A new searching party has been sent out from Lewiston. THE PALMER PARK. Award for the Event—Trotting in the 2nd and 2nd Classes—J. Sheppard and Surrey, the Winners. The second day of the Eastern Hampden agricultural fair opened at Palmer Wednesday with very unfavorable weather, but it cleared up in the afternoon and the track was in fairly good condition. The attendance was larger than the day before, but compared with preceding years was small. The Ware cadet band furnished good music for the occasion. The most important event of the afternoon was the 2:30 race for a purse of $175, divided, in which were three starters. The race was exciting at intervals, but was easily won by Jack Sheppard, owned by E. F. Bass of this city, in three straight heats. Leroy, owned by F. L. Sturtevant of Hardwick, won the second race. BERKSHIRE ECLIPSES HER RECORD. To say that the second day of the Berkshire society’s annual fair was a success hardly expresses it, for it exceeded anything in the previous history of the organization. The morning opened rainy, but the sky soon cleared, and the fine day that followed sent the crowds flocking to the grounds. In the large hall the showing in the various departments was in the main very good. THE MAINE ELECTIVE. Republican by 20,000 Plurality. The latest returns from Maine carry out the first estimate that the state has gone republican by about 20,000 plurality. Congressman Reed was serenaded Monday night, and cheered "the next speaker of the House." When republicans claim the state Senate, but the democrats hope the returns will give them four members. The state Legislature will have 122 republicans and 27 democrats. Returns from 360 towns give Burleigh 10,500, Putnam 52,117, Cushing 24,64, Burleigh's plurality 18,633, a net gain of 5799 over the plurality of 1886. The same ratio in the remaining towns will give Burleigh more than 20,000 plurality. The total vote in 1884 stood: Republican 78,699, democratic 58,954, republican plurality 19,745. The labor vote this year is included in the scattering, but evidently some of the scattering should be assigned to the prohibition vote. The presidential vote in 1884 was smaller than the governor vote in the aggregate, but there was a slightly larger plurality. The Legislature in 1886 stood: Republican senators 27, democratic 4; republican representatives 122, democratic 27, prohibition and independent one each. The congressmen re-elected are Thomas B. Reed, Nelson Dingley, Jr., S. L. Milliken and C. A. Boutelle. Sherman Hoar declines to be a candidate for Congress in the 6th district. THE THIRD PARTY RALLY IN THIS CITY. The Picture of Candidate Fisk. The City hall was crowded to its utmost capacity last week Thursday night at the first prohibitionist rally. To the credit of the cold water folks it may be said that it was clean-est-looking audience that has gathered there for many a day. The exercises were interspersed with music by the Southworth band, by a quartet improvised for the occasion and a duet from the prohibition tent in Connecticut. The singing of the campaign songs by the duet was enthusiastically received and encored repeatedly. Dr. Blackmer of this city welcomed the assembly and expressed his joy at being able to present such a fine list of speakers. Prof. John Bascom of Williams College was introduced as a “literary crank” who had made himself famous in the East and West as an educator and a prohibitionist. He gave a thoughtful and logical address on the value of a vote, and was listened to with a deal of interest. Gen. Fisk's speech occupied scarcely 20 minutes, and was bright and punctual, filled with funny stories, rather than the usual serious argument of the prohibitionist orator. Advice to Mothers.—Mrs. Winslow’s Soothing Syrup for children teething is the prescription of one of the best female nurses and physicians in the United States, and has been used for 40 years with never-failing success by millions of mothers for their children. During the process of teething its value is incalculable. It relieves the child from pain, cures dysentery and diarrhea, griping in the bowels and wind-colic. By giving health to the child it rests the mother. Price 25c a bottle. A Narrow Escape. “Yes, I had a very narrow escape,” said a prominent citizen to a friend. “I was confined to my bed for a year and my friends gave me up for a consumptive’s grave, until I began using Kemp’s Balsam for the throat and lungs, and here I am, sound and hearty.” You will find it for sale by all druggists. Price 50c and $1. Sample Bottle Free. A BOTTLE OF ANGOSTURA BITTERS to flavor your lemonade or any other cold drink will keep you from enjoying the luxury of a lemonade or any other cold drink. Free from dyspepsia, colic, diarrhea and all diseases originating from the digestive organs. Be sure to get the genuine Angostura, manufactured by Dr. J. G. B. Siegert Sons. Mouths of children sweet and rosy, Sozodont benign keeps pure, Fragrant as a fresh-plucked posy; Strong, and likely to endure, Will the second teeth be, ladies, If when young attention paid is. What Adamson’s Balsam Does: It breaks up a cold and stops a cough more speedily, certainly and thoroughly than any other medicine. It cures all lung and throat diseases that can be reached by human aid. Palpitation of the heart, nervousness, trem blings, nervous headache, cold hands and feet, pain in the back, and other forms of weakness are relieved by Carter’s Iron Pills, made specially for the blood, nerves and complexion. Castoria. When baby was sick, we gave her Castoria. When she was a child, she cried for Castoria. When she became miss, she clung to Castoria. When she had children, she gave them Castoria. Not a particle of quinine nor any mineral substance is contained in Ayer’s Ague Cure—yet it is a warranted specific for malaria. Distress after eating, heartburn, sick headache and indigestion are cured by Hood’s Sarsaparilla. It also creates a good appetite. BOHN J In this city 10th, a son (William Bartlett) to William P. and Maby B. Porter. In this city 10th, a son, weight 9 pounds, to W. A. and L. J. Dickinson, 33 Clinton street. In this city 10th, a son to Charles B. and Clara B. Wetherell. In this city 11th, a daughter to George M. and Agnes Philbrick. At Ludlow 2nd, a son to Charles F. and Emma S. Tarbox. At Reading 3rd, a son to Fred C. and Eleanor a. Steele. At Brooklyn, N.Y., 3rd, a son to F. L. and Abbie S. Allen. XIABKIKD. In this city, by Rev Dr S. G. Buckingham, William C. Fairchild and Etta J. Graves, both of Sunderland; Miss Nilsson and Amora Nilsson. In this city, 11th, at the residence of the bride's brother, 322 Worthington Street, by Rev G. I. Keim, B. O. Hale and Elizabeth D. Gale. At Chicopee, at the residence of the bride's father, J. E. Patrick, by Rev H. J. Patrick of West Newton, Charles B. Houghton of Boston and Minnie A. Patrick. At Turners Falls 6th, by Rev Dr J. F. Moors of Greenfield, Samuel Grumbine of Titusville, Pa., and Annette M. Farwell. At Bernardston 8th, by Rev William L. Jenkins, Dr W. H. Pierce and Nellie M. Gray. At Oakdale 4th, Everett E. Prescott of Clinton and Hattie Chamberlain. At Hardwick 6th, Joseph Robinson and S. G. Shanley. At Hyde Park 10th, in the First Baptist church, by Rev Dr H. W. Tilden and Rev Perley B. Davis, William H. Allen and Annette Frost. In this city, 7th, Lehman, 12 years, 2 months and 4 days, son of Reuben and Sarah J. Williams in this city, 9th, Mary Caroline, 15 years, 2 months and 21 days, oldest daughter of John and Mary C. Holton. In this city, 7th, Nathan E. Poole, 58 years and 7 months. In this city, 12th, Mrs. Emebett L. Field, M. In this city, 11th, infant daughter of George M and AGNES PILIBRICH. At West Springfield, 8th, Minnie C. Campton wife of Henry W. Currier. At East Longmeadow, 7th, William E Coombs, 46. At East Longmeadow, 3rd, of typhoid fever. Arthur W., 24, oldest son of C. E. and T. A Sessions. At Westfield, 10th, Hattie J., 24, daughter of Joseph Smith. At Palmer, Jane, 50, wife of Austin R. Smith. At Monson, D.D., May, 90, widow of John Shaw. At South Hadley Falls, 7th, Winthrop Lamb, years and 3 months, son of Henry E. and Edith L. and. At Smith’s Ferry, 11th, Albert Waters. At Sunderland, 8th, Arthur S., 18 years, 8 months and 8 days, son of F. H. and J. S. Williams. At Hubbardston, 8th, Warner Cun-oar., well known in Worcester county as a veteran of the Civil War. At Cambridge, 9th, Bridget Shea, 104, grandmother of T. P. Sampson of this city. At Salem, 6th, John W. Roberts, 47, one of the largest fruit dealers in New England. At Lynn, 8th, George Hussey Chase, 62, postmaster of the city under Lincoln, and a prominent citizen. At Suffield, Ct., 8th, Milton Hatheway, 91, years and 7 months. At Cromwell, Ct., 10th, Henry Mather Smith, 41, son of H. B. Smith of Westfield. At Chester, Vt., 8th, May E., 16 months, only daughter of Charles J. and Mary E. Tarbell of this city. At South Halifax, Vt., 3rd, suddenly, of apoplexy, Jed Stark, in the 69th year of his age. At Providence, R.I., 2nd, Emily Isadora, wife of George Gilmore, formerly of this city. At Dover, N.H., 6th, Lewis W. Nute, a well-known Boston leather merchant. At Waterville, Me., recently, Gen Franklin Smith, 86, formerly prominent in the old state. Centerville, Ind., 8th, Wharton Lyman, 78, oldest daughter of the late Caleb Bliss of West Springfield.
| 37,727 |
https://stackoverflow.com/questions/46604908
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017 |
Stack Exchange
|
Dhruv Jagetiya, Mathieu Bertin, Pavel Strelchenko, Tim, azizbekian, https://stackoverflow.com/users/1083957, https://stackoverflow.com/users/1843331, https://stackoverflow.com/users/1973663, https://stackoverflow.com/users/4046399, https://stackoverflow.com/users/5127410
|
English
|
Spoken
| 267 | 462 |
subscribeOn Android UI thread
I am new to RxJava and I think I am probably overlooking something very basic. So I have created an Observable that performs a long running I/O task like this. Now I want to make sure that subscriber receives its result on Android UI Thread:
Observable.create(new ObservableOnSubscribe<Device>() {
@Override
public void subscribe(@io.reactivex.annotations.NonNull final ObservableEmitter<Device> e) throws Exception {
//Long running task
}
}).subscribeOn(Schedulers.io())
As you can see, I have performed the long running task on Schedulers.io(). How do I switch back to Android UI thread?
Look on "observeOn" operator and "rxAndroid" library.
I know about observeOn. Is there any other workaround aside from using another library?
use the RxAndroid lib. It is only 1 or 2 methods, so not downsides to using it
Of course, you have another solution - you can implement your own Scheduler with main thread looper. Look into RxAndroid for example =)
But why you need to re-invent a bicycle, if you have the ability to load simple and light-weight library?
You have to perform observeOn(AndroidSchedulers.mainThread()).
There is no AndroidSchedulers class.
You have to import RxAndroid in gradle file: compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
Fascinating. I was reluctant to include another library, but it seems like it's very lightweight.
If you don't want to import that lib (but I suggest you to do it) just pass a scheduler construct with the main looper
@MathieuBertin Then why use RxAndroid at all?
Because it's just sugar but it's really usefull and it's really light. Moreover you have to implement your proper version of scheduler and it could not work properly instead of the 'AndroidSchedulers''
| 30,988 |
https://github.com/matteosox/tubthumper/blob/master/test/unit_tests/test_retry.py
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022 |
tubthumper
|
matteosox
|
Python
|
Code
| 1,631 | 7,105 |
"""Unit tests for the function retry"""
# pylint: disable=too-many-public-methods
import logging
import random
import unittest
from mock import AsyncMock, Mock
from tubthumper import RetryError, retry
from . import constants, util
tubthumper_logger = logging.getLogger("tubthumper")
tubthumper_logger.setLevel(logging.ERROR) # silence warnings from retries
class TestRetryAsync(util.IsolatedAsyncioTestCase):
"""Test case for retry function with coroutines"""
async def test_coroutine_success(self):
"""Test success of a simple coroutine passed into retry"""
return_value = 1
func = AsyncMock(return_value=return_value)
result = await retry(func, exceptions=constants.TestException)
self.assertEqual(result, return_value)
func.assert_awaited_once_with()
@staticmethod
async def test_coroutine_call():
"""Test coroutine is called with appropriate arguments"""
func = AsyncMock()
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
exceptions=constants.TestException,
)
func.assert_awaited_once_with(*constants.ARGS, **constants.KWARGS)
async def test_single_exception(self):
"""Test providing a single exception to catch is caught and retried"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
await retry(
func, exceptions=constants.TestException, retry_limit=1, init_backoff=0
)
self.assertEqual(func.await_count, 2)
async def test_diff_single_exception(self):
"""Test providing a single exception and throwing a different one is not caught and retried"""
side_effect = TypeError
func = AsyncMock(side_effect=side_effect)
with self.assertRaises(side_effect):
await retry(func, exceptions=constants.TestException, retry_limit=1)
func.assert_awaited_once_with()
async def test_multiple_exceptions(self):
"""Test providing a tuple of exceptions and throwing one of them is caught and retried"""
exceptions = (constants.TestException, TypeError)
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
await retry(func, exceptions=exceptions, retry_limit=1, init_backoff=0)
self.assertEqual(func.await_count, 2)
async def test_diff_multiple_exceptions(self):
"""Test providing a tuple of exceptions and throwing a different one is not caught and retried"""
exceptions = (ValueError, TypeError)
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
await retry(func, exceptions=exceptions, retry_limit=1)
func.assert_awaited_once_with()
async def test_reraise(self):
"""Test that setting reraise to True results in raising the caught exception, not RetryError"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
await retry(
func,
reraise=True,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
async def test_reraise_with_time_limit(self):
"""Test that setting reraise to True with a time limit results in raising the caught exception, not RetryError"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
await retry(
func,
reraise=True,
time_limit=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 1)
async def test_retry_limit_0(self):
"""Test retry_limit set to 0 calls function once and raises RetryError"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
await retry(func, retry_limit=0, exceptions=constants.TestException)
func.assert_awaited_once_with()
async def test_time_limit(self):
"""Test that setting a time_limit results in a RetryError"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
await retry(func, time_limit=0, exceptions=constants.TestException)
func.assert_awaited_once_with()
async def test_jitter(self):
"""Test jitter results in random variation in backoff time, predictable thanks to setting the random seed"""
func = util.timed_mock(async_mock=True, side_effect=constants.TestException)
random.seed(constants.RANDOM_SEED)
with self.assertRaises(RetryError):
await retry(func, retry_limit=1, exceptions=constants.TestException)
self.assertEqual(func.await_count, 2)
duration = func.call_times[1] - func.call_times[0]
util.assert_time(self, duration, constants.RANDOM_QUANTITY)
async def test_init_backoff(self):
"""Test init_backoff results in appropriate backoff time"""
func = util.timed_mock(async_mock=True, side_effect=constants.TestException)
init_backoff = 0.01
with self.assertRaises(RetryError):
await retry(
func,
init_backoff=init_backoff,
retry_limit=1,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
duration = func.call_times[1] - func.call_times[0]
util.assert_time(self, duration, init_backoff)
async def test_exponential_backoff(self):
"""Test default exponential backoff time"""
func = util.timed_mock(async_mock=True, side_effect=constants.TestException)
init_backoff = 0.01
with self.assertRaises(RetryError):
await retry(
func,
init_backoff=init_backoff,
retry_limit=2,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 3)
util.assert_time(self, func.call_times[1] - func.call_times[0], init_backoff)
util.assert_time(
self, func.call_times[2] - func.call_times[1], 2 * init_backoff
)
async def test_custom_exponential_backoff(self):
"""Test custom exponential backoff time"""
func = util.timed_mock(async_mock=True, side_effect=constants.TestException)
init_backoff = 0.01
exponential = 1.5
with self.assertRaises(RetryError):
await retry(
func,
init_backoff=init_backoff,
exponential=exponential,
retry_limit=2,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 3)
util.assert_time(self, func.call_times[1] - func.call_times[0], init_backoff)
util.assert_time(
self, func.call_times[2] - func.call_times[1], exponential * init_backoff
)
async def test_logging(self):
"""Test retrying a function results in a warning log statement"""
func = AsyncMock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
with self.assertLogs(logger=tubthumper_logger, level=logging.WARNING):
await retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
)
self.assertEqual(func.await_count, 2)
async def test_custom_logging_level(self):
"""Test that setting a custom log level works"""
func = AsyncMock(side_effect=constants.TestException)
level = logging.INFO
with self.assertRaises(RetryError):
with self.assertLogs(logger=tubthumper_logger, level=level):
await retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
log_level=level,
)
self.assertEqual(func.await_count, 2)
async def test_custom_logger(self):
"""Test that supplying a custom logger works"""
func = AsyncMock(side_effect=constants.TestException)
logger = logging.getLogger(__name__)
with self.assertRaises(RetryError):
with self.assertLogs(logger=logger, level=logging.WARNING):
await retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
)
self.assertEqual(func.await_count, 2)
async def test_method_of_object(self):
"""Test retry and correct call structure for wrapping an object's async method"""
class _Class:
method = util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(obj, *constants.ARGS, **constants.KWARGS)
async def test_method_of_class(self):
"""Test retry and correct call structure for wrapping a class's async method"""
class _Class:
method = util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
func = _Class.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
async def test_classmethod_of_object(self):
"""Test retry and correct call structure for wrapping an object's async classmethod"""
class _Class:
method = classmethod(
util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(_Class, *constants.ARGS, **constants.KWARGS)
async def test_classmethod_of_class(self):
"""Test retry and correct call structure for wrapping a class's async classmethod"""
class _Class:
method = classmethod(
util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
)
func = _Class.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(_Class, *constants.ARGS, **constants.KWARGS)
async def test_staticmethod_of_object(self):
"""Test retry and correct call structure for wrapping a object's async staticmethod"""
class _Class:
method = staticmethod(
util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
async def test_staticmethod_of_class(self):
"""Test retry and correct call structure for wrapping a class's async staticmethod"""
class _Class:
method = staticmethod(
util.create_method_mock(
async_mock=True, side_effect=constants.TestException
)
)
func = _Class.method
with self.assertRaises(RetryError):
await retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.await_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
class TestRetry(unittest.TestCase):
"""Test case for retry function"""
def test_success(self):
"""Test success of a simple function passed into retry"""
return_value = 1
func = Mock(return_value=return_value)
result = retry(func, exceptions=constants.TestException)
self.assertEqual(result, return_value)
func.assert_called_once_with()
def test_only_one_positional_arg(self):
"""Test that the retry function only allows one positional argument"""
func = Mock()
with self.assertRaises(TypeError):
retry( # pylint: disable=too-many-function-args
func, None, exceptions=constants.TestException
)
@staticmethod
def test_func_call():
"""Test args & kwargs are passed into func properly"""
func = Mock()
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
exceptions=constants.TestException,
)
func.assert_called_once_with(*constants.ARGS, **constants.KWARGS)
def test_single_exception(self):
"""Test providing a single exception to catch is caught and retried"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
retry(
func, exceptions=constants.TestException, retry_limit=1, init_backoff=0
)
self.assertEqual(func.call_count, 2)
def test_diff_single_exception(self):
"""Test providing a single exception and throwing a different one is not caught and retried"""
side_effect = TypeError
func = Mock(side_effect=side_effect)
with self.assertRaises(side_effect):
retry(func, exceptions=constants.TestException, retry_limit=1)
func.assert_called_once_with()
def test_multiple_exceptions(self):
"""Test providing a tuple of exceptions and throwing one of them is caught and retried"""
exceptions = (constants.TestException, TypeError)
func = Mock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
retry(func, exceptions=exceptions, retry_limit=1, init_backoff=0)
self.assertEqual(func.call_count, 2)
def test_diff_multiple_exceptions(self):
"""Test providing a tuple of exceptions and throwing a different one is not caught and retried"""
exceptions = (ValueError, TypeError)
func = Mock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
retry(func, exceptions=exceptions, retry_limit=1)
func.assert_called_once_with()
def test_reraise(self):
"""Test that setting reraise to True results in raising the caught exception, not RetryError"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
retry(
func,
reraise=True,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
def test_reraise_with_time_limit(self):
"""Test that setting reraise to True with a time limit results in raising the caught exception, not RetryError"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(constants.TestException):
retry(
func,
reraise=True,
time_limit=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 1)
def test_retry_limit_0(self):
"""Test retry_limit set to 0 calls function once and raises RetryError"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
retry(func, retry_limit=0, exceptions=constants.TestException)
func.assert_called_once_with()
def test_time_limit(self):
"""Test that setting a time_limit results in a RetryError"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
retry(func, time_limit=0, exceptions=constants.TestException)
func.assert_called_once_with()
def test_jitter(self):
"""Test jitter results in random variation in backoff time, predictable thanks to setting the random seed"""
func = util.timed_mock(side_effect=constants.TestException)
random.seed(constants.RANDOM_SEED)
with self.assertRaises(RetryError):
retry(func, retry_limit=1, exceptions=constants.TestException)
self.assertEqual(func.call_count, 2)
duration = func.call_times[1] - func.call_times[0]
util.assert_time(self, duration, constants.RANDOM_QUANTITY)
def test_init_backoff(self):
"""Test init_backoff results in appropriate backoff time"""
func = util.timed_mock(side_effect=constants.TestException)
init_backoff = 0.01
with self.assertRaises(RetryError):
retry(
func,
init_backoff=init_backoff,
retry_limit=1,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
duration = func.call_times[1] - func.call_times[0]
util.assert_time(self, duration, init_backoff)
def test_exponential_backoff(self):
"""Test default exponential backoff time"""
func = util.timed_mock(side_effect=constants.TestException)
init_backoff = 0.01
with self.assertRaises(RetryError):
retry(
func,
init_backoff=init_backoff,
retry_limit=2,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 3)
util.assert_time(self, func.call_times[1] - func.call_times[0], init_backoff)
util.assert_time(
self, func.call_times[2] - func.call_times[1], 2 * init_backoff
)
def test_custom_exponential_backoff(self):
"""Test custom exponential backoff time"""
func = util.timed_mock(side_effect=constants.TestException)
init_backoff = 0.01
exponential = 1.5
with self.assertRaises(RetryError):
retry(
func,
init_backoff=init_backoff,
exponential=exponential,
retry_limit=2,
jitter=False,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 3)
util.assert_time(self, func.call_times[1] - func.call_times[0], init_backoff)
util.assert_time(
self, func.call_times[2] - func.call_times[1], exponential * init_backoff
)
def test_logging(self):
"""Test retrying a function results in a warning log statement"""
func = Mock(side_effect=constants.TestException)
with self.assertRaises(RetryError):
with self.assertLogs(logger=tubthumper_logger, level=logging.WARNING):
retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
)
self.assertEqual(func.call_count, 2)
def test_custom_logging_level(self):
"""Test that setting a custom log level works"""
func = Mock(side_effect=constants.TestException)
level = logging.INFO
with self.assertRaises(RetryError):
with self.assertLogs(logger=tubthumper_logger, level=level):
retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
log_level=level,
)
self.assertEqual(func.call_count, 2)
def test_custom_logger(self):
"""Test that supplying a custom logger works"""
func = Mock(side_effect=constants.TestException)
logger = logging.getLogger(__name__)
with self.assertRaises(RetryError):
with self.assertLogs(logger=logger, level=logging.WARNING):
retry(
func,
exceptions=constants.TestException,
retry_limit=1,
init_backoff=0,
)
self.assertEqual(func.call_count, 2)
def test_method_of_object(self):
"""Test retry and correct call structure for wrapping an object's method"""
class _Class:
method = util.create_method_mock(side_effect=constants.TestException)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(obj, *constants.ARGS, **constants.KWARGS)
def test_method_of_class(self):
"""Test retry and correct call structure for wrapping a class's method"""
class _Class:
method = util.create_method_mock(side_effect=constants.TestException)
func = _Class.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
def test_classmethod_of_object(self):
"""Test retry and correct call structure for wrapping an object's classmethod"""
class _Class:
method = classmethod(
util.create_method_mock(side_effect=constants.TestException)
)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(_Class, *constants.ARGS, **constants.KWARGS)
def test_classmethod_of_class(self):
"""Test retry and correct call structure for wrapping a class's classmethod"""
class _Class:
method = classmethod(
util.create_method_mock(side_effect=constants.TestException)
)
func = _Class.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(_Class, *constants.ARGS, **constants.KWARGS)
def test_staticmethod_of_object(self):
"""Test retry and correct call structure for wrapping a object's staticmethod"""
class _Class:
method = staticmethod(
util.create_method_mock(side_effect=constants.TestException)
)
obj = _Class()
func = obj.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
def test_staticmethod_of_class(self):
"""Test retry and correct call structure for wrapping a class's staticmethod"""
class _Class:
method = staticmethod(
util.create_method_mock(side_effect=constants.TestException)
)
func = _Class.method
with self.assertRaises(RetryError):
retry(
func,
args=constants.ARGS,
kwargs=constants.KWARGS,
retry_limit=1,
init_backoff=0,
exceptions=constants.TestException,
)
self.assertEqual(func.call_count, 2)
func.assert_called_with(*constants.ARGS, **constants.KWARGS)
if __name__ == "__main__":
unittest.main()
| 13,732 |
handbooklawequi00shipgoog_4
|
US-PD-Books
|
Open Culture
|
Public Domain
| null |
None
|
None
|
English
|
Spoken
| 7,328 | 10,544 |
§ 14) PARTIES WITH SEPARABLE INTERESTS. 43 before the court.** Thus, though all the partners must ordinarily be made parties to a bill against the partnership, if one partner resides in a foreign country, where he cannot be reached, the court will usually make a decree against the partners who are within its jurisdiction.** When an interested party is out of the jurisdiction of the court, and it is sought to proceed in his absence, the bill should allege that he is out of the jurisdiction; but his name should be given, and process prayed against him. If he should afterwards come within the jurisdiction, he should be brought before the court.** A second exception, based on the impracticability of making par- ties, is where the personal representative of a deceased person would be a necessary party, but it is charged in the bill Ihat no such representative is in existence, as where the representation is in litigation. In such a case the court will proceed to a decree, if it can be done without prejudice; and, if not, then it will post- pone the cause until the proper parties can be made.** "So, if the persons who are' proper parties are unknown to the plaintiff, and the fact is so charged in the bill, and the bill seeks a dis- covery of those parties, for the purpose of bringing them before the court, the objection of want of parties will not be allowed to i» Story, Eq. PI. § 8; RusseU y. Clark, 7 Cranch. 69; Mallow ▼. Hlnde, 12 Wheat 193: West y. Randall, 2 Mason, 181, 190, Fed. Cas. No. 17,424; Traders' Bank y. Campbell, 14 WaU. 87; Vattler y. Hlnde, 7 Pet. 252; Carey V. Hoxey, 11 Ga. 645; Towle y. Pierce, 12 Mete. (Mass.) 329; Farmers' & Mechanics' Bank y. Polk, 1 Del. Ch. 167; Equity Rule 47. See ante, p. 4L 20 Palmer v. Steyens, 100 Mass. 461; Towle y. Pierce, 12 Mete. (Mass.) 329; Cowslad y. Cely, Prec. Ch. 83; Darwent y. Walton, 2 Atk. 510. Of. Vose y. Philbrook, 3 Story, 335, Fed. Cas. No. 17,010. «i Story, Eq. PI. § 80; Munoz y. De Tastet, 1 Beav. 109, note: Tobin y. Walkinshaw, McAH. 26, 81, Fed. Cas. No. 14,068. But see Haddock y. Thom- llnson, 2 Sim. & S. 219. «« Plunket y. Penson, 2 Atk. 61; Carey y. Hoxey, 11 Ga. 652; Vann y. Har- gett, 2 Dey. & B. Eq. (N. C.) 81; Atkinson y. Henshaw, 2 Ves. & B. 85; Jones y. Frost, 8 Madd. 1; D'Aranda y. Whittlngham, Mob. 84. See Humphreys y. Humphreys, 8 P. Wms. 349. All persons Interested in the subject of a suit in equity must, as a general rule, be made parties; and it is not enough to ex- cuse the omission of a party or his representative that he is dead, and that DO representatiye has been appointed. Martin y. McBryde, 8 Ired. Eq. (N. C.) S2t. 44 PARTIES. (Ch. 2 prevail, for the reason already assigned, and for the additional reason that it is one of the very objects of the bill to obtain the information which will enable the plaintiff to cure the defect, and in no other way can It be cured." '• So, where the parties are very numerous, as has been seen, the court will not insist on all being made parties, but will dispense with some of them, and proceed to a decree, if it can be done without prejudice to those not actually before the court** PARTIES COMPLAIN ANT— CAPACITY TO SUIL 16. In general, all persons not incapacitated by some spe* dal disability may sue in equity in their own right. 16. Incapacity to sue in equity may be either (a) Absolute, which wholly disables the party while it continues to exist, as in the case of an alien enemy; or (b) Partial, which disables the person from suing with- out the aid of another, as in the case of (1) Infants. (2) Persons non compotes mentis. (3) Married women, unless enabled by statute. «» story, Eq. PI. § 92; Bowyer v. Covert, 1 Vem. 95; Heath v, Perclval, 1 P. Wms. 682, 684; Fenn v. Craig, 3 Younge & O. 216, 224. «* Story, Eq. PL § 94; Cockburn v. Thompson, 16 Ves. 321; West v. Randall 2 Mason, 181, 192-196, Fed. Cas. No. 17,424; Wendell's Ex'rs v. Van Rensse- laer, 1 Johns. Ch. (N. T.) 344, 349; Wood v. Dummer, 3 Mason, 308, Fed. Cas. No. 17,944; Meux t. Maltby, 2 Swanst. 277; Stimson v. Lewis, 36 Vt. 91: Mandeville v. RiggB, 2 Pet. 482; Fenn v. Craig, 3 Younge & C. 216, 224, and note; Smith v. Swormstedt, 16 How. 288; Jewett v. Tucker, 139 Mass. 56^, 2 N. E. 680. See U. S. Equity Rule 48. The bill should allege that the par- ties are too numerous to be joined. Whitney v. Mayo, 15 111. 251; Wall worth V. Holt, 4 Mylne & C. 619, G35. Cases where one or more are permitted to sue or defend on behalf of the others are illustrations of this principle of exception. See ante, p. 28. See, also. Strong v. Waterman, 11 Paige (N. Y.) 607; Bromley v. Smith, 1 Sim. 8; Bouton v. City of Brooklyn, 15 Barb. (N. Y.) 875; People t. Sturtevant, 9 N. Y. 263; Newcomb v. Horton, 18 Wis. 566. §§ 15—16) PARTIES COMPLAINANT CAPACITY TO SUB. 45 Cbmplainants in General. The general rule above given includes in its scope all sorts and conditions of persons not subject to some special disability, and the term "persons" refers, not only to natural persons of full age and sound mind, but to artificial persons, as bodies politic and corporate.^ Thus, a corporation may sue in equity, whether mu- nicipal or private,' and a state may sue in any of the federal courts.' So foreign sovereigns acknowledged by our government, and not at war with this country, may sue in our courts, when they have a just right;* the constitution of the United States expressly giving jurisdiction to the federal, courts where foreign states are parties.* Foreign corporations, also, whether private or munic- ipal, and when not belonging to a public enemy, may sue in equity, and it has been usual to maintain suits by them upon principles of international justice." Foreign executors and administrators, such as those appointed in another state than that where the suit is brought, cannot, in general, sue without taking out ancillary letters of administration unless title is vested in them as trustees by devise.' The United States may also sue in equity, though, as H 15-16. 1 Story, Bq. PL § 50 et seq.; Lub6, Eq. p. 34. 3 Story, E<q. PI. §| 50, 55; Board of Domeistic Missions of German Reformed Church v. Von Puechelstein, 27 N. J. Eq. 30; Robinson v. Smith, 3 Paige (N. Y.) 222; Mauney v. Manufacturing Ck>., 4 Ired. Eq. (N. C.) 195; Inhabitants of Montville v. Haughton, 7 Conn. 543; Dewhig v. Perdicaries, 96 U. S. 196. a Ames V. Kansas, 111 U. S. 449, 4 Sup. Ct. 437. * King of Spain v. Oliver, 2 Wash. 0. C. 429. Fed. Cas. No. 7,814; King of Spain V. Machado, 4 Russ. 225, 238; Hullet v. King of Spain, 2 Bli^h (N. S.) 31, 51; City of BIme v. Banlt of England, 9 Ves. 347; Bolder v. Bauli, 10 Ves. 352. It is a condition precedent, however, that such foreign sovereign or state shall have been recognized by our government See Gelston v. Hoyt, 3 Wheat. 246, 324. K Const art 3, § 2; King of Spain v. Oliver, 2 Wash. C. 0. 429, Fed. Cas, No. 7,814. The Cherokee Nation of Indians was held not to be within the rule as to "foreign states," as the term is used in the constitution, and there- fore coifld not maintain an action In the courts of the United States. See Cherokee Nation v. State, 5 Pet. 1. « South Carolina Bank v. Case, 8 Barn. & C. 427; Henriques v. Dutch Co., 2 Ld. Raym. 1532; Society for Propagation of Gospel v. Town of New llaven, 8 Wheat 464; Silver Lake Bank v. North, 4 Jolins. Ch. (N. Y.) 370; Story, Eq. PI. § 55.. T Crosw. Ex*r8 & Adm'rs, § 564. 4t> PARTIES. (Ch. 2 we shall hereafter see, it cannot be made a defendant unless the ex- emption be waived by statute.* Persons v/nder Absolute Disability. It has been mentioned above that the incapacity to sue in equity is of two kinds, — absolute and partial. The only instance of the former is that of an alien enemy, — that is, a subject of a country at war with the United States, who is absolutely debarred from the privilege of suing in our courts so long as he continues in that character,® though it seems that, if any country permits an alien enemy to be sued at law in its courts, he should be allowed every effectual means of establishing his defense, even to the extent of bringing a bill in equity for discovery.*® This appears to be the only exception to the rule. No such rule, however, applies to an alien friend, whose rights are fully recognized and protected so far as he has a right, under our laws, to the subject-matter of the suit. Such a person comes into this country under the express or implied agreement of our government to protect him in his person or rights so long as he acknowledges its authority and bears to- wards it a temporary allegiance; and he remains under the same protection, and continues, impliedly at least, a subject of this country, should a war break out between it and his own.** With such protection extended, his rights would be merely nominal, in default of the privilege of enforcing them in our courts. Persons under Partial Disahility, Partial incapacity to sue, as has been stated, only disables the party from suing alone; the right being still effective, and en- « Post, p. 54; U. S. V. Clarke, 8 Pet. 436. » Coop. Eq. PI. 27; Seymour v. Bailey, 66 lU. 288; Orr v. Hodgson, 4 Wheat 453, 465. See, also, Daubigny v. Davallon, 2 Anstr. 467; Pisani v. Lawson, 6 Bing. N. C. 90. The effect of the disability is to suspend the commence- ment of any suit during the war, or, if already commenced, to stay further proceedings untU the return of peace. See Ex parte Boassmaker, 13 Ves. 71: Hamersley v. Lambert, 2 Johns. Ch. (N. Y.) 508. See, also, Masterson v. Howard, 18 Wall. 90. 10 See Albretcht v. Sussmann, 2 Ves. & B. 823, and the case of Daubigny ▼. Davallon, 2 Anstr. 462, there cited. 11 If, by the laws of any state, an alien cannot hold land, he is there inca- pable of bringing a suit for its recovery, or on any demand of a mixed na- ture, partly real and partly personal. See Co. Lltt. 121) b; Coop. Eq. PL 25. §§ 15-16) PARTIES COMPLAINANT — CAPACITY TO 8UK. 47 forced through the medium of another person, who brings the suit on behalf of the one thus incapacitated. Of this class are infants, who are disabled from bringing suit by reason of their want of discretion, and their inability to bind themselves and become re- sponsible for costs." A suit may be brought on behalf of an in- fant by any person who will undertake it as his next friend, though always subject to the approval and control of the court^' Wheth- er a general guardian may thus act for the infant ward in chancery seems doubtful, and the rule in the federal courts, that '^all infants and other persons so incapable may sue by their guardians, if any, or by their next friends, subject to such orders as the court may direct" ** for their protection, has not yet been construed, so far as it apparently changed the former practice that the suit must be brought by the next friend. Persons of unsound mind, as idiots and lunatics, are also classed with those partially incapacitated, and suit on their behalf must be brought by their committee or guardian, or whatever representa- tive is designated by statute; this care of such persons being gen- erally provided for by local laws." Married women are the third class under partial disability, and the general rule, both in law and equity, has been that the husband must join with the wife in all actions, unless he had deserted her, or was civilly dead or without the realm, when she could sue alone; and except as to her separate property, when she could sue by her next friend, who was chosen by herself, the husband being then made a party defendant.^^ A further exception has been made in i« Story, Eq. PI. (lOth Ed.) f 57; Calv. Parties, p. 315, c. 11, § 29; Bowie v. Minter, 2 Ala. 406, 410. IS See Morgan v. Thome, 7 Mees. & W. 400, where the rights and duties of a prochein ami are discussed at length. 1* Equity Rule 87. i» Story, Eq. PI. (lOth Ed.) §§ 64r-66; Calv. Parties, p. 316, c. 11, $ 29. See, generaUy, Nopcom v. Rogers, 16 N. J. Eq. 484; Dorsheiraer v. Roorback, 18 N. J. Eq. 438; Ortley y. Messere, 7 Johns. Ch. (N. Y.) 139. i«See Story, Eq. PI. (10th Ed.) $ 61; Countess of Portland v. Prodgers, 2 Vern. 104; Newsome v. Bowyer, 3 P. Wms. 37; Wake v. Parker, 2 Keen, 59, 70; Schnyler v. Hoyle, 5 Johns. Ch. (N. Y.) 196, 210; Wilson v. Wilson, 6 Ired. Eq. (N. C.) 236; Spring v. Sandford, 7 Paige (N. Y.) 551; Bowers v. Smith, 10 Paige (N. Y.) 193; Roberts v. Evans, 7 Ch. Dlv. S30; Forbes v. Tucker- man, 115 Mass. 115. 48 PARTIES. (Ch. 2 cases where the wife complains of, and seeks relief against, the husband, when she must use the name of some other person, though, where the husband is not complained of, he is the proper person to unite with her in the suit.^^ This is the rule in the federal courts,** but the practice is one resting in the discretion of the court; and it would seem that, as in most, if not all, the states, a married woman has now substantially the same powers as if sin- gle, the right to sue alone in equity should also be included, es- pecially if she is a citizen of the state in whose courts she seeks relief. In cases where another person sues as the next friend of a married woman, it must always be with her consent** SAME— REAL FABTY IN INTEREST. 17. Suits in equity must be brought by the real party In interest. As has been seen, the touchstone of interest determines who are necessary or proper parties to suits in equity. It follows that such suits should be brought by the real party in interest, not in the oame of one person for the use of another.^ In this respect there IT Story, Eq. PL (lOth Ed.) § 61; Lady Ellbank ▼. Montolleu, 6 Yes. 737; Ponnlngtan y. Alvin, 1 Sim. & S. 264. Without the aid of a statute, a wife uiay sue her husband in equity In respect to her separate property. Mark ham <r. Markham, 4 Mich. 305. IB See Beln v. Heath, 6 How. 228. !• Lub6, Eq. PI. § 13; Mitf. Eq. PL 28; Gambee t. Atlee, 2 De 6ex & 3. 745; Fulton v. Rosevelt, 1 Paige (N. Y.) 178. 1 17. 1 Elder t. Jones, 85 111. 384. Followed by Smith v. Brittenham, 109 lU. rt40. Cf. Frye v. Bank of Illinois, 5 Oilman (111.) 332; Moore v. School Trustees, 19 111. 83. Suit must be brought by real party in interest. Kitchins v. Harrall, J4 Miss. 474. One who is not the beneficial owner of a note cannot bring suit in equity in his own name to enforce its payment. Wolyerton v. George H. Taylor & Co., 157 111. 485, 42 N. E. 49. It is a weU-recognized rule that in equity the party having the beneficial interest in the subject-matter of the suit must sue In his own name. Smitli v. Brittenham, 109 111. 540, 1 Danieli, Gh. Prac. §§ 192, 197, note 7; Rogers v. Insurance Co., 6 Paige (N. T.) 565; Field v. Ma- ghee, 5 Paige (N. T.) 539; Chisholm v. McDonald, 30 111. App. 176, 180; Oakey r. Bend, 3 Edw. Ch. (N. Y.) 482. Where a suit is authorized, it is no isoncem of the defendant that it is really In the interest of a third party, § 19) PARTIES COMPLAINANT JOINDBB. 49 is a sharp distinction from actions at law, which must be brought in the name of the person having the legal title* SAME— JOINDEB. 18. All the parties complainant must have either (a) A joint interest, or (b) A common interest. 19. PERSONS UNITED IN INTEREST— All persons who are united in interest must join as complainants,^ except EXCEPTION— If the consent of any one who should have been joined as complainant cannot be ob- tained, he may be made a defendant, the reason thereof being stated in the bUL The rule above given, that parties who are united in interest — that is, those who have the same or a joint interest — must be joined as complainants, is a rule in all courts. The rule is mandatory, and at common law, if one or more of those who have joint rights should refuse their consent to be joined as complainants, there is no remedy.^ But in equity there is a remedy. The unwilling parties can be made defendants, the reason thereof being stated in the bill ; and the court, having all the parties before it, will then proceed who has equitable rights which he expects to have recognized in case It is successful. Tong v. Marvin, 26 Mich. 35. H 18-19. 1 This rule has been enacted in all the modern practice codes, which have assimilated so many of the rules of equity pleading, and its effect has Iteen thus stated: "We apprehend this union of interest refers to such cases as Joint tenants, co-trustees, partners, Joint owners, or Joint contractors simply, where in fact a separate Judgment In favor of one of them would not be proper in the case stated in the complaint. • • • The test of the unity of interest intended • • * is that Joint connection with or relation to the subject-mat- ter, which by the established practice of the common-law courts will preclude a separate action." Jones v. Felch, 3 Bosw. (N. Y.) 63. The only cases where individuals can sue on behalf of themselves and others are where the interests, though numerous, are all separate, individual, and not Joint or public, interests, identical in character and origin, but all private and Independent rights grow- ing out of the same transaction or fraud. Miller v. Grandy, 13 Mich. 540. 3 **Xor, at common law, can parties having only an interest in the subject of the action and in the remedy be united as plaintiffs, unless that Interest be Joint" Bliss. Code PL § 6L SH.BQ.PL.-4 50 PARTIES. (Ch. 2 to a decree, and do justice to all concerned.* At common law a judgment had to be either in favor of all the parties on one side, or against all, but this rule does not obtain in equity practice. A decree may be given for or against one or more of several complain- ants, and for or against one or more of several defendants; and by the decree the court may determine the ultimate rights of the parties on either side, as between themselves, and grant to the de- fendant any affirmative relief to which he is entitled.* Where a promise or covenant is made with two or more persons, the pre- sumption is' that they are united in interest, and must join in the action. There is no presumption that their interest is several, un- less words separating their interest are used. The rights of the promisees or covenantees are always either joint or several. They are never joint and several. Liabilities may be joint and several.* Bills to foreclose mortgages furnish ain apt illustration of the rule requiring all persons jointly interested to be brought before the court. Thus, a person entitled to a part only of the mortgage money cannot file a bill to foreclose the mortgage as to his own part of the money, but all the other persons in interest must be made parties, and the mortgage foreclosed as to all.* Joint cred- itors cannot, by dividing their claim, acquire separate rights of ac- B Smith V. Sackett 5 Gllman (lU.) 534. « It Is no ground for the dismissal of a suit, when all the parties are be- fore the court, that the parties are wrongly placed as plaintiff or defendant West V. Bank, 19 Vt. 403. See, also, Sapp v. Phelps, 92 IlL 588, 595. The improper or unnecessary Joinder of a party plaintiff will not defeat a cause in equity. Brown v. LAwton, 87 Me. 83, 32 Atl. 733. When the complainant in a biU in equity has joined with him, as co-complalnants, other parties who have a similarity, but no community, of interest with him, and whose Joinder with him is not necessary, and as between whom and some of the defendants the court cannot take Jurisdiction, because of their cltixeuship, the complainant should be permitted to amend his bill by striking out the names of such parties as complainants, and making them defendants to the bill, so as to re- move the impediment to the Jurisdiction. Insurance Co. of North America v. Svendsen, 74 Fed. 346. 5 Bliss, Code PI. (3d Ed.) § 61, note. See Slincrsliy's Case, 5 Coke, 18bi Hin- kle V. Davenport, 38 Iowa, 355; Gould v. Gould, G Wend. (N. T.) 263. As to when a right Is Joint or several, see Bliss, Code PI. § 63. « Story, Eq. PI. § 201; Lowe v. Morgan, 1 Brown, Ch. 368; Palmer v. Car- lisle, 1 Sim. & S. 423; Wing v. Davis, 7 Greonl. (Me.) 31. § 20) PARTIES COMPLAINANT JOINDER. 51 tion against the debtor. Causes of action cannot be split, either at law or in equity^ This rule is, of course, subject to the gen- eral exceptions to the rule as to necessary parties already ex- plained. 20. FEBSONS HAVINQ A COMMON INTEBEST— AUper- Bons having an interest in the subject of the suit, and in obtaining the relief demanded, may join as plaintiffs. Generally, where persons have a common interest in the subject- matter of the bill, and a right to ask for the same remedy against the same defendants, they may properly be joined as complainants.* f Ck)art8 of equity wlU not encouragd the splitting of causes of action, and needless litigation. German American Seminary y. Kiefer, 43 Mich. 105, 4 N. W. 636; Vincent y. Moore, 51 Mich. 618, 17 N. W. 81. But a complainant may, if he chooses, make distinct controversies on the same matter the subjects of separate suits. As, for example, the validity of a mortgage, and the regular- ity of a statutory foreclosure of it. Bonlser y. Charlesworth, 33 Mich. 81. But one of several joint a'editors who has released the debtor need not be joined in a suit by the other creditors. Canal Co. v. Gordon, 6 Wall. 561 ; Upjohn V. Ewing, 2 Ohio St 13; Tyler v. Water Co., 14 Cal. 212. i 20. 1 Gadlgan y. Brown, 120 Mass. 494; Pettibone y. Hamilton, 40 Wis. 402, 417; Churchill v. Lauer, 84 Cal. 233, 24 Pac. 107. See Loomis v. Brown, 16 Barb. (N. Y.) 325. Joint suits will not lie in a case in which there is no com- mon interest on one side or the other. Brunner v. Bay City, 46 Mich. 236, 9 K. W. 263. Where the interests of complainants are several, and not joint, they must be severally enforced. Walsh v. Varney, 38 Mich. 73. Co-surefies who have paid the whole of a judgment rendered against all the sureties may jointly file a bill in equity to effect the removal of obstacles fraudulently hi- terposed to prevent their obtaining contribution from the other sureties. Smith y. Rumsey, 33 Mich. 183. Separate taxpayers may join as complainants in a bill to enjoin the collection of an hivalld tax upon lands. Scofield v. City of Lansing, 17 Mich. 437; Bristol v. Johnson, 34 Mich. 123. Several complainants cannot join in a bill to restrain the collection of a personal tax assessed against them separately in respect to the business in which each is individually en- gaged. Youngblood v. Sexton, 32 Mich. 406. If parties who complain of tax proceedings are not affected in all things alilce, they must sue severally, or not at all, and each must have a grievance that equity can redress. Barker v. Vernon Tp., 63 Mich. 516. 30 N. W. 175. Taxpayers may join in a bill to re- strain a municipal corporation from carrying out an illegal contract that would 52 PARTIES. (Ch. 2 There is a distinction between the rule requiring persons united in interest to be joined, and the one just given, as the latter doea not contemplate a joint interest, nor is the union made imperative. In the case where it has been sanctioned, the interest is called a "common" one, — that is, certain persons are interested in that con- cerning which the wrong has been done, and will be all benefited by the relief which is sought; they have a common interest, and may join in seeking the relief. Thus, the owners of distinct par- cels of property may be interested in being relieved from a nui- sance; different creditors may be interested in setting aside a fraudulent conveyance; and tenants in common, though holding in severalty, may be interested in preventing a trespass. In either case they may unite in a bill in equity.^ The technical common- law rule confined the union to those having a joint interest. Thus,, if the waters of a mill stream are diverted, or if the outlet of a reservoir be so managed as to prevent its proper use by the mills below, their several owners may unite in a bill for an injunction,* impose additional taxation upon them. Putnam y. Grand Rapids, 58 Mich. 416, 25 N. W. 830. Thus, where a tax is levied without authority, several property owners having a common interest may Join in a bill to restrain col- lection. Mt Carbon Coal & Railroad Co. v. Blanchard, 64 111. 240. Where- there is an identity of interest in the question Involved and in the relief sought, and the separate injury to each Is caused by the same wrongful act, there is a proper joinder of parties. Maywood Co. v. ViUage of Maywood, 17 lU. App. 253, affirmed 118 111. 61, 6 N. E. 866. Cf. Hlckling v. WUson, 104 111. 54. Complainants who are injured in the same way by illegal and fraud- ulent proceedings to extend a drain may unite in a bill to enjoin them. Zabel V. Harshman, 68 Mich. 270, 36 N. W. 71. An objection to a misjoinder of par- ties complainant Is properly taken by demurrer. Stookey v. Carter, 92 111. 129. 2 Bliss, Code PI. § 73; Edmeston v. Lyde, 1 Paige (N. Y.) 637; Brownson v. GiflPord, 8 How. Prac. (N. Y.) 389. Where aU parties seek the same relief against the same injury on the same grounds they may properly Join. The bill will not be multifarious as to parties. Harward v. Drainage Co., 51 111. 130. Followed by Ilarward v. Illinois, Id. 138; Mt Carbon Coal & Railroad Co. V. Blanchard, 54 111. 240; HIckey v. Railroad Co., 6 111. App. 172. » Belknap v. Trimble, 3 Paige (N. Y.) 577. Contra, Schultz v. Winter, 7 Nev. 130. Several ow^ners of mills may maintain one bill in equity to restrain a stranger from letting off water from a reservoir which they have Jointly erect- ed for the purpose of supplying their mills in the dry season, without first establishing their title at law. Ballou v. Inhabitants of Hopkinton (1855) 4 Gray (Mass.) 324. Parties owning lands in severalty may Join in a bill to- ^ xO) PAKTIES COMPLAINANT JOINDER. 53 OP they may unite against another several owner to restrain him from using more water than he is entitled to;* and the owners of distinct city lots and improvements may unite in suppressing a nuisance/ So, distinct judgment creditors are allowed to join in a bill to set aside conveyances made to defraud creditors.* In these cases there is a common interest in the water and in stopping its diversion, in removing or suppressing the subject-matter of the nuisance, and in appropriating the property fraudulently con- veyed. This permissive union of parties is limited by the terms of the rule. All who would unite must be interested in the subject of the action and in the relief. It may not be possible to define with absolute precision the phrase "subject of the action," but we may say, in general, that it is the matter or thing concerning which the action is brought; and, though one may be interested in that mat- ter, unless he is also interested in the relief which is sought by another, he is not permitted to unite with him,^ Thus, to take the cases which have been cited, two or more owners of mills pro- pelled by water are interested in preventing an obstruction above that shall interfere with the downflow of the water, and may unite to restrain or abate it as a nuisance. The abatement or preven- tion of the nuisance involves but a single judgment, in obtaining which all the mill owners are interested, and by which they are all benefited. restrain defendant from flooding such land by an excessive dam. Turner v. Hart (July 11, 1888) 71 Mich. 128, 38 N. W. 890. 4 Emery v. Erskine, 66 Barb. (N. Y.) 9. e Peck V. Elder, 3 Sandf. (N. Y.) 126. See Tate v. Railroad Co., 10 Ind. 174. • BrinkerhofiP v. Brown, 6 Johns. Ch. (N. Y.) 139; DIx v. Briggs, 9 Paige (N. Y.) 595; Wall v. Fairley, 73 N. C. 464; Gates v. Boomer, 17 Wis. 455. 7 Bliss, Code PL S 76. See also, post p. 337, "Multifariousness.'' Different mortgagees, holding mortgages given at the same time and securing several obligations, are tenants in common, and may Join in one suit to secure their rights. Cochran v. Goodell, 131 Mass. 464. *4 PARTIES. (Ch. 2 PABTIES DEFENDANT^WHO MAY BE SUED. 21. In general, all- persons whatsoever, whether natural or artificial, may be sued in equity, unless exempt by law, or through some cause placing them beyond the Jurisdiction of the court in which the action is to be instituted. Defendants in General. The persons against whom a bill in equity may be exhibited in- clude all persons, whether natural or artificial, not exempt by law, or through some cause placing them beyond the jurisdiction of our courts. The liability thus extends to bodies politic and corpo- rate;^ to all persons not under disability; and generally to those under either partial or absolute disability, — the incapacity under which they rest, though affecting their right to sue, leaving them still liable to be sued.* It may be said here, however, that no per- son should be made a party defendant, and no one, though named as such, will be so regarded, against whom no decree can be ren- dered.' The United States, moreover, is exempt from being sued 1 21. i A corporation Is properly a defendant In suits involving the corporate rights and liabilities. See the statutes of the different states. Lyman v. Bon- ney, 101 Mass. 562. Who should be defendants in a suit by a stoclcliolder of a voluntary association for a settlement of the affairs of the company, see Evans v. Stokes, 1 Keene, Ch. 24; Richardson v. Hastings, 11 Ben v. 17. As to defendants where trustees hold the corporate property, see McKInley v. Irvine, 13 Ala. G81. See, also, Samis v. King, 40 Conn. 208; Allen v. Turner, 11 Gray (Mass.) 436; Inhabitants of Decrfleld v. Nims, 110 Mass. 115. 2 Story, Eq. PI. § 71; U. S. Equity Rule 87. See Parker v. Lincoln, 12 Mass. 10; Bank of United States v. Ritchie. 8 Pet. 128. 144; Westcomb v. Westcomb, 1 Dickens, 233; Yount v. Turnpaugh, 33 Ind. 46, 49; Search v. Search, 20 N. J. Eq. 110; Sturges v. Louf,'worth, 1 Ohio St. 544; New v. New, 6 Paige (N. Y.) 237. « Mayor & Citizens of London v. Levy, 8 Ves. 398; Van Reimsdyk v. Kane, 1 Gall. 371, Fed. Cas. No. 10,871. But an ajycnt or officer of a corporation may be made a party to a bill of discovery against the latter. See Wych v. Meal, 3 P. Wms. 310; Many v. Iron Co., 9 Paige (N. Y.» 188. Complainant in a bill cinnot properly appear as a deftmdant in the same suit. Henderson v. Sher- man, 47 Mich. 207. 11 N. W. 153. 5§ 22-24) PARTIES DEFENDANT — JOINDER. 66 in its own courts,* though such exemption may be waived by an express statute; and it appears also that the commencement of a suit by the federal government impliedly waives this exemption, by allowing the defendant to plead a set-off, and the same waiver takes place in proceedings in rem, by allowing a consideration of all claims to the property in question.* A second exception to the rule above mentioned, preventing one state from being made a party defendant by the citizens of another, arises under the elev- enth amendment to the federal constitution, which prohibits such action.* Another exists in the case of foreign states or sov- ereigns; ^ and a fourth, in that of receivers appointed by state courts, who, as officers of the court appointing them, cannot be sued, unless upon leave of such courts first obtained. Still another exception is recognized in the case of foreign executors and ad- ministrators, who cannot be made parties defendant unless they have assets within the jurisdiction of the court in which the bill in equity is filed, as without the latter condition the court can ex- ercise no power affecting them, and it would therefore be useless to make them parties defendant.* SAME— JOINDEB. 22. Any person may be made a defendant who has or claims an interest in the controversy adverse to the complainant, or who is a necessary party to a com- plete determination or settlement of the question involved therein. 23. Persons who are jointly liable must all be joined as defendants. • Carr v. U. S., 98 U. S. 433. » The Siren, 7 Wall. (U. S.) 152. And see Fifth Nat Bank v. Long, 7 Biss. 502, Fed. Cas. No. 4,780; Briggs v. The Light Boats, 11 Allen (Mass.) 157. • Ab to this amendment, see Cohens v. Virginia, 6 Wheat. (U. S.) 405. And as to when a state is within the rule, see Osborn v. Bank of U. S., 9 Wheat (U. 8.) 738; New York v. Connecticut, 4 DalL (U. S.) 1, 8. T Story, Eq. PI. S 69a. • Crosw. Ex'rs & Adm'rs, p. 481. 56 PARTIES. (Ch. 2 24. Persons who ordinarily should Join as complainants, but who refuse their consent, may be joined as de- fendants. The general rule as to defendants is that any person may be made a defendant who has or claims an interest in the controversy adverse to the complainant, or who is a necessary party to a complete determination or settlement of the questions involved therein. It will be observed that this rule includes both necessary parties, without whom no effective remedy can be given, and proper par- ties, who may be omitted under circumstances already considered. Persons who are united in interest must be joined as defend- ants.^ It will be observed that this rule as to joinder applies to parties upon either side whose interests are the same. "The old common-law significance of the term 'joint' should be borne in mind. As with rights it denoted but a single, indivisible claim, so with obligations all the obligors constituted, as it were, one per- son, owing a single debt, and no one of them owed any part of it Hence the necessity of bringing all before the court, and no others. There was no claim except as against all, and if a less number, or if others, were charged, the contract sued on was not the one made."' ^1n cases of this sort, the general rule is that all the joint owners,, joint contractors, and other persons having a com- munity of interest in duties, claims, or liabilities, who may be af- fected by the decree, should be made parties. The rule, however, H 22-24. 1 Story, Eq. PL ft 169; Dunham v. Ramsey, 87 N. J. Eq. 388. Partners must be all joined. Bank v. Railroad Co., 11 Wall. .624, 630; Fuller V. Benjamin, 23 Me. 255; Ex parte Henderson, 4 Ves. 164; Story, Eq. PL §S 78, 167, 178. But see Hamersley v. Lambert, 2 Johns. Ch. 508; Milligan v. MlUedge, 3 Cranch, 220; Darwent v. Walton, 2 Atk. 510. Equity rule 51, copied from the thirty-second order In chancery of August, 1841, provides that 'In all cases in which the plaintiff has a joint and several demand against several persons, either as principals or sureties, it shall not be necessary to bring before the court as parties to a suit concerning such demand aU the per- sons liable thereto; but the plaintiff may proceed against one or more of tlie persons severally liable." This rule does not apply when the demand is merely joint, and not joint and severaL Piersou v. Robinson, 3 SwanisL 139, note. a Bliss, Code PL § 02. ^§ 22-24) PARTIES DEFENDANT — JOINDER. 67 •does not apply to cases of joint and several contracts; for in the latter cases, according to the present practice, the bill may be brought against one or more of the persons severally liable. But in other cases it still prevails." • Thus, one joint tenant cannot -ordinarily sue or be sued without joining the other joint tenants.* -So, tenants in common must all sue and be sued in cases touching their common rights and interests.* Many joint obligations have been made joint and several by statute. There is an important modification of the rule as to joint obligors made by courts of equity which was unknown in the courts of -common law. This modification relates to survivorship. At com- mon law, upon the death of any one under joint obligations, leav- ing a surviving co-obligor, his personal representatives could not be prosecuted, and the action could be prosecuted only against such survivor or survivors. The old rule of law was that death dis- charged the obligation, charging it upon the survivor or survivors only. This rule was very inequitable, both to the survivors and to the creditor. It has been avoided in equity, and the rule es- tablished that the personal representatives of a deceased co-obligor can be charged in equity, although the obligation, by its terms, be joint, and they can be joined as defendants with the survivor.* MvltifariousTiess or Misjoinder hy an Improper Union of Defendants. In equity pleading, multifariousness applies to an improper join- <ier of distinct and independent matters, and often involves the improper union of defendants, inasmuch as one defendant, or class of defendants, may have an interest in one of the matters improp- erly united, and not in the others, and hence should not be called on to answer in respect to them.'' « Story, Eq. PL { 159; Conolly v. Wells, 33 Fed. 205; Howth v. Owens, 29 Fed. 722; De Puy v. Strong, 37 N. Y. 372. See U. S. Equity Rule 51. 4 Coop. Eq. PI. 35; Story, Eq. PI. § 159; Weston v. Keighley, Cas. t Finch, 82. » Shepard v. Railroad Co., 117 N. Y. 442, 23 N. E. 30; Brookes v. Burt, 1 Beav. 106; Fallowes v. WUliamson, 11 Ves. 30G. • Bliss, Code PI. § 105. The obligations of trustees and partners are Joint in fact, both at law and In equity. Bliss, Code PI. § 106. T Bliss, Code PI. § 110. See, also, post, p. 337, "Rule against Multifarious- ness." The making of an Improper person a defendant does not render the biU demurrable as to the other parties. Mitchener v. Robins, 73 Miss. 383, 68 PARTIES. (Ch, 2 m Who may he United without a Joint Interest, Those may be united as defendants, although they may have no joint interest, between whom there is a common point of interest. "Where several persons, although unconnected with each other, are made defendants, a demurrer will not lie, if they have a com- mon interest centering in the point in issue in the cause." • As in a creditors' bill, when the debtor had conveyed lands in fraud of creditors, and the title to different parcels had passed to differ- ent persons, they may all be joined as defendants in one action, 19 South. 103. A bill seeking to hold several defendants for separate indl* vidua! frauds is demurrable for misjoinder. Woodruff v. Young, 43 Mich. 5-18, 6 N. W. 85. A proper party defendant cannot be heard to object that another is improperly joined with him. The joinder as ground of demurrer is for the party improperly Joined. Peoria, D. & E. Ry. Co. v. Plxley, 15 111. App. 283. It is a good ground of demurrer to the whole bill that one of the complainants has no interest in the suit, and has Improperly Joined with others in filing the bill; but there is no such rule in regard to defendants. Barstow v. Smith. Walls. (Mich.) 394. « Fellows v. Fellows, 4 Cow. (N. Y.) 682, 700. See, also, Varick v. Smith, 5 Paige (N. Y.) 137; Hamlin v. Wright, 23 Wis. 491. A biU is not multifari- ous on account of the Joinder of parties defendant where the object of the suit is single, and there is one general point in issue, rendering the interest com- mon to aU the defendants. Brown v. Solary, 37 Fla. 102, 19 South. 161. A petition to set aside conveyances made through the combined fraud of the several defendants, and praying for appropriate reUef as to each, was not demurrable for misjoinder of parties defendant, though each defendant had a separate interest in the result of the fraud. Bowden v. Achor, 95 Ga. 243, 22 S. E. 254. A bill is not multifarious when the parties have a common inter- est touching the matter of the biU, although they claim Under distinct titles, and have Independent interests. Butler v. Spann, 27 Miss. 234. Thus, where the complainants claim under one title and bring their suit against various de- fendants, who claim the same estate under distinct and separate sales of dif- ferent parcels thereof made to them separately, when the gravamen of fraud or wrong in the sale is the same, and equally applies to aU, the bill is not mul- tifarious (citing Delafield v. Anderson, 7 Smedes. & M. 630). Butler v. Spann, 27 Miss. 234. S. P., Fomiquet v. Forstall, 34 Miss. 87 (citing Butler v. Spann, supra; Nevitt v. Gillespie, 1 How. [Miss.] 108; Gaines v. Chew, 2 How. 619).
| 24,117 |
https://github.com/Blockstream/gdk/blob/master/subprojects/gdk_rust/gdk_common/src/state.rs
|
Github Open Source
|
Open Source
|
OpenSSL, MIT
| 2,023 |
gdk
|
Blockstream
|
Rust
|
Code
| 91 | 247 |
use core::fmt;
#[derive(Debug, PartialEq, Clone, Copy, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum State {
Disconnected,
Connected,
}
impl From<bool> for State {
fn from(b: bool) -> Self {
if b {
State::Connected
} else {
State::Disconnected
}
}
}
impl From<State> for bool {
fn from(s: State) -> Self {
match s {
State::Connected => true,
State::Disconnected => false,
}
}
}
impl fmt::Display for State {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
match self {
State::Disconnected => write!(f, "disconnected"),
State::Connected => write!(f, "connected"),
}
}
}
| 11,781 |
https://gis.stackexchange.com/questions/193947
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016 |
Stack Exchange
|
Midavalo, Vince, https://gis.stackexchange.com/users/21577, https://gis.stackexchange.com/users/64785
|
English
|
Spoken
| 169 | 216 |
Using a join in Arc with feature classes containing a definition query always return an inner join
At Arc 10.4, I am attempting to do an outer join (using the "Keep all records" option) between two file geodatabase feature class layer tables. Each of the two tables has an identical Definition Query applied to it. The join completes without an error statement from Arc. However, the resulting join is an inner join (containing only the matching records), instead of the expected outer join. I conducted an internet search, which did not return anything useful. Is this a known Arc bug?
I believe the Keep all records option gives you a LEFT OUTER JOIN where every record should be returned in the first layer and only matches from the join layer.
File geodatabase access is not based on a RDBMS engine, so assuming it will behave like it is presents risks. Looking at the documentation, it does not appear that "Keep all records" was intended to imply an outer join.
| 6,828 |
sn83045211_1919-09-26_1_9_1
|
US-PD-Newspapers
|
Open Culture
|
Public Domain
| 1,919 |
None
|
None
|
English
|
Spoken
| 3,043 | 5,819 |
EVENING PUBLIC LEDGER, ESTABLISHED 1891 Gimbel Brothers For Tomorrow, Saturday, and Monday, September 6, 1919 SERIOUSLY BORED START MOMENT EASILY Covered With Blazing Gasoline After Starting Engine They Had "Prised" INJURED AIDING HUSBAND A man and a woman are in St. Joseph's Hospital in St. Joseph's condition, an accident that occurred at the same time. The accident occurred last night when Julius Price, 1227 North Marvin Street, and Alexander Mconski, 200 East Main Street, were trying to start the automobile in front of Price's home. After trying other expedients, the men decided to "prime" the engine with gasoline. They did and, when the engine turned over, both men were covered with the blazing gasoline it threw out. Mrs. Price saw the accident from her window and Ran to "help her husband and Masonski. Her clothing also stood fire. She and Masonski were terribly burned, most of their clothing being burned, and most of their clothing being burned. Price, although severely burned, is not in a critical condition. George Walnre, 1220 South Broad street, and H.T. Horsey, 903 Race avenue, were painfully injured when an automobile in which they were riding struck a pillar of the Market Street "It" near Fifty-second Street, injuring the driver of the automobile. The men were treated at the West Philadelphia Homeopathic Hospital. Forever Scores at Havre de Grace fnntlnn.il Frnm I'nce One Tltanlfi lift MnorrkVP 11. "0 0.30 Rubidium. 110. Colllnii ": 'i'V Time 1:01 Tnrh- o' Gaunt. Hub nosa. RnlllcUnir Airs. MlM Slnthem. Sfa Jllme. Tffpy Shall Not P,is. (n)I.ucle May. (alSaflle D . Hoynl Uedbinl nml I.ot-anberry Rlo ran. i (a)M'urrnv entry. . ,. , SIX'ONI) IlACi:. the Om-n steep fchaw.. thiee--Hr-nld ami up. rurs; JIOOO, -"()" Have a It. art 1:13. Ilhioa ... 11.80 JH Kea oBrf-m. 133. WMII-ims .. . ; -;; Time 4-1 1 a-".. I'hallMiKB. (alSurrrlia mid i (H)I!allyconnp4l nlsti r.m. (u)Samuel "ofs TIIIIII) ItACI'. clllnn. three-year'-nlila and Op. pursr X12.V1.S4. CI furlonss ' 6eda 11-'. Wl'la 7 SD J3.40 !. inutse y u. mciiui- tlncer . ' 3-" JI - " ""111ns. 104. l ,ni. i fl l-'i i:ited II. urmii-y. -",,' mr-v Sin w Ouppn Muclr Vir'"-J i"u- l,art- Ivan anil Oalway also ran. rOURTH HAi ri. rl.illnliirf . ""-"!"'" ,""" un nurar Sl"J.'l III; mile anil a l-lll: SAntSlnc"te.l.7 Wlli. . 70 SJ-j 30 JS 4P Helirln, 07 Collllpttl l-'.S" J-4,1; Thornliluom. 11", MeTmirt .. ,.'" Time, 1:47 J-" Sophia tl.itpwonil. denp- , vleve II . Kntlo Cnnnl, 'Litira Mlllrr, 'Tout slp Hlprman. Perapus. Chprnunn. .Io. r. Murphy The I-ost H!rd. Napul', Alarrette. al!n rnn. FIFTH KACE. thp rircadllly I'urif, for thrte-y ar-uiils nml u. S17.1H.J4, iiii.p unil , 70 yards: Bet'lp Mahone. 10!), Hrhut- tlrpr -Pn -" Duchpss I.no. 1)7. Ham- ' llton . --I11 liallymnonpy. 103. Mus- ff rn v ...... . . . . .. Tlmp. 1 :44 2-.1. , Uouglaa P. also ran Field. 2.nil 2. so L, ml- Devil. out mt out AQUEDUCT RESULTS FIRST RACE for mares, three-year-olds, and up, running, purifying, purifying. 1 mile: V. O. Kings 111. Ilux-,,,, ton even 1 to 2 'lin Coulcell's (Imp. ). 107. Myprs 1 to 1 7 to.1 3 to 5 Huzza. 111. nice... 31 to 1 10 to 1.1 to 1 Time. 1 in 2-.1. Impress. Overmout; Huzza Suram-r SliiU. Mlw Stprlln frll: cpps 1.10. Huv Travis and Wl'f-.piia alpn ran SECOND HACK, the Delhi, for all ages, handicap, $111(1.117 and up. 1 furlongs: Lord Brighton. UK...... Fator S to T 3 to., 1 to 4 Fulton. 114. Kum-.... mpr 3 to 1 4 to, 1 to 3 Fisk. 111. nurn 5 to 1 2 to 1 4 to,i ' Tip 1 11 3-1. Masda and Toto also ran. THIRD HACK, for mares and Reldings, three-year-olds, and up. purse $1110.117, 1 mile. IVpo Louise 112. Davies 7 to 1 up 1 to 1 to purse (Imp ). 111. EnKor.. 5 to 1 2 to.1 Out Sanberea (Imp I. 112.. Rife 12 to 1 3 to 1 5 to 3 Time 1:41. Radley and Dahlnda also ran. ForTH HACK, the Diablo, for three-year-olds and up, handicap. Mile "7 lidded. 1 tnllp. Over TI'p"- (Imp.). 114. Fairbrother 3 i.o.1 out out 1Var Kiss lis. Callahan-. 10 to 1 5 to 1 out Hal'y 114. Kummer.. 5 to 1 1 to 4 out Time. 1:31 1-1. Spur also ran. (Gainpa Rutlpr pntry. coupled.) FIFTH RACK, for three-year-olds and up, rliilmlim. rurse iiiiin.iui. 1.1-1(1 miles, OoalPr (Imii.). 102.Fator.13 to 11 2 to 1 to 1 out Saaln. HI. nuxton... 6 to 1 1 to 1 to 1 out John I Day (Imp,). US. Rowat 7 to 1 2 to,l 3 to o Tlmp, 2 13 2-.1. Rockport. War Note and Bauette alsc' ran. " Latonla Results FIRST RACE, claiming, purse $1200. for three- ear-olds and up, furlonis; Pubahdar. 113. T. Murray. Itl.lO J4.80 3.O0 Crppn Gold. 113. Mooney. ... 4.0 S.fla Arthur Mlddleton, 113. N. Rarrett 12.00 Tlmp, 1 :13 J-.1. Premium. Cuy. Busy Joe. Lady I.uxurv Wenonah, Prosit, SansymlnK, Caeambo and Money also ran. SECOND RACE, purse 11700. two-year-old fillips. ,1h furlongs ...... Mabel C 112. Connplly. .J1B..10 $11.40 J.1'40 Iidy In Illaik. 112. Oroth .... tl.30 4.20 Luke's PpI, 113, Howard fi.70 ' Time. 1:07 3-.1. May Rose Ablaze. Donna Ttoma Anna Clatlup. AvIsp DoylP. Miss Minks, lliddledee, Ruby and Ronnie Bird THIRD RACE, purap $1600, for three-year-olds and up, fl furlongs: Dark Hill (Imp). 104, S. floyll $59.70 $10.10 $12.10 Mahony, 107, R Holton ... 20 10 1370 Somewhere In France, 101. II. Lunsford 9.80 Time, 1:13 1-5. Oourmond Zulelka, Rrlg oi War, Carrie Moore. High Gear, Words o' Wisdom. Camouflage. Uelle vt Elizabeth town wnd I.snc'nt alsn ran jd&n ff ii i ffiiflift iM ff" N SUNDAY OUTINGS Im FROM MARKET STREET WHARF Every Sunday until December 28, inc. O ES. Atlantic City te 3 Wlldvfood -- Anglesea RoundTrlp Sea sIo City HReltf Stone Harbor addttlouat AVAIOn AnclMfa and Wlldrrcod - - -' 7.20AtJ Atlantic City and otbetresorta- - 7.30 XSTOftn tlty and Cnraor.t InUt Ei- curtion Sunday Saptambar 28 iirket Scct Wbatf . - . ,. . 7J04. -Jt- 1 Etery Sundiy until October 26, inc. .50 $1 Round Trip War Tax 12c, additional, 1.75 ound Trip 14 rents A addlilrmal, Plna Baach Ocaan Cata, Barnatal Flar, baatlda Park, Laval latta, Mantoleklngt Bay Haad. Atbury Park, Ocfan Crova, Long Branch, Balmar, San Girl, Spring Lake, Market Street Wharf. FROM BROAD STREET STATION $2:30 New York 1 War Tax 20 cents additional SUNDAYS October 12, 19, November 9, and 1 mum day, October 12, 10, and 11 Pennsylvania R.R. For Women Who Like the "Ease" of a Sports Suit Combined With "That Smartly Tailored Look" Gimbels Produce Women's "Flex-o-tex" Winter Suits (Trade Mark) 29.75, $35 and $37.50 Men's Clothing That's Worth-While in Sort and Style Just watch the crowd! the men who are most badly clothed really spend about as much for clothes as you. They select badly choose their store poorly haggle over prices (that seems to give some people real joy) and then live to find out that real values are not gotten that way. May we offer real service? "Kuppenheimer" and "Society Brand" Clothes Suits at $35 to $75 Overcoats at $35 to $75 Other Gimbel Lines Start at One Girl Tells Another and the Other Comes, Too Gym Bloomers at $4.50 and $5.50 All-wool, at $5.50. Part-wool, at $4.50. Made exactly alike according to specifications and sturdy Re-mforced, White Middies, at $1.90, Gym Shoes at $1 and $1.35, Ties at $1.50, Gym Shoes at $1.50, Ties at $1.50, Gimbels, Sports Clothes Section, Third floor. Specials: Worsteds, Suits, at $35, $40, and $45. Fall Overcoats, "Chesterfield" and fancy, $35 the "Chesterfield" are silk-lined; the others have silk-lined shoulders and sleeves. Hungerford Trousers fit best hence, look best. $8.50 to $12. The Gimbel Clothing Service is easily first in Philadelphia. Gimbel, Second Floor, Men's Soft Felt Hats, in silk-finish and smooth finish, special at $1.25. CAPS, Men's and Boys', cloth mixtures, special at $1.25. STIFF HATS, for men; special at $4. Gimbels. Just in off Market, at Ninth. Hats isses' "Flex-o-tex" Suits (Triffle-Marlc) In Beautiful Heather Colorings At $35 ft. -...,.!,..,.. u a tassel in the back. And the tiny perpendicular tucks and cross-wise tucks that band the bottom of the coat. Rich blues, oxfords, woodland browns and grays. Yoke and sleeves are silk-lined. And Suits of soft velour, vest front, with deep folds and button trimming. In 14 to 20 year sizes. Mines' Dress Suits at $59.75 Designed especially to show off the young woman's own furs. Youthful lines. In lovely Autumn colors. Misses' Fur-trimmed Suits, at $65 to $165 Softest, loveliest fabrics, rich colors and gorgeous furs characterize these suits. For ages 14 to 20 years. M W VLUaBn fl I t MUte.1 "Flex-o-T.x" -Gimbels, Salons of Dress, Third floor. Suit, at $35 are the Vogue V e 1 o ti r hats fine wool "bod i e s," with the correct mixture of hare fur 6oum on and properly trimmed off. In the . correct Man and sports shapes. With ribbon-band and bow, Silk-lined Ready to wear, Black, brown, navy blue, olive green (dark), reseda green (light), rose henna and purple. At $5.50. Gimbels, Sports Hats Section, Third floor. Chocolate Covered Cloth CL c ALMONDS, Chocolate Covered 7(z PLANTATIONS, Chocolate Covered 7(z CHIPS, CHOCOLATE, STRAWS, at lb...01' Extra sour Lemon A Cc Drops, lb T. Gimbels, Chestnut Street Annex, Also First floor, Grand Ave., and Subway Store. Wool jersey, the best and safest wool jersey of suiting grade, we know in true winter warmth; practically without weight. Made by Expert Man-Tailors, Which insures safe, correct cut, expert making. No "crooked skirts" no "sagging coats" at Gimbels. No monotony of style. But Style First of All Got in the Very Cut. Skirts cut to hang straight. Collars in variety and "set" just so! Collars that fasten high or low and that look smart both ways. Sleeves cut just so set just so. Pockets that "trim" as well as hold things. Belt-variety. Pleat-variety. Tuck-variety. Pleats with tucks. Every Fashionable Shade and Every Fashionable Color, Especially the Aristocratic Browns. Smart heather browns, and maduro brown, and "Anzac brown" with its green tone, and "chameleon brown" with Brazilian red and hunter's green "chameleon-ing" through it. Seal brown. Greens especially hunter's green in heather effect. Blues solid navy and navy-heather and dragon-fly and Peking. Oxford grays. And good clear black. "Flex-o-tex" Suits at $28.50 at $29.75 at $35 at $37.50. Gimbels, Salons of Dress, Third floor. The Boys' Extra-Trousers Suits at $15 Will "Live" Practically As Long As Two Ordinary Suits in a fair and square wear-test. Made of fine sturdy tweeds and cassimeres in gray, brown or olive mixtures. And notice! all trouser seams. Taped and double-stitched and reinforced at points of strain. And both pairs of trousers full lined. All-round belted French models with slash pockets. Acres 8 to 18, at $15. Other Extra-Trouser Suits at $12.50 Gradually up to $35 Gimbels, Boys' Clothing Section, Third floor. Ties Fall At 75c, $1, $2, $2.50 and at Exceptionally attractive showing in just the neckwear styles men are looking for this Fall. Figured effects, new designs from quiet to ultra, at 65c, 75c, $1. $2 and $2.50. Stiff Cuff Soft Cuff Men's Shirts At $2.50, $3, $3.50, $5, and at Styles picked out by men who know. New effects for Fall. High Gimbels, First Door, Ninth Street Warm Underwear For the New Baby Keeping the baby warm means keeping baby free from colds. By the time, you'll find a new style, at $1.50. Also, a new style, at $1.50. To $2.50, $3.50, and $5. To $5. To $6. To $7. To $10. To $12. To $15. To $20. To $20. To A splendid skirt for wear with middy blouses. On muslin body. For ages 6 to 14 years. And Middy Blouses, at $1.50 to $2. In 8 to 20 year sizes. Gimbels, Salons of Dress, Third floor. F.vm Valati Warm smart coats. 0 pebbled bolivia developed on loose lines, full sweep back, raglan sleeves, helted front. Deep convertible collar or beaver plush. Light Burgundy, navy, mode and seal brown. For ages 8 to 16 years. If a Woman Wants a Coat That Looks. Every Cent of the $35 to $65 She Planned to Invest in It She Wants a Gimbel Coat, And she was it because the reason it looks its full worth is because it had to measure up to Gimbel requirements regardless of its cost before its price was set. For Instances: Full-lined wool velour coats, at $35. Duvet de Laine and silvertone-velour coats, at $39.75. Silvertone-velour coats, with big fur collars, at $45. Wool-velour coats or broadcloth coats with immense shawl-collars of seal-dyed coney, at $65. Each Style Each Fabric in its Best New Colors Gimbels, Salons of Dress, Third floor. $55. The Kind Gloves A "Real Man" Likes Fine skins finely "tailored." Clean-cut lines from wrist to finger tips! Men's One-clasp Tan Cape Gloves, for street wear. At $2 and $2.50. Men's One-clasp Gray Suede Gloves, pique sewn, at $2.50. Men's One-clasp Gray Chamoisette Gloves Gimbels, first factor; Ecru Neck-Fixings Are Now Called For by Women The vogue for brown has created the fashion for ecru neck-fixings. These are late arrivals. Collar and Cuff Sets of, crisp ecru organdie, embroidered or hemstitched and edged in net ruffle. Choice, $1.50 a set. Also collars of ecru organdie with three rows of ecru Valenciennes lace ruffles, at $2.25. Another collar shows Valenciennes lace insertion in dainty-shape and edged in ruffle of lace, at $3. Other style collars of ecru voile with dainty hand-drawn work, at $1.25 and $1.75. Gimbeli, Neckwear Store, First floor. Children's Coats at $6.95 to $13.75 Velours, wool plush, corduroys and cheviots, trimmed collars and patch pockets. Warmly lined. 2 to 6 years. At $6.95 to $13.75. Jimbels, Subway Store. Saturdays at $10.00, $12.50, $15.00 and $16.00. New up-to-date Fall models. Worsteds, cheviots, cassimeres and tweeds. Especially well tailored. All sizes. Unusual choice at $18.50, $20, $22.50 and $25. With Autumn a Reality New Fall Suits Are Essential Forehanded buying results in splendid values. At $25, $29.75 and $39.75 Fabrics include silvertones, velours, polo cloth, serges, poplins and jerseys. Coats cut on, straight lines, many having fullness at the sides. Braid and button trimmed. With and without fur collars. The most wanted colors of navy, Pekin, taupe, brown, Oxford and black. Misses' sizes 14 to 18 years. Women's, 36 to 46. Girls' School Dresses at $1.88 and $2.95. Tub dresses of course. Sores of styles. Pretty plaid woolen blue serge. Dresses, at $3.95, $5, $6.95 and $7.95. Dress-up dresses for girls, at $8.95 to $14.95. These of silk, corduroy and velvet. Winsome styles. Serviceable warm coats for girls at $8.95, $10.95, $12.95 to $19.95. For ages 8 to 14 years. Gimbels. Subway Store. Men's New Fall Overcoat, at $15, $18.80, $22.50 and $25. Men's Trousers, at $3.50, $4, $4.50 and $5. Gimbels. Subway Store. Sample Cotton Waists at $1.45 Excellent quality voile. Plain tailored or dressy lace and embroidery-trimmed models. Various sizes. Your Choice at $1.45 Gimbels, Subway Store. New Silk Petticoats at $2.95 and $3.75 Made with fitted heatherbloom or jersey top. Silk flounce, others all satin. Pretty assortment of colors. Pink Envelope Chemises and Crepe Bloomers, at 55c. Chemises are of batiste; feather-stitched in blue. Gimbels, Subway Store. Men's Negligee Shirts at $1.65 New lot of shirts bought many months ago and only delivered now. Soft cuff, full roomy make. New Fall effects. Sites 14 to 17. At $1.65. Men's Open-end Ties, at 85c. Many new colors. Gimbels, Subway Store. New Berthas at $1 to $2.50 For round-neck dresses. Made of dainty chantilly lace; others of ruffles of Val lace; others of net with a Venise lace edge, at $1 to $2.50. New Bib Collars of net trimmed with ruffles of Val lace, at $1, $1.50 and $2. Gimbels, Subway Store. Women's Medium weight White Cotton Vests and Drawers Vests are high-neck with long sleeves. Drawers are ankle length, at $1. Men's Fall and Winter Union Suits, special at $2. Gimbels, Subway Store. "American Lady" Corsets at $2 to $4 In the new models, styles for slender, medium or large women. $2 to $4. American Girl Corsets, designed for the young miss, $2 and $2.50. Pansy Brassieres in a score of styles. Daintily trimmed with laces and embroidery, at 78c to $2.50. Gimbels, Subway Store. Boys' Norfolk Suits Special at $11.85 Four hundred and sixty suits All with extra pair of lined knickerbockers. Cheviots, cassimeres and tweeds of dressy kinds in waist-line and full-belted models. A third under present values. All sizes for boys 7 to 18 years, at $11.88. Gimbels. Subway Store. Women's Fall Boots at $4.45 Various styles in button and lace kid patent and dull leather tan and gray all have high tops; high and low heels, 2½ to 7. Men's Fall Shoe at $5.90 Plain black leather in three shapes; wide, narrow toes, Sizes 5 to 11. A dollar a pair less than the present value. UlmbeU. fruitway More. GIMBEL BROTHERS Chestnut: Market Eifecth& Nfntk mmw Gimbels, Second floor. 1 OOP Pairs Men's Shoes Fall Styles At $7 and $7.50 Ordered a year ago it was like pulling eye teeth for the maker to ship today at the price bargained for when ordered! these shoes would cost us seven-fifty today, English style last; black, at $7; dark tan, at $7.50. Pictured. (JC QA for men's work or business Shoes; P3 ''' made on the easy-to-the-foot Mun son Army last; dark tan, gunmetal calf or black glazed kid. Shoes, sizes 2½ to 6, at $4.45. Solid leather soles. Lots of men can wear these 6's. Gimbels, Second floor. iS rm i ! t 4! 'i t tf : , 'f I A? 1(hSr -,-,. 'V. !&i.'JL I.-' PTvl'-. o. r. 77 v r. i,i . utS -iJI-l. 1 1 :r-. X. T i J' "l r l IT L i.'"U 1ST - ra 1, r f " Tl... IT '..T "1. VI...4-. IBM... Tl r ru, '- ', - tT"1.Sl-U To: ijL.Jtoii!L- 'i " -..i to. i... iftyfcri.,-t : i " i. nV t V 1 i in HM!h -;. - jta&afo'ycfr-.iV AAjftrttnfjii m..
| 13,600 |
https://github.com/Markoy8/Foundry/blob/master/Components/LearningCore/Test/gov/sandia/cognition/learning/algorithm/AbstractBatchLearnerWrapperTest.java
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,022 |
Foundry
|
Markoy8
|
Java
|
Code
| 258 | 785 |
/*
* File: AbstractBatchLearnerWrapperTest.java
* Authors: Kevin R. Dixon
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright Jul 10, 2009, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the U.S. Government.
* Export of this program may require a license from the United States
* Government. See CopyrightHistory.txt for complete details.
*
*/
package gov.sandia.cognition.learning.algorithm;
import gov.sandia.cognition.learning.algorithm.baseline.MeanLearner;
import gov.sandia.cognition.learning.data.InputOutputPair;
import gov.sandia.cognition.learning.function.ConstantEvaluator;
import java.util.Collection;
import junit.framework.TestCase;
import java.util.Random;
/**
* Unit tests for AbstractBatchLearnerWrapperTest.
*
* @author krdixon
*/
public class AbstractBatchLearnerWrapperTest
extends TestCase
{
/**
* Random number generator to use for a fixed random seed.
*/
public final Random RANDOM = new Random(1);
/**
* Default tolerance of the regression tests, {@value}.
*/
public final double TOLERANCE = 1e-5;
/**
* Tests for class AbstractBatchLearnerWrapperTest.
* @param testName Name of the test.
*/
public AbstractBatchLearnerWrapperTest(
String testName)
{
super(testName);
}
public static class DefaultWrapper
extends AbstractBatchLearnerContainer<MeanLearner>
{
public DefaultWrapper()
{
super();
this.setLearner(new MeanLearner());
}
}
public AbstractBatchLearnerContainer<?> createInstance()
{
return new DefaultWrapper();
}
/**
* Tests the constructors of class AbstractBatchLearnerWrapperTest.
*/
public void testConstructors()
{
System.out.println("Constructors");
AbstractBatchLearnerContainer<?> instance = this.createInstance();
assertNotNull(instance);
assertNotNull(instance.getLearner());
}
/**
* Test of clone method, of class AbstractBatchLearnerWrapper.
*/
public void testClone()
{
System.out.println("clone");
AbstractBatchLearnerContainer<?> instance = this.createInstance();
AbstractBatchLearnerContainer<?> clone = instance.clone();
assertNotNull(clone);
assertNotSame(instance, clone);
assertNotNull(clone.getLearner());
assertNotSame(instance.getLearner(), clone.getLearner());
}
/**
* Test of getLearner method, of class AbstractBatchLearnerWrapper.
*/
public void testGetLearner()
{
System.out.println("getLearner");
AbstractBatchLearnerContainer<?> instance = this.createInstance();
assertNotNull(instance.getLearner());
}
}
| 28,988 |
https://tt.wikipedia.org/wiki/%286313%29%201990%20RC8
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023 |
(6313) 1990 RC8
|
https://tt.wikipedia.org/w/index.php?title=(6313) 1990 RC8&action=history
|
Tatar
|
Spoken
| 145 | 396 |
(6313) 1990 RC8 () — Кояш системасының Марс һәм Юпитер орбиталары арасындагы өлкәсендә урнашкан астероид.
Тарихы
1990 елның 14 сентябрендә Анри Дебеонь тарафыннан Ла-Силья обсерваториясендә ачыла. Астероидның вакытлыча атамасы булып баштан «1990 RC8» саналган.
Чыганаклар
Lutz D. Schmadel. Dictionary of Minor Planet Names. — Fifth Revised and Enlarged Edition. — B., Heidelberg, N. Y.: Springer, 2003. — 992 p. — ISBN 3-540-00238-3.
Lutz D. Schmadel. Dictionary of Minor Planet Names. — Springer Science & Business Media, 2012-06-10. — 1458 с. — ISBN 9783642297182
Chapman, C. R., Morrison, D., & Zellner, B. Surface properties of asteroids: A synthesis of polarimetry, radiometry, and spectrophotometry// Icarus : journal. — Elsevier, 1975. — Vol. 25. — P. 104—130.
Kerrod, Robin. Asteroids, Comets, and Meteors (неопр.). — Lerner Publications Co., 2000. — ISBN 0585317631.
Искәрмәләр
Тышкы сылтамалар
Шулай ук карагыз
(6314) 1990 SQ16 астероиды
Баш билбау астероидлары
Әлифба буенча астероидлар
| 12,249 |
https://github.com/TapaleShreyas/Learn-Golang/blob/master/03-Control Structures/10-pointers-in-function.go
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| 2,021 |
Learn-Golang
|
TapaleShreyas
|
Go
|
Code
| 154 | 320 |
package main
import "fmt"
func main() {
var b *int // initialize b with value type present at memory address int
fmt.Println(b) // it will return value of b
// fmt.Println(*b) // runtime error: invalid memory address or nil pointer dereference
var a = new(int)
fmt.Println(a) // it will return memmory address of a
fmt.Println(*a) // it will return the value of a here default value 0
fmt.Println("\nuse above concepts in program now")
n := 50
fmt.Println("value of a before calling function:", n)
add10(&n)
fmt.Println("value of a after calling function:", n)
fmt.Println("\ncall to add10Fail function")
n = 50
fmt.Println("value of a before calling function:", n)
add10Fail(&n)
fmt.Println("value of a after calling function:", n)
}
func add10(n *int) {
*n = *n + 10
}
func add10Fail(n *int) {
n = new(int) // assigning new address to a
*n = *n + 10 // changes are being made to value present at new address
}
| 47,633 |
Subsets and Splits
Token Count by Language
Reveals the distribution of total tokens by language, highlighting which languages are most prevalent in the dataset.
SQL Console for PleIAs/common_corpus
Provides a detailed breakdown of document counts and total word/token counts for English documents in different collections and open types, revealing insights into data distribution and quantity.
SQL Console for PleIAs/common_corpus
Provides a count of items in each collection that are licensed under 'CC-By-SA', giving insight into the distribution of this license across different collections.
SQL Console for PleIAs/common_corpus
Counts the number of items in each collection that have a 'CC-By' license, providing insight into license distribution across collections.
Bulgarian Texts from Train Set
Retrieves all entries in the training set that are in Bulgarian, providing a basic filter on language.
License Count in Train Set
Counts the number of entries for each license type and orders them, providing a basic overview of license distribution.
Top 100 Licenses Count
Displays the top 100 licenses by their occurrence count, providing basic insights into which licenses are most common in the dataset.
Language Frequency in Dataset
Provides a simple count of each language present in the dataset, which is useful for basic understanding but limited in depth of insight.
French Spoken Samples
Limited to showing 100 samples of the dataset where the language is French and it's spoken, providing basic filtering without deeper insights.
GitHub Open Source Texts
Retrieves specific text samples labeled with their language from the 'Github Open Source' collection.
SQL Console for PleIAs/common_corpus
The query performs basic filtering to retrieve specific records from the dataset, which could be useful for preliminary data exploration but does not provide deep insights.
SQL Console for PleIAs/common_corpus
The query retrieves all English entries from specific collections, which provides basic filtering but minimal analytical value.
SQL Console for PleIAs/common_corpus
Retrieves all English language documents from specific data collections, useful for focusing on relevant subset but doesn't provide deeper insights or analysis.
SQL Console for PleIAs/common_corpus
Retrieves a specific subset of documents from the dataset, but does not provide any meaningful analysis or insights.
SQL Console for PleIAs/common_corpus
Retrieves a sample of 10,000 English documents from the USPTO with an open government type, providing a basic look at the dataset's content without deep analysis.
SQL Console for PleIAs/common_corpus
This query performs basic filtering to retrieve entries related to English language, USPTO collection, and open government documents, offering limited analytical value.
SQL Console for PleIAs/common_corpus
Retrieves metadata of entries specifically from the USPTO collection in English, offering basic filtering.
SQL Console for PleIAs/common_corpus
The query filters for English entries from specific collections, providing a basic subset of the dataset without deep analysis or insight.
SQL Console for PleIAs/common_corpus
This query performs basic filtering, returning all rows from the 'StackExchange' collection where the language is 'English', providing limited analytical value.
SQL Console for PleIAs/common_corpus
This query filters data for English entries from specific collections with an 'Open Web' type but mainly retrieves raw data without providing deep insights.
Filtered English Wikipedia Articles
Filters and retrieves specific English language Wikipedia entries of a certain length, providing a limited subset for basic exploration.
Filtered English Open Web Texts
Retrieves a subset of English texts with a specific length range from the 'Open Web', which provides basic filtering but limited insight.
Filtered English Open Culture Texts
Retrieves a sample of English texts from the 'Open Culture' category within a specific length range, providing a basic subset of data for further exploration.
Random English Texts <6500 Ch
Retrieves a random sample of 2000 English text entries that are shorter than 6500 characters, useful for quick data exploration but not revealing specific trends.
List of Languages
Lists all unique languages present in the dataset, which provides basic information about language variety but limited analytical insight.