text:
An extremely simple, pluggable static site generator.Star on GitHub
All of the logic in Metalsmith is handled by plugins. You simply chain them together. Here's what the simplest blog looks like…
…but what if you want to get fancier by hiding your unfinished drafts and using custom permalinks? Just add plugins…
…it's as easy as that!
Metalsmith works in three simple steps:
Each plugin is invoked with the contents of the source directory, with every file parsed for optional YAML front-matter, like so…
title: A Catchy Title
draft: true
An unfinished article...
'path/to/my-file.md': {
title: 'A Catchy Title',
draft: true,
contents: new Buffer('An unfinished article...')
The plugins can manipulate the files however they want, and writing one is super simple. Here's the code for the drafts plugin from above:
return function drafts(files, metalsmith, done){
for (var file in files) {
if (files[file].draft) delete files[file];
Of course they can get a lot more complicated too. That's what makes Metalsmith powerful; the plugins can do anything you want.
Metalsmith and its plugins can be installed with npm:
$ npm install metalsmith
The package exposes both a Javascript API, and CLI in case you're used to that type of workflow from other static site generators. To see how they're used check out the examples.
We keep referring to Metalsmith as a "static site generator", but it's a lot more than that. Since everything is a plugin, the core library is actually just an abstraction for manipulating a directory of files.
Which means you could just as easily use it to make…
The plugins are all reusable. That PDF generator plugin for eBooks? Use it to generate PDFs for each of your blog posts too!
Check out the code examples to get an idea for what's possible.
The core Metalsmith library doesn't bundle any plugins by default. You just require new ones as needed, or make your own!
Here's a list of the current plugins:
Automatically add vendor prefixes to CSS.
Include static assets in your build.
Nicely format your html, css or js files.
Run separate metalsmith pipelines on selected files.
Check for relative and root-relative broken links.
Leverage Browser Sync for an easier development workflow.
Add a build date, for things like feeds or sitemaps.
Minify your CSS Files.
Generate a script to cleanup the build directory, if you are adding more than just Metalsmith files.
Group files together, like blog posts. That way you can loop over them to generate an index, or add 'next' and 'previous' links between them.
Compile CoffeeScript files to Javascript.
Concatenate your files.
Create static sites with data stored at Contentful.com
Convert image files with imagemagick.
Copy and rename files.
Use markdown content within html tags via data-markdown attribute.
Enrich file metadata with dates present in source filenames.
Manually define values in the metadata.
Hide any files marked as drafts.
Compile assets with Duo.
Easily apply a function to each file or filename.
Bump files up one or more directories.
Easily encode HTML entities in any HTML file by surrounding target code in triple backticks.
Omit attributes from each file's metadata.
Extract the first paragraph from the beginning of any Markdown file.
Generate an RSS feed for a collection.
Add metadata on files based on a pattern.
Insert a hash of the content into the file name.
Flatten a directory hierarchy.
Lets you get gists from Github Gist
Pull in images from Gravatar.com.
Use Gulp plugins in Metalsmith, or Metalsmith as a Gulp plugin. Useful for uploading files, reading less than an entire directory tree, using external front matter, etc.
Compress files with gzip.
Extract headings from HTML files and attach them to the file's metadata. Useful for automatically building navigation for a document.
Add an id and anchor to all headings on a page. Ideal for permalinks.
Minify your HTML files.
Ignore any files that match a pattern.
A Metalsmith plugin to minify images using imagemin.
In-place templating, render templates in your source files.
Make other source files available as properties.
Convert Jade files to HTML.
Manipulate your HTML files with jQuery.
Parse .json files and make their properties available to downstream plugins.
Add KSS styleguide information.
Apply layouts to your source files.
Convert LESS files to CSS.
Implement Lunr.js client-side search engine.
Convert Markdown files to HTML.
Convert Markdown files to HTML using markdown-it.
Convert Markdown files to HTML using Remarkable.
Convert Markdown files to HTML using MultiMarkdown-4 syntax.
Load metadata from JSON or YAML files.
Highlight code in markdown files with highlight.js.
Stores the content before the "more" comment tag in HTML files.
Preprocess CSS files with Myth.
Move whole directories and their contents up one or more levels.
Generate navigation based on file trees
Filter out attributes from each file's metadata.
adds file path values (dirname, extname, basename, path) to metadata
Provide 'partial' helper to include other files.
A simple plugin that uses metalsmith-collections to create a paginated collection.
Paginate arrays and collections into multiple files.
Convert files with pandoc.
Convert HTML files to PDF using wkhtmltopdf
Apply custom permalinks and rename files to be nested properly for static sites, basically converting
about.html into
A Metalsmith plugin to retrieve data stored in PooleApp.com.
Stub content-less files from JSON/Yaml metadata files
Create static sites with data stored at Prismic.io
Prompt the user for series of answers in the command line and add them to the global metadata.
Declare files as draft, private, or future-dated and use callback to automate rebuilds.
Render any file using React JS based component templates
A simple plugin to create client-side HTTP redirections.
Replace attribute values in each file's metadata.
Convert Rho files to HTML.
Grab content from the web and expose the results to metadata.
Copy, read, and write files on Amazon S3.
Convert Sass files to CSS.
Groups files into series for easier navigation
Simple http server for development. Best used with metalsmith-watch.
Render wordpress-esque shortcodes via templates.
Add a slug property to file metadata, based on a another property.
Extract snippets from files, limited by a maximum number of characters.
Copy public assets into the build directory.
Convert Stylus files to CSS.
Preprocess CSS files with SUITCSS.
Useful bits for those of us using swig
Generate a table of contents from a document headers.
Generate tag listing pages based on tags provided in pages.
Automatically generate a page title from first heading in each file.
Render any file through a templating engine of your choice.
Enhance typography in HTML files.
Uglifies/minifies your JavaScript files
Easily validate file metadata, checking existence, type, and pattern.
Watching for file changes and trigger rebuilds.
Bundle CommonJS, AMD and ES6 modules.
Compute wordcount and average reading time.
Write the metadata excerpted from the files to the filesystem as json files.
If you write your own plugin, submit a pull request to the metalsmith.io repository and it will show up here!


text:
Marketing Information
Don't be left in the dark! The USB Notebook Light from Cables To Go ensures you have light to do your computing when you need it most. Use it on the plane, during a dimly lit presentation, or in bed. Great for travelers and students alike, this featherweight light illuminates your keyboard without distracting others around you. The USB Notebook Light plugs directly into an available USB port so no external power supply is needed. The flexible neck allows you to arrange the light in any position you like, yet it is rigid enough to hold its shape. The LED light reliably provides light for up to 8,000 hours, so you'll never be caught in the dark again.
Product Information
General Information
Physical Characteristics
Additional Information
Environmental Conditions

subset: commoncrawl


text:
Humble Weekly Bundle spotlights Japanese developers
If you enjoy playing games from Japanese developers, this weeks Humble Weekly Bundle is for you.
This bundle is actually pretty great, there isn't one game on here that will lead you astray. Without the bundle purchasing these games would have you spending about $67.43 - it goes without saying that $10 for all seven is phenomenal.
Without further ado, here are the games in the bundle:
Pay what you want for:
- Unholy Heights ($3.99 on Steam)
- One Way Heroics ($3.49 on Steam)
- GIGANTIC ARMY ($5.99 on Steam)
Pay $6+ for:
- Ys Origin ($19.99 on Steam)
- Mitsurugi Kamui Hikae ($9.99 on Steam)
- PixelJunk Shooter ($8.99 on Steam)
Pay $10+ for:
- Astebreed ($14.99 on Steam)
I've gone ahead and linked their Steam pages for those of you that wanted to check out the game in further detail before purchasing.


text:
Report Ad
Vinyl Wall Prints NYC - Vinyl Wall Signs NYC - Vinyl Wall Decals NYC - Vinyl Wall Graphics NYC
Posted: Saturday, May 30, 2015 6:01 PM
We specialize in custom vinyl signs in New York, NY. Visit our website below to contact us for a free consultation!
• Location: Manhattan
• Post ID: 31114951 newyork


text:
FILE - Syria's national flag is pictured next to closed windows of the Syrian embassy to Germany in Berlin, May 29, 2012. (REUTERS/Tobias Schwarz)
It took a massacre in Houla to prompt the entire world to increase pressure on the Syrian regime, even its own allies. But expelling Syrian diplomats alone is not going to force President Bashar Assad to stick to Kofi Annan's six-point plan.
For Assad and his regime are maintaining their line that it is in fact "terrorist groups" who are responsible for at least 13,000 deaths over the last 15 months, and that government troops played no part in the Houla massacre, despite U.N. evidence to the contrary. And those surrounding Assad have already shown that they are undeterred by mere condemnation, Foreign Minister Walid al-Moallem last year saying that Syria would forget Europe exists after the EU slapped sanctions on the regime.
But hopefully the expulsion Tuesday by over 10 countries of their highest-ranking Syrian envoys marks just the beginning of a new round of snowballing measures, because until now the regime has simply given the U.N. the same empty promises it has previously used as smoke and mirrors against the Arab League.
This tactic is being used very simply as a method of treading water, giving the regime the time they need to finish what they have started, and to achieve what appears to be their horrific aim – physically removing any trace of opposition. But to think they can carry this out reveals they are belittling the international community. The bravery of the Syrian people, which only seems to be increasing by the day, will not let them achieve that.
So instead, the killings and slaughtering of innocent people will continue, and this civil war, already and undeniably entrenched across the country, will rage on.
At the beginning of the popular uprising last year, the regime stalwarts warned that the fall of Assad would endanger neighboring powers. But now even Assad's strongest allies are beginning to waver in their support, with China even condemning Friday's massacre.
Ignoring all the lessons of history, from classic to modern and regional, Assad and his oligarchy seem to have deliberately shielded themselves from the writing on the wall. And so the massacres and mayhem will continue, the lives of ordinary Syrians will become increasingly unsettled and the future of the country will look ever more to be one beset by sectarian tensions, violence and poverty.
This country, which was once a regional power player, will become a burden to its neighbors and possibly even the international community, as such tensions will provide a fertile breeding ground for terrorism, with people sidelined and believing they have nothing left to lose.
The global community must now take their reactions to every incident of regime violence to the next level, in order to hasten the end to this prolonged tragedy, to minimize the death toll and to salvage some resemblance of a state for the Syrian people.
Your feedback is important to us!
We invite all our readers to share with us their views and comments about this article.
Disclaimer: Comments submitted by third parties on this site are the sole responsibility of the individual(s) whose content is submitted. The Daily Star accepts no responsibility for the content of comment(s), including, without limitation, any error, omission or inaccuracy therein. Please note that your email address will NOT appear on the site.
Alert: If you are facing problems with posting comments, please note that you must verify your email with Disqus prior to posting a comment. follow this link to make sure your account meets the requirements. (http://bit.ly/vDisqus)


text:
We're announcing today that we've signed a Memorandum of Understanding with Bits of God Software to be the exclusive provider of Bibles and other reference materials for an upcoming version of the popular Simple Bible application for the Palm Pre. Once completed, this will give current Laridian customers who have chosen the Palm Pre as their mobile platform access to the Bibles and reference books they already own for other platforms. It will also give new Simple Bible users immediate access to one of the largest collections of Bible-related content for mobile devices. The new program from Bits of God Software, currently referred to as Simple Bible Pro, will allow users to download new Bibles and reference content directly into the program from their account on Laridian's site.
As we've said here before, programming for the Pre is a whole new challenge. Our existing code that runs on Windows Mobile, iPhone, Windows desktop, and Palm OS really gives us no leverage on the Pre. With that in mind we sought a partner, and when it comes to Bible software on the Pre, the guys at Bits of God are the best. We're pretty excited about partnering with them.
Our current agreement is "an agreement to agree" so there are many details to be worked out yet. We've agreed in principle on most of the more difficult points of our relationship, so we don't anticipate any problems. The important thing is that it looks like current PocketBible and MyBible customers will have a migration path if they choose the Pre, and that Simple Bible Pro will get a jump start over other Bible software on the device by having access to Laridian's growing library of content.


text:
The following is an archive of a post made to our
'vox-tech mailing list'
by one of its subscribers.
Nowadays with hard drives failing like tests, how do you find out whether
a partition has bad blocks or not? ExtN automatically marks a partition
bad if it finds a bad block, right? Where does that information get
stored and how do I view them?
If they're not marked, how does ExtN recover from a bad block?
Mark K. Kim
PGP key available upon request.
vox-tech mailing list
Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux
systems, remote system administration and
custom software development.
LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us
LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.


text:
Search for any place in the USA:
Cost of Living,
As of 2014, Ada's population is 16,852 people. Since 2000, it has had a population growth of -7.49 percent.
The median home cost in Ada is $90,700. Home appreciation the last year has been 2.90 percent.
Compared to the rest of the country, Ada's cost of living is 17.90% Lower than the U.S. average.
Ada public schools spend $9,214 per student. The average school expenditure in the U.S. is $12,435. There are about 13.2 students per teacher in Ada.
The unemployment rate in Ada is 3.40 percent(U.S. avg. is 6.30%). Recent job growth is Negative. Ada jobs have Decreased by 2.44 percent.
See Places Rated and Ranked Click Here
Average Commute time is 13 minutes. The National Average is 25 minutes.
Ada's Real Estate Market (click to see properties) • Newly Listed Homes • Most Expensive Listing • Million Dollar Houses • Homes from $750,001 to $1,000,000 • Homes from $500,001 to $750,000 • Homes from $250,000 to $500,000 • Homes under $250,000 • Median Priced Homes
ada, oklahoma: Ada, Oklahoma is probably the best place to live in USA.I have lived here all of my life and would not move for anything.It is a close knit community where people... (read more)Small OK city, with nice features.: Ada is a small (but growing) city in OK. You can find places like Starbucks, Home Depot, Chilis, and Staples, but also things to enhance your quality of life, such as -... (read more)re: Thought it would be better here - 10/13/2009: It's not full of gang members, it's just full of welfare. These ppl are uneducated and populate with no thought. The best thing you could become is a welfare recipient.... (read more)Have an opinion about Ada? Leave a commentTo See All SperlingViews for Ada Click Here


text:
There is nothing more upsetting then going to get your tent for a weekend of fun and not being able to find the foot print or a pole
Coleman's durable Tent Storage Bag will hold all the components to your tent so that you don't have to spend time searching for them
Reviewed by 1 customer
Best Uses
Comments about Coleman Tent Storage Bag:
We needed a bag to put our tent in. This was perfect. It's durable, great color, fit our 6 man tent in it with room to spare. The price was great.


text: Jaboulet Cotes du Rhone "Parallele 45″ Rouge 2007 David Honig November 19, 2009 Tasting Notes This is fresh and fruity, cherries and rhubarb, with a spicy cayenne and white pepper background. This is a moderately priced, juicy, fruit-driven blend. Drink it a bit cool and match it with grilled summer vegetables. WHO Paul Jaboulet Aine' WHAT 60% Grenache, 40% Syrah WHERE France, Rhone WHEN 2007 HOW MUCH $12.99 (press sample)


text:
Last week, we posted this disaster and told you that a reader had originally submitted a different image from the same site, but the website had already removed it by the time we tried to feature it. Weeeell, thanks to the magic of the internet, here is that original disaster.
It was worth the wait! Thank you to William for unearthing this image and sending it in.


text:
Edgy, intense Berg, 34, who plays the volatile Dr. Billy Kronk on CBS' "Chicago Hope," temporarily left his day job to shoot his debut film. It is, he insists, a morality tale inspired by his own trips to Vegas several years ago.
"I was constantly aware of these packs of white suburban males roaming around with a look of real trouble in their eyes," the writer-director told The Journal. "It seemed that Vegas opened the cages within men where various beasts lurked. These guys were looking for trouble, and I wondered what would happen if they found it?"
We welcome your feedback.
Privacy Policy
Your information will not be shared or sold without your consent. Get all the details.
Terms of Service
JewishJournal.com has rules for its commenting community.Get all the details.
JewishJournal.com reserves the right to use your comment in our weekly print publication.


text:
Photo by Mark Thomas
YIELD: Makes 8 servings
Whisk pomegranate juice and vinegars in bowl. Gradually whisk in oil. Season with salt and pepper. Rewhisk before using.
Melt 2 teaspoons butter in heavy large nonstick skillet over medium-high heat. Add 1/3 of squash wedges. Cook until browned on both sides, about 5 minutes total. Transfer squash wedges to rimmed baking sheet. Repeat 2 more times with remaining butter and squash wedges. Sprinkle squash with salt and pepper. (Can be prepared 6 hours ahead. Let stand at room temperature.)
Preheat oven to 450°F. Transfer squash to oven; bake 20 minutes.
Mix greens, pomegranate seeds, and pine nuts in large bowl. Toss with half of dressing. Divide among plates; top with squash. Drizzle with dressing.


text:
DeWeers, M; Dingjan, GM; Brouns, GS; Kraakman, MEM; Mensink, RGJ; Lovering, RC; ... Hendriks, RW; + view all DeWeers, M; Dingjan, GM; Brouns, GS; Kraakman, MEM; Mensink, RGJ; Lovering, RC; Schuurman, RKB; Borst, J; Hendriks, RW; - view fewer (1997) Expression of Bruton's tyrosine kinase in B lymphoblastoid cell lines from X-linked agammaglobulinaemia patients. CLIN EXP IMMUNOL , 107 (2) 235 - 240.
Full text not available from this repository.
X-linked agammaglobulinaemia (XLA) is an immunodeficiency caused by mutations in Bruton's tyrosine kinase (Btk) and is characterized by ail almost complete arrest of B cell development. We analysed expression of Btk in B lymphoblastoid cell lines (BLCL) derived from four unrelated XLA patients. In one patient, with a 3.5 kb genomic deletion encompassing the first (untranslated) exon, mRNA levels and in vitro kinase activities were very low. The patient manifested a mild phenotype with a delayed onset of the disease. Another mutation: in which the intron 3 donor splice site is lost, was also associated with very low mRNA levels and an absence of detectable Btk protein. Patients with this mutation showed extensive heterogeneity of the immunological phenotype. In the BLCL of a third patient, with an Arg(288) substitution in the SH2 domain, the mutation did not appear to affect the expression level, nor to abrogate in vitro phosphorylation activity. In the BLCL of the fourth patient, with an Arg(28) mutation in the PH domain, tyrosine kinase activity in BTK precipitates appeared to be decreased compared with control BLCL.
|Expression of Bruton's tyrosine kinase in B lymphoblastoid cell lines from X-linked agammaglobulinaemia patients
|Bruton's tyrosine kinase, X-linked agammaglobulinaemia, B lymphoblastoid cell lines, X-linked immunodeficiency, NONSENSE MUTATIONS, GENE, IDENTIFICATION, DEFICIENT, SEQUENCE, PROTEIN
|UCL classification:
|UCL > School of Life and Medical Sciences > Faculty of Population Health Sciences > Institute of Cardiovascular Science
Archive Staff Only: edit this record


text:
How to Get Rid of Ticks Around Your Home
Three Parts:Removing Ticks IndoorsRemoving Ticks OutdoorsPreventing Ticks
Ticks in your garden and around your home can be a nuisance for you, your family, and your pets. Ticks can carry numerous harmful blood-borne diseases such as Lyme Disease and some diseases transferred from ticks can kill your pets. This guide will explain how to get rid of as many ticks as possible from around your house.
Part 1 of 3: Removing Ticks Indoors
1De-clutter your home. Although most ticks are found outdoors, indoor infestations of the brown dog tick are not uncommon. This kind of tick feeds on dogs and other animals and prefers warm, dry conditions.
- The first step in removing these kinds of ticks is to de-clutter your home, as ticks will hide almost anywhere. Pick up items from the floor, and don't leave dirty laundry lying around. Use your tick infestation as an opportunity to do a little spring-cleaning.
2Wash dirty clothes in hot water. Ticks can often be found attached to dirty clothing or bed linens. Wash any clothes or linens you suspect may be tick-infected in the hottest water suitable for the fabric type.
- Try to avoid leaving dirty laundry on the floor, and if you suspect any clothes or linens might have ticks, do not put them in the laundry hamper, as this will contaminate the other clothes, with the hamper itself. Put them straight into the washing machine.[1]
3Clean your house from top to bottom. The next step is to clean your entire home as thoroughly as possible, from top to bottom. Clean out shelves, dust forgotten corners and sweep, mop, and vacuum all floors.
- In fact, your vacuum will be your best friend during the tick-removal process, as you can use it to suck up ticks from all over the house; in animal bedding, in cracks in the floor and wall, on baseboards and crown molding, and on and underneath furniture.
- Just be sure to dispose of the vacuum bag afterwards.[2]
4Dust your home with pesticide. Once your house is cleaned and decluttered, and you have physically removed as many ticks as possible, you will still need to make use of pesticides to kill any remaining ticks, with their eggs.
- To kill tick eggs and larva, you will need to lightly dust all areas of your home with a pesticide contain boric acid and botanical extracts. Sprinkle a little extra dust around your pet's bedding, which is a favorite laying spot.
- To kill the adults, you will need to use a pesticide spray designed especially for getting rid of brown dog ticks, such as one with a pyrethrin base. This is safe for humans and pets and will work quickly.
- Spray this pesticide all over the home, not forgetting carpets and curtains, and the underside of tables, chairs and sofas. Make sure to read the label for exact directions.
5Treat any indoor pets. Indoor pets, and usually dogs, are the number one source of tick infestations. They can carry them in from outdoors, or catch them fro other animals in the kennel or the local neighborhood.
- First you will need to physically remove any ticks that are using your animal as a host, then treat the dog with a topical tick-killing product containing ingredients such as fipronil, amitraz or permethrin. Ask your veterinarian for suggestions.
- You may also invest in a tick-repelling collar for your pet. These will keep ticks from latching onto your cat or dog for approximately three months. These collars can be difficult to find in stores, so ask your vet, or shop online.[3]
6Call an exterminator. Severe tick infestations may need the expertise of a professional exterminator. They have specialized equipment and pesticides, which can kill the ticks immediately on contact. They also have an in depth knowledge of the ticks habitats and behaviors, so they will be able to locate the ticks very quickly.
- If your tick infestation remains a problem, despite your best efforts to get rid of them, you may want to consider this option.
Part 2 of 3: Removing Ticks Outdoors
1Target the ticks' favorite habitations. Outdoor ticks can usually be found in grassy, bushy areas often sheltered with trees and shade. They like high humidity.
- They can also be found in the same places favored by one of the tick's favorite meals––deer. So any time you're out in tall grasses, or hiking in the woods, you're in enemy territory.
- The first thing to do is discourage ticks from taking up residence in your home territory, by targeting any favorable tick conditions in your own backyard.
2Cut back vegetation. Start by getting rid of any tick-friendly foliage. The best way to do this is keep your yard trimmed regularly and to remove all dead, scraggly and overgrown vegetation.
- Avoid allowing grass to overgrow, and remove vines and other plants that tend to create bushy, clumped or grass-like environments.
- Moreover, since ticks are like vampires—they drink blood––they also hate the sun. Use that as your guide when removing plants, to the let the sun into as many parts of your yard as possible.
3Mow the grass frequently. Regular mowing deprives ticks of tall grass, and lets the sun shine in—–which not only keeps the bugs at bay, it also evaporates that morning dew quickly, depriving ticks of water, too.
- Clear tall grasses from around your house and lawn. Use an edger to create a barren zone that ticks will be loathe to cross on their own. They'll have to hitch a ride on a passing deer and hopefully you're keeping them out of your yard too.
4Clear your yard of brush and dead leaves. If the ticks cannot live in the grasses, they'll find shade somewhere. Damp and dark, brush and dead leaves—–especially dead leaves—–are tick heaven. Don't allow piles of vegetation to build up anywhere in your yard.
5Use a pesticide. Use approved and known safe pesticides in late spring to early summer, to prevent ticks from populating your lawn. A single treatment of your yard in late May or early June can cut the tick population by over 50 percent.
- Be sure to only use pesticides approved for use in your area against ticks, and only use them according to the label.
- Some good ones are pesticides with lambda-cyhalothrin and Esfenvalerate.
Part 3 of 3: Preventing Ticks
1Fence your yard. Fencing your yard will prevent larger animals, such as deer or coyotes, from passing through your backyard. Ticks travel on mammals, so keeping the larger ones out will help control the tick population in your yard. Besides, deer will chomp on your garden, and coyotes will chomp on your cats. Both are about as desirable as ticks.
2Keep firewood stacked neatly and in a dry location. Like brush and dead leaves, firewood can be home to darkness and moisture. Keeping it stacked in a dry location again denies the ticks their safe haven, and it will make your firewood nice and dry when it's time to use it next winter!
3Don't let the kids play in known tick areas. Make sure they play in areas and using equipment that are located well away from high grasses or trees. If the swing set has grass growing around the legs of the set, get that weed whacker over there and start trimming!
4Clean thoroughly underneath bird feeders. Ticks can nest under feeders undisturbed––by cleaning regularly you make it undesirable for them.
5Check yourself for ticks. Regularly check yourself and your children and pets, especially after an outdoor session playing or hiking.
- Look for any ticks in the hairline, under arms, on legs—–all over. Remove them with a pair of tweezers.
- Be careful not to squeeze the body of an embedded tick, you do not want the tick to regurgitate into the attach point as this aids in the passing of diseases such as Lyme disease.
6Make a natural tick repellent. You can make a non-toxic tick repellent at home for your loved ones. Get a 16-ounce (475ml) spray bottle and start spraying!
- Create a citrus based repellant. Ticks avoid citrus, which makes it an effective weapon. To make: Boil 2 cups of water, and add two chopped lemons, limes, oranges, or grapefruit—–alone or in combination. Let it boil for a minute or so, then simmer the concoction for an hour. Strain the fruit out, let it cool, pour into the sprayer, and squirt it on you, your kids, your pets, your yard—–anywhere ticks might like to go.
- Other natural repellents use geranium, lavender, or peppermint essential oils. These are not safe for cats though, so avoid spraying the cat.
We could really use your help!
Happiness & Optimism?
Classroom Management and Student Conduct?
Pokemon Ruby Sapphire and Emerald?
- Try this homemade remedy: Mix 1/2 cup lemon scented dishwashing soap with 1/2 cup garlic juice. Mix together in a 20 gallon (75.7 L) hose end sprayer filled to the top with water. Spray everything. Use every two weeks to keep ticks away.
- Ticks tend to survive best in damp, wooded areas, but do not do well in places that are bright and dry. Keep this in mind when landscaping and caring for your yard.
- Ticks and chiggers are also repelled by sulfur dust. Use the dust on your shoes ankles and pants legs if going into tick country. You can rub it on your dogs. You can spread the dust kennels and under shrubs.
- Wear light colored clothes so you can see ticks. Tuck your pants into your socks to lessen the chance of ticks getting under your clothes.
Things You'll Need
- Repellents
- Garden gear to cut and mow with
- Cleaning gear
- Vacuum
Sources and Citations
- http://www.cdc.gov/lyme/ – original source
- Emax Health—Tick Removal, http://www.emaxhealth.com/8782/number-one-rule-tick-removal-lyme-disease-prevention – research source
- Emax Health—Natural Tick Repellants, http://www.emaxhealth.com/1275/fight-ticks-lyme-disease-natural-tick-repellents – research source
Article Info
Featured Article
Categories: Featured Articles | Garden Pests and Weeds
In other languages:
Español: eliminar las garrapatas, Deutsch: Zecken im Garten loswerden, Português: se Livrar de Carrapatos ao Redor da Casa, Русский: избавиться от клещей у вашего дома, Français: se débarrasser des tiques chez soi, Italiano: Liberarsi delle Zecche Attorno a Casa, Čeština: Jak se zbavit klíšťat kolem domu, 中文: 去除屋子周围的蜱虫, Nederlands: Zo kom je van teken rondom je huis af, Bahasa Indonesia: Menyingkirkan Caplak di Sekitar Rumah
Thanks to all authors for creating a page that has been read 833,536 times.


text:
|Thread Tools
|Search this Thread
|Display Modes
Gnarly Adventurer
Joined: May 2007
Location: South Central PA/Michaux State Forest/Lincoln Hwy.
Oddometer: 301
Hi Kirk:
In the first picture of your post #2084 it appears? there is quite a gap between the pannier frames and the side of the bike, is there a reason for this?; tool carrier/turn signal location/permits attaching wider gear to top of pannier lids perhaps? Could or would you be able to mount the racks any closer to the sides of your bike? Have you built a set of racks and panniers for a DR650SE yet? Diggin' your work!
Jeff (SoPaRider)
P.M. me for copies of my 15 Michaux State Forest Dual Sport Routes and check the Trip Planning/Tent Space Sign-Up Thread dated 8-22-11 for more info.
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
I made them a touch wider than needed so I can remove the side plastics without removing the panniers and racks. If it weren't for that, I could have easily made them 2" narrower overall. If I were to move the rear signals inward, I could probably make them 4" narrower. I don't really off-road, and there's no lane-splitting here, so I wasn't too worried over the extra width for my personal use. I look at it as extra leg protection for the next bambi hit / slide.
I have not made any racks for a DR as of yet.
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
Having fun in the garage today perfecting my craft. I am very happy with the TIG welding progress!
Uniformity is much, much better.
I'm getting better with stops/starts as well. As I approach the end, I back out of the pedal, make one extra dab of filler, and do a small circular motion as I come out of the pedal. It's fun learning new techniques.
Nothing much to see on the creative homefront, but it is about time to be thinking about that BBQ grill / smoker that I've been thinking about all winter. I don't want a huge one, but I also don't want it too small. I was thinking maybe a larger one for home use, and a smaller one to take camping. I was looking at some out of date propane cylinders in my building thinking they'd be pretty awesome for a small charcoal grill - if I can cut them apart w/o blowing myself to the moon. Decisions, decisions.
I have ideas floating in and out of my pea brain all the time, and I need to write them on paper and set them in order of priority. Kids want a cool jungle gym of some sort, I'd like a tongue box on the utility trailer for straps, still need to build an adustable jig for setting pannier frame hoops, etc, etc, blah, blah, blah... Never a dull moment around here.
"Cool" Aid!
Joined: Feb 2005
Location: Alexandria, VA
Oddometer: 54,605
Using the dimensions from my paniers, add two inches to the drop, put an angle between the tabs (arrows) and HT Bag mounts on the top arrows and you can fit a set of your bags on a GS Adv Rack. I can get you the dimensions, or you just send the bags to the buyer with the parts and let them add the holes where they want them. Instant bags on GS Adventure racks!
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
Forgot to ask...what's the O.D. on the tube?
kirkster70 screwed with this post 04-06-2013 at 08:03 AM
"Cool" Aid!
Joined: Feb 2005
Location: Alexandria, VA
Oddometer: 54,605
I'll measure it, or get my friend to, soon. Looks similar to what you use.
1.5 Finger Discount
Joined: Apr 2007
Location: DFW, Texas
Oddometer: 20,325
I'd still give it a good pre grilling (no cooking food, just charcoal and heat) to hopefully burn/boil off and left over hydrocarbons.
"Try turning that burn into torque. Then we're getting somewhere. Riding the potato to work seems quite impractical." - anotherguy
"Never bring a Nerf gun to a shovel fight." - My Brother
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
Yeah, I've been reading up on it. I've seen where some guys will drop in a few dry ice pellets to keep things under control. Water would be easy, but probably messier than can be.
My nephew just brought me lots of camping wood, so I'll give it a couple good burns before any food gets thrown on it.
Thanks for the tips!
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
Happy, happy, joy, joy!
Scratch another off the everlasting wanted tool list...
A Di-Acro 6" x 6" 4ton notcher. Rated for 16 ga. mild steel.
It's in pretty primo condition. Fences are adjustable.
It's one of the pre-Strippit versions, so it's USA made. I found this gem 80 miles from my house, so I was in and out in no time flat. Plus, it was a very pretty drive. The whole tiime I was thinking "...too bad the KLR doesn't have a utility hack!" Maybe in time...
The seller was an awesome guy, as is everyone with all of my CL and eBay finds. Half the fun is meeting new people and seeing what they are/were making with the tools. Thanks, Charles!
I takes up a very small piece of real estate, and it's easy to slide around. It should make flat pannier lid fabrication a snap. I'm sure I'll come up with many more uses as well.
I think the next tool may be a 5 TON foot punch press with tooling. Once I put it out there, it seems like it doesn't take long to happen.
Yes! More tools! I'm such a goober. I know, but I can't help it.
Joined: Aug 2005
Location: Central Ohio
Oddometer: 13,520
I'm amazed at how you've found stuff. Did you search for it, or just put a wtb on CL?
And how did you find your brake? Was it a CL listing?
Joined: Aug 2005
Location: Central Ohio
Oddometer: 13,520
The rebirth of the Spanco is closer to being done.
Today's project was to straighten out the bent base. Working off some ideas I had, and some suggestions from Keith Fenner over at Turnwright Machine Works I rigged up a "press" to do the straightening.
I used my open 6X10 trailer as a workbench. It's pretty stout and can easily handle the A frames sliding back and forth across the rails.
I laid the A frame across it on some 2X4's. Then I placed some I beam behind the base at the center post and diagonal brace, and added a piece of 4" tube behind that to squeeze the beam back into shape.
This was the press. 1/2" all thread and some slotted angle.
I left the all thread and the angle long since I will use it for something else later.
It fit on the frame like this with the frame straddling the point of the bend.
I double nutted the outer end of the all thread so I could tighten the rod against the inner nut and use my impact to do the initial tightening.
Then I tightened
It took a couple tries to bend the base straight again. I tightened it, backed it off, checked for straight, and then repeated a couple times until it was pretty straight.
Not perfect, but close enough.
Then I turned to mounting the casters. When I bought the replacement wheel, I also bought 4 swivel locks. They just mount on the base along with the mounting bolts. As luck would have it, the mounting holes in the base were an exact match for the casters. Some times it's better to be lucky than good! I had previously pumped the casters full of grease. There are three zerks on each one - one for the swivel, one in the wheel bearings, and the other between the axle and a bushing that the bearings ride on. I cleaned up the excess grease before setting the frame back down.
While I had the A frame laying across the trailer, I stood up the I beam and mounted it to the A frame to get a better sense of what I need to do to fabricate the mounting clips.
I just used washers to hold it up for a few minutes, then removed the beam and walked it over to the side. Walking a 8" X 11' beam standing vertically can be a thrill. Got to keep it vertical, or bad things can happen.
I set the one A frame down on the wheels and rolled it over to the I beam and tied it off. It rolls nicely on the wheels, and with the casters locked was really stable.
Then I mounted the casters on the other A frame and set everything off to the side and tied it off. As I was doing so, I noticed the one end of the base was tweaked where the caster mounted. This time, I just got the 5 lb sledge and gave it some love taps.
The next and final step is to fabricate the beam clips. I've taken measurements and have worked on a couple designs. If I only had a big 'ol Bridgeport mill, I know I could fab them easily. It will be a little more challenging with a grinder and other power tools, but I know I can get it done.
Then it's time to mount the beam and have a gantry
9Dave screwed with this post 04-07-2013 at 06:06 PM
Joined: Oct 2012
Location: 1000 Miles from nowhere.....
Oddometer: 87
The welds are improving and looking nicer.
It's kind-of a combination of "Dirty Science" and "Art." Both are things that I have always enjoyed......:grin
Here's a link to another forum. I have and still use this more than I ever could have imagined.
It's not so big that you over-use charcoal. Yet big enough to feed 4-5 people, in one cooking session. The lid provides air control/temp. The internal size makes grill replacement as easy as a trip to a BigBox store.
Check it out.....
I make all of the idiots cry.....Their personal insecurity depicts the size/childness of their remarks and replies......
Rhyno screwed with this post 04-07-2013 at 05:59 PM
Joined: Oct 2012
Location: 1000 Miles from nowhere.....
Oddometer: 87
If you decide to use one, make sure it is empty, and start to figure out some "Riggin."
It'll be tight, but the top valve unscrews. Wrap some motorcycle tie-downs around an unmovable corner post and the tank, with a few wraps. Make sure the corner post has some sort of stop to keep the whole thing from rotating. (Multiple wraps of the Tie-Down around the tank, by itself, will prevent the tank from spinning.) Find a wrench that fits the valve, and get a 5 foot cheater bar.
Once the valve is unscrewed, fill the tank with water. The water will purge all flammables. Fill it up with water, then pour it all out.... Now you are SAFE to cut and grind. (as long as your purging is happening in a different place from your cutting.)
A 5" grinder with a .065" Wafer wheel will cut a finer/smoother/better looking line than Plasma, Oxy/Acet torch, a Jig saw, or anything else. (Of course, lay it out with a straight edge and scribe.) Plus with a thinner cut, the pieces will line up to make a nicer lid/hinge joint.
Also, a round wheel sometimes is tough to do a square corner, so you might have to cut 99% and then finish the corners with a hand held jig saw. Once the pieces are apart, be light handed, but then dress the edges with a grinder.
Get some weld on barrel hinges. Don't get the ones with grease Zerks. Don't use grease, unless you want your burgers to taste like wheel bearings....:haha
Well that is probably enough.....(collar bones and neck are hurting)
Keep up the good work...
I make all of the idiots cry.....Their personal insecurity depicts the size/childness of their remarks and replies......
Rhyno screwed with this post 04-07-2013 at 06:08 PM
Joined: Oct 2012
Location: 1000 Miles from nowhere.....
Oddometer: 87
I even burn prior to painting. It just depends on the original coating.
I make all of the idiots cry.....Their personal insecurity depicts the size/childness of their remarks and replies......
Rhyno screwed with this post 04-07-2013 at 06:10 PM
moto junkie
Joined: Aug 2008
Location: Virginia
Oddometer: 1,905
I just look and look and look. The shear and brake both took almost 2 years of searching CL, ebay, local papers, etc. to find. I prefer to buy from private sellers, but it's hard to do because there are several local guys who snatch up these tools just to flip. Not to mention that I'm starting to get picky about what I buy after driving 14 hours to buy a tractor with nearly 50 holes drilled in it. ;)
So, I paid a little more than I should have on the brake from a wholesaler because I was getting frustrated in looking. The 52" foot shear came from a private seller on CL, and was a bonafide deal at $1,100. It even came with an extra 4-sided blade.
The recent notcher came from a private seller on CL and took about 6 months to find. He didn't have Di-Acro in the heading, so I think the local "flippers" didn't pick up on it, which was good for me. There is a guy in York, PA, and a guy in Jersey who has the username sambuca on ebay. The notcher would have been easy for either to get to, but again, I think since he didn't have Di-Acro in the title, they didn't see it.
The notcher was also super affordable at $650. That made it easy to go and buy. I can now notch out an entire lid in the time it took to manually cut one single corner. No measuring, no scribing. Set the stops, pull the handle, BING!
The 5TON foot operated punch/press I'm looking at will be north of $1500, so I need to save my pennies to buy that bad boy. But I'll keep looking until it happens. I want to tool it for the slip hinge slot, I want some dimple dies for recessing key locks, and the small press brake dies for small reverse bend bracketry would also be handy for what I'm currently doing. There are several hundered different dies made for the punch/press.
I got some really good tips from the guy I just bought the notcher from. He was an awesome source of info. I like learning new tips from the guys in the trenches doing it day to day.
kirkster70 screwed with this post 04-08-2013 at 04:45 AM
|Thread Tools
|Search this Thread
|Display Modes
Linear Mode


text:
PHP in the Dark: Input/Output
input_output, getopt, cli, console, php
When you need data input in a web context, you send a GET/POST request to your script. On the command line, things work differently. In this blog post, we will talk obout input and output in php-cli.
You can find more information on this series, in the PHP in the Dark blog post.
- Handling Arguments: parsing command line arguments
- File Descriptors: working with input, output and error streams
- Interactive Input: interactive input with history and auto-completion
- Resources: download information for the scripts
Handling Arguments
If you have worked on the commandline before, you know that one typical way of passing information to the script is using arguments. A quick example:
./ping.php --host=somehost.com
PHP and different PHP libraries allow you to process this information in an easy way.
Caveman way
$_SERVER global constant variable has elements with keys argc and argv. The first one holds the number of arguments passed to the script, the second one is an array containing the different arguments. It's important to note that the first argument is the script's filename, so argc will always be at least 1. If we execute following script (01-basic-input.php):
./01-basic-input.php -monthly -test=yes -v
We get following output:
$_SERVER["argc"] = 4 $_SERVER["argv"] = Array ( [0]=> 01-basic-input.php [1]=> -monthly [2]=> -test=yes [3]=> -v )
If you look at it, it's not really useful. Sure you get the argument information, but it's raw data. Luckily for us, there are ways to parse the input into something more useful.
PHP getopt()
PHP has a function called getopt that will parse the options passed to the script. It's not something new since similar functionality exists in for instance C. The function can take 2 arguments.
array getopt ( string $options [, array $longopts ] )
$options argument is a string that contains the short options (cfr. -u). In the string you don't add the dash, only the letter you want as a short option. You can optionally follow the letter by either a colon or a double colon.
In the first case (:) you tell getopt that this short option requires a value (cfr. -u jkeppens). In the second case (::) you tell getopt that there might be an optional value.
Whenever you go for the double colon, remember that the value must be attached to the short option. This is the only way for getopt to know that the value is for the option it follows. In case of the singel colon, it can be attached or seperated by spaces.
The second argument in the function is an array containing the long options. The long options can in a similar way be followed by a colon or double colon.
// Define short options
$shortopts = "";
$shortopts.= "hv"; // No values
$shortopts.= "u:"; // Required value
$shortopts.= "p::"; // Optional value
// Define long options
$longopts = array(
"user:", // Required value
"password::", // Optional value
"help", // No value
"verbose", // No value
// Get the options (5.3 style)
$options = getopt(
// Show it
If we run the script (02-basic-getopt.php), we get following results:
./02-basic-getopt.php -u jkeppens -psecret -v Array ( [u] => jkeppens [p] => secret [v] => )
Using long options, this gives:
./02-basic-getopt.php --user=jkeppens --password=secret --verbose Array ( [user] => jkeppens [password] => secret [verbose] => )
It's important to note that while you can use short and long options, for getopt() these are two unrelated options. It will not be able to match these in a smart way, something you can do with other libraries.
Now, let's see what happens if we put a space before the value next to -p:
./02-basic-getopt.php -u jkeppens -p secret -v Array ( [u] => jkeppens [p] => )
That was unexpected... it even forgot about the -v! The reason for this is that the parsing of options will stop at the first non-option found. In this case the word "secret".
And when we forget the value next to -u, the text next to it is treated as it's value:
./02-basic-getopt.php -u -psecret -v Array ( [u] => -psecret [v] => )
As you can see, getopt() is already an improvement to using argc/argv, but it still has some shortcomings. There is no validation and the parser isn't very smart. Luckily PEAR and Zend Framework offer some alternatives.
PEAR GetOpt
PEAR has a getopt implementation called Console_Getopt. It's easy to install if you have PEAR on your machine:
pear install Console_Getopt
The package contains 3 functions that are important:
- getopt & getopt2: parses the arguments and returns
- readPHPArgv: reads the
$argvarray across different PHP configurations
The difference between getopt and getop2 lies in the fact that the first expects the filename as first argument and the second doesn't.
One of the big differences with the php
getopt() function is that the pear version expects you to pass in the arguments yourself.
array getopt(array $args, string $shortopts, array $longopts = null)
The format for the long options is different than what we saw before. Instead of colons, equal signs are used. For the short options, colons are still the way to go.
Let's take a look at an example script (03-pear-getopt.php).
// Define short options
$shortopts = "";
$shortopts.= "hv"; // No values
$shortopts.= "u:"; // Required value
$shortopts.= "p::"; // Optional value
// Define long options
$longopts = array(
"user=", // Required value
"password==", // Optional value
"help", // No value
"verbose", // No value
// Get an instance of new Console_Getopt
require_once 'Console/Getopt.php';
$getopt = new Console_Getopt();
// Get the arguments & remove the filename from the list
$args = $getopt->readPHPArgv();
// Parse the options
$options = $getopt->getopt2($args, $shortopts, $longopts);
if (PEAR::isError($options)) {
echo 'Got error: ' . $options->getMessage() . PHP_EOL;
} else {
If we run this, we get a different output from before:
Array ( [0] => Array ( [0] => Array ( [0] => --user [1] => jkeppens ) [1] => Array ( [0] => --password [1] => secret ) [2] => Array ( [0] => v [1] => ) ) [1] => Array ( [0] => some [1] => other [2] => text ) )
So far, nothing big, except that we got something extra: the non-option arguments are also parsed.
What makes pear getopt even more interesting is the error handling. If you don't add a required value, you will get a PEAR error to inform you of this:
./03-pear-getopt.php --user --password Got error: Console_Getopt: option requires an argument -user
Can we do better? Yes, we can!
Zend Framework Getopt
My absolute favourite is the GetOpt implementation of Zend Framework. It's so much better, that I would recommend using it as a separate component if your application is not based on the framework.
Some cool additions:
- No need to get the arguments yourself
- Short and long options are aliases for eachother and the relation is known
- You can define a description for the options, so you can generate a usage message (help)
- OO implementation: returns an object with the long option names as parameters
- You can define the type of an option: string, word, integer,...
- An exception is thrown in case of an unknown/wrongly typed option, missing value,...
- You can convert the output to a string, an array, xml or json
- You can retrieve the non-option arguments
- And much more...
One big difference with the short options is that you don't have to (actually: can't) attach the value. The class is smart enough to handle this for you.
For more information, I suggest you have a look at the reference documentation. It contains a lot of information and examples for each bit of functionality.
Example code (04-zend-getopt.php) :
// Define short option
$config = array(
'help|h' => 'Show help',
'verbose|v' => 'Verbose mode',
'user|u=s' => 'Username (string)',
'password|p-s' => 'Password (string) (optional)'
try {
$options = new Zend_Console_Getopt($config);
if (!empty($options->help)) {
echo $options->getUsageMessage();
} else {
$username = $options->user; // other aliases: $options->u & $options->getOption('user')
$password = $options->password;
$verbose = !empty($options->verbose);
echo 'Log in [' . $username . ' / ' . $password . ']';
if ($verbose) {
echo ' in verbose mode';
echo PHP_EOL;
} catch (Zend_Console_Getopt_Exception $e) {
echo $options->getUsageMessage();
When running the script, this looks like:
./04-zend-getopt.php -u jkeppens -p test -v Log in [jkeppens / test] in verbose mode ./04-zend-getopt.php --help Usage: ./04-zend-getopt.php [ options ] --help|-h Show help --verbose|-v Verbose mode --user|-u
Username (string) --password|-p [ ] Password (string) (optional)
While this is a great implementation, there is still room for improvement for future versions. Just have a look at this example:
./04-zend-getopt.php --user --password -v Log in [--password / ] in verbose mode
It's the same behaviour as we saw before where --password is taken as value for --user.
File Descriptors
Using file descriptors
When using the command line, php-cli defines 3 constants (called file descriptors) to handle your I/O.
- STDIN: Input Stream
- STDOUT: Output Stream (1)
- STDERR: Error stream (2)
You can read from STDIN using
fgets or write to STDOUT and STDERR using
fwrite. Let's see in an example how they work:
// Write out text to the output stream & capture name as input
fwrite(STDOUT, PHP_EOL . 'Please enter your name: ');
$name = trim(fgets(STDIN));
// Display "Hello <name>" to output and "I don't know <name>" to error
fwrite(STDOUT, PHP_EOL . 'Hello ' . $name);
fwrite(STDERR, PHP_EOL . 'I don\'t know ' . $name);
Let's run the script (05-file-descriptors.php) in a simple way first:
./05-file-descriptors.php Please enter your name:
The script waits until you type in something followed by enter.
Please enter your name: Jeroen Hello Jeroen I don't know Jeroen
As you can see both streams have written to the screen. What if we wanted the error message to write to the error logs? You can do this by appending
2>error.log or
2>>error.log when calling the script. If the logfile you specified exists, > will replace it when you call the script, while using using a double > will append to the file.
./05-file-descriptors.php 2>> error.log Please enter your name: Jeroen Hello Jeroen
The second line is no longer present and when we look on the file system we see the logfile:
$ ls *.log error.log $> cat error.log I don't know Jeroen
You can do the same with the output, but then you append
>output.log or
>>output.log. In our example this doesn't make much sense, since we wouldn't see the question requesting our name.
Special behaviour
When working with daemons, one of the steps you have to take is to replace the current file descriptors. If you wouldn't do that, your daemon would attempt to write it's output to the screen.
It is very easy in PHP to point the file descriptors where you want. You start by closing the current file descriptors and then open up 3 new file descriptors. The first streams opened after closing the file descriptors, will "fill in the blanks" (06-replacing-file-descriptors.php).
// log file to write to
$logfile = '/tmp/some-log-file.log';
// Close standard I/O descriptors
// first 3 descriptors fill up the blanks
$fdOUT = fopen($logfile, 'a');
$fdERR = fopen('php://stdout', 'a');
// STDOUT writes to $logfile
// STDERR writes to STDOUT, so also to $logfile
Interactive Input
As we saw with the file descriptors, you can read data from the prompt in the midst of your script. This basic functionality is useful, but with the readline functions we can do so much more. The readline functions implement an interface to the GNU library with the same name and provide you with editable command lines. This includes using up/down arrow keys to browse trough your command history, auto completion and much more.
Readline : the basics
readline function reads a single line from the command line. You can provide an optional argument that is written out to the screen as prompt:
Most people that use readline, only know of it as a replacement for reading from the prompt (07-readline-basics.php):
// Read the name from the command line, using the provided text as prompt.
$name = readline('Please enter your name: ');
// Display "Hello <name>"
echo 'Hello ' . $name . PHP_EOL;
TIP: If you run this script locally, try to press TAB twice when you get the prompt. You will notice that it will list the files in the current directory.
Readline : history
With readline it is possible to keep a command history file. This enables you to browse trough previously entered commands. This history can be persistent, so you could write it so that you have access to commands you entered 2 weeks ago. The readline history related functions are:
- readline_add_history: adds a line to the history
- readline_clear_history: clears the history
- readline_list_history: returns an array with all commands in the history
- readline_read_history: read the history stored in a file in memory
- readline_write_history: write the history in memory to a file
A typical program implementing the history functionality, will first try to read in the previous history from a file using
readline_read_history. Usually you will do your
readline next, followed by adding the received command to the memory using
readline_add_history. When you're done, you write the history in memory back to your history file on disk using readline_write_history.
In the example script below, I added commands to list and clear the history as well:
// If we have a history file, read it in; otherwise blank history
$historyFile = './readline.hist';
if (is_file($historyFile)) {
// Endless loop, keep the commands coming
while (true) {
$line = strtolower(trim(readline("Command: ")));
echo 'Received [ ' . $line . ' ]' . PHP_EOL;
readline_add_history($line); // add command to history
// check special actions
switch ($line) { // check special actions
case 'clear': // clear the history
case 'history': // print out the history
case 'quit': case 'exit': // quit / exit
break 2;
Running this script (08-readline-history.php), gives following results:
./08-readline-history.php Command: test Received [ test ] Command: do stuff Received [ do stuff ] Command: history Received [ history ] Array ( [0] => test [1] => do stuff [2] => history ) Command: clear Received [ clear ] Command: history Received [ history ] Array ( [0] => history ) Command: quit Received [ quit ]
Readline : Auto-Completion
If you want to overwrite the default auto-completion behaviour (working dir filenames), you can define the completion function using
readline_completion_function. You create a function that returns an array of possible auto-completions. While you can do checks yourself and return only the valid elements, readline is smart enough to do this work for you. When I first used this, I didn't know about that and my function looked like this:
* Callback function to do auto completion with readline
* @param string $string text typed so far
* @param string $index
* @return string
function readlineCompletion($string, $index)
// words available for auto completion
$completion = array(
// if nothing was typed yet, return all options
if (empty($string)) {
return $completion;
// determine which words can be autocompleted based on what was typed
$matches = array();
foreach ($completion as $c) {
if (strpos($c, $string) === 0) {
$matches[] = $c;
return $matches;
// Define the function used for auto completion
// Readline with auto-complete functionality
$line = readline("Command: ");
But this is overkill. A much easier and cleaner version of the same code is (see 09-readline-autocomplete.php):
* Callback function to do auto completion with readline
* @param string $string text typed so far
* @param string $index
* @return string
function readlineCompletion($string, $index)
// words available for auto completion
return array(
// Define the function used for auto completion
// Readline with auto-complete functionality
$line = readline("Command: ");
When you have to execute a command line script and want some basic data input, you can pass arguments to your script. In your script you can parse them using getopt. While the basic getopt does the trick, there are far better implementations with a special recommendation for Zend Framework's Zend_Console_GetOpt.
When you want to interact with your user, you can use the readline functions for a real shell experience complete with auto-completion and command history.
The code examples for this article can be found on GitHub. If you want to execute them, you will have to make them executable (chmod +x) or pass them to php (php some-script.php).


text:
Summary: Cognition provides readers with a clear, balanced, and highly engaging coverage of the field, along with extensive pedagogical support and numerous applications to everyday life. The seventh edition includes a new Individual Difference in Cognition feature that shows the relevance of cognitive psychology in their careers. Readers will find up-to-date discussions of important research and theories. It arms psychologists with the latest and most comprehensive overview of cognition on the market today. ...show moreSummary: Cognition provides readers with a clear, balanced, and highly engaging coverage of the field, along with extensive pedagogical support and numerous applications to everyday life. The seventh edition includes a new Individual Difference in Cognition feature that shows the relevance of cognitive psychology in their careers. Readers will find up-to-date discussions of important research and theories. It arms psychologists with the latest and most comprehensive overview of cognition on the market today. ...show less
Table of Contents Ch. 1 An Introduction to Cognitive Psychology 1 Introduction 2 A Brief History of Cognitive Psychology 4 Current Issues in Cognitive Psychology 12 An Overview of Your Textbook 21 Chapter Review Questions 27 Keywords 28 Recommended Readings 29 Ch. 2 Perceptual Processes I: Visual and Auditory Recognition 31 Introduction 32 Background on Visual Object Recognition 33 Top-Down Processing and Visual Object Recognition 44 Face Perception 51 Speech Perception 55 Chapter Review Questions 62 Keywords 63 Recommended Readings 63 Ch. 3 Perceptual Processes II: Attention and Consciousness 65 Introduction 66 Three Kinds of Attention Processes 67 Explanations for Attention 77 Consciousness 84 Chapter Review Questions 90 Keywords 91 Recommended Readings 91 Ch. 4 Working Memory 93 Introduction 94 The Classic Research on Working Memory (Short-Term Memory) 96 The Working-Memory Approach 104 Chapter Review Questions 117 Keywords 117 Recommended Readings 118 Ch. 5 Long-Term Memory 119 Introduction 120 Encoding in Long-Term Memory 122 Retrieval in Long-Term Memory 136 Autobiographical Memory 144 Chapter Review Questions 159 Keywords 161 Recommended Readings 161 Ch. 6 Memory Strategies and Metacognition 163 Introduction 164 Memory Strategies 165 Metacognition 182 Chapter Review Questions 197 Keywords 198 Recommended Readings 198 Ch. 7 Mental Imagery and Cognitive Maps 201 Introduction 202 The Characteristics of Mental Images 204 Cognitive Neuroscience Research on Mental Imagery 220 Cognitive Maps 223 Chapter Review Questions 236 Keywords 237 Recommended Readings 237 Ch. 8 General Knowledge239 Introduction 240 The Structure of Semantic Memory 242 Network Models 255 Schemas and Scripts 265 Chapter Review Questions 283 Keywords 284 Recommended Readings 285 Ch. 9 Language I: Introduction to Language and Language Comprehension 287 Introduction 288 The Nature of Language 290 Basic Reading Processes 304 Understanding Discourse 312 Chapter Review Questions 321 Keywords 322 Recommended Readings 322 Ch. 10 Language II: Language Production and Bilingualism 323 Introduction 324 Speaking 325 Writing 335 Bilingualism and Second Language Acquisition 340 Chapter Review Questions 351 Keywords 352 Recommended Readings 353 Ch. 11 Problem Solving and Creativity 355 Introduction 356 Understanding the Problem 358 Problem Solving Strategies 365 Factors That Influence Problem Solving 373 Creativity 384 Chapter Review Questions 389 Key Terms 390 Recommended Readings 391 Ch. 12 Deductive Reasoning and Decision Making 393 Introduction 394 Deductive Reasoning 395 Decision Making 405 Chapter Review Questions 436 Key Terms 437 Recommended Readings 438 Ch. 13 Cognitive Development Throughout the Lifespan 439 Introduction 440 The Lifespan Development of Memory 442 The Lifespan Development of Metamemory 461 The Development of Language 467 Chapter Review Questions 478 Key Terms 479 Recommended Readings 479 Glossary 481 References 497 Credits 571 Name Index 573 Subject Index 585
Cognition - 8 edition
Free ShippingGet Free Shipping on orders over $25 (not including Rental and Marketplace). Order arrives in 5-10 business days.
Need it faster?We offer fast, flat-rate expedited shipping options.
Take advantage of Guaranteed Cash Back. Send your book to us in good condition before the end of the buyback period, we'll send YOU a check, and you'll pay less for your textbooks!
When you're done with this book, sell it back to Textbooks.com. In addition to the best possible buyback price, you'll get an extra 10% cash back just for being a customer.
We buy good-condition used textbooks year 'round, 24/7. No matter where you bought it, Textbooks.com will buy your textbooks for the most cash.
Being online is not required for reading an eTextbook after successfully downloading it. You must only be connected to the Internet duringthe download process.
Minimum Requirements:
What is the Marketplace?It's another way for you to get the right price on the books you need. We approved every Marketplace vendor to sell their books on Textbooks.com, so you know they're all reliable.
What are Marketplace shipping options?Marketplace items do not qualify for free shipping. When ordering from the Marketplace, please specify whether you want the seller to send your book Standard ($3.99/item) or Express ($6.99/item). To get free shipping over $25, just order directly from Textbooks.com instead of through the Marketplace.
FREE UPS 2nd Day Air Terms


text:
Nov. 5, 2010
RIVERSIDE, Calif. - Junior Una Siljegovic had 16 kills, senior Lynda Morales added 14 and freshman Natalie Allen chipped in 12 as Cal State Northridge ran its win streak to three with a 25-27, 25-20, 27-25, 30-28 victory at UC Riverside on Friday.
The Matadors (12-16, 4-8 Big West) dropped the first set on Friday but came back to win the final three sets, including a 30-28 thriller in the fourth. The loss drops the Highlanders to 2-25 overall and 0-11 in conference play.
Siljegovic's team-high 16 kills led the Matadors while Morales hit a match-high .385 committing just four errors in 26 swings. The senior from Fallbrook, Calif., also had six blocks and two digs. Allen had 12 kills (.175) and added a career-high 16 digs for her eighth double-double this season. Libero Cindy Ortiz posted a match and career-high 23 digs while Sam Orlandini and Sydney Gedryn combined for 49 assists.
CSUN opened up a 19-14 in the opening set only to watch as UCR rolled off five unanswered to knot the score at 19-19. Three of the Highlander points in the run came on Matador hitting miscues. However Northirdge then scored the next four points to take a 23-19 lead. Leading 24-21, the Matadors saw four set points get away as Riverside took a 25-24 lead. With the score tied 25-25, the Highlanders used an Amanda Vialpando kill and an Chelsee Arnitz service ace to claim the set, 27-25.
The Matadors won the first point of the second set and never looked back, opening a 20-11 advantage midway through. UCR scored nine of the next 13 points to trail, 24-20, but an Allen kill on set point gave CSUN the win, 25-20.
The Highlanders seemed poised to take a 2-1 advantage in the match with a 20-14 lead in the third, but the Matadors went on a 10-4 run to tie the set at 24. A Vialpando kill gave UCR the opportunity to serve for the set, but Northridge scored three straight to pick up the come-from-behind, 27-25 win.
The fourth set was the closest of the match as the Highlanders led most of the way, but never had a lead larger than four at 20-16. The Matadors refused to go away, scoring four of the next five points and cutting the UCR advantage to one at 21-20.
Six points later, a CSUN service error brought the Highlanders to set point at 24-23. However, a Morales kill followed by a ball-handling error by UCR's Courtney Wypiszynski put the Matadors in the driver's seat. Wypiszynski responded by combining with Annishia McKoy on a block to tie the match at 25, and a Savannah Thomas kill gave UCR its second set point.
The teams traded the next four points with the Highlanders taking a swing at two additional set-winners, but the Matadors answered on each occasion eventually taking the set and the match, 30-28, following two UCR attack errors.
Kelly Simpson led all players with 18 kills while Vialpando added 12. Four different Highlanders played tallied double-digit digs, led by Megan Patterson's 17.
Cal State Northridge continues its four-match road swing as the Matadors head to Long Beach State next Thursday, Nov. 11.


text:
Do girls get hard?
Me and my friends were driving to town in a loaded car. There wasn't enough space so I had to sit on my brother's fiance's lap. I didn't want to sit... Show More
Most Helpful Opinion
Oh my God. Drop what you are doing and call your brother right now! He has to know his fiancé is a man.
No silly. Women get hard but not in a way you could feel unless you are being very intimate with her. You do have quite a wild imagination though. I usually don't get terribly turned on if a man is sitting on my lap. The logistics are just not right and the men I am attracted to in general would crush me if they sat on my lap.
That is interesting. Thank you for a honest answer.
It could have been the way I was sitting, very softly...
What Girls Said 7
Do girls get hard? No? Not to my knowledge? Haha. As far as I know, there is nothing in the vicinity to get hard. The clitoris becomes hardened when aroused, but unless these chicks are sporting mondo-clits, you're not about to feel anything through their pants. The only other thing on a woman's body that gets hard is their nipples, which you certainly wouldn't have felt through her pants. On a side note, why was the man sitting on the woman's lap? And twice? This seems backwards to me, but perhaps that is sexist and I'm wrong.
I would rather sit on a womens lap, than her sit on my lap ;), and that is exactly for non sexist reasons, if you know what I'm saying...
Well, while girls don't neccessarily get "hard", their clitoris swells and pulls away from the hood, but there's no way you could feel that. But when a woman becomes aroused, she becomes wet. perhaps that "musky" scent your friend smelled.
Hmm, I wonder what the fiance was thinking about during that car ride.
What Guys Said 1
Have an opinion?


text:
Top bar
About POGO's Federal Contractor Misconduct Database (FCMD)
The government awards contracts to companies with histories of misconduct such as contract fraud and environmental, ethics, and labor violations. In the absence of a centralized federal database listing instances of misconduct, the Project On Government Oversight (POGO) is providing such data. We believe that it will lead to improved contracting decisions and public access to information about how the government spends hundreds of billions of taxpayer money each year on goods and services. Report an instance of misconduct »
Blackwater USA
Firearms Violations – Deferred Prosecution Agreement
Date: 08/07/2012 (Date of Agreement)
Misconduct Type: Other
Enforcement Agency: Multiple Agencies
Contracting Party: None
Court Type: Criminal
Amount: $7,500,000
Disposition: Deferred Prosecution Agreement
Synopsis: Academi LLC (formerly known as Blackwater Worldwide and Xe Services) entered into a deferred prosecution agreement with the federal government to settle 17 criminal charges. The charged violations included illegally exporting various weapons, equipment, and services to Sudan, Sweden, Denmark, Iraq, and Afghanistan; providing military training to Canadian military and law enforcement personnel without a required U.S. license; possessing unregistered automatic weapons at its North Carolina training facility; and making false statements to the government about weapons provided to the king of Jordan. Under the terms of the deferred prosecution agreement, the company accepted responsibility for the facts as alleged by the government and paid a $7.5 million fine (subject to a credit of up to $2.5 million for compliance-related costs). See related Blackwater USA instances, "Firearms Violations – Employee Prosecutions" and "Firearms Violations – State Department Settlement".


text:
Late Thursday morning, House Republicans offered President Obama a debt ceiling increase in return for a conference on the budget. President Obama has been saying for a week that the United States could default on its debt and that Republicans in the House want it to happen (they don't). It turns out, not only was Barack Obama wrong and reckless in bringing up default, but it isn't going to happen according to the major credit rating agency Moody's.
One of the nation's top credit-rating agencies says that the U.S. Treasury Department is likely to continue paying interest on the government's debt even if Congress fails to lift the limit on borrowing next week, preserving the nation's sterling AAA credit rating.
In a memo being circulated on Capitol Hill Wednesday, Moody's Investors Service offers "answers to frequently asked questions" about the government shutdown, now in its second week, and the federal debt limit. President Obama has said that, unless Congress acts to raise the $16.7 trillion limit by next Thursday, the nation will be at risk of default.
Not so, Moody's says in the memo dated Oct. 7.
" We believe the government would continue to pay interest and principal on its debt even in the event that the debt limit is not raised, leaving its creditworthiness intact," the memo says. "The debt limit restricts government expenditures to the amount of its incoming revenues; it does not prohibit the government from servicing its debt. There is no direct connection between the debt limit (actually the exhaustion of the Treasury's extraordinary measures to raise funds) and a default.
Keep it up, Spite House!
|Katie Pavlich is the Editor at Townhall.com. Follow her on Twitter @katiepavlich. She is a New York Times Best Selling author. Her new book Assault and Flattery: The Truth About the Left and Their War on Women, will be published on July 8, 2014.
"Mamas, don't let your babies grow up to be brainwashed government dependents. Buy this book!" says Michelle Malkin.
"This is a thorough and gutsy book that should help set history straight." - Mark Levin
Buy Katie's book today and help us keep the pressure on the Left.
Author Photo credit: Jensen Sutta Photography


text:
The following is an archive of a post made to our
'vox-tech mailing list'
by one of its subscribers.
On Sat, 2010-05-22 at 20:22 -0700, Brian Lavender wrote:
> in C. What is the order of precendence?
> a || b || c && d || e || f
> Is it just left to right?
> brian
&& has higher precedence than ||, so your expression is evaluted as
a || b || (c && d) || e || f
Many other programming languages adopt C's precedence rules.
vox-tech mailing list
Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux
systems, remote system administration and
custom software development.
LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us
LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.


text:
Everything was going just fine. Work is going well, both for me and the wife. The kids are as happy and healthy as two twitchy, frustrating mutant life forms can be — able to bathe and entertain themselves with some semblance of independence.
A roof over our heads, cars that are almost paid off, manageable credit-card debt, food on the table. We're easing into summer, the barbecue is ready, the lawn is green, the garage tidy and everyone is sleeping through the night. Britney Spears is back on tour and a Kardashian is getting married.
So, of course, we had to go and mess it all up.
Some months ago you may have read in this column that my family was in search of a puppy — a cute, cuddly critter for my girls to grow up with, a decoy for them to torment besides their parents. That's when we found that it's easier to adopt a child from a Third World country than it is to get a puppy in the greater L.A. area. Chihuahuas and pit bulls from the pound don't count.
We filled out the forms, submitted blood tests and earnings statements; we pledged to feed our prospective pooch rare and possibly illegal meat as recommended; have it groomed thrice weekly by only accredited canine stylist professionals and provide psychic therapy/chakra balancing treatments 'til death do us part.
Such are the demands made by the gatekeepers of adoptable pets.
And still nothing.
Then a few weeks ago we went to a pet adoption extravaganza where dozens of rescues and shelters were showing off their wares. It was like a furrier convention, but with cages instead of a catwalk. I expected to be interrogated and refused by even more deacons of doggydom.
Thing 1 and Thing 2 ran amok falling in love with this pug, that poodle and every other beagle, basset and bloodhound. The air was filled with the aroma of excrement and the deafening chorus of barks and yowls. Row after row of discarded, disenfranchised, death-row dogs were vying for attention and salvation. Kind of like a presidential debate.
Then we saw her.
At the end of one cellblock in a pen with five other puppies, she sat. A wee terrier — with a dash of Jack Russell and a pinch of Salvador Dali — barklessly calling us with black marble eyes.
All the pups clamored for attention, but when we reached in to pet this one, she merely rolled over on her back and bade us rub her mottled pink belly.
Exactly how I seduced my wife.
But in true sibling form, Things 1 and 2 refused to agree that this was "The One." If one gets a cheeseburger, the other orders chicken fingers; if one likes mint chip, the other wants Rocky Road; one sips Scotch, the other Bourbon.
As soon as Thing 1 fancied this scruffy three-month-old black-and-white scamp, Thing 2 looked elsewhere for love.
That's when a slight, gangly, feeble little shepherd with ill-fitting skin fell into view. Literally. At only eight weeks and the runt of her litter, she was continually tumbled by more agile pups. Thing 2 "The Compassionate" could not resist. Nor could their mother when she saw her babes holding the newest objects of their affections.
The attendant foster mother saw the delight in their eyes. And I saw the dollar signs in hers.
"You know, it's easier with two dogs," she lied.


text:
- Convention
- Hear & See
- What is a Theatre Organ?
- Where Are They?
- About ATOS
- From the President/CE
- ATOS Marketplace
- News
- History
- Contact Information
- Contact Us
- What's New on the Website
- Endowment Fund
- Local Chapters
- Youth Activities
- Website Information
- Our Organization
- Resources
- Programs & Awards
Home ›
Web Journal
Two films are left in 2010 of the Yannitell Memorial Concert/Film Series at The Historic Palace Theatre in Marion, OH. Also part of the series were two films in fall 2009.
April 25, 2010 at 3:00 PM Charlie Chaplin in "Easy Street" and "The Kid"
June 13, 2010 at 3:00 PM Harold Lloyd in "Girl Shy"
Submitted on 8 January 2010 - 7:03am
The 2/11 Wurlitzer in Salt Lake City's Capitol Theater was a rarely seen feature until the Associate Director of Salt Lake County's Arts, David Barber, came up with the idea to relocate the console to the 2nd floor balcony, and to play it for the public with a first ever WURLITZER WEEK.
Submitted on 4 September 2009 - 7:11pm
This year's ATOS Summer Youth Camp will be held in Phoenix, Arizona from July 27-31, and will feature the 5/106 Midmer-Losh at the Adrian Phillips residence as the primary camp venue. We will also be making a couple of visits to Organ Stop Pizza to hear, see, and play the 4/74 Wurlitzer installed there (we've even arranged for several hours of open console as well!)
This video was produced by Vickie Power.
Submitted on 17 June 2009 - 7:06pm
Often we are sent articles that appear in newspapers or other websites to include in the ATOS Web Journal. It is not always possible to obtain permission from the owner to "reprint" them here. Writing a new article with a link is also difficult without a first hand account from the sources of the article's details.
Submitted on 24 May 2009 - 7:04pm
"... the night's soloist, Jonas Nordwall, who nearly unhinged the San Jose theater from its foundations with his finely wrought, yet supercharged performance on the California's mighty Wurlitzer ..." - Richard Scheinin, San Jose Mercury News
Another related article: "The California's mighty Wurlitzer becomes a symphony instrument next weekend"
Submitted on 16 March 2009 - 6:59pm
As a boy going to Saturday matinees in the 1950s, Evan Chase always wondered what the big ivory console was that was partially covered in the orchestra pit of Toledo's State Theatre on Collingwood Avenue. 50 years later he not only found out, but owns it and installed it in the theatre across the street from the site of the State, the Collingwood Art Center (CAC). Pipe organs have been a serious interest for Mr.
Submitted on 16 March 2009 - 6:19pm
For the thousands of us who love the sounds of the theatre pipe organ, Stan Kann and the St. Louis Fox were, in a phrase, as inseparable a combination as Hoover and vacuum cleaner. Stan Kann passed away Monday morning, September 29, 2008. He was enjoying his second long tenure as house organist at the Fox Theatre on its thrilling 4/36 Wurlitzer, which he played for the last time two days before his death.
He passed away at St. Louis University hospital due to complications following heart surgery.
Submitted on 30 September 2008 - 6:56pm
Radio City Music Hall has been home to some of the most spectacular entertainment events ever produced. From the greatest headliners - like Elton John, Frank Sinatra, Liberace, Barry Manilow and others – to great events such as the Tony Awards, the now-popular ESPY Awards – and its annual Christmas Spectacular, the Music Hall provides headlining entertainment and events as part of its standard bill of fare.
Submitted on 31 August 2008 - 6:54pm
John McCall sent in a link to a blog account from someone present at the recent RCMH organ event so everyone can read about what happened that day.
Submitted on 31 August 2008 - 6:52pm
The show started in March 2007 on Valle Radio, Albox, Spain as a half-hour per week 'addition' to a 2-hour program of vintage music, Those Dancing Years, and was then called Pipes and Paella. It was strictly local in character and although it had, naturally, a fairly small listener base, it was well-liked by the radio station manager. Some of these shows are online.
Submitted on 27 August 2008 - 6:49pm


text:
Police weren't identifying the man, found dead hours after the robbery, as that of the suspect.
But for hours, Fort Wayne police and, later, Allen County Sheriff's Department SWAT team members surrounded a two-story brick building where a vehicle matching the description of the one driven by the robbery suspect was parked outside.
The building houses a post office, some apartments and Tippmann Heating & Air.
About 5:15 p.m., about a half-hour after the Allen County Sheriff's Department's brown armored truck pulled up to the front of the building, tactical officers entered and found the body inside an apartment. A negotiator had pleaded over a loudspeaker, and police blasted the building with noise, hoping to make contact with somebody inside.
Cpl. Jeremy Tinkel, Allen County sheriff's spokesman, would not say whether the man found inside was wanted in the robbery.
The series of events began at 1:10 p.m. when a man wearing a medium-length black coat and a Grim Reaper mask ran into an S&V Liquor Store at 9906 Illinois Road, brandishing a semi-automatic handgun.
He ordered the clerk to open the cash register and, when the clerk complied, reached in and grabbed an undisclosed amount of cash, Fort Wayne police said.
The man grabbed a bottle of liquor and fled in a red truck, according to police.
A red truck sat parked along the west side of the Arcola apartment building as police officers made sure residents and gawkers weren't in the line of fire should any shooting start.
Arcola Elementary was locked down, even as buses pulled into the parking lot to ferry children away for the day. At one point, a woman trying to walk a child down the street was confronted by armed men and police tape and had to figure out a way past the apartment building.
Northwest Allen County Schools Superintendent Chris Himsel said all bus routes were rerouted to avoid the area.
Walkers were either picked up by their parents or guardians or taken home by law enforcement and turned directly over to their parents or guardians, he said.
Police tape ran from the side of the local tavern across Arcola Road to the houses. As regulars wandered in as the afternoon extended into evening, they lifted the tape up and continued on into the bar.
A little after 4 p.m., brown-and-tan Allen County police cars began replacing Fort Wayne's white-and-blue marked cruisers as Allen County Sheriff Ken Fries and his officers took over the scene.
SWAT officers donned protective gear and carried automatic weapons through the parking lot of the United Methodist church a block to the east of the building.
Nearby residents worried about how they were going to get to work.
Others, though, took in the fraught scene as the standoff continued, braving temperatures that hovered in the low teens with a stiff wind.
Throughout the afternoon, Jacob Cowan took photos with his digital camera. He had been walking to the post office to pick up his mail when all the police cars showed up, he said.
So Cowan began taking pictures.
He said he found the event rather concerning, given the normal peace and quiet of the small rural community.
"My prayers and thoughts go out to the families," he said.


text:
In primo luogo costruito nel 1851 durante i primi giorni della California Gold Rush di immigrato tedesco George Leger, questo storico hotel è stato distrutto da incendi e ricostruita tre volte, l'ultima nel 1874. Situato nella città di Mokelumne Hill, il più ricco sciopero della Mother Lode, si è ancora in funzione come uno dei più antichi hotel in California. "Moke Hill", come chiamato dai locali, è la patria di molte "prime", tra cui la più antica chiesa cattolica in California, e il più antico edificio di 3 piani, il Oddfellows Lodge. Una volta che la sede della contea di Calaveras County, il palazzo di giustizia della contea originale e la prigione sono stati acquistati da George Leger nel 1864 e sono ormai parte dell'hotel. Dotato di camere storiche piene di mobili antichi, riolite spessore pareti di roccia da 26 pollici, la berlina originale, e un bel cortile cortile con una piscina e tre 150 anni vecchi aranci, l'Hotel Leger è un posto meraviglioso per vivere la storia della giorni California Gold Rush.
Valore della struttura
33 Recensioni
4,8 su aprile 12, 2015
A great little getaway in a nice little historic hotel in the middle of the Gold Country. Great food in the restaurant, and a fun little bar onsite with wonderful authentic and unpretentious air about it. Can't wait to go back.
3,4 su gennaio 01, 2015
The bed was hard, but that was really the only complaint. We were told in advance that a band would be playing, so we knew it would be loud. Wish I had the energy to join in, but we were pooped!! Fun place.
5 su dicembre 31, 2014
Dog friendly and we loved seeing the dogs wander in and out of the rooms downstairs. The food was absolutely incredible and a great bargain - you may not think so by the prices on the menu but once you take a bite, you realize their menu items are probably underpriced. Floors in the rooms creak (love it!) and the fireplaces have a log ready to burn. I highly recommend the place and look forward to staying again.
4,2 su novembre 26, 2014
This is a quaint gold rush era hotel. The rooms are old and the walls are thin but thats why you pick a hotel like this. The staff was friendly and helpful and the breakfast in the morning is enough. The attached saloon/restaurant has excellent food and you can tell that in the tiny town of Mokelumne Hill, its the place where people go to hang out. If you're looking for a quiet getaway to relax in the foothills and don't mind driving to the nearby towns (Sutter Creek, Murphys, etc.) for something to do then we highly recommend this place.
5 su novembre 26, 2014
This is the 3 td time we ahve stayed here, Doralee took the place over, nice tocuhes to update it, and the food was outstanding, great bar too, the two guys were entertaining, a must stay if you are in Amador or Calaveras County
3,6 su ottobre 26, 2014
We are certainly spoiled in the 21st century; what must have been an elegant night away from home 150 years ago is somewhat uncomfortable for those of us who haven't slept in a double bed in decades. On the plus side, our evening meal was excellent, from the interesting menu (try the portobello mushroom/pecan pasta!) to the attentive service. Hotel Leger is an interesting spot for an overnight, but I wouldn't recommend it for much longer.
4,0 su ottobre 06, 2014
I stayed here to attend my best friends wedding. Room was small but very clean and cozy. Bed was a bit hard. You could hear through the walls and someone banged on the wall one night. However, I wasn't surprised by any of this as I knew I was staying in an old historic building so I was fine with it all. The Hotel has a great charm, staff is awesome and the bartender even made me a vegetarian sandwich that wasn't on the menu when I told him I don't eat meet. Very homey and comfortable, I would come back!
3,8 su settembre 03, 2014
We have stayed at many Gold Country hotels that are from the 1800's and Hotel Leger was another jewel in the heart of a small town. The staff and owners were pleasant and fun. The basement, (old courthouse and jail) was spooky and a great place to ghost hunt... The rooms were spacious and airy, the bed was a little hard and hurt my boyfriends back but not mine. We stayed from friday thru sunday... friday night was quiet for the most part, a little raucous noise from the bar below us, saturday night had a band and wow, unless you're down there whooping it up with them it's a bit overwhelming. All in all a nice place with beautiful grounds and good food.
4,0 su agosto 18, 2014
The Leger in "Moke Hill" is an experience, not a sterile, impersonal 4-star place. The building is a century-and-a-quarter old! The floors are warped and creaky, there are no TVs, no 3-pronged outlets, and no refrigerators. But I'd rather stay here thank a 4-star Doubletree, precisely because the place is not climate-controlled, and because you get to meet people in the hallway while you're shaving in your bathroom (BATH room, not shower room) because it's not connected to your sleeping room! There are even chamber pots in each room (I assume they're chamber pots, but we didn't use them.) The town is a gem, and the local-Mokels in the saloon are most gregarious and friendly. I can't wait to come back here again. I wish I were an orangutan, so I could also use my feet to give the Leger FOUR enthusiastic thumbs way-way up!
3,4 su luglio 02, 2014
1851 historic hotel, in "rustic" shape, with friendly people and decent dining with good service. Access balcony through your window! private bathroom functional but needs upkeep. Shared bathroom fine, but would be helpful to have extra towels & toiletries stored in there. Beds are a bit short for taller folks, but comfortable.
One of our mid-sized rooms with access to the Main St. balcony where you can relax with morning coffee or watch the afternoon sunset paint the clouds while enjoying a glass of wine. A beutiful antique double bed, dresser, armoire and chair furnish the room. Full en suite bathroom.
Our largest room which is located inside the gated backyard. Enjoy the courtyard setting with our three 150-year old orange trees, direct access to the pool, deck and lawn.. The 3-room suite includes a livingroom, full bath and a small kitchenette for extended stays. The seperate bedroom has a high-rise queen 4 poster bed, armoire and a small table with chairs.
A beautiful spacious room facing Main St, with two full beds with feather and a dresser. Original hardwood floors. Full private en suite bath. Can be combined with connecting room to make a two-room suite with three beds. Balcony access to enjoy watching the downtown atmosphere.
Our largest upstairs, this victorian style corner room has an antique queen size bed, private bath with shower and tub. The balcony is accressable and provides a view of historic Main St. and the afternoon sunset. Also includes a large sitting area and marbled fireplace. "Staff's #1 Favorite".
A beautiful large room with full size antique bed. Features a sitting area, including an antique sofa, table and chairs beside a wonderfully romantic fireplace. This room is the perfect spot for some nice conversation, a great book, or to just relax together in front of a fire. Shared bathroom across the hallway with room 5 has a shower, no tub.
Charming cozy room with ample space located in the rear of the building overlooking the courtyard. Antique full size bed, dresser and rocking chair, it is the only room with a clawfoot tub (no shower), located in the spacious private bathroom right next door to room. (hallway access). "Another staff favorite!"
One of our quietest rooms, located in the rear of the building facing the courtyard, it is furthest from the bar. A peaceful getaway, it features an antique double bed with luxurious dressings and a large private in suite bathroom, with tub, shower just the right size for deep relaxation.
Montagna, Piccolo Paese, Villaggi, Regione vinicola
Sacramento, CA (SMF-Metropolitan) 66 miles
Situato nei pressi dello svincolo dell'autostrada storico 49 e CA-26, tra Jackson e San Andreas. Circa un'ora di auto da Sacramento, Stockton e Modesto, e 2 + ore dalla Bay Area. Clicca qui per la mappa - goo.gl/maps/j8rKV
Parco divertimenti, Shopping Antiquariato, Gallerie d'arte, Casino, Concerti, Cene da gourmet, Interessi Storici, Lago, Musica dal vivo, Cinema, Musei, Parchi Nazionali/Statali, Zona Naturale, Laghi (canottaggio, pesca, sci, nuoto), Area Picnic, Servizi religiosi, Fiume, Rodeo, Rovine, Zona sciistica, Vigneti, Azienda vinicola
Historic Inn
Sveglia , BBQ , Giochi da tavolo, Sale Conferenze, Fotocopiatrici, DVD Player, Biblioteche, Pianoforte, Ingresso privato, TV via cavo/satellite, TV, Telefono, VCR, Video, Lavatrice/Asciugatrice, Attrezzature matrimoni , Servizio di portineria
Aria condizionata, Prodotti di cortesia, Ventilatori, Camino, Accesso a internet , Servizio di Rimbocco Coperte, Wi-Fi
Osservazione Uccelli, Nautica, Canottaggio, Piste da sci attraverso la campagna, Sci in discesa, Pesca, Golf, Escursioni, Cavallo, Caccia, Kayak, Fine settimana Musica dal vivo nel salone storico, Shopping, Scenari, Ciaspolate , Nuoto, Piscina , Campi da tennis, Noleggio racchette da tennis, Sport acquatici , Rafting sulle onde
Leanne Sparvel