text:
It took me a while (longer that I should admit) to figure out how to make daemon processes written in bash, work properly with logrotate so that the output from bash gets properly rotated, compressed, closed, and re-opened.
Say, you're doing this in bash:
#!/bin/bash logfile=somelog.txt while :; do echo -n "Today's date is" >> ${logfile} echo date >> ${logfile} sleep 60 done
This will run forever, adding a line to the noted logrotate file every minute. Easy enough, and if logrotate is asked to rotate the somelog.txt file, it will do so happily.
But what if bash has started a process that itself takes a long time to complete:
#!/bin/bash logfile=somelog.txt find / -type f -exec cat \{\} \; >> ${logfile}
which, I think we'd agree, will take a long time. During this time, it keeps the logfile open for writing. If logrotate then fires to rotate it, we will lose all data written to the logfile after the rotate occurs. The find continues to run, but the results are lost. This isn't really what we want.
The solution is to change how logs are written. Instead of using the > ${logfile} syntax, we're going to let bash itself do the writing.
#!/bin/bash logfile=somefile.txt exec 1>>${logfile} 2>&1 find / -type f -exec cat \{\} \;
Now, the output from the find command is written to its stdout, which winds up on bash's stdout, which because of the exec command there, writes it to the logfile. If logrotate fires here, we'll still lose any data written after the rotate. To solve this, we'd need to have bash close and re-open its logfile.
Logrotate can send a signal, say SIGHUP, to a process, when it rotates its logfile out from underneath it. On receipt of that signal, the process should close its logfile and reopen it. Here's how that looks in bash:
#!/bin/bash logfile=somelog.txt pidfile=pidfile.txt function sighup_handler() { exec 1>>${logfile} 2>&1 } trap sighup_handler HUP trap "rm -f ${pidfile}" QUIT EXIT INT TERM echo "$$" > ${pidfile} # fire the sighup handler to redirect stdout/stderr to logfile sighup_handler find / -type f -exec cat \{\} \;
and we add to our logrotate snippet:
somelog.txt { daily rotate 7 missingok ifempty compress compresscmd /usr/bin/bzip2 uncompresscmd /usr/bin/bunzip2 compressext .bz2 dateext copytruncate postrotate /bin/kill -HUP `cat pidfile.txt 2>/dev/null` 2>/dev/null || true endscript }
Now, when logrotate fires, it sends a SIGHUP signal to our long-running bash process. Bash catches the SIGHUP, closes and re-opens its logfiles (via the exec command), and continues writing. There is a brief window between when the logrotate fires, and when bash can re-open the logfile, where those messages may be lost, but that is often pretty minimal.
There you have it. Effective log rotation of bash-generated log files.
(Update 7/5: missed the 'copytruncate' option in the logrotate config before, added it now.)


text:
Nothing Found
You may experience delayed shipping due to the COVID-19 pandemic Dismiss
No products in the cart.
Virtue Memory Game
Bulletin Boards / Room Decorations
Printable Classroom Expectations
Create A Virtue Center
Christian Witness Certificates
Username or email address *
Password *
Remember me
Log in
Lost your password?
First name*
Last name*
Bookstore, Parish or School
Apply for School/Parish Discount
Apply for Bookstore/Distributor Discount
Email address *
Password *
Subscribe to our newsletter
By registering for an account, you are opting-in to the Education in Virtue email list, and may unsubscribe at any time. You will receive weekly content and occasional offers each month. Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

subset: commoncrawl


text: <style type="text/css"> <p>.autonomous_left_rail { width:200px; border-bottom: 5px solid #333; border-top: 5px solid #333; font-size: 1.2em; } content .autonomous_left_rail p { margin:0px; font-size:12px; } .autonomous_coming_soon { color:#999; } .gallery_title { font-weight:bold; padding-top:5px; padding-bottom:10px; font-size: 1.2em; } </style></head><body> Let the Robot Drive: The Autonomous Car of the Future Is Here Navigating the Legality of Autonomous Vehicles [Mapping the Road Ahead for Autonomous Cars](http://stag-komodo.wired.com/autopia/2012/02/autonomous-vehicles-q-and-a/?utm_source=wired.com&utm_medium=sidebar&utm_campaign=historytoqandaclicks ) Five Reasons The Robo-Car Haters Are Wrong Humans have since the days of Leonardo da Vinci's supposed robotic cart dreamed of true automobiles: Self-driving cars. As microprocessors and sensing technologies have grown smaller, cheaper and more powerful, and with cars bristling with sophisticated electronic control systems, that day is upon us. Google's self-driving Toyota Prius hybrids already are racking up more miles than the typical California driver. Here is a capsule history of key developments on the road to autonomous vehicles. Glimpsing the Future The idea of autonomous vehicles gained widespread public exposure at GM's Futurama exhibit at the 1939 World's Fair, where the automaker envisioned "abundant sunshine, fresh air [and] fine green parkways" upon which cars would drive themselves. "By 1953," historian Jameson Wetmore wrote in Driving the Dream, "GM and RCA had developed a scale model automated highway system, which allowed them to begin experimenting with how electronics could be used to steer and maintain proper following distance." In 1958, Wetmore notes, the company tested a 1958 Chevrolet with a front-end featuring "pick-up coils" that could "sense the alternating current of a wire embedded in the road and would adjust the steering wheel accordingly." As GM described it, "The car rolled along the two-lane check road and negotiated the banked turn-around loops at either end without the driver's hands on the steering wheel." Photo: General MotorsThe First Smart Cars First envisaged as a platform for lunar rovers, the Stanford Cart (above) of the 1960s and '70s was a simple buggy equipped with a video camera and remote control with a very long cable. Over time, however, the cart was imbued with greater intelligence and image processing capabilities. In 1979 Hans Moravec achieved what was at the time a signal achievement in robotic mobility: "The cart successfully crossed a chair-filled room without human intervention in about five hours." The cart, ranked 10th on Wired's list of the 50 best robots ever, would pave the way for Stanford's autonomous Volkswagen Touareg, Stanley. What could be called the first truly autonomous car — meaning it could process images of the road ahead — was unveiled in 1977 by S. Tsugawa and his colleagues at Japan's Tsukuba Mechanical Engineering Laboratory. As autonomous car legend Ernst Dickmanns tells it, the car was equipped with two cameras that used analog computer technology for signal processing. It was capable of speeds up to 30 km/h (18.6 mph) but was aided by an elevated rail. Photo: Stanford UniversityVaMoRs and VaMP German aerospace engineer Ernst Dickmanns at Bundeswehr University Munich inaugurated a series of projects in the 1980s that eventually earned him the sobriquet "the pioneer of the autonomous car." In 1987, VaMoRs, outfitted with two cameras, eight 16-bit Intel microprocessors and a host of other sensors and software, drove more than 90 km/h (56 mph) for roughly 20 kilometers. Seven years later, VaMP, with its two cameras processing 320 by 240 pixels per image at a range of 100 meters, could recognize road markings, its relative position in the lane and the presence of other vehicles. In a test drive near Paris the car drove at up at 130 km/h (81 mph) in simulated traffic, even judging whether it was safe to change lanes. The next year, Dickmann's team piloted a Mercedes S-Class from Munich to Odense, Denmark, a trip of more than 1,600 kilometers at a maximum speed of 180 km/h (112 mph) with, as Dickmanns notes, "about 95% of the distance ... traveled fully automatically." The success of these vehicles redirected research away from cars guided by inductive signals received from buried cables toward vision-based systems for lateral guidance. Photo: Ernst DickmannsNo Hands Across America In 1995, Carnegie Mellon University roboticists drove NavLab 5, a 1990 Pontiac Trans Sport, from Pittsburgh to Los Angeles on a trip billed, "No Hands Across America." The vehicle's add-ons included what the research team called "a portable computer, a windshield-mounted camera, a GPS receiver, as well as some other supplementary equipment." The car completed an "autonomous driving percentage" of 98.2 percent, needing a bit of help with obstacle avoidance, among other things. The longest stint without human help stretched nearly 70 miles. Upon arriving in L.A., the team met Jay Leno, who told them he "wouldn't have much use for this technology" because he so loves driving. Photo: Carnegie Mellon UniversityA Grand Challenge Eager to foster the development of robotic cars, Darpa staged the first long-distance competition for autonomous vehicles in 2004. Fifteen vehicles competed in the inaugural Grand Challenge, but none came anywhere close to completing the 150-mile course through the Mojave. Carnegie Mellon's Red Team Racing fared the best, completing 7.3 miles with Sandstorm, its autonomous Humvee, before running off the road in a hairpin turn and getting hung up on an embankment. Photo: Carnegie Mellon UniversityAn Even Bigger Challenge Undeterred, Darpa doubled the prize money to $2 million for the 2005 Grand Challenge. Twenty-three teams lined up for the 132-mile race through the Mojave; five reached the finish. It was a challenging run that included three tunnels, more than 100 turns and navigating a steep pass with sharp drop-offs. Stanford University took first place with Stanley, an autonomous Volkswagen Tourareg (above) that completed the course in 6 hours and 54 minutes. Photo: VolkswagenThe Grand Challenge Goes Urban Darpa made things a little tougher in 2007 when it staged a 60-mile race in an urban environment. Eighty-nine teams entered, and 11 made it to the start. The course included 4 miles of k-rail enclosed "streets" where entrants had to cope with manned-vehicle traffic at the former George Air Force Base. Carnegie Mellon's team, Tartan Racing, completed the course in a bit more than 4 hours and 10 minutes with a Chevrolet Tahoe it named "Boss" (above). Stanford's Sebastian Thrun (above, with second-place finisher "Junior") led the development of Junior, the school's autonomous Volkswagen Passat that traversed the course in 4 hours, 29 minutes and change. Reflecting on the difference between vehicle behavior in the Grand Challenge and Google's fleet of cars, Thrun notes "anytime two cars faced off at an intersection and something went wrong, Darpa manually paused vehicles — to make sure things were smooth. There were a number of major congestions. Cars did face and navigate intersections successfully, but nowhere near with the competency that you find for example [with Google's cars] in downtown San Francisco." Photos: General Motors, VolkswagenUniversity of Parma's Road Trip Parma's VISLAB undertook the most geographically daunting autonomous car journey in 2010, driving from Parma to Shanghai. The trip took them 16,000 kilometers through nine countries in 100 days. In Russia (where the car had its first accident, due to human error), the team nearly notched another record: The first autonomous vehicle to be ticketed by a traffic cop. As the team noted, it dodged the ticket either due to its skills in "Latin oratory" or because of the officer's "embarrassment in not knowing in what name to issue the ticket." Photo: University of ParmaShelley Climbs the Mountain Audi's autonomous TTS is named for racer Michele Mouton, an Audi rally driver and the first woman to win the Pikes Peak International Hillclimb. Shelley, designed by Chris Gerdes and his colleagues at the Center for Automotive Research at Stanford University, is packed with GPS, wheel speed sensors and traction control algorithms that allow the car to handle "at the limits." The car conquered the 12.42-mile sprint to the summit of Pike's Peak in 27 minutes. Sure, that's 17 minutes off the human record, but considering the first human-guided, steam-powered car took more than nine hours to make the ascent in 1901, it is an auspicious debut for a computer-controlled car. Photo: Audi. Shelley on the salt at Bonneville during testing.Google Goes Driving Google's fleet of seven autonomous Toyota Prius hybrids has racked up more than 140,000 miles with only occasional human intervention since hitting the road in 2010. The Google Driverless Car program is led by Darpa Grand Challenge alum Sebastian Thrum. The cars use data from Google Street View coupled with data from cameras, LIDAR and radar to determine the car's position on a map. The system works remarkably well; the cars have successfully negotiated San Francisco's Lombard Street (eight hairpin turns on one block), circumnavigated Lake Tahoe and even driven from Mountain View to Santa Monica. Don't worry — there's always a human behind the wheel, just in case. Google, like other autonomous vehicle advocates, believes the technology will increase safety, reduce congestion and ease emissions. Last summer, Nevada passed a law allowing autonomous cars on state roads, further paving the road ahead for driverless cars. Photo: Nevada Gov. Brian Sandoval takes a spin in one of Google's autonomous autos. Sandoval described the experience as "amazing." Sandra Chereb/Associated Press


text:
Photographers make a living in almost any industry and location – creating art, uncovering unseen data, documenting details, or telling a story. There are so many kinds of careers in photography – from highly creative to highly technical – that it can be difficult to choose which path to follow.
This is a guest post by Ellen Barry from BrainTrack.
Continue reading "Matching Your Passion for Photography with a Promising Career"


text:
A loosie off Honest that looks like a bonus track for Future's album because it wasn't featured on yesterday's full album stream. The Andre 3000 feature should come as no surprise to anyone who caught OutKast at Coachella bringing out Future and Janelle Monae. Get your Future fix below, before the album drops next Tuesday.
Song since removed.


text:
My feedback
323 votes93 comments · The Knot All-In-One Wedding Planner - Forum » Registry · Flag idea as inappropriate… · Admin →under review · Meuy responded
Hi and thank you so much for your idea!
We will definitely take this into consideration. We're always trying to improve the Wedding Website experience for couples so we welcome all of your great ideas.
We will keep this forum updated as we make improvements!
Enjoy your planning!
Your Customer Experience TeamLori supported this idea ·
An error occurred while saving the commentLori commented
I'm having the same issue


text:
Spas are where you go when you want a massage, steamy towels, facial mud, and cucumbers on your eyes. Medical spas are trendy and they come and go. In 1995, Dr. Connie Casad responded to the needs of her patients. She became the first female physician in Dallas to offer comprehensive aesthetic solutions. By focusing on helping people reverse the visible effects of aging, her patients could look their best and feel good about how they looked. It is not now, nor was it ever a spa. It is a medical practice devoted to patients. Our staff has the expertise in cosmetic dermatological products and services that achieve outstanding results, one patient at a time. Park Cites Aesthetics, with more than 20 years of experience, has given customized, dependable care to hundreds of women and men who seek the best in themselves and know it when they find a practice that shares their desires. Everyone has a choice, so make the right one. To look and feel your best, call Park Cities Aesthetics and schedule an appointment today.See all Our Treatment Options
Hormonal balance is critical to optimal health and wellness. Whether related to menopause for women or low testosterone for men, proper hormone levels can improve sleep, sex drive, concentration, and weight management. Let Dr. Casad's expertise guide you.
For many women, your gynecologist is your primary physician. We welcome this role and offer comprehensive care devoted to wellness, comfort, and peace of mind. Regardless of your stage in life, your needs are respected and valued by our team of professionals.
Body image is at the core of how we feel. Looking better contributes to feeling better, and diet and exercise are often not enough. Smart Lipo™ is a minimally-invasive technique that reshapes thighs, hips, arms, chins, and necks. Each area can often be completed in a single visit.
Day and Beauty spas are trendy and often owned and staffed by individuals lacking real expertise in aesthetic procedures. Our trained and experienced specialists have been providing state of the art aesthetic services for more than 20 years that are proven, medically based, safe, and effective.
When someone hears the word "Concierge," they think of service at its very best. People from all walks of life want the opportunity to choose quality, especially when it involves personal health. Today, the state of our health insurance system makes this uncomfortably challenging. That is why many physicians and their patients are adopting a new approach to the doctor/patient relationship called Concierge Medicine.
A concierge practice like the one offered by Dr. Casad is known for the accommodations and convenience afforded to patients. A customized annual physical is provided to every Concierge patient, and members receive priority scheduling, including same day appointments for urgent situations. Prompt access to the physician and plenty of time spent with them are cornerstones of this practice method, including direct contact after hours with the doctor.Learn How We Can Serve You
I have only seen Dr. Casad for one visit. I found her to be patient and interested in making sure all my questions were answered. Her staff was friendly and considerate of my time, which is also hard to find. I feel very comfortable referring her to all my friends and family."


text:
Aroma Fresh Chem-Dry is Your Trusted Partner in Removing Allergens and Bacteria from Your Home
Tested and Proven Superior Results
Providing superior solutions and services that you can trust to keep your home clean, safe and healthy is our commitment to you. Using a green-certified solution and our proprietary Hot Carbonating Extraction cleaning method, we are able to deliver a deeper, longer lasting clean that leaves you with peace of mind and a healthier environment for your family.
The mission at Aroma Fresh Chem-Dry is to help people live healthier lives. We want our processes to provide the results you want to maintain a clean and healthy home. To ensure we provide services that meet the goals of our mission, we commissioned independent laboratories to test our core cleaning methods against some of the most common unhealthy elements found in homes – allergens and bacteria. We're happy to share those results with you.
Hot Carbonating Extraction Process Makes Homes Healthier
Our Hot Carbonating Extraction (HCE) process was tested by a leading independent air quality laboratory in multiple homes. The lab found that Chem-Dry removes an average of 98.1% of common household allergens from carpets and upholstery. The common allergens tested were dog and cat dander and dust mite allergens.
Additionally, our HCE process, when coupled with a sanitizer, was found to remove an average of 89% of the airborne bacteria in the home and 82.3% of the bacteria in carpets.
Pet Urine Removal Treatment (P.U.R.T.®)
An independent laboratory also conducted multiple tests of P.U.R.T., our revolutionary process for treating pet urine odors and stains. In tests against the most common odor sources found in dog and cat urine, the study concluded that P.U.R.T. removes an average of 99.9% of pet urine odors from carpets. When coupled with our HCE process and a sanitizer, the study also concluded that P.U.R.T. removes an average of 99.2% of the bacteria from pet urine stains in carpets.
Tile, Stone & Grout Cleaning*
Another service that an independent laboratory studied was our Tile, Stone & Grout Cleaning process. Based on several tests on tile surfaces in multiple homes, the study concluded that our Tile, Stone and Grout cleaning process, in conjunction with a sanitizer, removes an average of 98.6% of bacteria from these surfaces.
Granite Countertop Renewal*
Based on several tests across multiple homes, an independent laboratory found that our Granite Countertop Renewal process, in conjunction with a sanitizer, removes an average of 98.4% of bacteria from granite countertops.
Many people don't realize that carpets, rugs and upholstery act as giant air filters for your home, trapping allergens and bacteria and keeping them out of the air we breathe. But just like any air filters, they need to be properly and regularly cleaned to remain optimally effective. All of us, and particularly the 1 in 5 American (roughly 60 million) who suffer from allergies or asthma, are greatly impacted by indoor air quality and the amount of allergens and bacteria trapped in our homes that can trigger an attack. Considering that and the fact that we spend an average of 90% of our time indoors, selecting a trusted professional with safe and healthy processes to clean your carpet, upholstery, area rugs, tile & stone, and granite countertops is an important decision and plays a key role in the health of your home and your family.
Indoor air quality is also a significant home health concern because the average home can harbor as much as 200,000 bacteria for every square inch of carpet. As the bacteria builds up, the bacteria lurking in your carpets gets stirred up and circulates in the air your family is breathing unless you properly clean them. A Chem-Dry carpet cleaning is not only effective at removing the bacteria from the carpets, upholstery and other surfaces we clean, but it also improves the overall air quality in your home
*Based on results from a study conducted by an independent laboratory using the Chem-Dry Hot Carbonating Extraction process. Allergens tested were dog and cat dander and dust mite allergen. Airborne bacteria results includes use of sanitizer. Figures are an average across multiple homes.


text:
With new content & resources daily, BNPrepared.org is there for you, your family, local businesses, & all community members to help with COVID-19.
To show our gratitude to you, our outstanding members and rock-star volunteers, we're inviting you to join us Friday, September 25 at Alexander's Steakhouse. There's no cost to attend, but register to let us know you're coming.
Moxii Marketing Solutions


text:
Hop aboard Boston Duck Tours and enjoy a fully narrated, historic tour of Boston in a "DUCK", a W.W.II style amphibious landing craft that travels on land and water. You'll cruise by all the places that make Boston the birthplace of freedom and a city of firsts. Just when you think you've seen it all, your ConDUCKtor drives the DUCK right into the Charles River for a breathtaking view of the Boston and Cambridge skylines.
Tours depart daily from the first day of Spring until the Sunday after Thanksgiving from 9am until and hour before sunset from the Museum of Science & Prudential Center.
Tours also depart from the New England Aquarium on the following dates and times:
April 1 - June 15th
Weekdays, Daily - 3pm -sunset
Weekends & MA April School vacation - 12pm - Sunset
June 15 - Labor Day
12pm – sunset
The day after Labor Day - October 31st
9am until sunset
Holiday tours run from the Prudential Center only - Friday – Sunday in December. Holiday Tours end the weekend before Christmas (Weather dependent).
Ticket Prices:
Adults: $37.50*
Students/Seniors(62+)/Military: $31*
Children 3 -11: $26*
Children under 3: $10.50*
Special Needs: $21*
*Rates do not include a 5% Convention Center Surcharge.
Group Rates: (for 20 or more guests):
Adult Group: $28 pp**
Student/Senior(62+)/Military Group: $26 pp**
Children aged 3 to 11 Group: $22 pp**
Children Under 3: $10.50**
Special Needs: $21*
**Group rates do not include a 5% Convention Center Surcharge or 10% staff gratuity.
Groups may call 617-450-0068 or 800-226-7442 or book on-line.
*Prices are subject to change without notice.


text:
Join us on Friday's at 7pm for a night of worship, games and hanging out! Be sure to invite all your friends!
Nov 3, 2017, 7:00 pm - 9:30 pm
|Recurring Event (See all)
An event every week that begins at 7:00 pm on Friday, repeating until Dec 27, 2019
The Free: Sr. High
- This event has passed.