text:
Q: Double regex search loop makes problems I'm writing a code to send a values (one by one) to send function which will send it as msg to me. I have a two lists allowed and denied for regex keywords which are allowed in re.search and which are denied. I'm scraping an elements from web, trying to filter it with re.search allowed which works, and send it to the second function where I'm trying to filter it second time. This time filter out string which contains denied words. Here Is the problem. When I'm doing a loop one time allowed it goes good, but when I'm trying to do the second loop for denied in loop, it sending the string two times to my send function. How could I change the code, to make it work please?
Here Is the code
allowed = ["pc", "FUJITSU", "LIFEBOOK", "win" "Windows",
            "PC", "Linux" "linux", "HP", "hp", "notebook", "desktop",
            "raspberry", "NEC", "mac", "Mac", "Core"]
denied = ["philips", "samsung"]
used = set()

source = requests.get("https://jmty.jp/aichi/sale-pcp").text
soup = BeautifulSoup(source, 'lxml')

def skype_login(user, password):
    sk = Skype(user, password)
    return(sk)

def send(sk, title, address, price, town, topic='Not'):
    for c in sk.chats.recent():
        chat = sk.chats[c]
        if hasattr(chat, 'topic') and chat.topic == topic:
            chat.sendMsg(f'Some string {title} \n {price} \n \n {town} \n \n URL: {address}' )
            break
    sleep(1)
    chat.sendMsg("Additional Message")

def jimoti(sk):
    global used
    for h2 in soup.find_all('div', class_='p-item-content-info'):
        title = h2.select_one('.p-item-title').text
        address = h2.select_one('.p-item-title').a["href"]
        price = (h2.select_one('.p-item-most-important').text).replace("円", "").replace("\n", "").replace(",", "")
        price = int(price)
        town = h2.select_one('.p-item-supplementary-info').text
        if price < 2000 and title not in used:
            used.add(title)
            for pattern in allowed:
                print(pattern)
                if re.search(pattern, title):
                    second(sk, title, address, price, town)
                    break

def second(sk, title, address, price, town):
    sk = sk
    title = title
    address = address
    price = price
    town = town
    # for prh in denied:   # Here it makes the problem
    #     print(prh)
    #     if re.search(prh, title):
    #         break
    #     else:
    send(sk, title, address, price, town)

if __name__ == '__main__':
    sk = skype_login('username', 'pass')
    while True:
        jimoti(sk)
        sleep(randint(11,20))

A: If I read your code correctly you had this set up (pseudo-python):
for bad in denied:
    if bad exists in string:
        break
    else:
        send message

This means that for every denied word that isn't found, you send the message. So if there are two bad words and it doesn't contain either, then you'll send it twice.
You can easily fix this by just having a bool
def second(sk, title, address, price, town):
    # I'm not sure why you do this, it's 100% unnecessary
    # sk = sk
    # title = title
    # address = address
    # price = price
    # town = town
    is_ok = True
    for prh in denied:
         if re.search(prh, title):
             is_ok = False
             break
    if is_ok:
        send(sk, title, address, price, town)

redpajama_set_name: RedPajamaStackExchange


As a casual, unbiased observer, I can tell you that folks exercising in Mumbai's open air at any time of the day, during the wonderful months of April, May or for that matter even October, are brave folks. They are the kind of recruits a commando team would aspire to have; relentless, persevering and undaunted by the rigors of a Mumbai summer. I drive past a walking trail with a wildly popular open-air gym and gaze in wonder at these striking examples of human grit and determination.
Let me be more specific about the Mumbai summer. Temperature-wise, we used to be pretty cool in comparison to say Nagpur, Ahmedabad or Delhi, but nowadays Mumbai temperatures are casually touching the dreaded 4o degrees celsius mark. Add to this the additional scene changing aspect of humidity and we have a killer formula! A formula that can siphon your energy and bring you to your knees, crawling towards the nearest fan/AC in no time.
I have observed that summers are the ideal time to host international cricket matches. It is one of those plots to legitimately slay your opponents using the advantage of your home turf's life-sapping climatic conditions. If we natives find the heat oppressive imagine what it would do to people accustomed to temperate weather?
At home, the most coveted seat during these months is the one directly under the ceiling fan. One that everyone fights to occupy at all times. The doorbell rings. I warily rise from this besotted seat and make my way towards the door, away from the radius of the fan coverage and the floodgates break out...sweat pouring from every goddamned pore. By the time I am staggering back to my sanctuary under the fan, the throne has been usurped by the offspring. A few emotional words reasserting the pains I went through delivering his big fat head, washing countless nappies and sleepless nights spent turning over the cold compresses on his hot forehead...and he finally relents and I re-usurp the throne.
You see I am conscientious about A.C usage, what with the ceiling-hitting electricity bills. But there is only so much self-control one can have. A few days into this kind of ill treatment from the weather gods and I buckle down under the pressure; the A.C is on 24x7, mind you, only in one room of the house and that is where you'll find the whole family, alongwith each one's set of inseparable mobiles and chargers. Doorbells go unattended, landline phone calls unheard, but honestly? Who calls or rings when the world is scorching at 38º celsius and rising with 150% relative humidity?
Summers are the time when schools declare holidays, considerate to the fact that humans can endure either mental or physical trauma, only one at a time. Of course moms are exceptions to this rule, what with us being called super-humans or demons.
Main meals aren't the only thing your summer cooking entails. You can't believe the amount of munchies and the gallons of beverages the kids and their friends can put away when they are upto various fun "activities" like playing online games or staring at the screen all day. Many moms make hay while the sun shines and are upto their elbows in pickle, jam and goodie-making adventures. I've indulged in such ventures too and beat a hasty retreat when I realized that the kitchen is a place of no reprieve or escape.
By the time I am done ladling out the last batch of goodies and stirring a fresh bucketful of homemade lemonade, I hear a clang. The clang of a large, empty aluminium drum hitting the floor. The pack of wolves, they call kids has managed to polish off that huge mound of goodies, emptied the juice barrel while spilling half of it, before I even came out of the kitchen! That does it! Kurkure, Lays, Tang and whatsoever junk it is for you folks!
Summers are not always about holidays to hill-stations, exotic trips abroad....and family get-togethers? Sadly, they are not so common today as grandparents are older and less agile than they used to be, folks live continents apart and maybe, just maybe because hearts aren't as large as the homes we have today.
As the kids have grown older, summers are now all about exams and coaching schedules, designed to traumatize and distress students. For some pessimistic reason, most graduate/college exams are held in the month of May! Kids whiz in and out of home, to and from classes or test series. So now you are holding fort, ensuring they are sufficiently hydrated and nourished, carrying all their documents, not over-stressed or demotivated, ready and alert to pick up your purse and disapparate in a jiffy to where you might be needed.
Holidays are a nightmare to plan with conflicting available dates, snarky dismissals and fussy stipulations over destinations being insta-worthy over everything else!
Then I ponder, how will summers be when these birdies fly away from the nest. No extra cooking, cleaning, no screaming kids, no yelling back from me, books not splayed all over, beds neatly made, no toys lying on the floor to trip over, the throne under the fan all mine...sigh and oh so sad...boohoo! Life!
We oldies would probably plan a getaway to cheer ourselves up. We'd start conversations dedicated to the hot, sultry weather, global warming, progress to how things have changed so fast and end up swapping stories of summers gone by.


Cancer is mainly characterized by the non-stop division of cells and spread into the tissues around them. Human cells are intended to grow and divide to develop new cells, as required by the body. Damaged or old ones die and new cells replace them. But in cancer, cells behave abnormally, as damaged or old cells continue to thrive and new cells start to develop in areas where they aren't meant to grow. The result of their non-stop growth is called tumor. There can be benign or malignant tumors, the latter of which would be the type to invade or spread into surrounding tissues.
The most common types of cancer are breast cancer, lung cancer, prostate cancer, rectal cancer, and colon cancer. Melanoma and non-Hodgkin lymphoma, as well as pancreatic, leukemia, and endometrial cancers are quite common, too.
Early detection is important in treating cancer. It helps if you are conscious of your body's changes so you will know when to go see a doctor. The usual symptoms associated with cancer are long-lasting sore throat, change in bowel movement, difficulty swallowing, indigestion, lump in the breast or any other part of your body, unusual discharge or bleeding, change in mole or wart, and nagging cough.
Unfortunately, the fear that seems to come inherently when you mention the word "cancer" is made a few times worse by several misconceptions, several of which will be discussed here.
1. Eating sugar aggravates cancer.
This is not true. Research shows that while cancer cells love sugar (glucose) more than regular cells, no studies have supported that consuming sugar will worsen cancer, or not consuming it will improve one's cancer diagnosis. But a sugar-rich diet will cause excess weight gain, which may lead to obesity, a risk factor for some types of cancer.
2. Cancer risk depends on family history.
Most types of cancer are not caused by genetics. Cancer Research UK said that most cancers are developed due to gene faults that become apparent during a person's lifetime, probably due to aging or exposure to certain factors, such as sunlight or cigarette smoke. These genes, however, are not inherited and cannot be inherited by your children. There are a few cases where family history may show that some people have a faulty gene, which increases their risk of developing cancer, more than most people. If your family history shows that members were afflicted with specific types of cancer, early detection is important.
3. Tumor biopsy or cancer surgery can spread cancer throughout the body.
There is an extremely low risk that cancer will spread to normal parts of the body during surgery. Surgeons take precautionary steps to prevent this during a surgery or biopsy, such as using different surgical tools for the affected and unaffected areas.
4. Phones can cause cancer.
The National Cancer Institute said that the best research studies disprove this claim. Cancer cells develop due to genetic mutations. The low-frequency energy emitted by phones cannot damage genes.
5. Dental fillings have mercury that can escape and reach the organs, causing cancer and other diseases.
There is no proof to date that amalgam fillings, which can contain silver, copper, tin, and mercury, can have negative health effects. The only risk there is would be allergic reactions or some local side effects. If you're worried about mercury, there are other alternatives to amalgam fillings.
6. Applying deodorants right after shaving can cause breast cancer.
According to a study published by the Journal of the National Cancer Institute in 2002 that focused on the link between antiperspirants or deodorants and breast cancer, the results did not show higher risk of cancer among the 1,606 women subjects. The only risk these products presented are in the form of skin irritation.
7. All cancers show symptoms.
Many types of cancer are asymptomatic. They do not show symptoms at all, which is why screening is a must-do. Screening for bowel, breast or cervical cancer can save your life. When you reach 50, you need to undergo bowel cancer screening every two years. Fifty to 74-year-old women also need to have a mammogram every two years for breast cancer screening. Women who are 18 to 70 and have been sexually active should undergo a Pap test every two years.
For instance, in the case of breast cancer, an ultrasound procedure may need to be done on women under 30 before mammography in order to test palpable breast lump. This procedure is quite simple as you will only be required to not wear jewelry and dress up in loose, comfortable clothing. During the procedure, you will be asked to undress from the waist up and to put on a gown, lie on the examination table, and have a warm water-based ultrasound gel to aid the transducer in making contact with the body and remove any air pockets between the skin and the transducer that can possibly block the sound waves from getting into your body. The sonographer will move the transducer back and forth over the tested area until the images are captured. It only takes around 30 minutes to complete a breast ultrasound.
Early diagnosis can improve your cancer survival. Go get screened now.


We founded Pinnacle in 2000 with the specific goal of creating a culture where client service really means something. Our inspiration came from the dwindling number of community-focused banks and the degradation of service that happens when they disappear. We strove to be a different kind of bank and built a business model from the ground up to provide a truly great client experience.
For us, that means a lot more than just a friendly smile when you walk into an office. It's about meeting your needs, easing your transactions and never pressuring you into a product or service. It's fundamental to every action we take and how our company functions.
Here are a few ways we've removed the irritants people tell us they experience at other banks.
We recruit proven talent so you don't have to work with trainees. And once they start serving you, we keep them here so you don't have to explain your finances to a new advisor.
We can't promise we'll never make a mistake, but we do promise to be vigilant about finding, reporting and fixing problems. Your financial advisor will get to know you so well that he or she can offer products and services to meet your needs and improve your finances.
Your advisor is empowered to make decisions at the local level, without having to ask permission from headquarters. This means no bureaucracy, hassles or long waits.
We are focused on providing value, not on charging nuisance fees. Pricing is based on the breadth of our relationship with you.
Experience the Pinnacle difference when you contact us. If you have any questions about the information on this website, please check our frequently asked questions or reach out to us. When you call our offices, you get a real person on the phone, not a menu.


text:
Crispin: Cross of Lead Fear
As judge, jury, and willing executioner, Aycliffe had but to give the word, and the offender's life was forfeit. We all lived in fear of him. (1.13)
There are a lot of ways to get people to follow you, but Aycliffe chooses fear. Stromford is a place entirely governed by fear, which explains why Crispin is so afraid all the time: He's never known anything different.
Transfixed by fear, I stood rooted to the spot. Not until he came close to me did I turn and flee. (2.27)
As Aycliffe approaches, Crispin finds he can't move. Is Aycliffe's power over Crispin based simply on his power to kill, or does he have some other hold over him?
I did try to accept my life, but unlike our perfect Jesus, I was filled with caution and suspicion, always expecting to be set upon or mocked. In short, I lived the life of the shunned, forever cast aside, yet looking on, curious as to how others lived. (3.7)
Poor Crispin. It's hard to make friends when all your experience tells you you'll be attacked.
Only then did I creep toward the church, alone, uncertain, and very full of fear. (7.23)
Considering that John Aycliffe has had people out searching for Crispin to kill him all day, all of these feelings sound completely reasonable, if not that big of a leap from where Crispin's been since page one.
Startled, I stopped. Then I became afraid. After what I had witnessed in the village, I could not believe I was hearing a living voice. (16.1)
If this were an episode of Scooby-Doo, it would definitely be a ghost voice coming from the abandoned amusement park instead of a living voice coming from an abandoned village. Lucky for Crispin, this is not Scooby-Doo.
I was in such a fright I could hardly breathe. Tears were coming hard. "I… I swear," I choked out. (18.15)
Crispin spends most of the book terribly afraid, and now Bear's holding him down and making him swear service. This kid cannot catch a break.
He shrugged. "I never fear for myself."
"I make my own choices."
"Then do you fear for me there?"
"Perhaps." (29.35-39)
Well, that's interesting. Why would the ability to make his own choices make Bear not feel afraid, especially when many of his choices are the kind that tend to lead to nasty deaths in 1377?
Bear put a hand on my shoulder. "Crispin," he said softly, "try to show less worry. The worst disguise is fear." (34.1)
While they are trying to sneak past guards who are looking for Crispin, we get the feeling that Bear uses the word "disguise" both literally and figuratively. What might he mean?
Frantic, but hardly knowing what to do—go to the aid of Bear or take care of myself—I hesitated. Guilt and fear engulfed me equally. (46.19)
Just when Crispin was starting to feel less constantly afraid, he gets caught with Bear's group of treasonous political cronies, and he feels it's his fault they've been caught, adding guilt to his list of fun emotions.
"Your connection gives no honor. No position. What someone fears is not you, but that you will be used. Can't you see it? Your noble blood is the warrant for your death. It will remain so till it flows no more." (49.46)
Finally, the revelation that gives Crispin some power and leverage: John Aycliffe and Lady Furnival are afraid of him. And that means he actually has some power over them.

redpajama_set_name: RedPajamaCommonCrawl


text:
Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda
Thalassinidea) and the potential of burrow counts as an indirect measure of population density
D. P. McPhee, Greg A. Skilleter
The thalassinidean shrimp Trypea australiensis (the yabby) commonly occurs on intertidal sandflats and subtidal regions of sheltered embayments and estuaries along the east coast of Australia and is harvested commercially and recreationally for use as bait by anglers. The potential for counts of burrow openings to provide a reliable indirect estimate of the abundance of yabbies was examined on intertidal sandflats on North Stradbroke Island (Queensland, Australia). The relationship between the number of burrow openings and the abundance of yabbies was generally poor and also varied significantly through time, casting doubt on previous estimates of abundance for this species based on unvalidated hole counts. Spatial and temporal variation in population density, the size at maturity and the reproductive period of the yabby were also assessed. Except for an initial peak in abundance as a result of recruitment, the density of yabbies was constant throughout the study but considerably less than that estimated from a previous study in the same area. Ovigerous females were recorded at 3 mm carapace length (CL) which is smaller than previously recorded for this species and thalassinideans in general. Small ovigerous females were found throughout the study, including the summer months, which is unusual for thalassinideans in the intertidal zone. It was hypothesised that in the intertidal zone, small female yabbies may be able to balance the metabolic demands of reproduction and respiration at higher temperatures than can larger females allowing them to reproduce in the warmer months.
Hydrobiologia
https://doi.org/10.1023/A:1021342306936
Published - 1 Oct 2002
littoral zone
intertidal environment
size at maturity
temporal variation
McPhee, D. P., & Skilleter, G. A. (2002). Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda: Thalassinidea) and the potential of burrow counts as an indirect measure of population density. Hydrobiologia, 485, 133-141. https://doi.org/10.1023/A:1021342306936
McPhee, D. P. ; Skilleter, Greg A. / Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda : Thalassinidea) and the potential of burrow counts as an indirect measure of population density. In: Hydrobiologia. 2002 ; Vol. 485. pp. 133-141.
@article{d07b6615b3d24380bab5c84b203a5762,
title = "Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda: Thalassinidea) and the potential of burrow counts as an indirect measure of population density",
abstract = "The thalassinidean shrimp Trypea australiensis (the yabby) commonly occurs on intertidal sandflats and subtidal regions of sheltered embayments and estuaries along the east coast of Australia and is harvested commercially and recreationally for use as bait by anglers. The potential for counts of burrow openings to provide a reliable indirect estimate of the abundance of yabbies was examined on intertidal sandflats on North Stradbroke Island (Queensland, Australia). The relationship between the number of burrow openings and the abundance of yabbies was generally poor and also varied significantly through time, casting doubt on previous estimates of abundance for this species based on unvalidated hole counts. Spatial and temporal variation in population density, the size at maturity and the reproductive period of the yabby were also assessed. Except for an initial peak in abundance as a result of recruitment, the density of yabbies was constant throughout the study but considerably less than that estimated from a previous study in the same area. Ovigerous females were recorded at 3 mm carapace length (CL) which is smaller than previously recorded for this species and thalassinideans in general. Small ovigerous females were found throughout the study, including the summer months, which is unusual for thalassinideans in the intertidal zone. It was hypothesised that in the intertidal zone, small female yabbies may be able to balance the metabolic demands of reproduction and respiration at higher temperatures than can larger females allowing them to reproduce in the warmer months.",
author = "McPhee, {D. P.} and Skilleter, {Greg A.}",
doi = "10.1023/A:1021342306936",
journal = "Journal of Aquatic Ecosystem Stress and Recovery",
McPhee, DP & Skilleter, GA 2002, 'Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda: Thalassinidea) and the potential of burrow counts as an indirect measure of population density', Hydrobiologia, vol. 485, pp. 133-141. https://doi.org/10.1023/A:1021342306936
Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda : Thalassinidea) and the potential of burrow counts as an indirect measure of population density. / McPhee, D. P.; Skilleter, Greg A.
In: Hydrobiologia, Vol. 485, 01.10.2002, p. 133-141.
T1 - Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda
T2 - Thalassinidea) and the potential of burrow counts as an indirect measure of population density
AU - McPhee, D. P.
AU - Skilleter, Greg A.
N2 - The thalassinidean shrimp Trypea australiensis (the yabby) commonly occurs on intertidal sandflats and subtidal regions of sheltered embayments and estuaries along the east coast of Australia and is harvested commercially and recreationally for use as bait by anglers. The potential for counts of burrow openings to provide a reliable indirect estimate of the abundance of yabbies was examined on intertidal sandflats on North Stradbroke Island (Queensland, Australia). The relationship between the number of burrow openings and the abundance of yabbies was generally poor and also varied significantly through time, casting doubt on previous estimates of abundance for this species based on unvalidated hole counts. Spatial and temporal variation in population density, the size at maturity and the reproductive period of the yabby were also assessed. Except for an initial peak in abundance as a result of recruitment, the density of yabbies was constant throughout the study but considerably less than that estimated from a previous study in the same area. Ovigerous females were recorded at 3 mm carapace length (CL) which is smaller than previously recorded for this species and thalassinideans in general. Small ovigerous females were found throughout the study, including the summer months, which is unusual for thalassinideans in the intertidal zone. It was hypothesised that in the intertidal zone, small female yabbies may be able to balance the metabolic demands of reproduction and respiration at higher temperatures than can larger females allowing them to reproduce in the warmer months.
AB - The thalassinidean shrimp Trypea australiensis (the yabby) commonly occurs on intertidal sandflats and subtidal regions of sheltered embayments and estuaries along the east coast of Australia and is harvested commercially and recreationally for use as bait by anglers. The potential for counts of burrow openings to provide a reliable indirect estimate of the abundance of yabbies was examined on intertidal sandflats on North Stradbroke Island (Queensland, Australia). The relationship between the number of burrow openings and the abundance of yabbies was generally poor and also varied significantly through time, casting doubt on previous estimates of abundance for this species based on unvalidated hole counts. Spatial and temporal variation in population density, the size at maturity and the reproductive period of the yabby were also assessed. Except for an initial peak in abundance as a result of recruitment, the density of yabbies was constant throughout the study but considerably less than that estimated from a previous study in the same area. Ovigerous females were recorded at 3 mm carapace length (CL) which is smaller than previously recorded for this species and thalassinideans in general. Small ovigerous females were found throughout the study, including the summer months, which is unusual for thalassinideans in the intertidal zone. It was hypothesised that in the intertidal zone, small female yabbies may be able to balance the metabolic demands of reproduction and respiration at higher temperatures than can larger females allowing them to reproduce in the warmer months.
U2 - 10.1023/A:1021342306936
DO - 10.1023/A:1021342306936
JO - Journal of Aquatic Ecosystem Stress and Recovery
JF - Journal of Aquatic Ecosystem Stress and Recovery
McPhee DP, Skilleter GA. Aspects of the biology of the yabby Trypea australiensis (Dana) (Decapoda: Thalassinidea) and the potential of burrow counts as an indirect measure of population density. Hydrobiologia. 2002 Oct 1;485:133-141. https://doi.org/10.1023/A:1021342306936
10.1023/A:1021342306936


MONACO, Oct. 09, 2018 — Scorpio Tankers Inc. (NYSE: STNG) ("Scorpio Tankers," or the "Company") announced today that it has priced its previously announced underwritten public offering (the "Offering") of 162,162,163 common shares, par value $0.01 per share ("Common Shares"), at $1.85 per share. As part of this offering, Scorpio Bulkers Inc. (NYSE:SALT), or SALT, and Scorpio Services Holding Limited, or SSH, each a related party and members of the Scorpio group of companies, have agreed to purchase common shares at the public offering price 54,054,054 and 5,405,405 common shares, respectively.
The Offering is expected to close on October 12, 2018, subject to customary closing conditions. The net proceeds of the Offering are expected to be used for general corporate purposes. The Company also intends to grant the underwriters a 30-day option to purchase up to an additional 24,324,324 Common Shares.BofA Merrill Lynch and BTIG, LLC are acting as joint book-running managers, Clarksons Platou Securities, Inc. is acting as Senior Manager in the Offering and Seaport Global Securities is acting as a Manager.Seward & Kissel LLP acted as legal counsel for Scorpio Tankers Inc. and Fried, Frank, Harris, Shriver & Jacobson LLP acted as legal counsel for the underwriters.This press release shall not constitute an offer to sell or the solicitation of an offer to buy these securities, nor shall there be any sale of these securities, in any state or other jurisdiction in which such offer, solicitation or sale would be unlawful prior to registration or qualification under the securities laws of any such state or other jurisdiction. The Offering is being made only by means of a prospectus supplement and accompanying base prospectus. A registration statement relating to these securities was filed with the U.S. Securities and Exchange Commission (the "SEC") and is effective. A final prospectus supplement related to the Offering will be filed with the SEC and will be available on the SEC's website located at www.sec.gov. When available, copies of the prospectus supplement and the accompanying base prospectus relating to the Offering may be obtained from BofA Merrill Lynch, NC1-004-03-43, 200 North College Street, 3rd floor, Charlotte, NC 28255-0001, Attention: Prospectus Department, (or by email at [email protected]), BTIG, 825 3rd Avenue, 32nd Floor, New York, NY10022, Attention: Equity Capital Markets, (or by phone at 212-593-7555, or by email at [email protected]), Clarksons Platou Securities, Inc., 280 Park Avenue, 21st Floor, New York, NY 10017, (or by phone at (212) 317-7080, or by e-mail at [email protected]) or Seaport Global Securities, Inc., 360 Madison Avenue New York, NY 10017.About Scorpio Tankers Inc.Scorpio Tankers is a provider of marine transportation of petroleum products worldwide. The Company currently owns or finance leases 109 product tankers (38 LR2 tankers, 12 LR1 tankers, 45 MR tankers and 14 Handymax tankers) with an average age of 3.2 years and time or bareboat charters-in 13 product tankers (one LR2 tanker, five MR tankers and seven Handymax tankers). Additional information about the Company is available at the Company's website www.scorpiotankers.com, which is not a part of this press release.Forward-Looking StatementsMatters discussed in this press release may constitute forward-looking statements. The Private Securities Litigation Reform Act of 1995 provides safe harbor protections for forward-looking statements in order to encourage companies to provide prospective information about their business. Forward-looking statements include statements concerning plans, objectives, goals, strategies, future events or performance, and underlying assumptions and other statements, which are other than statements of historical facts. Scorpio Tankers desires to take advantage of the safe harbor provisions of the Private Securities Litigation Reform Act of 1995 and is including this cautionary statement in connection with this safe harbor legislation. The words "believe," "expect," "anticipate," "estimate," "intend," "plan," "target," "project," "likely," "may," "will," "would," "could" and similar expressions identify forward-looking statements.The forward-looking statements in this press release are based upon various assumptions, many of which are based, in turn, upon further assumptions, including without limitation, management's examination of historical operating trends, data contained in the Company's records and other data available from third parties. Although management believes that these assumptions were reasonable when made, because these assumptions are inherently subject to significant uncertainties and contingencies which are difficult or impossible to predict and are beyond the Company's control, there can be no assurance that Scorpio Tankers will achieve or accomplish these expectations, beliefs or projections. The Company undertakes no obligation, and specifically declines any obligation, except as required by law, to publicly update or revise any forward-looking statements, whether as a result of new information, future events or otherwise.In addition to these important factors, other important factors that, in the Company's view, could cause actual results to differ materially from those discussed in the forward-looking statements include, unforeseen liabilities, future capital expenditures, revenues, expenses, earnings, synergies, economic performance, indebtedness, financial condition, losses, future prospects, business and management strategies for the management, expansion and growth of the Company's operations, risks relating to the integration of assets or operations of entities that we have or may in the future acquire and the possibility that the anticipated synergies and other benefits of such acquisitions may not be realized within expected timeframes or at all, the failure of counterparties to fully perform their contracts with the Company, the strength of world economies and currencies, general market conditions, including fluctuations in charter rates and vessel values, changes in demand for tanker vessel capacity, changes in the Company's operating expenses, including bunker prices, drydocking and insurance costs, the market for the Company's vessels, availability of financing and refinancing, charter counterparty performance, ability to obtain financing and comply with covenants in such financing arrangements, changes in governmental rules and regulations or actions taken by regulatory authorities, potential liability from pending or future litigation, general domestic and international political conditions, potential disruption of shipping routes due to accidents or political events, vessels breakdowns and instances of off-hires, and other factors. Please see Scorpio Tankers' filings with the SEC for a more complete discussion of certain of these and other risks and uncertainties.Contact InformationScorpio Tankers Inc.


text:
Home » NEWS » Prentiss County Development Association looking for director
Prentiss County Development Association looking for director
Posted by: Lynn Lofton in NEWS June 21, 2004
BOONEVILLE — Applications are being taken here until July 1 for the executive director position with the Prentiss County Development Association (PCDA). It's been vacant since the untimely death of Doug "Moose" Mansell in April. A search committee of five PCDA members was appointed to fill the vacancy.
As the only person to hold the top job since the association was formed in 1973, Mansell is closely identified with the county's development, and members say replacing him is no easy task.
The organization's charter president, former State Sen. Charles Walden, said, "Obviously, it will be hard to fill Doug's shoes. The job molded around him, and we let him unfold in the position. He was not interested in leaving for any other job or place."
Walden says the committee hopes to find an executive director who, like Mansell, will have a committed, personal interest in Prentiss County. He feels it may be hard to find that level of commitment.
"Because we wanted confidentiality, applications are going to a post office box, and we will not know who has applied until the committee gets together after July 1," he said.
Another search committee member, John Haynes, said, "We are looking for someone who can sell Prentiss County and has the ability to communicate inside and outside the county. That person can not be isolated." Haynes, the president of Farmers & Merchants Bank in Baldwyn, believes the new executive director must be aggressive and work on a regional basis.
Mansell, Haynes pointed out, was instrumental in establishing two industrial parks in the county, one in Booneville and one in Baldwyn, which is partially in Lee County. The late executive director had most recently been successful in bringing the new $3-million Flexible Foam plant to Baldwyn employing 60 people. He said Mansell was involved with the furniture industry on a national level.
Other committee members include Judy Ramey, Travis Childers and Ronny Rowland. The basic function of the PCDA's executive director is to perform as the chief operating and administrative officer of the association.
The job description's scope states that he/she should possess the courage, experience, vision, leadership skills, integrity and determination necessary to create dynamic opportunities for Prentiss County. Those are words that many here would say described Mansell who was 57 and one of the longest-serving economic development leaders in the state.
Shortly after Mansell's death, Mississippi House of Representatives Speaker Billy McCoy told the Northeast Mississippi Daily Journal,
"There was absolutely no economic development or government project of any tangible nature that he wasn't involved in with me, whether I was taking a lead role or a small part."
Plans for the 1987 Four-Lane Highway program started in a meeting in Mansell's office, McCoy said.
Marshall Dickerson, PCDA board of directors president, said Mansell did an outstanding job and left a strong example for those in the foundation to follow. "Doug was always excited about what he was doing and he was very knowledgeable," he added.
Northeast Mississippi Community College public information director Barbara Shackelford, said, "Moose was a very valuable part of our community. We're going to miss him for a lot of reasons."
The whole county owes a debt of gratitude to Mansell, said PCDA search committee member and Prentiss County chancery clerk Travis Childers.
"Under his direction and guidance, we saw a lot of growth in our county," he said.
Susan Lambert, Mansell's executive assistant, worked with him for 18 years and said there's no way to list all he did. "He did not take credit for what he did," she said, "but stepped aside and let others have it."
Mansell was a native of Tishomingo County and received a bachelor's degree in industrial technology from Mississippi State University. He served in the U.S. Air Force during the Vietnam War. His development career began with the Northeast Planning and Development District where he worked with industrial site locations.
When he came to Prentiss County as the PCDA's first executive director, there were only six industries employing 900 people in textile and shoe production. Since that time, the industrial base has grown to 32 companies that employ more than 3,500 people.
The PCDA's goal as pursued by Mansell was to solicit diversity of employment opportunities for the county's workforce. He was working on a speech that was found on his desk that stated that he felt that goal has been reached as now the county has people working in the furniture, plastics, food processing, metal trade and automotive industries. Included among those industries are three Fortune 500 companies — Caterpillar, Parker Hannifin and Leggett & Platt. During this time, Site Selection magazine named Booneville one of the top 100 industrial sites in America.
Prentiss County, population 25,556, fared well in a comparison study with other Mississippi counties of similar size that was conducted by Mansell. As of December 2003, there were 3,510 manufacturing jobs and an unemployment rate of 4.5%. In 2002, the average weekly wage was $455 and in 64.9% of the population were high school graduates, he found. Mansell's notes clearly indicated his enthusiasm and dedication to the county. "The Prentiss County Development Association will continue to solicit employment opportunities for our workforce," he wrote.
"Industrial development within a community does not happen by accident. Only through the efforts of community leaders and strong financial support of any active development program can economic prosperity prevail."
Contact MBJ contributing Lynn Lofton at mbj@msbusiness.com.
Previous: Sales Moves
Next: Unpacking a culture clash…


Brannen Cooper Handmade Flute #4346 - handmade sterling silver Modern Cooper style headjoint and body, sterling silver (.925) mechanism, soldered tone holes, French (open hole), pointed key arms,offset G, Split E mechanism, C# trill, A=442, .014 tubing, Brogger Mechanik, Brogger Acoustic, C and B footjoint. Handmade in USA. Pre-owned.


text:
Day 3: The Holidays According to Kristin
November 23, 2016 by KristinLeave a Comment on Day 3: The Holidays According to Kristin
So Thanksgiving is tomorrow and I'm sure we're all preparing to stuff our faces! Some of us might even be prepping our Black Friday shopping extravaganza!
My Thanksgiving traditions have changed a bit over the years because we've had some losses in the family, but there are still little things we can do to start new ones, right?
About a year ago my brother sent me a text with a recipe for a dessert that looked absolutely delicious. It's like a pumpkin/pudding/cool whip pan of Heaven! We all loved it so much, I decided to make it for my office at Halloween. Let's just say…don't make it for your office potlucks if you don't want it being requested every single time! haha.
This is one dessert I've enjoyed making with my niece because there are four layers to it, and she loves being able to say she helped contribute to the awesomeness.
So here is the link to Lil' Luna's Pumpkin Delight Dessert. Try it out and let me know if you love it as much as we do! Also, let me know what your favorite Thanksgiving dishes are!
From my family to yours…have a VERY Happy Thanksgiving! 🙂
HANDS OF STONE DVD Release 11/22
November 23, 2016 November 23, 2016 by thisfunktionalartfreakLeave a Comment on HANDS OF STONE DVD Release 11/22
In celebration of the DVD release of HANDS OF STONE on November 22 we honor the man who was called "Manos de Pierda" Roberto Duran.
Roberto Duran can arguably be considered the best lightweight boxer of the 20th century, and one of the greatest boxers of all time.
With a career that spanned over three decades and world titles in four different weight classes, Duran was coined "Manos de Pierta" or "Hands of Stone" for his devastating punching power.
By the time the Hall of Famer retired, he had accumulated an astonishing record of 103 victories of which 70 were knockouts for a 68% knockout ratio.
"Hands of Stone" premiered at the Cannes Film Festival May 16, 2016 and follows the life of Roberto Duran (Edgar Ramirez), the Panamanian fighter who made his professional debut in 1968 as a 16 year-old and retired in 2002 at the age of 50.
In June 1980, he defeated Sugar Ray Leonard (Usher Raymond) to capture the WBC Welterweight title, but shocked the boxing world by returning to his corner in their November rematch, famously saying the words "no mas" (no more.)
The film is directed and written by Jonathan Jakubowicz.
BAD SANTA 2 is Coming to Town
November 23, 2016 November 23, 2016 by thisfunktionalartfreakLeave a Comment on BAD SANTA 2 is Coming to Town
In Theaters Nov. 23
Written by Angela Maria Ortiz Sinclair (SeFijaOnline.com)
"Bad Santa 2" returns Academy Award-winner Billy Bob Thornton to the screen as America's favorite anti-hero, Willie Soke; and joining him is, Tony Cox, Brett Kelly, and Academy Award, Golden Globe and Emmy-winner Kathy Bates as Willie's horror story of a mother, Sunny Soke, and Christina Hendricks of Mad Men fame.
It has been thirteen years since the first "Bad Santa" and I don't remember much of it and I will have to re-watch it.
This one has a few laughs and at times it made you pause and think.
Yes, it's over the top and everyone looks like they are all in on the joke.
We got to sit in on a q&a with the main cast and director Mark Waters and we had some good laughs.
Now you can listen in too. Check out the audio from the press day HERE.
Also starring Jenny Zigrino, Ryan Hansen, and Cristina Rosato.
Check out the Red Band trailer, it's a wild one.


, we choices the top libraries with ideal resolution exclusively for you all, and now this pictures is one among photos selections inside our greatest images gallery with regards to Write Your Resume for Free. Lets hope you'll like it.
placed by means of designlover in 2018-08-23 11:23:41. To find out most photos throughout Write Your Resume for Free photos gallery you should abide by this specific hyperlink.
Never forget to browse the following image album, which also includes the Write Your Resume For Free On Resume Sample Line Valid The Perfect Resume Template Free Resume picture showed above. If you have any thoughts, questions or just want to say hello to other people, please do not hestitate to submit your opinion/ideas via the following comment form.


text:
New Hampshire, Union
Edmund Dascomb, 2nd New Hampshire
admin on May 19, 2017 December 1, 2017
The Warrior Poet Camp Constitution, the point of enlistment for New Hampshire's early volunteers. A History of the Second Regiment, New Hampshire Volunteer Infantry, in the War of the Rebellion, Internet Archive.
Edmund Dascomb was born on November 11, 1837 to Samuel and Rebekah in Hillsborough, New Hampshire, the youngest of five children. Dascomb grew up in the rural regions of New Hampshire that surrounded Concord, the capital of the Granite State. Dascomb attended high school at Thetford Academy.Sshowing a great value for education from a young age, he wrote to a classmate in 1857: "Remember the scenes and doings of the past term, and from them learn human nature." Dascomb was a young man of great promise in the world of academia, taking his education further to Tuft's College, where he spent two years in close application to his studies. However, he was prevented from the completion of his studies at Tuft's due to poor health, a condition he suffered with throughout his entire life. Dascomb suffered severe eye ailments which caused him to go blind for weeks on end, and which interfered with the rigors of an academic life.
Edmund Dascomb. A History of the Second Regiment, New Hampshire Volunteer Infantry, in the War of the Rebellion, Internet Archive.
Following his recovery, Dascomb spent five years as a teacher, applying his high values of education to a younger generation, all the while indulging in his own education of literature and the sciences. In his time as a teacher, Dascomb took to poetry and oration, two hobbies that would help him through the next few years of his life. Dascomb held himself to a high moral standard, abstaining from alcohol and women, holding that these "evils" would lead him to an impure life and distract him from his academics and service to the nation. He was described as a great patriot, writing to his friend that, in his mind, "Country first; self after country is saved." He would use this phrase as his personal motto throughout the American Civil War. In March 1861, Dascomb looked to change his profession to legal practice but found that the path in front of him would not be the one he had anticipated.
When the American Civil War broke out, Dascomb gave into his sense of patriotism and enlisted in the 2nd NH Volunteer Infantry as a corporal of Company G on May 21, 1861, at the age of 23. Having seen his country dangerously threatened by the southern rebellion, he decided to enlist to aid in the cause of the Union. When told that some men must go to fight he replied, "Then why not I? It may cost me much suffering and my life even. But what are these compared with the object to be maintained. To build the ship many lives were sacrificed, and now, to save her from an untimely wreck shall my life be counted too?" On the day of his enlistment, Dascomb wrote a poem titled "The Volunteers Farewell," where he writes:
From the hillsides and vallies so lovely,
From the friends who to us are most dear,
We are parting, it may be forever,
But out hearts have no room for a fear.
For the voices are calling us onward,
In the name of the free and the brave;
"Gainst the spite and malice of traitors,
They have called us – our country to save.
Dascomb left New Hampshire being to the cheers of those he was leaving behind, his heart full of pride for his nation. He fought with the 2nd NH in their first two engagements at the Battle of First Manassas and the Battle of Williamsburg. At the latter battle, on May 5, 1862, Dascomb was "dangerously wounded" and many thought he would not make it through the wound due to his poor general health. However, he pulled through, gaining a new mindset about the war. No longer did he view the war as a fight for his nation, but began fighting the war for freedom, writing a poem in October 1862 titled "The Price of Freedom" in the wake of President Abraham Lincoln's Emancipation Proclamation. His wound at Williamsburg offered him a chance to reflect on the sacrifice he was willing to make for his nation and ultimately the freedom of millions of people, writing:
The Price we pay is truly great
For Freedom's precious boon,
But cheap is this at any cost
Save to the base poltroon.
Disaster's dark, uncertain hour,
Soon shows the coward's knave,
Who for a chance to breathe a while
Would yield and be a slave.
God's ways are just, this much we know
His children are our brethren all,
Deny it though we will-
Our brethren in the right to live,
To labor and enjoy,
This Magna Carta of our hopes
No one shall e'er destroy.
Dedicated to seeing the war to its end and the fruits of Union victory, Dascomb returned to his regiment in August of 1862 to see his unit fight bravely in the Battles of Fredericksburg and Chancellorsville. THe regiment took the two Union losses hard, but maintained high spirits on the battlefield and in camp. Dascomb received a promotion to the rank of 2nd Lieutenant on May 1, 1863. A few days following this joyous occasion, Dascomb received orders to begin marching northwards to follow the Confederate Army into the state of Pennsylvania.
The Fight at the Wentz Farm A sketch of the positions on July 2. A History of the Second Regiment, New Hampshire Volunteer Infantry, in the War of the Rebellion, Internet Archive.
The Fallen Volunteer The flags of the 2nd New Hampshire. A History of the Second Regiment, New Hampshire Volunteer Infantry, in the War of the Rebellion, Internet Archive.
News of Dascomb's death shocked his friends and family back in New Hampshire. His mother and father suffered greatly from the loss of their youngest child, while his sisters mourned the loss of their brother. His professors at Tuft's College held a vigil for him in celebration of his life and the service he gave to his nation. Back home, his family and friends held a funeral service for the town to mourn the death of their fallen son. One of his friends later wrote of him that "Dascomb was a young man of great promise, and his death is a severe loss to the community and the country… God shall grant that the fall of our lamented friend may be overruled to the furtherance of the glorious cause in which he bled and died; and hasten the day when the Stars and Stripes shall peacefully wave over our entire National Domain."
Dascomb was originally buried near the 3rd Corps field hospital, following his death there. However, in the immediate months following the Battle of Gettysburg, local attorney David Wills called for a national cemetery for the Union dead. This cemetery became the Soldiers' National Cemetery where Lt. Edmund Dascomb now lies, honorably.
Following the American Civil War, members of the 2nd NH and friends from home compiled Dascomb's poems, publishing "Selections from the Poetical Composition of E. Dascomb." Within the compilation, a dear friend of Dascomb's wrote a short biography of Dascomb, recounting the honorable and brave man who fell on the fields at Gettysburg. They spoke highly of Dascomb's character and of his accomplishments as an academic and a military man. The final poem in the compilation is titled "The Dying Volunteer." The poem, set to music, was sung at Dascomb's funeral service and read:
I am dying, brother, dying,
'Mid the wounded and the slain,
And around me forms are lying
Which will never strive again: Much I would but cannot tell thee,
Of a home I cherished dear,
Of the friends I've left behind me,
Who will shed the silent tear.
See how fast my lite blood flows,
And I feel my soul is hieing
Where in death 't will fine repose;
Farwell father, sister, mother.
Farwell all my friends so dear,
Farewell, world, I seek another,
Gasped the dying Volunteer.
Hayes, Martin A. History of the Second Regiment New Hampshire Volunteers: Its Camps, Marches and Battles. Manchester, NH: Charles F. Livingston, Printer, 1865.
Hayes, Martin A. A History of the Second Regiment, New Hampshire Volunteer Infantry in the War of the Rebellion. Lakeport, NH, 1896.
"Selections from the Poetical Composition of E. Dascomb." Gettysburg National Military Park Library.
United States War Department. The War of the Rebellion: The Official Records of the Union and Confederate Armies. 128 vols. Washington, D.C.: U.S. Govt. Printing Office, 1880-1901. Ser. 1, Vol. 27, 1: 573-575.
Narrative and map by Savannah Rose, Gettysburg College.
The Wheatfield
George Buck, 20th Maine
Mark Beatty, 30th Pennsylvania


It's very trendy to dine at the latest finger-on-the pulse chow house and be served their own roof top honey. And it is all well and good that folk are helping keep the busy European bee busy and at the same time keeping them safe from harms way.
Roof top honey with its nectar gathered from urban polluted pollen makes for good menu provenance narrative to give the dining punter a warm feeling. But it's not about the honey. Honey is the sweet reward of a much bigger and teeteringly uncertain picture. It goes like this.
The first honeybees arrived from England in 1822, aboard the ship the "Isabella" and adapted to Australian conditions. Later, honeybees arrived from Italy, Yugoslavia, and North America.
The pollination process is a critical but simple one.
When bees gather nectar their bodies becomes dusted with pollen and as they moves from flower to flower, the pollen passes from male flowers to female flowers and cross-pollination takes place.
Without the bee, the blossoms may not bear fruit and without the floral sources there could be no honey – it is a perfect partnership.
That pollination process has been reported as worth up to $1.2 billion per annum to the Australian horticultural industry.
If you tell the man in the street that the honey bee is under threat – they would shrug – and murmur about importing honey …or indeed the pots of hand-knitted, macramed roof top honey.
But then by Winnie the Pooh's own admission: he was a bear of very little brain …and long words bothered him. And doubtless more than simple concepts did too. The issue facing the honey bee is NOT a wholesome and simple bed time story.
The silent crisis threatening two thirds of Australia's food supply to which the wider food industry is largely oblivious. Of Australia's food supply, 65% relies to varying degrees on managed European honeybees for their pollination: fruit, vegetables, nuts and seeds.
But it doesn't stop there. Beef and dairy rely on lucerne and clover pollinated by honey bees.


text:
RoboCop (2014) (DVD Review)
June 8, 2014 By Tim Isaac Leave a Comment
Starring: Joel Kinnaman, Gary Oldman, Michael Keaton, Abbie Cornish, Jackie Earle Haley
Director: Jose Padilha
Release Date: June 9th 2014 (UK)
Unlike some movies, there was no real reason not to remake Robocop. Paul Verhoeven's 1987 original is a great movie, but it leaves plenty of room for reinvention in the 21st Century. Indeed it's probably why when MGM started digging around in their back catalogue for film to do-over, RoboCop was near the top of the list.
Although it took several years to actually get it done, the results are now here with Jose Padilha (Elite Squad) directing and Joel Kinnaman in the title role. [Read more…]
New RoboCop Trailer Arrives – Joel Kinnaman gets into the suit
The jury is still out on the remake of Robocop, as while the trailers have looked okay, there's been little that's suggested it will be great, while the fact it was delayed from summer 2013 to the graveyard of February 2014 is worrying. Now a new trailer has arrived.
Jose Padilha has said of the film, "In the future with autonomous robots you can have a robot in the middle of the desert going after terrorists and you don't even know the robot is there and the robot is making its own decisions. And let's say this robot kills a kid, who is to blame? Is it the company that made the robot, is it the army that deployed the robot, the software handler or the manufacturer? Who is to blame? When you start making machines who make decisions over life and death, something fundamental changes…"
Here's the synopsis: 'In RoboCop, the year is 2028 and multinational conglomerate OmniCorp is at the center of robot technology. Their drones are winning American wars around the globe and now they want to bring this technology to the home front. Alex Murphy (Kinnaman) is a loving husband, father and good cop doing his best to stem the tide of crime and corruption in Detroit. After he is critically injured in the line of duty, OmniCorp utilizes their remarkable science of robotics to save Alex's life. He returns to the streets of his beloved city with amazing new abilities, but with issues a regular man has never had to face before.' [Read more…]
ACTORS: Joel Kinnaman, Gary Oldman, Michael Keaton, Abbie Cornish, Samuel L. Jackson DIRECTORS: Jose Padilha FILMS: Robocop (2013)
New RoboCop Trailer – Joel Kinnaman has to deal with Robo-phobia
November 8, 2013 By Tim Isaac Leave a Comment
The jury is still out on the remake of Robocop, as while the trailers have looked okay, there's been little that's suggested it will be great, while the fact it was delayed from summer 2013 to the graveyard of February 2014 is worrying. Now a new trailer has arrived, so we can get a fresh look, which suggests they're trying to suggest it's socially relevant as there's talk of Robo-phobia.
We can understand the comparison, as homophobia is indeed the fear that gay people are lethal killing machines built by the authorities.
Here's the synopsis: 'In RoboCop, the year is 2028 and multinational conglomerate OmniCorp is at the center of robot technology. Overseas, their drones have been used by the military for years – and it's meant billions for OmniCorp's bottom line. Now OmniCorp wants to bring their controversial technology to the home front, and they see a golden opportunity to do it. When Alex Murphy (Joel Kinnaman) – a loving husband, father and good cop doing his best to stem the tide of crime and corruption in Detroit – is critically injured in the line of duty, OmniCorp sees their chance for a part-man, part-robot police officer. OmniCorp envisions a RoboCop in every city and even more billions for their shareholders, but they never counted on one thing: there is still a man inside the machine pursuing justice.'
We'll be able to see whether Jose Padilha's film is a success early next year. [Read more…]
ACTORS: Joel Kinnaman, Samuel L. Jackson DIRECTORS: Jose Padilha FILMS: Robocop (2013)
Joel Kinnaman Say It's 'Your Move' In The First RoboCop Remake Poster
September 13, 2013 By Tim Isaac Leave a Comment
A few days ago we got the first trailer for the new version of Robocop, and now that's been followed up by a poster, which harks back to the original and the classic quote, 'Your move, creep.'
Here's the official plot synopsis: 'In RoboCop, the year is 2028 and multinational conglomerate OmniCorp is at the center of robot technology. Overseas, their drones have been used by the military for years – and it's meant billions for OmniCorp's bottom line. Now OmniCorp wants to bring their controversial technology to the home front, and they see a golden opportunity to do it. When Alex Murphy (Joel Kinnaman) – a loving husband, father and good cop doing his best to stem the tide of crime and corruption in Detroit – is critically injured in the line of duty, OmniCorp sees their chance for a part-man, part-robot police officer. OmniCorp envisions a RoboCop in every city and even more billions for their shareholders, but they never counted on one thing: there is still a man inside the machine pursuing justice.'
Gary Oldman, Michael Keaton and Abbie Cornish co-star, with Jose Padhila directing. It'll be in cinemas next February.
ACTORS: Joel Kinnaman DIRECTORS: Jose Padilha FILMS: Robocop (2013)
Robocop Trailer – We can finally get a good look at Joel Kinnaman in the classic role
September 6, 2013 By Tim Isaac Leave a Comment
If everything has gone to the original plan, the remake of Robocop would have already been and gone from cinema. However then is got pushed back until February 2014 (which to be honest doesn't bode well, as February is a bit of a film dumping ground).
However new we can get our first proper look at Joel Kinnaman as the half-man, half-robot, who stars alongside Gary Oldman, Michael Keaton and Abbie Cornish, with Jose Padhila directing. And to be honest, it doesn't look too bad.
The trailer is embedded above and you can also take a look at some new images below. [Read more…]
ACTORS: Joel Kinnaman, Garry Oldman, Michael Keaton, Samuel L. Jackson DIRECTORS: Jose Padilha FILMS: Robocop (2013)
Robocop Director Jose Padilha Takes On The Brotherhood
We won't get to see what Jose Padilha has done with his Robocop remake until early next year, as its summer 2013 release has slipped to February 2014. However he's already planning a follow-up, as Variety reports that he's eyeing The Brotherhood.
Warner Bros. is currently in talks to take on the film, which is based on the book The Brotherhoods: The True Story of Two Cops Who Murdered for the Mafia. William Oldham and Guy Lawson wrote the original book, which is set to be adapted by Bill Dubuque (The Judge). It tells the true story of crooked New York cops Stephen Caracappa and Louis Eppolito, who were both revealed to be Mafioso by a stool pigeon mob boss.
When no criminal charges were brought upon them, Oldham took a job in the U.S. Attorney's Brooklyn office and eventually gathered enough evidence to arrest the pair, who were in 2006 convicted of labor racketeering, extortion, narcotics, illegal gambling, obstruction of justice, and eight counts of murder, and of course, conspiracy to commit murders.
Padilha is a good choice for a film like this, considering what he did with the Brazilian flick Elite Squad and its sequel.
DIRECTORS: Jose Padilha
First Look At The New Robocop Suit
The long-delayed remake of Robocop has finally started shooting, and ComingSoon has got hold of the first pics of Joel Kinnaman in his new-look Robocop suit on the set. It's certainly a different look from the original, and has already had a lot of fans up in arms.
Some have speculated that this won't be the final look of the suit, and that it'll be jazzed up with CG bellls and whistles. However a sales poster that's popped up over as Cine1 suggest that while there could be some computer-generated accents and element, the black armor look is what we're going to get.
Gary Oldman, Michael Keaton, Samuel L. Jackson, Abbie Cornish, Jackie Earle Haley, Michael K. Williams, Jay Baruchel, Jennifer Ehle, and Marianne Jean-Baptiste also star. The film is set for release on August 9th, 2013.
Michael Keaton Getting Villainous For Robocop
August 30, 2012 By Tim Isaac Leave a Comment
Until recently Hugh Laurie was in talks to be the bad guy in Robocop, but a few days ago he had to drop out, leaving producers to scramble to find a replacement. Now they've got their man, as Michael Keaton has signed on to play the primary villain, OmniCorp CEO Raymond Sellars, in the movie.
Director José Padilha commented on this latest casting, "Michael is the final addition to the amazing cast we have assembled for this film and it is so great to have the last puzzle piece in place. It is thrilling that everything has come together to bring this innovative new vision of RoboCop to life. We've got a great script, a great cast, some killer ED-209's and I can't wait to get Alex Murphy back on the streets."
Joel Kinnaman is set to star as the Detroit cop Alex Murphy, who is fatally wounded in the line of duty and resurrected by OmniCorp, who turn him into a half-man half-machine crime fighter. Gary Oldman, Samuel L. Jackson, Abbie Cornish, and Jackie Earle Haley also star. Shooting starts next month.(Source: Variety)
ACTORS: Michael Keaton, Joel Kinnaman DIRECTORS: Jose Padilha FILMS: Robocop (2013)
Robocop Gets The Wonderful Marianne Jean-Baptiste
Marianne Jean-Baptiste is a great actress, although it's a bit of a shame she only ever seems to get supporting roles – even in TV's Without A Trace her main job was to essentially be a kind of on-screen narrator. She's continuing her supporting career with a part in José Padilha's remake of the classic action film RoboCop.
The actress will play Detroit Police Chief, Karen Dean. The project has Joel Kinnaman playing the cop who gets turned in cyborg, alongside Jackie Earle Haley, Gary Oldman, Hugh Laurie, Abbie Cornish and Samuel L. Jackson.
José Padilha is helming from a script provided by Joshua Zetumer. Production will begin in Toronto next month. (Source: Variety)
ACTORS: Marianne Jean-Baptiste, Joel Kinnaman DIRECTORS: Jose Padilha FILMS: Robocop (2013)
Jennifer Ehle Circling RoboCop
August 3, 2012 By Tim Isaac Leave a Comment
For a long time Jennifer Ehle found it difficult to escape the shadow of Pride & Prejudice, but she's found fresh impetus thanks to the likes of The Ides Of March, The King's Speech and Contagion. Now she's in talks to join José Padilha's remake of the 1987 action movie RoboCop.
The actress would play the role of Liz Kline, although absolutely nothing is known about the character at the moment. If she signs on she'll stars alongside Joel Kinnaman, Jackie Earle Haley, Gary Oldman, Hugh Laurie, Abbie Cornish and Samuel L. Jackson, working from a script by Joshua Zetumer.
It isn't clear when the movie might shoot, but an August 9th, 2013 release date has already been set. (Source: Deadline)
ACTORS: Jennifer Ehle, Joel Kinnaman DIRECTORS: Jose Padilha FILMS: Robocop (2013)


Drat! You missed it. If this event has not passed, you may be able to register for the waitlist. Just click on the green "REGISTER" link at the top right corner of this page and enter your information. We'll contact you if we are able to squeeze you in!
GRADES 3 - 6 · If you love video games with an enchanting story — like The Legend of Zelda — now's your chance to design your own! Conceptualize the characters, plot and game objectives for a world of your own creation in this two-day winter break camp. Then, use Scratch, a beginner-friendly coding tool, to begin creating your game. Registration required.
Yes, you MUST register to come as playshops have a limited number of spots.
How do I register my child? Do I have to register to come?
Register via our Eventbrite page (if you're reading this, then you're in the right spot).
Can I register if I'm not certain I can attend?
Please only register if you know you will be there. We often have a full waitlist for our playshops, and every vacant seat is a missed learning opportunity for another family. If you or your child becomes ill unexpectedly after registering or has to miss a playshop session due to an emergency, please contact programs@spark-central.org.
Can I sign up my child for a playshop if they don't want to come?
No. Spark Central playshops have two rules: (1) Everyone wants to be here; (2) Everyone is compassionate toward others. Playshops are not a spot to bring a child who does not want to participate. If a child is disrespectful, defiant, or harmful to others, they will not be permitted to participate in the program.
There is free two-hour parking behind the Spark Central in Kendall Yards. Free 90-minute street parking is also available. There is also a city bus stop available at the intersection of Summit and Monroe.
Where can I contact the organizer with any questions or if I have to cancel?
Contact programs@spark-central.org with questions or cancellations. Please let us know as soon as possible if you can't make it, as playshops often have waiting lists and we want to give every child who wants to be here a chance to participate if possible.


We welcome your comments on material we post on this blog. Let us know what you think!
Your questions and feedback go straight to us. We'd really appreciate it if you show courtesy and goodwill in what you write. Any inappropriate content like personal attacks, hateful language or spam will be deleted.
Please also remember that this is a blog maintained by communications people, not necessarily scientists. So, while we will attempt to respond to comments questions etc, we may not be able to all the time.
On a similar note, you should keep in mind that CSIRO is an organisation dedicated to providing impartial scientific information, and as such, this blog isn't a place where we'll be discussing policies of governments or oppositions at any level.
The comment section is moderated which means there will be a delay before your submissions appear on the blog. Please be patient – any wait you experience is probably because we're busy. The decision to post or remove comments is solely at our discretion.
With all that said – we look forward to hearing from you.


text:
Q: How can I use applyMatrix4 unto a SphereGeometry using React Three Fibre I am trying to create an earth sphere with an appropriate 23.5 degree tilt. Using plain JavaScript I can use the following to affect the degree of tilt prior to applying a rotation
new THREE.SphereGeometry(1,32,32).applyMatrix4( new THREE.Matrix4().makeRotationAxis( new THREE.Vector3( 1, 0, - 1 ).normalize(), 0.235 ) )

The above works and is a copy paste of someone else's answer, I do not understand how the Vector3 portion works.
I am now trying to replicate this in React, using React Three Fibre. I have created an earth sphere like so
return (
        <>

            <pointLight color="0xffffff" position={[2, 0, 2]} intensity={1} castShadow={true} >

            </pointLight>

            <mesh ref={earthRef}>
                <sphereGeometry args={[1, 32, 32]}/>

                <meshPhongMaterial
                    specularMap={specularMap}
                />
                <MeshReflectorMaterial
                    map={colorMap2}
                    bumpMap={bumpMap}
                    bumpScale={0.05}
                />

                <OrbitControls
                enableZoom={true}
                enablePan={true}
                enableRotate={true}
                zoomSpeed={0.6}
                panSpeed={0.5}
                rotateSpeed={0.4}
                />
            </mesh>

        </>
    )

Based on the JavaScript answer I would be looking to utilize applyMatrix4 with the <sphereGeometry> tag, does anyone know how to correctly do this? Thank you!


text:
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE Arrows #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Extraction and consolidation of JavaScript code in an HTML page.
module Text.Html.Consolidate (-- * Simple API
                              consolidate
                             ,extract
                             ,extractPretty
                              -- * Advanced arrow-based API
                             ,TArr
                             ,consolidateArr
                             ,extractJSArr
                             ,initialConsState
                             ,insertJSArr
                             ,parseHTML
                             ,renderHTML
                             ,ConsState
                             ) where

import Text.XML.HXT.Core hiding (swap)
import Text.XML.HXT.Arrow.XmlState.RunIOStateArrow
import Text.XML.HXT.Arrow.XmlArrow
import Text.XML.HXT.TagSoup
import Language.ECMAScript5.Syntax
import Language.ECMAScript5.Syntax.CodeGen hiding (this)
import Language.ECMAScript5.Syntax.Annotations
import Language.ECMAScript5.PrettyPrint
import Language.ECMAScript5.Parser hiding (program)
import qualified Language.ECMAScript5.Parser as Parse (program)
import Data.List (isInfixOf)
import Data.Default.Class
import Network.HTTP
import Network.Browser (Cookie)
import Network.Browser.Simple
import Network.URI
import Network.HTTP.Encoding
import Data.ByteString.Lazy (ByteString)
import System.Random
import Data.Char
import Data.Maybe (isJust, fromJust, maybeToList, fromMaybe)
import Control.Monad hiding (when)
import Data.Default.Instances.Base
import Control.Applicative ((<$>))

-- | Consolidation state
data ConsState = ConsState Bool  -- Ignore errors?
                           (Maybe URI) -- Base URI of the web page,
                                       -- for resolving relative URI's
                           [Cookie] -- Cookies to include with all
                                    -- HTTP requests
                           [Statement ()]

-- | A constructor function for making an initial consolidation state
-- (needed for running the arrows in the advanced API). Example usage:
--
-- > runXIOState (initialState $ initialConsState ignoreErrors muri []) $ someArrow
initialConsState :: Bool -- ^ Whether to ignore errors (parse errors,
                         -- resource not found etc.)
                 -> Maybe URI -- ^ base URI
                 -> [Cookie] -- ^ Cookies
                 -> ConsState
initialConsState grace base cookies = ConsState grace base cookies []

-- | Our XML transformation arrow type
type TArr a b = IOStateArrow ConsState a b

-- | A wrapper around the hxt parser with commonly used arguments
parseHTML :: String -> Maybe URI -> TArr a XmlTree
parseHTML s mbase_uri =
  let config = map (withDefaultBaseURI . show) (maybeToList mbase_uri)
             ++[withParseHTML yes
               ,withTagSoup
               ,withValidate no
               ,withSubstDTDEntities no
               ,withSubstHTMLEntities yes
               ,withCanonicalize no
               ,withOutputHTML]
  in readString config s

-- | A wrapper around hxt to pretty print html out of the arrow
renderHTML :: ConsState -> TArr XmlTree XmlTree -> IO String
renderHTML ns a =
  let state  = initialState ns
  in liftM head $ runXIOState state (single a >>> writeDocumentToString
                                     -- Using plain text output to
                                     -- prevent entity substitution on
                                     -- special XML/HTML characters
                                     -- that are part of inline
                                     -- scripts
                                     [withOutputPLAIN, withOutputEncoding utf8])

-- | Takes an HTML page source as a string and an optional base URI
-- (for resolving relative URI's) and produces an HTML page with all
-- the scripts consolidated in one inline script element.
consolidate :: String -> Maybe URI -> IO String
consolidate s mbase_uri =
  renderHTML (initialConsState True mbase_uri []) $
  parseHTML s mbase_uri >>> consolidateArr

-- | The consolidation function with an arrow interface.
--
-- > consolidateArr = extractJSArr >>> insertJSArr
consolidateArr :: TArr XmlTree XmlTree
consolidateArr = extractJSArr >>> insertJSArr

-- | Extacts all JavaScript code in the given
-- HTML page source as a single program. Takes an optional base URI
-- for resolving relative URI's.
extract :: String -> Maybe URI -> IO (Program ())
extract s mbase_uri =
  let state = initialState $ initialConsState True mbase_uri [] in
  do [(_, js)] <- runXIOState state $ single $
                  parseHTML s mbase_uri >>> extractJSArr
     return js

-- | Extacts and pretty-prints all JavaScript code in the given
-- HTML page source as a single program. Takes an optional base URI
-- for resolving relative URI's.
--
-- > extractPretty s muri = liftM (show . prettyPrint) $ extract s muri
extractPretty :: String -> Maybe URI -> IO String
extractPretty s muri = liftM (show . prettyPrint) $ extract s muri

-- | Extracts all JavaScript from HTML. There shouldn't be any
-- JavaScript in the resulting XmlTree
extractJSArr :: TArr XmlTree (XmlTree, Program ())
extractJSArr =
  (choiceA [isAJavaScript :-> ifA (hasAttr "src") extractExternalScript
                                                   extractInlineScript
            ,(isElem >>> hasOneOfNames src_tags >>> hasOneOfAttrs src_attrs) :-> extractURLProp
            ,(isElem >>> hasOneOfAttrs event_handlers) :-> extractEventHandler
            ,this :-> this
            ]
   `processTopDownUntilAndWhenMatches` isFrame)
  >>>returnScript
  where returnScript = (returnA &&& getUserState)
                    >>> second (arr (\s -> let ConsState _ _ _ stmts = s
                                           in  Program () stmts))
        isFrame = isElem >>> (hasName "frame" <+> hasName "iframe")
        hasOneOfNames tagNames = (getName >>> isA (`elem` tagNames)) `guards` this
        hasOneOfAttrs attrNames = (getAttrl >>> hasOneOfNames attrNames) `guards` this
        -- Elements and properties that might contain a 'javascript:' url
        -- IMG.SRC, A.HREF, FORM.ACTION, FRAME.SRC, IFRAME.SRC, LINK.HREF
        src_tags = ["img", "a", "form", "frame", "iframe", "link"]
        src_attrs = ["src", "href", "action"]
        event_handlers = ["onabort", "onblur", "onclick", "oncompositionstart"
                         ,"oncompositionupdate", "oncompositionend", "ondblclick"
                         ,"onerror", "onfocus", "onfocusin", "onfocusout"
                         ,"onkeydown", "onkeypress", "onkeyup", "onload"
                         ,"onmousedown", "onmouseenter", "onmouseleave"
                         ,"onmousemove", "onmouseout", "onmouseover"
                         ,"onmouseup", "onreset", "onresize","onscroll"
                         ,"onselect", "onsubmit", "ontextinput", "onunload"
                         , "onwheel"]

-- | Like Control.Arrow.ArrowTree, but instead has a separate arrow
-- that serves as a predicate signalling that this subtree shouldn't
-- be transformed any further; 'processTopDownUntilMatches transformer
-- predicate'. Almost dual of 'processBottomUpWhenNot', but transforms
-- the node that matches the predicate as well (but doesn't look
-- inside that node).
processTopDownUntilAndWhenMatches :: (ArrowTree a, Tree t)
                                  => a (t b) (t b) -- ^ the transformer arrow
                                  -> a (t b) (t b) -- ^ the predicate arrow
                                  -> a (t b) (t b)
processTopDownUntilAndWhenMatches t p =
  t >>> (processChildren (processTopDownUntilAndWhenMatches t p) `whenNot` p)
  -- ifA p (t >>> processChildren (processTopDownUntilAndWhenMatches t p)) returnA

-- | Inserts JavaScript at the end of the HTML body.
insertJSArr :: TArr (XmlTree, Program a) XmlTree
insertJSArr = (swap ^<< second scriptElement) >>>
              arr2A (\scr ->  processTopDown $ changeChildren (++ [scr]) `when`
                              hasName "body")

-- extractors
-- | Extracts the contents of inline scripts
extractInlineScript :: TArr XmlTree XmlTree
extractInlineScript =
  firstChild >>>
  getText >>>
  parseJS >>>
  arr removeAnnotations >>>
  appendScript >>>
  cmt "Removed Inline Script"

-- | Extracts the contents of externally references scripts
extractExternalScript :: TArr XmlTree XmlTree
extractExternalScript =
  (getAttrValue "src" >>>
   (downloadArr >>>
    parseJS >>>
    arr removeAnnotations >>>
    appendScript)
   &&&
   (arr ("Removed External Script: " ++) >>>
    mkCmt)) >>>
  arr snd

-- |Downloads the content, considering the input as a URL; performs
-- decoding automatically.
downloadArr :: TArr String String
downloadArr =
  (returnA &&& arr parseURIReference) >>>
  arrIO (\(url, muri) ->
          failIfNothing ("download: error parsing a URI: " ++ url) muri) >>>
  consolidateURI >>>
  (getUserState &&& returnA) >>>
  arrIO (\(ConsState _ _ cookies _, uri) -> liftM fst (download uri cookies))

  where failIfNothing :: String -> Maybe a -> IO a
        failIfNothing message Nothing  = fail message
        failIfNothing _       (Just x) = return x
        -- RFC 3986, section 4.1: if the URI-reference's prefix does
        -- not match the syntax of a scheme followed by its colon
        -- separator, then the URI reference is a relative reference.
        isURIRelative :: URI -> Bool
        isURIRelative = null . uriScheme
        consolidateURI :: TArr URI URI
        consolidateURI =
          (getUserState &&& returnA) >>>
          arrIO (\(ConsState _ mbaseURI _ _, uri) ->
          return $ if isURIRelative uri && isJust mbaseURI
                   then uri `relativeTo` fromJust mbaseURI
                   else uri)

-- Removes the URL containing properties from elements and adds a
-- JavaScript assignment instead.
extractURLProp :: TArr XmlTree XmlTree
extractURLProp =
  -- Elements and properties that might contain a 'javascript:' url
  -- IMG.SRC, A.HREF, FORM.ACTION, FRAME.SRC, IFRAME.SRC, LINK.HREF
  -- isElem >>>
  -- selectTags ["img", "a", "form", "frame", "iframe", "link"] >>>
  addIdIfNotPresent >>>
  (((selectAttrValues ["src", "href", "action"] &&& selectId) >>>
    arr (\((url, attrName), id) ->
     Program () [ExprStmt () $ AssignExpr () OpAssign
                (DotRef () (CallExpr ()
                          (DotRef () (VarRef () (Id () "document")) (Id () "getElementById"))
                          [StringLit () id]) (ident attrName)) (StringLit () url)]) >>>
   appendScript) &&&
  removeAttributes ["src", "href", "action"]) >>>
  arr snd

-- Removes the event handlers from HTML tags and converts them to
-- JavaScript assignments
extractEventHandler :: TArr XmlTree XmlTree
extractEventHandler =
  -- Names of HTML tag attributes that are event handler declarations:
  let attrNames = ["onabort", "onblur", "onclick", "oncompositionstart",
                   "oncompositionupdate", "oncompositionend", "ondblclick",
                   "onerror", "onfocus", "onfocusin", "onfocusout", "onkeydown",
                   "onkeypress", "onkeyup", "onload", "onmousedown",
                   "onmouseenter", "onmouseleave", "onmousemove", "onmouseout",
                   "onmouseover", "onmouseup", "onreset", "onresize","onscroll",
                   "onselect", "onsubmit", "ontextinput", "onunload", "onwheel"]
  in addIdIfNotPresent >>>
     (((selectId &&& selectAttrValues attrNames) >>>
      arr (\(id, (handler, attrName)) -> makeHandlerDeclaration id attrName handler)
      >>> appendScript) &&&
     removeAttributes attrNames) >>>
     arr snd

makeHandlerDeclaration :: Default a => String -> String -> String -> Program a
makeHandlerDeclaration id handlerName handlerSource =
  let mEventName = case handlerName of
                    'o':'n':s | not $ null s -> Just s
                    _                        -> Nothing
      isErrorHandler = handlerName == "onerror"
      either2maybe (Left _) = Nothing
      either2maybe (Right x)= Just x
  in fromMaybe (program []) $
     do eventName <- mEventName
        hsrc <- either2maybe $ reannotate def <$> parseFromString handlerSource
        return $ program [expr $ call (
                            call (var "document" `dot` "getElementById") [string id]
                            `dot` "addEventListener")
                          [string eventName, (if isErrorHandler then makeErrorHandler else makeHandler) hsrc, bool False]
                         ]

-- | Makes a handler function expression from the parsed inlined
-- handler source for any event, but onerror.
--
-- HTML5 spec, section 6.1.5.1, "internal raw uncompiled handler":
-- using the script execution environment obtained above, create a
-- function object (as defined in ECMAScript edition 5 section 13.2
-- Creating Function Objects), with Parameter list
-- FormalParameterList. If H is an onerror event handler of a Window
-- object, let the function have five arguments, named event, source,
-- lineno, colno, and error.
--
-- Unsupported as of yet: let Scope be the result of
-- NewObjectEnvironment(document, the global environment). If form
-- owner is not null, let Scope be the result of
-- NewObjectEnvironment(form owner, Scope). If element is not null,
-- let Scope be the result of NewObjectEnvironment(element, Scope).
makeErrorHandler :: Default a => Program a -> Expression a
makeErrorHandler = lambda ["event", "source", "lineno", "colno", "error"] . unProgram

-- | Otherwise, let the function have a single argument called event.
makeHandler :: Default a => Program a -> Expression a
makeHandler = lambda ["event"] . unProgram

parseJS :: TArr String (Program SourceSpan)
parseJS = arr (parse Parse.program "") >>> eitherToFailure >>> arr (reannotate fst)

-- Arrow tools
-- | Failure reporting arrow constructor
arrowFail :: ArrowIO ar => String -> ar b c
arrowFail = arrIO . fail

isStrict :: TArr a Bool
isStrict = getUserState >>> arr (\s -> let ConsState strict _ _ _ = s in strict)

-- | If in strict mode, fails with the message given; otherwise,
-- behaves like an identity arrow
failIfStrict :: String -> TArr a a
failIfStrict msg =
  proc a -> do is <- isStrict -< ()
               if is then arrowFail msg -< () else returnA -< a

eitherToFailure :: (Show err, Default a) => TArr (Either err a) a
eitherToFailure = (isStrict &&& returnA) >>> arrIO f
  where f (False, Left err) = return def
        f (True,  Left err) = fail $ show err
        f (_   ,  Right x)  = return x

maybeToFailure :: (Default a) => Maybe String -> TArr (Maybe a) a
maybeToFailure message = (isStrict &&& returnA) >>> arrIO f
  where f (False, Nothing) = return def
        f (True , Nothing) =
          case message of
            Nothing  -> fail "Unexpected maybe in strict mode"
            Just msg -> fail msg
        f (_    , Just x)  = return x

appendStatements :: TArr [Statement ()] ()
appendStatements = (getUserState &&& returnA) >>>
                   arr (\(state, addScript) ->
                         let ConsState grace baseURI cookies script = state in
                         ConsState grace baseURI cookies (script++addScript)) >>>
                   setUserState >>> arr (const ())

appendScript :: TArr (Program ()) ()
appendScript = arr (\s -> let Program _ stmts = s in stmts) >>> appendStatements

-- constructors
-- | Constructs a new JavaScript element
scriptElement :: ArrowXml ar => ar (Program a) XmlTree
scriptElement = (mkElement (mkName "script") (sattr "type" "text/javascript") $< arr (txt . show . prettyPrint)) >>> addAttr "defer" ""

-- Selectors
-- | A selector for SCRIPT tags with JavaScript or empty type
isAJavaScript :: ArrowXml ar => ar XmlTree XmlTree
isAJavaScript =
  isElem >>> hasName "script" >>>
  (((hasAttr "language" >>> hasAttrValue "language" (isInfixOf "javascript")) <+>
    (hasAttr "type" >>> hasAttrValue "type" (isInfixOf "javascript"))) `orElse`
   returnA)

-- | Selects the first child of a node
firstChild :: (ArrowTree a, Tree t) => a (t b) (t b)
firstChild = single getChildren

-- | Selects the last child fo a node
lastChild :: (ArrowTree a, Tree t) => a (t b) (t b)
lastChild = getChildren >>. (take 1 . reverse)

-- | Selects the <html> tag
html :: ArrowXml a => a XmlTree XmlTree
html = deep $ hasName "html"

-- | Selects <body> tag
body :: ArrowXml a => a XmlTree XmlTree
body = html /> hasName "body"
  --deep $ hasName "html" /> hasName "body"

selectTags :: ArrowXml a => [String] -> a XmlTree XmlTree
selectTags = foldl (\arr tag -> arr <+> hasName tag) zeroArrow

selectAttrValues :: ArrowXml a => [String] -> a XmlTree (String, String)
selectAttrValues = foldl f zeroArrow
  where f :: ArrowXml a =>
             a XmlTree (String, String) -> String -> a XmlTree (String, String)
        f a attr = a <+> (hasAttr attr >>>
                          (getAttrValue attr &&& arr (const attr)))

hasAnyAttrs :: ArrowXml a => [String] -> a XmlTree XmlTree
hasAnyAttrs = foldl f zeroArrow
  where f :: ArrowXml a => a XmlTree XmlTree -> String -> a XmlTree XmlTree
        f a attr = a <+> hasAttr attr

removeAttributes :: ArrowXml a => [String] -> a XmlTree XmlTree
removeAttributes names =
  processAttrl $ none `when` (foldr (\n a -> a <+> hasName n) none names)

addIdIfNotPresent :: TArr XmlTree XmlTree
addIdIfNotPresent =
  ((genIdA &&& this) >>> (arr2A $ addAttr "id")) `when`
  (getAttrValue "id" >>> isA null)

-- | Selects the id of an element or adds a new one (and returns) if
-- it's not present
selectId :: TArr XmlTree String
selectId = isElem >>> getAttrValue "id"

genIdA :: ArrowIO ar => ar a String
genIdA = arrIO $ const genId

genId :: IO String
genId = do firstLetter <- genLetter
           return [firstLetter]
           length <- getStdRandom $ randomR (minIdLength-1, maxIdLength-1)
           restId <- mapM (const genLetter) [1..length]
           return $ firstLetter:restId
  where minIdLength :: Int
        minIdLength = 16
        maxIdLength = 32

genLetter :: IO Char
genLetter = do letter <- getStdRandom $ randomR (capitalACode, capitalZCode)
               lettercase <- getStdRandom $ randomR (0,1)
               return $ chr $ letter + lettercase * (lowercaseACode-capitalACode)
  where capitalACode = 65
        capitalZCode = 90
        lowercaseACode = 97

swap (a,b) = (b,a)

redpajama_set_name: RedPajamaGithub


text:
using Xunit;

namespace System.Text.Utf8.Tests
{
    public static class TestHelper
    {
        public static void Validate(Utf8String str1, Utf8String str2)
        {
            Assert.Equal(str1.Bytes.Length, str2.Bytes.Length);
            Assert.True(str1.Bytes.SequenceEqual(str2.Bytes));
        }

        public static void Validate(Utf8Span str1, Utf8Span str2)
        {
            Assert.Equal(str1.Bytes.Length, str2.Bytes.Length);
            Assert.True(str1.Bytes.SequenceEqual(str2.Bytes));
        }
    }
}


text:
Q: .NET 6 best way to differentiate a route in the same controller class I have an API controller say TestController.
I have the following route definition: api/[controller] on class level and I can call the default get method as follows: .../api/test
I want to have another method in the same controller, I also want to call it with Get and the link should be as follows: .../api/test-abc
What is the best way to differentiate this second method within the same controller class.

A: For test-abc, you can configure the Route attribute as ~/api/test-abc to override the controller base route. See this link for details.
[Route("api/[controller]")]
public class TestController : ControllerBase
{
  public IActionResult Get()
  {
    // ...
  }

  [HttpGet]
  [Route("~/api/test-abc")]
  public IActionResult GetAbc()
  {
    // ...
  }
}

This approach changes only the URL of the "test-abc"-action; all other actions of the controller use the base URL configured on class level.

A: In .Net 6 by following Minimal API's
app.MapGet("api/test", () =>
{

    return "";
});
app.MapGet("api/test-abc", () =>
{
    return "";
});

By following Traditional Method
[Route("api")]
 public class TestController : ControllerBase
  {
    [HttpGet("test")]
    public IActionResult Get()
     {
       // ...
        return Ok();
     }

   [HttpGet("test-abc")]
    public IActionResult GetAbc()
     {
      // ...
        return Ok();
     }
 }

A: You can by defining the controllers route template like as below:
[Route("api/[controller]")]
public class TestController : Controller
{
   ...
}

So you can define a method like:
[HttpGet]
[Route("~/api/Test/Index")]
public IActionResult Index()
{
    return Foo.Bar();
}

[HttpGet]
[Route("~/api/Test/Index2")]
public IActionResult Index2()
{
    return Foo.Bar2();
}

[HttpGet]
public IActionResult Index3()
{
    return Foo.Bar3();
}

You can call it by ../api/test/index2 to use the method Index2 or ../api/test to use Index3.
This is for the standardized way to do, in your case you would use - instead of / at the Route("...") attribute.
If you use - you need to call ../api/test-index2
For further information take a look at documentation.


Magic of Jungala was a one day festival in Cape Town. A simple landing page with essential information was required. Nearby Airbnb listings were integrated. Hosting and domain registration was also provided.


text:
The latest network routers, software, management tools and information for enterprise IT administrators.
Networking Resources White Papers & Webcasts
Network Security Security Resources | Infrastructure Security | Cloud Security
Network Software Linux for Networking
WAN and
LAN WAN Optimization | WLAN Deployment
Center Data Center Blog | Cloud
Network Management Network Management Systems | Concepts and Tools | Networking 101 | IPv6 Migration
Networking Hardware Ethernet Switch Buyer's Guide | Wireless LAN Controller Buyer's Guide | Wi-Fi
Establish a Bullet-Proof Security Policy - Page 4
By Elizabeth Ferrarini
Page 4 of 4 | Back to Page 1
Auditing and Reviewing
To help determine if there is a violation of your security policy, you'll need to depend on the tools included with your computer and network. Most operating systems store numerous bits of information in log files. Examining these log files regularly will often provide the first line of defense for detecting unauthorized use of the system.
Compare lists of currently logged in users and past login histories. Most users typically log in and out at roughly the same time each day. An account logged in outside the normal time for the account may be in use by an intruder.
Many systems maintain accounting records for billing purposes. These records can also be used to determine usage patterns for the system; unusual accounting records may indicate unauthorized use of the system.
System logging facilities, such as the UNIX syslog utility, should be checked for unusual error messages from system software. For example, a large number of failed login attempts in a short period of time may indicate someone trying to guess passwords.
Operating system commands which list currently executing processes can be used to detect users running programs they are not authorized to use, as well as to detect unauthorized programs which have been started by an intruder.
By running various monitoring commands at different times throughout the day, you'll make it hard for an intruder to predict your actions. While it may be exceptionally fortuitous that an administrator would catch a violator in their first act, by reviewing log files you'll have a very good chance setting up procedures to identify them at a later date.
Security is a dynamic process. Since it's getting easy to break into network sites through easily available, point-and-click packages, you'll need to do regularly reviews of your network. To this end, you'll need to assemble the core team or a representative subset to review how well things are working, what are the latest threats and security tools, and what are the risks against new assets and business practices.
In the conclusion of this article, we'll look at some of the preventative measures you can take, as well as how to respond to violations.
Elizabeth M. Ferrarini is a free-lance writer based in Arlington, Massachusetts.
This article was originally published on Oct 4, 2001
jfreund@internet.com
Get the Latest Scoop with Networking Update Newsletter


heavily burdened or oppressed, as by overwork or financial difficulties; harried; put-upon.
assailed, plagued, beset, bedeviled, beleaguered.
I am not the most financially literate person (I would be hard-pressed to articulate the term "junk bond").
One would be hard-pressed to find an earlier opponent of the Nazis than Dietrich von Hildebrand.
It was a cutthroat move from investors, hard-pressed to turn a profit on a film that was a domestic disappointment.
And even a pretty savvy lawyer would be hard-pressed to identify more than two or three of the judges.
Later in the story Moray is hard-pressed by the villain for those same papers.
A lad, nursed back to life, rejoins the hard-pressed Southern troops and is killed in the first battle.
Far worse than the alienation of their estates was the selling of their children by the hard-pressed creditors.
That was our hard-pressed country's method of paying its debts.
On this the ultimate safety of the hard-pressed garrison depended.