instruction
stringlengths 24
266
| response
stringlengths 73
12.8k
| score
int64 4
5
|
---|---|---|
Explain what an Ascii character is, why there were multiple versions, and explain unicode.
|
ASCII has 128 code points, 0 through 127. It can fit in a single 8-bit byte, the values 128 through 255 tended to be used for other characters. With incompatible choices, causing the code page disaster. Text encoded in one code page cannot be read correctly by a program that assumes or guessed at another code page.
Unicode came about to solve this disaster. Version 1 started out with 65536 code points, commonly encoded in 16 bits. Later extended in version 2 to 1.1 million code points. The current version is 6.3, using 110,187 of the available 1.1 million code points. That doesn't fit in 16 bits anymore.
Encoding in 16-bits was common when v2 came around, used by Microsoft and Apple operating systems for example. And language runtimes like Java. The v2 spec came up with a way to map those 1.1 million code points into 16-bits. An encoding called UTF-16, a variable length encoding where one code point can take either 2 or 4 bytes. The original v1 code points take 2 bytes, added ones take 4.
Another variable length encoding that's very common, used in *nix operating systems and tools is UTF-8, a code point can take between 1 and 4 bytes, the original ASCII codes take 1 byte the rest take more. The only non-variable length encoding is UTF-32, takes 4 bytes for a code point. Not often used since it is pretty wasteful. There are other ones, like UTF-1 and UTF-7, widely ignored.
An issue with the UTF-16/32 encodings is that the order of the bytes will depend on the endian-ness of the machine that created the text stream. So add to the mix UTF-16BE, UTF-16LE, UTF-32BE and UTF-32LE.
Having these different encoding choices brings back the code page disaster to some degree, along with heated debates among programmers which UTF choice is "best". Their association with operating system defaults pretty much draws the lines. One counter-measure is the definition of a BOM, the Byte Order Mark, a special codepoint (U+FEFF, zero width space) at the beginning of a text stream that indicates how the rest of the stream is encoded. It indicates both the UTF encoding and the endianess and is neutral to a text rendering engine. Unfortunately it is optional and many programmers claim their right to omit it so accidents are still pretty common.
| 4 |
Erklär mir bitte die unterschiedlichen Bedeutungen von "warum", "weshalb" und "wieso".
|
Es gibt im heutigen Deutschen keinen semantischen Unterschied zwischen den drei Frageadverbien (genauer: Kausalfrageadverbien) warum, weshalb und wieso. Die drei Wörter sind also Synonyme und somit beliebig gegeneinander austauschbar.
Wenn man sehr feinsinnig ist, könnte man im Ursprung der drei Wörter folgende Unterscheidung finden:
* warum als Frage nach dem Grund oder dem Motiv
Warum freut sich die Frau?
Weil sie im Lotto gewonnen hat.
* wieso als Frage nach der Ursache
Wieso fällt ein Apfel auf den Boden?
Weil er der Schwerkraft ausgesetzt ist.
* weshalb als Frage nach dem Zweck
Weshalb besucht er die Schule?
Weil er etwas lernen möchte.
Etymologie
* warum
bezeugt im Althochdeutschen wār umbe über Mittelhochdeutschen warumbe aus wār wo und umbe um. Gleichgestellt zu worum; Quelle: Grimmsches Wörterbuch
* wieso
Übertragung aus dem lateinischen qui sic? → wie so? alt. Ital. per che?, modern Ital.: perché? = per che ragione? ("aus welchem Grund"); Quelle: Grimmsches Wörterbuch
* weshalb
aus welchem Grunde – Verschmelzung der Präposition halb(en) (wegen) mit dem vorangestellten Genitiv des Pronomens was; Quelle: Grimmsches Wörterbuch
Allerdings sind die Grenzen zwischen den Begriffen häufig verwischt und in der Alltagssprache wird diese Unterscheidung kaum wahrgenommen.
| 4 |
I am getting married this year. How would you suggest that we begin our journey?
|
Wishing you all of the love and happiness! To plan a wedding, here are some steps that you can start with:
1. Daydream about your day.
Plan a “meeting” with your partner. Before the meeting, both of you should prepare at least two inspiration images and your ideas for the following: location, theme, colors, food and activities.
2. Set your budget.
3. Bring in backup.
When it comes to learning how to plan a wedding, the most important step is realizing that you and your partner can’t do it alone.
* Hire a wedding planner.
* Ask for help from family and friends.
* Utilize technology and resources.
4. Choose a wedding date as soon as you can.
5. Pick your wedding party.
Maid of honor. Best man. Groomsmen and women. Bridesmaids and bridesmen. Decide who among your close friends and family you want to be with you throughout your wedding.
6. Build your guest list.
A good way to start sorting who you want to invite is by going through the contact list on your phone, as well as who you’re following/interacting with on your most-used social media platforms.
7. Choose your wedding ceremony location.
8. Choose your wedding venue.
Popular wedding venue types include: barn, farm, garden, park, vineyard, vintage, beach and hotel/resort.
9. Decide on the wedding’s theme, decor, and details.
Here are a variety of popular themes, with decor and color ideas to match:
* Romantic.
* Formal.
* Winter/holiday.
* Rustic.
* Nature-inspired.
10. Choose your wedding invitations.
It’s traditional to send out cardstock invites, and it’s lovely to have a hardcopy invite to frame after the wedding.
11. Research vendors.
If you’re planning the wedding yourself, vendors you’ll likely consider include: musician for the ceremony, DJ/band for the reception, photographer, videographer, catering service, hair/makeup, florist and officiant.
12. Figure out what you’re going to wear.
13. Choose the food and beverage for your wedding reception.
14. Plan the before and after events.
As usual, the particulars depend on the size of your wedding, the logistics, and the complexity of the ceremony. These are the events you may prepare or need time for beyond the wedding:
* Bachelor and bachelorette parties.
* Rehearsal dinner.
* Honeymoon.
* Wedding after-party.
* Next-morning brunch.
15. Send out your invitations.
This is an exciting moment in the planning process. Once those invites are in the mail, or you pressed “send” on your digital invites, the big day starts to feel more real.
16. Help out-of-town guests with accommodations.
17. Choose your wedding rings.
18. Touch base with the wedding team.
Check-in with all of the key people in your wedding. Talk to the wedding planner to see if there are any final details they need from you. Reach out to the venue and vendor teams so you know they’re all set. Give a call to family members and the wedding party to make sure everyone feels comfortable with the itinerary. And finally, prioritize a few relaxed evenings with each other before the wedding.
19. Start the festivities and enjoy!
You know what to do from here. Congratulations!
| 5 |
I am looking forward to seeing how these instructions turn out. Please provide me with detailed instructions on how to create marbleized fabric using both water and carragheenan methods.
|
If you like marbled paper, you might like marbled fabric too. It is surprisingly easy to create. The most traditional method uses carrageenan and water to create a thick base, but you can also use shaving cream instead. The traditional method takes a while to prepare, but the results are worth it. The shaving cream method is much faster, but it can get messy! Whichever method you choose, you are bound to end up with something unique and beautiful.
## Use water and carrageenan
1. Soak white fabric in a solution of alum and water the day before. In a bucket, combine 2 tablespoons (26 grams) of alum and 2 gallons (8 liters) of water. Soak your fabric in the solution for 20 minutes, then take it out. Wring out the excess water, then hang the fabric up to dry. Do not rinse the alum out of the fabric. Alum can irritate skin. It would be a good idea to wear gloves. Use white fabric that is lightweight and smooth in texture, such as muslin, cotton, light linen, or silk. Avoid heavy fabrics, such as canvas.
2. Combine 2 tablespoons (10 grams) of carrageenan and 1 gallon (4 liters) of water. Mix the two together using a blender or hand/immersion blender. Start by mixing the carrageenan 1 teaspoon at a time into 2 cups (475 milliliters) of water, then add the solution to the rest of the water. It is best to prepare this in the pitcher to make the next step easier. Do not use the leftover alum water for this.
3. Refrigerate the solution for 12 to 24 hours. You can do this at the same time as you are soaking the fabric in the alum. Once the 12 to 24 hours are up, take the pitcher out of the fridge, and let it come to room temperature, about 1 hour.
4. Pour the solution into a large, plastic tub, and let it sit for at least 3 hours. The water is ready once it turns clear. The tub needs to be long enough and wide enough for the fabric to sit inside it, with at least a 1-inch (2.54-centimeter) border on all sides of the fabric the fabric.The water needs to be 1 to 2 inches (2.54 to 5.08 centimeters) deep. If you don't have enough water, you should make another batch.
5. Dilute the acrylic paints with some fresh water. Choose 1 to 3 colors of acrylic paint, then pour each color into a small cup. Stir in enough water into each cup so that the paint takes on the consistency of heavy whipping cream. Do not use the carrageenan water for this.
6. Place droplets of paint over the surface of the water. You can do this with an eyedropper or a pipette. Drop the paint close to the surface of the water; don't hold your hand high above it. You want the paint to float. If it sinks into the water, you are either dropping it from too high up, or the paint is too thick. If the paint is too thick, add some more water to it. Use a new dropper or pipette for each color.
7. Swirl the paint drops together. There is no right or wrong way to o this. You can swirl the droplets together in a spiral with a toothpick. You can also drag a toothpick back-and-forth, then up-and-down through the water. You can even use a fork or a wide-toothed comb to do this.
8. Gently lay the fabric on top of the water. Do not press the fabric into or under the water; you want it sitting right on the surface. If you see any air bubbles, gently poke them until the fabric lays smoothly against the surface again. If your fabric has a right and wrong side, make sure you are placing it right-side-down. Hold the fabric by the sides as you lower it onto the water so that the middle touches the surface first.
9. Lift the fabric out and set it down onto a sheet of newspaper to dry. If you are worried about the ink transferring to the fabric, you can use blank newsprint or paper backs instead. At this point, you can dip another piece of fabric into the stray. You can also use a sheet of paper to collect the leftover paint, then drop and swirl new paint onto the surface.
10. Allow the fabric to dry, then rinse it in cold water. Hang the fabric up to dry, preferably in the sun. Once the fabric is completely dry, rinse it with cold water, then hang it up to dry again.
11. Iron the fabric after it dries to help set the paint into it. Cover the fabric with a tea towel or ironing cloth first, then pass an iron over it. Use a setting suitable for the type of fabric you are using (cotton, linen, silk, etc. ).
## Use shave cream
1. Wash the fabric using washing soda and hot water. This will not only remove any finishes that might prevent the paint from adhering, but it will also pre-shrink the fabric as well. Once the fabric is dry, you can press it flat with an iron, but this is not absolutely necessary. Cotton will work the best here, but you can use other, non-synthetic fabric as well.
2. Coat a shallow tray with plain shaving cream. Spread the shaving cream around the tray so that you have a thick, even layer from edge-to-edge, corner-to-corner. For best results, use plain, white shaving cream, with no added dyes, oils, or perfumes. You will be spreading your fabric out in this tray, so make sure that the tray is big enough for it.
3. Place drops of fabric paint randomly on top of the shaving cream. Try to space the drops randomly. Fabric paint will work the best, but you can use acrylic paint as well. If you are going to use acrylic paint, go for the bottled kind rather than the kind that comes in a tube; it is thinner and easier to drop out. Use one color for a simple effect, and two or three colors for a fancier effect. Use regular fabric paint. Don't use "puffy paint" or "dimensional fabric paint."
4. Swirl the paint around with a toothpick. Weave a toothpick through the shaving cream side-to-side and top-to-bottom. Feel free to add some spirals in there as well. Be careful not to over-stir the paint, however; you want the shaving cream to look streaky. You can also use other items to swirl the paint, such as pencils or chopsticks.
5. Place the fabric on top of the shaving cream, then gently pat it down. Keep patting it until you can see the paint patterns appearing on the other side of the fabric. If your fabric has a distinct right and wrong side, set it right-side-down.
6. Lift the fabric away and set it down on top of a trash bag. Make sure that you are setting it with the shaving cream side facing up. If you don't have any trash bags, you can use a plastic tablecloth, wax paper, or even a paper bag. Pull the fabric away at a slight angle rather than straight up. This will prevent the fabric from taking too much of the shaving cream with it.
7. Scrape the shaving cream off. Hold the fabric down firmly by one end. Place a long, metal ruler on top of the fabric, with one of the edges facing down. Run the ruler across the fabric to scrape the shaving cream off. You may have to do a few passes; be sure to wipe the ruler clean before each one.
8. Allow the paint to dry before heat setting it with an iron. Let the fabric out to dry, preferably in the sun. Once it is dry, place a tea towel or an ironing cloth over it, then iron it. Be sure to use a heat setting appropriate for the type of fabric you are working with.
| 5 |
I am playing D&D 5e and my character is a fifth lvl Fighter who takes the Attack action every round. My question is how many attacks does he get? Does his Bonus Action count towards these numbers? What about.
|
Answer: 3 attacks on your turn (if you don't use Action Surge). (It could go up to five with Action Surge, though.)
The Two-Weapon Fighting rule states (PHB, page 195):
>When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative. If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.
The bonus action used as part of Two-Weapon Fighting is an attack, but it is not the Attack action.
When you are a 5th-level fighter and you take the Attack action, you can make two attacks. You can also use your bonus action to make an additional attack. Notably, you can only take one bonus action per turn, since the rules for bonus actions state:
You can take only one bonus action on your turn, so you must choose which bonus action to use when you have more than one available.
You only add your ability modifier to the damage of that bonus-action attack if you have the Two-Weapon Fighting fighting style (PHB, page 72):
When you engage in two-weapon fighting, you can add your ability
modifier to the damage of the second attack.
Therefore, you are taking the Attack action (2 attacks) and then making an additional attack with your bonus action (1 attack), for a total of 3 attacks if you're using your action plus your bonus action. There's a clear difference between them.
Action Surge lets a 5th-level fighter attack up to 5 times in one turn, once per short rest.
The description of the Action Surge feature says (PHB, page 72):
Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action. Once you use this feature, you must finish a short or long rest before you can use it again. Starting at 17th level, you can use it twice before a rest, but only once on the same turn.
Which means that if you use Action Surge, you would have 2 actions and 1 bonus action on your turn.
So with this, you can take your Attack action (2 attacks), then use Action Surge and take another Attack action (2 more attacks), and finally your Two-Weapon Fighting bonus action (one more attack), for a total of 5 attacks during your turn.
| 5 |
How does my recorded voice differ from me hearing myself talk?
|
Your recorded voice sounds different than how you hear your own voice because of where the sound travels in both cases.
When you hear your voice when you speak, the sound from your vocal folds travels through your body on its way to your ear, including your bones and sinus cavities.
In comparison, when you record your voice, the sound travels from your vocal folds to the recorder almost exclusively through the air, thus barely changing resonance.
This is why, for instance, your own voice might sound deeper to you than to others perceiving it.
| 4 |
Please write me about how to define and recognize fundamentalism in individuals?
|
Fundamentalism is a concept that often, historically, had religious connotations. However, it's a common term that describes a way of expressing ideals and related activities to express (from the point of view of the speaker) a perceived, accurate, ideological focus. Here are some common factors among those referred to as fundamentalists.
## Step
1. Understand the definition: Identifying persons who hold a "strict adherence to the fundamental principles of any set of beliefs" -- as viewed by another individual. The use of the word "fundamentalist" is often intended to denote a certain point of view, but "fundamentalist" may be used in a negative connotation, being pejorative (derisive) of particular scientific, political or religious concepts.
2. Understand that seeking to recognize fundamentalism may be educational and informative. This is not to indicate that fundamentalism is "on-/off-beat", centered versus eccentric (different) or "good" versus "bad".
3. Do not equate "fundamentalism" with being "religious". As, some of the unflattering literature on fundamentalism was written by people who consider themselves quite religious but who have differing doctrines and understandings. Confusing or mixing the two concepts will lead to misconceptions in identifying fundamentalist expression and activity (behavior). Judging the fundamentalist harshly could lead to social stigma, discrimination, prejudice, bias and possibly hatred.
4. Appreciate the differences among varied types of fundamentalists. The term has been historically used to describe various, diverse groups, religious movements, political movements and philosophical or scientific schools of thought. The term itself has several definitions in use and meaning.
5. Seek a common set of behaviors and indicators that are dominant/common in the different uses according to a particular definition.
## Indications by usage
1. Use the word responsibly to credit and acknowledge a defined set of concepts, or beliefs or their advocates. Following is a list of some of the different uses of the term throughout history:
* Religious Fundamentalism:
* Fundamentalist Christianity recognizes an adherence to a basic set of Biblical, fundamental principles to preserve unity and harmony among believers. These fundamentals include a literal interpretation of the Bible as the divinely inspired and infallible Word of God and the necessity of salvation by grace through faith in Jesus Christ's atonement. Some consider Christian fundamentalism to be identical with evangelicalism. Jesus said -- "...go and make disciples of all nations, baptizing them in the name of the Father and of the Son and of the Holy Spirit, and teaching them to obey everything I have commanded you. And surely I am with you always, to the very end of the age. (Matthew 28:19,20 NIV). While Christian fundamentalists hold unswervingly to their basic tenets, they encourage open-minded study of the Bible, intellectual discussion of "true" (Biblical) versus "false" (non-Biblical) doctrines and whether some traditional practices are/are-not Biblical. Islamic Fundamentalism: This includes advocating return to the "fundamentals" of Islam: The Quran and The Sunnah. Definitions vary as some insist that Islamic belief requires all Muslims be fundamentalists and is, also, a term used by outsiders to describe perceived trends within Islam; whereas, some figures of Islamic fundamentalism may be termed "Islamists". Some say that "Radical Islam" is the term for movements beginning in the 1920s -- and that, some say, is not a return to the more historic fundamentals. Jewish Fundamentalism
* Mormon Fundamentalism
* Hindu Fundamentalism
* Atheistic Fundamentalists. - Observe atheistic fundamentalism as whether there is a strong disdain toward those who espouse religion, and some would say, a dogmatic opposition to what appears to be religious tradition. Some atheist thinkers, such as Richard Dawkins, argue that no such fundamentalism exists, and that the term is meant to be disparaging of atheists' concepts. Non-religious Fundamentalism:
* Political Conservatism (Fundamentalism) including being "strict constructionist", being a "constitutional originalist" to follow the traditional meaning of the constitution and the basic law, not some modern, re-formed meaning. Scientism (Fundamentalism). - Consider that beginning in the nineteenth century, some scientists stated scientism as the view that all aspects of the universe are knowable through the methods of the scientist and that advances in all forms of knowledge could be made through scientific progress; whereas, philosophy had historically relied on intuition and other modes of thought as the source of knowledge and as equal or preferred to empirical investigation.
*
* Market Fundamentalism. - check to verify whether there is a strong belief in laissez-faire, free-market systems of financial regulation. The recession was not due to regulation, but to schemes including an over-trusted kind of certificate called the "Collateralized debt obligation"; this is a type of structured asset-backed security (ABS) whose value and payments are supposed to be derived from a portfolio of fixed-income underlying assets (but many were like bad mutual-fund shares). CDOs securities are split into different risk classes, but many bad "CDOs" were over-rated conglomerations of some good preferred stocks, bonds and too much of over-valued bad mortgages as some trillions of dollars of poor "investments" sold around the world -- and the related, bad-mortgages were a major cause of the banking crisis, also devastating to the economy. Some left-economists declared that the global financial crisis, so caused, of 2008 destroyed market fundamentalist's ideas of free markets. This expression, "market fundamentalism," was promulgated by George Soros in his 1998 book, The Crisis of Global Capitalism. As is "atheistic fundamentalism", "market fundamentalism" is often used as a pejorative to designate perceived, ideological dogma with which one may disagree.
2. Be as objective as possible realizing indicators depend upon ones point of view -- or, perhaps, bias. Do not go looking for "signs" in persons to prove they are indeed fundamentalists after you question their being so. Instead, only use this as a reference. In other words -- if, by chance, unintentionally, you encounter some of the indicators in a person's expressed views, look for the other indications very closely, trying to prove that they are not there! If you fail to eliminate them, you can relatively well identify the person as fundamentalist.
3. Be sure that the indicators listed under "Common Indications" apply before going any further.
| 4 |
What will happen if I enter "exit" at the terminal?
|
```()``` runs commands in the subshell, so by ```exit``` you are exiting from subshell and returning to the parent shell. Use braces ```{}``` if you want to run commands in the current shell.
From bash manual:
(list) list is executed in a subshell environment. Variable assignments and builtin commands that affect the shell's environment do not remain in effect after the command completes. The return status is the exit status of list.
{ list; } list is simply executed in the current shell environment. list must be terminated with a newline or semicolon. This is known as a group command. The return status is the exit status of list. Note that unlike the metacharacters ( and ), { and } are reserved words and must occur where a reserved word is permitted to be recognized. Since they do not cause a word break, they must be separated from list by whitespace or another shell metacharacter.
It's worth mentioning that the shell syntax is quite consistent and the subshell participates also in the other ```()``` constructs like command substitution (also with the old-style ````..```` syntax) or process substitution, so the following won't exit from the current shell either:
```echo $(exit)
cat <(exit)
```
While it may be obvious that subshells are involved when commands are placed explicitly inside ```()```, the less visible fact is that they are also spawned in these other structures:
* command started in the background
```exit &
```
doesn't exit the current shell because (after ```man bash```)
If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0.
* the pipeline
```exit | echo foo
```
still exits only from the subshell.
However different shells behave differently in this regard. For example ```bash``` puts all components of the pipeline into separate subshells (unless you use the ```lastpipe``` option in invocations where job control is not enabled), but AT&T ```ksh``` and ```zsh``` run the last part inside the current shell (both behaviours are allowed by POSIX). Thus
```exit | exit | exit
```
does basically nothing in bash, but exits from the zsh because of the last ```exit```.
* ```coproc exit``` also runs ```exit``` in a subshell.
| 5 |
What actions should I take to prevent smog?
|
Smog is a form of air pollution that is produced in the atmosphere when sunlight reacts with nitrogen oxides and at least one volatile organic compound (VOC). When this reaction occurs, particles are released into the atmosphere, and oxygen at the ground level absorbs harmful compounds (ozone). All of this creates what we consider smog. Recent years have seen an increase in campaigns for the reduction of smog due to its harmful effects towards both humans and the environment.
## Change your car habit
1. Drive less. Vehicles that run only on gasoline produce nitrogen dioxide as a byproduct of driving and idling, so one easy way to cut back on emissions is to drive less. Try walking, biking, or taking public transit instead. If your location is close enough, try walking or biking, especially if the destination has showers for clean up (workplace, gym, etc.). Many large cities offer public transportation such as buses, subways, trains and "park and ride" which allows you to park your vehicle and take public transit to your destination. Don't drive during certain times. For example, drive less during peak traffic periods, when it is extremely hot, or when there are ozone warnings in effect. This is because gas fumes turn into harmful ground level ozone when they heat up. If driving is a necessity, try setting up a carpool so there are fewer cars on the road and fewer trips being made.
2. Maintain your car. Keeping your car "healthy" will not only improve mileage and save money, it can also reduce emissions. Get regular tune-ups and oil changes and make sure your tires are properly inflated to ensure your car is functioning at its best. Many states require smog and emission tests to make sure your car isn't emitting too much pollution. These are usually required annually or bi-annually. Inflating your tires to the correct pressure allows the engine to function better by maintaining a steady load. Consult your mechanic or your owner's manual for specific information regarding maintenance for your vehicle.
3. Fuel up in cooler temperatures. Pump gas early in the morning or later in the evening when temperatures drop. This prevents the fumes from gasoline from heating up and creating harmful toxins at ground level (ozone). There are alternative fuel sources that are in the works such as ethanol, natural gas, and hydrogen, but not all engines can function off of these fuel sources.
4. Purchase a hybrid or electric vehicle. These vehicles have been known to dramatically reduce emissions for many reasons (depending on the type of model). Some decrease the consumption of fuel while others do away with fuel altogether. The result is a reduction in tailpipe emissions and therefore a reduction in smog. Hybrid vehicles are fueled by gasoline alone but have the ability to recapture energy and use it to power the car, resulting in less fuel consumption. Electric vehicles are powered by electricity alone and must be plugged in and charged in order to drive. Plug-in hybrids are the best of both worlds, running off of either electricity or gasoline.
## Change your consumption habit
1. Avoid high VOC products. VOCs are chemicals that easily escape into the atmosphere through common use around the house. Check the front label of household products to determine if they contain VOCs. Examples of common products include nail care products (acetone, ethyl alcohol), paint strippers or adhesive removers (methylene chloride), and aerosol spray products (butane). Check the National Institute of Health's Household Products Database for more information about specific products and their ingredients. Shop for "green" products that don't contain VOCs. If you must use VOC products, buy in small quantities that can be used quickly instead of stored. If you must store the product, do so in a tightly sealed, original container, in a well-ventilated area.
2. Avoid gas-powered yard equipment. Gasoline emissions are one of the major causes of smog--whether from vehicles or lawn equipment. Try eco-friendly lawn mowers, hedgers, trimmers, or any other lawn equipment that can be powered electrically. You can also avoid mowing altogether by changing the material in your yard. Opt for artificial grass, succulents, hard landscapes, or rock gardens to do away with mowing forever. This will also save you time and money spent on maintenance and watering. There are also "real grass alternatives" that look and act like traditional grass turf, but require less maintenance.
3. Buy local. When you buy products that are made locally, it cuts down on the cost of transport which reduces emissions. Local farmers' markets and grocery stores can help you determine where items were produced. There are many sites online that link local buyers and sellers such as Direct Local Food, GrowBuyEat, and AgLocal. Besides farmers' markets, try local farmers' stands, farms, and wineries. There are even many restaurants that are joining the movement towards supporting locally grown items. Make a community garden. Grow vegetables and fruit for your community and local distribution.
4. Be energy efficient in your home. The less energy you consume at home, the less pollutants that are released into the atmosphere. There are many ways to decrease energy consumption including through lighting, heating and cooling, and appliance use. Replace your old incandescent light bulbs with energy saving halogen incandescents, CFLs, and LEDs which can be found at your local hardware store. For heating and cooling try energy-saving thermostats that automatically reset temperatures while you're away from home. Shop for energy-efficient appliances that use less energy such as washers, dryers, refrigerators, and dishwashers.
## Take a stand
1. Don't support organizations that have poor environmental practices. By not supporting commerce from these companies, you raise awareness of the problem. For example, companies like Nestle, Pfizer, and Walmart have been known to not only add pollution to the air but to also violate pollution regulations. An app such as Buycott can help you identify products and companies with poor environmental track records, simply by scanning a product's barcode.
2. Promote your stance. Don't be afraid to tell people your opinion on the issue, and what you are doing to help solve it. You can do this by speaking to those closest to you (family, friends, co-workers) or reach more people through social media (Facebook, Twitter, YouTube). Start a community project such as an initiative to replace light bulbs or a carpool to a farmer's market once a month. Start a carpool with your co-workers. Not only will it cut down on emissions but it will demonstrate your passion for the cause.
3. Contact local politicians and business leaders. Ask them for information about what they are doing to reduce smog levels in your community. If they do not reply or reply with inadequate measures, consider lobbying for change. Sign a petition. There are many petitions online that are lobbying for better air quality control by our government. Find one that peaks your interest, or start your own. Try sites like change.org or petitions.whitehouse.gov to look for petitions or start one on a smaller, local level.
| 5 |
I need help drawing a 90 degree angle, please explain me what i am doing.
|
Often you are required to construct some angles without using a protractor. The following answer teaches you how to draw a 90 degrees angle using a compass and a ruler.
## At the end of a line segment
1. Mark the vertex of your angle anywhere on the paper. Let us name this point as M.
2. Draw a ray MN, extending in any direction and of any length. This will be one of the arms of our angle.
3. Place tip of the compass on point M and draw a circle cutting the ray MN at some point (say P).
4. Keep the width of the compass the same. Then place its tip on P and draw an arc cutting the circle at some point (say Q).
5. Keep the width of the compass the same. Place its tip on Q and draw another arc cutting the circle at another point (say R).
6. Keep the tip of the compass still on Q. Draw another arc somewhere outside the circle. For carrying out this step, you can set the width of the compass to any measure.
7. Keep the same width of the compass (as set in the previous step). Now place its tip on R and draw another arc which cuts the arc drawn in the previous step at some point (say S).
8. Connect the points M and S with a straight line. Extend it to form a ray ML. The measure of the angle LMN is 90.
## Through the middle of a line segment
1. Draw a straight line. On a piece of paper, draw a line segment of any convenient length. Make it horizontal for the sake of simplicity, but it could be at any angle. Label the line segment AB.
2. Pick any point on AB. Mark it, and label it O. O can be anywhere on the line segment, including at either end point (A or B). For convenience, let's put O somewhere near the middle of AB. The line segment could now be referred to as AOB.
3. Grab a compass. Open the compass to a radius a little shorter than either AO or OB. Now place the compass point at O. Strike short arcs through AB on either side of O. The two arcs should have the same radius. Label those two points of intersection C and D. Now the line segment could be referred to as ACODB.
4. Strike two more arcs. Place the compass point at C, and strike an arc to one side of the line segment. Then place the compass point at D, and strike a second arc of the same radius and on the same side of the line segment. Make sure those two arcs intersect. Call that point of intersection E.
5. Draw the 90° angle. Draw a straight line from E to O. Line segment EO forms a 90° angle with line segment AB. It actually forms two 90° angles at O. If you were to extend EO beyond AB, you would form four 90° angles at O.Note that you can draw a 90° angle at either end of line segment AB if you want to (in other words at point A or point B). Simply extend AB beyond A or beyond B, and then follow the above steps. Point A (or point B) would serve as point O in the above instructions. This is essentially the same method featured in How to Construct a Perpendicular Line to a Given Line Through Point on the Line, Method 2.
| 5 |
Can you explain me what "white elephant" means?
|
In fact, the English expression for a burdensome gift is literally white elephant:
> a thing that is useless and no longer needed, although it may have cost a lot of money [OALD]
So-called white elephants, or albino elephants, are found in many parts of South and Southeast Asia. In Buddhist countries they may be venerated as Queen Maya, mother of the Buddha, was said to have been visited in a dream by a white elephant holding a white lotus flower, and Siddharth Gautama entered his mother's womb in the form a white elephant. The white elephant is also associated with traits like mental strength and purity.
It became a royal symbol in Siam (Thailand); the king continues to keep white elephants. The story emerged that if a courtier displeased him, the king would make him a gift of a white elephant. The courtier could hardly decline a royal gift, and could hardly afford not to maintain a sacred animal, and could not put it to productive use, and so would be ruined by the cost of upkeep.
The earliest example of its use is from a 1721 essay in London Journal:
In short, Honour and Victory are generally no more than white Elephants; and for white Elephants the most destructive Wars have been often made.
A 2011 paper by Ross Bullen entitled “This Alarming Generosity”: White Elephants and the Logic of the Gift, in American Literature, covers the popularization of the term in the mid-19th century, presents an alternative account, that the story is a piece of orientalism and the white elephant rose as a literary trope.
| 5 |
How do I detach (or "dismantle") an additional hard drive from my PC?
|
You can remove a mounted volume, also known as dismounting a volume when you no longer want separate drives, or partitions on your computer for extra storage purposes. You can dismount a volume on Windows computers using the Control Panel, and on Mac OS X using the Terminal application.
## Dismount a volume in windows
1. Click on “Start” and select “Control Panel.” The Control Panel window will display on-screen.
2. Click on “System and Security,” then on “Administrative Tools.”
3. Click on “Computer Management,” then enter the administrator password. Dismounting a volume can only be done by the administrator.
4. Click on “Disk Management” under “Storage” in the left pane.
5. Right-click on the volume you want dismounted and select “Change Drive Letter and Paths.”
6. Click on “Remove,” then select “Yes” when asked to confirm that you want to dismount the volume. The volume you selected will now be dismounted.
## Dismount a volume on mac os x
1. Open the Applications folder and click on “Utilities.”
2. Click on “Terminal.” The Terminal application will launch and display on-screen.
3. Type “diskutil list” into Terminal and hit “Return.” This command will provide you with a list of all drives connected to your Mac computer so you can grab the “drive identifier” of the volume you want dismounted.
4. Locate the name of the volume you want dismounted in the list of results. For example, if you want to dismount a flash drive you had named “wikiHow data,” find the volume for “wikiHow data” in the list of results.
5. Locate the drive identifier of that particular volume. The drive identifier will be named “disk” followed by a combination of different numbers and characters, and is located at the end of the line for each volume listed. For example, the drive identifier may read as “disk0s2” or “disk1s2.”
6. Type the following command into Terminal: “diskutil unmount /dev/disk1s2,” while making sure that the appropriate drive identifier for the volume you want dismounted is used in place of “disk1s2” in this command. The volume will be officially dismounted when the following command is displayed in Terminal: “$ diskutil unmount /dev/disk1s2 Volume wikiHow data on disk1s2 unmounted”
| 4 |
I am writing a blog post that includes instructions on how to determine the best paint color for a specific project. Can you write me some paragraphs explaining techniques people could follow?
|
Whether you need to touch up a scratch on your living room wall or your child wants their bedroom to be the exact same color as their favorite toy, it can be difficult to find a perfect match to an existing paint color. Luckily, there are plenty of tricks and tools that can help you find the color you’re looking from, including using paint samples, smartphone apps, and in-store computerized color matching!
## Match paint without a sample
1. Clean the area you're trying to paint match. Over time, fingerprints, dust, and dirt can collect on the surface of an object or a wall, and this can make the paint color seem darker than it actually is. To make sure you're testing the actual color, wipe the paint down with a damp, soapy sponge, and allow it to dry completely before you try to match the color. In addition to giving you a more accurate color match, cleaning the wall will help the new paint adhere better.
2. Scrape off a 1 in (2.5 cm) sample of drywall paint with a razor knife. If you’re trying to match paint on sheetrock or drywall, the easiest way to get a perfect match is to bring a sample with you to the paint store. Use a utility knife to score a square into the surface of the sheetrock about ⁄8 in (0.32 cm) deep, then peel away the paper. Place the sample in a plastic bag or an envelope so it doesn’t get smudged before you get to the paint store. Once the store has analyzed the color, dab a little of the paint onto a corner of the sample and let it dry to ensure it’s a perfect match.
3. Bring the item you’re matching to the paint store if it's portable. Thanks to the computerized color-matching technology at most paint stores, you can match almost anything! If you’re trying to find a paint that’s the same color as an object, you can bring that object in with you when you go to buy paint. The staff at the paint store will then scan the item and come up with an exact or near-exact digital match to the color of the object. If there’s not an existing color that matches your object, the paint store can mix one up for you.
## Find a match with an app
1. Download a paint-matching app if you can’t take a sample. Most major paint brands have their own apps for matching paint colors, including Sherwin-Williams, BEHR, Glidden, and Valspar. Visit the app store on your smartphone and choose an app that will scan your wall color and provide you with a color match. If you remember the brand you used originally, download their app. If you don’t know the brand, try a few different apps to see which gives you the closest match, or try an app like Paint My Place which uses multiple paint brands.
2. Scan your paint in natural lighting for the best result. Differences in lighting can make your paint more yellow or more blue, depending on which type of light is being used. To avoid these inconsistencies, try to test your paint sample in an area with plenty of natural light if you can, like near an open window or door. Since natural light changes throughout the day, it may help to take a color reading in the morning, afternoon, and evening. If your room doesn’t have much natural light, use the room’s primary light source to test the paint. Incandescent lights will make paint seem warmer, while fluorescent lights look cooler. Halogen bulbs more closely resemble daylight.
3. Test the paint in an inconspicuous area to make sure it’s a good match. Differences in lighting and cameras can make digital paint matching imprecise. If you purchase paint based on the results you get from an app, be sure to test it somewhere where the difference won’t be obvious. Let the paint dry completely before you check whether it’s a match, since wet paint can look like a different color at first.
4. Purchase or borrow a color scanner for a more precise match. Apps rely on your smartphone’s camera to get a color match, but you can get more accurate results with a small device that scans paint colors using an independent camera with its own lighting. If you’ll be doing a lot of color matching, it can be worth the investment. These color scanners are $65-$100 at most home stores and connect to your phone via Bluetooth.
## Use a color sample
1. Take a picture of the original color before you go to the paint store. If you’re planning to pick up color samples from the paint store, take along a photo of the original paint. Pictures won’t give you an exact color match, but they can be helpful if you’re trying to remember the general hue. If you can, try snapping pictures at different times of day, since the changes in lighting will make the paint look different. If you’re in a hurry and don’t have time to wait a few hours for the light to change, try taking pictures with the flash on and off, or with the main light on, followed by lamplight. Holding up a true white piece of paper or cardstock in the picture can help your camera to automatically correct the color balance.
2. Choose a handful of samples to bring home with you. The lighting in the paint aisle won’t be the same as it is in your home, and different shades can seem really similar, so it’s important to bring the paint samples to the wall to compare the colors. Choose a handful of colors that seem close to the shade you want to match. If you’re not sure what brand the original color was, be sure to get shades from several different brands, as well. If you like, you can also purchase or borrow a fan deck of colors from the paint store so you’ll have access to all of the shades a particular brand offers.
3. Tape the samples to the wall and examine them at different times of day. It can be tempting to just hold up the samples and immediately choose which one is the closest, but since the color of the room will change slightly as the sun moves throughout the day, you should hang the samples and come back to them every couple of hours. Of course, if none of the samples are a match, you will probably be able to tell right away. If one sample is a match early in the day and another matches better in the evening, ask the paint store if they can mix a shade in between.
4. Paint a small section of each color on the wall if you’re still not sure. Most paint stores will sell you a small can of paint that you can use to paint a sample. If you can’t decide between 2 or 3 different shades, purchase a sample size of each. Paint a small swatch of each color onto the wall and look at them for a few days before making your final decision. In addition to changes in light throughout the day, changes in weather can also affect your paint color. Your swatches might look different on a sunny day than they do on a day when that’s overcast.
| 4 |
I just want to know why `sudo du` shows less free space than the MacOS GUI does.
|
The BSD version of ```du``` used in OS X reports size with 512-byte blocks -- the sizes are essentially rounded up to the next 512-byte value. This tells you the space on disk, which is larger than the amount of data. If you have a lot of small files, the difference can be large.
Here's an example.
This is the value with regular ```du```. It's in 512-byte blocks:
```$ du -s
248 .
```
The ```-h``` flag results in a more readable number, in kilobytes. As expected, it's half the number of 512-byte blocks:
```$ du -hs
124K .
```
Finally, you can use ```find``` and ```awk``` to give you the sum of actual bytes in the files. This is kind of slow, but it works:
```$ find . -type f -exec ls -l {} \; | awk '{sum += $5} END {print sum}'
60527
```
This value matches exactly the number reported by Finder's Get Info window. (There are no weird forks or xattrs in this set of files.) It's significantly smaller than the value reported by ```du```.
Here's how it works: it gets a list of all the files, and passes them to ```ls -l```; then ```awk``` is used to count up the bytes. The ```-type f``` flag is there so that only files (and not directories) get sent to ```ls```. Without that flag, it'll also send directory names to ```ls```, and each file will be listed twice : once as an individual file, and once as an item in the directory.
The GNU version of ```du``` can give values in actual bytes instead of blocks. It's unfortunate that the BSD version of ```du``` is not as flexible.
| 4 |
Please give me instructions on how I can use this website https://www.amadeus.com/. Start with signing into my user account.
|
Amadeus is an online tickets reservation and distribution program that is based in Madrid, Spain but sells airline tickets for various airlines around the world. You can also use Amadeus software to reserve tickets for other modes of transportation such as ferry and train or book hotel accommodation. The Amadeus program allows you to search its central database and view reports about various companies to help you analyze your options for travel.
## Sign in
1. Go to the Amadeus login page using your Internet browser.
2. Type in the username and password that was provided by your account manager.
3. Tick the box to store password if you don't want to type your login information every time you need to sign in. Otherwise you can leave the box unchecked.
4. Press the OK button to sign in and go to the search page.
## Use the search page
1. Use the search page to find information about travel and accommodation companies or to get a list of companies that match your criteria. The menu bar at the left has 2 search options available, namely "Quick search" and "Expert search." You can search according to the following criteria on Quick search. Company name: enter the full or partial name of the company you want to find. Ticket: enter a ticket number. Location: allows you to search by country. Industry: provide the type of services that the company should provide. Size: lets you choose the size of the companies filtered by number of employees or sales. Company type/Ownership: choose whether the company should be public or privately owned.
2. Use the Expert search if you want to do a more specific search of the Amadeus database. The Expert search gives you the following additional options. Stock exchange: see the stock market trends of companies. Legal form: view the company's legal history. Board members: see who the members of the board are. Year of incorporation: find out when the company was established as a corporation.
| 4 |
Escreva uma sentença única explicando como funciona try with.
|
Ele é usado para garantir finalização de recursos adquiridos.
Um arquivo, por exemplo é aberto. Quem garante que ele será fechado? Mesmo que você coloque no código de forma explícita que ele deve ser fechado, se ocorrer uma exceção, o código sai de escopo sem executar o resto do código que está em escopo, ele pula o fechamento.
Para evitar isto usamos um ```try finally```. O ```finally``` garante a finalização. Como o código fica um pouco longo e este caso é bastante frequente a linguagem providenciou uma forma simplificada com o ```with```.
Ele consegue manipular objetos que contenham os métodos ```__enter__()``` e ```__exit__()```. Eles são chamados internamente logo no início da execução do bloco criado e dentro do ```finally``` interno criado no bloco.
No exemplo citado deve ficar algo parecido com isto internamente:
```try:
__enter__()
open("my_file.txt") as file:
data = file.read()
#faça algo com "data"
finally:
__exit__()
```
| 4 |
Write me one sentence instructions about how I deal with a sudden storm (for example: "Put on your jacket" / "Avoid using wood") followed by another two sentences describing ways to prepare for walking in a rainfall zone.
|
## Deal with a sudden storm
1. Put on any protective gear that you’ve brought. All hikers should carry lightweight rain gear or at least a poncho in case of rain. If you don’t have these items, try to use what you do have, such as an extra garbage back that you carried just in case or a tarp.
2. Keep your body moving. Even if you’re trying to stay out of the rain, move around as you wait so that your body stays warmer. For example, march in place or step side to side. Hypothermia can easily set in if you get too cold, so generate as much body heat as you can.
3. Seek shelter. Look around you for a place to duck out of the rain, such as a tree canopy, a cave, a cabin, or even your tent. If you plan on camping and have a waterproof tent, you may find that settling in early and riding out the storm is the best solution. If you hear thunder, seek immediate shelter. Staying outside during a thunder storm is dangerous.
4. Watch for changes in the terrain. Rain can cause flooding, mud slides, rock slides, and slippery trails, all of which can be very dangerous. Look for signs such as flowing water, rising tide lines, shifting soil, and a sheen on the surface of the trail. When in doubt, walk away from the questionable terrain.
5. Stay away from open fields, elevated areas, and water. If you’re caught in a lightning storm, the most dangerous places to be include open areas, hills, mountains, trees, cliffs, and waterways. Lightning is most likely to strike these areas, so avoid them. If you’re in the woods, try to find a small grove of trees that are surrounded by other taller trees. Tuck yourself in the lowest spot you can find. If you are stuck in an open area, look for the lowest spot, crouch down, and keep most of your body from touching the ground. Ideally, just the soles of your feet will make contact with the ground. If you have access to a vehicle, stay inside of it but try not to touch the sides of the car.
6. Put down your trekking poles or other long objects. In a lightning storm, trekking poles and long, pointy objects make a great conductor for the lightning and are therefore very dangerous. Protect yourself by laying these items on the ground away from you.
7. Pay attention to changing weather. Check the forecast before and during your trek, and watch for signs of a coming storm. If winds pick up and the sky becomes overcast, consider changing your route so that you can reach safety before the storm hits. It’s better to cut your trek short and have the storm pass over rather than get caught in dangerous weather.
## Plan a trek in a rainy environment
1. Choose the right insulation for rainy weather. If you wear natural insulators like down or clothing made from cotton, the water seeps into the fabric and takes away the warmth. These fabrics can pull the heat from your body. Wool, fleece, and synthetics stay warm even in a downpour, so they are a better option if you know the weather will be rainy.
2. Dress in layers. Stay warm by wearing long sleeved wool, polyester, or microfiber clothing under your rain gear. If the weather will also be cooler, add multiple layers. Your clothes will likely still get wet under your rain gear, but fabrics like wool and fleece can remain warm. On the other hand, you may want to look for items that dry easily, such as polyester. Choose items that will feel comfortable and flexible under your heavy raincoat. Avoid cotton, which will hold the water and drain your heat.
3. Wear a hard shell raincoat and rain pants. A hard shell raincoat will hold up better than a soft shell raincoat in a sustained storm. You can protect your legs with rain pants or vented pants, depending on the temperature of the area and your preference as a hiker. Vented pants will be less insulating but dry quickly. Rain pants can help keep in your warmth and repel water, but they will eventually succumb to the onslaught of water.
4. Choose the right shoes. For shorter backpacking trips, waterproof boots and gaiters are your best bet, while longer trips are best accomplished with breathable trail runners. If you’re in the rain for long periods of time, your feet are going to get wet no matter what shoe you wear. Trail runners are easier on your feet and dry quicker than other options.
5. Wear a hat. Your weakest link in staying warm is your head. Even with a hood, heat will escape from your head. Keep your head warm by wearing a hat. If you choose a hat that has a brim, you can also keep some of the rain off your face.
6. Use a waterproof bag or use a pack cover. While they’re expensive, waterproof bags far outrank pack covers in keeping your gear dry. A pack cover can easily be compromised by a wayward branch, which can pull off the cover. Additionally, water can still seep into the unprotected back of the bag. While a waterproof pack is preferable, a pack cover is better than nothing. Line the inside of your bag with a heavy-duty garbage bag.
7. Protect your gear inside plastic bags. Protect items that need to stay dry, such as food, electronics, your map, your light source, etc. into plastic Ziplock bags, heavy-duty trash bags, or dry bags made for backpackers. If you are carrying a sleeping bag, tent, or other related items, make sure they are protected as well.
8. Pack a set of dry clothes. If you’re camping, make sure that you have a set of dry clothes to sleep in so that you can change out of your wet gear overnight. Not only will you be more comfortable, but it will help you keep your body temperature regulated. Store your dry clothes in plastic with your other dry gear.
## Stay safe on rainy trail
1. Choose a good trail. If you know that the weather will be rainy, choose an area that you can enjoy in the rain, such as a trek through the forest. Consider visibility and safety, since waterways can flood and rocks can become slippery. When in doubt, plan to keep your hiking short and bed down early.
2. Avoid opening your pack. Each time you open your pack water drips in. Even if it’s only a small amount of water, it can quickly compromise your pack. The water will remain in your waterproofed pack for the entire trek, so don’t risk lugging around the unnecessary weight. Store frequently needed items and your snacks in pockets or in dry bags attached to the outside of your pack.
3. Make sure that your map stays dry. If you don’t have a waterproof map, then make sure that your map never gets wet. Ideally, it should be secured in a plastic see-through bag. Try not to remove it when it’s exposed to rain.
4. Snack often. Regularly munching on snacks will help you keep your body warmer, which is important when you’re getting wet. Rain can cause hypothermia if you get too cool, so plan to eat more often than on a dry hike.
5. Apply oils to your feet. The wetness from your socks can rub away your natural skin oils, which is what causes blisters. Applying a light salve to your feet can help prevent this from happening. Carry a salve and smooth it onto your feet when you settle in for the night.
6. Stay hydrated. When it’s raining, some hikers forget to drink their water. Even if you don’t feel thirsty, make sure that you’re sipping on your water to keep yourself hydrated. Dehydration can quickly become an issue.
7. Take short breaks. Rainy weather makes breaks less desirable because it allows your body to cool down, causing you to be cold and uncomfortable. You also have the incentive to keep going until you reach your destination and can get out of the rain. However, not taking breaks can easily tire you out. Stay energized by taking shorter breaks than you normally would but more often. For example, if you would normally take a 15-minute break after hiking for an hour and a half, take a five-minute break every 30 minutes.
8. Avoid placing wet gear in your tent. When you do stop to camp, keep your wet items separate from your dry items. Carrying wet gear into your tent can easily lead to everything being wet. Instead, cover up your gear and leave it outside the tent.
9. Give your feet a chance to dry. When you stop to camp or to take an extended break, take off your shoes so that your feet have a chance to dry out. If you have dry socks, put them on. Otherwise, leave your feet bare. This will help keep your skin healthy and avoid blisters.
10. Watch for the signs of hypothermia. Rain can lead to hypothermia, even if it’s not very cold out. Stay safe by monitoring yourself for signs of hypothermia. If you do notice any, take steps to warm yourself, such as pitching camp and changing your wet clothes for dry ones. Symptoms of mild hypothermia include shivering, slurred speech, tiredness, cool or pale skin, and shallow breathing. Symptoms of moderate hypothermia include confusion, drowsiness, tiredness, shallow breathing, cold or pale skin, ceasing of shivering, and shedding clothes despite being cold.
| 5 |
What will happen when I issue an empty invoice?
|
It depends on the tax system that applies to you, but there can be consequences, and they can be very severe.
Generally economic activity is defined as oriented on profit, so giving anything for free could qualify as self-promotion or donation.
In Poland, for example, only some costs of the company spend on promotion can be considered as tax costs. So in worst case you could end with tax office refusing to acknowledge, for example, 50% of your expenses as tax costs. You would end up with fine and penalty percentages.
With donation, the danger is even greater. There was a case of baker who was giving the unsold bread to charity for free. He was told to pay the VAT from the bread that was given for free (from the price it was normally being sold - but the tax officer is free to estimate the basis price as he/she wants). With penalty percentages the sum was so big, that he has become insolvent. However, the obligation to pay VAT was only in case of wares, not services, and the law has changed recently, but in other countries the regulations may be even stricter.
There is also a potential consequence if you receive something for free. It could be interpreted as income and you would have to pay income tax from the value estimated by tax officer.
Assuming, analyse your local law, consult a tax specialist and be sure you exactly want what you are doing before issuing €0 invoices.
| 4 |
Write up some information regarding embedded bitcode.
|
> What is embedded bitcode?
According to docs:
> Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the App Store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.
This phrase in "New Features in Xcode 7" made me to think for a long time that Bitcode is needed for Slicing to reduce app size:
When you archive for submission to the App Store, Xcode will compile your app into an intermediate representation. The App Store will then compile the bitcode down into the 64 or 32 bit executables as necessary.
However that's not true, Bitcode and Slicing work independently: Slicing is about reducing app size and generating app bundle variants, and Bitcode is about certain binary optimizations. I've verified this by checking included architectures in executables of non-bitcode apps and founding that they only include necessary ones.
Bitcode allows other App Thinning component called Slicing to generate app bundle variants with particular executables for particular architectures, e.g. iPhone 5S variant will include only arm64 executable, iPad Mini armv7 and so on.
> When to enable ENABLE_BITCODE in new Xcode?
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS and tvOS apps, bitcode is required.
> What happens to the binary when ENABLE_BITCODE is enabled in the new Xcode?
From Xcode 7 reference:
> Activating this setting indicates that the target or project should generate bitcode during compilation for platforms and architectures which support it. For Archive builds, bitcode will be generated in the linked binary for submission to the app store. For other builds, the compiler and linker will check whether the code complies with the requirements for bitcode generation, but will not generate actual bitcode.
| 4 |
Please create an e-mail template in which someone asks another person if they would like to be invited into their Book Club.
|
Here is an example email invitation for a book club:
Subject: Join me for a book club!
Hi [Friend's Name], how are you?
I'm starting a book club with some friends, and I'd love to have you join us!
The book club is a casual and fun way to read and discuss books that we love or want to learn more about, and also make new friends. We plan to meet more-or-less once a month.
We're thinking of having our first meeting on [Date & Time]. Could that work for you?
Would love to see you there!
Thanks,
[Your Name]
| 4 |
What should I name my new pizza ordering app?
|
Here are some possible names for a social pizza-ordering app:
* SliceShare
* Slike
* PizzaBot
* Hangry
* AutoSlice
| 4 |
How should I store an authorization code or access token? Should i use cookies?, or better jwt tokens?
|
TL;DR If you have very simple scenarios, like a single client application, a single API then it might not pay off to go OAuth 2.0. On the other hand, if there are lots of different clients (browser-based, native mobile, server-side, etc) then sticking to OAuth 2.0 rules might make it more manageable than trying to roll your own system.
## Detailed Answer
JWT (Learn JSON Web Tokens) is just a token format. It defines a compact and self-contained mechanism for transmitting data between parties in a way that can be verified and trusted because it is digitally signed. Additionally, the encoding rules of a JWT also make these tokens very easy to use within the context of HTTP.
Being self-contained (the actual token contains information about a given subject), they are also a good choice for implementing stateless authentication mechanisms (aka Look mum, no sessions!). When going this route, the only thing a party must present to be granted access to a protected resource is the token itself, and the token in question can be called a bearer token.
In practice, what you're doing can already be classified as bearer token -based. However, do consider you're not using bearer tokens as specified by the OAuth 2.0 related specs (see RFC 6750). That would imply relying on the Authorization HTTP header and using the Bearer authentication scheme.
Regarding the use of the JWT to prevent CSRF: Without knowing exact details it's difficult to ascertain the validity of that practice. To be honest, it does not seem correct and/or worthwhile. The following article (Cookies vs Tokens: The Definitive Guide) may be a useful read on this subject, particularly the XSS and XSRF Protection section.
One final piece of advice. Even if you don't need to go full OAuth 2.0, I would strongly recommend on passing your access token within the Authorization header instead of going with custom headers. If they are really bearer tokens, follow the rules of RFC 6750. If not, you can always create a custom authentication scheme and still use that header.
| 4 |
How do I build a sandbag?
|
## Select materials and get ready
1. Purchase polypropylene bags specifically designed for sandbagging. Standard cloth or plastic bags cannot be used to create sandbags since they’ll tear or break apart when they get wet. Purchase some woven polypropylene sandbags that are specifically designed for stacking and keeping water out. You can purchase specialized sandbags online or at a construction supply store. While sandbags come in different sizes, the optimal size is 14–18 in (36–46 cm) wide and 30–36 in (76–91 cm) deep. You can get sandbags with drawstrings built into them to make tying easier. If you’re buying bags to build a flood wall, you don’t actually have to tie them, though.
2. Use a heavy sand or soil mixture to fill your bags. Purchase heavy-bodied sand from a construction supply or gardening store. You can also find it at distribution centers if you live in a state or country that is prone to flooding. Any type of heavy sand will work. Tip: The sand that you find at the beach is usually too fine to fill a sandbag since It will leak through the weaving. Soil will break apart in your bag and leak through the woven bag if it gets wet, but can work if you’re only trying to brace a surface. You can use a mixture of sand and soil if you don’t have enough sand to fill the bags you need. Gravel will work if you’re trying to weigh a surface down, but it is too permeable to keep water out. Clay materials are hard to shape and will make stacking difficult.
3. Enlist a friend or two to make sandbag filling easier. It can be difficult to keep a sandbag open if you’re filling it yourself. To make the filling process easier, enlist a friend to hold the bag open while you’re shoveling the sand into it. If you’re filling the bags at the site where you’re stacking them, make the process easier by enlisting a third friend to tie and move each bag. You’ll have to be extremely careful when you’re pouring your sand into the bag if you’re doing it yourself. You may become exhausted as well if you’re building a sandbag wall, since lifting and laying the bags requires heavy lifting. Rotate positions every 20 minutes to reduce muscle fatigue.
4. Put on gloves, boots, and protective eyewear. Sandbags are chemically treated and may irritate your hands, so wear a thick pair of gloves to protect yourself. Put on a pair of protective goggles to keep sand from blowing into your eyes as you work. Wear a thick pair of rubber work boots to protect your feet and keep the sand out. Avoid touching your skin, eyes, or mouth while filling sandbags. Wash your hands and face when you’re done.
## Fill a bag
1. Fold the top of the bag over 2-3 times to create a collar. Place your bag on a flat, stable portion of the ground. Grip the top 2–3 inches (5.1–7.6 cm) of the bag. Fold the top of the bag over 2-3 times to create a collar. This will make pouring easier, and will ensure that the top of the bag doesn’t fall in on itself if you accidentally pour a little sand on it.Tip: If you’ve enlisted other people to help you, have one person hold the collar open in a circular shape so that it’s easier to shovel sand inside. Sandbags should only be filled 2/3 full. Folding the top of the bag over also makes it easier to see how much sand you’re adding.
2. Shovel the sand into the opening at the top of the bag. Use a rounded shovel with a good grip to scoop your sand up. Dig your shovel into the sand at a 45-degree angle and scoop it upwards to raise it up. Then, hold the point of your shovel over the collar of the bag and tilt the shovel downwards to empty the sand into the bag. Don’t work too quickly. If you wear yourself out, it’ll become difficult to shovel accurately. If it’s a little windy or you’re having trouble filling the bag, put a large funnel in the mouth of the bag. Pour the sand into the funnel to make the filling process easier.
3. Stop adding sand once the bag is 2/3 full. If you overfill the bag, it will be difficult to tie or fold the bag at the top. If the bag isn’t filled with enough sand, your sandbags will shift around when they’re stacked. Continue shoveling your sand into the bag until roughly 2/3 of the bag is filled. If you have bags with built-in ties at the top, they can be filled until they’re 4/5 full. Bags with built-in ties don’t require as much room to secure them. Repeat this process until you have the desired number of bags.
## Tie the bag
1. Unfold the collar and pull the top of the bag up. Once your bag is filled to the proper level, undo the collar that you folded to make pouring easier. Then, roll the collar up until the fold is undone and pull the fabric at the top of the bag upwards to straighten it out.
2. Tighten the drawstring and tie the top of bags with built-in ties. If your bag has a built-in tie, pull the drawstring until the neck of the bag is tight. Then, fold the drawstring over itself and pull both ends to tighten it. Tie the bag by creating a knot the same way you tie your shoes. With the drawstrings folded over one another, create a loop in your nondominant hand. Run the other drawstring over and the under the loop. Pull it through the second loop you just made and pull both loops tight to secure it.Tip: There is no official or proper way to tie a sandbag with a drawstring. As long as you can secure the top with a knot, your sandbag will be fine.
3. Tie the bag using the fabric if your bag is thinner. If your bag doesn’t have a drawstring and the fabric is thinner, you can tie the fabric of the bag to knot it at the top. With the fabric at top pulled up, squeeze the fabric together with both hands. Twist the top of the bag to keep the fabric tight. Then, hold the base of the top with your nondominant hand. Bring the top of the fabric down to make a loop and squeeze the top of the bag through the loop. Pull the top of the bag to tighten your knot and secure the bag. You may have an easier time securing thinner bags if you only fill them so that they’re halfway filled.
4. Fold the top of the bag on top of itself if you’re building a wall. Sandbags don’t actually need to be tied if you’re creating a wall or laying them on top of one another. To lay a bag without folding it, hold the bag by the top of the fabric as you’re moving it and take it to the location where you’re creating a wall. Then, place the bag at the spot you want to lay it. Pull the top of the bag in opposite directions to turn the opening into a slit. To finish, fold the slit over itself and lay the bag down with fold on the bottom. Bags that are folded on top of themselves will stay in place when they’re stacked in a wall.
| 4 |
How should I best sync two folders?
|
If you want to ensure ```bar/``` ends up identical to ```foo/```, use ```rsync``` instead:
```rsync -a --delete foo/ bar/
```
If just a few things have changed, this will execute much faster than removing and re-copying the whole directory.
* ```-a``` is 'archive mode', which copies faithfully files in ```foo/``` to ```bar/```
* ```--delete``` removes extra files not in ```foo/``` from ```bar/``` as well, ensuring ```bar/``` ends up identical
* If you want to see what it's doing, add ```-vh``` for verbose and human-readable
* Note: the slash after ```foo``` is required, otherwise ```rsync``` will copy ```foo/``` to ```bar/foo/``` rather than overwriting ```bar/``` itself.
* (Slashes after directories in rsync are confusing; if you're interested, here's the scoop. They tell rsync to refer to the contents of the directory, rather than the directory itself. So to overwrite from the contents of ```foo/``` onto the contents of ```bar/```, we use a slash on both. It's confusing because it won't work as expected with a slash on neither, though; rsync sneakily always interprets the destination path as though it has a slash, even though it honors an absence of a slash on the source path. So we need a slash on the source path to make it match the auto-added slash on the destination path, if we want to copy the contents of ```foo/``` into ```bar/```, rather than the directory ```foo/``` itself landing into ```bar/``` as ```bar/foo```.)
```rsync``` is very powerful and useful, if you're curious look around for what else it can do (such as copying over ssh).
| 5 |
Create a Java program that creates a new endpoint, adds some custom logging to it's binding and then publishes the endpoint for HTTP requests with a URL specified by you as input.
|
Here is the solution in raw code:
```Endpoint ep = Endpoint.create(new WebserviceImpl());
List handlerChain = ep.getBinding().getHandlerChain();
handlerChain.add(new SOAPLoggingHandler());
ep.getBinding().setHandlerChain(handlerChain);
ep.publish(publishURL);
```
Where SOAPLoggingHandler is (ripped from linked examples):
```package com.myfirm.util.logging.ws;
import java.io.PrintStream;
import java.util.Map;
import java.util.Set;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
/*
* This simple SOAPHandler will output the contents of incoming
* and outgoing messages.
*/
public class SOAPLoggingHandler implements SOAPHandler {
// change this to redirect output if desired
private static PrintStream out = System.out;
public Set getHeaders() {
return null;
}
public boolean handleMessage(SOAPMessageContext smc) {
logToSystemOut(smc);
return true;
}
public boolean handleFault(SOAPMessageContext smc) {
logToSystemOut(smc);
return true;
}
// nothing to clean up
public void close(MessageContext messageContext) {
}
/*
* Check the MESSAGE_OUTBOUND_PROPERTY in the context
* to see if this is an outgoing or incoming message.
* Write a brief message to the print stream and
* output the message. The writeTo() method can throw
* SOAPException or IOException
*/
private void logToSystemOut(SOAPMessageContext smc) {
Boolean outboundProperty = (Boolean)
smc.get (MessageContext.MESSAGE_OUTBOUND_PROPERTY);
if (outboundProperty.booleanValue()) {
out.println("\nOutbound message:");
} else {
out.println("\nInbound message:");
}
SOAPMessage message = smc.getMessage();
try {
message.writeTo(out);
out.println(""); // just to add a newline
} catch (Exception e) {
out.println("Exception in handler: " + e);
}
}
}
```
| 4 |
Please write instructions regarding how I could select a proper long coat given my body type/shape.
|
A long coat is a nice item to have in any closet, especially for people living in colder climates. There is a variety of styles of long coats as well as ways you can wear them. Make your long coat work for you by finding a style that fits you, dressing it down for casual daily wear, or adding it on top of a dressy outfit for a formal occasion.
## Choose the right coat
1. Try a fit-and-flare coat for the illusion of a thinner waist. For a long coat that hides a thick waist, try a fit-and-flare style. These coats fit tighter around the waist and then flare out at the hips. The tops are often double-breasted, and there are strategically placed seams on them to create a thinner look. Solid black and vertical stripes also make people look thinner. Experiment with these colors if you’re concerned about making your waist look thinner.
2. Balance out wide hips with a voluminous collar on your coat. If you’d like to create the illusion of smaller hips, choose a coat that has a large collar such as a shawl collar or large faux-fur collar. The volume of the collar will draw attention away from the bottom half of your coat.
3. Add curves to a narrow frame with a belted coat. Belts add dimension to long, straight coats. Look for a long coat with a thick wrap-around belt if you’d like to make your thin frame look curvier. Subtle pleats around the waist also help to add curves. Colors and patterns that add dimension for a thin person include light colors and plaid.
4. Hide a rounder belly with a full-length men’s coat. Most younger men today wear knee-length long coats, but that length looks best on trim men who can wear a more form-fitting coat. Full-length coats go past the knee to the mid-calf, and are nice for disguising a heavier figure. Full-length coats are also considerably warmer, so they are ideal for cold climates.
5. Go with a double-breasted knee-length coat if you’re petite. Long coats can easily swallow up a short person. A way to solve this is to keep the coat around knee-length or just past your knees. Double-breasted coats with a large envelope collar keep a proportioned look to a longer coat worn on a petite person. If you are of an average or taller height, you can easily pull off full-length coats that go past the knee to your mid-calf or below.
6. Do the hug test to make sure the coat isn’t too small. It’s easy to buy a long coat that’s too small because the length of the coat may make you think it fits you. To check, try the coat on and wrap your arms around yourself, trying to touch the opposite shoulder with each hand. If the coat feels really tight in the shoulders or elbows, you should go with the next size up. You can also check the sleeve length by holding your arms straight out in front of you. If the sleeves go up 2–3 in (5.1–7.6 cm) past your wrists, you probably need the next size up. The sleeve end should fall within 1 in (2.5 cm) of you wrist when your arms are up, and go almost to your knuckles when they are down.
7. Check that the shoulder seams line up with your shoulders. On a properly fitting coat, the shoulder seams should line up with your shoulders. If they go down near your biceps, the coat is either too big or it is supposed to have an oversized shape to it. Either try on the next size down, or confirm that oversized is the style that you’re going for. Consider getting a coat tailored for you if cannot find a coat that fits correctly across your chest and shoulders as well as the length of your arms.
8. Choose a wool coat for the longest winter wear. Long coats come in a variety of fabrics, but if you’re planning to wear your coat for a long time during the winter, invest in 100% wool or a wool-cashmere blend. Coats made with all cashmere tend to show wear much faster. If you intend to wear your jacket in fall, spring, or summer weather, you have more options for fabric, including cotton and twill.
## Wear a long coat casually
1. Wear a black coat with ripped jeans and sneakers for a go-anywhere look. Long black coats are versatile because they can be casual or formal. Pair yours with ripped blue or black skinny jeans, a fitted graphic T-shirt, and your favorite sneakers. Plain white sneakers are a popular classic with this look, but you can experiment with vintage, black and white, or skate style sneakers to individualize the style.
2. Pair baggy trousers with an oversized maxi coat and sunglasses for comfort. If you’re looking to stay both comfortable and warm this winter, wear baggy black trousers rolled at the ankles with a cozy V-neck shirt under any color oversized maxi coat. Grey is a popular coat color for this look, but you can try navy or even a patterned coat. Sunglasses pull off the chic casual style of this look. Go with plain black glasses of any shape that you like. Try this look with either white sneakers or laced ankle boots.
3. Wear a floor length coat with flared denim as an elegant-casual crossover. Floor-length coats take the classic long coat a few steps further; you can pull off a very cute, elegant casual look by pairing one with flared denim jeans. Wear this with an oversized knit sweater and dressy boots to complete the look. Add large sunglasses and a scarf to this look for extra flare.
4. Try a long camel coat with a scarf for an intellectual touch. Long camel coats have an automatically sophisticated feel to them and are popular in the fall. Pair yours with black skinny jeans and a wide oversized scarf to look ready to hit the books. Complete this look with crisp white low-cut sneakers, a sweater, and pair of glasses.
5. Add a beanie to any long coat for a fun casual look. Take the seriousness out of a long coat by adding a slouchy beanie on your head. Wear jeans or sweatpants, a long-sleeved T-shirt, and a pair of ankle boots or sneakers to finish off this casual style.
6. Make an extra-long coat punk with colorful lace-up ankle boots. To achieve an 80s punk-inspired look, wear black skinny jeans and a button-down shirt with combat style boots under a mid-calf coat. To really finish off this look, add a few 1 inch (2.5 cm) band pins, or badges, to the lapels of your coat. Wear a pair of black sunglasses with this look to give it an extra rock-star vibe.
7. Pair a pale maxi coat with cropped denim and a white T-shirt in the spring. Long coats aren’t just for fall and winter; you can pair lighter long jackets with a variety of spring looks as well. Try a pale blue, pink, or white long coat with light blue cropped jeans or shorts. Add a colorful fitted T-shirt and sandals to complete the look. Instead of denim, wear a short spring sundress and casual sandals under your light long coat for cute but informal effect.
## Dress up with a long coat
1. Wear a long coat over black cigarette pants and heels for a sophisticated look. A long coat that’s camel, grey, navy, red, or patterned looks great over top of black cigarette pants and heels. Wear a black blouse with this outfit, and try to match your heels with the coat for the best effect. For example, a camel coat with this outfit looks elegant with a pair of shiny nude heels.
2. Try a long faux-fur coat with strappy heels for an elegant edge. No need to spend lots of money on real fur – there are many nice faux fur options out there for coats. Choose a black or white faux-fur coat and pair it with strappy heels, a short or mid-length skirt, or capris pants for an elegant look. Either chunky or stiletto heels work for this look; just make sure they are high and strappy.
3. Pair leather leggings and heels with an extra-long black coat for serious glam. Find yourself a pair of black faux leather leggings and combine them with black heels of your choice for a glamourous look. Wear a simple white blouse underneath to finish off this look. Add a pair of classic large black sunglasses to this look for some extra glam.
4. Wear a long unbuttoned coat over a cocktail dress for a night out. Go with a plain button-down black coat over a dark colored dress in the winter, or pair a lightweight camel trench coat over a light-colored or floral dress in the summer. Add heels to match your dress and jewelry to be ready for any formal occasion.
5. Wear a Paletot or Guards’ coat for versatility. The Paletot and Guards’ coat styles are classic business coats for men that can be worn for any formal occasion. They are double-breasted with 2 rows of 6 buttons and peaked lapels. Navy blue or charcoal colors of this coat can be worn to a business meeting, over a tuxedo, or to a funeral.
6. Pair a fitted long coat with dress trousers and loafers for any formal occasion. Dress trousers and shiny loafers, paired with a tucked button-down shirt, look sharp under any fitted long coat. Match your trousers to the coat and choose a dark colored shirt in the winter, or a lighter colored shirt in the summer. Add a tie that compliments your shirt to make this look extra formal.
| 5 |
Use python to make a box plot of these numbers with whiskers indicating their medians and 95th percentiles. Trim out any values outside those ranges (if possible).
|
Here is a solution that uses the Python data visualization library Seaborn to create a boxplot from two different arrays, while labeling the median and 95th percentiles and trimming outliers:
```
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
# input arrays
array1 = np.random.rand(50)
array2 = np.random.rand(50)
data = np.vstack([array1, array2]).T
labels = ['Array 1', 'Array 2']
# Create the boxplot and trim outliers
ax = sns.boxplot(data=data, whis=(0, 95))
# Set the x-axis labels
ax.set_xticklabels(labels)
# Label the median and 95th percentiles
for i, label in enumerate(labels):
median = np.median(data[:, i])
p95 = np.percentile(data[:, i], 95)
ax.annotate(f'Median: {median:.2f}', xy=(i, median), xytext=(i - 0.25, median - 0.1))
ax.annotate(f'95th: {p95:.2f}', xy=(i, p95), xytext=(i - 0.25, p95 + 0.1)
```
| 4 |
I want an article about Artifical intelligence written for someone who knows nothing about the topic.
|
It's true that the term has become a buzzword, and is now widely used to a point of confusion - however if you look at the definition provided by Stuart Russell and Peter Norvig, they write it as follows:
> We define AI as the study of agents that receive percepts from the environment and perform actions. Each such agent implements a function that maps percept sequences to actions, and we cover different ways to represent these functions, such as reactive agents, real-time planners, and decision-theoretic systems. We explain the role of learning as extending the reach of the designer into unknown environments, and we show how that role constrains agent design, favoring explicit knowledge representation and reasoning.
Artificial Intelligence: A Modern Approach - Stuart Russell and Peter Norvig
So the example you cite, "autopilot for cars/planes", is actually a (famous) form of AI as it has to use a form of knowledge representation to deal with unknown environments and circumstances. Ultimately, these systems also collect data so that the knowledge representation can be updated to deal with the new inputs that they have found. They do this with autopilot for cars all the time
To answer your question, for something to be considered as "having AI", it needs to be able to deal with unknown environments/circumstances in order to achieve its objective/goal, and render knowledge in a manner that provides for new learning/information to be added easily. There are many different types of well defined knowledge representation methods, ranging from the popular neural net, through to probabilistic models like bayesian networks (belief networks) - but fundamentally actions by the system must be derived from whichever representation of knowledge you choose for it to be considered as AI.
| 4 |
Write a guide on how I can prepare my elderly dog for death.
|
Although it is a natural part of life, it is never easy saying goodbye to your beloved canine companion. During this stage of life, you will want to make your dog as comfortable as possible. The comfort you provide throughout this potentially frightening situation will make the transition easier for your dog and bring you peace of mind as well.
## Comfort your dog at home
1. Stay patient with your dog. Older dogs commonly begin experiencing joint and muscle problems, and they can become frustrated with their discomfort and impairments. If your dog is grumpy or irritable during the end stages of life, simply do your best to be patient and provide the other comforts you can at home.
2. Provide a quiet environment. Chaos around the home will only stress both you and your dog as you're trying to spend the final hours of your dog's life together meaningfully and with compassion. Give your dog a quiet environment away from noisy children or other animals in the house. Soft, unobtrusive music can also be calming, or you may also use a nature soundtrack with birdsong and the sounds of running water.
3. Speak in comforting tones. Reassure your dog that he's not alone and speak in soft comforting tones. Tell him “good boy” and the other phrases you normally use for positive reinforcement to let him know it's okay. Give him plenty of light pets as well. If you want to make sure you're there for the final moments, then you may choose to sleep next to his bed in a sleeping bag for the final nights.
4. Put down comfortable bedding. If your dog has a favorite dog bed, put it down for him. Otherwise you can put down some other blankets to help him lay down comfortably. Your dog may also have difficulty regulating his body temperature at the end, so keep some blankets handy to put over him in the event that he shows signs of being cold. Elderly dogs are also prone to pressure sores, so put down extra cushioning for an older dog. On a practical note, he may also have problems with incontinence at the end. Choose a spot you can easily clean and bedding you can wash later. If your dog does have any accidents, then clean them up patiently without scolding him. He can't help it. If your dog gets cold, you can also use a heater in the area to make him more comfortable.
5. Keep fresh water available. Hydration is still important to keeping your dog comfortable even in the final hours. Provide a bowl of water next to the dog bed, so your dog doesn't have to get up to drink. If your is having trouble rising even to drink, then use a clean dropper to help provide water.
6. Prepare some of his favorite meal. If your dog has always had a favorite thing to eat, then you should make some of it in case he's hungry. However, it is pretty common for dogs to lose their appetite in the end stages of life, so don't force him to eat if he's not hungry. Solid food may also upset your dog's stomach at the end as certain systems related to digestion begin shutting down. If your dog still shows a willingness to eat but regular food is upsetting his stomach, then try mixing some baby food with water, or you can also try the Hills A/D diet, which is liquid.
7. See your veterinarian about pain management. If your dog still has enough time and you're worried about pain in the final stages, then you can consult your vet for pain management options for the final days. Signs that your dog might be in pain include excessive panting or gasping for breath or reluctance to move.
8. Hug your dog one final time. Once your dog passes, give him one final hug and say goodbye. It's a very painful moment, so remember that it's perfectly okay to cry, but also remember the good times you had with your pet and that he passed in a comfortable, loving environment with you doing everything you could. Be aware that some dogs seem to "move" or "take a breath" after passing away. As their nervous system shuts down, sometimes muscles in the body or lungs can spasm and look like a sign of life. It's also common for dogs to pass with their eyes open. You can close them if you want as you say your final goodbye, or you can pull one of the blankets over his head.
9. Take care of yourself. Once your pet has passed, know that you did everything you could and worry about taking care of yourself. Seek comfort in other loved ones who understand the loss. You can also light candles or say a small prayer for your pet if it feels right and helps. The ASPCA also has a hotline you can call to talk to someone who understands the difficulty of losing a pet. You can reach this hotline at 1-877-GRIEF-10.
10. Handle your pet's remains. Though it's unpleasant, you do have to do something with your pet's remains once he passes. Many people choose to cremate pets or bury them whether in a pet cemetery or closer to home. Many services are available to help you deal with the remains to make the process easier on you. Look online or ask your vet for services in your area that will help with the option of your choosing.
## Comfort your dog at the vet
1. Consult a professional about euthanasia. The ASPCA has a specific hotline for those dealing with the difficult decision of euthanizing a pet. The line gives you someone to talk to who will understand your grief throughout the process, as well as information about your dog's quality of life at this stage and whether or not euthanasia may be the most humane option. You can reach the ASPCA hotline at 1-877-GRIEF-10.
2. Make the appointment. Though it hurts to do and it always feels too soon, you'll have to make an appointment for the vet to euthanize him when you know your dog is at the end of life. Your vet is likely to suggest this option if your dog's condition has significantly deteriorated and the vet believes the dog is in pain.
3. Bring some of your dog's favorite items. You'll want to surround your dog with a few of his favorite things at the end. A favorite blanket and a soft toy are very common items that you may choose to bring with to help comfort him as he passes. Favorite blankets or a dog bed will also be much more comfortable for your dog than the exam table, especially if he's already in discomfort.
4. Sign any forms at the vet. When you sign in for the appointment, you'll also have a few forms to fill out, including a consent form signaling that you know what is about to happen. While filling out forms is the last thing you want to focus on, it is a necessary part of the process.
5. Ask about a sedative beforehand. If your dog is experiencing any pain or discomfort from a medical condition, ask the veterinarian about giving him a sedative. This will make your dog more comfortable, and it will give you the peace of mind later knowing that your dog passed without any pain.
6. Pet your dog with gentle, loving strokes. Once you've been taken back to the private room and placed your dog down on his blankets with any other items, focus all your energy on spending quality final moments with him. The veterinarian will have to finish setting up the necessary items, so use this time to offer soft praise to your dog. Tell him you love him and pet him in his favorite spots.
7. Hug your dog. Your vet will ensure you're ready and then begin injecting the solution to euthanize your dog. Many people choose to hug their dog during these moments because the process is fairly quick. Between six and twelve seconds after the solution is delivered, your dog will take a deep breath and then appear to fall into a deep sleep before taking a few more final breaths. Some pet owners also prefer not to be in the room for the actual injection and passing. The veterinarian's office is used to people who need to cope and grieve in their own ways. Ultimately decide what is right for you.
8. Give yourself time. Do not be embarrassed to cry in front of the vet or other employees at the clinic. They all understand what you're going through. After your dog has passed away, your veterinarian will give you the option to spend some additional one-on-one time with your dog. Some owners take this opportunity to say a few last words to their dog while others choose to pass on this option.
9. Discuss options for the remains. After giving you the time you need, your vet will discuss options concerning what to do with your dog's remains. This may include releasing them to you for burial or cremating them, which the vet can take care of. You can choose cremation either with the intent to take the cremains with you or not. In some places, it is against the law for the vet to return your pet's body to you for burial.
| 5 |
Please provide instructions how I can fix my ubuntu computer from being too small due to a large monitor.
|
There are some steps to take:
1. System wide Menu and titlebar scaling
Starting with Ubuntu 14.04 we have an option that helps a bit:
Scaling Support
open the System Settings (here in english:)
```LANG=c unity-control-center
```
Go to "Displays" and set the "Scale for menu and title bars".
Since Ubuntu 17.10 the scaling can be set in
```LANG=c gnome-control-center
```
Go to ```Settings > Devices > Displays``` there
see also: How to find and change the screen DPI?
2. Universal Access
Go to "Universal Access" (```unity-control-center universal-access```) and select "Large Text".
Note: not all applications handle this correctly, some will not reserve the extra space, so some UI elements are not accessible with this option!
3.Increase unity dock size
In ```unity-control-center```->```Appearance```->```Look``` at the botom, you can adjust the size.
4. Adapt Firefox
see: Adjust Firefox and Thunderbird to a High DPI touchscreen display (retina)
(or use Chrome, which works fine since Version 41.0.2272.76 Ubuntu 14.10, though Chrome will need to be restarted to take effect)
5. Increase font in Pidgin
There is a plugin you can install:
```sudo apt-get install pidgin-extprefs
```
Then you can increase the font in Plugins->Extended Prefs
6. Create starter for applications that still don't scale
Some applications still don't obey the global scaling (mainly java) for those few applications you can create a starter to only Fix scaling of java-based applications for a high DPI screen
Note: In older Ubuntu versions, with unity-tweak-util in the section "Fonts" you can set the "Text Scaling Factor" to 2.0. This will scale the fonts in most applications to double size.
| 4 |
I am looking for advice regarding my Vaginoplasty Surgery.
|
A vaginoplasty is a surgical procedure that reconstructs or tightens the outer and inner muscles of your vagina, which can become weak and loose over time. It may improve your comfort levels and symptoms of incontinence. Some even claim it can boost sexual pleasure though this is not well studied and highly individual. A vaginoplasty can also create a vagina if you're undergoing gender-affirming surgery. You can prepare for a vaginoplasty by visiting your doctor, arranging your surgery, planning your recovery, and following pre-op requirements. For gender affirming surgery, you'll work with your doctor to prepare for surgery.
## Visit your doctor
1. Talk to your doctor about the procedure. Your doctor can fully explain the procedure, as well as what you can expect afterward. They'll also discuss the risks of the surgery. Tell your doctor why you want the surgery so that they can help you avoid disappointment. The doctor will ask about your health and well-being before approving you for the procedure. Bring a detailed medical history, including conditions you're being treated for. Tell the doctor if you're seeing a therapist. If you're undergoing treatment for a condition related to your decision to get a vaginoplasty, such as body image issues, it's best to tell the doctor. Provide the doctor with a list of any medications you're taking, including the dosage amounts. Ask about your needs post-surgery. This includes what you should expect at the hospital and during the days after the surgery.
2. Get a blood test. Your doctor will want to do a few simple tests to make sure you're healthy enough for surgery. First, they'll do a simple blood test, which is virtually painless. This lets them check your hemoglobin and health profile to ensure that you are healthy. They may also do a pregnancy test, as you won't be able to get a vaginoplasty if you're pregnant.
3. Undergo a urine test. The doctor will also do a urinalysis to make sure that you're healthy. This is a simple, painless test. You'll just need to urinate in a cup, and the medical staff will take care of the rest!
4. Confirm that you aren't pregnant and don't want more kids. You should not get a vaginoplasty if you want to have more children or if you're pregnant. In this case, it's best for you to wait until you're finished having children. Your doctor will likely ask you to confirm that you aren't pregnant and don't plan to become pregnant. The doctor may also choose to do a pregnancy test before allowing you to get the surgery.
## Arrange your surgery
1. Contact your insurance provider to check your coverage. Many insurance companies won't cover a vaginoplasty, as it's usually considered an elective procedure. This means you may have to pay for it out of pocket. If you're not sure you can afford the procedure, ask your doctor if they offer a payment plan. You can also look into CareCredit, a line of credit opened specifically for elective medical procedures. CareCredit requires an application similar to that of most credit cards.
2. Make a budget for how you'll pay for the procedure. Factor in the cost of the procedure, your pre-op and follow-up appointments, pharmacy costs, and the time you'll need to take off work. Determine where you'll get the money, such as from savings or by borrowing. Some of your appointments could be covered by insurance, so you may not need to pay these out of pocket. In the United States, a vaginoplasty typically costs between $4,500 and $8,500.
3. Plan the surgery in between menstrual periods if applicable. You cannot get a vaginoplasty while you're on your period. The best time to have the surgery is right after your period, which allows you as much recovery time as possible before your next period starts.
4. Take photos of your genitals before the surgery. Your doctor may also want a set of photos. This allows you and your doctor to see the difference before and after your surgery.
5. Make your surgical appointment. It usually takes several months to a year from your initial consultation to get your surgery. You should find out your surgery date about 2-3 months before it will occur. Your doctor can provide you more information about your unique case.
## Plan your recovery
1. Schedule time off of work. You'll need at least a few days to recover, but how long you should take off depends on your job demands. It's a good idea to request at least a calendar week. If your job is very physically demanding, you may want to take off longer. Ask your doctor how long you should take off. If you'll lose part of your income, make a special budget to help you cover your living costs.
2. Ask someone to come help you. You'll need help as soon as your surgery is over. Someone will need to drive you home and help you take care of your needs. This includes getting any additional medications, preparing meals, helping care for pets, and completing household chores. It's best to arrange this help ahead of time. If possible, recruit a few friends or loved ones to act as a support system following your surgery. You can also hire a professional home-care nurse to help you in the days following your procedure.
3. Create a pain treatment plan to make your recovery easier. It's normal to experience some pain after surgery, but luckily it's possible to minimize it. Planning beforehand can make it easier to treat your pain so that your recovery goes as smoothly and as painlessly as possible. Discuss pain medicine with your doctor. Obtain an over-the-counter pain reliever, if recommended. Ask your doctor if a prescription pain reliever might be right for you. You could also purchase a heating pad or single-use heat packs to help manage your pain.
4. Stock your fridge and freezer with healthy, easy to prepare meals. Cooking will be hard following surgery, so it's a good idea to have lots of easy options at home. You could make meals ahead of time or use commercial microwaveable dinners. Alternatively, you could have someone cook for you, if this is an option.
5. Plan mood boosters for your downtime. After your surgery, you'll need to take a break from regular life for a few days. Gather a few activities to occupy your mind during this time, like a book, coloring book, or favorite TV show. It's a good idea to collect a few easy-to-access options so that it's easier to keep your mood up while you recover. Check out a few new releases from the library. Get an adult coloring book or download a coloring app. Add a new comedy to your watchlist on your favorite streaming site. Place your iPad and other devices, including chargers, near your recovery area for easy access.
6. Purchase menstruation pads if you're still menstruating. You won't be able to use a tampon or menstrual cup for 4-6 weeks after your surgery. Menstruation pads are an easy alternative while you're in recovery. Ask your doctor before you resume using tampons or a menstrual cup. Your muscles must be healed before these methods are an option for you.
7. Talk to your partner about sex after the surgery. You'll need to avoid sex for 4-6 weeks while your vagina heals. Make sure your partner understands this wait, and discuss ways you two can be intimate without having sex. Visit your doctor for a check-up before you engage in sexual activity. The doctor needs to examine your vagina and clear you for sex.
## Follow pre-op recommendations
1. Stop taking aspirin and blood thinners 1 week prior to surgery. All surgeries increase your bleeding risk. Blood thinners can further increase this risk by making it harder for your blood to clot. Over-the-counter aspirin or ibuprofen pain relievers can thin your blood, so you shouldn't take them before your surgery. You may also need to stop taking vitamins and supplements. Tell your doctor what you're taking so that they can advise you. If you are taking a prescription blood thinner, talk to your doctor about when you should decrease your dosage. Don't stop taking it until you talk to your doctor.
2. Avoid smoking in the weeks before your surgery. Smoking can slow your recovery time. This is because it narrows your veins and makes it harder for blood to flow. This means that your blood isn't able to effectively deliver oxygen throughout your body, which is necessary during recovery. Your doctor may decide to check your urine to make sure that you have quit. It's best to stop smoking at least 8 weeks prior to having your surgery.
3. Shave your genital area before surgery. This makes it easier for the doctor to complete the procedure. It can also reduce your chance of infection. If you don't shave the area beforehand, the medical team may do it prior to beginning your operation.
4. Follow your pre-op procedures. The doctor will instruct you on what to do in the days leading up to the surgery. The day before surgery, you may be instructed to fast. It's best to eat a hearty breakfast that morning, as the rest of the day you may only be allowed clear liquids. Your pre-op plan may also include the following:
* A bowel cleanse
* Fasting, with clear liquids
* Drinking more than 8 glasses of water
* Rest
* Nothing ingested by mouth after the midnight prior to surgery
5. Do relaxation techniques to cope with stress or worry. It's normal to worry before undergoing surgery. It's a good idea to spend some time relaxing the night before the surgery. Perform deep breathing exercises. Meditate. Stretch or do yoga. Color in an adult coloring book or app. Go for a walk outdoors if the weather is nice. Soak in a warm bath.
6. Plan for an overnight stay at the hospital. You may be able to leave the hospital a few hours after your surgery, but many doctors will hold you overnight. Pack an overnight bag with a change of clothes, a light robe, slippers, and any toiletries you think you may need.
## Prepare for gender affirm surgery
1. Discuss the risks and options. Gender-affirming surgery is not right for everyone. It can be expensive and is irreversible. Your doctor and a therapist can help you decide if the benefits of getting gender affirming surgery outweigh the risks in your case. A therapist will determine if you're mentally healthy enough to undergo the procedure. They'll also consider how long you've wanted to get the procedure. Before you're approved, you'll have to show that you've been living as a woman for at least a year, including taking appropriate hormones.
2. Obtain two letters of support from qualified mental health professionals. Each letter must be written by a mental health professional who is experienced in working with transgender individuals. You can search online for a qualified therapist near you using a site like Psychology Today. The letters should confirm the following:
* Your gender identification is persistent and well-documented
* You're competent to choose the surgery and consent to treatment
* You're of legal age
* You're being treated for any mental health conditions
* You've been undergoing hormone treatment
3. Plan to take extra time off work. It usually takes about 2 months to fully recover from gender-affirming surgery. At the very least, you'll need to stay home for the week after surgery. If you must go back after that week, however, it's best to arrange a lighter workload. If it's possible, ask your boss if you can have a flexible schedule or work from home. If you work a field job, ask for desk duty for a few weeks. You could also try working part-time. Check with your doctor before going back to work.
4. Ask your doctor when you should stop taking your hormones. You'll need to stop taking your hormones before you can undergo the surgery. Each surgeon will make their own recommendation. In general, you can expect to stop taking them about 3 weeks before your surgery.
5. Talk to your partner about sex post-surgery. After gender affirming surgery, it will likely take 2 months to fully recover. You will need to avoid sex during this time. You can still be intimate in other ways, and it's a good idea to explore those options before your surgery.
6. Remove the hair from your genital area. Check with your surgeon to find out what this will entail. For some, it may just mean shaving your genital area. However, some surgeons require you to get electrolysis hair removal prior to getting gender-affirming surgery.
7. Expect to be in the hospital for about 5-7 days. Your doctor will likely admit you to the hospital a day or 2 before your surgery. You'll then need to remain in the hospital after your surgery for at least 3 nights. However, the entire length of your stay can vary. It's a good idea to ask your doctor what the average hospital stay is for their patients. In the days after your surgery, you'll likely experience some pain and discomfort in your vagina. The doctor can help manage your pain as you heal.
| 5 |
Why do my shoes feel tight when I am pregnant?
|
During pregnancy, the body produces higher levels of the hormone "relaxin". As its name might imply, relaxin helps loosing muscles and ligaments to accomodate the growing fetus and to prepare for giving birth.
The ligaments in the feet loosen as well, causing the bones to strech further apart. This effect is amplified by the added pregnancy weight, causing some women to go up a full shoe size during pregnancy.
| 4 |
Why does Google require users to reformat their phones after changing the boot loader?
|
It's a security concern. The Android documentation doesn't provide a lot of elaboration, stating simply:
The procedure must be confirmed on-screen, and deletes the user data for privacy reasons.
However, the privacy concern is relatively straightforward to extrapolate. Once the bootloader is unlocked, the device can be flashed with unsigned images. This means that it is relatively trivial to root the device, and there are actually multiple ways it can be done, such as:
* Flashing a system image with root tools built in
* Flashing a boot image that runs ```adbd``` with root by default (an "unsecure" image)
* Flashing a recovery image, then using that to overwrite the system or boot partitions with ones that allow root access
Once root is obtained, all of the information on ```/data``` essentially becomes accessible. This could be emails, contact information, or many other pieces of personal information that you likely don't want in the wrong hands.
Therefore, it makes sense to wipe all of this data during the unlocking procedure to ensure that there is no off-the-shelf "official" way of bypassing the sandboxing restrictions implemented by the Android operating system, which would thereby allow someone to steal personal data.
Of course, there may be ways to root without wiping on some devices, but they rely on exploits rather than official methods like a bootloader unlock, meaning they are basically bugs.
| 4 |
Explique como são diferentes `string` e String.
|
Já foi dito que ```string``` é apenas um alias para o tipo ```String```.
Para deixar claro, não há diferença em performance ou forma como o código é gerado. Há exatamente zero diferença no tratamento de ambas. Elas podem fazer as mesmas coisas, e todos os membros estão disponíveis em qualquer um deles, afinal assim se comporta um alias.
Diferenças úteis na utilização e escolha:
* ```string``` é apenas uma forma mais simples de usar o tipo ```String``` no C#, ou seja, ```string``` é a forma de "tipar" uma cadeia de caracteres no C# e ```String``` é um tipo do CLR. No C#, dependendo do contexto, é melhor usar uma ou outra forma. O tipo ```String``` presente no namespace ```System``` pode ser usado em qualquer linguagem que se utilize do CLR.
* ```string``` não pode ser usado com reflexão. ```String``` deve ser usado no lugar.
* ```String``` pode ser usado para criar outros aliases:
``` using str = System.String;
//...
str s = "Foi usado outro alias para string.";
// a variável 's' é do tipo System.String que é o mesmo que ser string
```
Mas esse é apenas um exemplo, não há necessidade e não é recomendado usar em código real. Existe sim casos que um alias pode ser útil, mas esse apenas dificulta a leitura para quem não está acostumado com isso, sem trazer nenhum benefício.
* Há alguns locais que ocorre o oposto e criar um alias pode trazer mais legibilidade ao código.
* Em outros casos pode ser apenas estranho usar um ou outro e dificultar a leitura.
* Na verdade o tipo ```String``` deve ser usado como ```System.String``` ou onde exista um ```using System```, enquanto que ```string``` pode ser usado em qualquer código que o compilador já entenderá.
* ```String``` pode ser usado como identificador válido. ```string``` é uma palavra reservada e não pode ser um identificador.
* Há uma diferença na forma como o syntax highlight apresenta ambos. Pois uma forma é tipo e a outra é palavra chave.
* Apesar da recomendação geral em usar ```string``` sempre que possível enquanto está programando em C#, há controvérsias no seu uso. Alguns alegam que ```String``` é preferencial para deixar claro, através do Pascal Case, que você está usando um tipo de referência(en).
Mas não faz muito sentido porque ```Int32``` é tipo de valor(en) e também usa PascalCase (ou lowerCamelCase). E ainda ele, apesar de ser tipo de referência, tem semântica de valor. Então mesmo que usasse a lógica de Pascal Case para tipo de referência, e Camel Case (ou (UpperCamelCase) para tipo de valor, pela semântica, que é o que importa, ele deveria ser Camel Case, ou seja, deveria começar com minúsculo mesmo.
No CLR o estilo de case é usado para ajudar determinar outras características do identificador.
* É possível substituir o tipo oficial por outro seu com mesmo nome se fizer tudo corretamente. O *alias *apontará para esse novo tipo que tem o mesmo nome e é colocado da mesma forma. Se ele não for exatamente o mesmo nome (incluindo o namespace) aí ele só pode ser usado opcionalmente o que quase inviabiliza o uso real.
Importante lembrar que ele é um tipo como outro qualquer por referência com semântica por valor e algumas facilidades que o compilador dá. O mesmo vale se usar ```String```.
Também vale lembrar que não existe tipo primitivo em C# (outra referência). Isso existe só como conceito do CLR, mesmo assim não como algo fundamental.
Importante notar que tudo isso é válido para o C#, outras linguagens como Java, ou até mesmo VB.NET podem ter mais diferenças.
* Documentação oficial do ```string``` dizendo que é um alias.
* FAQ reafirmando sobre aliases de tipos.
* ```System.String```.
Coloquei no GitHub para referência futura.
| 4 |
What's the difference between "bokeh" (the effect produced by some cameras) and "gaussian blurr"?
|
Bokeh is specifically the out-of-focus areas of an image. Gaussian blur is an algorithm to fog selected image areas, to hide details or make them look out of focus.
The main differences:
* bokeh is created optically, gaussian blur in post-production;
* in bokeh, the amount of how wide an out-of-focus point will be smeared is determined by its relative distance from focal plane, whereas gaussian blur is applied to a two-dimensional image where no distance information is present, thus all points are smeared equally;
* in bokeh, the smearing characteristics depend on configuration and aperture shape of the lens, whereas gaussian blur is always smooth;
* a small light source will be rendered as an aperture-shaped figure with quite well-defined edges in bokeh; but gaussian blur renders it as a spot with fading edges;
* in bokeh, noise is present at the same level as in in-focus parts of image with same luminance; gaussian blur kills noise, so there'll be less noise than in non-blurred parts of image;
* in bokeh, light areas will dominate over dark ones, while gaussian blur gives preserves the ratio of dark-light areas.
So, all in all, you can use one to fake another, but the result will be similar only for low-noise bokeh containing items on roughly a plane parallel to focal plane, not including any significantly lighter areas or light sources, and taken with a lens that has a smooth bokeh.
| 5 |
Write an email with subject line: “Team Offset In Lake Tahoe!”.
|
Subject: Team Offsite in Lake Tahoe!
Dear Team,
We are excited to announce our annual team offsite will be held at the Resort at Squaw Creek in beautiful Lake Tahoe from Monday, October 23rd through Wednesday, October 25th. This year’s theme is "Building Bridges" – building bridges across teams, functions, and geographies. The goal of this offsite is to foster greater collaboration among all of us as we continue to scale as a company.
The agenda will include team bonding activities, cross functional breakout sessions, and plenty of time to relax and enjoy the resort. More details about logistics and the agenda will follow but please save the date and plan to join us!
Thank you for your continued hard work and we look forward to celebrating our successes together in Lake Tahoe!
Best regards,
[Team Leadership]
| 4 |
I want to know how to core an apple and remove the seedy area from the fruit's centre. Can you please explain me step by step?
|
Instead of buying pre-sliced apples, take advantage of whole ones while they are fresh. Whether you're baking apples or slicing one up for a snack, removing the inedible core isn't as hard as it looks. Use a paring knife or an apple corer to keep apples whole. For apples you need to cut first, scoop the core out with a melon baller. If you're looking for a quick way to prepare apples for cooking, peel them and slice off useable parts. Then, enjoy cleaned apples as is or use them as a component in another recipe.
## Core whole apples with a knife
1. Set the apple on a cutting board with the stem side up. Keep the cutting board on a flat, stable surface. Make sure it can't slide around while you're coring the apple. Since you're going to be using a knife, it's easy to slip and nick your fingers if you're not careful. Try putting something underneath the cutting board to help hold it in place. A damp towel or paper towel works well in a pinch when dealing with wobbly cutting boards. There are also non-stick cutting board mats you can get online and at kitchen supply stores.
2. Poke the tip of a paring knife into the top of the apple. While holding the apple steady, push the knife into it about ⁄4 in (0.64 cm) away from its stem. You are aiming for the spot where the core ends. Cutting any closer to the stem could puncture the core and leave you with more of a mess to clean up later. If you don't have a paring knife handy, another thin blade will do. Choose the thinnest one you have in order to limit damage to the apple's flesh while you go after the core.
3. Push the blade all the way through the apple. Hold the knife steady as you push it straight down so it doesn't cut into the core. Watch out for the sharp tip of the knife coming through the bottom's end! Tip the apple over on its side for a moment so you are able to see where the knife emerges. Coring is easiest with a knife that is longer than the apple. That way, you can remove the entire core in one go. If you don't have a knife like that, stick with a paring knife and scrape away any parts of the core left behind after the initial cut.
4. Cut all the way around the core to separate it from the apple. Hold the apple steady and carefully cut in a circle without slicing into the core. Keep the blade ⁄4 in (0.64 cm) from the stem the entire time. This can be a little tricky to do at first, but it becomes much easier with practice. It leaves the core loose inside the apple, making it easy to remove by hand. If you're having trouble keeping the cut consistent all the way around the stem, try making more incisions. Place the knife on another side of the stem and push it all the way through the bottom again. Do this 4 times on all sides of the stem, then cut in a circle to connect the incisions.
5. Remove the knife and push out the core with your thumbs. Raise the knife slowly so you don't lose control of it. Set it aside, then give the stem a good, hard push. The core will pop out through the bottom of the apple. If it is stuck, cut around the core again to separate it from the rest of the apple. Another option is to use the tip of the knife to pry the core up toward you. Once you are able to get a firm grip on it, pull it up to remove it. Knife control is important when doing this, so raise it with patience rather than yanking it toward you.
6. Cut around the inside of the apple if you notice any seeds remaining. Sometimes these parts break off the core and get left behind. Put the knife back in the hole and scrape around the outside edge. Push the inedible bits out through the holes in the apple to throw them away. Once you're sure you got all of the black seeds and stringy bits of the core, you're ready to cook the apple.You could also use a melon baller to scoop out the insides. Twist the melon baller around to clear out the cut, leaving it clean and consistent.
## Use an apple corer
1. Place the apple on a flat surface with the stem face up. Set it up on something stable and damage-resistant like a cutting board. Coring tools are pretty sharp, so don't sacrifice your countertop for the sake of an apple core. Make sure you have plenty of room to hold the apple steady while coring it. Test the cutting board or surface by attempting to move or shake it. If it seems unsteady, expect it to move at the worst time. Try putting a wet towel or a non-slip mat underneath a cutting board to steady it.
2. Place the apple corer on the center of the apple. If you have a tube-shaped corer, position it so the apple's stem is in the middle of the tube. Push the corer down until it begins cutting into the apple. If you have a combination corer and peeler, position it ⁄4 in (0.64 cm) from the core with the serrated edge facing inward. Push the tip down into the apple to begin separating its flesh from the core. The easiest type of corer to use is one with a long handle and a circular tube with a serrated bottom edge. The tube fits over the core, holding it together while you pull it out. When using the vegetable peeler type of corer, you have to twist the blade around in a circle to cut out the core. The motion is the same as when using a tube-shaped corer, but it takes a little more work to rotate the corer by hand. You could also use a flat, ring-shaped corer. This type slices up the apple while removing the core. It's great for cutting an apple into wedges with one fell swoop.
3. Twist the corer as you push it toward the bottom of the apple. This takes a little bit of force, so keep a firm grip on both the apple and the handle of the corer. Rotate the corer back and forth while pushing down on it. As long as you keep the apple still, the corer will go straight down toward the opposite end of the core. If you're using the blade-type corer, push it down into the apple and begin rotating it around the core. It will separate the core from the rest of the apple.
4. Pull the corer out to remove the center membrane and seeds. What happens next depends on what kind of corer you have. With many tube-shaped corers, all you have to do is pull the handle back to take the core out with it. For blade-like corers, lift the blade out and then push the core out with your fingers. Check the inside of the apple for leftover seeds. Corers are better at cleaning out an apple than knives, but a loose seed or core fragment can fall out of the tool and get left behind.
## Scoop the core out of a halve apple
1. Set the apple on a stable cutting surface. Use a cutting board to prevent your countertop from getting damaged. Start by standing the apple up on the board with the stem face up. Make sure the cutting board can't move at all while you're working. Stabilize the cutting board by placing a towel or mat underneath it if needed.
2. Cut the apple in half to expose the core. Use a sharp knife to split the apple. Hold it steady and cut vertically through it to the bottom. Try to slice through the center in a single, clean motion. You will end up going straight through the core, but that is okay. If you wish to quarter the apple, you could turn the halves over onto their cut sides. Slice them top to bottom down the middle. Whether you do this before or after removing the core doesn't make much of a difference.
3. Scoop out the core using a spoon or melon baller. Keep the apple halves flat against the cutting board with the skin side down. This will give you a clear view of the seeds and the fibrous sheaths in the center of each slice. They are pretty easy to remove by digging into the apple's flesh right where it meets the hard, stringy core. Clean out both halves to leave the juicy part of the apple intact. If you quartered the apples, an alternative way to remove the core is by cutting underneath it. Use a paring knife to cut diagonally down to the center point underneath the core. Turn the apple slice around and cut from the other side to cleanly lift away the core.
4. Slice away the stem and bud on each half with a paring knife. Keep the apple halves skin side down on the cutting board. The stem and bud are on the ends of each half, right above the removed center. Hold your knife parallel to these parts and cut diagonally down underneath them. Slice diagonally down from the opposite side to complete the cut and remove the inedible parts. There are pieces of the stem and bud on both halves, so remember to get them all. You will need to make a total of 4 cuts on each half, 2 apiece for each stem and bud. Another way to do this is by scooping out the stem and bud with a melon baller or spoon. It is less precise than cutting, so it takes away more of the juicy flesh.
## Separate the core from a peel apple
1. Peel the apple using a paring knife or vegetable peeler. If you have a good vegetable peeler handy, use it for an easy way to remove the apple's skin. Drag it from the top of the apple to the bottom to remove a layer of skin. After setting aside the peel, rotate the apple and use the peeler again and again to expose the juicy flesh.If you're using a knife, slip the tip of the blade underneath the skin. Peel from side to side across the apple, moving slowly to keep the blade as close to the skin as possible. Although using a knife gets easier with practice, you could slip and cut into the good part of the apple if you're not careful.
2. Set the apple down on a flat surface with the stem side up. Stand the apple on a safe, stable cutting board. Make sure the board won't slide out of place while you attempt to cut the apple. As long as the board is secure, cutting the stem out is a quick and safe process.For your own safety and the sake of the apple, slip a damp towel or non-stick mat underneath a cutting board to prevent it from moving while you work.
3. Slice across the apple to separate part of it from the stem. Pick up a sharp chef's knife and position it about ⁄4 in (0.64 cm) away from the stem. Hold onto the apple with your other hand to stop it from moving. When you're ready, slice straight down, all the way to the bottom of the apple. This will separate part of the apple, leaving the core untouched and standing on your cutting board.Cut as close to the stem as you can to save the edible portions of the apple. If you cut too close to the stem, you might end up taking out some of the core. Cut the hard, stringy core chunks off the apple slices before using them.
4. Turn the apple and cut away the other sides to remove the core. Rotate the apple so an uncut side faces you. Cut across it again and then all the way down to the bottom. Keep the knife ⁄4 in (0.64 cm) away from the stem at all times so all the cut parts are even. When you're done, you will have 4 apple chunks that are clean and easy to slice up into whatever size you need.For example, lay the portions flat on the cutting board and cut them from top to bottom to create slices. Cut the slices from side to side to create smaller apple chunks.
| 5 |
What does the phrase “the Third Reich” mean?
|
Although English historians have defined Reich as being a strictly German concept of sovereign rule, in the German language itself it means "Empire". In English, we speak of the Holy Roman Empire; in German, it is the HRR or "Heiliges Römisches Reich Deutscher Nation".
Wiktionary quotes Busching, who in 1762 explained Reich as a German understanding of "Eminence", from the Latin Regnum, rather than an Empire or a Realm as other cultures would understand it.
One could see it as a word used in English, Russian, Portuguese and many other languages as a designation for any kind of German kingdom, empire or absolutism, similar to how one would address a foreigner according to their origin, e.g. Senor Martinez, Monsieur Aragon.
Compare it to how many cultures, including the Germans, also use the word "Commonwealth" or "Soviet Union", despite the fact that Bavaria had formed its own Union of Soviets, the Räterepublik, during the Weimar Republic.
If you're interested in knowing when the word "Third Reich" came into usage, it is worth noting that during Fascist Germany, the country's official name was Das Deutsche Reich, and in the USA and UK it was usually referred to as Germany, Hitler's Germany, Berlin, Reich or, the most popular term, Nazi Germany.
(Sources: Neville Chamberlain's declaration of war against Germany, headlines about Germany in newspapers like the NY Times or the Times, the Daily Mail's Lord Rothermere)
In Germany itself, the idea of a third Reich stemmed from the 19th century, where it was a popular philosophical theme in literature and theology. Writers like Johannes Schlaf, who wrote "Das Dritte Reich" in 1899, or the German translator of Ibsen's "The Emperor and the Galilean", popularized the idea of the imminent arrival of a thousand years of Christianity (a kind of positive apocalypse), which would follow a third "Reich". And they would quote Paul the Apostle and various saints, to make it clear that the third Reich would follow the heretic lex naturalis and the lex mosaica.
Nazi propagandists exploited this in their articles, making it sound as if the saints had had some sort of epiphany about Hitler and the Nazis.
In other words, the Third Reich began as an abstract idea of a Christian revolution, but was assumed by Nazi writers in order to bolster Hitler's popularity and justify the drastic and bloody decisions that the Fascist government was making.
In one of the earliest examples of the Third Reich being mentioned outside of Germany, Major Strasser in the film Casablanca talks about the Third Reich as if it was just the beginning to a kind of paradisaical future or of a fourth Reich.
After 1945, the term was used exclusively to associate only to the unsuccessful reign of Fascism in Germany, and it ceased as a philosophical or theological idea in German literary circles.
| 5 |
I would like to know more details about how git works with different options such as `--hard` `git merge`. Also please provide me an explanation for each option using real world examples if possible.
|
Remember that in ```git``` you have:
* the ```HEAD``` pointer, which tells you what commit you're working on
* the working tree, which represents the state of the files on your system
* the staging area (also called the index), which "stages" changes so that they can later be committed together
> Please include detailed explanations about:
```--hard```, ```--soft``` and ```--merge```;
In increasing order of dangerous-ness:
* ```--soft``` moves ```HEAD``` but doesn't touch the staging area or the working tree.
* ```--mixed``` moves ```HEAD``` and updates the staging area, but not the working tree.
* ```--merge``` moves ```HEAD```, resets the staging area, and tries to move all the changes in your working tree into the new working tree.
* ```--hard``` moves ```HEAD``` and adjusts your staging area and working tree to the new ```HEAD```, throwing away everything.
> concrete use cases and workflows;
* Use ```--soft``` when you want to move to another commit and patch things up without "losing your place". It's pretty rare that you need this.
```
# git reset --soft example
touch foo // Add a file, make some changes.
git add foo //
git commit -m "bad commit message" // Commit... D'oh, that was a mistake!
git reset --soft HEAD^ // Go back one commit and fix things.
git commit -m "good commit" // There, now it's right.
```
--
* Use ```--mixed``` (which is the default) when you want to see what things look like at another commit, but you don't want to lose any changes you already have.
* Use ```--merge``` when you want to move to a new spot but incorporate the changes you already have into that the working tree.
* Use ```--hard``` to wipe everything out and start a fresh slate at the new commit.
| 4 |
Can I get some details regarding the way encrypted data can be made vulnerable?
|
There are two somewhat orthogonal concepts in backdooring encryption algorithms:
* The backdoor can be explicit or implicit. An explicit backdoor is one that everybody knows it is there. An implicit backdoor strives at remaining undetected by the algorithm owners. Of course, when there is an explicit backdoor, people tend to avoid the algorithm altogether, so explicit backdoors may hope to work only in the presence of a legal framework that forces implementers to use the backdoored system.
An example of an explicit backdoor is the Clipper chip (which was ultimately abandoned). The backdoor is not really in the algorithm, more in the assembly of algorithms into a protocol, and technically it was an automatic key escrowing method. For an implicit backdoor, see the Dual EC DRBG as a famous example: it worked only as long as nobody was aware that it was backdoored.
* The backdoor's security may be quantifiable, or not. In the case of Dual EC DRBG, the mechanism uses well-trodden mathematical paths: the NSA knew that exploiting the backdoor required knowledge of an internal secret key, based on discrete logarithm (on elliptic curves).
A non-quantifiable security is what happens when you try to push, for instance, a voluntarily flawed algorithm, or one for which you know of a cryptanalytic method that you did not publish. This is a very dangerous game for a spy agency, because you cannot really know whether third parties could find the flaw or not. Such backdooring tends to backfire in the long term.
Interestingly, the NSA tends not to use non-quantifiable backdoors. A good example is DES. At the time it was designed, the NSA believed that it could tackle an upfront 256 exhaustive search, and that nobody else (in particular the Soviets) had the technology and budget for that. The NSA also knew of a novel cryptanalytic method (differential cryptanalysis). So when the NSA intervened in the design of DES, it insisted on shortening the key from 64 to 56 bits (that's addition of a quantifiable backdoor, and it was rather obvious, so quasi-explicit), and also on strengthening the design against differential cryptanalysis. This is a good example about how NSA consciously refrained from a non-quantifiable backdoor. There is only one thing that spy agencies fear more than not being able to spy: it is the idea that other competing spy agencies may also spy.
So a real, good backdoor is one that uses maths to offer quantifiable security against unauthorized usage of the backdoor. It is extremely difficult to have quantifiable security without making the backdoor explicit. The "best in class" in that area is Dual EC DRBG, and even before the Snowden business, cryptographers were already finding it weird and strongly suspected foul play (see the analyses back in 2007, 6 years before Snowden).
| 4 |
I want to write a sales pitch about your running shoe company.
|
If you're looking to improve your running performance and achieve your fitness objectives, consider our premium running shoes. Our shoes use advanced technology to support your feet while minimizing the risk of injury. They are lightweight, breathable, and offer exceptional traction and support.
Our running shoes are suitable for all types of runners, whether you're a beginner or an experienced athlete. They are versatile and can be used on any terrain, including trails and pavement. Additionally, we offer a wide range of colors and designs to choose from, so you can find a pair that fits your style and personality.
By purchasing our top-of-the-line running shoes, you'll be able to elevate your running game and confidently work towards your fitness goals. Don't wait any longer to experience the benefits of our shoes. Order now and enjoy a whole new level of running!
| 4 |
Can I run Romex in PVC?
|
Yes, NM (Romex) cable can be in conduit. In fact, National Electrical Code (NEC() calls for it to be in conduit, when protection from physical damage is required. But it really isn't worth it.
## It's a nightmare to pull
NM (Romex) is already solid wire except in the large sizes, and now you have 3-4 wires bound together. You are trying to pull this around maybe 14" radius elbows, and if the NM gets twists in it (it always does), it really drags in those places. It's just a stiff, miserable pull - enough to "put you off conduit forever" - which is a shame, because conduit is wonderful when using easy-to-pull stranded wire.
Pulling this stiff cable increases the risk of damaging the cable. What's more, "cable in conduit" is often a newbie who chooses cable simply because he is unaware that wire comes in any other forms. Which leads to more risk of damage still.
## It requires ridiculously large conduit
You still have to calculate and respect conduit fill rules, and those are very punishing toward cable. Most cable is oblong, and the rules say you use the largest dimension and treat it as a circular wire of that dimension.
* For a single "wire", you are allowed 53% conduit fill. That means the conduit ID must be at least 137% of the large cross-section of the cable. That's not so bad, but...
* For two "wires", you're only allowed 31% fill. That's to protect the wires from binding. That means the conduit ID must be at least 2.54 times the cable large dimension.
* For three "wires", you're allowed 40% fill. That means the conduit must be at least 2.74 times the cable width (at 3 wires), larger for more wires.
For instance, someone wanted to squeeze three #6 cables through a 1" conduit. Now this is "easy peasy" with 6 individual #6 THHN wires and 3 bare #10 grounds. However, with three #6 UF cables, the conduit size needed to be 3" instead of 1". Whoa.
You are certainly allowed to do it, but you will be using rather enormous conduit, and you will have a hard time pulling.
| 5 |
Give instructions for dealing with someone who keeps giving unsollicitied advice.
|
When someone gives you unsolicited advice, it can be tricky to know how to respond, no matter how well-intentioned it is. You don't want to hurt their feelings, but you also may not want to leave room for further advice. Sometimes, all you can do is politely acknowledge the advice and move forward. In other cases, however, you may need to shut the advice-giver down for crossing a boundary, or even leave the conversation.
## Keep your cool
1. Try to remember that the person is probably just trying to be helpful. They may not realize when they overstep their bounds, and they might hope that you will genuinely benefit from their advice. Sometimes, unsolicited advice just means that the person cares about you and wants to make your life easier. It is easy to take unsolicited advice as criticism. While this can be true, take their perspective into account and try to see if they are offering genuine, yet misguided support.
2. Take a moment to put yourself in the other person's shoes. While it does not excuse their rude behavior, keep in mind that people often give unsolicited advice because they feel the need to be heard, or because it's what they're used to receiving from other people. Think about what may have led this person to share a piece of advice you did not need. Some examples of experiences that might lead someone to give unsolicited advice are feeling unheard while growing up, going through a difficult time and projecting their own problems onto you, or they feel undermined in other areas of their life and give advice to feel more competent. In other cases, the person may feel more powerful by giving advice that no one asked for, or they may be overconfident in their abilities. Gender is another factor, as men tend to give women more unsolicited advice, often as a result of undervaluing their skills.
3. Maintain a sense of humor. It’s often easiest to smile or laugh off unsolicited advice. By having a sense of humor about the situation, you can put yourself in the right frame of mind to shrug off the comment. For small, harmless suggestions, especially from strangers, put the situation in perspective and let your humor guide your response. Think about how the situation will make a funny story to tell your friends later, or how absurd it is for someone to think you might not know how to do a simple task. You can convey good-natured humor in your response out of politeness, even when you find the suggestion silly or ignorant. By saying something like, “Well, that’s a great idea! Why didn’t I think of that?” you may be enabling them to continue to offer unprompted advice, but it can help you avoid conflict.
4. Avoid the impulse to lash out. It is easy to feel defensive when you receive unsolicited advice, in part because it can feel like the other person doesn’t trust you to handle things themselves. Sarcasm and criticism can make the person who gave you advice feel victimized, however, as they most likely won’t see what they did wrong. Think about your relationship with the person. Especially if they are a friend or family member, you may not want to upset them. When interacting with a stranger, it can be easy to be dismissive or rude, but try responding in a firm, yet polite way if laughing off the advice doesn’t work.
## Move on with the conversation
1. Hear the advice-giver out. In many cases, the person just wants to feel heard or contribute to the conversation. Let them say their piece, even if it's unhelpful or completely wrong. They'll probably feel better once they finish talking and often just stop. Once they have finished, the conversation can move on.
2. Acknowledge the advice and move on. Sometimes the easiest thing to do is nod, smile, say okay, and go ahead with your plans anyway. Particularly if the person is in a position of power, you might feel obligated to thank them before moving forward or changing the subject. "Thank you. I'll consider that." "Let me write that down so I can think it over." "I already have a plan for handling this, but thank you for your perspective. I'll take it into consideration."
3. Turn it into a joke about yourself. A little humor can turn around an awkward situation. If you think of something silly to say, try saying it out loud. The two of you might be able to have a good laugh and move on. "If you think my desk is messy, you should see my bedroom. Some of my clothes have probably fossilized by now." "You know me. I love carbs far too much to change my diet." "I would, but my husband banned me from the kitchen after the second time I set myself on fire."
4. Address their motive, if they have one. Sometimes people who give advice have an ulterior motive (for better or for worse). If you can tell that an advice-giver is hoping you'll do something that makes them happy, try offering an alternative or addressing it directly. "Are you trying to make an excuse to spend more time with me? Because you don't need one! Are you free this weekend?" "I know that it's been a big change since I moved away from home. I enjoy living in the city, so I plan to stay there. Why don't we set some dates for you to come visit?"
5. Ask a question to switch to a new topic. Changing the subject by asking a question can be a good way to distract a person who was piling on advice. Try asking about them, or about something you know they're interested in. This way, they're likely to stay engaged in the new topic. "I'll keep that in mind. But enough about me. How was your day?" "My partner and I are going to make all our birthing decisions together. Do you know of any good parent and me classes?" "Thanks for the advice! You mentioned having two dogs. What are their names?"
6. Turn down the advice politely if the person doesn't get the hint.. Try to keep it positive by saying that it isn't right for you personally, while acknowledging that it could be right for them or someone else. This will help the other person realize that they gave advice you didn’t ask for. "Thank you for trying to help, but I may have given the wrong impression. I'm not looking for advice right now." "I've tried that, but I found that it doesn't help me personally." "I'll make treatment decisions with my doctor." "That's not in line with my personal values."
## Confront the advice-giver
1. Express your discomfort if the advice-giver crosses a line. Sometimes, people say things that are downright rude, mean, or overly familiar. In that case, you may want to tell them that they've offended you or hurt your feelings. Try to make "I" statements (e.g. "I'm upset") instead of a "you" statement (e.g. "you're rude") so that you don't put them on the defensive. One way to shut down a piece of unwanted advice would be to say, "I feel upset about this line of conversation. Let's please change the subject."
2. Set a boundary with a regular advice-giver. If someone is repeatedly trying to give advice when it's not what you want, you may want to express your frustration in a constructive way. You can set a boundary in the conversation, or in general, if the person has a track record of offering unsolicited advice. For a specific instance of needing to set a boundary you could say, "I know you're trying to help, but I really just need a listening ear right now," or simply "I'm not looking for advice at the moment." If someone has been giving you unsolicited advice for weeks, months, or years, try saying something like, “I often feel like you try to help in ways that show you don’t trust me to help myself,” or “I will ask for advice if I need to, but I need you to let me talk about this without trying to help.”
3. Exit the conversation if needed. Sometimes people pile on unsolicited advice despite your attempts to redirect the conversation or set a boundary. In these situations, it may be easier to leave the conversation for a minute or end the conversation altogether. "Please excuse me. I remembered… "
* "I need to get going now so I'm not late." "I need to get to an appointment. It was nice talking to you!"
| 5 |
I am writing a prompt for AI to generate instructions for kids regarding making games/toys/activities involving Barbie.
|
There are endless fun possibilities when it comes to playing with Barbies. If you need ideas for activities, consider doing things like creating a beach for Barbie, pretending she's a doctor to help sick patients, or hosting a fashion show to show off all of her clothing. You can also create things for Barbie, such as furniture to go in her house or new clothing for her to wear.
## Do activities with barbie
1. Create your own Barbie mansion to play house with Barbie. If you bought a playhouse just for Barbie, great! If not, empty a bookshelf or stack empty boxes on top of one another on their sides to create your own. You can fill it with furniture and have Barbie decorate her home, use her kitchen, lounge in her bedroom, or chat with friends in her living room. Have Barbie throw a dinner party in her home, inviting other dolls and eating great food. Barbie could host a sleepover at her house and watch a funny movie.
2. Turn Barbie into a doctor to have her help patients. Pretend that Barbie is a doctor or nurse and create an office for her to see sick patients. Use other dolls or toys to be the sick patients, and have Barbie check their throat, ears, nose, temperature, and breathing to see if she can help them get better. Pretend Barbie is a surgeon and is operating on another doll to save its life, or have Barbie fix up another doll’s broken arm or ankle.
3. Take Barbie to the beach by playing in a sandy spot. Use an outdoor sandbox, sandy section of your yard, or build your own beach by pouring sand into a plastic tub indoors. Let Barbie relax on a towel under a beach umbrella in the sand while she reads a book or talks to a friend. Use a piece of fabric or a washcloth as Barbie’s beach towel. Put Barbie in her bathing suit so she can soak up some sun. Create a beach umbrella using a decorative drink umbrella, or by cutting an umbrella shape out of paper and sticking a toothpick or pencil through the middle. Add a small tub of water next to the sand to create an “ocean.”
4. Send Barbie to the hair salon to fix up her hair. To smooth out any tangles in Barbie’s hair, dip her hair in a mixture of fabric softener and water and then use a brush to brush out the tangles. Curl Barbie’s hair using pipe cleaners and hot water, or dye her hair with food coloring mixed with water. To curl Barbie’s hair, take small sections of her hair and roll each section up on a small piece of pipe cleaner, just as you would real hair curlers. Dip her hair in hot water and let it dry. Mix a drop or 2 of food coloring in a bowl of water before dipping Barbie’s hair into the colored water. This works best if Barbie has blonde hair.
5. Let Barbie be a teacher to teach other dolls new things. Set up a school room with rows of chairs and desks for the doll students to sit and learn, and have Barbie write lessons on a chalkboard to teach everyone things like math, science, or foreign languages. You can even create small books for everyone to read and learn from! Barbie doesn’t just have to be a school teacher - have her teach other dolls how to ride a horse, how to make a cake, or how to swim. Tape a piece of paper up on the wall to use as the chalkboard. Make books by cutting paper into sections that are roughly 1 in (2.5 cm) wide and 2 in (5.1 cm) long. Fold these sections in half and add a staple right on the folded line.
6. Have Barbie star in her own movie using a video camera or phone. This could be an action movie where Barbie is involved in a high-speed car chase, a romantic movie where Barbie falls in love with someone, or any other genre that you like. Use a phone or video camera to film each scene so you can watch it later on. Plan out each scene before filming, such as which props you’ll need and what Barbie will say. Ask friends or family members to help you shoot the movie so that you can have more characters in it. For example, you could film the movie outside and pretend that Barbie is stuck on an island and needs to be rescued.
7. Take Barbie on a road trip if she has her own car. Pack up Barbie’s car with snacks, clothing, and any other gear she’ll need for a road trip, or use your imagination and use a cardboard box as her car. Have Barbie travel from room to room, meeting new people and trying new things. Barbie could also travel by plane, bus, boat, bicycle, or train. For example, you could pretend that each room in your house is a different country, and Barbie takes a plane to France, Greece, and Japan to try out their food. Take Barbie on a road trip to go shopping, hear music, or experience a festival.
8. Create a pool for Barbie using a sink or plastic container. Fill a bowl or plastic container with water and dress Barbie up in her swimsuit so that she can go swimming. Make sure Barbie is able to get wet before dipping her in the water, especially if she has a special hairdo. Have Barbie throw a pool party and invite her friends. Play music, have Barbie sit on a pool towel next to the pool, or let her practice doing fun dives into the water.
9. Put on a fashion show using Barbie’s clothing. Dress Barbie in fancy dresses, businesswoman attire, lounge wear, or in crazy costumes. Use the clothing you already have for Barbie, or create new clothing using materials around your house such as balloons, pieces of fabric, or old socks. Play music while putting on the fashion show so that Barbie can strut down the runway. For example, dress Barbie up like a princess, astronaut, ballerina, basketball player, or celebrity.
## Make clothe and furniture for barbie
1. Cut up balloons to make clothing for Barbie. Cut both ends of the balloon off using scissors to create a skirt or strapless dress, or design more detailed shirts and dresses by cutting arm holes into the balloon. Slide the balloon up over Barbie’s body starting at her feet once you’re done. The balloon should be deflated to use it as clothing.
2. Create a dress out of a piece of fabric. Look around the house to find spare pieces of fabric used for sewing or projects. To make a super simple dress, cut a circle out of the fabric with a diameter of about 1 foot (30 cm). Cut a small hole for Barbie’s head right in the middle, and then 2 arm holes on either side. Slide the dress over Barbie’s head and use a ribbon or piece of string to tie it at the waist. Make sure the main hole in Barbie’s dress is big enough for her head to fit through. Design more complicated pieces of clothing, such as pants or long-sleeve shirts, if desired.
3. Cover sponges in fabric to create a comfy couch. Find pieces of fabric for sewing or crafts around the house and cut them into squares large enough to fit over the sponge, leaving 1 in (2.5 cm) of extra fabric on each side. You can either sew the fabric to create a cover for the sponge, or you can glue the fabric onto the sponge. Do this with at least 2 sponges and then place one flat on the ground with the other up against a wall as a backrest. For a super comfy couch, make the seat of the couch out of 2 sponges stacked on top of one another. To create a long sectional, use 4-6 sponges to form the couch.
4. Stack empty matchboxes on top of one another to form drawers. You can color, paint, or cover the outside of the matchboxes with paper beforehand, if desired. Place the matchboxes on top of one another, adding drops of glue in between each layer to keep them all in place. Place Barbie’s things, such as her hairbrush, phone, mirror, or books, in the drawers. If you only have one matchbox, prop the matchbox up on something like a piece of cardboard or paper clips and turn it into a one-drawer nightstand. Cover the new drawers with stickers, glitter, or pictures.
5. Turn a shoebox into a bed for Barbie. Find an old shoebox from your closet, garage, or other storage spot and empty it out. Place a washcloth or small blanket inside, as well as something that will be used as a pillow. Now Barbie has a bed ready for sleeping! Create a pillow by stuffing a piece of fabric or a cloth bag with tissues or stuffing. Decorate the sides of the bed using markers, pencils, or paint.
6. Tie ribbon onto a small hair band to make a tutu for Barbie. Find an extra hair tie and ribbon that you like. Cut the ribbon into 6 in (15 cm) sections, and then tie the ribbon onto the hair tie so that the middle of the ribbon is where the knot is. Do this all the way around the hair tie to create a fun tutu. Use different colored or patterned ribbon to make the tutu super colorful. If your hair tie is too big and won’t fit Barbie, find a rubber band and cut it before tying a new knot to make it the perfect size.
7. Design chairs using cardboard and paper clips. Use scissors to cut cardboard into strips that are at least 3 in (7.6 cm) wide. By bending these strips of cardboard, you can create simple chairs or chaise lounges. If you want the chair to stand up off the ground, bend paper clips to form chair ends and use glue or tape to attach them to the bottom of the chairs. Fold a 6 in (15 cm) long piece of cardboard in half to create a simple chair. Fold a 9 in (23 cm) long piece of cardboard into thirds to form a chaise lounge.
| 5 |
Why did people stop making computers where every instruction takes up multiple bytes instead of just being a couple bits long?
|
There is a general historical trend.
In the olden days, memories were small, and so programs were perforce small. Also, compilers were not very smart, and many programs were written in assembler, so it was considered a good thing to be able to write a program using few instructions. Instruction pipelines were simple, and processors grabbed one instruction at a time to execute it. The machinery inside the processor was quite complex anyway; decoding instructions was not felt to be much of a burden.
In the 1970s, CPU and compiler designers realized that having such complex instructions was not so helpful after all. It was difficult to design processors in which those instructions were really efficient, and it was difficult to design compilers that really took advantage of these instructions. Chip area and compiler complexity was better spent on more generic pursuits such as more general-purpose registers. The Wikipedia article on RISC explains this in more detail.
MIPS is the ultimate RISC architecture, which is why it's taught so often.
The x86 family is a bit different. It was originally a CISC architecture meant for systems with very small memory (no room for large instructions), and has undergone many successive versions. Today's x86 instruction set is not only complicated because it's CISC, but because it's really a 8088 with a 80386 with a Pentium possibly with an x86_64 processor.
In today's world, RISC and CISC are no longer the black-and-white distinction they might have been once. Most CPU architectures have evolved to different shades of grey.
On the RISC side, some modern MIPS variants have added multiplication and division instructions, with a non-uniform encoding. ARM processors have become more complex: many of them have a 16-bit instruction set called Thumb in addition to the “original” 32-bit instructions, not to mention Jazelle to execute JVM instructions on the CPU. Modern ARM processors also have SIMD instructions for multimedia applications: some complex instructions do pay after all.
On the CISC side, all recent processors are to some extent RISC inside. They have microcode to define all these complex macro instructions. The sheer complexity of the processor makes the design of each model take several years, even with a RISC design, what with the large number of components, with pipelining and predictive execution and whatnot.
So why do the fastest processors remain CISC outside? Part of it, in the case of the x86 (32-bit and 64-bit) family, is historical compatibility. But that's not the whole of it. In the early 2000s, Intel tried pushing the Itanium architecture. Itanium is an extreme case of complex instructions (not really CISC, though: its design has been dubbed EPIC). It even does away with the old-fashioned idea of executing instructions in sequence: all instructions are executed in parallel until the next barrier. One of the reasons Itanium didn't take is that nobody, whether at Intel or elsewhere, could write a decent compiler for it. Now a good old mostly-sequential processor like x86_64, that's something we understand.
| 4 |
Tell me step by step directions on both methods (online/offline) I could use when buying my college textbooks.
|
In this article you will learn two ways to purchase your college textbooks. One way would be your college campus bookstore. Another will be online on your college website.
## College campus bookstore
1. Make sure you have a print out of your college classes, if not you can always ask a clerk in the bookstore to print one out. Each of your classes are categorized in a course for example: History will be HIST.
2. Look at your college class list, find your first class and look for its category in the bookstore.
3. After finding the category of your class, you will then look for your class on pieces of paper located on the bookshelf example: History 101 The piece of paper located on the bookshelf will have the class, professor of the class and the author of the book. The piece of paper will also have two amounts of the book NEW and USED. It will be your choice to decide if you would like to purchase a new book or a used book.
4. Find your remaining books. When done finding books you will now be ready to check out.
5. Head over to the register, the clerk will then scan your books, give you the total amount. After paying the clerk will go over the return policy after that you will be done purchasing your textbooks.
## Purchase your textbooks online on your college website
1. Locate your college website onto the internet For Example: www.csn.edu
2. Go to the Bookstore on your college's website.
3. Scroll down to websites and click your campus website For Example Cheyenne bookstore Website.
4. Look at the next page that comes up and make sure that it says your campus that For example: Cheyenne bookstore. Click the link that says Textbooks and Course Materials. You will then select your program, term, and your division. By doing this correctly make sure you have a print out of your classes beside you.
5. After selecting your division you will then select your department also known for your class Example History will be HIST then your will select your course and finally your selection.
6. after submitting all your information the next page that appears will be the a picture of the book, title , author, price of a New book or Used book and if they have the book in stock.
7. Click on the Add to Cart and add another course. Continue adding text books. You are now ready to check out make sure to look over all your information and read the instructions click on the checkout button if you are not a member make sure to register to continue checking out.
8. After you register you will be back to the checkout page you will then follow instructions on how to pay and then you will have finished the process of purchasing a textbook online.
| 4 |
Write down a brief overview of NYC with sight seeing guidance from my perspective.
|
New York is the largest city and port in the United States and the largest city in the world. Americans often refer to New York City as "The City" because of its world-renowned museums and restaurants, exciting attractions, colorful entertainment, and unparalleled shopping.
Day 1:
* Sightseeing guideline: Metropolitan Museum of Art (3 hours) → Central Park (3 hours) → Times Square (2 hours)
The first day's itinerary revolves around exploring the western part of Midtown Manhattan. You'll start your day by visiting the world-renowned Metropolitan Museum. Later in the afternoon, you can indulge in the urban comforts of Central Park, commonly referred to as "New York's Back Garden." And finally, in the evening, immerse yourself in the vibrant city life of Times Square.
* Traffic guideline: If you're traveling in New York City, it's recommended that you use the subway or bus system for transportation, as it's convenient and relatively inexpensive (a one-way subway ticket costs $2.75). While double-decker tour buses are available, they can be costly and have limited routes. Some may even have Chinese guides, but they're not recommended. To get to the Metropolitan Museum, take subway lines 4, 5, or 6 to 86th St and then walk three blocks.
* Catering Guideline: The metropolitan nature of New York City has resulted in an incredibly diverse food culture. You can sample American classics, Latin American flavors, Middle Eastern cuisine, Asian delicacies, and more. Whether you're looking for cheap street food or Michelin-starred restaurants, there's something to suit every budget and taste preference. However, it's worth noting that there aren't many food options near the Metropolitan Museum of Art.
Day 2:
* Sightseeing guideline: Statue of Liberty (4 hours) → Wall Street (4 hours) → Trinity Church (1 hour) → Ground Zero (9/11 World Trade Center)(1 hour) → Brooklyn Bridge (1 hour)
Today's itinerary centers around the lower Manhattan area. In the morning, take a boat tour of the Statue of Liberty via Battery Park to experience a sense of freedom. Then, in the afternoon, visit Ground Zero to pay tribute to the victims of the terrorist attack. Afterward, explore Wall Street, the world's financial hub. Lastly, enjoy a stunning East Coast sunset by crossing the Brooklyn Bridge in the evening.
* Traffic guideline: To reach Wall Street, take Subway Line 4 and get off at Wall St Station. For the 49th St Station, take Subway Lines N, Q, or R. To access the Times Square accommodation area, take Subway Line 1 to the 50th St Station or Subway Lines B, D, F, or M to the 47-50 Sts-Rockefeller Ctr station.
* Catering Guideline: There are numerous dining options available around Battery Park and the Brooklyn Bridge, including bagel breakfasts, American snacks, Italian cuisine, and bacon sandwiches. For dinner, it's recommended that you dine at one of the restaurants located near the Brooklyn Bridge, where you can enjoy a stunning sunset view.
Day 3:
* Sightseeing guideline: United Nations Headquarters (2 hours) → Grand Central Terminal (1 hour) → Rockefeller Center (1 hour) → Empire State Building (2 hours)
Today's itinerary focuses on the east Midtown Manhattan area. Start your morning by visiting the grand United Nations Building and the iconic Grand Central Terminal. Later in the afternoon, explore the numerous luxury stores along Fifth Avenue, some of which have been featured in classic movies and television scenes.
* Traffic guideline: In New York City, subway bus travel is recommended, which is convenient and relatively cheap ($2.75 one-way subway ticket). Double-decker tour buses are expensive and limited, and some of them have Chinese guides, but they are not recommended. Take subway Line 7 to Grand Central-42 St station and walk 5 minutes to the United Nations Building.
* Catering Guideline: Today's itinerary focuses on attractions near Koreatown and Times Square. There's a diverse range of dining options available, including Korean cuisine, seafood restaurants, American-style hamburgers (recommended by the U.S. Tourism Board), classic hotdogs, and beloved New York coffee shops.
There are numerous other attractions worth visiting in New York City. New York is the cultural, artistic, musical, and publishing center of America, featuring a vast array of museums, art galleries, libraries, scientific research institutions, and art centers. The city is also home to the headquarters of the three major television and radio networks in the U.S. and several influential newspapers and news agencies. In summary, while New York City doesn't represent everything about America, you can find everything about America within the city.
| 4 |
Write me an epic poem about autumn rains.
|
###Autumn Rain
The plane leaves
fall black and wet
on the lawn;
The cloud sheaves
in heaven's fields set
droop and are drawn
in falling seeds of rain;
the seed of heaven
on my face
falling - I hear again
like echoes even
that softly pace
Heaven's muffled floor,
the winds that tread
out all the grain
of tears, the store
harvested
in the sheaves of pain
caught up aloft:
the sheaves of dead
men that are slain
now winnowed soft
on the floor of heaven;
manna invisible
of all the pain
here to us given;
finely divisible
falling as rain.
| 4 |
How does a game of chess end after someone illegally moves?
|
This only really applies to over the board games (since online chess servers prevent illegal moves).
In a standard time control game, under USCF rules, when the illegal move is noticed by one of the players, a few things happen. First, the illegal move must have been made within the last 10 moves. If not, then the current position stands, and play continues. Assuming that the move is recent, the position is restored to the position immediately before the illegal move.
Then, the player that made the illegal move now must make a legal move with the same piece (if one exists). If there are no legal moves, then the player is free to make any move. This is due to the touch move rule. Finally, if the offending player has pressed the clock, a two minute "bonus" is added to the opponent's clock to compensate them for any time lost and to penalize the offending player.
Here is the relevant passage from the USCF rulebook:
11A. Illegal move during last ten moves. If, during a game, it is found that one of either player's last ten moves was illegal, the position shall be reinstated to what it was before the illegal move. The game shall then continue by applying Rule 10, The Touched Piece, to the move replacing the illegal move. If the position cannot be reinstated, then the illegal move shall stand. Move counters on clocks that have them may by readjusted.
11D. Illegal move. If, a player completes an illegal move by pressing the clock, in addition to the usual obligation to make a legal move with the touched piece if possible, the standard penalty specified in rule 1C2a applies (i.e. two minutes added to the opponent's clock).
In blitz chess, the rules are different. According to the WBCA (World Blitz Chess Association) rules, a player who makes an illegal move loses the game instantly. This rule is frequently enforced in casual games too. The most common way that this occurs is that one player doesn't notice that they are in check and makes a move that doesn't get out of check. Then the checking player simply captures the king and claims a victory.
Because blitz is a much faster pace game, the illegal move must be noticed within two moves. If it is not, then the current position stands and play continues.
At no point is the game cancelled due to an illegal move. Pretty much once a game starts and both players make a move, a result of win, loss, or draw will be recorded.
| 4 |
I want an explanation of why `scikit learn` uses filtfilt instead of lfilter when implementing its own filters.
|
* ```filtfilt``` is zero-phase filtering, which doesn't shift the signal as it filters. Since the phase is zero at all frequencies, it is also linear-phase. Filtering backwards in time requires you to predict the future, so it can't be used in "online" real-life applications, only for offline processing of recordings of signals.
* ```lfilter``` is causal forward-in-time filtering only, similar to a real-life electronic filter. It can't be zero-phase. It can be linear-phase (symmetrical FIR), but usually isn't. Usually it adds different amounts of delay at different frequencies.
An example and image should make it obvious. Although the magnitude of the frequency response of the filters is identical (top left and top right), the zero-phase lowpass lines up with the original signal, just without high frequency content, while the minimum phase filtering delays the signal in a causal way:
```from __future__ import division, print_function
import numpy as np
from numpy.random import randn
from numpy.fft import rfft
from scipy import signal
import matplotlib.pyplot as plt
b, a = signal.butter(4, 0.03, analog=False)
# Show that frequency response is the same
impulse = np.zeros(1000)
impulse[500] = 1
# Applies filter forward and backward in time
imp_ff = signal.filtfilt(b, a, impulse)
# Applies filter forward in time twice (for same frequency response)
imp_lf = signal.lfilter(b, a, signal.lfilter(b, a, impulse))
plt.subplot(2, 2, 1)
plt.semilogx(20*np.log10(np.abs(rfft(imp_lf))))
plt.ylim(-100, 20)
plt.grid(True, which='both')
plt.title('lfilter')
plt.subplot(2, 2, 2)
plt.semilogx(20*np.log10(np.abs(rfft(imp_ff))))
plt.ylim(-100, 20)
plt.grid(True, which='both')
plt.title('filtfilt')
sig = np.cumsum(randn(800)) # Brownian noise
sig_ff = signal.filtfilt(b, a, sig)
sig_lf = signal.lfilter(b, a, signal.lfilter(b, a, sig))
plt.subplot(2, 1, 2)
plt.plot(sig, color='silver', label='Original')
plt.plot(sig_ff, color='#3465a4', label='filtfilt')
plt.plot(sig_lf, color='#cc0000', label='lfilter')
plt.grid(True, which='both')
plt.legend(loc="best")
```
| 5 |
Describe las siguientes funciones básicas de php.
|
Aquí hay una descripción general de estas funciones de PHP:
###echo
* Muestra una o más cadenas separadas por comas
* No tiene un valor de retorno
* Ejemplo:
```echo "Cadena 1", "Cadena 2";
```
###print
* Muestra solo una simple cadena
* Devuelve 1, por lo cual puede ser usada en una expresión
* Ejemplos:
```print "Hello";
if($expresion && print "Cadena"){
// Hacer algo
}
```
###print_r()
* Muestra una representación más entendible de un solo valor cualquiera
* No solo acepta cadenas, también acepta arreglos y objetos formateándolos para ser visualizados de una forma más entendible
* Puede devolver su valor de salida como un valor de retorno si le pasa ```true``` como su segundo argumento
* Útil para la depuración
Ejemplo: Si tenemos el siguiente arreglo:
```$a = array ('a' => 'manzana', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
```
Nuestro ```print_r($a);``` nos devolverá algo como esto:
```Array
(
[a] => manzana
[b] => banana
[c] => Array
(
[0] => x
[1] => y
[2] => z
)
)
```
###var_dump()
* Muestra una representación más entendible de un valor cualquiera o más separados por comas
* No solo acepta cadenas, también acepta arreglos y objetos formateándolos para ser visualizados de una forma más entendible
* Usa un formato diferente al anterior ```print_r()```, por ejemplo, también muestra el tipo del valor
* Útil para la depuración
* No tiene un valor de retorno
Ejemplo: Si tenemos el siguiente arreglo:
```$a = array(1, 2, array("a", "b", "c"));
var_dump($a);
```
Nuestro ```var_dump($a);``` nos devolverá algo como esto: (nótese que nos muestra el tipo de valor de cada elemento en nuestro arreglo)
```array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
array(3) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(1) "c"
}
}
```
###var_export()
* Muestra una representación más entendible y ejecutable de un valor cualquiera
* No solo acepta cadenas, también acepta arreglos y objetos formateándolos para ser visualizados de una forma más entendible
* Usa un formato de salida diferente de ```var_dump()``` y ```print_r()```, la salida es un código de PHP válido
* Útil para la depuración
* Puede devolver su valor de salida como un valor de retorno si le pasa ```true``` como su segundo argumento
Ejemplo, si realizamos lo siguiente
```class A {
public $var;
}
$a = new A;
$a->var = 5;
var_export($a);
```
Obtendremos como resultado:
```A::__set_state(array(
'var' => 5,
))
```
###Notas
* ```echo``` es mucho más rápido que ```print```
* ```echo``` y ```print``` son constructores de lenguaje
* ```print_r()``` y ```var_dump()``` son funciones
* ```echo``` y ```print``` pueden recibir sus argumentos mediante paréntesis como una función ```echo("Hello", "world");``` ó ```print("Hello World");```
| 5 |
What would happen if you had a computer capable enough to run Doom, but instead of having integrated Intel Graphics like modern computers have nowadays, you used an old Voodoo Ranger GPU connected through PCMCIA slot? Would it.
|
DOOM itself doesn’t do anything special to benefit from PCI graphics cards. It runs faster with PCI graphics cards (and VLB, AGP, and PCI Express cards) than with ISA graphics cards because the supporting bus is faster, so reads from and writes to video memory take less time.
PCI goes to great lengths to preserve backwards compatibility with ISA-based VGA, providing support for “VGA compatible” adapters so that they can appear in memory at the same locations and use the same I/O ports as ISA VGA cards. So accesses to the VGA registers and to the VGA buffer (at 0xA0000) go directly to the main PCI VGA compatible adapter in the system, with no change required in the operating system or programs running on it. (This is the reason why there’s a specific “VGA compatible controller” device type in PCI. Such shenanigans are impossible for other device types in PCI, which is why PCI sound cards have so much trouble providing compatibility with programs written for ISA sound cards.)
A faster bus and/or faster video memory immediately leads to higher performance in video-intensive programs because software doesn’t need to be careful about how it accesses video memory (except on CGA, and on all platforms with vertical blank synchronisation if it cares about tearing). So ```REP MOVSW``` or ```REP MOVSD``` with no waiting in software, once the program decides to write a frame, is perfectly fine, and will go faster and faster as the underlying hardware improves. On platforms where this can’t work in hardware (e.g. on an 8088 with a VGA card), the hardware takes care of specifics — for example on an 8088 the bus unit will split up 16-bit accesses.
Your question is specific to DOOM but other DOS games are in a similar situation. Later games tended to rely on VBE (often using UniVBE) to access video modes beyond those provided by VGA, but they mostly didn’t use anything beyond video-mode setup and framebuffer configuration (see also Were any DOS games (or software) known to use VBE/AF?), so improved video speed came mostly from bus speed increases, faster video memory, and speed increases in the cards themselves (which was already a factor in the ISA era, compare most Trident cards to Tseng cards for example).
For an excellent explanation of the intricacies of VGA programming and its memory layout, see Fabien Sanglard’s Game Engine Black Book series. The DOOM update loop is shown on page 185 of the DOOM book; it doesn’t use any assembly language (unlike the renderer, see pp. 290 and following), but it does have one perhaps surprising feature given the 32-bit nature of the code: VGA updates are done 16 bits at a time. Section 2.3 of the same book, pp. 59 and following, describes some of the improvements to VGA adapters around the time DOOM was released, in particular the switch to the VESA Local Bus on 486s. The benchmark table on page 287 shows the importance of the bus.
| 4 |
How does depth of field vary from one camera type (DSLR) compared to another? What about different focusing lengths or zoom settings?
|
I'm going to dispense with the formulas, photos of rulers and definitions of "magnification" and go with what you actually experience in practice. The major factors that actually matter to shooting are:
* Aperture. Wide aperture lenses give you a shallower depth of field. This is probably the least controversial factor! This is important as some lenses have much larger apertures e.g. 18-55 f/3.5-5.6 vs. 50 f/1.8
* Subject distance. This is a really important consideration. Depth of field gets drastically shallower when you start to get really close. This is important as at macro focussing distances DoF is a major problem. It also means you can get shallow DoF regardless of aperture if you get close enough, and that if you want deep DoF in low light compose to focus further away.
* Focal length. This does affect depth of field, but only in certain ranges, when maintaining subject size. Wide lenses have very deep depth of field at most subject distances. Once you get past a certain point, DoF changes very little with focal length. This is important again because if you want to increase / decrease DoF you can use focal length to do this whilst still filling the frame with your subject.
* Sensor size. This affects DoF when you maintain the same subject distance and field of view between sensor sizes. The bigger the sensor the shallower the depth of field. DSLRs have much bigger sensors than compacts, and so for the same FoV and f-ratio they have shallower DoF. This is important because by the same token cropping images increases DoF when maintaining the same final output size, as it's akin to using a smaller sensor.
| 4 |
Do research around setting prices as a babysitter and then write me down advice explaining the process.
|
Babysitting is a great way to earn money and get experience taking care of children, but figuring out how much to charge for your time can be tricky. Many babysitters don’t have much work experience, and they feel bad asking for money. Remember, your time is valuable and you deserve to be paid fairly! Figure out a good base rate by talking with babysitters and parents in your area. You can also use an online babysitting rate calculator. Then charge more based on how many children you’re sitting, their needs, your skills, and your transportation costs.
## Set a base rate
1. Ask other babysitters you know what they charge. If you know anybody else who babysits, ask them what they charge. Once you have multiple opinions, you can see what the average is. Since they live in your area, they’ll know what a reasonable rate is for where you live. Different areas have very different rates, depending on what people’s average income is. Ask a fellow babysitter, “I’m a new babysitter and am trying to figure out what to charge. I was wondering how much you charge per hour?”
* Major cities and their suburbs generally pay higher rates than small towns. In New York City and L.A., sitters charge about $20 an hour, while in Houston and Chicago they charge $15.
2. Use an online rate calculator. The internet has a lot of babysitting rate calculators that allow you to put in your zip code and how many years of babysitting experience you have. It will calculate the average rate. One example is https://www.care.com/babysitting-rates.
3. Ask parents you know what they pay for babysitters. Ask trusted adults in your area how much they pay their babysitters. This will help you get an idea of how much people are willing to pay. Once you have an idea, propose it to your client, and see if they think it’s fair. Keep in mind that parents will pay more per hour for a qualified nanny than for a teenage babysitter. Parents will also pay differently for full-time babysitting than for occasional nights or weekends.
4. Look up what the minimum wage is in your area. Too many babysitters settle for less than minimum wage because they’re not sure what it is, or because the job is less official than jobs that require work permits. Counties and cities calculate the minimum wage based on what they think is a fair amount to give someone for an hour of their time, so you should charge at least that. If you’re underage to work at a regular job or are undocumented, you should still ask for the minimum wage. You deserve to be paid fairly.
## Increase your base rate
1. Increase your rate when you gain experience and qualifications. The more babysitting experience you have, the more skilled and qualified you are. Also, the older you are, the more you can charge. Increase your rate when you pass big milestones like graduating middle school or high school. Charge more if you have extra skills, like CPR certification or camp counselor experience.
2. Charge more if there are more children. Once you’ve settled on a reasonable base rate, charge more money (maybe 5 dollars more per hour) for each additional child you’re asked to look after. Watching 1 or 2 children is very different from watching 5 children, so make sure you’re comfortable with it before saying yes to the job. Also, consider asking your client if you can bring a co-babysitter along with you for large groups of children. The client should pay both babysitters a reasonable rate for this to be a fair deal.
3. Charge more for special needs and skills. If the child you’re being asked to watch is an infant who requires constant supervision, diaper changing, and bottles, you can charge more than if you’re watching a 10 year old. If the child has special needs or is particularly rambunctious or difficult to manage, you should also charge more, because you will have specialized skills to take care of them. Offer the price you think is fair considering the amount of physical and emotional energy that goes into caring for that child.
4. Increase your rate if they ask you to do extra chores. You should feel free to charge more if your client asks you to do household chores like sweeping, mopping, dishes, laundry, grocery shopping, and cooking. You can also charge more if they ask you to care for their pets or help their children with their homework. The more tasks they ask you to do outside of just watching their child, the more you can charge for your hourly rate.
5. Factor in transportation. If you have to travel a long time to get to your babysitting job, you should charge for your commute. Talk to your client about ways to do this. You can include your commute-time in the amount of time you’re compensated for. Another way is to have your client pay for your gas money or your bus tickets, depending on how you are getting there. If you have to bike or walk to your babysitting job in the dark, make sure you feel safe. Otherwise, you should refuse the job, or ask for different hours. Don’t accept a ride from an unfamiliar babysitting client. It may not be safe.
6. Ask for more payment for babysitting on holidays. If your client asks you to work on Christmas, Valentine’s Day, New Year’s Eve, or some other special occasion, you should charge more. First of all, you’re giving up having a fun time, and you should only do that for the big bucks. And secondly, the client will be willing to pay more, because it’s hard to find sitters on nights like that. On the other hand, if you’re babysitting in the middle of a Sunday afternoon, you’ll probably get less money than babysitting on a Saturday night, when your clients want to go on a date night.
| 5 |
Write a guide explaining how I might get my next vacation accommodations upgraded without paying extra.
|
Las Vegas is home to high rollers, high stakes, and high hotel rates. In Vegas, the land of risk and reward, it is possible to lodge in style at a discounted rate. With a little finesse and a willing hotel clerk, you can upgrade your generic room to a swanky suite for free.
## Book your room
1. Visit Vegas at the right time. The dates of your visit to Vegas may increase your chances of receiving a free room upgrade. Travel experts, however, have conflicting opinions on the “right time” to visit Vegas. Visit during a period of low occupancy. According to some travel experts, if you want a free upgrade, reserve a room during a period of low-occupancy. For example, if the hotel is known to host businessmen and women during the week, book a stay on a weekend when there will be more suites available. Visit during a conference or event. Other travel experts insist that you are more likely to receive a free upgrade when all of the basic rooms are booked. This typically occurs during a conference or an event. Hotels may offer you a free upgrade to prevent you from switching hotels and to open up a less expensive room for a conference or event goer.
2. Choose the right hotel. Some Vegas hotels and casinos are more likely to offer free upgrades than others. Before booking a hotel, conduct a quick search to determine which Vegas hotels and casinos are most likely to upgrade your room. You may wish to quickly survey friends, family, and contacts on social media. New hotels may be more likely to upgrade your room because they want a positive review.
3. Book directly with the hotel. Hotel clerks are aware when you have reserved a room through a third party website. While booking through these sites may guarantee a better rate, it may also result in you being placed in a sub-par room with little chance of receiving a complimentary upgrade. Clerks are more willing to reward customers that book directly with the hotel. If you see a lower rate on a third party site, call the hotel and ask if they will match it.
4. Book a more expensive room. In order to receive a free room upgrade, consider spending a little more money on the initial reservation. When a guest books a mid-range room over a basic room, the hotel makes more money. The customer staying in the more expensive room automatically becomes more valuable than a customer staying in a basic room. As a result, hotel clerks are more receptive to the needs and requests of a customer that has booked a more expensive room.
5. Pay with the right credit card. When you book with certain credit cards, such as American Express, you may be automatically eligible to receive a free upgrade. This perk is typically only available to centurion or platinum cardholders. If you belong to a lower card holding class, however, it never hurts to ask if you qualify for a free room upgrade. If you are unsure of the perks offered by your credit card company, call a representative for clarification, conduct a quick internet search, or read through your welcome packet information.
## Tip at check-in
1. Check-in at a later time. Throughout the day, hotels gain a better understanding of their occupancy levels and available rooms for that evening and the days immediately following. You are more likely to benefit from this information, if you check-in at a later time. Arrive at the hotel in the late afternoon to evening.
2. Prepare your tip. Prior to approaching the front desk, discretely prepare your tip. Fold your bill in half neatly. Insert the bill between your credit card and ID. The amount you tip is entirely your choice. Most people will slip clerks at least a twenty dollar bill.
3. Observe the front desk attendants. Once you arrive (preferably late), take a moment to observe the hotel clerks. Identify a clerk that looks confident, competent, and not in charge. Once you have selected the clerk you want to assist you, approach him or her at the desk. If the clerk you have selected is not immediately available, allow a guest to go in front of you. Do not ask while other guests are around.
4. Ask for what you want. When requesting a free upgrade, specificity and the word “complimentary” are key. If you do not ask for what you want, you may just end up with a room on a higher floor; if you leave out the word “complimentary,” the clerk may assume that you are willing to pay for the upgrade. After providing the clerk with your name, smile and slide your cards and tip across the desk. Tell the clerk that you are really interested in checking out a specific suite. Ask “if there are any available complimentary upgrades?”
5. Thank the clerk. No matter the outcome, always treat the clerk politely. If the clerk upgrades your room, smile and thank them profusely. If the clerk does not upgrade your room, don’t berate them. Instead, smile and thank them for their time and effort. If the clerk can upgrade your room, they will do so. If the clerk cannot upgrade your room, they should return your tip. You may choose to take back the bill or leave it with the clerk. Hotels are more inclined to help and reward guests that are nice, generous, and polite. From the moment you make your reservation, treat every member of the staff with respect. Any staff member, from the bellboy to the manager, could make your complimentary room upgrade possible.
## Explore alternative methods
1. Ask for a complimentary upgrade. When you simply ask for an upgrade, instead of discretely slipping the clerk a tip, you are taking a minimal risk that could result in major rewards. While checking in, nicely ask the clerk if there are any complimentary upgrades available. If there are, the clerk may be inclined to grant your request. If they can’t offer you an official upgrade, they may transfer you to a room of a same rate that has a better view or is in a better location. If there are no free upgrades, ask how much it would cost to improve your room. The clerk may provide you with a discounted rate if they know you are willing to pay. Do not ask while other guests are around.
2. Take advantage of a special occasion. When hotels learn that a guest has chosen to celebrate a special event at their establishment, they are honored. Special occasions provide them with a chance to show off. They will strive to make your stay special and memorable. When booking the room, mention that while you are there you will celebrate a special occasion, such as an anniversary, birthday, or honeymoon. While checking in, subtly mention that you are there for a special occasion. The clerk may then choose to upgrade your room or at the very least provide you with a surprise, such as champagne and chocolates.
3. Be loyal to the hotel chain. Loyal hotel guests receive special treatment. Joining the hotel’s loyalty program may help you distinguish yourself as a loyal guest. You will also rack up reward points that could lead to a free upgrade or even a free stay.
| 4 |
Can you name some sci fi movies that were release in 2015?
|
Sure, here are five Sci-Fi movies released in 2015:
1. The Martian: This movie is about an astronaut who is stranded on Mars after his team assumes him dead. He has to rely on his ingenuity to find a way to signal to Earth that he is alive and can survive until a potential rescue.
2. Mad Max: Fury Road: This movie is set in a post-apocalyptic wasteland, where a woman rebels against a tyrannical ruler in search for her homeland with the aid of a group of female prisoners, a psychotic worshiper and a drifter named Max.
3. Ant-Man: In the film, Scott Lang (Ant-Man) Lang, armed with a super-suit with the astonishing ability to shrink in scale but increase in strength, must help defend Pym's Ant-Man shrinking technology and plot a heist with worldwide ramifications.
4. The Hunger Games: Mockingjay - Part 2: Teamed with a group of her closest friends, the heroine Katniss goes off on a mission with the unit from District 13 to liberate the citizens of Panem, and stage an assassination attempt on President Snow who has become obsessed with destroying her.
5. Jurassic World: This movie is about a theme park of cloned dinosaurs, dubbed Jurassic World, plunges into chaos when a transgenic dinosaur escapes from its enclosure, and goes on a rampage, while a conspiracy orchestrated by the park's staff creates more dangers.
| 4 |
I am interested in being a Telecommunicator.
|
## Account telecommuting tip
1. Work in an office setting for a few years before starting to work from a home office. These years are not only valuable for experience, but they also allow you to build up a client base.
2. Become part of a local professional network or volunteer organization. When you work from home, it is even more important to network with people in the business community. As a telecommuter, you will rely on contacts and referrals.
3. Invest in organization and technology in your home office. Having fewer employees means that you will have to ensure your system is impeccably organized, automated and secure. Your ability to stay on top of projects is likely to have an effect on future jobs from repeat business. Other technology that you may want to look into is routing office calls to your cell phone, an Internet fax service, an online receipt scanner, like Shoe boxed, and video conferencing.
4. Create a website for your business. You will need to invest in marketing in order to make your business appear legitimate to prospective clients, and get your name into the public. Keep the following information in mind when developing your website. Post reviews from current and former clients. This can help show potential clients the diverse types of accounting you can do. Advertise the advantages of using a home-based accountant. In general, home-based accountants charge approximately 70 percent less because they have less overhead. You may also be able to offer more flexible meeting times than office-based accountants and more personal attention. Link your website to your LinkedIn profile or a resume, so that clients can see what experience you have in the field and your certifications. Add on website plugins like an appointment scheduler and a contact form.
## Find telecommuting job
1. Ask your former or current clients for referrals. Although your clients may stay with an accounting firm if you leave it, the best way to look for jobs is to give out business cards and inquire with business professionals and former clients if they would give your name to anyone in need of accounting services.
2. Reach out to your friends, family and contacts before tax season every year. Consider having a client appreciation party during the summer or holiday season, where clients are also encouraged to bring their friends. This will help you cement existing business relationships and perhaps find new ones.
3. Register for online accounts with telecommuting job websites, such as Virtual Vocations or Freelanced. This site's job postings are dedicated to remote workers. You can post your resume for potential employers to see, and you can search by job date, location, travel requirements and employer when you need to look for work. You may also want to pay for a membership with FlexJobs, hea-employment.com. A membership will cost approximately $15 per month or $50 for a year. They also have a guarantee that you will find jobs.
*
* Comb the site ModernTelecommuter. Although this site is not fee based, it combs websites for telecommuting jobs, which can often be outdated. However, its aggregate function may save you time on your job hunt.
4. Search on large job posting sites like CareerBuilder, Indeed or Monster. Make sure to tick the box that says "Telecommute" when searching on these sites. Also, keep in mind that there will be a large amount of competition for any posting, so you will need to apply quickly and often for jobs.
5. Interview and list yourself with a local employment or staffing agency. Recruiters are always looking for professional contractors that may be able to fill positions with companies. Make sure to be clear about your desire to telecommute and your available time.
6. Go directly to websites of large accounting firms and businesses. Review their job postings for telecommute positions. Although this takes a fair amount of research, it is becoming more common for businesses to hire remote, part-time workers to take on their accounts receivable and other bookkeeping tasks.
7. Check back frequently on your local Craigslist site. A lot of part-time work is listed on this site. Businesses or individuals may be seeking an accountant, without having restrictions on where the work is done.
| 4 |
Explain how can I open access to my local database within Docker?
|
By default after deployment MySQL has following connection restrictions:
```mysql> select host, user from mysql.user;
+-----------+---------------+
| host | user |
+-----------+---------------+
| localhost | healthchecker |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | root |
+-----------+---------------+
4 rows in set (0.00 sec)
```
Apparently, for the security purposes you will not be able to connect to it outside of the docker image.
If you need to change that to allow root to connect from any host (say, for development purposes), do:
* Start your mysql image with all port mappings required:
```docker run -p 3306:3306 --name=mysql57 -d mysql/mysql-server:5.7```
or, if the complete port mapping is required:
```docker run -p 3306:3306 -p 33060:33060 --name=mysql57 -d mysql/mysql-server:5.7
```
* If this is the fresh installation - grab the default password:
```docker logs mysql57 2>&1 | grep GENERATED```
* Connect using ```mysql``` client directly to the mysqld in docker:
```docker exec -it mysql57 mysql -uroot -p```
* If this is the fresh installation you will be asked to change the password using ```ALTER USER``` command. Do it.
* Run SQL:
```update mysql.user set host = '%' where user='root';```
* Quit the ```mysql``` client.
* Restart the container:
```docker restart mysql57```
Now you will be able to connect from MySQL Workbench to
```host: `0.0.0.0`
port: `3306`
```
After all the changes the query will show:
```select host, user from mysql.user;
+-----------+---------------+
| host | user |
+-----------+---------------+
| % | root |
| localhost | healthchecker |
| localhost | mysql.session |
| localhost | mysql.sys |
+-----------+---------------+
```
| 5 |
Create an answer giving suggestions how someone could go about planning their trip when travelling in st louis.
|
Whether you're traveling around St. Louis on vacation, visiting the area on business or live in the metro area, there are several ways to get around St. Louis on the cheap. The city's bus, train or van metro system are among the cheapest ways to get around. Another good note is that if you're visiting the dowtown STL area during the week, there are often "City Guide" personnel roaming (either on bike or foot), that will assist with any directions.
## Plan your trip
1. Use St. Louis area maps to make getting around easier and cheaper. The St. Louis Convention and Visitor's Commission offers several downtown, metro and area maps that can help you plan your visit.
2. Use the trip planner on the St. Louis Metro Transit website to plan the easiest and least costly routes around the city. The planner can help you choose between taking a taxi, the MetroBus or MetroLink train.
## Ride the metrolink
1. Purchase MetroLink tickets at vending machines in MetroLink stations. You can buy tickets or weekly and monthly passes with cash or a credit card. You can also purchase passes at the downtown St. Louis MetroRide store or online at the St. Louis Metro website. Buy either a 1-hour, 2-hour or 1-day pass for the MetroLink system. Two-hour and day passes also give you access to the MetroBus system while traveling in St. Louis. Passes start at just $2 for adults.
2. Choose which MetroLink line you need to take to reach your destination. The MetroLink operates a Red Line between the Lambert Airport in Missouri and the Shiloh-Scott Station in Illinois. The Blue Line operates between the Shrewsbury-Lansdowne I-44 stop in Missouri and a station in Fairview Heights, Illinois.
## Ride the metrobus
1. Plan a MetroBus route. You can travel from Illinois to Missouri via MetroBus routes. The system's stops include many of the city's major attractions, like the civic center, Laclede's Landing and Busch Stadium. Use the MetroBus schedule to help find the best route to your destination before purchasing your tickets. Some routes may be quickest and less expensive if you combine a ride on the MetroBus with the MetroLink.
2. Pay your MetroBus fare with exact change as you board, or purchase a MetroBus pass or tickets ahead of time at the MetroRide store in downtown St. Louis or online. If you'll be using both MetroLink and MetroBus, consider buying a combo fare pass at the store to save money.
## Use the metro call-a-ride service
1. Call for door-to-door transportation service in many areas of the city through the Metro Call-a-ride program. The service is available as a link to the MetroBus or MetroLink services, or from other designated locations. Call-a-Ride rates start at $13.
2. Consider using the Metro Call-A-Ride if you or anyone in your party has a disability. The ride program is available for those who qualify for the Americans With Disabilities Act at a reduced rate starting at $4.
3. Call 314-652-3617 or toll free 888-652-3617, up to a week in advance to reserve curb-side service from Metro Call-A-Ride. You can make reservations the day you travel, but Call-a-Ride cannot guarantee you space.
| 4 |
Can you write out a one sentence description for this film?
|
The initial scene of the movie portrays a dense and foggy forest with eerie background music. A group of individuals is heard screaming in terror while fleeing from an unidentified entity. The shot then zooms in on a mysterious creature with illuminated eyes as the movie title and release date are displayed. "Witness unparalleled fright. See [Movie Title] in cinemas on [Release Date]. Rated R."
| 4 |
What is known about the history behind Ohm, Volt and Farad?
|
The volt, ohm and farad were introduced by the same person, Latimer Clark, a cable engineer, in a paper in 1861. He started the tradition of naming units after scientists. He initially distorted all names: the unit names ohma, volt, galvat (from Galvani), and farad (from Faraday). In his words, he "neglected etymological rules".
In that same year, a committee of the British Association for the Advancement of Science began developing a coherent system of electrical units, the cgs system. Varley, a committee member, liked Clark's proposal, but he advocated adding a French name such as Ampere, to facilitate the international acceptance of the new units ("I should like to introduce a French name into the list. We have Germany, England and Italy represented"). For the same reason he may have pleaded for not distorting the French and German names. In addition, Varley objected to the galvat "because Galvani discovered next to nothing".
Latimer Clark adapted the unit names in his 'Elementary treatise on electrical measurement' (1868). He changed ohma to ohm, and dropped the galvat. Maxwell acknowledged Clark's practical units and their names in his 'Treatise on electricity and magnetism' (1873). In 1881, at the International Electrical Congress in Paris), two French names, ampere and coulomb, were added. The diplomacy worked, and the new system of electrical units was adopted by all countries. The only units that kept the initial name distortion were the volt and the farad.
| 4 |
I'd like you to write me an email explaining what resources exist for someone trying to learn another language from scratch.
|
From free apps to immersive online courses, there are many resources to learn a new language. Some great apps and online programs include Rosetta Stone, Duolingo, Babbel, etc. It’s also a good idea to take language classes in person or online, where you can ask your teacher questions and practice speaking with your teacher and classmates.
Here are some other tips for learning a new language:
* Set your language goals. When you’re first figuring out how to learn a language, you should focus on some short-, medium- and long-term goals. These can help to give structure and direction to your learning. Adding timescales to your language-learning goals can help to keep you on track and motivated.
* Learn common vocabulary. This can help to quickly build your understanding in a day-to-day setting, allowing you to have and follow basic conversations.
* Find a style that works for you. There are many different tools, techniques, and styles you can use when you’re learning a language. Whether it’s using flashcards, grammar translations, spaced repetition, immersive learning or any other approach, you have plenty of options. Figuring out the right combination of techniques can help you progress at a rate you’re happy with. You’ll find all kinds of apps, websites, textbooks, and other materials out there that help with different methods.
* Practice speaking. A crucial part of learning a language is being able to recognise, understand and reproduce sounds. You don’t have to necessarily go out and start chatting with native speakers right away (although this can certainly help). However, talking to yourself, practicing your vocabulary out loud, and even recording yourself speaking your new language can help to build your confidence.
* Connect with a native speaker. Communicating with new people in your target language is often intimidating. You might be scared to make mistakes or feel that your current level isn’t good enough. However, practicing with a native speaker can help you quickly improve your language skills.
* Engage with the culture. Language often evolves in line with the culture of the groups who speak it. Therefore, to really master a language, you’ll want to make sure you’re also familiar with the cultural context that goes with it.
I hope this helps!
| 4 |
Write instructions explaining exactly what steps someone needs to follow to successfully complete whatever task/action was asked.
Generated instruction: Can you write me detailed step-by-step instructions on how I can restore my silver jewelery to its former glory.
|
Silver tarnishes as it’s exposed to air and light. Fortunately, restoring your silver to its original gleam can be done fairly easily. Whether you use a combination of baking soda and vinegar, salt and lemon juice, beer, aluminum foil and baking soda, silver polish, or toothpaste to get the job done, you’ll have your silver looking brand new in no time! Plus, each method is effective for rings with diamonds, gems, or other precious stones in them.
## Cleaning rings with baking soda and vinegar
1. Mix ⁄2 cup (120 mL) of vinegar and 2 tbsp (28.3 g) of baking soda. Pour the 2 ingredients in a small plastic container. Then, stir the mixture 4-5 times with a spoon. You will start to see a bubbling reaction. You can use a metal or glass container if you’d like.
2. Submerge your rings in the solution for 2-3 hours. Ensure the rings are completely submerged the entire time. Otherwise, you’ll have an uneven clean. Check the rings every 30 minutes to see that they’re completely soaked in the solution. Take them out of the mixture after 2 hours to keep tabs on their progress. If the rings don’t look clean after 2 hours, stick them back in the solution and wait 1 more hour.
3. Scrub the rings with a toothbrush. Remove the rings from the baking soda and vinegar solution after a few hours. Use a toothbrush to scrub and polish the rings, paying special attention to particularly tarnished areas.Tip: Dedicate a new, soft-bristled toothbrush to cleaning your rings and be sure to rinse it thoroughly once you're done.
4. Rinse the rings under cold water to remove residue. Turn on your faucet and let the water get cold. Then, place the ring under the water stream and rinse it for 15-20 seconds to remove the vinegar and baking soda residue.
5. Dry the rings with a soft, clean cloth. Use a new, lint-free piece of cloth to remove any remaining residue and buff the rings. Make sure to flip the cloth over and use both sides to clean the rings. Otherwise, some of the residue could rub back onto the rings and you’ll have to start over. Do not use a paper towel to clean the rings, as this could scratch the silver.Did you know? The baking soda and vinegar create a chemical reaction which sucks up the tarnish and removes it from the rings.
## Soaking your rings in beer
1. Pour a fresh beer into a glass or bowl. Use a regular, unopened beer to clean light tarnish off of your rings. Open the beer and transfer it into a glass or bowl.You only need enough beer to cover your rings, so you may not need to use the entire can or bottle.
2. Soak your rings for 10-15 minutes. Place your rings into the glass or bowl, then set a timer for 10-15 minutes. Allow your rings to soak so that the beer has time to remove the tarnish.Leaving your rings in the beer for longer than 15 minutes won't harm them, but it's not necessary.
3. Rinse your rings with warm water. Hold the rings under a stream of running water to rinse off the beer. Make sure you rinse the rings thoroughly to remove all of the beer.Be careful not to drop the rings. It may be a good idea to close the drain in the sink just in case.
4. Dry your rings using a soft cloth. First, soak up any excess water. Then, use the cloth to lightly buff the rings to remove any remaining tarnish. Your rings should look shiny and clean!
## Using lemon juice and salt
1. Add 1.5 cups (350 mL) of warm water to a bowl. Use a measuring cup to pour the correct amount of water into a bowl. Use warm water so that the salt will more easily dissolve.Don't use hot water because you don't want to accidentally burn yourself.
2. Stir 1 tbsp (17 g) of salt and 1 US tbsp (15 mL) of lemon juice into the water. Measure out the correct amount of salt and lemon juice. Add them to your warm water, then stir the ingredients together with a spoon until the salt dissolves.It should only take a couple of minutes to mix the ingredients.
3. Add .5 cups (34 grams) of dry milk to the mixture. Measure out the dry milk, then slowly pour it into the bowl. Stir the mixture with a spoon until the dry milk completely dissolves in the water. Once the water is an opaque, milky white, your solution is ready to use.You can try doing this method without the milk. If you don't want to use dry milk, triple the amount of salt and lemon juice you use. Add 3 tbsp (51 g) of salt and 3 US tbsp (44 mL) of lemon juice.
4. Place your rings in the solution and soak for 6-8 hours. Slowly drop your rings into your homemade cleaning solution. Then, leave them to sit for at least 6-8 hours. This gives the solution time to work.You can leave them to soak overnight for an easy option. Otherwise, set a timer so you can check on them in 6-8 hours.
5. Remove your rings and rinse them in warm water. Use a fork or slotted spoon to retrieve your rings from the cleaning solution. Then, hold your rings under warm running water. Rinse your rings until all of the cleaning solution is removed.Be careful that you don't accidentally drop your rings in the sink. It's best to close the drain just in case.
6. Dry your rings with a soft cloth. Pat your rings dry to remove any excess moisture. Then, use your cloth to buff the rings, which should remove any remaining tarnish. Your rings should look shiny and tarnish-free!
## Polishing rings with aluminum foil
1. Place aluminum foil along the bottom and sides of a bowl. You can use a plastic, glass, or metal bowl or dish for this process. Rip off a sheet of aluminum foil and use it to cover the entire inside of the bowl. To ensure the aluminum foil fits securely, wrap it around the edges of the bowl and press down firmly to lock it in place.
2. Fill a pot with water and bring it to a boil. Use enough water to fill the dish that’s covered in aluminum foil. Place the pot on the stove and turn the burner to high. Keep the pot on the stove until the water comes to a roaring boil. The aluminum foil dish doesn’t need to be that big to fit a couple of rings, so you won't need a lot of water. As a result, it should come to a boil within a few minutes.
3. Add 1 tbsp (14.3 g) of baking soda per 1 cup (240 mL) of water. If you’re working with an 8 oz (230 g) container, you’ll only need 1 cup (240 mL) of water and therefore only 1 tablespoon (15 mL) of baking soda. Pour the baking soda into the water and stir the mixture for about 5 minutes. The solution will froth and bubble a little bit.
4. Put the rings in the dish so that they’re touching the aluminum foil. Set the rings at the bottom of the dish. Depending on how many rings you’re trying to clean, some of the rings might touch up against the side of the dish. This is why it’s important to have the sides of the dish covered in aluminum foil as well. Let the rings sit on top of the aluminum foil for 5 minutes. In order for the chemical reaction to occur, the rings need to be touching the aluminum foil at all times.
5. Pour the solution into the dish to soak the rings. Remove the mixture from the stove and slowly pour it into the dish. Wear oven mitts and pour carefully. Let the rings sit in the solution for 10 minutes. Depending on the level of tarnish, the job might be done in 2 minutes. Check your rings every few minutes to see how much of the tarnish has worn off. Once the rings look shiny and polished, you can remove them from the solution with tongs.
6. Allow the rings to dry on a towel for 15 minutes. Take the rings out of the solution and put them on a kitchen towel. You can finish drying the rings off by wiping them with a clean, white cloth. This process works for anything that’s made of silver.Did you know? The aluminum foil works with the solution of water and baking soda to reverse the chemical reaction that made the silver tarnish in the first place.
## Using silver polish to clean your rings
1. Put a small amount of polish on a clean cloth. You get can silver polish at your local hardware store or buy a bottle online. Squeeze out a dab of polish and rub it into the cloth. You can dampen the cloth if you’d like. You can get a bottle of silver polish for under $10.
2. Rub the polish in an up-and-down motion. Don’t rub the polish in a circular motion. If you do this, you’ll highlight the scratches in the rings. Place your fingers in the cloth and gently rub the polish over each part of your rings. The polish will eliminate the tarnish and make your silver rings shine.Tip: Use a clean cloth for each ring and flip the cloth over when you see tarnish on the fabric to avoid transferring it back to the silver.
3. Rinse the rings and dry them with a cloth. Run the faucet for 2 minutes so that the water becomes warm. Once the water heats up, place the rings underneath the faucet to remove any excess polish. Then, buff the rings with a new, dry cloth to get the shine you’re looking for. Clean the rings with an unused cloth to avoid putting the tarnish or polish back on the rings.
## Utilizing non-gel toothpaste to clean your rings
1. Apply toothpaste to your silver rings. Put a dollop of toothpaste directly on the silver. Apply the same amount of toothpaste you would use to brush your teeth. It doesn’t matter where on the ring you put the toothpaste because you’ll be spreading it evenly with your toothbrush.Warning: Do not use toothpaste with gel to clean your rings. The gel will not clean the rings effectively.
2. Wet a toothbrush lightly and brush the rings, then wipe off the toothpaste. Add a few drops of water to your toothbrush and vigorously scrub the toothpaste into the rings. Get in all the tough to reach spots, such as any engravings. The toothpaste will eliminate the tarnish and make your silver look good as new. Use a new, clean, soft-bristled toothbrush for this job. Wipe off any excess toothpaste with a dry cloth.Tip: If your rings have a ton of tarnish on them, let them sit for about 1-2 minutes before finishing the job.
3. Rinse the remaining toothpaste off with cold water and dry your rings. Turn on your faucet and place each ring under the running water for about 30 seconds. Be sure to remove all the toothpaste and tarnish residue
* Pat the rings dry with a cloth when you’re done.
| 5 |
Can you make me laugh with jokes, like this one: Why did the 2+3=5?
|
Here is joke about numbers:
Why was the number 10 scared?
Because 7 8 9.
| 4 |
write me a one page long review for this following paper: https://arxiv.org/abs/2105.03967.
|
Here is a review for the paper your described:
## Summary
The authors investigate the frequent changes of channels in communication systems and treat these changes as shifts in distribution (domain). The framework of few-shot domain adaptation is considered to tackle the problem in question.
## Strengths
* From a structural point of view: The paper is well-written. The method is clearly presented and ideas are easy to follow.
* From an analytical point of view: The proposed approach is novel, evaluated rigorously, and compared with well-suited baselines. This paper also considers a range of scenarios with different types of domain shifts, real-world as well as synthetic evaluations. Furthermore, it takes a step in the right direction by considering the more realistic assumption of the non-stationary distribution of a channel in communication systems.
* From a perspective of soundness and completeness: The strength points mentioned above are sufficient evidence of the soundness and completeness of the paper. The transparency aspect of the submission is also appreciated as open-source code is provided for reproducibility purposes and other details are contained in the appendix.
## Weaknesses
* This paper's baselines only include basic FDA solutions, and it does not consider few-shot domain adaptation methods such as "Few-Shot Adversarial Domain Adaptation" as a comparison. This omission is worth noting since it raises concerns about the competitiveness of the proposed method. Including few-shot domain adaptation methods as baselines would provide a more comprehensive evaluation of the proposed method's performance.
* The paper's evaluation metric solely relies on the SER. However, it is crucial to showcase the proposed method's performance in practical communication scenarios. To demonstrate the advantages of their learning-based approach over conventional methods, the authors should consider including additional metrics that demonstrate the proposed method in real-world settings.
## Potential of the paper
The proposed solution has great potential to be of benefit to the whole community, especially researchers interested in the application of deep learning in communication systems.
| 4 |
Write a JavaScript code that compares two or more given object(s), whether they are equal to each other.
|
As serialization doesn't work generally (only when the order of properties matches: ```JSON.stringify({a:1,b:2}) !== JSON.stringify({b:2,a:1})```) you have to check the count of properties and compare each property as well:
```const objectsEqual = (o1, o2) =>
Object.keys(o1).length === Object.keys(o2).length
&& Object.keys(o1).every(p => o1[p] === o2[p]);
const obj1 = { name: 'John', age: 33};
const obj2 = { age: 33, name: 'John' };
const obj3 = { name: 'John', age: 45 };
console.log(objectsEqual(obj1, obj2)); // true
console.log(objectsEqual(obj1, obj3)); // false```
If you need a deep comparison, you can call the function recursively:
```const obj1 = { name: 'John', age: 33, info: { married: true, hobbies: ['sport', 'art'] } };
const obj2 = { age: 33, name: 'John', info: { hobbies: ['sport', 'art'], married: true } };
const obj3 = { name: 'John', age: 33 };
const objectsEqual = (o1, o2) =>
typeof o1 === 'object' && Object.keys(o1).length > 0
? Object.keys(o1).length === Object.keys(o2).length
&& Object.keys(o1).every(p => objectsEqual(o1[p], o2[p]))
: o1 === o2;
console.log(objectsEqual(obj1, obj2)); // true
console.log(objectsEqual(obj1, obj3)); // false```
Then it's easy to use this function to compare objects in arrays:
```const arr1 = [obj1, obj1];
const arr2 = [obj1, obj2];
const arr3 = [obj1, obj3];
const arraysEqual = (a1, a2) =>
a1.length === a2.length && a1.every((o, idx) => objectsEqual(o, a2[idx]));
console.log(arraysEqual(arr1, arr2)); // true
console.log(arraysEqual(arr1, arr3)); // false
```
| 4 |
Please explain why Herman Melvile chose the structure he did in writing Moby Dick.
|
There are multiple purposes behind the novel structure of Moby-Dick.
In the first instance the author was himself a whaleman, having spent 18 months as an ordinary seaman aboard the whaler Acushnet in 1841–42. In his experience the literature of the day, such as Miriam
Coffin or The Whale-Fisherman by Joseph Hart, did not portray whaling accurately but rather sensationalised it. He wished to provide his readers with a more realistic account.
In doing so, he also gave the reader the information necessary to better understand and appreciate the passages of whaling described in the novel. With the reader forewarned, he is able to keep the narrative passages tense and exciting. It is interesting that, early in the novel, the Pequod meets virutally no whales and that the chases become longer and more involved as the story progresses. This may be because Melville felt he needed to give the reader more and more technical information before they could fully appreicate these encounters, but understood the science would need to be spaced out among the narrative.
In describing it to the reader, the science also serves another useful narrative function. It indicates that on whaling voyages, long periods of time pass when nothing much happens at all. By padding out of the story with scientific digressions serves as a useful narrative metaphor for waiting.
The level of detail provided also mirrors one of the novel's central themes: obsession. Although Ishmael is the narrator and Ahab the obvious obsessive, the amount of science indicates that Ishmael is also an obsessive. His obsession is the business of whaling itself.
Finally, Melville made good use of these passages in serving as metaphors for other themes of the novel where he felt it appropriate. For example in the chapter The Line, which describes how the whale line is stored and used in the boat, it ends by using the line as a metaphor.
"All men live enveloped in whale-lines. All are born with halters round their necks; but it is only when caught in the swift, sudden turn of death, that mortals realize the silent, subtle, ever-present perils of life."
| 4 |
Do Q & K have any relation or are just random letters? Why do some people spell Kuwait as Kuweit for example?
|
In Arabic, in fact, they've always been separate sounds! The sound we write "K" is spelled with the letter ك in Arabic, and is pronounced a little bit further forward in the mouth; the sound we write "Q" is spelled with the letter ق and pronounced a little bit farther back. In phonetic terms, "K" is a velar sound, and "Q" is a uvular sound.
English doesn't distinguish between these two different sounds. But since we've got a spare letter lying around—the English letter "Q" is actually related to the Arabic letter ق, if you go back far enough!—it's become conventional to separate them in writing. "Kuwait" is spelled with a ك, so it gets a "K"; "Qatar" is spelled with a ق, so it gets a "Q". The "Qur'an", similarly, has a ق in it.
Nowadays, by the way, the letter "Q" has started to be associated with Arabic in particular, since it shows up significantly more there than in English. So in pop culture, you'll sometimes see names like "Hakeem" respelled to "Haqim"—even though the original Arabic has a ك in it! Linguistically, this is called hypercorrection, and it's the same reason you'll see words like "forté" with an é: English-speakers associate the acute accent with Romance loans (café, fiancé, résumé), but it has no special meaning in English, so it sometimes gets inserted where it doesn't actually belong (the original Italian word is simply forte).
| 5 |
Can I use TOR as an alternative DNS resolver?
|
Tor clients do not, in general, directly do DNS requests. When you open a connection through the tor network you usually ask your client (on its socks ports) to connect you to a hostname and port, say www.example.com:80.
Your tor client, once it has created a circuit, will send that hostname and port to the exit node in its RELAY_BEGIN cell.
The exit node will then do a DNS resolve and open a TCP connection to the target. Once that's established it will tell your client that the connection is open, and for informational purposes will also tell your client what address that hostname resolved to.
Tor, in addition to that, has some sort of "remote DNS resolve" protocol built in. This support allows clients to query for certain resource types, like IPv4 or IPv6 addresses. Here too, the exit node does the actual DNS packet sending and receiving and just relays the answer to the client.
No UDP packets are actually ever routed from the client.
There's also a proposal to add more full featured DNS support to Tor. So far it hasn't been implemented.
Tor Protocol Specification references
* 6.2. Opening streams and transferring data
* 6.4. Remote hostname lookup
* Proposal 219 - Support for full DNS and DNSSEC resolution in Tor
| 4 |
I'm trying to solve this problem but have trouble with finding out how to integrate it properly as well as getting rid of all the sin and cos functions that are inside square roots so they can be integrated easily.
|
Sure, here is the solution.
$$I=\int\left( \sqrt{\tan x}+\sqrt{\cot x}\right)dx$$
$$=\int \frac{\sin x+\cos x}{\sqrt{\sin x\cos x}} dx$$
Putting $\sin x-\cos x=u$, $du=(\cos x+\sin x)dx, u^2=1-2\sin x\cos x,\sin x\cos x=\frac{u^2-1}2$
$$I=\int \frac{\sqrt 2du }{\sqrt{1-u^2}}=\sqrt 2\arcsin u+C=\sqrt 2\arcsin(\sin x-\cos x)+C$$
where $C$ is an arbitrary constant for an indefinite integral.
| 4 |
What should I do when somebody asks me via e mail to transfer $1286 dollars because he needs that amount to buy a ticket?
|
The first rule for every such question is simple:
If you have to ask, it's probably a scam
While we cannot possibly examine every possible situation from every angle, online scams are simply far too common to trust someone you have known only on the Internet or even what appears to be a real friend or relative, who may have had their email accounts hacked or might be simply being impersonated. So the basic advice is: don't send out your private details, don't pay for anything and don't send any money for any purposes.
Some common examples are:
* love interest who wants to meet you.
* 'supposed' friend in need.
* prize/lottery.
* inheritance of some distant relative.
* person in distress asking you to take care of their financial assets.
* some government/private fine/tax/loan/offer scam
If you know the person who seems to have send the email asking for money in person, contact them in an other way or have them answer a personal question only they know the answer to, before you accept their email as real.
In many countries there are organisations to whom you can report internet fraud or suspected internet fraud. They also offer advice about common scams and how to recognise them.
In the USA: The IC3 (part of the FBI) (further information from the FBI on romance scams)
In Canada: The Canadian Anti-Fraud Centre
In the UK: Action Fraud
The second rule for every such question is also simple:
google this requirement
A legitimate requirement, if exist, would be found on the relevant official sources, including the airline or Embassy web sites. For example, Indian nationals are required to show USD 500/week to enter Thailand.
Many countries also require visa applicants to show means of financial resources. However cash is rarely accepted as such evidence (since one can just borrow it for a day), and depositing this cash in applicant's bank account a day before applying for a visa usually backfires.
| 4 |
How to Build a Function Model Water Tower.
|
Water towers are large, elevated tanks of water that are essential for the distribution of clean water to many communities across the globe. Not only do they come in many different shapes and sizes, but it’s intriguing to learn about the way water towers work. Whether you need a model water tower for a train set or school project, or you simply want to learn about the way they work, you can easily build your own model with the right materials and know-how.
## Create a function model water tower
1. Locate a small plastic bottle and a large plastic bottle. The small water bottle can be a standard-sized Coke, juice, or water bottle, as long as it has a screw-on cap. The large bottle should be a 2-liter soda bottle, jug, or a large juice bottle. Test the size of your bottles by placing the small bottle upside-down, with its neck sticking into the opening on the large bottle. The small bottle should sit comfortably on top of the large one. If it does not, you will need to find different bottles. The bottles must be plastic, as you will need to cut them.
2. Remove the cap from the small bottle and cut a hole in the middle of it. Use scissors to punch a hole into the center of the cap, then widen the hole until it’s slightly smaller than the circumference of the holes at both ends of the tubing. Water will leak out of the hole if it’s too big, but it will still need to be big enough to push the tubing into it. It’s better to have a hole that’s too small than a hole that’s too big, as you can always use your scissors to widen it if necessary.
3. Punch a pin-sized hole in the bottom of the small water bottle. Use a pin, needle, earring, or any other device that will create an almost invisible hole. This will allow the bottle to vent when the water starts flowing.
4. Cut a medium-sized hole in the side of the large bottle. Make the hole big enough that the cap and tubing can both fit through it. You can put the hole anywhere on the bottle that you choose, but roughly halfway down the bottle is a good option. Unlike the small bottle, you don’t have to worry about leaks if this hole isn’t the right size. This hole can be large or small just as long as the cap and tubing will fit through it comfortably.
5. Feed 1 end of the tubing through the hole in the large bottle. Push the tubing through the large hole and out through the top of the large bottle. Lay the large bottle on its side with the hole you cut facing upward for easier access.
6. Squeeze the same end of the tubing into the hole you cut in the cap. Feed roughly 1–2 inches (2.5–5.1 cm) of tubing in through the cap. Clamp the binder clip roughly 2 inches (5.1 cm) from the end of the other side of the tubing. Put the side of the tubing with the binder clip into a bowl that will catch the water. If your hole on the cap is the right size, you will have to forcefully push the tubing into the hole. It should fit snugly in the hole without slipping.
7. Fill the small bottle with water. Once the bottle is full, place the cap with the tubing through it on top of the bottle. Feed the tubing into the water, then screw the cap on tightly. Hold your finger over the pin-sized hole on the bottom of the bottle to keep water from leaking out.
8. Place the small bottle upside-down in the top opening on the large bottle. The neck of the small bottle should fit all the way into the opening on the large bottle. You now have a functioning model water tower! The water should flow into the tubing once you flip it upside down, but the binder clip will stop the flow. Experiment by releasing the clip at different heights to see where the water stops flowing.
## Build a model water tower with popsicle stick
1. Cut the rounded ends off of roughly 70 Popsicle sticks. Barely snip both ends of each Popsicle stick to make the ends straight on both sides. Make them all as close to the same size as possible. To cut the sticks evenly, line up the second stick with the first stick you cut. Use the first Popsicle stick as reference for where to cut the second stick. Do the same thing for the third, the fourth, and so on, until all 70 Popsicle sticks are the same size.
2. Snip 2 of the cut Popsicle sticks in half. You don’t have to measure them, but cut them as close to the center as possible. You will now have 4 smaller pieces of Popsicle stick that are roughly half the length of the other Popsicle sticks.
3. Apply glue to 1 end of 1 of the small stick sections. Connect the edge of a second small stick to the area where you just applied glue. Then, apply glue to the end of the second piece that is not connected. Glue the edge of a third small section to the open second section. Repeat this process for the fourth section, then apply glue to connect the edge of the fourth section to the open edge of the first section you glued. You will now have a square frame made out of the 4 smaller Popsicle pieces. Your frame doesn’t have to be perfectly square. In fact, if you’re going for a rustic look, an imperfect square may even be ideal. If you’re using super glue, you can apply glue to all 4 edges before connecting them all together. If you’re using hot glue, make sure to glue each edge separately. This will keep the glue from drying before you can connect all 4 sections together.
4. Line up 2 larger Popsicle sticks to create 1 long, straight stick. Place the sticks on a flat surface with their ends touching. Take another Popsicle stick of the same size and apply glue to the entire surface on 1 side, lengthwise. Place the glued side directly in the middle of the 2 sticks that are lined up. The third stick does not have to be exactly in the middle of the other 2 sticks, but it should be close enough that it holds the other 2 sticks together evenly.
5. Repeat this process 3 more times. Follow the same process as before by lining up 2 of the larger Popsicle sticks and gluing a third stick on top of them. Do this 3 more times until you have 4 identical long sections that are each made out of 3 glued Popsicle sticks.
6. Connect the end of 1 of the long sticks to the inside corner of the square frame. Apply glue to the inside edge of the long stick and place it at a slight outward angle, with the third stick that is holding the other 2 sticks together facing inward. Glue the long stick so that it does not poke out above the frame once connected. Do the same thing with the other 3 long sections you created in the other 3 corners of the frame. This will form the legs of the water tower, so make the angle as identical as possible for each of the long sticks. Keep the angle of the legs around 10-15 degrees. If the angle is too steep, the water tower will be too short. If it is too steep, it will probably topple over.
7. Use another Popsicle stick to connect 2 of the legs together. Apply glue to each inside edge of the stick. Place the edges of the Popsicle stick on top of the lines where the 2 Popsicle sticks used to create the legs meet. Do the same thing with 3 other sticks until you have a stick connecting the legs on all 4 sides. You will need to spread the legs apart so that the sticks do not hang outside the edge of the leg. Keep the connecting sticks as level as possible. You want it to appear as if there is a single, continuous stick wrapping around the legs of the tower, not 4 separate small sticks.
8. Lay 9 Popsicle sticks side-by-side on a flat surface. Line them up along their long edges so the sticks make a square when lined up. Apply a line of glue on the edge of the square down the length of all 9 Popsicle sticks. Place another Popsicle stick along the same direction as the glue line so that it holds all 9 sticks together. Do the same thing with another line of glue and another Popsicle stick on the other end of the square. The Popsicle sticks used to hold the other 9 sticks together should be the same length as the square, so that they match up perfectly with both corners and do not hang over the edge. You may need to trim the sticks down or remove one of the 9 sticks to match up the lengths. Use your hand to hold the Popsicle stick square together as you glue it. Place your hand flat on top of all 9 sticks, and do your best to keep them all together with no gaps between them.
9. Apply glue to the top edge of the square frame you made earlier. Place the square platform you just created on top of the frame, connecting it to the base structure you already made. Glue the platform so that the Popsicle sticks used to connect the other sticks together are facing downward. You can also glue each individual Popsicle stick directly onto the square frame you made earlier. It will take longer, but you may be able to line the sticks up better this way.
10. Cut the rim off of a small paper Dixie cup. Cut around the top of the open side to remove the outer rim. Try to keep the line as straight as possible, since this will form the foundation for the water container part of your water tower.
11. Glue the remaining Popsicle sticks to the outside of the Dixie cup. Place glue along one of the wide edges of a Popsicle stick. Line up the top edge of the stick with the bottom edge of the cup and glue it down. Repeat this process around the entire circumference of the cup until it is completely covered. When gluing the sticks onto the cup, fan them out from one another to create a more realistic look. When you place the second stick on the cup, keep the edge of the stick as close to the edge of the cup as possible, but fan out the end that is jutting over the edge of the cup by about 5 degrees so that a small sliver of the cup can be seen underneath. Roughly half of the length of each Popsicle stick will be glued to the Dixie cup, while the other half will be jutting out over the rim of the cup.
12. Cover the gaps in the Popsicle sticks by gluing another layer on top. If you fanned out the sticks to create a more realistic look, go back over the cup with additional Popsicle sticks. Glue the sticks directly in the middle of two sticks on the bottom layer so that the second layer covers up any slivers of cup that may be showing. Keep the edges lined up with the bottom edge of the cup as best you can.
13. Place the Dixie cup in the middle of the platform with the open side up. Apply glue around the entire circumference of the bottom of the cup. Then, stick it down as close to the middle of the platform as possible. Use a lot of glue to attach the Dixie cup so that it doesn’t fall off if it’s bumped. Optionally, you can wrap a string around the bottom and middle of the Dixie cup to give it a Western look. Wrap the string several times for better results.
14. Use 2 wooden dowels to create a ladder. Place 2 wooden dowels roughly 1 inch (2.5 cm) apart on a flat surface. Line them up so they are parallel with the pointy side on top. Use small sections of Popsicle sticks roughly 1 inch (2.5 cm) long to create the steps. Apply glue to both ends of 1 side of the stick, then place it horizontally between the dowels so that it connects them together. Do this all the way up the 2 dowels, roughly 7 times, until about 1 inch (2.5 cm) of the pointy side of the dowels is left sticking out.
15. Lean the ladder against the water tower at an angle and secure it with glue. Glue another small section of Popsicle stick horizontally across the very tips of the dowels, above and on the opposite side of the steps. Lean it up against the side of your water tower with the tips facing up. Place glue on the backside of the tips of the dowel and press down to attach it.
| 4 |
I would like some information on how to call people in the united arab emirets.
|
The United Arab Emirates, or UAE, is a vibrant nation and tourist destination. Whether you have family and friends there or need to contact a business, you may need to call internationally. Dialing a number in the UAE is simple when you dial the correct exit, country, and area codes. Before you place your call, read about time zone differences and different calling options allowed by the UAE government to save yourself money.
## Dial a uae number
1. Dial your country’s exit code to route the call internationally. Each country has its own exit code, so the number you need to dial varies slightly depending on where you are in the world. The most common exit codes are 00, used throughout Europe, and 011, used for most of North America. Ask your phone service provider for the access code or look it up at https://www.howtocallabroad.com/codes.html
* For example, the exit code for Australia is 0011. When you dial the UAE, the phone number looks like 0011+XXX+X+XXX-XXXX. Some countries have multiple exit codes. In Brazil, for example, each phone service provider has its own exit code. If you’re calling from a cell phone, look for a + button on your number pad. Pressing it automatically inputs the exit code. You don’t need to type it in yourself afterward.
2. Type in 971 to reach the United Arab Emirates. Every country in the world has a unique country code. You will always reach a UAE number by dialing 971. In addition, the country code always comes after your exit code. Make sure you type the correct country code. If you get the code wrong, you may end up calling someone in a different country! After typing the country code, the number you have dialed may look something like 0011+971+X+XXX-XXXX.
3. Include the area code for the city you wish to call in the UAE. Like in a lot of countries, the UAE is divided up into service regions. Major UAE cities like Dubai are covered by single-digit area codes. For smaller regions like Tarif, the area code is 2 digits long. Find an area code at https://countrycode.org/uae. For example, the area code for Dubai is 4. Dial 2 to reach Abu Dhabi instead. The area code always comes after the country code, so the number you have dialed will look like 0011+971+4+XXX-XXXX. If you see a phone number that begins with 0, leave off the 0 when dialing it. For example, you may see a Dubai number with a 04 area code. The 0 is for domestic calls, so dial it only when you're calling from within the UAE.
4. Use an area code starting with 5 if you’re calling a mobile number. Mobile numbers have a separate area code no matter where you’re calling. The code you need depends on what service provider the other person has. The only way to figure out someone’s mobile phone number is by asking them or figuring out which service provider they use. Mobile codes are always 2 digits long. For example, numbers covered by Etisalat use 50 or 54. Numbers covered by Du often begin with 52 or 55. If you’re calling a mobile number, dial something like 0011+971+55+XXX-XXXX. Like with landlines, avoid dialing 0 if a phone number starts with it. You only need to dial it when you’re calling domestically.
5. Type in the phone number to complete the call. Phone numbers in the UAE are 7 digits long, excluding the area code. To complete the call, you will need to ask for that phone number or find it online. The finished phone number will look something like 0011+971+4+XXX-XXX. This number places a call to Dubai from Australia.
## Manage fee while call
1. Contact your phone carrier to get a calling plan if you make lots of calls. Notify your phone service provider that you plan on calling the UAE. Ask them about the costs and what plans they have available. Many carriers have monthly plans catering to international callers. If you think you’ll need to make lots of calls, such as when contacting family in the UAE, a prepaid plan can save you a lot of money. Note any fees the phone carrier includes in their terms of service. Calling abroad is often costly, so explore your options before settling on a carrier.
2. Get a prepaid calling plan if you make few calls. A lot of the major phone carriers offer pay as you go plans. You decide in advance how many minutes you wish to buy. When your minutes are up, you can no longer make calls until you buy more data. Prepaid plans are a great way to place international calls without paying for a monthly plan. Your phone calls are limited to what you pay for, so you do need to manage time wisely. However, using limited data prevents you from overspending on long calls.
3. Buy calling cards for reduced rates if you make short calls. Order an international calling card online or buy one from a telephone service provider. Read the front of the card to find out how many minutes it contains and what rate it charges. Make sure the card is valid for calls to the United Arab Emirates. When you use the card, dial the number on it before dialing your country’s exit code. Depending on where you live, you may be able to find cards available at supermarkets, convenience stores, and other locations. If you visit the UAE, the country’s telecom companies sell prepaid cards that stay valid even while you’re abroad. Read the fine print on the cards carefully to find out what fees come along with placing calls.
4. Purchase a Voice over Internet Protocol (VoIP) phone for frequent calls. Find a service provider that sells VoIP phone plans, such as Vonage. Phones equipped with VoIP technology place calls over the Internet instead of traditional phone lines. As a result, you can place international calls at a reduced rate. If you call the UAE several times a month, VoIP technology is a good investment. Some companies sell phone adapters that allow you to place VoIP calls on your regular phone. Use the adapter to place calls through your computer or landline. The disadvantage of VoIP phones is that you need a stable Internet connection. Using a high-speed connection increases the quality of your calls.
5. Use a legal Internet app if you wish to make quality video calls. In the UAE, the government sets regulations on what apps its citizens can use for phone calls. Voice over Internet protocol (VoIP) apps are common across the world, and the ones used in the UAE are called Botim and C’me. To use these apps, you need to either be connected to Wi-Fi or use your phone’s mobile network. The person you are calling also needs to have the app installed on their device. Botim and C’me charge a monthly fee to access the app, which can get costly for most residents. On the plus side, these apps offer both regular and video calls. As of 2018, apps like Skype and FaceTime are banned in the UAE. This may change in the near future, but for now, the UAE government wants to steer its citizens away from free services.
| 4 |
Can you tell me how I could sample random vectors from an arbitrary dimensional sphere?
|
A standard method is to generate three standard normals and construct a unit vector from them. That is, when $X_i \sim N(0,1)$ and $\lambda^2 = X_1^2 + X_2^2 + X_3^2$, then $(X_1/\lambda, X_2/\lambda, X_3/\lambda)$ is uniformly distributed on the sphere. This method works well for $d$-dimensional spheres, too.
In 3D you can use rejection sampling: draw $X_i$ from a uniform$[-1,1]$ distribution until the length of $(X_1, X_2, X_3)$ is less than or equal to 1, then--just as with the preceding method--normalize the vector to unit length. The expected number of trials per spherical point equals $2^3/(4 \pi / 3)$ = 1.91. In higher dimensions the expected number of trials gets so large this rapidly becomes impracticable.
There are many ways to check uniformity. A neat way, although somewhat computationally intensive, is with Ripley's K function. The expected number of points within (3D Euclidean) distance $\rho$ of any location on the sphere is proportional to the area of the sphere within distance $\rho$, which equals $\pi\rho^2$. By computing all interpoint distances you can compare the data to this ideal.
General principles of constructing statistical graphics suggest a good way to make the comparison is to plot variance-stabilized residuals $e_i(d_{[i]} - e_i)$ against $i = 1, 2, \ldots, n(n-1)/2=m$ where $d_{[i]}$ is the $i^\text{th}$ smallest of the mutual distances and $e_i = 2\sqrt{i/m}$. The plot should be close to zero.
| 4 |
I am interested in finding ways to lighten my bikini line without having to visit a physician or undergo surgery. Please provide me detailed instructions including steps which can easily be followed.
|
For all kinds of reasons, some people develop pigmentation in the bikini areas. However, it doesn't have to be a permanent issue. There are a variety of effective, lasting ways to address it. By safely lightening these regions, your skin can have a beautiful, even tone in the bikini areas once again.
## Lighten the bikini areas with home remedy
1. Use Papaya Soap. Papaya soap is natural and using it regularly will help to lighten the skin. Use it at least twice a day, once in the morning and once at night, until you see results. Keep your skin moisturized because it can dry out your skin. You can also mash up a chunk of ripe papaya, and apply a big dollop on the areas. Leave it on for 30 minutes and then wash it off. In a couple of week's time, you should see significant lightening.
2. Apply glycolic or salicylic acid acne pads. These two ingredients are the lightening agents used for acne treatments and can also be used for this purpose. Dab a pad on the areas and then get into the shower. Let the steam sink in for a couple minutes and wash off. Don't do this treatment immediately after shaving, however, as it could irritate it.
3. Use a lemon juice, yogurt mix. Mix juice from 1/4 lemon into a tablespoon of yogurt, and apply to the area. It acts as a mild bleaching solution that will safely lighten it. Apply aloe vera gel afterwards to keep your skin moist and hydrated. Don't do this treatment immediately after shaving, however, as it could irritate it.
4. Apply almond paste. Soak several almonds for 24 hours. Then slide the skins off, and add a couple drops of milk to make a paste. Put on the bikini areas, and leave on for an hour. Wash off with warm water. If used regularly, it works as a mild lightener and also exfoliates and softens the skin.
5. Try using milk to lighten and moisturize your skin. Pour some milk into a bowl and dip into with a cotton ball. Dab onto your skin. Milk is a natural skin lightener, and it also won't dry it out. It's not going to happen overnight but with regular use, you will see some slight results.
6. Apply peroxide onto the area. Wipe off after 15 minutes. Do this a couple of times a day until you see results. Peroxide is highly acidic, so you may want to apply a little almond or coconut oil on the area after washing it off. Don't do this treatment immediately after shaving, however, as it could irritate it.
## Go to a dermatologist to correct the problem
1. Ask the doctor about using a skin bleaching cream containing hydroquinone. This kind of cream works by preventing melanin from being produced in the skin. It's one of the most popular lightening treatments. However, if the concentration is too high or if it's used for too long, it could worsen the discoloration or reverse the effects. It can also be toxic to the liver.
2. Talk to your dermatologist about a milder skin bleaching treatment. Some alternative, fading creams that are known to have less side effects are azelaic acid, kojic acid and one containing only 2 percent hydroquinone. All of these are known to help with persistent or residual skin discoloration problems. They work by preventing keratin, a hair protein, from being produced in the skin.
3. Find out from your doctor if you're a good candidate for using a bleaching agent, such as chlorine, to lighten the areas. This is a mix formulated by the medical professional doing the treatment. Due to the concentration of bleach, dermatologists and medical doctors are the only ones allowed to administer it.
4. Opt for laser hair removal. If the darkening is caused by waxing, shaving, and/or you can see dark hair stubble as it's growing back, then laser hair removal may be a good solution for you. Though it's considered semi-permanent, the hair usually doesn't come back. However, you have to make sure to complete the recommended number of treatments and the ongoing, but infrequent, touch-ups.
## Prevent darken of the bikini areas
1. Exfoliate the area. Old skin cells don't just build up on your knees and elbows but on other areas of the skin as well. When they accumulate, they can make the skin appear darker and duller. Prior to shaving, lightly exfoliate the region using a loofah, scrub or exfoliating brush. This will remove the dry skin and will also help to prevent skin irritation and ingrown hairs in the bikini areas.
2. Use sunblock. When going in the sun, use a sunblock to keep the sun from penetrating those areas of your skin that you don't want getting darker. Choose a sunblock with a high SPF number (Sun Protection Factor) such as SPF 45 on that region. Also when you come out of the sun, apply olive oil to the area, as it's also known to be a natural skin lightener.
3. Wear breathable, cotton clothing that is loose and comfortable. Sweating in the bikini areas are known to cause darkening. Avoid polyester clothing and other synthetic fabrics, as they don't allow the skin to breath. Also tight clothing sometimes causes chafing and could also darken these areas.
4. Use a quality razor, and shave gently in the direction of the hair growth. If shaving irritates the skin, it could darken it. Basically, dark spots are caused by constant friction. If you shave every day, your skin attempts to protect it so it darkens up. Any type of injury to your skin will either create a stain or keloid. Waxing can also cause darkening if it's too hot.
5. Eat more vegetables and fruits. Fruits, oranges and berries, in particular, and green, leafy vegetables have lots of antioxidants that assist in reducing discoloration of the skin. Drinking water also helps to flush toxins out of the body.
6. Drink more water. It is one of the best ways to detoxify. There is no one-size-fits-all to how much water a person should drink. As a general rule, though, women should drink 128 ounces a day, and men should consume 128 ounces of water a day.
| 4 |
Why are all the DateTime values prior to December 3rd, 1753 set to null or zeroes in Microsoft SQL server.
|
The decision to use 1st January 1753 (```1753-01-01```) as the minimum date value for a datetime in SQL Server goes back to its Sybase origins.
The significance of the date itself though can be attributed to this man.
Philip Stanhope, 4th Earl of Chesterfield. Who steered the Calendar (New Style) Act 1750 through the British Parliament. This legislated for the adoption of the Gregorian calendar for Britain and its then colonies.
There were some missing days (internet archive link) in the British calendar in 1752 when the adjustment was finally made from the Julian calendar. September 3, 1752 to September 13, 1752 were lost.
Kalen Delaney explained the choice this way
> So, with 12 days lost, how can you compute dates? For example, how can you compute the number of days between October 12, 1492, and July 4, 1776? Do you include those missing 12 days? To avoid having to solve this problem, the original Sybase SQL Server developers decided not to allow dates before 1753. You can store earlier dates by using character fields, but you can't use any datetime functions with the earlier dates that you store in character fields.
The choice of 1753 does seem somewhat anglocentric however as many catholic countries in Europe had been using the calendar for 170 years before the British implementation (originally delayed due to opposition by the church). Conversely many countries did not reform their calendars until much later, 1918 in Russia. Indeed the October Revolution of 1917 started on 7 November under the Gregorian calendar.
Both ```datetime``` and the new ```datetime2``` datatype mentioned in Joe's answer do not attempt to account for these local differences and simply use the Gregorian Calendar.
So with the greater range of ```datetime2```
```SELECT CONVERT(VARCHAR, DATEADD(DAY,-5,CAST('1752-09-13' AS DATETIME2)),100)
```
Returns
```Sep 8 1752 12:00AM
```
One final point with the ```datetime2``` data type is that it uses the proleptic Gregorian calendar projected backwards to well before it was actually invented so is of limited use in dealing with historic dates.
This contrasts with other Software implementations such as the Java Gregorian Calendar class which defaults to following the Julian Calendar for dates until October 4, 1582 then jumping to October 15, 1582 in the new Gregorian calendar. It correctly handles the Julian model of leap year before that date and the Gregorian model after that date. The cutover date may be changed by the caller by calling ```setGregorianChange()```.
A fairly entertaining article discussing some more peculiarities with the adoption of the calendar can be found here.
| 4 |
Write a poem about feeling isolated, lonely or like you don't belong in your surroundings.
|
Here is a poem with sense of isolation and detachment from the world around me.
I am an alien in a world of monsters.
Good hearted beasts infected by a plague of hatred and self obsession.
Creatures with kind souls being slowly absorbed by media fads and vanity.
Their eyes blink robotically while they plug into their devices
Taking in information as it suits their personal agendas.
Ignoring the things that they wish not to see.
Assuming that no one else feels the way they do.
I am an alien in a world of aliens
Who think everyone around them is a monster.
| 4 |
What kind of strategies should I use when trying to learn vocublary.
|
It's usually best to avoid dichotomies like "Is strategy X better or strategy Y better?". In most cases, strategies are not mutually exclusive but complementary.
With vocabulary learning, using just one strategy is probably the least efficient. This is because every strategy has certain strengths (certain skills it builds well) and certain weaknesses (skills it doesn't cover well)- and if you keep using one strategy, you'll be only focusing on the strengths (but with diminishing returns), and not addressing the weaknesses.
Using flashcards helps you establish word-to-meaning equivalences quickly, but it usually does so with a shallow meaning, ignoring the breadth of meaning that words usually have. It also ignores the contextual subtleties of the word, and the knowledge is not always retained long-term.
It's best to combine flashcards with other strategies that will help you see how the word is used in context, show you the variety of meanings it can have (and doesn't have), see what collocations the word has, etc. One way of doing this is by reading examples of the word and writing your own sample sentences. Another important thing is to be exposed to the word in natural settings - so it's important to read a lot so that you'll encounter the words you've learnt naturally.
| 4 |
What is the difference between a bot and an npc?
|
The key distinction is that a Bot represents an automated player; an NPC, by contrast, isn't playing the game at all.
In general, an NPC is a part of the game; a placed object which is designed by the creator and exists to interact with the player. Examples would include vendors, quest givers, or enemies. In some games, (particularly RPG's), the term is also used to refer to characters under the control of, but not generated by the player. They are often distinguished by having distinct personalities and dialog, whereas a ""Player Character"" is meant as more of an extension of the player themselves. Think of the companion party members in the Mass Effect series for an example.
A Bot, by contrast, is essentially a player of the game controlled by a computer. This can be populated within a single instance, as a feature in some games (i.e. AI opponents in a normally multiplayer game), or, in some cases, actually represents a separate instance of the application running on a networked computer and being controlled by some manner of AI script (as is common in many MMO's, much to the dismay of the communities playing the game). The term 'Bot' is also often used to refer to software used to enhance or replace the skills of a human player of the game; for example, an 'Aim-Bot' that handles targeting, or a 'Farming Bot' in an MMO that performs tedious or menial tasks. Such bots are usually (though not always), considered cheating and a violation of the Terms of Service of the game in question.
| 5 |
Write code that sums all natural numbers from zero up until one hundred.
|
We define a function called `sum_100_natural_numbers()` for the above functionality.
```
def sum_100_natural_numbers():
# keep a running sum
sum = 0
# write a for loop to add each number to the running sum
for i in range(1, 101):
sum = sum + i
return sum
# Print out the result
print(sum_100_natural_numbers())
```
The output should be
```
5050
```
| 4 |
What could be some plausibly benign motivation(s), which does not involve conquering humanity?
|
Aliens are alien, without a common background their motives may be incomprehensible.
If we assume that these aliens are Hollywood aliens (ie humans with odd-looking rubber bits stuck on their faces) then there are all of the reasons that humans from one culture spend time in another culture and try and learn to fit in:
* Anthropology; studying how a different culture has developed to better understand the developmental processes that influenced your own. Iain M. Banks wrote Inversions (two anthropologists from the Culture investigating a Renaissance-era world) and The State of the Art (a Culture Contact team on Earth ca 1970) in this vein.
* Tourism; experiencing a culture that is vastly different from your previous experiences.
* Reality TV; Bear Grylls.
* Method Acting; preparing for a role in their own entertainment channels that involves playing the part of a member of an Information Age society.
* Challenge; because they can.
* Hermitage; there are people here on Earth who prefer to step away from the rat race and all the newfangled gadgets and live as their ancestors did, but usually not all the way back to stone tools. Selecting a developing world and fitting in gives them access to a level of technology between their home culture and being trapped on a desert island.
* Camouflage; they are being sought by members of their home culture and it's easier to hide and survive amongst us than in their own milieu. There are a lot of examples of this in fiction already: For Richer or Poorer, Men in Black II and it's analogous to fleeing the law and retiring to a country without an extradition treaty.
* Crash Landing, or a failure that prevents them from going home; if they came on an FTL ship that doesn't have FTL communications they may be waiting a long time for spare parts or updated navigational maps, or if they brought Gilligan who proceeded to ruin all of their plans to return home, or they may have arrived on a slower-than-light colony ship and would prefer to stay here and fit in amongst us rather than try and find another prospective colony.
* Uplift; meddling to steer us onto the "right" path of development and prevent us from immolating ourselves (or vice versa if your species doesn't like the competition).
| 4 |
How do proteases destroy prions?
|
Proteases are enzymes in your digestive system that help break down food, acting like molecular-sized scissors that cut up proteins.
Proteases have clefts, or subpockets, into which proteins fit, where the substrate (protein) gets cut.
Infectious or pathogenic prions are resistant to proteases, because of their three-dimensional shape, which hides away parts of the prion that would normally fit in proteases and which would cause the prion to be digested.
Prions that do not cause disease — normal prions — have a different three-dimensional shape that allow them to fit into proteases, and so they are not resistant to digestion:
A wealth of evidence contends that the infectious pathogen causing the prion diseases, also referred to as spongiform encephalopathies, is solely comprised of PrPSc, the pathogenic isoform of the prion protein (21-23). Both PrPSc and its normal cellular counterpart, PrPC, are encoded by a cellular gene (2, 19). Physical and molecular characterization of PrPSc and PrPC has failed to reveal any chemical differences between the two isoforms (32). However, PrPSc acquires distinctive conformational characteristics upon its conversion from PrPC. Whereas PrPC is soluble in most detergents and can be easily digested by proteases, PrPScis insoluble in detergents and maintains a protease-resistant core, designated PrP27-30, which polymerizes into amyloid (25).
Dr. Neena Singh also discovered that prions "piggyback" or attach to another protein called ferritin, as they make their way through the digestive system:
Disease-causing prions are thought to have passed into people when they ate beef from infected cattle, triggering the brain wasting condition called new-variant Creutzfeldt-Jakob disease, or vCJD. But researchers have not been sure exactly how prions enter the body.
To find out, Neena Singh and her team at Case Western Reserve University in Cleveland, Ohio, mimicked the process of eating and digesting infected meat.
They mashed up brain tissue that contained prions from patients who had a form of Creutzfeldt-Jakob disease. They then exposed it to a range of harsh digestive enzymes from the mouth, stomach and intestine, which normally break proteins into pieces.
Prions, which are known to be enormously tough, escape this attack almost unscathed, they showed, as does a second type of protein called ferritin, which stores iron and is abundant in meat. The two proteins seem to stick together, they report in the Journal of Neuroscience.
The researchers next added the digested slurry to a lab model of the human gut: a growing sheet of cells from the intestinal lining. By attaching fluorescent tags to the two proteins, they showed that they are transported through the cells hand-in-hand. "Prions probably ride piggyback" through the gut wall into the body, Singh says.
Attaching to ferritin may provide additional protection from digestion, insofar as this removes prions from the digestive system, where proteases are concentrated.
| 4 |
I am writing an essay where my professor asked me to prove whether Neville Longbottom has what it takes to become a gryiffendor or if i was wrong.
|
First of all, in the first 4 years, it isn't really shown that Neville is NOT brave - the only thing he's really afraid of is his Grandmother and maybe Snape during Potions. With good reason. :)
You may be confusing a lack of confidence/assertiveness with not being brave, but they are not the same (for a good in-universe illustration of the opposite, think Prof. Lockhart).
First four books, he's clumsy, and is not yet showing any magical talent.
Starting with the fifth year, Neville is shown to have been changed, and repeatedly proves his bravery and willingness to fight.
NOTE: He first shows bravery in the First Year (see System's great answer for details), but the real Gryffindor-y Neville emerges in the Fifth year.
There's another instance of him showing a Gryffindor quality - more specifically, integrity. He argued with the Hat to sort him into Hufflepuff (src: Pottermore), because he felt he wasn't brave enough to be a Gryffindor.
Fifth year
* He joins DA
* He shows marked and significant improvement in his magical abilities while in DA
* He voluntarily joins the DA members who accompany Harry to Ministry of Magic battle in the end of OoP, even arguing with Harry about it:
Neville: "We were all in the D.A. together. It was all supposed to be about fighting You-Know-Who, wasn't it? And this is the first chance we've had to do something real — or was that all just a game or something?"
Harry: "No — of course it wasn't —"
Neville: "Then we should come too. We want to help."
* During the battle at the Ministry, he refused to leave as per Harry's suggestion after Dolohov broke Neville's nose and wand.
* When being threatened and tortured by Death Eaters, he told Harry not to give them the Prophecy
Sixth year
* participated in the Battle of the Astronomy Tower. Along with Luna Lovegood, he was the only member of Dumbledore's Army to reply to the summons via the coins.
Seventh year
* Neville got in trouble with the Carrows for refusing to practise the Cruciatus Curse on other students as a method of punishment, as well as for standing up against their bigotry and cruelty.
* along with Ginny and Luna, restarted Dumbledore's Army.
* attempted to steal Godric Gryffindor's Sword from Snape's office
* Neville was eventually left alone to lead the rebellion efforts (Luna and Ginny were not in Hogwarts anymore). When avoiding the Death Eaters at one point, Neville stumbled into the Room of Requirement, which he was able to turn into a hiding place for the D.A., and to connect to the Hog's Head in order to get food from Aberforth Dumbledore. By May, most of the D.A. had taken to living there.
* During the first round of battle, Neville used various plants to attack Death Eaters, and helped transport the injured and dead when a temporary cease-fire was called.
* When the Death Eaters approached with a "dead" Harry, Neville stood up in defiance of Voldemort. He was subsequently forced to wear the Sorting Hat as it burned because he refused to join Voldemort. Fortunately, due to Harry's sacrifice, Neville was able to shrug off the Full Body-Bind Curse.
* Because of his tremendous bravery shown on the battlefield, Neville was able to pull Godric Gryffindor's Sword from the burning hat, in the process proving himself a true Gryffindor, something that was doubted constantly throughout due to his apparently weak-willed, shy, and bumbling nature. In a single stroke, he killed Nagini, destroying Voldemort's last remaining Horcrux.
* Neville subsequently teamed up with Ron Weasley as the defenders of Hogwarts and Death Eaters were forced into the Great Hall and defeated Fenrir Greyback.
All in all, pretty convincing evidence of someone's bravery.
| 5 |
Please write instructions on how I could organize my personal life during wintertime.
|
## Personal holiday organization
1. Plan for sleep. One of the dangers of the holiday season is that you schedule too much and don't budget enough time for sleep and exercise. These 2 practices can cut your stress level in half and make it easier to stay on task during your holiday rush. It is common to reduce your exercise time slightly during the holidays, but try to get about 30 minutes of mid-intensity cardiovascular exercise 5 times per week. Don't not cut down on your sleep; aim for 8 hours per night. Moderate your alcohol intake. Although it may seem like a sedative, it can actually prevent you from getting deep sleep. Stop after a few drinks to avoid losing your energy the next day.
2. Set a budget 2 months before the holidays. Take into account how much you can afford and then split the money between cards, postage stamps, gifts, decorations, clothing, food and even a party. Plan an overage of 10 percent in your budget. This means all of your needs should add up to 90 percent of the money you have for the holidays.
3. Sit down with your family 6 weeks before the holiday and ask for help. If you love control, this may be hard to do; however, it will take a load off your shoulders and make everyone feel like the holidays don't come together magically.
4. Discuss the possibility of doing a low-gift giving Christmas or a charity project with your family. If your budget is tight, then giving 1 present or buying 1 big present for the whole family might be better. Studies have also shown that charity projects can help your emotional health during stressful times.
5. Book travel plans 3 or more months before the holidays. Ticket prices tend to go up right before the holidays. Make sure you have lower travel costs and less stress associated with travel if you and your children or parents have their plans figured out in advance.
6. Use a calendar that everyone can see, online or in the house. Place all commitments, deadlines, family nights and tasks on it so that everyone can refer back to it over the month of December.
## Holiday shop organization
1. Schedule shopping intelligently rather than in blocks. The following are good tips that make holiday shopping more effective and quick:
* Buy things throughout the year, whenever you see something that is ideal for someone. You provide more thoughtful gifts if they are catered to the person, rather than bought frantically the month before. Store your gifts in 1 place in your house and come back to your gift hiding place 6 weeks before Chanukah or Christmas. Take a few hours off work during mid-week once the holiday sales start. You will miss the rush and have a more calm shopping experience. Shop in small spurts online. Getting online for hours can be a waste of time. Keep a list in your purse of things you are looking for, and add to it. Wait until you have 2 or 3 things you know you want to search for and do your power shopping. Open 3 browser tabs and compare prices on Amazon, Overtock.com and a Google Shopping page. Don't be afraid to give gift certificates. Many stores, massage parlors, movie theaters and more provide gift certificates. Think of something that your friends or family will find truly valuable over a product you are unsure they will like.
2. Set up a wrapping station on a table in late November or early December. Wrap gifts as soon as you bring them home. This will remove the chance that children will find their gifts and it will allow you to get both shopping and wrapping done at a slow and steady pace.
3. Aim to finish your shopping and wrapping by December 15th. Schedule your time accordingly, so that you can enjoy the holidays and be ready for any last-minute changes.
## Holiday cook organization
1. Clean your kitchen from top to bottom before attempting holiday baking or cooking. Try to do this in late November or early December. Rearrange things that overnight guests will need, such as coffee and cereal, in an easy to reach cupboard and create a baking cupboard.
2. Stock up on baking supplies early in the season. Buy flour, sugar and spices at warehouse stores so that you don't have to make late night runs to the supermarket. Buy some pre-made pie crusts and cookies to keep around in case you don't have time to do everything from scratch.
3. Bake throughout the holiday season. Clear out your freezer, and then create a cooking to do list that allows you to make and freeze items every week. For example, bake 1 sweet, such as cookies or candy, and prepare 1 side dish in preparation. Cover and label the dishes very well before you stack them on a freezer. For example, "Sweet Potatoes. Thaw and bake at 350 for 30 minutes."
4. Plan a holiday potluck party instead of baking all of the food. This is a great way to lower your budget and have fun. Allow people to bring desserts, side dishes or relish to family dinners as well; they understand your kitchen is very full.
| 4 |
I am trying to figure out what kind of trajectory Gaia should take so that when it reaches its destination at Lagrange Point two behind Neptune it will know exactly how many lightyears away we live from Sol?
|
Well, you thought about the spatial aspect of a parallax measurement, but not about the temporal one.
Gaia's intention is to measure 3D positions as well as 3D velocities. For the distance, you need accurate parallactic measurement, which come in with your orbital period.
For a typical Gaia-star with several measurement per year, you'll get 5 values of the parallax after 5 years of time, which you then average. If you'd send Gaia towards Neptune (besides the fact that no one has ever sent an orbiter, to say nothing of a L2 mission that far out) that has a period of 168 years, then after 5 years you'd get... 5/168 th of one paralactic measurement.
It simply couldn't achieve its science goals if put around the L2 behind Neptune. Also no one on this planet has any experience in putting something into a outer system L2 point. This is different than putting it into Earth's L2, because reaching the L2 around one of the giants has vast and very precise $\Delta v$ requirements. This would be a massive technological leap, and things don't work that way in space. Small, incremental technological steps are required in an anyways unfriendly environment, to make sure everything works properly and no millions of dollars have been wasted.
Compare that to Gaia's predecessor, the Hipparcos satellite, which was parked in geostationary orbit.
Now you could still say, why not use Jupiter hypothetically anyways. Well, the orbital period there is still 11 years, and Jupiter's L2 still suffers from the intense radiation environment that is provided by Jupiter's magnetosphere. This would lead to rapid degradation of the CCDs used for scanning across the sky.
| 4 |
What is so important about the Moon?
|
The moon was critical to the formation of life as we know it. The huge tides generated by the moon's gravity allowed chemical building blocks to mix from different parts of the planet. The early moon also helped slow the Earth's rotation and stabilize the tilt - resulting in our seasons.
| 4 |
What should I focus my efforts during my first year of postdoctoral studies?
|
You'll very quickly learn that being an academic involves more than just writing research papers. Your time as a postdoc is when you can start learning about these other aspects, while building your own profile.
A postdoc needs to do the following:
* Build a publication record. This will involve both what you are paid to do and your own line of research.
* Get involved with supervising students. Help with the PhDs in the lab, and get involved in supervising masters students.
* Get involved with obtaining funding. This can either be by helping your employer or (ideally) obtaining your own funding.
* Build an international reputation.
* Start collaborating with external parties.
* Gain some teaching experience. This is absolutely crucial if you want a faculty position.
* Learn how to manage projects and a lab. This includes overseeing the progress of projects, allocating your time (and others), presenting results at meetings and writing deliverables. If you are in a lab setting, you will need to learn how to fix/calibrate/maintain critical equipment and software so that you can start your own lab some day, and you will need to become proficient in teaching more junior members on how to use that equipment.
* Start to devise a strategic research plan. While it is fun to do opportunistic research, solving a problem that comes along or investigating any idea that pops into your head, a better long term strategy is to formulate an interesting long term research plan and follow it, building result upon result.
Be as proactive as humanly possible, without being annoying. Talk to everyone in the department, especially people whose research interests are close to your. Go to conferences and sit down and work with interesting people (not necessarily the superstars).
| 5 |
What advantages does learning common English words have over learning rare ones?
|
The main advantage is that by learning higher frequency words, you get a greater "bang for your buck" - that is, if you know the most frequent words of the language, you'll be able to understand more of the words you encounter, and therefore you gain the greatest benefit by studying those frequent words first.
According to Nation & Waring (1997), text coverage in the Brown corpus is as follows:
* Most frequent 1000 words: 72.0%
* Most frequent 2000 words: 79.7%
* Most frequent 3000 words: 84.0%
* Most frequent 4000 words: 86.8%.
So by learning the top 1000 words, you'll know 72% of the words in the average text you read. But after that, there are diminishing returns: the next 1000 words gives you another 7.7% of a typical text, and the next 1000 words allows you to understand just 4.3% more. After that, the returns on memorizing by frequency decrease even more, so learning from frequency lists becomes less useful.
Note that text coverage (the percentage of words that you know in an average text) is important. We don't need to understand every single word in a text in order to understand the general meaning. Some research has investigated what percentage of words we do need to understand. Laufer and Sim (1985) suggested 65-70% should be understood as an absolute minimum for comprehension, but Laufer (1989) (as described in Hu and Nation (2000)) suggests 95% should be known for solid comprehension. Hu and Nation (2000) suggest that 98% of words should be known for unaided comprehension.
Although learning high-frequency words is a good idea, especially when you first start learning a language, frequency is not the only consideration when choosing words to learn. Barker (2007) suggests that "cost" and "benefit" be the primary considerations when choosing words to learn; benefit is partially defined by frequency, but also on personal needs.
So it's good to learn the "technical" vocabulary of your major or field, and it's also useful to learn words related to your interest. It's also beneficial to learn words with a lower "cost" - words that are familiar, that you've encountered a lot recently, or that just seem easy.
Also, although memorizing words has benefits, it is best to combine this with real exposure to words, so that you learn them naturally in real contexts.
| 5 |
What steps can I take to stop my teen from joining a gang?
|
Gangs can be a very bad influence on a teen. Teens often want to join a gang because of certain issues such as racism, poverty, loneliness, and media influences. You can prevent your teen from joining a gang by education about the appeal of gangs for teens, talking and listening to your teen, and getting involved in your own community.
## Educate yourself
1. Learn the appeal of gangs. There are many reasons why a teen might join a gang. Learning the potential draw of gangs for teens can help you identify if your teen is at risk. Teens might seek out gangs for a feeling of belonging. If your teen feels like an outsider for any reason, he or she may seek out a gang for a sense of community. Peer pressure is also a major factor in teens joining gangs. If your teen has friends who are in a gang or associated with one, your teen may consider joining as well. Teens also don't always realize the danger of gangs. The idea of being part of a gang might be exciting, especially if your teen has been exposed to video games and other media that glorifies gang violence. If your teen has an underlying mental illness, such as a personality disorder, he or she might seek thrills through joining a gang.
2. Investigate gang activity in your area. Location is a big risk factor when it comes to your teen joining a gang. Be aware of any gang activity in your area so you know what your teen might be exposed to at school or in the community. You can research gang activity in your area by browsing police reports and police data online. Most areas have a police blotter website where you can enter your zip code and see of any recent arrests or disturbances in your area. Talk to officials at your teen's school. Principals and superintendents should be aware if there is any gang activity occurring in their jurisdiction. Make an appointment with an official at the school and ask him or her about gang activity. Many people feel certain locations make them immune to gangs. If you live in the suburbs, for example, you might think your teen is immune to gang violence. However, in a lot of big cities gangs eventually move into the suburbs. In the Chicago suburb Evanston, for example, gang activity has been on the rise in the last few years. Be vigilant about potential gang activity regardless of your location.
3. Familiarize yourself with the warning signs your teen is involved with a gang. Make sure you know the warnings signs regarding gang activity in teens. You should be concerned if your teen is displaying any of the following signs:
* Wearing a certain color or color scheme suddenly
* An increased interest in gangs, gangster music, and gangster movies
* Bragging about having friends in gangs
* Coming home with expensive items
* Using hand gestures and signs to communicate with friends
* Aggressive or withdrawn behavior
## Work with your teen
1. Talk to your teen about gangs. Education is key to keeping your teen from joining a gang. Take time to sit down and talk to your teen about the dangers of gangs. Be as frank as possible when discussing gangs with your teens. Explain that, short term, gang activity can lead to trouble with police, trouble with school, and poor relationships with family members. Longterm, make sure your teen knows gang activity can prevent them having access to education and employment options, time in jail, and a risk to their personal safety and the personal safety of their family and friends. Listen as well. Your teen may be compelled to argue or even disregard what you're saying. Try to understand why your teen is resisting. Is he or she being intimidated by a gang? Is a person your teen looks up to in a gang? Understanding the reasons gang membership is appealing to teens can help you better address the problem.
2. Keep your teen engaged in other activities. Teens often join gangs for a sense of community or for some excitement. Keeping your teen as engaged in other activities as possible can lessen the draw of gangs. Encourage your teen to engage in activities that appeal to his or her interest. Is your teen always sketching or drawing? Enroll him or her in art classes. Is your teen athletic? Encourage him or her to join a school sports team. Is your teen interested in music? Invest in a piano, guitar, or other musical instrument. Push your teen to find an after school job. While some teens might resist the notion of working, emphasize how building a work ethic can help later on. Talk about what your teen could do with all the extra spending money. Allow your teen to have friends over at your house. You want your teen to feel most comfortable at home, where it's safe. This also gives you an opportunity to get to know your teen and his or her peers. You can encourage wholesome activities, like board games and age appropriate movies, over the kinds of activities that might land your teen in trouble.
3. Learn how to best communicate with a teen. Communicating with teenager can be difficult. Most teens feel an increased need for autonomy and independence, which means they may pull away and rebel against you. However, learning the means to effectively communicate with a teen can help. Always listen without judgment. If your teen is willing to share something with you, let him or her. Try to stay calm and listen, even if your concerned by what your teen is saying. Remember, as a parent you're better off hearing bad news than not hearing it. Being reactionary and harsh can discourage your teen from reaching out when in need. Respect your teen's sense of privacy and autonomy. Unless you suspect a serious problem, allow your teen his or her own space. Let them have a bedroom to themselves. Do not always ask who your teen is calling or texting on the phone. Do not touch your teen's belonging without permission. Schedule times to talk. You do not need to schedule a weekly conversation, but having a family dinner night or board game night gives your teen the opportunity to share. Strive to keep communication open and keep yourself available when your teen is in need.
4. Identify positive role models for your teen. Teens often join gangs because they feel lost. Lacking positive role models, a teen might turn to the allure of a gang. Identify positive roll models for your teen. Get your teen involved in the community. Encourage him or her to volunteer. Take him or her to church, town hall meetings, and other places and meetings you attend. Teach your teen about people you admire. This can be someone you know personally, like your great-grandmother who supported her family during the Great Depression. It can also be a public figure, like a politician or activist. Showing your teen what you believe admirable qualities constitute can lessen the appeal of gang members.
## Improve your community
1. Remove gang related graffiti. Graffiti is often a way for gangs to advertise and recruit new members. If you notice new or unusual graffiti in your area, google the images to see if they're gang affiliated. If they are, talk to the local police about having them removed as soon as possible. Depending on regulations in your area, you may be able to remove the images yourself or schedule a community cleanup. Stop by the local courthouse and ask what your options are in terms of arranging a cleanup.
2. Team up with other parents. The phrase "It takes a village to raise a child" exists for a reason. You cannot do this alone. Work with other parents to build a stronger community and to keep out gangs. Schedule a meeting with other parents in town to discuss gang activity in your area. Brainstorm ideas about how to keep your teens out of gangs. Working together, you and other parents can create regular community events and activities for teens to engage in in order to discourage them from joining gangs. You can also go, as a group, to a PTA to raise any concerns you have about gang activity in the school system. Look into starting a neighborhood watch to keep on the lookout for gang activity.
3. Take political action. In order to address gang activity, political action may be necessary. Increasing law enforcement presence in your are and providing community outreach to at-risk teens may be needed in your area. Start letter writing and phone campaigns to local members of Congress. Explain why your area needs help addressing gang violence and gang activity. Demand community outreach in your area. Raise awareness. Buy an ad on the local radio. Hand out pamphlets at community centers, schools, churches, grocery stores, and other areas. A single call to local police about gang activity has little effect. A collective group effort is necessary to stomping out gang activity in your area. Make sure other parents on board with talking to the police together.
| 5 |
What is difference between logging.warning() and warnings.warn()?
|
Here are the differences:
* ```logging.warning``` just logs something at the ```WARNING``` level, in the same way that ```logging.info``` logs at the ```INFO``` level and ```logging.error``` logs at the ```ERROR``` level. It has no special behaviour.
* ```warnings.warn``` emits a ```Warning```, which may be printed to ```stderr```, ignored completely, or thrown like a normal ```Exception``` (potentially crashing your application) depending upon the precise ```Warning``` subclass emitted and how you've configured your Warnings Filter. By default, warnings will be printed to ```stderr``` or ignored.
* Warnings emitted by ```warnings.warn``` are often useful to know about, but easy to miss (especially if you're running a Python program in a background process and not capturing ```stderr```). For that reason, it can be helpful to have them logged.
To use them, Python provides a built-in integration between the ```logging``` module and the ```warnings``` module to let you do this; just call ```logging.captureWarnings(True)``` at the start of your script and all warnings emitted by the ```warnings``` module will automatically be logged at level ```WARNING```.
| 5 |
What makes birds so different from every other animal?
|
Birds are both flying dinosaurs and flying reptiles. Yes, that's potentially confusing.
To understand the apparent contradiction, you have to understand how modern classification of organisms works (phylogenetic systematics). Under the old (Linnean) classification system, Reptilia (reptiles) was an order and Aves (birds) was a separate order. Phylogenetic systematics, which has completely replaced the Linnean system, views all organisms as interrelated in a nested set of monophyletic groups (clades). It's like a set of venn diagrams, where all organisms fall into a giant circle and then successively smaller circles classify more and more specific groups.
The clade Reptilia includes snakes, lizards, crocodiles, and lots of extinct groups, including dinosaurs. So all dinosaurs are reptiles. The clade Dinosauria includes all the extinct dinosaurs (Stegosaurus, Triceratops, sauropods, etc.), including theropod dinosaurs, which include well known dinosaurs like Tyrannosaurus and Allosaurus. Based on a mountain on anatomical evidence, including lots of transitional fossils, living birds are a sub-group of theropod dinosaurs.
So all birds (Aves) are theropod dinosaurs (Dinosauria: Theropoda). All dinosaurs are reptiles. Therefore, birds are dinosaurs and reptiles. They are just more closely related to dinosaurs than to other reptiles.
The tricky part is that most people have an intuitive idea of what "reptiles" and "dinosaurs" are. To a systematist, whose job it is to classify organisms, these terms don't mean the same thing as they do to most people. Systematists think about groups like Reptilia and Dinosauria and how those groups are related to one another. So they have no problem saying that birds are dinosaurs and reptiles, because birds are nested within both of those groups.
A few words about pterosaurs
Along with birds and bats, pterosaurs are the other clade of vertebrates capable of powered, flapping flight. Pterosaurs fall within Reptilia (and Diapsida and Archosauria) along with Dinosauria, which includes birds. There are a lot of other extinct lineages in the tree that are not shown, e.g., ornithodirans that are not dinosaurs and not pterosaurs. Pterosaurs and birds share anatomical features that all reptiles, diapsids, archosaurs, and ornithodirans have, which is how we know that they are more closely related to each other than to other groups, like crocodiles. But their flight structures evolved independently and are anatomically distinct fro one another. So pterosaurs are flying reptiles but not flying dinosaurs.
These images might help you understand the above explanation.
| 4 |
Write a letter in which you tell your daughter (age 15) what her father meant to you.
|
Hello [Daughter's Name]
If you're reading this then I most likely lost my battle when you were very young and you've just turned fifteen. I may have never gotten the chance to see you grow up, to see you mature, to see you become the beautiful, intelligent, young woman I know you'll be some day, and that is my greatest regret. But I want you to know that life is filled with highs and lows. Some days it may seem like the lows out number the highs, that everything just keeps getting darker. I know that more than anyone, I've lost a lot, jobs, opportunities, competitions, pets, family, friends. When me and your mother first learned about you I was at my lowest; I had lost my parents, my promotion, and I had just been diagnosed. Then on top of all that I now had a child to worry about, I had no idea how I could provide for you when we could barely make ends meet as it was. I won't lie, the nine months leading up to your birth was one of the hardest and most stressful of my life, and my health suffered even more. But on the day you were born, and I got see you for the first time, I got to hold you. I have never been happier, I felt a weight lifted off my shoulders, I was at peace. I have gone through a lot, been dragged down to dark places, felt like the world was against me, but I got to hold you.
I want you to always remember, no matter how dark things seem to be, no matter how far you feel you have fallen, the night is always followed by dawn, and every valley is flanked by hills. Missing your life is my greatest regret, but I got to hold you, I got to see your beginning, and that is something I will always cherish.
Love,
Dad
| 5 |
Write Kotlin or Java code that sets an ImageButton background color using one touch action per each state change in Android.
|
It is simpler when you have a lot of image buttons, and you don't want to write xml-s for every button.
Kotlin Version:
```fun buttonEffect(button: View) {
button.setOnTouchListener { v, event ->
when (event.action) {
MotionEvent.ACTION_DOWN -> {
v.background.setColorFilter(-0x1f0b8adf, PorterDuff.Mode.SRC_ATOP)
v.invalidate()
}
MotionEvent.ACTION_UP -> {
v.background.clearColorFilter()
v.invalidate()
}
}
false
}
}
```
Java Version:
```public static void buttonEffect(View button){
button.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
v.getBackground().setColorFilter(0xe0f47521,PorterDuff.Mode.SRC_ATOP);
v.invalidate();
break;
}
case MotionEvent.ACTION_UP: {
v.getBackground().clearColorFilter();
v.invalidate();
break;
}
}
return false;
}
});
}
```
| 4 |
I am a first grader who needs help with my spelling.
|
Helping a first grader learn to spell can be both challenging and rewarding. Whether you're a teacher, a parent, a grandparent or a volunteer, there are ways to help a child with spelling words. The best strategies to encourage a young speller are based in knowing more about a child's spelling ability, and the early stages of writing.
## Teach spell strategies
1. Assess students' spelling knowledge. The best teaching practice starts with learning what the student already knows. Take a moment to check the students' knowledge of spelling by asking them to spell a list of common first grade words. Assessment allows you to start teaching at the area of your students' competence. Words found at the first grade level are short, 1-4 letters long. They are 1 syllable words. Examples of first grade words are: a, to, at, boy, bad, dip, cat, nest, sand, play. Assessment continues by analyzing students' independent writing. Provide opportunities for your students to write, whether in art projects or academic activities. Continue assessing throughout the school year. Ongoing assessment is vital for effective teaching practice.
2. Teach in small groups. Most teachers are aware of the disparity between their students' abilities and know that small group instruction is preferred when possible. In helping first graders with spelling, it's essential to teach in small groups. Group assignments should be based on what you've discovered through your spelling assessments, so that students of similar spelling abilities can be taught at the same time. Be aware that some students' reading and their spelling abilities may be quite different. Don't base spelling assessments on students' ability to read. Have other students engage in word-related activities at their seats, or participate in literacy activities in the classroom's centers, will help you manage the other students while working with small groups. Having an assistant or a classroom volunteer can be helpful to managing the small groups of students.
3. Prioritize spelling instruction. You'll need to find the time to assess and teach spelling to your first graders. This can be difficult to manage, because it requires individualization to the child's learning ability. Plan ahead to include spelling instruction every day, multiple times per day. Consider creating inclusion of spelling words in different areas of study. Invest a little time every day in independent word work and individual or small group instruction.
4. Teach word knowledge, not just spelling. Teaching sight words, words that the student is likely to encounter often, helps the first grader with spelling. Post familiar words around the classroom. Teach students to consider why the word is spelled as it is. Teach the rules behind the spelling. For example, teach the reason for the silent e, and how it affects the sound of the word. Adding an e to a simple 3-letter word usually makes the vowel long, rather than short. Teach sight words that don't usually fit the standard first-grade curriculum, if you find the students' using these words frequently. Post these words around your classroom, and refer to them when they naturally arise in other teaching. These sight words might include: because, are, again, said, friend, were.
5. Demonstrate usefulness of spelling. Students will be more motivated to learn to spell if they understand its importance. A first-grader must be taught the connection between reading words and proper spelling. By teaching students to recognize the power spelling has over understanding, you'll help them transfer their spelling knowledge into other activities of their life. Group activities can have multiple fill-in-the-blank opportunities. Mad Libs is a great activity for teaching spelling. Teacher scaffolding can help support beginning learners. Reminding the student what she already knows, strategies she might try to complete a spelling word, and providing hints and encouragement all support a first grader with spelling.
6. Integrate strategies for independent spelling. When you're helping your first graders, say each word you want them to spell slowly. Teach your first graders to listen for the sounds they hear (initial sound, middle sound, final sound). Help them identify any part they might know, e.g., br in brought. Encourage students to notice how words come together to make a larger word. For example, putting fun and silly together to make funny. Students might enjoy clapping the syllables, then writing letters for each syllable. Help the students identify different spellings of rhyming words, such as space and place, or here and there. Students need lots of opportunities to try the correct spelling to see if it looks right. Provide resources around the classroom - dictionaries, calendars, charts, word walls, etc.
7. Encourage all writing, regardless of spelling. Writing and spelling are two different academic areas. Having students write, without worrying about their spelling, will help them become more confident writers and spellers. Provide opportunities for students to write about things that are important to them: football games, video games, school outings, or pets are popular topics. These learning opportunities are found throughout the students' day. Make games out of writing about new topics.
8. Expose students to written words. The more a child is exposed to written words, the more likely he is to internalize the spelling of the word. If you're working on particular spelling words, point them out in books, magazines and online. Highlight with a marker to emphasize that the word he's learning is also found in the "real world" if possible. Students may enjoy "proofreading" for spelling mistakes. First graders may appreciate reading the same stories over and over again. If this is the case, take advantage of this repetition to highlight different words found within the same story.
## Recognize the early stag of write
1. Know the signs of the pre-communicative writing stage. A first grade child may be still at the pre-communicative stage of writing, which means that he only has a rough idea of the alphabet. Your first grader may recognize different letters of the alphabet, but be unaware of words as a visual construct. Spaces between words may not be noticed. For children in this stage, continue to teach alphabet shapes and expose the child to written words through reading aloud with him. Never attempt to correct the spelling of a child at this stage of writing.
2. Learn about the semiphonetic stage of writing. By first grade, some children will be at the semiphonetic stage of reading. A this stage, the child is making a connection between the sound of the word and the sound of a letter or two within the word. He may dramatically abbreviate the word, such as using T or D for dog. The word that the child may attempt to spell first may be his name, or the M for Mom or D for Dad. Children's ability to segment, or separate, the distinct sounds of a word may be still emerging. Encourage a child to write often, no matter how difficult the word may be to read. Don't worry about spelling at this stage, but provide help if the child is open.
3. Know about the phonetic spelling stage. This is a common stage for first graders, a stage of spelling that assumes basic knowledge of the alphabet and understand that words and sounds are connected. A speller at this stage may use "invented" spelling patterns based on the sound of the word.Children at this level will be more interested in learning correct spelling. Provide models of correctly spelled words, and start to encourage them to think about how to spell words for themselves. This is a wonderful stage to start to help a child with spelling. Examples of invented spellings might be kam for came, wel for will, fes for fish, etc. Another thing you might notice is that the child starts to recognize beginning patterns in words, noticing rhymes and similar sounds.
4. Learn more about the transitional spelling stage. A few first graders might already be at the transitional stage of spelling. At this stage, the student will have emerging reading skills and recognize many words. They begin to understand that sounds are represented by letter combinations, and that words can be made plural or altered in other ways by suffixes and prefixes. Being patient with mistakes at this stage is essential. The words might actually be more difficult to understand than with a phonetic speller, but the child's spelling mistakes are based in an inadequate understanding of spelling patterns. Continue to teach the patterns that make for good spelling. Teach the child how to laugh at spelling inconsistencies as are so often found in the English language. Reminders of appropriate spelling can also be taught at this stage, such as "I before E, except after C, unless it's an A as in neighbor or weigh."
| 5 |
How does one select which open source content management software package to implement? What steps must I take to ensure success during implementation?
|
## Choose an open source cms
1. Research your options. A quick Internet search will tell you that WordPress, Joomla!, Drupal, Plone and Blogger are probably the most common; however, there are dozens more. Make sure you are testing a CMS, rather than a vendor, as the names may be easily confused in the beginning. Many online reviews say that WordPress CMS is good for blogs, and Drupal is great for community-oriented sites, with a lot of user interaction. Joomla! works well for the most basic websites and users. Plone is a newer CMS that manages documents and community very well. You should make your own decisions based on what looks best for your site.
2. Decide what experience you want to give your website visitors. Sit down with your marketing or branding department and make a list of the essential parts of a website, so that you can look for them in your CMS. This will help you to choose the frontend designs you prefer. You can also get a private web development company to design your template and plug in an open source CMS. This is considerably more expensive than simply choosing a ready-made design through an Internet-based service. It may allow you extensive customization of your site.
3. Decide what you need from the backend of the CMS. For example, decide if you need search engine optimization (SEO) features, mailing lists, events applications, customization, scalability or a specific programming language.
4. Test drive each programming platform. Assign 2 to 3 people who will be working with the programs most to do a trial run, or "sandbox" version, of the CMS. They should report back with reviews and rate them according to overall preference. Open source CMS can all be installed for free. You may need to hire a web programmer to install them, if no one in your organization is very computer savvy. You still want to test the backend of the system with the non-technical users. You can also go to opensourcecms.com to try over 70 open source CMS programs for free. The site will allow you to do a demo without having to install the whole program.
5. Check if your web hosting service automatically installs any of the open source CMS. If you use shared server hosting, then the tech support you pay for may include installation of 1 of these programs. If so, and you like the program, you can save money that would otherwise go toward hiring a programmer.
6. Read community reviews of the open source CMS or extensions you want to install. Each open source program has a web-based community that helps users ask and answer questions. You can get an idea of how easy it will be to accomplish the things on your marketing list by searching for reviews and instructions.
7. Choose a CMS according to website functionality and employee functionality. Compare each CMS/template with the frontend/backend list you made. Choose the program that fulfills the most preferences on your lists.
## Implement an open source cms
1. Decide how you want to do installation and support. Since open source CMS are available to all, they have community forums that help with support. However, if you aren't very proficient with computer programming, you will have to follow an alternate method. Hire a web vendor to install the program and train your staff. Although you will need to pay for this service, it will decrease the problems you will have with the open source CMS. Ask if the vendor offers tech support help in the future at a fee. Task your IT department with installing and training staff. You may have to send part of your staff to a course to learn all about the program and its requirements. If you already have a fully competent IT staff, you will save money with this option. Install the program yourself and train your staff. If you and your employees are very computer literate, it may not be essential to get outside support. You can look for plugins in the directory and read how to fix problems in the forums.
2. Be prepared for an adoption period. After changing any database, you should be prepared for a slow period where your employees learn to use the program, and at times, there are complaints. Try to wait for a period of 30 to 90 days before deciding if the CMS will work, because most website changes take time to adjust to.
3. Look to enhance your open source CMS. Look for extensions and plugins, once your employees are completely functional with the backend. The great thing about CMS is that talented volunteer programmers are improving it all the time. Subscribe to blogs, newsletters or forums about your CMS blog. This will keep you aware of new updates or plugins. It will also direct you to websites that use the CMS so that you can see what others are doing with it.
| 4 |
What would I need to do if I wanted to convert a NodeList into an array?
|
You can't use ```for```/```in``` on ```NodeList```s or ```HTMLCollection```s. However, you can use some ```Array.prototype``` methods, as long as you ```.call()``` them and pass in the ```NodeList``` or ```HTMLCollection``` as ```this```.
So consider the following as an alternative to jfriend00's ```for``` loop:
```var list= document.getElementsByClassName("events");
[].forEach.call(list, function(el) {
console.log(el.id);
});
```
There's a good article on MDN that covers this technique. Note their warning about browser compatibility though:
[...] passing a host object (like a ```NodeList```) as
```this``` to a native method (such as ```forEach```) is not guaranteed to work in
all browsers and is known to fail in some.
So while this approach is convenient, a ```for``` loop may be the most browser-compatible solution.
Update (Aug 30, 2014): Eventually you'll be able to use ES6 ```for```/```of```!
```var list = document.getElementsByClassName("events");
for (const el of list)
console.log(el.id);
```
It's already supported in recent versions of Chrome and Firefox.
| 4 |
Which program has better capabilities?
|
LaTeX is better at:
* Dealing with mathematical notation. Layout and entry are generally easier using LaTeX than some other sort of equation editor.
* Consistent handling of intra-document references and bibliography. As of a couple of years ago the major WYSIWYG editors still had problems with re-numbering cross-references and bibliography items. This is never a problem with BibTeX or LaTeX.
* Separation of content and style. In principle this means that you can write your document without caring how it is formatted, and at the end of the day wrap it in the style-file provided by the journal publisher before submission to conform to the house style. In practice some of the journal publishers demand special formatting commands that partially moots this process. Furthermore recent versions of Word and LibreOffice Writer, when properly used, should be able to keep track of various levels of section heading separate from the body text, and apply uniform styling to each level. The gap is somewhat closing.
* Tables and illustrations. With PSTricks or TikZ, one can produce high quality illustrations within the document (though the learning curve is a bit steep there). And I've found LaTeX to be better at preparing complex tables.
WYSIWYG (especially Word and Writer) is better at:
* Collaborative editing. Without using an online site for collaborative LaTeX editing (such as ShareLaTeX), working collaboratively on a LaTeX file ideally requires some sort of separate revision control software. Word and Writer have very good comments/annotations and edit-tracking features. When a large number of authors are commenting on the writing of one file, this can be very useful.
* Spell check. Admittedly most text editors one uses to edit TeX files also do spell check. But this is generally conveniently built into WYSIWYG editors.
* Compatibility. Unless you work in mathematics, computer science, or physics (and sometimes even if you work in those fields), it is more likely that your collaborators will know what to do with a Word or Writer file than a LaTeX file.
* Minimum barrier to entry. If you just care about getting the ideas down on paper, you can use a WYSIWYG editor just like a typewriter. Sure, it may be tedious to fix the formatting later on, compared to LaTeX where one need to first figure out how to setup a bare-minimum file before using, it may be an attractive point.
A wash:
* Most journals provide templates for both Word and LaTeX, so there's no real winner there.
Suggestion: if you want to convince someone to start using LaTeX, start them out first in one of the WYSIWYG environments designed for LaTeX first (for example LyX). This will help somewhat to ameliorate the scary entry barrier.
| 5 |
Corn is best prepared outside because indoor temperatures are too low for good results. Also make sure to follow safety rules around open flames!
|
There are many different yet simple ways to cook corn. Corn on the cob can be boiled, microwaved, grilled, steamed, or baked, while loose kernel corn is usually boiled, steamed, or microwaved. Keep reading to learn more about your preferred cooking method.
## Boiling corn on the cob[1]
x
research source
1. Boil a large stockpot of water. Meanwhile, prepare the corn cobs by removing the husks and silks. The exact amount of water you need will vary depending on how large each ear of corn is. Make sure that you use enough water to completely cover the ears of corn once they are submerged. Note that you can add up to 1 tsp (5 mL) salt to the water if desired, but it is not needed. To remove the husks, snap off the stem of the corn with your hands. Pull the stem over the length of the corn to peel off the husks still attached to it. Remove the remaining husks by peeling them off with your fingers. Rinse the husk-free corn cobs under running water. Rub your hands over the corn to loose and free as many of the silky threads you spot clinging to the corn.
2. Transfer the corn to the boiling water. Cover the pot and let it return to boiling. Use tongs to dunk the corn into the water. Avoid using your hands to transfer the corn since doing so may result in burns. If the boiling slows or stops after you place the corn in the stockpot, allow the water to reach a boiling point again before timing the cooking process.
3. Cook for 3 to 8 minutes. The corn should be "tender-crisp" when done. "Tender-crisp" means that the corn is soft enough to press, but not mushy. The precise amount of cooking time will vary based on the type of corn and how mature it is. Fresh corn and sweet corn usually cook fastest.
4. Remove and serve. Transfer the ears of corn to a layer of clean paper towels and let drain for 30 to 60 seconds before serving. The corn will be hot, so you may want to wait a few minutes before biting into it. Corn is usually served with a drizzle of butter.
## Microwaving corn on the cob[2]
x
research source
1. Place an ear of corn in a microwave-safe dish. You will need to cook the corn one ear at a time, but the instructions are the same for each ear. Do not remove the husk. The corn will cook better in the microwave if left in the husk during the cooking process.
2. Microwave the corn for 5 minutes. The microwave should be set on high power or full power. Let stand in the microwave for 1 to 2 minutes to avoid burning yourself with the steam.
3. Transfer the corn to a cutting board. Cut of the stem end using a sharp kitchen knife. Use oven mitts or a towel when removing the corn from the microwave. As you cut, you should also remove the first row of kernels. Make sure to cut through the husk completely.
4. Slip the corn out of its husk and serve. Use oven mitts or a towel to grab hold of the corn from the uncut top end. Gently shake the ear, allowing the corn to slip free. The ear of corn should slip out of the husk easily. Usually, even the silks will remain left behind inside the husks. You can serve the corn with butter and salt, or however you prefer it.
## Grilling corn on the cob
1. Preheat your grill to medium-high heat. Meanwhile, remove the husks and silks from your ears of corn. If using a gas grill, set all the burners to medium-high heat and allow the grill to preheat for 5 to 10 minutes. If using a charcoal grill, allow a thick layer of coals to burn until white ash begins to form over the surface. Husk the corn by snapping off the stem and pulling it over the length of the corn, thereby removing the husk attached to the stem. Peel away the rest of the husk with your fingers. Rinse the ears under running water to remove most of the loose silks.
2. Brush the corn with olive oil. Use a basting brush to apply a thin coat of olive oil to the surface of each ear of corn. Use no more than 1 Tbsp (15 mL) olive oil per ear. You could also use melted butter instead of olive oil.
3. Transfer the corn to the grill. Cook for 6 to 10 minutes. Turn the corn occasionally to ensure even cooking and prevent burning. The corn is done once the majority of the kernels begin to brown lightly. It will also be charred in some spots, especially near the smaller kernels.
4. Serve as desired. Remove the corn from the grill and transfer each ear to a serving platter. Let cool until you can handle it comfortably with your bare hands. Butter and salt are frequently served with corn, but if you used butter on the corn before grilling it, you may find that you do not need to add more.
## Steaming corn on the cob[3]
x
research source
1. Boil water in the bottom portion of a steamer. Husk and de-silk the ears of corn as you wait. If you do not have an actual steamer, you can use a large stockpot and perforated metal colander instead. Make sure that the metal colander can rest on the lip of the stockpot before attempting to use it, however. The basket portion of the colander should not dip below the halfway point of the stockpot. Snap off the stem of the corn and pull it over the length of the ear, removing the attached husk. Peel the rest of the husk away with your fingers. Rinse the corn under cool running water, scrubbing it gently with your hands. This should remove the majority of the silks.
2. Transfer the corn to the steaming basket. Cook for 8 to 12 minutes. Use tongs to transfer the corn into the steaming basket. Using your hands could result in burns. The exact cooking time will vary depending on how mature the corn is. Fresher corn cooks quicker than older corn. The corn is done once the kernels feel tender but not mushy.
3. Serve warm. Remove the corn from the steamer with your tongs and let rest for a minute or two before enjoying. Season with butter and salt, if desired.
## Baking corn on the cob[4]
x
research source
1. Preheat the oven to 425 degrees Fahrenheit (220 degrees Celsius). Remove the husks and silks from each ear of corn as the oven preheats. To remove the husk from an ear of corn, snap off the stem using your hands. Pull the broken stem down over the ear, stripping away any husk attached to it. Peel the rest of the exposed husk away with your fingers. Rinse each corn cob under running water, scrubbing gently with your hands to remove any visible silks. Pat dry with paper towels.
2. Season the ears with butter. You can also add a little salt and pepper, if desired. Use plenty of butter. Spread at least 1 to 2 Tbsp of melted butter over each ear.
3. Wrap each ear in aluminum foil. Each ear must be completely wrapped inside its own sheet of aluminum foil. If you are worried about butter leaking out from the aluminum foil, place a flat baking sheet or jelly-roll pan beneath the wrapped ears of corn to catch any dripping butter.
4. Bake the corn for 20 to 30 minutes. Most ears of corn will only take 20 minutes to cook, but larger ears may need as many as 30 minutes. Place the corn on the middle rack of your oven to ensure the most even cooking.
5. Remove and serve. Let the cooked ears of corn rest for 2 to 5 minutes before carefully removing the aluminum foil. Serve once they are cool enough to touch.
## Boiling corn kernels
1. Boil water in a medium saucepan. Meanwhile, measure out your frozen whole corn kernels. You can add up to 1 tsp (5 mL) of salt to the boiling water, if desired, but the salt is not necessary. The corn does not need to be thawed prior to use. You could also use canned corn kernels instead of frozen corn. Note that the amount of time needed to boil canned corn is significantly less than the amount of time needed to boil frozen corn. Additionally, canned corn should be drained before you add it to the boiling water.
2. Add the corn to the boiling water. If the boiling decreases or stops, let the water come up to a boil again. After it returns to a rolling boil, reduce the heat to medium-low.
3. Cover and cook. Frozen whole kernels of corn should simmer for 5 to 10 minutes. Drain once finished. Canned corn should only boil for 1 to 3 minutes. Once finished, the corn should be hot and tender but not mushy.
4. Serve as desired. Do not refreeze corn kernels after cooking them. If desired, you can mix the cooked corn kernels with butter, salt, and black pepper. You can also use other seasonings, like parsley, according to your own tastes.
## Steaming corn kernels
1. Simmer water in a steamer. Fill the lower part of a steamer with water and heat, on the stove, over medium heat until the water steams and starts to simmer. Do not boil the water. Do not fill the steamer high enough for water to slip up through the holes of the steamer basket. If you do not have a steamer, you could use a stockpot and a metal colander with fine holes. Make sure that the colander fits over the lip of the stockpot without falling in.
2. Add frozen corn kernels into the steamer basket. Spread the kernels out into a single layer. Canned corn kernels can also be used, but they will finish cooking in a much shorter amount of time. They may also be soggier once finished. You do not need to thaw frozen corn kernels before use.
3. Cook for 9 to 10 minutes. Allow the corn to steam for 9 to 10 minutes without covering it. Drain once finished. Canned kernels will only need to steam for 3 or 4 minutes.
4. Serve. Steamed corn can be served with butter and salt as well as other seasonings.
## Microwaving corn kernels
1. Place corn kernels in a microwave-safe dish. Spread frozen corn kernels into an even layer in the dish. Canned corn kernels can also be used, but there are some differences in the cooking method and length. Frozen corn does not need to be thawed prior to cooking.
2. Add 2 to 4 Tbsp (30 to 60 mL) of water. Stir the water into the corn to disperse it throughout. Note that this step is only needed if using frozen corn kernels. You do not need to add water if using canned corn, but you should not drain the canned corn before use.
3. Cover the dish with plastic wrap. Use a fork to poke a few holes into the plastic wrap, providing ventilation. Only use plastic wrap that is safe to use in the microwave. If the dish has a cover, you could use that instead of the plastic wrap. Make sure that the cover is placed on the dish loosely so that the corn is still ventilated.
4. Microwave for 4 to 5 minutes. If using canned corn, only microwave the dish for 1 to 2 minutes. The exact length of time varies depending on how much wattage your microwave has. A lower-powered microwave will need longer time, while a higher-powered microwave will need less time. If you hear popping sounds as the corn cooks, stop the microwave early.
5. Drain and serve. Drain the cooking liquid from the corn and season as desired with butter, salt, and pepper.
## Charcoal grilled corn on the cob
1. Cut the tip of each ear of corn off. Soak the corn in the husks in a sink or a big pot in 4 to 6 inches (10.2 to 15.2 cm) of tap water for about an hour.
2. While they're soaking, prepare your outdoor charcoal grill. Add enough coals for an hour of cooking.
3. Place the corn still in the husks on the grill. Cook for about an hour, turning occasionally, allowing the husks to char.
4. Remove the husks.
5. Add butter, salt and pepper to taste. Serve immediately.
| 4 |
Write an interactive story about how a prisoner came to his fate.
|
They say I'm here for a test, then they laugh. I'm never asked any questions. I'm never asked even for my name. I must have been here for months. I would be curious of the whole situation if I wasn't terrified.
I wake up in a cold sweet, every night. The guards don't care. The portions of food are small. Yesterday there wasn't any food, they just forgot. I wish I could forget. Somewhere outside it's spring. The warm breeze blows sand and dust through the cracks in the walls and ceiling. I huddle in the corner and I hug my knees, I remember my daughter screaming for me as they dragged her outside. She's outside somewhere, outside where it's spring. I want to see her again. I want to know she's safe.
The pain comes suddenly and sharply to my face, my head, then my stomach. The light is bright and blurry. My ears ring over the voices of the men yelling at me. I'm told to standup and to lay down at the same time. I'm kicked when I don't. A guard grabs me and stands me up, I see that he's yelling something at me.
It's dark, my hands are tied, I feel a gag in my mouth. I get the strong smell of musk and vomit in the mask. I hear a truck rumble under my body as we drive over gravel and dirt roads. Hours passed by.
"Are you ready for your test?" My guards joked. They stopped the truck.
I remain silent. They dragged me off the truck. They tie me to a chair.
In the darkness I hear a man say, "Your test is ready. Are you ready?" I wonder what they mean.
"Yes." I hear a little girl squeak. I know that voice I thought.
They un-hood me... I see her... standing there with hate in her eyes. They give her a gun. I yell out to her, but I'm still gagged.
"Good!" the man says. "Now shoot him."
Somewhere outside it's spring and birds freshly hatched from their eggs chirp out for food and love.
| 4 |
I’m writing my first guide for beginners at the gym and would love some tips regarding dress code (men & women). What type of clothing should one prefer?
|
When you go to the gym, it's important to wear clothes that are breathable and flexible. It's good to look good – but remember that fitness and safety are your foremost concerns. Ill-fitting clothing can cause itchy skin, rashes, or more serious injuries. Also, be mindful that your clothes may shift when you're working out. Wear clothing that will facilitate a solid workout.
## Dress for women
1. Choose a lightweight t-shirt or sweatshirt. Wear a breathable material like cotton or polyester. When you work out, you'll grow hot and sweaty, so you want to make sure that your clothing doesn't trap the heat. If possible, choose a top that is specifically designed for wicking sweat. Consider wearing a tank top or sports bra for a more breathable—if more revealing—outfit. If you have large breasts, then a sports bra may be essential for a comfortable gym experience. No matter your size, a bit of extra support never hurts.
2. Pick your bottoms. Wear something flexible, with an elastic waistband: gym shorts, sweatpants, track pants, or yoga pants. You should be able to perform a full range of leg workouts while you're wearing the bottoms. The bottoms that you wear also depend on the effect that you're going for: tight and skin-showing clothing can help you show off, and baggier, more flowing garments might help you blend in. Short shorts may afford you the most flexibility, but they can also show a lot of skin. If you feel shy in shorts: wear sweats or yoga pants. If you wear shorts, inspect yourself from all angles in a mirror before you go to the gym. Keep in mind that people may be able to see up the leg of your shorts when you're using certain equipment, like the leg press.
3. Bring appropriate footwear. The shoes you wear will depend upon the sort of exercises that you're doing. If you plan to do any cardio, then bring shoes that will offer plenty of protection for your feet and legs. Keep in mind that a lot of gyms don't allow open-toed shoes. If you'll be running on a treadmill, then make sure to bring running shoes. If you will be using an elliptical or exercise bike, then your footwear doesn't matter so much – just wear something comfortable that you can stand in. If you'll be training weights, make sure to wear something with ample ankle and arch support. Running shoes are always a good choice.
## Dress for men
1. Wear shorts or sweats. Make sure that your bottoms give you a full range of motion. Be conscious of how much you will sweat during your workout, and think about how hot you're going to get. Try not to wear shorts that extend more than an inch below your knees – especially if they are loose around the legs. The lower your shorts, the shorter your range of motion. If you decide to wear shorts, be aware that other people may be able to see up the leg of your shorts when you're using machines like the leg press.
2. Take a breathable, flexible shirt. A cotton t-shirt or tank will suffice. Alternately, choose a breathable, sweat-wicking polyester shirt. Pick something that will absorb sweat and that won't restrict your range of motion. A tank will show off your arms, and a t-shirt can be a slightly more modest choice. Decide what you're going for.
3. Choose appropriate footwear. The shoes you wear will depend upon the sort of exercises that you're doing. If you plan to do any cardio, then bring shoes that will offer plenty of protection for your feet and legs. If you'll be running on a treadmill, then make sure to bring running shoes. If you will be using an elliptical or exercise bike, then your footwear doesn't matter so much – just wear something comfortable that you can stand in. If you'll be training weights, make sure to wear something with ample ankle and arch support. Running shoes are always a good choice.
## General advice
1. Wear lightweight, breathable socks. Cotton socks are generally a good choice. Make sure that the socks are neither too tight nor too loose! Wear high socks or low socks, to your taste. Short socks will give your legs more space to breathe, but high socks can be useful for wicking away sweat. Tight socks can constrict your legs and slow your blood circulation. On the other hand, socks that are too loose might distract you by sliding down your legs.
2. Carry a towel. As you move about the gym, use a soft, clean towel to wipe your sweat away. You don't want to leave your sweat on the seat of a machine! Most gyms provide clean towels for members to use during their workouts. Do not share a towel with anyone, or else you risk sharing germs! Clean up any sweat that you do leave on a machine. Use a small, clean towel to wipe down the seat, the bars, and any other part that your sweat has touched. Your sweat carries bacteria that could infect someone else if left to dry on the machine!
3. Wash your clothes after the gym. Even your own sweat, when left to dry on fabric, can breed nasty bacteria and then infect you. Odor-making bacteria tend to grow better on polyester than on cotton – but you should wash all gym clothes regardless.
| 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.