text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<reponame>tigranhov/snapshot_accessor<gh_stars>0
{
"workbench.colorCustomizations": {
"titleBar.border": "#7308ee",
"titleBar.inactiveForeground": "#7308ee",
"titleBar.activeForeground": "#7308ee"
}
} | json |
<gh_stars>1-10
{
"_id": "return.start",
"_type": "page.form",
"allowQueryParams": ["email"],
"body": "Enter your email address and we’ll send you a secure, one-time link to return to your form.",
"components": [
{
"_id": "return.start.email",
"_type": "email",
"label": "Email address",
"name": "email"
}
],
"scope": "savereturn",
"enableSteps": true,
"heading": "Get a sign-in link",
"show": true,
"steps": [
"return.signin.email.sent"
],
"url": "/return/:email?"
} | json |
{
"name": "simple_rtl-sdr_addon",
"version": "1.1.4",
"slug": "simple_rtl-sdr_addon",
"description": "Simple rtl-sdr addon for testing",
"url": "https://github.com/adamaze/adam-hass-addons/tree/main/simple_rtl-sdr_addon",
"init": false,
"homeassistant_api": true,
"arch": [
"amd64",
"armv7",
"aarch64"
],
"options": {
"log_level": "info",
"server": "",
"port": "1234",
"serial_number": "",
"sensor_name": "house_power_usage"
},
"schema": {
"log_level": "list(trace|debug|info|notice|warning|error|fatal)",
"server": "str",
"port": "int",
"serial_number": "int",
"sensor_name": "str"
}
}
| json |
{
"<page title>": "Bingo Universal Waterproof Slr Camera Case For Canon - Buy Or Canon Waterproof Case,Camera Bag Waterproof,Waterproof Camera Bag Product on Alibaba.com",
"fob price": "US $10.98 - 12.6 / Piece Get Latest\nPrice",
"minorder quantity": "10 Piece/Pieces",
"payment terms": "T/T,Western Union,MoneyGram,paypal",
"port": "guangzhou",
"supply ability": "1500 Piece/Pieces per Week"
} | json |
Bioinorganic chemistry is the field of study that investigates the role that metals play in biology. Approximately half of all proteins contain metals and it is estimated that up to one third of all proteins rely on metal-containing active sites to function. Proteins that feature metals, called metalloproteins, play a vital role in a variety of cell functions that are necessary for life. Metalloproteins have intrigued and inspired synthetic inorganic chemists for decades, and many research groups have dedicated their programs to modeling the chemistry of metal-containing active sites in proteins through the study of coordination compounds.
In this experiment, we will synthesize [Co(salen)]2 and study its reversible reaction with O2 in the presence of dimethylsulfoxide (DMSO). First, we will quantify the amount of O2 consumed upon exposure of [Co(salen)]2 to DMSO. We will then visually observe the release of O2 from the [Co(salen)]2-O2 adduct by exposing the solid to CHCl3.
There are two solid polymorphs of [Co(salen)]2 (active and inactive), which can be isolated from different reaction conditions. Active and inactive [Co(salen)]2 vary in their color (brown and red, respectively), structure, and reactivity. Both polymorphs consist of dimeric units. In the case of active [Co(salen)]2, the Co-centers in each of the two Co(salen)2 molecules are in close proximity, forming a very weak van der Waals interaction between the metal centers (Figure 1). While the active form does exhibit a weak Co-Co interaction, the separation between the dimeric units provides space for O2 to react with the Co centers; as a result, the active form of [Co(salen)]2 reacts with O2 in the solid state.
In the so-called inactive form of [Co(salen)]2, there is a dative interaction between the Co center of one molecule and an oxygen atom from the other (Figure 1). The two Co(salen)2 units are closer together compared to the active form and, as a result, the inactive form is stable in air in the solid state and only reacts with O2 in the presence of a coordinating solvent (such as DMSO), which disrupts the dimeric unit and stabilizes the [Co(salen)]2-O2 adduct. Inactive [Co(salen)]2 is easier to handle and study, since the solid can be isolated without using air-free techniques. Therefore, in this experiment we will synthesize inactive [Co(salen)]2 and study its reaction with O2 in the presence of DMSO.
There are several ways that O2, a diatomic molecule, can coordinate to metal center(s) (Figure 2). End-on binding results in a metal-oxygen bond to one of the oxygen atoms in O2. In side-on binding, both oxygen atoms form bonds to the metal center. In some cases, the O2 unit bridges two metal complexes where end-on and side-on binding are also observed.
Inactive [Co(salen)]2 forms a 2:1 cobalt to O2 adduct in the presence of the coordinating solvent, DMSO. The O2 unit bridges the two cobalt centers in an end-on bridging fashion (Figure 3) and coordinated DMSO molecules complete the octahedral coordination sphere of each of the Co centers. If we consider the MO diagram of O2 and d-orbital splitting diagram for [Co(salen)]2, we can understand why the 2:1 O2 adduct is favored (Figure 4). O2 displays a triplet ground state with two unpaired electrons in the π* MOs. [Co(salen)]2 is paramagnetic, with one unpaired electron in its σ*dz2 MO (assuming square planar (D4h), Co2+, 7 de-). The binding of O2 to [Co(salen)]2 is a redox reaction, where two Co(salen) molecules are oxidized by 1 e- each to a final oxidation state of +3 at cobalt, and the O2 molecule is reduced by 2 e-,resulting in the formation of peroxide (O22-). The 1:1 adduct is not favored in this case because Co(III) is d6 and, therefore, does not want to give up another electron (For a review on MO theory/d-orbital splitting, see the video on Group Theory and MO Theory of Transition Metal Complexes).
In this video, we will experimentally determine the Co:O2 ratio upon reaction of inactive [Co(salen)]2 with O2 in the presence of DMSO by measuring the volume of O2 lost in a closed system. We can use the ideal gas law (Equation 1) to calculate the number of moles of O2 consumed.
PV = nRT (Equation 1)
V = volume (L)
T = temperature (K)
We will then study the reversibility of O2 binding by exposing the resulting solid [Co(salen)]2-O2-(DMSO)2 to chloroform (CHCl3). Addition of CHCl3 (a non-coordinating solvent that cannot stabilize the [Co(salen)]2-O2 adduct) leads to a decrease in the concentration of DMSO. Le Châtelier's principle can explain that upon a decrease in concentration of DMSO, the equilibrium shown in Figure 3 will shift towards the reactants, resulting in liberation of O2 gas.
Figure 1. Active and inactive forms of [Co(salen)]2.
Figure 2. Coordination modes of O2 to metal center, M.
Figure 3. Reversible reaction of O2 with [Co(salen)]2.
Figure 4. MO diagram of O2 and d-orbital splitting diagram of Co(salen) (derived from Group theory, assuming square planar geometry).
Subscription Required. Please recommend JoVE to your librarian.
- Charge a 250 mL 3-neck round-bottom flask with 120 mL of 95% EtOH and 2.20 g (0.192 mL, 0.018 mol) of salicylaldehyde.
- Fit the center neck with a condenser connected to N2. Fit the other two necks with a rubber septum and an addition funnel fitted with a rubber septum.
- Stir the reaction in a water bath and heat the solution to reflux (80 °C).
- Add ethylene diamine (0.52 g, 0.58 mL, 0.0087 mol) via syringe through the round-bottom flask septum.
- In a 50 mL round-bottom flask, prepare a solution of Co(OAc)2·4H2O (2.17 g, 0.0087 mol) in 15 mL of distilled water. Heat the solution in the same water bath containing the 3-neck flask to ensure that all of the cobalt acetate dissolves.
- Add the cobalt acetate solution to the addition funnel.
- Degas the cobalt acetate solution by bubbling N2 through the liquid in the addition funnel for 10 min (see "Synthesis of a Ti(III) Metallocene Using Schlenk Line Technique" video for a more detailed procedure on purging liquids). The condenser N2 adapter may need to be closed to allow the N2 to bubble through the cobalt acetate solution.
NOTE: Never heat a closed system! Make sure to vent the system during degassing.
- Slowly add the cobalt(II) acetate solution (~ 1 drop/s), while vigorously stirring the ethanol mixture. Without sufficient stirring, a chunky precipitate will form that can jam the stir bar.
- Once all of the cobalt acetate has been added, stir the reaction at reflux for 1 h.
- Turn off the hot plate and remove the 3-neck round-bottom flask from the water bath.
- Remove the condenser and addition funnel from the flask. Submerge the flask in an ice bath to facilitate precipitation of the [Co(salen)]2.
- Filter the solution under vacuum to isolate the solid and wash the resulting red solid with cold ethanol.
- Isolate the solid. Calculate the yield of the reaction and collect an IR of the [Co(salen)]2. Make sure that the [Co(salen)]2 is dry before using it in the O2 uptake reaction.
Note: It is very important that the system does not leak. A leak in the system will lead to a lower than expected Co:O2 ratio.
- Connect a needle to an O2 (ultra-high purity) gas cylinder with Tygon tubing. Gently bubble O2 through 5 mL of DMSO for at least 10 min.
- While the DMSO is being saturated with O2, fit the two ends of a graduated 10 mL glass pipette with Tygon tubing (each 1.5 ft in length).
- Attach a glass funnel to one of the Tygon tubing pieces.
- Clamp the glass pipette and the funnel to a ring stand so that the funnel is facing up and the tubing forms a U shape ( Figure 5).
- Fill the pipette and funnel with mineral oil. Add the oil through the funnel, making sure that the oil also fills the tubing connected to the pipette. Continue to add the oil until the funnel is filled about half way up the funnel. Don't let the oil get too close to the top of the funnel, as the O2 bubbling through the funnel can cause splashing if the funnel is too full.
- To the open end of the tubing, attach a side-arm test tube (test tube A).
- Add 50 mg (0.077 mmol) of the inactive [Co(salen)]2 to the side-arm test tube A connected to the glass pipette.
- Add 2 mL of the DMSO saturated with O2 to a 3 mL test tube (test tube B).
- Use a pair of tweezers to gently lower test tube B into test tube A, being careful not to spill any of the DMSO. It is important to not expose the [Co(salen)]2 to the DMSO at this point.
- Seal test tube A with a rubber septum. Wire the septum to prevent leaks.
- Insert the needle connected to the O2 gas tank into the septum and purge the system with O2 for 10 min.
- Remove the O2 needle and grease the top of the rubber septum to prevent leaks.
- Some of the pressure within the setup may need to be released to get oil into the glass pipette. To do this, insert a free needle into the rubber septum on test tube A. Cover the opening with a finger and slowly release the pressure within the setup. Do not forget to cover the new hole with grease to prevent leaks.
- Move the glass pipette and funnel so that the oil levels line up in both pieces of glassware.
- Record the volume level of oil within the glass pipette.
Figure 5. O2 uptake apparatus setup.
- Add the DMSO to the solid [Co(salen)]2 by gently tipping the test tubes, making sure that none of the solution enters the side-arm of test tube A.
- Once all of the DMSO has been added, hold the top of the test tube and gently mix the solution by shaking the test tube back and forth.
NOTE: Do not use an up and down shaking motion. Banging the two test tubes together too violently can lead to the breaking of test tube A.
- Continue to gently shake the test tubes by hand until the oil level in the pipette stops rising (about 15-20 min).
- Once O2 consumption ceases, move the pipette and funnel so that the oil levels line up.
- Record the new volume level of the oil in the glass pipette. The volume difference is the volume of O2 consumed during the reaction at atmospheric (1 atm) pressure.
- Record the temperature of the room.
- Transfer the resulting DMSO solution from step 3 to a 15 mL centrifuge tube.
- Fill a second test tube with an equivalent amount of water.
- Insert the test tubes across from each other into a centrifuge.
- Centrifuge the sample for at least 15 min. The resulting solid pellet quality improves with increasing centrifuge time.
- Gently remove the test tube with the [Co(salen)]2-O2 adduct sample, so not to disturb the pellet.
- Carefully decant the DMSO solution above the pellet.
- Holding the centrifuge tube at a 45 ° angle with the pellet facing up, slowly add 1 mL of CHCl3 with a pipette, by allowing the solution to drip down the side of the centrifuge tube. Take extreme care to not disturb the solid [Co(salen)]2-O2 adduct.
- Observe any physical changes that occur.
[N,N'-Bis(salicylaldehyde)ethylenediimino]cobalt(II), abbreviated [Co(salen)]2, is an organometallic complex, which is used to investigate oxygen-transporting metalloproteins.
Metalloproteins such as hemoglobin can reversibly bind O2 and to understand this mechanism, complexes such as [Co(salen)]2 are studied.
[Co(salen)]2 exists in two forms: active and inactive. The active form consists of a heterodimer, in which two cobalt centers form a very weak van-der-Waals interaction, providing enough space for insertion of molecular O2 in the solid state.
In the inactive form of [Co(salen)]2 the cobalt centers of each molecule form a dative bond with an oxygen atom on another molecule. This decreases the space between the units and molecular O2 cannot fit in anymore, unless a coordinating solvent, such as DMSO, is used, which facilitates the adduct's stability.
This video will illustrate the principles of [Co(salen)]2, the synthesis of its inactive form, and the analysis of reversible binding to molecular O2.
Molecular O2 can coordinate to transition metal complexes in several ways: side-on, side-on bridging, end-on, and end-on bridging. In the inactive [Co(salen)]2, O2 coordinates to the two cobalt centers in an end-on bridging fashion and the coordinating DMSO completes the octahedral coordination sphere of each cobalt center generating a 2:1 complex, which can be explained by examining the molecular orbital diagram of O2 and the d-orbital splitting diagram of [Co(salen)]2.
Oxygen has two unpaired electrons in the π* molecular orbital, signifying a triplet ground state, while [Co(salen)]2 has one unpaired electron in its σ* molecular orbital.
The binding of O2 to [Co(salen)]2 is a redox reaction, in which two cobalt centers lose an electron each, and the O2 molecule gains two electrons, forming a peroxide (O22-).
The ratio of Co:O2 in a reaction can be determined by measuring the volume of O2 consumed in a closed system. Using the ideal gas law, the moles of consumed O2 can be calculated.
Furthermore, the reversibility of O2 binding can be studied by addition of CHCl3 to the product. CHCl3 is a non-coordinating solvent, which cannot stabilize the O2 adduct. Therefore, addition of CHCl3 to the [Co(salen)]2-O2 adduct leads to a decrease in concentration of DMSO and pushes the reaction in the reverse direction, resulting in liberation of O2.
Now that we have discussed the principles of [Co(salen)]2, let's look at a procedure for the synthesis of its inactive form, and its use in consuming molecular O2.
In a fume hood, charge a clamped 250-mL three-necked flask with a stir bar, 95% ethanol and salicylaldehyde. Attach a condenser to the center neck and an addition funnel fitted with a septum on of the outer necks.
Fit the third neck of the 3-neck flask with a septum and attach a N2 line to the condenser. Under a N2 atmosphere, stir the reaction in a water bath at 80 °C, and add ethylene diamine by syringe.
In a separate 50-mL round bottom flask containing a stir bar, add Co(OAc)2·4H2O, and dissolve in 15 mL distilled water.
Once completely dissolved, transfer the cobalt acetate solution to the addition funnel, and degas by bubbling N2 through it for 10 minutes.
When degassing is complete, slowly add the cobalt acetate solution to the vigorously stirred salicylaldehyde mixture. Then stir at reflux for 1 hour.
When finished, remove the flask from the heating bath, and remove the condenser and addition funnel. Then submerge the flask in an ice-water bath to facilitate precipitation of [Co(salen)]2.
Vacuum filter the precipitate onto a Buchner funnel with filter paper, and wash the red solid with cold ethanol. Dry the solid completely, weigh it, and calculate the percent yield.
Connect a needle to an O2-gas cylinder with Tygon tubing. Then gently bubble O2 through 5 mL DMSO for 10 minutes.
Attach two 18-inch sections of Tygon tubing to either end of a graduated 10-mL glass pipette. Clamp the pipette to a ring stand with the lowest graduation facing up. Next, attach a long-stemmed glass funnel to the lower tubing piece, and clamp the funnel to the ring stand with the funnel facing up.
Make sure that the tubing connecting the pipette and the funnel form a U-shape. Add mineral oil to the funnel and tubing, until the funnel is about half-filled.
Attach a side-arm test tube to the tubing on the top of the pipette and add [Co(salen)]2 to it.
Transfer 2 mL of O2-saturated DMSO into a 3-mL test tube and, using a pair of tweezers, lower test tube B into test tube A without spilling.
Seal test tube A with a rubber septum tightened with copper wire. Insert a needle attached to the O2 tank into the septum and purge for 10 minutes. Then remove the needle and grease the top of the septum to prevent leaks.
Insert a free needle into the septum of test tube A to allow the mineral oil to reach the glass pipette, while covering the opening with a finger and slowly releasing pressure. Then remove the needle and re-cover the top of the septum with grease.
Adjust the heights of the funnel and pipette so that the oil levels line up in both pieces of glassware, and record the level of oil within the pipette.
Release the DMSO from test tube B by angling the side-arm of test tube A towards the ceiling. Once all of the DMSO has been added, hold the test tube upright and swirl it gently.
Continue to shake the test tubes until the oil level in the pipette stops rising, which means O2 is no longer being consumed. Then, adjust the height of the funnel so that the oil level in it is lined up with the oil level in the pipette. Record the new level of oil in the pipette and the temperature of the room.
Remove the septum from test tube A and transfer the contents to a 15-mL centrifuge tube. Place the tube in a centrifuge at a position opposite a tube carrying an equivalent amount of water.
Centrifuge the samples for at least 15 min, then gently remove the tube containing the [Co(salen)]2 pellet. Carefully decant the liquid without disturbing the pellet.
Hold the centrifuge tube containing the pellet at a 45º angle, and using a syringe slowly drip 1 mL of CHCl3 down the side of the tube. Observe any physical changes that occur.
Now let's evaluate the results. The yield of the synthesized inactive [Co(salen)]2 is 2.4 g, which is 85%. The IR spectrum shows a peak at 1528 cm-1, which is indicative of the CN stretch. Furthermore, the absence of an O-H stretch indicates that no free ligand is present.
59.2 mg of [Co(salen)]2, which is equal to 0.090 mmol, consumed 2 mL of O2. Using the ideal gas law, standard pressure, and temperature recorded, the number of moles of 2 mL O2 was determined to be 0.082 mmol. Lastly, the number of mmol of Co in [Co(salen)]2 was determined, and divided by the number of mmol of O2 to obtain the ratio of Co:O2, which is 2:0.91.
Reversibility of O2 binding was demonstrated using CHCl3, where upon addition of the solvent the DMSO concentration decreased, and the reaction equilibrium shifted to the reactants, resulting in O2 release, as was observed in bubbling of the reaction and the color change to red.
Coordination complexes can be used in the field of chemistry and bioinorganic chemistry to study various metalloproteins.
For example, the metalloprotein hemoglobin is comprised of four globular protein sub units with the heme group embedded in each, making it difficult to study the protein’s active site. Synthetic inorganic chemists usemolecular species, such as [Co(salen)]2, to model active sites in metalloproteins, however, replication of structure and reactivity is often difficult, due to distinct differences in electronic structures between simple coordination compounds and metal surrounded protein superstructures.
Epichlorohydrin is a chemical reagent consisting of an epoxide and an alkyl chloride. It is used in the production of epoxy resins and other elastomers. However, despite its versatility, it is difficult to produce enantiopure epichlorohydrin.
To separate racemic mixtures of epichlorohydrin, chiral salen complexes can be used. For example, in a hydrolytic kinetic resolution of epoxides, the racemic epichlorohydrin is treated with a polystyrene-supported chiral salen ligand in the presence of water, which leads to the hydrolysis of one of the enantiomers. The enantiomer can be separated and the polymer-supported catalyst can be filtered off from the reaction mixture, and reused.
You've just watched JoVE's introduction to [Co(salen)]2. You should now understand its principles, the procedure, and some of its applications. Thanks for watching!
Subscription Required. Please recommend JoVE to your librarian.
Characterization of Inactive [Co(salen)]2:
O2 Uptake:
59.2 mg (0.090 mmol) of [Co(salen)]2 consumed 0.002 L of O2. Using standard pressure and the temperature recorded in step 3.6, the number of moles of O2 consumed was:
The calculated moles of Co in 0.090 mmol of [Co(salen)]2:
Therefore the Co:O2 ratio was:
which is equivalent to a 2:0.91 ratio of Co to O2.
Addition of CHCl3 to [Co(salen)]2–O2 Adduct:
Upon addition of CHCl3, the CHCl3 solution turned red and a stream of bubbles was liberated from the solid, indicating release of O2 gas and formation of inactive [Co(salen)]2.
Subscription Required. Please recommend JoVE to your librarian.
In this video, we explained the different ways that diatomic oxygen can coordinate to metal center(s). We synthesized the oxygen-carrying cobalt complex [Co(salen)]2 and studied its reversible binding with O2. Experimentally we demonstrated that inactive [Co(salen)]2 reversibly binds O2 and forms a 2:1 Co:O2 adduct in the presence of DMSO.
All vertebrates depend on hemoglobin, a metalloprotein found in red blood cells, to transport oxygen to respiratory organs as well as other tissues. In hemoglobin, oxygen reversibly binds to a heme group that features a single Fe center coordinated to a heterocyclic ring called a porphyrin (Figure 6a). Hemoglobin is not the only oxygen-carrying and storage metalloprotein. For example, mollusks possess a protein called hemocyanin, which features a dicopper active site that is responsible for oxygen transport (Figure 6b).
Using synthetic molecular species to model active sites in metalloproteins is challenging due to the distinct differences in electronic structure of a simple coordination compound compared to that of a metal surrounded by a protein superstructure. As a result, it is often difficult to precisely replicate the structure of the active site in metalloproteins. While there are examples of model complexes that structurally mimic metal active sites, there are fewer examples of structurally similar model complexes that exhibit reactivity inherent to the native metalloenzyme.
Figure 6. (a) The Fe center in hemoglobin binds to O2 in an end-on fashion, while (b) the copper containing active site in hemocyanin binds to O2 in a bridging side-on orientation.
Subscription Required. Please recommend JoVE to your librarian.
- Niederhoffer, E. C., Timmons, J. H., Martell, A. E. Thermodynamics of Oxygen Binding in Natural and Synthetic Dioxygen Complexes. Chem Rev. 84, 137-203 (1984).
- Appleton, T. G. Oxygen uptake by cobalt(II) complex. An undergraduate experiment. J Chem Educ. 54 (7), 443 (1977).
- Ueno, K., Martell, A. E. Infrared Studies on Synthetic Oxygen Carriers. J Phys Chem.60, 1270–1275 (1956).
| english |
Ravi Dalal’s remarkable raids ensured Bengal Warriors overcame the disappointment of Sunday night's loss to Bengaluru by registering its maiden victory in the fourth season of Pro Kabaddi League. The Kolkata-based club overhauled Dabang Delhi 31-23 at the National Sports Club of India complex on Monday.
With three minutes to go, the Warriors enjoyed a slender three-point advantage and it seemed like yet another match would go down the wire in the first week of the PKL. However, Dalal’s three-pointer super-raid sealed the fate of the match as Nilesh Shinde’s team took an unassailable lead.
Earlier in the second half, Dalal gave the major breakthrough to his team by ousting Delhi’s Meraj Sheykh. The Iranian had saved his team thrice from getting all out since the 10th minute of the game. However, the star player was tricked by Dalal in the 29th minute which paved way for the Warriors’ to gain a slender lead.
Warriors captain Nilesh Shinde, who hails from Mumbai, was at his usual best, earning four points while defending. Had Sheykh received some support from his teammates in the latter half, Delhi could have got the maximum points.
Bengal Warriors 31 (Ravi Dalal 6, Nilesh Shinde 4, ) bt Dabang Delhi 23 (Meraj Sheykh 9, Anil Kumar 3)
Patna Pirates started the season in style by halting Puneri Paltan’s two-match unbeaten streak with a convincing 30-24 victory. A rejigged Pirates line-up, bolstered by the inclusion of Bajirao Hodage and Mahesh Goud, made it a memorable night, never letting its in-form opponent snatch lead all through the match. Raiders Pardeep Narwal and Surejeet Singh starred for the winners with seven points each.
The result:
| english |
Rhiannon Frater is the award-winning author of the As the World Dies zombie trilogy (Tor) as well as independent works such as The Last Bastion of the Living (declared the #1 Zombie Release of 2012 by Explorations Fantasy Blog and the #1 Zombie Novel of the Decade by B&N Book Blog).
She was born and raised in Texas where she currently resides with her husband and furry children (a.k.a pets).
She loves scary movies, sci-fi and horror shows, playing video games, cooking, dyeing her hair weird colors, and shopping for Betsey Johnson purses and shoes.
| english |
Our condolences to the believers all across the world upon these days of Muharram and the commemoration of the mission and martyrdom of the Master of Martyrs, Imam Husayn (A).
Is creativity necessary when it comes to reciting and performing mourning elegies for Imam Husayn (A)?
Is there something wrong with being creative when it comes to mourning elegies for Imam Husayn (A)?
And to what extent can one bring creativity to the mourning elegies of Imam Husayn (A)?
Finally, what must be preserved when it comes to creativity and innovativeness in the mourning elegies of Imam Husayn (A)?
The Leader of the Islamic Revolution, Imam Sayyid Ali Khamenei, speaks about the things to keep in mind when bringing innovation and creativity into writing/performing elegies.
We Are The Nation of Martyrdom.
We Are The Nation of Imam Husayn.
Video Tags:
Video Tags:
Co-organised by the Mohebban Al Mahdi Youth Foundation and the Islamic Unity Society.
Venue: The Albion Academy, Salford, UK.
Video Tags:
Video Tags:
Video Tags:
Our condolences to all the believers, all across the world, wherever they are, upon the holy months of Muharram and Safar.
Our condolences to all the believers, all across the world, wherever they are, upon the holy months of Muharram and Safar.
This year, countless millions across the world once again proudly commemorated the mission of Imam Husayn ibn Ali (A) and most eagerly mourned over the martyrdom of Imam Husayn (A), and his family members and companions who accompanied his eminence into the divine hands of martyrdom as they stood up for Truth and Justice against the overwhelming forces of evil and falsehood.
Is the commemoration of Imam Husayn (A) limited to just the first ten days of Muharram?
And has the commemoration of Imam Husayn (A) merely become a habit or ritual for some people?
What happens if we merely stick to the rituals of the commemoration of Imam Husayn (A)?
What must every single Shia remind themselves of as they commemorate the martyrdom of Imam Husayn (A)?
Why, at times, are we not able to make fundamental changes in ourselves or our societies despite attending countless mourning gatherings for Imam Husayn (A)?
What are the signs of being a companion of the Messenger of Allah (S) as stated by the holy Quran?
Can you be a superficially religious person, but still be in the camp of Yazid?
Why have some of our esteemed scholars in the light of the teachings of Islam considered remaining neutral to be siding with the camp of falsehood?
And why would a person decide to remain neutral despite the clarity between Truth and falsehood?
What was the essence of the movement of Imam Husayn (A) and what characteristics does it require?
And what did Imam Husayn (A) say to Ubaydullah ibn Hur al-Jofi?
What does Imam Sadiq (A) say about a certain group of so-called Shias at the time of reappearance of the 12th Imam?
And what does paying a price have to do with the answers to these questions?
And should we be afraid to speak the Truth?
And what are the dangers of leaving the commemoration of Imam Husayn (A) to a mere habit and ritual?
Finally, what are some groups that are responsible for and what are some practical things that we can all do in order to move the commemoration of Imam Husayn (A) forward from a mere annual ritual?
In order to answer these questions and more, we humbly invited Sayyid Muhammad Hashemi from the Islamic Republic of Iran and explain to us, \\\"Is The Commemoration of Imam Husayn (A) A Mere Ritual?\\\"
Salutations be upon Husayn!
Salutations be upon Ali ibne Husayn!
Salutations be upon the children of Husayn!
Salutations be upon the companions of Husayn!
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
What was the state and condition of the world of Islam when Imam Husayn (A) rose up and entered the battlefield?
What was the state and condition of the world of Islam when Imam Husayn (A) rose up and entered the battlefield?
And why was it a crime for a Muslim to be a supporter and lover of the strongest pillar of Islam – Imam Ali (A)?
Besides, what was the character like of the person who had illegitimately taken over the Caliphate of the Muslims?
And what was the biggest spiritual calamity for Islam during that period?
Furthermore, how is the movement of Imam Husayn (A) still relevant in today’s day and age, and what is the Jihad of our time?
And, what is our responsibility in today’s times if we see – once again – that the pulpit of the Holy Prophet (S) is being used to spread corruption and create deviation in Islam?
Moreover, what is the true meaning of commemorating the mourning of Imam Husayn (A)?
And to conclude, what do the pages of history tell us about the end of those people who see the religion of Islam in danger and do not follow the lead of Imam Husayn (A) and stand up to defend it?
The Leader of the Islamic Revolution – Imam Sayyid Ali Khamenei – explains the conditions of the time when Imam Husayn (A) rose against injustice and sheds light on the Jihad of today and our responsibility in the current times.
Video Tags:
Our condolences to all the believers, all across the world, wherever they are, upon the holy months of Muharram and Safar.
Our condolences to all the believers, all across the world, wherever they are, upon the holy months of Muharram and Safar.
This year, countless millions across the world once again proudly commemorated the mission of Imam Husayn ibn Ali (A) and most eagerly mourned over the martyrdom of Imam Husayn (A), and his family members and companions who accompanied his eminence into the divine hands of martyrdom as they stood up for Truth and Justice against the overwhelming forces of evil and falsehood.
Yet, what are some qualities that should be in a leader, and more so in the leader of the Muslim Ummah and a leader of the Muslims?
And in this context, what did Yazid ibn Mua\\\\\\\'wiya represent who wanted to be the leader of the Muslim Ummah?
And when Imam Husayn (A) rejected the notion that one like Yazeed should be allowed to become the leader of the Muslim Ummah, what did Yazeed end up doing?
Even in the present-day, what happens when a certain people in so-called democracies don\\\\\\\'t vote with the majority; a tactic of ostracization that was a part of the Umayyad Dynasty\\\\\\\'s policies?
And in contrast to this tyrannical policy, what was the policy of the Ahl al-Bayt (A)?
Case in point, did Imam Ali (A) oppress, ostracize, or kill those people who stubbornly and foolishly resisted in paying allegiance to him?
How did Imam Ali (A) react when a person from the Khawarij called him a Kafir?
Another case in point, did Imam Husayn (A) take revenge upon the people of Kufa after he found out that they had betrayed him?
When Imam Husayn (A) and his caravan had water, and the enemy\\\\\\\'s ranks didn\\\\\\\'t have water, how did Imam Husayn (A) behave?
And likewise, how is this event similar to the event that unfolded in the battle of Siffin during Imam Ali\\\\\\\'s time?
And what segment of the population is most affected by sanctions, such as the illegal and inhumane sanctions of America against the Islamic Republic of Iran?
As a Shia and follower of Imam Husayn (A) to what borders must we spread the message and mission of Imam Husayn (A?
What did the tragedy of Karbala become a means for throughout the many centuries that have passed since the event of Karbala?
What was the condition of mass propaganda used by the Umayyad Dynasty in order to misguide the people and how is it applicable to the present-day?
Finally, what is the responsibility of every single one of us, including Islamic Pulse, when it comes to the propagation of the message and mission of Imam Husayn (A) in the present-day and how is media and Jihad al-Tabyiin related to this?
In order to answer these questions and more, we humbly invited Shaykh Mustafa Samari from the Federal Republic of Nigeria to speak to us about and ask us \\\\\\\"Will You Vote For A Yazeed?\\\\\\\"
Salutations be upon Husayn!
Salutations be upon Ali ibne Husayn!
Salutations be upon the children of Husayn!
Salutations be upon the companions of Husayn!
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
اربعین نواسہ رسول، فرزند بتول حضرت امام حسین علیہ السلام کے چہلم کی یاد میں منایا جانے والا مذہبی تہوار ہے جسکا آغاز خود اہلبیت علیہم السلام نے کیا اور ہر سال عراق کے مختلف شہروں سے شروع ہو کر 20 صفر کو کربلائے معلی میں روضہ امام حسین علیہ السلام پر اختتام پذیر ہوتا ہے۔ اس سفر کو عام طور پر پیدل طے کیا جاتا ہے۔ اور ہر سال عراق کے علاوہ دنیا کے مختلف ممالک سے اس مراسم میں شرکت کرنے کے لئے شیعوں کے علاوہ اہل سنت، عیسائی، ایزدی اور دیگر مذاہب سے تعلق رکھنے والے لاکھوں لوگ عراق کا سفر کرتے ہیں۔
ان آخری برسوں میں اربعین کے پیدل سفر میں شرکت کرنے والوں کی تعداد کروڑوں میں پہنچ گئی ہے یہاں تک کہ یہ مراسم دنیا میں منعقد ہونے والے سب سے عظیم مذہبی اجتماع میں بدل گئے ہے۔ آئے دن اسکے شرکاء کی تعداد میں اضافہ ہوتا جارہا ہے اور آج اربعین پر ہونے والی مشی بین الاقوامی سطح پر مقاومت کا مظہر ٹھہری ہے اور عاشورائے حسینی کے پیغام کو دنیا تک پہنچانے کیلئے ایک طاقتور میڈیا کا کردار ادا کرہی ہے۔
اربعین کس طرح عاشورائے حسینی کیلئے میڈیا کا کردار ادا کرتا آرہا ہے؟ اسکا آغاز کب سے ہوا اور اسکو مزید کس طرح وسعت دینے کی ضرورت ہے؟ اور اس سلسلے میں کن لوگوں کو آگے بڑھ کر کوشش کرنے کی ضرورت ہے؟ ان تمام باتوں کو ولی امر مسلمین سید علی خامنہ ای کی زبانی آپ اس ویڈیو میں ملاحظہ کرسکتے ہیں۔
Video Tags:
Who initiated the Hey’at and what is a Hey\'at?
And what did Imam Sadiq (A) have to say about the Hey’ats?
Who initiated the Hey’at and what is a Hey\'at?
And what did Imam Sadiq (A) have to say about the Hey’ats?
Furthermore, what does the word ‘Amr’ mean and what is its modern-day interpretation?
Additionally, how is it related to us as Shias?
Imam Khamenei talks about the history and importance of Hey’ats in the present-day.
What does Imam Ja\'far Sadiq (A) urge the mourners of Imam Husayn (A)?
Video Tags:
کربلا کے واقعے کے بعد آئمہ علیہم السلام کے اصحاب نے بھی امام سجاد علیہ السلام اور زینب کبری ٰسلام اللہ علیہا کی سیرت پر چلتے ہوئے عزاداری کوجاری رکھنے کیلئے مجالس کا اہتمام کیا، وہ آپس میں ایک دوسرے کے ساتھ مل جل کر مجالس منعقد کرتے تھے اور یہیں سے عزاداری کا آغاز ہوا۔ اور آئمہ علیہم السلام بھی ایسی نشستوں کو بہت پسند کیا کرتے تھے اور اسی کے ساتھ اس بات کی بھی تاکید کیا کرتے کہ ایسی نشستوں میں امر اہلبیت علیہم السلام کو زندہ کیا جائے۔
اہلبیت علیہم السلام کی جانب سے مجالس عزاء کے ضمن میں انکے امر کو زندہ رکھنے کی تاکید اس بات کی عکاسی کرتی ہے کہ مجالس عزاء، اسلامی تعلیمات اور معارف اہلبیت علیہم السلام کو زندہ رکھنے کا بہترین ذریعہ ہیں، چنانچہ انہی مجالس میں امر اہلبیت علیہم السلام کی بہترین طریقے سے تبیین اور توضیح ہو سکتی ہے۔
یہاں پر امر اہلبیت سے متعلق، ممکنہ طور پرمختلف معانی کو مد نظر رکھتے ہوئے یہ سوال پیش آسکتا ہے کہ امر اہلبیت ؑسے کیا مراد ہوسکتی ہے اور آج کی اصطلاح میں اسکے معنی کو کس پیرائے میں بیان کیا جا سکتا ہے؟ چانچہ اس سوال کے جواب کو آپ، ولی امر مسلمین سید علی خامنہ ای کے بیان کے تناظر میں اس ویڈیو میں مشاہدہ کر سکتے ہیں۔
Video Tags:
یرِیدُونَ لِیطْفِؤُا نُورَ الله بِأَفْواهِهِمْ وَاللهُ مُتِمُّ نُورِهِ وَلَوْ کرِهَ الْکافِرُونَ. \"یہ لوگ چاہتے ہیں کہ نور خدا کو اپنے منہ سے بجھادیں اور اللہ اپنے نور کو مکمل کرنے والا ہے چاہے یہ بات کفار کو کتنی ہی ناگوار کیوں نہ ہو\" (الصف: ۸)
یزید لعنت اللہ علیہ اور اس کے پیروکار کربلا کے میدان میں نواسہ رسول خدا صلی اللہ علیہ وآلہ وسلم کو پیاسہ اور مظلومیت کے ساتھ بے دردی سے شہید کرکے یہ سمجھ رہے تھے کہ وہ خداوندمتعال کے نور کو بجھا دیں گے لیکن تاریخ نے یہ ثابت کردیا کہ یہ الہی نور نہ فقط بجھا بلکہ آج پوری آب و تاب کے ساتھ روشن ہے اور عالم بشریت کی ہدایت کے راستے کو روشن کر رہا ہے.
اس موضوع پر امام خمینی رضوان اللہ علیہ کے بیانات سے مستفید ہونے کے لیے اس ویڈیو کا مشاہدہ کیجئے.
Video Tags:
What is the history and origin of the day of Arbaeen?
And what does the Arbaeen Walk/March represent?
What is the history and origin of the day of Arbaeen?
And what does the Arbaeen Walk/March represent?
Besides, has the importance of the Arbaeen event grown over time?
Furthermore, who were the true media in the dark days of the rulership of the Bani Umayyads and the Sufyanites?
And what did the Ahl al-Bayt (A) do on the first Arbaeen?
Additionally, what was the effect of the great Arbaeen movement of lady Zaynab Kubra (A) and the Ahl al-Bayt (A)?
And despite the world\'s complex media propaganda by the enemy, what media is beneficial and important in order to deflect the attacks of the enemy?
Moreover, how is the Arbaeen Walk/March unique in today’s times?
And who all participate in the Arbaeen March?
And finally, what truly unites people from all different walks of life?
Imam Sayyid Ali Khamenei speaks about Arbaeen and how \"Arbaeen Is A Unique Form of Media\".
Video Tags:
What – according to the Father of the Islamic Revolution – is the main factor of the victory of the Islamic Revolution?
What – according to the Father of the Islamic Revolution – is the main factor of the victory of the Islamic Revolution?
And what role did the mourning ceremonies and the gatherings for the propagation of Islam play in it?
Moreover, what is the binding agent of the Iranian nation?
Imam Ruhollah Khomeini (R) explains how Imam Husayn (A) brings people together.
Video Tags:
What did Imam Husayn (A) say when Yazid tried to force him to choose between death and humiliation?
What did Imam Husayn (A) say when Yazid tried to force him to choose between death and humiliation?
And how does this apply to the present-day and how we should all choose?
\"Tears of devotion are the secret of survival, and they are secret of every victory.\"
\"Imam Husayn (A) lives in us; and through him we live. He is the voice of every free person.\"
Haider Khalil explains how they achieved victory by following in the steps of Imam Husayn (A) in this beautiful and revolutionary Latmiyya.
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
What did the Americans do to themselves on the 11th of September?
And what did they do to the already impoverished nation of Afghanistan?
What did the Americans do to themselves on the 11th of September?
And what did they do to the already impoverished nation of Afghanistan?
And what was the purpose of the Americans and their allies in invading and occupying the West Asian region which has lasted over 20 years?
What happened to the army that the Americans created in Afghanistan?
Finally, what did the Americans do when they realized that they could no longer win the battle in West Asia, despite investing 20-plus long years in the region?
General Qa\\\'ani explains in his bold manner \\\"The Coward Americans\\\".
Do you want to fight us?!
Hey Yankee, Go Home!
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
موجودہ یزیدی سامراج اور عالمی استکباری طاقتوں کو ناکوں چنے چبوانے والے، نائب امام زماںؑ اور ولی امر مسلمین سید علی خامنہ ای کے دستِ راست، مقاومت کے سید و سردار، پوری دنیا کے شجاع وغیرت مند جوانوں کے دلوں کی دھڑکن، حزب اللہ کے جنرل سیکرٹری، سید حسن نصر اللہ کا اپنے آقا و مولا، جوانانِ جنت کے سردار، سید الشہداء، فاتحِ کربلا، امام حسینؑ سے خوبصورت اظہارِ ارادت ، ضرور ملاحظہ فرمائیں۔
Video Tags:
مئی 2022 تک، کوئی حکومت تشکیل نہیں دی گئی ہے اور نہ ہی پارلیمنٹ کے ذریعہ کوئی صدر مقرر کیا گیا ہے۔ 13 جون 2022 کو الصدر کے بلاک کے 73 ارکان پارلیمنٹ نے پارلیمنٹ سے استعفیٰ دے دیا۔ 23 جون کو کونسل آف ریپریزنٹیٹوز نے ان کی جگہ 73 نئے اراکین کو حلف دلایا۔
Video Tags:
امام حسین علیہ السلام کی مظلومانہ شہادت کے بعد خود اہلبیت علیہم السلام کے توسط سے عزاداری کا آغاز ہوا اور انہوں نے اپنے چاہنے والوں سے بھی عزادری کو فروغ دینے کی تاکید کی، چنانچہ شیعہ تاریخ کے تمام ادوار میں عزاداری کا سلسلہ کبھی نہیں رکا، اگرچہ ممکنہ طور پر مختلف ادوار میں اسکی مختلف صورتیں رہی ہوں، لیکن عزاداری کا سلسلہ نہیں ٹوٹا اور عزاداری کی مجالس نے بعض تاریخی مواقع پر بڑی کارکردگی دکھائی جسکی ایک مثال انقلاب اسلامی کی کامیابی کی صورت میں ہمیں نظر آتی ہے۔
انقلاب اسلامی کی کامیابی میں عزاداری کا کیا کردار رہا اور کس طرح نوحوں کے ذریعے ملک بھر میں لوگوں کے احساسات کو انقلاب کیلئے ابھارا گیا اور آٹھ سالہ دفاع مقدس کے دوران ماتمی دستوں اور انجمنوں نے کس طرح کا کارنامہ انجام دیا۔ ان تمام باتوں کو ولی امر مسلمین سید علی خامنہ ای کے بیانات پر مشتمل اس ویڈیو میں دیکھا جاسکتا ہے ۔
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
زمانے کی ترقی کے ساتھ ہر کام کیلئے جدید تخلیقی طریقوں کی ایجاد انسان کی فطرت کا لازمہ ہے اور اسی لئے انسان کی کوشش یہ ہوتی ہے کہ جدید تخلیقی طریقوں کو اپناتے ہوئے اپنے روز مرہ کے امور کو آگے بڑھائے اور عقل انسانی بھی جدیدیت کی ممانعت نہیں کرتی تاہم یہ عقلائی طریقہ، عزاداری امام حسین علیہ السلام کے سلسلے میں بھی کار فرما ہے یا پھر عزاداری کے باب میں جدید تخلیقی طریقوں کا ایجاد، بدعت کے زمرے میں آتا ہے اور جائز نہیں؟ چنانچہ اس سوال کے جواب کے ساتھ اسلام میں بدعت کا معیار کیا ہے اور اسکا تعلق کس سے ہے؟ ان جیسے دیگر سوالات کے علمی جواب حاصل کرنے کیلئے علامہ تقی مصباح یزدی رضوان اللہ علیہ کے علمی بیانات پر مشتمل اس ویڈیو کو ضرور ملاحظہ کیجئے۔
Video Tags:
CHECK OUT OUR PUBLICATIONS!
CHECK OUT OUR PUBLICATIONS!
FREE COURSES!
🡆 Fiqh – Ja’fari Madhab (shia) and more………..!
Excerpt from the speech delivered by Ayatollah Khamenei, the Leader of the Islamic Revolution, during a meeting with the participants of the 7th General Assembly of the \'Ahl al-Bayt World Assembly\' on September 3, 2022.
سفیرِ ولایت شہید عارف حسین الحسینی رضوان اللہ علیہ مسلمانوں اور اہلبیت علیہم السلام کے پیروکاروں کے درمیان فکری اختلافات کے بارے میں کیا فرماتے ہیں؟ کیا فکری اختلاف کوئی بُری چیز ہے؟ کیا دنیا کی تمام مخلوقات شکل و شباہت کے لحاظ سے ایک جیسی ہیں؟ اختلاف کب تک بُری چیز نہیں ہے؟ کیا قرآن و اسلامی تعلیمات ہمیں ایک دوسرے کے مقابلے میں کھڑے ہونے کی اجازت دیتی ہیں؟
اِن تمام سوالات کے جوابات کے لیے اِس ویڈیو کا مشاہدہ کیجیے۔
Video Tags:
| english |
People in Sudan have voiced regret at the absence of celebrations for the Prophet Muhammad’s birthday, Mawlid El Nabi*, in historical areas of the capital Khartoum, as well as war-torn parts of Darfur, due to the ongoing violence. Sennar state has locality banned celebrations in public squares and confined them to mosques.
In the capital of North Darfur, El Fasher, Mawlid Square adjacent to the General Command was turned into a military operational area, so members of the public resorted to using Baraka Square in the southern city district of Tambasi for Mawlid celebrations.
Lamenting the minimal celebrations this year, the Former Minister of Religious Affairs and Endowments, Nasreddin Mufarreh, called for the immediate end of the war, hate speech, racism and extremism, and the establishment of peace.
He said that the anniversary of the Prophet’s birthday passes this year on Sudan, which is going through a “fierce, sudden and dangerous phase” as a result of the war.
Mufarreh deplored the violence Sudan is facing: “The war has caused the country to lose billions of dollars in resources and increased social segregation and racism of the country’s colour, race and tribe” he said.
He called for stopping the war in preparation for the return of displaced people, refugees, and their villages, and turning the pages of war forever for national recovery and progress towards the future.
*Most Muslims celebrate the birth of the Prophet Muhammad on the 12th day of the third month of the Islamic calendar, Rabi’ El Awwal. Muslims view the celebration, called Mawlid El Nabi or simply the Mawlid, like many other Islamic celebrations: as a sign of respect and adoration of Muhammad, whom they believe to be God’s (Allah’s) messenger. It is an event typically commemorated across the Muslim world.
The post Sudanese Lament Muted Celebrations of Muhammad’s birthday appeared first on Dabanga Radio TV Online.
The post Sudanese Lament Muted celebrations of Muhammad’s birthday appeared first on News Africa Now.
| english |
use rustc_serialize::json;
#[derive(RustcDecodable, RustcEncodable, Debug, Clone)]
pub struct ReportContent {
pub domains: Option<Vec<String>>,
pub definitions: Option<Vec<String>>,
}
#[derive(RustcDecodable, RustcEncodable, Debug, Clone)]
pub struct Report {
pub report: super::MetadataObjectBody<ReportContent>,
}
impl Report {
pub fn object(&self) -> &super::MetadataObjectBody<ReportContent> {
&self.report
}
}
impl super::MetadataObjectGetter<ReportContent> for Report {
fn object(&self) -> &super::MetadataObjectBody<ReportContent> {
&self.object()
}
}
impl Into<String> for Report {
fn into(self) -> String {
format!("{}\n", json::as_pretty_json(&self).to_string())
}
}
pub const NAME: &'static str = "report";
impl super::MetadataObjectRootKey for Report {
fn root_key() -> String {
NAME.to_string()
}
}
impl super::MetadataQuery<super::MetadataQueryBody<Report>> {
pub fn find_by_identifier(&self, identifier: &String) -> (u32, Option<Report>) {
let mut i: u32 = 0;
for item in self.objects().items().into_iter() {
if item.object().meta().identifier().as_ref().unwrap() == identifier {
return (i, Some(item.clone()));
}
i += 1;
}
(0, None)
}
}
| rust |
Bhubaneswar: Two COVID warriors among the 17 new cases of novel coronavirus that were detected in the last 24 hours on July 6 (till 9 AM) in the State Capital.
Sharing details of the cases on Twitter, the Bhubaneswar Municipal Corporation (BMC) revealed that two Males of ages 26 and 35 years who are employees of a private hospital tested positive. Out of the 17 new cases, five are Quarantine Cases while 10 are Local Contact Cases.
Besides, four COVID-19 patients have got cured during the aforementioned period, the tweet added.
As per the updated summary shared by the BMC, the total of positive cases stands at 415 with 274 recovered cases, 169 active cases and six deaths.
Update on newly detected & cured #COVID19 cases in the last 24 hrs under the BMC area on 6th July 2020(till 9am).
Further contact tracing is still continuing.
| english |
CEO Tim Cook said the company faced "macroeconomic headwinds," which is code for having a really hard time convincing people to buy iPhones, iPads and Macs.
It finally happened.
Apple on Tuesday reported its first-ever drop in iPhone sales, with fiscal second-quarter unit shipments down 16 percent to 51.2 million. That's lower than the 61.1 million the company sold the same time last year, though it is in line with the 51 million analysts expected Apple to sell in the three months ended in March.
Even worse, the company said sales for this quarter may fall double-digits yet again. Apple's targeting sales between $41 billion and $43 billion for the three months ended in June, below analyst expectations of $47.3 billion.
Apple shares dropped more than 6 percent in late trading.
Tim Cook, Apple's CEO, said the company is struggling to keep up its historically massive growth, though he insisted the company's future is still bright.
"Our product pipeline has amazing innovations in store," he said.
Beyond the fluffy language, the bottom line is that this is shaping up to be a tough year for Apple. On paper anyway.
Even if it sells a lot of iPhones, Cook has to deliver more -- as in sell even more phones than it did at the same time a year ago. Apple makes more than two-thirds of its revenue from the iPhone, so having sales rise is an important metric for success.
The problem is that people just aren't excited by phones like they used to be. New phone releases, once the talk of the town, are now routine. And in places like the US, everyone who wants a phone has one.
The economy has also been tough in countries like China, one of Apple's most important markets. Cook has tried to expand beyond the iPhone with new gadgets like wearables and services for streaming music, but the markets of opportunities for those new products won't deliver as much profit as the iPhone.
Apple knows this, and so to appease investors it's giving them more money. Apple's board increased its quarterly dividend by 10 percent to 57 cents per share. The company also plans to buy back more shares, increasing its spending by 25 percent to $175 billion.
Still, the debate rages: Is the the beginning of the end or merely a blip in Apple's unprecedented rise?
"While Wall Street was disappointed with Apple missing core revenue and earnings numbers, we aren't talking about a company in trouble," said Patrick Moorhead, head of research firm Moor Insights & Strategy.
Nearly everything at Apple has fallen. Total revenue for the company though fell to $50.6 billion and profit was $1.90 a share. Analysts polled by Thomson Reuters were expecting a profit of $2 per share on sales of $52 billion.
That translated to the iPhone's noteworthy first-ever fall but the company's other products aren't doing much better.
Sales of the iPad dropped 18 percent to 10.3 million units, the ninth time in a row that sales of Apple's tablet have dropped from the previous year. Apple says the iPad's sales will begin to rebound, thanks to the new iPad Pro, which works with specialized keyboards and stylus pencils to help people do work. In the meantime, the Mac saw sales drop nearly 12 percent to 4 million units.
Apple doesn't report how well its year-old Apple Watch performs, but Cook said sales "met our expectations," without more explanation. That could be taken to be a bad thing, but he then telegraphed the device still shows promise.
"We started shipping Apple Watch just one year ago in it has quickly become the best-selling and most loved smart watch in the world," Cook said, adding the watch's sales tallies over its first year exceeded sales of iPhone in its first year.
That wasn't enough to bolster the rest of Apple's results though. Sales in nearly every geography the company reports fell. In the Americas, sales fell 10 percent to $19 billion. Sales in Europe fell 5 percent to $11.5 billion. The Asia Pacific region notched a 25 percent drop to $3.2 billion. And revenue in Greater China fell 26 percent to $12.5 billion.
The only region that saw sales grow was Japan, though it's the company's second-smallest market.
One bright spot was Apple's "services," such as its AppleCare warranties, Apple Pay and Apple Music, which notched 13 million paying subscribers. Overall, those parts of its business rose 20 percent to nearly $6 billion.
Also, the company counted $233 billion in its coffers, which is more than the GDP of the entire country of Portugal.
| english |
<gh_stars>1-10
/*!
* Copyright (c) 2015-2017, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (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.
*/
define([
'okta',
'util/Util',
'views/primary-auth/PrimaryAuthForm'
], function (Okta, Util, PrimaryAuthForm) {
var _ = Okta._;
return PrimaryAuthForm.extend({
className: 'idp-discovery-form',
save: function () {
return Okta.loc('oform.next', 'login');
},
saveId: 'idp-discovery-submit',
initialize: function () {
this.listenTo(this, 'save', _.bind(this.model.save, this.model));
this.stateEnableChange();
},
inputs: function () {
var inputs = [];
var usernameProps = {
className: 'margin-btm-30',
label: Okta.loc('primaryauth.username.placeholder', 'login'),
'label-top': true,
explain: Util.createInputExplain(
'primaryauth.username.tooltip',
'primaryauth.username.placeholder',
'login'),
'explain-top': true,
inputId: 'idp-discovery-username',
disabled: false
};
inputs.push(_.extend(this.getUsernameField(), usernameProps));
if (this.settings.get('features.rememberMe')) {
inputs.push(this.getRemeberMeCheckbox());
}
return inputs;
},
focus: function () {
if (!this.model.get('username')) {
this.getInputs().first().focus();
}
else if(this.getInputs().toArray()[1]) {
this.getInputs().toArray()[1].focus();
}
}
});
});
| javascript |
<gh_stars>1-10
[
"bower_components/angular/angular.js",
"bower_components/angular-animate/angular-animate.js",
"bower_components/angular-sanitize/angular-sanitize.js",
"bower_components/angular-ui-router/release/angular-ui-router.js",
"bower_components/ionic/release/js/ionic.js",
"bower_components/ionic/release/js/ionic-angular.js",
"bower_components/firebase/firebase.js",
"bower_components/angularfire/dist/angularfire.js",
"bower_components/ngCordova/dist/ng-cordova.js"
]
| json |
Ajinkya Rahane might have had a forgettable Test debut here last month, but his captain in the Rajasthan Royals team, Rahul Dravid, backed the youngster, saying he failed on a “bad” Kotla wicket and deserves more opportunities to showcase his talent.
Rahane’s long-awaited Test debut in the final match of the series against Australia ended in a damp squib as he could only manage seven and one in the two innings of the game that ended in three days at the Feroze Shah Kotla ground.
“Rahane failed against Australia on a bad wicket. His performance in that Test should not be taken seriously. The youngster deserves more opportunities,” Dravid said, while backing the Mumbai-lad to deliver in ongoing Indian Premier League.
“Rahane got an opportunity to play in the Indian team because he had scored lot of runs in the domestic cricket. I am sure he will get more chances to represent the side,” he told reporters on the eve of their IPL season 6 opener against Delhi Daredevils here tomorrow.
Rahane was the fourth-highest run-getter in the last season of the cash-rich Twenty20 tournament, finishing with 560 runs from 16 games, including a brilliant century.
| english |
<reponame>denkhaus/node-dir2json
{
"name": "dir2json",
"version": "0.0.2",
"description": "convert a directory tree to json representation",
"main": "index.js",
"dependencies":{
"underscore":"*"
},
"repository": {
"type": "git",
"url": "http://github.com/denkhaus/node-dir2json.git"
},
"keywords": [
"walk",
"directory",
"recursive",
"tree",
"json"
],
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"license": "MIT",
"_id": "dir2json@0.0.2",
"_from": "dir2json@"
}
| json |
{"path":"models/scriptpost","templateID":0,"sharedPropsHashes":{"nav":"1NOmB5","sidebarTree":"Zmql6m","namespace":"Zd6xn0"},"localProps":{"version":"1.0","crumbs":[{"content":"API Reference","to":"/"},{"content":"Models","to":"/models"},{"content":"ScriptPost","to":"/models/scriptpost"}],"page":{"meta":{"title":"ScriptPost - Models - API Reference","url":"/models/scriptpost","description":"\n"},"title":"ScriptPost","parsedPath":["pages","/","data","children",14,"data","children",176],"rootPagePath":"/","path":"/models/scriptpost","isSubpage":true,"route":{"path":"/scriptpost"},"data":{"blocks":[{"type":"text","header":{"title":"ScriptPost"}},{"type":"jsonSchema","data":{"required":["name"],"properties":{"name":{"type":"string","description":"The user-friendly name.","minLength":1,"maxLength":255},"description":{"type":"string","description":"The user-friendly description.","maxLength":255},"html":{"type":"string","description":"An html string containing exactly one `script` tag. Required if `kind` is `script_tag`.","maxLength":65535},"src":{"type":"string","description":"The `src` attribute of the script to load. Required if `kind` is `src`. Must be in `https` format.","maxLength":255},"auto_uninstall":{"type":"boolean","description":"Whether to uninstall this script when the app associated with it is removed.","default":true},"load_method":{"type":"string","description":"The load method to use for the script. Acceptable values are `default`, `async`, or `defer`.","default":"defer","enum":["default","async","defer"]},"location":{"type":"string","description":"Where on the page to place the script. Acceptable values are `head` or `footer`.","default":"footer","enum":["head","footer"]},"visibility":{"type":"string","description":"Which set of pages the script should load on. The values allowed for this parameter are `storefront`, `all_pages`, `checkout` and `order_confirmation`. Please note that you need to have `Checkout content` scope to use `all_pages` and `checkout`.","default":"storefront","enum":["storefront","all_pages","checkout","order_confirmation"]},"kind":{"type":"string","description":"What type of script this is. Acceptable values are `src` - a `script` tag will be generated with its `src` attribute set to the value of `src`; `script_tag` - The value of `html` (which must contain a single `script` tag) will be injected directly onto the page.","default":"src","enum":["src","html"]}},"example":{"name":"jQuery","description":"The Write Less, Do More, JavaScript Library.","src":"https://code.jquery.com/jquery-3.2.1.min.js","auto_uninstall":true,"load_method":"defer","location":"head","visibility":"storefront","kind":"src"}}}],"children":[]}}}}
| json |
// Copyright 2019 The Nakama 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 online_party_system
import (
"context"
"database/sql"
"fmt"
"github.com/heroiclabs/nakama-common/runtime"
)
const (
serviceName = "OnlinePartySystem"
)
// Allow implementation-specific filtering of parameters received from clients in party join attempts.
type MatchJoinMetadataFilter func (metadata map[string]string) map[string]string
func noopMatchJoinMetadataFilter(metadata map[string]string) map[string]string {
return metadata
}
// Registers the collection of functions with Nakama required to provide an OnlinePartyService from Unreal Engine.
func Register(initializer runtime.Initializer, config PartyConfig, matchJoinMetadataFilter MatchJoinMetadataFilter) error {
if matchJoinMetadataFilter == nil {
matchJoinMetadataFilter = noopMatchJoinMetadataFilter
}
createPartyMatch := func(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule) (runtime.Match, error) {
return &PartyMatch{
config: config,
matchJoinMetadataFilter: matchJoinMetadataFilter,
}, nil
}
if err := initializer.RegisterMatch(fmt.Sprintf("%s-%s", serviceName, "Party"), createPartyMatch); err != nil {
return err
}
if err := initializer.RegisterRpc(fmt.Sprintf("%s-%s", serviceName, "CreateParty"), rpcCreateParty); err != nil {
return err
}
if err := initializer.RegisterRpc(fmt.Sprintf("%s-%s", serviceName, "GetAdvertisedParty"), rpcGetAdvertisedParty); err != nil {
return err
}
if err := initializer.RegisterRpc(fmt.Sprintf("%s-%s", serviceName, "RejectPartyInvite"), rpcRejectPartyInvite); err != nil {
return err
}
return nil
}
| go |
For sale (or for trade with some Xbox 360 games)..
barely used headphones, and have not been using them since a long time. the rexine exterior over the pads & headbands have flaked off over longtime storage. functionally though no issues in any.
'recurring' is my all-time fav from bonobo. the 'contemplative' sound-vibes to it! had discovered it in a documentary yrs back, & listened to it during a monsoon trek; was totally apt for that setting!
this is, good, both the music & the lyrics!
yes hoping it'd sell a bit quick, as saw instances of quick sales of this listed card recently.
| english |
<gh_stars>0
function dump(obj) {
var out = '';
for (var i in obj) {
out += i + ": " + obj[i] + "\n";
}
alert(out);
// or, if you wanted to avoid alerts...
var pre = document.createElement('pre');
pre.innerHTML = out;
document.body.appendChild(pre)
}
$(document).ready(function()
{
$('.publications-section-title').click(function()
{
var text = $(this).next('.publications-section').children('.publications-item-date');
if(text.is(':hidden')){
text.slideDown('500');
$(this).children('span').html('-');
}
else
{
text.slideUp('300');
$(this).children('span').html('+');
}
});
$('.bouttonResume').click(function()
{
$(this).parent().children(".publi-note").toggle();
$(this).parent().children(".publi-abstract").toggle();
});
}); | javascript |
#!/usr/bin/env node
/* eslint-disable no-console */
// eslint-disable-next-line import/no-unresolved
const program = require('commander');
// eslint-disable-next-line import/no-unresolved
const config = require('config');
// eslint-disable-next-line import/no-unresolved
const moment = require('moment')
// Modules
// eslint-disable-next-line import/no-unresolved
const { MongoWrapper, LocationFinder, ISPFinder } = require('qoe-lib');
const Daemon = require('./src/modules/daemon');
const Update = require('./src/modules/update');
const Insert = require('./src/modules/insert');
const Remove = require('./src/modules/remove');
const Stats = require('./src/modules/stats');
const { version } = require('./package.json');
const MODE_NAME_DAEMON = 'daemon';
const MODE_NAME_UPDATE = 'update';
const MODE_NAME_INSERT = 'insert';
const MODE_NAME_REMOVE = 'remove';
const MODE_NAME_STATS = 'stats';
const options = {};
const dumpOptions = () => {
// console.log(JSON.stringify(option))
console.log(`=== OPTIONS ===`);
console.log(` Execute mode: ${options.mode}`);
console.log(``);
console.log(` DB`);
console.log(` type : ${options.db_type}`);
console.log(` url : ${options.db_url}`);
console.log(` name : ${options.db_name}`);
console.log(``);
if (options.mode === MODE_NAME_DAEMON) {
console.log(` --- DAEMON MODE ---`);
console.log(``);
console.log(` Interval`);
console.log(` aggregate : ${options.aggregateInterval}`);
// console.log(` update : ${options.updateInterval}`);
console.log(` insert : ${options.insertInterval}`);
// console.log(` remove : ${options.removeInterval}`);
console.log(` stats : ${options.statsInterval}`);
console.log(``);
console.log(` Collection`);
console.log(` Source : ${options.sourceCollection}`);
console.log(` Destination Prefix : ${options.aggregationCollectionPrefix}`);
console.log(` Stats : ${options.statsCollection}`);
// console.log(``);
// console.log(` Files`);
// console.log(` City Path(maxmind) : ${options.cityFile}`);
// console.log(` ISP Path(maxmind) : ${options.ispFile}`);
// console.log(``);
// console.log(` Remove`);
// console.log(` Timeout: ${options.timeout}`);
} else if (options.mode === MODE_NAME_UPDATE) {
console.log(` --- UPDATE MODE ---`);
console.log(` Collection`);
console.log(` Source: ${options.sourceCollection}`);
console.log(``);
console.log(` Start Time : ${options.startTime}`);
console.log(` End Time : ${options.endTime}`);
console.log(``);
console.log(` Files`);
console.log(` City Path(maxmind) : ${options.cityFile}`);
console.log(` ISP Path(maxmind) : ${options.ispFile}`);
console.log(``);
console.log(` Remove Fields option: ${options.removeFields}`);
} else if (options.mode === MODE_NAME_INSERT) {
console.log(` --- INSERT MODE ---`);
console.log(` Collection`);
console.log(` Source : ${options.sourceCollection}`);
console.log(` Destination Prefix : ${options.aggregationCollectionPrefix}`);
console.log(``);
console.log(` Start Time : ${options.startTime}`);
console.log(` End Time : ${options.endTime}`);
console.log(``);
console.log(` Remove Aggregation Collection option: ${options.removeAggregationCollection}`);
} else if (options.mode === MODE_NAME_REMOVE) {
console.log(` --- REMOVE MODE ---`);
console.log(` Collection`);
console.log(` Remove entry of timeout: ${options.removeCollection}`);
console.log(``);
console.log(` Timeout: ${options.timeout}`);
} else if (options.mode === MODE_NAME_STATS) {
console.log(` --- STATS MODE ---`);
console.log(` Collection`);
console.log(` Stats: ${options.statsCollection}`);
console.log(` Aggregate Prefix : ${options.aggregationCollectionPrefix}`);
console.log(``);
console.log(` Remove Stats Collection option: ${options.removeStatsCollection}`);
}
console.log(``);
}
const startEndDateParse = (o) => {
try {
if (o.start_time)
options.startTime = moment(o.start_time, moment.ISO_8601).toDate();
else
options.startTime = new Date(0);
} catch (e) {
options.startTime = new Date(0);
console.error(`${e}, format error use default value`);
}
try {
if (o.end_time)
options.endTime = moment(o.end_time, moment.ISO_8601).toDate();
else
options.endTime = new Date();
} catch (e) {
options.endTime = new Date();
console.error(`${e}, format error use default value`);
}
}
/**
* common options
*/
program
.version(version, '-v --version')
.option('-t --db_type [type]', `DB Type default[${config.get('db.type')}]`)
.option('-u --db_url [url]', `MongoDB URL default[${config.get('db.url')}]`)
.option('-n --db_name [name]', `DB Type default[${config.get('db.name')}]`)
.usage('$ [mode]')
/**
* daemon mode options
*/
program
.command(MODE_NAME_DAEMON)
.description(`${MODE_NAME_DAEMON} mode: monitors the DB, adds fields, and performs aggregation.`)
.option('-c --source_collection [collection_name]', `Name of collection that storing from Extension default[${config.get('db.source_collection')}]`)
.option(' --aggregation_collection_prefix [prefix]', `prefix of aggregation collection name. default[${config.get('db.aggregation_collection_prefix')}]`)
// .option(' --remove_collection [collection_name]', `Name of collection to remove timeout entry. default[${config.get('db.source_collection')}]`)
.option(' --stats_collection [collection_name]', `Name of collection for stats. default[${config.get('db.stats_collection')}]`)
.option(' --aggregate_interval [millisec]', `aggregate interval default[${config.get('interval.aggregate')}]`)
// .option(' --update_interval [millisec]', `DB update interval default[${config.get('interval.update')}]`)
.option(' --insert_interval [millisec]', `DB insert interval default[${config.get('interval.insert')}]`)
// .option(' --remove_interval [millisec]', `DB remove interval default[${config.get('interval.remove')}]`)
.option(' --stats_interval [millisec]', `DB stats interval default[${config.get('interval.stats')}]`)
// .option(' --city_file [city_file]', `Maxmind city file default[${config.get('file.city')}]`)
// .option(' --isp_file [isp_file]', `Maxmind ISP file default[${config.get('file.ISP')}]`)
.option('-t --timeout [MILLISECOND]', `QoE Server timeout. default ${config.get('qoe.timeout') / (60 * 60 * 1000)}h [${config.get('qoe.timeout')}]`)
.alias('d')
.action(o => {
options.mode = MODE_NAME_DAEMON;
options.sourceCollection = o.source_collection || config.get('db.source_collection');
options.aggregationCollectionPrefix = o.aggregation_collection_prefix || config.get('db.aggregation_collection_prefix')
options.removeCollection = o.remove_collection || config.get('db.source_collection');
options.statsCollection = o.stats_collection || config.get('db.stats_collection');
options.aggregateInterval = o.aggregate_interval || config.get('interval.aggregate');
// options.updateInterval = o.update_interval || config.get('interval.update');
options.insertInterval = o.insert_interval || config.get('interval.insert');
options.removeInterval = o.remove_interval || config.get('interval.remove');
options.statsInterval = o.stats_interval || config.get('interval.stats');
// options.cityFile = o.city_file || config.get('file.city');
// options.ispFile = o.isp_file || config.get('file.ISP');
options.timeout = o.timeout || config.get('qoe.timeout');
})
/**
* update mode options
*/
program
.command(MODE_NAME_UPDATE)
.description(`${MODE_NAME_UPDATE} mode: generate location, isp, service type field`)
.option('-c --source_collection [collection_name]', `Name of collection that storing from Extension default[${config.get('db.source_collection')}]`)
.option('-s --start_time [DATE_TIME]', `start_time filed query(gte) for update. format ISO_8601 defalut[1970-01-01T09:00:00+09:00]`)
.option('-e --end_time [DATE_TIME]', `start_time filed query(lt) for update. format ISO_8601 defalut[now]`)
.option(' --city_file [city_file]', `Maxmind city file default[${config.get('file.city')}]`)
.option(' --isp_file [isp_file]', `Maxmind ISP file default[${config.get('file.ISP')}]`)
.option(' --remove_fields', `remove update fields default[false]`)
.alias('u')
.action(o => {
options.mode = MODE_NAME_UPDATE;
options.sourceCollection = o.source_collection || config.get('db.source_collection');
options.aggregationCollectionPrefix = o.aggregation_collection_prefix || config.get('db.aggregation_collection_prefix')
startEndDateParse(o);
options.cityFile = o.city_file || config.get('file.city');
options.ispFile = o.isp_file || config.get('file.ISP');
options.removeFields = o.remove_fields || false;
})
/**
* insert mode options
*/
program
.command(MODE_NAME_INSERT)
.description(`${MODE_NAME_INSERT} mode: aggregation value insert into DB`)
.option('-c --source_collection [collection_name]', `Name of collection to aggregation. default[${config.get('db.source_collection')}]`)
.option('-s --start_time [DATE_TIME]', `start_time filed query(gte) for aggregation. format ISO_8601 defalut[1970-01-01T09:00:00+09:00]`)
.option('-e --end_time [DATE_TIME]', `start_time filed query(lt) for aggregation. format ISO_8601 defalut[now]`)
.option(' --aggregation_collection_prefix [prefix]', `prefix of aggregation collection name. default[${config.get('db.aggregation_collection_prefix')}]`)
.option(' --remove_aggregation_collection', `remove aggregation collection. default[false]`)
.alias('i')
.action(o => {
options.mode = MODE_NAME_INSERT;
options.sourceCollection = o.source_collection || config.get('db.source_collection');
startEndDateParse(o);
options.aggregationCollectionPrefix = o.aggregation_collection_prefix || config.get('db.aggregation_collection_prefix')
options.removeAggregationCollection = o.remove_aggregation_collection || false;
})
/**
* remove mode options
*/
program
.command(MODE_NAME_REMOVE)
.description(`${MODE_NAME_REMOVE} mode: remove timeout entry from DB`)
.option('-t --timeout [MILLISECOND]', `QoE Server timeout. default ${config.get('qoe.timeout') / (60 * 60 * 1000)}h [${config.get('qoe.timeout')}]`)
.option(' --remove_collection [collection_name]', `Name of collection to remove timeout entry. default[${config.get('db.source_collection')}]`)
.alias('r')
.action(o => {
options.mode = MODE_NAME_REMOVE;
options.removeCollection = o.remove_collection || config.get('db.source_collection');
options.timeout = o.timeout || config.get('qoe.timeout');
})
/**
* stats mode options
*/
program
.command(MODE_NAME_STATS)
.description(`${MODE_NAME_STATS} mode: make current stats from DB`)
.option(' --stats_collection [collection_name]', `Name of collection. default[${config.get('db.stats_collection')}]`)
.option(' --aggregation_collection_prefix [prefix]', `prefix of aggregation collection name. default[${config.get('db.aggregation_collection_prefix')}]`)
.option(' --remove_stats_collection', `remove stats collection. default[false]`)
.alias('s')
.action(o => {
options.mode = MODE_NAME_STATS;
options.statsCollection = o.stats_collection || config.get('db.stats_collection');
options.aggregationCollectionPrefix = o.aggregation_collection_prefix || config.get('db.aggregation_collection_prefix')
options.removeStatsCollection = o.remove_stats_collection || false;
})
// --- options --- //
program.parse(process.argv)
if (program.args.length === 0 || !options.mode) {
program.help();
}
options.db_type = program.db_type || config.get('db.type');
options.db_url = program.db_url || config.get('db.url');
options.db_name = program.db_name || config.get('db.name');
dumpOptions();
// --- main --- //
(async () => {
let mongodb;
try {
mongodb = new MongoWrapper(options.db_url, options.db_name);
await mongodb.open();
} catch (e) {
console.error(`failed to connection ${e}`);
return;
}
if (options.mode === MODE_NAME_DAEMON) {
const daemon = new Daemon(mongodb, options);
daemon.start();
} else if (options.mode === MODE_NAME_UPDATE) {
const finder = {
location: new LocationFinder(options.cityFile),
isp: new ISPFinder(options.ispFile)
};
const update = new Update(mongodb, finder, options);
if (options.removeFields) {
await update.remove(options.startTime, options.endTime);
} else {
const stats = await update.update(options.startTime, options.endTime);
// eslint-disable-next-line no-console
console.log(`${stats.matched} documents matched, ${stats.modified} documents added country, subdivision, isp and service fields, ${stats.insert} documents inserted.`);
}
mongodb.close();
} else if (options.mode === MODE_NAME_INSERT) {
const insert = new Insert(mongodb, options);
if (options.removeAggregationCollection) {
await insert.remove();
} else {
const stats = await insert.insert(options.startTime, options.endTime);
console.log(`${stats.matched} documents matched, ${stats.modified} documents updatede, ${stats.insert} documents inserted.`);
}
mongodb.close();
} else if (options.mode === MODE_NAME_REMOVE) {
const remove = new Remove(mongodb, options);
const stats = await remove.remove();
// eslint-disable-next-line no-console
console.log(`${stats.n} documents deleted`);
mongodb.close();
} else if (options.mode === MODE_NAME_STATS) {
const s = new Stats(mongodb, options);
if (options.removeStatsCollection) {
await s.remove();
} else {
const stats = await s.stats();
console.log(`${stats.matched} documents matched, ${stats.modified} documents updatede, ${stats.insert} documents inserted.`);
}
mongodb.close();
}
})();
| javascript |
.vertical-timeline::before {
background: #00796b;
}
.vertical-timeline-element-content::before {
border: solid 1px #ddd;
}
.vertical-timeline-element-content {
border: solid 1px #ddd;
}
.vertical-timeline.vertical-timeline--two-columns {
margin-top: 2em;
}
.carousel-slider {
height: 300px;
}
.geosuggest__suggests--hidden {
max-height: 0;
overflow: hidden;
border-width: 0;
}
.geosuggest__item--active {
background: #267dc0;
color: #fff;
}
| css |
.container {
background-color: var(--theme-color);
min-height: 100%;
padding: 0 20px;
}
.content {
width: var(--break-point);
margin: 0 auto;
overflow: hidden;
}
@media (max-width: 700px) {
.content {
width: 100%;
}
}
.header {
margin: 30px 0;
display: flex;
justify-content: space-between;
}
| css |
Jadavpur University is recruiting for the post of Senior Research Assistant Vacancies. Apply Now !
Jadavpur University has recently sought a job notification for the recruitment of Senior Research Assistant vacancy. Desirous candidates can check all the job details of no of posts, age limit, salary, qualification etc prescribed below:
Candidates will be selected based on written test/personal interview/medical test/walkin interview.
Jadavpur University is a public technical university located in Jadavpur, Kolkata, West Bengal, India. It was established in 1905 as Bengal Technical Institute and was converted into Jadavpur University in 1955. In 2020, it was ranked fifth among universities in India by the National Institutional Ranking Framework (NIRF) | english |
{"MarriedAnimals": ["MostWritersAreHuman", "MetaphoricalMarriage", "CommonLawMarriage", "InNameOnly", "BeastFable", "SpeciesSurname", "SpeciesSurname", "MostWritersAreHuman", "FormallyNamedPet", "FormallyNamedPet", "NearlyNormalAnimal", "SpeechImpairedAnimal", "TalkingAnimal", "PartiallyCivilizedAnimal", "CivilizedAnimal", "FunnyAnimal", "BeastFable", "FurryLens", "BeastMan", "WorldOfFunnyAnimals", "Anime", "Manga", "FanWorks", "Film", "Literature", "Toys", "VideoGames", "RealLife", "FromStrayToPet", "DeliveryStork", "PartiallyCivilizedAnimal", "ArrangedMarriage", "DisappearedDad", "BrotherSisterIncest", "KissingCousins", "BewitchedAmphibians", "WoodlandCreatures", "AdaptationNameChange", "NoNameGiven", "PartiallyCivilizedAnimal", "MouseWorld", "PartiallyCivilizedAnimal", "CivilizedAnimal", "Genderflip"]} | json |
{
"name": "js-sequence-diagrams",
"author": "<NAME> (bramp.net)",
"homepage": "http://bramp.github.io/js-sequence-diagrams/",
"filename": "sequence-diagram-min.js",
"version": "1.0.3",
"description": "Generates UML sequence diagrams from simple text",
"license": "BSD",
"readmeFilename": "README.md",
"gitHead": "7ac7c2cd30a0a0e02c92bed41a9bae3d91939f16",
"directories": {
"test": "test"
},
"dependencies": {
"underscore": "~1.4.x",
"raphael": "~2.1.x"
},
"devDependencies": {
"//" : "Others include jspp",
"jison": "~0.4.x",
"jshint": "~2.0.x",
"uglify-js": "~2.3.x"
},
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "git://github.com/bramp/js-sequence-diagrams.git"
},
"keywords": [
"uml",
"sequence",
"diagram"
]
}
| json |
use cogs_gamedev::controls::EventInputHandler;
use enum_map::Enum;
use macroquad::{
miniquad::{self, Context, KeyMods},
prelude::{
utils::{register_input_subscriber, repeat_all_miniquad_input},
KeyCode, MouseButton,
},
};
use std::collections::HashMap;
/// The controls
#[derive(Enum, Copy, Clone)]
pub enum Control {
Select,
Up,
Down,
Left,
Right,
Start,
StepOnce,
Escape,
Ctrl,
}
/// Combo keycode and mouse button code
#[derive(Hash, PartialEq, Eq, Copy, Clone)]
pub enum InputCode {
Key(KeyCode),
Mouse(MouseButton),
}
/// Event handler to hook into miniquad and get inputs
#[derive(Clone)]
pub struct InputSubscriber {
controls: EventInputHandler<InputCode, Control>,
subscriber_id: usize,
}
impl InputSubscriber {
pub fn new() -> Self {
// the science kid
let sid = register_input_subscriber();
InputSubscriber {
controls: EventInputHandler::new(Self::default_controls()),
subscriber_id: sid,
}
}
pub fn default_controls() -> HashMap<InputCode, Control> {
let mut controls = HashMap::new();
// Put your controls here
for (code, control) in [
(KeyCode::Enter, Control::Select),
//
(KeyCode::W, Control::Up),
(KeyCode::Up, Control::Up),
(KeyCode::A, Control::Left),
(KeyCode::Left, Control::Left),
(KeyCode::S, Control::Down),
(KeyCode::Down, Control::Down),
(KeyCode::D, Control::Right),
(KeyCode::Right, Control::Right),
//
(KeyCode::Space, Control::Start),
(KeyCode::Tab, Control::StepOnce),
//
(KeyCode::Escape, Control::Escape),
(KeyCode::LeftControl, Control::Ctrl),
(KeyCode::RightControl, Control::Ctrl),
] {
controls.insert(InputCode::Key(code), control);
}
controls.insert(InputCode::Mouse(MouseButton::Left), Control::Select);
controls
}
pub fn update(&mut self) {
repeat_all_miniquad_input(self, self.subscriber_id);
self.controls.update();
}
}
impl std::ops::Deref for InputSubscriber {
type Target = EventInputHandler<InputCode, Control>;
fn deref(&self) -> &Self::Target {
&self.controls
}
}
impl miniquad::EventHandler for InputSubscriber {
fn update(&mut self, _ctx: &mut Context) {}
fn draw(&mut self, _ctx: &mut Context) {}
fn key_down_event(
&mut self,
_ctx: &mut Context,
keycode: KeyCode,
_keymods: KeyMods,
repeat: bool,
) {
if !repeat {
self.controls.input_down(InputCode::Key(keycode));
}
}
fn key_up_event(&mut self, _ctx: &mut Context, keycode: KeyCode, _keymods: KeyMods) {
self.controls.input_up(InputCode::Key(keycode));
}
fn mouse_button_down_event(
&mut self,
_ctx: &mut Context,
button: MouseButton,
_x: f32,
_y: f32,
) {
self.controls.input_down(InputCode::Mouse(button));
}
fn mouse_button_up_event(&mut self, _ctx: &mut Context, button: MouseButton, _x: f32, _y: f32) {
self.controls.input_up(InputCode::Mouse(button));
}
}
| rust |
/*
* Copyright (c) 2019 sparetimedevs and respective authors and developers.
*
* 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.
*/
body {
background: #002b36;
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
letter-spacing: 2px;
text-align: center;
}
.header {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
float: left;
margin: 0;
overflow: hidden;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 46px;
background-image: linear-gradient(#001823, #000000);
text-align: left;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.28);
z-index: 100;
}
.logo {
-webkit-box-flex: 1;
-moz-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.logo img {
width: 100%;
max-width: 250px;
height: auto;
margin: 0;
position: relative;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.content {
margin: auto;
width: 80%;
padding-top: 77px;
color: #839496;
font-size: 14px;
text-align: left;
}
a:link {
color: #ebebeb;
}
a:visited {
color: #ebebeb;
}
a:hover {
color: #00ff00;
}
pre {
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
letter-spacing: 2px;
text-align: left;
}
.text-index {
color: #fff;
font-size: 24px;
text-align: right;
margin-right: 10px;
}
.text-name {
color: #fff;
font-size: 24px;
text-align: left;
}
.text-dates {
color: #fff;
font-size: 18px;
text-align: left;
line-height: 1.5;
}
.float-right {
float: right;
}
.float-left {
float: left;
}
.view-details {
background-color: transparent;
border: none;
outline: 0;
border-radius: 2px;
color: #839496;
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
font-size: 14px;
font-weight: 500;
letter-spacing: 2px;
min-height: 36px;
text-align: center;
text-transform: lowercase;
bottom: 0;
right: 28px;
}
.ripple {
background-position: center;
transition: background 0.8s;
}
.ripple:hover {
background: #002b36 radial-gradient(circle, transparent 1%, #002b36 1%) center/15000%;
}
.ripple:active {
background-color: rgba(26, 60, 25, 0.74);
background-size: 100%;
transition: background 0s;
}
.crop {
-webkit-box-flex: 1;
-moz-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.crop img {
width: 100%;
height: auto;
margin: 0;
position: relative;
}
| css |
<filename>tests/gamestonk_terminal/stocks/quantitative_analysis/test_factors_view.py<gh_stars>1000+
# IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
import pytest
# IMPORTATION INTERNAL
from gamestonk_terminal.stocks.quantitative_analysis import factors_view
@pytest.fixture(scope="module")
def vcr_config():
return {
"filter_headers": [("User-Agent", None)],
"filter_query_parameters": [
("period1", "1598220000"),
("period2", "1635980400"),
],
}
@pytest.mark.vcr
@pytest.mark.record_stdout
def test_capm_view():
factors_view.capm_view(ticker="PM")
| python |
Here is a compilation of Free MCQs of Class 8 Civics Social and Political Life Book Chapter 8 – Confronting Marginalisation. Students can practice free MCQs as have been added by CBSE in the new exam pattern. At the end of Multiple Choice Questions, the answer key has also been provided for your reference.
Q1- ______ faces discrimination in their daily lives, mostly in rural India.
Q2- ___ of Indian Constitution states that no citizen shall be discriminated against on the basis of religion.
Q4- Bhakti poet Chokhamela belonged to ____ caste.
Q5- Dalits can invoke their ____ if they feel they are being marginalised.
Q6- _______ is a Minority religious group.
Q7- Meaning of Manual Scavenging?
Q. No.
| english |
<filename>digitalside-misp-feed/5dcc7ace-d4ac-457c-a293-57a0c0a8018c.json
{"Event": {"uuid": "5dcc7ace-d4ac-457c-a293-57a0c0a8018c", "threat_level_id": "2", "timestamp": "1573681876", "date": "2019-11-13", "analysis": "0", "info": "DigitalSide Malware report: MD5: ceb1ae72931e3617a87b8e8fcebc6a7a", "published": true, "publish_timestamp": "1573681876", "Orgc": {"name": "DIGITALSIDE.IT", "uuid": "5ce96fba-3ebc-44cd-8ea9-5ec01f44d178"}, "Tag": [{"name": "tlp:white", "colour": "#6a7daf", "exportable": true}, {"name": "type:OSINT", "colour": "#bf4142", "exportable": true}, {"name": "source:DigitalSide.IT", "colour": "#639ba5", "exportable": true}, {"name": "source:urlhaus.abuse.ch", "colour": "#3b6978", "exportable": true}], "Attribute": [{"type": "filename", "uuid": "5dcc7ace-86e0-48f4-9382-57a0c0a8018c", "to_ids": false, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "a.x86"}, {"type": "md5", "uuid": "5dcc7ace-5f64-40ed-8d21-57a0c0a8018c", "to_ids": true, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "ceb1ae72931e3617a87b8e8fcebc6a7a"}, {"type": "sha1", "uuid": "5dcc7ace-736c-4770-8f4a-57a0c0a8018c", "to_ids": true, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "fb4fdb8509a554cf846b5c2fa92ec4b38b5fe1bd"}, {"type": "sha256", "uuid": "5dcc7ace-8100-4dbf-bb64-57a0c0a8018c", "to_ids": true, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "6a7e4a0716cc7e7a6eb4bbfdd1b470e550a89ec952c8c1ddade8d83268a6c2f4"}, {"type": "mime-type", "uuid": "5dcc7ace-9f38-4042-a62b-57a0c0a8018c", "to_ids": false, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped"}, {"type": "url", "uuid": "5dcc7ace-09a0-44a0-9e26-57a0c0a8018c", "to_ids": true, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Network activity", "value": "http://192.168.3.11/bins/a.x86"}, {"type": "ip-dst", "uuid": "5dcc7ace-bf84-40a4-8eaa-57a0c0a8018c", "to_ids": true, "timestamp": "1573681870", "object_relation": null, "comment": "", "category": "Network activity", "value": "192.168.3.11"}], "Object": [{"uuid": "c9976255-437a-4a25-bcd6-14a06f7bf0b2", "name": "virustotal-report", "sharing_group_id": "0", "meta-category": "misc", "timestamp": "1573681870", "distribution": "5", "template_uuid": "d7dd0154-e04f-4c34-a2fb-79f3a3a52aa4", "comment": "", "description": "VirusTotal report", "template_version": "3", "Attribute": [{"type": "link", "uuid": "d82c1a40-7a5c-4801-845e-e5d3009e196c", "to_ids": false, "timestamp": "1573681870", "object_relation": "permalink", "comment": "", "category": "External analysis", "value": "https://www.virustotal.com/gui/file/6a7e4a0716cc7e7a6eb4bbfdd1b470e550a89ec952c8c1ddade8d83268a6c2f4/detection"}, {"type": "datetime", "uuid": "d0bd6596-90e4-4f9f-a69c-e3f06f2bc338", "to_ids": false, "timestamp": "1573681870", "object_relation": "last-submission", "comment": "", "category": "Other", "value": "2019-11-09T03:50:36"}, {"type": "text", "uuid": "d73fc21a-2983-4c7d-91f2-993fed76eae5", "to_ids": false, "timestamp": "1573681870", "object_relation": "detection-ratio", "comment": "", "category": "Other", "value": "38/60"}]}]}} | json |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// Do not edit this file. It is machine generated.
{
"invalid.path.0": "Se esperaba una cadena en \"contributes.{0}.path\". Valor proporcionado: {1}",
"invalid.language": "Lenguaje desconocido en \"contributes.{0}.language\". Valor proporcionado: {1}",
"invalid.path.1": "Se esperaba que \"contributes.{0}.path\" ({1}) se incluyera en la carpeta de la extensión ({2}). Esto puede hacer que la extensión no sea portátil.",
"vscode.extension.contributes.snippets": "Aporta fragmentos de código.",
"vscode.extension.contributes.snippets-language": "Identificador del lenguaje al que se aporta este fragmento de código.",
"vscode.extension.contributes.snippets-path": "Ruta de acceso del archivo de fragmentos de código. La ruta es relativa a la carpeta de extensión y normalmente empieza por \"./snippets/\".",
"badVariableUse": "Uno o más fragmentos de la extensión '{0}' muy probable confunden variables de fragmento y fragmento-marcadores de posición (véase https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax para más detalles)",
"badFile": "No se pudo leer el archivo del fragmento \"{0}\".",
"detail.snippet": "{0} ({1})",
"snippetSuggest.longLabel": "{0}, {1}"
} | json |
{
"common": {
"name": "virtualpowermeter",
"version": "1.2.2",
"connectionType": "local",
"news": {
"1.2.2": {
"en": "Group Calculations only after InitialFinished",
"de": "Group Calculations only after InitialFinished"
},
"1.2.1": {
"en": "translation",
"de": "translation"
},
"1.2.0": {
"en": "js-controller 3.x support",
"de": "js-controller 3.x support"
},
"1.1.1": {
"en": "bugfix translation",
"de": "bugfix translation"
},
"1.1.0": {
"en": "Inverted added",
"de": "Inverted added"
},
"1.0.1": {
"en": "Security Updates",
"de": "Security Updates"
},
"1.0.0": {
"en": "Final Release",
"de": "Finale Version"
},
"0.2.8": {
"en": "Bug found on travis unsubscribeStatesAsync",
"de": "Bug found on travis unsubscribeStatesAsync"
},
"0.2.6": {
"en": "Text angepasst",
"de": "Text adapted"
}
},
"title": "Virtual Powermeter",
"titleLang": {
"en": "Virtual Powermeter",
"de": "Virtuelles Powermeter"
},
"desc": {
"en": "Generates virtual electricity meters",
"de": "Erzeugt Virtuelle Stromzähler"
},
"authors": [
"<NAME> <<EMAIL>>"
],
"contributors": [
"Scrounger"
],
"keywords": [
"ioBroker",
"template",
"Smart Home",
"home automation"
],
"license": "MIT",
"platform": "Javascript/Node.js",
"main": "main.js",
"icon": "virtualpowermeter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/Omega236/ioBroker.virtualpowermeter/master/admin/virtualpowermeter.png",
"readme": "https://github.com/Omega236/ioBroker.virtualpowermeter/blob/master/README.md",
"loglevel": "info",
"mode": "daemon",
"type": "energy",
"compact": true,
"supportCustoms": true,
"materialize": true,
"preserveSettings": "custom",
"dependencies": [
{
"admin": ">=3.0.0"
}
],
"installedFrom": "https://github.com/Omega236/ioBroker.virtualpowermeter/tarball/CalcGroupOnlyAfterInitial"
},
"native": {
"defaultPowerName": "Virtual_Energy_Power",
"defaultEnergyName": "Virtual_Energy_Total",
"groupEnergieMustBeGreater": false
},
"objects": [],
"instanceObjects": []
} | json |
Aug. 11—Coming off its second straight sectional championship, the Woodrow Wilson girls soccer team isn't exactly in rebuilding mode, but things will look different.
Coach Julie Agnor will have to replace four seniors who all played significant roles in the team's success over the last two seasons.
Gone are keeper Ally Arthur, midfielders Maddy Lanna and Sophie Hall and defender Sydney Vaught. Vaught was a second-team all-state selection while Lanna and Hall were honorable mention.
"They were my center of the field," Agnor said. "They moved the ball. ... The thing of it is, even though they were central players, my entire team knew how to pass. When your entire team knows how to pass, it's a little easier to move them into those positions."
That's where things will be altered.
"The dynamic is going to change," Agnor said. "The formation is going to change to suit the players that we have. I think it should be really effective."
There is one other unexpected loss in personnel. Agnor said Mya Wooton will not play, instead spending her junior season playing travel soccer out of North Carolina. Wooton scored 17 goals and had a team-high 15 assists last season.
There has been some adjustment time, as to be expected, but Agnor is encouraged. She has already seen improvement since last week and said further learning time at Saturday's Kick-o-rama at Princeton should help with the transition.
Some veterans Agnor will rely on include Kyndall Dooley on the back line and Taylor Scott in the center. Both are seniors.
Striker Ama Ackon-Annan is back for her senior year. Last season she tied Hall for the team lead in goals with 19, second in assists (6) and second in points (44).
Agnor said her daughter Cassidy Agnor, a senior, and junior Izzy Umberger are learning the new formation.
"When you're used to playing wide and all of a sudden you're pulled in ... but those two are going to be fine," Agnor said. "They're strong passers, so they should be fine."
Faith Simmons joins the team as a striker this year.
"She and Ama should really play well off each other," Agnor said. "I'm looking forward to that."
Senior Meredith Hall is the left back who has been solid since her freshman year. Agnor said she might also see time in the middle but she really likes Hall and junior Lexi Scott on the outside because of their ability to control the ball and get open for passes.
Sophomore Mia Seiter will take over for Arthur in goal. Arthur, now playing at Glenville State, made 108 saves in 23 games last season.
Seiter was a utility player last season, lining up wherever Agnor asked.
"She's very reluctant but she's very talented," Agnor said. "It's hard to fill the shoes of Ally. She prefers the field play, and I understand that. But I also know that her talent in the goal is very, very strong. Just keeping her focused and confident, she will be completely fine."
As far as defending those two sectional titles, the Flying Eagles will get a handle on postseason seeding right off the bat. Four of their first five games are at home, including sectional opponents Oak Hill (Aug. 22), Greenbrier East (Aug. 24) and Princeton (Aug. 29).
The only option is to win.
"We fight hard, but we play smart," Agnor said. "I think that's the key. When you play smart and you move right, you'll be fine."
The season will start at home Thursday against Herbert Hoover, kicking off at 6 p.m.
| english |
import { getBabelDependencies, copyTemplate } from '../../helpers';
import { Generator } from '../Generator';
import { writePackageJson } from '../../js-package-manager';
const generator: Generator = async (packageManager, npmOptions, { storyFormat }) => {
const [
storybookVersion,
actionsVersion,
linksVersion,
addonsVersion,
latestRaxVersion,
] = await packageManager.getVersions(
'@storybook/rax',
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addons',
'rax'
);
copyTemplate(__dirname, storyFormat);
const packageJson = packageManager.retrievePackageJson();
const raxVersion = packageJson.dependencies.rax || latestRaxVersion;
// in case Rax project is not detected, `rax` package is not available either
packageJson.dependencies.rax = packageJson.dependencies.rax || raxVersion;
// these packages are required for Welcome story
packageJson.dependencies['rax-image'] = packageJson.dependencies['rax-image'] || raxVersion;
packageJson.dependencies['rax-link'] = packageJson.dependencies['rax-link'] || raxVersion;
packageJson.dependencies['rax-text'] = packageJson.dependencies['rax-text'] || raxVersion;
packageJson.dependencies['rax-view'] = packageJson.dependencies['rax-view'] || raxVersion;
writePackageJson(packageJson);
const babelDependencies = await getBabelDependencies(packageManager, packageJson);
packageManager.addDependencies({ ...npmOptions, packageJson }, [
`@storybook/rax@${storybookVersion}`,
`@storybook/addon-actions@${actionsVersion}`,
`@storybook/addon-links@${linksVersion}`,
`@storybook/addons@${addonsVersion}`,
...babelDependencies,
]);
packageManager.addStorybookCommandInScripts();
};
export default generator;
| typescript |
{ "value" : "bytes-live",
"concept" : "http:\/\/webconcepts.info\/concepts\/http-range-unit\/",
"id" : "http:\/\/webconcepts.info\/concepts\/http-range-unit\/bytes-live",
"details" :
[
{ "description" : "As with the \"bytes\" range unit, a \"bytes-live\" Range request allows a client to designate a subset of bytes from the representation data to be transferred in payloads as a sequence of octets. But the form of a \"bytes-live\" request is focused on accessing data that may be appended to the representation over time.",
"documentation" : "http:\/\/tools.ietf.org\/html\/draft-pratt-httpbis-bytes-live-range-unit#section-2",
"specification" : "http:\/\/webconcepts.info\/specs\/IETF\/I-D\/pratt-httpbis-bytes-live-range-unit",
"spec-name" : "Internet Draft pratt-httpbis-bytes-live-range-unit" } ] } | json |
<reponame>nickpfister/nickpfister.com
<!DOCTYPE html>
<html>
<head>
<title><NAME> | Unity Developer</title>
<link rel="stylesheet" type="text/css" href="../style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8" />
<script>
var loc = window.location.href + "";
if (loc.indexOf("http://") == 0) {
window.location.href = loc.replace("http://", "https://");
}
</script>
</head>
<body>
<nav class="menu content centered">
<ul class="no-pad no-margin">
<li id="title-name"><NAME></li>
<li>
<a href="../index.html">Portfolio</a>
</li>
<li>
<a href="../about.html">About</a>
</li>
<li>
<a href="https://www.linkedin.com/in/nick-pfister-817a159b" target="_blank">Contact</a>
</li>
</ul>
</nav>
<!-- If you change code outside of main, be sure to update it in every HTML file -->
<main class="content">
<h1>Night Sky Emulator</h1>
<p class="centered">
<b>TECH: Unity3D, databases, custom editors </b>
</p>
<figure>
<video controls autoplay muted loop class="fill-width">
<source src="../Media/stargazer.mp4" type="video/mp4" />
</video>
<figcaption>
My night sky emulator being used to locate the constellation Lyra
</figcaption>
</figure>
<p>
This is a simple emulator which was originally built to be part of a
larger (unreleased) game. It represents all of the stars that we can see
from earth with the naked eye. This is done by using entries from the
<a target="_blank" href="http://www.astronexus.com/hyg">HYG Database</a>
to recreate each star programmatically with scientific accuracy. The
colors and
<a
target="_blank"
href="https://en.wikipedia.org/wiki/Magnitude_%28astronomy%29"
>
magnitudes
</a>
of each star match exactly what you will see in the night sky.
</p>
<figure>
<img src="../Media/cancer_constellation.png" class="fill-width" />
<figcaption>
The Cancer constellation, defined using references to stars in the HYG
Database.
</figcaption>
</figure>
<p>
There were a few key functionalities that this provided:
</p>
<ul>
<li>
Each star can be easily referenced by it's characteristics (proper
name, magnitude, coordinates, or Bayer Designation).
</li>
<li>
The
<a
target="_blank"
href="https://en.wikipedia.org/wiki/Celestial_sphere"
>
celestial sphere
</a>
can be rotated to match how it would look at a certain location on
earth.
</li>
<li>
Custom particle system shaders cause the stars to fade as they
approach the horizon.
</li>
</ul>
<p>
As you can see from the pictures, this can easily be used to create
educational games or constellation finding apps. Or, if you love space
like me, you can simply spend hours scrolling through and looking at the
cosmos. This is especially helpful when you live in Los Angeles and
can't see the stars normally...
</p>
<figure>
<img src="../Media/night_sky.png" class="fill-width" />
<figcaption>
A detailed shot centered around my favorite night sky object, the
<a target="_blank" href="https://en.wikipedia.org/wiki/Pleiades">
Pleiades Cluster
</a>
</figcaption>
</figure>
</main>
<!-- End of main -->
</body>
</html>
| html |
/**
* Instantiates a new Oncer which extends Attrimator.
*
* @param {String} attribute
* @param {T} value
* @param {String|Number} delay
* @param {Boolean} hasInitialState
* @param {Builder} builder
* @param {Attrimator} next
* @class Oncer
* @constructor
* @extends Attrimator
*/
function Oncer( attribute, value, delay, hasInitialState, builder, next, input )
{
this.reset( attribute, builder, next );
/**
* The value that's set to the animator once.
*
* @property {T} value
*/
this.value = value;
/**
* Whether or not this event has an initial value which can be applied at the
* start of the animation (or when
* {{#crossLink "Animator/applyInitialState:method"}}{{/crossLink}} is invoked).
*
* @property {Boolean} hasInitialState
*/
this.hasInitialState = coalesce( hasInitialState, true );
this.delay = $delay( delay );
this.applied = false;
this.input = input;
}
Class.extend( Oncer, Attrimator,
{
/**
* Computes the value of this Oncer.
*
* @method getValue
* @return {T}
*/
getValue: function()
{
return isFunction( this.value ) ? this.value() : this.value;
},
finish: function(frame)
{
var update = !this.applied;
if ( update )
{
frame[ this.attribute ] = this.getValue();
this.applied = true;
}
return update;
},
start: function(now, animator)
{
this.prestart( now );
this.value = animator.getAttribute( this.attribute ).parse( this.value );
if ( isComputed( this.value ) )
{
this.value = this.value( this, animator );
}
this.applied = false;
},
startCycle: function(frame)
{
return this.hasInitialState && this.finish( frame );
},
update: function(elapsed, frame)
{
return elapsed >= this.delay && this.finish( frame );
},
valueAt: function(time, out)
{
if ( time < this.delay )
{
return false;
}
return this.getValue();
},
totalTime: function()
{
return Math.min( this.stopTime, this.delay );
},
clone: function()
{
return new Oncer( this.attribute, this.value, this.delay, this.hasInitialState, this.builder, this.next ? this.next.clone() : null );
},
hasComputed: function()
{
return isComputed( this.value );
},
isInfinite: function()
{
return false;
},
isFinished: function()
{
return this.applied;
}
});
| javascript |
<filename>src/main/java/com/example/hello/HelloEntityRepository.java
package com.example.hello;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface HelloEntityRepository extends CrudRepository<HelloEntity, Long> {
Optional<HelloEntity> findByNameEquals(String name);
}
| java |
Ministry of MSME along with FICCI organized National Workshop on GST and Digital MSME here today. Speaking on the occasion Shri Kalraj Mishra, Union Minister for MSME said that Ministry of MSME is giving special focus to the development of MSMEs all over the country and to effectively implement different Schemes and Programmes. It has also directed the banks to accelerate the pace of solving the loan related problems of the entrepreneurs.
He also informed the gathering that by rolling out GST, cascading of taxes will be overcome and this will significantly reduce the tax burden. Furthermore, this will pave the way for a formal economy hence will give a fillip to growth and employment generation. Therefore, MSMEs should see this as an opportunity rather than a challenge.
Minister also informed that the Ministry has taken up various efforts to popularize GST. Under office of Development Commissioner (MSME), GST cells have been established in Headquarter office , all MSME-DIs and Tool Rooms. NSIC has also set up a Facilitation Cell with a toll free number – 1800-111-955. Till now more than 12000 entrepreneurs have been trained for GST by various MSME field offices and training institutes.
He reiterated that that he himself has given information on GST at Guwahati and Agartala in North East. Minister has directed all officials to use social media i.e. Facebook and Twitter to provide information, to publish notification and to answer questions related to GST. Furthermore, more than 200 Additional Secretary/Joint Secretary level officers have been told to monitor the implementation of GST at district level. In this effort two Joint Secretaries of M/o MSME are involved.
Shri Mishra informed that a special issue of Laghu Udyog Samachar has been published by his Ministry focusing on GST. Furthermore, Secretary (MSME) has been included in the reviewing committee the Cabinet Secretary level. Central MSME Minister informed that along with GST, M/o MSME has taken effort to simplify the guidelines for implementation of its various schemes. E-initiatives have been taken in simplification of guidelines wherein PMEGP has been made online. Online Grievance Redressal and Monitoring Systems(CPGRAMS and IGMS) have been established. E-office and Mobile friendly website have been initiated and ‘My-MSME’ Mobile App, MSME-Data Bank Portal and Digital-MSME portal have been started.
He informed that Digital MSME Scheme has been launched to sensitize and encourage MSMEs towards new approach i.e., Cloud computing for ICT adoption in their production and business processes with a view to improve their competitiveness in National and International Market.
Minister of State Shri Giriraj Singh informed the gathering that by rolling out GST, the Government has opened new opportunities for the hitherto unorganized rural entrepreneurs predominantly in the micro and small segment.
Minister of State Shri Haribhai Parthibhai mentioned that a huge parallel economy which has been existing till now will subsequently come in the formal fold, with the emergence of GST. He appealed to entrepreneurs to choose their vendors judiciously so as to take benefit of the input tax credit being offered by the new system.
Shri Arun Kumar Panda, Secretary (MSME) welcomed all participants and put light on the various possible problems which could be faced by the MSMEs in the new GST regime. He emphasized upon the utility of ICT Schemes like Digital MSME which could help in handholding the MSME entrepreneurs. The representative of CBEC was present in the occasion and he addressed to the common queries put forward by MSME entrepreneurs.
| english |
---
title: Eingelegter Kürbis
introImage: 'kuerbisse'
headerImage: kuerbisse
headerImageLink: https://pixabay.com/de/photos/k%C3%BCrbisse-gelb-gem%C3%BCse-nahrungsmittel-457716/
headerImageAttribution: Bild von <a href='https://pixabay.com/de/users/127071-127071/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=457716'><NAME></a> auf <a href='https://pixabay.com/de/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=457716'>Pixabay</a>
introText: "Ich liebe eingelegten Kürbis, esse ihn oft zu meinen Broten mittags. Übrigens sind alle Zutatenmengen ernst gemeint, auch die große Zuckermenge.
Das Rezept ist von meiner Tante, die mich mit ihrem eingelegten Kürbis süchtig gemacht hat !"
tags:
- gemüse
- beilage
category: beilage
ingredients:
- 500 g Kürbis
- 1 Liter Wasser
- 625 ml Essig
- 1,125 kg Zucker
- 1 Zimtstange
- frischer Ingwer
recipe:
- Den Kürbis in Wasser und Essig über Nacht einlegen.
- Am nächsten Tag den Kürbis rausnehmen und das Wasser-Essig-Gemisch mit Zucker, Zimt und Ingwer aufkochen, dann den Kürbis zugeben.
- Kürbis glasig kochen (ca. 10 – 15 Minuten)
- Heiß in Gläser geben mit jeweils einem Stück Ingwer.
- Die Gläser am Rand saubaermachen, zudrehen und auf den Kopf stellen, bis der Inhalt ausgekühlt ist.
tipps:
- Das Rezept ergibt 6 – 8 Gläser.
- Die Ingwermenge habe ich nie abgewogen, ich messe sie immer mit dem Messer ab. Da ich die ungefähre Menge der zu erwartenden Gläser kenne, schäle ich den Ingwer und schneide dann für jedes Glas ein etwa daumendickes Stück Ingwer ab. [Man kann dann noch zur Sicherheit zwei Stücke zusätzlich hinzugeben, mehr aber nicht.]
---
| markdown |
The phenomenon of human trafficking for bonded labour rears its ugly head in many rural areas in Jharkhand.
Rural fair provides employment, marketing opportunity to local artisans in India’s Jharkhand.
Illegal MiningWho’s To Blame?
Lack of livelihood opportunities is forcing hundreds of poor Dalits into illegal coal mining in our correspondent Mukesh Rajak’s state – Jharkhand.
The Mahatma Gandhi National Rural Employment Guarantee Act (MGNREGA) provides livelihood security to rural poor.
| english |
Businesses could be facing an unexpected threat from furloughed employees keen to return to work without taking proper security precautions.
Research from security firm KnowBe4 has warned that, keen to get back into their working routine, many furloughed workers will prioritise speed over security when sorting through their inboxes.
However, doing so may make them more likely to click on phishing emails that could expose their employer to security threats.
Despite their eagerness to get back up to speed at work, KnowBe4 is urging businesses to make sure their employees are aware of the security threats they may encounter, no matter their position.
Nearly half (48 percent) of the workers surveyed stated that they were not worried about phishing emails as they believed their “IT team should take care of them”. This was despite 21 percent of respondents believing they would not be capable of correctly identifying a phishing email, opening themselves and their employers up to a number of potential threats.
Overall, only 38 percent of workers said they would carefully filter through their emails and avoid clicking potentially fraudulent links or attachments. In contrast, almost half (47 percent) admitted that heir main priority when resuming work would be to sort through emails as quickly as possible and return to business as usual.
“Without the necessary training, tied with a haste among employees to return to business as usual, organisations may very soon find themselves at the mercy of cybercriminals," said Javvad Malik, Security Awareness Advocate at KnowBe4.
The company is urging employers not to forget security training and awareness sessions, noting that over half (53 percent) of workers said that it had been six months or more since their last security training update.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
Mike Moore is Deputy Editor at TechRadar Pro. He has worked as a B2B and B2C tech journalist for nearly a decade, including at one of the UK's leading national newspapers and fellow Future title ITProPortal, and when he's not keeping track of all the latest enterprise and workplace trends, can most likely be found watching, following or taking part in some kind of sport.
| english |
<gh_stars>0
.sign-in-page {
display: flex;
align-items: center;
flex-direction: column;
}
.App-header {
display: flex;
padding-left: 40px;
overflow: auto;
}
.App-name {
padding-left: 10px;
font-family: 'Alfa Slab One';
font-size: 48px;
align-self: center;
color: #FF5722;
}
img {
cursor: grab;
}
.name-label {
padding: 10px;
padding-top: 50px;
font-family: 'Alfa Slab One';
font-size: 24px;
}
.name-field {
border-radius: 10px;
}
.password-label {
padding: 10px;
padding-top: 30px;
font-family: 'Alfa Slab One';
font-size: 24px;
}
.password-field {
border-radius: 10px;
}
.sign-in-button {
font-family: 'Alfa Slab One';
font-size: 20px;
color: #FFFFFF;
background-color: #FF5722;
width: 110px;
height: 45px;
border-radius: 10px;
border-width: 0px;
align-self: center;
margin: 20px;
cursor: grab;
}
| css |
<filename>library.json
{
"name": "Stepper28byj48",
"keywords": "stepper, signal, ouput, steps, degrees",
"description": "Arduino library for the Stepper28byj48",
"repository": {
"type": "git",
"url": "https://gits-15.sys.kth.se/albinwi/Stepper28byj-48"
},
"version": "1.0",
"exclude": [
"*.png",
"*.zip"
],
"frameworks": "arduino",
"platforms": "*"
}
| json |
<gh_stars>1-10
{
"name": "app-react-pomodoro",
"version": "1.0.0",
"description": "Pomodoro App built with react & parcel",
"source": "src/index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "parcel src/index.html --public-url /",
"build": "parcel build src/index.js --dist-dir build ./"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Mika215/app-react-pomodoro.git"
},
"author": "<NAME>",
"license": "ISC",
"bugs": {
"url": "https://github.com/Mika215/app-react-pomodoro/issues"
},
"homepage": "https://github.com/Mika215/app-react-pomodoro#readme",
"devDependencies": {
"parcel": "^2.0.1"
},
"dependencies": {
"react": "^17.0.2",
"react-circular-progressbar": "^2.0.4",
"react-dom": "^17.0.2"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
| json |
// Copyright 2022 <NAME>.
//
// 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.
use std::cell::UnsafeCell;
use std::collections::VecDeque;
use std::fmt::Debug;
use std::sync::Arc;
use common_exception::ErrorCode;
use common_exception::Result;
use petgraph::dot::Config;
use petgraph::dot::Dot;
use petgraph::prelude::EdgeIndex;
use petgraph::prelude::NodeIndex;
use petgraph::prelude::StableGraph;
pub struct UpdateList {
inner: UnsafeCell<UpdateListMutable>,
}
unsafe impl Send for UpdateList {}
unsafe impl Sync for UpdateList {}
pub enum DirectedEdge {
Source(EdgeIndex),
Target(EdgeIndex),
}
impl DirectedEdge {
pub fn get_source<N, E>(&self, graph: &StableGraph<N, E>) -> NodeIndex {
match self {
DirectedEdge::Source(edge_index) => graph.edge_endpoints(*edge_index).unwrap().0,
DirectedEdge::Target(edge_index) => graph.edge_endpoints(*edge_index).unwrap().1,
}
}
pub fn get_target<N: Debug, E: Debug>(&self, graph: &StableGraph<N, E>) -> Result<NodeIndex> {
match self {
DirectedEdge::Source(edge_index) => match graph.edge_endpoints(*edge_index) {
Some((_source, target)) => Ok(target),
None => Err(ErrorCode::LogicalError(format!(
"Cannot found edge in graph, edge_index: {:?}, graph: {:?}",
edge_index,
Dot::with_config(graph, &[Config::NodeIndexLabel, Config::EdgeIndexLabel])
))),
},
DirectedEdge::Target(edge_index) => match graph.edge_endpoints(*edge_index) {
Some((target, _source)) => Ok(target),
None => Err(ErrorCode::LogicalError(format!(
"Cannot found edge in graph, edge_index: {:?}, graph: {:?}",
edge_index,
Dot::with_config(graph, &[Config::NodeIndexLabel, Config::EdgeIndexLabel])
))),
},
}
}
}
struct UpdateListMutable {
updated_edges: Vec<DirectedEdge>,
updated_triggers: Vec<Arc<UnsafeCell<UpdateTrigger>>>,
}
impl UpdateList {
pub fn create() -> Arc<UpdateList> {
Arc::new(UpdateList {
inner: UnsafeCell::new(UpdateListMutable {
updated_edges: vec![],
updated_triggers: vec![],
}),
})
}
/// Trigger node input or output edge. Executor will schedule this edge.
///
/// # Safety
///
/// Must be thread safe call. In other words, it needs to be called in single thread or in mutex guard.
#[inline(always)]
pub unsafe fn update_edge(&self, edge: DirectedEdge) {
let inner = &mut *self.inner.get();
inner.updated_edges.push(edge);
}
/// Enter the next scheduling cycle
///
/// # Safety
///
/// Must be thread safe call. In other words, it needs to be called in single thread or in mutex guard.
pub unsafe fn trigger(&self, queue: &mut VecDeque<DirectedEdge>) {
let inner = &mut *self.inner.get();
for trigger in &inner.updated_triggers {
UpdateTrigger::trigger_version(trigger.get());
}
while let Some(index) = inner.updated_edges.pop() {
queue.push_front(index);
}
}
/// Create schedule trigger for the port
///
/// # Safety
///
/// Must be thread safe call. In other words, it needs to be called in single thread or in mutex guard.
pub unsafe fn create_trigger(self: &Arc<Self>, edge_index: EdgeIndex) -> *mut UpdateTrigger {
let inner = &mut *self.inner.get();
let update_trigger = UpdateTrigger::create(edge_index, self.clone());
inner
.updated_triggers
.push(Arc::new(UnsafeCell::new(update_trigger)));
inner.updated_triggers.last().unwrap().get()
// let update_trigger = UnsafeCell::new(UpdateTrigger::create(edge_index, self.clone()));
// let res = update_trigger.get();
// inner.updated_triggers.push(update_trigger);
// res
}
}
pub struct UpdateTrigger {
index: EdgeIndex,
update_list: Arc<UpdateList>,
version: usize,
prev_version: usize,
}
unsafe impl Send for UpdateTrigger {}
impl UpdateTrigger {
pub fn create(index: EdgeIndex, update_list: Arc<UpdateList>) -> UpdateTrigger {
UpdateTrigger {
index,
update_list,
version: 0,
prev_version: 0,
}
}
/// Enter the next scheduling cycle
///
/// # Safety
///
/// *mut UpdateTrigger must be a safe pointer
pub unsafe fn trigger_version(self_: *mut UpdateTrigger) {
(*self_).prev_version = (*self_).version;
}
/// Trigger node input edge. Executor will schedule this edge.
///
/// # Safety
///
/// *mut UpdateTrigger must be a safe pointer
#[inline(always)]
pub unsafe fn update_input(self_: &*mut UpdateTrigger) {
if !self_.is_null() {
let self_ = &mut **self_;
if self_.version == self_.prev_version {
self_.version += 1;
self_
.update_list
.update_edge(DirectedEdge::Target(self_.index));
}
}
}
/// Trigger node output edge. Executor will schedule this edge.
///
/// # Safety
///
/// *mut UpdateTrigger must be a safe pointer
#[inline(always)]
pub unsafe fn update_output(self_: &*mut UpdateTrigger) {
if !self_.is_null() {
let self_ = &mut **self_;
if self_.version == self_.prev_version {
self_.version += 1;
self_
.update_list
.update_edge(DirectedEdge::Source(self_.index));
}
}
}
}
| rust |
Why you can trust TechRadar We spend hours testing every product or service we review, so you can be sure you’re buying the best. Find out more about how we test.
Why is Panasonic offering an Edge LED alternative to its plasma TVs? Given that the latter performs peerlessly with 3D and nicely upscales lesser-than-HD sources, the choice of Edge LED is surely all about the innate slimness it brings.
There's no doubting the Panasonic TX-L42ET50B's style, but is it over substance?
We liked:
Almost completely blur-free and with awesome detail from Blu-ray, this 42-inch television impresses further with a superb smart TV dimension, Viera Connect.
For long the slickest-looking of the smart TV interfaces, this Wi-Fi-powered and nicely designed GUI now has the content to match its rivals at Samsung and Sony. It's especially great to see Netflix.
Audio is better than average, too, as is the active shutter 3D effect and the backlit remote control, while the slim bezel design is nothing if not innovative.
We disliked:
Where's Lovefilm? As well as that missing app on Viera Connect, it's sad to see that no 3D glasses are included in the box, which makes 3D a pricey add-on.
We were also disappointed with the Panasonic TX-L42ET50B's tight viewing angle, LED light leakage in a corner of the panel, and generally lacklustre black levels.
The Freeview HD EPG is bland amid a core GUI that's starting to look a little dated.
3D is an expensive luxury on this, Panasonic's biggest ever Edge LED TV. It may have sacrificed plasma at this living room-friendly size, but its love of active shutter 3D tech refuses to budge.
That's a strange move that leaves the Panasonic TX-L42ET50B neither a slim and cheap option nor a high-end home cinema screen, although at its best it's just capable of surviving in either environment.
Also consider:
Competition among other manufacturers' ranges for 2012 is still building, with many models yet to be announced. However, the Philips 42PFL7666H is worth an audition - it uses passive 3D tech, but offers a more robust, classy metallic build quality and an app that can stream photos from phone to TV.
Those not after 3D should also check out the 40-inch Toshiba 40RL858B.
Jamie is a freelance tech, travel and space journalist based in the UK. He’s been writing regularly for Techradar since it was launched in 2008 and also writes regularly for Forbes, The Telegraph, the South China Morning Post, Sky & Telescope and the Sky At Night magazine as well as other Future titles T3, Digital Camera World, All About Space and Space.com. He also edits two of his own websites, TravGear.com and WhenIsTheNextEclipse.com that reflect his obsession with travel gear and solar eclipse travel. He is the author of A Stargazing Program For Beginners (Springer, 2015),
FedEx is building its own all-in-one end to end ecommerce platform - but will it be enough to end user complaints at last?
| english |
{
"name": "forwardline",
"version": "0.0.8",
"description": "Forward Line Model",
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:babel/register test/**/*.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/LoveKino/forwardline.git"
},
"dependencies": {
"typevalidator": "*"
},
"devDependencies": {
"mocha": "*",
"babel": "*",
"chokidar": "*"
},
"keywords": [
"forward",
"line",
"timeline"
],
"author": "ddchen",
"license": "MIT",
"bugs": {
"url": "https://github.com/LoveKino/forwardline/issues"
},
"homepage": "https://github.com/LoveKino/forwardline#readme"
} | json |
(/)
Two Year Anniversary Of January 6th U. S. Capitol Riot | US News | Donald Trump | News18Today marks the second anniversary of the January 6th riot at the U. S. Capitol building in Washington, D. C. Capitol Police have increased security around the Capitol, and President Joe Biden and Senate Majority Leader Chuck Schumer will hold remembrances. In December, a House committee investigating the January 6th riot voted to refer former President Donald Trump to the Department of Justice (DOJ) on criminal charges for his part in the riot, including conspiracy to defraud the US and aiding an insurrection. | english |
<gh_stars>0
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
}
kbd {
padding: 2px 4px;
font-size: 90%;
color: #ffffff;
background-color: #333333;
border-radius: 3px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
box-shadow: none;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.428571429;
word-break: break-all;
word-wrap: break-word;
color: #333333;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 4px;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
| css |
<filename>Week 4/Step Five/FourthRatings.java<gh_stars>1-10
/** FourthRatings class contains various methods that can be used to get average ratings
* (with/without filters) as well as additional helper methods:
*
* * getAverageRatings and getAverageRatingsByFilter are used to find movies that have required
* * number of ratings, and in case with getAverageRatingsByFilter can be filtered using a range
* * of filters provided in this program.
*
* * getSimilarRatings and getSimilarRatingsByFilter work similarly to the methods mentioned
* * above but additionally ratings are provided using weighted averages. A user will get more
* * personalized recommendations because movies that were highly rated by only similar raters
* * will be returned. numSimilarRaters method parameter can be changed in order to modify
* * the precision of the provided recommendations.
*/
import java.util.*;
public class FourthRatings
{
public FourthRatings ()
{
// default constructor
this("ratings.csv");
}
public FourthRatings (String ratingsfile)
{
RaterDatabase.initialize(ratingsfile);
}
private double getAverageByID (String id, int minimalRaters)
{
double sum = 0.0;
int count = 0;
for (Rater rater : RaterDatabase.getRaters())
{
if (rater.hasRating(id))
{
sum += rater.getRating(id);
count += 1;
}
}
if (count >= minimalRaters)
{
return sum / count;
} else {
return 0.0;
}
}
public ArrayList<Rating> getAverageRatings (int minimalRaters)
{
ArrayList<Rating> averageRatings = new ArrayList<Rating> ();
ArrayList<String> movies = MovieDatabase.filterBy(new TrueFilter());
for (String movieID : movies)
{
double average = Math.round(getAverageByID(movieID, minimalRaters) * 100.0) / 100.0;
if (average != 0.0)
{
Rating rating = new Rating (movieID, average);
averageRatings.add(rating);
}
}
return averageRatings;
}
public ArrayList<Rating> getAverageRatingsByFilter (int minimalRaters, Filter filterCriteria) {
ArrayList<Rating> averageRatings = new ArrayList<Rating> ();
ArrayList<String> filteredMovies = MovieDatabase.filterBy(filterCriteria);
for (String movieID : filteredMovies)
{
double average = Math.round(getAverageByID(movieID, minimalRaters) * 100.0) / 100.0;
if (average != 0.0)
{
Rating rating = new Rating (movieID, average);
averageRatings.add(rating);
}
}
return averageRatings;
}
private double dotProduct (Rater me, Rater r)
{
double dotProduct = 0.0;
ArrayList<String> itemsRatedMe = me.getItemsRated();
for (String item : itemsRatedMe)
{
if (r.getItemsRated().contains(item))
{
double currRatingR = r.getRating(item);
double currRatingMe = me.getRating(item);
dotProduct += (currRatingR - 5.0) * (currRatingMe - 5.0);
}
}
return dotProduct;
}
private ArrayList<Rating> getSimilarities (String id)
{
ArrayList<Rating> similarities = new ArrayList<Rating> ();
Rater me = RaterDatabase.getRater(id);
for (Rater currRater : RaterDatabase.getRaters())
{
if (! currRater.getID().equals(id))
{
double dotProduct = dotProduct(me, currRater);
if (dotProduct >= 0)
{
similarities.add(new Rating(currRater.getID(), dotProduct));
}
}
}
Collections.sort(similarities, Collections.reverseOrder());
return similarities;
}
public ArrayList<Rating> getSimilarRatings (String id, int numSimilarRaters, int minimalRaters) {
ArrayList<Rating> weightedRatings = new ArrayList<Rating> ();
ArrayList<Rating> similarRaters = getSimilarities(id);
ArrayList<String> movies = MovieDatabase.filterBy(new TrueFilter());
HashMap<String,Double> accumulatedRating = new HashMap<String,Double> ();
HashMap<String,Integer> accumulatedCount = new HashMap<String,Integer> ();
for (String movieID : movies) {
double currRating = 0.0;
int currCount = 0;
for (int k=0; k < numSimilarRaters; k++) {
Rating r = similarRaters.get(k);
String raterID = r.getItem();
double weight = r.getValue();
Rater rater = RaterDatabase.getRater(raterID);
if (rater.hasRating(movieID)) {
double rating = rater.getRating(movieID) * weight;
currRating += rating;
currCount += 1;
}
}
if (currCount >= minimalRaters) {
accumulatedRating.put(movieID, currRating);
accumulatedCount.put(movieID, currCount);
}
}
for (String movieID : accumulatedRating.keySet()) {
double weightedRating = Math.round((accumulatedRating.get(movieID) / accumulatedCount.get(movieID)) * 100.0) / 100.0;
Rating rating = new Rating (movieID, weightedRating);
weightedRatings.add(rating);
}
Collections.sort(weightedRatings, Collections.reverseOrder());
return weightedRatings;
}
public ArrayList<Rating> getSimilarRatingsByFilter
(String id, int numSimilarRaters, int minimalRaters, Filter filterCriteria) {
ArrayList<Rating> weightedRatings = new ArrayList<Rating> ();
ArrayList<Rating> similarRaters = getSimilarities(id);
ArrayList<String> filteredMovies = MovieDatabase.filterBy(filterCriteria);
HashMap<String,Double> accumulatedRating = new HashMap<String,Double> ();
HashMap<String,Integer> accumulatedCount = new HashMap<String,Integer> ();
for (String movieID : filteredMovies) {
double currRating = 0.0;
int currCount = 0;
for (int k=0; k < numSimilarRaters; k++) {
Rating r = similarRaters.get(k);
String raterID = r.getItem();
double weight = r.getValue();
Rater rater = RaterDatabase.getRater(raterID);
if (rater.hasRating(movieID)) {
double rating = rater.getRating(movieID) * weight;
currRating += rating;
currCount += 1;
}
}
if (currCount >= minimalRaters) {
accumulatedRating.put(movieID, currRating);
accumulatedCount.put(movieID, currCount);
}
}
for (String movieID : accumulatedRating.keySet()) {
double weightedRating = Math.round((accumulatedRating.get(movieID) / accumulatedCount.get(movieID)) * 100.0) / 100.0;
Rating rating = new Rating (movieID, weightedRating);
weightedRatings.add(rating);
}
Collections.sort(weightedRatings, Collections.reverseOrder());
return weightedRatings;
}
}
| java |
<filename>9/Allgemeine Verwaltungsvorschrift/9-206415.json
{
"vorgangId": "206415",
"VORGANG": {
"WAHLPERIODE": "9",
"VORGANGSTYP": "Allgemeine Verwaltungsvorschrift",
"TITEL": "Allgemeine Verwaltungsvorschrift zur Durchführung des Arzneimittelgesetzes (AMGVwV) (G-SIG: 09021511)",
"INITIATIVE": "Bundesregierung",
"AKTUELLER_STAND": "Nicht abgeschlossen - Einzelheiten siehe Vorgangsablauf",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BR",
"DRS_NUMMER": "94/83",
"DRS_TYP": "Allgemeine Verwaltungsvorschrift"
},
"EU_DOK_NR": "",
"SCHLAGWORT": {
"_fundstelle": "true",
"__cdata": "Arzneimittel"
},
"ABSTRAKT": "Koordinierung und Intensivierung der Überwachung des Arzneimittelverkehrs "
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BR",
"URHEBER": "Allgemeine Verwaltungsvorschrift, Urheber : Bundesregierung, Bundesministerium für Jugend, Familie und Gesundheit (federführend)",
"FUNDSTELLE": "28.02.1983 - BR-Drucksache 94/83",
"ZUWEISUNG": [
{
"AUSSCHUSS_KLARTEXT": "Ausschuss für Jugend, Familie und Gesundheit",
"FEDERFUEHRUNG": "federführend"
},
{
"AUSSCHUSS_KLARTEXT": "Agrarausschuss"
},
{
"AUSSCHUSS_KLARTEXT": "Rechtsausschuss"
}
]
}
}
}
| json |
<h3>Midgett Preti Olansen Sitemap</h3>
<p><a href="https://mpopc.com/">Home</a></p>
<p><a href="https://mpopc.com/about">About</a></p>
<p><a href="https://mpopc.com/attorneys">Attorneys</a></p>
<ul>
<li>
<p><a href="https://mpopc.com/attorneys/john-t-midgett"><NAME></a></p>
</li>
<li>
<p><a href="https://mpopc.com/attorneys/todd-j-preti"><NAME></a></p>
</li>
<li>
<p><a href="https://mpopc.com/attorneys/nathan-r-olansen"><NAME></a></p>
</li>
<li>
<p><a href="https://mpopc.com/attorneys/stephanie-C-Smith"><NAME></a></p>
</li>
<li><p><a href="https://mpopc.com/attorneys/alison-zizzo"><NAME></a></p></li>
<li>
<p><a href="https://mpopc.com/attorneys/ann-h-larkin"><NAME></a></p>
</li>
<li>
<p><a href="https://mpopc.com/attorneys/vanessa-macias-stillma"><NAME></a></p>
</li>
<li>
<p><a href="https://mpopc.com/attorneys/payton-d-cromwell"><NAME></a></p>
</li>
</ul>
<p><a href="https://mpopc.com/services">Services</a></p>
<ul>
<li>
<p><a href="https://mpopc.com/services/estate-planning">Estate Planning</a></p>
</li>
<li>
<p><a href="https://mpopc.com/services/estate-trust-administration">Estate and Trust Administration</a></p>
</li>
<li>
<p><a href="https://mpopc.com/services/estate-trust-litigation">Estate and Trust Litigation</a></p>
</li>
<li>
<p><a href="https://mpopc.com/services/general-litigation">General Litigation</a></p>
</li>
<li>
<p><a href ="https://mpopc.com/services/corporate-commercial-planning">Corporate and Commercial Planning</p>
</li>
<li>
<p><a href="https://mpopc.com/services/taxation">Taxation</a></p>
</li>
<li>
<p><a href="https://mpopc.com/services/elder-law">Elder Law</a></p>
</li>
</ul>
<p><a href="https://mpopc.com/contact">Contact Us</a></p>
<p><a href="#">News</a></p>
<ul>
<li><a href="https://mpopc.com/blog">Blog</a></li>
<li><a href="https://mpopc.com/news/announcements">Announcements</a></li>
<li><a href="https://mpopc.com/news/job-opportunities">Job Opportunities</a></li>
</ul>
<p><a href="https://mpopc.securepayments.cardpointe.com/pay">Epay</a></p>
<p> </p> | html |
<reponame>agnostic-apollo/android-locale-plugin-libraries<filename>spackleLib/src/androidTest/java/com/twofortyfouram/spackle/ResourceUtilTest.java
/*
* android-spackle https://github.com/twofortyfouram/android-spackle
* Copyright (C) 2009–2017 two forty four a.m. LLC
*
* 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 com.twofortyfouram.spackle;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import com.twofortyfouram.spackle.test.R;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.InstrumentationRegistry.getContext;
import static com.twofortyfouram.test.matcher.ClassNotInstantiableMatcher.notInstantiable;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
@RunWith(AndroidJUnit4.class)
public final class ResourceUtilTest {
@SmallTest
@Test
public void nonInstantiable() {
assertThat(ResourceUtil.class, notInstantiable());
}
@SmallTest
@Test
public void getPositionForIdInArray() {
assertThat(ResourceUtil.getPositionForIdInArray(getContext(), R.array
.com_twofortyfouram_spackle_test_array,
R.string.com_twofortyfouram_spackle_test_string_key_1), is(0));
assertThat(ResourceUtil.getPositionForIdInArray(getContext(), R.array
.com_twofortyfouram_spackle_test_array,
R.string.com_twofortyfouram_spackle_test_string_key_2), is(1));
assertThat(ResourceUtil.getPositionForIdInArray(getContext(), R.array
.com_twofortyfouram_spackle_test_array,
R.string.com_twofortyfouram_spackle_test_string_key_3), is(2));
}
@SmallTest
@Test
public void resourceIdForPositionInArray() {
assertThat(ResourceUtil.getResourceIdForPositionInArray(getContext(), R.array
.com_twofortyfouram_spackle_test_array, 0),
is(R.string.com_twofortyfouram_spackle_test_string_key_1));
assertThat(ResourceUtil.getResourceIdForPositionInArray(getContext(),
R.array.com_twofortyfouram_spackle_test_array, 1),
is(R.string.com_twofortyfouram_spackle_test_string_key_2));
assertThat(ResourceUtil.getResourceIdForPositionInArray(getContext(),
R.array.com_twofortyfouram_spackle_test_array, 2),
is(R.string.com_twofortyfouram_spackle_test_string_key_3));
}
}
| java |
<gh_stars>1-10
{"news_outlet": "blog_campact", "provenance": "https://blog.campact.de/2019/11/altmaier-stoppen-windkraft-retten/", "query_keywords": ["windenergie", "windr\u00e4der", "windkraft"], "creation_date": "15.11.2019", "last_modified": "15.11.2019", "crawl_date": "19.02.2021", "author_person": ["<NAME>", "<NAME>"], "author_organization": [], "news_keywords": [], "content": {"title": "Altmaier stoppen: Windkraft retten!", "description": "Altmaier gibt der Windkraft den Todesto\u00df - trotz Klimakrise. Das muss Umweltministerin Svenja Schulze aufhalten. Unterzeichne den Appell!", "body": {"": [], "Windkraft unter Druck": ["Die Windkraft leidet schon jetzt. Vor zwei Jahren gab es zehnmal so viele neue Anlagen wie bisher in 2019. 35.000 Arbeitspl\u00e4tze gingen seitdem in der Zukunftsbranche verloren. Letzten Freitag verk\u00fcndete der Windkraft-Hersteller Enercon, dass er weitere 3.000 Arbeitnehmer*innen entlassen muss. Die Firmen leiden unter dem unflexiblen Ausschreibungszwang und langwierigen Genehmigungsverfahren. Altmaiers neues Anti-Windkraft-Gesetz macht jetzt alles noch schlimmer.", "Sobald wir mehr als 100.000 Unterzeichner*innen zusammen haben, wollen wir der Umweltministerin unseren Appell \u00fcberreichen. Wir fordern\u00a0Schulze auf: Stoppen Sie die Zerst\u00f6rung der Windenergie. Stelle sicher, dass auch Deine Unterschrift noch bei Schulze ankommt und unterzeichne direkt!"], "Gemeinsam gegen Altmaiers Anti-Windkraft-Gesetz": ["Alle Umweltverb\u00e4nde, Gewerkschaften und Industrieverb\u00e4nde sind sich einig \u2013 was f\u00fcr eine seltene Verbindung. Altmaiers Angriff auf die Windkraft schwei\u00dft sie zusammen.", "Seine neuen Regeln w\u00fcrden \u201ealle weiteren Bem\u00fchungen zur St\u00e4rkung des Windenergieausbaus zunichtemachen und die Windenergie an Land dramatisch schw\u00e4chen\u201c. So hei\u00dft es in einem Brandbrief. Ver\u00f6ffentlicht haben ihn unter anderem der Deutsche Gewerkschaftsbund DGB, der Industrieverband BDI und der Bund der Deutschen Energiewirtschaft (BDEW)."], "Kein Platz mehr f\u00fcr Windkraft": ["Die Verb\u00e4nde warnen: Altmaiers Pl\u00e4ne als Teil des Klimapakets w\u00fcrden der Windkraft noch einmal 50 Prozent der Fl\u00e4chen f\u00fcr neue Windr\u00e4der wegnehmen. Und die sind schon jetzt durch rigide Auflagen d\u00fcnn ges\u00e4t. Das geplante Gesetz erinnert fatal an die Situation der Solarindustrie vor sieben Jahren.", "Damals hatte die Regierung massiv die F\u00f6rderbedingungen f\u00fcr Sonnenenergie im Erneuerbare-Energien-Gesetz (EEG) verschlechtert. Die Folge: Der Zubau an Photovoltaikanlagen brach zusammen \u2013 und mit ihm die mittelst\u00e4ndisch gepr\u00e4gte Solarbranche. Besonders in strukturschwachen Gebieten verloren Zehntausende ihre Arbeit. Die international f\u00fchrende Stellung der deutschen Solartechnik ging f\u00fcr immer verloren."], "Klimaschutz schafft Jobs": ["Das darf sich nicht wiederholen. Mit der Windkraft steht auch eine international viel beachtete Erfolgsgeschichte auf dem Spiel: wie konsequenter Klimaschutz zum Jobmotor wird.", "Die Klimakrise k\u00f6nnen wir nur l\u00f6sen, wenn Millionen Menschen daran arbeiten: am Umstieg auf 100 Prozent Erneuerbare Energien und mehr Energieeffizienz. An einem besseren Bahnverkehr und energetischen Sanierungen. Warum <NAME> entschieden hat, seine neue Mega-Fabrik f\u00fcr Tesla E-Autos in Brandenburg zu errichten? Weil es dort so viel \u00d6kostrom aus Solar- und Windkraft gibt.", "Jetzt m\u00fcssen wir gemeinsam sicherstellen, dass der Windkraft nicht das Schicksal der Solarenergie widerf\u00e4hrt. Umweltministerin Schulze muss den Angriff von Altmaier stoppen \u2013 zeige ihr, dass die Windkraft nur dann eine Zukunft hat, wenn sie jetzt handelt!"]}}, "recommendations": []} | json |
Yaar Mere Ki Shadi song is a Haryanvi folk song from the Teri Tight Body released on 2018. Music of Yaar Mere Ki Shadi song is composed by VR Brothers. Yaar Mere Ki Shadi was sung by Raj Mawar, Sushila Takhar. Download Yaar Mere Ki Shadi song from Teri Tight Body on Raaga.com.
| english |
<filename>scripts/model/permute_graph.py
__author__ = 'angad'
import random
def permute_graph(graph, permutations=1):
# Perform pair-wise permutations on the graph to generate an isomorphic graph
for _ in xrange(permutations):
[node1, node2] = random.sample(graph.nodes(), 2)
temp = graph.edge[node1]
graph.edge[node1] = graph.edge[node2]
graph.edge[node2] = temp
return graph
| python |
const formatValue = (value: number): string =>{
const valor = value.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' })
return valor
}
export default formatValue | typescript |
C. Custer from China Geeks explains the relation between local governments’ budget, forced demolition and social unrest in China. To pay back the 1. 6 trillion debt, the blogger anticipates a new wave of social unrest approaching.
Jennifer Grosso, an architect student, explored a village near the famous Sundarban mangrove forest to learn about the Bangladeshi mud built homestead. Here is what she found out.
In the last few days animal activists are making unprecedented use of social media in the South Caucasus by demanding that the inhumane killing of stray dogs end by flooding the Yerevan mayor's Facebook page with requests and appeals.
“Some people claim that the city should evolve, others say that Luanda should not keep the traces of colonialism”, writes Menina de Angola, while regretting the demolition of “one more icon” of the capital city, the building Cuca.
Voices From El Salvador has posted a two part post on “El Salvador's ongoing struggle with food security. ” Part 1 provides a historical background, as well a review of current challenges; Part 2 looks at how climate change is affecting food security.
Indi. ca is concerned that Chinese investors are being allowed to reclaim and own 500 acres of Sri Lankan land from sea paying $700 million to the Sri Lankan government.
As the world marked the International Day against Torture that falls on June 26, eyes were on Egypt where the struggle against citizen abuse has been particularly significant.
Guatemala: What can you eat with one dollar?
Azerbaijan: A military show of strength or rhetoric for domestic consumption?
Sinologistical Violoncellist has a guest post by Kristiana Henderson of Pacific Lutheran University which addresses the politics of hydroelectricity projects in Tibet by looking into the history of conflicts between indigenous Sami community with the Norwegian government since 1850s.
Dar Es Salaam signwriters at Kigamboni Market have put together the concise overview of Tanzania in 2011. See their work here.
Once again the inhabitants of the Puno region have taken to the streets in protests, this time against the contamination caused by the mining of minerals. Six people died as a result of the protests on the day when Peru celebrates the Day of the Peasant. | english |
The entire coaching staff of Pakistan men's hockey team was reportedly sacked by country's sports board-run committee after it failed reach the semi-final of the recently-concluded Asian Champions Trophy in India.
Shahnaz Sheikh has been named the head coach but the move has courted controversy with the person in question being a part of the Pakistan Sports Board run committee that apparently issued 'Pink Slips' to Rehan Butt, Muhammad Saqlain, Haseem Khan and Muhammad Ghafoor, who were all in Chennai for the Asian Champions Trophy in Chennai.
Shahnaz has been a head coach earlier also. He was also named as a consultant and was scheduled to travel to Chennai for ACT but Pakistan Hockey Federation (PHF) couldn't obtain a visa for him on time.
PHF insiders informed that Shahnaz was not happy with the development and believed the PHF didn't do enough to ensure he got the visa on time and travelled with the team, which finished fifth in the six-team competition won by India.
India thrashed Pakistan 4-0 in a league match.
This is why, soon after the team returned home, the committee, which included Shahnaz and other former Olympians Akhtar Rasool and Islahuddin Siddiqui, supported the PSB decision to dissolve the PHF.
The new set of coaches, which will work with Shahnaz, include Shakeel Abbasi, Amjad Ali and Dilawar Hussain.
The fascinating part is that with the PSB dissolving the PHF, the hockey circle is mystified by how the PHF announced the change in the team management and appointment of Shahnaz as head coach for the Asian Games.
Meanwhile, the PHF national selection committee, led by Olympian Kaleemullah, announced 36 probables for the Asian Games. These probables will attend a training camp starting at the Naseer Bunda Hockey Stadium in Islamabad on Tuesday.
Forwards: Mohammad Imad, Afraz, Roman, Arshad Liaquat, Abdul Qayyum, Abdul Rehman, Waqar Ali, Mohammad Arsalan, Mohammad Umar Bhat, Abdul Hannan Shahid, Mohammad Shahzaib Khan, Abdul Wahab, Zikriya Hayat, Bisharat Ali, Rana Waleed, Hamza Fayaz, Abdul Rehman.
| english |
What's the story?
Real Madrid suffered their first defeat under new manager Zinedine Zidane yesterday. It was the Spanish club's ninth defeat in the LaLiga this season and the 15th one across all competitions. One key reason for their poor run of form this season has been the departure of Portuguese superstar Cristiano Ronaldo, who ended his nine-year spell at the Santiago Bernebau last summer.
The Madrid based club had never lost more than 11 games in the nine seasons that Ronaldo was playing for them, but have lost on 15 occasions already this season and with more than a month of football still left to play for Los Blancos, they might end up loosing even more.
With the former Manchester United star in their ranks, Madrid managed to score 100+ goals in eight of the last nine seasons in their domestic league, while they only have scored 53 goals this season.
Ronaldo is also the club's record all-time top-scorer, with 450 goals to his name in all competitions for them.
Karim Benzema, who's the top-scorer and assist-provider in the current campaign for the club , joined them in the same transfer window as Ronaldo, but has scored more than 200 fewer goals than the Juventus ace.
Manu Sainz, a journalist of the Madrid-based daily sports newspaper AS, reported that the Bernabeu side have already suffered 15 defeats in all competitions this season.
The club underwent three changes in the dugout in the span of just nine months, which eventually saw, Zidane, who had resigned from the job last summer, back at the helm of the club.
Though, losses can be attributed to many reasons, the fact that with Ronaldo in their ranks the LaLiga outfit averaged approximately seven defeats per season, says a lot about the player's immense contributions to their success.
11 losses during the 2012-13 season with Jose Mourinho as the coach were the most defeats that Ronaldo and co. faced during his time with the club.
The losses suffered by the Spanish side over the last nine seasons are as mentioned below - seven in 2009-10, six in 2010-11, five in 2011-12, 11 in 2012-13, six in 2013-14, ten in 2014-15 and just 2015-16 and 2016-17 seasons, another 9 in the previous season.
The stats just add to what has been clearly visible to all this season, the void left by the prolific 34-year-old forward at the club.
What's next?
Real Madrid have been knocked out of the Champions League this season, but the five-time Ballon d'Or winner can win the competition for the fourth time in a row with Juventus, who are one of the strongest contenders for the honor in the current campaign.
| english |
The Prime Minister, Shri Narendra Modi has expressed grief over the loss of lives in a tragic bus accident in Chittoor, Andhra Pradesh.
The Prime Minister has also approved an ex-gratia of Rs. 2 lakh each to the next of kin of the deceased and Rs. 50,000 to the those injured in the accident from Prime Minister's National Relief Fund (PMNRF).
The Prime Minister Office tweeted;
"Pained by the loss of lives in a tragic bus accident in Chittoor, AP. Condolences to the bereaved families. I hope the injured recover soon.
The next of kin of the deceased would be given Rs. 2 lakh from PMNRF and Rs. 50,000 would be given to the injured: PM @narendramodi"
| english |
/*
* Copyright 2019 gosoon.
*
* 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 encoding
import (
ecsv1 "github.com/gosoon/kubernetes-operator/pkg/apis/ecs/v1"
"github.com/gosoon/kubernetes-operator/pkg/internal/apis/config"
"github.com/gosoon/kubernetes-operator/pkg/internal/cluster/kubeadm"
)
// Ecsv1ToInternalCluster is convert ecsv1.KubernetesCluster to internal cluster config
func Ecsv1ToInternalCluster(cluster *ecsv1.KubernetesCluster, nodeAddress string) *config.Cluster {
out := &config.Cluster{
ExternalLoadBalancer: cluster.Spec.Cluster.ExternalLoadBalancer,
Networking: config.Networking{
APIServerPort: kubeadm.APIServerPort,
APIServerAddress: nodeAddress,
PodSubnet: cluster.Spec.Cluster.PodCIDR,
ServiceSubnet: cluster.Spec.Cluster.ServiceCIDR,
},
KubeVersion: cluster.Spec.Cluster.KubeVersion,
}
var clusterNodeList []ecsv1.Node
clusterNodeList = append(clusterNodeList, cluster.Spec.Cluster.NodeList...)
clusterNodeList = append(clusterNodeList, cluster.Spec.Cluster.MasterList...)
var workerList []config.Node
for _, node := range clusterNodeList {
workerList = append(workerList, config.Node{
IP: node.IP,
Role: node.Role,
})
}
out.Nodes = workerList
return out
}
| go |
/* setup */
* {
margin: 0px;
padding: 0px;
color: #333338;
font-family: arial, sans-serif-light, sans-serif;
font-size: 12px;
-webkit-font-smoothing: antialiased;
}
#app {
position: relative;
}
#menu {
position: absolute;
top: 0px;
padding: 0px 25px;
width: 300px;
}
#logo {
width: 100px;
}
/* components */
.title {
font-size: 14px;
font-weight: 600;
color: #3f3f47;
}
#tracing-table {
width: 300px;
}
#tracing-table th, #tracing-table td {
height: 20px;
text-align: center;
}
#tracing-table td {
font-family: monospace;
}
#tracing-table .shrink {
width: 1px;
white-space:nowrap
}
/* controls */
.training-set {
display: inline;
padding: 0px 10px;
font-size: 14px;
}
.training-set:first-child {
padding-left: 0px;
}
.training-set.active {
font-weight: 700;
}
#play {
display: inline-block;
border-radius: 2px;
padding: 12px 50px;
background-color: #0784de;
text-align: center;
transition: all 0.25s;
}
#play > span {
font-weight: 700;
color: white;
}
#play:hover {
transition: all 0.25s;
background-color: #0991e0;
}
#play.active {
transition: all 0.25s;
background-color: #ffb04f;
}
#play.active:hover {
transition: all 0.25s;
background-color: #ffbf59;
}
/* colors */
.input {
color: #0784de;
}
.target, .warning {
color: #ffb04f;
}
.prediction, .ok {
color: #168c81;
}
.error {
color: #e8302a;
}
/* spacing */
.mt-lg {
margin-top: 50px;
}
.mt-md {
margin-top: 25px;
}
.mt-sm {
margin-top: 10px;
}
/* utility */
.bold {
font-weight: 600;
}
.clickable {
cursor: pointer;
}
.no-user-select {
user-select: none;
}
| css |
<gh_stars>0
.container .places {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.container .places h1 {
font-size: 30px;
vertical-align: top;
text-align: left;
width: 100%;
}
.container .places article {
width: 390px;
padding: 20px;
margin: 20px;
border: solid 1px #FF5A5F;
text-align: center;
position: relative;
}
.container .places h2 {
font-size: 30px;
text-align: center;
}
.price_by_night {
color: #FF545F;
border: solid 4px #FF5A5F;
border-radius: 150px;
height: 60px;
min-width: 60px;
font-size: 30px;
position: absolute;
top: 10px;
right: 10px;
}
.price_by_night > p {
position: relative;
bottom: 35%;
padding: 5px;
}
.information {
height: 60px;
border-top: solid 1px #DDDDDD;
border-bottom: solid 1px #DDDDDD;
margin-bottom: 10px;
padding-bottom: 20px;
display: flex;
justify-content: center;
}
.max_guest {
height: 50px;
background: url("../images/icon_group.png") no-repeat;
width: 50px;
display: inline-grid;
margin-left: 30px;
margin-right: 30px;
}
.number_rooms {
background: url("../images/icon_bed.png") no-repeat;
height: 50px;
width: 50px;
display: inline-grid;
margin-left: 30px;
margin-right: 30px;
}
.number_bathrooms {
background: url("../images/icon_bath.png") no-repeat;
height: 50px;
width: 50px;
display: inline-grid;
margin-left: 30px;
margin-right: 30px;
}
.information > * > p {
margin: 0;
pading: 0;
}
article > p {
text-align: left;
}
| css |
<gh_stars>10-100
{
"directions": [
"In small saucepan, combine all the sauce ingredients. Boil sauce over medium-high heat for 10 minutes. Cool sauce to room temperature. If desired, remove garlic and ginger, transfer sauce to tightly covered container, and refrigerate for up to 24 hours.",
"Preheat oven to 425 degrees F. Line baking pan, 15\" x 11\" or larger, with foil. Coat 2(10\" x 10\") wire racks with cooking spray and set in the pan, overlapping them.",
"Cut off first joint of chicken wings and discard. Arrange wings in prepared baking pan in one layer, smooth side up. Bake wings for 10 minutes.",
"Brush wings on both sides with sauce and bake, smooth side up, for 5 minutes. Brush with sauce again and bake, underside up, for 5 minutes. Brush wings a third time and bake, smooth side up, for 5 minutes. Brush wings again, and bake, underside up, for 10 minutes. Reduce oven to 400 degrees F. Brush tops of wings with sauce and bake, topside up, for 10 minutes.",
"Arrange wings on serving plate. Discard any remaining sauce.",
"In mini-food processor, whirl all sauce ingredients except scallions together until smooth. Transfer sauce to bowl and garnish with scallions."
],
"ingredients": [
"Wings:",
"1/2 cup reduced sodium soy sauce",
"1/2 cup reduced sodium chicken broth",
"1/4 cup mirin",
"1/3 cup Stevia In The Raw\u00ae Bakers Bag",
"2 tablespoons frozen (thawed) orange juice concentrate",
"2 garlic cloves, sliced lengthwise",
"3/4 inch piece fresh ginger, in 3 slices",
"16 chicken wings",
"Sauce:",
"1 cup diced fresh mango",
"2 tablespoons brown mustard",
"2 tablespoons orange marmalade fruit spread",
"2 (1 gram) packets Stevia In The Raw\u00ae",
"1 tablespoon fresh lime juice",
"1/8 teaspoon cayenne pepper",
"1/2 teaspoon salt",
"1/8 teaspoon freshly ground pepper",
"2 tablespoons chopped scallions"
],
"language": "en-US",
"source": "allrecipes.com",
"tags": [],
"title": "Teriyaki Chicken Wings with Hot Mango Dipping Sauce",
"url": "http://allrecipes.com/recipe/245323/teriyaki-chicken-wings-with-hot-mango/"
}
| json |
/// Algorand protocol daemon
pub mod algod;
/// Algorand's indexer
pub mod indexer;
/// Key management daemon
pub mod kmd;
| rust |
from setuptools import setup, find_packages
setup(
name='Pokedex',
version='0.1',
zip_safe=False,
packages=find_packages(),
package_data={
'pokedex': ['data/csv/*.csv']
},
install_requires=[
'SQLAlchemy>=1.0,<2.0',
'whoosh>=2.5,<2.7',
'markdown==2.4.1',
'construct==2.5.3',
'six>=1.9.0',
],
entry_points={
'console_scripts': [
'pokedex = pokedex.main:setuptools_entry',
],
},
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.7",
]
)
| python |
RCEP IP Chapter: A Serious Threat to Access to Knowledge/ Cultural Goods?
Negotiators from sixteen countries are currently meeting in Hyderabad for discussing a free trade agreement titled Regional Comprehensive Economic Partnership (RCEP).
India requires every patentee to file an annual statement, also known as “Form 27”, describing the working of each of its issued Indian patents. If a patent is not locally worked within three years of its issuance, any person may request a compulsory license, and if the patent is not adequately worked within two years of the grant of such a compulsory license, it may be revoked. The research paper on Form 27 practices and compliance by patentees authored by Prof Jorge L. Contreras, University of Utah, and Rohini Lakshané, Centre for Internet and Society has been accepted for publication in the NYU Journal of Intellectual Property and Entertainment Law.
On 9 May 2017, a five year court battle between publishers and universities finally came to an end when the Supreme Court of India dismissed an appeal by the Indian Reprographic Rights Organization (IRRO) challenging an earlier judgment of Delhi High Court that ruled course packs in India legal for educational purposes.
I'm User: Krishna Chaitanya Velaga from English Wikipedia; fortunately and unfortunately my user name and my real name share the same text. I have been contributing to Wikipedia and its sister projects since December 2014. I work primarily on Indian military history related topics and articles. Initially, I was focused on creating articles rather than assessing them. My wiki journey can be best described in two parts, before and after Train The Trainer 2017.
The latter part of 2016 proved to be a critical period of my Wiki journey. I was credited with my first good article, first featured A-class article and list, first featured list and, several Did You Know credits on English Wikipedia. Later on, I was awarded the “Military history newcomer of the year” for 2016. I was the first Indian to receive the award. Additionally, I was selected to be the “Featured Wikimedian of Month for January 2017” by Wikimedia India.
As of January 2017, I have been contributing for nearly two years, and as far as I have observed the military history topic area of India is one of the most neglected areas. With two well known military historians from India, Srikar Kashyap Pulipaka (User:StrikeEagle) and Colonel Ashwin Baindur [retd.] (User: AshLin) on a semi Wiki break, I was left to be the only regular contributor. In an attempt to encourage more Wikipedians to work on this area, Indian military history work group emerged as an initiative by the Military history project. The work group closing in on a year since its inception, has more than twenty-five members at present. As the founder of the group, I aspire to incubate the group into an independent task force under Military history project. One of the major problems I faced while working on the military history articles was regarding images. Though the images were accepted on Commons, they were rejected at advanced levels of assessment i.e. A-class review, FAC, FLC etc. One of the primary reasons for the problem is the unclear copyright statement presented on the official websites of the armed forces and various uniformed services. I had been thinking for a long while to resolve this issue and TTT provided me with the path to finds a solution for this. Train the Trainer (TTT) is one of the best initiatives by Centre of Internet and Society - Access to Knowledge. It is a three-day residential program to enhance the trainer in experienced and well established Wikipedians through the length and breadth of India. Prior to TTT 2017, I have only been involved in online activities of Wikipedia, predominantly contributing to Indian military history topics. I hardly knew about the offline community of Wikipedia i.e. the grant structure of Wikimedia Foundation, conduction of edit-a-thons, meet-ups, program affiliates etc. Not only this, but also the Wikipedian contacts I had were very sparse. Though I was selected to attend TTT 2016, I could not attend to academic constraints. During TTT, I had rich exposure to the wider Indian Wikimedia community and that of Indic language projects. TTT also cleared many of the misconceptions I had of Wikimedia, some them include the use of Harvard referencing style, importance of offline events, etc.
Owing to the experience I decided to act on the problem. There is a heavy need of images related to the uniformed services. So I discussed my idea with Ravi Shankar Ayyakannu (User:Ravidreams), coordinator of Wiki Loves Food and Manager for Strategic Partnerships in Asia under Global Reach Team. Initially, I thought of naming it Wiki Loves Armed Forces, Wiki Loves Security Services etc. But with an intention to widen the scope, it was named as Wiki Loves Uniformed services. Once finalized, I started creating necessary pages and templates on Commons. Simultaneously, I worked on forming the core team of coordinators and judges. I chose Suyash Dwivedi (User:Suyash.dwivedi) and Mourya Biswas (User:Mouryan) to be the Coordinator and Assistant Coordinator respectively, with myself as the Lead Coordinator. The jury included Col. Ashwin Baindur [retd.], Diego Delso (User:Poco a poco), Col. Ravi Shankar Vasireddy [retd.] (Off-community) and Sirkar Kashyap Pulipaka. After having done these tasks, I moved on to file a detailed rapid grant application to the Wikimedia Foundation. The grants team was very responsive and the grant was approved in a week. This initiative gained good global support including the foundation’s staff, who were happy to see a new Wiki Loves initiative budding. However, till now there aren't as many images as expected. To increase awareness about the program we’ve decided to implement a new strategy of conducting photo walks with government permission. Apart from that we’re also in contact with the Indian Navy to donate their images to the contest. The deadline may extend for about a month or so depending upon the stats. Personally, I see great potential for this project, but the problem is one of Wikipedians' response. I hope this initiative will be a great success and will be taken up by fellow Wikimedians from others countries. I conclude by thanking CIS-A2K for conducting innovative workshops and Wikimedia India for their support to the project since its inception. I also thank each and every unacknowledged finger behind this great initiative.
CIS-A2K’s Wikipedia Education Program with Christ University, Bangalore is coming to an end after another year of intense classes, certificate courses and an internship at The Centre for Internet and Society. The internship activity in particular has successfully managed to engage students beyond classroom hours. The selection of 12 students for the internship program was based on their penchant for the language as well as their interest in the wiki world.
The internship was structured into three stages. Firstly, the students were asked to develop stub articles. The aim of this activity was for students to learn searching skills. As a result, over 1500 articles were developed with qualitative work.
Finally, the students were asked to draft policy pages for their respective language Wikipedia. They went through the policy pages in different languages including English and were asked to create similar policy pages for Kannada Wikipedia.
Unlike previous years, the activities during the internship program were tailored to suit the individual capabilities of the students, taking into consideration the suggestions from community members. The students were of the opinion that in addition to rekindling their love for the language, the internship program also enabled them to develop their overall knowledge of various subjects. The students felt that their vocabulary and typing skills also improved. However, the students were of the opinion that they could have been taken a level or two higher from article writing and introduced to other Wikimedia projects and topics related to the overall movement. The CIS-A2K WEP Program hopes to incorporate these suggestions for the upcoming year while also trying to increase the number of days of the internship in order not to tax the students.
By discarding a test brought into force last year, the updated Guidelines take no concrete position to help clarify the ambiguity around patentability of software inventions in India.
Odia Wikipedians, in conjunction with Indian Athletics Federation and Sports and Youth Services collaborated to document the 2017 Asian Athletics Championships. Hundreds of photos were uploaded and new Wikipedia content added to inform the event’s fans.
A Marathi Wikipedia edit-a-thon was held at Yashawantrao Chavan Institute of Science, Satara. The aim of the workshop was to edit and improve articles on Marathi Wikipedia under the theme "Environment and Local Biodiveristy". Participants were given an orientation on how to contribute to Wikipedia and other Wikimedia projects. The Yashawantrao Chavan Institute of Science is housed under the Rayat Shikshan Sanstha, a century-old organization with the largest network of schools and colleges across Maharashtra. The management and local environmental group, Drongo, took the initiative to organize this thematic workshop in Satara, an area rich in terms of biodiversity in the Western Ghats. Noted ecologist and scientist Prof. Madhavrao Gadgil addressed the workshop as a resource person along with Prof. V.Y. Deshpande of the Institute. A total of 23 members from various like-minded organizations participated in the workshop.
Tallapaka Pada Sahityam, a compilation of over fourteen thousand Telugu compositions is now available on Wikisource. Tallapaka Annamacharya was a 15th-century Hindu saint and composer who was renowned for singing in praise of Lord Venkateswara. The Tallapaka lineage began with him, giving rise to many bards in the Telugu language from the family. The Tallapaka Pada Sahityam is a compilation of three generations of Tallapaka poets: Tallapaka Annamacharya, Tallapaka Peda Tirumalacharya, and Tallapaka China Tirumalacharya. This compilation, published by Annamayya Library, Guntur has been uploaded by the library on Wikisource as part of their efforts to digitize the library archives. These lyrical works, dealing with a variety of themes, are of immense literary and cultural significance to Telugu speakers the world over.
Owing to the large size of the file donated by the library, the works need to be separated into 29 volumes. These separated files would be uploaded and indexed on Commons as well. A Unicode version of the work needs to be published and proofread in addition to their print version. Telugu Wikimedians are also exploring the possiblity of re-licensing recitations of the poems by literary connoisseurs. On 9 June, an orientation of these activities was conducted for long time Telugu Wikipedia, te:user:శ్రీరామమూర్తి, who has begun publishing Unicode text and proof-reading on Telugu Wikisource.
The link to the work is here:
The 34th session of the Standing Committee on Copyright and Related Rights (SCCR) was held from 1st- 5th May 2017 at Geneva, Switzerland. Anubha Sinha attended the session and provides an update on the status of discussions and noteworthy emerging/unsolved debates in the Committee.
Observers made the following statements on the agenda of limitations and exceptions for libraries and archives on 3rd May 2017.
Observers made the following statements on discussion around limitations and exceptions for educational and research institutions on 3rd May 2017.
Observers made the following statements on GRULAC's proposal on analysis of copyright related to the digital environment on 5th May 2017.
Since June 2016, Ting-Yi Chang from the University of Toronto has worked with the CIS-A2K team to conduct action research on the Wikipedia gender gap in India. The research aims to improve the understanding of the gender gap (imbalance) issue in the Indian Wikipedia communities while examining local interventions.
Anubha Sinha, attending the 34th Session of the World Intellectual Property Organization (“WIPO”) Standing Committee on Copyright and Related Rights (“SCCR”) at Geneva from 1 May, 2017 to 5 May, 2017, made this statement during the discussion on the Proposal for Analysis of Copyright Related to the Digital Environment.
Anubha Sinha, attending the 34th Session of the World Intellectual Property Organization (“WIPO”) Standing Committee on Copyright and Related Rights (“SCCR”) at Geneva from 1 May, 2017 to 5 May, 2017, made this statement during the discussion on limitations and exceptions for libraries and archives.
A Marathi Wikipedia workshop was held at the J.P. Naik Centre for Education and Development in Pune recently.
| english |
1 Weary in my soul, I will pour my words with groans upon him: I will speak being straitened in the bitterness of my soul. 2 And I will say to the Lord, Do not teach me to be impious; and wherefore hast thou thus judged me? 3 Is it good before thee if I be unrighteous? for thou hast disowned the work of thy hands, and attended to the counsel of the ungodly. 4 Or dost thou see as a mortal sees? or wilt thou look as a man sees? 5 Or is thy life human, or thy years the years of a man, 6 that thou hast enquired into mine iniquity, and searched out my sins? 7 For thou knowest that I have not committed iniquity: but who is he that can deliver out of thy hands?
8 Thy hands have formed me and made me; afterwards thou didst change thy mind, and smite me. 9 Remember that thou hast made me as clay, and thou dost turn me again to earth. 10 Hast thou not poured me out like milk, and curdled me like cheese? 11 And thou didst clothe me with skin and flesh, and frame me with bones and sinews. 12 And thou didst bestow upon me life and mercy, and thy oversight has preserved my spirit. 13 Having these things in thyself, I know that thou canst do all things; for nothing is impossible with thee.
14 And if I should sin, thou watchest me; and thou hast not cleared me from iniquity. 15 Or if I should be ungodly, woe is me: and if I should be righteous, I cannot lift myself up, for I am full of dishonour. 16 For I am hunted like a lion for slaughter; for again thou hast changed and art terribly destroying me; 17 renewing against me my torture: and thou hast dealt with me in great anger, and thou hast brought trials upon me.
18 Why then didst thou bring me out of the womb? and why did I not die, and no eye see me, 19 and I become as if I had not been? for why was I not carried from the womb to the grave? 20 Is not the time of my life short? suffer me to rest a little, 21 before I go whence I shall not return, to a land of darkness and gloominess; 22 to a land of perpetual darkness, where there is no light, neither can any one see the life of mortals.
| english |
<reponame>JefferyLukas/SRIs<gh_stars>1-10
{"instantsearch-theme-algolia.css":"sha512-iiwHsCK8Uab6vUqHHR/J57o6u6e+WwpOok+XdIHT8ClvSH3L7dsIFx3zF39d5CIED9aJbZ55iPBEuElrMXfr0w==","instantsearch-theme-algolia.min.css":"<KEY>,"instantsearch-theme-algolia.nomin.css":"<KEY>,"instantsearch.css":"sha512-MgVs37XV/LUe1cmvo/ZFasRMEVeVeSnwS5QECte1NYgAe7R5eftRPBFjJOLvNxatyStIozSMhqO/NZ4i19yZaw==","instantsearch.js":"sha512-qqAz2oNNxok1wIhqe32+hEmuB8mLXAiPUIm3TtGMw9BQCnBmN6boi30xN9SvM1MOw9bKZKup8bCzvAFv4KvI+Q==","instantsearch.min.css":"sha512-VuRRANrq5yPR7bB3j1/9BwvyrkumOLHOxtBtDOM4gipgAE/EKQvHUN9SN/LyvF5WTl5OFc+RM/S1bd4w+ePl3A==","instantsearch.min.js":"sha512-cGkzbEHPIBPVGqZcx8lqTmsWtzOFYSkUx4Ztoh2UGgWKQ6fxzH3sV<KEY>,"instantsearch.nomin.css":"<KEY>} | json |
Bollywood actresses love to pose in the natural light and this pic of Ananya Panday is proof!
Sunshine, camera and action ft. Janhvi Kapoor!
Anushka Sharma flashes her million-dollar smile in broad daylight.
Unleash your inner child just like Taapsee Pannu.
Kriti Sanon's perfect sun-kissed moment was caught on camera.
Just Shraddha Kapoor living the 'suraj hua madham' moment.
Priyanka Chopra Jonas shining bright like a diamond!
Bhumi Pednekar having the time of her life on a yacht.
Who is your favourite sunshine girl from B-Town?
Thanks For Reading! | english |
<gh_stars>1000+
// Copyright (C) 2019 Twitter, Inc.
//
// 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.
pub(crate) mod sys {
#![allow(dead_code, non_camel_case_types)]
use ccommon::metric::Metrics;
use ccommon::option::Options;
use ccommon_sys::{buf, metric, option};
include!(concat!(env!("OUT_DIR"), "/memcached.rs"));
unsafe impl Options for process_options_st {
fn new() -> Self {
init_option! {
ACTION( allow_flush, OPTION_TYPE_BOOL, ALLOW_FLUSH != 0, "allow flush_all" ),
ACTION( prefill, OPTION_TYPE_BOOL, PREFILL != 0, "prefill slabs with data" ),
ACTION( prefill_ksize, OPTION_TYPE_UINT, PREFILL_KSIZE, "prefill key size" ),
ACTION( prefill_vsize, OPTION_TYPE_UINT, PREFILL_VSIZE, "prefill val size" ),
ACTION( prefill_nkey, OPTION_TYPE_UINT, PREFILL_NKEY, "prefill keys inserted" )
}
}
}
unsafe impl Metrics for process_metrics_st {
fn new() -> Self {
init_metric! {
ACTION( process_req, METRIC_COUNTER, "# requests processed" ),
ACTION( process_ex, METRIC_COUNTER, "# processing error" ),
ACTION( process_server_ex, METRIC_COUNTER, "# internal error" ),
ACTION( get, METRIC_COUNTER, "# get requests" ),
ACTION( get_key, METRIC_COUNTER, "# keys by get" ),
ACTION( get_key_hit, METRIC_COUNTER, "# key hits by get" ),
ACTION( get_key_miss, METRIC_COUNTER, "# key misses by get" ),
ACTION( get_ex, METRIC_COUNTER, "# get errors" ),
ACTION( gets, METRIC_COUNTER, "# gets requests" ),
ACTION( gets_key, METRIC_COUNTER, "# keys by gets" ),
ACTION( gets_key_hit, METRIC_COUNTER, "# key hits by gets" ),
ACTION( gets_key_miss, METRIC_COUNTER, "# key misses by gets" ),
ACTION( gets_ex, METRIC_COUNTER, "# gets errors" ),
ACTION( delete, METRIC_COUNTER, "# delete requests" ),
ACTION( delete_deleted, METRIC_COUNTER, "# delete successes" ),
ACTION( delete_notfound, METRIC_COUNTER, "# delete not_founds" ),
ACTION( set, METRIC_COUNTER, "# set requests" ),
ACTION( set_stored, METRIC_COUNTER, "# set successes" ),
ACTION( set_ex, METRIC_COUNTER, "# set errors" ),
ACTION( add, METRIC_COUNTER, "# add requests" ),
ACTION( add_stored, METRIC_COUNTER, "# add successes" ),
ACTION( add_notstored, METRIC_COUNTER, "# add failures" ),
ACTION( add_ex, METRIC_COUNTER, "# add errors" ),
ACTION( replace, METRIC_COUNTER, "# replace requests" ),
ACTION( replace_stored, METRIC_COUNTER, "# replace successes" ),
ACTION( replace_notstored, METRIC_COUNTER, "# replace failures" ),
ACTION( replace_ex, METRIC_COUNTER, "# replace errors" ),
ACTION( cas, METRIC_COUNTER, "# cas requests" ),
ACTION( cas_stored, METRIC_COUNTER, "# cas successes" ),
ACTION( cas_exists, METRIC_COUNTER, "# cas bad values" ),
ACTION( cas_notfound, METRIC_COUNTER, "# cas not_founds" ),
ACTION( cas_ex, METRIC_COUNTER, "# cas errors" ),
ACTION( incr, METRIC_COUNTER, "# incr requests" ),
ACTION( incr_stored, METRIC_COUNTER, "# incr successes" ),
ACTION( incr_notfound, METRIC_COUNTER, "# incr not_founds" ),
ACTION( incr_ex, METRIC_COUNTER, "# incr errors" ),
ACTION( decr, METRIC_COUNTER, "# decr requests" ),
ACTION( decr_stored, METRIC_COUNTER, "# decr successes" ),
ACTION( decr_notfound, METRIC_COUNTER, "# decr not_founds" ),
ACTION( decr_ex, METRIC_COUNTER, "# decr errors" ),
ACTION( append, METRIC_COUNTER, "# append requests" ),
ACTION( append_stored, METRIC_COUNTER, "# append successes" ),
ACTION( append_notstored, METRIC_COUNTER, "# append not_founds" ),
ACTION( append_ex, METRIC_COUNTER, "# append errors" ),
ACTION( prepend, METRIC_COUNTER, "# prepend requests" ),
ACTION( prepend_stored, METRIC_COUNTER, "# prepend successes" ),
ACTION( prepend_notstored, METRIC_COUNTER, "# prepend not_founds" ),
ACTION( prepend_ex, METRIC_COUNTER, "# prepend errors" ),
ACTION( flush, METRIC_COUNTER, "# flush_all requests" ),
}
}
}
}
use ccommon::buf::OwnedBuf;
use ccommon_sys::buf;
use rustcore::util::{read_buf, write_buf};
use rustcore::worker::WorkerMetrics;
use tokio::io::{AsyncRead, AsyncWrite};
use std::rc::Rc;
#[allow(dead_code)]
pub async fn memcached_worker<'a, S>(
_: Rc<()>,
stream: &'a mut S,
rbuf: &'a mut OwnedBuf,
wbuf: &'a mut OwnedBuf,
metrics: &'static WorkerMetrics,
) where
S: AsyncRead + AsyncWrite + Unpin,
{
let mut data = std::ptr::null_mut();
loop {
if let Err(_) = read_buf(stream, rbuf, metrics).await {
break;
}
let ret = unsafe {
let wbuf_ptr = wbuf as *mut _ as *mut *mut buf;
let rbuf_ptr = rbuf as *mut _ as *mut *mut buf;
sys::twemcache_process_read(rbuf_ptr, wbuf_ptr, &mut data)
};
if ret < 0 {
break;
};
if wbuf.read_size() > 0 {
if let Err(_) = write_buf(stream, wbuf, metrics).await {
unsafe {
let wbuf_ptr = wbuf as *mut _ as *mut *mut buf;
let rbuf_ptr = rbuf as *mut _ as *mut *mut buf;
if sys::twemcache_process_write(rbuf_ptr, wbuf_ptr, &mut data) < 0 {
break;
}
}
}
}
}
let wbuf_ptr = wbuf as *mut _ as *mut *mut buf;
let rbuf_ptr = rbuf as *mut _ as *mut *mut buf;
unsafe {
sys::twemcache_process_error(rbuf_ptr, wbuf_ptr, &mut data);
}
}
| rust |
Punjabi actor-turned-activist Deep Sidhu died on Tuesday evening in a road accident in Haryana's Sonipat district.
Sonipat Police Wednesday filed an FIR against a truck driver for allegedly causing the accident that resulted in the death of the Punjabi actor.
Police officials had earlier said the accident occurred when Sidhu's SUV rammed into a stationary truck on the Kundli-Manesar-Palwal expressway near Delhi.
Mr Sidhu and a woman with him were taken to a hospital, where he was declared dead.
Deep Sidhu played an active role in the farmers' protest against the three farm laws, which were withdrawn by the Centre in November 2021.
He was accused of instigating protesters during a tractor parade on Republic Day, 2021 and provoking them to hoist 'Nishan Sahib' - a symbol of Sikh religion - and a farmer flag at the Red Fort. Several Delhi Police personnel had sustained injuries after protesters clashed with them.
Accused of being the 'key conspirator' of the violence, Mr Sidhu was arrested in February 2021. He was later released on bail in April.
In a voluminous chargesheet filed by the Delhi Police Crime Branch against the actor and 15 others, Mr Sidhu was charged with rioting, attempt to murder, criminal conspiracy, dacoity and culpable homicide.
Mr Sidhu was from Punjab's Muktsar district and was a close aide of actor-turned politician Sunny Deol. He was actively involved in the BJP MP's campaign during the 2019 Lok Sabha elections.
However, after his role in the farmers' protests emerged, Sunny Deol disassociated himself from Sidhu, claiming he had "no relation" with the actor-turned-activist.
Farmer leaders too had distanced themselves from Mr Sidhu's actions after the Republic Day violence and had slammed him for defaming their agitation on the BJP's bidding.
His pictures with Prime Minister Narendra Modi went viral during the protests, triggering a controversy surrounding his association with the political party - a claim denied by Mr Sidhu.
Mr Sidhu was also seen campaigning for Shiromani Akali Dal (Amritsar) chief Simranjit Singh Mann for the Punjab election. | english |
<reponame>boustrophedon/actix-net<gh_stars>0
use std::fmt;
use std::marker::PhantomData;
use actix_codec::{AsyncRead, AsyncWrite};
use actix_service::{NewService, Service};
use futures::{future::ok, future::FutureResult, Async, Future, Poll};
use openssl::ssl::{HandshakeError, SslConnector};
use tokio_openssl::{ConnectAsync, SslConnectorExt, SslStream};
use crate::{Address, Connection};
/// Openssl connector factory
pub struct OpensslConnector<T, U> {
connector: SslConnector,
_t: PhantomData<(T, U)>,
}
impl<T, U> OpensslConnector<T, U> {
pub fn new(connector: SslConnector) -> Self {
OpensslConnector {
connector,
_t: PhantomData,
}
}
}
impl<T, U> OpensslConnector<T, U>
where
T: Address,
U: AsyncRead + AsyncWrite + fmt::Debug,
{
pub fn service(
connector: SslConnector,
) -> impl Service<
Request = Connection<T, U>,
Response = Connection<T, SslStream<U>>,
Error = HandshakeError<U>,
> {
OpensslConnectorService {
connector: connector,
_t: PhantomData,
}
}
}
impl<T, U> Clone for OpensslConnector<T, U> {
fn clone(&self) -> Self {
Self {
connector: self.connector.clone(),
_t: PhantomData,
}
}
}
impl<T: Address, U> NewService<()> for OpensslConnector<T, U>
where
U: AsyncRead + AsyncWrite + fmt::Debug,
{
type Request = Connection<T, U>;
type Response = Connection<T, SslStream<U>>;
type Error = HandshakeError<U>;
type Service = OpensslConnectorService<T, U>;
type InitError = ();
type Future = FutureResult<Self::Service, Self::InitError>;
fn new_service(&self, _: &()) -> Self::Future {
ok(OpensslConnectorService {
connector: self.connector.clone(),
_t: PhantomData,
})
}
}
pub struct OpensslConnectorService<T, U> {
connector: SslConnector,
_t: PhantomData<(T, U)>,
}
impl<T: Address, U> Service for OpensslConnectorService<T, U>
where
U: AsyncRead + AsyncWrite + fmt::Debug,
{
type Request = Connection<T, U>;
type Response = Connection<T, SslStream<U>>;
type Error = HandshakeError<U>;
type Future = ConnectAsyncExt<T, U>;
fn poll_ready(&mut self) -> Poll<(), Self::Error> {
Ok(Async::Ready(()))
}
fn call(&mut self, stream: Connection<T, U>) -> Self::Future {
trace!("SSL Handshake start for: {:?}", stream.host());
let (io, stream) = stream.replace(());
ConnectAsyncExt {
fut: SslConnectorExt::connect_async(&self.connector, stream.host(), io),
stream: Some(stream),
}
}
}
pub struct ConnectAsyncExt<T, U> {
fut: ConnectAsync<U>,
stream: Option<Connection<T, ()>>,
}
impl<T: Address, U> Future for ConnectAsyncExt<T, U>
where
U: AsyncRead + AsyncWrite + fmt::Debug,
{
type Item = Connection<T, SslStream<U>>;
type Error = HandshakeError<U>;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
match self.fut.poll().map_err(|e| {
trace!("SSL Handshake error: {:?}", e);
e
})? {
Async::Ready(stream) => {
let s = self.stream.take().unwrap();
trace!("SSL Handshake success: {:?}", s.host());
Ok(Async::Ready(s.replace(stream).1))
}
Async::NotReady => Ok(Async::NotReady),
}
}
}
| rust |
import React from 'react'
import { Form , Button } from 'react-bootstrap'
import "./style.css"
export default function Login() {
return (
<Form className="formBorder">
<Form.Group className="mb-3" controlId="formBasicEmail">
<Form.Control type="email" placeholder="userName" />
</Form.Group>
<Form.Group className="mb-3" controlId="formBasicPassword">
<Form.Control type="password" placeholder="Password" />
</Form.Group>
<Form.Group className="mb" controlId="formBasicCheckbox">
<Button variant="danger" type="submit">
login
</Button>
</Form.Group>
</Form>
)
}
| javascript |
<gh_stars>1-10
export const port = 9200
| typescript |
package gui.imageEditor;
import javax.swing.JFrame;
import java.awt.Toolkit;
/**
*
* @author <NAME>
*/
public class ImageEditorFrame extends JFrame{
public ImageEditorFrame(){
super();
setTitle("Image Editor");
setSize(
(int) Toolkit.getDefaultToolkit().getScreenSize().getWidth(),
(int) Toolkit.getDefaultToolkit().getScreenSize().getHeight() - Toolkit.getDefaultToolkit().getScreenInsets(getGraphicsConfiguration()).bottom
);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setContentPane(new ImageEditorPane());
revalidate();
repaint();
}
}
| java |
package com.vdurmont.emoji;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class EmojiTrie {
final int maxDepth;
private final Node root = new Node();
public EmojiTrie(Collection<Emoji> emojis) {
int maxDepth = 0;
for (Emoji emoji : emojis) {
Node tree = root;
char[] chars = emoji.getUnicode().toCharArray();
maxDepth = addEmoji(maxDepth, emoji, tree, chars);
// Add emoji without variation selector as well
if (emoji.supportsVariation()) {
chars = emoji.getTrimmedUnicode().toCharArray();
maxDepth = addEmoji(maxDepth, emoji, tree, chars);
}
}
this.maxDepth = maxDepth;
}
private int addEmoji(int maxDepth, Emoji emoji, Node tree, char[] chars) {
maxDepth = Math.max(maxDepth, chars.length);
for (char c : chars) {
if (!tree.hasChild(c)) {
tree.addChild(c);
}
tree = tree.getChild(c);
}
tree.setEmoji(emoji);
return maxDepth;
}
/**
* Checks if sequence of chars contain an emoji.
*
* @param sequence
* Sequence of char that may contain emoji in full or partially.
*
* @return
* <ul>
* <li>{@link Matches#EXACTLY} if char sequence in its entirety is an emoji</li>
* <li>{@link Matches#POSSIBLY} if char sequence matches prefix of an emoji</li>
* <li>{@link Matches#IMPOSSIBLE} if char sequence matches no emoji or prefix of an emoji</li>
* </ul>
*/
@NotNull
public Matches isEmoji(char[] sequence) {
return isEmoji(sequence, 0, sequence.length);
}
/**
* Checks if the sequence of chars within the given bound indices contain an emoji.
*
* @param sequence
* Sequence of char that may contain emoji in full or partially.
* @param start
* The starting index
* @param end
* The end index (exclusive)
*
* @throws ArrayIndexOutOfBoundsException
* If the provided range is invalid
*
* @return
* <ul>
* <li>{@link Matches#EXACTLY} if char sequence in its entirety is an emoji</li>
* <li>{@link Matches#POSSIBLY} if char sequence matches prefix of an emoji</li>
* <li>{@link Matches#IMPOSSIBLE} if char sequence matches no emoji or prefix of an emoji</li>
* </ul>
*
* @see #isEmoji(char[])
*/
@NotNull
public Matches isEmoji(char[] sequence, int start, int end) {
if (start < 0 || start > end || end > sequence.length) {
throw new ArrayIndexOutOfBoundsException(
"start " + start + ", end " + end + ", length " + sequence.length);
}
if (sequence == null) {
return Matches.POSSIBLY;
}
Node tree = root;
for (int i = start; i < end; i++) {
if (!tree.hasChild(sequence[i])) {
return Matches.IMPOSSIBLE;
}
tree = tree.getChild(sequence[i]);
}
return tree.isEndOfEmoji() ? Matches.EXACTLY : Matches.POSSIBLY;
}
/**
* Finds Emoji instance from emoji unicode
*
* @param unicode
* unicode of emoji to get
*
* @return Emoji instance if unicode matches and emoji, null otherwise.
*/
@Nullable
public Emoji getEmoji(@NotNull String unicode) {
return getEmoji(unicode.toCharArray(), 0, unicode.length());
}
@NotNull
protected Emoji getEmoji(@NotNull char[] sequence, int start, int end) {
if (start < 0 || start > end || end > sequence.length) {
throw new ArrayIndexOutOfBoundsException(
"start " + start + ", end " + end + ", length " + sequence.length);
}
Node tree = root;
for (int i = 0; i < end; i++) {
if (!tree.hasChild(sequence[i])) {
return null;
}
tree = tree.getChild(sequence[i]);
}
return tree.getEmoji();
}
public enum Matches {
EXACTLY, POSSIBLY, IMPOSSIBLE;
public boolean exactMatch() {
return this == EXACTLY;
}
public boolean impossibleMatch() {
return this == IMPOSSIBLE;
}
}
private class Node {
private Map<Character, Node> children = new HashMap<>();
private Emoji emoji;
private Emoji getEmoji() {
return emoji;
}
private void setEmoji(Emoji emoji) {
this.emoji = emoji;
}
private boolean hasChild(char child) {
return children.containsKey(child);
}
private void addChild(char child) {
children.put(child, new Node());
}
private Node getChild(char child) {
return children.get(child);
}
private boolean isEndOfEmoji() {
return emoji != null;
}
}
}
| java |
Syrian fighter jets on Saturday hit areas in eastern Lebanon for the second time in less than a week, the Lebanese police said.
The jets fired at least six rockets in Wadi Hmeid near the Lebanese border area of Arsaal while hunting for opposition fighters fleeing from the nearby Syrian town of al-Kussair, they added. There were no casualties.
Syrian troops and allied Hezbollah fighters took control of al-Kussair on Wednesday after two weeks of fighting against the rebels seeking to oust Syrian President Bashar al-Assad.
Clashes between Syrian regime forces, backed by Hezbollah, and rebels continued on Saturday on the outskirts of al-Kussair, the Britain-based pro-opposition watchdog Syrian Observatory for Human Rights reported.
Rebels reportedly use al-Kussair as a supply route from Lebanon.
Hezbollah has openly backed the regime of al-Assad in its deadly crackdown on the opposition, raising fears about dragging Lebanon into Syria’s 26-month conflict. | english |
<filename>database/database-user-1558707491201.json
{"totalHistoryAmount":691,"TECNOLOGIA-occurances":269,"TECNOLOGIA-percentage":38.92908827785818,"INSTAGRAM-occurances":218,"INSTAGRAM-percentage":31.54848046309696,"DECORAÇÃO-occurances":18,"DECORAÇÃO-percentage":2.6049204052098407,"ESPORTE-occurances":14,"ESPORTE-percentage":2.0260492040520983,"FACEBOOK-occurances":14,"FACEBOOK-percentage":2.0260492040520983,"MODA-occurances":8,"MODA-percentage":1.1577424023154848,"YOUTUBE-occurances":5,"YOUTUBE-percentage":0.723589001447178,"SEXO-occurances":4,"SEXO-percentage":0.5788712011577424,"ALIMENTAÇÃO E SAÚDE-occurances":3,"ALIMENTAÇÃO E SAÚDE-percentage":0.4341534008683068,"NOTÍCIAS-occurances":3,"NOTÍCIAS-percentage":0.4341534008683068,"POP/ARTE-occurances":3,"POP/ARTE-percentage":0.4341534008683068,"EDUCAÇÃO-occurances":1,"EDUCAÇÃO-percentage":0.1447178002894356,"CARROS-occurances":0,"CARROS-percentage":0,"CIÊNCIA-occurances":0,"CIÊNCIA-percentage":0,"ECONOMIA-occurances":0,"ECONOMIA-percentage":0,"ESOTERISMO-occurances":0,"ESOTERISMO-percentage":0,"FITNESS-occurances":0,"FITNESS-percentage":0,"HUMOR-occurances":0,"HUMOR-percentage":0,"INTERNACIONAL-occurances":0,"INTERNACIONAL-percentage":0,"JOGOS-occurances":0,"JOGOS-percentage":0,"LINKEDIN-occurances":0,"LINKEDIN-percentage":0,"NATUREZA-occurances":0,"NATUREZA-percentage":0,"POLÍTICA-occurances":0,"POLÍTICA-percentage":0,"SÉRIES E FILMES-occurances":0,"SÉRIES E FILMES-percentage":0,"TV E CELEBRIDADES-occurances":0,"TV E CELEBRIDADES-percentage":0,"TWITTER-occurances":0,"TWITTER-percentage":0,"VIAGENS-occurances":0,"VIAGENS-percentage":0} | json |
The top U. N. human rights official renewed his call on Monday for an international probe into possible war crimes committed in Yemen, saying the "outrageous" weekend bombing on a funeral showed that violations continued unpunished.
Zeid Ra'ad al Hussein, United Nations High Commissioner for Human Rights, said in a statement that countries belonging to the U. N. Human Rights Council had contributed to "a climate of impunity" in Yemen by failing to investigate adequately.
The Council last month declined to set up an independent inquiry into abuses in Yemen, where a Saudi-led coalition is battling Shi'ite Houthi fighters and forces loyal to former President Ali Abdullah Saleh.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed. ) | english |
<filename>packages/uuid/src/randomUuidSeed/RandomNumberGenerator/index.ts
export * from './types'
export * from './BrowserGenerator'
export * from './NodeGenerator'
| typescript |
Students across the country would soon be able to watch live telecast of lectures from six IITs and some other top institutions while seated in their living rooms, with the HRD Ministry set to launch 32 Direct-to-Home channels to cater to their needs.
The Department of Space has agreed to allot two transponders on a GSAT series satellite for this ambitious project, while MoUs have been signed with many institutions which will provide lessons and content that will be beamed on these channels.
“The government is focusing on using space technology to expand the reach of high quality education. Through the 32 DTH channels the aim is to ensure that live classrooms can be transmitted from ten ‘Teaching Ends’ out of which six will be IITs located in Chennai, Mumbai, Delhi, Kharagpur, Kanpur and Guwahati,” a senior official told PTI.
Lectures of over a dozen other premier institutions will also reach students on TV and these names are being finalised.
The Ministry is working to ensure that these channels are on air in a couple of months, sources said.
These channels will be freely available on Doordarshan’s FreeDish DTH platform and all that the students will need is a Set Top Box to receive them, an official said.
At a meeting last month, a high-level committee chaired by Director, IIT Gandhinagar, worked out the finer details of operationalising the project. It has recommended that the channels be operationalised by August this year, sources said.
| english |
19 Then the angel of God,(B) who was going in front of the Israelite forces, moved and went behind them. The pillar of cloud moved from in front of them and stood behind them.(C) 20 It came between the Egyptian and Israelite forces. There was cloud and darkness, it lit up the night, and neither group came near the other all night long.
21 Then Moses stretched out his hand over the sea. The Lord drove the sea back with a powerful east wind all that night and turned the sea into dry land. So the waters were divided,(D) 22 and the Israelites went through the sea on dry ground, with the waters like a wall to them on their right and their left.(E)
26 Then the Lord said to Moses, “Stretch out your hand over the sea so that the water may come back on the Egyptians, on their chariots and horsemen.” 27 So Moses stretched out his hand over the sea, and at daybreak the sea returned to its normal depth. While the Egyptians were trying to escape from it, the Lord threw them into the sea.(G) 28 The water came back and covered the chariots(H) and horsemen, plus the entire army of Pharaoh that had gone after them into the sea. Not even one of them survived.
The Christian Standard Bible. Copyright © 2017 by Holman Bible Publishers. Used by permission. Christian Standard Bible®, and CSB® are federally registered trademarks of Holman Bible Publishers, all rights reserved.
| english |
How to Say My house is close to the bank in Kurdish (Kurmanji)
My house is close to the bank in Kurdish (Kurmanji): What's Kurdish (Kurmanji) for My house is close to the bank? If you want to know how to say My house is close to the bank in Kurdish (Kurmanji), you will find the translation here. We hope this will help you to understand Kurdish (Kurmanji) better.
"My house is close to the bank in Kurdish (Kurmanji)." In Different Languages, https://www.indifferentlanguages.com/words/my_house_is_close_to_the_bank/kurdish_%28kurmanji%29. Accessed 08 Oct 2023.
Check out other translations to the Kurdish (Kurmanji) language:
| english |
import React from "react";
import { makeStyles } from '@material-ui/core/styles';
import { List } from '@material-ui/core';
import { ListItem } from '@material-ui/core';
import EventIcon from '@material-ui/icons/Event';
import DescriptionIcon from '@material-ui/icons/Description';
import VideoLibraryIcon from '@material-ui/icons/VideoLibrary';
import CollectionsIcon from '@material-ui/icons/Collections';
import MapIcon from '@material-ui/icons/Map';
import { Link } from '@material-ui/core'
const useStyles = makeStyles(theme => ({
root: {
position: 'fixed',
top:'15%',
right: '3%',
width: '100%',
maxWidth: '3rem',
backgroundColor: 'rgba(0,0,0,0)',
['@media (max-width:1020px)']: {
top: '30%',
},
['@media (max-width:490px)']: {
right: '1%',
}
},
icon: {
width: '1.5em',
height: '1.5em',
color: '#237ad7',
transition: 'all 0.3s',
'&:hover' : {
width: '1.7em',
height: '1.7em',
color: '#a0cdfe',
}
}
}));
export default function Navigation() {
const classes = useStyles();
return (
<div className={classes.root}>
<List component="nav" aria-label="main mailbox folders">
<ListItem button>
<Link href='#timeline'>
<EventIcon className={classes.icon} />
</Link>
</ListItem>
<ListItem button>
<Link href='#works'>
<DescriptionIcon className={classes.icon} />
</Link>
</ListItem>
<ListItem button>
<Link href='#video'>
<VideoLibraryIcon className={classes.icon} />
</Link>
</ListItem>
<ListItem button>
<Link href='#gallery'>
<CollectionsIcon className={classes.icon} />
</Link>
</ListItem>
<ListItem button>
<Link href='#map'>
<MapIcon className={classes.icon}/>
</Link>
</ListItem>
</List>
</div>
);
} | javascript |
header {
text-align: center;
}
@import url(https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic);
html,
body {
background-color: #faf6f6;
}
.container {
margin-top: 50px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
color: rgb(230, 78, 78);
width: 60%;
background-color: rgb(225, 241, 185);
border-radius: 5px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.container:hover {
box-shadow: 16px 16px 16px 0 rgba(221, 13, 13, 0.2);
color: rgb(156, 39, 176);
}
.card {
border-radius: 5px 5px 0 0;
}
.container {
padding: 2px 16px;
}
.search1 input {
width: 50px;
height: 50px;
/* Center vertically and horizontally */
position: relative;
top: 50%;
left: 40%;
margin: -25px 0 0 -25px;
}
#search {
background-color: rgb(156, 39, 176);
border-radius: 8px;
color: #ffffff;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 20px;
padding: 6px 30px;
margin: 20px 20px 5px 5px;
position: relative;
top: 50%;
left: 40%;
}
input[type=text] {
width: 130px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
font-size: 16px;
background-color: white;
padding: 12px 20px 12px 5px;
transition: width 0.4s ease-in-out;
}
input[type=text]:focus {
width: 20%;
}
.frame {
position: relative;
height: 1000px;
width: 100%;
}
.con {
background: rgb(248, 242, 242);
}
.lbl {
position: relative;
top: 50%;
left: 40%;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: large;
color: rgb(156, 39, 176);
text-decoration: none;
}
/* Tablet Landscape */
@media screen and (max-width: 1060px) {
#primary {
width: 67%;
}
#secondary {
width: 30%;
margin-left: 3%;
}
}
/* Tabled Portrait */
@media screen and (max-width: 768px) {
#primary {
width: 100%;
}
#secondary {
width: 100%;
margin: 0;
border: none;
}
}
@media (min-device-width:600px) {
img[data-src-600px] {
content: attr(data-src-600px, url);
}
}
@media (min-device-width:800px) {
img[data-src-800px] {
content: attr(data-src-800px, url);
}
} | css |
I am petitioning to get proper legislation, regulation and monitoring of the professional Dog Walking community in Scotland.
I personally live in Glasgow and am a professional dog walker myself. The things I have seen recently have been very concerning. I have personally witnessed 10 dogs of all breeds and sizes come out the back of a very small yellow car, as well as 15 dogs come out a Kangoo (very small van) that had no proper ventilation or crating.
I am petitioning that the local councils recognise the danger of this unregulated community where there are no guidelines or protocols. I am hoping they bring in a maximum that can be walked at the one time by one dog walker, as well as safe transport regulations, eg dogs having their own secured crates (sharing only for those from the same home).
There NEEDS to be regulation sooner rather than later, before we lose more dogs lives to the greed of those not doing it properly.
| english |
<reponame>zzllrr/zzllrrMather
/*
* zzllrr Mather
* <EMAIL>
* Released under MIT License
*/
culture['Video Game/Interactive Art']=Table([i18(ZLR('Name Type Summary'))],[
[href(H+'www.whitevinyldesign.com/solarbeat/','Solar Beat'),gM('Solar System Sound'),'by White Vinyld'],
[href(H+'www.rememberspook.com','Solace'),gM('Animated Film'),'Solace is an interactive, animated film by <NAME> based on celebrated science fiction writer <NAME>’s short story about a near future in which marketing and addiction are disturbingly intertwined.'+br+
href(Hs+'nexusstudios.com/work/interactive/','Nexus Studios')],
],'TBrc');
| javascript |
<gh_stars>0
{
"actors": [
"European Union",
"Group of 77",
"Alliance of Small Island States"
],
"countries": [
"Canada",
"Bangladesh",
"Mexico",
"France",
"United States",
"China",
"Russian Federation",
"Japan",
"Norway"
],
"enb_end_date": "09-Dec-05",
"enb_long_title": "Eleventh session of the Conference of the Parties to the Climate Change Convention and first meeting of the Parties to the Kyoto Protocol",
"enb_short_title": "UNFCCC COP 11 and COP/MOP 1",
"enb_start_date": "28-Nov-05",
"enb_url": "http://www.iisd.ca/vol12/enb12291e.html",
"id": "enb12291e_92",
"section_title": "THREE PARALLEL CONSULTATIONS",
"sentences": [
"Informal discussions on future action and commitments, which went very late into the night from 7-9 December, were held in three separate groups, one on Protocol Article 3.9 (future commitments), one on Protocol Article 9 (review of the Protocol), and one on President Dion\u0092s proposal for action under the Convention.",
"Each group\u0092s discussions were dependent on progress made in the other groups, and it was clear that if there was to be an outcome, that it would be a 'package deal.",
"' On Thursday night, 8 December, the contact group on Article 3.9 reached agreement on a decision, conditional to progress in the discussions under the UNFCCC framework and Protocol Article 9.",
"Later that night, all three issues were addressed as a 'package' in a high-level informal group.",
"The US walked out of discussions early in the night, expressing concerns about the nature and direction of the process.",
"However, the group deliberated into the early hours of the morning, and parties agreed, without the US, to a draft decision on a dialogue on long term action. On Friday morning, 9 December, the US offered a counter-proposal to Dion\u0092s text and informal discussions continued all day.",
"The US proposal was presented as a 'take it or leave it' offer, based on Dion\u0092s text, which strengthened references to technology and stated that the process should be 'non-binding' and 'not open any negotiations leading to new commitments.",
"' After lengthy discussions, a draft COP/MOP decision on Article 3.9, and a revised draft COP decision on dialogue on long-term cooperative action to address climate change by enhancing implementation of the Convention, were circulated at 2:47 am on Saturday, 10 December.",
"The Russian Federation raised concerns that the draft decision on Article 3.9 lacked provisions for voluntary commitments.",
"The G-77/China, the EU, Japan, Mexico, AOSIS and many others said that Article 3.9 was not the proper place to address voluntary commitments.",
"The EU, Norway, Bangladesh, France and others expressed gratitude to the Russian Federation for ratifying the Protocol, and urged the Russian Federation to accept the draft decision on Article 3.9.",
"China, Canada and several others suggested adopting the draft decision and addressing the Russian Federation\u0092s concerns in a different format or at a later date. Informal discussions resumed at 4:28 am, and at 5:53 am a package agreement was reached.",
"The COP/MOP agreed to include in the session report wording on the Russian Federation\u0092s concerns and to invite parties to submit views on Article 9.",
"At 5:57 am, the COP/MOP adopted a decision on Article 3.9 and at 6:03 am the COP adopted a decision on dialogue on long-term cooperative action to address climate change by enhancing the implementation of the Convention. While there was no separate text issued on Protocol Article 9, parties agreed to President Dion\u0092s proposal to include in the report of the meeting an invitation for parties to submit relevant information and views on how best to proceed under Article 9, by September 2006."
],
"subtype": "",
"topics": [],
"type": ""
} | json |
Oppo is reportedly working on a new fast-charging solution. The company is expected to launch a 300W SuperVooc fast charger. If launched, the charger will be tied with the Redmi 300W Immortal Second Charger as the fastest smartphone charger in the market. This year has seen an invasion of smartphone manufacturers racing to offer the most recent and fastest charging methods alongside their new handsets. Some of these companies are currently developing and planning to deliver faster charging options. Infinix also recently launched a new 260W All-Round FastCharge charging system, which is currently the second-fastest in the market, along with a 110W Wireless All-Round FastCharge solution.
According to a Weibo post by reliable tipster Digital Chat Station, Oppo is working on a 300W SuperVooc fast charging system paired with a 4,450mAh battery (4,600mAh battery typical). The charger is expected to launch within the year.
Redmi also recently launched the 300W Immortal Second Charger, which claims to completely charge a smartphone in five minutes. According to the company, with this charging technique, a 4,100mAh battery can be charged to 10 percent in 43 seconds, 50 percent in two minutes and 13 seconds, and 100 percent in five minutes. The company also stated that this is not a brand-new technology, but rather a modification of one found on a Redmi Note 12 Pro+ model, which is backed by a 4,980mAh battery.
The Redmi Note 12 Discovery Edition, which is only available in China, is Xiaomi's quickest charging smartphone to date. It provides 210W charging and claims to totally charge the device in around 10 minutes.
Infinix also recently launched a 260W All-Round FastCharge charging system, along with a 110W Wireless All-Round FastCharge solution. Infinix GT 10 Pro is expected to launch with the new 260W charging system soon. The smartphone is expected to pack a 5,000mAh battery unit.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
# SSHTTP
This provides a client and server for getting around SSH restrictions by tunnelling the connection over HTTPS.
This works pretty simply:
* Destination server:
* Listens for websockets
* Forwards connected traffic to local SSH port
* Client:
* Listen for net connetion on a port
* Forwards to destination server
A sample setup might be:
Server:
```bash
sshttp --certPath=./ --listenOn="127.0.0.1:62528" --forwardTo=22 --clientAuth=false
```
Note that the above requires certPath to have the certificate files:
* server.crt
* server.key
There are also a few optional flags:
* --clientAuth=false prevents having to validate a client TLS certificate
* --aclConfigPath that can point to a YAML file that has a list of allow ACLs in it. See the code for how the file is layed out.
* --httpACLS=true will move the ACL checking from the net connection to after HTTP has been established. This has the benefit of using the "X-Forwarded-For" and "X-Real-Ip" headers to handle connections over a web proxy. The disadvantage is that a TLS connection will be established before the ACL is consulted, allowing for a slight extra bit of discovery on a security scan.
Client:
```bash
client_proxy --proxy="127.0.0.1:62528" --insecure
```
There are also a few optional flags:
* --insecure can be used if you don't want to validate the server's certificate.
* --tlsPath points to a directory where client.crt and client.key would be located. This is needed if the server has --clientAuth=true set.
* --config points to a YAML config file where you can setup mulitple proxy endoints. See the code in `client_proxy.go` for the format.
To connect via SSH, you can simply do:
```bash
ssh user@127.0.0.1 -p 25001
```
If the client proxy is on port 25001, it would forward the SSH traffic to the remote proxy which would connect you to the SSH daemon.
## Issues
### Key changes
Since you are SSHing to a local IP address (you should use 127.0.0.1 or ::1), if you record a fingerprint and then change the remote endpoint pointed at by the local host:port combination, you will get:
```bash
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:wVACvS3hlG439Ab5Gby8OOuuTUBAwgkejtJiUQ6L/ZE.
Please contact your system administrator.
Add correct host key in /Users/whoever/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/whatever/.ssh/known_hosts:46
Host key for [127.0.0.1]:25001 has changed and you have requested strict checking.
Host key verification failed.
```
This is fine if that is the case, you simply need to remove the fingerprint from the `known_hosts` file.
## Why? and hasn't this been done before?
I like to build stuff, and yeah, you can do this in other ways. Linux has proxytunnel that you can link with Apache to do it. I didn't spend a lot of time looking, but I'm sure we could come up with some clever ways to use existing things.
I wanted something portable (this client and server will run on any OS) and as you can see with my repos, I like to play with stuff. This could used as the basis of a robust service that gives access to cloud resources with two-factor auth, a secure access service and secure client machine certificate auth. So you could auth the machine then auth the user. This is kinda what Google does with their GFE/Uberproxy(also called AccessProxy) stuff. They secure the machine with a certificate and the user can use that cert + password to retrieve another cert that allows you to do work for 23 hours.
## Why is there a fork of net/http and github.com/nhooyr/websocket ?
I wanted to do ACLs at the net.Listener. This is convienent because then I can allow a TCP health check to complete, but not give access to the TLS headers.
This means I can block non-approved connections to prevent them from reading the TLS headers. The less information for an unauthorized user, the better. And if I am behind a load-balancer, it doesn't need more information unless I want to allow it to have it. Simply make the health check.
Unfortunately, http.Server exits serving if the net.Listener.Accept() call returns an error and the error isn't a net.Error with .Temporary() == true.
Now I know what you are thinking, just return your own temporary error. Great idea, except it stalls server listening for up to 1 second. Basically I'd be DOSing myself if anyone moderately attacked.
And because websocket relies on things like http.Request/http.Response, now it needs to be patched. The "replace" directive didn't help here. So it was imported and modified for new import paths.
You might be thinking, apply ACLs based on IP at the server (aka the kernel). I could do that or use some ebpf rules.
But this gives flexability. You can do no ACLs, ACLs at the server (choose your flavor), ACLs in the application or ACLs in both.
## Notes
* Note: This seems to work great, but it is pretty bare bones.
* Note: The goal of this is to forward SSH, but in fact it should proxy anything.
* Note: This repo doesn't honor any compatability of imports from this package to another package at this time.
## Future stuff
These are all maybe things:
* client ability to reload config file on changes and add/shutdown listeners
| markdown |
<gh_stars>1-10
# ashgraph
Active Sesssion Grapher for Oracle EE
Example:

## Description
Oracle EE+DiagPackのgv$active_session_historyからOEMの平均アクティブセッションのようなグラフを作成するスクリプトです。
たくさんのDBのグラフを並べて表示させたく、作成しました。
グラフはpng形式イメージで出力されます。
## Requirement
Solaris11(x86)上のPerl5.12 + GD::Graph 1.54 + sqlplus(11.2)で動作確認済です。
Perl5にGD::Graph, File::Basename, Cwd, Getopt::Std, strictおよび、これらの前提ライブラリがインストールされている事と、
sqlplusにパスが通っていることと、接続先DBがtnsnames.oraに登録されている必要があります。
## Usage
Usage: ashgraph.pl [-options] DBServiceName User Password
Options:
-b : バックグラウンドプロセスを含める
-c core : Oracle10gでは、CPUコア数を取得できないため、これを使います。 11g以降は自動取得される為、指定不要です。
-d hour : 時間の表示範囲 規定値:1時間
: (hashgraphの場合は、日 : 既定値: 7日)
-f filename : 出力ファイル名 規定値:ashgraph_DBID_DBNAME_INSTANCENAME.png
-p directory : 出力先ディレクトリ 規定値:./
-i inst_id : インスタンス番号 (RAC用)
-s skip : Xラベルのスキップ間隔 規定値:15
-h pixel : イメージの高さ 規定値:135
-w pixel : イメージの幅 規定値:500
-y value : Y座標の最大値 規定値:自動
-L : 凡例を表示しない
-T : タイトルを表示しない
-? : Help
## Install
インストール作業は必要ありませんが、SQLファイルを出力するため、実行ユーザが書き込みできるディレクトリで実行して下さい。
## hashgraph.plについて
hashgraph.plはgv$active_session_historyではなく、dba_hist_active_sess_historyを元にした一時間平均の一週間分のグラフを生成します。こちらは期間(-d)は日単位で指定します。
diffしていただければわかりますが、ほぼ同じものです。色々迷っているため、暫定的に分けました。
| markdown |
On 17th December 2020, Prithvi Shaw and Mayank Agarwal strode out to the Adelaide Oval, hoping to give India the ideal start in their maiden away pink-ball Test. The former took strike and stood toe-to-toe against Mitchell Starc, which considering the Australian’s pink-ball prowess, was a task in itself.
The first delivery saw Starc angle the ball away from Prithvi Shaw, who despite minimal foot movement, got into position and jabbed the ball into the off side. The second one though, had a slightly different outcome. Not just on that game, but also on Prithvi Shaw’s psyche.
Incidentally, after the opening ball, Ricky Ponting, who was on commentary and also happens to be Prithvi Shaw’s coach at the Delhi Capitals, envisioned exactly how Starc would account for the batsman. To put things into context, Ponting suggested that the bowler might look to shape the ball into Prithvi Shaw, which would expose his tendency of playing away from the body.
Rather damningly, that very narrative transpired as Starc got one to swing late into the batsman. Prithvi Shaw, as had become the norm then, only got a half-stride forward and stabbed at the ball. Unsurprisingly, the ball took a major chunk of the inside edge before clattering into the stumps.
An inning later, Prithvi Shaw’s weaknesses were laid bare for everyone to witness. Though Pat Cummins was the beneficiary, the mode of dismissal was pretty similar. Shaw had not committed enough to the front foot and had wafted without any foot movement or shape, meaning that the ball, which seamed into the batsman, flattened off stump.
Thus, at that juncture, there was considerable skepticism around Prithvi Shaw’s ability to adapt to international surroundings. In fact, several even quipped that he was an overrated batsman and one that had no future with the national side.
A few months down the line though, those notions have changed significantly. Not just because he has set the domestic stage alight since, but also because he passed his first IPL 2021 test with flying colours.
Though it might again be a bit premature to label one knock as the renaissance of Prithvi Shaw, there was certainly enough evidence to suggest that that might be the case.
For much of his international career, Prithvi Shaw has represented a batsman who can’t control his natural instinct of going searching for the ball. At times, it has meant that he has played in front of his front pad, which coupled with his back-lift, has spelled doom.
Even in the solitary Test against Australia, the bat came from the gully region and by the time he could straighten it and meet the ball, he had already heard the death rattle. Against the Chennai Super Kings on 10th April though, he seemed to rein in those habits.
For starters, he began playing the ball much closer to his body – something that automatically negated the gap that was being created. The tweak in technique also allowed him to play the ball late – again, something that reduced the margin for error as he played the square drive efficiently.
Another major change in his technique revolved around his trigger movements. For large swathes of his international career, he has deployed a shuffle where the back foot goes towards leg stump, thereby increasing the distance between the body and where he ended up playing his strokes. Though that helped him run riot through the off side, it also made him susceptible to the incoming delivery.
Against CSK, there seemed to be a concerted effort to go back and across, with Prithvi Shaw often finishing his trigger on middle and off stump. In the process, he was a lot closer to the ball and inevitably, played it much nearer to his body.
Additionally, the early shift across his stumps enabled him to establish a solid base, just after the bowler released the ball. Back in 2020, the movement, which anyway was towards leg stump, happened a lot later, meaning that he played countless deliveries ‘on the move’. Or, in simpler terms, when his front foot was not stationary.
Subsequently, his weight always seemed to be on the back foot – something that became detrimental against the swinging ball. And, when he tried to drive from that position, it became a proposition fraught with extreme danger. Now, though, with much better balance, he is able to access both sides of the wicket.
Thus, it seems that Prithvi Shaw has come a long way since that gut-wrenching performance Down Under. At that point, he seemed anything but an international cricketer. However, with a fantastic domestic season under his belt, he seems to be worth every bit of the hype that he generated prior to his international bow.
To be fair to Prithvi Shaw, he was perhaps thrust into the deep end rather rapidly. Maybe, at that juncture, he wasn’t ready to tackle the trials and tribulations of the international stage, let alone Test cricket.
Yet, the past few months have proven that even the most talented of individuals need a bit of time away from the glare. Or simply, a period where they can work when no one is watching so that when they return, they can have a billion eyeballs trained on them, all over again.
Much of the Indian cricket-watching population has been guilty of jumping the gun on Prithvi Shaw, whether it was his introduction to the Indian fold or his heartbreaking omission. (a term Prithvi Shaw himself used). Hence, it might be a sliver more prudent to just let him enjoy the purple patch he has fashioned for himself.
If he manages to prolong it throughout IPL 2021, he might offer India an excellent selection headache. And, then, maybe that dreadful outing against Australia at the Adelaide Oval might remain an aberration, rather than the norm that plenty had predicted at the time.
If not, there might again be questions over his temperament and his tenability to grit things out, especially when the odds are stacked against him.
For now, it seems highly likely that Prithvi Shaw 2. 0 is here to stay, both for the Delhi Capitals and prospectively, the Indian cricket team. And, years after being touted as the next Indian superstar, he might just have the world at his feet, all over again. | english |
const errorHandlerMiddleware = (err, req, res, next) => {
let customError = {
statusCode: err.statusCode || 500,
msg: err.message || "Something went wrong, try again latter "
};
//console.log(err.message);
if (err.name === "ValidationError") {
customError.msg = Object.values(err.errors)
.map(item => {
return item;
})
.join(", ");
customError.statusCode = 400;
}
if (err.code && err.code === 11000) {
customError.msg = `Duplicate value entered for ${Object.keys(err.keyValue)} field please choose another value`;
customError.statusCode = 400;
}
if (err.name === "CastError") {
customError.msg = `No item found with id ${err.value}`;
customError.statusCode = 404;
}
if (err.name === "JsonWebTokenError" && err.message === "jwt malformed") {
(customError.statusCode = 401), (customError.msg = "Authentication failed");
}
return res.status(customError.statusCode).json({ msg: customError.msg });
};
module.exports = errorHandlerMiddleware;
| javascript |
import logging
from reportportal_client.helpers import gen_attributes
from .variables import Variables
from .model import Keyword, Test, Suite, LogMessage
from .service import RobotService
class DryRunRP:
def __init__(self, verbose=False):
self._logger = logging.getLogger('RP(DRYRUN)')
if verbose:
self._logger.setLevel(verbose)
def __getattr__(self, name):
def method(*args):
self._logger.debug("call to " + name)
return method
class ReportPortal:
def __init__(self, verbose=False):
self.items = []
self._logger = logging.getLogger('RP')
if verbose:
self._logger.setLevel(verbose)
def _gen_attributes_from_robot_tags(self, tags):
attrs = []
for tag in tags:
attrs.append({'value': tag})
return attrs
def start_launch(self, launch):
"""Start a new launch at the Report Portal."""
if not Variables.launch_id:
launch.doc = Variables.launch_doc
self._logger.debug("ReportPortal - Start Launch: {0}".format(
launch.attributes))
RobotService.start_launch(
launch_name=Variables.launch_name,
start_time=launch.start_time,
attributes=gen_attributes(Variables.launch_attributes),
description=launch.doc)
else:
RobotService.rp.launch_id = Variables.launch_id
def start_suite(self, name, attributes):
suite = Suite(attributes=attributes)
if suite.robot_id == "s1":
RobotService.init_service(Variables.endpoint, Variables.project,
Variables.uuid)
self.start_launch(suite)
if not suite.suites:
attributes['id'] = "s1-s1"
self.start_suite(name, attributes)
else:
self._logger.debug("ReportPortal - Start Suite: {0}".format(attributes))
parent_id = self.items[-1][0] if self.items else None
item_id = RobotService.start_suite(
name=name,
start_time=suite.start_time,
suite=suite,
parent_item_id=parent_id)
self.items.append((item_id, parent_id))
def end_suite(self, _, attributes):
suite = Suite(attributes=attributes)
if suite.robot_id == "s1":
self._logger.debug(msg="ReportPortal - End Launch: {0}".format(attributes))
RobotService.finish_launch(launch=suite, end_time=suite.end_time)
RobotService.terminate_service()
else:
self._logger.debug("ReportPortal - End Suite: {0}".format(attributes))
RobotService.finish_suite(item_id=self.items.pop()[0], end_time=suite.end_time, suite=suite)
def start_test(self, name, attributes):
test = Test(name=name, attributes=attributes)
self._logger.debug("ReportPortal - Start Test: {0}".format(attributes))
parent_item_id = self.items[-1][0]
self.items.append((
RobotService.start_test(
test=test,
start_time=test.start_time,
parent_item_id=parent_item_id,
attributes=gen_attributes(Variables.test_attributes) + self._gen_attributes_from_robot_tags(test.tags),
),
parent_item_id))
def end_test(self, name, attributes):
test = Test(name=name, attributes=attributes)
item_id, _ = self.items.pop()
self._logger.debug("ReportPortal - End Test: {0}".format(attributes))
RobotService.finish_test(item_id=item_id, end_time=test.end_time, test=test)
def start_keyword(self, name, attributes):
parent_type = 'SUITE' if not self.items else 'TEST'
parent_item_id = self.items[-1][0] if self.items else None
kwd = Keyword(name=name, parent_type=parent_type, attributes=attributes)
self._logger.debug("ReportPortal - Start Keyword: {0}".format(attributes))
self.items.append((
RobotService.start_keyword(keyword=kwd, start_time=kwd.start_time, parent_item_id=parent_item_id,
has_stats=False),
parent_item_id))
def end_keyword(self, name, attributes):
kwd = Keyword(name=name, attributes=attributes)
item_id, _ = self.items.pop()
self._logger.debug("ReportPortal - End Keyword: {0}".format(attributes))
RobotService.finish_keyword(item_id=item_id, end_time=kwd.end_time, keyword=kwd)
def log_message(self, message):
# Check if message comes from our custom logger or not
if isinstance(message["message"], LogMessage):
msg = message["message"]
else:
msg = LogMessage(message["message"])
msg.level = message["level"]
if "attachment" in message:
msg.attachment = message["attachment"]
msg.item_id = self.items[-1][0]
self._logger.debug("ReportPortal - Log Message: {0}".format(message))
RobotService.log(message=msg, log_time=message["timestamp"])
def message(self, message):
self._logger.debug("ReportPortal - Message: {0}".format(message))
def library_import(self, name, attributes):
self._logger.debug("ReportPortal - Library Import: {0}".format(attributes))
def resource_import(self, name, attributes):
self._logger.debug("ReportPortal - Resource Import: {0}".format(attributes))
def variables_import(self, name, attributes):
self._logger.debug("ReportPortal - Variables Import: {0}".format(attributes))
def output_file(self, path):
self._logger.debug("ReportPortal - Output File: {0}".format(path))
def log_file(self, path):
self._logger.debug("ReportPortal - Log File: {0}".format(path))
def report_file(self, path):
self._logger.debug("ReportPortal - Report File: {0}".format(path))
def xunit_file(self, path):
self._logger.debug("ReportPortal - XUnit File: {0}".format(path))
def info_file(self, path):
self._logger.debug("ReportPortal - info File: {0}".format(path))
| python |
In 2023 alone, Zerodha admitted to at least eight technical glitches with issues varying from those relating to login on the Kite app, display of orders and positions as well as order placements. To minimize the impact of any potential issues, he said they have made significant architectural changes over the years.
“Some of our users were facing issues with logging into Kite web and adding instruments to the marketwatch. These issues are resolved. We regret the inconvenience caused,” the broking firm said in its tweet.
As per various reports, professionals have been encountering issues with site for a year now. It all started when MCA and LTIMindtree (which maintains the portal) shifted to a new version of the portal, called Version 3 (or V3).
Twitter engineers and experts have been warning that the platform is at an increased risk of fraying since Musk fired most of the people who worked on keeping it running. Just last month, a bug left users unable to send tweets.
HDFC Bank users on Tuesday complained about the bank's servers being down, saying that they could not access netbanking or mobile app services. Some users complained on the day that they were not able to access the services for over two hours. While HDFC Bank did not acknowledge the problem, it did aplogise for the 'inconvenience' caused.
Elon Musk on Saturday said that Twitter's "open source" algorithm will be revealed next month, as several people were unable to use third-party Twitter apps and faced issues with logging and accessing feeds.
There's an issue from Clearing Corporation of India, an online platform that provides clearing and settlement for transactions for securities, and they are trying to resolve it, a trader at a state-run bank said.
On Tuesday, WhatsApp, the popular messaging app, suddenly stopped working for everyone across various countries. Users saw many error messages while accessing the app; some even complained of being unable to connect to the server. However, the issue has been fixed by WhatsApp.
With the taxpayers complaining about issues with the new e-filing portal this year as well, are there any chances of the income tax department extending the ITR filing deadline this year as well? Further, as per income tax experts so far, very few taxpayers have filed their tax returns, and the majority (more than 6 crore taxpayers) are yet to do it.
It could not be ascertained what was the glitch that was causing this issue, though a few users said the issue was going on since a “few hours.” It could not be ascertained how many ICICI Bank customers were impacted due to the downtime.
The figures indicate that Infosys has been able to fix most of the IT portal glitches that taxpayers encountered since the new website went live in June. The company says it remains committed to making rapid progress on the website.
The much-touted new income tax portal 'www.incometax.gov.in' had a bumpy start from the day of its launch on June 7 as it continued to face tech glitches, which prompted finance minister Nirmala Sitharaman to call a meeting on June 22 with officials of Infosys which has developed the new website.
The platform now has over 1.13 crore people registrations, with 55 lakh having registered in the three hours since CoWin opened for people over 18, said RS Sharma, chairman of the empowered group for Covid-19 vaccine administration.
EC is one of the most sought after papers as property buyers and bankers rely on them to ascertain ownership. Owners can get e-khatas for their properties only if they furnish EC copies to BDA, BBMP, other municipal bodies and panchayat bodies.
Taxpayers have complained of GSTN portal slowdown, login error or auto logout, non-delivery of OTP or delayed OTP, network error or gateway timeout, OTP issues on email or on a few domains, open file error, and GSTR-9C document not uploading, among other issues while filing returns.
| english |
<reponame>cafesk8/nette-pdf
{
"name": "cafesk8/nette-pdf",
"description": "Simple management of PDF generation in Nette app using mPDF",
"type": "library",
"keywords": [
"pdf",
"mpdf",
"nette"
],
"license": ["BSD-3-Clause"],
"authors": [
{
"name": "<NAME>",
"homepage": "http://github.com/vojtech-dobes"
},
{
"name": "dotBlue",
"homepage": "http://dotblue.net"
}
],
"support": {
"issues": "https://github.com/dotblue/nette-pdf/issues",
"source": "https://github.com/dotblue/nette-pdf"
},
"require": {
"mpdf/mpdf": "~7.1",
"nette/application": "~2.4",
"nette/di": "~2.4",
"nette/utils": "~2.4"
},
"autoload": {
"classmap": ["src/"]
}
}
| json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.