text:
Q: Bash scripting - how to concatenate the following strings? Here is the part of the bash script doing cpuid discovery in Linux (Ubuntu/Fedora):
/usr/bin/cpuid > id.txt
CPUID=id.txt
echo `grep "extended model" $CPUID` | sed 's/0x//' | awk ' { print $4 } ' > cpu.txt
a=`cat cpu.txt`
echo `grep "extended family" $CPUID`| sed 's/0x//' | awk ' { print $4 } ' > cpu.txt
a+=`cat cpu.txt`

So, for my laptop this part of the script (shown here) gives 60.
Now how to do this using ONLY local variables, not having intermediate file (cpu.txt) involved?

A: You can avoid the intermediate file by using a pipe, and you can avoid using both sed and awk by doing your matching and substitution in awk e.g.
/usr/bin/cpuid |
  awk '/extended model/ {mod = substr($4,3)} /extended family/ {fam = substr($4,3)}
  END {printf "%d%d\n", mod, fam}'

A: In one go:
printf '%s%s\n' "$(grep -Pom1 'extended model.*\(\K\d+' <(cpuid))" \
                "$(grep -Pom1 'extended family.*\(\K\d+' <(cpuid))"

The above leverages process substitution (<()), and command substitution ($()).

*

*The two command substitutions are replaced with the STDOUT of the commands inside

*cpuid command is put inside process substitution, the STDOUT will be returned as a file descriptor, grep will do the necessary matching on it, we have used grep with PCRE (-P) to get only (-o) the desired portion, and -m1 will stop after first match to avoid repetition

*printf is used to get the output in desired format
Example:
$ printf '%s%s\n' "$(grep -Pom1 'extended model.*\(\K\d+' <(cpuid))" "$(grep -Pom1 'extended family.*\(\K\d+' <(cpuid))"
30

A: Without making assumptions and changing the nature of the sample, here is a drop in replacement that stores the output in a variable as requested:
CPUID=$(/usr/bin/cpuid)
a=$(echo "$CPUID" | grep 'extended model' | sed 's/0x//' | awk ' { print $4 } ')
a+=$(echo "$CPUID" | grep 'extended family' | sed 's/0x//' | awk ' { print $4 } ')

First line sets the variable CPUID to the output of /usr/bin/cpuid
I then set the variable a to be the output (echo) of the CPUID variable set in the line above (this is then piped to your provided commands).

A: sed
cpuid | tac | sed '/^CPU/{s/.*//;x;s/\n//g;p;d};/extended \(model\|family\)/!d;s/.*(\(.*\)).*/\1/;H;d'

as I have 8 cores, my pc emits:
50
50
50
50
50
50
50
50

tac reverses the order of lines from cpuid so that I can use ^CPU as a terminator of a CPU record, an also extended model and extended family then occur in the right order

A: So far, I am reading all the comments, and I will try to use them all. As I wrote to NGRhodes: "unfortunately, I am not expert to sed, awk and perl, but some initial understanding I do have.
Many thanks to all who did/presented these excellent examples. I sincerely hope lot more people will read these lines and deepen their scripting skills!
Actually, I did some cocktail of what you all suggested to me:
/usr/bin/cpuid > id.txt  ***[CPUID=$(cat /usr/bin/cpuid) does not work for me]***
CPUID=id.txt
a=$(echo `cat $CPUID | grep -m1 'extended model' | sed 's/0x//' | awk ' { print $4 } '`)
a+=$(echo `cat $CPUID | grep -m1 'extended family' | sed 's/0x//' | awk ' { print $4 } '`)
a+=$(echo `cat $CPUID | grep -m1 'AMD' | sed 's/(//' | sed 's/)//' | awk ' { print $13 } '`)
a+=$(echo `cat $CPUID | grep -m1 'model' | sed 's/0x//' | awk ' { print $3 } '`)
a+=$(echo `cat $CPUID | grep -m1 'stepping id' | sed 's/0x//' | awk ' { print $4 } '`)
a+=' '
a+=$(echo `cat $CPUID | grep -m1 'processor serial number:' | awk ' { print $4 } '`)
echo $a

Result is: 40651 0004-0651-0000-0000-0000-0000 which is what I expect! :-)

A: This doesn't optimize your initial commands, but the semi-colon allows you to put 2 commands together to avoid the concatenation operation entirely:
foo="$(firstcommand; secondcommand)"

Or, specific to your situation:
a=$(grep "extended model" $CPUID | sed 's/0x//' | awk ' { print $4 };
grep "extended family" $CPUID | sed 's/0x//' | awk ' { print $4 };)

If you care about the newlines you will want to put double-quotes before the initial $( and after the closing )

A: Here's a way to do it in awk (the whole output as done by the code in your answer).
When you end up reprocessing the same input over and over, it usually indicates that another approach might be better.
awk is perfect for processing text input like this. awk programs are a lot longer than things done with sed, but they are much easier to read and you can add print statements to them to make debugging much easier.
I left my debugging statements in (commented out). You can uncomment them to watch how the script works.
You have to put the awk program somewhere and the easiest place in a single use case like this is to put the whole thing in a single quoted string on the awk command line.
This way you don't have to store it in a separate file or in a temporary file, so there's no file management involved and the script will stand on its own.
This program looks long, but it's almost all comments, debugging statements, and white space.
#!/bin/bash

## Whole awk program is one single quoted string
## on the awk command line
## so we don't need to put it in a separate file
## and so bash doesn't expand any of it
## Debugging statements were left in, but commented out

/usr/bin/cpuid | awk '
BEGIN {  ## initialize variables - probably unnecessary
  em = ""
  ef = ""
  fa = ""
  mo = ""
  si = ""
  ps = ""
}

## get each value only once

## extended model is in field 4 starting at the third character
## of a line which contains "extended model"
/extended model/ && em == "" {
  em = substr($4, 3)
  ##print "EM " em
}

## extended family is in field 4 starting at the third character
## of a line which contains "extended family"
/extended family/ && ef == "" {
  ef = substr($4, 3)
  ##print "EF " ef
}

## family is in the last field, starting at the second character
## and is two characters shorter than the field "()"
## of a line which starts with "family"
## (so it does not match "extended family")
$1 == "family" && fa == "" {
  ##print NF " [" $NF "]"
  ##print "[" substr($NF, 2) "]"
  l = length($NF) - 2
  fa = substr($NF, 2, l)
  ##print "FA " fa
}

## model is in the third field, starting at the third character
## of a line which starts with "model"
## (so it does not match "extended model")
$1 == "model" && mo == "" {
  mo = substr($3, 3)
  ##print "MO " mo
}

## stepping id is in field 4 starting at the third character
## of a line which contains "stepping id"
/stepping id/ && si == "" {
  si = substr($4, 3)
  ##print "SI " si
}

## processor serial number is in field 4 starting at the third character
## of a line which contains "processor serial number:"
/processor serial number:/ && ps == "" {
  ps = $4
  ##print "PS " ps
}

## Quit when we have all the values we need
em != "" && ef != "" && fa != "" && mo != "" && si != "" && ps != "" {
  exit
}

END {
  print em ef fa mo si " " ps
}
'

redpajama_set_name: RedPajamaStackExchange


Look at the evasions this horse is exhibiting: tossing the head, going behind the bit, taking his head to the side, swishing and wringing of the tail, excessive foaming.
Is the contact too heavy?
Is the rider paying attention to the horse?
Is this a natural gait for the horse?
Is the horse trying to tell us something? Are we listening?
Also notice the horse's front legs and his winging.


text:
San Antonio's electromagnetic defense partners continue building strategy for Alamo Region
By Lori A. Bultman | 502nd Air Base Wing Public Affairs | Dec. 9, 2019
Lt. Col. Eddie K. Stamper (center), Joint Base San Antonio-Electromagnetic Defense Initiative project officer, speaks with J.O. McFalls, McFalls Associates LLC, and Klaus Weiswurm, Innovation Technology Machinery chairman and an appointee to the U.S. Air Force Civic Leader Program, before the quarterly San Antonio Electromagnetic Defense meeting at Southwest Research Center Nov. 18. (Photo by Lori A. Bultman)
The purpose of the San Antonio Electromagnetic Defense collaborative is to assist in meeting the requirements of Presidential Executive Order 13865, "Coordinating National Resilience to Electromagnetic Pulses," and to create resiliency across the region against a potentially catastrophic electromagnetic pulse. (Photo by Courtesy graphic)
One year ago last month, Joint Base San Antonio leaders brought together local subject matter experts from government, military, industry, research, and academia to create a collaborative pilot project known as San Antonio Electromagnetic Defense, or SA-EMD, as part of the JBSA Electromagnetic Defense Initiative, or JBSA-EDI.
The purpose of the collaboration is to create resiliency across JBSA and San Antonio against a potentially catastrophic electromagnetic pulse or other events that could cause a long-term regional power outage and to assist in meeting the requirements of Presidential Executive Order 13865, "Coordinating National Resilience to Electromagnetic Pulses."
Electromagnetic pulses can result from solar events or from man-made nuclear or pulse-power devices.
A nuclear EMP has the potential for the greatest effect because of its broadband nature and large area of coverage, according to the Department of Energy. It has the potential to disrupt, damage, or destroy a wide variety of electrical and electronic equipment, making it a viable threat to nationwide electrical grids, thus a threat to national security and public safety.
A nuclear EMP affecting the San Antonio area could also greatly impact military operations, which is why Brig. Gen. Laura L. Lenderman, 502nd Air Base Wing and JBSA commander, adopted the pilot project. Her intent for SA-EMD is to ensure JBSA will continue operations in the event of an EMP, a cyber attack or even a physical attack on the region's power infrastructure.
To meet that objective, members of the project's four working groups, Grid Resiliency, 5G Implementation, Planning for Long Term Regional Power Outage, and Domestic Electromagnetic Spectrum Operations, meet regularly to discuss and evaluate the potential effects and consequences of an EMP on critical assets, including infrastructure (electric, gas, water/water) and telecommunications, which are of important to JBSA and its 80,000 military and civilian members, as well as the nearly 138,000 students trained here annually.
The groundwork for the Alamo Region's resiliency model is well underway, Lt. Col. Eddie K. "Thumper" Stamper, JBSA-Electromagnetic Defense Initiative project officer, said at the group's quarterly meeting Nov. 18.
"Members of the working groups are creating and testing capabilities to ensure the 11 military installations in the area have hardened utility infrastructures to protect them from the effects of an EMP, or can recover quickly after an event takes place," he said.
The SA-EMD currently has 200 subject matter experts from more than 60 organizations and is open to anyone with an interest in participating in one of the working groups.
"Trusted partnerships are creating considerable promise in advancing research in emerging EMP resilient technologies including 5G, data science, automation and secure resilient manufacturing," said Guy Walsh, executive director for University of Texas at San Antonio's National Security Collaboration Center, or NSCC, and a member of several SA-EMD working groups.
"The NSCC at UTSA builds success by creating a continuous collaborative ecosystem among government and industry partners like CPS Energy and leading urban research institutions," Walsh said. "UTSA and Southwest Texas Research Institute, in collaboration with other research institutions around the country, are achieving new heights by partnering with federal, state and city government agencies to define, measure and achieve national security goals and help secure the energy grid."
As the SA-EMD working groups continue to build their model for success, participants also ensure their proposals are ones that can be replicated across the Department of Defense, have the goal of deterring enemies from using EMP as a weapon, and, as 5th-Generation cellular networks are developed, ensure risks and opportunities are integrated with commercial plans," Stamper said.
"SA-EMD will continue adding partners, while steering toward normalization of JBSA's Electromagnetic Defense by 2022, and ensuring sustainability of military operations by staying one step ahead of the nation's adversaries, Stamper added.
"We are ahead of everyone else on this effort," he said at the meeting, reminding attendees that an EMP does not have to be detrimental to operations. "It is not a crisis when you are prepared."
Lenderman agrees and appreciates the community's efforts to protect JBSA.
"There has been great collaboration between the military, industry, academia, and of course, this incredible community," Lenderman said of the SA-EMD, adding that the synergy in San Antonio is unlike any other.
"Last year, our community learned about electromagnetic pulse and its related consequences," Lenderman said. "Today, our team is leading the national effort to develop solutions to mitigate it."
electromagnetic defense
San Antonio Electromagnetic Defense
SA-EMD
JBSA Electromagnetic Defense Initiative
JBSA-EDI
Electromagnetic Pulses
Presidential Executive Order 13865
Coordinating National Resilience to Electromagnetic Pulses

redpajama_set_name: RedPajamaCommonCrawl


text:
DAEM x BASQUIAT collaboration
Where art meets design
SEE WATCHES
Basquiat embraced life around him and ascended to true royalty in the art world
Two of Basquiat's most powerful works come together
NOW'S THE TIME
There's something beautiful in focusing solely on the here and now
A groundbreaking collection tying Basquiat's life and work from the 80's to present day.
Designed in the heart of Brooklyn. Made in Switzerland. World-class design and cutting-edge collaboration.
"DAEM has released an exclusive line of watches, challenging the way a luxury watch should look"
"Brooklyn-based luxury watch brand DAEM pays tribute to an artist who shaped the landscape of the modern art world"
"The Brooklyn-based brand manufactures in the Basel region of Switzerland, aka one of the most famous watchmaking hubs in the whole damn world."
"The luxury watch company's latest collaboration was with Basquiat, who holds an indelible influence on art around the world."
"Beautiful watches that delve deeper into the inspiration behind the design"
"Luxury – in every sense of design and craft – created through diverse narratives from the world around us"
"A dope watch collaboration from luxury timepiece brand DAEM"
"There is an effortless cool to these watches from DAEM, priced brilliantly and chock full of impeccable features"
"The Brooklyn-based brand... is taking the watch industry by storm"
"Their watches are built so they can be handed down to the next generation"
Join the DAEM Community
Get access to new product releases, exclusive events, special offers and more
ABOUT DAEM
© 2022, DAEM
Sign up for the Journal and get access to new product releases, exclusive events, special offers and more


text:
Home ⟶ Stories ⟶ The History of Mayfair
The History of Mayfair
Exploring the rich history of our central London neighbourhood with acclaimed author and history Daniel Pembrey
Situated in the heart of Mayfair, Grosvenor Square symbolised the apex of Georgian society. It exemplified a remarkable feat of estate planning and stewardship on the part of the Grosvenor family.
The square was built in the 1720s pursuant to the marriage in 1677 between Sir Thomas Grosvenor and property heiress Mary Davies, which created the opportunity for a visionary 100-acre development in Mayfair. As the eighteenth century progressed, the boisterous original spring fair – which brought drovers, animals, jugglers and revellers to the vicinity of Shepherd Market – was superseded by planned streets, elegant architecture, grand public spaces and of course the 'ton' (Society). At its heart lay this five-acre masterpiece – the first example of a London garden square taking an oval shape.
Two factors underpinned Grosvenor Square's success. One was proximity to everything that mattered: parliament, St. James's Palace, the opera, the best shops and services, the most connected clubs and coffee houses, not forgetting other less sanctioned pleasures. For the first time, and for several months of the year during the Season, the most elite families in the land were resident in London's West End, which became a container of enormous power. Nowhere was this more apparent than in Grosvenor Square. Fully 69% of the square's first tenants were titled.
The other factor underpinning its success was the way it brought the countryside into the city. It was blessed by having Hyde Park to its west. The prevailing winds in London tend to blow eastward, hence air quality was good. Sir Richard Grosvenor played a key role in the development of the oval-shaped garden. It was planted with almost a mile of elm hedging, 4,100 turfs, 2,635 small mixed 'shrubs, plants and evergreens' and 3,000 flowering shrubs. This 'wilderness worke' was criss-crossed with walkways.
It was a youthful, colourful and theatrical world. Indeed, it is easy to forget that, with the shorter average life expectancy of Regency times, over a third of the British population was aged under fifteen (the proportion today is half that). As Bridgerton vividly depicts, it was a world of boots, breeches, cutaway coats and 'fine leg' for men. Women sported pelisses and dresses made of rare and luxurious fabrics, with accessories such as exotic feathers and, increasingly, jewellery fashioned to sparkle, the more so at night in lamp or candle light.
The Duke of Dorset was a noted patron of the arts (he'd been on the requisite Grand Tour) and an accomplished cricket player. He went on to become an ambassador to France. He was also considered fiendishly attractive to women. The Countess of Derby, a fashion leader, vied with Georgiana Cavendish, the Duchess of Devonshire for the title of foremost beauty of their day.
The houses conformed to a type. Ground floors would contain reception rooms, while first floors would feature lavishly furnished entertaining rooms, with bedrooms above. Commentators remarked on the handsomeness of principal staircases. Basements comprised servants' quarters. Stables at the back exited onto mews lanes and accommodated pedigree horses plus landau (convertible) and enclosed carriages.
Among Mayfair's most charming streets today are those that the early developers reserved for tradespeople, including Mount Street and Mount Row immediately to the south of the square. These two streets would be rebuilt with Victorian terracotta frontages and distinctive Arts and Crafts houses, but keeping servants and tradespeople close to the grand houses sustained a diversity of social strata and cultures in Mayfair through to present day.
The popularity of Grosvenor Square itself, particularly with Americans, would result in many changes to its buildings, culminating in the US Embassy occupying its west side in the 1950s. Yet Georgian houses remain, and if the original developers returned to the square today, it would be entirely legible to them.
One of the original houses is number 9, at the north east corner – now a private office but once the residence of John Adams, the first American Ambassador to Great Britain and the second US President. Another intact house is the 3rd Duke of Dorset's former residence at number 38. Ceilings, fire places and other internal features remain as they were back in the Duke's day.
https://www.mayfairldn.com/stories/the-history-of-mayfair/


What a great idea, Katie! After 20 years of using cracked porcelain pictures of lighthouses, I finally bought some plastic sunflowers from Down to Earth; yours are much, much classier and would make lovely gifts.
God this is super awesome!!
That's a great idea. I assume your print outs were on a laser printer? I only have inkjet and I'm wondering if the ink would run when the mod podge was applied.
Nope, I used my ink jet printer. The ink didn't run at all, and the Mod Podge has made enough of a seal that liquid beads up on the surface.
Thanks! That's really good to know. I now have the germ of an idea about using some of my own artwork in this project. If I find the cork board, I will make these.
Terrific project, Katie. I can think of lots of images, including personal photos, that would make wonderful personalized gifts using this technique. Thank you!
Thanks Donna – I love the idea of photos!
Very sweet – and a good project to do with grandchildren, except for the utility knife part (which is exactly the part my grandson would want to do). I salvaged a bunch of coasters from my parents' house which were like this – cork with paintings of horses on them. They've been incredibly useful, and make great toys for toddlers.
They'd be fun to do with kids' artwork – maybe drawing or painting would distract your grandson from the utility knife??
Very cool! And I love that wine glass, too.
Katie, what a fun project! Your coasters are WOW!
Those are awesome!! I love the use of artwork..
I had hot tea cups sitting on them yesterday and no rings! They also still look good after putting damp water glasses on them. I can't speak to the long term, but so far they're holding up really well.
Hi Katie, I am thinking of making some coasters for my mom as a part of her Christmas gift. If you see this comment, could you let me know how yours have held up now that it's more than a year later? Is the modge podge still going strong, or would you recommend a spray sealant for longer term durability? Thank you!
Yes! Thanks for the reminder; I'll update the post. I definitely recommend using some kind of sealant. I used MinWax Polyacrylic for a second batch of coasters, and it's gone a long way into helping them last longer. I have some that have been in use for months and months and they still look great. I haven't tried the spray sealant, but there are lots of favorable reviews online and it seems like it would work well. Hope you try the project!
Thank you so much for the update. I have some poly so I will use that to seal mine 🙂 Happy holidays to you and yours!


Recently the organization Hope and Healing through Science used candy experiments as part of their ongoing series of science lessons with hospitalized children at Duke and UNC Children's Hospitals. Looks like they all had a great time!
You can read about their candy experiments, as well as other fun science projects they've done, at their blog.


Retired from acting, Gene Hackman has scripted a second act for himself as a novelist. Taylor Antrim speaks to the Hollywood legend about Obama, Hemingway, and doing pushups on set.
You know him as Popeye Doyle, Lex Luthor, and Royal Tenenbaum, but these days two-time Oscar-winning actor Gene Hackman has retired from acting and taken on a new role: historical novelist. He and fellow Santa Fean Daniel Lenihan have written three works of fiction, and their latest, Escape From Andersonville is a rousing, old-fashioned Civil War adventure. Packed with carefully researched historical detail, the novel paints a portrait of a horrific Confederate prison camp in Georgia at the end of the Civil War. Hackman told The Daily Beast about sparring with Civil War re-enactors on his book tour, how he nearly adapted Silence of the Lambs for the big screen, and why he gave up acting for writing.
How do two people go about writing a book?
It's a strange process, in a way. We never actually sit down and write together. We meet once or sometimes twice a week and communicate by phone and email. We decide which point of view one of us will undertake before we start, we do a very sketchy outline and write separate chapters. It doesn't always work quite as cleanly as I make it sound, but that's the general idea.
I write in the morning from about eight till noon, and sometimes again a bit in the afternoon. In the morning I start off by going over what I had done the previous day, which my wife has happily typed up for me. I write longhand, stream of consciousness style. I find if I try to hone it as I go I lose my train of thought.
You're at it every day?
Six days a week is my limit. My wife and I take what we call our Friday comedy day off. We watch standup comics on TV. The raunchier the better. We love Eddie Izzard.
She's pretty much my only reader. She's highly educated and very good at asking questions.
Your novel describes the horrific conditions at the Confederate prison camp in Andersonville, Georgia—a notorious piece of Civil War history many of us might not know too much about.
When you first read the history, you think, this couldn't happen in the United States. We're a civilized country. We couldn't do that. Thirty some thousand men in 20 acres without any formal shelter—no barracks, no medical supplies and very little food. It was bad. It was very bad.
But you don't demonize the South. In fact, you write from the point of view of a Confederate officer-turned-smuggler named Marcel LaFarge—one of the most winning characters in the novel.
I liked the idea that he was from the South and yet he was somewhat of a free spirit, and a really flawed character. I suppose a lot of what you write are things that you've either thought or done, or wish you'd done. I left home when I was 16 and for all the reasons that kids leave home at that age. I guess I was a bit rebellious. I kind of like that in people—that they have a personality that's not totally developed by authority figures.
Has writing about the Civil War provoked any thoughts about the country's current political divisions? Think there's anything we can learn from our own history?
You'd think so, wouldn't you? We came through that process and managed to mend a good portion of fences that were destroyed. I'm concerned about what's going on now. People are so divisive; it's really ugly. In the House gathering where you saw pictures of Obama as a tribal leader of an African nation? I don't know—I'm disappointed in people's reaction to our new president.
Did you harbor ambitions to write throughout your acting career?
Is it a novel we would have heard of?
Yeah, Silence of the Lambs. I got busy with another film and gave the rights back to—Orion, I think it was. Kind of a dumb move as it turned out.
What's easier, acting or writing?
In terms of the stress there's just no comparison. For me, at least, writing a novel is a great pleasure. There is stress but it's a different kind of stress: more mental than physical. In a film you're working nights and 16-hour days. Here I am saying poor me, when I've been paid pretty well for that work, but it's a fact. It doesn't matter how much you're being paid. At my age I just feel I don't want to do that any longer. So, the writing is really a godsend.
Any parallels between the two?
Sure. One of the processes I always go through when I start to read a script for a movie is I ask myself some simple questions: Where are you going? Where have you been? What do you want? Starting there in writing a novel seems to help a great deal. If I know what a character wants and something about his background and where he's going, I can proceed. The kind of films that work best are where there's a lot of conflict and a lot of back and forth between two strong characters. It's similar to writing in that the result becomes a process of how much conflict one can deal with in the course of a chapter or, in the case of a movie, in the course of five minutes of a long complicated scene. That part of the film business is very attractive to me. You're using all your skills and physically you have to have a great deal of energy. Some actors will pump themselves up with pushups or running in place and straight into a quiet dinner scene. That bubbling energy inside permeates the process.
No. I walked around a lot especially if it was a quiet scene. I didn't want to get trapped into something coming out that wasn't full of intent.
Writing is a much more solitary activity than acting, no?
That is a difference and sometimes that's good, sometimes bad. But I'm someone who needs a lot of concentration in films. I got to the point where I wouldn't be affected by all the banging and clashing and whispering that goes on on a film set. Sometimes when I'm writing I'll just sit there and do what we used to call in acting class a sensitive moment. I go through a process of asking myself what do I have on and how does it feel around my neck and what am I looking at. I find that works for me to personalize the process.
How about reading? What books do you look to for inspiration?
I've always been a great admirer of Hemingway. For Whom the Bell Tolls, I suppose, would be one of my favorites. Something about his style I like: It's sparse and yet very performative.
What's next for you? Another historical novel?
Dan and I have ceased to write together—but not because of any kind of heavy argument. Dan has gone off to do some nonfiction work, and I'm kind of noodling around on my own. I'm 300 pages into a novel that takes place in 1895 in New Mexico and Colorado. I'm calling it The Destiny at Morning Peak.
Taylor Antrim is a critic for The Daily Beast and the author of the novel, The Headmaster Ritual.


Desert or Arabic influenced drone with it's wodden flute melody. The track introduces some hand drums later on which really pulls an ethnic flavour into the mix. Great for arid desolate landscapes.
This song is available in the Soundscapes - Desert Ambience bundle.


text:
Family Policy Alliance Launches After Roe Campaign, Prepares for Pro-Life Battlefield in the States
BREAKING: Biden Administration Recklessly Allows Women to Receive Harmful, Life-Threatening Abortion Pills By Mail
Supreme Court Allows Pro-Life Texas Law to Stand
The Court rejected multiple challenges, including one from the Biden Administration
Washington, DC – The U.S. Supreme Court has chosen not to strike down the Texas Heartbeat Law, a law that has saved thousands of lives by preventing abortions if the baby has a detectable heartbeat.
Family Policy Alliance responded to the news with the following statement from Nicole Hudgens, Government Affairs for Family Policy Alliance:
"Today, the Court has ensured that more Texas children will have the chance to celebrate a birthday. We celebrate today's victory with our friends in Texas, and eagerly await the day when every child across America has a chance to celebrate a birthday."
By dismissing the Biden-Harris administration's attack on preborn children – and the attacks of many others – the Court has sent a clear signal that life is winning. But this is only the beginning. In 2022, the Court is expected to rule on a case that has the potential to unravel the dark reign of Roe v. Wade. Even as we await that decision, and as other challenges to the Texas law work through the legal system, we are already working for a nation after Roe.
Robert Noland, (719) 308-2822, Media@FamilyPolicyAlliance.com
Family Policy Alliance works advances biblical citizenship and promote good public policy that protects religious freedom, families, and life.
Here's the Way Forward After Roe Is Overturned
FPA to Biden Administration: Follow the Law & Honor Basic Human Dignity


The US dollar advanced across the board on Tuesday recouping losses suffered through last weeks close and Monday's open. Recent trade tensions have heightened concerns the FOMC and Federal Reserve may be forced to temper the pace of monetary policy tightening, but comments from Federal Reserve Chairman Jerome Powell helped moderate the growing disquiet.
Powell's Senate address hit on a continued expectation for US Growth and a stronger economy while downplaying the expected effect of recent trade hostilities on Fed plans for monetary policy. Mainly dismissing suggestions the trade war will dent domestic growth Powell has left the door open for a possible two additional rate hikes this year driving the dollar to highs just below the 12-month peak. Powell's comments were viewed as hawkish for the US economy, and the greenback found further footing against its G10 counterparts. However, the current trade dispute will continue to weigh on investors conscious and likely temper aggressive upside moves, at least into late August when the newly announced 10% tariffs on 200bn in Chinese exports are introduced.
The loonie could not hold the gains that saw the USDCAD trading to a new weekly low of 1.3113 and closed the session down 0.50% versus the USD, at 1.3196. USD broad strength following the upbeat economic message from FED Chairman Jerome Powell to the Senate weighted on the loonie despite a very strong Canadian Manufacturing sales number of +1.4% (versus +0.4 % expected). USDCAD broke temporarily above the 1.32 resistance level, reaching a new weekly high of 1.3217 before settling back below 1.32 to close the NA session.
The Canadian economic calendar is light today. At 10:30 we will see the report on the US Energy Information Association's crude oil stockpiles which are expected at -3.5 million. Gold has fallen 0.18% to 1225.00 a troy ounce, while copper has also fallen 0.30% to 2.73 a pound.
Short-term support/resistance levels for USDCAD sit now at 1.3157 and 1.3245 respectively.
The Euro closed the session 0.40% down versus the USD, just above the support level of 1.1660. The common currency was able to temporarily break the 1.17 resistance level, reaching a new weekly high at 1.1740 but then markets turned their attention to FED Chairman Testimony at the Senate.
Jerome Powell delivered an upbeat assessment of the US economy, signaling that gradual rate rises are the best way "for now" given the "encouraging" inflation numbers. USD dollar rallied following a spike in US 2YR yields, and EURUSD dropped to a new weekly low of 1.1648, from where it rebounded to close at 1.1661.
The pound fell after CPI inflationary figures missed expectations slightly across all readings, the pound has regained some of its losses to start the NA session. Theresa May faced questions from Tory MPs over Brexit at the Liaison Committee of select committee chairs, so further sterling volatility is a risk.
US Dollar strength was again the main narrative that drove the Aussie's fortunes in overnight trading. Back below the key support of 0.74, the Australian Dollar changes hands this morning at 0.7384. It wasn't an entirely negative day for the Aussie however, which saw early gains to the 0.7440 level during the Asian session.
The catalyst for the swift reversal of direction was Federal Reserve Chair Powell who was decidedly hawkish in his semi-annual testimony to the Senate. Of note was Chair Powell's stated intention to continue with the gradual rate rise path "for now." Against the backdrop of geopolitical tensions and trade disputes the market appreciated the positive take on the health of the US economy and immediately responded. The Greenback surged against its counterparts and saw the Aussie forced lower. The Australia Dollar now treads water at 0.7385, a key support level.
Looking forward, the Aussie has little to digest on the domestic economic calendar and will again turn offshore for direction. Of particular interest to the currency pair is a number of data releases in the US as well as another testimony from Fed Chair Powell. The British also release their essential inflation figures later in the evening.
The New Zealand Dollar saw modest moves over the past twenty-four hours despite squaring off positions this morning from yesterday's open of 0.6775 against the US Dollar. There was little reaction to the latest release of NZ Inflation figures for the quarter which came in at 0.4% and just below forecast while the annualized inflation reading dipped to 1.5%. The Kiwi saw little movements despite a quick dip lower on the initial release to 0.6760 before rebounding back as housing pricing saw a 0.9% rise and the primary driver of the quarterly reading.
Overnight the Kiwi bolted through the 0.68 handle to an intraday high of 0.6840 following the release of the RBNZ sectoral factor model – a measure of inflation showing an actual rise of inflation for the June quarter of 1.7% and the fastest pace since 2011.
Broad US Dollar strength and another weak Global Dairy Trade auction pulled the New Zealand Dollar lower as global dairy prices dropped for the fourth time in a row in auctions early this morning with the index showing a contrary reading of 1.7%. The New Zealand Dollar opens this morning at 0.6780.


text:
News, Culture & Society
Contact Us Follow Us on Facebook
Browse Categories Business & Finance (2,600) CNN news (4) Entertainment (624) Health (19,485) Magazine (9,471) News (271,312) Science & Technology (4,313) ShowBiz & TV (2,541) Sports (8,462) Travel (3,407)
U.S. states plan to sue Facebook next week – sources
More than 40 states are investigating Facebook for antitrust violations and plan to sue Zuckerberg's company next week
The group of US states is led by New York is planning to file a lawsuit next week
Complaint would be second major lawsuit against a Big Tech company this year
The Justice Department sued Alphabet Inc's Google in October
Facebook have been accused of buying small potential rivals at a premium
Published: 23:23 GMT, 2 December 2020 | Updated: 01:30 GMT, 3 December 2020
A group of U.S. states led by New York is investigating Facebook for possible antitrust violations and plans to file a lawsuit against the social media giant next week, four sources familiar with the matter said on Wednesday.
The complaint would be the second major lawsuit filed against a Big Tech company this year. The Justice Department sued Alphabet Inc's Google in October.
More than 40 states plan to sign on to the lawsuit, one source said, without naming them.
Facebook declined to comment.
A group of U.S. states led by New York is investigating Facebook for possible antitrust violations and plans to file a lawsuit against the social media giant next week, four sources familiar with the matter said on Wednesday
The Federal Trade Commission, whose commissioners met on Wednesday, could file a related complaint with an administrative law judge or in district court.
It is not known what the states plan to include in their complaint.
One allegation often made against Facebook is that it has strategically sought to buy small potential rivals, often at a big premium.
These include Instagram in 2012 and WhatsApp in 2014.
More to follow
A protester outside of Mark Zuckerberg's home urging Facebook to stop the spread of disinformation
Read more at DailyMail.co.uk
Would you hire someone to do your homework?
Would you do my homework for me?
How much time will take to do my homework?
Elsa Pataky can barely contain her ample assets while filming flirty beach scene January 20, 2021
Aldi Australia re-launches its famous Lou Laguiole cutlery and knife sets January 20, 2021
Western Australia's Covid-19 border ban fuels calls for separation from the nation January 20, 2021
Donald Trump has 'discussed forming a new political party called the Patriot Party' January 20, 2021
Rihanna steps out for dinner at celeb-friendly Emilio's Ballato in NYC January 20, 2021
Former personal trainer Madeleine Campbell turned heroin addict admits to stealing to fund habit January 20, 2021
Reece James slammed by Jamie Redknapp for forgetting 'the basics of football' in Chelsea loss January 20, 2021
Maddison insists Leicester will continue to do their 'business in the background' of title rivals January 20, 2021
Millions could enjoy HUGE easing of coronavirus restrictions as NSW records zero new Covid cases January 20, 2021
US passes 400K COVID deaths on Trump's final full day as President January 20, 2021
EXPRESS DIGEST
Express Digest is a news & information website publishing an extensive collection of the latest news & trending links on the web.
Get access to daily news, politics, business, finance, science, technology, sport, travel, and much more.
Bookmark this site and connect with us on social media to stay up-to-date on what's happening in the world around you.
This website does not host any text, images, or audio content. The owners have not uploaded any of the media to the hosting servers. All media is hosted elsewhere and sourced from third-party websites such as BBC, CNN, Reuters, DailyMail, NYtimes, Wikipedia, YouTube, etc.
The content published on this site can be found on several other websites. This site, therefore, has no control over the copyrights and streaming of any media. Any queries or concerns regarding copyright violations should be directed to the website(s) hosting the material in question.
Contact us for more information or advertising
ExpressDigest 2016-2021


Anakin Skywalker actors Hayden Christensen and Matt Lanter recently snapped a photo together at this year's Star Wars Celebration.
Star Wars Celebration 2019 is coming to an end this weekend but fans have gotten plenty of exciting news over these last few days. Thanks to a recent social media post by Matt Lanter, fans can see one more exciting sight from the Star Wars event, and that's the actor alongside fellow Anakin Skywalker alumni, Hayden Christensen.
Matt Lanter has voiced Anakin Skywalker in various forms, from video games to TV shows, since 2008. Most famously, the actor plays Anakin Skywalker in the beloved animated series Star Wars: The Clone Wars. While attending Star Wars Celebration this weekend, Matt Lanter took to Twitter to show fans a picture of himself with Hayden Christensen, along with a hilarious caption that Star Wars fans are sure to love.
Check out the photo of the two Anakin Skywalker actors in the post below.
Before Matt Lanter's time as Anakin Skywalker, Hayden Christensen played the character in two films, 2002's Attack of the Clones and 2005's Revenge of the Sith. Hayden Christensen wasn't the first actor to bring Anakin to the big screen before his time as Darth Vader though. In 1999's The Phantom Menace, Jake Lloyd played a younger version of the character.
We'll be sure to keep you updated on all news regarding the Star Wars franchise as soon as more information becomes available. Are you a fan of Matt Lanter and Hayden Christensen as Anakin? Let us know your thoughts in the comments below!
Love them both. The training Hayden did for the lightsaber battles was insane. Wish there were more movies in the prequels era.


Living a healthy, real food lifestyle doesn't mean you have to miss out on all the wonderful flavors in life! As a busy mama of three, I focus on a variety of quick and easy real food drinks that kids and adults will love. We've got everything from cherry limeades to beet kvass to hot buttered rum.
Browse through all beverage recipes in chronological order below or select a recipe subcategory in the drop down menu.


1. Telling untruths – Be honest about your skills, achievements & work history. A lot of people also lie about their age. Lots of times, lies and exaggerations will come back to you when employers do background checks. Sometimes an interviewer can tell just by looking at your academic record. Ensure you stick to the truth.
2. Listing irrelevant work experiences: Emphasize the relevant experience for the job you are applying for and stay focused. Listing everything you have done in your work-life might end up shooting you in the foot, as it will give an impression of a lack of career focus.
3. Copying and pasting job responsibilities from the internet: Employers can actually visit Google if they want to see job responsibilities. Employers want to see more of your exact experience on that job, and your achievement in that role.
4. Over the top designs: CV's should be easy to open and view. Avoid pictures, use a common font and don't get too creative with borders. Keep things simple.
5. Using an informal email address: The right email address can boost your professionalism. Avoid using email addresses such as sexyk@yahoo.com, temptress@gmail.com or fighterguy@hotmail.com. Use your name and avoid using nick names.
Other tips on sending applications.
Always take time to customize your CV for every application. Ensure you take a few minutes to carefully read and edit your CV before you send it.
Avoid 'mistakenly' presenting the resume you customized for company A to company B.
Avoid spelling and grammatical errors. This mistake sends a very unprofessional message. Infact, it communicates incompetence for the role being applied for.
Avoid short cuts like the ones used in text messages or social media, like "UR" and "U". It gives an unserious impression about you.
We hope these few pointers will help our readers send better applications, thus create more opportunities for selection.


text:
TODAY.AZ / SEO & E-Marketing
Azerbaijan-Russia relations a major factor of stability in region
02 October 2014 [14:27] - TODAY.AZ
As strategic partners, Azerbaijan and Russia are developing the relations in various fields, Chairperson of the Russian Council of the Federation (upper house of the parliament) Valentina Matviyenko told reporters in Baku Oct. 2.
"This was possible through the efforts of the leaders of the two countries," she said.
Matviyenko is participating in the International Humanitarian Forum which opened in Baku Oct. 2.
"The Azerbaijani and Russian presidents have very trusting and constructive relations," she said. "They have met this year, and such breakthroughs achieved during the Caspian summit is a result of effective cooperation between Russia and Azerbaijan."
She said that the current level of the two countries' relations is a major factor of stability in the region.
"Our positions on most international and regional problems are either similar or coincide," she said. "We are also very actively cooperating with Azerbaijan in the United Nations, other international venues, as well as through the parliaments."
The International Humanitarian Forum in Baku will last from Oct. 2-3. Within the framework of the forum, tours to the country's districts, namely Nakhchivan, Lankaran, Quba and Qabala will be organized on Oct. 4-5.
Well-known politicians, representatives of the socio-political circles, scholars and figures of culture are also participating in the forum.
/Trend/
URL: http://www.today.az/news/seo/136810.html
12 June 2018 [17:29]
Azerbaijan Teacher Development Centre accredited as Cambridge Professional Development Centre
Low water lever observed in Kura River
Azerbaijani, Vietnamese First Ladies tour Baku
31 March 2015 [09:59]
President Ilham Aliyev reviewed the progress of construction at the Baku White City boulevard
02 October 2014 [14:27]
25 December 2012 [10:07]
First residents will settle in Khazar Islands in 2014
02 April 2012 [11:42]
Euronest PA opens Baku session
10 November 2011 [19:23]
Google may penalize ad heavy pages
Define your objective before you build links
10 marketing tips that will Improve your website conversions


This week I've been making and listing some more of my pear ornaments, including some new colours. These make beautiful decorations for autumn and winter, either on a twig tree or a Christmas tree.
I'm excited to launch something I've had on my 'to do' list for quite a while: a partridge in a pear tree crochet pattern!
Scroll down for links to the pattern!
Today I'm publishing a new crochet pattern that is really timely for the upcoming season.
My Christmas Ornament Crochet Pattern is easy to work, but can be made with multiple variations for the central contrasting design, so it can be customised to create exactly the look you want.
I've been re-stocking – reforesting? – my shop with my miniature Christmas trees over the weekend.
Yes, I know it seems terribly early, but I sold three within minutes of posting about them, so people are obviously already on the look out for their Christmas ornaments!
More new additions to my shop this week!
These little Christmas trees are now rivalling my pinecones as my favourite things to make. It's far too early for a real Christmas trees (we're a week-before-Christmas family) but I've had such a lot of fun decorating these tiny treasures.


Business security starts at your business' entrance. Whether it be an alarm system or a video surveillance system, having a monitored front entrance is the best way to safeguard your business. Total Security understands this and has been helping companies across Long Island, New York City and New Jersey to keep their buildings and stores safe. With over 15 years of experience, our support staff is standing by ready to help you determine the best security system for your business.
It may sound obvious, but many business owners forgo this security feature because they assume they don't really need one. This is an expensive and sometimes dangerous mistake and every business should have one installed at every entrance. Surveillance cameras should be installed at varying angles near your building's entrance so they can capture who is coming and going. These cameras will enable to you also keep an eye out for any suspicious activity and with mobile monitoring you will be to check-in on your business anytime, from anywhere.
Alarm systems help keep your entrances secure and are a great way to deter would-be intruders and burglars especially during non-business hours. With a commercial alarm system in place, you will immediately be alerted to any alarm disruptions should someone try to break-in and will emit an audible alert. The most effective alarms are linked to a monitoring center, which causes a trigger that connect you to an operator who will be able to dispatch emergency services on your business' behalf.
An access control system is a great to access to designated areas. They provide employees access to building entrances or other employee-only areas keeping unauthorized individuals out of restricted areas. Access control systems include things like intercom systems which are great for office buildings and apartment buildings and card access systems. Access control systems also enables employers to monitor employee comings and goings providing them with an extra layer of security.
Biometric locks are another form of an access control system that allow employers to create time sensitive points of entry that coordinate with employee shifts. They utilize traits like fingerprints which are next to impossible to steal or fake and cannot be easily duplicated.
Finally, your business' digital entrances' network security is just as important as the physical entrance security to your business. Upping your network security helps to keep hackers from entering your business' network. Some good practices in this area include creating strong passwords, routinely updating network firewalls and educating your employees to recognize phishing schemes.
Total Security has over 15 years of experience in installing security systems and providing surveillance and alarms services and other security products to commercial businesses on Long Island, NYC and New Jersey.  Contact us today to learn more about our home and business security services.  Call our support staff at (516) 775-2304 (New York location)  or (201) 594-7233 (New Jersey location).


text:
Q: I could not send the mail by using the attachement in magento? I had created the dropdown list with fields Lab,Pharmacy,Food and Nurse.When I select the lab it generates the new fields and when I select the pharmacy it generates the new field with upload button.I need to send the mail with these details for lab and pharmacy.
By using below mail function I can send only for lab but when I select pharmacy I could not send any mail.Please help me
<?php

$connectionresource = Mage::getSingleton('core/resource');
$readconnection = $connectionresource->getConnection('core_read');
if ($_POST['servicetype'] == 'Lab') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.islab=?', '1'
    );
} else if ($_POST['servicetype'] == 'Pharmacy') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.ishospital=?', '1'
    );
} else if ($_POST['servicetype'] == 'Gym') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.isgym=?', '1'
    );
} else if ($_POST['servicetype'] == 'Food') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.isfood=?', '1'
    );
} else if ($_POST['servicetype'] == 'Nurse') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.nurse=?', '1'
    );
} else if ($_POST['servicetype'] == 'Physio') {
    $allrecord = $readconnection->select()->from(array('serviceprovider' => 'mg_serviceprovider'))->where('serviceprovider.physio=?', '1'
    );
}
$alldata = $readconnection->fetchAll($allrecord);
foreach ($alldata as $data) {
    sendMailserviceAction($data['email'], $data['name']);
}

function sendMailserviceAction($email, $pname) {
    //Mage::getModel('sales/order')->load(24999);
    //$location=$_POST['location'];
    $servicetype = $_POST['servicetype'];
    $cemail = $_POST['labemail'];
    $cemail = $_POST['pemail'];
    $cemail = $_POST['femail'];

    if ($_POST['servicetype'] == 'Lab') {
        $cemail = $_POST['labemail'];
        $servicetype = $_POST['servicetype'];
        $testname = $_POST['testname'];
        $name = $_POST['name'];
        $mobile = $_POST['labmobile'];
        $city = $_POST['rcity'];
        $zipcode = $_POST['labzip_code'];
        $html = '

Service Type: ' . $servicetype . '

Testname:' . $testname . '

Name: ' . $name . '

Email : ' . $cemail . '

Mobile Number: ' . $mobile . '

City:' . $city . '

Zip Code:' . $zipcode . '
';
    } else if ($_POST['servicetype'] == 'Pharmacy') {
        $name = $_POST['pname'];
        $medicine = $_POST['medicinename'];
        $cemail = $_POST['pemail'];
        $mobile = $_POST['pmobile'];
        $city = $_POST['pcity'];
        $zipcode = $_POST['pzip_code'];
        $html = '
Service Type:' . $servicetype . '

 Medicine name: ' . $medicine . '

Name:' . $name . '

 Email: ' . $cemail . '

Mobile number: ' . $mobile . '

City:' . $city . '

Zip Code:' . $zipcode . '
';
    } else if ($_POST['servicetype'] == 'Gym') {
        $name = $_POST['fname'];
        $mobile = $_POST['fmobile'];
        $cemail = $_POST['femail'];
        $city = $_POST['fcity'];
        $zipcode = $_POST['fzip_code'];
        $html = '

Service Type:' . $servicetype . '

Name: ' . $name . '

Email : ' . $cemail . '

Mobile number: ' . $mobile . '

City:' . $city . '

Zip Code:' . $zipcode . '
';
    } else if ($_POST['servicetype'] == 'Food') {
        $name = $_POST['fname'];
        $cemail = $_POST['femail'];
        $mobile = $_POST['fmobile'];
        $city = $_POST['fcity'];
        $zipcode = $_POST['fzip_code'];

        $html = '

Service Type:' . $servicetype . '

Name: ' . $name . '

Email : ' . $cemail . '

Mobile number: ' . $mobile . '

City:' . $city . '

Zip Code:' . $zipcode . '
';
    }
    if (!empty($_FILES["fileToUpload"]["name"]) and $_POST['servicetype'] == 'Pharmacy') {

        $image_ext = end(explode('.', $_FILES["fileToUpload"]["name"]));
        $allowed_ext = array('gif', 'png', 'jpg', 'jpeg', 'pdf', 'doc', 'docx', 'rtf', 'odt');

        $uploadfilename = md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1, 100) . rand(1, 100))) . str_replace(" ", "_", $_FILES["fileToUpload"]["name"]);
        $source_upl = $_FILES["fileToUpload"]["tmp_name"];
        $target_path_upl = Mage::getBaseDir('media') . DS . 'requestquote' . DS . $uploadfilename;
        if (in_array($image_ext, $allowed_ext)) {
            @move_uploaded_file($source_upl, $target_path_upl);
        }
    }

    $mail = new Zend_Mail();
    $mail->setFrom('admin@labwise.in', "Labwise");

    $mail->addTo($email, $pname);

    $mail->setSubject('Quick Service');
    $mail->setBodyHtml($html);
    if (file_exists(Mage::getBaseDir('media') . DS . 'requestquote' . DS . $uploadfilename)) {

        $attachment = file_get_contents(Mage::getBaseDir('media') . DS . 'requestquote' . DS . $uploadfilename);
        $ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
        $file = new Zend_Mime_Part($attachment);
        $file->filename = $uploadfilename;
        $file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
        $file->encoding = Zend_Mime::ENCODING_BASE64;
        $mail->addAttachment($file);
    }

    try {
        $mail->send();

        return '
 Email Sent.
';
    } catch (Exception $e) {

        return '
Unable to submit.
';
    }
}

echo sendMailserviceAction();
?>

A: try that for sending the email just change the model and attachment code
  $mail = new Zend_Mail();
$mail->setFrom('admin@labwise.in',"Labwise");

$mail->addTo($cemail,$pname);

$mail->setSubject('Blood Donor');
$mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename) )
    {

      $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
$ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
$file = new Zend_Mime_Part($attachment);
$file->filename    = $uploadfilename;
$file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$file->encoding = Zend_Mime::ENCODING_BASE64;
$mail->addAttachment($file);
    }

$mail->send();

new and tested code
leave the html before as it is
if( !empty($_FILES["fileToUpload"]["name"])  and $_POST['servicetype']=='Pharmacy')
        {

            $image_ext = end(explode('.',$_FILES["fileToUpload"]["name"]));
            $allowed_ext =  array('gif','png' ,'jpg','jpeg','pdf','doc','docx','rtf','odt');

            $uploadfilename = md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,100).rand(1,100))).str_replace(" ","_",$_FILES["fileToUpload"]["name"]);
             $source_upl         = $_FILES["fileToUpload"]["tmp_name"];
            $target_path_upl = Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename;
            if(in_array($image_ext ,$allowed_ext ) ) {
                @move_uploaded_file($source_upl, $target_path_upl);
            }
        }

        $mail = new Zend_Mail();
$mail->setFrom('admin@labwise.in',"Labwise");

$mail->addTo($ssemail,$pname);

$mail->setSubject('Blood Donor');
$mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename) )
    {

      $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
$ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
$file = new Zend_Mime_Part($attachment);
$file->filename    = $uploadfilename;
$file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$file->encoding = Zend_Mime::ENCODING_BASE64;
$mail->addAttachment($file);
    }

$mail->send();

with your code
<?php
      function sendMailAction(){
       //Mage::getModel('sales/order')->load(24999);
        $servicetype=$_POST['servicetype'];

          if($_POST['servicetype']=='Lab'){
          $name=$_POST['name'];
            $servicetype=$_POST['servicetype'];
          $testname=$_POST['testname'];
          $email=$_POST['labemail'];
             $mobile=$_POST['labmobile'];
           $city=$_POST['rcity'];$zipcode=$_POST['labzip_code'];
        $html=
        '
Service Type: '.$servicetype.'

Testname: '.$testname.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'

        ';
          }
            else if($_POST['servicetype']=='Pharmacy')
          {

     $name=$_POST['pname'];
     $medicine=$_POST['medicinename'];
     $email=$_POST['pemail'];
     $city=$_POST['pcity'];
     $mobile=$_POST['pmobile'];
        $city=$_POST['pcity'];$zipcode=$_POST['pzip_code'];
     $html=
    '
Service Type:'.$servicetype.'

Medicinename: '.$medicine.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';

     }
     else if($_POST['servicetype']=='Food')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
     $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
    '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }

      else if($_POST['servicetype']=='Gym')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
      $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
     $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }
        else if($_POST['servicetype']=='Physio')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
      $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
      $html=
      $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
       }
       else if($_POST['servicetype']=='Nurse')
     {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
        $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
      $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }
    if( !empty($_FILES["fileToUpload"]["name"])  and $_POST['servicetype']=='Pharmacy')
        {

            $image_ext = end(explode('.',$_FILES["fileToUpload"]["name"]));
            $allowed_ext =  array('gif','png' ,'jpg','jpeg','pdf','doc','docx','rtf','odt');

            $uploadfilename = md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,100).rand(1,100))).str_replace(" ","_",$_FILES["fileToUpload"]["name"]);
             $source_upl         = $_FILES["fileToUpload"]["tmp_name"];
            $target_path_upl = Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename;
            if(in_array($image_ext ,$allowed_ext ) ) {
                @move_uploaded_file($source_upl, $target_path_upl);
            }
        }

        $mail = new Zend_Mail();
$mail->setFrom('admin@labwise.in',"Labwise");

$mail->addTo($email,$pname);

$mail->setSubject('Blood Donor');
$mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename) )
    {

      $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
$ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
$file = new Zend_Mime_Part($attachment);
$file->filename    = $uploadfilename;
$file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$file->encoding = Zend_Mime::ENCODING_BASE64;
$mail->addAttachment($file);
    }

try {
 $mail->send();

return '
 Email Sent.
';

  }
  catch (Exception $e) {

      return '
Unable to submit.
';

  }

        }

      echo sendMailAction();
       ?>

for service provider
    <?php
  $connectionresource = Mage::getSingleton('core/resource');
    $readconnection = $connectionresource->getConnection('core_read');
     if($_POST['servicetype']=='Lab')
     {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.islab=?', '1'
      );
     } else  if($_POST['servicetype']=='Pharmacy')
     {
       $allrecord =$rea  connection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.ishospital=?', '1'
      );
      }else  if($_POST['servicetype']=='Gym')
    {
       $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.isgym=?', '1'
      );
     }else  if($_POST['servicetype']=='Food')
      {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.isfood=?', '1'
      );
       }else  if($_POST['servicetype']=='Nurse')
   {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.nurse=?', '1'
      );
     }else  if($_POST['servicetype']=='Physio')
   {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.physio=?', '1'
      );
   }
      $alldata =$readconnection->fetchAll($allrecord);
     foreach($alldata as $data)
     {
          sendMailserviceAction($data['email'],$data['name']);
     }

     function sendMailserviceAction($ccemail,$pname){
 //Mage::getModel('sales/order')->load(24999);

 //$location=$_POST['location'];
$servicetype=$_POST['servicetype'];
$cemail=$_POST['labemail'];
$cemail=$_POST['pemail'];
$cemail=$_POST['femail'];

 if($_POST['servicetype']=='Lab')
{
$cemail=$_POST['labemail'];
$servicetype=$_POST['servicetype'];
$testname=$_POST['testname'];
$name=$_POST['name'];
$mobile=$_POST['labmobile'];
$city=$_POST['rcity'];$zipcode=$_POST['labzip_code'];
   $html ='

Service Type: '.$servicetype.'

Testname:'.$testname.'

Name: '.$name.'

Email : '.$cemail.'

Mobile Number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';

  }else if($_POST['servicetype']=='Pharmacy')
 {
 $name=$_POST['pname'];
 $medicine=$_POST['medicinename'];
 $cemail=$_POST['pemail'];
 $mobile=$_POST['pmobile'];
  $city=$_POST['pcity'];$zipcode=$_POST['pzip_code'];
   $html ='
Service Type:'.$servicetype.'

 Medicine name: '.$medicine.'

Name:'.$name.'

 Email: '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
 }
else if($_POST['servicetype']=='Gym')
{
$name=$_POST['fname'];
$mobile=$_POST['fmobile'];
 $cemail=$_POST['femail'];
 $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
$html ='

Service Type:'.$servicetype.'

Name: '.$name.'

Email : '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
}
else if($_POST['servicetype']=='Food')
{
$name=$_POST['fname'];
$cemail=$_POST['femail'];
$mobile=$_POST['fmobile'];
$city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];

 $html ='

Service Type:'.$servicetype.'

Name: '.$name.'

Email : '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
}
 if( !empty($_FILES["fileToUpload"]["name"])  and   $_POST['servicetype']=='Pharmacy')
    {

        $image_ext = end(explode('.',$_FILES["fileToUpload"]["name"]));
        $allowed_ext =  array('gif','png' ,'jpg','jpeg','pdf','doc','docx','rtf','odt');

        $uploadfilename = md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,100).rand(1,100))).str_replace(" ","_",$_FILES["fileToUpload"]["name"]);
         $source_upl         = $_FILES["fileToUpload"]["tmp_name"];
        $target_path_upl = Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename;
        if(in_array($image_ext ,$allowed_ext ) ) {
            @move_uploaded_file($source_upl, $target_path_upl);
        }
    }

    $mail = new Zend_Mail();
      $mail->setFrom('admin@labwise.in',"Labwise");

  $mail->addTo($ccemail,$pname);

  $mail->setSubject('Quick Service');
    $mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename        ) )
   {

     $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
    $ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
   $file = new Zend_Mime_Part($attachment);
  $file->filename    = $uploadfilename;
  $file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
   $file->encoding = Zend_Mime::ENCODING_BASE64;
    $mail->addAttachment($file);
 }

try {
 $mail->send();

return '
 Email Sent.
';

  }
  catch (Exception $e) {

  return '
Unable to submit.
';

 }

    }

   echo sendMailserviceAction();
   ?>

A: this is tested code all email are working without any error.
<?php

 if( !empty($_FILES["fileToUpload"]["name"])  and $_POST['servicetype']=='Pharmacy')
        {

            $image_ext = end(explode('.',$_FILES["fileToUpload"]["name"]));
            $allowed_ext =  array('gif','png' ,'jpg','jpeg','pdf','doc','docx','rtf','odt');

            $uploadfilename = md5(substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, rand(1,100).rand(1,100))).str_replace(" ","_",$_FILES["fileToUpload"]["name"]);
             $source_upl         = $_FILES["fileToUpload"]["tmp_name"];
            $target_path_upl = Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename;
            if(in_array($image_ext ,$allowed_ext ) ) {
                @move_uploaded_file($source_upl, $target_path_upl);
            }
        }
      function sendMailAction($uploadfilename){
       //Mage::getModel('sales/order')->load(24999);
        $servicetype=$_POST['servicetype'];

          if($_POST['servicetype']=='Lab'){
          $name=$_POST['name'];
            $servicetype=$_POST['servicetype'];
          $testname=$_POST['testname'];
          $email=$_POST['labemail'];
             $mobile=$_POST['labmobile'];
           $city=$_POST['rcity'];$zipcode=$_POST['labzip_code'];
        $html=
        '
Service Type: '.$servicetype.'

Testname: '.$testname.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'

        ';
          }
            else if($_POST['servicetype']=='Pharmacy')
          {

     $name=$_POST['pname'];
     $medicine=$_POST['medicinename'];
     $email=$_POST['pemail'];
     $city=$_POST['pcity'];
     $mobile=$_POST['pmobile'];
        $city=$_POST['pcity'];$zipcode=$_POST['pzip_code'];
     $html=
    '
Service Type:'.$servicetype.'

Medicinename: '.$medicine.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';

     }
     else if($_POST['servicetype']=='Food')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
     $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
    '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }

      else if($_POST['servicetype']=='Gym')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
      $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
     $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }
        else if($_POST['servicetype']=='Physio')
      {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
      $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
      $html=
      $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
       }
       else if($_POST['servicetype']=='Nurse')
     {
     $name=$_POST['fname'];
     $email=$_POST['femail'];
     $mobile=$_POST['fmobile'];
        $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
     $html=
      $html=
      '
Service Type: '.$servicetype.'

Name: '.$name.'

Email:'.$email.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
     }

        $mail = new Zend_Mail();
$mail->setFrom('admin@labwise.in',"Labwise");

$mail->addTo($email,$name);

$mail->setSubject('Quick Service');
$mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename) )
    {

      $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
$ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
$file = new Zend_Mime_Part($attachment);
$file->filename    = $uploadfilename;
$file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$file->encoding = Zend_Mime::ENCODING_BASE64;
$mail->addAttachment($file);
    }

 $mail->send();

 }

//Customer mail
  function sendMailcustomerAction(){
//Mage::getModel('sales/order')->load(24999);

if($_POST['servicetype']=='Lab'){
 $name=$_POST['name'];
 $servicetype=$_POST['servicetype'];
 $email=$_POST['labemail'];
 $testname=$_POST['testname'];
  $html=

  'Dear '.$name.',

We have received your order for '.$testname.'. You will be attended shortly.

Best Regards,

Team Labwise.
';
}
else if($_POST['servicetype']=='Pharmacy')
{ $name=$_POST['pname'];
   $email=$_POST['pemail'];
   $medicine=$_POST['medicinename'];
  $html=

  'Dear '.$name.',

We have received your order for '.$medicine.'. You will be attended shortly.

Best Regards,

Team Labwise.
';

}

else if($_POST['servicetype']=='Food')
 {
   $name=$_POST['fname'];
   $email=$_POST['femail'];
   $html=
 'Dear '.$name.',

We have received your order. You will be attended shortly.

Best Regards,

Team Labwise.
';
 }
 else if($_POST['servicetype']=='Gym')
 {
   $name=$_POST['fname'];
   $email=$_POST['femail'];
   $html=
 'Dear '.$name.',

We have received your order. You will be attended shortly.

Best Regards,

Team Labwise.
';
 }
 else if($_POST['servicetype']=='Physio')
 {
   $name=$_POST['fname'];
   $email=$_POST['femail'];
   $html=
 'Dear '.$name.',

We have received your order. You will be attended shortly.

Best Regards,

Team Labwise.
';
 }
 else if($_POST['servicetype']=='Nurse')
 {
   $name=$_POST['fname'];
   $email=$_POST['femail'];
   $html=
 'Dear '.$name.',

We have received your order. You will be attended shortly.

Best Regards,

Team Labwise.
';
 }

  $mail = Mage::getModel('core/email');
  $mail->setToName($name);
  $mail->setToEmail($email);
  $mail->setBody($html);
  $mail->setSubject('Quick Service');
  $mail->setFromEmail('admin@labwise.in');
  $mail->setFromName("Labwise");
//$mail->addBcc("contact@labwise.in");
  $mail->setType('html');// YOu can use Html or text as Mail format

   try {
       $mail->send();
     //Mage::getSingleton('core/session')->addSuccess('Your Order is    successfully Completed');
     //Mage::app()->getResponse()->setRedirect(Mage::getBaseUrl());
       return '
Your Request has been submitted.Thank you for using labwise.
';
     //$this->_redirect('');
       }
       catch (Exception $e) {
     //Mage::getSingleton('core/session')->addError('Unable to send.');
     //Mage::app()->getResponse()->setRedirect(Mage::getBaseUrl());
       return '
Unable to submit.
';
     //$this->_redirect('');
       }
}

  $connectionresource = Mage::getSingleton('core/resource');
    $readconnection = $connectionresource->getConnection('core_read');
     if($_POST['servicetype']=='Lab')
     {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.islab=?', '1'
      );
     } else  if($_POST['servicetype']=='Pharmacy')
     {
       $allrecord =$reaconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.ishospital=?', '1'
      );
      }else  if($_POST['servicetype']=='Gym')
    {
       $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.isgym=?', '1'
      );
     }else  if($_POST['servicetype']=='Food')
      {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.isfood=?', '1'
      );
       }else  if($_POST['servicetype']=='Nurse')
   {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.nurse=?', '1'
      );
     }else  if($_POST['servicetype']=='Physio')
   {
    $allrecord =$readconnection->select()->from(array('serviceprovider'=>'mg_serviceprovider'))->where('serviceprovider.physio=?', '1'
      );
   }
      $alldata =$readconnection->fetchAll($allrecord);
     foreach($alldata as $data)
     {
          sendMailserviceAction($data['email'],$data['name']);
     }

     function sendMailserviceAction($ccemail,$pname,$uploadfilename){
 //Mage::getModel('sales/order')->load(24999);

 //$location=$_POST['location'];
$servicetype=$_POST['servicetype'];
$cemail=$_POST['labemail'];
$cemail=$_POST['pemail'];
$cemail=$_POST['femail'];

 if($_POST['servicetype']=='Lab')
{
$cemail=$_POST['labemail'];
$servicetype=$_POST['servicetype'];
$testname=$_POST['testname'];
$name=$_POST['name'];
$mobile=$_POST['labmobile'];
$city=$_POST['rcity'];$zipcode=$_POST['labzip_code'];
   $html ='

Service Type: '.$servicetype.'

Testname:'.$testname.'

Name: '.$name.'

Email : '.$cemail.'

Mobile Number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';

  }else if($_POST['servicetype']=='Pharmacy')
 {
 $name=$_POST['pname'];
 $medicine=$_POST['medicinename'];
 $cemail=$_POST['pemail'];
 $mobile=$_POST['pmobile'];
  $city=$_POST['pcity'];$zipcode=$_POST['pzip_code'];
   $html ='
Service Type:'.$servicetype.'

 Medicine name: '.$medicine.'

Name:'.$name.'

 Email: '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
 }
else if($_POST['servicetype']=='Gym')
{
$name=$_POST['fname'];
$mobile=$_POST['fmobile'];
 $cemail=$_POST['femail'];
 $city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];
$html ='

Service Type:'.$servicetype.'

Name: '.$name.'

Email : '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
}
else if($_POST['servicetype']=='Food')
{
$name=$_POST['fname'];
$cemail=$_POST['femail'];
$mobile=$_POST['fmobile'];
$city=$_POST['fcity'];$zipcode=$_POST['fzip_code'];

 $html ='

Service Type:'.$servicetype.'

Name: '.$name.'

Email : '.$cemail.'

Mobile number: '.$mobile.'

City:'.$city.'

Zip Code:'.$zipcode.'
';
}

    $mail = new Zend_Mail();
      $mail->setFrom('admin@labwise.in',"Labwise");

  $mail->addTo($ccemail,$pname);

  $mail->setSubject('Quick Service');
    $mail->setBodyHtml($html);
if(file_exists(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename        ) )
   {

     $attachment = file_get_contents(Mage::getBaseDir('media').DS.'requestquote'.DS.$uploadfilename);
    $ext = pathinfo($uploadfilename, PATHINFO_EXTENSION);
   $file = new Zend_Mime_Part($attachment);
  $file->filename    = $uploadfilename;
  $file->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
   $file->encoding = Zend_Mime::ENCODING_BASE64;
    $mail->addAttachment($file);
 }

try {
 $mail->send();

return '
 Email Sent.
';

  }
  catch (Exception $e) {

  return '
Unable to submit.
';

 }

    }
   ?>

A: This code is Working for me try this le me know if you have any query
            $mailTemplate = Mage::getModel('core/email_template');
            /* @var $mailTemplate Mage_Core_Model_Email_Template */
            // file attached
            if($post['file']){
                $destination_path = Mage::getBaseDir('media'). DS .'uploads'.DS.$post['file'];
                $mailTemplate->getMail()->createAttachment(
                          file_get_contents($destination_path),
                          Zend_Mime::TYPE_OCTETSTREAM,
                          Zend_Mime::DISPOSITION_ATTACHMENT,
                          Zend_Mime::ENCODING_BASE64,
                          $post['file']
                );
            }
            // after file attached
            $mailTemplate->setDesignConfig(array('area' => 'frontend'))
                ->setReplyTo($post['email'])
                ->sendTransactional(
                    Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE),
                    Mage::getStoreConfig(self::XML_PATH_EMAIL_SENDER),
                    Mage::getStoreConfig(self::XML_PATH_EMAIL_RECIPIENT),
                    null,
                    array('data' => $postObject)
                );
            if (!$mailTemplate->getSentSuccess()) {
                throw new Exception();
            }


text:
Support OpEdNews
Sign-in/Submit
OpEdNews Op Eds 9/28/2008 at 00:21:20
Straight Talk on the Financial Crisis
By Douglas Drenkow (Page 1 of 4 pages) (View How Many People Read This) No comments
The current financial crisis is indeed grave, having resulted in the nation's largest bank failure (Washington Mutual) and taken down the nation's largest insurance company (AIG) and mortgage holders (Fannie Mae and Freddie Mac) as well as three of the top investment houses (Bear Stearns, Lehman Bros., and Merrill Lynch) and threatening countless more failures both here and abroad -- in particular, there are hundreds of trillions of dollars tied up in bad securities in the interconnected international finance system; and most disturbingly, no one knows how much they are really worth, since no one wants to buy them. The credit system has frozen up; and without free-flowing credit, businesses go out of business.
Because this crisis is threatening the existence of banks and businesses it is threatening the life savings and jobs of millions of people in the United States and abroad. It is not an exaggeration for this to be called by so many the gravest financial crisis since the Great Depression.
And the causes of the current problem are much the same as those of the Great Depression. As my late father had been saying since the Reagan administration, as more and more of the New Deal safeguards set up under FDR and the Democratic Congress in the '30s were being torn down, we ran more and more risk of having a big financial collapse, as he lived through, in desperate conditions, during the Depression. So it's worth our while to look back briefly and see what worked and what went terribly wrong.
In the Roaring Twenties, the Republicans, under Presidents Harding, Coolidge, and Hoover, deregulated business. Although the economy did roar for a while, it eventually went bust, as the stock market crashed and banks and businesses failed, wiping out life savings and throwing millions of people out of work. Republican fixes did little if anything to help. The people demanded new leadership.
FDR and the Democrats in Congress instituted reforms with the New Deal, including regulations that saved the American banking system and, thus, American capitalism. Key among these regulations was the Glass-Steagall Act (which we're hearing a lot of these days) ...
http://en.wikipedia.org/wiki/Glass-Steagall_Act
... which established the Federal Deposit Insurance Corporation (The FDIC, which so many of us rely upon to safeguard our money) and also provisions that gave the Federal Reserve oversight authority over savings accounts and also a prohibition over bank holding companies owning other financial institutions (so too many eggs wouldn't be in too few baskets, many of which had just gone bust).
The New Deal reforms became an accepted part of American financial life for decades. In the post-War years, for the first time in history -- which had had many depressions, although none so "great" as that in the '30s -- Americans came to think of money in the bank as safe and secure as "money in the bank."
Perhaps we grew complacent or just wanted to take more risk or were just hoodwinked, but big money interests -- who never wanted so much government control over their business -- eventually convinced voters and their elected representatives that the New Deal regulations were just too restrictive. Starting in the 1980s, the New Deal regulations over the financial industry were dismantled ... ultimately with disastrous consequences.
In 1980 the Depository Institutions Deregulation and Monetary Control Act was enacted, loosening up some federal controls over savings and loans.
In 1982 the Garn-St. Germain Depository Institutions Act was enacted, deregulating the Savings and Loan industry ...
http://en.wikipedia.org/wiki/Garn-St._Germain_Depository_Institutions_Act
By the late 1980s, ravaged by excesses and greed -- sometimes criminally fraudulent (as with the Keating Five scandal, involving five senators, including Sen. John McCain) but often just the consequence of inadequate regulation -- the Savings and Loan industry crashed, bringing on the recession that would hurt millions of Americans and put the first Pres. Bush out of office. If the S&L industry were to have collapsed further it would have done even worse damage to the economy as a whole, so the taxpayers bailed out the S&Ls, at a cost of over $100 billion.
But somehow deregulation continued to be a popular theme. The mantra was still as Reagan had proclaimed in his first inaugural address: "The government is not the solution to our problem; government is the problem."
Replacing Geo. H. W. Bush was Bill Clinton, who "felt our pain" but -- as a "New Democrat," a "centrist" -- continued to advance the cause of deregulation; and in that, he found plenty of allies in both parties. The huge campaign contributions that the financial industry lavished upon politicians in both political parties undoubtedly had much to do with bipartisan support for deregulation; but also, increasing prosperity -- as the business cycle turned and tax dollars were redistributed by the Democratic president and Congress from the wealthy into the hands of the growing middle class -- convinced all-too-many Americans to "drink the Kool Aid" of deregulation.
And like the deregulation of the electricity market here in California, which had bipartisan support, other deregulation schemes from that era would blow up in everyone's faces and cost hundreds of billions of dollars (and counting).
Next Page 1 | 2 | 3 | 4
Rate It | View Ratings
Douglas Drenkow Social Media Pages:
Doug Drenkow is a writer, editor, webmaster, and producer. A fourth-generation Democrat, Doug has produced the political talk shows "Barry Gordon From Left Field," on radio, and "NewsRap with Barry Gordon," on cable TV, featuring top (more...)
Related Topic(s): Banking Crisis; Credit Crisis; Crisis; McCain-John; Mortgage Crisis; People_Barak_Obama; Phil Gramm; Ronald Reagan, Add Tags
Add to My Group(s)
Go To Commenting
The views expressed herein are the sole responsibility of the author and do not necessarily reflect those of this website or its editors.
Contact Author Contact Editor View Authors' Articles
OpEdNews depends upon can't survive without your help.
If you value this article and the work of OpEdNews, please either Donate or Purchase a premium membership.
If you've enjoyed this, sign up for our daily or weekly newsletter to get lots of great progressive content.
Daily Weekly OpEdNews Newsletter
(Opens new browser window)
Most Popular Articles by this Author: (View All Most Popular Articles by this Author)
The Insurance Companies' "License to Kill": ERISA
"DON'T TREAD ON ME"!
$#@&!
Pres. Obama: An Inspired and Inspiring Nobel Peace Prize Choice
To View Comments or Join the Conversation:
Congress Switchboard: 202-224-3121
"Rob Kall has been the center of a vast, decentralized conversation for years, letting us hear in interviewees' own words the power of connection in every realm. His new book brings it all together, showing us that the old order is broken and fast being replaced from the bottom up. The old power elite may not know it yet, but millions of us -- organizers, artists, thinkers and doers -- have gotten the message. So should you, by reading Bottom-Up."
Arlene Goldbard, author of The Culture of Possibility: Art, Artists & The Future
Ad info: click here
in the Last 2 Days
(by Page Views)
A Story of Self Destruction - Top-Down Democrats by Michele Goddard (With membership, you can see # of pageviews)
Bernie Lands Major Nevada Endorsement: the 19,000-member Clark County Educational Association by Stephen Fox (With membership, you can see # of pageviews)
Bernie's Co-Chair Nina Turner: While Sanders has always stood up for African Americans, Biden has repeatedly let us down by Stephen Fox (With membership, you can see # of pageviews)
Big Pharma Won't Let Us Import Medicine From Canada, But Insists on Sending Carcinogen-Contaminated Pills to the Public by Thom Hartmann (With membership, you can see # of pageviews)
Study Shows Even $1 Minimum Wage Increase Reduces Suicides by Ted Millar (With membership, you can see # of pageviews)
The Extraordinary (For Bernie Sanders) Latest Politico/Morning Consult Tracking Poll by Jerry Policoff (With membership, you can see # of pageviews)
The international witch-hunt of Julian Assange by Eric London (With membership, you can see # of pageviews)
It Is Remarkable -- and Dangerous -- How Little Scrutiny Biden Has Received for Supporting Iraq War by Sam Husseini (With membership, you can see # of pageviews)
New York City Prepares Nuclear Option by David Swanson (With membership, you can see # of pageviews)
The Great Satanic Panic by James Haught (With membership, you can see # of pageviews)
CNN found the backup audio of Warren / Sanders' tense exchange at the Democratic Debate by Egberto Willies (With membership, you can see # of pageviews)
Is Pelosi preparing to drop a bombshell on the Senate impeachment trial? by Michael Payne (With membership, you can see # of pageviews)
Trump is the kid caught with his hand in the cookie jar by Robert Reich (With membership, you can see # of pageviews)
Mixok in Laos by Linh Dinh (With membership, you can see # of pageviews)
Bernie Sanders Won't Play Your Game by John Nichols (With membership, you can see # of pageviews)
Democracy take back: Our call to action by Tim Duff (With membership, you can see # of pageviews)
How Do Billionaires Make Money? By Having Money Already by Jim Hightower (With membership, you can see # of pageviews)
CNN's Sanders Hit Piece Doesn't Pass the Smell Test by Dave Lindorff (With membership, you can see # of pageviews)
Putin's Orthodox Christmas Visit to Damascus Plays Up Assad's Syria as Enclave of Peace While Rest of Middle East Burn by Scott Ritter (With membership, you can see # of pageviews)
Bernie's Endorsements~ the Rationales Behind Them; Meet Sanders' National Political Director Analilia Mejia by Stephen Fox (With membership, you can see # of pageviews)
The Real Cause of World War II: Allies Deception of Germany with the 1918 Armistice and the Subsequent Versailles Treaty by Paul Craig Roberts (With membership, you can see # of pageviews)
Fantasy of growing old by Gary Lindorff (With membership, you can see # of pageviews)
LAUSD Candidate Profile: Patricia Castellanos by Carl Petersen (With membership, you can see # of pageviews)
The "Holy" Hypocrites Among Us by Michael Roberts (With membership, you can see # of pageviews)
Two-and-a-Half Cheers for Elizabeth Warren's Student Debt Plan by Thomas Knapp (With membership, you can see # of pageviews)
Go To Top 50 Most Popular
Classics of Liberal Thinking
Progressive Radio Links


Gretchen Hall and Benjamin Pelteson co-star in "The Immigrant," which is at the George Street Playhouse in New Brunswick through April 7.
To say that you should see "The Immigrant" because it is relevant to the immigration debate that is currently such a big part of our national politics is doing it a disservice. You should see the play — which is at the George Street Playhouse in New Brunswick through April 7 — because it is an immensely powerful, universally profound work of art. The politics is just a small part of it.
In other words, this is a particularly good time to see "The Immigrant," because of its topical relevance. But any other time would be a good time, as well.
Actor and playwright Mark Harelik wrote "The Immigrant" in 1985, inspired by the experiences of his own grandfather. It was later made into a musical that ran off-Broadway and elsewhere, but George Street is presenting the original, non-musical version. The director is Jim Jack, who has recently helmed two similarly impressive plays at George Street ("My Name Is Asher Lev," in 2016, and "Trying," last year).
The play begins in 1909, with the harrowing journey of Haskell Harelik (Benjamin Pelteson) from Russia to the United States, where he has come to escape the danger of the pogroms. He arrives at the port city of Galveston, then settles in the Central Texas town of Hamilton. Supporting himself by selling bananas from a cart and speaking very little English, he is befriended by a Ima (Gretchen Hall), a housewife and devout, charitable Christian, and her somewhat reluctant husband, Milton (R. Ward Duffy). They agree to let him live with them until he's able to afford his own place.
Milton, a banker, soon sees an opportunity in the hard-working, thrifty Haskell, and becomes his business partner. He backs Haskell, financially, and encourages him to upgrade from a small cart of bananas to a large one full of fruits and vegetables, and then a store of his own.
Haskell encounters some prejudice (perhaps not enough, though, for "The Immigrant" to be realistic for this place and time). But he stays focused on his business, and becomes successful enough to have his wife, Leah (Lauriel Friedman), follow him to Hamilton, and they start a family of their own. While Haskell does not mind that they're the only Jewish family in Hamilton, Leah feels lost and alienated so far from their home and their community. But she eventually becomes more comfortable, and fluent in English; in one wonderful scene, she and Ima bond in the kitchen, comparing their traditions and laughing over their respective cultures' superstitions.
Haskell and Leah are living on their own, now. But they remain grateful to Milton and Ima, so much so that they name one of their three sons after Milton.
The play jumps ahead to the World War II era. Haskell and Leah are now prosperous, and proud that their thoroughly assimilated, twang-accented sons are soldiers. They feel a moral imperative to help Jews who weren't able escape oppression, as they did. Over a Sabbath dinner that they invite Milton and Ima to, Milton takes a more isolationist position, expressing some deeply rooted prejudices in the process.
Haskell, no longer the meek immigrant he once was, stands up to Milton, and they clash, and are unable to reconcile until years later, when the once-virile Milton has become old and feeble. For all their differences, they have been through a lot together, and have become a sort of extended family.
It's a wonderful, epic story. And, needless to say, a quintessentially American story. I highly recommend it.
"The Immigrant" is at the George Street Playhouse in New Brunswick through April 7. Visit georgestreetplayhouse.org.


text:
"I enjoy involving my patients in the decision-making process to design the best treatment plan for them."
TUPIS, TODD M
Coastal Orthopedics - Conway, SC
Hailing from Eldersburg, Maryland, Dr. Tupis made his way down the East Coast throughout his education, joining Coastal Orthopedics in 2012.
Dr. Tupis received his undergraduate degree in biological sciences from the University of Maryland, Baltimore County, after which, he went on to Philadelphia, Pennsylvania, to obtain his master's degree in medical science in 2002 and his medical degree in 2006 from Drexel University College of Medicine.
Following the completion of his medical degree, Dr. Tupis underwent a general surgery internship and his orthopedic surgery residency with Allegheny General Hospital in Pittsburgh, Pennsylvania, where he served as chief resident. He then completed his fellowship training in sports medicine at Orthopaedic Research of Virginia in Richmond, Virginia.
Dr. Tupis is certified by the American Board of Orthopaedic Surgery.
In his free time, Dr. Tupis enjoys golfing, running, playing guitar, and fishing, and enjoying time with his wife and family. Dr. Tupis is also a published author.
The University of Maryland Baltimore County, Baltimore, Maryland, 2000
Hahnemann University Hospital, Drexel University College of Medicine, Philadelphia, Pennsylvania, 2002
Drexel University College of Medicine, Philadelphia, Pennsylvania, 2006
Allegheny General Hospital, Pittsburgh, Pennsylvania, 2007
Residency, Orthopaedic Surgery
Fellowship, Sports Medicine
Orthopaedic Research of Virginia, Richmond, Virginia, 2012
American Board of Orthopaedic Surgery, 2014
The American Orthopaedic Society for Sports Medicine
Arthroscopy Association of North America
Conway Medical Center
Carolina Bone and Joint Surgery Center
Team Affiliations
Conway High School
Carolina Forest High School
Aynor High School
Green Sea Floyds High School
Shoulder arthroscopy
Elbow arthroscopy
Arthroscopic rotator cuff repair
Arthroscopic ACL reconstruction
Arthroscopic shoulder instability repair
Meniscus repair
Reverse total shoulder replacement
High tibial osteotomy


This category is for English language sites providing information about the people, places, arts, culture, businesses, services, and organizations specific to Bolivia. Informational sites about local weather, history, education, geography, government, and science are also welcome.
Other languages: Catalan, Czech, Danish, Dutch, French, German, Greek, Italian, Japanese, Korean, Polish, Romanian, Russian, Spanish, Swedish.