instruction
stringlengths
0
2.62k
response
stringlengths
47
15.5k
score
int64
5
5
What do you know about the search for extraterrestrial life?
Humanity has yet to find evidence for life outside planet Earth. The current search for extraterrestrial life is largely focused on finding planets that are situated in an "habitable zone". Roughly put, a planet is in a habitable zone if its distance from nearby stars allows for liquid water to persist on its surface. So far, a few such planets have been found, but none yet with liquid water on its surface.
5
## Choose a new cartridge and drain the faucet 1. Purchase a cartridge that matches your faucet’s model. The cartridge varies depending on the faucet you have, so getting an identical replacement is important. Order a new cartridge by noting the manufacturer’s name and the faucet’s model number. The name is usually printed somewhere on the faucet handle. The model number can sometimes be found on the faucet as well, such as on a tag tied to the cold water line. The water lines are located underneath the sink for a sink faucet and in the wall for a showerhead. They won’t always be accessible, so look in the owner’s manual for the model number as well. If you are unable to find the information you need to get a replacement, pull the cartridge out first, then take it with you to a hardware store. New cartridges can also be ordered online from the manufacturer. 2. Turn the water control valve clockwise to shut off the water flow. If you’re replacing a sink faucet, check underneath the sink. Look for a pair of water lines running from the handle, each with its own valve. If that isn’t an option, locate the main shut-off valve in your home instead. It will be on the lowest floor of your home, close to the water heater. If you’re having a hard time finding the valves, follow the water lines. For example, find where the main water line enters your home. Follow it to the water meter and the shut-off valve. The main shut-off valve can vary. It could be a colored wheel that you rotate or a handle that you position horizontally to stop the water flow. It may also be outside of your home. 3. Open the faucet to release any water still inside it. Go back to the faucet you are replacing and activate it. If the water has been shut off, it won’t shoot out its normal jet of water. Instead, any water trapped in the line will spill out. Wait until the faucet stops gurgling and dripping before attempting to replace the cartridge. Draining the line won’t take long. The lines can’t store much water, so they clear within several seconds. 4. Remove the old cartridge from the faucet. If you’re replacing a sink faucet, unscrew the cartridge from the faucet handle. If you’re replacing a showerhead, unscrew the cart
## Choose a new cartridge and drain the faucet 1. Purchase a cartridge that matches your faucet’s model. The cartridge varies depending on the faucet you have, so getting an identical replacement is important. Order a new cartridge by noting the manufacturer’s name and the faucet’s model number. The name is usually printed somewhere on the faucet handle. The model number can sometimes be found on the faucet as well, such as on a tag tied to the cold water line. The water lines are located underneath the sink for a sink faucet and in the wall for a showerhead. They won’t always be accessible, so look in the owner’s manual for the model number as well. If you are unable to find the information you need to get a replacement, pull the cartridge out first, then take it with you to a hardware store. New cartridges can also be ordered online from the manufacturer. 2. Turn the water control valve clockwise to shut off the water flow. If you’re replacing a sink faucet, check underneath the sink. Look for a pair of water lines running from the handle, each with its own valve. If that isn’t an option, locate the main shut-off valve in your home instead. It will be on the lowest floor of your home, close to the water heater. If you’re having a hard time finding the valves, follow the water lines. For example, find where the main water line enters your home. Follow it to the water meter and the shut-off valve. The main shut-off valve can vary. It could be a colored wheel that you rotate or a handle that you position horizontally to stop the water flow. It may also be outside of your home. 3. Open the faucet to release any water still inside it. Go back to the faucet you are replacing and activate it. If the water has been shut off, it won’t shoot out its normal jet of water. Instead, any water trapped in the line will spill out. Wait until the faucet stops gurgling and dripping before attempting to replace the cartridge. Draining the line won’t take long. The lines can’t store much water, so they clear within several seconds. 4. Cover the drain to prevent anything from falling down it. Faucets have some small screws and other parts that could cause a lot of unnecessary hassle if they were to get lost. To prevent accidents, fit the drain’s plug into place. If it doesn’t have a plug, place a towel over it. Make sure the drain is completely covered. Anything that falls down the drain will be difficult to remove and could damage your plumbing. If you happen to lose a part, order a replacement online or from a hardware store. ## Handle a sink faucet 1. Pry off the faucet cap with a flathead screwdriver. The decorative cap is at the very top of the faucet stem. Find the bottom edge of the cap, then slide the tip of the screwdriver underneath it. Push the cap up until it pops off the faucet. If the cap is stuck, pry it at a few different angles. Keep working around the edges until it is loose enough to lift off the faucet. Note that every handle is separate. If your faucet has separate cold and hot water handles, they have their own cartridges. Single-handle faucets only have one cartridge. 2. Unscrew the handle with a Phillips screwdriver. Check the top of the faucet. There will be a small hole in the center where the cap was. Stick a small Phillips screwdriver into the hole to reach the screw, then turn it counterclockwise until you are able to remove it. Pull the faucet handles off afterward. Some faucets open with an Allen wrench instead. If the screw has a hexagonal opening on top, use an Allen wrench. 3. Remove the nut on the faucet with a crescent wrench. Removing the handle exposes a circular metal nut on the base of the faucet. Clamp the wrench around the nut, then turn it counterclockwise. Once the nut comes loose, you can finish turning it by hand. Continue rotating it until you’re able to lift it off of the faucet. You could also use pliers to remove the nut. Water pump pliers are designed for dealing with plumbing nuts and bolts, but you may be able to remove it with different tools. 4. Pull the cartridge out of the faucet by hand. The only thing left in the faucet is the cartridge. It has a wide base with a metal or plastic column in the center. You can use the column to get a grip on the cartridge. Just pull it straight up from the faucet to remove it. The old cartridge can be thrown out in the trash. Cartridges have traditionally been made of brass, recognizable because of its dull yellow coloring. Your faucet may have a silvery cartridge made of chrome or zinc, or a white one made of plastic. If you’re having a hard time holding onto the cartridge, grab it with pliers. Needle nose pliers are great for such delicate work. 5. Insert the new cartridge into the faucet stem. The new cartridge won’t fit unless it aligns with the stem slot properly. Check the bottom edge of the cartridge for a small tab. The inner part of the faucet stem will have a matching slot. Simply align the tab with the slot and slide the cartridge in to install it. Make sure the new cartridge is properly aligned with the opening so it you don’t inadvertently damage it. Handle it with care! 6. Reassemble the remaining handle parts to finish the installation. Put the parts back in reverse order. Start with the nut, tightening it by rotating it clockwise with a wrench once it’s on the faucet stem. Place the handle on top of it, inserting and tightening its screw with a Phillips screwdriver. Finish by pressing the cap onto the top of the handle. If your faucet is connected to multiple handles, remember to replace the cartridge in the other handle as well if necessary. Once you have finished, reactivate the water line to test out the new cartridge! ## Fix a shower faucet 1. Unscrew the shower handle with a Phillips screwdriver. Rotate the handle until you spot a small opening with a screw inside. Turn the screw counterclockwise until you’re able to remove it. Once the screw is gone, the handle won’t have anything holding it to the wall. Slide it off the wall and set it aside. The cartridge is located behind the handle, so you won’t be able to reach it without removing the handle first. Some shower handles have alternative types of screws. You may need an Allen wrench instead of a Phillips screwdriver. 2. Use a Phillips screwdriver to remove the handle adapter. The handle is held in place by a round plate with an adapter in the middle. In the center of the adapter, you will see a screw. Turn the screw counterclockwise until you’re able to remove it. Then, slide the adapter forward to detach it from the faceplate. Sometimes the adapter can be removed by twisting it off. It depends on the model, but, if you don’t see a screw, you most likely have to twist it off. Note that you may need to remove the faceplate in some cases. It usually isn’t necessary, but every cartridge system is a little different. If you don’t see the cartridge, check the faceplate to see if it can be unscrewed too. 3. Slip off the stem cover and anything else in front of the cartridge. Removing the adapter will reveal a small metal cylinder in the center of the wall opening. However, many shower cartridge systems have a few extra layers of protection around it. Yours may have a white plastic cap, followed by a metal ring. Pull both of them off the cartridge by hand and set them aside. These components are for adjusting and limiting the water temperature. They aren’t present in all faucet models, but save them if you have them. 4. Use pliers to pull out the clip holding the cartridge in place. Look along the top edge of the cartridge for the clip. It is usually made of steel and situated in a groove on the cartridge. Reach in with a pair of needle nose pliers, then lift it to pop it out of the slot. Pull it toward you to remove it, then dispose of it in the trash. Some faucets have a nut instead of a clip. If you see a ring around the cartridge but no clip, use pliers or a wrench to turn the nut counterclockwise. Once it comes loose, slide it off the wall. 5. Remove the cartridge by gripping it with a pair of pliers. Once everything else is out of the way, the cartridge isn’t tough to remove. Grip the stem, then attempt to pull it toward you. If it doesn’t come out right away, take a closer look at it. Some cartridges have to be rotated slightly to align with a slot in the wall before they can be removed. The cartridge is recognizable because of its column-like stem jutting out from the wall. The cartridge’s base is round and fits inside the wall opening. The cartridge is usually made of brass, which has a yellow coloring. Some cartridges are made of silvery steel or white plastic instead. 6. Install the new cartridge by aligning it with the wall opening. Check the cartridge stem to see if it has a notch on it. If the notch is present, align it with the groove in the wall slot. Then, slide the cartridge in with pliers or a wrench. Make sure it is plugged all the way in before putting anything else on top of it. If the new cartridge came with a packet of grease, rub it onto the cartridge before putting it back. The grease protects the cartridge from damage during the installation. You could also apply your own plumber’s grease to it. 7. Replace the remaining parts to finish the installation. Replace the parts one by one in reverse order from how you took them out. Start with the retaining clip or nut, tightening it after putting it back. Return any stem coverings next, followed by the screw-on handle adapter. When you’re done, add the handle and screw it into place. Test the faucet afterward. If it doesn’t seem to be working the way you want, check all of the parts to ensure they are undamaged and have been put back correctly.
5
By definition, nothing's going to happen in an empty room (though see below). There are no hidden doors to find, no puzzles to solve, no enemies to fight. So what's their purpose? ## Bringing the dungeon to life While all the orcs may sit around in a guard room waiting for PCs to show up, where do they sleep, what do they eat, what happens to their trash? Think of a dungeon not just as a place to have fights in, but as an actual place that serves a purpose. Once you do, the dungeon will start making sense. "Empty" rooms will increase immersion for the players, and force you to consider things you may not have otherwise. Should there be a pet otyugh that eats the trash? Are the orcs demanding cows from the local farmers for "protection"? Do they keep a famed halfling cook enslaved, to make them rare steaks? ## Foreshadowing Once the dungeon makes sense, you can use that to place clues for things that dwell deeper within. Has a horde of zombies marched through to guard the necromancer's abode within, and left a few rotten body parts here and there? Has a malevolent force been summoned and spoiled all the meat and milk in the dungeon? Is there a golem maintenance station, with oil to grease them, rags to polish them, and a mad goblin mechanic? These may be vital clues PCs need to prepare for a tough fight, or they can simply let them form theories and feel smart about being right once they do come upon a golem or three. #Currently empty These rooms are empty now, but they don't have to stay that way. PCs may choose to fortify a room and bring the enemy to them - such tactical choices could be an important part of dungeoncrawling. Orcs may chase PCs through the dungeon, or randomly come across them in a kitchen because they were feeling peckish. Note that some of these ideas would introduce creatures or things into rooms that PCs may choose to interact with, which would make them non-empty. In a way that's a good thing, as it makes the dungeon feel more alive, but it's something to keep in mind.
By definition, nothing's going to happen in an empty room (though see below). There are no hidden doors to find, no puzzles to solve, no enemies to fight. So what's their purpose? ## Bringing the dungeon to life While all the orcs may sit around in a guard room waiting for PCs to show up, where do they sleep, what do they eat, what happens to their trash? Think of a dungeon not just as a place to have fights in, but as an actual place that serves a purpose. Once you do, the dungeon will start making sense. "Empty" rooms will increase immersion for the players, and force you to consider things you may not have otherwise. Should there be a pet otyugh that eats the trash? Are the orcs demanding cows from the local farmers for "protection"? Do they keep a famed halfling cook enslaved, to make them rare steaks? ## Foreshadowing Once the dungeon makes sense, you can use that to place clues for things that dwell deeper within. Has a horde of zombies marched through to guard the necromancer's abode within, and left a few rotten body parts here and there? Has a malevolent force been summoned and spoiled all the meat and milk in the dungeon? Is there a golem maintenance station, with oil to grease them, rags to polish them, and a mad goblin mechanic? These may be vital clues PCs need to prepare for a tough fight, or they can simply let them form theories and feel smart about being right once they do come upon a golem or three. #Currently empty These rooms are empty now, but they don't have to stay that way. PCs may choose to fortify a room and bring the enemy to them - such tactical choices could be an important part of dungeoncrawling. Orcs may chase PCs through the dungeon, or randomly come across them in a kitchen because they were feeling peckish. Note that some of these ideas would introduce creatures or things into rooms that PCs may choose to interact with, which would make them non-empty. In a way that's fine: you started with an empty room but found something interesting to put inside after all. If that's not your intention, well, don't put goblins or halflings or otyughs in. Stick to body parts and greasy pots and shadowy portraits and bloodstains and scent of brimstone and fresh flowers and broken mirrors and... Tell a story with your empty rooms, or offer tactical choices. Preferably both.
5
What's the weather like today?
I am sorry, but I am not programmed to have access to real-time information, such as the weather and stock information. Feel free to ask me something else.
5
What is the difference between a class and an object in JavaScript?
As you must already be aware by now there are no classes in JavaScript. Instead functions in JavaScript may be made to behave like constructors by preceding a function call with the ```new``` keyword. This is known as the constructor pattern. In JavaScript everything is an object except for the primitive data types (boolean, number and string), and ```undefined```. On the other hand ```null``` is actually an object reference even though you may at first believe otherwise. This is the reason ```typeof null``` returns ```"object"```. Functions in JavaScript are similar to functables in Lua (i.e. they are callable objects). Hence a function can be used in place of an object. Similarly arrays are also objects in JavaScript. On the other hand objects can be thought of as associative arrays. The most important point however is that there are no classes in JavaScript because JavaScript is a prototypal object oriented language. This means that objects in JavaScript directly inherit from other objects. Hence we don't need classes. All we need is a way to create and extend objects.
5
What is the purpose of the mail exchange (MX) record?
The whole idea behind the mail exchange (MX) record is to specify a host or hosts which can accept mail for a domain. As specified in RFC 1035, the MX record contains a domain name. It must therefore point to a host which itself can be resolved in the DNS. An IP address could not be used as it would be interpreted as an unqualified domain name, which cannot be resolved. The reasons for this in the 1980s, when the specs were originally written, are almost the same as the reasons for it today: A host may be connected to multiple networks and use multiple protocols. Back in the 80s, it was not uncommon to have mail gateways which connected both to the (relatively new) Internet which used TCP/IP and to other legacy networks, which often used other protocols. Specifying MX in this way allowed for DNS records which could identify how to reach such a host on a network other than the Internet, such as Chaosnet. In practice, though, this almost never happened; virtually everyone re-engineered their networks to become part of the Internet instead. Today, the situation is that a host may be reached by multiple protocols (IPv4 and IPv6) and by multiple IP addresses in each protocol. A single MX record can't possibly list more than one address, so the only option is to point to a host, where all of that host's addresses can then be looked up. (As a performance optimization, the DNS server will send along the address records for the host in the response additional section if it has authoritative records for them, saving a round trip.) There is also the situation that arises when your mail exchangers are provided by a third party (e.g. Google Apps or Office 365). You point your MX records to their hostnames, but it may occur that the service provider needs to change the mail servers' IP addresses. Since you have pointed to a host, the service provider can do this transparently and you don't have to make any changes to your records.
5
People make mistakes. Sometimes these mistakes are bad enough to cost us the respect of those around us or even our jobs. If you’ve made a bad professional error or hurt colleagues at work, though, the damage might not be permanent. You can put the past behind you, but you’ll have to work hard to rebuild relationships, become a model worker, and, in some cases, manage your reputation online. ## Rebuild relationships 1. Admit your mistake. If you’ve damaged your reputation – wronging a coworker, angering your boss, or just getting an overall bad name – the place to start is to own up to it. Admit the error of your ways. Take stock of your actions and accept responsibility for them, to yourself and in front of others. What happened? Where did you go wrong? Be brutally honest with yourself. For example, do you have bad personal habits? Did you try to cut corners and dodge work? Have you been an office gossip? Or, did you have a serious lapse of judgement? Perhaps you stole someone’s idea and got caught or plagiarized a report. Perhaps you just stole, embezzling money. 2. Apologize. Even if you don’t have a future at your workplace, you should apologize to the people you’ve hurt. Showing remorse is decent and will help you start to redeem yourself. You will not get very far with building bridges and repairing your reputation if you can’t say sorry. Act as soon as you can. The longer you wait to apologize, the more it seems like you aren’t really that sorry. Don’t make excuses. The point is to show remorse and accept that you were wrong. Don’t insert half-excuses or mealy-mouth language into your apology, for example “I’m sorry if you were offended that I took your idea. I only wanted to improve it.” * Be humble and own up. For instance, “It was really wrong of me to talk behind your back. I know I’ve hurt you and want to ask for your forgiveness.” * Be sincere. You won’t get credit if you don’t say specifically what you did. You also won’t credit if you don’t say it with sincerity. * Be specific. Don’t just say “I’m sorry” and leave it at that. Be specific about what you’re sorry for. * Don’t make excuses. Don’
People make mistakes. Sometimes these mistakes are bad enough to cost us the respect of those around us or even our jobs. If you’ve made a bad professional error or hurt colleagues at work, though, the damage might not be permanent. You can put the past behind you, but you’ll have to work hard to rebuild relationships, become a model worker, and, in some cases, manage your reputation online. ## Rebuild relationships 1. Admit your mistake. If you’ve damaged your reputation – wronging a coworker, angering your boss, or just getting an overall bad name – the place to start is to own up to it. Admit the error of your ways. Take stock of your actions and accept responsibility for them, to yourself and in front of others. What happened? Where did you go wrong? Be brutally honest with yourself. For example, do you have bad personal habits? Did you try to cut corners and dodge work? Have you been an office gossip? Or, did you have a serious lapse of judgement? Perhaps you stole someone’s idea and got caught or plagiarized a report. Perhaps you just stole, embezzling money. 2. Apologize. Even if you don’t have a future at your workplace, you should apologize to the people you’ve hurt. Showing remorse is decent and will help you start to redeem yourself. You will not get very far with building bridges and repairing your reputation if you can’t say sorry. Act as soon as you can. The longer you wait to apologize, the more it seems like you aren’t really that sorry. Don’t make excuses. The point is to show remorse and accept that you were wrong. Don’t insert half-excuses or mealy-mouth language into your apology, for example “I’m sorry if you were offended that I took your idea. I only wanted to improve it.” * Be humble and own up. For instance, “It was really wrong of me to talk behind your back. I know I’ve hurt you and want to ask for your forgiveness.” * Be sincere. You won’t get credit if you don’t say specifically what you did. You also won’t credit if you don’t say it apologetically and sincerely, showing that you won't repeat the behavior. 3. Commit to reform. Besides an apology, write out a plan for how you’ll change and ensure your mistake doesn’t happen again. This can be for you alone or, if you’re lucky to keep your job, to share with the powers that be in the organization. Outline what you did wrong and how you will avoid it. For example, “I made the mistake of getting too involved in workplace gossip and ended up saying harmful things about my coworkers. From now on, I plan to keep my head down, mind my own business, and avoid office politics.” * Don’t forget to “walk the walk” and follow your plan. You might arrange regular check-ins with your boss, for instance, to discuss your behavior. This will highlight your progress as well as show that you are willing and able to reform. 4. Keep your attitude in check. Repairing your reputation is going to be a humbling experience. You might feel angry or resentful. You might get annoyed, frustrated, or upset. Keep these emotions under control – you’ve had a bad attitude in the past and need others to see that you’re trying to change. Try to stay calm, collected, and positive. Be aware of the attitudes or emotions that added to your bad behavior in the past. Try to avoid them or situations that bring them out. If your problem is gossip, avoid the office gossipers as best you can. Stop and ask yourself throughout the day, “How’s my attitude? Am I positive? Am I productive?” Catch any problems early and try to readjust your mindset. ## Become a model employee 1. Get to work early. Apart from apologies and repairing relationships, set yourself up as a model employee to help you rebuild your work reputation. Be a go-getter. Arrive early and ready to impress. People will eventually start to notice. Getting to work early will make a good impression on your boss and perhaps your coworkers. Often, people aren’t around to see who leaves the office last. But they will notice your presence in the morning. Being early also means you don’t have to rush around. Use the quiet time to your advantage and plan out your day. It doesn’t hurt to take a short walk around the office first thing in the morning. People will see you and take note. 2. Prioritize. Some people have trouble keeping track of what they need to do during a given day or week. Take initiative and prioritize your work. Keep your nose to the grindstone to avoid returning to past mistakes and to present yourself as great employee. For instance, sit down and write out what you need to do for each day or, longer term, each week and month. If you’ve been coming to work early, use that time to set out daily priorities. Having a to-do list will help you focus your energy. You might also tailor the list to take advantage of your peak work hours. For instance, if you do your best work in the morning, save that time for your top priorities. Try to stick to the list. That said, be flexible in case your boss gives you special instructions. 3. Do your tasks thoroughly and on-time. Writing down your tasks isn’t all, of course. You actually need to follow through and do them well. Good work and dependability can make a past mistake fade over time. Build up a track record for reliability and your colleagues and boss will have more trust in you in the future. Meet your deadlines. What about that report that’s due next week? Prioritize it in your list on Monday. If you still can’t get it done during the week, consider finishing it at home or over the weekend rather than asking for more time. Be productive, especially if you have had consistency problems before. Take a short breather to stretch or use the restroom, but don’t try to skirt work. 4. Go above and beyond. Handing in finished work on time is good. To be a model employee, though, you will have to aim even higher and win (or win back) your boss’ trust. Track details, anticipate tasks, and work ahead to further develop a good reputation. If a colleague asks you to think of venues for an upcoming tradeshow, for example, don’t just stop at a list. Take the next steps: call them, ask about availability, and compare prices. When you take initiative like this, you’ll seem smart and like the logical go-to person for key projects. ## Repair your reputation online 1. Check your online metrics. If your error was very serious, or if you are well-known and hold a big position, you might want to think about your online presence when rebuilding your reputation. Don’t underestimate negative online info. To start, you will need to take stock of the situation. You can get a quick sense of your online reputation by checking Google’s autocomplete. Just go to the Google homepage. What appears when you type in your name, or your company name? When you enter your name, for example, do you get something positive or neutral like “Harold Bing Brew Co. CEO” and “Harold Bing business award”? Or is it damaging, like “Harold Bing mugshot”? Look at online news stories or reviews about you or your company, if applicable. Check local sites or other social media. Set up a Google Alert in your name, so that you’ll be notified any time something new is posted. 2. Deal with Google defamation. Programs like Google Suggest reflect real internet searches and should give you an idea of how people associate your name and reputation online. Did you find something unwelcome in your results? There are some things you can do. Do not try to manipulate the results. While some people suggest this approach, using techniques like crowdsourcing, you might end up causing more damage. You might try acquiring the search term and building an optimized page to tell your viewpoint. That way, when someone types “Juliette Page embezzler” she is directed to your side of the story – that the charge is false, misunderstood, or not reported right. You can also request that the search engine take down the autocomplete. This is hard and usually only works with results that suggest hate or violence, porn, or personal information. Still, it may be worthwhile to try. 3. Hire an online reputation manager. Your online reputation could get out of control. Don’t despair, however. There are people and agencies who can help you manage this kind of situation, like Reputation.com or BrandYourself.com. The work will be pricy, but it may just salvage your working reputation. Reputation managers won’t always be able to get rid of negative content from the web. But they should be able to highlight positives about you. For example, their services might include setting up a domain in your name for a page presenting your side of the story. They can also respond to negative comments or reviews and manage your online presence on sites like Facebook, Twitter, or Youtube. The goal is not to eliminate all negative info about you, but to tip the balance in your favor whenever someone searches for you online. Keep in mind that management services don’t come cheap. Expect to pay between $20 to $200 per month.
5
What is the stereotype about Asian people having tiny eyes?
Asian people having tiny eyes is a false stereotype and generally considered as racism. The eye shape of a person is determined by their genes, not race or ethinicity.
5
Setting up an aquarium can be quite difficult that involves a lot of patience, maintenance, and testing before you can even add any tank inhabitants. Despite this, setting up your aquarium correctly is vital for your pets' health and longevity. There are different ways to set up different types of aquariums. ## Choose an aquarium type 1. Decide if you want a freshwater aquarium or saltwater aquarium. There are many differences between having a freshwater aquarium versus having a saltwater aquarium. These differences include how you initially set up the aquarium and all ongoing care, maintenance, everyday chores, and costs requirements. There are several key issues you will need to consider while you choose: 2. Think about the size of tank you’d like. A small fish tank set up is generally more economical than a large fish tank. There are several issues you should consider when choosing the size of your tank: 3. Choose what type of saltwater aquarium you’d like to set up. There are three main saltwater aquarium types: Fish Only, Fish Only with Live Rock (FOWLR), and the Reef Tank. Fish Only Tanks: As the name suggests, this tank only houses saltwater fish. It is the least expensive way to set up a saltwater aquarium. However, it does have its disadvantages. Fish Only tanks take longer to set up, require more frequent tank maintenance and testing, and have a shorter shelf life than the other types of saltwater aquariums. Fish Only with Live Rock: FOWLR tanks are set up like Fish Only tanks but with the addition of live rock and better aquarium lighting. The live rock acts as a natural biological filter for saltwater and keeps your tank healthier than a Fish Only tank. A live rock has hundreds of tiny creatures and biological organisms living inside and on the surface of the rock. Reef Tank: If you choose this type of saltwater aquarium, you are most likely looking towards having invertebrates, corals, or anemones as the main focus of your aquarium and fish are just an afterthought. Reef tanks require daily water quality checks, high lighting levels, extra water supplements, heavy duty filtration systems and are generally the most expensive to maintain. Reef Tanks are recommended for more experienced aquarists. 4. Choose what type of freshwater aquarium you’d like to set up. There are three main freshwater aquarium types: Community Tank, Nano Tank, and Breeding Tank. Community T
Setting up an aquarium can be quite difficult that involves a lot of patience, maintenance, and testing before you can even add any tank inhabitants. Despite this, setting up your aquarium correctly is vital for your pets' health and longevity. There are different ways to set up different types of aquariums. ## Choose an aquarium type 1. Decide if you want a freshwater aquarium or saltwater aquarium. There are many differences between having a freshwater aquarium versus having a saltwater aquarium. These differences include how you initially set up the aquarium and all ongoing care, maintenance, everyday chores, and costs requirements. There are several key issues you will need to consider while you choose: 2. Think about the size of tank you’d like. A small fish tank set up is generally more economical than a large fish tank. There are several issues you should consider when choosing the size of your tank: 3. Choose what type of saltwater aquarium you’d like to set up. There are three main saltwater aquarium types: Fish Only, Fish Only with Live Rock (FOWLR), and the Reef Tank. Fish Only Tanks: As the name suggests, this tank only houses saltwater fish. It is the least expensive way to set up a saltwater aquarium. However, it does have its disadvantages. Fish Only tanks take longer to set up, require more frequent tank maintenance and testing, and have a shorter shelf life than the other types of saltwater aquariums. Fish Only with Live Rock: FOWLR tanks are set up like Fish Only tanks but with the addition of live rock and better aquarium lighting. The live rock acts as a natural biological filter for saltwater and keeps your tank healthier than a Fish Only tank. A live rock has hundreds of tiny creatures and biological organisms living inside and on the surface of the rock. Reef Tank: If you choose this type of saltwater aquarium, you are most likely looking towards having invertebrates, corals, or anemones as the main focus of your aquarium and fish are just an afterthought. Reef tanks require daily water quality checks, high lighting levels, extra water supplements, heavy duty filtration systems and are generally the most expensive to maintain. Reef Tanks are recommended for more experienced aquarium hobbyists. 4. Determine what the correct lighting and heating for your fish is. The kind of lighting and the temperature of your aquarium depend on what kind of aquarium you have and who your tank inhabitants are. The type of light you choose also affects the overall temperature of your tank. Aquariums that are Fish Only: This means your freshwater tank will not have real or live plants in it. In this case, you will most likely be using fluorescent lights that are between 18 and 40 watts. Freshwater aquariums with plants: The type of lighting you’ll need will depend on the depth of your tank, the plant species you have, and the desired growth rate of the plant. Usually, you should provide 2 to 5 watts of light per gallon in a planted freshwater aquarium. Always research and consult with your aquarium expert when you plan to have plants in your tank. Saltwater Reef Tanks: These tanks need high levels of light that are characteristic of high output fluorescent and metal halide lamps. Some corals may even need more intense levels of light that can be achieved with T5-HO, Very High Output (VHO), and metal halide lights. 5. Choose the appropriate type of filter or filters for your tank. All filters have three functions to them, which include mechanically filtering the water by trapping or removing free floating particles, biologically filtering the water by growing good bacteria, and chemically filtering the water by dissolving wastes. There are various types of filter: ## Set up a freshwater aquarium 1. Gather all the equipment needed for your aquarium. Before buying your fish, you need to prepare the aquarium. A typical freshwater aquarium needs: 2. Clean your tank, gravel, decorations, and filters. Never use soap or detergents to clean your tank. Using soaps or detergents can seriously injure and damage your tank inhabitants. Simply wash your tank and equipment with hot water. Use a sponge or clean washcloth and scrub the inside of your tank. Then hose it down to rid your tank of any impurities. Wash and soak your aquarium gravel or sand in a bucket. Use a pasta strainer to separate the dirtied water from the gravel. Wash and massage your filter’s cartridges under the tap or in a bucket. This is very important, especially if you’re using a carbon filter. Massaging or rubbing the filter activates the carbon inside the cartridge. Wash all decorations in clean water. 3. Set up your aquarium. This means putting your tank on its stand, filling the tank with gravel, arranging your decorations and airstones, and setting up the lighting and heating for your aquarium. If you are using an undergravel filter, place the bottom plates into your tank and attach all necessary tubes, airline, gang valves, and air pumps before adding your gravel. Don’t plug in your filter. Set it up and place it in the correct position but don’t turn it on until you have water in the tank. Having it on without water can damage your filter. 4. Add water to your freshwater aquarium. It’s vital you treat your water with conditioner to remove chlorine and chloramine. You can find water conditioners at your local pet store with instructions on how much to add depending on how big of a tank you have. Don’t fill the tank with water until you are sure of your aquarium’s layout. It can get quite messy if you stick your hand in a full tank to move things around. Place a plate over your gravel to avoid messing up your tank layout. Pour water directly onto the plate so the pressure of a stream of water won’t make a hole in your gravel or move your decorations around. Remove the place once your tank is full. 5. Turn on your aquarium’s filter, lights, and heater. This will begin your tank’s nitrogen cycle. Ensure your tank is safe electrically before turning or plugging everything in. A power cord in the wrong place can cause serious injury to you. 6. Wait a few days before adding fish to your tank. The nitrogen cycle takes a few days for it to completely stabilize. You might notice your tank becoming cloudy which means the cycle is kicking in. You can add some hardy fish like feeder goldfish to your tank to speed up the nitrogen cycle. However, don’t expect the fish to survive, as the harsh conditions of a new aquarium can be quite stressful and inhospitable. Use a nitrate testing kit to ensure your aquarium is at its best quality before adding your fish. ## Set up a saltwater aquarium 1. Gather all the equipment needed for your aquarium. Before buying your fish, you need to prepare the aquarium. A typical saltwater aquarium needs: 2. Clean your tank, decorations, and filters. Never use soap or detergents to clean your tank. Using soaps or detergents can seriously injure and damage your tank inhabitants. Simply wash your tank and equipment with hot water. Use a sponge or clean washcloth and scrub the inside of your tank. Then hose it down to rid your tank of any impurities. Wash and massage your filter’s cartridges under the tap or in a bucket. This is very important, especially if you’re using a carbon filter. Massaging or rubbing the filter activates the carbon inside the cartridge. Wash all decorations in clean water. Your substrate will be cleaned after your aquarium is set up. 3. Set up your aquarium. This means putting your tank on its stand, arranging your power heads, and setting up the lighting and heating for your aquarium. If you are adding a live rock, do not add substrate or decorations to your tank. You must cure your live rock before you can do this. Don’t plug in your filter. Set it up and place it in the correct position but don’t turn it on until you have water in the tank. Having it on without water can damage your filter. 4. Add saltwater to your aquarium. The saltwater mix you purchased should have detailed instructions on how to prepare your saltwater. Generally, you will be mixing room temperature water with the salt mix in a bucket or several buckets. If you don’t have enough buckets, you will need to prepare your water in parts or mix the salt right in the tank. Check your salt levels with your refractometer. Typically, the specific gravity reading should be between 1.021 and 1.024 depending on the temperature of your water. Measuring the specific gravity of your saltwater means measuring the density of your water since adding salt to water increases the density of water. 5. Cure your live rock. If you have FOWLR tank, you will need to start the process of curing your live rock, which could take up to 2 months to complete. To begin the process: 6. Prepare your substrate before adding it to your tank. Before adding any substrate to your tank, you will need to prepare a bucket of saltwater to help clean it. Add your substrate into the bucket and stir. This allows the dust and dirt from your substrate to rise for you to siphon out with your aquarium vacuum. Use a cup or ladle to add your clean substrate to the tank. You will need to drain more water out of your aquarium to accommodate the addition of your substrate and any decorations. 7. Wait a few days before adding fish to your aquarium. Thoroughly check your aquarium’s water salinity, pH, ammonia, nitrate, and hardness levels using your test kits before adding any fish. The ideal readings for a saltwater aquarium with a live rock are:
5
What happened to Cannibal the dog after he died?
And suddenly, a great peace washed over the newly deceased dog. He had never felt so good in his life. He awoke in a beautiful meadow with wild flowers and a bubbling creek. "Cannibal! What kind of name is that?" He looked to the left. It was his mother! She came up to him and licked his face. He was overjoyed. He had never expected to see her again, but there she was! He felt love only a mother could give. He was happy. "Come on, my sweet baby, you must be hungry." said his mother. Cannibal was excited! "This is Heaven, isn't it?" He asked. "It is, my sweet baby, it is" said his mother. "It's wonderful." "Well of course it is! It's Heaven! Now follow me!" Cannibal went with his mother. They came across beautiful white dog bowls that smelled better than anything he had smelled before (and he had sniffed his owner's butt!) and what was in them? A gigantic Rib-Eye steak, cooked medium rare (his favorite!), waiting to be eaten by the bestest of boys, who are now in eternal peace.
5
What should I say to a CEO of an automotive company if he asks me to run a marketing campaign for his company?
Run (and run fast) - here are just a few points to consider: * That's a very unorthodox task for somebody still in the interviewing stage. * How you going to present a solution you aren't familiar with? * Since you aren't an employee of said company yet you have no grounds to represent them or even hustle their products. * You aren't on their payroll yet so why should you waste your time looking for customers? * There are a bunch of legal issues arising from such a 'task' (think NDA etc..). * How will your potential employer determine if your task has been carried out successfully? * Any CEO/CTO or even higher management of any automotive company will NOT engage in such a conversation with a random stranger. * Such an unprofessional approach is extremely disrespectful of the prospective customer's time. These are all major red flags and should lead any mentally sane person to the conclusion that the person asked for such tasks is unreasonable and has no clue about business in general. Additionally - what kind of impression do you think they will have of you or your potential, future employer considering the above mentioned points? Thank them for their time and continue applying elsewhere because this company is a nut-house.
5
What does the shebang #! do in a python script?
In order to run the python script, we need to tell the shell three things: * That the file is a script * Which interpreter we want to execute the script * The path of said interpreter The shebang ```#!``` accomplishes (1.). The shebang begins with a ```#``` because the ```#``` character is a comment marker in many scripting languages. The contents of the shebang line are therefore automatically ignored by the interpreter. The ```env``` command accomplishes (2.) and (3.). To quote "grawity," > A common use of the ```env``` command is to launch interpreters, by making use of the fact that env will search $PATH for the command it is told to launch. Since the shebang line requires an absolute path to be specified, and since the location of various interpreters (perl, bash, python) may vary a lot, it is common to use: ```#!/usr/bin/env perl``` instead of trying to guess whether it is /bin/perl, /usr/bin/perl, /usr/local/bin/perl, /usr/local/pkg/perl, /fileserver/usr/bin/perl, or /home/MrDaniel/usr/bin/perl on the user's system... > On the other hand, env is almost always in /usr/bin/env. (Except in cases when it isn't; some systems might use /bin/env, but that's a fairly rare occassion and only happens on non-Linux systems.)
5
What does CO2 taste like?
CO2 tastes good! Carbonated water is actually a weak carbonic acid solution; this is what you taste. It's like "salt and pepper", but for water. Slightly acidic water is usually popular, hence lemon juice is sometimes used to taint a jug of water in times when no carbonated water is available. Carbonated water releases CO2 bubbles for many minutes after pressure is released (dissolved carbonic acid reforming), which is an important presentation effect that other gases do not generally have. In many countries the local water supply is slightly alkaline (due to limestone rock being very common), and this can leave a bad after-taste, and make food in your mouth taste soapy. The addition of weak acids to water helps with neutralising this effect. Around the world, some lucky towns have natural springs with effervescent water (carbonated water), and man-made carbonated water is just imitating this. In history people have often travelled great distances to try effervescent water, so its popularity is well recorded. Nitrogen is used for water pressurisation in brewing and cooking as it leaves little or no taste, and generally does not form other chemical compounds. It's used mainly when bubbles are required, but not an acidic taste. Oxygen is unsuitable for water pressurisation as very little can be dissolved at normal soda pressures, and it has no taste, but may readily form unwanted chemical compounds. In the 18th century, Joseph Priestley was the first person to document this manufacturing discovery. He noted precisely that it tasted good, and that it was similar to the German Selters water. He was discovering "airs" (gases), and uniquely identified quite a few different gases. CO2 was the only one he listed as tasting good. His cheap source of CO2 was the fermenting grains from the nearby brewery.
5
How can I keep my clothes easily accessible and less messy?
To keep you clothes easily accessible and less messy, one option is getting an IVAR side panel from IKEA. Lean it against a wall at a slight angle and put these “limbo” clothes over the horizontal bars. It comes in different sizes, and stands almost entirely flat against the wall if you don't use it. If you want it hidden, it usually fits behind a door pretty well. In addition, it will also look rather unique compared to most people’s clothes-chair solution.
5
What are the pros and cons of implementing instant replay in football?
There are a few fundamental considerations: * Uncertainty is a part of the game. The referee and linesmen are the arbiters of the action. Instant replay would limit their authority. * Football is global. Many places do not have access to the technology necessary to implement instant replay. * Football is a fast-paced game with few opportunities for stoppage. Instant replay would unnecessarily slow the pace. In 2008, FiFA President Sepp Blatter said: "Let it be as it is and let's leave [football] with errors. The television companies will have the right to say [the referee] was right or wrong, but still the referee makes the decision – a man, not a machine." Blatter and others at FIFA have repeatedly argued against using instant replay. But lately, FIFA has begun to come around on the idea. At FIFA's Congress in São Paulo prior to the 2014 World Cup, Blatter proposed allowing managers 2 challenges per game, much like the NFL handles challenges today. Although it's not quite "instant replay," in 2012 FIFA approved two different goal-line technologies to improve referee accuracy: "Hawk-Eye" -- which uses visual triangulation to determine ball location -- and "GoalRef" -- which uses a microchip in the ball and magnetic sensors within goalposts. (Many say FIFA approved the technologies in response to Frank Lampard's snubbed "goal" against Germany in the 2010 World Cup.) In 2013, FIFA announced it would use GoalControl, a German competitor to Hawk-Eye, at the Confederations Cup, basically a rehearsal for the World Cup. After a successful run at that tournament, FIFA announced it would implement GoalControl at the 2014 World Cup. The Guardian provides a pretty helpful FAQ on the technology. FIFA may choose to implement further changes to approved goal-line technology and referee rules when it meets again after the World Cup.
5
Everyone needs to use a car from time to time, but gas can be expensive. Driving more economically can save you money and keep your car’s parts from wearing quickly. By avoiding aggressive driving, managing gears and electronics, and performing regular maintenance, you can drive more economically no matter where you’re going. ## Avoid aggressive drive 1. Brake in a controlled manner. Braking quickly makes your car lose any forward momentum you’ve built up while driving. By braking gently and gradually, you may find that a stop light changes to green during your gradual approach, and you don’t need to stop completely at all. This slow and steady approach saves you fuel. 2. Accelerate smoothly. Taking off from a full stop and accelerating quickly requires your car move through progressive gears quickly. This uses a lot of gas. Accelerating slowly and more steadily will require less of your car and save you money. 3. Minimize distractions. Whether you’re distracted by a phone call, music or your kids, distracted driving can cause you to brake abruptly and accelerate quickly. This burns lots of gas and is hard on your car. It can also make you more prone to a costly accident. Try to focus on the task at hand while driving and sideline loud music and phone interruptions. Distracted driving is more than just bad economics. It’s also dangerous. Take the safety of yourself and your passengers into account when you drive by giving the road your full attention. ## Manage gear and electronics 1. Use air conditioning wisely. At low speeds, using your air conditioning increases fuel consumption. Save your air conditioner for driving at higher speeds or roll your windows down to get a little air in a more economic way. 2. Cut down on electronics. Your car’s electronics, such as the headlights and window defrosters, require energy to run just as your car does. Turn off electronics when you aren’t using them to drive more economically. If certain electronic elements come on automatically when you start your car, see if you can disable those settings. 3. Use your gears effectively. Driving in a higher gear when appropriate can reduce fuel consumption. For example, if you’re driving on a flat road, you may be able to drive in a higher gear than if you’re driving uphill. ## Perform regular maintenance 1. Check your t
Everyone needs to use a car from time to time, but gas can be expensive. Driving more economically can save you money and keep your car’s parts from wearing quickly. By avoiding aggressive driving, managing gears and electronics, and performing regular maintenance, you can drive more economically no matter where you’re going. ## Avoid aggressive drive 1. Brake in a controlled manner. Braking quickly makes your car lose any forward momentum you’ve built up while driving. By braking gently and gradually, you may find that a stop light changes to green during your gradual approach, and you don’t need to stop completely at all. This slow and steady approach saves you fuel. 2. Accelerate smoothly. Taking off from a full stop and accelerating quickly requires your car move through progressive gears quickly. This uses a lot of gas. Accelerating slowly and more steadily will require less of your car and save you money. 3. Minimize distractions. Whether you’re distracted by a phone call, music or your kids, distracted driving can cause you to brake abruptly and accelerate quickly. This burns lots of gas and is hard on your car. It can also make you more prone to a costly accident. Try to focus on the task at hand while driving and sideline loud music and phone interruptions. Distracted driving is more than just bad economics. It’s also dangerous. Take the safety of yourself and your passengers into account when you drive by giving the road your full attention. ## Manage gear and electronics 1. Use air conditioning wisely. At low speeds, using your air conditioning increases fuel consumption. Save your air conditioner for driving at higher speeds or roll your windows down to get a little air in a more economic way. 2. Cut down on electronics. Your car’s electronics, such as the headlights and window defrosters, require energy to run just as your car does. Turn off electronics when you aren’t using them to drive more economically. If certain electronic elements come on automatically when you start your car, see if you can disable those settings. 3. Use your gears effectively. Driving in a higher gear when appropriate can reduce fuel consumption and be more efficient for your car’s engine. To that end, avoid changing through every intermediate gear as you drive. Skipping gears keeps engine speed and fuel consumption low during acceleration. While this technique only applies to manual vehicles, it can save you gas money and help you drive more efficiently. Several online tutorials can teach you to do this safely if you’re new to the technique. ## Perform routine maintenance 1. Check your tire pressure regularly. Keeping your tires at the high end of the recommended tire-pressure range creates less resistance as you drive. This saves you fuel and money. You might also consider having your tire alignment checked to ensure your car is running straight and efficiently. 2. Use the right specification of engine oil. Providing your car with the specific engine oil it requires can decrease engine friction. This will help your car function most efficiently, saving you fuel and money. You can find out what particular oil your car requires by reading the owner’s manual. 3. Get your car serviced regularly. Take your car to a good local mechanic to have it examined. Getting your car serviced regularly keeps all of its parts in good working order. When all parts of your car are clean and working optimally, your car will perform its best. ## Plan your trip 1. Pack light. Bringing extra luggage or hauling large items requires more gas to get your car from place to place. Drive more economically by managing the load on your vehicle. 2. Map your journey. Getting lost certainly won’t do anything for your fuel economy. Plan your trip ahead of time if you’re going somewhere unfamiliar. Bringing a phone with a mapping app or GPS can make your driving more efficient. 3. Carpool when possible. Carpooling saves gas and shares the burden of driving. Organize a carpool with a friend to places you visit frequently, such as work or school, to cut down on costs. You’ll also save your car from more wear and tear. 4. Combine errands. Rather than making lots of short trips, try to combine errands to save gas. This requires your car to start “cold” less frequently, which saves you fuel and money. It can be helpful to plan out the errands you have to do in a given week, so you can see what can be combined into one trip.
5
What is the best way to avoid SQL injection attacks in PHP?
The correct way to avoid SQL injection attacks, no matter which database you use, is to separate the data from SQL, so that data stays data and will never be interpreted as commands by the SQL parser. It is possible to create an SQL statement with correctly formatted data parts, but if you don't fully understand the details, you should always use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL. You basically have two options to achieve this: 1. Using PDO (for any supported database driver): ``` $stmt = $pdo->prepare('SELECT * FROM employees WHERE name = :name'); $stmt->execute([ 'name' => $name ]); foreach ($stmt as $row) { // Do something with $row } ``` 2. Using MySQLi (for MySQL): Since PHP 8.2+ we can make use of execute_query() which prepares, binds parameters, and executes SQL statement in one method: ``` $result = $dbConnection->execute_query('SELECT * FROM employees WHERE name = ?', [$name]); while ($row = $result->fetch_assoc()) { // Do something with $row } ``` Up to PHP8.1: ``` $stmt = $dbConnection->prepare('SELECT * FROM employees WHERE name = ?'); $stmt->bind_param('s', $name); // 's' specifies the variable type => 'string' $stmt->execute(); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()) { // Do something with $row } ``` If you're connecting to a database other than MySQL, there is a driver-specific second option that you can refer to (for example, pg_prepare() and pg_execute() for PostgreSQL). PDO is the universal option.
5
Halflings were originally called hobbits prior to a legal challenge. According to Gary Gygax himself, it was due to a legal claim on "hobbit" by a company who purchased the merchandising rights on Tolkien's works in 1976: TSR was served with papers threatening damages to the tune of half a mil by the Saul Zantes (sp?) division of Elan Merchandising on behalf of the tolkien Estate. The main objection was to the boardgame we were publishing, The Battle of Five Armies. The author of that game had given us a letter from his attorney claiming the work was grandfathered because it was published after the copyrights for JRRT's works had lapsed and before any renewals were made. The action also demanded we remove balrog, dragon, dwarf, elf, ent, goblin, hobbit, orc, and warg from the D&D game. Although only balrog and warg were unique names we agreed to hobbit as well, kept the rest, of course. The boardgame was dumped, and thus the suit was settled out of court at that. Halflings were originally called "hobbits" in the Dungeons & Dragons box set first released in 1974. Later printings changed this to "halfling". According to The Acaeum, this change occurred between the fifth printing (Dec 1975 - Apr 1976) and sixth printing (1977), with the six printing being marked the Original Collector's Edition. However, Tim Kask has said that box sets were generally thrown together with whichever printings of the books were on hand, so the distinctions between printings are inexact. The Acaeum notes at least one box set shipped having the revised booklets but no Original Collector's Edition mark. Due to an oversight, a single reference to "hobbit" remained on page 6 of Men & Magic, which was fixed in the 2013 Deluxe reprint and PDF copies. According to Wikipedia, J.R.R. Tolkien's estate sued TSR for trademark infringement in 1978. The suit was settled out of court, with TSR agreeing to change the name "hob
Halflings were originally called hobbits prior to a legal challenge. According to Gary Gygax himself, it was due to a legal claim on "hobbit" by a company who purchased the merchandising rights on Tolkien's works in 1976: TSR was served with papers threatening damages to the tune of half a mil by the Saul Zantes (sp?) division of Elan Merchandising on behalf of the tolkien Estate. The main objection was to the boardgame we were publishing, The Battle of Five Armies. The author of that game had given us a letter from his attorney claiming the work was grandfathered because it was published after the copyrights for JRRT's works had lapsed and before any renewals were made. The action also demanded we remove balrog, dragon, dwarf, elf, ent, goblin, hobbit, orc, and warg from the D&D game. Although only balrog and warg were unique names we agreed to hobbit as well, kept the rest, of course. The boardgame was dumped, and thus the suit was settled out of court at that. Halflings were originally called "hobbits" in the Dungeons & Dragons box set first released in 1974. Later printings changed this to "halfling". According to The Acaeum, this change occurred between the fifth printing (Dec 1975 - Apr 1976) and sixth printing (1977), with the six printing being marked the Original Collector's Edition. However, Tim Kask has said that box sets were generally thrown together with whichever printings of the books were on hand, so the distinctions between printings are inexact. The Acaeum notes at least one box set shipped having the revised booklets but no Original Collector's Edition mark. Due to an oversight, a single reference to "hobbit" remained on page 6 of Men & Magic, which was fixed in the 2013 Deluxe reprint and PDF copies. According to Wikipedia, J.R.R. Tolkien sold the film, stage, and merchandising rights to The Hobbit and Lord of the Rings to United Artists in 1968, who sold them in turn to Saul Zaentz in 1976. Zaents would go on to produce the 1978 Lord of the Rings animated movie.
5
PHP If you don't know enough about the array (you're not sure whether the first key is foo or bar) then the array might well also be, maybe, empty. So it would be best to check, especially if there is the chance that the returned value might be the boolean FALSE: ```$value = empty($arr) ? $default : reset($arr); ``` The above code uses ```reset``` and so has side effects (it resets the internal pointer of the array), so you might prefer using ```array_slice``` to quickly access a copy of the first element of the array: ```$value = $default; foreach(array_slice($arr, 0, 1) as $value); ``` Assuming you want to get both the key and the value separately, you need to add the fourth parameter to ```array_slice```: ```foreach(array_slice($arr, 0, 1, true) as $key => $value); ``` To get the first item as a pair (```key => value```): ```$item = array_slice($arr, 0, 1, true); ``` Simple modification to get the last item, key and value separately: ```foreach(array_slice($arr, -1, 1, true) as $key => $value); ``` performance If the array is not really big, you don't actually need ```array_slice``` and can rather get a copy of the whole keys array, then get the first item: ```$key = count($arr) ? array_keys($arr)[0] : null; ``` If you have a very big array, though, the call to ```array_keys``` will require significant time and memory more than ```array_slice``` (both functions walk the array, but the latter terminates as soon as it has gathered the required number of items - which is one). A notable exception is when you have the first key which points to a very large and convoluted object. In that case ```array_slice``` will duplicate that first large object, while ```array_keys``` will only grab the keys. PHP 7.3+ PHP 7.3 onwards implements ```array_key_first()``` as well as ```array_key_last()```. These are explicitly provided to access the first and last key of an array. ```$key = array_key_first($arr); ``` ```$value = array_key_last($arr); ```
PHP If you don't know enough about the array (you're not sure whether the first key is foo or bar) then the array might well also be, maybe, empty. So it would be best to check, especially if there is the chance that the returned value might be the boolean FALSE: ```$value = empty($arr) ? $default : reset($arr); ``` The above code uses ```reset``` and so has side effects (it resets the internal pointer of the array), so you might prefer using ```array_slice``` to quickly access a copy of the first element of the array: ```$value = $default; foreach(array_slice($arr, 0, 1) as $value); ``` Assuming you want to get both the key and the value separately, you need to add the fourth parameter to ```array_slice```: ```foreach(array_slice($arr, 0, 1, true) as $key => $value); ``` To get the first item as a pair (```key => value```): ```$item = array_slice($arr, 0, 1, true); ``` Simple modification to get the last item, key and value separately: ```foreach(array_slice($arr, -1, 1, true) as $key => $value); ``` performance If the array is not really big, you don't actually need ```array_slice``` and can rather get a copy of the whole keys array, then get the first item: ```$key = count($arr) ? array_keys($arr)[0] : null; ``` If you have a very big array, though, the call to ```array_keys``` will require significant time and memory more than ```array_slice``` (both functions walk the array, but the latter terminates as soon as it has gathered the required number of items - which is one). A notable exception is when you have the first key which points to a very large and convoluted object. In that case ```array_slice``` will duplicate that first large object, while ```array_keys``` will only grab the keys. PHP 7.3+ PHP 7.3 onwards implements ```array_key_first()``` as well as ```array_key_last()```. These are explicitly provided to access first and last keys efficiently without resetting the array's internal state as a side effect. So since PHP 7.3 the first value of ```$array``` may be accessed with ```$array[array_key_first($array)]; ``` You still had better check that the array is not empty though, or you will get an error: ```$firstKey = array_key_first($array); if (null === $firstKey) { $value = "Array is empty"; // An error should be handled here } else { $value = $array[$firstKey]; } ```
5
What is the difference between convolution and correlation?
Convolution is correlation with the filter rotated 180 degrees. This makes no difference, if the filter is symmetric, like a Gaussian, or a Laplacian. But it makes a whole lot of difference, when the filter is not symmetric, like a derivative. The reason we need convolution is that it is associative, while correlation, in general, is not. To see why this is true, remember that convolution is multiplication in the frequency domain, which is obviously associative. On the other hand, correlation in the frequency domain is multiplication by the complex conjugate, which is not associative. The associativity of convolution is what allows you to "pre-convolve" the filters, so that you only need to convolve the image with a single filter. For example, let's say you have an image $f$, which you need to convolve with $g$ and then with $h$. $f * g * h = f * (g * h)$. That means you can convolve $g$ and $h$ first into a single filter, and then convolve $f$ with it. This is useful, if you need to convolve many images with $g$ and $h$. You can pre-compute $k = g * h$, and then reuse $k$ multple times. So if you are doing template matching, i. e. looking for a single template, correlation is sufficient. But if you need to use multiple filters in succession, and you need to perform this operation on multiple images, it makes sense to convolve the multiple filters into a single filter ahead of time.
5
What do you think about on a daily basis on your down time at work?
Hannah, You really want to know what I think about on a daily basis on my down time at work? Do you really want to know what goes on in the inner workings of my mind while you're not around? Well. Here it goes. My mind is ravaged with thoughts of what my life would be like without you and I don't like it. I'm too young to know many things for certain, but I do know that if I were to have to live my life without you in it, it would in no way, shape, or form be as fulfilling as it is now. You bring me the most unimaginable joy whenever I see your face. There are times where I feel like we could talk all night about anything and I wouldn't care how tired I was in the morning for work. Your work ethic and drive to be the best you can be is inspiring. There have been many times where I have found myself wishing for the same work ethic. But what really seals the deal is your compassion and empathy towards others. You want everyone to have the same opportunities and care in life that you have received and that has spurred me on to be more giving with my time and money towards causes that need it. I cannot wait to spend the rest of my days with you. You are beautiful beyond measure both on the inside and outside. Sincerely, Ryan
5
At the moment, 1990s-themed parties are hugely popular and can be immensely fun if you show up in the right outfit. Start by doing some research into popular celebrities and film or TV characters from the decade to get a sense for the fashions of the 90s. Then decide whether you want to copy an iconic look or riff off a popular trend. Choose one of the decade’s overarching trends and try to emulate the trend’s color palette and overall silhouettes in your outfit. Once you’re dressed the part, “party like it’s 1999”! ## Recreate a 90s grunge look 1. Opt for drab, slouchy clothes. Create an outfit made up of dark, murky colors and oversized garments. Try pairing baggy ripped jeans with a slouchy striped sweater in drab hues. Or throw an oversized, boxy leather jacket over a lived-in t-shirt featuring your favorite 90s grunge band. Look to Kurt Cobain for grunge inspiration. You could also try a slouchy top half with an acid-wash miniskirt and shredded tights for a more girly take on grunge. Finish off your look with long stringy hair and add some red eye makeup under your eyes to get that exhausted grunge appearance. 2. Mix in satin, lace, and floral prints for a romantic grunge look. Try a more glamorous take on grunge by assembling an outfit inspired by Courtney Love. Start with a feminine piece like a lace-trimmed satin slip dress or a cotton floral-printed dress. Then layer grunge elements over it. Drape an oversized cardigan or plaid flannel shirt over your dress and accessorize with chokers and chains and combat boots. Add smudged black eyeliner and deep red lipstick to complete your look. 3. Don’t forget to add an oversized plaid flannel shirt to your outfit. These shirts were a staple in 90s grunge. The oversized flannel plaid shirt was a staple in the 90s grunge look. The oversized flannel plaid shirt was a staple in the 90s grunge look. The oversized flannel pla
At the moment, 1990s-themed parties are hugely popular and can be immensely fun if you show up in the right outfit. Start by doing some research into popular celebrities and film or TV characters from the decade to get a sense for the fashions of the 90s. Then decide whether you want to copy an iconic look or riff off a popular trend. Choose one of the decade’s overarching trends and try to emulate the trend’s color palette and overall silhouettes in your outfit. Once you’re dressed the part, “party like it’s 1999”! ## Recreate a 90s grunge look 1. Opt for drab, slouchy clothes. Create an outfit made up of dark, murky colors and oversized garments. Try pairing baggy ripped jeans with a slouchy striped sweater in drab hues. Or throw an oversized, boxy leather jacket over a lived-in t-shirt featuring your favorite 90s grunge band. Look to Kurt Cobain for grunge inspiration. You could also try a slouchy top half with an acid-wash miniskirt and shredded tights for a more girly take on grunge. Finish off your look with long stringy hair and add some red eye makeup under your eyes to get that exhausted grunge appearance. 2. Mix in satin, lace, and floral prints for a romantic grunge look. Try a more glamorous take on grunge by assembling an outfit inspired by Courtney Love. Start with a feminine piece like a lace-trimmed satin slip dress or a cotton floral-printed dress. Then layer grunge elements over it. Drape an oversized cardigan or plaid flannel shirt over your dress and accessorize with chokers and chains and combat boots. Add smudged black eyeliner and deep red lipstick to complete your look. 3. Don’t forget to add an oversized plaid flannel shirt to your outfit. These shirts were a staple in 90s grunge. The oversized flannel plaid button-down can be worn with practically anything. Just be sure to pick one that’s about 3 sizes too big and that features dull, drab colors. Throw your flannel shirt over a lived-in graphic t-shirt or a feminine dress. Or tie it around your waist for a casual, careless look. 4. Incorporate acid-wash denim into your look. Opt for light- or medium-wash hues and acid or stonewashed textures. Try using it sparingly with 1 garment, like an oversized denim jacket or ripped baggy jeans. If you have time to do some DIY-ing, try creating a patchwork denim dress or skirt. If you want to really make an entrance, go all-out with a head-to-toe denim outfit. Acid-wash denim can also be glammed up with silver-toned accessories and more formal silhouettes. Look up the iconic denim outfits worn by Britney Spears and Justin Timberlake to see what’s possible. 5. Finish off your grunge look with a pair of combat boots. Whether you’re wearing baggy bottoms or black tights slip into a pair of combat boots. Aim for shoes in the style of Doc Martens or Timberland. Try a pair of second-hand shoes – the more worn-in, the better. ## Dress like a 90s prep 1. Start with bold plaid suiting. For guys, this means choosing plaid trousers or a boxy plaid sports jacket with roomy trousers. For women, pick a bold-colored tweed or plaid blazer and pleated miniskirt to achieve the schoolgirl look that was prevalent in the 90s. Add over-the-knee white socks and Mary Jane shoes to a plaid miniskirt. For a sassier schoolgirl look, try a white crop top or tied button-down under the blazer to show off your belly button. Model your outfit after the costumes in Clueless or Britney Spears’ “...Baby One More Time” look. You can either recreate one of these iconic costumes or pick out elements to inspire an original outfit. 2. Mix brightly-colored tops, bottoms, and sunglasses. The fashion of the 1990s contained some holdovers from the 1980s, most notably the saturated, fluorescent colors and prints. Work these into your preppy outfit with a color-blocked windbreaker. Or pair a bold-colored top with equally saturated trousers in a clashing color. Accessorize with Oakley-style sunglasses with slim oval or rectangular rims featuring tinted lenses. Play with color combinations like orange and pink, yellow and blue, or red and purple. For a masculine high school prep look, wear an oversized letterman jacket, a pastel-colored polo with a popped collar, and pastel trousers. Alternatively, try creating a more casual and youthful outfit with all of this color, like those worn in Saved By the Bell. 3. Try an oversized button-down and trousers for a take on 90s business casual. Graduate your preppy look to a yuppie one and riff on the decade’s emerging business casual look. Pair pleated trousers with a boxy sports jacket, or choose chinos and an oversized but tucked-in dress shirt with bright vertical stripes. Opt for a black crewneck t-shirt under a boxy sports jacket. Re-watch Friends and pay close attention to the workwear outfits shown. ## Follow 90s urban trend 1. Choose bold and baggy pieces for a hip-hop or R&B-inspired outfit. Artists of the time mixed brightly colored African-influenced prints with high-end sportswear and baggy bottoms and jackets. For a men’s outfit, combine these influences in an all-oversized look. For a women’s outfit, pair baggier pieces with fitted pieces to nail the look while showing off your curves. Get inspired by the outfits worn by girl groups like TLC or Salt-N-Pepa or male soloists like Ice Cube and Tupac Shakur. As a woman, try either pairing a baggy jacket with slim leggings or a crop top with loose-fitting cargo pants. Accessorize with big hoop earrings or a bandana. 2. Choose athletic pieces like track gear and chunky sneakers. Air Jordans were huge at the time, so pick out a pair of flashy, bulky sneakers. Try a muscle tank or a zip-up track jacket with stripes running down the sleeves. Beyond hip-hop artists, quite a few 90s boy bands sported the athletic-inspired outfits. Check out photos of Dream Street for reference. Rep your favorite team with a swishy starter jacket or old sports jersey. Women can get the look by slightly altering the silhouette. Try a high ponytail and a fitted crop top over low-slung track pants and platform sneakers à la Sporty Spice. 3. Top off your outfit with a 90s bucket hat, snapback hat, or scrunchie. Popular 90s headgear crossed the boundaries from hip-hop to preppy, so feel free to experiment. Bucket hats are great for masculine and feminine looks alike. Try a snapback for a more masculine effect or a scrunchie to make your outfit more girly. Tie your hair up in a high ponytail or 2 pigtails with a colorful scrunchie. To get an authentic-looking 90s outfit, pick up a snapback hat from the decade itself. Consider wearing your snapback hat backward with the adjustable strap at your forehead. Choose a classic bucket hat in a solid-color canvas, or go wild with a plaid or fuzzy-textured bucket hat. 4. Accessorize with chains. Try a chain belt slung low on the hips over flared denim. For a more masculine look, wear a thick chain connected to your belt loop and wallet. You can lean towards bling with elaborate gold chains. Or keep your look grungey with heavy silver-toned or gunmetal chains. ## Sport 90s mainstream and high fashion 1. Choose loud prints and graphics to recall casual 90s apparel. In the 90s, practically no print was off-limits. Play around with animal prints, paisley, small florals, plaid, Hawaiian florals, and camouflage. Or throw on a baggy graphic t-shirt featuring your favorite 90s bans or TV show. Skate culture blew up in the 90s. Try a skater-inspired t-shirt and look to characters like Travis in Clueless for ideas. Try camo and animal prints in either natural colors or bold, saturated hues. 2. Wear flares, halter tops, and flashy fabrics to nail the 90s disco revival. Just as the 1990s are being revived in the 2010s, the 1970s were being revived in the 1990s! This revealed itself through halter tops, flared jeans, platform shoes, and materials like sequins and colorful pleather. For women, try a pair of hip-hugging flare jeans with a cropped halter top to get the best of the-90s-does-the-70s fashion. 3. Try a metallic mini-dress for supermodel-inspired evening attire. Before the year 2000 (Y2K), space- and tech-inspired silvery, frosted colors and fabrics were popular. Recreate this look with a shiny silver or frosted pastel dress. Look for one with tank or spaghetti straps and either an empire waist or a shift dress silhouette. Add maribou trim to your dress’ hemline to get even more in the 90s mood. Try pairing pastel platform heels or strappy silver stilettos with your dress. Look at photos of supermodels like Kate Moss and Naomi Campbell, as well as the iconic party dresses worn in Romy and Michele, for inspiration. 4. Accessorize with popular 90s jewelry items like chokers and mood rings. For women, pick out a black plastic stretchy choker to add some 90s sass to your outfit. Slip on a color-changing mood ring to really get in the mood. Piercings were popular during the 90s, so slip on a fake belly-button ring (for ladies) or a small stud or hoop (for guys) if you don’t already have a piercing. Sport a brightly colored and patterned snap bracelet on your wrist. Add a hemp bracelet or choker to a slouchy masculine outfit.
5
Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin. To solve this, instead create a new class "top-
Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin. To solve this, instead create a new class "top-buffer" that adds the standard margin that you need. ```.top-buffer { margin-top:20px; }``` And then use it on the row divs where you need a top margin. ```<div class="row top-buffer"> ...```
5
Why can't Gaia be sent to the L2 point behind Neptune?
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.
5
What's the in-universe explanation for why a gnome is stronger than a goliath in D&D?
D&D is a terrible reality simulator. The problem that you're having here is that, in real life, most people who are 7 feet tall are going to be faster, stronger, and all-around more physically powerful than a person who is 3 feet tall. If you compare two people of similar athleticism, the person who is 4 feet taller is going to be able to physically dominate the other. However, D&D is not a game built to simulate reality. It's a game built to let you play through stories about heroes who fight against a large variety of evil things. It's built to let players build a wide array of kinds of hero, and let them generally be effective at their role, even if the character options they picked wouldn't work in real life. This means that the game will let you build a gnome strongman, if that's the kind of character you want to play. The designers wouldn't want your gnome strongman to be much worse at being a strongman than a character of a different race, so the only racial 'penalty' to being a strongman that you get is that you don't get a racial bonus to Strength. All of this is based on intentional design choices to make as many player archetypes as possible viable. In-universe, they'd explain this just like we would in real life. If a really buff but physically small person wins, say, an arm-wrestling contest with someone pushing 7 feet, we'd be impressed. It would be odd, for sure, but it wouldn't be something impossible. In a world where divine blessings and magic are commonplace, the idea of a strong gnome beating a goliath in a contest of strength becomes less unbelievable, and more possible.
5
I am Fear Lord! Scourge of Humanity, Vanquisher of Captain Pillow, and Grand Ruler of 2/3 of Australia! Bow before me! I write you today on behalf of Consuela! Sc
To whom it may concern, I am Fear Lord! Scourge of Humanity, Vanquisher of Captain Pillow, and Grand Ruler of 2/3 of Australia! Bow before me! I write you today on behalf of Consuela! Scourge of Dust, Vanquisher of Laundry, and Grand Maid of Fear Lord Tower. You shall hire Consuela to do your bidding or you shall hear from Fear Lord! Consuela is the most astute servant that Fear Lord has ever seen. Should my plans include killing the human race, I would spare Consuela for her ability to rid the world of the bodies. Her services are above reproach, any who say otherwise shall incur the wrath of me! Fear Lord! Muahaha! So, puny potential employer, take note of her abilities. She masterfully cleans blood from carpets! She is able to attach laser beams to various animals! She has the magical ability to fold fitted sheets! Consuela is too good for you! Hire her at once. Sincerely, Fear Lord! Scourge of Humanity, Vanquisher of Captain Pillow, and Grand Ruler of 2/3 of Australia! p.s. Bow before me!
5
Most people have heard of Down syndrome. But there are hundreds of other chromosome disorders a child can have, many of which are diagnosed in only a few children, or may even be unique to that child. ## Get information 1. Learn about genetics. Most people have 46 chromosomes, arranged in 23 pairs. One pair is the sex chromosomes, which in males is usually XY and in females XX. The other 22 pairs, known as autosomes, are numbered by size, with chromosome 1 being the biggest. Each chromosome has a longer arm, called the q arm, and a shorter arm, called the p arm. Each arm has bands that are numbered, with the band closest to the middle (centromere) being numbered 11.1. Terminus (shortened to "ter") refers to a tip of a chromosome. A "terminal" chromosome disorder is not fatal; it just involves the terminus. Learn about the types of changes. Nullisomy means that there are zero copies of a chromosome. Deletion/monosomy means that there is only one copy of the chromosome or piece of chromosome. Duplication/trisomy means that there are 3 copies. Tetrasomy and pentasomy refer to 4 and 5 copies, respectively. Translocations are when chromosomes swap material. If it is balanced, this means the same number of copies of material is present, but they are arranged differently - for example they have part of 3q on 2q and part of 2q on 3q, but it all adds up to the same thing. If it is unbalanced, the child has trisomy and/or monosomy for some part of the involved chromosomes. Very often, an unbalanced translocation is inherited from a parent with a balanced translocation, but it can also occur as a new mutation, which is called 'de novo'. For example, they may have part of 2q missing and part of 3q in its place, causing partial monosomy of 2q and partial trisomy of 3q. In an unbalanced translocation, the abnormal chromosome is called the derivative chromosome, and the normal chromosome is called the donor chromosome. 2. Learn about the types of chromosome disorders. Chromosome disorders can be classified by the type of chromosome abnormal
Most people have heard of Down syndrome. But there are hundreds of other chromosome disorders a child can have, many of which are diagnosed in only a few children, or may even be unique to that child. ## Get information 1. Learn about genetics. Most people have 46 chromosomes, arranged in 23 pairs. One pair is the sex chromosomes, which in males is usually XY and in females XX. The other 22 pairs, known as autosomes, are numbered by size, with chromosome 1 being the biggest. Each chromosome has a longer arm, called the q arm, and a shorter arm, called the p arm. Each arm has bands that are numbered, with the band closest to the middle (centromere) being numbered 11.1. Terminus (shortened to "ter") refers to a tip of a chromosome. A "terminal" chromosome disorder is not fatal; it just involves the terminus. Learn about the types of changes. Nullisomy means that there are zero copies of a chromosome. Deletion/monosomy means that there is only one copy of the chromosome or piece of chromosome. Duplication/trisomy means that there are 3 copies. Tetrasomy and pentasomy refer to 4 and 5 copies, respectively. Translocations are when chromosomes swap material. If it is balanced, this means the same number of copies of material is present, but they are arranged differently - for example they have part of 3q on 2q and part of 2q on 3q, but it all adds up to the same thing. If it is unbalanced, the child has trisomy and/or monosomy for some part of the involved chromosomes. Very often, an unbalanced translocation is inherited from a parent with a balanced translocation, but it can also occur as a new mutation, which is called 'de novo'. For example, they may have part of 2q missing and part of 3q in its place, causing partial monosomy of 2q and partial trisomy of 3q. In an unbalanced translocation, the abnormal chromosome is called the derivative chromosome, or der for short. So they may write t(2;3)der(2) to indicate the child has the 2 with chromosome 3 material instead of the 3 with chromosome 2 material. 2. Find medical information on your child's condition. There may not be much out there, but find what you can, because it can give you an idea what to expect for your child. Be careful to pay attention to what specific chromosome region is affected, including what bands are involved - even though they both have 22q deletion, kids with 22q11 deletion have a totally different syndrome from 22q13 deletion. Also keep in mind duplication/trisomy versus deletion/monosomy, because these are genetic opposites. When reading medical case studies, remember that they focus on the negative. You're probably not going to hear the doctor talk about how sweet and caring the child is, or how much their parents feel lucky for knowing them, because it's not medically relevant. You will learn about some of the health problems your kid could face. 3. See if parents have written about your child's condition. Depending on how rare the condition is, there may be other parents out there who have written about what it is like to raise a child who has it. 4. Look for adults with your child's condition. Many adults with genetic disabilities are able to use computers when they become adults. Do any of them have blogs or social media accounts? They may be able to offer good advice. Here are some benefits of learning from adults with disabilities: * They can tell you about the parenting strategies that did and didn't help. They may be able to offer detailed advice about your child. Watching them can help you envision what your child's life will be like someday. ## Cop 1. Don't assume the worst. Many doctors, when they don't know the prognosis for a condition, will act like it's more severe than it really is. Even parents of kids with very mild chromosome disorders have been told their child will never walk or talk and/or will die in infancy. If your child has a rare syndrome, take dire prognoses with a grain of salt. 2. Recognize that infancy is the worst time. For many chromosomal conditions, the first year or two of life are the hardest, as caregivers and healthcare providers try to figure out the child's needs. It won't always be this bad, and it's likely to get easier. If you've been told that your child may die, recognize that extreme early death usually happens in the first 3 years of life, or not at all. If your child is fine at age 4, they'll probably be fine at age 24 and age 44. 3. Give yourself time to process. You may feel a range of emotions as you realize that your child's life will look different than you thought it would. This is normal. Don't expect yourself to adjust immediately. 4. Tell other people how they can support you. People around you may want to help, but not know what they can do. Let them know what your family needs, and give them the opportunity to help. "Between all the doctor appointments, we barely have time to cook. It would be really nice to have someone prepare a meal or maybe invite us for dinner once in a while." "We could really use a babysitter on weekends." "We're so busy for with the baby that the kids can feel left out. If they could go to your house to play with your kids sometimes, it might help cheer them up." "I'm really worried about the upcoming surgery. My wife can't be there due to her conference. It would really help to have someone there with me." 5. Make peace with the fact that life will be different. Your child is going to learn differently, behave differently, and show you how much they love you differently. Sometimes it will be harder, but there will also be beautiful parts. Remember that not every quirk is a deficit. Some differences are positives, and others are neither good nor bad. It's okay for your child to be unique. 6. Take time for yourself. You can't pour from an empty cup, and you can't help your child much if you're physically and emotionally exhausted. Try to set aside a little "me time" each day, even if it's only 5 minutes. Ask yourself "What would help me feel better right now?" Could it be a shower? A cup of tea? A hug? Try to get it. ## Move forward 1. Seek out parent support groups. If you can find other parents of kids with the same or overlapping chromosome disorders, great, but even parents of kids with completely different conditions can be a great source of support. UNIQUE has leaflets on many rare conditions. 2. Get therapy early. Early intervention is important. As soon as your child is medically stable, sign them up for physical, occupational and/or speech therapy - even if they are still a tiny baby. This will help them reach their full potential. Although very few kids with chromosome disorders are so affected that they can't walk or talk, most have some degree of cognitive or learning disability. The more they can do for themselves, the less support they will need from others in adulthood. Take notes during therapy and ask for activities that you can do at home. Bad therapists do exist. If a therapist tells you to be cruel or punitive towards your child, find a new therapist. Childhood should be fun, not scary. You don't want your child to gain an anxiety disorder along with their new skills. 3. Make time for your child's siblings, if there are any. At times, they may feel left out, especially if you're busy taking care of your disabled child's needs. Try to spend quality time with each of your children every day. If you don't spend time with a child on one day, try to make up for it during the weekend. 4. Celebrate your child! Your child is different, and they have their own special combination of traits that make them who they are. Love them for who they are, and treasure the good moments. Some conditions, such as Williams syndrome, include positive aspects. Let go of the idea of the child you could have had, and focus on the real child you have right now. They need your love.
5
How can I get the indices of the n highest elements of an array in Python?
If you negate an array, the lowest elements become the highest elements and vice-versa. Therefore, the indices of the `n` highest elements are: ``` (-avgDists).argsort()[:n] ``` Another way to reason about this, as mentioned in the comments, is to observe that the big elements are coming last in the argsort. So, you can read from the tail of the argsort to find the `n` highest elements: ``` avgDists.argsort()[::-1][:n] ``` Both methods are O(n log n) in time complexity, because the argsort call is the dominant term here. But the second approach has a nice advantage: it replaces an O(n) negation of the array with an O(1) slice. If you're working with small arrays inside loops then you may get some performance gains from avoiding that negation, and if you're working with huge arrays then you can save on memory usage because the negation creates a copy of the entire array. Note that these methods do not always give equivalent results: if a stable sort implementation is requested to argsort, e.g. by passing the keyword argument kind='mergesort', then the first strategy will preserve the sorting stability, but the second strategy will break stability (i.e. the positions of equal items will get reversed).
5
What is the camel's back?
That's it... the camels back was finally broken. Author had at last wasted what was the last of James' dwindling patience, and for what? to ship him with the GOD DAMN VILLAIN? everything he's been through, every bit of unwelcome trauma and stress had lead to another overused and boring cliché. he would have preferred his author ship him with a leech than with August, but NO....they HAD to fall in love didn't they? and worse still was that they HAD to have an intense seen before kissing and spending eternity together... just thinking of it made James gag. he wondered what kind of people would actually read this kind of stuff... did those people ACTUALLY believe that He and August belonged together? he tolerated all the other stuff; the love triangles, the betrayals, the disapprovals and the unforeseen deaths of beloved fellow characters... but enemies to lovers was not the genre he wanted to exist in. He refused to play along, He was nobodies puppet and he would bow to no one... not even almighty Author. he knew that his story would have him go to August, to fight her for the final time before he confessed to always having loved her. This time he would hold the pen... he would write his own ending and live a life he DESERVED....
5
What is the difference between list.sort() and sorted()?
Python provides two ways to sort a list, the built-in list method `list.sort()` and the built-in function `sorted()`. The primary difference between the two is that list.sort() will sort the list in-place, mutating its indexes and returning None, whereas sorted() will return a new sorted list leaving the original list unchanged. Another difference is that sorted() accepts any iterable while list.sort() is a method of the list class and can only be used with lists. Here is an example of using `list.sort()`: ``` # the list to be sorted x = [2, 3, 1, 5, 6, 4, 8] # sort by list.sort() x.sort() print(x) ``` The output of the above code is ``` [1, 2, 3, 4, 5, 6, 7, 8] ``` Equivalently, you can use `sorted()`: ``` sorted_x = sorted(x) ```
5
What is the counter variable inside the loop called in jinja2?
The counter variable inside the loop is called loop.index in Jinja2. ``` >>> from jinja2 import Template >>> s = "{% for element in elements %}{{loop.index}} {% endfor %}" >>> Template(s).render(elements=["a", "b", "c", "d"]) 1 2 3 4 ``` In addition to `loop.index`, there is also * `loop.index0` (index starting at `0`) * `loop.revindex` (reverse index; ending at `1`) * `loop.revindex0` (reverse index; ending at `0`) etc.
5
> The original IBM PC and later variants used an Intel 8253 or 8254 as a sound chip. The 8253 is a timer circuit, containing three timers able to generate timed interrupts or square-wave output with programmed frequencies. On the PC the third timer's output is, via an amplifier, connected to a simple speaker. As said before, calling a 'simple' timer a sound chip is quite a stretch. Since it's a digital output, no level control is available. Only on or off is possible. At best this results in rather nasty sounding square waves. There is no provision to smooth the signal (beside the inertia of the speaker membrane). Also, the only frequencies that can be selected are those that result from dividing the base frequency (1,193,181.8 Hz) by an integer in the range of 1&ndash;65535. So even when accepting the meager signal quality, only very few notes can be played at correct frequency. Already the basic 440 Hz concert pitch will be off by .5Hz. So whatever is played using the timer will sound off pitch. Music can still sound good if a little off pitch, but only when all notes are off in the same way (*1) - which is not the case with this 'sound chip'. Of course, there are also ways to manipulate the sound even a bit better by manually handling the output - which results in 100% CPU time usage. > Why did users add sound cards such as the Adlib or Sound Blaster. Simply because they wanted sound - or at least music. Not just a beeper. > What was lacking with the original PC sound chip? As said before, it's no sound chip at all. A sound chip will need programmable oscillators for different wave forms and at least some analogue ciruitry to make a smooth, more natural sound. Ofcourse, from an enginering point, the PC's use of a timer was a great improvement over the Apple II, its model and competition, as it allowed the beeping in parallel - not that this feature was used by BIOS or DOS. Last but not least, the PC is an open system. It is made of parts that can be replaced by other parts. If you don't like the beeper, you can replace it with a sound card. > What was lacking with the original PC sound chip that users added sound cards such as the
> The original IBM PC and later variants used an Intel 8253 or 8254 as a sound chip. The 8253 is a timer circuit, containing three timers able to generate timed interrupts or square-wave output with programmed frequencies. On the PC the third timer's output is, via an amplifier, connected to a simple speaker. As said before, calling a 'simple' timer a sound chip is quite a stretch. Since it's a digital output, no level control is available. Only on or off is possible. At best this results in rather nasty sounding square waves. There is no provision to smooth the signal (beside the inertia of the speaker membrane). Also, the only frequencies that can be selected are those that result from dividing the base frequency (1,193,181.8 Hz) by an integer in the range of 1&ndash;65535. So even when accepting the meager signal quality, only very few notes can be played at correct frequency. Already the basic 440 Hz concert pitch will be off by .5Hz. So whatever is played using the timer will sound off pitch. Music can still sound good if a little off pitch, but only when all notes are off in the same way (*1) - which is not the case with this 'sound chip'. Of course, there are also ways to manipulate the sound even a bit better by manually handling the output - which results in 100% CPU time usage. > Why did users add sound cards such as the Adlib or Sound Blaster. Simply because they wanted sound - or at least music. Not just a beeper. > What was lacking with the original PC sound chip? As said before, it's no sound chip at all. A sound chip will need programmable oscillators for different wave forms and at least some analogue ciruitry to make a smooth, more natural sound. Ofcourse, from an enginering point, the PC's use of a timer was a great improvement over the Apple II, its model and competition, as it allowed the beeping in parallel - not that this feature was used by BIOS or DOS. Last but not least, the PC is an open system. It is made to add new/better hardware. So why shoudn't there be a real sound card? Improving the machine is a core feature of the design. Addendum: agtoever added a comment with a great example of what was possible with the direct fiddling with the speaker. Awesome, but less than apealing when compared to even the cheapest form of soundcard, the AdLib of the same time, as used by Monkey Island. Next to zero CPU usage and crisp clear sound. Not to mention easy programming. I'd call that a huge advantage. *1 - The average human decodes frequencies relative to each other. As a result sound is still perceived as good, even if the whole scale is shifted, as long as it's in the same direction and same percentage. Output needs to be way off to be noticed by an average listener. In contrast, if notes are off by a different margin and in different directions, even less trained listeners will notice.
5
###Piloting A crew member who is controlling a helm gains one point of experience for each incoming projectile that is dodged during combat. This includes asteroids, so long as you are in combat at the time. (Note that the dodges do not count while you ship is under the effects of +60% evasion from a cloak.) This can be explicitly trained by finding an enemy that cannot break through your shields, and letting him fire at you. Increasing your dodge chance (i.e. more power to engines) will help this occur quicker, but even with the default chance you can max out the skill eventually. ###Engines Exactly as for piloting, a crew member manning the engines gains one point of XP for each projectile evaded while uncloaked in combat - and so it can be trained in the same way. ###Weapons A crew member who is manning the weapons station gains one point of experience for each weapon that is fired. It doesn't matter whether it hits or misses, or whether it can do damage (e.g. a beam weapon fired at a shield). (Multi-shot weapons such as burst lasers still count as a single fire order and hence a single XP.) This can be trained by firing non-lethal weapons (e.g. ones that do ion damage) repeatedly against a target that cannot damage you. ###Shields A crew member manning the shields station gains one point of experience for each shield "bubble" that is brought back up during combat. It doesn't matter why the shields were down, be that direct enemy fire, ion damage, asteroid strikes, or even manually removing and then restoring power to the shield systems. This can be trained by letting a target that cannot break through all of your shields repeatedly take one layer down. (For fastest results, move your pilot away from the helm, or reduce your engines to 0 power. This will reduce your dodge chance to 0%, ensuring that everything hits your shields.) Note that you used to be able to manually remove power and restore it in combat, to get points, but this has been patched. ###Repair A crew member gains one point of experience for getting the "repair" skill up to 100%. This can be trained by repairing your ship's hull. ###Engineering A crew member gains one point of experience for getting the "engineering" skill
###Piloting A crew member who is controlling a helm gains one point of experience for each incoming projectile that is dodged during combat. This includes asteroids, so long as you are in combat at the time. (Note that the dodges do not count while you ship is under the effects of +60% evasion from a cloak.) This can be explicitly trained by finding an enemy that cannot break through your shields, and letting him fire at you. Increasing your dodge chance (i.e. more power to engines) will help this occur quicker, but even with the default chance you can max out the skill eventually. ###Engines Exactly as for piloting, a crew member manning the engines gains one point of XP for each projectile evaded while uncloaked in combat - and so it can be trained in the same way. ###Weapons A crew member who is manning the weapons station gains one point of experience for each weapon that is fired. It doesn't matter whether it hits or misses, or whether it can do damage (e.g. a beam weapon fired at a shield). (Multi-shot weapons such as burst lasers still count as a single fire order and hence a single XP.) This can be trained by firing non-lethal weapons (e.g. ones that do ion damage) repeatedly against a target that cannot damage you. ###Shields A crew member manning the shields station gains one point of experience for each shield "bubble" that is brought back up during combat. It doesn't matter why the shields were down, be that direct enemy fire, ion damage, asteroid strikes, or even manually removing and then restoring power to the shield systems. This can be trained by letting a target that cannot break through all of your shields repeatedly take one layer down. (For fastest results, move your pilot away from the helm, or reduce your engines to 0 power. This will reduce your dodge chance to 0%, ensuring that everything hits your shields.) Note that you used to be able to manually remove power and restore it in combat, to get points, but this has been patched. ###Repair A crew member gains one point of experience for getting the "finishing blow" when repairing a (sub)system. Note that hull breaches provide no repair experience. There's no specific way to train this as it requires your systems to be damaged. Though you can focus the XP gains by always having the same person run around and repair everything after a battle. ###Combat A crew member gains one point of experience for getting the finishing blow when fighting an enemy crew member or (sub)system. This generally gets trained in "real" situations. However, since XP is gained for taking out systems, a few extra XP can be gained from boarding if one tries to take out the enemy's systems before the crew.
5
What is the best way to create a temporary file in Android?
Here is an example: ``` File outputDir = context.getCacheDir(); // context being the Activity pointer File outputFile = File.createTempFile("prefix", ".extension", outputDir); ``` Explanation: 1. The `getCacheDir()` method returns the directory on the filesystem where your app can create cache files. 2. The `createTempFile()` function creates a temporary file in a given directory.
5
🚨Life Update🚨
🚨Life Update🚨 From next week I’m C-Data-O of Awesome.AI! 🤩 🙏 Radical.AI - will miss you all!
5
You can do stretches, strengthening and breathing exercises to improve your posture. But you also have to become aware of your posture and find a way to interrupt prolonged sitting intervals with brief breaks. A good ergonomic chair is also helpful. ## Musculo-Skeletal Effects of Poor Sitting Posture Poor sitting posture can create muscle imbalances over time. * In general, your front stuctures shorten, with muscles like your hip flexors and pectorals tightening up - pulling you into a ball. Your crunched sitting posture caves your lower ribs down towards your abdomen which prevents the diaphragm from expanding freely. * At the same time the muscles of your back stretch out and weaken, especially in the range where they should be working to maintain your posture. As this posture persists over time, you joints begin to lose normal range of motion as well making it more difficult to assume a good posture. ## Correcting Slumped Sitting Posture Tailor an exercise program to stretch tightened muscles and strengthen weakened muscles. Additionally, you need a method to become aware of your posture and correct it while you are sitting. This is difficult because as you say, your attention is on your work. Exercise programs like Yoga, Tai-Chi and Pilates are good because they all address and make you very aware of your posture, joint alignments, flexibility, core control and breathing. Use Specific Exercises to Correct Muscle Imbalances: * Back, Upper Back and Scapular muscles: Back Extensions strengthen your paraspinals. Use different arm positions (Y, T, W, L) to target your lower traps, mid traps, rhomboids and scapular stabilizors. Learn the feel of retracting your scapulas. You can do these on the floor next to your desk. Or if you prefer not to get on the floor, use resistance bands for reverse flys, wide rows, narrow rows and rotations. Away from work, you can also strengthen these muscles using weights, cables and body weight exercises like inverted rows. * Hip Flexors and Quadriceps: Sit on the floor next to your desk with your legs straight out in front of you. Pull your knees up to your chest and hold.
You can do stretches, strengthening and breathing exercises to improve your posture. But you also have to become aware of your posture and find a way to interrupt prolonged sitting intervals with brief breaks. A good ergonomic chair is also helpful. ## Musculo-Skeletal Effects of Poor Sitting Posture Poor sitting posture can create muscle imbalances over time. * In general, your front stuctures shorten, with muscles like your hip flexors and pectorals tightening up - pulling you into a ball. Your crunched sitting posture caves your lower ribs down towards your abdomen which prevents the diaphragm from expanding freely. * At the same time the muscles of your back stretch out and weaken, especially in the range where they should be working to maintain your posture. As this posture persists over time, you joints begin to lose normal range of motion as well making it more difficult to assume a good posture. ## Correcting Slumped Sitting Posture Tailor an exercise program to stretch tightened muscles and strengthen weakened muscles. Additionally, you need a method to become aware of your posture and correct it while you are sitting. This is difficult because as you say, your attention is on your work. Exercise programs like Yoga, Tai-Chi and Pilates are good because they all address and make you very aware of your posture, joint alignments, flexibility, core control and breathing. Use Specific Exercises to Correct Muscle Imbalances: * Back, Upper Back and Scapular muscles: Back Extensions strengthen your paraspinals. Use different arm positions (Y, T, W, L) to target your lower traps, mid traps, rhomboids and scapular stabilizors. Learn the feel of retracting your scapulas. You can do these on the floor next to your desk. Or if you prefer not to get on the floor, use resistance bands for reverse flys, wide rows, narrow rows and rotations. Away from work, you can also strengthen these muscles using weights, cables and body weight exercises like inverted rows, cable rows, bent over rows, reverse flys etc. And squats are a good for strengthening multiple muscles important to posture. * Core: Plank, Side Plank, Bird Dog and Bridge will stabilize your trunk and spine. * Stretches: - Hip Flexors, Hamstrings, Abs and Pecs. The wall pec stretch stretches the pecs but also contracts the rhomboid and trapezius scapular muscles to help improve the positioning of the shoulder and shoulder blade and is easy to do at work. * Sitting Posture and Breathing Awareness - This sitting posture exercise helps make you aware of your sitting alignment and expanding your diaphragm. Practice a few diaphramatic breaths throughout the day along with this sitting exercise to elongate your spine. Create your ideal short exercise routine that you can do during short breaks during the day. An exercise ball next to your desk can help you target these muscles in just a few minutes: * Lie back over the ball and stretch out your front * Lie face down over the ball and do the Y, W, T, L exercises. And consider using the ball as your desk chair for short periods. ## Remembering your Posture throughout the day: This is the hard part. As your muscle imbalances begin to resolve and your diaphragmatic breathing improves, you’ll find that the slouched posture becomes less comfortable and you will automatically begin to sit better. Until then, use a timed reminder or try tying your posture corrections to tasks that you do at the computer regularly. For example, correct your posture each time you check your email or some other specific link. Turn on your web cam for visual reminders. Keep at it until you feel the improvement. You'll have less problems going forward if you improve your posture. It either gets better - or it gets worse.
5
What is the worst thing that could happen to Alex?
An awful ache appeared as Alex, abused and alone, agonisingly approached annihilation - and an afterlife.
5
What do you do when you find a book titled "I Know Your Secret, Elongated Muskrat"?
I stand there, shocked, unmoving as people scuttle by through the busy streets of New York. Some even give me confused looks. I return the look- the confusion isn’t directed at them though, it’s directed at the small, pamphlet-type book that sits alone on a small bookshelf in this even smaller shop. I stumble in, forgetting exactly what it was I was doing before my eyes had glanced upon this book. As I strode in, I ran for the book, not paying attention to the confused glances of all the shop’s inhabitants. As I pick it up, sweating profusely, I read the title, horrified. *I Know Your Secret, Elongated Muskrat*
5
```git cherry-pick -p``` doesn't exist. What can I do instead?
The core thing you're going to want here is ```git add -p``` (```-p``` is a synonym for ```--patch```). This provides an interactive way to add in content, letting you decide whether each hunk should go in or not, and even letting you manually edit the patch if necessary. To use it in combination with cherry-pick: ```git cherry-pick -n # get your patch, but don't commit (-n = --no-commit) git reset # unstage the changes from the cherry-picked commit git add -p # make all your choices (add the changes you do want) git commit # make the commit! ``` ``git-cherry-pick``` has a ```--no-commit``` option, and you need to do ```git reset```. If you only want to leave a few things out of the commit, you could use ```git reset ...``` to unstage just those files.) You can provide specific paths to ```add -p``` if necessary. If you're starting with a patch you could replace the ```cherry-pick``` with ```apply```. If you really want to ```git cherry-pick -p ``` (that option does not exist), you can use ```git checkout -p ``` That will diff the current commit against the commit you specify, and allow you to apply hunks from that diff individually. This option may be more useful if the commit you're pulling in has merge conflicts in part of the commit you're not interested in. (Note, however, that ```checkout``` differs from ```cherry-pick```: ```checkout``` tries to apply ``````'s contents entirely, while ```cherry-pick``` applies the diff of the specified commit from it's parent. This means that ```checkout``` can apply more than just that commit, which might be more than you want.)
5
```git checkout -f donor-branch # replace bothersome files with tracked versions git checkout receiving-branch # tracked bothersome files disappear git merge donor-branch # merge works``` ```git
Safely remove/overwrite only bothersome files When you want to ```merge```: ```git checkout -f donor-branch # replace bothersome files with tracked versions git checkout receiving-branch # tracked bothersome files disappear git merge donor-branch # merge works ``` When you want to ```pull```: ```git fetch git checkout -f origin/mybranch # replace bothersome files with tracked versions git checkout mybranch # tracked bothersome files disappear git pull origin/mybranch # pull works ``` That's all you need to know to use this. Below is an explanation. Detailed explanation The Bothersome Files that we are going to remove: * exist in the donor branch (for ```git pull```: the upstream branch), * do not exist in the receiving branch, * and are blocking the merge because they are present and untracked in your working directory. ```git merge -f``` and ```git pull -f``` do not exist, but ```git checkout -f``` does. We will use ```git checkout -f``` + ```git checkout``` to track + remove the Bothersome Files, and then your merge can proceed normally. Step 1. This step forcibly replaces untracked Bothersome Files with tracked versions of the donor branch (it also checks out the donor branch, and updates the rest of the working dir). ```git checkout -f donor-branch ``` Step 2. This step removes the Bothersome Files because they they are tracked in our current (donor) branch, and absent in the ```receiving-branch``` we switch to. ```git checkout receiving-branch ``` Step 3. Now that the Bothersome Files are absent, merging in the donor branch will not overwrite any untracked files, so we get no errors. ```git merge donor-branch ```
5
The ability to hold your breath for a long period of time is a much sought-after skill. Maybe you want to last longer underwater while diving or surfing, or maybe you're just looking for an impressive party trick. Whatever the reason, it is actually surprisingly easy to increase the amount of time you can go without breathing, provided you use the right training techniques and follow adequate safety precautions. Read below to find out how. ## Optimize your lung capacity 1. Do exercises to increase your lung capacity. While there is no way to increase your lung size, there are many ways to increase the amount of air your lungs take in, and the efficiency with which they capture oxygen. In particular, a rigorous exercise routine can help to strengthen your lungs and maximize their capacity to hold air. Do plenty of cardio. Incorporating some intense cardio workouts into your weekly routine can do wonders for your lungs. Running, skipping, aerobics and swimming are all great forms of cardiovascular exercise which get the blood pumping and the lungs working hard to supply the body with the oxygen it needs to keep going. Try doing exercising in intense 30 minute bursts, pushing your body to its limits, to achieve the best result. Exercise in water. Exercising in water (swimming, water aerobics, underwater weight training) is also a form of cardio exercise, but the water provides an element of resistance which requires the body to work harder to complete each task. As a result, the lungs need to work harder to supply the body with oxygen, causing their air capacity to increase significantly over time. Work-out at high elevation. At higher elevations, there is less oxygen in the air, meaning your lungs have to work harder to supply the body with oxygen. This is an excellent way to strengthen the lungs, but you must be careful not to train to hard, or you could potentially fall victim to altitude sickness. 2. Lose weight. Any excess baggage reduces your body's efficiency in using oxygen, as there is increased body mass to which your blood must pump oxygen. As a result, many competitive breath holders will attempt to shed any extra pounds in the weeks coming up to a competition. ## Improve your breathing technique 1. Breathe through your nose. Breathing through your nose is much more efficient than breathing through your mouth. When you breathe through your nose, the
The ability to hold your breath for a long period of time is a much sought-after skill. Maybe you want to last longer underwater while diving or surfing, or maybe you're just looking for an impressive party trick. Whatever the reason, it is actually surprisingly easy to increase the amount of time you can go without breathing, provided you use the right training techniques and follow adequate safety precautions. Read below to find out how. ## Optimize your lung capacity 1. Do exercises to increase your lung capacity. While there is no way to increase your lung size, there are many ways to increase the amount of air your lungs take in, and the efficiency with which they capture oxygen. In particular, a rigorous exercise routine can help to strengthen your lungs and maximize their capacity to hold air. Do plenty of cardio. Incorporating some intense cardio workouts into your weekly routine can do wonders for your lungs. Running, skipping, aerobics and swimming are all great forms of cardiovascular exercise which get the blood pumping and the lungs working hard to supply the body with the oxygen it needs to keep going. Try doing exercising in intense 30 minute bursts, pushing your body to its limits, to achieve the best result. Exercise in water. Exercising in water (swimming, water aerobics, underwater weight training) is also a form of cardio exercise, but the water provides an element of resistance which requires the body to work harder to complete each task. As a result, the lungs need to work harder to supply the body with oxygen, causing their air capacity to increase significantly over time. Work-out at high elevation. At higher elevations, there is less oxygen in the air, meaning your lungs have to work harder to supply the body with oxygen. This is an excellent way to strengthen the lungs, but you must be careful not to train to hard, or you could potentially fall victim to altitude sickness. 2. Lose weight. Any excess baggage reduces your body's efficiency in using oxygen, as there is increased body mass to which your blood must pump oxygen. As a result, many competitive breath holders will attempt to shed any extra pounds in the weeks coming up to a competition. This weight loss should be achieved in a strictly healthy way - through exercise and balanced diet - as weakening your body through crash dieting will negatively impact your ability to hold your breath. The world record breath holder, Aleix Segura Vendrell, is reported to have lost weight for 4 months before attempting to beat the world record for holding breath underwater, in an effort to improve his ratio of body volume to lung volume. 3. Quit smoking. The fact that smoking has a negative impact on lung strength and capacity is common knowledge. Quitting can considerably increase your lungs' ability to release carbon dioxide and absorb oxygen, even within a matter of weeks. So if you are trying to strengthen your lungs and increase their capacity, giving up smoking is undoubtedly the first thing on the to-do list. You should also try to avoid second-hand smoke as far as possible, as inhaling someone else's cigarette smoke can have a negative effect on your lungs. 4. Take up a wind or brass instrument. These types of instruments require plenty of lung power, making them a great way to improve lung strength and increase your ability to control your breathing. And aside from that, playing an instrument is a fantastic life skill, which can provide immense personal satisfaction. The flute, clarinet, oboe and saxophone are all good options when it comes to wind instruments, while the trumpet, trombone and tuba are popular brass options. If you have a good voice, singing is another great musical aid to improving lung power. Singing requires immense control of one's breathing, making it an excellent complimentary activity for aspiring breath-holders. ## Train techniques for hold your breath 1. Practice deep breathing. Before holding your breath, inhale and exhale slowly from deep within your diaphragm. By doing this, you're ridding your lungs of low-quality air. Spend five seconds breathing in, then hold the breath for one second, before breathing out for ten seconds. Continue deep breathing for two minutes, and be sure that when you exhale, you push out every last "drop" of air. As you exhale, push your tongue up against your teeth.This forms a valve which helps to control the release of air. Your breath should make a hissing sound as it is released. Deep breathing allows your body to take in excess oxygen, which it can then store in the blood cells. This helps when holding your breath as your body can use the stored oxygen to continue functioning, even when you are not breathing. 2. Purge the CO2 from your lungs. When holding your breath, the pressure you feel in your lungs is not the result of a need to breathe, but rather the result of a build-up of CO2, fighting to be released. This build-up of CO2 becomes increasingly painful as time goes on. To minimize this build-up, it is necessary to purge any pre-existing CO2 from your lungs, before holding your breath. To do this: * Exhale forcefully, pushing as much air out of your lungs as possible. Puff out your cheeks as you do this, and imagine you are trying to blow a toy sailboat across a stretch of water. Once you have exhaled completely, inhale quickly and repeat. Try to keep your body as still as possible while you do this, to avoid expending any of the stored oxygen from the previous step. 3. Take a breath and hold it for one minute and thirty seconds. This is a practice run which will allow your body to adjust to the sensation of going without air. Use a timer to count down the 90 seconds, and don't attempt to hold your breath for any longer just yet. When you inhale, don't breathe in so much that you're about to pop; this creates tension in your body and causes you to expend more energy. Instead, fill your lung capacity to about 80-85% capacity so that you still have room to relax. Once the 90 seconds is up, exhale briefly to rid your lungs of the used air, then take three breaths, inhaling and exhaling fully. This is known as semi-purging. 4. Repeat the process of deep breathing and purging, then hold your breath for two minutes and thirty seconds. Once the first 90 second practice run is up, repeat the deep breathing and purging exercises. Perform each exercise for a duration of one minute and thirty seconds. Once this is done, take a breath and hold it for two minutes and thirty seconds, timing it on a stopwatch. Do not attempt to hold your breath for any longer than this. Once the time is up, exhale to release the used air and take three semi-purge breaths. Follow this with two minutes of deep breathing and a minute and a half of purging. You are now ready to try holding your breath for as long as possible. 5. Splash cold water on your face. At this point, you may decide to splash your face with some cold water before attempting to hold your breath. It has been observed that putting a person's face in contact with cold water triggers bradycardia, or the slowing of the heart rate, which is the first phase of the mammalian diving reflex. However, this step is purely optional. You don't need to actually put your entire head underwater, though. Just splash some cold water on your face right before you hold your breath, or try using a cold, wet washcloth. Don't use an ice pack instead of water, though; the same study suggests that the shock of something too cold triggers other reflexes. Just make sure the water is at a temperature of approximately 70 °F (21 °C) and that the rest of your body is in a relaxed position. 6. Take a breath and hold it for as long as possible. Assume a comfortable seated position and take a deep breath, filling your lungs to about 80-85% of capacity. Hold your breath for as long as possible, staying completely still to avoid expending unnecessary energy and wasting oxygen. It is usually better to have someone else timing your progress, as time will pass more quickly and you will be able to hold your breath for longer if you are not constantly watching the clock. Holding your breath for long periods of time can be painful, and it usually necessary to find a way to distract yourself if you are to successfully achieve your goal. One popular distraction technique is to move through the alphabet from A to Z, thinking of a friend, celebrity or historical figure whose name begins with each letter. Aleix Segura Vendrell, who set a world record for holding his breath underwater for 24 minutes and 3 seconds, is a proponent of this very technique. Don't hold air in your cheeks. This method is meant for an air reserve, which requires "letting go" of the air in your lungs and switching it with the air in your cheeks. This is known as "circular breathing" and can be very difficult to achieve, usually resulting in the breath-holder losing both air reserves. Therefore, it may be best to avoid this method for the time being. 7. Relax every muscle in your body. It is vital that you relax completely and release any tension from your body as you hold your breath. Close your eyes and focus on releasing the tension from each body part in turn, starting with your feet, and moving slowly upwards along your body, all the way up to your neck and head. By doing this, it is possible to significantly lower your heart rate and increase the time you are able to hold your breath for. Concentrate on something that's relaxing to you. When you can't concentrate anymore, distract yourself by doing something with your hands, like counting to 99 with your fingers. Try not to move during any point when holding your breath. When you move, you waste oxygen and that will cut down the time you're able to go without breathing. Stay still. 8. Exhale slowly. When you can't hold your breath anymore, try to avoid exhaling all the air in your lungs in a mad rush. First, exhale about 20% of your air, then inhale again so that oxygen gets to your most critical areas faster. Then you can exhale and inhale completely. 9. Repeat these steps 3-4 times per session. It is not recommended to do this any more, as it could damage your lungs and body. Try one session in the morning and one session at night if you wish. Keep practicing and before you know it, you will be able to hold your breath for several minutes. ## Take the necessary safety precautions 1. Always practice with a partner. It is highly advisable that you practice holding your breath with a partner. The main reason for this is that they can ensure your safety if you happen to pass out (which is fairly common during limit-testing training sessions), preventing you from hurting yourself and taking care of you while you recover your senses. In addition, a partner can help to time your breath-holding sessions, notifying you at each 30 second interval. 2. Practice sitting up, rather than lying down. The best position to practice holding your breath in is sitting upright in a comfortable position, such as on a sofa or armchair. This allows you to expend as little energy as possible while holding your breath. It is not advised that you lie down while holding your breath, as you run the risk of choking on your tongue if you happen to pass out. 3. Do not attempt to do this underwater, unless supervised by a professional. Although the purpose of learning to hold your breath for longer is usually for use underwater, you should never do underwater training alone, without supervision. As mentioned before, it is quite common for people to black out or lose consciousness after holding their breath for prolonged periods, and if this happens underwater it can lead to drowning. Even practicing with a partner can be dangerous, as an untrained eye may be unable to tell the difference between someone who is holding their breath and someone who has passed out. If you do decide to practice with a partner, make sure that you decide on a hand signal which you can give at regular intervals to indicate to your partner that you are okay.
5
What technologies do you think will become obsolete within the next decade?
Given the fast pace of technological advances, it is difficult to predict which technologies will become obsolete over the next decade. Here are a few possibilities: * Flash drives: As wireless communication between all devices becomes easier and faster, the need to use physical drives to transfer data will become relegated to only high-security air-gapped networks. * Passwords: Passwords are increasingly vulnerable to hacking, and alternative authentication methods such as biometric authentication could become more common. * Plastic credit cards: As mobile payment options become more widespread, plastic credit and debit cards could become unnecessary. * Charging cables: Wireless charging is becoming ubiquitous, eliminating the need to carry charging cables. * Human-driven cars: Though autonomous driving has yet to mature, the exponential pace of progress in AI may yield reliable self-driving cars by 2030. Of course, this is just a speculative and incomplete list of technologies that may become obsolete within 10 years. It will certainly be interesting to find out what future technologies hold in store!
5
strong/weak can be thought of in relation to how the compiler, if applicable, handles typing. * Weakly typed means the compiler, if applicable, doesn't enforce correct typing. Without implicit compiler interjection, the instruction will error during run-time. ```"12345" * 1 === 12345 // string * number => number ``` Strongly typed means there is a compiler, and it wants you an explicit cast from string to integer. ```(int) "12345" * 1 === 12345 ``` In either case, some compiler's features can implicitly alter the instruction during compile-time to do conversions for you, if it can determine that is the right thing to do. Thus far, JavaScript can be categorized as Not-Strongly-Typed. That either means it's weakly-typed or un-typed. dynamic/static can be thought of in relation to how the language instructions manipulate types. * Dynamically typed means the value's type is enforced, but the variable simply represents any value of any type. ```x = 12345; // number x = "string"; // string x = { key: "value" }; // object y = 123 + x; // error or implicit conversion must take place. ``` Statically typed means the variable type is strongly enforced, and the value type is less-so enforced. ```int x = 12345; // binds x to the type int x = "string"; // too late, x is an integer - error string y = 123; // error or implicit conversion must take place. ``` Thus far, JavaScript can be categorized as Not-Statically-Typed. Also, it appears to be Dynamically Typed, if typed at all. So we need to see what Typing means. Typed means that the language distinguishes between different types such as string, number, boolean, object, array, null, undefined and so on. Also each operation is bound to specific types. So you cannot divide an integer by a string. ``` 2 / "blah" // produces NaN ``` Untyped means the operation is not bound to specific types. So you can divide an integer by a string. ``` 2 / "blah" // produces 0.5 ``` Thus far, JavaScript can be categorized as Untyped.
strong/weak can be thought of in relation to how the compiler, if applicable, handles typing. * Weakly typed means the compiler, if applicable, doesn't enforce correct typing. Without implicit compiler interjection, the instruction will error during run-time. ```"12345" * 1 === 12345 // string * number => number ``` Strongly typed means there is a compiler, and it wants you an explicit cast from string to integer. ```(int) "12345" * 1 === 12345 ``` In either case, some compiler's features can implicitly alter the instruction during compile-time to do conversions for you, if it can determine that is the right thing to do. Thus far, JavaScript can be categorized as Not-Strongly-Typed. That either means it's weakly-typed or un-typed. dynamic/static can be thought of in relation to how the language instructions manipulate types. * Dynamically typed means the value's type is enforced, but the variable simply represents any value of any type. ```x = 12345; // number x = "string"; // string x = { key: "value" }; // object y = 123 + x; // error or implicit conversion must take place. ``` Statically typed means the variable type is strongly enforced, and the value type is less-so enforced. ```int x = 12345; // binds x to the type int x = "string"; // too late, x is an integer - error string y = 123; // error or implicit conversion must take place. ``` Thus far, JavaScript can be categorized as Not-Statically-Typed. Also, it appears to be Dynamically Typed, if typed at all. So we need to see what Typing means. Typed means that the language distinguishes between different types such as string, number, boolean, object, array, null, undefined and so on. Also each operation is bound to specific types. So you cannot divide an integer by a string. ``` 2 / "blah" // produces NaN ``` Untyped means the operation of dividing integer by string would result in treating the first four bytes of string as integer. This is because Untyped operations take place directly on bits, there are no types to observe. The outcome will be something quite unexpected: ``` 2 / "blah" // will be treated as 2 / 1500275048 ``` Since JavaScript behaves according to the definition of being Typed, it must be. And therefore it must be Dynamically Typed, and Weakly Typed. If anybody claims JavaScript is Untyped, it is merely for academic theory, not for practical application.
5
How did you come up with the characters Tom Sawyer and Huckleberry Finn?
Dear [Author Name], It has come to my attention that you have published a series of books about the characters Tom Sawyer and Huckleberry Finn. I would like to know, sir, where you received your inspiration for these characters. When I was a young man, and an aspiring writer, I invented two characters who had a variety of adventures along the Mississippi River. Now, as you may have guessed, my characters names were Tom Sawyer and Huckleberry Finn. After reading your novels I have come to the conclusion that you somehow gained access to my notes. I do not have time to speculate on how you managed this, but I intend to find out. You will contact me, inform me how and why you have stolen my characters, and acknowledge me in your works. I expect your response in a timely manner, or my lawyer will be contacting you. Regards, [Your Name]
5
What is the difference between network encryption and application encryption?
Network encryption protects against different set of threats than application layer encryption like TLS. In particular, network encryption like Wifi encryption are primarily designed to protect from a local attacker from being able to watch network patterns (by recording who you're making connections with, and discovering what devices are on the local network), observing/tampering of low level messages like ARP/DNS, and protecting network broadcasts from devices that aren't supposed to be in the network, and from tampering or selective interference. TLS doesn't protect the low level TCP/IP packets, which leaks information like the IP address of the machine you're connecting with, and the TLS handshake also by design leaks a number of information about the connection like Server Name Indication (SNI) header. The side effect of needing to do all this is that Wifi hardware already need to have enough code and processing power to handle encryption, so it becomes easier to just encrypt all wifi packets rather than selectively figuring out what needs protection or not. This come also with the side benefit that unsecured HTTP connection will still be at least marginally protected, even if at least to protect users of the infrastructure from each other, but not from the infrastructure provider. Network encryption is designed to protect the network, not the service. Application encryption is designed to protect the connection to the service, but it doesn't protect the network. They complement each other, but neither completely makes the other unnecessary.
5
How do I make a virtual directory in IIS?
When this happens the easiest solution is to make the virtual directory manually. First of all, you need to make sure you have the right version of ASP.Net installed and that you have installed the IIS extensions. To do this, go to the relevant .net version's folder in C:\(Windows)\Microsoft.NET\Framework\(dotnetver)\ (substituting the bracketed folders for the right folders on your PC) and run this command ```aspnet_regiis.exe -i ``` Next once that's run and finished, sometimes running ```iisreset ``` from the command line helps, sometimes you don't need to. Next, go to your IIS Manager and find you localhost website and choose add a folder. Browse to the folder in your project that contains the actual ASP.Net project and add that. Finally, right click on the folder you added and you should have an option that says 'convert to application' or 'create virtual directory' or something similar. Please make sure the Virtual directory has the name 'MyWebApp'!! Reload your solution and it should work. Good luck!
5
What happened to George Washington?
The young man was walking by the street when he stepped on a small, thin, white book. He looked at it, kneeling down to pick it up. The man analyzed it left to right. It looked familiar, like one of those Anime's he watched, except the wording was different. It said life instead of death, which was weird. The man thought nothing of it, simply taking oht a pen from his shirt pocket and writing the first name to come to mind. Of course the first president was the first name. He wasn't very creative, so he sloppily wrote it down, throwing the notebook down afterwards and walking off. The next day, he was making breakfast, looking at the tiny tv sitting in the kitchen until he heard something he never thought he'd hear from a news source. "George Washington is alive? Is it an imposter? He seems to be very serious about it." The mans jaw gaped open, seeing pictures of the man in the modern era. "Guess he'll have to survive this."
5
What are the major factors that affect depth of field in photography?
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.
5
What is the University of Chicago Booth School of Business?
The University of Chicago Booth School of Business is one of the top business schools in the world. It offers a full-time MBA program as well as part-time and executive programs. The school has over 50,000 alumni around the globe who are leaders in their fields. Booth's rigorous curriculum emphasizes analytical thinking and problem solving. Students learn how to approach any business challenge with confidence and creativity. They develop practical skills they can use immediately in their careers, while also gaining a deeper understanding of how businesses work. The faculty at Booth are renowned experts in their fields. They conduct groundbreaking research that pushes the boundaries of knowledge and shapes business practices around the world. Their insights inform every aspect of the MBA experience, both inside and outside the classroom. Booth's flexible curriculum allows students to follow their own interests and choose courses that best suit their career goals. Students can specialize in finance, marketing, entrepreneurship, operations management, or other areas. They can also take elective classes across the university, exploring subjects like public policy, international relations, law, medicine, and more. Beyond the classroom, students can enhance their learning through hands-on experiences like internships, consulting projects, and entrepreneurial ventures. The Polsky Center for Entrepreneurship and Innovation provides resources and support for aspiring start-up founders. The Harper Center houses state-of-the-art facilities where students can practice their presentation skills and connect with peers. And Booth's global network of campuses gives students opportunities to study abroad and build connections around the world. With its rigorous curriculum, world-class faculty, and innovative approach to education, the University of Chicago Booth School of Business prepares students to become leaders in any field. Whether they pursue careers in finance, consulting, tech, healthcare, or another industry, Booth graduates have the skills and knowledge they need to succeed.
5
Why should I cover my mouth when I cough or sneeze?
One reason is to prevent droplet infection. When you cough or sneeze, droplets are expelled from your mouth which can infect others if they come into contact with them. By covering your mouth, you reduce the number of droplets in the air. Another reason is to prevent the spread of germs on surfaces. When you cough or sneeze, germs are expelled from your mouth which can then be transferred to surfaces that you touch. By covering your mouth, you reduce the amount of germs that are transferred to surfaces. These two effects together reduce the spread of infection.
5
Navigating the depths of love is hard to say the least. This is especially true when you're trying to be a good friend and tasked with investigating the true feelings of a friend's crush. With some intuition and old-fashioned honesty, you can make the complicated game of love a little bit easier. ## Make honesty work 1. Be up front. The easiest and most effective way is to just ask your friend's crush about their feelings. If you're having trouble working up the courage to ask such a personal question, there's a few ways to make the process easier. Consider the time and place you're going to have the conversation. Make sure the crush is in a comfortable area, probably out of earshot from anyone who could listen in. Be gentle. Don't use confrontational lines, such as "Everyone knows you like Ryan. Just come out and say it!" Instead, you might say "You seem really happy around Ryan. Do you think you might have feelings for him?" Don't pry too much if they seem uncomfortable. If the crush seems to get embarrassed during your conversation, back off a bit. They may need time before they're willing to divulge such sensitive feelings. 2. Ask about their love life. Instead of asking the crush directly about your friend, try starting with their love life in general. Ask to see if they're dating anyone or if they're currently looking to find a love interest. 3. Ask about your friend in a platonic way. Ask your friend's crush less leading questions about your friend, and see if they naturally bring up their potential attraction. Try questions such as, "So how did you and Cayla meet?" or "How long have you known each other?" ## Spot a flirt 1. Examine body language. People give off noticeable changes in their movements when they feel attracted to someone. While everyone has their own set of bodily cues, there are some common signs to look out for when someone's crushing. Open postures such as uncrossed legs, open arms, and palms facing up. People will often lean in much closer to a crush when speaking with them in comparison to the personal space they use with platonic friends. Sometimes people will play with their hair, jewelry, or clothing when they're attracted to someone. 2. Listen to the tone of voice. When someone's crushing on someone, they'll often speak in a higher-pitched voice
Navigating the depths of love is hard to say the least. This is especially true when you're trying to be a good friend and tasked with investigating the true feelings of a friend's crush. With some intuition and old-fashioned honesty, you can make the complicated game of love a little bit easier. ## Make honesty work 1. Be up front. The easiest and most effective way is to just ask your friend's crush about their feelings. If you're having trouble working up the courage to ask such a personal question, there's a few ways to make the process easier. Consider the time and place you're going to have the conversation. Make sure the crush is in a comfortable area, probably out of earshot from anyone who could listen in. Be gentle. Don't use confrontational lines, such as "Everyone knows you like Ryan. Just come out and say it!" Instead, you might say "You seem really happy around Ryan. Do you think you might have feelings for him?" Don't pry too much if they seem uncomfortable. If the crush seems to get embarrassed during your conversation, back off a bit. They may need time before they're willing to divulge such sensitive feelings. 2. Ask about their love life. Instead of asking the crush directly about your friend, try starting with their love life in general. Ask to see if they're dating anyone or if they're currently looking to find a love interest. 3. Ask about your friend in a platonic way. Ask your friend's crush less leading questions about your friend, and see if they naturally bring up their potential attraction. Try questions such as, "So how did you and Cayla meet?" or "How long have you known each other?" ## Spot a flirt 1. Examine body language. People give off noticeable changes in their movements when they feel attracted to someone. While everyone has their own set of bodily cues, there are some common signs to look out for when someone's crushing. Open postures such as uncrossed legs, open arms, and palms facing up. People will often lean in much closer to a crush when speaking with them in comparison to the personal space they use with platonic friends. Sometimes people will play with their hair, jewelry, or will simply make extended eye contact and smile during their conversations with crushes. 2. Watch for eye contact. Prolonged eye contact, even for just over a second, is a common sign of either aggression or romantic interest. Pay close attention to how long your friend's crush gazes at your buddy. If they fail to maintain consistent eye contact, then it could be a bad sign for any hopes of a relationship. On the contrary, it's an excellent signal of affection if they constantly stay locked onto each other's eyes during conversations. 3. Look at their social media communication. See if your friend's crush interacts with your friend frequently on social media accounts such as Facebook, Twitter, and Instagram. Pay attention to the language they use with your friend, and see if they use obvious signs such as smiley face or winky face emojis. 4. Look for compliments. People looking to give off signs of attraction will likely dole out many compliments to their crush. Watch to see if your friend's crush praises them on their talents or academic accomplishments. It's important to note that being complimentary isn't always a sign of affection, so it's crucial to pay attention to the frequency of their praise and admiration. Compliments on physical features are an especially key sign of flirting. Did your friend's crush notice their new glasses, haircut, or workout routine? Flirts tend to notice these subtle changes and point them out to convey affection. Sexual innuendos laced in jokes and conversations can also be not-so-subtle signs of a flirt's desire to spice up conversations with the person of their desire. 5. Listen for references on their availability. Flirts will commonly drop hints in conversations that reflect their relationship status, such as mentioning they're recently single or how lonely they've been. 6. Understand different kinds of flirts. Some people may flirt very openly and little guessing is required, while others can be introverted flirts with more subtle signs of affection. Physical flirts rely on body language cues to convey their feelings. They often use physical signs of affection before verbal cues, such as eye contact and playful touching. Traditional flirts tend to be more polite, preferring to convey affection over a longer period of time instead of using flashy and overt statements such as saying they're single or rubbing their crush's arm. These flirts also prefer professional environments like bookstores or study groups to build relationships over parties. Playful flirts use very clear signs of affection in a boisterous manner. For example, they may joke excessively in a sexual way with their crush or make bold physical complements about their crush's appearance. 7. Talk to your crush's friends. Find out who your crush's friends are and ask around to see if what the status of the crush's feelings are. Chances are if the crush is significant the word has already made its way around to people. ## Give your friend confidence 1. Give them affirmations. Another solution is to give your friend enough confidence ask their crush directly so you don't have to do the leg work. Discreetly feed your friend affirmations such as, "Everyone knows how confident you are, why not put it to use and ask Nicki how she feels?" Congratulate them on little steps, such as starting small talk with their crush or asking them for help with some schoolwork. Give them support even when they falter. If they lose their nerve to talk to their crush at a party, let them know it's okay to be afraid sometimes and that there will be other opportunities to develop a relationship. 2. Help them improve. If they feel uncomfortable with their body or lifestyle, start supporting healthy habits. Go to the gym with your friend, sign up for yoga classes, or start up a diet together. 3. Listen to their concerns. Sometimes people can gain confidence just by airing out their insecurities. Ask them why they feel uncomfortable confronting their crush, and let them know it's normal to feel anxiety about such an important question.
5
Washington DC is a great city to visit steeped in history and culture. You can definitely see a lot in two days. Here are some suggestions for your two-day itinerary: Day 1: * Sightseeing guideline: White House (1 hour) → Washington Monument (1 hour) → National WWII Memorial (1 hour) → Lincoln Memorial (1 hour) → Jefferson Memorial (0.5 hours) The first day’s tour begins from the iconic White House, where visitors can explore the historic and cultural heart of American politics by visiting the monuments, Lincoln Memorial, Jefferson Memorial, and the beautiful Tidal Basin. * Traffic guideline: Due to the concentration of attractions, most of the attractions are within walking distance. * Catering Guideline: Around the White House and Capitol Hill, there are fewer options, with fast food restaurants being predominant, but there are also some unique restaurants offering Mediterranean, Asian, and other international cuisines worth trying. With extensive routes covering the entire city, riding the metro is the best option for getting around, with peak fares ranging from $2.15 to $5.90, and off-peak fares ranging from $1.75 to $3.60. Tourists can also purchase a One Day Pass ($14 per ticket) at any metro station, which is valid for both metro and buses. Day 2: * Sightseeing guideline: Smithsonian National Museum of Natural History (2 hours) → National Gallery of Art (2 hours) → Smithsonian National Air and Space Museum (2 hours) → U.S. Capitol (1 hour) On the second day, visit some of Washington D.C.'s most famous museums to experience nature, history, art, and aerospace technology in an all-encompassing way, and then proceed to the majestic U.S. Capitol, the highest legislative body. * Traffic guideline: All of the sites on the second day are within walking distance. Tourists can also purchase a One Day Pass ($14 per ticket) at any metro station, which is valid for both metro and buses. * Catering Guideline: Around the White House and Capitol Hill, there are fewer options, with fast food restaurants being predominant, but there are also some unique restaurants offering Mediterranean, Asian, and other international cuisines worth trying
Washington DC is a great city to visit steeped in history and culture. You can definitely see a lot in two days. Here are some suggestions for your two-day itinerary: Day 1: * Sightseeing guideline: White House (1 hour) → Washington Monument (1 hour) → National WWII Memorial (1 hour) → Lincoln Memorial (1 hour) → Jefferson Memorial (0.5 hours) The first day’s tour begins from the iconic White House, where visitors can explore the historic and cultural heart of American politics by visiting the monuments, Lincoln Memorial, Jefferson Memorial, and the beautiful Tidal Basin. * Traffic guideline: Due to the concentration of attractions, most of the attractions are within walking distance. * Catering Guideline: Around the White House and Capitol Hill, there are fewer options, with fast food restaurants being predominant, but there are also some unique restaurants offering Mediterranean, Asian, and other international cuisines worth trying. With extensive routes covering the entire city, riding the metro is the best option for getting around, with peak fares ranging from $2.15 to $5.90, and off-peak fares ranging from $1.75 to $3.60. Tourists can also purchase a One Day Pass ($14 per ticket) at any metro station, which is valid for both metro and buses. Day 2: * Sightseeing guideline: Smithsonian National Museum of Natural History (2 hours) → National Gallery of Art (2 hours) → Smithsonian National Air and Space Museum (2 hours) → U.S. Capitol (1 hour) On the second day, visit some of Washington D.C.'s most famous museums to experience nature, history, art, and aerospace technology in an all-encompassing way, and then proceed to the majestic U.S. Capitol, the highest legislative body. * Traffic guideline: All of the sites on the second day are within walking distance. Tourists can also purchase a One Day Pass ($14 per ticket) at any metro station, which is valid for both metro and buses. * Catering Guideline: As a diverse metropolis and political center, Washington D.C. offers a wide range of dining options. You can visit the Northwest areas such as Georgetown, Dupont Circle, and Adams Morgan where the majority of restaurants are located. In general, the attractions in Washington D.C. are very concentrated, and most of them are within walking distance of each other, making it very convenient. Additionally, most of the attractions do not require tickets, but some may have strict security checks, so be mindful of the items you carry. In spring, you can also enjoy the beautiful cherry blossoms in Washington D.C..
5
Yes, some gases can diffuse into and through metal. It is the bane of the high-vacuum engineer's life. Hydrogen is the worst because it tends to dissociate into atoms at the surface and the nucleus, a single proton, can then leave its electron behind and wander through the metal lattice until it picks up another electron when it leaves. For example Mu-metal, favoured for some applications, typically has to be annealed in hydrogen at high temperature. Once that is over, it can take weeks or months for the residual hydrogen to diffuse out of the metal before a high enough vacuum can be achieved and the work proceed. A &quot;virtual leak&quot; occurs where a small bubble of gas is embedded in the material inside a vacuum chamber. The leak usually happens because a tiny hole exists for the gas to diffuse out through, but sometimes the &quot;hole&quot; is no more than an ultra-thin skin of metal (invisible to the frustrated technician) and the gas diffuses through it. These little horrors can keep going for months or even years and generally mean replacing suspected parts and pumping down over and over again until the dodgy one is finally stumbled on. Helium is both monatomic and the physically smallest atom. It can diffuse more easily than any other neutral atom or molecule, making certain metal foils unsuitable as say gas-tight liners for airships. As noted in another answer, in quantity it can also affect the bulk properties of the metal. On a more energetic scale, hydrogen and helium nuclei (protons and alpha particles) can pass through thin metal foils if fired with sufficient energy, and this has been used to establish the crystalline structures of some metals and alloys (where, for whatever reason, electrons were unsuitable). Other gases have much larger atoms (neon and other noble gases) or molecules (nitrogen and other diatomic molecules, water and other hydrides), but they can still diffuse extremely slowly through some metals. This can limit the lifetime of some microchips. A related phenomenon occurs where there is a defect in the lattice at the surface, such as a grain boundary, and a gas atom attaches itself to the defect. This is called a &quot;stuck atom&quot;.
Yes, some gases can diffuse into and through metal. It is the bane of the high-vacuum engineer's life. Hydrogen is the worst because it tends to dissociate into atoms at the surface and the nucleus, a single proton, can then leave its electron behind and wander through the metal lattice until it picks up another electron when it leaves. For example Mu-metal, favoured for some applications, typically has to be annealed in hydrogen at high temperature. Once that is over, it can take weeks or months for the residual hydrogen to diffuse out of the metal before a high enough vacuum can be achieved and the work proceed. A &quot;virtual leak&quot; occurs where a small bubble of gas is embedded in the material inside a vacuum chamber. The leak usually happens because a tiny hole exists for the gas to diffuse out through, but sometimes the &quot;hole&quot; is no more than an ultra-thin skin of metal (invisible to the frustrated technician) and the gas diffuses through it. These little horrors can keep going for months or even years and generally mean replacing suspected parts and pumping down over and over again until the dodgy one is finally stumbled on. Helium is both monatomic and the physically smallest atom. It can diffuse more easily than any other neutral atom or molecule, making certain metal foils unsuitable as say gas-tight liners for airships. As noted in another answer, in quantity it can also affect the bulk properties of the metal. On a more energetic scale, hydrogen and helium nuclei (protons and alpha particles) can pass through thin metal foils if fired with sufficient energy, and this has been used to establish the crystalline structures of some metals and alloys (where, for whatever reason, electrons were unsuitable). Other gases have much larger atoms (neon and other noble gases) or molecules (nitrogen and other diatomic molecules, water and other hydrides), but they can still diffuse extremely slowly through some metals. This can limit the lifetime of some microchips. A related phenomenon occurs where there is a defect in the lattice at the surface, such as a grain boundary, and a gas atom attaches to it. Defects are sometimes quite mobile and can migrate through the lattice; the gas atom will stabilise the defect and may be able to hitch a ride. Quantum processes such as tunnelling are not really relevant, as they work over distances smaller than the atomic wavelength, which in turn is typically far smaller than the thickness of any metal atom or foil. The probability of a gas atom tunnelling across is so infinitesimal as to be effectively zero.
5
When your Form I-140 petition is approved, you will receive a Form I-797 Notice of Action. You can get a copy of this notice by sending a request to the United States Citizenship and Immigration Services (USCIS) department. However, you might want a copy of the Form I-140 petition itself. In this situation, you will need to make a Freedom of Information Act (FOIA) request to USCIS. ## Request a copy of your approval notice 1. Download Form I-824. This is the form you need to fill out to get a copy of your Form I-797 Notice of Action. The form is available for download from the United States Citizenship and Immigration Services (USCIS) website. You should download it in PDF format and also get a copy of the instructions. You can also request a form by calling 1-800-375-5283. You cannot use this form if your approval notice has expired or been revoked. 2. Get a copy of the original petition or application. If available, send a copy of the original I-140 petition. If you don’t have a copy, then ask your employer to provide you with one. However, if you don’t have it, then you don’t need to include it. 3. Make a copy of your Form I-797. If you have your Form I-797 (but want an additional copy), then send a copy along with your application. You need to submit both the front and the back. If you don’t have the Form I-797, then you don’t need to send it. 4. Complete Form I-824. You can complete the form in PDF format. Type in the requested information. Answer all questions and type “N/A” or “not applicable” to anything that applies. The form will ask for the following information: * your reason for the request: check “A duplicate approval notice” * name * date of birth * country of birth * identifying information, such as Alien Registration Number, Social Security Number, IRS Tax Number, etc. mailing address * physical address 5. Pay a fee. You will need to pay a fee to get a copy of your Form I-797 Notice of Action. The fee is $85. You can pay by check or money order made out to “U.S. Department of Homeland
When your Form I-140 petition is approved, you will receive a Form I-797 Notice of Action. You can get a copy of this notice by sending a request to the United States Citizenship and Immigration Services (USCIS) department. However, you might want a copy of the Form I-140 petition itself. In this situation, you will need to make a Freedom of Information Act (FOIA) request to USCIS. ## Request a copy of your approval notice 1. Download Form I-824. This is the form you need to fill out to get a copy of your Form I-797 Notice of Action. The form is available for download from the United States Citizenship and Immigration Services (USCIS) website. You should download it in PDF format and also get a copy of the instructions. You can also request a form by calling 1-800-375-5283. You cannot use this form if your approval notice has expired or been revoked. 2. Get a copy of the original petition or application. If available, send a copy of the original I-140 petition. If you don’t have a copy, then ask your employer to provide you with one. However, if you don’t have it, then you don’t need to include it. 3. Make a copy of your Form I-797. If you have your Form I-797 (but want an additional copy), then send a copy along with your application. You need to submit both the front and the back. If you don’t have the Form I-797, then you don’t need to send it. 4. Complete Form I-824. You can complete the form in PDF format. Type in the requested information. Answer all questions and type “N/A” or “not applicable” to anything that applies. The form will ask for the following information: * your reason for the request: check “A duplicate approval notice” * name * date of birth * country of birth * identifying information, such as Alien Registration Number, Social Security Number, IRS Tax Number, etc. mailing address * physical address 5. Pay a fee. You have to pay a $405 filing fee. Make your check or money order payable to “U.S. Department of Homeland Security.” Don’t use abbreviations like “DHS” or “USDHS.” * Fees are subject to change. You should call 1-800-375-5283 for updated fee information. 6. Submit your application to the appropriate address. Make a copy of your complete application for your records. Then put your application in a secure envelope and mail it to the appropriate address. You can get the appropriate address by calling the National Customer Service Center at 1-800-375-5283. USCIS might contact you for more information. Please provide requested information promptly. ## Obtain a copy of the form i-140 petition 1. Ask your employer for a copy. Your employer files a Form I-140 petition when they want to sponsor you as an immigrant worker. Filing the form is necessary so that you can become a legal permanent resident in the U.S. and work here. Because your employer submitted this petition, you should ask them for a copy. Sometimes, however, your employer won’t give you a copy of the petition. In this situation, you will need to file a Freedom of Information Act (FOIA) request. Only submit an FOIA request if the petition has been approved. You cannot request a copy of a petition that is under consideration. Instead, call 1-800-375-5283 for inquiries about the status of your application. You can also call the United States Citizenship and Immigration Services (USCIS) office where the petition was filed. 2. Download Form G-639. This is the Freedom of Information Act request form. You should download the form and its instructions. You can also get a copy of the form by calling 1-800-375-5283. You don’t have to use the form. However, all requests must be in writing, and using the form is probably easiest. 3. Complete the form. Provide requested information by using a typewriter or writing clearly in black ink. If you need extra space to answer a question, then you can attach a sheet of paper. Make sure to put your name and Alien Registration Number (if applicable) at the top of each sheet. Also clearly identify the page number, part, and item number your additional information refers to. If a question doesn’t apply to you, then write “N/A” or “not applicable” in the space. Don’t just leave it blank. Make a copy of the form for your records. 4. Verify your identity. You will need to sign the form under penalty of perjury or in front of a notary public. You can find notaries in courthouses, town offices, and most large banks. Take acceptable forms of identification (such as a valid state-issued ID or passport) with you to the notary. If you are requesting a copy of someone else’s Form I-140, then you must get his or her permission. Typically, getting them to sign this form is sufficient. 5. Explain why you need the request expedited. Generally, it can take USCIS a month to process your request. However, you can request that USCIS speed up the process if you have a valid reason. For example, you might be in removal proceedings. If you are, then you should make a copy of your Notice to Appear or Notice of Hearing. You will need to submit these documents with your FOIA request. Also write a letter explaining in detail why you urgently need the information. You need to sign the letter under penalty of perjury. Include the following words above your signature: “The information contained in this letter is complete, true, and correct to the best of my knowledge and belief.” 6. Pay a fee, if required. You typically won’t have to pay a fee. You get the first 100 pages (and 2 hours of search time) free. Because your Form I-140 is not 100 pages, you shouldn’t have to pay anything. However, you might have to pay a fee if you order in bulk. For example, you might be an employer getting copies of your employees’ forms. In this situation, you have to pay ten cents per page. You won’t be billed until you have accrued at least $14 in charges. By submitting the form, you agree to pay at least $25 in fees. 7. Submit your request. Gather all of your documents and make a copy for your own records. You can submit your request using one of these three different methods: * Fax: send it to (816) 350-5785. Email: send the completed form and supporting documents as attachments to [email protected]. Mail: send your request certified mail, return receipt requested to National Records Center (NRC), FOIA/PA Office, PO Box 648010, Lee’s Summit, MO 64064-8010. 8. Provide additional information. USCIS might contact you and request additional information in order to process your request. You should provide all requested information promptly to USCIS.
5
Neck acne can be as frustrating as acne on your face. The skin on your neck is thicker than the skin on your face (the acne that appears here is more like body acne than face acne) and may produce more oil, sometimes leading to more severe acne or cystic lesions. The best way to get rid of neck acne is with a good cleansing routine and an occasional skin treatment. If your acne does not improve within a few months or if it appears infected, then you should see a doctor for help. ## Cleanse your neck 1. Wash your neck at least twice a day. Keeping your neck clean is the best way to start getting rid of neck acne. You should take a shower to wash your neck at least once per day. If you sweat a lot, such as after a workout, then take another shower. 2. Use a gentle cleanser to clean your neck. Find a gentle cleanser that is labeled as “non-comedogenic” or “oil-free” to use on your neck. Products that are non-comedogenic will not clog your pores so they should help to clear up your neck acne. Check the label to be sure that a product is non-comedogenic. Check to make sure that the products you buy are alcohol-free as well. Alcohol may irritate your neck acne and make it worse. 3. Apply cleanser to your neck using only your fingers. Do not use a washcloth, sponge, or other abrasive materials to apply cleanser to your neck because this can cause irritation, scarring, and worsen the existing acne. Instead, use your fingertips to gently apply the cleanser to your neck. Do not scrub aggressively. Rinse your neck well after you finish washing it. Pat your neck dry with a clean cotton towel. 4. Avoid irritants. You may not realize it, but your clothing or accessories may be contributing to your neck acne and making it worse. Avoid tight collared shirts, scarves, and turtlenecks, as these may irritate the acne. Make sure anything that touches your neck is made of a soft material that will not irritate your neck acne. ## Treat your neck 1. Apply an over-the-counter (OTC) acne treatment to your neck. There are
Neck acne can be as frustrating as acne on your face. The skin on your neck is thicker than the skin on your face (the acne that appears here is more like body acne than face acne) and may produce more oil, sometimes leading to more severe acne or cystic lesions. The best way to get rid of neck acne is with a good cleansing routine and an occasional skin treatment. If your acne does not improve within a few months or if it appears infected, then you should see a doctor for help. ## Cleanse your neck 1. Wash your neck at least twice a day. Keeping your neck clean is the best way to start getting rid of neck acne. You should take a shower to wash your neck at least once per day. If you sweat a lot, such as after a workout, then take another shower. 2. Use a gentle cleanser to clean your neck. Find a gentle cleanser that is labeled as “non-comedogenic” or “oil-free” to use on your neck. Products that are non-comedogenic will not clog your pores so they should help to clear up your neck acne. Check the label to be sure that a product is non-comedogenic. Check to make sure that the products you buy are alcohol-free as well. Alcohol may irritate your neck acne and make it worse. 3. Apply cleanser to your neck using only your fingers. Do not use a washcloth, sponge, or other abrasive materials to apply cleanser to your neck because this can cause irritation, scarring, and worsen the existing acne. Instead, use your fingertips to gently apply the cleanser to your neck. Do not scrub aggressively. Rinse your neck well after you finish washing it. Pat your neck dry with a clean cotton towel. 4. Avoid irritants. You may not realize it, but your clothing or accessories may be contributing to your neck acne and making it worse. Avoid tight collared shirts, scarves, and turtlenecks, as these may irritate the acne. Make sure anything that touches your neck is clean. Also, avoid touching the area and never pick at or scratch your acne, as this can cause scarring. Try not to use oily sunscreens and don't cover the acne with foundation or makeup. If you use a hairstyling product, make sure it doesn't come in contact with your neck. If you have long hair, the oil from your hair may be getting on the back of your neck. Try wearing your hair up in a ponytail while you treat your acne. ## Use a sea salt treatment 1. Gather your ingredients. Making a sea salt treatment is easy and the ingredients are available in most grocery stores. It exfoliates your skin and can dry out acne. To make a sea salt treatment, you will need: * 1 cup hot water * 1 teaspoon sea salt * Green tea bag and/or 1 – 2 tablespoons aloe vera 2. Brew a cup of green tea. Green tea extract has been found to be effective as a treatment for acne, but using a cup of green tea as a base for this treatment should also help. You can either use one teaspoon of green tea leaves in a tea infuser or use a green tea bag. Place the tea bag or infuser into a mug. Then, boil some water and pour about 1 cup of water over the green tea. Let the tea steep for about three minutes and then remove the tea bag or infuser. 3. Dissolve 1 teaspoon of sea salt in the tea. Measure out 1 teaspoon of sea salt and add it to the cup of tea. Stir the sea salt until it completely dissolves in the tea. 4. Add a tablespoon of aloe vera. Aloe vera has been found to be effective against acne and it also has moisturizing properties. You can add this instead of the tea, or try combining the green tea and aloe vera into one mixture. Add 1 tablespoon of aloe vera to the sea salt solution and stir well. If you want to skip the green tea and only use aloe vera, mix 2 tablespoons of aloe vera gel with 1 tablespoon of sea salt. This will make a scrub that you can apply directly to your neck. 5. Apply the mixture to your neck. Make sure that the solution is not so hot that it might burn your neck. Allow it to cool down a bit first. Then, you can apply the solution by soaking a clean cotton washcloth in the solution and placing the cloth over your neck. If you only have few places that you want to treat, then you can dip a cotton swab or cotton ball into the solution and apply it as needed. 6. Leave the solution on for about five minutes. Don’t leave the sea salt solution on your skin any longer or it may dry out your skin too much. After time is up, rinse off your neck with lukewarm water and gently dry off your neck with a clean, cotton towel. 7. Moisturize your neck. After the sea salt treatment, apply some moisturizer to your neck. Make sure that you use a non-comedogenic moisturizer to avoid making the acne worse. 8. Repeat the sea salt treatment once per day. Do not use this treatment more than once per day or you may dry out your skin too much, even if you moisturize after. Limit yourself to one sea salt treatment per day. ## Use an egg white mask 1. Gather your ingredients. Some of the things you can readily find in your kitchen are thought to have antibacterial and healing properties, allowing you to quickly whip up an acne-fighting mask. You will need: * 1/2 tablespoon of dark colored honey (darker honey has more antibacterial properties) * 1 egg white (do not use the yolk) * 1 teaspoon fresh lemon juice 2. Combine the ingredients in a small bowl. Use a whisk or fork to mix the egg white and lemon juice until it becomes frothy, then add the honey. Make sure that everything is well combined. You may wish to add other household items, such as 1 teaspoon of witch hazel (which has anti-inflammatory properties) or a few drops of an essential oil like peppermint, spearmint, lavender, or calendula, but it is unclear if these will enhance or reduce the effectiveness of the treatment. 3. Spread the paste over your neck. If you want to treat your whole neck, then you can use your fingers to spread the paste over your neck. If you want to treat a smaller area, then you can use a cotton swab or cotton ball to spread the paste over specific problem areas. 4. Allow the paste to dry on your neck and then rinse. Leave the paste alone for about 15 minutes, then rinse it away with lukewarm water. You may need to hop in the shower to do this. Use your fingers to break up the paste as you rinse it away. Pat your skin dry and then apply a non-comedogenic moisturizer to complete the treatment. ## Treat neck acne with medication 1. Try over-the-counter treatments. Face washes and topical treatments containing benzoyl peroxide, salicylic acid, sulfur, or resorcinol acid are all effective acne-fighters and are available over-the-counter. You may find products targeted specifically at treating body acne, which may be more effective than products meant to be used on your face. Just make sure you don't forget and use the body product on the delicate skin of your face or the front of your neck. 2. Ask about retinoid creams. Retinoid creams can help to unclog your pores and eliminate acne on your neck, but you will need to get a prescription from your doctor or dermatologist. 3. Discuss the use of antibiotics. Your doctor may prescribe a prescription-strength topical antibiotic, such as clindamycin, to apply to your neck, which kills acne-causing bacteria. It may also reduce redness. You will need to apply it twice daily and combine it with benzoyl peroxide, as this prevents the bacteria from becoming immune to the antibiotic. 4. Talk to your doctor about oral contraceptive pills if you are a woman. Oral contraceptives can help to reduce acne in some women, but only if the acne is related to shifts in your hormones. Keep in mind that oral contraceptives have side effects and they should not be used if you are planning to become pregnant. 5. Consider steroid injections for cystic acne. If your dermatologist determines that the acne on the back of your neck is a nodular or cystic lesion, your doctor may decide to inject the lesion directly with a steroid. This can quickly reduce swelling and heal the acne. It may also reduce scarring. Side effects of this treatment include thinning of the skin, increased sensitivity to light, and may temporarily case the fat under your skin to atrophy, giving the area a "sunken" appearance. 6. Consider isotretinoin for severe acne. Isotretinoin is a strong medicine that should only be used if other methods of controlling acne fail to work. Isotretinoin can clear up severe acne in a couple of months, but it also has some severe risks including: * Ulcerative colitis * Liver damage * Inflammatory bowel disease * Depression * Bone changes * Severe birth defects 7. Look into laser treatments for acne. Laser treatments can also help to get rid of acne by reducing the size of oil glands and making them less active as well. Some forms of laser therapy also use topical medicine to make the laser more effective. Keep in mind that you will need multiple treatments in order for laser therapy to work.
5
Tres formas diferentes de hacerlo: 1. Utilizando la función ```String.split()``` : ``` String str = "123-654321"; String[] parts = str.split("-"); ``` Esta solución utiliza expresiones regulares, así que no es lo más eficiente si no estas trabajando con ellas. 2. Utilizando la clase ```StringTokenizer``` : ```static private List fastSplit(final String text, final String separator, final boolean emptyStrings){ List result = new ArrayList(); final StringTokenizer st = new StringTokenizer(text, separator, true); String token = null; String lastToken = separator; while (st.hasMoreTokens()) { token = st.nextToken(); if (token.equals(separator)) { if (lastToken.equals(separator) && emptyStrings) { result.add(""); } } else { result.add(token); } lastToken = token; } return result; } ``` El problema con este método es que solo funciona bien cuando el delimitador tiene longitud 1. 3. Implementarlo usando ```String.indexOf()``` : En este caso si funcionará correctamente para delimitadores de cualquier longitud. ```static private List fastSplit2(final String text, final String separator, final boolean emptyStrings) { final List result = new ArrayList(); if (text != null && text.length() > 0) { int index1 = 0; int index2 = text.indexOf(separator); int sepLen = separator.length(); while (index2 >= 0) { String token = text.substring(index1, index2); if (!token.isEmpty() || emptyStrings){ result.add(token); } index1 = index2 + sepLen; index2 = text.indexOf(separator, index1); } if (index1 < text.length() - 1) { result.add(text.substring(index1)); } } return result; } ```
5
Doe's growth model (Doe, 2010)
This is, unfortunately, a case where English grammar can be tricky and exactly how you phrase things is going to matter. It is often seen a presumptuous to name something after yourself: "Newton's Laws" and "Hawking radiation" and "Rayleigh scattering" are retrospective judgements of significance by the community. Claiming a similar name is an assertion in advance that your work will be at a similar level of significance. The problem, then, is that if you say "Doe's growth model", it is ambiguous whether that is intended to be a construction like "Hawking radiation" or whether it just means "the growth model that happens to have been developed by Doe." This potential problem can be avoided by rephrasing to avoid the parallel construction: "the growth model by Doe et al (2010)", or better yet, "the growth model presented in (Doe, 2010)." The point here is that the significant item under discussion is the growth model, not Doe, and the sentence should be phrased to make that as clear as possible. Finally, note that these sorts of phrasings can work both for double blind review and for review where the authors' identities are known: even when the identity of the author is known, the important thing should be the relationship between the work, not the fraction of authors that are shared between two papers (unless you are specifically trying to talk about independent co-discovery).
5
What do you see when you wake up in a field of wheat?
The sun seared into my head as I came to in a glistening wheat field. Every bone in my body cracked and groaned as I sat upright, every muscle stretched and twitched as if saying, "you don't belong here." The clang and crash of metal drew my attention, looking over my shoulder there they were, two armored warriors complete with full plumed helmets and battle axes were 50 yards away dueling. I knew what would happen, I've wrote it before, the smaller of the two would soon have the upper hand, taking the other warriors axe, screaming some unknown obscenity while slicing down on the Warriors head. Blood. Blood everywhere. It was not the nice and neat killing where people were polite about death. It was not the glory of the fight nor the poetry that I had imagined when I was a child reading fantasy books. There was nothing glorious in it. It was dirty, angry, primal, with the under notes of finality. The knowing that Death was coming soon. I hated it, I loved it. I was frozen to the ground as I wanted to recognize who was fighting so hard to live. The small warrior was gasping for air, knees to the ground and crying. Ripping the visored helmet off, a tumble of bright red hair came out, curly and thick. She wiped at the tears in her eyes and stood, observing her good and dark work. What do I do? Run? Where would I go? I must've made some sort of sound, breathed wrong or something because suddenly she was there, at my throat with her axe. The fury in her brown eyes was quick, but a flicker of recognition was in them. I breathed in, once. "Oh," she smiled, a brilliant white smile. "It's you." She lowered her axe and offered her hand. I took it. "Finally. I can't wait to show you everything."
5
Can you write a poem from the perspective of a dog?
Owner, Master, Friend, Protector; I loved you when I was small and new in this world, and nothing made sense. Your heart seemed so sad, so I cuddled you until the hurt stopped. I loved when we played find-the-toy, you were so happy when I found them all! When I couldn't hold my bladder, you never screamed or raised a fist, you only said "bad". You protected me from the thunderstorms, where the house shook and the air screamed. Gently, coaxed me from under the bed, and held me through the night. When I chased the evil squirrel through bushes, you ran after me yelling for me to stop. Even though I was bad, you brushed the painful spike-balls from my fur. Our walks were the best, I sniffed and peed on everything in our path! In the dog park, when I got out and those strange-smelling men threw bottles at me, I didn't know what I did wrong. I was so scared and hurt so much. You were terrifying. I never saw you so scary, I didn't know your gentle hands were capable of causing pain. By the end, they hurt more then I did. You picked me up and held me close, I knew I was safe. Even though my fur is grey and my walk is slow, you take me on walks. I still sniff and pee on everything. I can't see your face anymore, but I will always recognize your touch. Your sadness has been gone for so long, but it is coming back. The white-coat man touched my tummy, felt my skin. He says he can't remove the bumps, and you should let me go. You pull me close and cry and whisper "Don't go", but I don't understand. I will never leave you, and I know you will never leave me. I lick your face and cuddle you, but you just cry more. I love you and don't want you to be sad. You lay beside me and the vet gives me a shot. I am so tired, I guess it is time for a nap. When we wake up I hope we can play find-the-toy.
5
First, Mazur's paper is arguably the first paper where the new ideas (and language) of the Grothendieck revolution in algebraic geometry were fully embraced and crucially used in pure number theory. Here are several notable examples: Mazur makes crucial use of the theory of finite flat group schemes to understand the behavior of the $p$-adic Tate modules of Jacobians at the prime $p$. He studies modular forms of level one over finite rings (which need not lift to characteristic zero when the residue characteristic is $2$ or $3$). He proves theorems about mod-$p$ modular forms using what are essentially comparison theorems between etale cohomology and de Rham cohomology, and many more examples. The proof of the main theorem ($\S5$, starting at page 156) is itself a very modern proof which fundamentally uses the viewpoint of $X_0(N)$ as a scheme. Second, there are many beautiful ideas which have their original in this paper: it contains many of the first innovative ideas for studying $2$-dimensional (and beyond) Galois representations, including the link between geometric properties (multiplicity one) and arithmetic properties, geometric conceptions for studying congruences between Galois representations, understanding the importance of the finite-flat property of group schemes, and the identification of the Gorenstein property. There is a theoretical $p$-descent on the Eisenstein quotient when previously descents were almost all explicit $2$-descents with specific equations. It introduces the winding quotient, and so on. Third, while it is a dense paper, it is dense in the best possible way: many of the small diversions could have made interesting papers on their own. Indeed, even close readers of the paper today can find connections between Mazur's asides and cutting edge mathematics. When Mazur raises a question in the text, it is almost invariably very interesting. One particular (great) habit that Mazur has is thinking about various isomorphisms and by pinning down various canonical choices identifies refined invariants. To take a random example, consider his exploration of the Shimura subgroup at the end of section 11. He finishes with a question which to a casual reader may as well be a throw-away remark. But this question was first solved by Merel, and is now one of the central problems in the theory of Shimura varieties.
First, Mazur's paper is arguably the first paper where the new ideas (and language) of the Grothendieck revolution in algebraic geometry were fully embraced and crucially used in pure number theory. Here are several notable examples: Mazur makes crucial use of the theory of finite flat group schemes to understand the behavior of the $p$-adic Tate modules of Jacobians at the prime $p$. He studies modular forms of level one over finite rings (which need not lift to characteristic zero when the residue characteristic is $2$ or $3$). He proves theorems about mod-$p$ modular forms using what are essentially comparison theorems between etale cohomology and de Rham cohomology, and many more examples. The proof of the main theorem ($\S5$, starting at page 156) is itself a very modern proof which fundamentally uses the viewpoint of $X_0(N)$ as a scheme. Second, there are many beautiful ideas which have their original in this paper: it contains many of the first innovative ideas for studying $2$-dimensional (and beyond) Galois representations, including the link between geometric properties (multiplicity one) and arithmetic properties, geometric conceptions for studying congruences between Galois representations, understanding the importance of the finite-flat property of group schemes, and the identification of the Gorenstein property. There is a theoretical $p$-descent on the Eisenstein quotient when previously descents were almost all explicit $2$-descents with specific equations. It introduces the winding quotient, and so on. Third, while it is a dense paper, it is dense in the best possible way: many of the small diversions could have made interesting papers on their own. Indeed, even close readers of the paper today can find connections between Mazur's asides and cutting edge mathematics. When Mazur raises a question in the text, it is almost invariably very interesting. One particular (great) habit that Mazur has is thinking about various isomorphisms and by pinning down various canonical choices identifies refined invariants. To take a random example, consider his exploration of the Shimura subgroup at the end of section 11. He finishes with a question which to a casual reader may as well be a throw-away remark. But this question was first solved by Merel, and more recently generalized in some very nice work of Emmanuel Lecouturier. Lecouturier's ideas then played an important role in the work of Michael Harris and Akshay Venkatesh. Again, one could give many more such examples of this. Very few papers have the richness of footnotes and asides that this paper does. Never forget that one of the hardest things in mathematics is coming up with interesting questions and observations, and this paper contains many great ones - it is bursting with the ideas of a truly creative mathematician. Finally, the result itself is amazing, and (pretty much) remains the only method available for proving the main theorem (the second proof due to Mazur is very related to this one). To give a sense of how great the theorem is, note that if $E$ is a semistable elliptic curve, then either $E$ is isogenous to a curve with a $p$-torsion point, or $E[p]$ is absolutely irreducible. This result (added for clarity: explicitly, Mazur's Theorem that $E/\mathbf{Q}$ doesn't have a $p$-torsion point for $p > 7$) is crucially used in Wiles' proof of Fermat. One could certainly argue that without this paper (and how it transformed algebraic number theory) we would not have had Wiles' proof of Fermat, but it's even literally true that Mazur's theorem was (and remains so today, over 40 years later) an essential step in any proof of Fermat.
5
What is the difference between List and ArrayList in Java?
If you check the API for ```List``` you'll notice it says: ```Interface List ``` Being an ```interface``` means it cannot be instantiated (no ```new List()``` is possible). If you check that link, you'll find some ```class```es that implement ```List```: All Known Implementing Classes: ```AbstractList```, ```AbstractSequentialList```, ```ArrayList```, ```AttributeList```, ```CopyOnWriteArrayList```, ```LinkedList```, ```RoleList```, ```RoleUnresolvedList```, ```Stack```, ```Vector``` Some of those can be instantiated (the ones that are not defined as ```abstract class```). Use their links to know more about them, I.E: to know which fits better your needs. The 3 most commonly used ones probably are: ``` List supplierNames1 = new ArrayList(); List supplierNames2 = new LinkedList(); List supplierNames3 = new Vector(); ``` Bonus: You can also instantiate it with values, in an easier way, using the ```Arrays``` ```class```, as follows: ```List supplierNames = Arrays.asList(&quot;sup1&quot;, &quot;sup2&quot;, &quot;sup3&quot;); System.out.println(supplierNames.get(1)); ``` But note you are not allowed to add more elements to that list, as it's ```fixed-size```.
5
Flipping someone off is a classic nonverbal signal for showing anger and frustration toward a person. You might "flip the bird" to someone who has cut you off, insulted you, or otherwise provoked your ire. At its simplest, flipping someone off is just pointedly displaying your middle finger in their direction. More advanced techniques take on an element of comedy or performance art. Remember: when you flip someone off, you are calling him or her out – so use with caution, or be prepared for the consequences! ## Basic flip-off move 1. Give someone the finger. There is a simple straightforwardness to the classic "flip-off." Turn the back of your fist toward someone, as though you are shaking a fist at them. Then, extend your middle finger. Hold the pose and look the person in the eye. This is a quick and easy way to get the point across. Wave your finger around for emphasis. Hold it out firmly and emphatically to make sure that you get the point across. 2. Try using both hands. For added effect, whip out the "double-finger" flip-off. Flip the person off with both middle fingers at the same to show them that you are unusually angry. Do "the X": cross your middle fingers into an "X," and then hold them against your chest facing the offender. 3. Switch fingers. For a somewhat more dynamic insult, flash your left and right middle fingers at the person in rapid succession. Alternately, keep both middle fingers extended and wave them around for emphasis. ## Discreet flip-off move 1. Act like you are itching your nose. Reach up to your face as though you are going to itch your nose or your face. Look in the direction of the person that you want to flip off. Then, use your middle finger to scratch your nose while staring pointedly. The person that you are flipping off might not notice this move. However, it might give other onlookers a laugh. 2. Flip the person off behind their back. You might feel a bit better simply by releasing your anger somehow, even if the person in question doesn't actually see you. Consider whether you want to provoke a confrontation, or just get your feelings out. ## Advanced flip-off moves 1. Flip the person off with both hands. Extend both middle fingers toward the person that you want to flip off. Wave them around for emphasis. 2.
Flipping someone off is a classic nonverbal signal for showing anger and frustration toward a person. You might "flip the bird" to someone who has cut you off, insulted you, or otherwise provoked your ire. At its simplest, flipping someone off is just pointedly displaying your middle finger in their direction. More advanced techniques take on an element of comedy or performance art. Remember: when you flip someone off, you are calling him or her out – so use with caution, or be prepared for the consequences! ## Basic flip-off move 1. Give someone the finger. There is a simple straightforwardness to the classic "flip-off." Turn the back of your fist toward someone, as though you are shaking a fist at them. Then, extend your middle finger. Hold the pose and look the person in the eye. This is a quick and easy way to get the point across. Wave your finger around for emphasis. Hold it out firmly and emphatically to make sure that you get the point across. 2. Try using both hands. For added effect, whip out the "double-finger" flip-off. Flip the person off with both middle fingers at the same to show them that you are unusually angry. Do "the X": cross your middle fingers into an "X," and then hold them against your chest facing the offender. 3. Switch fingers. For a somewhat more dynamic insult, flash your left and right middle fingers at the person in rapid succession. Alternately, keep both middle fingers extended and wave them around for emphasis. ## Discreet flip-off move 1. Act like you are itching your nose. Reach up to your face as though you are going to itch your nose or your face. Look in the direction of the person that you want to flip off. Then, use your middle finger to scratch your nose while staring pointedly. The person that you are flipping off might not notice this move. However, it might give other onlookers a laugh. 2. Flip the person off behind their back. You might feel a bit better simply by releasing your anger somehow, even if the person in question doesn't actually see you. Consider whether you want to provoke a confrontation, or just get your feelings out. ## Theatrical flip-off move 1. Do the "jack-in-the-box" flip-off. Hold your fist out in front of you, knuckles facing the offender – but do not raise your middle finger yet. Then, make a fist with the other hand, and crank it in circles next to the first hand as though you are winding up an old-timey jack-in-the-box toy. As you crank, hum "Pop Goes the Weasel," the tune traditionally associated with jack-in-the-boxes. Hum and crank faster and faster as you approach the end of the tune. Then, at the final "Pop" of the "Pop Goes the Weasel" tune, extend your middle finger as though it is the jack popping out of the box. Finish humming the tune while flipping the person off. Make sure that you have the person's undivided attention. This move takes a bit of time to pull off, and you want to make sure to get the full effect. 2. Practice "the balloon." Hold your fist in front of your face and put the tip of your thumb in your mouth. Act as though you are blowing up a balloon: "blow" into your thumb, and slowly extend all of your fingers as though your breath is inflating them. Then, hold you middle finger of the "balloon hand" with your other hand, and move the thumb away from your mouth. Slowly close the other fingers on your "balloon hand" until only your middle finger is left pointing at the person whom you want to flip off. 3. Pretend to "find" your middle finger. Act as though you are looking for something: in your pocket, or between the couch cushions, or in a desk drawer. Make sure that you get the person's attention. Then, make a show of being relieved that you have found the thing you're looking for. Turn to show the person what you found: and flip them off! Alternately, lean down in front of the person as though you are picking something up off of the ground. Come up flashing your middle finger, and say, "Did you drop this?" 4. Try "the trumpet." Blow on your thumb while pretending to play the trumpet, and flail your fingers as though you are hitting the valves. Periodically hold up only your middle finger. Add some musical effects for style! 5. Try the "double extreme." Extend the middle fingers of both hands. Then, bring your arms behind your back and through your legs. You should have both middle fingers clearly presented. Note: only people with long arms can pull this off.
5
Urinary incontinence (UI) is a medical term that refers to the loss of bladder control, which leads to accidental urine loss. This can happen during the day or at night. Urinary incontinence is a condition that affects many children when they are young and disappears as they grow and develop. To provide better support for your child with UI, it is important to understand how UI works and possible management solutions. ## Understand the bladder 1. Know how the bladder works. The bladder is a bodily organ that is essentially a muscular storage sack for urine. Normally, the bladder muscle sack can stay relaxed and expand to accept urine for several hours. The muscle that forms the bladder sack is called the detrusor muscle, which is also responsible for bladder emptying. The other main muscles of the bladder are called the sphincters, which are two rings of muscle surrounding the bladder outlet through which it empties. One sphincter is involuntary (you aren't aware of it) and the other is usually under our control, making it our voluntary sphincter. The latter is the muscle you can use to hold the urine back until you go to the bathroom. 2. Learn about bladder control. There are nerves in your body that provides you with the sensation of bladder fullness. This is the early warning system that the bladder is ready to empty. When you urinate, the nerves to the detrusor muscle signal it to contract or squeeze, while at the same time, the nerves to the involuntary sphincter make it relax. When you release your voluntary sphincter, you allow yourself to urinate. By around age two, most children become aware that the sensation that they feel “down there” is the need for the bladder to empty. This allows them to express the need to go to the bathroom. About a year later, they develop the ability to “hold it” until they have a chance to go to the bathroom. 3. Be aware of the causes of incontinence. There are issues that can cause problems when a child is learning how to “hold it”. While most kids learn to control their bladder by the time they are two or three years old, some kids may not be able to control their bladder until they are four or five years old. Some kids may not be able to control their
Urinary incontinence (UI) is a medical term that refers to the loss of bladder control, which leads to accidental urine loss. This can happen during the day or at night. Urinary incontinence is a condition that affects many children when they are young and disappears as they grow and develop. To provide better support for your child with UI, it is important to understand how UI works and possible management solutions. ## Understand the bladder 1. Know how the bladder works. The bladder is a bodily organ that is essentially a muscular storage sack for urine. Normally, the bladder muscle sack can stay relaxed and expand to accept urine for several hours. The muscle that forms the bladder sack is called the detrusor muscle, which is also responsible for bladder emptying. The other main muscles of the bladder are called the sphincters, which are two rings of muscle surrounding the bladder outlet through which it empties. One sphincter is involuntary (you aren't aware of it) and the other is usually under our control, making it our voluntary sphincter. The latter is the muscle you can use to hold the urine back until you go to the bathroom. 2. Learn about bladder control. There are nerves in your body that provides you with the sensation of bladder fullness. This is the early warning system that the bladder is ready to empty. When you urinate, the nerves to the detrusor muscle signal it to contract or squeeze, while at the same time, the nerves to the involuntary sphincter make it relax. When you release your voluntary sphincter, you allow yourself to urinate. By around age two, most children become aware that the sensation that they feel “down there” is the need for the bladder to empty. This allows them to express the need to go to the bathroom. About a year later, they develop the ability to “hold it” until they have a chance to go to the bathroom. 3. Be aware of the causes of incontinence. There are issues that can cause problems when a child is learning how to “hold it”. While most kids develop the ability to hold their urine and go to the bathroom when they have the opportunity to do so, problems can arise that can mess up a child's ability to control her bladder. These issues that are related to childhood incontinence can include: * A bladder that is unable to store the usual amount of urine. Weakness of the detrusor muscles or sphincter. Structural abnormalities of the urinary tract. The body producing larger amounts of urine than is normal. Bladder irritation from infections, such as urinary tract infections, or other bladder irritants. The bladder receiving unexpected and premature nerve signals to empty. Something in the area of the bladder keeping it from filling completely, such as other excrement caused by constipation. Excessive postponement of urination, or holding it for too long. Chronic constipation. 4. Disregard the myths about incontinence. If your child has been dealing with incontinence for an extended period of time, chances are she is dealing with more of an issue that simply being too lazy to get to the bathroom. A lot of parents tend to think that daytime incontinence is a display of laziness, but it is important to keep in mind that something else might be causing your child to have accidents. Common thoughts that parents have that should probably be ruled out if your child has been dealing with incontinence for awhile. In these situations, you should know that: * Children who wet themselves are not just too lazy to go to the bathroom. Children who wet themselves are not too busy playing or watching TV. Children who wet themselves want to go to the bathroom and do not willfully wet themselves. Children who wet themselves do not choose to wait until the last minute. Wetting themselves does bother them. ## Treat incontinence 1. Look for signs of an overactive bladder. There are some common signs that your child has an overactive bladder. Signs that your child might have an incontinence problem related to under filling include: * Your child dashes to the bathroom, crosses her legs, and wiggles or drops to the floor, sitting hard on her heel. If asked, your child will often admit that she releases a little urine on the way to the bathroom. Many children also will admit that, sometimes, they run to the bathroom but only void a small amount of urine, even though they felt like they really needed to go. 2. Look out for a cause for the "sudden-urge-to-urinate" phase. Some kids, while they are growing up, go through a phase where they suddenly, without warning, need to go to the bathroom really badly. This underdeveloped control, which presents itself as urge incontinence, often resolves with time as the child matures. However, this can also be the symptoms of a functionally small bladder or an overactive bladder. There are some medications that can actually increase a bladder's holding capacity. You should talk to a doctor about the options for dealing with a small or overactive bladder. 3. Be aware of overfilling. There is a filling condition, called overfilling, that can also lead to incontinence. Overfilling is a less common condition that occurs when the bladder won't or can't empty and has an usually large capacity. Symptoms of an abnormally large capacity bladder include: * Voiding large volumes of urine frequently during the day. This can happen if the kidneys produce enormous volumes of urine. You should take your child to a doctor if you notice your child voiding a large amount of urine every time she goes to the bathroom, especially if there is a change in the amount from usual. Infrequent voiding, which is considered less than two or three times a day. This can be a sign of a spinal nerve problem, such as spina bifida or cerebral palsy. If your child has not been diagnosed with a spinal nerve problem, it is unlikely that this is the cause of your child's incontinence. 4. Notice if your child is holding it for too long. Sometimes, if your child gets in the habit of holding his urine too long, it can result in over filling of the bladder. Your child's bladder can become enlarged if he is a chronic urine holder, which means he avoids going to the bathroom, even when he really, really has to pee. When this goes on for a long time, the muscles related to urinating become over trained, which means the muscles relax poorly, leading to bladder dysfunction like incontinence. This happens frequently when a child does not want to use the bathroom at school or other public places. 5. Consider behavior modification therapy. Behavioral modification may be able to help your child with her urge incontinence. Most experts today favor behavior modification therapy over drugs as a first line treatment for daytime wetting of almost all types. Behavior modification is a method of training to relearn a skill such as bladder control. The therapy must be done strictly and consistently in order to get the desired results, such as your child being able to control her bladder. Behavior modification therapy generally works best in children who are older than five or six years of age. This is because younger children generally lack the self-discipline to stick to the therapy schedule. However, each child should be analyzed on a case-by-case basis. Child psychologists can provide good advice on how to go about creating a schedule. 6. Create a schedule. If your child suffers from an overactive bladder, you need to create a schedule to help him. After your child goes to the bathroom in the morning, begin a strict timed voiding schedule. Normally, parents pick every two hours as the scheduled voiding time. Your child must go to the bathroom every two hours, even if he says he doesn't have to go at that specific time. That is actually the point, to get him to the bathroom before he has a bladder spasm. If you wait for the bladder spasm, you are reinforcing the absence of control. If your child does go and attempts to void, even a little, it reinforces his control about when and where he goes. If your child has an overfilled bladder, you should create the same schedule with an added step. Your child should wait four to five minutes after going to the bathroom and then try to go again. This is called double voiding in an attempt to reduce that lingering bladder volume. The goal is to change voiding habits and allow the bladder to carry a more normal volume of urine. 7. Use an alarm system. In addition to a schedule, set an alarm to help your child remember to go to the bathroom. It can be hard to remember to go to the bathroom every two hours. Because of this, its important to set up an alarm system. When your child is at home or visiting family, such as staying at Grandma's house, set alarm clocks that go off every two hours. You can set these alarms on a smartphone or alarm clock. You can also get your child a watch that beeps or vibrates silently every two hours as a reminder for when she is at school. You may also consider trying a bed-wetting alarm if your child has nighttime incontinence (bed-wetting). 8. Extend the voiding time. Once you have followed this schedule for four to six weeks, you should extend the voiding time. Normally, you should see improvement within four to six weeks. However, this does not mean you should stop the schedule. You should extend the time so that your child tries to urinate every three or four hours, rather than every two. ## Treat urinary tract infections 1. Notice urinary tract infections. You need to pay attention to your child to look for certain causes of incontinence. Urinary tract infections (UTIs) are most common in girls who have just started school or have recently been potty trained. In addition to incontinence, UTIs can also cause frequent urination, a burning sensation when she urinates, cloudy or dark colored urine, strong smelling urine, and pain in the lower abdomen. UTIs can be treated with antibiotics. Some children who get frequent UTIs also have a condition called asymptomatic bacteriuria (ABU). These children, most frequently girls, have bacteria colonizing the bladder, meaning that they reside there, similar to having bacteria quietly living on our skin. This increase in bacteria in the urine can sometimes be the cause of frequent UTIs. 2. Keep irritation at a minimum. Many kids, particularly girls, will develop irritation and inflammation in the area of the urethral and vaginal openings when they have a UTI. You can use certain creams to help relieve the irritation your child feels. In particular, a zinc oxide-containing skin barrier cream or ointment such as Desitin or Triple Paste can be very helpful. You can purchase these creams at your local pharmacy. Follow the directions on the bottle or box that the cream comes in. 3. Change your child's clothing when it becomes wet. The bacteria that creates a UTI thrives in moist areas. When your child experiences incontinence and leaks a bit of urine onto her clothes, it's important that she changes into dry clothes to keep her from getting a UTI or to relieve the symptoms of her UTI. This will also keep it from coming back. You can explain this to her so that she does it herself, or you can ask her to tell you when this happens so that you can help her change. 4. Ask your doctor about antibiotics. If your child has recurrent UTIs, you should talk to the doctor about getting antibiotics to clear up the infection and prevent new infections. Your child's doctor will be able to tell you whether or not antibiotics are the appropriate treatment for your child to prevent infections. Your child will need antibiotics if he has an active UTI. The most common antibiotics used for prophylaxis, or prevention of infections, are nitrofurantoin and trimethoprim sulfa. These are usually given once a day, at bedtime, at about ¼ of the usual full treatment dose given to adults. ## Treat constipation 1. Be aware of constipation. Another common cause of incontinence is constipation. When large amounts of stool stays in the body rather than being expelled, it can limit how much room the bladder has to expand and causes the bladder to have unpredictable contractions, both of which cause incontinence. Constipation usually causes infrequent bowel movements for 3 days or more in a row, hard, pebbly stools, very large stools, or pain when moving the bowels. 2. Have your doctor check your child. If you aren't sure how bad your child's constipation is, have a doctor figure out whether or not your child has a lot of stool backed up in her system. This can be done with the use of X-rays or through a physical examination. Knowing for sure that your child is constipated will help her overcome her incontinence issues. 3. Ask your child to drink lots of fluids throughout the day. Many kids with urgency and incontinence tend not to drink much fluid, which actually makes their constipation worse. Try to have your child drink at least eight glasses of water each day to stay hydrated. If your child doesn't like drinking plain water, you can give him fruit juices, milk (no more than 2-3 cups a day), and sports drinks. 4. Increase your child's fiber intake. To help fight constipation, increase your child's daily fiber intake. Fiber is one of the best ways to get your child's bowels working properly. There are plenty of foods that are high in fiber. Try introducing as many foods that are high in fiber as possible into your child's diet. Foods high is fiber include: * Fresh fruit and vegetables, including raspberries, blueberries, green peas, spinach, collard greens, acorn squash, kale, and broccoli. Whole grain breads with at least three to four grams of fiber per serving. High fiber cereals, such as Raisin Bran, Fiber One, Shredded Wheat, and All Bran. Beans, including black, lima, garbanzo, and pinto beans. Lentils and popcorn are also high in fiber. 5. Give your child laxatives. Adding fiber-rich food to your child's diet may not be enough. If your child is still having problems, try child-safe laxatives. One laxative that is safe and frequently used is propylene glycol, more commonly known as MiraLax. MiraLax causes water to be transported into the bowel, thereby softening the stool and improving movement. You should check with your child's doctor for guidance before giving MiraLax or other laxatives to your child. Most kids require between ½ capfuls and two capfuls per day, and the dose may be adjusted as needed.
5
Little Miss Muffet sat on her tuffet eating her curds and whey along came a spider intending to bite her the funeral's on Tuesday
Little Miss Muffet sat on her tuffet Eating her curds and weigh Along came a spider Intending to bite her The funeral's on Tuesday.
5
What would be the most exciting and cathartic way for him to die?
To Live as a Monster If he accepts his guilt and becomes sane he will become the Monster. His delusions are his brains way of removing this guilt and hiding the fact that he ignored his family, did not act on his wife's mental illness, allowed her to murder their children and then murdered her. By accepting what the doctors are telling him he will need to go on living in the knowledge that he allowed terrible things to happen and did terrible things. The doctors will be able to treat him without a lobotomy but he will be fully aware of the crimes he committed. To die as a good man In his delusion he is a good man. He truly believes that he is on the side of law and order and that he is doing right. If he chooses to continue to believe this he will be lobotomised and will no longer have relevant brain function to question what he did or did not do. The death is not literal as the other answer suggests. It is about the fact that if he continues to believe he is this good man he will be lobotomised and effectively "die" believing in this. He will not die in a literal sense until later, but he will do so in the belief he was a good man. What is most exciting and cathartic about this decision is that this appears to be a moment of lucidity where he understands what has happened and is not in thrall of his delusions. He at this point of lucidity makes the decision that he can not live with his crimes and would prefer to lie to his doctor as he knows this will result in his lobotomy. By making the statement to his doctor he makes him aware of this also and by virtue of this you could also argue that he is being a good man by electing to be punished as well as the belief in his delusion that he is good.
5
What is the difference between thread-local and global variables in Python?
In Python, everything is shared, except for function-local variables (because each function call gets its own set of locals, and threads are always separate function calls.) And even then, only the variables themselves (the names that refer to objects) are local to the function; objects themselves are always global, and anything can refer to them. The `Thread` object for a particular thread is not a special object in this regard. If you store the `Thread` object somewhere all threads can access (like a global variable) then all threads can access that one Thread object. If you want to atomically modify anything that another thread has access to, you have to protect it with a lock. And all threads must of course share this very same lock, or it wouldn't be very effective. If you want actual thread-local storage, that's where `threading.local` comes in. Attributes of `threading.local` are not shared between threads; each thread sees only the attributes it itself placed in there. If you're curious about its implementation, the source is in _threading_local.py in the standard library.
5
How did you go to the bus stop?
I went to the bus stop, and came across my classmate Mary.
5
What are the most dominant players in the NBA over the last decade?
The NBA (National Basketball Association) has seen many great players in the last decade, but here are some of the most dominant: * LeBron James: Widely considered the best player of his generation, LeBron James has been one of the most dominant players in the NBA for over a decade. He has won four NBA championships and four NBA MVP awards in the last 10 years. * Steph Curry: Best shooter of all time. Regularly puts up more then 4 threes a game, and shoots over 40% from deep. Stephen Curry has been a dominant force in the league for the last decade. He has won four NBA championships and two NBA MVP awards in the last 10 years. * Kevin Durant: One of the best scorer of all time, Kevin Durant has been one of the most dominant players in the NBA for over a decade. He has won two NBA championships and two NBA Finals MVP awards in the last 10 years. * Giannis Antetokounmpo: also known as "The Greek Freak", has emerged as one of the most dominant NBA players in recent years. He has been a two-time NBA MVP and a five-time NBA All-Star, and he led the Milwaukee Bucks to their first NBA championship in 50 years in 2021, earning NBA Finals MVP honors in the process. * Kawhi Leonard: A two-way star, Kawhi Leonard has been one of the most dominant players in the NBA over the last decade. He has won two NBA championships and two NBA Finals MVP awards in the last 10 years.
5
```$model->relation()->exists(); // bool: true if there is at least one row $model->relation()->count(); // int: number of related rows ```
A Relation object passes unknown method calls through to an Eloquent query Builder, which is set up to only select the related objects. That Builder in turn passes unknown method calls through to its underlying query Builder. This means you can use the ```exists()``` or ```count()``` methods directly from a relation object: ```$model->relation()->exists(); // bool: true if there is at least one row $model->relation()->count(); // int: number of related rows ``` Note the parentheses after ```relation```: ```->relation()``` is a function call (getting the relation object), as opposed to ```->relation``` which a magic property getter set up for you by Laravel (getting the related object/objects). Using the ```count``` method on the relation object (that is, using the parentheses) will be much faster than doing ```$model->relation->count()``` or ```count($model->relation)``` (unless the relation has already been eager-loaded) since it runs a count query rather than pulling all of the data for any related objects from the database, just to count them. Likewise, using ```exists``` doesn't need to pull model data either. Both ```exists()``` and ```count()``` work on all relation types I've tried, so at least ```belongsTo```, ```hasOne```, ```hasMany```, and ```belongsToMany```.
5
The world turned upside down. "Move! Move!" Gunfire erupted from all sides - the man struggled to escape from the downed Humvee. He stole one last glance at the driver, crawled away
The world turned upside down. "Move! Move!" Gunfire erupted from all sides - the man struggled to escape from the downed Humvee. He stole one last glance at the driver, crawled away from the vehicle, and leaned against a boulder. The IED teams should've swept the area. Everything... everything was all wrong. An explosive landed a few feet away - there was no room to run. The shrapnel tore through the man's torso. Then, all was quiet. The world turned upside down. "Move! Move!" Gunfire erupted from all sides - the man struggled to escape from the downed Humvee. He stole one last glance at the driver, crawled away from the vehicle, and leaned against a boulder. The IED teams should've swept the area. Everything... everything was all wrong... Wasn't it? An explosive landed an inch too far away and detonated a split second too late. The shrapnel tore through the man's torso, narrowly missing his heart. All was quiet. But not for long. When he came to, he found himself in a darkened cave, surrounded by bits of machinery. "Hello, Mr. Stark."
5
Whether you're new to forklifts, or an experienced operator, it is always important to know as much as you can about forklifts and their operation. It is equally important to be able to identify different forklifts, both by look and name. This is especially important when searching for forklift operating jobs, as it will allow you to know which type of forklift you will be operating and if you have the experience to do so. ## Identify basic "forklifts" and jack 1. Know what manual pallet jacks are. Although not usually considered a forklift, pallet jacks are some of the most common manual forms of pallet handling that people will come across in logistics industries. Manual pallet jacks are usually very simple in design; the handle lever is squeezed to lower the pallet jack forks for insertion into a pallet, and the handle lever is moved in the opposite direction to engage the hydraulics that allows the pallet to be raised by pumping the handle. 2. Familiarize yourself with motorized pallet jacks. Motorized pallet jacks, on the other hand, are much more varied than manual pallet jacks. They are almost always powered by electric batteries. Some are walk-behind, some are ride-on, and some even require the operator to take a side stance to ride on/operate, which is considerably more difficult to learn. Motorized pallet jacks usually have extended pallet forks that are used to handle two pallets at a time for greater efficiency in large warehouse operations, such as order picking. However, single pallet handlers are more common in smaller warehouses, for greater maneuverability and ease of use. 3. Learn to recognize walkie stackers. Walkie stackers, also known as pedestrian forklifts, are still usually not considered a true forklift. However, they very closely resemble a forklift with forks, a mast, backrest, etc. They are almost always operated with a walk-behind pedestrian operator. They are frequently used in retail, very small storerooms, small scale warehousing, etc. ## Identify counterbalance forklifts 1. Know what standard counterbalance forklifts are. Standard counterbalance forklifts are by far the most common type of forklift. They are usually powered by an internal combustion engine, and have a counterbalance weight that is used to offset the weight of the
Whether you're new to forklifts, or an experienced operator, it is always important to know as much as you can about forklifts and their operation. It is equally important to be able to identify different forklifts, both by look and name. This is especially important when searching for forklift operating jobs, as it will allow you to know which type of forklift you will be operating and if you have the experience to do so. ## Identify basic "forklifts" and jack 1. Know what manual pallet jacks are. Although not usually considered a forklift, pallet jacks are some of the most common manual forms of pallet handling that people will come across in logistics industries. Manual pallet jacks are usually very simple in design; the handle lever is squeezed to lower the pallet jack forks for insertion into a pallet, and the handle lever is moved in the opposite direction to engage the hydraulics that allows the pallet to be raised by pumping the handle. 2. Familiarize yourself with motorized pallet jacks. Motorized pallet jacks, on the other hand, are much more varied than manual pallet jacks. They are almost always powered by electric batteries. Some are walk-behind, some are ride-on, and some even require the operator to take a side stance to ride on/operate, which is considerably more difficult to learn. Motorized pallet jacks usually have extended pallet forks that are used to handle two pallets at a time for greater efficiency in large warehouse operations, such as order picking. However, single pallet handlers are more common in smaller warehouses, for greater maneuverability and ease of use. 3. Learn to recognize walkie stackers. Walkie stackers, also known as pedestrian forklifts, are still usually not considered a true forklift. However, they very closely resemble a forklift with forks, a mast, backrest, etc. They are almost always operated with a walk-behind pedestrian operator. They are frequently used in retail, very small storerooms, small scale warehousing, etc. ## Identify counterbalance forklifts 1. Know what standard counterbalance forklifts are. Being the most iconic, recognized, and popular type of forklift, a standard counterbalance forklift is a forklift where the driver sits facing the forks, and the counterweight is everything behind the front wheels of the forklift. 2. Consider how different standard counterbalance forklifts are powered. These forklifts can be powered by anything, from batteries, petrol (gasoline), diesel, LPG/propane gas bottles, and other forms of fuel, each with their own advantages and disadvantages. For example, internal combustion forklifts (petrol, LPG, diesel, etc) are generally faster and have greater lifting capacities than electric/battery-powered forklifts. However, for health and safety reasons, combustion forklifts cannot be used in confined spaces (e.g. shipping containers, small warehouses, etc) due to the exhaust gasses produced when in operation. 3. Be familiar with how many wheels standard counterbalance forklifts have. They can be either 4-wheeled or 3-wheeled; two wheels at the front and one at the back allows for greater maneuverability, at the expense of stability. This is why 4-wheeled forklifts are usually more common, as they generally still have more than enough maneuverability for most applications in small spaces. ## Identify warehouse forklifts 1. Get to know reach forklifts. Designed for usage for indoors and on flat surfaces, reach forklifts (also known as high-reach forklifts) are named for their ability to reach high racking. (up to 12 metres (39ft) or more!!!) Depending on the forklift manufacturer, the reaching mechanism may be a moving mast type, or a moving forks and carriage type. Reach forklifts generally have lifting capacities of 1 ton to 2.5 tons. Lifting capacities above 2.5 ton are generally very rare due to many factors such as narrow aisle space and keeping the forklift compact (a stronger forklift must be larger and therefore unable to operate in narrow aisles) and also generally due to most loads in warehousing to be put in aisle racking usually just do not weigh more than 1- 2 tons. Reach forklifts drive differently, compared to counterbalance forklifts because the operator sits (or stands, depending on the model) sideways on the forklift. Reach forklifts are designed for narrow warehouse aisle use; the operator is able to look forward or backward without the neck strain of having to turn around. This sideways operator position, alongside with reversed steering controls, makes reach forklifts considerably challenging for a new operator to learn. 2. Know what double deep reach forklifts are. Double deep reach forklifts are very similar to reach forklifts. However, as the name suggests, they are able to retrieve/put away pallets that are stored in double deep racking, which are pallets that are stored one in front of each other in specially designed racks. 3. Familiarize yourself with order picker forklifts. Although an order picker forklift is considered a type of forklift, it is not used for regular forklift operations. Order picker forklifts require the operator to wear a harness and stand while operating, as they are used for lifting pallets alongside with the operator up into the air. The operator then typically picks up individual units of a product to manually stack on a pallet to "pick" an warehouse order; this is opposed to regular order picking, where workers can only pick products from ground level. An order picker forklift can allow operators to pick products quickly and efficiently at any level in the air. 4. Recognize the disadvantages of picker forklifts. The only main disadvantage of them is that they must be operated on flat ground, and they cannot be operated on slopes or uneven ground; they are top heavy, and this increases the risk of tip overs. ## Identify big forklifts 1. Know what a heavy duty forklift is. A heavy duty forklift is an umbrella term used to describe a counterbalance forklift with a high lifting capacity. Most standard counterbalance forklifts in warehouses and manufacturing plants will only have a lifting capacity of 1-3 tons, whereas heavy duty forklifts have a lifting capacity of 5 - 50+ tons! 2. Understand how heavy duty forklifts operate. All heavy duty forklifts will require significant space to be able to maneuver around. The higher the lifting capacity the forklift has, the larger the rear end (counterweight) of the forklift will need to be. The vast majority of heavy duty forklifts will be powered by diesel fuel, though some lower end heavy duty forklifts (with lifting capacities up to 8-10 tons) may still be powered by LPG/propane gas bottles or petrol fuel.While It is generally very uncommon to encounter battery powered heavy duty forklifts, a few forklift companies have recently started to offer them up to the 20 ton range. 3. Learn about container handling forklifts. Container handling forklifts generally come in two types: Laden and Unladen (i.e. for handling full or empty containers, respectively). Laden container handling forklifts are usually capable of stacking full shipping containers 4-5 high, with lifting capacities ranging from 35-50 tons. Unladen container handling forklifts are able to stack as high as 8 or 9 shipping containers high, but with a lifting capacity of only 7-10 tons (empty shipping containers generally only weigh 3-5 tons). For these reasons, an unladen container handling forklift cannot be used for handling laden shipping containers, as it will be extremely overloaded. (full shipping containers can weigh anywhere from 10-30 tons). 4. Learn about reach stackers. Reach stackers are technically not forklifts at all; as they do not have a mast or forks to lift loads, instead, they operate with a heavy duty boom that extends from the rear to the front of the reach stacker, and they lift shipping containers using a container handling attachment. Reach stackers often are highly sophisticated machines with on-board computers and other technologies. Their load capacity usually ranges from 40-50 tons. However, due to the extending boom feature, overloading is still possible. ## Identify specialist forklifts 1. Learn about Articulated VNA Forklifts. Pictured here, Articulated VNA (Very Narrow Aisle) Forklifts are generally known as "Bendi" or "Flexi" Forklifts. Articulated Forklifts are special types of forklifts which are articulated from the front end (wheels, mast, and forks and carriage) so that they are able to perform both duties of a counterbalance forklift (loading trucks) and a reach forklift (retrieve/put away stock in narrow aisles). Another variation of the articulated forklift is the "Turret truck" also known as the "Man-up forklift", named so, as much like an order picker forklift, turret truck forklifts lift the operator high up in the air along with the forks. Much like "bendi" articulated forklifts, turret trucks allow for maximized warehouse storage space by greatly reducing the aisle widths - however unlike bendi forklifts, turret trucks cannot be operated outside, on slopes or on uneven ground, similar as order picking forklifts. 2. Identify an all terrain forklift. Generally similar in operation to standard counterbalance forklifts, the main difference is All terrain forklifts usually have large trodden tires, for use on all terrain ground, dirt, mud, grass, etc, where regular solid forklift tires would simply not operate on the ground - they would have no traction and get "bogged". All terrain forklifts are generally best identified by the large trodden tires and a similar appearance to a small tractor. 3. Learn about side loaders. A side loader, or multi-directional forklift, is a specialist type of forklift used mainly for the moving of long shaped loads, such as timber, piping, etc. Its main feature is it is able to be driven in different directions; for example, it can be driven sideways after retrieving a long load from an aisle - which greatly eases the process of getting long loads in and out of racking storage - as opposed to turning a full 90 degrees with standard forklifts, a maneuvering problem exacerbated by long shaped loads. 4. Learn about telehandler forklifts. Similar in design to reach stackers, telehandler forklifts are a specialist type of forklift common in the construction industry, the use of a boom with the forks and carriage on the end allows the handling of loads to places standard mast type forklifts cannot reach, for example on a rooftop, in the middle of a large trailer, etc. Again with the boom extension care needs to be taken as lifting capacity can be significantly reduced. 5. Understand truck mounted forklifts. Truck mounted forklifts, also known as "donkey forklifts", are just as their name suggests. They are a small type of forklift that can be easily mounted on the back of a truck for transport, and easily taken off for use of loading or unloading the trucks on-site. These forklifts are generally built to be lightweight and very simple to operate, thus lifting capacities and lift heights are generally very low. Essentially they are used for lifting small loads on and off trucks, unless they are otherwise specially designed to perform other functions.
5
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 &quot;tipar&quot; 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 = &quot;Foi usado outro alias para string.&quot;; // 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 para criar outros aliases: ``` using str = System.String; //... str s = &quot;Foi usado outro alias para string.&quot;; // a variável 's' é
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 &quot;tipar&quot; 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 = &quot;Foi usado outro alias para string.&quot;; // 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.
5
How important is multithreading?
It is extremely important. What is more important though is to understand that multithreading is just one way to solve the asynchrony problem. The technical environment in which many people are now writing software differs from the historical software development environment (of monolithic applications performing batch computations) in two key ways: * Many-core machines are now common. We can no longer expect clock speeds or transistor densities to increase by orders of magnitude. The price of computation will continue to fall, but it will fall because of lots of parallelism. We're going to have to find a way to take advantage of that power. * Computers are now heavily networked and modern applications rely upon being able to fetch rich information from a variety of sources. From a computational standpoint, these two factors essentially boil down to the same core idea: information increasingly will be available in an asynchronous fashion. Whether the information you need is being computed on another chip in your machine or on a chip halfway around the world doesn't really matter. Either way, your processor is sitting there burning billions of cycles a second waiting for information when it could be doing useful work. So what matters now, and what will matter even more in the future, is not multithreading per se, but rather, dealing with asynchrony. Multithreading is just one way to do that -- a complicated, error-prone way that is only going to get more complicated and more error-prone as weak-memory-model chips become more widely used. The challenge for tools vendors is to come up with some way better than multithreading for our customers to deal with the asynchronous infrastructure they'll be using in the future.
5
What are 7 words that rhyme with light?
Here are 7 words that rhyme with the word "light", sorted in alphabetical order: * bite * height * quite * right * site * white * write
5
What are some sample headlines for an advertisement for a new type of car?
Here are some sample headlines for an advertisement for a new type of car: * "Get a Glimpse of the Future of Driving with [Car Name]: Sophisticated Technology Meets Innovative Design!" * "Unleash Your Inner Speedster with the Sporty and Chic [Car Name]: Designed to Stand Out and Perform!" * "Make a Statement with the Elegant and Futuristic [Car Name]: Redefining the Art of Driving!" * "Prepare to Impress with the Stylish and Striking [Car Name]: The Ultimate Combination of Form and Function!"
5
How does it feel when the raindrops crash against your windowpane?
The raindrops crash against my windowpane. Yet when I look outside the fire is still burning.
5
These are a few extra points to complement Andrew Rosen's comprehensive response: * To be absolutely clear, typical DFT calculations are not performed at 0K, a better description of what happens is that they are performed "for a static crystal". Static crystal means that the atoms are fixed at their crystallographic positions (which is what a typical DFT calculation does), but this situation is different from 0K. Even at 0K, the atomic nuclei move due to quantum zero-point motion (also called quantum fluctuations). This quantum zero-point motion is very small for compounds containing heavy elements, which means that in these cases "0K" and "static crystal" are almost the same and many people use the terms interchangeably. However, quantum zero-point motion can be very large for light elements, for example in solid hydrogen (the lightest of all compounds) it dominates even at room temperature. To perform a calculation at 0K (as opposed to a static crystal calculation), the strategy that Andrew Rosen proposed would still work if you use quantum statistics. For example, solving the vibrational problem within the harmonic approximation at the quantum mechanical level with give you the zero-point energy as the ground state of a quantum harmonic oscillator. A good reference for hydrogen is this review article. * Although Andrew Rosen is correct in that the potential energy surface is largely temperature independent, there are a few situations in which the potential energy surface does vary significantly with temperature. An example of this is provided by many perovskite crystals (e.g. $\ce{BaTiO_3}$), which undergo a series of temperature-induced structural phase transitions. For example, at very high temperatures the structure is cubic, and this structure sits at a minimum of the potential free energy surface. However, if you calculated the potential energy surface (instead of the free energy surface), then it has a double-well shape and the cubic structure is at the saddle point, so the structure will lower its energy by distorting and going to one of the minima. This is precisely what happens at low temperatures because the corresponding free energy surface acquires a double-well shape, and the system undergoes a structural phase transition. A good early DFT reference for this is this paper. * As already pointed out by Andrew Rosen, the potential energy surface is not the same as the free energy surface. The potential energy surface is the potential energy of the system as a function of the atomic coordinates. The free energy surface is the free energy of the system as a function
These are a few extra points to complement Andrew Rosen's comprehensive response: * To be absolutely clear, typical DFT calculations are not performed at 0K, a better description of what happens is that they are performed "for a static crystal". Static crystal means that the atoms are fixed at their crystallographic positions (which is what a typical DFT calculation does), but this situation is different from 0K. Even at 0K, the atomic nuclei move due to quantum zero-point motion (also called quantum fluctuations). This quantum zero-point motion is very small for compounds containing heavy elements, which means that in these cases "0K" and "static crystal" are almost the same and many people use the terms interchangeably. However, quantum zero-point motion can be very large for light elements, for example in solid hydrogen (the lightest of all compounds) it dominates even at room temperature. To perform a calculation at 0K (as opposed to a static crystal calculation), the strategy that Andrew Rosen proposed would still work if you use quantum statistics. For example, solving the vibrational problem within the harmonic approximation at the quantum mechanical level with give you the zero-point energy as the ground state of a quantum harmonic oscillator. A good reference for hydrogen is this review article. * Although Andrew Rosen is correct in that the potential energy surface is largely temperature independent, there are a few situations in which the potential energy surface does vary significantly with temperature. An example of this is provided by many perovskite crystals (e.g. $\ce{BaTiO_3}$), which undergo a series of temperature-induced structural phase transitions. For example, at very high temperatures the structure is cubic, and this structure sits at a minimum of the potential free energy surface. However, if you calculated the potential energy surface (instead of the free energy surface), then it has a double-well shape and the cubic structure is at the saddle point, so the structure will lower its energy by distorting and going to one of the minima. This is precisely what happens at low temperatures because the corresponding free energy surface acquires a double-well shape, and the system undergoes a structural phase transition. A good early DFT reference for this is this paper. * As already pointed out by others, the differences between DFT and TDDFT or $GW$-BSE are not related to the inclusion or exclusion of temperature. In this language, both TDDFT and $GW$-BSE have no temperature for the behaviour of the nuclei, and you could incoporate it in a similar fashion to what Andrew Rosen described for DFT.
5
No matter how cheap or expensive your bicycle is, there will come a day when you need to fix or replace its chain. The structure of a mountain bike may be more complex than the structure of a regular bike, but the chain changing process is similar. With the right tools and a little bit of patience, you'll have a new chain on your bike in no time. ## Remove the chain 1. Secure your bike. It's unlikely that your kickstand will be sufficient for you to get a good look at your bike without it falling over. A bike rack that has hooks from which you can hang your bike works very well, but you can also turn your bike upside down so it rests on the seat and handlebars. Inspecting your chain with your bike's wheels facing upwards will make it more comfortable for you to inspect and work on. If you don't have a rack, simply lean your bike upright against a wall. 2. Take a picture of the chain. To make the reinstallation process easier, take a picture of the chain so you can refer to it later. Make sure your picture shows how the chain feeds through the gear mechanism. 3. Check for a master link. A master link is a special link in your bike chain that has a pin/slot configuration that will allow you to easily remove your chain from the bike. Two popular kinds of master links are Connex and SRAM Powerlink. Knowing where your master link is ahead of time will make chain replacement go smoother. The master link for a bike is specific to the chain size and brand. If your bike does not have a master link, you can install one yourself or have it done at your local bike shop. This installation is usually inexpensive, costing about $15 in most cases. If your bike does not have a master link and you prefer not to have one installed, order a chain-tool to remove the chain. They're inexpensive and essential pieces of equipment. 4. Position your chain. This is especially important if you have a master link. Removing a master link that's positioned on the teeth of the chain ring or a gear can be very difficult. Positioning the master link so it is suspended at the midpoint between the crankset and the rear wheel will make it easier to remove. 5. Remove the chain. If your bike has a master link, you can use a chain-tool to remove the chain. If your bike does not have a master link, you
No matter how cheap or expensive your bicycle is, there will come a day when you need to fix or replace its chain. The structure of a mountain bike may be more complex than the structure of a regular bike, but the chain changing process is similar. With the right tools and a little bit of patience, you'll have a new chain on your bike in no time. ## Remove the chain 1. Secure your bike. It's unlikely that your kickstand will be sufficient for you to get a good look at your bike without it falling over. A bike rack that has hooks from which you can hang your bike works very well, but you can also turn your bike upside down so it rests on the seat and handlebars. Inspecting your chain with your bike's wheels facing upwards will make it more comfortable for you to inspect and work on. If you don't have a rack, simply lean your bike upright against a wall. 2. Take a picture of the chain. To make the reinstallation process easier, take a picture of the chain so you can refer to it later. Make sure your picture shows how the chain feeds through the gear mechanism. 3. Check for a master link. A master link is a special link in your bike chain that has a pin/slot configuration that will allow you to easily remove your chain from the bike. Two popular kinds of master links are Connex and SRAM Powerlink. Knowing where your master link is ahead of time will make chain replacement go smoother. The master link for a bike is specific to the chain size and brand. If your bike does not have a master link, you can install one yourself or have it done at your local bike shop. This installation is usually inexpensive, costing about $15 in most cases. If your bike does not have a master link and you prefer not to have one installed, order a chain-tool to remove the chain. They're inexpensive and essential pieces of equipment. 4. Position your chain. This is especially important if you have a master link. Removing a master link that's positioned on the teeth of the chain ring or a gear can be very difficult. Positioning the master link so it is suspended at the midpoint between the crankset and the rear wheel will be easiest. If you are using a chain tool, you can still benefit from proper chain positioning. Some parts of your chain will be dirtier or have more wear than others. A clear segment of chain positioned at the midpoint between the wheels will be easiest to remove with your chain tool. 5. Remove the chain. Now that the chain is in position, you can remove it. If you have a master link, use master-link pliers or your hands to squeeze both ends of the master link inwards so the pin comes out of its slot and the link comes apart, freeing your chain. If you're using a chain tool: * Set the chain tool on the link you are trying to remove so it aligns with one of the round holes to either side of the link. Screw the chain tool so it moves through the hole. This will push out the pin that is keeping that link together. Try not to push the pin completely free of the link. This will make it difficult, or in some cases impossible, to reassemble that link of the chain. You'll often feel a popping or snapping when the pin pushes free of the link. This is a good indicator that the link has been disengaged. Some chain tools are only intended for certain sized links, though some can be used on several different sizes of chain. Check the instructions on your chain tool before using it. ## Attach your new chain 1. Avoid using failed chains as replacements. Chains generally fail because they have reached their limit or been put under too much stress. Replacing a failed chain on your bike could result in an even more severe failure down the road. To prevent injury to yourself or your mountain bike, you should buy a new chain instead of reusing old ones. Bike chains can be bought at your local bike shop or, in some cases, your local hardware store. 2. Measure your replacement chain. It's important that you only use the kind of chain intended for your bike. For example, an 11-speed bike will use an 11-speed chain. Hang your old bike chain so it dangles freely and do the same with your new chain beside the old one. Count the number of links if your new chain is longer than the old. This will be the number of links you need to remove. If your chain has snapped and it is unreliable to measure your new chain, you can remove links after feeding the chain into the drivetrain of your bike. 3. Insert your chain into the gear mechanism. For more complex mountain bike, you may need to consult the picture you took of how the old chain feeds through the gear mechanism to do this properly. Simple mechanisms may be more intuitive. Pull the chain through the entire drivetrain until both ends terminate at the bottom midpoint between your wheels. Positioning the ends of your chain at the bottom midpoint between the wheels of your bike will make it more accessible and allow gravity to keep the chain on the bike until you can secure it. 4. Remove extra links from the chain, if necessary. If your chain is loose, you'll need to remove some links. This is likely the case if you were not able to measure your chain. Shift your bike to its lowest gear, and then use your chain tool to remove links one at a time to shorten the chain until it is taut in the drivetrain. When removing extra links, avoid popping the pin holding them together completely free of the link. This will make it difficult to reattach the link if you shorten it too much. For the best ride, you'll need the chain to be strung tautly between the wheels in its lowest gear. 5. Attach the loose ends of your chain. With a master link, all you need to do is slip the pin of the link into its slot to complete the link. If you removed your chain with a chain tool, you'll have to re-couple the split link by lining up its halves together and using a pair of pliers to force the pin back through the hole to complete the link. You should feel a click or a pop when the pin of a master link slides into place. You can also pull on the chain to either side of the link to securely seat the pin of the master link in place. 6. Test your chain. Reposition your bike back on its rack and move the pedals manually with your hands to run the chain through the drivetrain of your bicycle. The chain should move smoothly. If you notice stiff links, these are often caused by a protruding link pin, and can be fixed by resetting the pin with your chain tool and pliers. Cycle the suspension by sitting on the saddle and bouncing up and down a few times to test your chain length. To protect your chain from the elements and to help it run smoothly in your drive train, you should lubricate your chain with a suitable bicycle chain lubricant. ## Inspect your chain for wear 1. Use a chain wear indicator to evaluate your chain for best results. You can find a chain wear indicator at your local bike shop or maybe even at a hardware store. You'll have to attach the indicator between the links of your chain and follow the directions on it to interpret its reading. Most chain wear indicators will have a sticker that establishes the values for a worn chain and an unworn chain. If your wear indicator does not, check the box it came in for these values. If you do not have a wear indicator, you can perform a hand check of the chain. Use moderate pressure to lift a section of your chain from the chainring of your bike with your fingers. A small gap should form between the chain and the ring. If you can clearly see through the gap over three or four teeth, your chain is worn. 2. Try to join the ends of your chain to test for wear as a simpler alternative. If inspecting your chain with a wear indicator or a physical gap check aren't an option, or if your chain is already off the bike, you can also check for wear by trying to touch the ends of the bike chain. Lay your chain on a clean surface so that the holes in the chain are oriented up and down. Then: * Try to touch the ends of the chain together while keeping the holes facing up and down. Over time, chains are bent by the action of your bikes derailleur. Note the amount of sideways flex in your chain. A worn chain will have a great deal flexion. Newer chains resist touching and only arc slightly. 3. Familiarize yourself with the drivetrain. The drivetrain of your bike is the part that transfers the energy you put into the pedals through the chain to your gears to move the wheels. You'll want to pay extra close attention to how the chain feeds into the gears. Knowing how the chain fits in the mechanism will allow you to replace it with greater ease.
5
How would you describe Jack's cubicle?
Jack's cubicle was outstanding, which was ironic considering it was the least personalised of all the cubicles on the floor of Redford & Jones. There were no family photos despite the fact that he was married with a newly born baby boy. There was a notable absence of inspirational quotes - the kind that reeked of desperation to those who partook in such futility. Whilst the rest of the employees punched away at their keyboards, Jack was keeping abreast of his latest Twitter feud; this time with a man who claimed that the Moon was nothing more than a hologram perpetuated by the US government to fool the global population that we do in fact live in a universe when the truth was we all live on a giant soundstage much like the Truman Show. Jack wouldn't normally bother with such nonsense, but this was a golden opportunity for self preservation. He could hear his father's words echoing in the recesses of his mind. "Keep your character benign. That's how you survive." Jack had always thought fondly of his advice. Recently though, keeping benign was becoming increasingly difficult. He was thirty-three now. During your teens and twenties, one can easily slide under the radar. But now, he had a wife and kid. His impact on the story was becoming less and less covert. If there's one thing Jack had learned is the more impact you have, the greater the odds of being killed off by...well...the writer. Although Jack would never refer to him as that. "God" was still the appropriate name. And if God could kill off his son at thirty-three, Jack new damn well, he better start making some moves in an effort to stay in the narrative.
5
Water is essential for your dog’s digestion, circulation, waste filtering, and body temperature. Your dog should drink about one ounce of water for every pound of weight on a daily basis, though they may need more if they are exercising or if it’s hot outside. To ensure your dog stays hydrated, invest in a quality water bowl and make sure you are hydrating your dog effectively at home and on the go. If you think your pup is experiencing dehydration, bring them to the vet right away. Dehydration can be life threatening if it goes untreated. ## Use a quality water bowl 1. Get a water bowl that is the right size for your dog. Make sure your dog’s water bowl is the right size for them, as a bowl that is too big or too small will limit their access to water. Check that the water bowl is made for a small, medium, or large dog. Get the size that will make it easy for your pup to bend down and drink from the bowl. For example, tall, narrow bowls are ideal for dogs with long ears, such as Bassets and Spaniels. This can help to keep their ears out of the bowl, which can reduce the risk of ear infections. Smaller dogs do well with a water bowl that is low and shallow, as this will make it easier for them to drink from the bowl. A bowl that is big and wide is ideal for medium to large dogs. 2. Buy a weighted water bowl. A weighted water bowl will have a heavier bottom, making them less likely to tip over. This may be a good investment if you are worried about your dog tipping over their water bowl or moving the bowl around and spilling the water while they drink. Look for weighted water bowls online or at your local pet store. Test the water bowl before you give it to your dog to use. Fill it with water and tap or try to tip one side of the bowl. A weighted water bowl should make it harder to do this. 3. Invest in a water fountain. Larger dogs and dogs who are picky about their water may benefit from a water fountain. Most water fountains will filter and recirculate the water so that your dog is drinking fresh, clean water. Some water fountains will also add minerals to the water, such as calcium and magnesium, which can help to keep your dog’s bones and teeth healthy
Water is essential for your dog’s digestion, circulation, waste filtering, and body temperature. Your dog should drink about one ounce of water for every pound of weight on a daily basis, though they may need more if they are exercising or if it’s hot outside. To ensure your dog stays hydrated, invest in a quality water bowl and make sure you are hydrating your dog effectively at home and on the go. If you think your pup is experiencing dehydration, bring them to the vet right away. Dehydration can be life threatening if it goes untreated. ## Use a quality water bowl 1. Get a water bowl that is the right size for your dog. Make sure your dog’s water bowl is the right size for them, as a bowl that is too big or too small will limit their access to water. Check that the water bowl is made for a small, medium, or large dog. Get the size that will make it easy for your pup to bend down and drink from the bowl. For example, tall, narrow bowls are ideal for dogs with long ears, such as Bassets and Spaniels. This can help to keep their ears out of the bowl, which can reduce the risk of ear infections. Smaller dogs do well with a water bowl that is low and shallow, as this will make it easier for them to drink from the bowl. A bowl that is big and wide is ideal for medium to large dogs. 2. Buy a weighted water bowl. A weighted water bowl will have a heavier bottom, making them less likely to tip over. This may be a good investment if you are worried about your dog tipping over their water bowl or moving the bowl around and spilling the water while they drink. Look for weighted water bowls online or at your local pet store. Test the water bowl before you give it to your dog to use. Fill it with water and tap or try to tip one side of the bowl. A weighted water bowl should make it harder to do this. 3. Invest in a water fountain. Larger dogs and dogs who are picky about their water may benefit from a water fountain. Most water fountains will filter and recirculate the water so it is fresh and tastes delicious to your dog. You can buy water fountains online or at your local pet store. ## Hydrate your dog at home 1. Fill your dog’s water bowl daily. Make sure you keep your dog’s water bowl filled with fresh water on a daily basis. Fill it up first thing in the morning when you give your dog their breakfast. Then, check their water bowl throughout the day to make sure it is full. Fill it up again at dinner time, if it needs refilling. Make sure you toss out any old water from the previous day before you fill it up with fresh water. This will ensure the water tastes good to your dog and is free of bacteria. 2. Clean their water bowl regularly. Bacteria can end up sitting on the rim of the water bowl and in any water still in the water bowl. Get in the habit of cleaning your dog’s water bowl on a daily basis. Use soap and water to remove any grime or dirt in the bowl or on the rim. Dry the bowl well before you fill it up with fresh water and set it down for your pup. For example, you may clean the bowl first thing in the morning before filling it up with fresh water. This way, it will stay clean for the rest of the day until you clean it again the following morning. 3. Place water bowls for your dog throughout your home. If your dog likes to roam through your home, make sure you have water sources located throughout the space for them. Put water bowls on each floor of your home. Set up water fountains in several spots in your house so your dog always has access to fresh water. Doing this will ensure your dog never gets dehydrated. Make sure you clean all of your dog’s water sources in your home on a daily basis. This will ensure they do not get dirty or contract any bacteria. 4. Keep the toilet seat down in your home. Prevent your dog from drinking from the toilet bowl by keeping the seat down at all times. The water in your toilet bowl likely contains bacteria and other pathogens that are harmful to dogs. Keeping the seat down will make it difficult for your dog to access the toilet bowl water. It will also encourage them to drink the fresh, clean water from their water bowl instead. If your dog really enjoys drinking from the toilet, consider purchasing a ceramic bowl for them that will mimic the type of “bowl” your toilet is. 5. Switch your dog to wet food. To encourage your dog to stay hydrated, consider switching from dry dog food to wet dog food. Wet dog food contains more water and can help your dog stay hydrated. Add water to their wet food at a 1:1 ratio to help your dog drink more water. You can also try giving your dog two wet food meals and one dry food meal a day. Wet dog food can be more expensive than dry food and requires more preparation time, so this may be a good option if you’re short on time and money. If your dog will eat all of their dry food at one time, you can try adding water to the dry food. Many dogs will consume all of the dog food as well as the water. ## Hydrate your dog on the go 1. Bring bottled water on walks or long trips. Dogs can often get dehydrated when they are out for a long walk or running around outside during a play session. Long car trips can also make your dog thirsty, especially if it is a hot day. Pack bottled water or water jugs and your dog’s water bowl so you can provide fresh water for them on the go. Some dogs can be trained to drink from a squirt bottle. Try to get your dog used to drinking from a squirt bottle so you can bring it with you when you go on a walk or to a dog park. This will make it easier for you to squirt water into your dog’s mouth if they start to get dehydrated. You can also purchase a portable, collapsible dog bowl to take with you on the go. 2. Give your dog ice cubes as treats. Ice cubes are often a fun treat for dogs and can help them stay hydrated. Use ice cubes as a reward when your dog does a trick or follows an obedience command. Pack a cooler of ice cubes on a long trips and give them to your dog periodically to ensure they stay hydrated. To make the ice cubes more appetizing, you can try putting a dog treat in water in the ice cube tray and freeze it overnight. This way, your dog can lick the water, working their way to the treat inside the ice cube. 3. Do not keep your dog tied up outside. Try not to keep your dog chained or tied up outside, especially on hot days. Dogs can end up wrapping their chain or leash around poles or trees, make it impossible for them to access their water bowls. Do not leave your dog tied up unattended for prolonged periods of time. If you do need to keep your dog contained, put them in their crate or kennel with access to a water bottle or a water bowl. This way, they will still be able to access fresh water.
5
What are the differences between your buns and a tin can?
There are two differences between your buns and a tin can. First, your buns were heated to a core temperature of under 100°C. Yes, your oven was probably set way higher, but the water content in your filling prevents it from getting hotter than boiling water. Commercial canning is done in the vicinity of 120-130°C, which is possible because the cans are cooked under pressure. So unlike in a can, most pathogens were destroyed, but not necessarily all of them. For human consumption, that’s perfectly fine as long as the remaining ones don’t get the time-temperature combo to regrow. Second, a bread dough may be dense (although the aim is usually something different), but by no means airtight. Interestingly, wrapping meat in dense dough was used as preservation method in medieval times - the “ancestor” of today’s pork pies and pastries. But while the hard flour crust (not intended to be eaten originally) did form a protective layer and usually extended the shelf life more or less, it was by no means food safe judged by modern standards - although some pies were stored for months. But your fluffy buns are truly not a protective layer. Which means you should refrigerate your buns, but also that you get to enjoy the whole dish.
5
## Reduce and manage pain 1. Take over-the-counter pain meds to help relieve your discomfort. Aspirin and ibuprofen may work well to alleviate some pain and swelling. Follow the recommended dosage on the bottle and don’t exceed the daily limit. If you find your pain doesn’t get better or if you keep taking more and more medication, it may be time to call your doctor. If you take a blood thinner, always check with your doctor before using pain medication. They may want you to take something different so it doesn’t interfere with the blood thinner. Types of Hernias: Almost all hernias will eventually need to be treated through surgery, especially if they’re bulging or causing you a lot of pain. Some of the more common types of hernias include: * Inguinal hernia: This type of hernia is in the groin area; it most often affects men, though women can experience it, too. Femoral hernia: This hernia is located around the top of your inner thigh, caused by part of your intestines pushing through your groin. These are most common among older women. Hiatal hernia: This hernia appears on your abdomen as part of your stomach protrudes into your chest cavity. Umbilical hernia: This occurs when tissue pushes through your abdomen near your belly button. It can affect both infants and adults. 2. Avoid heartburn-causing foods and large meals if you have a hiatal hernia. This is the one type of hernia that sometimes doesn’t need surgery, especially if its symptoms can be managed through diet and over-the-counter antacids. If your symptoms increase over time, though, surgery may become the best solution.Enjoy multiple small meals throughout the day instead of 3 larger ones. This will put less pressure on your stomach so you’re more comfortable all day long. Avoid caffeine, chocolate, garlic, tomatoes, and other fatty or fried foods that can cause heartburn. Don’t lay down after you eat for several hours. 3. Relieve discomfort from an inguinal hernia. If you have an inguinal hernia, you may be able to relieve some of your discomfort by wearing an abdominal support belt. This will help keep your intestines in place
## Reduce and manage pain 1. Take over-the-counter pain meds to help relieve your discomfort. Aspirin and ibuprofen may work well to alleviate some pain and swelling. Follow the recommended dosage on the bottle and don’t exceed the daily limit. If you find your pain doesn’t get better or if you keep taking more and more medication, it may be time to call your doctor. If you take a blood thinner, always check with your doctor before using pain medication. They may want you to take something different so it doesn’t interfere with the blood thinner. Types of Hernias: Almost all hernias will eventually need to be treated through surgery, especially if they’re bulging or causing you a lot of pain. Some of the more common types of hernias include: * Inguinal hernia: This type of hernia is in the groin area; it most often affects men, though women can experience it, too. Femoral hernia: This hernia is located around the top of your inner thigh, caused by part of your intestines pushing through your groin. These are most common among older women. Hiatal hernia: This hernia appears on your abdomen as part of your stomach protrudes into your chest cavity. Umbilical hernia: This occurs when tissue pushes through your abdomen near your belly button. It can affect both infants and adults. 2. Avoid heartburn-causing foods and large meals if you have a hiatal hernia. This is the one type of hernia that sometimes doesn’t need surgery, especially if its symptoms can be managed through diet and over-the-counter antacids. If your symptoms increase over time, though, surgery may become the best solution.Enjoy multiple small meals throughout the day instead of 3 larger ones. This will put less pressure on your stomach so you’re more comfortable all day long. Avoid caffeine, chocolate, garlic, tomatoes, and other fatty or fried foods that can cause heartburn. Don’t lay down after you eat for several hours. 3. Relieve discomfort from an inguinal hernia with a truss. A truss is a supportive undergarment that helps keep your hernia in place—it’s a temporary solution to help relieve pain until you can have surgery. You can buy a truss online, but it’s best to visit your doctor so they can make sure it’s properly fitted. Most inguinal hernias do need surgery to be repaired, but if your hernia is really small and not causing you pain, your doctor may be okay with waiting and keeping an eye on it. Surgery may sound scary, but these procedures usually take less than an hour and should quickly help relieve your pain. 4. Eat a fiber-rich diet to make bowel movements softer and easier to pass. Straining your muscles can aggravate your hernia, and constipation can make things worse. Add lots of fruits and vegetables to your daily diet, and consider taking a fiber supplement to help things move smoothly.Oatmeal, nuts, beans, popcorn, chia seeds, and whole grains are also great high-fiber food choices. 5. Lose weight to take pressure off of your abdomen. This can be helpful for all types of hernias; the less weight you’re carrying around, the less strain your muscles will be under. Try modifying your diet by eating leaner proteins and more fruits and vegetables, and try adding in some gentle exercise every day to lose weight.Hernias can be really uncomfortable and it may be hard for you to imagine exercising. Try going for short 15-minute walks when you can, or go to the pool and slowly swim laps. Be gentle on yourself, though, so you don’t aggravate the hernia more. ## Prevent further damage 1. Avoid lifting bulky or heavy objects that may strain your muscles. Instead of bending over at the waist to pick up heavy items, bend your knees so you’re squatting. Bring the object close to you and then straighten your legs and stand up. Keep the heavy object at chest level and try not to twist and turn too much.For heavy items you can’t lift yourself, consider using a dolly. You wedge the bottom of the dolly under the item, then use your weight to pull on the dolly’s handle to lift the object. From there, you can wheel it wherever it needs to go. 2. Relax while going to the bathroom so you don’t strain your groin area. This is a little counterintuitive, but try to not strain when you have a bowel movement. Take your time and don’t push too hard; instead, let your body slowly work things out—it may take longer than usual, but it’s gentler on your body and can prevent further damage.A high-fiber diet can help prevent hernias as well as manage discomfort if you already have one. Putting your feet up on a short stool may also make those muscles relax and help you go to the bathroom more easily. Add a hot cup of coffee to your morning routine. The heat and caffeine can help things get moving. 3. Strengthen your abdominal muscles to prevent additional hernias. Weak muscles make it easier for your internal organs to break through your abdominal walls. The key to strengthening your core is to do so gently—too much pressure or exertion could actually cause a hernia, so start slow and stop any exercises that cause you pain. Try doing 3 sets of 10 mini crunches every day. Lay on your back with your knees bent and put your hands behind your head. Use your ab muscles to bring your shoulders up off the ground 3 to 4 inches (76 to 102 mm) before carefully lowering yourself back to the ground. Workout at the pool for low-resistance strength training. The support of the water will make it easier for you to exercise without having to strain your abdominals as much. Start slow if you’re new to swimming or doing water exercises, and enjoy your time in the water! Take a beginner’s yoga class to gently stretch and tone your core. 4. Quit smoking to improve lung health and eliminate excessive coughing. There are lots of reasons to quit smoking, and doing so can also help prevent hernias. Chronic coughing strains your muscles in both your abdomen and groin, so start curbing your smoking habit or quit cold turkey. It can be extremely hard to stop smoking. If you’re having a hard time, talk to your doctor. They may be able to provide you with some kind of aid to help make the transition easier. ## Seek medical care 1. See your doctor for an official diagnosis before treating yourself. You will likely recognize the signs and symptoms of a hernia on your own, especially if it’s large. However, it’s easy to misdiagnose yourself, so see your doctor to make sure what you have is a hernia. Your doctor will make a proper diagnosis so you can be sure you’re getting the right treatment.Your doctor will do a physical examination to check for a hernia. They’ll look at the area and may press into it with their hands. In some cases, your doctor may do imaging tests to view the hernia. 2. Talk with your child’s pediatrician if they develop an umbilical hernia. For infants and children under 5, always check with your pediatrician to see what they recommend. Many times, an infant’s hernia will close all on its own over time, but if it hasn’t gone away by the time your child is 5 years old, they may need a small procedure to have it fixed.Umbilical hernias are common with infants, and they usually don’t cause your child any pain or discomfort. 3. Let your doctor know if you have a hernia while you’re pregnant. Because of the extra strain on your body, hernias are fairly common among pregnant women. If you suspect you have a hernia, talk to your doctor so they can check it out. Your doctor will most likely want to wait until after birth and recovery before treating the hernia if you need surgery, but you and your baby should be safe in the meantime.As much as you can, avoid heavy lifting and make sure to eat a high-fiber diet to prevent constipation. 4. Visit your doctor as soon as possible if your hernia looks dark red or purple. This can be a sign that your hernia is strangulated. When this happens, your hernia is cutting off the blood flow to part of your intestine and requires medical treatment. Go to the doctor to make sure you’re okay because you may need emergency treatment.Try your best to not worry or panic—your doctor will be able to fix your hernia. 5. Seek emergency care if you have pain, nausea, vomiting, or blocked bowels. Sometimes a hernia can block off part of your intestines. This means your bowel movements can get caught behind the hernia, causing pain, nausea, vomiting, and bloating. You will likely not be able to pass gas or have a bowel movement. See your doctor or go to the emergency room if this happens because you likely need medical treatment.This is a treatable condition, though it can be really scary at the moment. As soon as you suspect a problem, get medical attention so you can get back to normal as soon as possible. 6. Have a surgical procedure done to correct your hernia and prevent future ones. These procedures are generally pretty quick and you should get to go home that same day. The surgeon will usually make a small incision near the hernia and push it back into place. From there, they will sew and reinforce the tear so that the hernia will be less likely to protrude again.Make sure to follow all recovery instructions after your surgery. You’ll need to take it easy and avoid heavy lifting for a while, and you’ll probably also have pain medication to take.
5
As Jo has already shown, this can be accomplished in 28 steps. This is minimal, and it can be proven. To help visualize this problem, we can imagine: A two-dimensional grid/chart where each point is a number of the form $3^x2^y$, with $(x,y)$ as the relevant co-ordinates. We want to find a path from $(1,9)$ to $(0,0)$ while making only one step up/down/left/right at a time, and ensuring that the numbers we step on have their most significant digit in the set {1,3,4,9}. Here is what the chart looks like for the range $(0,0)$ to $(10,10)$. The dashes represent numbers that do not begin with {1,3,4,9}, and so are unusable in our path. ```1024 3072 9216 ---- ---- ---- ---- ---- ---- ---- ---- .``` ```---- 1536 4608 13824 41472 124416 373248 1119744 3359232 10077696 30233088 .``` ```---- ---- ---- ---- ---- ---- 186624 ---- 1679616 ---- 15116544 .``` ```128 384 1152 3456 10368 31104 93312 ---- ---- ---- ---- .``` ```---- 192 ---- 1728 ---- 15552 46656 139968 419904 1259712 3779136 .``` ```32 96 ---- ---- ---- ---- ---- ---- ---- ---- 1889568 .``` ```16 48 144 432 1296 ---- ---- ---- ---- ---- ---- .``` ```---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- .``` ```---- ---- ---- ----
As Jo has already shown, this can be accomplished in 28 steps. This is minimal, and it can be proven. To help visualize this problem, we can imagine: A two-dimensional grid/chart where each point is a number of the form $3^x2^y$, with $(x,y)$ as the relevant co-ordinates. We want to find a path from $(1,9)$ to $(0,0)$ while making only one step up/down/left/right at a time, and ensuring that the numbers we step on have their most significant digit in the set {1,3,4,9}. Here is what the chart looks like for the range $(0,0)$ to $(10,10)$. The dashes represent numbers that do not begin with {1,3,4,9}, and so are unusable in our path. ```1024 3072 9216 ---- ---- ---- ---- ---- ---- ---- ---- .``` ```---- 1536 4608 13824 41472 124416 373248 1119744 3359232 10077696 30233088 .``` ```---- ---- ---- ---- ---- ---- 186624 ---- 1679616 ---- 15116544 .``` ```128 384 1152 3456 10368 31104 93312 ---- ---- ---- ---- .``` ```---- 192 ---- 1728 ---- 15552 46656 139968 419904 1259712 3779136 .``` ```32 96 ---- ---- ---- ---- ---- ---- ---- ---- 1889568 .``` ```16 48 144 432 1296 3888 11664 34992 104976 314928 944784 .``` ```---- ---- ---- ---- ---- 1944 ---- 17496 ---- 157464 472392 .``` ```4 12 36 108 324 972 ---- ---- ---- ---- ---- .``` ```---- ---- 18 ---- 162 486 1458 4374 13122 39366 118098 .``` ```1 3 9 ---- ---- ---- ---- ---- ---- 19683 ---- .``` From here, we can see two different routes of 28 steps each: (1536->373248->93312->384->48->3888->972->36->9->1) and (1536->373248->46656->3779136->944784->3888->972->36->9->1). Proving minimality: Since a path of length 28 exists (we've found two), we can rule out anything that's too far away to be used in a shortest path. Moving from (1,9) to (0,0) must take at least ten steps on its own, so we can move at most nine steps completely out of the way (and nine steps back) in a shortest route. That limits us to only considering x-coordinates up to 10; any further would require making at least ten '*3' steps, eleven '÷3' steps, and at least nine '÷2' steps, putting the route definitely longer than 28. With our x-coordinate limited to [0,10], we now look at the bottlenecks. It should be clear that any shortest route must start by going from 1536 to 93312 in seven steps, and must end by going from 3888 to 1 in nine steps. These are both forced by unique bottlenecks; there is only one way to step from $(x,7)$ to $(x,6)$ and only one way to step from $(x,3)$ to $(x,2)$ in this range. This leaves at most twelve steps to go from 93312 to 3888. Either by observation or by pointing out that there are only two ways to go from $(x,6)$ to $(x,5)$, we can see that there are exactly two shortest routes from 93312 to 3888, and both require all twelve steps. Therefore, the shortest route is 28 steps, and there are exactly two ways to do so, both of which are described in Jo's solution and below the chart.
5
What is the answer to the riddle: My prefix is food. My suffix is rude. My infix comes in rounds. I keep you off the ground.
The answer to the riddle is "hammock". Here’s a line-by-line explanation: My prefix is food. “hammock” starts with “ham”, which is something you eat. My suffix is rude. “hammock” ends with “mock”, and mocking is considered rude. My infix comes in rounds. If you take the word “hammock”, remove the “h” from its start and remove the “ck” from its end, you get the word “ammo”. And ammo tends to come in rounds. I keep you off the ground. a hammock keeps the person using it of the ground.
5
If you want performance, pass by value if you are storing it. Suppose you have a function called "run this in the UI thread". ```std::future run_in_ui_thread( std::function ) ``` which runs some code in the "ui" thread, then signals the ```future``` when done. (Useful in UI frameworks where the UI thread is where you are supposed to mess with UI elements) We have two signatures we are considering: ```std::future run_in_ui_thread( std::function ) // (A) std::future run_in_ui_thread( std::function const& ) // (B) ``` Now, we are likely to use these as follows: ```run_in_ui_thread( [=]{ // code goes here } ).wait(); ``` which will create an anonymous closure (a lambda), construct a ```std::function``` out of it, pass it to the ```run_in_ui_thread``` function, then wait for it to finish running in the main thread. In case (A), the ```std::function``` is directly constructed from our lambda, which is then used within the ```run_in_ui_thread```. The lambda is ```move```d into the ```std::function```, so any movable state is efficiently carried into it. In the second case, a temporary ```std::function``` is created, the lambda is ```move```d into it, then that temporary ```std::function``` is used by reference within the ```run_in_ui_thread```. So far, so good -- the two of them perform identically. Except the ```run_in_ui_thread``` is going to make a copy of its function argument to send to the ui thread to execute! (it will return before it is done with it, so it cannot just use a reference to it). For case (A), we simply ```move``` the ```std::function``` into its long-term storage. In case (B), we are forced to copy the ```std::function```. That store makes passing by value more optimal. If there is any possibility you are storing a copy of the ```std::function```, pass by value. Otherwise, either way is roughly equivalent: the only downside to by-value is that you have to make a copy of the ```std::function``` if you pass it by reference.
If you want performance, pass by value if you are storing it. Suppose you have a function called "run this in the UI thread". ```std::future run_in_ui_thread( std::function ) ``` which runs some code in the "ui" thread, then signals the ```future``` when done. (Useful in UI frameworks where the UI thread is where you are supposed to mess with UI elements) We have two signatures we are considering: ```std::future run_in_ui_thread( std::function ) // (A) std::future run_in_ui_thread( std::function const& ) // (B) ``` Now, we are likely to use these as follows: ```run_in_ui_thread( [=]{ // code goes here } ).wait(); ``` which will create an anonymous closure (a lambda), construct a ```std::function``` out of it, pass it to the ```run_in_ui_thread``` function, then wait for it to finish running in the main thread. In case (A), the ```std::function``` is directly constructed from our lambda, which is then used within the ```run_in_ui_thread```. The lambda is ```move```d into the ```std::function```, so any movable state is efficiently carried into it. In the second case, a temporary ```std::function``` is created, the lambda is ```move```d into it, then that temporary ```std::function``` is used by reference within the ```run_in_ui_thread```. So far, so good -- the two of them perform identically. Except the ```run_in_ui_thread``` is going to make a copy of its function argument to send to the ui thread to execute! (it will return before it is done with it, so it cannot just use a reference to it). For case (A), we simply ```move``` the ```std::function``` into its long-term storage. In case (B), we are forced to copy the ```std::function```. That store makes passing by value more optimal. If there is any possibility you are storing a copy of the ```std::function```, pass by value. Otherwise, either way is roughly equivalent: the only downside to by-value is if you are taking the same bulky ```std::function``` and having one sub method after another use it. Barring that, a ```move``` will be as efficient as a ```const&```. Now, there are some other differences between the two that mostly kick in if we have persistent state within the ```std::function```. Assume that the ```std::function``` stores some object with a ```operator() const```, but it also has some ```mutable``` data members which it modifies (how rude!). In the ```std::function const&``` case, the ```mutable``` data members modified will propagate out of the function call. In the ```std::function``` case, they won't. This is a relatively strange corner case. You want to treat ```std::function``` like you would any other possibly heavy-weight, cheaply movable type. Moving is cheap, copying can be expensive.
5
What is a possible lesson plan for teaching students about the bodies of water?
Here is a possible lesson plan for teaching students about the bodies of water. ##Lesson Plan: Bodies of Water ###Introduction (5 minutes) * Write the following words on the board: ocean, gulf, bay, inlet, river, and lake. * Ask your students if they know what those words mean. ###Teacher Instruction (15 minutes) * Define each body of water type on the board. * Provide an example for each type. Ask students to suggest one additional example for each body of water. ###Independent Working Time (10 minutes) * Provide a map of a local or famous area that includes an ocean, a bay, and a river. * Ask your students to draw arrows to show how water flows through the different bodies of water on the map. ###Guided Work (10 minutes) * Display the map on the board using a projector. * Ask students to come up to the board and draw the flow of water. ###Conclusion (5 minutes) * Go around the class and ask your students to state a fact about any body of water.
5
## The basics 1. Start with a short slackline. The shorter the distance between the two anchor points, the more stable the slackline. As the slackline gets longer, a few things happen: * The tension in the line increases, making dismounts more dangerous due to the extra force; * The height of the line off the ground increases to allow for greater sag when weighted; * It requires more force to tighten it, which can be difficult with some tightening systems. 2. Place one foot lengthwise in the middle of the slackline. Starting barefoot is a good idea. Using bare feet will allow you to feel the line better and find your balance more quickly. Step on the line so that it runs from between your big toe and second toe back to the middle of the heel. As you improve, practice turning your feet and standing sideways, with your shoulders parallel to the line. Once you improve (or if the landing is not safe for bare feet), you may want to switch to shoes since they provide greater protection when attempting tricks and landing. 3. You can mount the slackline at any point, but starting in the middle is generally safer, since it is usually away from obstacles you might hit when falling. The line is also lower to the ground in the middle once weighted, reducing the height of the falls. Practice from the same place each time since the slackline oscillates differently at different distances from the anchors. The wobbles are faster and smaller near the anchors and slower and larger near the middle. But wherever you start, it is going to wobble a lot. This is natural; everyone wobbles the first time. 4. Take a couple deep breaths and settle yourself. If you are relaxed, your foot will be less shaky on the line. 5. Focus intently on a single point, such as the anchor. This will help you find and keep your balance. Resist the temptation to look straight down at your feet on the line. Looking down at the wobbling line will simply make you wobble as well. Look ahead instead of down at the line. 6. Put your arms out wide, slightly bent and keep an upright posture. 7. Center your weight directly over the foot on the line. With one smooth, balanced motion stand up on that leg and shift your weight to the other foot. 8. Repeat steps 6 and 7 until you can stand on the slackline without wobbling. 9. Once you can stand on the slackline without wobbling, you
## The basics 1. Start with a short slackline. The shorter the distance between the two anchor points, the more stable the slackline. As the slackline gets longer, a few things happen: * The tension in the line increases, making dismounts more dangerous due to the extra force; * The height of the line off the ground increases to allow for greater sag when weighted; * It requires more force to tighten it, which can be difficult with some tightening systems. 2. Place one foot lengthwise in the middle of the slackline. Starting barefoot is a good idea. Using bare feet will allow you to feel the line better and find your balance more quickly. Step on the line so that it runs from between your big toe and second toe back to the middle of the heel. As you improve, practice turning your feet and standing sideways, with your shoulders parallel to the line. Once you improve (or if the landing is not safe for bare feet), you may want to switch to shoes since they provide greater protection when attempting tricks and landing. 3. You can mount the slackline at any point, but starting in the middle is generally safer, since it is usually away from obstacles you might hit when falling. The line is also lower to the ground in the middle once weighted, reducing the height of the falls. Practice from the same place each time since the slackline oscillates differently at different distances from the anchors. The wobbles are faster and smaller near the anchors and slower and larger near the middle. But wherever you start, it is going to wobble a lot. This is natural; everyone wobbles the first time. 4. Take a couple deep breaths and settle yourself. If you are relaxed, your foot will be less shaky on the line. 5. Focus intently on a single point, such as the anchor. This will help you find and keep your balance. Resist the temptation to look straight down at your feet on the line. Looking down at the wobbling line will simply make you wobble as well. Look ahead instead of down at the line. 6. Put your arms out wide, slightly bent and keep an upright posture. 7. Center your weight directly over the foot on the line. With one smooth, balanced motion stand up on that leg. 8. Balance on one foot, while using your arms and other leg to help maintain your balance. 9. Bend the leg that is on the slackline. Bending your leg lowers your center of gravity slightly, and allows you to more easily find your balance and absorb the movements of the line. 10. Continue to wave your free arms and legs around to help you balance. Sometimes you will twist and turn your body into all sorts of positions to keep your balance. Once you have caught your balance slowly move your body back to center with your arms up and out, knee(s) bent, head up, and eyes focused on a single point. 11. Repeat these steps until you can balance for at least 15 seconds. 12. Practice with the other foot. Once you can keep your balance, attempt taking a step. 13. Once you've successfully taken your first step, keep practicing! ## Sample skill progression for beginners 1. These are small steps you can take to improve your slack lining effectively, by slowly taking on harder and harder tasks. Mount the line on one foot with a friend sitting on the line. Increase the distance between you and the person sitting on the line. Balance on one foot by yourself. Balance on the other foot. Balance with both feet, one behind the other, on the line. Take small steps forward. Take small steps backwards. Mount the line sideways (shoulders parallel to the line) with both feet, one at a time. Turn on the line. 2. Additionally, learn how to fall safely. As a beginner you will likely be on a short, low-to-the-ground slackline. Most of the time you can land on your feet. As you try new tricks, the slackline can "throw" you as you lose your balance. The best solution is to use the "throw" of the slackline to help you get away from the line and land on your feet. If you are thrown off-balance from the line consider rolling through the fall to limit the impact. 3. You can also try starting with "training wheels." One way to do so is to have a friend sit on the line a few feet away from you. This takes much of the sway and bounce out of the line. As you get better, have your friend move further away on the line to allow for more wobble. When starting out, you can aid each other while learning to balance--have a spotter stand/walk next to the line. If you practice walking back and forth with a shoulder to lean on, you’ll soon find that you don’t need training wheels any more!
5
Parents are supposed to love, guide and protect their children. They are supposed to help them grow and develop as independent people. Unfortunately, some parents mistreat, abuse, neglect, or abandon their children instead. Feeling like your parents don't love you hurts emotionally and sometimes physically. The best way to get past it is to accept that you cannot change other people and focus on yourself. ## Develop cop mechanisms 1. Talk to a trustworthy friend or family member. Sometimes just talking to someone about what you are dealing with can make you feel better. Try talking to a trustworthy friend or family member about what has been happening in your home life. For example, you could try talking with a close friend about the way that your parents make you feel. Choose someone you feel comfortable talking to and who you know will not turn around and repeat what you said to your parents. Try to avoid becoming too dependent on this person for your emotional needs. Just talk when you need someone to listen to you. If you find yourself calling several times a day for reassurance, then you may be developing a codependent relationship with this person. Talk to your school counselor or therapist if you find yourself depending more and more on other people for validation. 2. Find a mentor. Mentors can guide you through important life decisions and teach you things that your parents are not willing or able to teach you. You can find a mentor to help you learn new skills for navigating difficult situations, succeeding in school, or advancing your professional career. Try asking a trustworthy, responsible adult in your life to mentor you, such as a coach, a teacher, or a boss. If your coach or boss offers to mentor you, make sure that you take him or her up on that offer; however, you can also try asking someone to mentor you, such as by saying, “I admire your success in life and I hope to achieve many of the same things you have someday. I am not sure how to get there. Would you be willing to mentor me?” * Try to avoid becoming too dependent on your mentor. Keep in mind that a mentor cannot replace your parents you should not look to this person for parental guidance. A mentor is just someone who can help you reach your goals in school, work, or in your personal life. * If you find yourself relying on your mentor for emotional support, then you may be developing a codependent relationship with this person. Talk to your school counselor or therapist if you
Parents are supposed to love, guide and protect their children. They are supposed to help them grow and develop as independent people. Unfortunately, some parents mistreat, abuse, neglect, or abandon their children instead. Feeling like your parents don't love you hurts emotionally and sometimes physically. The best way to get past it is to accept that you cannot change other people and focus on yourself. ## Develop cop mechanisms 1. Talk to a trustworthy friend or family member. Sometimes just talking to someone about what you are dealing with can make you feel better. Try talking to a trustworthy friend or family member about what has been happening in your home life. For example, you could try talking with a close friend about the way that your parents make you feel. Choose someone you feel comfortable talking to and who you know will not turn around and repeat what you said to your parents. Try to avoid becoming too dependent on this person for your emotional needs. Just talk when you need someone to listen to you. If you find yourself calling several times a day for reassurance, then you may be developing a codependent relationship with this person. Talk to your school counselor or therapist if you find yourself depending more and more on other people for validation. 2. Find a mentor. Mentors can guide you through important life decisions and teach you things that your parents are not willing or able to teach you. You can find a mentor to help you learn new skills for navigating difficult situations, succeeding in school, or advancing your professional career. Try asking a trustworthy, responsible adult in your life to mentor you, such as a coach, a teacher, or a boss. If your coach or boss offers to mentor you, make sure that you take him or her up on that offer; however, you can also try asking someone to mentor you, such as by saying, “I admire your success in life and I hope to achieve many of the same things you have someday. I am not sure how to get there. Would you be willing to mentor me?” * Try to avoid becoming too dependent on your mentor. Keep in mind that a mentor cannot replace your parents you should not look to this person for parental guidance. A mentor is just someone who can help you reach your goals in school, work, or in another specific area of your life. 3. Seek help from a therapist or school counselor. Learning to cope with your parents’ behavior can be difficult, so you may need to seek help from a therapist or school counselor. A therapist or your school counselor can help you to develop coping mechanisms and begin to feel better about yourself. If your school has a counselor, stop by and see if you can make an appointment to talk. If you feel uncomfortable doing this or you're not sure how to go about it, talk to a teacher you trust. You may also try asking your counselor if you can see a therapist by saying something like, “I have been struggling with some things lately, and I would like to see a therapist to talk about them. Can you help me find one?” * Keep in mind that if your parents are abusing you, then your therapist or school counselor will be required to report it. 4. Resist comparing how they treat you and your siblings. If your parents seem to favor a sibling over you, it doesn’t mean they love one of you any more or less. There could be a situational reason why they treat your sibling with more thoughtfulness or effort. Most of the time it is also unintentional, and your parents may not even realize they are treating you differently. Most aren’t trying to make you feel unloved but aren’t aware of how their actions affect kids mentally and emotionally. Try not to focus on how your parents treat your siblings. Instead, just focus on your relationship with them 5. Try not to take it personally. It can be hard to dismiss criticism and hurtful language from people who are supposed to love you, even if you know that what they are saying isn’t true. Remember that your parents’ behavior and words is about them and not about you. The next time one of your parents says something mean or does something to hurt you, try telling yourself, “I am a good person who is lovable, beautiful and worthy. My parents are just struggling with personal issues and that is why they said/did that.” 6. Be kind to yourself. Some children who are mistreated by their parents treat themselves badly as well, such as by cutting, using alcohol or drugs, or intentionally failing at school. Performing these unhealthy, harmful activities will not make you feel better in the long run. Instead of doing these things, make sure that you nurture yourself, such as by: * * Maintaining a healthy diet. Exercising moderately most days of the week. Starting a daily meditation practice. Not smoking and not using drugs or alcohol. 7. Replace negative self-talk with self-love. People who grow up in unloving households may be more prone to negative self-talk and have low self-esteem. To train your mind to think positive things about yourself, replace the negative thoughts with positive ones. For example, if you hear yourself repeating something your parents said like “You’re stupid if you can’t figure out division problems,” you might replace it with: “Learning long division is challenging, but I can succeed by working hard at it. I can also ask my math teacher for help." 8. Write yourself a positivity cheat sheet. It may help you to examine any negative thoughts that are interfering with your ability to love yourself and write some positive thoughts to replace them. To get started, make a chart with four columns. In the first column, make a list of your negative beliefs. These might include things like, “I am not good at making decisions,” or, “I am not very smart.” * In the second, explain why you believe these things. Did your parents tell you these things or do things to cause you to feel this way? In the third column, think about what believing this is costing you emotionally and in your personal life: are you depressed, withdrawn, afraid to try new things and fail, afraid to trust others or let people in, etc.? List briefly but specifically what you are missing out on by letting yourself continue believing this negative self-image. Then for the final column, rewrite the thought to make it positive. For example, you might change a thought about your intelligence to something like, “I am an intelligent, capable person and I have accomplished many things using my brain.” 9. Get out of the house more. Developing a happy, full life outside of your home will help you to feel happier even if your home life is not happy. Finding valuable ways that you can contribute to the world while being an active part of your community can help you rebuild your self-worth and confidence by focusing your attention on your well-being and happiness. Try volunteering for a local non-profit organization, getting a job that you will enjoy, or joining a youth organization or sports team. ## Stay healthy and safe 1. Report any physical or sexual abuse. If you are being abused, then seek help right away. Talk to a teacher, your doctor, a counselor, or call the police or children’s services and ask for help. Chronic abuse gets harder to recover from the longer it goes on. Don’t allow abusive people, even family, to cause you permanent physical or emotional damage. Get away from them as soon as possible. Call the National Domestic Violence Hotline at (800) 799-SAFE to talk about your situation and options. Don't hesitate to dial 911 if you think you or another family member is in immediate danger. You aren’t going to get in trouble for reporting that someone else is breaking the law! 2. Sever your relationship, if possible. If you are able to break ties with your abusive parent, do so. It is hard to give up on anyone you care about, especially family, but your primary responsibility is to take care of yourself. Don’t feel guilty for severing contact with your parent(s) if you feel it’s the best thing for you. If you are not sure cutting off all contact is necessary, consider the amount of pain they cause you vs. the amount of happiness. Dysfunctional parents may show love sometimes, typically when it serves their own interests, but a little love now and then isn’t enough to justify staying in a bad relationship with anyone. 3. Resist the urge to isolate yourself from peers and other adults. You might think avoiding relationships altogether will prevent you from getting hurt any more or by anyone else, but human beings need social relationships to thrive. Children who grow up without a loving parent or an alternative parental figure are less successful, less happy, and physically sicker as adults. Keep talking to your friends and other family members regularly, go spend time with them whenever possible, and be open to meeting new friends and trustworthy adults. Not every adult or loved one will end up treating you like your parent does. Don’t be afraid to give others a chance to love you. Long-term loneliness can have serious health effects, worsening or even maybe causing diseases like diabetes, heart disease, and neurological disorders. It may even cause cancer to spread faster. 4. Learn how to be independent. If your dysfunctional parents aren’t teaching you how to make it on your own after high school, ask another adult you trust how to prepare for the "real world." Learn this like how to create a budget, how to do laundry, how to turn on the water heater in your first apartment. Estimate the costs of independent living and what you will need to get started. Get a job and save up money for a security deposit on your first apartment and some furniture. Maintain good grades despite trouble at home so you have the option of going to college. Ask your school counselor to help you find scholarships to pay for it. ## Recognize toxic parent 1. Consider how your parents respond to your accomplishments. One sign of a toxic parent-child relationship is if your parents do not acknowledge your accomplishments in appropriate ways. This could mean that your parents either refuse to acknowledge when you accomplish something, or that your parents dismiss your accomplishments. Some parents may even ridicule your accomplishments. For example, if you get a good grade on a test, your parents should congratulate you for this accomplishment. If your parents are toxic, then they might ignore what you said, change the subject, make fun of you for being a nerd, or say something like, “So what? It’s just a test.” 2. Think about any controlling behaviors that your parents use. It is normal for parents to want to guide you, but parents who try to control your behavior may be toxic. This may range from small decisions like what to wear to school to larger decisions like where to go to college or what to major in. If you think that your parents exert a high amount of control over your decisions, then they may be toxic. For example, a parent who encourages you to make your own decisions might ask you questions about where you want to go to college and why; however, a parent who is exerting control over your decisions might tell you where you are going to attend college. 3. Note a lack of emotional connection. Parents who have healthy relationships with their children show their emotional bond by making eye contact with their children, smiling at them, and offering affection in the form of hugs. If your parents have toxic behaviors, then they might not do any of these things. For example, a parent who shows appropriate emotional connection with his child might comfort her if she is crying; however, a parent who lacks an emotional connection with his child might ignore the child or yell at her to stop crying. 4. Consider the boundaries between you and your parents. Healthy boundaries are important in parent-child relationships. If you have good boundaries with your parent, then you should not feel like your lives are one and the same. For example, a parent who has healthy boundaries with her child might ask how her child's friends are doing, but would not insist on hanging out with her child and his friends. 5. Reflect on any verbal abuse you have suffered. Verbal abuse is another form of toxic parenting. If your mother or father call you names, put you down, or just say things to hurt your feelings, then these are all forms of verbal abuse. For example, your parents should say things to build you up and make you feel good about yourself; however, you would feel bad if your parent said something like, “You’re worthless!” or, “I can’t stand to be in the same room with you!” * Some parents will be kind and reassuring one day and then mean and critical the next day. But keep in mind that this is still verbal abuse, even if your parents are not always cruel to you. 6. Identify narcissistic behaviors. Parents who are too focused on themselves to notice their children or to treat them properly can also be toxic. If your parents ignore you completely or only acknowledge you when you are doing something that they can brag about to friends, then this is an example of narcissistic parenting and it is toxic. For example, your parents should encourage you in your interests. A narcissistic parent, however, might only pay attention to you if your interests give him something to brag about, such as by telling all of his friends that you won a scholarship, even though he never asks about your studies or encourages you. Some narcissistic parents may have a personality disorder (PD). A person with PD displays self-centeredness, refusal to accept personal responsibility, constant self-justification, a strong sense of entitlement, and shallow emotions. A parent with PD might treat children like a burden or roadblock to her own personal goals. She will typically rely on emotional manipulation to control her kids. People with PD are often hypercritical of their children and can be physically abusive or prone to endangering their child’s welfare. 7. Think about any parenting roles you played. Some parents are too immature or have other problems (such as addiction) that make it hard for them to be effective parents, so a child ends up taking on some parenting duties. Consider whether you had to take on any parenting roles because your parent was not able or willing to care for you and/or your siblings. These may include things like cooking, cleaning, and caring for other children. Sometimes parents assign cooking and cleaning chores to teach children responsibility, but toxic parents may heap many responsibilities on one child to avoid having to do these things themselves. For example, a toxic parent who does not want to cook or clean may shirk these responsibilities and force one of his children to do all of the cooking and cleaning instead. 8. Judge their behavior over what they say. Some children feel unloved even though their parents say that they love them regularly, because they don’t see this love reflected in how they are treated. Make sure you aren’t assuming you know how your parents feel about you without good reason. For example, a parent who regularly says “I love you,” but who often ignores her children is not behaving in a way that shows love. Likewise, a parent who says that she wants her children to be independent, but never allows them to make any decisions is not behaving in a way that demonstrates what she says she wants.
5
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. ## Match paint with 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
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.
5
What is the new warning added in Git 2.27?
This is a new warning added in Git 2.27: * "git pull" issues a warning message until the pull.rebase configuration variable is explicitly given, which some existing users may find annoying---those who prefer not to rebase need to set the variable to false to squelch the warning. To remove the warning, set one of the suggested values to your preferred default behaviour for git pull if you don't specify behaviour on the command line (using --ff, --no-ff, --ff-only, --rebase). In all cases, git will attempt a fast-forward merge if possible. The settings control what happens when there are changes in your branch but not present in the remote branch. ``` git config pull.rebase false # merge (the default strategy) ``` This is the existing default behaviour; set this for no warning, and no change in behaviour; git will merge the remote branch into your local one. ``` git config pull.rebase true # rebase ``` Here, git will attempt to rebase your changes on top of the remote branch. ``` git config pull.ff only # fast-forward only ``` If a fast-forward merge is not possible, git will refuse to proceed. > Refuse to merge and exit with a non-zero status unless the current HEAD is already up-to-date or the merge can be resolved as a fast-forward
5
How do you strengthen a theorem?
Suppose you have a theorem that says "If $X$, then $Y$." There are two ways to strengthen such a theorem: * Assume less. If you can reduce the number of hypotheses, but still prove the same conclusion, then you have proved a more "powerful" result (in the sense that it applies in more situations). * Prove more. If you can keep the same hypotheses, but add more information to the conclusion, then you have also produced a more "powerful" result. Here is an easy example from Geometry. Let $ABCD$ be a (non-square) rectangle. Then the internal angle bisectors of the vertices intersect at four points $WXYZ$, which are the vertices of a rectangle. (You need the condition that $ABCD$ is not a square because if it is a square then all four angle bisectors coincide at a single point.) Here are a few ways to strengthen the theorem: * The hypothesis "$ABCD$ is a (non-square) rectangle" can be relaxed to the more general "$ABCD$ is a (non-rhombic) parallelogram". The conclusion that $WXYZ$ is a rectangle still holds. * Alternatively, you can keep the original hypothesis that $ABCD$ is a (non-square) rectangle, and strengthen to the conclusion to say that $WXYZ$ is not just a rectangle, but a square. * Having done that, you can then strengthen the conclusion of the theorem even more, by noting that the diagonal of square $WXYZ$ is equal in length to the difference of the lengths of the sides of $ABCD$. * Once you know that, you can now strengthen the theorem even more by (finally) removing the hypothesis that $ABCD$ is non-square, and including the case in which the four angle bisectors coincide at a single point as forming a "degenerate" square with a diagonal of length zero.
5
I'm not aware of any blanket prohibition, anywhere, that say that you can't use code developed during a PhD for a commercial venture - but most Universities in the US will have some kind of intellectual property agreement in place to state what the process is for doing this. You will need to check with officials at your University to see what agreements you are subject to - but you should go a step farther than this. Specifically, you should see what departments might exist that can actually help you. In the US at least - and I'm sure many other institutions around the world - there are departments specializing in intellectual property, "knowledge transfer", corporate spin-offs, start-ups, entrepreneurship, etc. These can be a rich source of support and networking, if they are available to you, even if you have intellectual property agreements that assign various rights to the University. Universities want to earn money for these projects, as I'm sure you do as well, and 100% of $0 is $0. Universities often heavily facilitate the process of converting this work into money, and it is not abnormal for even a place that has heavily restricted intellectual rights assignments agreements to assign use rights and royalty agreements that have zero cost for the first $200,000+ US dollars in income. There are often even startup grants available, accelerators (even if they are not called that - places that provide space and equipment to help starting businesses), introductions to investors, showcases, and more. You won't know until you ask and look for them, as where they are located tends to vary heavily by institution. For the exact nature of the agreements that apply to you, we can't say; I've seen everything from "the student owns their own work" to "anyone funded assigns all rights and ownership to the University", and I'm sure there are agreements everywhere in between. You are right to check them out in advance of a major decision, but this is so specific that you'll need to talk with multiple people are your specific institution to see what applies to you. You may also need to speak with an outside legal professional (lawyer experienced in this area, etc) to verify, but your local administrators are your best first point of contact to see how things work at your institution.
I'm not aware of any blanket prohibition, anywhere, that say that you can't use code developed during a PhD for a commercial venture - but most Universities in the US will have some kind of intellectual property agreement in place to state what the process is for doing this. You will need to check with officials at your University to see what agreements you are subject to - but you should go a step farther than this. Specifically, you should see what departments might exist that can actually help you. In the US at least - and I'm sure many other institutions around the world - there are departments specializing in intellectual property, "knowledge transfer", corporate spin-offs, start-ups, entrepreneurship, etc. These can be a rich source of support and networking, if they are available to you, even if you have intellectual property agreements that assign various rights to the University. Universities want to earn money for these projects, as I'm sure you do as well, and 100% of $0 is $0. Universities often heavily facilitate the process of converting this work into money, and it is not abnormal for even a place that has heavily restricted intellectual rights assignments agreements to assign use rights and royalty agreements that have zero cost for the first $200,000+ US dollars in income. There are often even startup grants available, accelerators (even if they are not called that - places that provide space and equipment to help starting businesses), introductions to investors, showcases, and more. You won't know until you ask and look for them, as where they are located tends to vary heavily by institution. For the exact nature of the agreements that apply to you, we can't say; I've seen everything from "the student owns their own work" to "anyone funded assigns all rights and ownership to the University", and I'm sure there are agreements everywhere in between. You are right to check them out in advance of a major decision, but this is so specific that you'll need to talk with multiple people are your specific institution to see what applies to you. You may also need to speak with an outside legal professional (lawyer experienced in this area, etc) to verify, but your local administrators are your best first point of contact to see how things work.
5
The puzzle known as N queens is a problem that involves placing N chess queens on an N×N chessboard such that no two queens are capable of threatening each other. This means that a valid solution must ensure that no two queens are positioned on the same row, column, or diagonal of the board. ``` // C# code to for n Queen placement using System; class GfG { static void breakLine() { Console.Write("\n---------------------------------\n"); } // maximum size of the chessboard static int MAX = 10; // array to store queen placements static int[] arr = new int[MAX]; // variable to count the number of solutions found static int no; // recursive function to find solutions static void nQueens(int k, int n) { // try all possible positions for queen in the current row for (int i = 1; i <= n; i++) { // check if queen can be placed at the current position if (canPlace(k, i)) { // place the queen at the current position arr[k] = i; // if all queens are placed, display the solution if (k == n) { display(n); } else { // recursively try to place remaining queens nQueens(k + 1, n); } } } } // helper function to check if queen can be placed at the current position static bool canPlace(int k, int i) { for (int j = 1; j <= k - 1; j++) { // check if queen is already placed in the same column or diagonal if (arr[j] == i || (Math.Abs(arr[j] - i) == Math.Abs(j - k))) { return false; } } return true; } // function to display the solution static void display(int n) { breakLine(); for (int i = 1; i <= n; i++) { Console.Write(arr[i] + " "); } Console.WriteLine();
The puzzle known as N queens is a problem that involves placing N chess queens on an N×N chessboard such that no two queens are capable of threatening each other. This means that a valid solution must ensure that no two queens are positioned on the same row, column, or diagonal of the board. ``` // C# code to for n Queen placement using System; class GfG { static void breakLine() { Console.Write("\n---------------------------------\n"); } // maximum size of the chessboard static int MAX = 10; // array to store queen placements static int[] arr = new int[MAX]; // variable to count the number of solutions found static int no; // recursive function to find solutions static void nQueens(int k, int n) { // try all possible positions for queen in the current row for (int i = 1; i <= n; i++) { // check if queen can be placed at the current position if (canPlace(k, i)) { // place the queen at the current position arr[k] = i; // if all queens are placed, display the solution if (k == n) { display(n); } else { // recursively try to place remaining queens nQueens(k + 1, n); } } } } // helper function to check if queen can be placed at the current position static bool canPlace(int k, int i) { for (int j = 1; j <= k - 1; j++) { // check if queen is already placed in the same column or diagonal if (arr[j] == i || (Math.Abs(arr[j] - i) == Math.Abs(j - k))) { return false; } } return true; } // function to display the solution static void display(int n) { breakLine(); Console.Write("Arrangement No. " + ++no); breakLine(); for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { // print '_' for empty cell and 'Q' for cell with queen if (arr[i] != j) { Console.Write("\t_"); } else { Console.Write("\tQ"); } } Console.WriteLine(""); } breakLine(); } // Driver code to initialize the problem and call the recursive function public static void Main(String[] args) { int n = 4; // size of the chessboard nQueens(1, n); } } ``` The above code will print the following output: ``` --------------------------------- Arrangement No. 1 --------------------------------- _ Q _ _ _ _ _ Q Q _ _ _ _ _ Q _ --------------------------------- --------------------------------- Arrangement No. 2 --------------------------------- _ _ Q _ Q _ _ _ _ _ _ Q _ Q _ _ --------------------------------- ```
5
What is the difference between rgb(10%, 20%, 30%) and rgb(0.1, 0.2, 0.3)?
If you convert RGB -> grayscale with slightly different numbers / different methods, you won't see much difference at all on a normal computer screen under normal lighting conditions -- try it. ### RGB -> ^gamma -> Y -> L* In color science, the common RGB values, as in html rgb( 10%, 20%, 30% ), are called &quot;nonlinear&quot; or Gamma corrected. &quot;Linear&quot; values are defined as ```Rlin = R^gamma, Glin = G^gamma, Blin = B^gamma ``` where gamma is 2.2 for many PCs. The usual R G B are sometimes written as R' G' B' (R' = Rlin ^ (1/gamma)) (purists tongue-click) but here I'll drop the '. Brightness on a CRT display is proportional to RGBlin = RGB ^ gamma, so 50% gray on a CRT is quite dark: .5 ^ 2.2 = 22% of maximum brightness. (LCD displays are more complex; furthermore, some graphics cards compensate for gamma.) To get the measure of lightness called ```L*``` from RGB, first divide R G B by 255, and compute ```Y = .2126 * R^gamma + .7152 * G^gamma + .0722 * B^gamma ``` This is ```Y``` in XYZ color space; it is a measure of color &quot;luminance&quot;. (The real formulas are not exactly x^gamma, but close; stick with x^gamma for a first pass.) Finally, ```L* = 116 * Y ^ 1/3 - 16 ``` &quot;... aspires to perceptual uniformity [and] closely matches human perception of lightness.&quot; -- Wikipedia Lab color space
5
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 you hit “Return.”
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”
5
What changes would you make to school education if you were in charge?
If I were in charge of reforming school education, here are some changes I would make: * Reduce standardized tests and eliminate the stigma associated with failing them. The focus on testing is harmful in so many ways. It encourages teaching to the test and rote learning. It leads to gaming the system by teachers and students. It leads to a narrowing of the curriculum as schools focus on the subjects that are tested. It discriminates against kids who aren't good at taking tests, especially kids with ADHD, dyslexia and other learning disabilities. There needs to be more evaluation of critical thinking and reasoning skills, and less emphasis on memorization and regurgitation. * Enhance teacher training and support. I would make teacher education more rigorous, with more emphasis on pedagogy and less on content. A good teacher does not need to know all the answers, but needs to know how to find the answers, and how to inspire and guide students. In addition, I would make it compulsory for teachers to keep updating their knowledge of both their subject and of teaching methods. * Increase government fundings for teacher training. I would invest heavily in teacher training and professional development and ensure that teachers are well supported, respected and fairly paid.<\lit> * Introduce a course on logical fallacies, starting with the most basic ones like appeal to authority, ad hominem, red herring, tu quoque, appeal to tradition, appeal to emotion, etc. I would also introduce a course on critical thinking, which would be more practical than the previous one. Students would learn how to formulate arguments and evaluate them, how to distinguish between good and bad arguments, etc. * Ensure that students receive a balanced curriculum including the arts, humanities and sciences. Schools should be evaluated on how well they develop the whole student, including their social, emotional and physical wellbeing.<\lit>
5
The objective is to establish the most cost-effective path connecting all cities. To achieve this, we need to determine the Minimum Spanning Tree (MST) of the city map, treating each city as a node on the graph and all damaged roads as edges. The total cost of the path is the sum of the edge values within the Minimum Spanning Tree. ``` // Java code to find out minimum cost // path to connect all the cities import java.util.* ; class GFG{ // Function to find out minimum valued node // among the nodes which are not yet included in MST static int minNode(int n, int keyvals[], boolean mstset[]) { int min_val = Integer.MAX_VALUE; int min_index = 0; // Loop through all the values of the nodes, // which are not yet included in MST and find the minimum valued one. for(int i = 0; i < n; i++) { if (mstset[i] == false && keyvals[i] < min_val) { min_val = keyvals[i]; min_index = i; } } return min_index; } // Function to find out the MST and // the cost of the MST. static void findCost(int n, int city[][]) { // Array to store the parent nodes. int parent[] = new int[n]; // Array to store the key value of each node. int keyvals[] = new int[n]; // Boolean Array to indicate whether a node is included in MST or not. boolean mstset[] = new boolean[n]; // Set all the key values to be infinite and none of the nodes is included in MST. for(int i = 0; i < n; i++) { keyvals[i] = Integer.MAX_VALUE; mstset[i] = false; } // Start to find the MST from node 0. // Parent of node 0 is node 0 itself. parent[0] = 0; keyvals[0] = 0; mstset[0] = true; // Loop through all
The objective is to establish the most cost-effective path connecting all cities. To achieve this, we need to determine the Minimum Spanning Tree (MST) of the city map, treating each city as a node on the graph and all damaged roads as edges. The total cost of the path is the sum of the edge values within the Minimum Spanning Tree. ``` // Java code to find out minimum cost // path to connect all the cities import java.util.* ; class GFG{ // Function to find out minimum valued node // among the nodes which are not yet included in MST static int minNode(int n, int keyvals[], boolean mstset[]) { int min_val = Integer.MAX_VALUE; int min_index = 0; // Loop through all the values of the nodes, // which are not yet included in MST and find the minimum valued one. for(int i = 0; i < n; i++) { if (mstset[i] == false && keyvals[i] < min_val) { min_val = keyvals[i]; min_index = i; } } return min_index; } // Function to find out the MST and // the cost of the MST. static void findCost(int n, int city[][]) { // Array to store the parent nodes. int parent[] = new int[n]; // Array to store the key value of each node. int keyvals[] = new int[n]; // Boolean Array to indicate whether a node is included in MST or not. boolean mstset[] = new boolean[n]; // Set all the key values to be infinite and none of the nodes is included in MST. for(int i = 0; i < n; i++) { keyvals[i] = Integer.MAX_VALUE; mstset[i] = false; } // Start to find the MST from node 0. // Parent of node 0 is none and set to be -1. // key value or minimum cost to reach 0th node from 0th node is 0. parent[0] = -1; keyvals[0] = 0; // Find the rest n-1 nodes of MST. for(int i = 0; i < n - 1; i++) { // First find out the minimum node among the nodes which are not yet included in MST. int u = minNode(n, keyvals, mstset); // Include the uth node in MST. mstset[u] = true; // Update the values of neighbor nodes of u which are not yet included in MST. for(int v = 0; v < n; v++) { if (city[u][v] > 0 && mstset[v] == false && city[u][v] < keyvals[v]) { keyvals[v] = city[u][v]; parent[v] = u; } } } // Find out the cost by adding the edge values of MST. int cost = 0; for(int i = 1; i < n; i++) cost += city[parent[i]][i]; System.out.println(cost); } // Driver code public static void main(String args[]) { // Input 1 int n1 = 5; int city1[][] = { { 0, 1, 2, 3, 4 }, { 1, 0, 5, 0, 7 }, { 2, 5, 0, 6, 0 }, { 3, 0, 6, 0, 0 }, { 4, 7, 0, 0, 0 } }; findCost(n1, city1); // Input 2 int n2 = 6; int city2[][] = { { 0, 1, 1, 100, 0, 0 }, { 1, 0, 1, 0, 0, 0 }, { 1, 1, 0, 0, 0, 0 }, { 100, 0, 0, 0, 2, 2 }, { 0, 0, 0, 2, 0, 2 }, { 0, 0, 0, 2, 2, 0 } }; findCost(n2, city2); } } ``` The output after executing the above code is: ``` 10 106 ``` Regarding the time complexity, the outer loop for adding a new node to the Minimum Spanning Tree (MST) runs n times. During each iteration, it takes O(n) time to find the minimum node and O(n) time to update the neighboring nodes of the u-th node. As a result, the overall time complexity is O(n^2). As for auxiliary space, the algorithm requires O(n) space.
5
func scrollToFirstRow() { let indexPath = IndexPath(row: 0, section: 0) self.tableView.scrollToRow(at: indexPath, at: .top, animated: true)
Possible Actions: 1 ```func scrollToFirstRow() { let indexPath = NSIndexPath(forRow: 0, inSection: 0) self.tableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Top, animated: true) } ``` 2 ```func scrollToLastRow() { let indexPath = NSIndexPath(forRow: objects.count - 1, inSection: 0) self.tableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Bottom, animated: true) } ``` 3 ```func scrollToSelectedRow() { let selectedRows = self.tableView.indexPathsForSelectedRows if let selectedRow = selectedRows?[0] as? NSIndexPath { self.tableView.scrollToRowAtIndexPath(selectedRow, atScrollPosition: .Middle, animated: true) } } ``` 4 ```func scrollToHeader() { self.tableView.scrollRectToVisible(CGRect(x: 0, y: 0, width: 1, height: 1), animated: true) } ``` 5 ```func scrollToTop(){ self.tableView.setContentOffset(CGPointMake(0, UIApplication.sharedApplication().statusBarFrame.height ), animated: true) } ``` Disable Scroll To Top: ```func disableScrollsToTopPropertyOnAllSubviewsOf(view: UIView) { for subview in view.subviews { if let scrollView = subview as? UIScrollView { (scrollView as UIScrollView).scrollsToTop = false } self.disableScrollsToTopPropertyOnAllSubviewsOf(subview as UIView) } } ``` Modify and use it as per requirement. Swift 4 ``` func scrollToFirstRow() { let indexPath = IndexPath(row: 0, section: 0) self.tableView.scrollToRow(at: indexPath, at: .top, animated: true) } ```
5
Celebrate Life.
We were equals, once. Our charges celebrated me, just as they feared my brother. They loved me, as they loathed him. We were two sides of the same coin. Over time, that changed. People feared him. He grew in power, grew in their minds. They forgot about me in their preoccupation with avoiding him. No one celebrated me anymore. They turned their backs on me. So I turned my back on them. As my brother gained more and more power, it became harder and harder for them to avoid him. He claimed more and more lives, which in turn increased his power even more. I could not make my presence felt; births were no longer celebrated. Birthdays became a way not to celebrate me, but to celebrate another year of dodging my brother. I should never have left. I'm afraid it's too late. In my haste, in my angst, I couldn't see the effect my absence would have. I'm not sure there's anything I can do now. I'm afraid he may have too strong a hold on the lives of the people, the lives that used to be under my protection. There's only one thing I can beg of you now. Remember me. It's our only hope to lessen my brother's hold on the world. Celebrate Life.
5
What are five sci-fi movies released 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.
5