content
stringlengths 229
17.9k
|
---|
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> When I do ```\footnote{}``` for a value in a table, the footnote doesn't show up. How do I get it to show up? Also, is it possible to get it to show up at the bottom of the table rather than the bottom of the page? </s> <|assistant|> This is a classic difficulty in LaTeX.
The problem is how to do layout with floats (figures and tables, an similar objects) and footnotes. In particular, it is hard to pick a place for a float with certainty that making room for the associated footnotes won't cause trouble. So the standard ```tabular``` and ```figure``` environments don't even try.
What can you do:
* Fake it. Just put a hardcoded vertical skip at the bottom of the caption and then write the footnote yourself (use ```\footnotesize``` for the size). You also have to manage the symbols or number yourself with ```\footnotemark```. Simple, but not very attractive, and the footnote does not appear at the bottom of the page.
* Use the ```tabularx```, ```longtable```, ```threeparttable[x]``` (kudos to Joseph) or ```ctable``` which support this behavior.
* Manage it by hand. Use ```[h!]``` (or ```[H]``` with the float package) to control where the float will appear, and ```\footnotetext``` on the same page to put the footnote where you want it. Again, use ```\footnotemark``` to install the symbol. Fragile and requires hand-tooling every instance.
* The ```footnote``` package provides the ```savenote``` environment, which can be used to do this.
* Minipage it (code stolen outright, and read the disclaimer about long caption texts in that case):
\begin{figure}
\begin{minipage}{\textwidth}
...
\caption[Caption for LOF]%
{Real caption\footnote{blah}}
\end{minipage}
\end{figure}
Additional reference: TeX FAQ item Footnotes in tables. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> In the parallel world of spiders, instead of "Spider-Man" there is "Man-Spider": a spider in a human costume with human superpowers, such as a gun he caries around and the ability to talk. You are the spider chosen to write a screenplay for the movie. </s> <|assistant|> I regret my choices.
I should have just become a cobwebineer in stead of a screenwriter. But of course, with my luck they'd have come up with some completely absurd construction job for me to do.
Like, at first I was one hundred percent on board with the "Man-Spider" concept. I mean, pure body horror, you could make some really, really scary shit out of that material.
But then came the instruction: "Make it sexy". *Sexy*? Have they seen humans? Only half the proper amount of limbs, the eyeball situation is just disturbing and those red, wet holes... masticating species, uggh!
But apparently this... specimen... is supposed to be the hero? We're never going to see him eat on screen, that's for sure.
I guess I can work with the gun thing. Emphasize the technological ingenuity. There's probably some way to make this form of hunting seem cool in stead of a pathetic compensation for natural weakness. Maybe.
And they want talking to play a central role. I can see why, given the man-spider thing, but how to do it without directing attention to that nasty face hole? Putting a mask on him might work - and it could cover the eyes. Mask it is!
A mask would also help making the love interest story line a little more believable. I'm not writing any mating scenes! They'll just have to find another spider for that, I have my limits.
Although, thank the Great Spinner that it's *man*-spider. Imagine if it was woman-spider. Those creatures are *mammals*. It really is the most disgusting reproductive biology imaginable. I wish they'd let me make a horror movie. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to teach and avoid the dangers of fake faith healers? </s> <|assistant|> Here is how to teach and also avoid the dangers of fake faith healers.
## How to teach the dangers of fake faith healers
1. Look up on one or more of the various search engines.
2. Know and teach scriptures. Like, “If you lend money to one of my people among you who is needy, do not be like a moneylender; charge him no interest” (Exodus 22:25; see also Psalm 15:5) and also Deuteronomy 23:19-20 ESV /, “You shall not charge interest on loans to your brother, interest on money, interest on food, interest on anything that is lent for interest. You may charge a foreigner interest, but you may not charge your brother interest, that the Lord your God may bless you in all that you undertake in the land that you are entering to take possession of it and also Leviticus 25:35-37 ESV ; “If your brother becomes poor and cannot maintain himself with you, you shall support him as though he were a stranger and a sojourner, and he shall live with you. Take no interest from him or profit, but fear your God, that your brother may live beside you. You shall not lend him your money at interest, nor give him your food for profit and many other scriptures such as Matthew 7:15-18 and also 1st Timothy 6: 10.
3. Teach people the warnings signs and also how to react like Warning sign #1 : If he says to give up medication because God's going to heal you, DO NOT under any circumstances follow what he is telling you because this is a BIG AND DEFINITE tip off that this ^healer^ is fake.Just like for example if MegaI Love Music from YouTube is offered a ride by ^Dish Network workers^ who look friendly but He (MegaILoveMuzic from YouTube) calls Dish Network and says like ^Hi, my name is (name) and I am at (where MegaILoveMuzic is at) and this is a Dish Network vehicle's license plate number (license plate number is told) are these workers really Dish Network workers?^and the Dish Network customer service says ^no in fact there is no scheduled Dish Network service for (address)^for example, this is A BIG AND DEFINITE tip off that these ^Dish Network workers^ are evil doers who have intentions on first tricking him then getting him to a secluded location then harming and hurting and quite possible murdering him so he should not ever go in these ^Dish Network workers^ ^Dish Network^ vehicle.Same thing if a televangelist says like ^give up medication^ for example, this is highly illegal and dangerous to follow and you should NOT follow his ^holy^ advice. for example.
4. Get and make post cards, YouTube videos, etc. warning people of the dangers of fake faith healers.
## How to avoid the dangers of fake faith healers
1. Ask yourself important questions like What is he saying ? Is he telling me what I must actually do for example if I am being bullied at a dishwashing job that I should report the offender to police for example? for example.
2. Answer the important questions (in your mind of course) like He is saying and insisting that God will protect me from this mean dishwasher I have at my dishwashing job . But wait even the devils believe in God and tremble James 2: 19,this guy is not telling me stuff like report the mean dishwasher to the police, instead this ^healer^ is telling me to just trust in God.So I better not follow what this ^healer^ says. for example.
3. Act on the answers to your important questions like going to the police to report a mean dishwasher assaulting you at your dishwashing job for example and tell yourself either in your mind or verbally or both like ^good and holy advice^ that I should just trust in God, because even the demons believe in God and tremble James 2: 19, so I must never just trust God, I must do actions as well to get what I need done get done. for example.
4. Take heed of websites, others etc. warning about fake faith healers.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to select an open source content management system? </s> <|assistant|> ## Choose an open source cms
1. Research your options. A quick Internet search will tell you that WordPress, Joomla!, Drupal, Plone and Blogger are probably the most common; however, there are dozens more. Make sure you are testing a CMS, rather than a vendor, as the names may be easily confused in the beginning. Many online reviews say that WordPress CMS is good for blogs, and Drupal is great for community-oriented sites, with a lot of user interaction. Joomla! works well for the most basic websites and users. Plone is a newer CMS that manages documents and community very well. You should make your own decisions based on what looks best for your site.
2. Decide what experience you want to give your website visitors. Sit down with your marketing or branding department and make a list of the essential parts of a website, so that you can look for them in your CMS. This will help you to choose the frontend designs you prefer. You can also get a private web development company to design your template and plug in an open source CMS. This is considerably more expensive than simply choosing a ready-made design through an Internet-based service. It may allow you extensive customization of your site.
3. Decide what you need from the backend of the CMS. For example, decide if you need search engine optimization (SEO) features, mailing lists, events applications, customization, scalability or a specific programming language.
4. Test drive each programming platform. Assign 2 to 3 people who will be working with the programs most to do a trial run, or "sandbox" version, of the CMS. They should report back with reviews and rate them according to overall preference. Open source CMS can all be installed for free. You may need to hire a web programmer to install them, if no one in your organization is very computer savvy. You still want to test the backend of the system with the non-technical users. You can also go to opensourcecms.com to try over 70 open source CMS programs for free. The site will allow you to do a demo without having to install the whole program.
5. Check if your web hosting service automatically installs any of the open source CMS. If you use shared server hosting, then the tech support you pay for may include installation of 1 of these programs. If so, and you like the program, you can save money that would otherwise go toward hiring a programmer.
6. Read community reviews of the open source CMS or extensions you want to install. Each open source program has a web-based community that helps users ask and answer questions. You can get an idea of how easy it will be to accomplish the things on your marketing list by searching for reviews and instructions.
7. Choose a CMS according to website functionality and employee functionality. Compare each CMS/template with the frontend/backend list you made. Choose the program that fulfills the most preferences on your lists.
## Implement an open source cms
1. Decide how you want to do installation and support. Since open source CMS are available to all, they have community forums that help with support. However, if you aren't very proficient with computer programming, you will have to follow an alternate method. Hire a web vendor to install the program and train your staff. Although you will need to pay for this service, it will decrease the problems you will have with the open source CMS. Ask if the vendor offers tech support help in the future at a fee. Task your IT department with installing and training staff. You may have to send part of your staff to a course to learn all about the program and its requirements. If you already have a fully competent IT staff, you will save money with this option. Install the program yourself and train your staff. If you and your employees are very computer literate, it may not be essential to get outside support. You can look for plugins in the directory and read how to fix problems in the forums.
2. Be prepared for an adoption period. After changing any database, you should be prepared for a slow period where your employees learn to use the program, and at times, there are complaints. Try to wait for a period of 30 to 90 days before deciding if the CMS will work, because most website changes take time to adjust to.
3. Look to enhance your open source CMS. Look for extensions and plugins, once your employees are completely functional with the backend. The great thing about CMS is that talented volunteer programmers are improving it all the time. Subscribe to blogs, newsletters or forums about your CMS blog. This will keep you aware of new updates or plugins. It will also direct you to websites that use the CMS so that you can see what others are doing with it.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to pay property taxes online? </s> <|assistant|> If you own real property (a home or land) in the United States, you are responsible for paying state property taxes each year. While these taxes are assessed through the county where the property is located, most counties in each state allow property owners to pay their taxes online. The specific information you need to pay your property taxes online depends on where your property is located.
## Calculate your payments
1. Look on your tax bill. You should receive an annual property tax statement in the mail that provides information about the amount of tax you owe each year. This statement also has other information, such as a property identification number or PIN, that may be necessary for you to pay your taxes online. Your tax bill may not include any delinquent taxes, or any other tax assessments, such as supplemental taxes. Those typically are sent separately.
2. Check online if you haven't received a bill. Just because you don't receive a bill doesn't mean you don't owe property taxes. In most states and counties, you can find out how much tax you owe by going to your state or county's property tax website. The amount of tax online typically will be more up to date than what's on your bill, so even if you have your bill handy you may want to check online. If there's a discrepancy, go by the amount online rather than the amount on your bill. Unfortunately, you may need a PIN or identification number located on the bill to access your tax amount online.
3. Call the tax assessor's office if you need more information. If you haven't received a bill and can't find the amount you owe on the website, you can always call the tax assessor's office and ask. The clerk should be able to give you the total amount of property tax you owe, as well as any other information you need, such as a PIN, so you can pay your taxes online.
4. Confirm the types of property tax you owe. Some states or counties may have different types of property taxes that you'll have to pay. You may have to check for different types separately. For example, in California you may have secured and unsecured property taxes. Unsecured property taxes are taxes on watercraft, airplanes, or temporary fixtures that are not connected to real property. These may be listed separately, or included on separate websites. Depending on where you live, certain types of property taxes may not be included in the online information. For example, the property tax website for Cook County, Illinois, does not include amounts for back taxes, air pollution taxes, and some other types of property taxes.
5. Confirm due dates for taxes owed. On the tax assessor's website, you'll find information about the dates property taxes are due each year. If you have any delinquent taxes, they typically are considered due immediately. If you pay your taxes on or before the due dates you'll avoid penalties, interest, and other fees. Plan ahead, especially if you won't be able to pay the total amount all at once.
6. Determine how much of your taxes you can pay. Particularly if you have delinquent taxes, you may not be able to pay all of your taxes at once. Access the website well before the due date, if possible, so you can budget for your payments accordingly.
7. Check to see if your mortgage company is paying your property taxes. If you have a mortgage on your property, your monthly mortgage payment may include an escrow amount that goes to pay your property taxes. When property taxes are due, your mortgage company will withdraw the money from the escrow account and pay them on your behalf. You typically still will get a bill or property tax statement, even though you don't owe anything. Check with your mortgage company if you're not sure so you don't end up paying twice.
## Make your payments
1. Visit your county or state's property tax website. Property taxes are assessed by county governments. The easiest way to find your county's property tax website is to check on your state's website for a link. Your state will have a .gov web address, so you can be assured that the link you find from the state website is the legitimate website for your county. This way you can make sure you keep all your information secure.
2. Enter information for your property. The information you need to enter to access your account and pay your taxes online differs among states and counties. Typically you'll have a PIN or property identification number that you must enter to correctly find your property. A street address typically isn't enough, because property may be assessed using parcel numbers or some other system of organization.
3. Do a search for your property. Some property tax assessors may allow you to look up the property identification number you need on the website itself. Others may require you to call the county tax assessor's office to get the information you need. If you don't have the information you need, look for a link that will allow you to search for your property. When you click on the link to pay your taxes, there should be a link close to the space where you would enter the information that you can follow to get the information you need.
4. Review acceptable methods of payment. Depending on the county, different methods of payment are accepted if you want to pay your property taxes online. Some methods of payment may come with an additional fee. If you pay using an electronic check, you typically won't have to pay a fee. Using a debit or credit card may incur a fee ranging from a few dollars to 2 or 3 percent of the amount of your payment.
5. Make your payment. Once you've entered the information you need and chosen your method of payment, simply enter the amount of money you want to pay along with your payment information to pay your property taxes online.
6. Print your confirmation. Once you've submitted your payment, you'll typically get a confirmation screen that will include a unique confirmation number and an option to print the page for your records. You may also get a confirmation through email. If you get an email confirmation you don't necessarily have to print a paper copy, just make sure to save the email.
## Use other online resources
1. Create a portfolio. If you own several parcels of property in the same state or county, you may be able to create a portfolio of properties on your state or county's property tax website. The portfolio allows you to manage all of your property taxes in one place. Look for a link on the property tax page that will allow you to create a portfolio, and follow the instructions. If you don't see a link, look for a FAQ page and see if anything is listed about how to link multiple properties.
2. Set up recurring payments. Some states and counties allow you to enter payment information once and schedule payments, which are automatically deducted from your bank account or credit card. If you have the option to schedule payments, this can be helpful with budgeting. You can schedule a partial payment each month so you don't have to pay the whole thing all at once. Mark your payment dates on your calendar or set a reminder on your phone so you don't forget that the payment is coming out.
3. Subscribe to email notifications. Some counties provide email notifications that will alert you before the due date for property taxes, or when there have been changes to your account. If you weren't able to set up recurring payments, these notifications can help you ensure you don't miss a due date and incur additional penalties and fees. If you subscribe to email notifications, you may want to add the email address to your contacts list or preferred addresses list. This will ensure you actually receive the notifications and they don't fall into your spam folder.
4. Apply for a payment plan. Most counties allow you to set up a payment plan if you have delinquent property taxes. You typically have to fill out an application, and may be subject to a credit check. Some counties also allow payment plans even if your taxes are current, if you anticipate you won't be able to pay the amount in full by the due date. If this option is available to you, it can save you in potential late fees and penalties. A payment plan typically requires the payments to be automatically debited from your bank account.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Temperature conversion:
$$273 + \text{degree Celsius} = \text{Kelvin}$$
Actually why is that $273$? How does one come up with this? </s> <|assistant|> One Celsius (or Kelvin) degree as a temperature difference was defined as 1/100 of the temperature difference between the freezing point of water and boiling point of water. These points are called 0 °C and 100 °C, respectively. The number 100 arose because we're used to numbers that are powers of ten because we use the base-ten system. The Celsius degree is "one percent" of the temperature difference.
There also exists the minimum temperature that one may achieve. In Kelvin degrees, it's sensible to call this minimum 0 K: that's a primary condition on the "natural" temperature scales such as the Kelvin scale. If one insists that one Kelvin degree is equally large as one Celsius degree as a unit of temperature difference, it just turns out that the melting point of ice has to be 273.15 K and the boiling point of water is 373.15 K. It's because the temperature difference between the boiling and freezing points is 2.7315 times smaller than the temperature difference between the minimum allowed temperature, the absolute zero, and the freezing point of water.
The value 2.7315 cannot be easily explained in simple words. It represents a specific characteristic related to water, a natural phenomenon that arises from the principles of quantum mechanics. To understand this value, extensive simulations are required to analyze the behavior of water molecules across a wide range of temperatures. Through experimental evidence, we have confirmed that this value accurately reflects the properties of water. </s> <|prompter|> Why people don't go to a logarithmic scale (kind of like decibels), at least for low temperatures. Then there would be no lower limit. </s> <|assistant|> Exponential notation adequately handles temperatures that are sufficiently low. What is important is that temperature is just energy per degree of freedom and energy is additive, thus all nonlinear redefinitions of $T\to f(T)$ would be unnatural. Also note that for the ideal gas, we have $pV=nRT$, so at a fixed pressure (or volume), the volume (or pressure) is proportional to $T$. We don't express pressures and volumes in terms of their logarithms, either, so it would be equally unnatural for the temperature.
The log scale is always a sort of "policymaking issue", making it easy for people to say simple numbers instead of powers of ten which are "complicated constucts" for most laymen. It's the only justification for decibels, pH, Richter scales, and other things: you just don't want the laymen to ever pronounce "ten to the power of [a number]", that's the only reason. But people achieved just a billionth of kelvin, that's the record, and those small numbers aren't extreme and one can express them in words like billionth without using "ten to minus [a big power]". </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> In monopoly, can an opponent put a property up for auction at a higher price than I have in cash? </s> <|assistant|> This is definitely allowed, and a good tactic to leverage a cash advantage.
There is no minimum or maximum price for an auction. The rules state:
Bidding may start at any price.
Monopoly auctions do not have "the bidding will start at $10". They just have "bidding is open". Once the auction begins, a bid by any player sets the minimum price for the auction at that bid. Your opponent could easily bid $10 on the property, forcing you to either let them have it for $10 or bid more than you have in cash. You could bid first, say starting the bid at $5, but that doesn't meaningfully change the situation, as they can just respond by out-bidding you at $10.
You may bid more money than you have in cash, but you are still obligated to pay it if you win the auction. This may be a reasonable play if you can afford it by mortgaging property and/or selling houses, especially to drive up the price for your opponent. But be careful not to bid more than you can pay after mortgages and sales, as if you win the auction and can't pay your bid, you go bankrupt. In particular, if you bid more than you can afford, you opponents can all just let you win the bid, at which point you go bankrupt and the property you just bought would go up for auction again (in addition to all your other properties). </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I'm trying to set get id of all elements in an ```HTMLCollectionOf```. I wrote the following code:
```var list = document.getElementsByClassName("events");
console.log(list[0].id);
for (key in list) {
console.log(key.id);
}
```
But I got the following output in console:
```event1
undefined
```
which is not what I expected. Why is the second console output ```undefined``` but the first console output is ```event1```? </s> <|assistant|> You can't use ```for```/```in``` on ```NodeList```s or ```HTMLCollection```s. However, you can use some ```Array.prototype``` methods, as long as you ```.call()``` them and pass in the ```NodeList``` or ```HTMLCollection``` as ```this```.
So consider the following as an alternative to jfriend00's ```for``` loop:
```var list= document.getElementsByClassName("events");
[].forEach.call(list, function(el) {
console.log(el.id);
});
```
There's a good article on MDN that covers this technique. Note their warning about browser compatibility though:
[...] passing a host object (like a ```NodeList```) as
```this``` to a native method (such as ```forEach```) is not guaranteed to work in
all browsers and is known to fail in some.
So while this approach is convenient, a ```for``` loop may be the most browser-compatible solution.
Update (Aug 30, 2014): Eventually you'll be able to use ES6 ```for```/```of```!
```var list = document.getElementsByClassName("events");
for (const el of list)
console.log(el.id);
```
It's already supported in recent versions of Chrome and Firefox. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> What is the difference between doing:
```ptr = malloc (MAXELEMS * sizeof(char *));
```
or:
```ptr = calloc (MAXELEMS, sizeof(char*));
```
When is it a good idea to use calloc over malloc or vice versa? </s> <|assistant|> ```calloc()``` gives you a zero-initialized buffer, while ```malloc()``` leaves the memory uninitialized.
For large allocations, most ```calloc``` implementations under mainstream OSes will get known-zeroed pages from the OS (e.g. via POSIX ```mmap(MAP_ANONYMOUS)``` or Windows ```VirtualAlloc```) so it doesn't need to write them in user-space. This is how normal ```malloc``` gets more pages from the OS as well; ```calloc``` just takes advantage of the OS's guarantee.
This means ```calloc``` memory can still be "clean" and lazily-allocated, and copy-on-write mapped to a system-wide shared physical page of zeros. (Assuming a system with virtual memory.) The effects are visible with performance experiments on Linux, for example.
Some compilers even can optimize malloc + memset(0) into calloc for you, but it's best to just use calloc in the source if you want zeroed memory. (Or if you were trying to pre-fault it to avoid page faults later, that optimization will defeat your attempt.)
If you aren't going to ever read memory before writing it, use ```malloc``` so it can (potentially) give you dirty memory from its internal free list instead of getting new pages from the OS. (Or instead of zeroing a block of memory on the free list for a small allocation).
Embedded implementations of ```calloc``` may leave it up to ```calloc``` itself to zero memory if there's no OS, or it's not a fancy multi-user OS that zeros pages to stop information leaks between processes.
On embedded Linux, malloc could ```mmap(MAP_UNINITIALIZED|MAP_ANONYMOUS)```, which is only enabled for some embedded kernels because it's insecure on a multi-user system. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I'm no expert in darkroom photography, but it seems a little odd that there is a type of light that doesn't affect film or developing paper etc. So why is a dark-room safelight safe? </s> <|assistant|> Photo films and papers are made from salts of silver that naturally only darken when exposed to violet or blue light. In the early days of photography, this was all that was available. Therefore these films and papers are able to be handled under any light source that does not radiate blue light. By the way, the violet and blue frequencies of light are the shortest, and are the most energetic when it comes to inducing a chemical change. These early films and papers could all be be handled safely under red light as well as yellow light. These lamps do not emit violet or blue.
These blue-sensitive-only films did an OK job, with some exceptions. Women’s faces with cosmetics, like lipstick and rouge on the cheeks, came out weird. Warm tones reproduced super dark, and most times lips and cheeks turned black, void of detail on the finished picture. The bottom line is, many colors in nature reproduced incorrectly with this early blue-sensitive-only film.
The cure was accidental. Professor Hermann Vogel at Berlin Technical was trying to solve the problem of halation. This results when taking a picture of bright objects, like light sources or gemstones and the like. These objects play on the film with lots of light energy. This energy often goes completely through the film and hits something behind the film. The light is then reflected back into the film. The result is a halo around bright objects. The professor had one of his students dye the silver salts yellow, thinking the yellow dye would filter out the annoying reflected blue from the rear. He tried this dyed film and it did the trick, plus the film gained sensitivity to green light. He named this blue/green sensitive film orthochromatic (Latin for correct color). The year was 1857, and the quality of film reproducing the colors of nature moved forward by a big leap.
A few years later, one of his graduate students, experimenting with different dyes, discovered how to make films sensitive to blue, green and red light. This film was called panchromatic (the pan prefix in Greek means "all"). Thus panchromatic film reproduces all colors found in nature with high accuracy. The bad news was, the darkroom folks were forced to give up the red and yellow safelight. A super dim green safelight could be used for a short period of time during developing.
Photo papers remained insensitive to red for the most part - no need, as they work OK with just blue and green sensitivity. Modern variable contrast photo papers have two sensitive coats, one for blue light and one for green light. We can use a safelight on these papers; it is amber with reduced brilliance.
Films and papers that make color pictures are panchromatic, and most safelights are not safe. We can use infrared lamps with a specialized night vision infrared scope to view and handle most panchromatic films and papers, because these materials have low sensitivity to infrared. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> What is the LXX and why is it so noteworthy that there is a Greek translation of the OT? Wouldn't it be better to directly reference manuscripts in the original languages? </s> <|assistant|> Before 1947, a good case could be made that the Septuagint represented a more ancient tradition than the Masoretic versions of the Tanakh. Since the Septuagint was produced before 132 BCE (and probably in the 3rd century BCE) and the earliest known Masoretic manuscripts date to the 10th century CE, the Greek translation might have fossilized an early rendering of the Scriptures while the Hebrew continued to be copied and potentially altered. To further support the primacy of the Septuagint, the early Christian and Hellenistic Jewish texts, tended to use that translation rather go back to Hebrew sources.
An interesting counter-argument arises from the observation that during the 600 years from Jerome's translation into Latin (the Vulgate) to the earliest Masoretic manuscripts, the Hebrew seems to have been faithfully copied. That suggests that Jewish scribes were exceptionally careful to duplicate their scriptures.
After 1947, the evidence changed. According to Wikipedia:
[Most] of the Qumran fragments can be classified as being closer to the Masoretic text than to any other text group that has survived. According to Lawrence Schiffman, 60% can be classed as being of proto-Masoretic type, and a further 20% Qumran style with bases in proto-Masoretic texts, compared to 5% proto-Samaritan type, 5% Septuagintal type, and 10% non-aligned. Joseph Fitzmyer noted the following regarding the findings at Qumran Cave 4 in particular: "Such ancient recensional forms of Old Testament books bear witness to an unsuspected textual diversity that once existed; these texts merit far greater study and attention than they have been accorded till now. Thus, the differences in the Septuagint are no longer considered the result of a poor or tendentious attempt to translate the Hebrew into the Greek; rather they testify to a different pre-Christian form of the Hebrew text".
Another another article describes the meaning of the categories in detail.
A few caveats are in order:
* Surveying the Qumran about religious texts seems something akin to surveying a hippie commune about political issues—you're likely to experience some bias. If we could obtain a similar collection from Jerusalem, we'd likely find more agreement and likely the side of MT. Given the diversity in non-Scriptural texts, 60% seems quite solid support.
* While it's unlikely, there exists a chronological possibility the scrolls associated with the Septuagint-aligned Hebrew were influenced by the Greek. (Any references one way or the other would be appreciated.)
What remains therefore is a window into the community of Alexandrian Jews that produced the translation. For those who are interested in the development of Jewish belief, that can be extremely useful. N. T. Wright's book, The Resurrection of the Son of God, shows that the LXX translators chose to interpret key texts from Daniel and Ezekiel about the resurrection as literal rather than metaphorical. He argues from this that belief in bodily resurrection was more common in Jesus' day than other scholars assert. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> The typical argument goes like this:
Without net neutrality, cable companies could censor websites, favoring their own business partners.
Typically, proponents of legislation point to some perceived injustice, and argue that new laws are needed to address it. But the very use of the subjunctive in the quotation (could censor), suggests that this might be considered by its opponents as a solution in search of a problem. If so, why haven't they used that rhetorical tactic? Conversely, if such incidents have occurred, why don't the neutrality supporters cite them? </s> <|assistant|> There have been a few examples, in part, these examples have pushed this more into the spotlight. It's often under the term 'traffic shaping' if you are interested, here is Sandvine, a company that offers those shaping services. If you are interested in the peer2peer domain (which is heavily bringing this issue to the forefront) here is a national list of ISP's and their throttling practices on bit torrent users: Curious if this documented list counts as citing.
For the US:
Verizon has run testing on it.
“YouTube is being throttled to 10Mbps as well,” one person wrote on Thursday. “In the ‘stats for nerds,’ it would load at roughly 1,250KBps which translates to 10Mbps. Put the VPN on and that number tripled easily. Didn’t have an issue playing 1080p in 60fps, though.”
(part of the problem with throttling is if you know your way around it, there isn't an issue. Tax on the non-tech savvy).
Verizon stated they were not throttling, however, articles suggest they did and still are. Here is an article stating Verizon is actively throttling video connections over their network. Over to Comcast who has been engaging in this practice but not admitting it until much more recently:
* When Comcast throttled BitTorrent users, they had a lawsuit brought against them that won.
* Sprint: They deny they do, though it's apparent they can. User backlash results in people monitoring if they are being throttled. Of course, there are several accusations.
* Bell and Rogers in Canada.
Telus has also blocked union sites and have engaged in some pretty underhanded anti-union tactics. Not sure if blocking sites fall under net neutrality though. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to repair your damaged reputation at work? </s> <|assistant|> 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.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> My son doesn't want to share anything with other kids, and if some kid even so much as touches his toy, he pushes the kid. He shouts and cries at the same time, and tries to express his anger by pushing and hitting the kid. I feel so embarrassed in front of other parents.
And when he is at home with me and doing something wrong, I try to stop him, he tries to repeat my words and shouts at me. He is copying the behavior of others, whether it's a good act or bad...
Please help me how to stop him from being a bully. </s> <|assistant|> Welcome to the "Terrible Two's"!
Your son behaves typically for his age. At 2 he starts to assert himself and express his demands. It's likely that he has also learned that he gets his way when he throws a tantrum. For a 2-year old screaming, hitting or even biting is a normal way to express his anger - at least he will try and every success reinforces this.
He also comes across more limitations: The more he is able to do, the more often he is stopped.
The solution? It's already in your question:
He will copy what others do. So by all means, stay calm. No yelling, no fussing and - please! - no hitting. He has some learning (accepted behaviour like sharing) and some unlearning (no hitting or pushing) to do and needs your help.
* When he throws a tantrum, either ignore him, or quietly remove him from the scene. Do not worry about others! Most likely they have had the same trouble with their kids or will some time ;-)
* When he doesn't want to share yet - fine, he will learn. This can be practiced. Don't make him share, or he will resent it. Rather, teach him the benefits of sharing. Start with food, for example. Have a plate of cookies (or other favorite food), that's yours. He will likely demand some, but demanding doesn't get him a cookie. Asking nicely will! Explain, repeat. Then, switch roles. If he has cookies, ask him to share. If he does, praise him. Else - remind him next time when he wants your cookies that he didn't share. Share whenever possible: Having a bite from your plate, getting a piece off his. Repeat, repeat, repeat.... Same goes for objects. Ask him to "please" share a toy, "play" with it for a short moment, then return. Say "Thank you". He learns, that he gets the toy back. Share some of your things. (Monitor the behaviour of other children, that want his toys - make sure they ask first and give toys back, at least during this learning stage.)
You have some serious work to do, but it will be sooooo worth it! </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Make a single page landscape in Google Documents </s> <|assistant|> Currently a single Google Document can only be either Landscape or Portrait not both. Changing page orientation is done by selecting File and then Page setup.
It is currently recommended to separate the Landscape and Portrait pages into different documents. A good place to get more information that might help is at Google Products Forums.
Note that an additional option might be to have three files in Google Docs. The Portrait, The Landscape, and Microsoft Word Doc which integrates the two layouts into the correct sequence (this document would be Read Only when viewed in Google Docs).
A Microsoft Word document may allow multiple orientations of the Page Layout, but if it is converted to a Google Document the Page Layout for each page will revert to the first Orientation found in the document.
Also, creating multiple Orientations in Word isn't as straight forward as one might want either.
For those wanting to do this in Word: Use portrait and landscape orientation in the same document
1. Select the pages or paragraphs that you want to change to portrait or landscape orientation.
NOTE: If you select some but not all of the text on a page to change to portrait or landscape orientation, Word places the selected text on its own page, and the surrounding text on separate pages.
2. On the Page Layout tab, in the Page Setup group, click Margins.
3. Click Custom Margins. (This is the important part)
4. On the Margins tab, click Portrait or Landscape.
5. In the Apply to list, click Selected text..
NOTE: Microsoft Word automatically inserts section breaks before and after the text that has the new page orientation. If your document is already divided into sections, you can click in a section (or select multiple sections), and then change the orientation for only the sections that you select. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Why is digital photography so expensive? </s> <|assistant|> Digital photography is not expensive but buying into it is.
With film photography camera and lenses were a moderate investment but these lasted quite long. Even a battery in a film camera would last several years. Cameras and lenses were mechanical and much simpler than today's models. This made them require less expertise to manufacture and also made them incredibly sturdy. A lifespan of a decade for a camera and several decades for lenses was not uncommon.
However, the real cost of film photography is film and development. Each roll of film costs several dollars and gives up to 36 images. Specialized rolls were more expensive and had fewer exposures. Then, if you did not do development yourself, you had to pay for development. Also prints. Even if you did your own, chemicals and papers were recurring costs. And there was the added expensive of creating a wet darkroom. In the end, the hobby was quite costly.
With digital photography, you pay nearly all costs up-front and it comes out much cheaper for anyone who is into the art and shoots regularly. A mid-range DSLR with good lens and memory can easily be obtained for less than $2500. Many entry level ones exist for under $1000. If you were to shoot 10,000 frames before both your camera and lens dies, it would cost you between 2.5¢ to 10¢ per frame. It is far far less than even just the film for each frame. Still most cameras have shutters rated to at least 100,000 frames and lenses last much longer than cameras. Even if you only captured 1000 images, you would have a better deal than with film photography. All digital cameras come with rechargeable batteries, good for 500-1000 shots-per-charge (for DSLRs) and can be charged at least 50-100 times before needing to be replaced. That means you actually will not use up the battery before you have taken full advantage of the better value of digital photography.
Market conditions are forcing the price of digital photography to increase. The loss of market share of compact and ultra-compact digital cameras to cellphones forced manufacturers to discontinue such products and concentrate on higher-end offering. While the number of unit sales of digital cameras has been declining, the average price is going up to compensate for reduced revenue. This trend is expected to continue for a while. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> can you write me a paragraph (up to 150 words) on ancient rome's influence on modern politics? </s> <|assistant|> Rome was one of the most influential civilizations in history, and its influence can still be seen today. Many modern political systems are based on Roman governmental structures, including the United States. Both the American Senate and House of Representatives were modeled after the Roman Senate and Assembly. Likewise, many modern legal systems are influenced by ancient Roman law. For example, the principle of innocent until proven guilty is rooted in Roman law. Additionally, the Romans made significant advances in engineering and architecture that are still used today. For instance, concrete was invented by the Romans, and it is still one of the most common building materials. Furthermore, many modern cities are built on Roman designs, with public spaces like squares and boulevards surrounded by buildings. In conclusion, ancient Rome had a profound impact on modern politics, law, technology, and culture, and its legacy continues to shape society today. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I see a low use of Mathematica in Kaggle competitions. Why would one use the Wolfram Language versus R, Python, or Julia for machine learning? Besides prettier plots and the Manipulate function, do we have something that is useful for ML that other languages are lacking? </s> <|assistant|> Mathematica doesn't have the depth of algorithm support that is present in R or Python. Julia has much more limited algorithm support but does exhibit a good turn of speed.
The few algorithms that Mathematica does support are not particularly well exposed for the type of tweaking needed to win Kaggle competitions.
Mathematica, as of version 10, supports the following classifiers: "LogisticRegression", "Markov", "NaiveBayes", "NearestNeighbors", "NeuralNetwork", "RandomForest", "SupportVectorMachine".
Whilst it does offer one ensemble method, RandomForest, it lacks both Bagging and any flavour of boosting, such as Adaboost. These latter general ensemble methods allow you to leverage the power of a base classifier, either built-in or, of greater utility when exploring performance improvements, of your own design. This limits significantly the potential for creating novel methods within the existing machine learning framework.
Mathematica's strengths lay with it's expressive, compact, language, strong visualisation capabilities and easy parallelization. These make it very efficient to explore new strategies and combinations of ML algorithms you may already have implemented.
A less often mentioned benefit is that use of Mathematica in a functional programming style tends to lead to fewer bugs in the final code. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Gostaria de saber se existe alguma forma simples de realizar um upload de arquivos via AJAX + JSON.
Se houver, qual seria? </s> <|assistant|> Você pode fazer uploads de arquivos utilizando o método ```POST``` porém deve incluir o FormData com a propriedade ```enctype``` definida como ```multipart/form-data``` para que seus arquivos sejam enviados na requisição.
Contudo, a formatação do envio não vai ser um JSON, mas sim no ```enctype``` que você definir no seu ```FormData```, que dependendo da linguagem que você está utilizando no backend vai ter uma forma diferente de interpretar estes dados.
* application/x-www-form-urlencoded: é o enctype padrão, todos os valores de espaço são convertidos para "+" e caracteres não padrões são convertidos para representação ANSII HEX;
* multipart/form-data: nenhum caractere é convertido, mantendo os valores do formulário intactos, necessário para upload de arquivos;
* text/plain: apenas espaços são convertidos em "+";
Sendo essas as possibilidades, o que está sendo trafegado não é um JSON quando vamos comunicar enviando dados para o servidor. Esses dados são serializados para serem entregues dentro da área de data do método que você esta utilizando pra trafegar via HTTP(S) dentro dos formatos apresentados.
Durante o upload você pode capturar (nos browsers modernos) evento de progresso do upload, conforme no exemplo abaixo.
Exemplo utilizando **jQuery**:
**Formulário**
```<form id="formulario" method="post" enctype="multipart/form-data">
<input type="text" name="campo1" value="hello" />
<input type="text" name="campo2" value="world" />
<input name="arquivo" type="file" />
<button>Enviar</button>
</form>
```
**Javascript**
```$("#formulario").submit(function() {
var formData = new FormData(this);
$.ajax({
url: window.location.pathname,
type: 'POST',
data: formData,
success: function(data) {
alert(data)
},
cache: false,
contentType: false,
processData: false,
xhr: function() { // Custom XMLHttpRequest
var myXhr = $.ajaxSettings.xhr();
if (myXhr.upload) { // Avalia se tem suporte a propriedade upload
myXhr.upload.addEventListener('progress', function() {
/* faz alguma coisa durante o progresso do upload */
}, false);
}
return myXhr;
}
});
});
``` </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I am 30 years old, is it too late to start learning piano now? </s> <|assistant|> It's never too late to learn the piano. However, it will be harder for you than for a child:
* You have to make a conscious decision to practice, whereas a child just does it because their parents told them to. This makes it easier to skip practice when you don't feel like it.
* You probably have other responsibilities (work, family) that take up time and energy. A child usually has nothing but time and energy. This means you'll have to be more efficient in your practice, and cut out all non-essential activities.
* You're starting from zero. A child can learn a piece of music in a few days that would take you months to learn. This means you have to be patient and accept that you'll be playing nursery rhymes for a while.
On the other hand, you have some advantages over a child:
* You can understand more abstract concepts. This means you can learn more efficiently, and don't have to rely on muscle memory as much.
* You have a greater capacity for focused concentration. A child's attention span is very short. This means you can get more done in a single practice session.
* You have a better sense of dedication and perseverance. A child will give up the moment it becomes difficult. You, on the other hand, will stubbornly keep trying until you succeed. This will get you through the initial stages much faster.
The conclusion is that it's not too late for you to learn the piano, but it will take a lot of effort and discipline. If you're willing to put in the work, you will succeed. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Assistant, I need your help. My manager is overworking me. Help me IM them something so that they get off my back. </s> <|assistant|> These situations are best resolved in face-to-face conversations, which allow for more holistic and direct communication. However, in some cases, it is difficult to find the right time to discuss such a sensitive topic, and it may be better to communicate one's concerns earlier rather than later. Here is a possible instant message you may want to consider sending to your manager:
Hey [Manager's Name], I wanted to flag an issue regarding my current workload. I feel like it's been increasing recently, to a point where I can no longer ensure that I meet our quality standards and/or the deadlines. While I'm dedicated to my role and always strive to deliver my best, I feel that the current workload is unsustainable.
Could we perhaps set some time to chat to go over my workload, reprioritize, and perhaps delegate some of my tasks to other teammates? Thanks! </s> <|prompter|> Not sure that helped... look what they sent me back:
[My Name],
I understand that this is a tough time for everyone on the team, but I'll be frank with you: this is a startup, not a country club. We all knew that there would be crunch time when we signed up. We're all counting on you to do your part so that we deliver the product on time. You and I both know that this deadline is existential for the company.
Happy to talk more after the deadline to think about what we can do better in the future to avoid these kinds of sprints. </s> <|assistant|> This is a tricky situation. As mentioned earlier, my best is advice is to try to explain your situation face-to-face.
You may want to prepare for such a meeting, and perhaps make a list of specific examples that illustrate your concerns and any suggestions you have for improving the situation. Going into the meeting with a constructive and solution-oriented mindset will demonstrate your commitment to the team and your willingness to work together to find a resolution. </s> <|prompter|> My manager and I work in completely different time zones, and almost all of our communication is asynchronous via IM. Help me draft a response to his message. </s> <|assistant|> Here is a possible response:
Thanks, I appreciate the candor. I completely understand the importance of meeting the deadline, and I'm fully committed to helping the team meet our goals.
Moving forward, I'd love to take you up on that offer and think together about how we can work efficiently throughout the year and manage some degree of work-life balance. Thanks again for your support! </s> <|prompter|> Mmm... this feels like I'm caving in. Can you maybe push back a little? </s> <|assistant|> Sure, here is a potential response that is slightly more assertive:
Thanks, I appreciate the candor. I completely understand the importance of meeting the deadline, and I'm fully committed to helping the team meet our goals. Having said that, I am concerned that the current state of affairs cannot be sustained for long, and that it may impact the quality of my work in the immediate term.
I suggest that we take a proactive approach and think together about how to prioritize and improve efficiency so that the important tasks are done on time.
Thanks again for your support! </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How can I add a delay to a program in C#? </s> <|assistant|> Use a timer with an interval set to 2–3 seconds.
You have three different options to choose from, depending on which type of application you're writing:
* ```System.Timers.Timer```
* ```System.Windows.Forms.Timer```
* ```System.Threading.Timer```
Don't use ```Thread.Sleep``` if your application need to process any inputs on that thread at the same time (WinForms, WPF), as ```Sleep``` will completely lock up the thread and prevent it from processing other messages. Assuming a single-threaded application (as most are), your entire application will stop responding, rather than just delaying an operation as you probably intended. Note that it may be fine to use Sleep in pure console application as there are no "events" to handle or on separate thread (also ```Task.Delay``` is better option).
In addition to timers and ```Sleep``` you can use ```Task.Delay``` which is asynchronous version of ```Sleep``` that does not block thread from processing events (if used properly - don't turn it into infinite sleep with ```.Wait()```).
``` public async void ClickHandler(...)
{
// whatever you need to do before delay goes here
await Task.Delay(2000);
// whatever you need to do after delay.
}
```
The same ```await Task.Delay(2000)``` can be used in a ```Main``` method of a console application if you use C# 7.1 (Async main on MSDN blogs).
Note: delaying operation with ```Sleep``` has benefit of avoiding race conditions that comes from potentially starting multiple operations with timers/```Delay```. Unfortunately freezing UI-based application is not acceptable so you need to think about what will happen if you start multiple delays (i.e. if it is triggered by a button click) - consider disabling such button, or canceling the timer/task or making sure delayed operation can be done multiple times safely. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> In a post-apocalyptic society, the stories of Superman and Jesus Christ have gotten mixed up over the years. Several scholars have gotten together to write the new Bible. This is the first chapter of the gospel according to James (Jimmy) </s> <|assistant|> The beginning of the Gospel of Superman, Son of Krypton, Of the House of Kent and El. 'Lo' the prophet Jor did speak, 'so loved is my Son, that I send Him to you so that the best in you shall exalt Him and in doing so exalt yourself.' Baptized in solar fire the infant Kal was heralded a burst of light and the scream of the torn sky.
The sight was revealed to Kent in the town of Smallville in the Land of Kansas, named Jonathon by Martha, a barren and childless couple afflicted with age, together they quickly traversed the field of corn and found the ground destroyed and ablaze by star fire therein laying the infant Kal, squalling and untouched by the flame.
The Prophet Jor spoke through the star fire, 'Behold, the last son of Krypton, in this infant you will find your salvation or you will be destroyed, you will raise in Him a bounty or a famine, with time, perhaps, He will raise you to the Stars'
Kent spoke to Jor, although Jor was beyond hearing having only lent his voice for his son, 'it is good to raise this child, I have created life of the earth yet no life of my body, a child of greatness will learn of weakness, a leader the joys of service, I will raise in him to abhor Lies, Inequity, and non representational Government to ensure that mankind's greatness can kindle within Him the ability to advance Mankind."
The prophet Jor spoke 'He is called Kal, of the House of El'
Jonathon named Him Clark, so as to conceal His nature for although He was invulnerable He was yet an infant and could be quickly stolen.
An General of the Military, named Lane, also gave witness to the coming of Clark and mobilized his men to capture the infant, and with the might of the Military Jonathon took Clark and fled.
The Prophet Jor spoke to Lane, who was a wicked man and saw not hope but horror in the infant Clark and in this time, known as the Slaughter of Innocents, all infant children were brought the bullet yet the Kent's known as barren were able to keep Clark secreted away along with Lana and Alexander. </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to buy school supplies? </s> <|assistant|> Shopping for school supplies can be stressful for both the seasoned shopper and the beginner. Working parents or guardians have to fight the crowds that gather on weekends or after the end of the workday. Even worse, the cost of school supplies steadily increases every year, costing families an average of just under $100 in 2015. The good news is that you don’t have to stress out or go bankrupt. By spacing out your purchases and practicing a few money-saving hacks, you can survive the back-to-school madness.
## Buy basic supply
1. Get a list from your child’s school. Don’t rely on your child for a list of what they need for school. If a list isn’t available on the school’s website, ask the teachers if they can send you a list or give you some ideas. As a last resort, department stores sometimes have lists of common school supplies on their websites.
2. Know the difference between requests and requirements. Before you panic over the long supply list on the school’s website, realize that many of the items are merely requests. One good rule of thumb is to avoid items the list specifically forbids. Use your best judgment as to which items your child might actually need.
3. Purchase writing supplies. Elementary teachers usually prefer their students to use #2 (HP) pencils with erasers. Students in middle- and high school usually use ballpoint pens. Stick to black or blue ink. Most students will also need notebooks or loose-leaf paper. Check the supply list for whether you should buy wide-ruled or college-ruled paper. Children in elementary school usually need pencil bags or boxes to store their supplies for writing and art. Most classrooms have pencil sharpeners, but it’s always a good idea to check the supply list in case your child’s teacher requires individual pencil sharpeners. Middle- and high-school students might need highlighters for studying and general note-taking.
4. Buy folders. Whether students use notebooks or loose-leaf paper, they still need folders for the documents they receive in class. Buy one folder for each class, each in a different color or pattern. That way, your child can pattern- or color-code each folder by class (red for English, green for math, rainbow stripes for science, etc. ).
5. Purchase a day planner. Students in middle school and high school usually need day planners to keep track of their classes and after-school activities. Look for planners organized by the academic year, as opposed to the semester. This way, your child will stay organized from the first day of school in the fall to the last day of school in the spring.
6. Buy art supplies. Children in elementary school usually need art supplies for a variety of activities. Buy one box of crayons, colored pencils, or washable markers. Other common materials you need to purchase are safety scissors and glue. Purchase glue sticks for younger students more likely to make a mess.
7. Purchase personal supplies. Elementary school teachers usually request one or two boxes of facial tissues per student. Hand sanitizer also comes in handy during cold and flu season. Aim for one 8-ounce (about 237mL) bottle for the classroom and one travel-sized bottle for the backpack. Students in middle school and high school need supplies for their lockers. Common supplies include plastic shelves, mirrors, and magnets. The school supply list should mention if a combination lock is required.
8. Buy a sturdy backpack or book bag. Thanks to block scheduling, many older students take only two to four classes at a time. However, textbooks haven’t gotten any lighter. Buy a bag that can carry at least two to four hardcover textbooks, a large notebook or binder, and a pencil bag.
## Shop for electronics
1. Buy a calculator. High school students (or advanced middle school students) taking algebra, geometry, or calculus usually need calculators. Advanced math classes require specs beyond the basic calculator you use to balance your checkbook. The two most common kinds of calculators required by algebra and geometry students are:
* Scientific calculators perform the functions students study in Algebra I and Algebra II. The average scientific calculator costs between $15 and $30. Graphing calculators are required for advanced calculus classes. Graphing calculators are more expensive, costing $100 and up.
2. Purchase a computer. High school students will likely need a laptop or tablet computer for their assignments. Unless school officials specify certain brands, either a Mac or a Windows computer should be fine. Word processing software, such as Microsoft Word or Open Office Writer, is a must for papers and other homework assignments. If your child needs any specialty programs (such as Photoshop for a graphic design class), the school should note them on the supply list. Buy your computer only from reputable sources, such as Simply Mac or Best Buy. Consider an extended warranty if it fits your budget.
3. Buy external storage. Even students who use their laptops and tablets at school need flash drives for printing their documents. Buy a smaller (4 GB) flash drive for storing basic word documents or spreadsheets. If you child is taking classes in graphic design or computer science, opt for a larger flash drive of about 16 to 32 GB.
## Save money
1. Sort out what you already have. Check the closets, attic, or junk drawer for supplies from past school years. Chances are you have a few pens, pencils, sheets of loose-leaf paper, or coloring supplies lying around. If you have older children heading off to college, ask them if they wouldn’t mind giving their locker accessories to their younger sibling(s). Try to find substitutes for more expensive items. For example, if your kindergartener needs an art smock, substitute an old, oversized button-down shirt. Swap meets are another great way of accessing gently used supplies, such as binders, backpacks, locker organizers, and flash drives.
2. Stick to basics and generics. Choose folders, notebooks, or binders in basic colors or designs. That folder or notebook featuring Batman or Yoda might be cool this year, but it will also cost more than a folder with solid colors or abstract non-commercial designs. Don’t worry about brand names, even if the school list mentions them. Generic labels are just as good for a fraction of brand-name costs.
3. Take advantage of discounts. Check newspapers, store circulars, and websites for coupons. Look for items that offer rebates, and mail the rebate form as soon as possible. If you belong to a rewards site like MyPoints, shop through the website to earn points or cash back. Cash in your points at rewards sites for gift cards or prepaid debit cards. These are usually available in denominations of $25 to $100. Use them when buying school supplies.
4. Buy used, electronic, or out-of-copyright textbooks. Check bargain websites like Alibris or Half.com for steeply discounted used textbooks. E-book versions of required textbooks could also save you money, since printing costs are not a factor. Required reading for humanities or social sciences classes might be available as free out-of-copyright PDFs from sites like Internet Archive or Project Gutenberg. Ask your instructor if they allow these older editions.
5. Buy refurbished. Refurbished computers run as smoothly as brand new ones for a fraction of the cost. However, you should do your homework first. Only buy refurbished products from trusted retailers like Apple or Best Buy, which offer warranties and free repairs on known issues.
6. Buy a little at a time throughout the year. There’s no rule that you have to buy school supplies in July and August. Each time you’re shopping for groceries or picking up a prescription, stop by the school supply aisle to look for unannounced discounts on common required supplies.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> How to check if your spirit is working? </s> <|assistant|> ## Step
1. Get a job so you get paid to do something where money is NOT the primary motivation. It may be easy to perform but there is not much challenge, and you will probably eventually find other work to do.
2. Be engaged or not. Your spirit may or may not be engaged by a job.
3. Find a career as something you get paid to do that is for status or identity as a basic motivation. It may provide more challenge, but after a while, if you get burned out, you may stop doing it.
4. See whether your work fully engages you and engages your spirit or not. If it does not that is a job. If it does that is potentially your life's work!
5. Discover your life's work which is something that you may want to do whether you get paid for it or not (Your soul's need for expression and engagement is the motivation.). There is plenty of challenge and personal meaning if it fully engages you. You will always want to do it--if it is your life's work. It definitely fully engages your spirit.
6. See whether your "job" can get lead toward your life's work.
7. Explore your interests in different jobs and this provides the very important element of exposure to different kinds of industries and kinds of skills and crafts, etc.
8. Consider this pathway to finding your life's work: Start out working in a "job" in a department store as a clerk. Move into a management "position" to learn management and supervision skills. Quit and use the skills you learned to finally:
*
* Create the spiritually engaged work: call it your Your Life's Work as an independent contractor training others in customer service skills--if it fully engages you.
## Find whether you spirit be engage at work
1. Print out these lists to use as a "checklist".
2. Place a check next to the statements that sound like you in your present work environment.
3. Count your check marks after your finish the check off. How much spirit is involved.
4. Using your life force Sharing innate gifts and talents Doing work that is meaningful and fulfilling You are propelled by a higher purpose in your life Serving human beings as a higher calling for Allowing your inner light to shine forth Standing up for something you believe in Benefiting the world by what you do Doing you activity in a unique way Using your creativity, passion, and purpose
5. Integrating your being and doing (balancing "feminine" and "masculine" energies) No longer feeling lost and unsure of how to make it happen Feeling fully engaged, frequent moments of flow and inspiration Stepping into your Greatness Increasing your awareness and sensitivity Using deeper thoughts, higher level thinking Questioning the status quo
6. Matching your intentions and actions Feeling energized even after a “hard day at work” Experiencing inner feelings of peace and contentment Feeling like you have found the right path Making efforts that are non-traditional (not in lockstep with what someone told you to do) Shattering the box or the glass-ceiling (requires you to venture into unknown territory for you)
7. Allowing your soul to lead you through the process of discovery... (There are no instructions, no right or wrong way to find the desires of your soul!) Having opportunity to really express who you actually are
* Desiring to be surrounded by or create beauty
* Living in freedom--to do it your own way
* Discovering skills and talents you never knew you had
* Experiencing butterflies or being scared sometimes
* Finding your desired “right things”--right for your spirit
* Feeling “turned on,” lit up, excited, enthusiastic
* No longer wanting to settle for ordinary or mediocre
* Finding positive change and newness in your work
* Broadening your perspective, seeing more of the big picture
* Shifting to wanting to learn more in your work, be more, and do more
* Relying more on intuition to make life decisions.
8. See how engaged you are by seeing that the more check marks that you have: then more of your spirit is engaged in your work.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> When reading some documentation about the security of a product, I found that the vendor uses the SHA-2 of a password to encrypt data (AES-256), instead of using this password directly.
Are there any advantages of doing so?
An attacker is not going to crack the encrypted data using this SHA-2-as-a-password key but rather exhaust the password keyspace (if feasible) and try its hash. Therefore the only reason I can think of is that there is an extra computational step (the creation of the hash). I would have rather increased the password entropy if the point is to computationally complexify the attack. </s> <|assistant|> It sounds like a primitive version of a key derivation function (KDF), in particular they probably could have avoided reinventing the wheel by using PBKDF2.
There are several reasons why you don't want to use the password directly as an AES key.
* To distribute the bits. The main property here is that a hash function's output is, statistically speaking, uniformly distributed. People tend to pick passwords that aren't fully random, in particular, most passwords would only contain characters you can type in a keyboard. When used as an encryption key, a non-statistically random key may expose weaknesses in the encryption function.
* To fit the keys to the encryption key length. Most passwords are going to be either longer or shorter than the key space of the encryption function. By hashing your password, the exact key length will be exactly the size of the input key of your encryption function. While the entropy of the derived key doesn't increase, this avoids the likelihood of exposing weakness in the encryption function if you just simply zero pad the password or worse truncate the password.
* To slow down key derivation decryption. Per your description, the software is only using a single SHA256 round, which is not much. But with proper password based KDF, like PBKDF2, there are usually tens of thousands or hundreds of thousands of rounds of the underlying hash function. This slows down computing the keys, increasing the effective strength of passwords without increasing its length.
* To keep the user's plain text password out of memory, thus preventing it from being accidentally dumped to disk during hibernation or crash dump. While this wouldn't protect the hash from being used to decrypt the data you're encrypting, it will prevent the password from being reused to decrypt other files (which presumably uses different salt) or being tried on your online accounts or other devices that you use.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I want to work with influencers to elevate my brand's reach to the next level. Reach out to them by email. </s> <|assistant|> Dear [Influencer Name],
I hope this email finds you well. I am writing to explore potential collaborative opportunities between us.
My name is [Your Name] and I am the [Job Role] of [Company]. We are an established brand with a strong presence in the industry. Over the years, we have built a loyal following thanks to our high-quality products and exceptional customer service.
However, we believe there is room for improvement when it comes to our online reach. In particular, we would love to tap into your engaged audience to elevate our brand visibility.
With over [X Followers], you have proven yourself to be one of the leading influencers in the industry. Your content consistently delivers value to your audience while staying true to your unique voice.
We would be honored to partner with you to create compelling sponsored posts that both our audiences will love. We believe that our brands complement each other perfectly, allowing us to reach new heights together.
Thank you for considering our proposal. If you're interested in discussing further, please let me know.
Best regards,
[Your Company Name] </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> I'm the admin of a Facebook group about hiking in my area. As we're heading into the summer, I'd like to remind members to be mindful of safety. Can you draft a post for me? </s> <|assistant|> 🛑 Safety First! 🛑
Hey everyone! Now that the weather is warming up and we're all enjoying nature, I wanted to share a few safety tips to help everyone stay safe on the trails 😎
💦 Pack plenty of water
👫 Hike in groups
⚡ Charge your phones
🧭 Use apps like AllTrails to keep track of where you're going
🐍 Look and listen for rattlesnakes - if you see one, keep your distance!
🦟 Use mosquito spray, and shower after hikes to wash off any insects
☀️ Wear sunscreen! </s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> Why is %s better than + for concatenation in python? </s> <|assistant|> There are several benefits of using ```%s``` over ```+``` for string concatenation in Python:
* Readability. The format string syntax is more readable, as it separates style from the data. Also, in Python, ```%s``` syntax will automatically coerce any non ```str``` types to ```str```; while concatenation only works with ```str```, and you can't concatenate ```str``` with ```int```.
* Performance. In Python ```str``` is immutable, so the left and right string have to be copied into the new string for every pair of concatenation. If you concatenate four strings of length 10, you will be copying (10+10) + ((10+10)+10) + (((10+10)+10)+10) = 90 characters, instead of just 40 characters. And things gets quadratically worse as the number and size of the string increases. Java optimizes this case some of the times by transforming the series of concatenation to use ```StringBuilder```, but CPython doesn't.
* For some use cases, the logging library provide an API that uses format string to create the log entry string lazily (```logging.info("blah: %s", 4)```). This is great for improved performance if the logging library decided that the current log entry will be discarded by a log filter, so it doesn't need to format the string.
</s> |
<|system|> You are an AI assistant that follows instruction extremely well. Help as much as you can. </s> <|prompter|> You're secretly a mind-reader. One of your classmates, a writer, has The Best daydreams. One keeps recurring, and you realize that they're stuck on a plothole. Write a story. </s> <|assistant|> It’s always been the same scene lately.
Ann sighed as she scribbled something, before the scene started again. She was working on a book, and I’d been following the plot develop almost religiously. It was fascinating to watch the characters develop into people in front of my eyes, where as once they were simple dots without a voice.
But then the stories started and the characters developed with them. The heroine travelling ancient lands, experiencing a new world is never seen before. I watched the trees grow and the universe develop. I actually tasted the sweet fruits the party tasted and experienced the groups development into friends.
But now it was always the same scene. The final battle against the emperor lich.
Is it bad that at this point I was invested in this make believe quest? That as the dreams became darker and darker, the brave heroine continuously being struck down, I couldn’t stop the pain in my heart? But I couldn’t look away, hoping to watch a happy ending.
It was like the day dream had become a part of me, every blade of grass I had seen so real I could touch it. The epic final battle, so vividly pictured I could smell the blood as the heroine was cut down again and again.
I left the dream to look down at my incomplete work, which no longer felt real. My world had been dulled, unable to compare to other people day dreams. From floating cities to talking dogs to simple moments of someone cuddled up with a family member. Life had become so lonely since I tried to tell my friends about-
I returned to the story Ann had woven, the touching tale of a group of friends that would always be there for each other no matter what, hoping this ending would be better. </s> |