text:
Ben Bireley
Attorney Ben Bireley
Attorney Ben Bireley is a sharp, creative attorney with extensive experience representing both plaintiffs and defendants. Before joining Arnold & Itkin in 2016, he worked at a renowned commercial law firm in Houston. He represented plaintiffs and defendants in complex cases involving multiple parties, sharpening his litigation skills in a variety of high-stakes cases. He gained knowledge in effective defense, but also how to defeat strong defenses. At Arnold & Itkin, he uses his knowledge of the other side's tactics to fight for the results clients need.
His notable case history includes filing a claim against a national dialysis provider under the False Claims Act, filing breach of fiduciary claims against a worldwide palm-oil producer, and numerous high-stakes oil-and-gas contract issues. However, the case he is most proud of is his work in advocating for the Boys & Girls Harbor. The Harbor is a home for abused children, and they needed representation in a claim against the City of Morgan's Point. He obtained a multi-million dollar settlement for the Harbor, ensuring their needs were met.
Ben joined Arnold & Itkin precisely because of cases like the Harbor's. He wanted to focus his practice on the injured and harmed—helping those hurt because companies prioritized profits over people. Like every attorney at Arnold & Itkin, Ben fights relentlessly for his clients' best outcome no matter how difficult the situation they're facing might be. Ben's job is to change lives for the better. It shows in his dedication to clients.
Prior to beginning his private practice, Ben was a law clerk for the Honorable Lee H. Rosenthal in the Southern District of Texas—one of the most renowned trial judges in the nation. He graduated from the University of Texas School of Law in the top 10% of his class, serving as the Chief Articles Editor for the widely-known Texas Law Review.
Before pursuing law, Ben was a teacher at Jesuit College Preparatory School in Dallas and earned a Work of the Heart Award before enrolling in law school. Ben attended Boston College for his undergraduate, where he was a part of the prestigious Boston College debate team. He graduated with honors in 2005.
When not preparing cases, Ben spends time with his wife and three daughters. He attends St. Vincent de Paul Catholic Church in Houston. He is also an avid (albeit declining) basketball player and enjoys spending time by the ocean.
University of Texas School of Law
Super Lawyers® Rising Stars℠ (2019-2022)
Top 40 Under 40 by The National Trial Lawyers (2019-2020)
10 Best Attorneys by American Institute of Personal Injury Attorneys (2017-2018)
Top 10 Plaintiff's Personal Injury Attorney by Attorney & Practice Magazine (2018)
Expert Network Distinguished© Lawyer
Fellow - Texas Bar Foundation
Premier Attorney - National Academy of Jurisprudence
Ben Bireley's Case Results
$17M Recovered for Victim of Oil Well Blowout
Attorneys Jason Itkin, Noah Wexler, and Ben Bireley represented a man who lost his leg following an oil well blowout in Pecos, TX. We took on the case and, despite the involved companies denying all liability, successfully defeated all of their arguments. In the end, we reached a $17 million settlement.
Attorney's fees and expenses totaled $8,065,398.14.
$8.385 Million Settlement for Family of Man Killed by Off-Duty Drunk Driver
Attorneys Noah Wexler and Ben Bireley represented the son, mother, and estate of a young father who was killed when an off-duty employee drove a company truck while drunk. There were numerous challenges in this case. It is rare for a company to be held liable for the actions of an off-duty employee but even rarer for them to be held liable when that off-duty employee breaks the law. Despite this, our team took on the case and were able to find numerous instances that proved the company should have taken the company vehicle away from the driver. In the end, the company paid nearly every penny available of its insurance funds.
$8 Million Settlement Secured for Family of Apartment Drowning Victim
Attorneys Noah Wexler and Ben Bireley recovered $8 million against an apartment complex owner and operator for their failure to abide by pool safety regulations. The defendant in this case owned and operated a pool that didn't have a functional gate, which is required by both local and state regulations. As a result, our clients lost their child in a drowning accident; to add insult to injury, the defendant blamed our clients for their son's death to avoid liability. Noah Wexler's experience with apartment pool cases equipped our team to aggressively investigate what really happened, uncover the apartment owner's negligence, and compel them to settle with our client. In the wake of such a devastating loss, our firm is proud to have secured some justice for our clients.
$6.975 Million Recovered After Drowning in Community Pool
Attorneys Noah Wexler and Ben Bireley recovered $6.975 million on behalf of a family following a tragic drowning in a community pool. Despite the tragic incident, the pool owner refused to take any responsibility for what had occurred and even argued that Texas law limited their liability. We took them to court, but the trial was stopped after just two days due to the pandemic. The defendants settled the evening before the trial was set to start again—for nearly twice what they had argued were their liability limits.
$6.9 Million Settlement Obtained for Family of Perished Offshore Worker
Attorneys Kurt Arnold, Jason Itkin, Cory Itkin, and Ben Bireley settled a case for a record sum on behalf of a grieving family. Our clients lost their loved one in an offshore incident due to negligence, but the defendant offered them a shockingly low sum as compensation. They then pressured the family into accepting the settlement offer through the use of arcane legal maneuvers and 100-year-old, outdated laws. By persevering through their shallow tactics, our team was able to secure $6.9 million for the family's future security and stability—many times more than the defendant's original offer. Arnold & Itkin is proud of this result, and even prouder that our client received the compensation their situation demanded.
$6.7 Million Settlement for Injured Tankerman
Jason Itkin, Noah Wexler, and Ben Bireley represented a man who was working on a dock in Donaldsonville, Louisiana as a tankerman. Our client fell and sustained serious injuries to his legs, back, and neck that required surgery and left him permanently disabled. Initially, the defendant attempted to blame our client for the accident. Our team refused to let them treat him this way and was able to negotiate a settlement while the case was pending in Louisiana State Court.
$6.6 Million Settlement Achieved for Grieving Widow & Family of Offshore Accident Victim
Our firm was proud to secure a multimillion-dollar settlement for the family of a deceased offshore worker. Attorneys Kurt Arnold, Jason Itkin, Cory Itkin, and Ben Bireley represented the widow of an vessel worker who died due to alleged negligence. Our client wanted an attorney who would be able to do justice on behalf of her late husband, and her extensive search led to Arnold & Itkin. Shortly after receiving the call, Kurt Arnold flew out to speak with the family personally. After meeting, we immediately filed the case to put the pressure back on the defendant. Despite multiple legal obstacles, our team eventually negotiated a $6.6 million settlement—a sizable award that will help our client gain closure, grieve in peace, and secure a financially stable future.
$6.25 Million for Oilfield Service Worker with Mangled Hand
Attorneys Noah Wexler and Ben Bireley successfully recovered $6.25 million on behalf of an oilfield service worker whose hand was crushed after a hydraulic grease pump was unexpectedly activated. Despite the severity of his injuries, the defendants (the owner-operator of the drilling location and the pump's manufacturer) tried to blame our client and his direct employer. We were not deterred and cut through their excuses, bringing in necessary experts. In the end, we reached a favorable settlement on his behalf.
$6.1 Million Settlement Secured for Widow of Deceased Offshore Worker
Attorneys at Arnold & Itkin secured a settlement of $6.1 million for a woman who lost her husband in an incident offshore. Before she called us, she was being relentlessly hit with call after call from the defendants, government officials, and other people looking out for their own interests. The defendant attempted to pressure her into settling for an extremely small amount, despite the circumstances of her husband's death. When she contacted our firm, Kurt Arnold immediately flew out to speak with her personally. By fighting back against the defendant and relentlessly pursuing justice on our client's behalf, we secured a settlement that is 12 times larger than the original settlement offer.
$5.7 Million Recovered for Man Injured on Oil Platform
Attorneys Noah M. Wexler and Ben Bireley represented an oil platform worker who was seriously injured while working in the Gulf of Mexico. Our client had spent months trying to settle his own claim before turning to our firm for help. Once we got involved, the situation quickly changed. A two-year litigation battle followed in which we successfully exposed numerous safety failures, making it clear that a jury would find the oil company responsible for our client's injury. In the end, the company settled for $5.7 million.
$5.5 Million Obtained for Contractor with Severe Crush Injury
Attorneys Noah Wexler and Ben Bireley secured a $5.5 million settlement for our client, an Alabama man who was injured while working in Texas. Because his employer failed to put basic safety procedures in place, our client suffered severe crush injuries to his non-dominant arm. Despite lacking lockout/tagout procedures and a job safety analysis, the employer blamed our client for his injuries, saying that it was his fault for being in the wrong place. However, our questioning of the defendant's own witnesses revealed the truth. This settlement ensures that our client will get the medical treatment and financial security he deserves. The case was pending in Harris County, Texas.
$4.7 Million Recovered for Man Injured by Falling Steel Beam
Attorneys Noah Wexler and Ben Bireley recovered $4.7 million on behalf of a client catastrophically injured after a steel beam fell on his legs. The defendant in the case attempted to settle but never made an offer that would fairly compensate our client, so we continued to prepare the case for trial. We took more than 15 depositions and collected thousands of pages of evidence. Then, just days before the trial was set to begin, the defendants folded and made a settlement offer than was five times the original amounts offered.
$4.25 Million Settlement for Fatal Oilfield Accident
Attorneys Noah Wexler and Ben Bireley took on a case involving an oilfield hand who lost his life in an on-the-job accident, helping his family find justice. Through vital depositions that disproved the defense's claims that our client was responsible for his own death, our attorneys were able to win a $4.25 million settlement on the family's behalf.
$3 Million Acquired for Injured Apprentice Electrician
Attorneys Noah Wexler and Noah Bireley achieved a $3 million settlement for a contractor who suffered serious burn injuries onsite at an industrial plant. The owner tried to blame our client, who was working as an electrician, for the burns he sustained. However, Noah and Ben found that the plant owner broke its own rules when it authorized our client's work in the first place.
$2.875M Settlement for Seriously Injured Worker
Our law firm represented a worker who suffered serious crush injuries to both his arm and his hand. Attorneys Jason Itkin, Noah Wexler, Ben Bireley, and Rebecca Adam took on the case, beating back the claims of the defendant who denied that the incident ever occurred. The defendant refused to take any responsibility. Despite this, we were successful in reaching a major settlement, recovering $2.875 million for our client.
$2.6 Million Settlement Reached for West Texas Oilfield Worker
Attorneys Noah Wexler and Ben Bireley won $2.6 million for a West Texas oilfield services employee who was seriously injured when he was violently knocked off a trailer bed when a drilling rig came loose during transfer. Our client ultimately needed knee and back surgeries to recover from his injuries. Although the defendant tried to blame our client for being in the wrong place, and pointing to his age rather than their negligence, our attorneys were able to get the defendant's own witnesses to disagree with the "corporate story" and share the truth.
$2.5 Million Won for Offshore Worker with Torn Achilles
Attorneys Noah Wexler and Ben Bireley recovered $2.5 million on behalf of an offshore worker who tore his Achilles tendon while attempting to move heavy equipment without appropriate assistance. His injury resulted in him needing multiple surgeries, which also meant he could not continue working offshore. Despite the severity of his injuries, the companies denied all liability and attempted to pin the blame on our client. Our firm took on the case and was successfully able to reach a settlement to take care of our client for life.
$2.35 Million Won for Son Who Lost His Father
Attorneys Ben Bireley and Noah Wexler achieved a $2.35 million settlement for a son who lost his father due to his employer's actions. This was a hard-won case which required numerous depositions before the facts revealed themselves and Arnold & Itkin was able to prove that a third party was directly involved in the incident, and that our client's father was not to blame for his own death.
$2.25 Million Recovered for Seaman Who Fell Through Grate
Attorneys Noah Wexler and Ben Bireley secured a settlement of $2.25 million for an offshore worker who fell through a manhole grate while at sea. The defendants not only claimed it wasn't their fault, but they claimed that the injuries weren't caused by the accident at all. Our firm immediately got to work litigating the case, eventually forcing the defendant to offer our client what he needed for his injuries.
$2.1 Million Secured for Truck Accident Victim
Attorneys Noah Wexler and Ben Bireley won $2.1 million for a commercial driver who was seriously injured when he was ejected from his 18-wheeler. Our client sustained neck injuries which required emergency surgery.
Attorney's fees and expenses totaled $880,155.91.
$1.985 Million Won for Oilfield Worker Injured in Car Accident
Attorneys Noah Wexler and Ben Bireley won $1.985 million for an oilfield worker who was taken out of the workforce due to his injuries after a commercial vehicle rear-ended him and a coworker in Nueces County, Texas. This collision aggravated our client's back conditions and caused significant head injuries and, because he was the sole breadwinner for his young family, including a disabled child, put an entire family at risk. Arnold & Itkin stood up to the defendant, aggressively pursuing them even when they tried to avoid showing up in court. Finally, the defendant agreed to pay the entirety of its insurance policy for the damage they caused.
$1.8 Million Settlement Recovered for Victim of Faulty Winch
$1.7 Million Recovered for Injured Mechanic
Attorneys Ben Bireley and Joseph McGowin represented a mechanic who had his foot run over with a forklift while working at a trailer-assembly plant owned and operated by Load Trial. The incident resulted in our client's foot breaking and prior back issues being aggravated. The company did not subscribe to a workers' compensation program, meaning we could sue directly. Despite our client's injuries, they hoped they could minimize exposure and responsibility by enforcing its arbitration agreement. They did not attempt to make any meaningful settlement offer. So we took them to trial, and after a four-day hearing, we recovered $1.7 million.
$1.75 Million Secured for Injured Oilfield Worker
Attorneys Noah Wexler and Ben Bireley achieved a settlement for an oilfield hand who suffered head, neck, and back injuries at an oilfield in North Texas when a pressure hose came loose from its stakes. Although the operator claimed that its company man didn't control our client's work, and tried to blame him for his own injuries, Noah and Ben were able to disprove these claims. Instead, they proved that it was the poor leadership, job planning, and equipment on site that led to the incident.
$1.525 Million Recovered for Injured Dive-Support Vessel Deckhand
Attorneys Noah Wexler, Ben Bireley, and Samantha Demuren recovered $1.525 million, as well as payment of medical expenses, for an offshore worker whose back was blown out while working on a dive-support vessel. The injuries were extensive, requiring not only back surgery shortly after returning to shore, but years of treatment. Despite this, our client's employer attempted to short circuit the necessary treatment and blamed the injury on degenerative changes. We took on the case and are proud of the result we achieved.
$1.5 Million Recovery for Injured Offshore Platform Crane Operator
Our firm represented a crane operator who seriously injured his neck while lifting a compressor head, requiring a multi-level cervical fusion to treat. The incident occurred at a Louisiana offshore platform. Attorney Ben Bireley took on the case, effectively disproving the defendant's claims that our client had no grounds to sue because he was the company's "borrowed servant" and that the incident had been our client's fault. The case was won by defeating the defendant's argument and obtaining testimony from one of the defendant's witnesses that showed the company's liability. The resulting $1.5 million settlement has given this injured crane operator a sense of stability once again.
$1.5 Million Won for Family of Worker Fatally Struck by Equipment
Attorneys Jason Itkin, Noah Wexler, and Ben Bireley helped a family get answers and see justice served after they lost a loved one in a workplace accident. The incident involved a man who was struck in the head by a dangerous piece of equipment; the injury claimed his life. Upon taking on the case, our attorneys were able to prove that the defendants knew of the dangerous condition and failed to prevent this senseless tragedy.
$1.5 Million Recovered for Severely Burned Client
A young truck driver was seriously burned when a faulty piece of equipment ignited fumes in a nearby tank at a land-based natural gas facility. He suffered burns to his face, neck, and shoulder, requiring extensive medical treatment. He came to Arnold & Itkin for help, and Attorneys Noah Wexler and Ben Bireley took on the case. The defendants tried to lay the blame for the incident on our client and his co-worker, saying they caused the explosion, but we knew it was caused by faulty equipment. Our team fought for and won a $1,500,000 settlement for our client prior to trial. The case was pending in Baton Rouge, Louisiana.
$1.1 Million Settlement Secured for Victim of Massive Truck Accident
Attorneys Noah Wexler, Ben Bireley, and Rebecca Adams obtained a million-dollar settlement on behalf of our client—a survivor of a multi-vehicle crash that involved an 18-wheeler. Our client suffered serious injuries to his back and neck as a result, which kept him from earning a living. The defendant (the company who employed the truck driver) attempted to avoid responsibility by blaming the other drivers in the accident and by downplaying our client's injuries—injuries that required multiple operations. We continued working right up to the trial date to hold the company accountable. At the last minute, they chose to settle with our client rather than face a jury.
$1 Million Settlement for Seaman Injured in Slip & Fall Accident
Arnold & Itkin attorneys Noah Wexler and Ben Bireley represented a seaman who was seriously injured when he slipped and fell on the engine room floor of the dredging ship where he was working. An oily, muddy substance had been left on the floor of the engine room as a result of inadequate housekeeping by the prior hitch, and our client suffered such severe injuries that he required back and shoulder surgery. The defendant tried to prove that our client had invented the incident by lining up witnesses to support their claim, but during depositions, our attorneys brought the truth to light. Our expert witness also detailed the safety violations that contributed to the slip and fall accident. The incident occurred in the Gulf of Mexico, off the coast of Louisiana, and the case was pending in the 19th Judicial District Court for the Parish of East Baton Rouge. We secured a $1 million settlement for our client.
$975,000 Recovered for Injured Trucker
Attorneys Noah Wexler and Ben Bireley recovered a $975,000 settlement on behalf of a truck driver who was injured after another driver drove carelessly. This will help ensure that he has a stable future.
$895,000 Recovered for Injured Boat Captain
Arnold & Itkin took on a case for an injured tugboat captain and were able to settle just before the trial was set to begin, securing $895,000 on his behalf. Our client had injured his back while he was unloading materials from the tugboat at a shore side facility. He required extensive medical treatment, but the defendants tried to argue that he was to blame for his injuries. The defendants also claimed that his injuries were the result of a preexisting condition. Attorneys Noah Wexler and Ben Bireley fought to disprove these claims and ultimately secured a life-changing settlement for our client.
$800,000 Settlement for Injured Deckhand
Arnold & Itkin represented a young deckhand who was seriously injured after he was instructed to move a heavy gangway manually. As a point of reference, an aluminum gangway may weigh about 280 pounds. Our client suffered back injuries, and we filed a case in Baton Rouge state court against his employer. Initially, the defendants tried to blame the young man for his own injuries, but we fought these claims and secured an $800,000 settlement for our client.
$750,000 Settlement Obtained for 18-Wheeler Crash Survivor
Attorneys Ben Bireley and Noah Wexler secured a $750,000 settlement for a woman who was rear-ended by a commercial vehicle while traveling on I-45 south. Despite being a rear-end accident, the driver and his employer both denied liability for the woman's damages—which were significant. Thankfully, the company changed their tune when Arnold & Itkin started demanding answers. Now our client has the money she needs to get medical care and secure her future.
$650,000 Settlement for Client Injured by Parked Semi-Truck
Attorneys Noah Wexler and Ben Bireley represented a man who was injured because of an accident involving an 18-wheeler that was illegally parked. The semi-truck caused a preventable accident because of its failure to follow basic safety procedures while parking on the side of a road. The accident caused our client to sustain injuries to his head, neck, back, and other parts of his body. Our team was able to gather enough evidence to encourage the company to settle before the case went to trial.
$550,000 Recovered for Hurt Young Welder
Noah Wexler and Ben Bireley represented a young welder who suffered injuries from a dropped hammer while working. Our firm took on the case, facing a defendant who refused to acknowledge the damage caused by their negligence. We fought tirelessly to ensure that our client got the results that he truly deserved.
$550,000 Settlement Obtained for Jones Act Seaman with Injured Knee
Attorneys Noah Wexler and Ben Bireley recovered $550,000 for a Jones Act seaman who injured his knee in a crewboat accident. The defendants tried to dodge liability, but our investigation's findings forced them to settle with our client. He now has what he needs to repair the damage caused to him.
$550,000 for Injured Chemical Plant Worker
Attorneys Noah Wexler and Ben Bireley represented a chemical plant contract employee who was severely injured after a davit arm fell on him. We fought tirelessly to hold the defendants accountable for the dangerous procedure that endangered our client and were successful in reaching a favorable settlement on his behalf.
$525,000 Recovery for Man Injured in Collision with Mooring Buoy
In a case filed in East Baton Rouge, Louisiana, Attorneys Noah Wexler and Ben Bireley won a $525,000 settlement for a young man who experienced serious neck and back injuries when the vessel he was working on collided with a mooring buoy. The defendants tried to claim that the accident was our client's fault and that his injuries were not as severe as we indicated, when our client required extensive medical treatment. We uncovered evidence that supported our client's claim and ultimately held the defendants' accountable, resulting in a favorable outcome.
$500,000 Settlement Secured for Woman Paralyzed by Surgeon
Attorneys Noah Wexler and Ben Bireley have successfully resolved a medical malpractice claim on behalf of a woman who was left paralyzed by her neurosurgeon. Noah and Ben took key depositions of multiple individuals, which was followed by an offer from the insurance company to pay out the policy in full. Arnold & Itkin is honored to help the victims of medical malpractice move forward with their lives.
$500,000 Settlement for Injured Man Close to Retirement
Jason Itkin, Noah Wexler, and Ben Bireley represented a man who sustained serious injuries after being rear-ended by a semi-truck. The man was close to retirement but was forced to stop working because of the severity of his injuries. Our results enabled him to receive the medical care he needed while and enabled him to continue his path to retirement.
$485,000 Settlement Obtained for Offshore Mechanic
Attorneys Noah Wexler and Ben Bireley have secured $485,000 in a settlement for an injured offshore mechanic. Our client, an experienced platform employee, was injured during a swing-rope transfer to a crew ship. This settlement will provide our client with the medical and financial stability he needs to move forward.
$400,000 Settlement Obtained for Injured Seaman
Attorneys Noah Wexler and Ben Bireley successfully negotiated a settlement of $400,000 for a client who was injured offshore. Our client was an experienced and able-bodied seaman who was not given the tools he needed to do his job safely. As a result, he seriously injured his shoulder. Arnold & Itkin is proud to help this offshore worker get back on his feet.
$350,000 Hard-Won Settlement for Victim of Serious Injuries
Arnold & Itkin successfully represented a man who was harmed as he was stopped in traffic on his way home from work. An 18-wheeler collided into his vehicle, forcing both vehicles off the road and causing significant damage. Attorneys Noah Wexler, Ben Bireley, and Jake Balser took on the case. At first, the defendant tried to argue that there was a third, unknown vehicle that had caused the collision. The defendant also tried to claim that our client had not suffered severe injuries. We fought these claims and ultimately forced the company to pay $350,000 for the injuries and damage our client experienced.
$335,000 Settlement Secured for Forklift Driver
Attorneys Noah Wexler and Ben Bireley have settled an injury case for a forklift operator who was injured by a negligent trucking company. The defendant's employee pulled away while our client was still working in the truck, leading to his injuries. This settlement will make sure our client will have everything he needs while he recovers.
$225,000 Settlement Obtained for Worker Injured by Fall in Plant
Attorneys Noah Wexler and Ben Bireley secured a $250,000 settlement for a man who fell from a height while conducting turnaround operations. The defendant decided to settle with our client instead of facing him in court shortly after we started investigating the incident—namely, after we took depositions of key safety personnel. Arnold & Itkin will always stand up for workers who need help after suffering injuries in the workplace.
Meet the Maritime Lawyers at Arnold & Itkin
Kurt Arnold Founding Partner / Attorney
Jason Itkin Founding Partner / Attorney
Samuel Long Attorney
Logan Wexler Attorney
Claire Schindler Attorney
Trent Shelton Attorney
Samantha Demuren Attorney
Victoria Alford Attorney
Kala Sellers Of Counsel
Roland Christensen Attorney
Brian Christensen Attorney
Cory Itkin Attorney
John Grinnan Attorney
Michael Darling Attorney
Matthew McCune Attorney
Alec Paradowski Attorney
Noah Wexler Attorney
Cassidy Viser Attorney
RunZhi Lai Attorney
Brittany Clark Attorney
Roy Buckmaster Attorney
Andrew Gould Attorney
Caj Boatright Attorney
Tara Arnold Attorney
Trevor Courtney Attorney
Kyle Findley Attorney
Ali Poulson Attorney
Adam Lewis Attorney
Katelin Gines Attorney


THE next year (1890) I was elected delegate to Pittsburg, Penn., the conventions still being held annually. We went via Montgomery, Nashville, Bowling Green, and Cincinnati, after which a twelve-hour run carried us to our destination. There was one peculiarity about Pittsburg; it was nearly always raining, not hard rain usually, but a sufficient sprinkle to make it safest always to carry an umbrella on going out. Perhaps the dampness intensified the smoky haze which hung continually over the city. At all events, the dense, murky atmosphere at once proclaimed it a manufacturing place of much importance.
An interesting feature was the burning of natural gas for heating purposes, the grates being filled with round lumps of clay, which looked beautiful when the gas was turned on. A fire of this kind can very easily be kept at an even temperature.
Early on the morning of October 22d, we started on an excursion to Altoona. On the way we passed Johnstown, where so many lives were lost by the breaking of the reservoir dam. It is a place of some size, extending for quite a distance along the track, and though it had been rebuilt, traces of the wreck could be seen in many places.
It was barely noon when we arrived at Altoona, but we didn't get our dinner until two o'clock. Our party was estimated at a thousand, and a hundred of us dined at the Central Hotel, after which we started out to see the sights. We first walked to the top of Gospel Hill, where we had a fine view of the town. Some of our party were attracted towards a brewery near by, and seemed to enjoy the beer immensely, judging from the way they made it disappear. We next visited the Pennsylvania Railroad shops, where we saw a huge engine lifted by a crane and swung from one track to another. We also visited the old Westinghouse Air-Brake Manufactory operated by steam, and one of the most interesting sights I had seen up to that date. There were thirty-six air-pumps running at one time in the room where they were tested. These pumps are all built by piece work, and several men are employed, who do nothing but experiment for the air-brake system. The company had just completed their new building run by electricity, but had not transferred their materials. We returned to Pittsburg well pleased with our visit to Altoona. The convention closed October 31st, and we began our homeward trip over the Pan Handle Route, where we were forcibly reminded of travel in the Rockies, as the track faced every point of the compass as it forged its way through the Alleghany Mountains.
The Grand International Division next convened in Atlanta, Georgia, May, 1892. The change of seasons had been made because October was considered too cold in the majority of the cities where the conventions were apt to be held.
We were proud of our Southland on this occasion, for Atlanta entertained us royally. The convention hall and committee room were in the State Capitol, and accommodations were simply grand! By the way, we were complimented by the janitor on being such a sober body of men. There were two excursions offered us at one time; one to Chattanooga, Tenn., and the other to Brunswick, Ga. We decided in favor of the latter, but as the trip was made at night, and there was such a crowd on the excursion train and no berths could be secured for sleeping, we got transportation on the regular train, which left between seven and eight o'clock P.M. We travelled in a Mann boudoir car, and were quite comfortable. Upon reaching Brunswick, we went to a hotel, then made our way to the boats bound for Cumberland Island, a distance of twenty-two miles. The officers in charge reported every boat loaded, and declared it would be unsafe to take any more passengers, so we accommodated ourselves to circumstances, and took a twelve-mile trip to St. Simon's Island. The ride was very pleasant and we enjoyed the walk to the Beach Hotel after landing. Arriving there, we were delighted with the view from the wide piazza. "Old Ocean" could be seen in all his majesty, and while eating dinner we watched the high waves beating and breaking on the shore. The salt breeze had given us an appetite, so no wonder that we thought it the finest meal we had ever eaten. Later, we watched the bathers for a while, and enjoyed the fun. At four o'clock when we started back to the dock to be ready for the boats, we found the beach covered by the incoming tide, and had to circle around and take another route. We again travelled all night on our way back to Atlanta, but arrived in shipshape, and feeling that nobody had a better time than we.
A few days later a nice little trip was given us to Stone Mountain, a distance of eighteen miles. We went in coal cars, which added to the enjoyment, and lovely views were afforded us from our homely carriages, as we rounded the mountain. Then came the climb which was tiresome but jolly, and every one who reached the top felt fully repaid in the lovely scenery spread out before us. Ice-cream and lemonade were served to the thirsty crowd at the Blue Ridge Hotel. The day was pleasantly spent on the mountain, and we arrived in Atlanta at 8:30, ready for a late supper.
Another interesting feature of the convention was an entertainment tendered the Brotherhood by the Southern Express Company, which consisted of addresses, dancing, and the most elaborate collation ever offered our Grand International Division of the Brotherhood of Locomotive Engineers, when I have had the pleasure of serving as delegate. The decorations were beautiful and appropriate; in fact, the praises of that delightful affair have been sung at many conventions since, when old friends would get together and compare notes on the past.
The two leading newspaper forces of Atlanta, those of the Constitution and the Journal, also gave us a barbecue. The food was served in wooden trays, and there was a bountiful supply of several varieties of meats, with bread and pickles.
It has always been the custom at the conventions for the whole body to attend church services on Sunday whenever possible, and we went several times while in Atlanta. Our youngest daughter was with us, and she and her mother usually attended prayer-meeting besides.
The city held many pleasant memories for me, as I had been there in the early years of my railroad career, when the place was only a village. I saw several of the old landmarks, although there had been such an enormous increase in size and population since then.
Two years later (1894) came the St. Paul Convention. This city is very near the head of navigation of the Mississippi River, and its twin city, Minneapolis, is right at the head. I threw myself into convention work, and was at the Hall whenever business was going on, but when work was laid aside, I enjoyed the recreation as much as any one.
We found the aspect of the country entirely new. The timber is small and different from any I have ever seen, being of a very close fibre. Foremost of all, I enjoyed seeing the fine stock farms. That whole region is fertile, and I was struck by a peculiarity of the soil. It is rich for eight or ten feet, but below that depth is perfectly white sand, which gave me an idea that all of that country at one time must have been under water. This theory is evidently supported by the vast number of small lakes in the vicinity.
We were given a trip to Lake Minnetonka, which is navigable for three hundred miles, and on the way saw multitudinous lakes of different sizes. In walking around there, before we were out of sight of one body of water we would see another. We were informed that there were eight thousand surveyed lakes in that locality, and could well believe it.
We visited Minneapolis, and went through a mill that was said to turn out a greater number of barrels of flour than any other mill in the world.
We also saw the famous Minnehaha Falls, and it was a magnificent sight.
On our route, we took in the Soldiers' Home, which was a model of its kind. The old soldiers seemed to have every earthly comfort and appeared to enjoy company.
The convention was given a barbecue at Lake Harriet, a beautiful body of water, a short ride from St. Paul. As the time drew near for serving dinner, the delightful odor of the cooking meat attracted more and more the interested spectators; but soon, an unfortunate accident occurred. A large, juicy animal over the pit was just nearing the finishing stage when the saplings broke, and dropped the nicely browned meat into the fire and ashes. As that made a considerable difference in the allowance for dinner, it set things back for a while. This gave us additional appetite, and what was lacking in meat was fully made up in other edibles, and the fun we had over the mishap.
We next had an excursion to Duluth on Lake Superior which was very enjoyable.
Leaving St. Paul on Saturday night, we arrived there early the next morning in time for breakfast. The weather was cold, although it was May, and the ladies wore their heaviest wraps. There were several things of interest in the city, one of which was a building containing various and wonderful curios. We also noticed the many fine schools. Visiting the shipyard, we saw them building steel-clad vessels. The Columbus, which was exhibited at the World's Fair, was built there. We took a ride on the lake which delighted all, except those who were seasick. We went quite a distance, and on the way out, had a race between two of the boats. I was much gratified that the one we were in won, as it was the smaller vessel of the two. There was no sandy beach there, and no shells. Wherever we had been previously, on the ocean and lakes, we had found shells in plenty. Instead, we saw rocks in almost endless variety and shape. They had been rolled over and over by the rough water of the lake until they were perfectly smooth. My wife collected quite a lot, and took them home to use as paper weights.
We were charmed with the long twilight, discovering that we could easily see to read at nine o'clock at night. Our train left Duluth at ten o'clock, and reached St. Paul the next morning in time for breakfast, after which work was resumed in the Convention Hall.
An excursion to Yellowstone Park was offered, but was not accepted, one reason being that the majority of our members had spent almost all their money. Nevertheless we realized that we had turned our backs on a fine chance, and that nowhere else would be able to see such wonderful sights. Frances wanted me to get passes and go any way, but our two girls were awaiting our return home to take a trip to the Mid-Winter Fair in San Francisco, so we gave up the idea.


text:
This website has stopped receiving new data as of November 2018.
This is due to the new government EDM portal re-design which scrapped the XML data feed which I was using to import data.
Election results : international
A total of 25 early day motions have been categorised under the topic of Election results : international.
EDM1335 Venezuelan Election proposed on 05/06/2018
EDM825 Post-Election Violence In Honduras proposed on 18/01/2018
EDM438 Election Of A Labour-Led Government In New Zealand proposed on 20/10/2017
EDM825 Gambia proposed on 16/12/2016
EDM780 Outcome Of Presidential Election In The Gambia proposed on 07/12/2016
EDM556 Elections In Jordan proposed on 18/10/2016
EDM898 Electoral Fraud In Haiti proposed on 16/12/2015
EDM870 Elections In Saudi Arabia proposed on 15/12/2015
EDM789 Burma Elections 2015 proposed on 30/11/2015
EDM682 Elections In Burma proposed on 09/11/2015
EDM733 Greek Election Result proposed on 26/01/2015
EDM690 Presidential Elections In Sri Lanka proposed on 14/01/2015
EDM346 Re-Election Of President Morales proposed on 13/10/2014
EDM625 Azerbaijan Election proposed on 24/10/2013
EDM1278 Venezuelan Election Result proposed on 17/04/2013
EDM696 Us Election proposed on 07/11/2012
EDM698 Re-Election Of Barack Obama proposed on 07/11/2012
EDM864 Presidential Elections In Ukraine proposed on 10/02/2010
EDM376 Victory Of Evo Morales In The Bolivian Elections proposed on 07/12/2009
EDM382 Election Of President Evo Morales In Bolivia proposed on 07/12/2009
EDM1990 Election Victory Of Pasok And George Papandreou proposed on 12/10/2009
EDM1755 Iranian Presidential Election 2009 proposed on 25/06/2009
EDM1511 Indian Election proposed on 18/05/2009
EDM1228 Presidential Election In El Salvador proposed on 31/03/2009
EDM1133 Presidential Elections In El Salvador proposed on 19/03/2009
Download raw data.
The information on this website is reproduced under Parliamentary Licence and may be reused under the same license, licenses can be obtained from OPSI.

redpajama_set_name: RedPajamaCommonCrawl


I recently contributed a short essay to the Land Diagrams web project at the invitation of Amy Cutler. In partnership with another commentator we were set to think about the meaning of map of linguistic data for Cornwall suggested by Amy.
The goal of Amy's project to produce 'twinned study' that can "offer two simultaneous gestures of thought in response to one geographical image". I hope the Land Diagrams project develops and I'll be keeping an eye on it.


text:
Grace Ives
https://www.facebook.com/GraceIvesMusic/
https://graceives.bandcamp.com/
Band email:
graceives@mac.com
Kolb's "Making Moves" is eclectic brilliance, plays Mercury Lounge 7.6
Queens-based songwriter Kolb stepped not-so-quietly onto the scene last year with debut release Making Moves, an audaciously experimental effort that blends Bowie-esque vocal delivery with delightfully eclectic (and occasionally campy) instrumentation. With no shortage of out-of-tune toy instruments, unexpected cello lines, and bird calls, Kolb basks in the unexpected and outrageous, his voice endowed by a musical theater quality that, when situated among acoustic guitars and shifting time signatures, creates a vivacious, incredibly fun energy. While Kolb has yet to release a follow-up, the project's glam-folk vision is unique in the New York scene; stream it below, and catch him at Mercury Lounge on July 6th, supporting Flying Fish Cove. -Connor Beckett McInerney
Making Moves by Kolb
Votive Crown
facebook.com/votivecrown
https://open.spotify.com/artist/2xhVygnIK8036mK0YhiB7I?si=7McIepEWQPiQcy8pYsOpZA
votivecrown@gmail.com
Watch Anna Egge's crafty video for new single "Cocaine Cowboy"
Brooklyn-based Anna Egge will drop her newest album Is It This Kiss on September 6th; to preview the record, she's released the music video for a single from the record called "Cocaine Cowboys". The sparse country-tinged track nods to legends such as Dolly Parton, Patsy Cline, and Hank Williams, weaving little more than Egge's voice layered in harmony, a strummed acoustic guitar, and tiny touches of strings and wind instruments to create a beautiful and simple song. The video echoes this minimalistic approach: a pair of hands crafts the visuals to the lyrics, using paper cutouts and props such as cereal marshmallows, cotton balls, paper cutouts of the country stars to whom Egge pays homage, and a 45 of "Cocaine Cowboys" itself. Take a look for yourself at the video below. - Will Sisskind
Anna Egge
TELEVISION SKIES
https://www.facebook.com/televisionskiesofficial/
https://www.youtube.com/watch?v=WmoWHtkG5sI
televisionskiesofficial@gmail.com


I have some credit card debt that I would like to pay off. I feel like I am throwing money away on the interest charges each month. I was curious to know if taking a loan from my 401k to pay off my credit cards is a wise thing to do?
Keep in mind this is all very new to me—from what I understand, if I borrow from my retirement account, then I am required to pay back the money I borrow + interest. So say I borrow 1,000 + 5% interest I would have to pay back $1050.
However since I am technically paying back myself, wouldn't it all be going back in to my pocket anyways? Meaning it would be better to take the $1000 from my 401k, pay off my debt (therefore, eliminate the credit card interest each month) and use that money I would be putting towards my credit card interest each month to pay myself back?
Is this a wise thing to do or am I missing something here?
For reference see this article. This article does an okay job of explaining why, but it could be better. To expand on point #4 if you lose your job, you will be forced to repay the loan in 90 days. If do not pay it back in time, you will be hit with your highest marginal tax rate and a 10% penalty. How does borrowing money at 40% interest sound?
Why do you have credit card debt? I'll give you the loving answer: bad behavior. The longer you hold this debt the more indicative it is about out of control behavior.
Cut up all credit cards. You will need to be off of them for at least a year after paying off your debt.
Get on a budget. You will stink at it a first, but start the process now.
Cut your lifestyle. No more eating out or vacations. Depending upon your intensity you can really reduce your expenditures for extra money to throw at the debt.
See help. Use a pro like Dave Ramsey or Mr. Money Mustache. I really like the former. I really like the debt snowball program, it worked for my wife an I.
While you are behaving like most people (normal); most people are broke. Congratulations on having the desire to not be broke. Do you now have the courage to change? Having that courage could mean generational wealth building and freedom from debt.
As a reformed overspender it has meant exactly that for me and my family.
Not the answer you're looking for? Browse other questions tagged united-states loans 401k debt-reduction or ask your own question.


text:
383 Janina este un asteroid din centura principală, descoperit pe 29 ianuarie 1894, de Auguste Charlois.

Legături externe

 383 Janina în JPL Small-Body Database
 383 Janina în baza de date a Minor Planet Center
 Diagrama orbitei asteroidului 383 Janina (JPL)

Centura de asteroizi
Obiecte astronomice descoperite în 1894

redpajama_set_name: RedPajamaWikipedia


Winter in Tuscany is traditionally pig-butchering season, as nature provides the refrigeration that farmers have needed for centuries for this all-encompassing, family-involved activity. I've been waiting since the summer to be invited to Fattoria Poggio Alloro, a beautiful farm near San Gimignano, for a lesson in a centuries old tradition: making salumi – cured meats.
I was already familiar with their delectable sausages and prosciutto and love the fact that they are a fully organic and self-sufficient family run farm. Their pork production is actually only a fraction of their activity; they also produce wine (five reds and three whites), a grassy green extra virgin olive oil, cereal crops such as farro and wheat, saffron, plus they also have Chianina cattle (prized for their exquisite meat, known for the best Florentine steak). Oh and a few hens and pigs.
We finally arrived just after midday. The pigs had already been butchered and cut up into various parts for various uses (the Tuscans are very good at not wasting a single bit of the animal); even the sausages and the prosciutto were already done.
We were welcomed by the lovely Sarah, daughter of the owners of the farm, and her cousin Renzo who was quick to sort us out with a glass of their Vernaccia (a traditional white wine from San Gimignano) and fresh sausage made that morning, spread onto bread and grilled right on the fireplace. It was a glorious winter day indeed. After our little spuntino we met the rest of the team: Amico, farm owner and salumi-maker extraordinaire, wife Rosa, and their various friends and relatives who continued to flow through the kitchen throughout the day, chopping, slicing, grinding and offering glasses of wine or little cups of espresso.
We started off with the salame toscano – pork mince with cubes of fat, seasoned and piped into animal guts – but the highlight of the day was definitely making the finocchiona. This traditional, soft, wide Tuscan salame gets its name from the obligatory use of fennel, or finocchio – the flowers or seeds are used to flavour the meat along with plenty of salt, pepper and garlic macerated in red wine. Both the lean meat and fat of pork cheek or shoulder is minced, seasoned and then worked by hand. There really is something about getting your hands dirty and squishing the meat between your fingers that is so satisfying. Amico assures us that it is also much tastier when it's done by hand.
Mixing by hand means that while working it, the warmth of your hands helps to blend the melting fat together with the lean meat and it must be worked until the mixture becomes sticky and elastic. They used to say that the entire mixture is ready when it begins to warm to the temperature of your hands. This then gets piped into veal casings before being well tied, netted and hung to dry. They are then left to mature "until fava beans are in season," Amico's wife Rosa tells me. In other words, May. We tie our finocchiona with a ribbon to distinguish it from the others – Christmas presents that we have to wait another 6 months to open!
The day's work is finished off with the best part of the whole activity – a feast. Steaks of cinta senese lined with inches of fat are thrown onto coals, pork liver is roasted, fresh sausage is turned into a gorgeous sauce with leek and cream to dress fusilli pasta, and everything is accompanied by their own wine, but it all begins with paper thin slices of last season's finocchiona, salame toscano, buristo and prosciutto – a taste of what's to come.
A delicious post! Would love to witness this one day!
They're always looking for an extra hand and the reward – eating!


1. Prepare springform pan by spraying with cooking spray and then lining with plastic wrap. Let plastic wrap hang over the sides of the pan.
2. Thaw 6 cups frozen raspberries. Remove ice cream from freezer and soften.
3. Stand ladyfingers, cut in length to be flush with top edge of pan, rounded edge at the top, along the sides of the plastic lined pan. Place additional ladyfingers in the bottom of the pan, to cover. Go ahead and squeeze these in tightly to cover bottom of pan, cut them to fit in the small areas.
5. Puree raspberries in a food processor with the sugar. Press through a fine sieve into a large bowl.
7. Pour ice cream mix into prepared pan with ladyfingers.
8. Freeze cake, covered with plastic wrap, until frozen hard, about 6 hours or up to 1 week.
9. Remove cake from freezer and let soften in refrigerator at least 30 minutes and up to 45 minutes before serving. Remove cake from pan discarding plastic wrap.
10. Whip heavy cream with sugar and almond extract until stiff peaks form. Garnish cake by piping cream along edge of cake with a large piping tip. Top cream with fresh or frozen whole raspberries. You may further decorate center with unsprayed fresh flowers, if desired.
11. Serve cake with sauce. Pass extra sauce at the table.
12. To prepare sauce: In a food processor, puree raspberries with sugar and Amaretto (or almond extract) and force through a fine sieve into a bowl. Sauce may be made ahead, covered and chilled. Makes 1½ cups.


The unlimited evolution of ceramic products to large size, strong cost reduction, increase local raw materials and reduction in thickness, has been the result of continuous development of new ceramic bodies. In the center of this development is Neos Additives, company of Smaltochimica group, born in 2002 with the purpose to research ceramic bodies as a means of reaching ceramic products new frontiers. All this work, besides being awarded at international forums, is recognized by the satisfaction of our customers.
Neos offers a wide range of products, services, R & D, and modeling of ceramic compositions, using the new working platform.
Powerful ceramic body Simulator and Modelling with hundreds of restrictions according to customer requirements, including pyro-hydro-plasticity and plasticity.
Simulation of energy saving in the spray drier and firing, according to the properties of the new compositions.
Organic additives, the dosage ranges from 0.05-0.8%. Its purpose is focused on increasing the mechanical strength of the pieces during the ceramic process, which allows to reduce the losses of production due to breakage, reduce the thickness of the piece, and produce large formats or irregular shape with handling difficult.
Hybrid organic-inorganic additives. The main application of these additives is in the development of ceramic bodies with low clay content. Its effect on the pressing process and the improvement in the mechanical properties, make him a partner of large format production or to developing compositions with high whiteness and low adding of opacifiers.
Inorganic Additives, This family of additives, in addition to its flux effect, which reduces firing cycles or lower temperatures, can increase the mechanical strength of the parts without affecting the appearance of the black core. Your possibilities are extended in the development of super white media without adding zirconium or clays also facilitate the manufacture of large-format and high thickness (20 mm).
Hydro- Plasticity reducing additives, The reduction in thickness and large rectangular formats bring consequently increasing curved work piece after glazing. This effect has associated a number of production defects (difficulty decoration cracks, etc…). The incorporation of these additives during the grinding process can reduce up to 40% of the curvature of the work piece due to hydro- plasticity.


text:
Woods v. Williams: The case reeks of irony
By Jason Sobel
Whether you side with Tiger Woods, Steve Williams or don't have a cat in the fight in the increasingly curious case of "Player v. Caddie," you can admit the following reeks of irony.
Woods divorced from Williams only after the caddie wasn't faithful to him and started seeing another player.
Here's everything we know about what went down: When Woods announced that he wouldn't be competing in the U.S. Open, Adam Scott – who had recently fired his caddie, Tony Navarro – asked Williams if he would temporarily serve in the role for him. The looper received his boss' permission and was on the bag at Congressional, where Scott missed the cut.
Two weeks later, Williams again caddied for Scott at the AT&T National, helping the player to a T-3 result before Woods summarily dismissed him from his day job on Sunday of that week.
At some point in between those two events, Tiger's blessing turned into a curse for the man he calls Stevie.
Now that it's over, the breakup is newsworthy for a few reasons.
First and foremost, although such records aren't kept, this was likely the game's most successful caddie – in both major championship victories and money earned – getting the axe. Williams was on the bag for 13 of Woods' 14 major wins and pocketed enough over the years that he was able to donate $1 million to charity three years ago.
What tugs at the heartstrings of gossip columnists, though, is the fact that the two men became very good friends during the course of their working relationship, with Woods even serving as best man in Williams' wedding. The caddie remained with his player not only through injuries and swing changes, but a highly publicized personal scandal, as well.
And that's what irks Williams the most in the aftermath of this decision.
"To be let go after a period where I've stuck through thick and thin, and I've been incredibly loyal to the guy, that's what I find disappointing," he told New Zealand's TV3 News on Wednesday. "You've got to gain someone's respect and what Tiger went through at the completion of 2009, I told him when I first met up with him again in 2010 at Augusta that he had to earn my respect back. He was aware of that and he would know right now that I've lost a tremendous amount of respect for him. Through time, I hope that he can gain my respect back.
"I'm not disappointed in the fact that I got fired; I'm just disappointed in the timing of it given the fact that I've been loyal to him. Obviously, that loyalty didn't mean much to him."
The situation preys on the old bagman axiom amongst the professional ranks: There are two types of caddies – those who have just been fired and those who are about to be fired.
Williams, who caddied for the likes of Peter Thomson, Ian Baker-Finch, Greg Norman and Raymond Floyd prior to Woods, knows that as well as anybody.
"It's always inevitable," he explained, "but I was disappointed."


Gather up your friends and plan a night out for some beer and bites! Join us for an evening of beer tasting paired with heavy hors d' oeurves from several local food vendors, raffles and fun! Sample more than 40 handcrafted brews, plus wine, sodas and coffees.


Insects possess the capacity to spread disorder, ruin houses, and, also, damage goods and foodstuffs. So, when there is a domestic pest problem, it's important you take action.
Issues with pests come in several different types including Bedbugs, Bugs, and Wasps to name some.
So, the first thing you should do is contact us, Clark Insect Control – we can help.
One of our fully trained BPCA qualified technicians will determine the bug and eliminate the issue in a way that is safe and satisfactory.
So, no matter your insect problem, by way of example, a rat infestation, you should speak to us right now.
Trained in the application of insect powder and pesticides, our technicians ensure that we've got the right skills and insurance contracts setup and that our work meets all recommend standards.
There are numerous methods for people to control insects at home.
Firstly, one of our local surveyors analyse and assess your home.
Next they will make suggestions that reflect the unique requirements of your house.
Last but not least, our technicians will advise you on the proper treatment needed to take care of your pest problem.
At Pest Control, we employ an approach that is pro-active. After we complete our pest management treatment, we can make follow-up visits to ensure that your insect problem is removed forever.


text:
Jurisdiction - China
Reports and Analysis
China – NDRC Denies the "National Treatment" For RMB Funds With Foreign GPs.
Legal News & Analysis – Asia Pacific – China – Investment Funds
China's National Development and Reform Commission ("NDRC"), one of the major regulatory authorities in charge of foreign investments in the People's Republic of China (the "PRC" or "China"), recently denied the "national treatment" of RMB funds in the form of a limited liability partnership with a foreign-invested company as general partner ("GP") and with only PRC domestic investors as limited partners ("LPs").
Foreign investments in China are subject to certain restrictions as well as various governmental approval procedures, which are often considered to be onerous and time-consuming. In early 2011, to attract the establishment of private equity funds, Shanghai, followed by Beijing and Tianjin, introduced the so-called Qualified Foreign Limited Partners ("QFLP") program, under which, among others, a private equity fund formed as a limited liability partnership with a foreign-sourced GP and Chinese LPs and no foreign LPs would be deemed to be a Chinese investor for purposes of foreign investment regulations, provided that the GP's capital commitment to the fund does not exceed 5% of the total capital commitments (the "5% Exception Rule"). Such "national treatment" exempts qualified funds from complying with China's foreign investment regulation regime when such funds make investments in portfolio companies.
The 5% Exception Rule is particularly attractive to those foreign fund managers who intend to raise capital only from China's domestic sources while hoping to ensure that such type of funds receive equal treatment with their purely domestic private equity competitors (which are RMB funds with a domestic GP and domestic LPs) in the process of portfolio investments. Therefore, with other merits, the QFLP program has led to a surge in the number of RMB funds, especially in Shanghai, including funds managed by Blackstone Group, Carlyle Group, etc.
In response to the Shanghai Development and Reform Commission's request to clarify the "national status" of a fund with a PRC subsidiary of Blackstone Group as its GP, NDRC, however, issued a letter (The Reply Letter of the General Office of NDRC on Relevant Issues Relating to Foreign-invested Equity Investment Enterprises《国家发展改革委办公厅关于外资股权投资企业有关问题的复函) on April 23, 2012 (the "NDRC Letter"), affirming that such type of RMB funds shall still be deemed as foreign investors, and their portfolio investments are therefore subject to the Catalogue for Guiding Foreign Investment (Issued by NDRC and China's Ministry of Commerce on December 24, 2011), a major PRC regulation specifying the industry restrictions for foreign investments and other applicable PRC laws relating to foreign investments.
The NDRC Letter denies the applicability of the 5% Exception Rule under the QFLP program to the effect that a contribution of even a nominal amount of foreign-sourced capital comprising a small fraction of the total fund size would make the fund "foreign." It would also cause uncertainties as to the legality of the finished portfolio investments made by foreign-invested RMB funds if such investments had enjoyed the "national treatment" according to the 5% Exception Rule.
Lee Edwards, Partner, Shearman & Sterling
Shearman & Sterling Investment Funds Practice Profile in China
Homegrown Investment Funds Practice Law Firms in China
International Investment Funds Practice Law Firms in China


Autocare Press is a library for Car Repair & Car Wash with predefined web elements which helps you to build your own site. This template is suitable for auto care, auto centre, auto glass, auto inspection, Auto Mechanic, auto painting, body shop, car rental, car repair shop, car service mot, car wash, garage, maintenance, mechanic workshop website. Autocare Press template has a fully responsive layout. It fits perfectly on various displays and resolutions from regular desktop screens to tablets, iPads, iPhones and small mobile devices. This template is built with Bootstrap 3.
50+ Website theme wordpress and HTML5 Template is a Powerful, Responsive & Raw Multi-Purpose Multi-Page & One-Page HTML5 Template. Build whatever you like with this Template. Be it Business, Corporate, Medical, Travel, Construction, Real Estate, Media Agency, Portfolio, Agency, Magazine, Parallax, Wedding, Christmas, Restaurant, Blog or App Showcase, just everything is possible with Canvas. We have included 50+ ready-to-use Homepages & 800+ HTML Files with the Package, it is this huge. Amazing flexibility, Dark Scheme, Super Shortcodes, Raw Bootstrap & Scalable Responsive Features makes Canvas standout from the crowd. Try out the demo.
serifly forest is available for freelance work at $20/h rate.


text:
from email import (Parser as P, Generator as G, MIMEMultipart as MMP,
                   MIMEText as MT, MIMEMessage as MM, Header as MH,
                   Utils as EU)

import StringIO as S

from zope.interface import implements

from twisted.python.components import registerAdapter
from twisted.mail import smtp

from nevow import inevow, rend, json
from nevow.athena import expose

from axiom import attributes, item
from axiom.upgrade import (
    registerUpgrader, registerAttributeCopyingUpgrader,
    registerDeletionUpgrader)
from axiom.dependency import dependsOn

from xmantissa.fragmentutils import dictFillSlots
from xmantissa import webnav, ixmantissa, people, liveform, prefs
from xmantissa.webapp import PrivateApplication
from xmantissa.webtheme import getLoader

from xquotient import iquotient, equotient, renderers, mimeutil

from smtpout import (FromAddress, MessageDelivery,
                     _getFromAddressFromStore, FromAddressConfigFragment)

from xquotient.exmess import ActionlessMessageDetail, REDIRECTED_STATUS
from xquotient.mail import MailDeliveryAgent, DeliveryAgent
from xquotient.mimebakery import saveDraft, sendMail

class ComposePreferenceCollection(item.Item, prefs.PreferenceCollectionMixin):
    """
    L{xmantissa.ixmantissa.IPreferenceCollection} which collects preferences
    that have something to do with compose or outgoing mail
    """
    implements(ixmantissa.IPreferenceCollection)

    schemaVersion = 3

    installedOn = attributes.reference()
    powerupInterfaces = (ixmantissa.IPreferenceCollection,)

    def getPreferenceParameters(self):
        return None

    def getSections(self):
        return (FromAddressConfigFragment(self),)

    def getTabs(self):
        return (webnav.Tab('Mail', self.storeID, 0.0, children=(
                    webnav.Tab('Outgoing', self.storeID, 0.0),),
                    authoritative=False),)

class Drafts(item.Item):
    """
    Shell of an item that exists only to be deleted. The 'Drafts' menu item is
    no longer. Instead, drafts are accessed through a mail view.
    """

    typeName = 'quotient_drafts'
    schemaVersion = 2

    installedOn = attributes.reference()

def drafts1to2(old):
    """
    Delete the Drafts item. It is now superfluous.
    """
    new = old.upgradeVersion(old.typeName, 1, 2, installedOn=None)
    new.deleteFromStore()

registerUpgrader(drafts1to2, Drafts.typeName, 1, 2)

class File(item.Item):
    typeName = 'quotient_file'
    schemaVersion = 1

    type = attributes.text(allowNone=False)
    body = attributes.path(allowNone=False)
    name = attributes.text(allowNone=False)

    message = attributes.reference()
    cabinet = attributes.reference(allowNone=False)

class FileCabinet(item.Item):
    typeName = 'quotient_file_cabinet'
    schemaVersion = 1

    name = attributes.text()
    filesCount = attributes.integer(default=0)

    def createFileItem(self, name, type, data):
        """
        @param name: file name
        @param type: content-type
        @param data: file contents

        @return: C{File} item
        """
        outf = self.store.newFile('cabinet-'+str(self.storeID),
                                  str(self.filesCount))
        outf.write(data)
        outf.close()

        f = File(store=self.store,
                 body=outf.finalpath,
                 name=name,
                 type=type,
                 cabinet=self)

        self.filesCount += 1
        return f

class FileCabinetPage(rend.Page):
    lastFile = None

    def __init__(self, original):
        rend.Page.__init__(self, original, docFactory=getLoader('file-upload'))

    def renderHTTP(self, ctx):
        req = inevow.IRequest(ctx)
        if req.method == 'POST':
            uploadedFileArg = req.fields['uploaddata']
            def txn():
                self.lastFile = self.original.createFileItem(
                                        name=unicode(uploadedFileArg.filename),
                                        type=unicode(uploadedFileArg.type),
                                        data=uploadedFileArg.file.read())
            self.original.store.transact(txn)

        return rend.Page.renderHTTP(self, ctx)

    def render_lastFileData(self, ctx, data):
        if self.lastFile is None:
            return ''
        return json.serialize({u'id': self.lastFile.storeID,
                               u'name': self.lastFile.name})

registerAdapter(FileCabinetPage, FileCabinet, inevow.IResource)

class Composer(item.Item):
    implements(ixmantissa.INavigableElement, iquotient.IMessageSender)

    typeName = 'quotient_composer'
    schemaVersion = 6

    powerupInterfaces = (ixmantissa.INavigableElement, iquotient.IMessageSender)

    privateApplication = dependsOn(PrivateApplication)
    mda = dependsOn(MailDeliveryAgent)
    deliveryAgent = dependsOn(DeliveryAgent)
    prefs = dependsOn(ComposePreferenceCollection)

    def installed(self):
        defaultFrom = self.store.findOrCreate(FromAddress, _address=None)
        defaultFrom.setAsDefault()

    def getTabs(self):
        return [webnav.Tab('Mail', self.storeID, 0.6, children=
                    [webnav.Tab('Compose', self.storeID, 0.1)],
                authoritative=False)]

    def sendMessage(self, fromAddress, toAddresses, msg):
        """
        Send a message from this composer.

        @param toAddresses: List of email addresses (Which can be
            coerced to L{smtp.Address}es).
        @param msg: The L{exmess.Message} to send.
        """
        m = MessageDelivery(composer=self, message=msg,
                                    store=self.store)
        m.send(fromAddress, toAddresses)

    def _createBounceMessage(self, log, toAddress, msg):
        """
        Create a multipart MIME message that will be sent to the user to indicate
        that their message has bounced.

        @param log: ???
        @param toAddress: The email address that bounced
        @param msg: The message that bounced

        @return: L{MP.MIMEMultipart}
        """
        bounceText = (
            'Your message to %(recipient)s, subject "%(subject)s", '
            'could not be delivered.')
        bounceText %= {
            'recipient': toAddress,
            'subject': msg.impl.getHeader(u'subject')}

        original = P.Parser().parse(msg.impl.source.open())

        m = MMP.MIMEMultipart(
            'mixed',
            None,
            [MT.MIMEText(bounceText, 'plain'),
             MT.MIMEText(log, 'plain'),
             MM.MIMEMessage(original)])

        m['Subject'] = 'Unable to deliver message to ' + toAddress
        m['From'] = '<>'
        m['To'] = ''
        return m

    def _sendBounceMessage(self, m):
        """
        Insert the given MIME message into the inbox for this user.

        @param m: L{MMP.MIMEMultipart}
        """
        s = S.StringIO()
        G.Generator(s).flatten(m)
        s.seek(0)
        self.createMessageAndQueueIt(
            FromAddress.findDefault(self.store).address, s, False)

    def messageBounced(self, log, toAddress, msg):
        m = self._createBounceMessage(log, toAddress, msg)
        self._sendBounceMessage(m)

    def createMessageAndQueueIt(self, fromAddress, s, draft):
        """
        Create a message out of C{s}, from C{fromAddress}

        @param fromAddress: address from which to send the email
        @type fromAddress: C{unicode}
        @param s: message to send
        @type s: line iterable
        @type draft: C{bool}
        @param draft: Flag indicating whether this is a draft message or not
        (eg, a bounce message).

        @rtype: L{xquotient.exmess.Message}
        """
        def deliverMIMEMessage():
            md = iquotient.IMIMEDelivery(self.store)
            if draft:
                mr = md._createMIMEDraftReceiver('sent://' + fromAddress)
            else:
                mr = md.createMIMEReceiver('sent://' + fromAddress)
            for L in s:
                mr.lineReceived(L.rstrip('\n'))
            mr.messageDone()
            return mr.message
        return self.store.transact(deliverMIMEMessage)

    def updateDraftMessage(self, fromAddress, messageFile, message):
        """
        Change the IMessageData associated with the given message to a
        L{mimestorage.Part} created by parsing C{messageFile}.

        @type fromAddress: C{unicode}
        @param fromAddress: RFC 2821 address from which to send the email

        @param messageFile: an iterable of lines from the new MIME message

        @param message: The existing L{exmess.Message} with which to
        associate the new IMessageData.
        """
        md = iquotient.IMIMEDelivery(self.store)
        mr = md._createDraftUpdateReceiver(message, 'sent://' + fromAddress)
        for L in messageFile:
            mr.lineReceived(L.strip('\n'))
        mr.messageDone()
        return None
    updateDraftMessage = item.transacted(updateDraftMessage)

    def createRedirectedMessage(self, fromAddress, toAddresses, message):
        """
        Create a L{Message} item based on C{message}, with the C{Resent-From}
        and C{Resent-To} headers set

        @type fromAddress: L{smtpout.FromAddress}

        @type toAddresses: sequence of L{mimeutil.EmailAddress}

        @type message: L{Message}

        @rtype: L{Message}
        """
        m = P.Parser().parse(message.impl.source.open())
        def insertResentHeaders(i):
            m._headers.insert(i, ('resent-from', MH.Header(
                fromAddress.address).encode()))
            m._headers.insert(i, ('resent-to', MH.Header(
                mimeutil.flattenEmailAddresses(toAddresses)).encode()))
            m._headers.insert(i, ('resent-date', EU.formatdate()))
            m._headers.insert(i, ('resent-message-id',
                                  smtp.messageid('divmod.xquotient')))
        for (i, (name, _)) in enumerate(m._headers):
            #insert Resent-* headers after all Received headers but
            #before the rest
            if name.lower() != "received":
                insertResentHeaders(i)
                break
        else:
            insertResentHeaders(0)
        s = S.StringIO()
        G.Generator(s).flatten(m)
        s.seek(0)

        return self.createMessageAndQueueIt(fromAddress.address, s, True)

    def redirect(self, fromAddress, toAddresses, message):
        """
        Redirect C{message} from C{fromAddress} to C{toAddresses}.
        Parameters the same as for L{createRedirectedMessage}

        @rtype: C{None}
        """
        msg = self.createRedirectedMessage(fromAddress, toAddresses, message)
        addresses = [addr.email for addr in toAddresses]
        self.sendMessage(fromAddress, addresses, msg)
        message.addStatus(REDIRECTED_STATUS)

def upgradeCompose1to2(oldComposer):
    """
    Version 2 of the Composer powers up IMessageSender, which version 1 did
    not.  Correct that here.
    """
    newComposer = oldComposer.upgradeVersion(
        'quotient_composer', 1, 2,
        installedOn=oldComposer.installedOn)
    newComposer.installedOn.powerUp(
        newComposer, iquotient.IMessageSender)
    return newComposer

registerUpgrader(upgradeCompose1to2, 'quotient_composer', 1, 2)

item.declareLegacyItem(Composer.typeName, 2,
                       dict(installedOn=attributes.reference()))

def composer2to3(old):
    """
    Remove the L{Composer.fromAddress} attribute
    """
    return old.upgradeVersion(old.typeName, 2, 3,
                              installedOn=old.installedOn)

registerUpgrader(composer2to3, Composer.typeName, 2, 3)

item.declareLegacyItem(Composer.typeName, 3,
                       dict(installedOn=attributes.reference()))

def composer3to4(old):
    """
    add dependencies as attributes, remove installedOn
    """
    composer = old.upgradeVersion(old.typeName, 3, 4)
    s = old.store
    composer.privateApplication = s.findOrCreate(PrivateApplication)
    composer.mda = s.findOrCreate(MailDeliveryAgent)
    composer.deliveryAgent = s.findOrCreate(DeliveryAgent)
    composer.prefs = s.findOrCreate(ComposePreferenceCollection)
    composer.drafts = s.findOrCreate(Drafts)
    return composer

registerUpgrader(composer3to4, Composer.typeName, 3, 4)
item.declareLegacyItem(Composer.typeName, 4,
                       dict(privateApplication=attributes.reference(),
                            scheduler=attributes.reference(),
                            mda=attributes.reference(),
                            deliveryAgent=attributes.reference(),
                            prefs=attributes.reference(),
                            drafts=attributes.reference()))

def composer4to5(old):
    """
    Upgrader to remove the 'drafts' attribute.
    """
    return old.upgradeVersion(
        old.typeName, 4, 5,
        privateApplication=old.privateApplication,
        mda=old.mda,
        deliveryAgent=old.deliveryAgent,
        prefs=old.prefs)

registerUpgrader(composer4to5, Composer.typeName, 4, 5)

item.declareLegacyItem(Composer.typeName, 5,
                       dict(privateApplication=attributes.reference(),
                            scheduler=attributes.reference(),
                            mda=attributes.reference(),
                            deliveryAgent=attributes.reference(),
                            prefs=attributes.reference()))

def composer5to6(old):
    """
    Upgrader to remove the C{scheduler} attribute.
    """
    return old.upgradeVersion(
        old.typeName, 5, 6,
        privateApplication=old.privateApplication,
        mda=old.mda,
        deliveryAgent=old.deliveryAgent,
        prefs=old.prefs)

registerUpgrader(composer5to6, Composer.typeName, 5, 6)

class _ComposeFragmentMixin:
    """
    Mixin which provides some stuff that might be useful to fragments which do
    composey things.

    Assumes it is mixed-in to something where C{self.composer} is a
    L{Composer}
    """

    def _coerceEmailAddressString(self, s):
        """
        Turn a string representation of one or more email addresses into a
        list of L{mimetuil.EmailAddress} instances

        @param s: non mime-encoded string
        @type s: C{str}

        @return: L{mimeutil.EmailAddress} instances
        @rtype: sequence
        """
        return mimeutil.parseEmailAddresses(s, mimeEncoded=False)

    def _getFromAddresses(self):
        """
        Return a list of L{FromAddress} instances, in order of preference.
        """
        fromAddrs = []
        for fromAddress in self.composer.store.query(FromAddress):
            if fromAddress._default:
                fromAddrs.insert(0, fromAddress)
            else:
                fromAddrs.append(fromAddress)
        return fromAddrs

    def _formatFromAddressSelection(self, fromAddresses):
        """
        Turn the given L{smtpout.FromAddress} items into some stan,
        using the C{from-select} and C{from-select-option} patterns
        from the template
        """
        iq = inevow.IQ(self.docFactory)
        return iq.onePattern('from-select').fillSlots(
                        'options', [iq.onePattern(
                                    'from-select-option').fillSlots(
                                        'address', addr.address).fillSlots(
                                        'value', self.translator.toWebID(addr))
                                        for addr in fromAddresses])

    def getPeople(self):
        """
        @return: a sequence of pairs (name, email) for each Person in the
        store of my L{Composer}, where name is the person's display name, and
        email is their email address.  omits people without a display name or
        email address
        """
        peeps = []
        for person in self.composer.store.query(people.Person):
            email = person.getEmailAddress()
            if email is None:
                email = u''
            name = person.getDisplayName()
            if name or email:
                peeps.append((name, email))
        return peeps
    expose(getPeople)

class ComposeFragment(liveform.LiveFormFragment, renderers.ButtonRenderingMixin, _ComposeFragmentMixin):
    implements(ixmantissa.INavigableFragment)

    jsClass = u'Quotient.Compose.Controller'
    fragmentName = 'compose'

    def __init__(self, composer, recipients=None, subject=u'', messageBody=u'',
                 attachments=(), inline=False, parentMessage=None,
                 parentAction=None):
        """
        @type composer: L{Composer}

        @param recipients: email addresses of the recipients of this message.
        defaults to no recipients
        @type recipients: C{dict} which can contain any combination of the
        keys C{to}, C{cc} and C{bcc}, where the values are sequences of
        L{xquotient.mimeutil.EmailAddress} instances

        @param subject: the subject of this message
        @type subject: C{unicode}

        @param messageBody: the body of this message
        @type messageBody: C{unicode}

        @param attachments: the attachments of this message
        @type attachments: sequence of L{xquotient.mimepart.AttachmentPart}
        instances

        @param inline: whether the compose widget is being displayed inline,
        e.g. as a child of another widget
        @type inline: boolean

        @param parentMessage: The existing message this message is in
        response to, if any; otherwise None.

        @param parentAction: The status that should be set on the
        parent message, if any, once this message is delivered. Should
        be a value from L{xquotient.exmess} that ends in C{_STATUS}.

        C{toAddresses}, C{subject}, C{messageBody} and C{attachments} should
        be considered as presets - their values can be manipulated via the
        user interface
        """
        self.composer = composer
        self.cabinet = self.composer.store.findOrCreate(FileCabinet)
        self.translator = ixmantissa.IWebTranslator(composer.store)
        self._savedDraft = None
        super(ComposeFragment, self).__init__(
            callable=self._sendOrSave,
            parameters=[liveform.Parameter(name='fromAddress',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self.translator.fromWebID),
                        liveform.Parameter(name='toAddresses',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self._coerceEmailAddressString),
                        liveform.Parameter(name='subject',
                                           type=liveform.TEXT_INPUT,
                                           coercer=unicode),
                        liveform.Parameter(name='messageBody',
                                           type=liveform.TEXTAREA_INPUT,
                                           coercer=unicode),
                        liveform.Parameter(name='cc',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self._coerceEmailAddressString),
                        liveform.Parameter(name='bcc',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self._coerceEmailAddressString),
                        liveform.Parameter(name='draft',
                                           type=liveform.CHECKBOX_INPUT,
                                           coercer=bool)])
        if recipients is None:
            recipients = {}
        self.recipients = recipients
        self.subject = subject
        self.messageBody = messageBody
        self.attachments = attachments
        self.fileAttachments = []
        self.inline = inline

        self.docFactory = None
        self.parentMessage = parentMessage
        self.parentAction = parentAction

    def invoke(self, formPostEmulator):
        """
        Send the message or save it as a draft.

        The base implementation is overridden to support the slightly
        unusual I{files} parameter.  LiveForm has no support for this weird
        list of previously uploaded files type of data.
        """
        coerced = self.fromInputs(formPostEmulator)
        def cbCoerced(values):
            # we want to allow the javascript to submit an
            # list of filenames of arbitrary length with the form
            values['files'] = formPostEmulator.get('files', ())
            return self.callable(**values)
        return coerced.addCallback(cbCoerced)
    expose(invoke)

    def _sendOrSave(self, fromAddress, toAddresses, subject, messageBody,
                    cc, bcc, files, draft):
        """
        This method is called interactively from the browser via a liveform in
        response to clicking 'send' or 'save draft'.

        @param fromAddress: a L{smtpout.FromAddress} item.

        @param toAddresses: a list of L{mimeutil.EmailAddress} objects,
        representing the people to send this to.

        @param subject: freeform string
        @type subject: L{unicode}

        @param messageBody: the message's body, a freeform string.
        @type messageBody: L{unicode}

        @param cc: a string, likely an rfc2822-formatted list of addresses
        (not validated between the client and here, XXX FIXME)
        @type cc: L{unicode}

        @param bcc: a string, likely an rfc2822-formatted list of addresses
        (not validated between the client and here, XXX FIXME)
        @type bcc: L{unicode}

        @param files: a sequence of stringified storeIDs which should point at
        L{File} items.

        @param draft: a boolean, indicating whether the message represented by
        the other arguments to this function should be saved as a draft or sent
        as an outgoing message.  True for save, False for send.
        """
        if draft:
            f = saveDraft
        else:
            f = sendMail
        self._savedDraft = f(self._savedDraft, self.composer,
                             self.cabinet, self.parentMessage,
                             self.parentAction,
                             fromAddress, toAddresses,
                             subject, messageBody, cc, bcc, files)

    def getInitialArguments(self):
        return (self.inline, self.getPeople())

    def render_attachButton(self, ctx, data):
        return inevow.IQ(self.docFactory).onePattern('attach-button')

    def render_inboxLink(self, ctx, data):
        #XXX circular dependency
        from xquotient.inbox import Inbox
        return self.translator.linkTo(self.composer.store.findUnique(Inbox).storeID)

    def slotData(self):
        """
        @return: a C{dict} of data to be used to fill slots during
        rendering.  The keys in this dictionary will be::

            C{'to'}: a C{unicode} string giving a comma-delimited list
                     of addresses to which this message is directly
                     addressed.

            C{'from'}: a C{list} of C{FromAddress} instances giving
                       the possible values for the from address for
                       this message.

            C{'subject'}: the subject of this message.

            C{'message-body'}: a C{unicode} string giving the body of
                               this message.

            C{'cc'}: a C{unicode} string giving a comma-delimited list
                     of address to which this message is indirectly
                     addressed.

            C{'bcc'}: a C{unicode} string giving a comma-delimited
                      list of addresses to which this message is
                      secretly addressed.

            C{'attachments'}: a C{list} of C{dict} which the keys
                              C{'id'} and C{'name'} giving storeIDs
                              and filenames for the attachments of
                              this message.
        """
        attachments = []
        for a in self.attachments:
            attachments.append(dict(id=a.part.storeID, name=a.filename))
        addrs = {}
        for k in ('to', 'cc', 'bcc'):
            if k in self.recipients:
                # XXX This is mis-factored.  The calling code should
                # be flattening this, if it wants it flattened.
                addrs[k] = mimeutil.flattenEmailAddresses(
                    self.recipients[k])
            else:
                addrs[k] = ''

        return {'to': addrs['to'],
                'from': self._getFromAddresses(),
                'subject': self.subject,
                'message-body': self.messageBody,
                'cc': addrs['cc'],
                'bcc': addrs['bcc'],
                'attachments': attachments}

    def render_compose(self, ctx, data):
        iq = inevow.IQ(self.docFactory)
        bodyPattern = iq.onePattern('message-body')
        subjectPattern = iq.onePattern('subject')
        attachmentPattern = iq.patternGenerator('attachment')

        slotData = self.slotData()
        slotData['from'] = self._formatFromAddressSelection(slotData['from'])
        slotData['subject'] = subjectPattern.fillSlots('subject', slotData['subject'])
        slotData['message-body'] = bodyPattern.fillSlots('body', slotData['message-body'])
        slotData['attachments'] = [
            attachmentPattern.fillSlots('id', d['id']).fillSlots('name', d['name'] or 'No Name')
            for d
            in slotData['attachments']]

        return dictFillSlots(ctx.tag, slotData)

    def render_fileCabinet(self, ctx, data):
        return inevow.IQ(self.docFactory).onePattern('cabinet-iframe').fillSlots(
                    'src', ixmantissa.IWebTranslator(self.cabinet.store).linkTo(self.cabinet.storeID))

    def head(self):
        return None

registerAdapter(ComposeFragment, Composer, ixmantissa.INavigableFragment)

class DraftComposeFragment(ComposeFragment):
    """
    Composition UI initialized from a draft.
    """
    def __init__(self, composer, draft):
        ComposeFragment.__init__(self, composer)
        self._savedDraft = draft

    def slotData(self):
        """
        @see ComposeFragment.slotData
        """
        message = self._savedDraft

        attachments = []

        # i think this will suffice until we have a rich text compose
        (txt,) = list(message.impl.getTypedParts('text/plain'))
        try:
            cc = message.impl.getHeader(u'cc')
        except equotient.NoSuchHeader:
            cc = u''

        for f in message.store.query(File, File.message == message):
            attachments.append(dict(id=f.storeID, name=f.name))

        return {
            'to': message.recipient,
            # XXX WRONG - we have to save from address information somewhere
            'from': self._getFromAddresses(),
            'subject': message.subject,
            'message-body': txt.getBody(decode=True),
            'cc': cc,
            # XXX WRONG - we have to save bcc information somewhere
            'bcc': u'',
            'attachments': attachments}

class RedirectingComposeFragment(liveform.LiveFormFragment, renderers.ButtonRenderingMixin, _ComposeFragmentMixin):
    """
    A fragment which provides UI for redirecting email messages
    """
    implements(ixmantissa.INavigableFragment)

    jsClass = u'Quotient.Compose.RedirectingController'
    fragmentName = 'compose'

    def __init__(self, composer, message):
        """
        @type composer: L{Composer}

        @param message: the message being redirected
        @type message: L{Message}
        """
        self.composer = composer
        self.message = message

        self.translator = ixmantissa.IWebTranslator(composer.store)

        super(RedirectingComposeFragment, self).__init__(
            callable=self.redirect,
            parameters=(liveform.Parameter(name='fromAddress',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self.translator.fromWebID),
                        liveform.Parameter(name='toAddresses',
                                           type=liveform.TEXT_INPUT,
                                           coercer=self._coerceEmailAddressString)))

    def render_attachButton(self, ctx, data):
        """
        The template contains an "attachButton" render directive.  Return the
        empty string, as we don't want an attach button for redirected
        messages
        """
        return ''

    def _getMessageBody(self):
        """
        Get a widget which will be used to render the body of the message
        we're redirecting

        @rtype: L{ActionlessMessageDetail}
        """
        f = ActionlessMessageDetail(self.message)
        f.setFragmentParent(self)
        f.docFactory = getLoader(f.fragmentName)
        return f

    def render_compose(self, ctx, data):
        """
        Only fill in the C{from} and C{message-body} slots with anything
        useful - the stuff that L{ComposeFragment} puts in the rest of slots
        will be apparent from the L{MessageDetail} fragment we put in
        C{message-body}
        """
        return dictFillSlots(ctx.tag,
                {'to': '',
                 'from': self._formatFromAddressSelection(self._getFromAddresses()),
                 'subject': '',
                 'message-body': self._getMessageBody(),
                 'cc': '',
                 'bcc': '',
                 'attachments': ''})

    def getInitialArguments(self):
        return (self.getPeople(),)

    def redirect(self, fromAddress, toAddresses):
        """
        Ask L{Composer} to redirect C{self.message}

        @param fromAddress: the address to send from
        @type fromAddress: L{smtpout.FromAddress}

        @param toAddresses: L{mimeutil.EmailAddress} instances
        @type toAddresses: sequence
        """
        self.composer.redirect(fromAddress, toAddresses, self.message)

class ComposeBenefactor(item.Item):
    endowed = attributes.integer(default=0)
    powerupNames = ["xquotient.compose.Composer"]

registerAttributeCopyingUpgrader(ComposePreferenceCollection, 1, 2)

item.declareLegacyItem(ComposePreferenceCollection.typeName, 2,
                       dict(installedOn=attributes.reference(),
                            preferredSmarthost=attributes.text(),
                            smarthostUsername=attributes.text(),
                            smarthostPassword=attributes.text(),
                            smarthostPort=attributes.integer(),
                            smarthostAddress=attributes.text()))

def composePreferenceCollection2to3(old):
    """
    Create an L{smtpout.FromAddress} out of the appropriate
    L{userbase.LoginMethod} in the store, using L{_getFromAddressFromStore}.
    This probably should happen in the L{Composer} 2->3 upgrader, but we also
    make an L{smtpout.FromAddress} item out the smarthost attributes of C{old}
    if they are set, and we need to do that after creating the initial
    L{smtpout.FromAddress}, so it gets set as the default.

    Copy C{old.installedOn} onto the new L{ComposePreferenceCollection}
    """
    baseFrom = FromAddress(
        store=old.store, address=_getFromAddressFromStore(old.store))

    if old.preferredSmarthost is not None:
        s = old.store
        smarthostFrom = FromAddress(store=s,
                                            address=old.smarthostAddress,
                                            smtpHost=old.preferredSmarthost,
                                            smtpPort=old.smarthostPort,
                                            smtpUsername=old.smarthostUsername,
                                            smtpPassword=old.smarthostPassword)
        smarthostFrom.setAsDefault()
    else:
        baseFrom.setAsDefault()

    return old.upgradeVersion(old.typeName, 2, 3,
                              installedOn=old.installedOn)

registerUpgrader(composePreferenceCollection2to3,
                 ComposePreferenceCollection.typeName,
                 2, 3)

class Draft(item.Item):
    """
    No longer used. Exists only for upgrade purposes.
    """

    typeName = 'quotient_draft'
    schemaVersion = 2

    empty = attributes.reference()

item.declareLegacyItem('quotient_draft', 1,
                       dict(message=attributes.reference(allowNone=False)))

registerDeletionUpgrader(Draft, 1, 2)

redpajama_set_name: RedPajamaGithub


After a taste of island life in Boracay and some needed R and R in Manila, Mary and I said bye to the Philippines and hello to Singapore - the official start of Taking Asia 2013. Thanks to Mary's friend, Jin, we had a great tour guide who helped us maximize our 24 hours in Singapore (we got to SG around noon on Jan 19 and left for Melaka, Malaysia the next day after breakfast). Thanks to Jin we were really able to see all of Singapore. Although Jin took us around, brought us to the must-taste places, and ordered us local fare, I must say that the best thing I ate during my brief Singaporean visit came from a little hawker cart hidden in the food court across from the Golden Mile Tower Bus Terminal.
Because Mary and I had arrived at the bus terminal early, we decided to explore the area which led us to a pseudo food court of hawker stalls similar to the more infamous one on Maxwell street. Since we no longer had our friend to translate, explain, or order food for us, we did what any intelligent person would do: We found the hawker stall with the most people in line and ordered two plates.
Mary and I have a theory that anything that has a long line for it must be worth waiting for. Also, this hawker stall had some posters above it which we believe indicated that the hawker stall was featured on some Singaporean television show, so naturally Mary and I trusted this hawker stall. To this day, we're not very sure what we ordered and ate, but it was our lucky day that we arrived at the bus terminal early and found this little gem.
Food notes: Fried Kway Teow is a noodle dish stir fried in a dark soy sauce with spices, seafood, and vegetables. Traditionally, fried Kway Teow is stir fried in pork lard, however this particular hawker stall prepares a very tasty and healthy fried Kway Teow. No pork lard is used and minimal vegetable oil is used for cooking. The noodles used in this dish are very appropriate because the thick flat rice noodles soak up the richness and favors of the sauce. I really enjoyed the combination of cockles and silvery fish (dried anchovies?) and their contrast to the sweetness of the dark soy sauce. I don't think this is the best Fried Kway Teow in Singapore, but it's definitely a healthier and tasty version. A must try if you're in the area or early for your bus to Malaysia!