Tuesday, May 31, 2016

How to Design a Transforming Robot


Edit Article

Community Q&A

This is a formulaic method of creating an original transformer design. This strategy will create a robot mode of given proportions with a randomized distribution of vehicle mode parts from a given vehicle mode. Designing a transformer with this method takes around 10-20 minutes per part and results in a simplistic layout design that can possibly be further refined.

Ad

Steps

  1. 1

    Choose an alternate mode for the transformer. Referencing can be done on the internet, though a real life reference will work better as front, right and top views will need to be drawn of the alternate mode.

  2. 2

    Lay out the top, right and front side views of alternate mode on a piece of graph paper.

    When drawing the views, it is helpful to draw a box that will encircle each view, and then drawing the view inside. Each view can be an outline of the overall form, save for any separate parts that are desired (In this case, the wheels are drawn separately because they will be independent of other parts in the final design).

    • If the design is going to be symmetrical along an axis, then split each view where that axis is relevant, though keep the other side for symmetric parts that will cross the axis. Snapping the drawing to the gridlines of the graph paper can make the drawing easier and will simplify the physical design process later. When laying out each view, use a straightedge to make sure that a feature in one view lines up with the same feature in a different view. It is important that the end drawing is basically a 2D representation of a 3D object.

  3. 3

    Lay out the top, right and front views of the robot skeleton on a separate sheet of graph paper.

    These views do not need to be much more detailed than stick figures; what is important are the proportions of each line because this will be the guide for the robot mode. robot mode views should take up approximately the same amount of space as the alternate mode views to ensure that the form is used efficiently; a larger skeleton would create a spindly robot and a smaller skeleton would end up with a lot of unused mass.

    • The robot skeleton should be drawn to the same scale as the alternate mode on the other piece of paper to ease the transfer of distances later. Making sure each limb lines up to an approximate gridline is also important, as it will make the design phase much easier.

  4. 4

    Choose a piece of the vehicle mode that looks like it could be used in robot mode. This is going to ground the design and create a starting point to develop the transformation from. Using a pencil, outline the form from the vehicle mode in all three views. Redraw this outlined form in the planned place on the robot mode, make sure that the part is the same in both modes (i.e make sure that the same views are visible on both sheets of paper). If the part looks OK, outline it on both sheets in the same color of colored pencil.

  5. 5

    Pick out the next form on the vehicle mode by choosing a limb of the skeleton that is adjacent to the part just chosen. What is most likely already decided is the the height of this part, so the width and length can be set to whatever looks aesthetically desiring and won't occupy the volume of another part. after the basic views of this second part are drawn onto the robot skeleton, place the same part somewhere inside the alternate mode drawings (the piece should be touching the previous part and if it does not line up exactly, follow the steps below to design a hinge

  6. 6

    Design a hinge assembly.

    Sometimes the part as it is placed in the alternate mode may not line up with it's placement in robot mode. A hinge can be designed that will allow two parts to relate to each other exactly in both robot mode and vehicle mode while still allowing the parts to be connected.

    • Draw the two pieces on another piece of paper, the exact same size and the exact same position as they are aligned in the alternate mode. If the pieces only need to be manipulated in one plane of movement, then one view is fine. Otherwise, multiple views of the relation will be required depending on how many planes the part will be rotated across.
    • One part will be mobile and the other grounded. Draw a dot to symbolize the axis that the piece will be rotated around and then rotate the piece about that axis (keep in mind that the part should ideally be moved into position with as least rotations as possible). Draw this updated view directly below the first for reference. When rotating about the axis, each point of the part moves in a circle. If any point of the mobile part clips the grounded part, shear the collided section off by drawing a curve from the nearest 90-degree extension from the axis past the point of collision with a red colored pencil; any part colored in red will be the new feature of that section of the part. If the part is now rotated into the correct position, then skip the next step. If not, continue on to the next step.
    • Select another point that will be the axis for rotation and rotate the part about that axis. Repeat this step as many times as possible to get the part in position. make sure to record the axis of rotation for each movement.
    • Record the position of each axis relative to the mobile and grounded parts (and possibly the other axis) of the first drawing on the third sheet of paper. If there is only one axis point, draw a circle around it that will symbolize the hinge assembly (preferably the diameter of whatever the smallest increment is on the graph paper for simplicity). If there is more than one axis point, draw a single path to the axis points using straight 90-degree lines. If the axis of rotation is located off of both parts at any given point, an extension of one of the parts might need to be drawn in place of an additional assembly. A hinge part is generated by making an eighth-inch border around the part and making the part a quarter inch thick. If more than two axis are used, the hinge assembly will require <the amount of axis points - 1> parts. The hinges will be stacked. Draw the position of the hinge(s) in both the starting and ending assembly. The hinge(s) should be the same shape, size and relation to each other in both assemblies. The hinge assembly will substitute some of the volume in the starting parts, so make sure to account for that.
    • Draw the hinge into both the robot mode and vehicle mode views. Use the third page to reference the position of the hinges.

  7. 7

    Continue to add parts to the robot mode by using pieces of the vehicle mode. Make sure to to not use space that is used by another part(This is why there are three views) and use up as much of the alternate mode's mass as possible to minimize extraneous parts. It is OK if not all the mass of the vehicle mode is used up. Outline each new piece with a new color of colored pencil.

  8. 8

    After the robot mode skeleton is completely covered, fill in the vehicle mode by assigning any extra mass to limbs. It is suggested that the vehicle mode layout (and possibly the robot mode layout) be traced to account for the extra design. More hinge assemblies may be required to deal with these parts.

  9. 9

    Produce the design in some way, like a 3D model. Some parts may require further refining and checking, which can be done by redrawing the design and modeling the design in some form. The hinge assemblies are designed to be filled with a small pin the diameter of a paperclip (~ 1/32"). The design may need further development depending on the desired means of production.

Tips

  • Keep with it. What is probably the hardest thing to do (next to the design process itself) is the ability to be OK with the final product regardless of how it turns out. A transformer's alt mode won't be as accurate as a model of the same thing, and It's robot mode probably won't be as pose able as a general action figure. The key is the compromise, and a design that might fail in some ways can surprise in others.
  • Keep the colored pencils sharp
  • A mechanical pencil is probably more effective at drafting than a sample one.
  • The above 3D design was modeled in Autodesk Inventor. Inventor is free under a student license, as are possibly other 3D design programs. Modeling the parts can be an effective way of helping look at a design, if a computer is on hand.

Article Info

Featured Article

Categories: Featured Articles | Robots

Thanks to all authors for creating a page that has been read 934 times.

Did this article help you?

 



How to Write a Last Minute Essay

Although it's much easier to write an essay well ahead of when it's due, many of us leave essays until the last minute, at least once in a while. If you find yourself in this all-too-common situation, stay positive and don't panic - it's possible to write a good essay, even when time is short.

EditSteps

EditCreating the Right Environment

  1. Remove or minimize distractions in your workspace. These may include other people, noise, television, music, your phone, and the internet.
    Write a Last Minute Essay Step 01.jpg
    • Temporarily block websites that you know might distract you, such as social media websites and apps.
    • Some people prefer to use earplugs to block or reduce out any ambient noise.
    • Let others around you know that you have to work on an assignment and would appreciate not being disturbed.
    • Call off anything you'd plan to do otherwise. Explain that you have a last minute essay to finish. Be persistent if people try to pull you away from your work: "I'd go out if I could, but I HAVE to finish this essay. Maybe tomorrow?"
  2. Prepare your workspace for writing. Wherever you are working to write the essay, make sure it is clear of clutter and is comfortable. Just don’t take things too far. You’re trying to make your workspace conducive to writing, but if you find yourself trying to deep clean your entire house before you write your essay, you’re probably just procrastinating. [1]
    Write a Last Minute Essay Step 02.jpg
  3. Gather whatever materials you will need to write the essay. This includes any textbooks, notes, articles, research, etc., as well as your computer and/or writing utensils.
    Write a Last Minute Essay Step 03.jpg
    • If you have any other things that help you write, like snacks or coffee, have those easily available as well. You’ll need to stay energized and comfortable throughout the writing process.
  4. Take a deep breath. Once you have everything you need to start writing, take a moment to focus before you begin. Breathe in, and try to focus your mind on the essay you are about to write. Motivate yourself by thinking about how you are now ready to tackle the task of writing, rather than stressing about how you don’t have enough time: "I can do this. I've got everything I need in front of me. I just need to focus for X amount of time, and then I'll be through with this essay."
    Write a Last Minute Essay Step 04.jpg
  5. Work extra hard to focus if you're planning on writing late into the night. Pulling an "all nighter" is not recommended when trying to write an essay, as it can leave you exhausted and your work seeming unfocused. If you are in a situation where you have to do this, however, a few guidelines will help you to do the best you can:[2]
    Write a Last Minute Essay Step 05.jpg
    • Save caffeine for when you really need it. Try to avoid having too much early on in the process, because caffeine will eventually cause you to mentally "crash."
    • Don't get too comfortable. Write in a place that means "work" to you, such as a desk, study room, or library. Try not to get in your pajamas or lie in bed. You'll want to keep your mind on writing, not drifting off to sleep.
    • Get some exercise now and then. Get up from your work to walk around for a few minutes, or do a few pushups, etc. once in a while while working on your essay. A little bit of exercise will help keep you energized and stay focused.
    • Get plenty of sleep the next day. You will need to recover from your lack of sleep.

EditPrewriting

  1. Start by reading the assignment. Look over any prompt or guidelines you have for writing the essay very carefully. Sometimes fully understanding the assignment is half the battle.[3] You will want to make sure you follow any instructions you are given regarding the length, format, and content of the essay. Usually, the keys to writing a great essay are there in the prompt.
    Write a Last Minute Essay Step 06.jpg
    • For example, if you are writing for a literature class and a prompt asks you to "illustrate your argument with specific evidence," you'll know that means the essay will need to quote directly from the text you are reading.
  2. Make an outline. Choose a style you prefer (bullet points, a diagram, brief sentences, etc.). The outline doesn’t necessarily have to be very extensive, but at the very least you should jot down the main points you think your essay will make.[4]
    Write a Last Minute Essay Step 07.jpg
    • When making your outline, work closely with the texts or research you will use to write the essay. Look for key points and quotations that you think you might incorporate into the essay, and make a note of them.
    • While it might seem like stopping to make an outline will eat up precious time, it will actually help you write more efficiently and clearly.[5] Having a few points in mind, and a sense of direction, will keep the essay from rambling.
  3. Don’t use over-preparation as a way of procrastinating. This is especially the case if you are working on a paper that requires research or outside readings. It is tempting to put off the actual writing of the essay by doing more research, but the preparation has to come to an end so you can begin your work.[6] You can always come back to your research while you are writing or revising if you think you need to incorporate more.
    Write a Last Minute Essay Step 08.jpg

EditCrafting a Strong Thesis

  1. Consider what the main point of your essay will be. Many rushed papers lack a strong thesis.[7] Spending extra time focusing your main objective will result in a stronger essay. What question will your essay address?
    Write a Last Minute Essay Step 09.jpg
    • Sometimes, an essay prompt gives you a specific question to answer, and sometimes you are asked to develop your own, so read your assignment directions carefully. Whatever the case, your thesis is your specific answer to the question.
  2. Formulate a thesis that is arguable. This means that you will be working to convince your reader of your point by providing evidence to back it up.[8] Write out your thesis when you are making your outline. If it sounds like too obvious of a point, revise it until it seems more arguable. A thesis is more than a topic or statement of fact.
    Write a Last Minute Essay Step 10.jpg
    • "United States government" is an example of a topic or subject.
    • "The United States government is comprised of three branches: the legislative, the judicial, and the executive" is a statement of fact.
    • "The structural division of the United States government into the legislative, judicial, and executive branches is responsible for the long-term stability of the nation" is an example of a thesis because it would leave a reader expecting you to explain further. They might wonder, for example, why you think the branches of the government are responsible for the nation's stability, as opposed to economic or cultural factors, and you essay has the opportunity to explain and answer this.
  3. Choose a thesis that is appropriate to your assignment type. There are several kinds of theses. For example, an expository thesis explains something to readers, while an analytical thesis breaks down a topic into parts and evaluates them. Even an essay based on a narrative (story) will benefit from a clear thesis.[9] Read your prompt or assignment sheet carefully to understand which kind of thesis you need for your essay.
    Write a Last Minute Essay Step 11.jpg
    • A prompt that asks you to "Evaluate the relationship between the branches of the United States government," for example, seeks an analytical thesis. On the other hand, a prompt that asks you to "Describe the process by which the United States government was divided into three branches" is asking you to narrate a sequence of events.


EditWriting the First Draft

  1. Begin with the introduction. The introduction is a very important part of an essay—perhaps the most important—because it orients your reader and explains your argument.[10] For the first draft, however, don’t agonize over it. You just need to begin writing. The introduction doesn’t have to be perfect in the first draft, because you can come back and edit it later. Get something down, and it will help you move confidently forward.
    Write a Last Minute Essay Step 12.jpg
    • When you are pressed for time, don't worry too much about writing a creative introduction--just try to write one that is clear and focused. If you have time left at the end, you can come back and try to improve it.
    • A simple but effective plan is to make sure that your introduction states your essay's thesis, and gives an overview of what the subsequent paragraphs or sections will discuss. Your outline will help you do this. A simple version of this would look something like "In this essay, I will first describe X, before moving on to Y and Z. Then, I will explain the relationship between X,Y, and Z, demonstrating that [insert thesis statement here]."
  2. Follow your outline. Take the writing of the essay bit by bit, following the outline you made. This will keep your writing on track, and keeping your plan in mind will encourage you to keep going.
    Write a Last Minute Essay Step 13.jpg
  3. Don’t get caught up worrying about word choice, spelling, etc. If you're wavering between describing Shakespeare as a "great" writer, or "the greatest," for example, just pick one for now and move on.You’ll be able to deal with such things when you do a final read-through of the essay. When time is short, you will write more productively, and keep your morale up, if you keep pushing through with more writing. [11]
    Write a Last Minute Essay Step 14.jpg
  4. Cite any works you use as a reference or for quotations. If you are quoting another work, cite it according to the style (MLA, APA, Chicago, etc.) your instructor wants you to use. Even if you are just paraphrasing a work, you should cite it. If you don’t properly cite your sources, you are plagiarizing. As a rule of thumb, if you got an idea or information from a source outside of your own head, you should cite it.[12]
    Write a Last Minute Essay Step 15.jpg
    • It is far easier to cite while you are writing than to go back and try to add in citations after you have written your paper. Keep up with them as you go.
  5. Pace yourself. While you have to work quickly, take a short break from writing now and then, especially if you get stuck—just don’t get distracted and take too long.
    Write a Last Minute Essay Step 16.jpg
    • Some prefer to take scheduled breaks, by setting a timer or watching a clock. Others prefer to take a break after reaching a convenient stopping point, such as the end of a paragraph or page. Whatever method you choose, make a note of where to pick back up when you return to writing.[13]
    • Take a breath, get up, have a drink or snack. By taking a short break, you’re not wasting time—you’re actually helping yourself write more efficiently by clearing your head and relieving stress.[14]

EditReviewing your Work

  1. Reevaluate your essay’s thesis and argument. Look back over your essay and make sure one last time that your thesis makes sense and is arguable, and that your writing supports it. [15]
    Write a Last Minute Essay Step 17.jpg
    • Editing at the end is a critically important step.[16] While it can be tempting to consider yourself done once you have a draft, you can greatly improve your essay (and eventual grade) if you take some time to review it and make any necessary changes.
    • Review your essay’s structure, organization, and style. Make sure your paragraphs proceed in a logical way; move them around if they don’t. Now is also the time to go back and edit any of your sentences for word choice, clarity, and grammar.
  2. Focus your editing if you are running out of time. If you're really pressed for time, then probably the most beneficial things you can do to improve your essay are to make a reverse outline and to revise your introduction.[17]
    Write a Last Minute Essay Step 18.jpg
    • A reverse outline is a great, quick strategy to check the logic of your essay’s structure.[18] To do this, you create an outline from your finished draft, jotting down the main ideas of your essay paragraph by paragraph. The result will look much like an outline you would create before writing an essay, but you can use it to double-check your finished product.
    • Editing your introduction can clarify your thesis and make your essay stronger. While you made your outline and began writing your essay with a certain idea of what your thesis or "point" was, that idea probably changed at least slightly as you wrote the essay itself. Go back to the intro after you have finished a draft of the essay and make any changes to the wording of your thesis based on what the rest of the essay says (the reverse outline will help figure this out).
  3. Proofread your work. At the final stage of writing, do a quick check of your essay for any remaining spelling and grammatical errors.
    Write a Last Minute Essay Step 19.jpg
    • Electronic spelling and grammar checkers can help you out, but don’t rely on them to do all the work. Always do a read-through before submitting your work.
    • The most efficient technique for catching mistakes is to read your work out loud.[19]
    • Get someone you know and trust to proofread your work, if you can. A pair of fresh eyes can catch mistakes you might have overlooked.
  4. Submit your work on time. Print the essay if you need to. If you are submitting electronically, do everything you can to make sure the file type is correct and the file was received.
    Write a Last Minute Essay Step 20.jpg

EditTips

  • If you are worried about meeting an assignment’s length requirement, you can try writing longer sentences with more adjectives, or using more quotations. Do so sparingly, however, because over-reliance on these techniques will lower the quality of your work.
  • Another technique to meet an assignment’s length requirement is to enlarge an essay’s font, margins, or line spacing slightly. Be aware that you instructor might notice the difference, however.

EditWarnings

  • Whatever you do, don’t plagiarize. The consequences can be severe. Turning in even a lower quality essay is better than being caught for plagiarizing one. If you are truly pressed for time, you can also try asking your instructor for an extension of the assignment’s due date, anyway.

EditRelated wikiHows

EditSources and Citations


Cite error: <ref> tags exist, but no <references/> tag was found




How to Breed Canaries

Canaries are wonderful birds to keep in your home because they are easy to care for and relatively content being alone.[1] However, one thing about canaries is not completely simple and that is breeding them. Breeding canaries requires some advance planning, specialized equipment, specific food, and luck. Breeding these birds the proper way is important because it ensures a stress-free environment for them, as well as a greater chance of producing offspring. If you plan to breed canaries, only do so if you can look after all the resulting chicks if they don't find homes.

EditSteps

EditPreparing for Your Canaries to Mate

  1. Purchase breeding supplies. In addition to the basic supplies you should already have for your birds, you will need a large cage for the canaries to breed in, a nest for the female to lay its eggs in, and nesting material the female will use to build up the nest.[2] You may also need a light to shine on the cage if your region is getting less than 14 hours of light each day.
    Breed Canaries Step 1 Version 2.jpg
    • There are special breeding cages available that first allow the male and female canary to become accustomed to one another without allowing contact. These cages have a divider down the middle that can be removed when you are ready to allow your canaries to mate.[3]
    • Nests for breeding canaries are available from specialty pet supply providers. If you buy a pre-made nest, you will also need to buy your canaries some nesting material that they can add to the pre-made nest.
  2. Keep canaries separated until time to breed. Unless actively breeding, canaries must be kept in their own cages. Males tend to fight and a male might kill the female if she is not ready to breed. Their cages can, however, be kept in the same room.
    Breed Canaries Step 2 Version 2.jpg
  3. Watch for signs that the canaries are in "condition," which means they are ready to breed. Breeding usually occurs in the Spring. Canaries like to breed when the temperature is around 70 degrees and there are about 14 hours of light. These conditions can be replicated indoors, in order to promote breeding. Male and female canaries act differently when they are ready to breed.
    Breed Canaries Step 3 Version 2.jpg
    • Male canaries will usually come into condition before the female. Signs that they're ready to mate include dropping their wings when they sing and singing harsher and louder songs. They may also dance around on their perch and be more territorial when other males are nearby.
    • Females will most often begin to tear paper, as if readying a nest, when they come into condition. The most certain sign of their readiness, however, is when their vent appears red and swollen. They may also raise their tails and appear to squat when males are nearby.
  4. Place the male and female canaries near each other, but not in the same cage.[4] Put their cages side by side or place both birds in a special breeding cage that has a central divider. This will get the birds used to each other and their behavior with each other will tell you if they are ready to mate.
    Breed Canaries Step 4 Version 2.jpg
  5. Add a nest to the female's side of the breeding cage. If you are just using a large cage instead of a breeding cage, simply place the nest in the female's cage. Once the female has begun adding nesting material to her nest, it is a sign that she is getting ready to mate.[5]
    Breed Canaries Step 5 Version 2.jpg
  6. Feed a proper diet. Nesting canaries should be fed a proper diet that consists of enriched seed, soft food, and additional calcium from a few weeks before breeding until they are done feeding their chicks.[6] A cuttle-bone or grit is recommended to give the hen the additional calcium required for producing healthy eggs. These speciality foods are available through pet supply companies.
    Breed Canaries Step 6 Version 2.jpg

EditBreeding Your Canaries

  1. Place the canaries together once there are signs that the canaries are ready to breed. This can be indicated by kissing between the canaries and the female beginning to putting nesting material in the nest.[7] If both are in condition, your male and female canaries will begin to "kiss" through the bars of the wire partition by touching beaks. Kissing may happen right away or it may take a few days after you place the canaries near each other. Once they are ready to breed, you can put them in the same cage.
    Breed Canaries Step 7 Version 2.jpg
    • Watch for any fighting. If they begin to fight, separate them immediately and watch for signs that they're still both in condition. However, mating can be relatively aggressive, so be sure that you are not witnessing breeding instead of regular fighting.
  2. Watch for breeding behavior. This will begin with the male courting the female canary. Once she is ready, she will crouch down, signaling her willingness. The male will then mount the female is short, successive bursts.[8]
    Breed Canaries Step 8 Version 2.jpg
  3. Look for eggs in the nest. The female canary can lay anywhere from 2 to 6 eggs.[9] The female will lay one egg a day, usually in the morning. It typically takes 14 days for canary chicks to hatch. They should hatch without any assistance.
    Breed Canaries Step 9.jpg
  4. Keep the chicks with the male and female canaries until they begin eating on their own, usually they are around 3 weeks of age.[10] At first the mother canary will stay with the babies all the time and the father will bring the mother food. Then, gradually, the father will take over feeding the chicks, making sure that they get enough to eat.[11] Once the chicks begin eating on their own and are fully fledged, meaning their wing feathers have developed enough to fly, you may remove them to their own cage.
    Breed Canaries Step 10.jpg
    • At this point you should also separate the parents again as well.

EditVideo

EditWarnings

  • Canaries are not normally social birds, so just placing a male and female bird in the same cage when they are not ready to mate is more likely to result in disaster than in eggs. You need to be very sure that your birds are ready to mate when you introduce them to each other.

EditRelated wikiHows

EditSources and Citations



Cite error: <ref> tags exist, but no <references/> tag was found




Monday, May 30, 2016

How to Terminate a Contract

There are many reasons you may want or need to terminate a contract. A contract may be terminated if certain conditions have changed since the contract was created. Some contracts may also be voided if the contract was never legal in the first place. If you decide to terminate a contract, you should make sure that the termination will result in the least amount of damages for you.


EditSteps

EditSample Termination Letters

EditTerminating a Contract Legally

  1. Use a termination clause. Many types of long-term and automatically renewing contracts have a termination clause. This gives you the steps you need to take if you want to terminate the contract. A common termination clause says that the person who wants out of the contract must notify the others involved of his intent to do so. This must be in writing and within a certain number of days from when they want to end the contract or when it will be automatically renewed.
    Terminate a Contract Step 1 Version 2.jpg
    • Termination clauses may include fees for early termination. Be sure you are willing to pay the penalty before using the clause and terminating the contract.[1]
  2. Argue the contract is impossible. If you are unable to perform your obligations due to some impossibility, you may have a legal right to terminate the contract. You cannot be unable to fulfill the contract because of circumstances you caused yourself. It must be either the fault of the other person involved. It can also be the result of an act of nature, such as a hurricane or tornado. [2][3]
    Terminate a Contract Step 2 Version 2.jpg
    • For example, if you agree to sell your boat tomorrow and tonight a hurricane comes and damages it beyond repair, the sale becomes impossible, and both parties can be excused from the contract. [4]
  3. Claim a frustration of purpose. Frustration of purpose occurs when the reason behind entering a contract goes away. To be able to terminate a contract based on frustration of purpose, the purpose of the contract must be known by all parties involved.[5]
    Terminate a Contract Step 3 Version 2.jpg
    • For example, if you sub-lease an apartment in order to participate in a large local event such as a parade, but the parade is cancelled, you may be able to terminate the sub-lease contract if the other party involved was aware that your purpose for the sub-lease was to participate in the parade.
  4. Identify a failure of condition. If one party fails to fulfill his end of a contract, that lack of performance may allow the second party to terminate his end of a contract.[6]
    Terminate a Contract Step 4 Version 2.jpg
    • For example, if someone was contracted to paint a wall, the other party was contracted to pay him for his service. If the painter fails to uphold his part of the contract (painting the wall), then the other party can legally terminate his side of the contract (to pay for the service) because the painting is a condition of the payment.
  5. Negotiate a termination. If you know you want to terminate a contract, contact the other person involved in the contract. Attempt to negotiate an end to the contract. You and the others involved can cancel the contract by mutual agreement at any time. You may want to offer some compromise by offering to pay some type of cancellation fee, returning funds received as a result of the contract, or offering to continue the contract for a few more months. Be sure to put any new arrangement reached in writing and have both parties sign it.
    Terminate a Contract Step 5 Version 2.jpg
  6. Claim breach of contract. If the person you are in the contract with knowingly fails to keep the terms of the contract, you may terminate your end of the contract. The person who broke the contract has no right to complain that you ended the contract. Since she breached the contract, they have no say in whether or not you terminate the contract. [7]
    Terminate a Contract Step 6 Version 2.jpg

EditRescinding or Voiding a Contract

  1. Rescind the contract. Rescission, or cancellation, of a contract returns the people involved in the contract back to the way they were before they signed the contract. It is a complete cancellation of a contract and may be allowed in certain circumstances. You need to look for the cancellation clause in the contract. The clause will have instructions for rescinding the contract. It will also tell you the time frame that you can do this within. If you are still within the time frame, you need to follow the instructions in the contract to cancel it.[8]
    Terminate a Contract Step 7.jpg
    • For example, a cancellation clause might say that anyone involved in the contract can write to the others involved in the contract and formally cancel the contract. This can be a pre-made form or simple letter stating that you are rescinding the contract. This is only valid after they allow 30 days to pass from the time they wrote the letter of cancellation.[9]
  2. Show a Statute of Frauds violation. Each state has a Statute of Frauds, which determines that certain types of contracts must be in writing in order to be legally enforceable. These types of contracts include the sale of goods with a value over $500, the sale of land or real estate, the payment of another person’s debts, contracts of marriage, and contracts that cannot be completed in one year.[10] You should be able to terminate a verbal contract for any of these things, since they must be in writing to be legally enforceable.
  3. Deal with a no cancellation clause. If your contract does not have this clause, check your state’s statutes to see if you may be within a cancellation period. You can also check with a lawyer or your state’s Attorney General. Some state and federal laws require that certain contracts allow for cancellation within a specific period. This can range from 3 days to an indefinite period, depending on the law.
    • For example, the Federal Truth in Lending Act (Regulation Z) lets you cancel certain contracts, in which your home is used for collateral, before midnight of the third business day after signing the contract. Federal law also allows you three days to cancel a contract for the purchase of $25 or more in goods or services from a door-to-door salesperson.[11][12][13]
    • You can also look for resources from your State Attorney General’s office or on their website.
    • Alternatively, you can check court records in your jurisdiction to see how other contracts without cancellation clauses were treated.
  4. Negotiate cancellation. If your contract does not have a rescission clause and cannot be cancelled by state or federal law, you can try to arrange a cancellation with the other person who signed the contract. You and the other person or people who are part of the contract may agree at any time to cancel it. This can happen even if the contract itself says it can't be cancelled. If you are able to get the others to cancel the contract, be sure you put any agreement in writing. It also need to be signed by everyone involved in the contract.
  5. Claim Constructive Fraud. You may be able to void a contract because of fraud. There are two kinds of fraud, Constructive Fraud and Actual Fraud. Constructive Fraud occurs when one of the people involved unintentionally makes a false claim about something that the other person relies on. As a result of this action, the person is injured.
    • For example, a real estate broker accidentally tells a buyer that the property they want to buy is larger than it really is. Based on this, the buyer purchases the property. The court can find that the broker committed constructive fraud, even though he didn't do it on purpose. If this happens, the broker will have to pay any damages to the buyer and the contract would no longer be valid.
  6. Declare Actual Fraud. This type, also known as fraudulent misrepresentation, happens when one person intentionally lies about something regarding part of the contract. If the other person believes it and is somehow injured, then it is Actual Fraud. This has to be about something material that can be proven false.[14]
    • For example, a painter says he will paint your living room brown using a specific brand of paint. Even if he knows he will use a different brand, the lie is not material. You asked for a brown living room and got one. If the paint works and is brown, the fact that the painter used the wrong brand doesn't matter. If he paints it red instead, he has committed actual fraud.
  7. Prove lack of capacity. There are certain types of people who lack capacity, or the ability, to make certain decisions for themselves. These people cannot enter into legally binding contracts. Age, mental incapacity, or intoxication can interfere with an individual’s capacity to sign contracts. ).[15] If you signed a contract and lack capacity, you can void your contract. If you signed a contract with someone else who lacks capacity, he may terminate the contract at any time.
    Terminate a Contract Step 13.jpg
    • For example, Melissa, 17, signs a contract for a mobile phone service without her parents’ permission. Since Melissa is under 18 and considered a minor in her state, she cannot be held to the contract.[16]
  8. Reveal that you entered into a contract under duress. If you were forced, pressured, or blackmailed into entering a contract, the contract becomes void. You must have entered into the contract knowingly and freely, of your own will, for it to be enforceable. [17]
    Terminate a Contract Step 14.jpg
  9. Show illegality. A contract that is drawn up for something that is illegal is void and unenforceable. This means that either person involved may terminate the contract at any time. In the eyes of the law, there is no contract. For example, Adam agrees to purchase a brothel from Barbara for $500,000. Since brothels are illegal, both Adam and Barbara have the legal right to terminate the contract.[18]
    Terminate a Contract Step 15.jpg
    • This is also true if something makes the action illegal after the contract is signed. For example, Adam agrees to lease property to Barbara for a commercial purpose. Just after they sign, the city rezones the property for residential use only. Because the reason for the contract is now illegal, both Adam and Barbara have a legal right to terminate the contract.
  10. Decide it was a mutual mistake. Mutual mistake occurs when the parties involved in the contract miscommunicated and really never agreed on anything because they did not understand what they were agreeing on. If both you and the other people involved make a genuine mistake in the details of the contract, the contract can be voided if the other person has not yet fulfilled his part of the contract. Once either of you realize the mistake, the contract can be terminated.
    Terminate a Contract Step 16.jpg
    • For example, you buy a piece of cattle at a low price because you and the seller believe the cattle is infertile. You later realize that the cattle is fertile. This would raise the price of the cattle from what you paid. In this case, you both made a mutual mistake that can make the contract unenforceable.[19]

EditHandling a Breach of Contract

  1. Identify a breach of contract. A breach of contract occurs when one party fails to uphold his side of the contract without an adequate legal excuse. A breach of contract can be indicated by a failure to perform or by words or actions that indicate future nonperformance.
    Terminate a Contract Step 17.jpg
  2. Recover your materials. If you are involved in a contract that involves materials (such as the sale of an item), you should be entitled to a full recovery of materials if the other party does not fulfill his end of the contract.[20]
    Terminate a Contract Step 18.jpg
    • For example, if you sell a boat to your neighbor and give him an owner-financed payment plan but he stops making payments, you are entitled to a full recovery of the boat, regardless of the amount your neighbor has paid towards the full amount.
  3. Mitigate your damages. If you are the non-breach party in a contract, you can seek to mitigate (lessen) the damages caused by the other party’s breach of contract by seeking replacement goods or services (known as “cover.”) If the cover costs you the same or less money than your original contract, you may not be entitled to damages. However, if your cover costs you more, you can ask the contract-breaching party to pay the damages (the difference between the original cost and the cover.)[21]
    Terminate a Contract Step 19.jpg
    • Finding cover as soon as possible to the breach of contract can help you show the court that you’ve done your best to avoid consequential damages, or further expenses due to your own failure to act.[22]
    • For example, you may have a contract with a wedding photographer. If your photographer backs out of the contract the week before your wedding, you may need to scramble and find a new photographer at the last minute. If the last-minute photographer costs the same as your original photographer, there are no damages. If the last-minute photographer charges you an additional $500 for the lack of notice, you can ask that the original photographer pay the $500 fee.
  4. Refuse to perform. If you cannot uphold your end of a contract, you can refuse to fulfill the obligations that are laid out in the contract. Refusing to perform your contractual obligations will constitute a breach of contract and may expose you to a breach of contract lawsuit. Before choosing this option, you should consult with an attorney to ensure that you completely understand all consequences of deciding to breach a contract.
    Terminate a Contract Step 20.jpg
  5. File a lawsuit against the breaching party. If the other party has breached a contract, you can file a lawsuit for damages incurred due to the breach. Be sure that you have a copy of the contract, can specifically identify how and when the breach occurred, and document any financial or other damages that you accumulated as a result of the breach.
    Terminate a Contract Step 21.jpg
    • You can hire a lawyer to file the lawsuit for you, or you can do it yourself at your local courthouse.
    • File the lawsuit as soon as possible after the breach. States have varying statutes of limitations for how long after a breach a lawsuit can be filed, but waiting too long can prevent you from being able to take legal action against the breaching party.
  6. Consider Alternative Dispute Resolution. After a contract has been breached, the parties involved may want to consider using Alternative Dispute Resolution (ADR) as a tool to settle a contract dispute. With ADR, anyone involved in the contract often share the cost of hiring a neutral mediator. This person will assist all of you to work out a mutually agreeable outcome. The ADR process includes an evaluation by a neutral third-party who isn’t a lawyer. It also includes a negotiation and mediation.[23]
    Terminate a Contract Step 22.jpg
    • Arbitration is another form of ADR. It allows you to take care of the problem without going to court. Arbitration is a good idea in complex cases or when damages are difficult to calculate.[24][25]

EditWarnings

  • This article is for informational purposes only and not for the purpose of providing legal advice. You should consult with a licensed attorney before taking any action which may affect your legal rights and obligations. If you need additional guidance you may contact a lawyer through your State Bar Association.

EditRelated wikiHows

EditSources and Citations


Cite error: <ref> tags exist, but no <references/> tag was found




How to Test Drupal Code

This article will guide you in starting to write tests for your Drupal code. We'll assume that the code you're writing is primarily within a custom or 'contrib' (community-contributed) Drupal module.There are many ways of testing a Drupal website, but the most popular ways to test Drupal code is unit testing and integration testing. This article will cover unit testing.The easiest way to write and execute tests in Drupal 7 and Drupal 8 is using the Simpletest module, which this guide will cover. However, note that the Drupal core developers have started to use a different testing framework - PHP Unit - for Drupal 8 development.

EditSteps

  1. Enable the Simpletest module.
  2. Look through the tests already available on your site. In any Drupal website, all core modules and many contrib modules that are installed will already have many tests written for Simpletest. You can see all of them by going to 'Configuration' > 'Development' > 'Testing'. Looking through them should give you a better idea of what you can test and how you can label your tests.
  3. Try out the tests that are already available.
  4. Get your module ready for writing tests. In your module folder, add a file named 'modulename.test'. This is a PHP file that you should add all your tests to. Then in your .info file, tell Drupal about the file using files[] = modulename.test.
  5. Add your first test case class.
    <?php
    /**
    * @file
    * Description of file.
    */
     
    class ModuleNameUnitTestsTestCase extends DrupalUnitTestCase {
     
      public static function getInfo() {
        // Note: getInfo() strings should not be translated.
        return array(
          'name' =>         'Functions tests',
          'description' =>  'Test that various functions work properly.',
          'group' =>        'Module Name',
        );
      }
     
    }
    
  6. Write some testing code. Imagine that you've written this function, and you'd like to test that it works properly:
    function negate($int) {
      return $int * -1;
    }
    

    You could write a test (in your modulename.test file, after the getInfo() method) like this:

    public function testNegates() {
      $result = negate(5);
    }
    
  7. Write an assertion that checks the output of the testing code. At the moment, the method in the previous step doesn't actually check the result of the test in any way. To make sure that the value is what we expect, we write an assertion. In this case, we'll add assertEqual() to our method to check that the result equals -5. Also, we'll add a message and group to our assertion, which will be helpful when we're running the test later.
    public function testNegates() {
      $message = "negate() should return a negative integer.";
      $group = "Calculation";
      $result = negate(5);
     
      $this->assertEqual($result, -5, $message, $group);
    }
    
  8. Run your first test. In Drupal, go back to the Testing page. Among the list of tests, you should see the name of your module (if 'group' in your getInfo() method equals your module name). If you don't see it, you might need to flush the Drupal cache (specifically, the 'class' cache). Now enable your test using the checkbox, and select 'Run tests'. After a few seconds, you should see your test, and the result! It should be red if the test failed, and green if it succeeded.
  9. Learn more about Simpletest. You can learn more about the available assertions on the DrupalTestCase page in the Drupal API.

EditTips

  • Test early. As soon as you write code that adds new functionality or fixes broken functionality, write a test to make sure it works as expected.
  • Test often. Keep writing tests as you write code so that it becomes a part of your process, and doesn't become a chore you leave to the end and ignore.
  • Test automatically. If possible, use tools that allow your tests to be run regularly without you having to run the tests yourself.
  • Testing ain't done 'till all the tests run. Making sure you code passes all your tests before handing it off to a client or users means it's far less likely you'll have to come back and fix things later, and it'll improve your reputation and confidence at the same time.

EditSources and Citations



How to Diagnose Pink Eye

Pink eye (conjunctivitis) is the inflammation of the conjunctiva (the outermost layer of the eyes and eyelids). Pink eye is actually a symptom, not a medical condition. The symptom is linked to a variety of causes — most commonly bacterial and viral infections. Luckily, pink eye is fairly easy to diagnose and treat.

EditSteps

EditDiagnosing Pink Eye

  1. Recognize the symptoms. Though itself just a symptom, you can recognize pink eye by the variety of different effects it has on your eyes. You may experience pink eye symptoms in one eye or both, and they commonly include:[1]
    Diagnose Pink Eye Step 1 Version 3.jpg
    • Itching or burning sensations
    • Excessive tearing
    • The sensation of grittiness in your eyes
    • Discharge
    • Eyelid swelling
    • Pinkish discoloration to the sclera (white portion of your eye)
    • Light sensitivity
  2. Note exposure to any allergens. “Allergic conjunctivitis” (actually allergic keratitis) mimics the symptoms of pink eye. However, the symptoms are simply related to exposure to an allergen rather than a bacterial or viral infection (which are the primary causes of pink eye).[2] You may also notice temporary runny nose and sneezing while exposed to the allergen that subsides within several hours of removing the substance from your surrounding area.
    Diagnose Pink Eye Step 2 Version 3.jpg
    • In the case of allergies, symptoms will likely be most pronounced during spring and fall when pollen counts are highest. Other common allergens include cat or dog dander.[3]
    • Seasonal allergies rarely require medical intervention. Try taking an over-the-counter (OTC) allergy medication as directed by the manufacturer.
  3. Note exposure to any irritants. If you’ve recently been exposed to higher than normal amounts of noxious chemicals (such as air pollution or chlorine in a swimming pool), then this can irritate your eyes in a way that mimics pink eye as well.[4] If the removing your exposure to the irritant doesn’t stop the pink eye symptoms within 24 to 36 hours, then you should see your doctor.
    Diagnose Pink Eye Step 3 Version 3.jpg
    • If the irritant is an industrial chemical or cleaner, then you should immediately flush your eyes with a sterile solution for at least fifteen minutes while rotating your eyes to flush around your entire eyeball.[5] You can call the Poison Control Center at (800) 222-1222 for more information regarding dangerous chemical exposure to your eyes.
  4. See your doctor. If — based on the previous criteria — you’re fairly certain that you have pink eye, you should consult your physician for a precise diagnosis. In addition to clarifying your diagnosis, your doctor will also determine the best treatment regimen for your case. Bacterial conjunctivitis will require a different treatment plan than viral conjunctivitis, for instance.[6]
    Diagnose Pink Eye Step 4.jpg
  5. Submit to any diagnostic testing. While typically reserved for severe cases or those that haven’t responded to other treatment options, you doctor may also ask you to submit to diagnostic testing to determine the exact strain of bacteria causing your pink eye. This will commonly include an eye exam and possibly even samples swabbed from your infected eye for analysis in a lab.[7]
    Diagnose Pink Eye Step 5.jpg
    • Your doctor may also run these tests if she suspects that the pink eye has been caused by a sexually transmitted infection (STI) such as chlamydia or gonorrhea.[8]
    • If your doctor determines that your pink eye is due to allergic conjunctivitis, but you don’t know what it is you’re allergic to, then she may recommend allergy testing. This will help you determine the allergens to which you should avoid exposure.[9]
    • Though rare, another diagnostic technique is a conjunctival incisional biopsy, which removes a small amount of tissue from the conjunctiva for microscopic examination.[10] This will only be if your doctor suspects a tumor or a granulomatous disease, which affects your immune system’s ability to fight off certain bacteria and fungi.

EditTreating Pink Eye

  1. Allow viral conjunctivitis to run its course. If your doctor determines that your pink eye is due to a viral infection, then he will most likely tell you simply to be patient. Your immune system will fight off the virus, and your symptoms will clear up on their own.[11] This form of pink eye usually occurs in association with other cold or flu symptoms.[12]
    Diagnose Pink Eye Step 6.jpg
    • In select cases (if your physician diagnoses the herpes virus as the source of your viral conjunctivitis, for instance), your doctor may prescribe an antiviral ointment or eyedrops such as acyclovir ointment or ganciclovir gel.[13] These prescriptions will stop the virus from multiplying and potentially causing further damage to your eye(s).
  2. Take antibiotics for bacterial conjunctivitis. Many minor cases of bacterial pink eye can clear on their own within a week or two. However, your doctor may prescribe an antibiotic to help clear the infection sooner and reduce the amount of time that you’re contagious.[14] A wide assortment of antibiotic eyedrops are available for prescription, and your doctor will determine the best option based on several guidelines, including:
    Diagnose Pink Eye Step 7.jpg
    • Allergies you have to any medications.
    • Your case history (whether or not pink eye infection has been chronic).
    • The exact bacteria responsible for the infection.
  3. Take the full course of medication. If your doctor prescribes either antiviral or antibiotic eyedrops, then ensure you take the entire course of the prescription. Your symptoms may subside after only several days, but you should still take the medication exactly as directed. If you stop early, you’re more likely to experience a recurrence in the infection, and you can also help breed resistant strains of the infection.[15]
    Diagnose Pink Eye Step 8.jpg
    • Contact your doctor immediately if you have an allergic reaction to your prescription, such as a rash, hives, difficulty breathing or swallowing, or swelling of your face, throat, eyes, or tongue.

EditPreventing Pink Eye Infection

  1. Wash your hands often. The infections responsible for pink eye are highly infectious. To prevent spreading them to others (or even reinfecting yourself in the case of bacterial conjunctivitis), you should take several preventative measures. Most importantly, wash your hands regularly with warm, soapy water.[16]
    Diagnose Pink Eye Step 9.jpg
    • You can also keep alcohol-based sanitizers around for your hands when soap isn’t available. Use a hand sanitizer that is at least a 60 percent alcohol solution.[17]
  2. Do not touch or rub your eyes. Though your eyes may itch or feel gritty while you have pink eye, do your best not to touch or rub them.[18] This transfers the virus/bacteria to your hands and everything else you touch after. Even if you don’t have pink eye, touching your eyes vastly increases your risk of accidentally introducing the infection to your eyes.
    Diagnose Pink Eye Step 10.jpg
    • When you do have to touch your eyes, such as when cleaning away the discharge from pink eye, thoroughly wash your hands both before and after you do and always use a clean washcloth if possible.
  3. Wash towels and other items in hot water. You should wash any item that touches your face while you’re sick—towels, washcloths, sheets, pillowcases, etc.—in hot water and detergent.[19] This will ensure that you kill any of the virus/bacteria present and prevent it from spreading to others and/or reinfecting yourself.
    Diagnose Pink Eye Step 11.jpg
    • You should also avoid sharing these items — or other shareable items such as eye makeup, make-up brushes, etc. — with anyone who is sick and/or while you are sick.[20]
  4. Clean and store your contacts correctly. Contact lenses are a very inviting environment for the types of bacteria that can cause pink eye. Make sure that you consistently wash and store your contacts as directed by your eye-care professional.[21] These steps are specifically designed to help avoid eye infections.
    Diagnose Pink Eye Step 12.jpg
    • You should also throw away any disposable lenses you used while you had pink eye, as well as the lens case you used. For extended-wear lenses, clean them as directed.[22]

EditVideo

EditWarnings

  • This article is not intended to supplement medical treatment. Only a professional healthcare provider can accurately diagnose and treat pink eye. 

EditRelated wikiHows

EditSources and Citations


Cite error: <ref> tags exist, but no <references/> tag was found