Context: sent1: the amount of daylight is greatest in the summer sent2: united states is located in the northern hemisphere sent3: new york / new york state is a state located in the united states of america sent4: june is during the summer in the northern hemisphere

Question: In New York State, the longest period of daylight occurs during which month?

Answer: June

sent2 & sent3 -> int1: new york state is located in the northern hemisphere; int1 & sent4 -> int2: june is during the summer for new york state; int2 & sent1 -> hypothesis;

[BECAUSE] united states is located in the northern hemisphere [AND] new york / new york state is a state located in the united states of america [INFER] int1: new york state is located in the northern hemisphere [BECAUSE] int1 [AND] june is during the summer in the northern hemisphere [INFER] int2: june is during the summer for new york state [BECAUSE] int2 [AND] the amount of daylight is greatest in the summer [INFER] int3: new york state has the greatest sunlight during june

the summer solstice is on june 21st in the northern hemisphere

the amount of daylight is greatest on the summer solstice

months are a kind of unit for measuring time

daylight is when the sun shines on a location

months m are a metric unit used for measuring time generally used for values between 1 and 24

greatest means largest / highest / most amount of something

when the season changes , the amount of daylight will change

the amount of daylight is least in the winter

june is during the winter in the southern hemisphere

the amount of daylight is least on the winter solstice

shortest means least / smallest in length

the winter solstice is on june 21st in the southern hemisphere


Context: sent1: earth 's tilt on its rotating axis causes seasons to change / to occur sent2: when the season changes , the amount of daylight will change

Question: The length of daylight changes as the seasons change during the year. What causes these changes in daylight?

Answer: Earth's tilt on its axis

[BECAUSE] earth 's tilt on its rotating axis causes seasons to change / to occur [AND] when the season changes , the amount of daylight will change [INFER] int1: earth's tilt on its rotating axis causes the amout of daylight to change

when the seasons change from summer to fall / from summer to winter , the amount of daylight will decrease

the earth being tilted on its rotating axis causes seasons

different seasons occur during different times of the year

earth 's angle of tilt causes the length of day and night to vary

earth orbiting the sun causes seasons to change

the earth revolving around the sun causes the seasons to change / to occur on its axis

the amount of daylight is greatest in the summer

the tilt of earth 's axis causes certain latitudes of earth to be heated at a greater rate

the earth being tilted on its axis causes one side of the earth / one hemisphere to receive less energy from the sun than the other side

summer is when a hemisphere is tilted towards the sun

the amount of daylight is greatest on the summer solstice


Context: sent1: alaska is in winter season sent2: alaska is a state located in the united states of america sent3: united states is located in the northern hemisphere sent4: when a hemisphere is tilted away from the sun , that hemisphere receives less direct sunlight sent5: winter is when a hemisphere is tilted away from the sun

Question: In Alaska, there are fewer hours of daylight in the winter than in the summer. Which statement best explains why this difference occurs?

Answer: The Northern Hemisphere is tilted away from the Sun in the winter.

sent2 & sent3 -> int1: alaska is located in the northern hemisphere; int1 & sent1 & sent5 -> int2: the northern hemisphere is tilted away from the sun when alaska is in winter; sent4 & sent5 -> int3: a hemisphere tilting away from the sun causes the hemisphere to receive less direct sunlight; int2 & int3 -> hypothesis;

[BECAUSE] alaska is a state located in the united states of america [AND] united states is located in the northern hemisphere [INFER] int1: alaska is located in the northern hemisphere [BECAUSE] int1 [AND] alaska is in winter season [AND] winter is when a hemisphere is tilted away from the sun [INFER] int2: the northern hemisphere is tilted away from the sun when alaska is in winter [BECAUSE] when a hemisphere is tilted away from the sun , that hemisphere receives less direct sunlight [AND] winter is when a hemisphere is tilted away from the sun [INFER] int3: a hemisphere tilting away from the sun causes the hemisphere to receive less direct sunlight [BECAUSE] int2 [AND] int3 [INFER] int4: the northern hemisphere being tilted away from the sun causes alaska to receive less direct sunlight

The Northern Hemisphere is tilted away from the Sun in the winter.

((((((sent2 sent3) -> int1) sent1 sent5) -> int2) ((sent4 sent5) -> int3)) -> int4)

# int4 & # int2 & # int1 & sent2 sent3 & sent1 sent5 # int3 & sent4 sent5

winter in a hemisphere occurs when the pole located in that hemisphere is tilted away from the sun

the amount of daylight is least in the winter

when a hemisphere is tilted towards the sun , that hemisphere receives more direct sunlight

when the season changes , the amount of daylight will change

the northern hemisphere is a kind of hemisphere of earth

amount is a property of something and includes ordered values of none / least / little / some / half / much / many / most / all

greatest means largest / highest / most amount of something

if an amount of objects decreases then those objects are fewer in number

the amount of daylight is least on the winter solstice

the winter in the southern hemisphere is during the summer in the northern hemisphere

the winter in the northern hemisphere is during the summer in the southern hemisphere

furthest / farthest means greatest / most / highest in distance

june is during the summer in the northern hemisphere


Context: sent1: the earth rotates on its tilted axis sent2: a planet rotating causes cycles of day and night on that planet sent3: earth is a kind of planet

Question: Earth's rotation (turning on its axis) causes

Answer: day and night.

sent1 & sent3 -> int1: earth is a planet that rotates on its tilted axis; int1 & sent2 -> hypothesis;

[BECAUSE] the earth rotates on its tilted axis [AND] earth is a kind of planet [INFER] int1: earth is a planet that rotates on its tilted axis [BECAUSE] int1 [AND] a planet rotating causes cycles of day and night on that planet [INFER] int2: earth rotating on its axis causes cycles of day and night on earth

((((sent1 sent3) -> int1) sent2) -> int2)

a complete rotation of the earth on earth 's axis / itself takes 1 / one day

cycles of day and night occur once per day

earth rotating on its axis occurs once per day

the earth rotating on its axis causes the sun to appear to move across the sky during the day

rotation is the circular movement of an object around a center / axis

days are a kind of unit for measuring time

the sun rising and setting causes cycles of day and night

the earth rotating on its axis causes stars / the moon to appear to move across the sky at night

diurnal motion is when objects in the sky appear to move due to earth 's rotation on its axis

a planet is a kind of celestial object / body

earth 's angle of tilt causes the length of day and night to vary


A Porthcawl RNLI crew with a medic and the coastguard search and rescue helicopter were sent to Sker Beach, near Kenfig Nature Reserve, at 12:50 GMT on Sunday.
Crewman Chris Page said the rider had head injuries and was very cold from lying unconscious on wet sand.
She was treated before being flown to Cardiff's University Hospital of Wales.

A woman has been airlifted to hospital after falling from a horse on a Bridgend county beach.


Verheydt, who had been with Maastricht since 2015, has signed a three-year contract with Harry Kewell's side.
The 25-year-old scored 13 goals in 43 appearances in all competitions last season.
Meanwhile, Watford winger Dennon Lewis, 20, has joined the Reds on a loan deal until 31 December.
Lewis, who made 29 National League appearances on loan at Woking last season, played under Kewell when the Australian was coach of Watford's under-23 team.
Find all the latest football transfers on our dedicated page.

League Two side Crawley Town have signed striker Thomas Verheydt from Dutch second-tier side MVV Maastricht for an undisclosed fee.


The 32-year-old had been playing in the Isthmian Premier Division with Leatherhead following his release by Newport at the end of last season.
Pidgeley has made 260 appearances in spells with nine clubs, including Chelsea, Watford and Millwall.
Forest Green are currently second in the National League table, one point behind leaders Cheltenham Town.
Pidgeley could make his Rovers debut when they host Aldershot on Friday.

National League side Forest Green Rovers have signed goalkeeper Lenny Pidgeley until the end of the season.


The suspected green mamba was found on a ship that had docked in Aberdeen from west Africa last month.
The snake died after it was placed in a freezer by the animal charity after attempts to rehome it with specialist reptile keepers failed.
The snake was later identified as a harmless green tree snake.
Police Scotland said a complaint was under consideration.
Scottish SPCA Ch Supt Mike Flynn said: "We were called out after a green snake arrived in Aberdeen on a boat from Africa.
"The snake was thought to be a green mamba, one of the deadliest snakes in the world. The snake was taken by police escort to our Aberdeenshire animal rescue and rehoming centre.
"Sadly the snake, which staff genuinely believed to be a green mamba, had to be put to sleep after our attempts to rehome it to specialist reptile keepers were unsuccessful."
He added: "We could not keep the snake in our centre due to severe health and safety concerns, as the closest anti-venom is held in Bedford. Green mambas also require a Dangerous Wild Animal Licence which the society does not have.
"The safety of our staff and the public is paramount and as such the snake was placed in a freezer where it passed away.
"The Scottish SPCA is proud of its policy not put healthy animals to sleep. Animals are only put to sleep on veterinary advice if they are too ill or too aggressive to be rehomed, or where we are legally required to do so.
"The decision to euthanise the snake was not taken lightly. Unfortunately, the snake has since been identified as a harmless green tree snake. This has been an honest mistake on the society's part as we genuinely believed this was an extremely deadly snake."
The western green mamba feeds on small animals and rodents and is mainly found in the coastal tropical rainforests of western Africa.
Experts say its bite can be fatal in as little as 30 minutes.

A complaint about the Scottish SPCA putting what was thought to be one of the world's most deadly snakes to sleep is being investigated by police.


The all-rounder has been included in the T20 squad to face Sri Lanka on 5 July at the Ageas Bowl, having been part of the World T20 squad in March.
"It's nice to be involved again," the 26-year-old slow left-armer and right-handed batsman told BBC Radio Solent.
"I wasn't expecting to be as I thought Moeen Ali would, but him being rested hands me another opportunity."
Dawson failed to make an appearance during England's run to the World T20 final in India this year, but his limited-overs performances for Hampshire this season have kept him in contention.
"I'm not sure what team they'll go with," he said.
"I've had some good performances for Hampshire in one-day and T20 cricket and if I keep going with that, hopefully I might get a chance."

Hampshire's Liam Dawson says it would be "amazing" to make his England Twenty20 debut on his home ground.


The Egypt-backed plan had envisaged a regional forum which analysts say might have forced Israel to reveal whether or not it has nuclear weapons.
The proposal was blocked by the US, the UK and Canada. The next review is set for  2020.
Israel neither confirms nor denies it has a stockpile of nuclear weapons.
Speaking after four weeks of negotiations, US Under-Secretary of State Rose Gottemoeller accused Egypt and other Arab countries of "not willing to let go of these unrealistic and unworkable conditions" for future talks.
She also said some participants tried to "cynically manipulate" the whole process.
But Egypt warned that the failure to reach a deal "will have consequences in front of the Arab world and public opinion", the Associated Press news agency reports.
Last month, Egypt had proposed to stage a regional conference - with or without Israel's participation and without an agreed agenda.
Some analysts suggested that this move might have forced Israel - which is not a party to the Treaty on the Non-Proliferation of Nuclear Weapons (NPT) - to publicly clarify its position on nuclear weapons.
Decisions at NPT review conferences - held every five years - are made by consensus.
The failure of the current talks means the next gathering could only be held in 2020 at the earliest.

A UN conference aimed at preventing the proliferation of nuclear weapons has ended in failure after a row over a nuclear-free Middle East proposal.


Mothers-to-be are more likely to get malaria as their immunity is lowered, says the Royal College of Obstetricians and Gynaecologists (RCOG).
Malaria carries serious risks for mother and baby including miscarriage, stillbirth and premature labour.
The tropical disease is transmitted by mosquitoes and causes a fever, flu-like symptoms, vomiting and diarrhoea.
There have been no malaria-related deaths in pregnant or recently pregnant women in the UK in the past decade but the RCOG says it has been receiving inquires from worried women.
In the UK, about 1,500 cases of malaria are reported each year and about 10 people will die, said the RCOG.
It says all non-essential trips to areas with a high risk of malaria should be avoided.
Risk areas include large areas of Africa, Asia including China and India, Central and South America, parts of the Middle East and some Pacific Islands.
If the trip is unavoidable, the college advises women to seek advice from a centre with expertise in malaria which will provide information on ways to reduce the risk of infection.
Women should make sure they are aware of the risk, take out measures such as mosquito nets for bite prevention and take anti-malarial medication.
Philippa Marsden, who chairs the RCOG's patient information committee, said although the risks were still relatively small it was important that women were well-informed.
Cath Broderick of the RCOG women's network said: "If women are worried about symptoms after returning from a high-risk country and think they may have malaria, they should see a doctor immediately and inform them of their recent travels."
Symptoms can take a week or more to develop after being bitten.

Pregnant women should visit countries with a risk of malaria only if their trip is essential, experts are warning.


Researchers at the University of Sheffield said the tumours were effectively "fertilising" the bone to help themselves grow.
The study, in the journal Nature, said it may be possible to protect bone from a tumour's nefarious influence and consequently stop the cancer's spread.
Cancer charities said this opened up "a whole new avenue for research".
Around 85% of breast cancers that spread around the body end up in bone, at which point the cancer is difficult to treat and more deadly.
The scientists, in Sheffield and the University of Copenhagen, discovered patients with secondary cancers had higher levels of an enzyme called LOX being produced by their tumours and released into the blood.
Bone is constantly being broken down and rebuilt. But in a series of experiments on mice, the research team showed LOX was disrupting the process and leaving lesions and holes in the bone.
Using drugs to block LOX prevented the cancer from spreading.
Dr Alison Gartland, a reader in bone and cancer biology at the university, told the BBC News website: "We think it's a significant breakthrough in trying to prevent metastases (secondary tumours) in breast cancer.
"The cancer cells in the primary tumour are actually fertilising the soil for the future growth of itself, LOX is changing the environment in bone to make it better to grow."
The animal tests also showed that a set of osteoporosis drugs called bisphosphonates could prevent the spread of cancer.
Bisphosphonates also interfere with the way bone is recycled in order to strengthen it.
They are already given to some cancer patients, but the Sheffield team believe they could have a much larger role.
The effect was discovered only in oestrogen-negative breast cancers. They account for around a third of cases, but are far more deadly.
Katherine Woods, from Breast Cancer Campaign and Breakthrough Breast Cancer, said: "By unveiling the role that the protein LOX is playing, these results open up a whole new avenue for research and treatments that could stop breast cancer spreading to the bone.
"The research also adds weight to the growing body of evidence supporting the role of bisphosphonates in stopping secondary breast cancer in its tracks.
"The reality of living with secondary breast cancer in the bone is a stark one, which leaves many women with bone pain and fractures that need extensive surgery just when they need to be making the most of the time they have left with friends and family."
The findings may also apply in colon cancer.

Breast cancers can manipulate the structure of bone to make it easier to spread there, a study has found.


Paris Hilton arrived at LAX Wednesday dressed to pay her last respects to her uncle Monty Brinson. Paris flew in from Switzerland especially for the funeral of Brinson, who used to be married to her aunt Kim Richards. Monty died Sunday after a long battle with cancer ... and the loss is obviously hitting Paris hard. She posted a picture collage with Monty calling him an "incredible man with such a huge heart." R.I.P.


Google I/O, the company's big developer conference, kicks off today (May 18). It's a showcase for its newest updates on Android, virtual reality, artificial intelligence and more. (And a chance to bury last year's less-successful launches.) It should be interesting. Here's how you can watch it: With Google, on its YouTube livestream. With Google, on its YouTube livestream in virtual reality, if you have one of its Cardboard devices. VR you ready? Watch the #io16 keynote live on @YouTube 360 this Wed 10AM PT. https://t.co/eZ3yrQCfK0 pic.twitter.com/h5ppO9sVWe Or, best of all, with Recode! Join us at 10 am PT, 1 pm ET, 6 pm in London and 1 am (May 19) in Hong Kong for the keynote kick-off with our liveblog, where we pledge to be entertaining and insightful. And follow our coverage throughout the week for an insider's look at the search giant's next big steps. This article originally appeared on Recode.net.


"\"""" SOULE TRAIN\"""" OCT 27 HALLOWEEN SPECIAL ft T.dot FINEST rocking the mic...CRAZY CACTUS NIGHT CLUB..ADV billet 10 $ wt out costume 15..."


station = input()
print("Yes" if "AB" in station or "BA" in station else "No")

S = str(input())
if S[0] == S[1] == S[2]:
  print('No')
else:
  print('Yes')


from collections import deque

n, m = map(int, input().split())

way = {}
for i in range(m):
    a, b = map(int, input().split())
    if a not in way:
        way[a] = []
    if b not in way:
        way[b] = []
    way[a].append(b)
    way[b].append(a)

queue = deque([1])
ok = set([1])
ans = [0] * (n+1)

while queue:
    now = queue.popleft()
    for i in way[now]:
        if i in ok:
            continue
        ans[i] = now
        queue.append(i)
        ok.add(i)

print("Yes")
for i in range(2, n+1):
    print(ans[i])

import queue

q = queue.Queue()
bool = True

def bfs():
    q.put(0)
    while not q.empty():
        now = q.get()
        for i in nodes[now]:
            if dist[i] != -1:
                continue
            dist[i] = dist[now] + 1
            q.put(i)
            ans[i] = now
    # bool = False

N, M = map(int, input().split())
nodes = [[] for i in range(N)]
idxStock = []
for i in range(M):
    a, b = map(int, input().split())
    nodes[a - 1].append(b - 1)
    nodes[b - 1].append(a - 1)

dist = [-1] * N
ans = [-1] * N
bfs()
if bool:
    print("Yes")
    for i in range(1, N):
        print(ans[i] + 1)
else:
    print("No")


A, B, C = input().split()
S = A + B + C
ans = 'No'
for i in range(len(S)):
    if S.count(S[i]) == 2:
        ans = 'Yes'
        break
print(ans)


import math
while(1):
	a=0
	n=int(input())
	if n==0: break;
	s=list(map(int,input().split()))
	m=sum(s)/len(s)
	for i in range(n):
		a=a+pow(s[i]-m,2)
	print(math.sqrt(a/n))

while True:
    n = int(input())
    if n == 0:
        break
    else:
        data_set = [int(i) for i in input().split()]
        m = sum(data_set) / n
        v = 0
        for i in data_set:
            diff = i - m
            v += diff ** 2
        v /= n
        print(v ** 0.5)


N = [int(_) for _ in list(input())]
a, b = 0, 1
for n in N:
    a, b = min(a+n, b+10-n), min(a+(n+1), b+10-(n+1))
print(a)

from math import *

def distance (p,n,x,y):
    dis = 0.0
    if p == "inf":
        for i in range(0,n) :
            if dis < abs(x[i]-y[i]):
                dis = abs(x[i]-y[i])
    else :
        for i in range(0,n) :
            dis += abs(x[i]-y[i])**p
        dis = dis ** (1.0/p)
    return dis

if  __name__ == '__main__' :
     n = int(input())
     x = map(int,raw_input().split())
     y = map(int,raw_input().split())
     print distance(1,n,x,y)
     print distance(2,n,x,y)
     print distance(3,n,x,y)
     v = distance('inf',n,x,y)
     print "%.6f" % v


n, m = map(int, input().split())
ab = [list(map(int, input().split())) for _ in range(m)]

class Union:
    def __init__(self, n):
        self.parents = [-1] * n

    def root(self, x):
        if self.parents[x] < 0:
            return x
        else:
            return self.root(self.parents[x])

    def unite(self, x, y):
        x = self.root(x)
        y = self.root(y)
        if x == y:
            return
        if self.parents[x] > self.parents[y]:
            x, y = y, x
        self.parents[x] += self.parents[y]
        self.parents[y] = x

uni = Union(n)
for a, b in ab:
    uni.unite(a-1, b-1)
print(-min(uni.parents))

n = int(input())
data = [int(i) for i in input().split()]
print(f'{min(data)} {max(data)} {sum(data)}')


Say , Jim , how about going for a few beers after dinner ?

You know that is tempting but is really not good for our fitness .


You know that is tempting but is really not good for our fitness .

What do you mean ? It will help us to relax .


What do you mean ? It will help us to relax .

Do you really think so ? I don't . It will just make us fat and act silly . Remember last time ?


Do you really think so ? I don't . It will just make us fat and act silly . Remember last time ?

I guess you are right.But what shall we do ? I don't feel like sitting at home .


I guess you are right.But what shall we do ? I don't feel like sitting at home .

I suggest a walk over to the gym where we can play singsong and meet some of our friends .


I suggest a walk over to the gym where we can play singsong and meet some of our friends .

That's a good idea . I hear Mary and Sally often go there to play pingpong.Perhaps we can make a foursome with them .


That's a good idea . I hear Mary and Sally often go there to play pingpong.Perhaps we can make a foursome with them .

Sounds great to me ! If they are willing , we could ask them to go dancing with us.That is excellent exercise and fun , too .


Sounds great to me ! If they are willing , we could ask them to go dancing with us.That is excellent exercise and fun , too .


Of course I can . It's a piece of cake ! Believe it or not , I can do 30 push-ups a minute .


Input: [Answer] spermiogenesis [Question]

Output: the size of sperm is sloughed off during which phase?


Input: [Answer] germinal ridges [Question]

Output: gonad precursors are what structures?


Input: [Answer] seminiferous tubules [Question]

Output: before puberty, testicular sex cords develop lumens to become?


Input: [Answer] spermatogonia [Question]

Output: at puberty, primordial germ cells in males become what?


Input: [Answer] provide support and nutrition to sperm cells [Question]

Output: what is the function for sertoli cells?


Input: [Answer] incomplete cytokenesis via mitosis [Question]

Output: how do spermatogonia divide?


Input: [Answer] meiosis [Question]

Output: how do spermatogonia differentiate into primary spermatocytes?


Input: [Answer] the first meiotic division [Question]

Output: what event causes primary spermatocytes to become secondary spermatocytes?


Input: [Answer] 22 days [Question]

Output: how long is the prophase of primary spermatocytes?


Input: [Answer] spermatids [Question]

Output: after the second meiotic division, secondary spermatocytes are called what?


Q: Which is more likely?
1. Michael is an accountant.
2. Michael is an accountant and is careful.
A:


Question: Which is more likely?
A. Andrew is a scientist and is smart.
B. Andrew is a scientist.
Answer:


Q: Which is more likely to be true?
1. Jessica is a teacher.
2. Jessica is a teacher and is patient.
A:


Donna: Bohemian Rapsody Central Cinema tomorrow 8pm
Donna: Are u in?
Michael: totally!
Michael: great idea
Donna: OK, see you in front of the main entrance at 7:50

Tomorrow Donna and Michael will meet in front of the main entrance of Central Cinema at 7:50 pm to watch Bohemian Rapsody at 8.


John: Anything from the store?
Tracy: Hmmm... there was this goat cheese last time that I really liked. You remember which one.
John: I think I do. Anything else?
Tracy: Maybe milk, cause we're running out. And like a couple of rolls, the grainy ones.
Tracy: oh and tissues.
John: Ok, roger that.

John will buy the goat cheese Tracy liked, milk, a couple of grainy rolls, and tissues.


Jimmy: so how is the dispute between your countries going? hihi
Jimmy: I think it's a never-ending epic
Jose: Actually, it seems it's better now
Jimmy: is it?
Dean: yup. they held a referendum in Guatemala last year
Jimmy: only Guatemala? I thought the referendums were supposed to be held simultaneously
Hugo: yes, but they decided to change it
Jimmy: so what about Belize?
Hugo: Belize will hold a referendum in April 2019
Dean: at least it's the official plan
Jimmy: wow, that's amazing after a few centuries hahaha
Dean: true, but it's not settling the dispute, they will just send the case to the international tribunal
Jimmy: I see, it's interesting

Two countries haven't been able to reach agreement for centuries. There was a referendum in Guatemala last year. According to the plan, Belize will hold a referendum in April 2019. However, it's not settling the dispute and they'll send the case to the international tribunal.


Ben: I'm waiting downstairs
Tom: Adam is shitting
Adam: Give me 5 more minutes!!!


Jimmy: get me some fries too!!
Dan: okay, ketchup?
Jimmy: and mayo
Dan: ok!

Dan will get Jimmy some fries with ketchup and mayo.


Eve: Has anyone seen the new HP film?
Alice: I saw it with Phillip yesterday
Eve: And, how did you like it?
Alice: I really liked it. Phillip a lot less :P
Carla: No spoilers! I am planning on going this weekend
Eve: Great, I am going with a friend from my studies. Care to join us?
Carla: Saturday or Sunday?
Eve: We aren't sure yet, but we want 2D, so not a lot of choice. Maybe Saturday at 16:50?
Carla: Works for me :) Later we can go to the main square for some hot wine?
Eve: Great idea ;) Will you join us Alice?
Alice: I wish I could, but I am going to that wedding I mentioned last time :(
Carla: Uuuu, be sure to find me a future husband among Phillips family ;)
Alice: As far as I know we will be the youngest couple there :p
Carla: I don't mind some old and wealthy guy ;)

Phillip and Alice saw the new HP film yesterday. She liked it more than him. Eve is going to see it with friends from studies on Saturday at 16:50. Carla will join them. Alice can't go because she is going to the wedding.


Eva: I've signed the agreement
Tina: You did? omg so happy for ya
Eva: Thanks:) I am super excited
Barb: Omg babe! awesome!
Eva: hahaha thanks! I didn't know it's gonna be so emotional!
Barb: Hell yeah! It's kinda binding for 25 years you know, kinda scary
Eva: I know, but, Mat and I are getting married so after that we're gonna consolidate or sth and pay it off together faster
Barb: You guys are getting married?
Eva: Yes we are! you didn't know?
Barb: First time hearing this
Tina: No worries I just found out myself
Barb: Anyway! Congrats love! You guys are awesome!
Eva: Thank you so much! It's an exciting time
Barb: Well I hope we're all invited for the housewarming party
Eva: Of course! I'll be sending emails

Eva signed the agreement. She and Mat are getting married. They will organize the housewarming party in their new flat.


John: I'm starving. What's for dinner?
Jane: Whatever you cook :-)
John: Damn! I best get some take-aways.


Elena: Hi! What's up?
Ann: Nothing much, I'm working.
Elena: Oh, I see. When will you be free?
Ann: I'm off at 5. Wanna grab some coffee?
Elena: Yeah, it's been ages, I have to talk to you.
Ann: Great, is everything OK?
Elena: Yeah, it's just Robert, he's acting weird.
Ann: Again? I thought you guys figured everything out.
Elena: I thought so too... But he keeps getting these "thoughts", you know. About the future and stuff and he acts weirder than normal.
Ann: Yeah, he's always been like that, right? Getting worked up over nothing.
Elena: That's the thing. He gets mad over some things he made up in his mind and he blames me for it!
Ann: You have to be patient, you know what he went through last year.
Elena: I know, but I stood by him, every step of the way. And he acts as if I didn't understand.
Ann: Honey, I'm sure it will all get better, we'll talk it through this afternoon, but I really need to get back to work, sorry.
Elena: Sure thing, sorry I kept you.
Ann: Don't mention it, it's just my boss is looking.
Elena: LOL, tell him you're counseling your crazy friend.
Ann: I'm not sure it's the best way to suck up to your boss xD
Elena: haha, I figure it's not. See you!

Ann and Elena arrange meeting for a coffee around 5, after Anna has finished work. Elena would like to talk about Robert, as he's acting weird, having 'thoughts' about the future and blaming her for some things he made up. She needs to be very patient with him.


Question: Java launch error selection does not contain a main type

Selection does not contain any Java files from eclipse

Eclipse: "selection does not contain a main type" error when main function exists

Why do I get the "Selection does not contain a main type" when my class has a main?

Can't launch app with ParseLoginActivity

Selection does not contain main type - error

how can i run a code just on first launch?

Eclipse launch existing launch-configuration

How to call launch() more than once in java

Selection does not contain a main Type - Eclipse Run Error

Launch Java class from another Java application

Launch main method from object with type "Class<?>"

Eclipse Java Launch Error: Selection does not contain a main type

Eclipse error when trying to run Java application - "Selection does not contain a main type" - But it does?

Eclipse saying selection does not contain a main type?

Launch powershellscript in java application


Question: No active contexts for scope type javax.enterprise.context.RequestScoped when invoking a bean from a thread

Why am I getting a WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped exception?

Working with different contexts with JUEL

Not getting request parameters in @RequestScoped ManagedBean

Variable of same class in separate contexts

@Remote EJB which uses @RequestScoped CDI bean

Difference between Java Bean and Enterprise Java Beans?

REST endpoint - Singleton vs RequestScoped

What is the difference between using RequestScoped (faces) and RequestScoped (context)

Difference between Bean, Java Bean and Enterprise Java Beans

WebSocket endpoint and CDI injection: No active contexts for scope RequestScoped

JPA's EntityManager should be RequestScoped?

Jersey - Inject variable from filter as RequestScoped

Inject a @RequestScoped bean twice as different instances

Enterprise App and the Enterprise App Client

selected bean is not in the same module or enterprise application

Downloading and adding javax.enterprise.context.RequestScoped to my project

HttpServletRequest injection on RequestScoped bean CDI

Testing a project using Guice Servlet: How to bind out-of-scope RequestScoped instances?

WebBeans context with scope type annotation @RequestScoped does not exist within current thread

How do i get file path of my file in java enterprise application?

Can I start a ManagedThread in a Singleton Enterprise Java Bean?

the package javax.enterprise.context is missing after glassfish update

JSF2: Pass objects from one requestscoped bean into another Requestscoped bean?

How to use RequestScoped objects within singleton jersey interceptor?

Is there a way to make a bean thread-scope?


Question: Using Java To Download Files From a HTTPS URL

Download file from HTTPS server using Java

Java how to find out if a URL is http or https?

Java: download web content from Google https

Download file from HTTPS in browser on android

where can i find an example of how to setup https on java where https is not supported

How to save the file from HTTPS url in JAVA?

What should I do to make my Java web application to use HTTPS?

How to get response code from a Https Url using java

WDSL2Java exception when I run it on https URL

How to download files without making application GUI freeze

How do I login and download a file from a https web page from Java?

How to get xml from https url on Android?

Download images from a HTTPS URL in Java

Spring Security Https - Error when try to login with https


Question: Displaying a 2D array of integers as an image in Java

How to convert a 2d array of integers to an image in java?

Why doesn't my 2D array displaying properly and doesn't display input

Displaying image from separate java file

Convert vector of integers into a 2D array

displaying image in java, no main class found


Question: How do I configure Maven for offline development?

How do I configure Ivy to be used offline?

GWT/Web Java offline application example

could the first ever maven build be made offline?

Android - application depending on own api - server offline

How do i view or access java docs offline?

Can I "see" Java Standard Libraries Offline

Is it possible to run maven in offline mode?

How to know if app user is offline android app?

Maven doesn't download dependencies: "The repository system is offline"

Get data from Parse server for offline usage

Connect Web application to an offline compiler (Java/Python)

Is there a maven command line option for offline mode?

Download maven project dependencies to build offline later

How to Cache Json data to be available offline?


Question: Spring Security Logout doesn't work with Spring 4 CORS

Spring Security remember me logout issue

Login Logout use case in Spring security

Spring Security - Simple CORS authentication error

Which way is correct for setting CORS in new Spring?

how to correctly logout user in spring security

How to add logout functionality in spring security

spring security : logout does not work when having long relative path

Logout is not working in Spring Security

How to no redirect to another page when user logout in spring security

Spring security logout not working because of CORS

Spring Data REST (2.4.4.RELEASE) and CORS

CORS thetransactioncompany does not work for one specific path

spring security j_spring_security logout problem

Spring, CORS, and j_spring_security_logout

Spring security logout goes to j_spring_security_logout


Question: How to check if resultset has one row or more?

Java ResultSet how to check if there are any results

How to get data from a specific row in using a ResultSet object?

How to get row count using ResultSet in Java?

How to get only the first row from a java.sql.ResultSet?

Why ResultSet isn't null,But I can't get data from the ResultSet

Do I need next() for a ResultSet with one row?

Do not update row in ResultSet if data has changed

Difference between ResultSet.TypeForwardOnly and ResultSet.TypeScrollable


Question: JavaFX is now out: Are Applets and Java Desktop officially dead/dying?

Is JavaFX a replacement for Java Applets?

Session dying when using curl from command line

Why is my RMI server dying after 20 hours

How does java run its applets in the browser?

What's the difference between http://localhost:8000/ and http://127.0.0.1:8000/ for Java Applets

Is there a way to tell if a join exits from a timeout or thread dying?

How does Eclipse run .java files as applets?


Question: How to Sort an Arraylist of Date in ascending and descending order which is in String format

How to Sort Date in descending order From Arraylist Date in android?

sort array of objects in descending order

Find out which row is sorted and if it is ascending or descending

print range of integers in descending or ascending order in java

Ascending / Descending order in object array using element length

Sorting Custom Object Price Values in Ascending and Descending order

Sort ArrayList of Strings in descending order

How to sort ArrayList in descending order

Design a compareTo that can sort in ascending or descending order

How to sort List of string with delimiters by ascending and descending order

How to sort ArrayList<Object> in Ascending order android

Sort List based on conditions (ascending or descending)

Ascending order Sorted array is getting printed in descending order?

How to print a descending/ascending number of spaces in Java?

How do I use a method to input an array in ascending and descending order?

Sort Ascending or Descending inside a Bubble-Sort

how to i change this insertion sort from ascending to descending - java

Sort all even numbers in ascending order and then sort all odd numbers in descending order in a collection

How to sort the string number in descending order?

Sorting List ascending and descending android java

Will you get descending order if you reverse list of objects which is sorted by ascending order?

How to sort an arrayList with string in descending order

How can I sort one column by ascending and another by descending in Spring Data?

Quick Sort Sorts Descending Not Ascending

Iterator with descending and ascending order does not work


Question: Why would one declare a Java interface method as abstract?

Do we need to declare interface methods as abstract

In Java, when should I use an abstract method in an interface?

Same method in Interface and Abstract class

What should I declare my object with when the class has an interface and a abstract superclass?

What (not) to declare when implementing an interface with an abstract class?

what is a abstract method on a interface in java

When to use abstract class or interface?

Java Interface\abstract class constriction

Why use abstract class and not interface?

Can't declare an abstract method private

Do I need to declare methods of abstract class in respective interface?

How to declare abstract method in non-abstract class


Though the sizing was correct, the back was so stiff that it rubbed the heels of my feet raw within hours.


I bought two pairs of these and made the mistake of throwing away the boxes. Now I'm stuck with shoes I cannot wear.<br />They are WAY too large and won't stay on my feet. I walk right out of them.  Had to go into a shoe store next to the movie theaterl to buy a pair of shoes I could walk in before a movie started because I could not even walk.


If you like flip-flops, these are the best, in my opinion. They are durable and comfortable (as far as flip-flops go).


i returned them because the length was fine but the straps were baggy and not adjustable, couldn't wear them at all


They will be perfect once they are stretched out.  The insides are very comfy!


Great shoes for racquetball according to my husband for whom I ordered these.


The lenses fit in my frames properly. I have 20/40 vision and these lenses give me a headache and make me dizzy like being drunk and meticulously placing one foot in front of the other due to depth perception issues. It's like wearing prescription lenses without needing them. The packaging and cleaning The packaging is wonderful and even includes a cleaning cloth. Maybe I got a bad set?


Shoes are too big overall.


I was recommended to get these boots by a Guide in Newfoundland for a hunt this fall.  Since no stores here locally can purchase these I am going off reviews and online research.<br />I ordered a size 10 (US) for my normal size, and for my hunting colleague to try who also uses the same size.  They are definitely 1 size larger than normal sizing in US.  The boots are very lightweight, which comes with the lack of support and rigidness.  I will be ordering a size 9 though, as they do appear to be a quality made boot.


Size is perfect and Amazon maintain the delivery schedule.


Nick: You look absolutely gorgeous and have a lovely smile.
Nick: Would love to get to know you a bit more. How about we meet up for a drink sometime?
Jane: Hmmm... You're shooting a bit above your range aren't you?
Nick: Why would you think that hon?
Jane: Because I'm not that desperate.
Nick: That was a bit below the belt.
Nick: You're nice but you're not THAT hot.
Jane: Oh is your poor little dick shriveling at the thought?
Nick: Actually I'll take it back. Forget about the drink.
Nick: Forget I ever wrote to you.
Jane: Bye loser!
Nick: Fucking bitch!
Jane: You're welcome!

Nick finds Jane pretty and invites her for a drink to get to know her better. Jane rejects Nick and is unpleasant to him. Nick suggests Jane to forget about their conversation.


Kate: I've just heard you want to sell your flat?!
Rob: That's true. Do you want to buy it?
Kate: Ha ha! I wish..
Rob: I'll give you a discount ;)
Kate: Sure. You moved in a year ago or so?! Why do you wanna sell it?
Rob: We're thinking about having a baby and it is too small.
Kate: It's not that bad. Mine is smaller and I have two.
Rob: There's no room for a cot in our bedroom.
Kate: You're right. So are you looking for two bed now?
Rob: Three bed would be perfect so that we won't have to move out again when we decide to have another baby.
Kate: That's sounds reasonable.
Rob: I know. It just the prices.. total madness!!!
Kate: I can only imagine. It's getting more expensive year after year.
Rob: I've got a friend who's relocating to another city so want to sell his flat ASAP and offers a good price. We're seeing him tomorrow.
Kate: Good luck with that! ;)
Rob: Fingers crossed! ;)

Rob wants to sell his flat, because it's too small. Rob will meet a friend tomorrow who has a flat to sell.


Pedro: batman or superman??
Alex: honestly..  neither
Pedro: WHAT??
Alex: i honestly like the flash
Pedro: whats so good about the flash :P
Alex: duuude, he can do almost anything
Pedro: not anything
Alex: yea im sure batman can run as fast -_-
Pedro: superhuman speed? thats your pitch?
Alex: that speed opens up the whole multiverse for him.. you seriously dont get how powerful he can be
Pedro: yeah i get your point

Alex prefers the Flash to Barman and Superman thanks to his speed.


Jane: Hey
Martin: Whats up
Maria: Hey
Jane: Anyone going to Value Village?
Jane: I am getting halloween costumes with my sister
Jane: If anyone wants to join
Connor: I got mine today so thanks
Connor: At Value Village
Jane: I am going with u ok? priv msg
Jane: ok ok

Connor bought his halloween costumes at Value Village where Jane plans to get her and her sister's costume.


Val: it's raining!
Candy: I know, just started...
Val: r we going? we will be wet
Candy: maybe wait a little? see if stops
Val: ok. let's wait half h and than see
Candy: god idea, I call u then
Val: great :)

It's raining, so Val and Candy will wait half an hour before they go.


Tim: The situation there is terrible now
John: I know and, honestly, I don't think it's gonna change any time soon
Jeremy: why? I think the world's attention is now on Kongo really
John: exactly, too much money involved
John: everybody wants it's resources, they are crucial for the US, for China, for everybody
Alice: for our smartphones
John: Exactly
Alice: yes, I'm not very positive either
Tim: yup, just the same story all the time
John: Ebola, war, militias, diamonds...
Tim: Hard to say what should be done
John: Surely the elections were not done properly
Tim: this for sure

The situation in Kongo is terrible because of its resources and politics.


Paula: Can we meet with the new person soon?
Ralph: Sure. In an hour okay?
Paula: Perfect.

Paula and Ralph will meet the new person in an hour.


Mary: Hello, I think you've left your credit card at our shop
Jenny: Thank you for getting in touch! Thank you so much!
Mary: No worries :)
Jenny: When can I pick it up?
Mary: Whenever you come, it's safe with one of our cashiers :)

Jenny has left her credit car at the Mary's shop.


Victoria: yo
Victoria: are you free this weekend?
Rosemary: let me see...
Rosemary: yeah
Victoria: <3
Victoria: let's record the drums?
Rosemary: you see
Rosemary: there's a problem
Victoria: yeah?
Rosemary: namely, i don't have a working laptop atm
Victoria: XD
Victoria: i have a tablet but it has 2gb ram, so probably not enough for recording
Rosemary: but does it have all the software? usb ports? windows?
Victoria: yeah it's running windows 10
Rosemary: still 2gb is probably not enough
Rosemary: so we need to borrow it from somebody
Victoria: yeah, any ideas?
Rosemary: actually i have a few
Rosemary: i'll get back to you later
Victoria: okay, thanks!
Victoria: but don't forget xd

Rosemary and Victoria would like to record the drums this weekend. Rosemary doesn't have a working laptop, whereas Victoria's tablet doesn't have enough memory for recording. Rosemary will try to borrow a laptop from somebody and will get back to Victoria later.


Upto freebets lol gunners matchedbetting c racing cheltenhamfestival


Leon bailey or Federico cheisa


Perioperative ventricular arrhythmias in patients undergoing partial left ventriculectomy.

Although incidence of ventricular arrhythmias after partial left ventriculectomy (PLV) has been reported, there are no studies comparing incidence before and after PLV.

Although operative scars may give rise to arrhythmias, improved energetic efficiency after PLV may decrease their incidence.

Pre- and postoperative ventricular arrhythmias were monitored by Holter ECG and analyzed in 17 patients undergoing PLV in Curitiba, Brazil.

Although total 24-hour heart beat (THB) increased significantly (p = 0.018), ventricular premature contractions (VPCs) decreased markedly (p = 0.036), excluding one patient dying in low cardiac output (LOS) who had terminal arrhythmias increased multifold.

In the remaining 16 patients, VPC pairs were also reduced significantly on the average (p = 0.038).

In contrast, ventricular tachycardia (VT; more than three consecutive VPCs) disappeared in five patients, decreased in two patients, and newly occurred in four patients, with five patients showing no change; one of them developed a prolonged VT, successfully reversed by external cardioversion.

Despite notable significant increase in THB immediately after PLV, PVC and PVC pairs were significantly decreased in contrast to VT, which disappeared in some patients and newly occurred in other patients, remaining constant on the average.

Sustained VT occurring in a patient with all other arrhythmias suppressed may suggest a unique electrophysiological substrate, may justify prophylactic use of amiodarone or an implantable cardioverter-defibrillator, and may underscore the importance of further and extended studies.


Bosses make hiring decision within 10 minutes

While execs spend an average of 55 minutes interviewing staff-level applicants (and 86 minutes for management candidates), they form an opinion of job-seekers in an average of 10 minutes, according to a Robert Half poll of 150 senior execs at large companies.

Legal risk: Quick first impressions may be based on illegal biases (age, race, gender, etc.).


Skynet Strikes Again: Terminator Genisys

The quest to eradicate man's leading threat against robotic domination continues in Terminator Genisys.

Skynet, this time, is hidden in a consumer friendly operating system called Genisys, which promises to link all of a person's home electroncs for convenience.

It, of course, evolves into the defense system that keeps sending machines into the past to kill Sarah Connor (Emilia Clarke).

Without her, the human resistance would not have John Connor (Jason Clarke).

He knows this, so he sends a reprogrammed Terminator known as Guardian (Arnold Schwarzenegger) over half a century into the past.

Before he sends Kyle Reese (Jai Courtney) back to 1984 Los Angeles, Sarah has become a fierce resistance fighter.

Guardian not only dispatches the original terminator, but he also helps to neutralize T-1000 (Byung-hun Lee), disguised as a police officer to kill both Sarah and Kyle.

Before T-1000 gets another chance at the pair, they get in the time machine that brought Kyle and head to the year 2017, where they try and stop Genisys from going live.

Guardian, though, remains in that time because of damage he suffered fighting the other machines.

On arriving in 2017, the pair gets arrested, but chaos soon follows.

Someone is pursuing them, but the only person who believes their time travel story is a detective named O'Brien (J. K. Simmons), who'd been there when T-1000 killed his partner.

O'Brien assists Kyle and Sarah avoid the new terminator.

Guardian has also found them, and John has also traveled back to this time.

As Kyle witnessed in part before his initial time travel, Skynet confronted John, and the results are clear to Guardian.

The trio remains undaunted as they plan an assault on Cyberdine headquarters before Genisys launches.

The Terminator series continued without Schwarzenegger when he went from the big screen to the Governor's mansion.

The greater presence lost, though, was not its lead actor, but its co-creator, James Cameron, who knew how to create fear and action so well in the franchise's first two entries.

No subsequent director, including Genisys helmsman Alan Taylor, matches Cameron's leadership.

Genisys gets lost in all of its time travel and alternate universe scenarios.

Given that Reese, in his journey into the past, can see a past where the nuclear holocaust known as Judgment Day, which supposedly happened in 1997, did not occur, no man or machine should reasonably assume that they will get to the destination planned for them.

Further, if Reese had a normal childhood, viewers have to wonder what John is fighting, since Reese's youth did not include the Judgment Day he has supposedly known.

The film looks and feels as old as Guardian, and no amount of 3-in-1 Oil can help a franchise entry as rusty as this one.

The Back To The Future franchise handled the consequences of time travel so much better.

Another part of the problem is Courtney.

His Reese is about as robotic as the machines he fights.

There isn't a second of his performance where I didn't miss Michael Biehn playng the man whose backwards journey becomes essential for mankind.

Courtney's Reese has Sarah considering abstinence - and I don't blame her.

Emilia Clarke fares better as Sarah, a woman whose only family since age 9 is Guardian, whom she calls Pops.

Self-preservation has been a must, and the arrival of Kyle gives her a much-needed human ally.

At least her Sarah compares favorably to the work Linda Hamilton did so memorably in the first two installments.

Jason Clarke does a fine job as John, who shows the effects the long-running war has had on him.

Arnold is good, though his best moments come when he shows how awkward it is for him to seem as human as Sarah would like.

Simmons, though, has the best moments as O'Brien, a cop who needs to know he's not as crazy as fellow officers think he is, and an unaged Sarah and Kyle arrive at his precinct.

I've been living in a time where a hit movie calls for at least one sequel.

I wonder where, after 31 years, these Terminator sequels will end.

The makers of Terminator Genisys have two more movies planned, and I am sure that I and others think that's two too many.

Old Hollywood pushed out film franchises like Our Gang, Blondie, and the Bowery Boys, but these series remained in constant production instead of taking years between entries.

The James Bond series has run longer, but the makers of the series keep finding a way to keep this MI6 agent relevant.

I, however, believe it's generally not a good idea to keep a film series growing closer in age to Methusalah with every passing day.

Some of us would like to still be around for the final outcome of movie franchises that began years before many of today's moviegoers were born.

If nothing else, I hope that those involved with Terminator Genisys seek to make their sequels an end game.

On a scale of zero to four stars, I give Terminator Genisys two stars.

Comments

No HTML is allowed in comments, but URLs will be hyperlinked.

Comments are not for promoting your articles or other sites.

sending

AUTHOR

Pat Mills

3 years agofrom East Chicago, Indiana

Thanks.

I liked Rise Of The Machines and Salvation enough, and looked past the spate of negative reviews and went to a matinee.

For your sake, I hope your wife isn't the one drooling in the popcorn.

Mel Carriere

3 years agofrom San Diego California

And to think I have to take my wife to see this.

She won't care if you only gave it two stars.

I hope it's not too much of a snoozer because I hate sleeping in theaters and drooling in the popcorn.

This website uses cookies

As a user in the EEA, your approval is needed on a few things.

To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data.

Please choose which areas of our service you consent to our doing so.

This is used to display charts and graphs on articles and the author center. (

Privacy Policy)

Google AdSense Host API

This service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles.

No data is shared unless you engage with this feature. (

Privacy Policy)

This is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal.

No data is shared with Paypal unless you engage with this feature. (

Privacy Policy)

Facebook Login

You can use this to streamline signing up for, or signing in to your Hubpages account.

No data is shared with Facebook unless you engage with this feature. (

Privacy Policy)

Maven

This supports the Maven widget and search functionality. (

Privacy Policy)

We may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.

Conversion Tracking Pixels

We may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.

Statistics

Author Google Analytics

This is used to provide traffic data and reports to the authors of articles on the HubPages Service. (

Privacy Policy)

Comscore

ComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers.

Non-consent will result in ComScore only processing obfuscated personal data. (

Privacy Policy)

Amazon Tracking Pixel

Some articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)


A novel polysaccharide derived from algae extract induces apoptosis and cell cycle arrest in human gastric carcinoma MKN45 cells via ROS/JNK signaling pathway.

In recent years, interest in biological activities of compounds from marine organisms has intensified.

Cancer is the most principal enemy for human life and health.

For the first time, to the best of our knowledge, we investigated a novel algae-derived polysaccharide for its role in inducing apoptosis and cell cycle arrest in human gastric carcinoma MKN45 cells.

We found that the novel polysaccharide suppressed MKN45 cell proliferation, induced cell apoptosis and arrested the cells at G2/M phase.

Furthermore, we observed that the generation of reactive oxygen species (ROS) and the phosphorylation of Jun N-terminal kinase (JNK), p53, caspase-9 and -3 were induced in the polysaccharide-treated MKN45 cells.

In addition, pretreatment with N-acetyl-cysteine (NAC) and SP600125, the inhibitor of ROS and JNK, induced MKN45 cell proliferation, prevented the cell apoptosis and released the cells from cycle arrest.

Finally, we found that pretreatment with NAC prevented the JNK, p53, caspase-9 and -3 protein phosphorylation induced by the polysaccharide, however, pretreatment with SP600125 did not affect the generation of ROS, suggesting that ROS is upstream of JNK.

Taken together, the novel polysaccharide induced cancer cell apoptosis and arrested cell cycle via ROS/JNK signaling pathway.


Q:

Orbeon changed behavior for xforms:alert / xforms:h3lp

[Stackoverflow disallows the word help in the title.

Hence the h3lp]
We are in the proces of moving our code from Orbeon 3.9 to Orbeon 4.x.

One of the many things that changed is the behavior for display of xforms:alert and xforms:help.

Example code:
<xforms:input ref="@code">
    <xforms:alert ref="$resources/required-field"/>
    <xforms:help ref="$helptext"/>
</xforms:input>

In Orbeon 3.9 the alert is displayed as a red img with a white exclamation mark that has the text as tooltip, only if the binding fails.

The help is displayed as a blue-ish image with a question that activated a tiny pseudo window containing the (potentially large) help text.

In Orbeon 4.7 the alert text is displayed as-is, no image and no condition based on binding.

This interferes with a carefully designed interface as it takes up a lot more space.

The help text is not displayed at all because .xforms-help has display: none;.

Overriding that doesn't work because the text would then just be displayed inline.

I could not find documentation for these changes.

Does anyone know the rationale and how to make "alert" and "help" useful yet again?

A:

There are two changes with Orbeon Forms 4.x which might be relevant to this:

The HTML layout of elements has changed a bit.

This means existing CSS might have to be adapted.

You can check this by comparing the HTML produced by 3.9 vs. 4.x for a given page.

With 4.x, all form elements, for example, are wrapped within a <span> or <div> element.

Form Runner uses Twitter Bootstrap as a CSS library.

But the Bootstrap CSS files are also included for non-Form Runner pages.

This said, "red icon" alerts should still work, see for example the good old Espresso Order or Bookcast demos.

If you see alerts inline and unconditionally, it means that somehow the proper CSS doesn't apply, either because of the HTML layout change mentioned above, or because some CSS files are missing.


Field of the Invention
This invention relates to offshore oil spill collection devices and particularly to offshore oil spill collection devices that operate below the surface of the sea to collect oil and gas.

Description of the Prior Art
Damage to the environment by leaking oil or gas from underwater pipelines or oil wells has become a serious problem.

Costs to remove oil coming to the surface via these leaks from an underwater well or pipeline are tremendous.

In addition, the loss of the oil can be in hundreds or thousands of barrels a day, which is a significant loss of a vital natural resource.

Recent events in the Gulf of Mexico illustrate the extent and seriousness of this problem.

The main techniques for dealing with such leaks or spills have been removing the oil from the surface of the water and land, and cleaning wildlife.

However, simply cleaning up the oil is not sufficient to prevent or reduce the loss of a vital natural resource.

In the recent Gulf spill, millions of gallons of oil were burned off or simply disbursed into the sea, where they may be accumulating on the sea floor.

In addition to oil leaks, there are natural methane and oil seeps located below the surface of the sea.

Such seeps can provide a source of gas and oil, while the recovery of such gas helps control the emission of a greenhouse gas into the environment.

Oil recovery apparatus can be effective in preventing the contamination caused by oil and oil/gas leakage from underwater pipelines or oil wells.

For example, a large number of oil wells are located offshore in deep water and rupture of a well casing, etc.,

causes the oil/gas to be discharged upwardly under pressure from the oil well, resulting in a loss of oil.

Presently, there are few devices that are used to collect leaked or spilled oil from the sea.

This device is a housing that is positioned above an underwater leak and anchored in place.

As the oil and gas rise in the water column, the device can trap the oil and gas within the housing.

The device has a vent with a burner that can be used to burn off the gas.

It also has a pump to remove the oil that is collected.

Although this device seems to be a good solution, it has several problems.

First, the device must be positioned so that the top of the housing is above the water.

This is to allow the gas to be burned off and the oil to be pumped onto barges or other vessels.

However, it is difficult to maintain such a device in such a position because of currents, wave action and storms.

Moreover, in many cases the oil pipelines or wells are at great depths (the gulf well in the recent spill was over a mile deep).

A column of oil rising from that great a depth will be dispersed by currents and wave action long before it breaks the surface.

Even a large number of such devices placed on the surface will only collect minor amounts of such oil.

At present, there is no such device for capturing such gas and oil from undersea seeps.

Therefore, there is a need for a collection system that can operate under the surface so that it can be positioned to collect both leaking and seeping oil and gas from the sea floor.


Kelly: Oh! Oh! Can I pick the first question?
Jessica: Sure. Go for it!
Kelly: What's the scariest place you've been to!
Jessica: I'll start: Palermo in Italy.
Mickey: And what's so scary about that? Did you break your nail? :P
Jessica: Shut it, Mickey! No, there are the Capuchin Catacombs with 8000 corpses!
Kelly: Ewwww! Corpses? Rly?
Jessica: Yeah! And you can look at them like museum exhibits. I think they're divided somehow, but have no clue how!
Ollie: That's so cool! Do you get to see the bones or are they covered up?
Jessica: Well, partly. Most of them were exhibited in their clothes. Basically only skulls and hands.
Mickey: I'm writing this one down! That's so precious!
Ollie: Me too!

The scariest place for Jessica was the Capuchin Catacombs in Palermo.


Carrie: Just back from Fantastic Beast :)
Gina: and what do you think?
Carrie: generally good - as usual nice special effect and visuals, an ok plot, a glimpse of the wizarding community in the US.
Alex: Sounds cool. I was thinking of going this weekend with Lane, but I've seen some bad reviews.
Carrie: Depends on what you expect really - I have a lot of sentiment towards Harry Potter so, I'm gonna like everything the do. But seriously the movie was decent. However, if you're expecting to have your mind blown, then no, it's not THAT good.
Gina: I agree. I saw it last week and basically I'm satisfied.
Alex: No spoilers, girls.
Carrie: no worries ;)
Carrie: And Gina, what do you think about Eddie Redmayne as Newt?
Gina: I loved him <3 I loved how introverted and awkward he was and how caring he was towards the animals. And with all that he showed a lot of confidence in his beliefs and was a genuinely compassionate character
Carrie: not your standard protagonist, that's for sure
Gina: and that's what I liked about him
Alex: Maybe I'll go and see it sooner so we can all talk about it.
Carrie: go see it. If' you're not expecting god-knows-what you're going to enjoy it ;)

Carrie and Gina saw "Fantastic Beast" and liked it. Ginna loved Eddie Redmayne as Newt.


Samantha: How are you doing today?
Robyn: better, but I really exaggerated with bier last night
Samantha: was it really only bier?
Robyn: sure, why?
Samantha: I don't know, your eyes, behaviour
Robyn: you want to say I took drugs?
Samantha: I'm only asking, I don't have anything against drugs
Robyn: but I have and I never take them
Samantha: ok, sorry, I didn't intend to offend you
Robyn: I just drank too much, that's eat
Samantha: much too much
Robyn: yes, I lost control a bit
Robyn: I am sorry for that
Samantha: important that you feel better today

Robyn drank too much beer last night and lost control. She is feeling better today.


Peyton: I have been asking you to bring that video game for me
Cameron: Honey, I am not having enough time to come home
Peyton: When would you come home?
Cameron: I will have to stay out of town for another week i guess
Peyton: Cant you just deliver that game through the courier? :P
Cameron: Dont be mean :/
Peyton: Get the job done and come to home then. ASAP :P

Peyton is expecting Cameron to bring the video game. Cameron will probably be out for another week.


Gene: Did you get the package I sent you
Jack: No, when did you send it?
Gene: on Friday
Jack: shit I should have gotten it by now
Jack: send me the tracking umber I;ll check whats up
Gene: 12345678900

Jack has not received yet the package Gene had sent him on Friday. She sent him the tracking number, so he could check the status of the shipment.


Russ: Hi Gurdun, are you feeling better?
Gurdun: Hi Ross, a little bit better, yes, thank you.
Russ: Do you think you'll be back at the uni this week?
Gurdun: Not tomorrow for sure, but I hope Wednesday maybe.
Russ: Oh, that's fine.
Gurdun: Yeah. I'm feeling a bit weak still
Russ: I guess that's pretty normal at this stage.
Gurdun: I believe so. And the muscle pain.
Russ: I know what you mean. I had flu like that three months ago.
Gurdun: Luckily the headache's gone. It was absolutely awful.
Russ: True enough. I had the same.
Gurdun: Anyway, how are things with you?
Russ: Same old, same old, you know. Not much happening in the middle of term.
Gurdun: And the team?
Russ: Oh yeah, we won the last match. It was a good game.
Gurdun: Great. Listen Russ, I need to run. Catch up later.
Russ: OK, talk to you later.

Gurdun has the flu. He is feeling better. Gurdun hopes he'll be back at the uni on Wednesday. Russ and his team won the last match.


Susan: Will you be home tomorrow?
Rob: Why do you ask?
Susan: We could have dinner together if you have time after work
Rob: Sure! Sounds great
Susan: Fantastic! I will cook something special then!

Rob will be home tomorrow. Rob and Susan will have dinner together after Rob's work. Susan will cook something special.


Evan: Hi Dennis, I need to cancel my lesson tomorrow, sorry.
Dennis: Fine, what's up?
Evan: Oh, got the flu, been off college since Tuesday. Should be ok for next Thurs.
Dennis: OK, just tell me in good time if you can't make it. Hope you feel better soon.
Evan: Bye, Den! Thanks.

Evan can't come to his lesson tomorrow, because he's got the flu.


Lorena: Hi, can you help me with something?
Martin: Well, I can try.
Martin: Depends what it is?
Lorena: I got a new desk and it comes with assembly instructions but I give up, I just can't do it.
Lorena: I'm illiterate when it comes to instructions, haha.
Lorena: So I could really use some help...
Martin: Hmm, I can't today, but how about tomorrow? Shouldn't take long anyway.
Lorena: Yeah, it's fine! I just need it for the weekend, but tomorrow's great! Sorry for troubling you again.
Martin: Don't mention it, we've known each other for so long it's almost like we're siblings, haha.
Lorena: Thanks a lot! I should be home by 6, so let me know when you can.

Martin is going to help Lorena assemble a new desk. He is coming to her house tomorrow.


Joanna: They are sending emails about Lewandowska.
Merve: What happened?
Joanna: <file_photo>
Merve: Wooow!
Joanna: She is hospitalized because she has measles.
Merve: She had what?
Joanna: Anyone who had contact with her within the last couple of days must get vaccinated.
Merve: Luckily I didn't see her since the last semester...
Joanna: I did, she is my thesis mentor :(
Merve: What will you do?
Joanna: They are organizing vaccinations in the main building from 17th until 19th.
Merve: You have to go!
Joanna: I know... And I just started working so I really don't have a lot of time.
Merve: Come on, this is really important.
Joanna: I will try to do it before work on 18th, hopefully I won't lose the entire day...

Lewandowska has measles. There are vaccinations in the main building from 17th until 19th for everyone who had contact with her.


###############################################################################
##
##  Copyright (C) 2013-2014 Tavendo GmbH
##
##  Licensed under the Apache License, Version 2.0 (the "License");
##  you may not use this file except in compliance with the License.
##  You may obtain a copy of the License at
##
##      http://www.apache.org/licenses/LICENSE-2.0
##
##  Unless required by applicable law or agreed to in writing, software
##  distributed under the License is distributed on an "AS IS" BASIS,
##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
##  See the License for the specific language governing permissions and
##  limitations under the License.
##
###############################################################################

from autobahn.asyncio.websocket import WebSocketClientProtocol, \
                                       WebSocketClientFactory

import asyncio

class MyClientProtocol(WebSocketClientProtocol):

   def onConnect(self, response):
      print("Server connected: {0}".format(response.peer))

   @asyncio.coroutine
   def onOpen(self):
      print("WebSocket connection open.")

      ## start sending messages every second ..
      while True:
         self.sendMessage(u"Hello, world!".encode('utf8'))
         self.sendMessage(b"\x00\x01\x03\x04", isBinary = True)
         yield from asyncio.sleep(1)

   def onMessage(self, payload, isBinary):
      if isBinary:
         print("Binary message received: {0} bytes".format(len(payload)))
      else:
         print("Text message received: {0}".format(payload.decode('utf8')))

   def onClose(self, wasClean, code, reason):
      print("WebSocket connection closed: {0}".format(reason))

if __name__ == '__main__':

   import asyncio

   factory = WebSocketClientFactory("ws://localhost:9000", debug = False)
   factory.protocol = MyClientProtocol

   loop = asyncio.get_event_loop()
   coro = loop.create_connection(factory, '127.0.0.1', 9000)
   loop.run_until_complete(coro)
   loop.run_forever()
   loop.close()


from itertools import chain

from django.utils.itercompat import is_iterable

class Tags:
    """
    Built-in tags for internal checks.
    """
    admin = 'admin'
    caches = 'caches'
    compatibility = 'compatibility'
    database = 'database'
    models = 'models'
    security = 'security'
    signals = 'signals'
    templates = 'templates'
    urls = 'urls'

class CheckRegistry:

    def __init__(self):
        self.registered_checks = set()
        self.deployment_checks = set()

    def register(self, check=None, *tags, **kwargs):
        """
        Can be used as a function or a decorator. Register given function
        `f` labeled with given `tags`. The function should receive **kwargs
        and return list of Errors and Warnings.

        Example::

            registry = CheckRegistry()
            @registry.register('mytag', 'anothertag')
            def my_check(apps, **kwargs):
                # ... perform checks and collect `errors` ...
                return errors
            # or
            registry.register(my_check, 'mytag', 'anothertag')
        """
        kwargs.setdefault('deploy', False)

        def inner(check):
            check.tags = tags
            checks = self.deployment_checks if kwargs['deploy'] else self.registered_checks
            checks.add(check)
            return check

        if callable(check):
            return inner(check)
        else:
            if check:
                tags += (check, )
            return inner

    def run_checks(self, app_configs=None, tags=None, include_deployment_checks=False):
        """
        Run all registered checks and return list of Errors and Warnings.
        """
        errors = []
        checks = self.get_checks(include_deployment_checks)

        if tags is not None:
            checks = [check for check in checks if not set(check.tags).isdisjoint(tags)]
        else:
            # By default, 'database'-tagged checks are not run as they do more
            # than mere static code analysis.
            checks = [check for check in checks if Tags.database not in check.tags]

        for check in checks:
            new_errors = check(app_configs=app_configs)
            assert is_iterable(new_errors), (
                "The function %r did not return a list. All functions registered "
                "with the checks registry must return a list." % check)
            errors.extend(new_errors)
        return errors

    def tag_exists(self, tag, include_deployment_checks=False):
        return tag in self.tags_available(include_deployment_checks)

    def tags_available(self, deployment_checks=False):
        return set(chain.from_iterable(
            check.tags for check in self.get_checks(deployment_checks)
        ))

    def get_checks(self, include_deployment_checks=False):
        checks = list(self.registered_checks)
        if include_deployment_checks:
            checks.extend(self.deployment_checks)
        return checks

registry = CheckRegistry()
register = registry.register
run_checks = registry.run_checks
tag_exists = registry.tag_exists


"""
The :mod:`sklearn.utils` module includes various utilites.
"""

from collections import Sequence

import numpy as np
from scipy.sparse import issparse
import warnings

from .murmurhash import murmurhash3_32
from .validation import (as_float_array, check_arrays, safe_asarray,
                         assert_all_finite, array2d, atleast2d_or_csc,
                         atleast2d_or_csr, warn_if_not_float,
                         check_random_state)
from .class_weight import compute_class_weight

__all__ = ["murmurhash3_32", "as_float_array", "check_arrays", "safe_asarray",
           "assert_all_finite", "array2d", "atleast2d_or_csc",
           "atleast2d_or_csr", "warn_if_not_float", "check_random_state",
           "compute_class_weight"]

# Make sure that DeprecationWarning get printed
warnings.simplefilter("always", DeprecationWarning)

class deprecated(object):
    """Decorator to mark a function or class as deprecated.

    Issue a warning when the function is called/the class is instantiated and
    adds a warning to the docstring.

    The optional extra argument will be appended to the deprecation message
    and the docstring. Note: to use this with the default value for extra, put
    in an empty of parentheses:

    >>> from sklearn.utils import deprecated
    >>> deprecated() # doctest: +ELLIPSIS
    <sklearn.utils.deprecated object at ...>

    >>> @deprecated()
    ... def some_function(): pass
    """

    # Adapted from http://wiki.python.org/moin/PythonDecoratorLibrary,
    # but with many changes.

    def __init__(self, extra=''):
        """
        Parameters
        ----------
        extra: string
          to be added to the deprecation messages

        """
        self.extra = extra

    def __call__(self, obj):
        if isinstance(obj, type):
            return self._decorate_class(obj)
        else:
            return self._decorate_fun(obj)

    def _decorate_class(self, cls):
        msg = "Class %s is deprecated" % cls.__name__
        if self.extra:
            msg += "; %s" % self.extra

        # FIXME: we should probably reset __new__ for full generality
        init = cls.__init__

        def wrapped(*args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning)
            return init(*args, **kwargs)
        cls.__init__ = wrapped

        wrapped.__name__ = '__init__'
        wrapped.__doc__ = self._update_doc(init.__doc__)
        wrapped.deprecated_original = init

        return cls

    def _decorate_fun(self, fun):
        """Decorate function fun"""

        msg = "Function %s is deprecated" % fun.__name__
        if self.extra:
            msg += "; %s" % self.extra

        def wrapped(*args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning)
            return fun(*args, **kwargs)

        wrapped.__name__ = fun.__name__
        wrapped.__dict__ = fun.__dict__
        wrapped.__doc__ = self._update_doc(fun.__doc__)

        return wrapped

    def _update_doc(self, olddoc):
        newdoc = "DEPRECATED"
        if self.extra:
            newdoc = "%s: %s" % (newdoc, self.extra)
        if olddoc:
            newdoc = "%s\n\n%s" % (newdoc, olddoc)
        return newdoc

def safe_mask(X, mask):
    """Return a mask which is safe to use on X.

    Parameters
    ----------
    X : {array-like, sparse matrix}
        Data on which to apply mask.

    mask: array
        Mask to be used on X.

    Returns
    -------
        mask
    """
    mask = np.asanyarray(mask)
    if np.issubdtype(mask.dtype, np.int):
        return mask

    if hasattr(X, "toarray"):
        ind = np.arange(mask.shape[0])
        mask = ind[mask]
    return mask

def resample(*arrays, **options):
    """Resample arrays or sparse matrices in a consistent way

    The default strategy implements one step of the bootstrapping
    procedure.

    Parameters
    ----------
    `*arrays` : sequence of arrays or scipy.sparse matrices with same shape[0]

    replace : boolean, True by default
        Implements resampling with replacement. If False, this will implement
        (sliced) random permutations.

    n_samples : int, None by default
        Number of samples to generate. If left to None this is
        automatically set to the first dimension of the arrays.

    random_state : int or RandomState instance
        Control the shuffling for reproducible behavior.

    Returns
    -------
    Sequence of resampled views of the collections. The original arrays are
    not impacted.

    Examples
    --------
    It is possible to mix sparse and dense arrays in the same run::

      >>> X = [[1., 0.], [2., 1.], [0., 0.]]
      >>> y = np.array([0, 1, 2])

      >>> from scipy.sparse import coo_matrix
      >>> X_sparse = coo_matrix(X)

      >>> from sklearn.utils import resample
      >>> X, X_sparse, y = resample(X, X_sparse, y, random_state=0)
      >>> X
      array([[ 1.,  0.],
             [ 2.,  1.],
             [ 1.,  0.]])

      >>> X_sparse                   # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
      <3x2 sparse matrix of type '<... 'numpy.float64'>'
          with 4 stored elements in Compressed Sparse Row format>

      >>> X_sparse.toarray()
      array([[ 1.,  0.],
             [ 2.,  1.],
             [ 1.,  0.]])

      >>> y
      array([0, 1, 0])

      >>> resample(y, n_samples=2, random_state=0)
      array([0, 1])

    See also
    --------
    :class:`sklearn.cross_validation.Bootstrap`
    :func:`sklearn.utils.shuffle`
    """
    random_state = check_random_state(options.pop('random_state', None))
    replace = options.pop('replace', True)
    max_n_samples = options.pop('n_samples', None)
    if options:
        raise ValueError("Unexpected kw arguments: %r" % options.keys())

    if len(arrays) == 0:
        return None

    first = arrays[0]
    n_samples = first.shape[0] if hasattr(first, 'shape') else len(first)

    if max_n_samples is None:
        max_n_samples = n_samples

    if max_n_samples > n_samples:
        raise ValueError("Cannot sample %d out of arrays with dim %d" % (
            max_n_samples, n_samples))

    arrays = check_arrays(*arrays, sparse_format='csr')

    if replace:
        indices = random_state.randint(0, n_samples, size=(max_n_samples,))
    else:
        indices = np.arange(n_samples)
        random_state.shuffle(indices)
        indices = indices[:max_n_samples]

    resampled_arrays = []

    for array in arrays:
        array = array[indices]
        resampled_arrays.append(array)

    if len(resampled_arrays) == 1:
        # syntactic sugar for the unit argument case
        return resampled_arrays[0]
    else:
        return resampled_arrays

def shuffle(*arrays, **options):
    """Shuffle arrays or sparse matrices in a consistent way

    This is a convenience alias to ``resample(*arrays, replace=False)`` to do
    random permutations of the collections.

    Parameters
    ----------
    `*arrays` : sequence of arrays or scipy.sparse matrices with same shape[0]

    random_state : int or RandomState instance
        Control the shuffling for reproducible behavior.

    n_samples : int, None by default
        Number of samples to generate. If left to None this is
        automatically set to the first dimension of the arrays.

    Returns
    -------
    Sequence of shuffled views of the collections. The original arrays are
    not impacted.

    Examples
    --------
    It is possible to mix sparse and dense arrays in the same run::

      >>> X = [[1., 0.], [2., 1.], [0., 0.]]
      >>> y = np.array([0, 1, 2])

      >>> from scipy.sparse import coo_matrix
      >>> X_sparse = coo_matrix(X)

      >>> from sklearn.utils import shuffle
      >>> X, X_sparse, y = shuffle(X, X_sparse, y, random_state=0)
      >>> X
      array([[ 0.,  0.],
             [ 2.,  1.],
             [ 1.,  0.]])

      >>> X_sparse                   # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
      <3x2 sparse matrix of type '<... 'numpy.float64'>'
          with 3 stored elements in Compressed Sparse Row format>

      >>> X_sparse.toarray()
      array([[ 0.,  0.],
             [ 2.,  1.],
             [ 1.,  0.]])

      >>> y
      array([2, 1, 0])

      >>> shuffle(y, n_samples=2, random_state=0)
      array([0, 1])

    See also
    --------
    :func:`sklearn.utils.resample`
    """
    options['replace'] = False
    return resample(*arrays, **options)

def safe_sqr(X, copy=True):
    """Element wise squaring of array-likes and sparse matrices.

    Parameters
    ----------
    X : array like, matrix, sparse matrix

    Returns
    -------
    X ** 2 : element wise square
    """
    X = safe_asarray(X)
    if issparse(X):
        if copy:
            X = X.copy()
        X.data **= 2
    else:
        if copy:
            X = X ** 2
        else:
            X **= 2
    return X

def gen_even_slices(n, n_packs):
    """Generator to create n_packs slices going up to n.

    Examples
    --------
    >>> from sklearn.utils import gen_even_slices
    >>> list(gen_even_slices(10, 1))
    [slice(0, 10, None)]
    >>> list(gen_even_slices(10, 10))                     #doctest: +ELLIPSIS
    [slice(0, 1, None), slice(1, 2, None), ..., slice(9, 10, None)]
    >>> list(gen_even_slices(10, 5))                      #doctest: +ELLIPSIS
    [slice(0, 2, None), slice(2, 4, None), ..., slice(8, 10, None)]
    >>> list(gen_even_slices(10, 3))
    [slice(0, 4, None), slice(4, 7, None), slice(7, 10, None)]
    """
    start = 0
    for pack_num in range(n_packs):
        this_n = n // n_packs
        if pack_num < n % n_packs:
            this_n += 1
        if this_n > 0:
            end = start + this_n
            yield slice(start, end, None)
            start = end

def tosequence(x):
    """Cast iterable x to a Sequence, avoiding a copy if possible."""
    if isinstance(x, np.ndarray):
        return np.asarray(x)
    elif isinstance(x, Sequence):
        return x
    else:
        return list(x)

class ConvergenceWarning(Warning):
    "Custom warning to capture convergence problems"


#!/usr/bin/python
# encoding: utf-8 -*-

# Copyright: (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function
__metaclass__ = type

ANSIBLE_METADATA = {'metadata_version': '1.1',
                    'status': ['preview'],
                    'supported_by': 'community'}

DOCUMENTATION = '''
---
module: kernel_blacklist
author:
- Matthias Vogelgesang (@matze)
version_added: '1.4'
short_description: Blacklist kernel modules
description:
    - Add or remove kernel modules from blacklist.
options:
    name:
        description:
            - Name of kernel module to black- or whitelist.
        required: true
    state:
        description:
            - Whether the module should be present in the blacklist or absent.
        choices: [ absent, present ]
        default: present
    blacklist_file:
        description:
            - If specified, use this blacklist file instead of
              C(/etc/modprobe.d/blacklist-ansible.conf).
'''

EXAMPLES = '''
- name: Blacklist the nouveau driver module
  kernel_blacklist:
    name: nouveau
    state: present
'''

import os
import re

from ansible.module_utils.basic import AnsibleModule

class Blacklist(object):
    def __init__(self, module, filename, checkmode):
        self.filename = filename
        self.module = module
        self.checkmode = checkmode

    def create_file(self):
        if not self.checkmode and not os.path.exists(self.filename):
            open(self.filename, 'a').close()
            return True
        elif self.checkmode and not os.path.exists(self.filename):
            self.filename = os.devnull
            return True
        else:
            return False

    def get_pattern(self):
        return r'^blacklist\s*' + self.module + '$'

    def readlines(self):
        f = open(self.filename, 'r')
        lines = f.readlines()
        f.close()
        return lines

    def module_listed(self):
        lines = self.readlines()
        pattern = self.get_pattern()

        for line in lines:
            stripped = line.strip()
            if stripped.startswith('#'):
                continue

            if re.match(pattern, stripped):
                return True

        return False

    def remove_module(self):
        lines = self.readlines()
        pattern = self.get_pattern()

        if self.checkmode:
            f = open(os.devnull, 'w')
        else:
            f = open(self.filename, 'w')

        for line in lines:
            if not re.match(pattern, line.strip()):
                f.write(line)

        f.close()

    def add_module(self):
        if self.checkmode:
            f = open(os.devnull, 'a')
        else:
            f = open(self.filename, 'a')

        f.write('blacklist %s\n' % self.module)

        f.close()

def main():
    module = AnsibleModule(
        argument_spec=dict(
            name=dict(type='str', required=True),
            state=dict(type='str', default='present', choices=['absent', 'present']),
            blacklist_file=dict(type='str')
        ),
        supports_check_mode=True,
    )

    args = dict(changed=False, failed=False,
                name=module.params['name'], state=module.params['state'])

    filename = '/etc/modprobe.d/blacklist-ansible.conf'

    if module.params['blacklist_file']:
        filename = module.params['blacklist_file']

    blacklist = Blacklist(args['name'], filename, module.check_mode)

    if blacklist.create_file():
        args['changed'] = True
    else:
        args['changed'] = False

    if blacklist.module_listed():
        if args['state'] == 'absent':
            blacklist.remove_module()
            args['changed'] = True
    else:
        if args['state'] == 'present':
            blacklist.add_module()
            args['changed'] = True

    module.exit_json(**args)

if __name__ == '__main__':
    main()