text stringlengths 16 69.9k |
|---|
Fes and northern Morocco
Fes, Morocco's oldest imperial city, offers a unique insight to the country's history. Far from the tourist-filled streets of Marrakech, wandering through Fes' labyrinthine medina is like stepping into the past, where donkeys are the primary mode of transport. Travel out of the city and you'll be immersed in the traditional Morocco, discovering untouched towns and ancient ruins.
Morocco's northern cities are packed with history and religious significance, as well as breathtaking architecture dating back hundreds, if not thousands, of years. From the winding streets of former capital Fes to the vibrant blue buildings of picturesque Chefchaouen, northern Morocco has charm and tradition in abundance. A truly diverse region, you’ll find Andalucian architecture in Chefchaouen, whitewashed walls in the holy town of Moulay Idriss, and Roman ruins dating back to the 3rd century BC in the ancient city of Volubilis. |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.VisualStudio.InteractiveWindow;
using Microsoft.VisualStudio.Text;
namespace Microsoft.VisualStudio.Shell.Mocks {
[ExcludeFromCodeCoverage]
public sealed class InteractiveWindowOperationsMock : IInteractiveWindowOperations {
private ITextBuffer _textBuffer;
public InteractiveWindowOperationsMock(ITextBuffer textBuffer) {
_textBuffer = textBuffer;
}
public bool Backspace() {
return true;
}
public bool BreakLine() {
return true;
}
public void Cancel() {
}
public void ClearHistory() {
}
public void ClearView() {
}
public void Cut() {
}
public bool Delete() {
return true;
}
public void End(bool extendSelection) {
}
public void ExecuteInput() {
_textBuffer.Insert(_textBuffer.CurrentSnapshot.Length, "\r\n");
}
public void HistoryNext(string search = null) {
}
public void HistoryPrevious(string search = null) {
}
public void HistorySearchNext() {
}
public void HistorySearchPrevious() {
}
public void Home(bool extendSelection) {
}
public bool Paste() {
return true;
}
public Task<ExecutionResult> ResetAsync(bool initialize = true) {
return System.Threading.Tasks.Task.FromResult(ExecutionResult.Success);
}
public bool Return() {
return true;
}
public void SelectAll() {
}
public bool TrySubmitStandardInput() {
return true;
}
}
}
|
[Feasibility study of using Sabin-IPV immunization in post-eradication era in China].
Based upon the World Health Organization (WHO)'s perspective, the post-eradication era is coming with a priority of global certifying the wild poliovirus eradication, by which then the Oral Poliomyelitis Attenuated Live Vaccine (OPV) will be ceased and Inactivated Poliovirus Vaccine (IPV) will be synchronized used, in particular the affordable Sabin-IPV (sIPV) is recommended to be used continuously in developing countries till the final eradication of poliomyelitis. However, no any sIPV has successfully been developed in the world. In this paper, the sIPV immunization strategy, current development status and its usage in industrialized countries are preliminarily analyzed. Feasibility analysis of potential sIPV usage in China, including immunization strategy, schedule, production technology and supply capacity is analysed as well. sIPV development in China should be accelerated in order to prepare production technology to the post-eradication era. |
Pseudomonas aeruginosa: resistance and therapy.
Pseudomonas aeruginosa resistance to antimicrobials is an important therapeutic consideration. Antibiotic resistance to P. aeruginosa may be chromosomally or plasmid mediated. Resistance to P. aeruginosa may also be affected by changes in the cellular membrane or intracellular environment. P. aeruginosa is primarily a nosocomial organism that most commonly colonizes respiratory secretions and urine. The selection of an antipseudomonal antibiotic depends on its inherent in vitro activity and its resistance potential. Anti-P. aeruginosa antibiotics with a high-resistance potential include gentamicin, tobramycin, ciprofloxacin, ceftazidime, and imipenem. Anti-P. aeruginosa antibiotics with a low-resistance potential include amikacin, piperacillin, cefoperazone, cefepime, meropenem, and polymyxin B. |
Q:
Unable to control iframe dynamically added to a page
I have been trying to add an invisible iframe to a page for tracking purposes.
I am not able to control that iframe from the parent page:
Here is the code i have done :
try
{
var frame = document.createElement("iframe");
frame.setAttribute("src", "http://example.com/frame.php");
frame.style.width = "0px";
frame.style.height = "0px";
frame.style.border = "0px";
frame.setAttribute("visibility", "hidden");
frame.setAttribute('id',"awesomeIframe");
frame.style.display = "none";
if(document.body != null)
{
document.body.appendChild(frame);
}
else
{
document.head.appendChild(frame);
}
}catch(e){}
How can i modify the js included in the iframe?
A:
you should get the content window of iframe in order to control it.
remeber
It generally works when domain and protocol are same. Here is the code below:
try
{
var frame = document.createElement("iframe");
frame.setAttribute("src", "http://example.com/frame.php");
frame.style.width = "0px";
frame.style.height = "0px";
frame.style.border = "0px";
frame.setAttribute("visibility", "hidden");
frame.setAttribute('id',"awesomeIframe");
frame.style.display = "none";
if(document.body != null)
{
document.body.appendChild(frame);
}
else
{
document.head.appendChild(frame);
}
iframex = document.getElementById("awesomeIframe").contentWindow;
}catch(e){}
** iframex = document.getElementById("awesomeIframe").contentWindow;**
Use iframex to control the iframe.
|
If two jQuery onHandler extensions apply to the same event on the same node, will Tealium fire two separate events?
We would like to capture clicks on all links throughout a site, making it ideal to establish a jQuery onHandler extension to capture onmousedown for all anchor tags on the site. Quick and easy. But we would also like to augment this data for a handful of links that need conversion metrics added.
If we configure additional jQuery onHandler events for those conversion clicks, will it fire a second, entirely separate beacon call to my analytics vendors, or can it be configured so that it still only fires a single event? |
Q:
Translation of "weiterwandern"
I found in some German newspaper word weitergewandert and I think it is present perfect of weiterwandern, but I cannot find a translation.
What would be an appropriate translation?
A:
You are right, it simply means "walked on" or "marched on", continuing the course already started, implying that the suject did not stop where it would have been expected.
It is a separable verb meaning that the present tense would be "weiter wandern".
A typical use is for the sun or moon, which simply continue to advance across the sky (despite the horrors that happen on earth and that should have stopped even those stellar objects).
|
Effect of salicylate on the surgical inducement of joint degeneration in rabbit knees.
Degenerative joint changes were produced in one knee of each of fourteen rabbits by surgical induction of instability. The involved knee in rabbits with and without systemic salicylate treatment was compared with the knee not operated on. Salicylate did not significantly change the activities of lysosomal enzymes in cartilage or synovial fluid, the uptake of tritiated thymidine, glycine, or 35S-inorganic sulphate by cartilage, or the histological manifestations of cartilage degeneration. |
Described herein is a method of performing an auto-focus (AF) operation in a digital imaging apparatus, and more particularly, to a method of performing an AF operation during capture of a moving image in a digital imaging apparatus.
A video camera by which moving images are captured may require a gentle auto-focus (AF) operation in order to prevent restrictions, such as image flickering or imaging noise, during reproduction of moving images. Conversely, a still camera may require a high-speed AF operation to rapidly seize imaging opportunities.
A conventional still camera cannot support an AF operation during capture of moving images. Also, even if a conventional video camera supports an AF operation during capture of moving images, AF noise and image flickering caused by a high-speed AF operation may be recorded. |
Q:
Zurb Css framework dropdown Issue
I am using Zurb Css framework, As documented on foundation.zurb.com/docs/forms.php I used the same code as provided as below
<label for="customDropdown">Dropdown Label</label>
<select style="display:none;" id="customDropdown">
<option SELECTED>This is a dropdown</option>
<option>This is another option</option>
<option>Look, a third option</option>
</select>
<div class="custom dropdown">
<a href="#" class="current">This is a dropdown</a>
<a href="#" class="selector"></a>
<ul>
<li>This is a dropdown</li>
<li>This is another option</li>
<li>Look, a third option</li>
</ul>
</div>
But I Cannot see any drop down , The code above is copy pasted from their website.
Thank You.
A:
It was silly mistake I forgot to put class='custom' for the form element.
|
Q:
Gmail Gadget OAuth Consumer Key Not being sent
I am trying to build a gmail contextual gadget that talks to a 3rd party oauth api following the documentation at https://developers.google.com/gadgets/docs/oauth
I have registered the gadget at https://www.google.com/gadgets/directory/verify
I am using gadgets.io.makeRequest(url, callback, params) with the following params from the gadget.
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
params[gadgets.io.RequestParameters.AUTHORIZATION] =gadgets.io.AuthorizationType.OAUTH;
params[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME] = "service";
params[gadgets.io.RequestParameters.OAUTH_USE_TOKEN] = "always";
params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
The request that is sent to the oauth requesttoken url of the service does not contain the consumer key that was specified when verifying the gadget, it is set to oauth_consumer_key="www.google.com"
Are there any other steps or settings I need to complete to get google to send the correct consumer key?
A:
If anyone else comes across this, it turns out that even though it was not sending the correct consumer key with the request, it was signing it with the correct secret and cert so it still works.
|
<resources>
<string name="app_name">easy-core</string>
</resources>
|
The web and app company Bike Citizens has trawled its database of cycle infrastructure to create these ‘naked’ cycle maps. Blue lines = protected bike lanes; grey lines = painted lanes. Can you identify the cities?
Venice Amsterdam Birmingham Barcelona Lisbon Chicago Rome London Mexico City Berlin Rotterdam Vienna Boston Miami Chicago Copenhagen Edinburgh Toronto Oslo Los Angeles Cardiff New York York Yokohama Brussels Manchester Paris Portland Vancouver Sao Paulo San Francisco St Petersburg St Albans Sydney Florence Basel You got… Challenge your friends Share on Facebook
Share on Twitter
Share via Email Submit answers
A note on the maps …
Bike Citizens say: Blue lines show “a separate way for the use of cyclists”. They include routes tagged as highway=cycleway (a separate way for the use of cyclists), cycleway=track (separated from the road by curbs, parking lots, grass verges, trees or another physical barrier, but is running parallel and next to the road) or bicycle=designated (often bike lanes in parks or along rivers).
Grey lines include routes tagged cycleway=lane. This is used for streets where there are cycle lanes on both sides of the road, or one-way streets where there is a lane operating in the direction of main traffic flow. Bike lanes which are painted on the road – but not physically separated from motor traffic – should come under this classification.
Guardian Cities Cycle Week
Guardian Cities is dedicating a week to exploring the future of cycling in cities around the world. Explore our coverage here and follow us on on Twitter and Facebook to join the discussion.
Accept our challenge to have a conversation with a fellow city cyclist? Tell us about it here, or on Twitter or Instagram using #cycleconvo, and we’ll feature the best at Guardian Cities |
I am Mangee Williams. I am married with three girls and one boy, and I run a catering business. I prepare food for NGOs, the government, parties and weddings.
When I started my business, I was just spending and spending because I was not using the proper accounting procedures. When I moved to where I live now, I couldn’t get many contracts for the business, so I used to just sit on the road and sell sheets.
Nothing changed until I got the information about the BTCA. I was on the road with my neighbours and saw a flyer that said the BTCA was coming into the community to help youths that need help in their businesses. I decided to become a part of the programme when it started.
“The BTCA helps people in their businesses, health and their way of coming up in life. After graduating from the BTCA, the BTCA will not just leave you alone. It will be there to guide you in the process. Any time you hit a problem, you call up the BTCA, and they will help you through your problem.”
“To be empowered means to be accepted in your community, to say “I can do this”. I think that is what the BTCA has done to me. They empowered me, and now, I have imparted that into other lives. I am still imparting it, and when I open my restaurant, there will be a lot of young women working there, and by the grace of God, it will help them improve their lives.”
There were people that were very discouraging and told me I would not carry this business very far. They said that these big people you want to cater for will not consider you. They will just throw away your flyer, and you will not even get an answer from them.
But despite this discouragement, I said this was my goal and that by the grace of God, one of these days, I will be happy. Now, some of the people that used to discourage me I now employ. They were so happy and proud and said if you had listened to us, you would have missed the contract, so you must be focused on what you are doing. It makes me feel so good today.
Hawa was my mentor. She helped me go through my records and gave me some guidelines to follow when recording my business spending. It helped me when Ebola started because the contracts slowed down, so I started to sell bread to keep making money. Hawa helped me with the accounting that allowed me to track the money I spent and made.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site without editing your cookie settings, we will assume that you are happy to receive all cookies from peacechild.org.OkLearn more. |
As the name suggests, the Prismatic Mode Jacket is wonderfully angular! With a stunning silhouette and shaped hemline, it is tailored to perfection. Featuring small shoulder pads, a hidden button (for a sleek finish) and a deep v neck - it’s an ideal jacket to style on it’s own for a cheeky red carpet look, or to layer up with chunky necklaces. |
Reconciliation Will Save Their Souls – Countless people in nursing homes or Hospice, those who are shut-ins or sink, and those about to receive surgery or who are hospitalized (among other cases) have not reconciled themselves with God. They are living in darkness, and if they were to die with an unforgiven mortal sin on
Teach Repentance and the NEED to CHANGE – There is so much suffering in vain in the lives of many. God allows such suffering to teach us His blessed ways. Some people aren’t looking for God’s lessons, and they aren’t changing their sinful ways…and the suffering continues. As I counsel many of God’s suffering people,
Direct the People to Reconciliation It seems most Catholics have forgotten about the sacrament of reconciliation. Many who are hurting seek help from psychiatrists, psychologists, counselors, and others; yet, they are still suffering senselessly. They go in circles, never learning what God desires to teach them through their life circumstances nor growing closer to Him |
A group of friends are brought forcefully to a village, where they are asked to help find the daughter of the village head, who believes these friends have helped in the eloping of his daughter with h c3f236f0ad |
Cyclamen Europaeum
Known as "the pig's bread"; the juice squeezed out of the fresh root (harvested during the fall) is mixed with alcohol in equal parts. Since ancient times, this valuable plant has been the target of unfounded suspicions claiming it acts in a violent and uncertain way. Even if we should agree that Dioscorides was indeed referring to this plant, all he said about it only amounted to rumor. |
Q:
Is P/poly known to be in RE?
Is P/poly known to be in RE?
If yes what other classes is it known to be part of.
A:
$P/poly$ is NOT a subset of $RE$. Specifically, the unary non-halting problem (i.e. given a Turing Machine encoded in unary, does it run forever?) is in $P/poly$ but not $RE$. In fact, every undecidable unary language is in $P/poly$.
|
Q:
while-loop in python as long as regex matches
Ok, I'm aware that it's probably not the best way to edit a string with regex expressions in loops. Just for the sake of interest: How would I have to build a loop, that executes a regex pattern as long as it matches, run in a loop and stop when it doesn't hit anymore? Im doing this in python.
match = re.search(r'pattern, repl, str)
while match (is True, == True?):
sub = re.sub(r'pattern, repl, str)
else:
Do something else
A:
match is not None, since match returns None in case of no match, according to the docs. But you're not updating match in the loop. Did you mean something like:
match = re.search(pattern, repl, str)
while match is not None:
str = re.sub(pattern, repl, str)
match = re.search(pattern, str)
(Note that search takes no repl argument)
|
That One Friend
There’s always that one friend who inspires you just by how they live their life. From them you get wisdom, perspective, focus, inspiration and of course entertainment. Such people exist to remind you that every thing happening in your life could be an opportunity or a challenge depending on how you look at it. They are normal people just like you and I but [they] live an extraordinary life, because they choose to make extra ordinary decisions.
They are characterized by their constant effort to play outside their comfort zone, and their ever present cheerful attitude regardless of the obstacles they face. They are a different breed because their life is based on ambitions that are simple, selfless and unique. These people keep at it making small progressive steps which often turn into big gains because of their consistency. To the normal person, they tend to come off as lucky and undeserving but in reality their lives are littered with more failures than success. The only difference is that they keep their dreams alive through constant effort.
I find the majority of these people to be very good natured and somewhat charismatic. They speak more of optimism than pessimism; they see the good in things that to a normal person, would seem of little value. They make a conscious effort to see life through a positive eye. This makes them very loyal and annoyingly honest friends; but then again, isn’t it what we all so desperately need?
These people work hard and the world pays them for it by giving them wealth, satisfaction and happiness. They are forever consumed by their dreams and it is no wonder they always seem to be doing the same thing year in year out!
Looking at my friend this year I have learnt one big lesson;the world will always step aside for you as long as your ambition is honest and selfless. We are human and so we are bound to make bad decisions every now and then but we will always succeed if our aim is positive and true.
For a while now, I’ve been fascinated by Einstein’s theory of relativity where in my understanding, it is very difficult for an object to move faster than light. But WHAT IF we could move faster than light? The theory states that the universe would adjust by expanding at the same rate so it would still be impossible to achieve the fit.
In the same breath I believe that a person whose ambition is true and selfless has a solid positive future, and as long as they consciously keep trying to do the right thing they will arrive at their destiny. They will make mistakes numerous times (because we are human) but the universe will always adjust to accommodate these failures because there are laws that dictate destiny.
Such people do not come into our lives by mistake. As humans we are created to always strive to be better, and one of the ways this is meant to happen is through inspiration. Inspiration triggers action and ensures that the human race is better equipped to survive as a species. We respond better to inspiration from live examples (especially people we know) than from books and movies. This is why we all need that one friend who stirs up our creativity and gives us the reason to believe in our dreams.
It is also the same reason why we need to be that ONE friend that inspires others by striving to be better everyday.
Maybe my friend doesn’t know it but I intend to keep them around for a long time. |
GENERAL DESCRIPTION The foreign exchange market is a global market, and decentralized or an over-the-counter (OTC) market for currency tr... |
Q:
display vertical tabs in jquery
I want to use vertical tabs,
I have implemented vertical tab shown in documentation.It is working fine.
I want to display tabs in vertical direction like dhtmlx vertical tabs.
like this
I want to display tabs in the right side and display content in the left side.can u tell me how to do this?
A:
Here i changed the position of the menu to right using float: right
Updated changes below in the provided CSS will work fine
#vtab > ul {
float: right;
}
#vtab > div {
margin-right: 110px;
}
Here is the fiddle
I suggest you to see the below links which will be useful on layouts
Learn CSS Positioning in Ten Steps
How to Use CSS Positioning to Create Layouts Without Tables
|
Q:
LINQ - more than or equal to
Part of the code:
...where se.DateFrom >= pDateFrom && se.DateTo <= pDateTo select se...
Does not work. There is no any error but the To and From days do not get returned.
How do I query "more than or equal to" and "less than or equal to"?
Thanks :)
A:
Do your "dates" potentially contain a time element? If so, try something like this:
where se.DateFrom >= pDateFrom.Date && se.DateTo.Date <= pDateTo
|
Q:
POJOs populated by Hibernate are entities, business objects or data transfer objects?
I have classes (POJOs) annotated with JPA and populated by Hibernate.
Since those objects are transfered from database by DAOs to Business Services and doesn't have any behavior nor hold business logics, they are DTOs.
But I have read some articles that they are business entities or business objects and this got me confused.
Can someone clarify the differences?
A:
Business Entities encapsulate the data that is important to the business. As opposed to controllers that encapsulate business logic. The controllers implement the business processes and make use of the entities.
I would not call these objects DTOs because they do not only transfer data from one point to the next. They create a model of the business that can be acted upon by the controllers.
|
The story follows a group of popular high school teenage girls on the night of a sleepover as they venture out, led by the ringleader Chapin (Brittany Robertson), in a competitive game of challenging dares called triple dog. As the antics escalate, and the dares become more extreme, the girls unravel the truth behind a former student's rumored suicide. As the game become more difficult, will the ultimate dare be deadly? |
India-Aus discuss ways to enhance counter-terror cooperation
NEW DELHI: India and Australia today discussed ways to enhance cooperation in tackling terrorism, radicalisation and cyber-crimes, the home ministry said.
The India-Australia joint steering committee discussed the issues threadbare at its first meeting here.
During the meeting, the two sides discussed the scope for cooperation in counter-terrorism and checking extremism and radicalisation besides steps to check illegal financial transactions, counterfeiting and cyber-crimes, a home ministry statement said.
Issues related to human trafficking and people smuggling, combating illegal drug trafficking, and sharing information between law enforcement agencies were also discussed.
The two sides agreed to pursue further the agenda for cooperation in specific areas with meetings of operational joint working groups involving agencies concerned, the statement said.
Today’s meeting is a follow-up to the Memoranda of Understanding (MoU) on cooperation in combating international terrorism and transnational organised crime exchanged between the two sides during the visit of Australian Prime Minister Malcolm Turnbull to New Delhi in April this year and his talks with Prime Minister Narendra Modi.
Additional secretary in the home ministry TVSN Prasad and Stephen Bouwhuis, Australia’s first assistant secretary in the International and Auscheck Division, criminal justice group, Attorney-General’s Department, led the India and Australia delegation respectively led the delegations respectively. (AGENCIES) |
whole_JJ
endless_JJ
recent_JJ
blue_JJ
shy_JJ
real_JJ
one-dimensional_JJ
added_JJ
instinctive_JJ
convoluted_JJ
lightweight_JJ
long_JJ
funny_JJ
available_JJ
whole_JJ
well_JJ
broken-down_JJ
sheer_JJ
amateur_JJ
quiet_JJ
hateful_JJ
artificial_JJ
french-canadian_JJ
horrified_JJ
comfortable_JJ
possible_JJ
away_JJ
old_JJ
dental_JJ
overjoyed_JJ
little_JJ
whole_JJ
well-worn_JJ
superior_JJ
respectable_JJ
cliched_JJ
congenial_JJ
classic_JJ
preliminary_JJ
unavoidable_JJ
clear_JJ
serious_JJ
entire_JJ
inevitable_JJ
dead_JJ
whole_JJ
facetious_JJ
shocking_JJ
professional_JJ
inventive_JJ
select_JJ
mediocre_JJ
central_JJ
enjoyable_JJ
exact_JJ
crushing_JJ
limited_JJ
female_JJ
radiant_JJ
exploitative_JJ
unanticipated_JJ
sure_JJ
countless_JJ
straightforward_JJ
giddy_JJ
comedic_JJ
bad_JJ
climactic_JJ
obvious_JJ
sole_JJ
awful_JJ
clear_JJ
limited_JJ
fresh_JJ
green_JJ
whole_JJ
greenlit_JJ
great_JJ
better_JJR
passable_JJ
notable_JJ
technical_JJ
whole_JJ
presumed_JJ
charming_JJ
|
David Gates on Unsympathetic Characters
Garver, the protagonist of your new story, “Texas,” is an artist
whose wife has left him, who is estranged from two of his three children
(and not especially close to the third), who drinks too much, and is
cynical at every turn. Do you think of him as a sympathetic character?
Well, he’s no one you’d want to trust. But I admire his
perseverance—though he won’t allow himself to admire it—and I think
there’s a part of him that wants to be a good man, despite the damage
he’s done and continues to do. That’s setting the bar pretty low, maybe,
but, as both a writer and a reader, I don’t have much interest in saintly
characters.
Have you known anyone like him?
I’m tempted to plead the Fifth. But, no, he’s certainly not modelled
after anyone I know—I’d call him a thought experiment. There comes a
time in most creative people’s lives when they recognize that they
haven’t turned out to be Shakespeare or Bach or, in Garver’s case, Miró.
(If they didn’t recognize that, they’d be more insufferable than
Garver.) And they may suspect that their own best work is already behind
them. So then what? I’d steer clear of a real-life Garver, but I had fun
with him on the page, if “fun” is the word.
Garver seems to have had a decent, if not stellar, career—he had an art
dealer and a teaching job at Pratt. His wife stuck it out with him until
their three children were grownup. Where did he go wrong? Why is he now
alone?
Who’d want to be with him for the long haul? He’s an entertaining
drinking buddy, and he’ll play good music for you, but he’ll keep you at
a distance. I imagine his wife stuck it out so long for the children’s
sake, unless she was a tragically slow learner. And “decent, if not
stellar”—a B-minus/C-plus—isn’t acceptable to Garver. Yet he has to
accept it. Unhappily for him, he’s an idealist.
The story opens with Garver keeping the doors in the house closed, so
as not to see the empty rooms of his departed family members—and then
disavowing the sentimental implications of that. Is his prickly way of
interacting with others a defense mechanism?
Absolutely. The porcupine is his totem animal. I probably should have
put one in the story.
Do you think that Ben is heading in the same direction as Garver?
I hope not, though he’d do well to lay off the weed. At this point, he’s
more trusting and tenderhearted than Garver—he craves Garver’s
admiration, poor guy—and he’s more hopeful, if sometimes with an edge of
arrogance. My sense is that he’s at least as gifted as Garver may have
been at that age, but perhaps not quite as intelligent or
self-analytical—which could bode well for him. And he’s got Lois loving
him and looking out for his best interests; if he has any sense, he
won’t come to resent her for it. But, as Garver says, life is long.
Why does Garver smoke pot with Ben a second time, knowing that he’s
been asked not to?
The superficial explanation is that these are boys being boys, bonding
over music and revelling in their little rebellion against Lois. The
darker, uglier explanation—which Lois recognizes, and I think prods
Garver to recognize, however fleetingly—is that he envies Ben’s youthful
promise and confidence and wants to ruin him.
You end the story with Garver rifling through his daughter’s kitchen
for a bottle of vodka, unrepentant. Do you think that he’s changed in
any way in the course of the story?
I don’t know if he’s changed, exactly, but I think he’s been forced to
see—again, however fleetingly—his own maliciousness. And he’s chosen to
accept, however halfheartedly—quarter-heartedly?—his daughter’s
overtures, and to hang out, however drunkenly, with her family. His
smite-your-brow insight that this is also his family is hardly a
road-to-Damascus moment, but Garver’s not St. Paul.
Is “Texas” drawn from something longer? Do you think that Garver will
come back in some way in your work?
As I recall, what turned out to be “Texas” was always going to be a
short story, and nothing longer. I’d had the premise and the characters
and the setting lurking around in my computer—in several computers—for
at least ten years, but I couldn’t see what should happen. I’d thought
that Garver (which wasn’t his name back then) would make some pathetic
move on the young man’s wife, and I suppose the triteness of that idea
made me resist following through with it. It now seems obvious that the
romance, such as it is, is between Garver and Ben. Yes, I imagine Garver
will come back—variant versions of him have been bobbing up in my work
for years—though not under that name, and with a different career and
personal history, and perhaps as a woman.
Were you thinking of any other stories or novels while writing this?
Are there any stories that you think of as models of the form?
No, I wasn’t thinking of any work in particular. But I always have a
Platonic template of the short story hovering, derived from John
Cheever’s “Goodbye, My Brother,” or Flannery O’Connor’s “The Life You
Save May Be Your Own,” or Raymond Carver’s “Feathers”—or, or, or. It’s
funny: I hadn’t realized until just now that “Garver” was so close to
“Carver”; I’d been thinking of Bill Garver, William Burroughs’s friend
from his junkie days, and the old baseball pitcher Ned Garver. But let’s
pretend it was a deliberate homage.
Deborah Treisman is The New Yorker’s fiction editor and the host of its Fiction Podcast. |
Michigan State’s final exam of tumultuous season: NCAA tournament
Next stop: Tulsa. And the Michigan State Spartans are hoping Oklahoma’s gonna treat them great. As Tom Izzo and company prepare to say “bienvenido” to Miami (Fla.) and a 20th straight NCAA tournament, it’s important to look back at the chaotic season of travel, injuries, inconsistency and growth. It’s also vital for the Spartans to translate those lessons learned into a corrective action plan with the finality of their next loss. |
Research note: ethics of drug treatment research with court-supervised subjects.
The last two decades have seen an acceleration of clinical research on, and treatment advances in, addictive illness. Much important research in this area requires the participation of subjects who themselves suffer from drug dependence and have a strong likelihood of becoming involved in the criminal justice system at some point. However, using court-supervised persons with addictive disorders in drug research raises a number of significant ethical issues. These include, among others, worries about the individual's ability to provide capable, voluntary, informed consent and the obligation of researchers to safeguard sensitive clinical information. A variety of potentially coercive factors can influence court-supervised persons in their decision whether to enter research and can compromise their ability to provide informed consent. In this paper, we explore the ethical issues arising in this research and offer some suggestions for approaches to address these concerns. |
Q:
How to direct user to a specific page after logging in with Devise and Rails
How do I redirect a user to a specific page when they login on a particular form I create with Devise? There's this howto page for Devise on how to redirect to a particular page after sign in. However, I want different forms to sign in to different target pages. Ideally, I can just add another HTML form parameter like this:
<input type="hidden" name="target" value="/dashboard"/>
UPDATE: It's important that I maintain the normal functionality of Devise for a login page. That is, if I click on a link that has a before_filter :authenticate_user! in its controller, then I'll be redirected to a login page. After logging in, then I'm redirected to the original destination page.
A:
Actually you can simply define the after_sign_in_path_for method in your controller like that :
class ApplicationController < ActionController::Base
def after_sign_in_path_for
params[:target] || some_default_url
end
end
And then if your different sign in forms have different targets, then user should be properly redirected
Adding
<input type="hidden" name="target" value="/dashboard"/>
to each particular form that would redirect to a specific page will then be enough :)
EDIT : I think I finally understood what you exactly want. So here what I would do (based on this blogpost)
class ApplicationController < ActionController::Base
protect_from_forgery
def after_sign_in_path_for(user)
origin_path = session[:origin_path]
clear_origin_path
if origin_path.present?
origin_path
else
params[:target].presence || default_redirect_path
end
end
private
def authenticate_user!
store_origin_path
super
end
def store_origin_path
session[:origin_path] = request.fullpath
end
def clear_origin_path
session[:origin_path] = nil
end
end
So basically, if you try to access a protected path (let's say /protected_resource), the path will be stored in the session, and then once user is logged in, the session will be cleared and user correctly redirected
Then if a user goes on one of your different sign_in form and if that form contains a target input, then user will be redirected to that target.
Finally, if user goes on a form without any target he'll be redirected to a default_redirect_path that you might want to customize.
Last thing : I assumed that the redirection to the original request was more important than the target so let's say a user goes on /protected_resource and is therefore redirected to a sign_in form, even though this sign_in form has a target input, user will be redirected to /protected_resource after a successful sign in.
You can easily change that by inverting the conditions in the after_sign_in_path_for method
There might be a better way to do that, but this a starting point for you, and you might want to improve it ;)
Let me know if my answer is not detailed enough.
|
Staging of genitourinary cancers. The role of diagnostic imaging.
Computed tomography (CT) is currently the standard modality for staging of urologic cancer in most institutions. It is used for demonstrating nodal involvement, and for demonstrating invasion of the primary lesion into surrounding fat, muscle, or other tissues or organs. It is also useful for demonstrating hepatic metastases in renal and vesical carcinomas. The problem with computed tomography, however, is that it can only show whether the nodes are large or not; neither can it show the nodal architecture, nor can it detect metastases in normal-sized nodes. Intravesical sonography has been helpful for staging papillary bladder cancer. Transrectal sonography has been somewhat helpful for demonstrating seminal vesicle invasion in patients with prostatic carcinoma. Inferior vena cavography and renal venography can be helpful for demonstrating whether a renal, renal pelvic, or adrenal carcinoma has extended into either vein. Lymphography can show nodal architecture and metastases in normal-sized nodes, and can make possible needle biopsy of abnormal-appearing nodes even if they are normal sized. The examination cannot show very small or microscopic nodal metastases, and it can miss abnormal nodes totally if they have been completely replaced by metastases. It yields false positives when fatty or fibrous infiltration of the nodes has occurred. It is used primarily for staging patients with testis or prostatic carcinoma. Bone scans are essential for staging prostatic carcinoma. Magnetic resonance imaging (MRI) is helpful in some cases of renal cell carcinoma. Multiplanar imaging prevents overstaging. It is also accurate for showing whether the renal vein or inferior vena cava are involved. Enlarged lymph nodes are easily distinguished from vessels. For staging bladder carcinoma involving the fundus or base of the bladder, MRI is better than CT. Microscopic nodal metastases, such as are common in carcinoma of the prostate, currently are not detected by any imaging modality. |
Acute pulmonary embolism: the clinical conundrum.
Despite important advances in the diagnosis and treatment of acute pulmonary embolism (APE), assessment of risk and appropriate management of patients remains a difficult task in clinical practice. In addition to hemodynamic instability and critically clinical condition, acute right ventricular dysfunction (RVD) is a major determinant of in-hospital outcomes. The purpose of this review is to discuss the results of these recent developments. Some outcome evaluation, clinical assessment, and therapeutic implications are also included. |
new_frontend
open Function Bool
constant f : Nat → Bool := arbitrary _
constant g : Nat → Nat := arbitrary _
#check f ∘ g ∘ g
#check (id : Nat → Nat)
constant h : Nat → Bool → Nat := arbitrary _
#check swap h
#check swap h false Nat.zero
#check (swap h false Nat.zero : Nat)
constant f1 : Nat → Nat → Bool := arbitrary _
constant f2 : Bool → Nat := arbitrary _
|
This invention generally relates to a leaf spring assembly and specifically to a method of relieving leaf spring mounting stresses.
Conventional leaf springs for vehicle suspensions comprise flat rolled steel strips having a substantially rectangular cross-sectional shape along a plane perpendicular to the longitudinal direction of each steel strip. The leaf spring assembly includes a clamped center portion for mounting of an axle and a suspension member. The suspension member is typically a coil or air spring to further absorb road inconsistencies. The highest stresses on the leaf spring are experienced in the clamped section of the leaf spring. Many stress relieving techniques and methods have been used in conventional leaf spring assemblies in order to reduce negative affects that high stress concentrations produce.
One conventional leaf spring assembly includes a short spring seat member and a single long leaf spring member. The long leaf spring member extends from a first mount to a second mount. The spring seat member extends to a central clamp securing the spring seat to the longer leaf spring. The axle or other suspension member is fastened at the center clamp. The highest stress within the long leaf spring occurs at the center clamp. The stress concentration at the center clamp is non-uniform across the leaf spring. The increased and non-uniform stress concentration typically results in reduced spring fatigue life.
Accordingly, it is desirable to develop a leaf spring assembly including stress-relieving features to uniformly distribute stresses and increase the overall fatigue life of the leaf spring assembly. |
Understanding Cleaners
Important Considerations You Need to Make When Choosing Home Cleaning Service Provider.
Home cleaning services are vital but require a lot of energy and time to undertake. A clean home helps to reduce the risks of your family falling ill often and thus helps you reduce health and medical expenses. Therefore you need to hire the services of a professional home cleaning company to give you high quality services.
Since there are many home cleaning service provider in the market today, a homeowner can find it difficult to choose a service provider. However, with the adequate information and thorough research, you can easily make the right choice when hiring a home cleaning service. This report discusses some of the essential tips you need to carefully examine when choosing a home cleaning company.
The first consideration you need to make when choosing a home cleaning service company is the location. It is recommended that you hire a home cleaning company that is located close to your home. Choosing a professional home cleaning company that is close to your home ensures you get quality services at easily when you require them. Thus it is important that you hire a home cleaning company that is located close to their home.
The second tip you need to evaluate when hiring a home cleaning service provider is the license. An individual choose a company that is permitted by the state to offer home cleaning services. The government makes sure that the company given the license have the capacity to deliver quality services by making ensuring the organization uses modern tools and equipment to deliver home cleaning services. The state also ensures the cleaning company given the license uses environmentally friendly chemicals that cannot cause any harm to the public. Hence you need to choose a cleaning company that has a valid license to give quality services that are safe for your family.
The third tip you need to evaluate when hiring a home cleaning service company is insurance. It is important to note that the best home cleaning service provider should ensure their services. An individual should choose a house cleaning company that is insured. It is essential to note that choosing an insured home cleaning company guarantee that you can be certain of compensation in case your property is destroyed during service delivery. Thus when looking for the best home cleaning service provider you need to hire a company that has ensured their services with a well-known insurance company.
In summary, all the tips explained in this report will enable a homeowner to select the best home cleaning company. |
Cheek Makeup
Nothing lifts up the veil of ashiness from darker complexions than a dab of colour on the cheeks or some subtle shimmer. We have selected a range of beautiful, highly pigmented shades that work well on darker skin tones, from subtle bronzers to intense hot pinks, to really make your complexion pop. |
What has gene expression profiling taught us about glaucoma?
The availability in recent years of new cellular and animal models, as well as advances in genomic and related technologies, have made possible important advances in our understanding of the cellular and molecular events that mediate retinal ganglion cell dysfunction and death in glaucoma. In this review, we briefly summarize the methodology and results of a number of genome-wide expression studies that have been performed to study the retina and optic nerve head in glaucoma. |
The hospital revolution. Community relations.
As hospitals try to make sense of the constant changes occurring around them, they often look to the past and discover strong roots in their communities. Rebuilding strong hospital-community ties may help hospitals maintain their tax-exempt status, provide services to underserved community members, and lower community healthcare costs. |
Separating column
Separating column may refer to:
A fractionating column
A column containing ion-exchange resin |
Nanostructured magnetic thin films from organometallic block copolymers: pyrolysis of self-assembled polystyrene-block-poly(ferrocenylethylmethylsilane).
The pyrolysis of cylinder-forming samples of the diblock copolymer polystyrene-block-poly(ferrocenylethylmethylsilane) (PS-b-PFEMS) in bulk and in thin films has confirmed that these materials are useful for the generation of semi-ordered arrays of C/SiC ceramics containing Fe nanoparticles which are derived from the organometallic domains. In many cases, the ceramic mass yields were predictable and produced ceramics bearing a monomodal distribution of iron nanoparticles due to the nanoscaled structure of the preceramic PFEMS domains. The pyrolysis of thin films stabilized by cross-linking the PS domains with UV light demonstrated high areal yields, improved shape retention, and the presence of cylinder-centered magnetic nanoparticles. |
Q:
Safety of using industrial water for hand washing
Industrial water taps are present in most biology laboratories I have been too. There are accompanied by a sign stating "do not drink". So obviously it is not a good idea to drink it.
However I could not find any information or reference concerning its safety for body use. The only indication I could find is that eye wash stations are using potable water instead of industrial water, suggesting that industrial water is not suitable for eye contact - at least.
My question: is it safe to use industrial water available in labs for hand washing, multiple times per day over the course of several years?
I am looking for a precise answer about the possible long term harm of industrial water in this context, if possible with references.
A:
The water from taps labelled "Industrial Water, Do Not Drink" comes from the same potable water line as domestic taps. The line should be split somewhere in the building, with the industrial line containing multiple backflow inhibitors to prevent cross contamination of potable or domestic water. Based on that fact, the water should be safe for hand washing, however, should be tested in the case of objective concern.
|
Google will add ‘buy buttons’ to shop from Mobile
Google will add ‘buy buttons’ to shop from Mobile
Google wants to make it easier for you to buy goods without leaving Google.With one click you can purchase what you are searching for.
According to a report by Wall Street Journal, Google will display buy buttons only on mobile devices, whenever user search for products.These buy buttons will be displayed above the normal search results and will be a part of sponsored search results within a “Shop on Google page”.
When users click on buy button, it will take users to a product page that will be hosted by Google, it will include buying options like sizes, color, and shipping time, products will be sold by original retailers.
For better service, Google will store users credit card information, so they don’t have to type it again and again.But company won’t share payment details with retailers.Some retailers have expressed concern about they will lose their identity and will be turn into a Google brand, but Google’s shopping service will let users to opt-in for retailer’s marketing programs.
Google will continue to be paid by retailers via its existing advertising model, rather than taking a cut of the sales price, unlike Amazon or eBay. |
Meteor Launch
Description: In this fun launch game your task is to help the boy to send the star back into space. Use your launcher and launch the meteor back to space as quick as possible. At first, your launcher will be totally inadequate to send your space rock out of orbit, but you can purchase upgrades later. Collect blue fireflies on your way and exchange them for upgrades.
Instructions: Use YOUR MOUSE to control the game. Click LEFT MOUSE BUTTON to launch. Move YOUR MOUSE left/right for steering. Click and hold to use engine (when you have one) and double-click for boosters (when you have one). Good luck! |
Q:
Confusing cannot add foreign key constraint error
Ok, maybe it's late and I'm being stupid, but I can't seem to figure out why I'm getting a Cannot add Foreign Key Constraint error for the following query
DROP TABLE IF EXISTS People_Lordships;
CREATE TABLE People_Lordships
(
Id INT PRIMARY KEY AUTO_INCREMENT,
PersonId INT NOT NULL,
LordshipId INT NOT NULL,
AssumedDate Date,
AbdicatedDate Date
);
DROP TABLE IF EXISTS People_Lordships_Current;
CREATE TABLE People_Lordships_Current
(
Id INT PRIMARY KEY AUTO_INCREMENT,
People_LordshipsId INT NOT NULL,
LordShipId INT NOT NULL,
CONSTRAINT Fk_People_Lordships_Current_People_LordshipsId_LordshipId
FOREIGN KEY (`LordshipId`,`People_LordshipsId`)
REFERENCES People_Lordships (`LordshipId`,`Id`)
ON DELETE RESTRICT ON UPDATE CASCADE,
CONSTRAINT UQ_People_Lordships_Current_LordshipId
UNIQUE KEY (`LordshipId`)
);
And yes, it is a database about noble titles... it's a long story
A:
There is no column LordshipId in table People_Lordships.
Your foreign key definition attempts to reference a column that doesn't exist.
REFERENCES People_Lordships (`LordshipId`,`Id`)
^^^^^^^^^^^^
|
Q:
Catalyst Template::Toolkit render output
I'm using Catalyst with Template::Toolkit as my templating system. I would like to be able to render specific parts of templates and then have them returned to me so I can store them in a variable. The Template::Toolkit documentation mentions that you can do that like this:
my $content = $c->forward($c->view('HTML'), "render", $template_name);
However, whenever I do this I just get this error:
file error - : not found
Does anyone know what I'm doing wrong? Thanks!
A:
$c->forward( $class, $method, [, \@arguments ] ) - is right syntax for forward method from Catalyst
Therefore you should write like this:
my $content = $c->forward($c->view('HTML'), "render", [ $template_name ]);
|
Is Philosophy Dead?
Doddering old academics in philosophy departments all over the world may very well be preparing to pack the contents of their offices into cardboard boxes now that Professor Stephen Hawking has told us, in his latest book, that ‘philosophy is dead’.
Yet such nonsensical arguments as those offered by Hawking highlight why we are so desperately in need of sound philosophical thought, far better than any apologia for philosophical study could. Take the following example in the Professor’s own words: ‘Because there is a law such as gravity, the Universe can and will create itself from nothing. Spontaneous creation is the reason there is something rather than nothing, why the Universe exists, why we exist’. The observant reader may have thought the present writer guilty of a typing error when he read the assertion that ‘the Universe will create itself from nothing’, but those are Hawking’s very words. This is, of course, simply a stream of words which signifies nothing. Precisely because there is nothing, as the esteemed Professor points out, there is no ‘it’ to create itself. For something to create itself, whether from nothing or from pre-existing matter, is a meaningless juxtaposition of words, because it holds that something can exist prior to its own existence in order to cause itself to come into existence. Moreover, how could there be such a thing as the law of gravity, when there was nothing?
Among Professor Hawking’s other howlers are his bizarre assertion that ‘the multiverse concept can explain the fine tuning of physical law without the need for a benevolent creator who made the Universe for our benefit’. The ‘multiverse concept’, for the uninitiated, is better known in popular parlance as the idea of ‘parallel universes’. In other words, some opine that there exist, outside of our own Universe, a very large number of other possible universes, with divers characteristics. All possible universes considered, it is argued, it is not surprising that one of them —ours — has the capacity for sustaining life. Why is this bizarre? Hawking claims that ‘[it] is not necessary to invoke God’ to explain the origins of the Universe, yet he seems to see no contradiction in invoking the arguably ludicrous idea of multiple universes. As G. K. Chesterton famously said, ‘When people stop believing in God, they don’t believe in nothing — they believe in anything’.
It is with some amusement then, that we observe the contradiction of prominent members of the modern scientific establishment sneering at the faith of religious believers as a mindless superstition, while one who has been described by ABC News as ‘the smartest man in the world’ is able to say, apparently without joking, that the concept of multiple hypothetical universes, none of which has ever been demonstrated to exist, and indeed for the existence of which there is not the slightest shred of empirical evidence, simply explains everything we need to know. Who is really the believer in foolish fables, we might legitimately ask?
That Hawking has not been laughed out of Cambridge demonstrates exactly why we need good philosophy, because philosophy has traditionally played the role, amongst others, of a watchman, making sure that the assertions of the other sciences accord with reason. We ought rather to hope that philosophy is not dead, because clear thinking is the only thing that will help us, and Professor Hawking, out of the mess we are in.
Doddering old academics in philosophy departments all over the world may very well be preparing to pack the contents of their offices into cardboard boxes now that Professor Stephen Hawking has told us, in his latest book, that ‘philosophy is dead’.
Yet such nonsensical arguments as those offered by Hawking highlight why we are so desperately in need of sound philosophical thought, far better than any apologia for philosophical study could. Take the following example in the Professor’s own words: ‘Because there is a law such as gravity, the Universe can and will create itself from nothing. Spontaneous creation is the reason there is something rather than nothing, why the Universe exists, why we exist’. The observant reader may have thought the present writer guilty of a typing error when he read the assertion that ‘the Universe will create itself from nothing’, but those are Hawking’s very words. This is, of course, simply a stream of words which signifies nothing. Precisely because there is nothing, as the esteemed Professor points out, there is no ‘it’ to create itself. For something to create itself, whether from nothing or from pre-existing matter, is a meaningless juxtaposition of words, because it holds that something can exist prior to its own existence in order to cause itself to come into existence. Moreover, how could there be such a thing as the law of gravity, when there was nothing?
Among Professor Hawking’s other howlers are his bizarre assertion that ‘the multiverse concept can explain the fine tuning of physical law without the need for a benevolent creator who made the Universe for our benefit’. The ‘multiverse concept’, for the uninitiated, is better known in popular parlance as the idea of ‘parallel universes’. In other words, some opine that there exist, outside of our own Universe, a very large number of other possible universes, with divers characteristics. All possible universes considered, it is argued, it is not surprising that one of them —ours — has the capacity for sustaining life. Why is this bizarre? Hawking claims that ‘[it] is not necessary to invoke God’ to explain the origins of the Universe, yet he seems to see no contradiction in invoking the arguably ludicrous idea of multiple universes. As G. K. Chesterton famously said, ‘When people stop believing in God, they don’t believe in nothing — they believe in anything’.
It is with some amusement then, that we observe the contradiction of prominent members of the modern scientific establishment sneering at the faith of religious believers as a mindless superstition, while one who has been described by ABC News as ’the smartest man in the world’ is able to say, apparently without joking, that the concept of multiple hypothetical universes, none of which has ever been demonstrated to exist, and indeed for the existence of which there is not the slightest shred of empirical evidence, simply explains everything we need to know. Who is really the believer in foolish fables, we might legitimately ask?
That Hawking has not been laughed out of Cambridge demonstrates exactly why we need good philosophy, because philosophy has traditionally played the role, amongst others, of a watchman, making sure that the assertions of the other sciences accord with reason. We ought rather to hope that philosophy is not dead, because clear thinking is the only thing that will help us, and Professor Hawking, out of the mess we are in.
This is, of course, simply a stream of words which signifies nothing. Precisely because there is nothing, as the esteemed Professor points out, there is no ‘it’ to create itself.
This will mark me as a simpleton, but perhaps causality doesn’t work the way you assume it must. Or, much more likely, when he says “nothing”, Hawking means something much more like “quantum foam”.
Hawking claims that ‘[it] is not necessary to invoke God’ to explain the origins of the Universe, yet he seems to see no contradiction in invoking the arguably ludicrous idea of multiple universes.
While the multiple-universes model is far, far from confirmed, it wasn’t postulated out of some need to “do away with” God, but rather as a derived consequence of quantum mechanics. (Among other things, it provides a very elegant solution to the puzzle of Shroedinger’s Cat. That said, Good Old Common Sense tells us that quantum mechanics is total nonsense to begin with. Thanks, philosophy!)
Even if Hawking does mean something like “quantum foam” by the word “nothing”, this doesn’t answer the question of how something can come from nothing in the first place, and the question of why something exists, when there could be nothing at all. Such an hypothesis would simply change the question to ‘How did the quantum foam come to be?’. You suggest that causality may not work in the way we assume it must, but any idea of causality which undermines the basic principle that if X exists, there must be a cause of X, undermines the foundations upon which the sciences are built, and on which they rely to do their work.
You are correct to point out that the multiple-universes model is postulated as a derived consequence of quantum mechanics, and is not necessarily postulated out of a desire to “do away with” God (although Hawking appears to refer to it in this context). Nevertheless, it is arguable that what is being postulated in the multiple-universe hypothesis is not something which is, in actual fact, open to scientific investigation, but simply fanciful speculation masquerading under the banner of the natural sciences. Painting such an hypothesis as “science” is misleading, because it attempts to bypass the kind of rigorous logical questioning characteristic of philosophy by suggesting that there is some kind of empirical evidence for the claim being made.
Live for more than what you sense, for now our senses even sense that they fall short of reality. If you wait for all your answers from science, you will wait forever. What is possible for us to discover is limited. The applications of what we know can go on forever, but the discoveries cannot.
P.S. If spontaneous creation can happen ‘when there is nothing’ then there has ‘always been something’. If you don’t have time, then the fact that the creation ‘happened’ means it ‘always happened’ and was ‘always happening.’ (Words in quotations are used for understanding, I realize they are time bound words and have no meaning in their place past understanding.)
..and only because we have to view our world in a sense of time do we think only in ways of time progression. So this is why it is said that ‘there was never nothing because there is something.’ Most people aren’t able to view it in that way, though, and they stop short of thinking only in terms of causality. My best guess is on your first read through the above (directly after post script) statement that you are still thinking in terms of causality (B happens because A caused it type of logic), so please read it a few more times and think about it before moving on (Mr. Hawking based on what you’ve written I highly doubt you view the subject any differently, but that’s okay, we’re only human!).
The obvious truth is that we’re interpreting infinity finitely because the “us” that “we” are isn’t the matter itself but rather the senses (interpretation of other matter) which are keyed in only to the third dimension. If any slew of quantum theories are correct, then our bodies are existing simultaneously in multi-dimensions, but ‘WE’ are not this matter, ‘WE’ are the sensing and interpretation of these senses. We are not the mass that makes up our bodies, we are but a single frame in the entire reel of film that is our true forms, but despite it being “our bodies” the sense of ownership is destroyed because we understand that we will never even be able to know what we are fully in this world. Which is why so much is left up to belief and best guess. There simply is no other way about many subjects, and that’s okay.
Oh by the way, if there was always something based on what i wrote above, and God is really timeless like what every philosophical/theological book I’ve ever read on the subject claims him to be, then if God exists, it is within every possibility that he created everything which then being created was itself made to be of eternal existence because the fact that it was more than nothing.
I highly recommend reading up on your philosophy and keeping science only in the back of your mind. What we can know has a limit, there’s no way of crossing some barriers and that limit seems to be fast approaching. Application of discovery will go on as long as human’s live, but discovery itself will phase out. Think hard on these ideas. That which always is can be called truth, but we cannot know without a doubt what anything is because of what we are. We cannot even know what we ourselves our.
The purpose of the universe is conscious life. If there is nothing to call it purposeful, it will have no purpose. |
[Diagnosis and management of asthma].
Asthma is a chronic inflammatory disorder of the airways with many inflammatory cells such as eosinophils, mast cells, T lymphocytes and basophils. This inflammation causes airflow limitation, airway hyperresponsiveness, respiratory symptoms and disease chronicity. Long-term-control medication are needed to prevent and control asthma symptoms. |
package com.github.mustfun.mybatis.plugin.dom.model;
import com.github.mustfun.mybatis.plugin.dom.converter.AliasConverter;
import com.intellij.psi.PsiClass;
import com.intellij.util.xml.Attribute;
import com.intellij.util.xml.Convert;
import com.intellij.util.xml.GenericAttributeValue;
import org.jetbrains.annotations.NotNull;
/**
* @author yanglin
* @updater itar
* select有resultMap标签和resultType标签
*/
public interface Select extends GroupTwo, ResultMapGroup {
/**
* 事实上如果是简单的PSIClass也可以不需要转换器,可以注释掉那一行
* @return
*/
@NotNull
@Attribute("resultType")
@Convert(AliasConverter.class)
public GenericAttributeValue<PsiClass> getResultType();
}
|
The invention relates to forging of workpieces, particularly metal workpieces such as reinforcing bars for use in building construction, particularly concrete construction.
Concrete reinforcing bars, which may be deformed by external ribs, or plain, are usually provided in finite lengths.
It is often necessary to join them in line to provide a more extensive reinforcement than might otherwise be possible owing to the finite length. Such bars have a high tensile strength, and it is accordingly necessary not to undermine that strength during any process to enable the bar to be connected with another. Usually this is effected by providing a thread on one end, usually by cold working, which can be advantageous as the bars are usually made from steel with a high carbon and manganese content. However, forming a thread at one end of the bar often reduces the cross-section of the bar, thus lowering its tensile cross-section in the region of the thread, which leads to failure in use, which can be catastrophic for the concrete. It is thus necessary to ensure that the threaded end (which is formed by rolling, milling or cutting) is enlarged, relative to the remaining length of the bar, so that the effective tension cross-section of the threaded part is not smaller than that of the remaining length of bar. However, in the past, enlarging techniques have not been able satisfactorily to produce an enlarged end of a ribbed bar in which the tensile strength is not effected as compared with that of the remainder of the bar.
It is an object of the invention to seek to mitigate these disadvantages.
According to a first aspect of the invention there is provided apparatus for cold forging a metal workpiece, comprising a die with means to alleviate stress to the workpiece during forging.
According to a second aspect of the invention there is provided apparatus for enlarging part of a metal workpiece by cold forging, comprising an enlarging die with means to alleviate stress to the workpiece during forging.
Using the invention it is possible to provide an enlarged end of deformed (ribbed) and undeformed reinforcement bars without changing their overall tensile characteristics.
The stress alleviating means may comprise a relief channel into which metal can flow during forging. This is a relatively simple yet effective construction, particularly where the relief channel may be a substantially U-shaped groove in the die.
There may be two opposed dies. This provides for positive enlargement over the whole circumference of the workpiece.
Each die may have a first die part and a second die part which second die part may be enlarged relative to the first die part and may be adapted to allow part of the workpiece to project therefrom, the arrangement being such that in use the projecting part of the workpiece is upset and enlarged. This is a particularly simple and efficient construction.
There may be means to press the die parts together, and means to apply pressure in a direction substantially at 90xc2x0 to the first-mentioned press direction. This provides for maintaining a tensile integrity of the workpiece during a forging/enlarging procedure.
The means for pressing the die parts together may comprise an hydraulic press acting substantially vertically in use. This is an effective construction.
The second-mentioned means may comprise an hydraulic press acting substantially horizontally. This is also an effective construction.
At least the distance between the enlarging die and the substantially-horizontally acting hydraulic press may be adjustable. This provides for a desired enlarging operation.
The distance may be adjustable by adjusting the pressure of a forging piston for effecting forging. This is an effective way of adjusting the operation.
An equally effective alternative may be by the distance being adjustable by adjustment of a forging pad on which the forging piston can act.
The pressure of the substantially vertically acting hydraulic press may also be adjustable. This again provides a desired control of the procedure.
The first die part may have an internal die configuration substantially complementary to the external configuration of a major part of a workpiece which is to be forged. This provides for support of the workpiece during enlargement.
According to a third aspect of the invention there is provided a method of cold forging an elongate metal workpiece, comprising the steps of providing forging apparatus having a die, providing the die with means to alleviate stress in the workpiece during forging, and forging the workpiece.
The method may include the steps of providing two opposed forging dies. This provides a positive method of operation.
Each forging die may comprise a relief channel into which material of the workpiece can flow during forging. This provides that the tensile integrity of the workpiece is maintained.
There may be the steps of providing that each die part has a first die part and a second die part enlarged with respect to the first die part, inserting an elongate workpiece between the dies so that the first die part receives a main part of the workpiece, and an end of the workpiece projects through and beyond the second die part, and upsetting the projecting end so that it flows into the enlarged second die part. This provides an efficient method of enlargement.
There may be the steps of removing the forged workpiece from the apparatus and forming a thread on the enlarged part of the workpiece. This provides a way to connect the workpiece with another similar one.
According to a fourth aspect of the invention there is provided an elongate metal workpiece whenever forged by a method as hereinbefore defined, or whenever produced by a method as hereinbefore defined.
The elongate metal workpiece may have at least one threaded end, and may comprise a reinforcing bar for use in building construction.
Such a reinforcing bar may have an internally threaded sleeve on an end opposite an enlarged threaded end.
According to a fifth aspect of the invention there is provided a reinforcing system, comprising a plurality of reinforcing bars as hereinbefore defined.
According to a sixth aspect of the invention there is provided concrete whenever reinforced by a workpiece or reinforcing bar as hereinbefore defined. |
[The widened "empty" internal auditory meatus. A new differential diagnosis of the small acousticus neurinoma].
Six patients with symptoms suggestive of acoustic neuromas showed a wided, contrastfilled internal auditory meatus during positive contrast meatography on tomographic cuts. These results suggest that widening of the internal auditory meatus may not always be due to a space-occupying lesion. The explanation for these findings is not known. No comparable findings have been published in the relevant literature. Surgical intervention, which is frequently harmful and carried out because of a misdiagnosed acoustic neuroma can only be avoided by carrying out cisternography with positive contrast materials and tomography in the Stenvers' and Schüller projection. |
Q:
same fk in different tables hierarchally
Today I have this structure...
tableA.id
tableB.id
tableB.tableAId (fk)
tableC.id
tableC.tableBId (fk)
Is it correct I put a fk in tableC refering to tableA ? If I dont do that, I need to join tableC with tableB to go to tableA. I am telling to avoid joins and going to do all with the good pratices.
A:
Multiple foreign keys is in no way a bad thing to do. If there's a relation between table A and table C, and you're going to need to pull data that relates to both without necessarily needing table B, having a foreign key between A-C is perfectly fine!
|
No one inside the home was hurt. Officer Angelini suffered neck injuries. |
package com.jshvarts.conductormvp.notedetail
import android.view.View
import android.widget.ProgressBar
import android.widget.TextView
import butterknife.BindView
import butterknife.OnClick
import com.bluelinelabs.conductor.RouterTransaction
import com.bluelinelabs.conductor.changehandler.FadeChangeHandler
import com.jshvarts.conductormvp.NotesApp
import com.jshvarts.conductormvp.R
import com.jshvarts.conductormvp.editnote.EditNoteView
import com.jshvarts.conductormvp.mvp.BaseView
import com.jshvarts.conductormvp.mvp.MvpPresenter
import com.jshvarts.notedomain.model.Note
import timber.log.Timber
import javax.inject.Inject
class NoteDetailView : BaseView(), NoteDetailContract.View {
@Inject
lateinit var presenter: NoteDetailPresenter
@BindView(R.id.note_detail_text)
lateinit var noteText: TextView
@BindView(R.id.note_detail_progress_bar)
lateinit var progressBar: ProgressBar
override fun injectDependencies() {
DaggerNoteDetailComponent.builder()
.appComponent(NotesApp.component)
.noteDetailModule(NoteDetailModule())
.build()
.inject(this)
}
override fun onAttach(view: View) {
super.onAttach(view)
with(presenter) {
start(this@NoteDetailView)
loadNote(args.getLong(KEY_NOTE_ID))
}
}
@OnClick(R.id.edit_note_button)
override fun onEditNoteButtonClicked() {
val editNoteView = EditNoteView().apply {
args.putLong(KEY_NOTE_ID, this@NoteDetailView.args.getLong(KEY_NOTE_ID))
}
router.pushController(RouterTransaction.with(editNoteView)
.pushChangeHandler(FadeChangeHandler())
.popChangeHandler(FadeChangeHandler()))
}
@OnClick(R.id.delete_note_button)
override fun onDeleteNoteButtonClicked() {
presenter.deleteNote(args.getLong(KEY_NOTE_ID))
}
override fun onLoadNoteSuccess(note: Note) {
noteText.text = note.noteText
}
override fun onLoadNoteError(throwable: Throwable) {
Timber.e(throwable)
showMessage(R.string.note_detail_load_error)
}
override fun showLoading() {
progressBar.visibility = View.VISIBLE
}
override fun hideLoading() {
progressBar.visibility = View.GONE
}
override fun onDeleteNoteSuccess() {
showMessage(R.string.note_detail_delete_note_success)
router.popCurrentController()
}
override fun onDeleteNoteError(throwable: Throwable) {
Timber.e(throwable)
showMessage(R.string.note_detail_delete_note_failed)
}
override fun getLayoutId() = R.layout.note_detail
override fun getToolbarTitleId() = R.string.screen_title_note_detail
override fun getPresenter(): MvpPresenter = presenter
} |
## General
- Expression bodied members are discussed [here][expression-bodied-members].
- Ternary operators are discussed [here][ternary-operators].
- Switch expressions are discussed [here][switch-expressions].
- Throw expressions are covered [here][throw-expressions].
[expression-bodied-members]: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members
[ternary-operators]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/conditional-operator
[switch-expressions]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/switch-expression
[throw-expressions]: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/throw#the-throw-expression
|
A TALE OF TWO TRNAS: TRANSLATING THE SAME CODON DOES NOT IMPLY REDUNDANCY
View/Open
Date
Author
Metadata
Author
Murrill, Elizabeth
Abstract
A transfer RNA (tRNA) can form codon-anticodon interactions either by standard Watson-Crick base pairing or by forming a wobble base pair between the first position of the anticodon and the third position of the codon. This means that within the same isoaccepting tRNA group, one codon may be read by two individual tRNAs each interacting in one of the two ways. This leads to the question: Why would such redundancy occur? Through the inactivation of the gene that encodes for the threonine isoaccepting tRNA with the anticodon CGU (tRNA-CGU), it was found that the tRNA-CGU, which interacts with its cognate codon through Watson-Crick base pairing, is not essential for life in Escherichia coli. Yet, the tRNA-CGU is present in a majority of bacteria, leading one to expect that it must have a meaningful role in the process of translation that has caused it to either be a retained or a gained molecule for such bacteria. Evidence showed that the tRNA-CGU has specific properties that allow the tRNA to contribute more at increased temperatures to the translation of its codon, while the properties of the tRNAs that “wobble” to read the codon contribute less at increased temperatures. One possible, contributing property of the tRNA-CGU is the more stable codon-anticodon interaction formed by the standard Watson-Crick base pair. Since bacteria have to live in different environments and at various temperatures, such chemical stability may be key to the survival of these bacteria and why so many bacterial genomes have a tRNA that is seemingly redundant.
UO prohibits discrimination on the basis of race, color, sex, national or ethnic origin, age, religion, marital status, disability, veteran status, sexual orientation, gender identity, and gender expression in all programs, activities and employment practices as required by Title IX, other applicable laws, and policies. Retaliation is prohibited by UO policy. Questions may be referred to the Title IX Coordinator, Office of Affirmative Action and Equal Opportunity, or to the Office for Civil Rights. Contact information, related policies, and complaint procedures are listed on the statement of non-discrimination. |
Discover Great Houses for Rent in Pompano Beach, FL
There are countless reasons why someone may decide to find a home for rent in the area of West Palm Beach, Florida. Certainly, changes in one's personal or professional life tend to prompt someone to relocate. But this area of the country is also full of people who have come in search of the sun's glow, a laid-back lifestyle, and the tiny pleasures that come with living near the shore. For those new to the area, renting an apartment in Pompano Beach, Florida, has become a popular choice, as the city has the natural beauty of an Atlantic Coastal town, and has committed to a redevelopment project that aims to enhance those beachfront pleasures.
Outdoor Activities for Pompano Beach Renters
Currently, the community offers its residents much more than sunshine and surf. One popular attraction for those in Pompano Beach rentals is Pompano Park, the unofficial "Winter Home of Harness Racing." The track facility is complete with slot machines and live poker games as well. There are also the city's popular events, such as the monthly East Village Uncorked, where local artists, musicians and chefs team up to provide a festive environment.
Business Opportunities Near Pompano Beach Rentals
As more people have begun to investigate rental homes in Pompano Beach, the city has been recognized as one of the top real estate markets of its kind in the country by both Money Magazine and the Wall Street Journal. The town is rapidly developing, suggesting an even brighter future for those who rent homes in Pompano Beach. |
Interference of Temporally Distinguishable Photons Using Frequency-Resolved Detection.
We demonstrate quantum interference of three photons that are distinguishable in time by resolving them in the conjugate parameter frequency. We show that the multiphoton interference pattern in our setup can be manipulated by tuning the relative delays between the photons, without the need for reconfiguring the optical network. Furthermore, we observe that the symmetries of our optical network and the spectral amplitude of the input photons are manifested in the interference pattern. We also demonstrate time-reversed Hong-Ou-Mandel-like interference in the spectral correlations using time-bin entangled photon pairs. By adding a time-varying dispersion using a phase modulator, our setup can be used to realize dynamically reconfigurable and scalable boson sampling in the time domain as well as frequency-resolved multiboson correlation sampling. |
package com.xmartlabs.fountain.rx2.adapter
import android.support.annotation.WorkerThread
import com.xmartlabs.fountain.ListResponse
import com.xmartlabs.fountain.adapter.BasePageFetcher
import com.xmartlabs.fountain.adapter.NetworkResultListener
import com.xmartlabs.fountain.common.BaseNetworkDataSourceAdapterFactory
import com.xmartlabs.fountain.common.notifyFromCallable
private fun <T : ListResponse<*>> RxPageFetcher<T>.toBasePageFetcher() = object : BasePageFetcher<T> {
@WorkerThread
override fun fetchPage(page: Int, pageSize: Int, networkResultListener: NetworkResultListener<T>) {
networkResultListener.notifyFromCallable {
fetchPage(page = page, pageSize = pageSize).blockingGet()
}
}
}
internal fun <T : ListResponse<*>> RxNetworkDataSourceAdapter<T>.toBaseNetworkDataSourceAdapter() =
BaseNetworkDataSourceAdapterFactory.createFromAdapter(pageFetcher.toBasePageFetcher(), this)
private fun <T : ListResponse<*>> NotPagedRxPageFetcher<T>.toBasePageFetcher() = object : BasePageFetcher<T> {
@WorkerThread
override fun fetchPage(page: Int, pageSize: Int, networkResultListener: NetworkResultListener<T>) {
networkResultListener.notifyFromCallable { this@toBasePageFetcher.fetchData().blockingGet() }
}
}
internal fun <T : ListResponse<*>> NotPagedRxPageFetcher<T>.toBaseNetworkDataSourceAdapter() =
BaseNetworkDataSourceAdapterFactory.createFromNotPagedPageFetcher(toBasePageFetcher())
|
Gronblad Strandberg syndrome with vertibrobasilar dolichoectasia.
The constellation of pseudoxanthoma elasticum, ocular involvement and vascular disturbances is termed Gronblad Strandberg syndrome. Pseudoxanthoma elasticum is a genetic disorder characterized by progressive calcification and fragmentation of elastic fibres in the skin, retina and the cardiovascular system. Typically the cutaneous lesions begin in childhood, but because of their asymptomatic nature they are not noted until adolescence. In some individuals, skin lesions do not develop until later in life. If recognized early, the occurrence of retinal and gastrointestinal hemorrhage and cardiovascular complications can be minimized. |
California Gov. Jerry Brown vetoed a bill that would have placed strict regulations on how law enforcement and other government agencies can use drones, his office said on Sunday.
The measure, which passed the state's Senate and Assembly with broad support, would have required law enforcement agencies to obtain a warrant before using an unmanned aircraft, or drone, except in emergencies such as a fire or a hostage-taking.
"There are undoubtedly circumstances where a warrant is appropriate. The bill's exceptions, however, appear to be too narrow," Brown said in his veto message.... |
Thanks to the intrepid journalism of Twitter user Joe Wadlington, who used a first date with the former general manager of the Olive Garden in Times Square to find out the deepest, darkest secrets of the cult chain restaurant, we know now that Olive Garden running out of breadsticks has not only happened, but is arguably more stressful than a knife fight.
In a series of tweets, Wadlington disclosed all of the pertinent information we ever needed to know about life, love and Olive Garden.
On how it began:
I went on a date last night and the guy meekly shared that he used to be THE GENERAL MANAGER FOR THE TIMES SQUARE OLIVE GARDEN. |
Women Speak For Themselves
Now is the time that we stand up for the reality that stands beyond the TV and the fear. Women are awakening to the collective awareness and coming together to make changes to the broken failed system we find ourselves in. We can create a better now. It will not be the same. It will not be created in the same way, it is new and yet it has always been present. 🙂 |
*pops in*
Hello everyone!!!! I'm going to be cosplaying as Kagura at Otakon and Anime Next. Her character I think is really really cool. Omg my mouth fell open when I seen what she did to Kyo. Time to play Bore and Cat ^-^ :P :P Blueberry Neko I believe they are black. I mean every time I seen someone cosplay as her she had black boots. |
I wont go into to much detail on this. But this is an idea I had come up with when I was hanging out with my friend aka Because it was funny when we were talking about it. So her character Sakura is taking a pic of my character Rin. This is an AU for her story in the future. But anyways Shes taking the pic of Mordred the Knight a chacracter from a game. whos feeding Rin, hes out of it and not really realizing what hes doing. But the one thing these two have in common is food. So this pic is more for laughs if anything at this point in time. |
package com.bihell.dice.generator.config.query;
import com.baomidou.mybatisplus.generator.config.querys.MySqlQuery;
/**
* MySQL代码生成查询是否为空的列
**/
public class DiceMySqlQuery extends MySqlQuery {
@Override
public String[] fieldCustom() {
return new String[]{"null", "default"};
}
}
|
Three-quarters of Christian women in America, the backbone of most churches, say they are mature in their faith, feel they are making the most of their gifts and potential and believe they are doing m... |
thought that it was crap too. i brought it to clean behind my cooker (was quite disgusted when it was pulled out to have new one fitted) and i resorted to sugar soap as cillit bang had no more effect than tesco's own brand!
Agreed......it's pants - no better than any other brand out there. But I DID try cleaning my copper coins with it to compare with the advert.......and it works brilliantly on them!!! So not very useful really, unless you have a particular liking for shiny coins |
I had some fun designing Obi-Wan’s clothing combining elements of Satine’s royal guards’ uniforms with the collar from the Mandalorian cadets’ uniforms and a touch of Jedi influence as well. It seemed appropriate to make a visual statement that he’s at her side as protector (as he has always been), not as a foreign influence on Mandalorian policy. I feel like this AU could happen if The Lawless had gone differently…
Backstage di Star Wars
Before their military heroism in the Clone Wars, before their tragic battle on Mustafar, and many decades before their final confrontation on the Death Star...they were Master Obi-Wan Kenobi and his P
Image result for clint barton farm
Save yourself the hassle of peeling, coring and dicing by turning one whole apple into a mini pie. |
Barca president Sandro Rosell is eager to sign the Brazilian superkid.
"He must go to Europe, for the sake of the Seleçao and his own. Brazil is now too small for him. In Europe he'll learn things not taught in Brazil. He is a great player, but there he will improve and the opponents will respect him more," said Alves.
He added: "At Barcelona, Neymar will improve a lot. His profile will fit perfectly." |
Screening for differentiated thyroid cancer in selected populations.
The main purpose of cancer screening programmes should not be to detect all cancers, but to discover potentially fatal or clinically relevant cancers. The US Preventive Services Task Force recommends against screening for thyroid cancer in the general, asymptomatic adult population, as such screening would result in harms that outweigh any potential benefits. This recommendation does not apply to patients with symptoms or to individuals at increased risk of thyroid cancer because of a history of exposure to ionising radiation (in childhood, as radioactive fallout, or in medical treatment as low-dose radiotherapy for benign conditions or high-dose radiation for malignancy), inherited genetic syndromes associated with thyroid cancer (eg, familial adenomatous polyposis), or one or more first-degree relatives with a history of thyroid cancer. We discuss the evidence for and against screening individuals who are at high risk, and consider the different screening tools available. |
{
"status": {
"code": "OK",
"message":"WORKING"
}
} |
Monitoring of microbiological water quality by real-time pcr.
A new method was developed to evaluate the microbiological water quality. Deoxyribonucleic acid of water-borne bacteria was extracted and quantified using real-time polymer chain reaction detection system with a selected universal primer set. Quantification of the deoxyribonucleic acid in environmental water samples is independent of the culture condition, nutrient condition, or the bacterial metabolic states and can reflect the relatively small environmental changes which can not be detected through the other parameters. Therefore, this method can well represent the microbiological water quality. Compared with the conventional plate count method, deoxyribonucleic acid quantification has higher sensitivity, precision and reliability. The relationship between concentration of bacterial deoxyribonucleic acid and other water quality parameters was examined. Concentration of deoxyribonucleic acid was not well correlated with the plate count number, turbidity or other physical and chemical parameters. |
Q:
Have no idea why the listener is not being called in Laravel
Heres the event:
<?php
namespace App\Modules\Clinicians\Events;
use Illuminate\Queue\SerializesModels;
class CreateHealthCareProviderEvent
{
use SerializesModels;
public $data;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(array $data)
{
$this->data = $data;
}
}
The event gets called just fine. But the listener:
<?php
namespace App\Modules\Clinicians\Listeners;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Modules\Clinicians\Events\CreateHealthCareProviderEvent;
use App\Modules\Clinicians\Events\EmailClinicAdminsEvent;
use App\Modules\Users\Services\RegisterUserService;
class CreateHealthCareProviderListener
{
private $registerUserService;
/**
* Create the event listener.
*
* @return void
*/
public function __construct(RegisterUserService $registerUserService)
{
$this->registerUserService = $registerUserService;
}
/**
* Handle the event.
*
* @param object $event
* @return void
*/
public function handle(CreateHealthCareProviderEvent $event)
{
$user = $this->registerUserService->setRequestData($event->data)->registerUser(Clinic::find($event->data['clinic_id']));
$user->clinician()->create([
'user_id' => $user->id,
]);
$user->clinician->clinics()->attach($event->data['clinic_id']);
event(new EmailClinicAdminsEvent($user, $event->data['clinic_id']));
}
}
Never gets called. Ever. So how am I registering these?
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
// When a new health care provider registers:
CreateHealthCareProviderEvent::class => [
CreateHealthCareProviderListener::class,
],
// Email the Clinic admins when a healthcare provider registers:
// Called in the CreateHealthCareProviderListener handler method.
EmailClinicAdminsEvent::class => [
EmailClinicAdminsListener::class,
],
];
...
}
I have never had an issue registering events and listeners like this before. They always work. But for some reason the listener will not fire for this event. The event fires just fine. But not the listener. What am I missing?
I have tried:
php artisan optimize
composer dump-autoload
Nothing.
Its called as such:
// Create the health care provider user:
event(new CreateHealthCareProviderEvent($request->all()));
Any ideas? I checked spelling and namespaces and everything seems correct. What am I missing?
There are no errors, nothing. The tests still pass (I dont fake events) and the test coverage shows the event gets called, but the test coverage shows the listener does not get called. When I try this out in the browser, no user is created - which is done by the listener.
All my other events and their associated listeners are called just fine.
What is going on?
A:
So I am retarded and will take the downvotes on this one but for future reference, make sure your use statements are proper. because Laravel won't tell you when registering events:
use App\Modules\Clinicians\CreateHealthCareProviderEvent;
use App\Modules\Clinicians\EmailClinicAdminsEvent;
use App\Modules\Clinicians\CreateHealthCareProviderListener;
use App\Modules\Clinicians\EmailClinicAdminsListener;
What do you think is missing here? let me tell you:
use App\Modules\Clinicians\Events\CreateHealthCareProviderEvent;
use App\Modules\Clinicians\Events\EmailClinicAdminsEvent;
use App\Modules\Clinicians\Listeners\CreateHealthCareProviderListener;
use App\Modules\Clinicians\Listeners\EmailClinicAdminsListener;
This is why the event was being called but not the listener. In the controller class where the event in question was being called, I imported the event properly, but in the event service provider I did not.
|
Q:
Mac: Getting path of current desktop picture from terminal
I'm writing a bash script that takes care of setting the desktop background on my mac. I can set the desktop background with:
$ osascript -e 'tell app "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid White.png"'
However, I also need to GET the path of the desktop picture. The closest I've gotten is:
$ osascript -e 'tell app "Finder" to get desktop picture'
This returns the path of the desktop picture but in a really weird format that I can't use:
document file Solid White.png of folder Solid Colors of folder Desktop Pictures of folder Library of startup disk
Is there any way I can get the path of the current desktop picture that would return:
/Library/Desktop\ Pictures/Solid\ Colors/Solid\ White.png
?
A:
I found that the answer can be shortened to one line:
osascript -e 'tell app "finder" to get posix path of (get desktop picture as alias)'
A:
Like this:
osascript -e '
tell application "Finder"
set theDesktopPic to desktop picture as alias
set theName to posix path of theDesktopPic
end tell'
/Users/mark/Documents/Carbon fibre.png
|
Rachel Maddow notes that while the Benghazi investigation did not produce the damning evidence against Hillary Clinton Republicans had hoped for (and assumed), it did have political consequences for both parties. |
Radiation-balanced Yb:YAG disk laser.
A radiation-balanced Yb:YAG disk laser is demonstrated in an intracavity pumping geometry. Detailed analysis of the data reveals the feasibility of using the multi-kilowatt level "athermal" disk lasers with minimal modal instabilities, which arise from thermal lensing. |
What we discovered is that our PBS mom daemon did not have unlimited locked
memory. So, when your job is created by the mom daemon it inherits the
memory limits. The fix was to cycle the PBS mom daemon after a boot (and
yes, we do start the mom daemon at boot but for some reason it doesn't
inherit unlimited locked memory). The way to determine if this is the
problem is to place a "ulimit -a" in the text of your PBS job. Run your job
and you will see a limit of 32K. Next cycle the mom daemon on the node(s)
of interest and re-run your job. You will now see unlimited memory.
Thanks,
Pat O'Bryant |
Contents
Plot
The International Underground is in a mess, as Mr Chipper's Cheesy Snacks are hosting a competition for their customers - if they find a golden ticket in their packet, they win a luxury holiday! Mr Rails is sent to clean all the crisp packets up, much to his dismay.
Meanwhile, Hammersmith and City are cheering up a little girl called Chloe who's never been on holiday. They take her and her granny to the funfair once they find out they can't afford to go on holiday. Jubilee is sent to the workshop when something starts rattling in his undercarriage, but Mr Rails is too busy sorting out the rubbish to pay attention to him. When Mr Rails finds a golden ticket in a packet, he gets incredibly excited and calls Mr Chipper to claim his prize.
At the theatre, a wind machine is broken and Victoria is waiting for Jubilee to collect it, but he can't as he's at the workshop. Ernie takes it with him to International Underground Station to give to Mr Rails later, but Mr Rails is too busy preparing for his holiday to take any notice of it - and his golden ticket falls out of his pocket when the wind machine starts up.
Chloe finds the discarded ticket on the platform, and calls Mr Chipper to claim the prize. When Mr Rails notices his ticket is missing, he panics and hurries back to the station. Once Mr Chipper arrives, Ernie notices the dilemma, and Chloe sadly hands the ticket back to Mr Rails. Once Mr Rails hears that Chloe and her family have never been on holiday, he gives it back to Chloe, and then gets back to work.
At the sheds that night, Mr Rails returns to fix Jubilee's undercarriage, and pulls out another packet of Mr Chipper's Cheesy Snacks, much to everyone's amusement. |
Q:
Stripe test payments do not show up in dashboard
I am using a PHP Stripe Payment form to collect payments. The payments seem be going through OK and take the user to the confirmation page upon successful completion. I am in test mode and am able to see the payments as they show up in the 'Payments' section of the dashboard. However, when I click on the 'Home' section of the dashboard, I do not see them under the 'Gross volume' tab. There are no error logs created by my code. Also, the Stripe dashboard shows no errors as well. Does it usually take a while for the payments to shown up in the dashboard (even in the test mode)? Or it there something else?
Here's what I have tried after researching on the Internet - clearing browser cache. It worked and showed some of the payments, but its not showing the new charges under the 'Gross Volume' tab, though they show up OK in the 'Payments' section of the dashboard.
Thanks!
A:
You're most likely only creating Tokens but not using those Tokens to create Charges on the server side.
You'll need to make sure you're creating both the Token - using Checkout or Elements - and then the Charge: https://stripe.com/docs/charges
If that's not causing the problem, you'll want to reach out to Stripe Support so they can look into the details for you.
A:
You need to clear out all test data.
Login to your Stripe account
Business Settings
Data
Look for Test data
Click Delete all test data
Go back to your dashboard and click on Payments. Your non-test data will appear.
This is a strange work-a-round because, if I searched for the know good order, the order would show up. So somehow deleting the test data allows the order to appear in the Payment List without doing a search.
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#pragma once
#include <stdexcept>
#include <functional>
namespace wpf
{
namespace util
{
/// <summary>
/// Non-copyable base class
/// </summary>
struct noncopyable
{
noncopyable() = default;
noncopyable(const noncopyable&) = delete;
noncopyable& operator=(const noncopyable&) = delete;
};
/// <summary>
/// Generic RAII pattern to automatically
/// acquire and release a resource at the end
/// of a scope
/// </summary>
template<typename Resource>
class scopeguard : public noncopyable
{
private:
/// <summary>
/// The resource being protected and
/// automatically released at the end
/// of the scope
/// </summary>
Resource data;
/// <summary>
/// Function used to release the resource
/// </summary>
std::function<void(Resource&)> release;
/// <summary>
/// Function used to test the goodness of the
/// resource
/// </summary>
std::function<bool(const Resource&)> good;
private:
/// <summary>
/// Returns a reference to the resource
/// </summary>
/// <returns></returns>
inline Resource& get_data()
{
return data;
}
/// <summary>
/// Returns a const-reference to the resource
/// </summary>
/// <returns></returns>
inline const Resource& get_data() const
{
return data;
}
public:
/// <summary>
/// Constructor
/// </summary>
/// <param name="acquire">Function used to acquire the resource</param>
/// <param name="release">Function used to release the resource. This will be called at the end of the scope</param>
/// <param name="good">Function used to test the goodness of the resource</param>
inline scopeguard(std::function<Resource()> acquire, std::function<void(Resource&)> release, std::function<bool(const Resource&)> good)
: data(acquire()), release(release), good(good)
{
if (!release || !good)
{
throw std::logic_error("release and good functions must be supplied");
}
}
/// <summary>
/// Destructor - calls <see cref="release()"/>
/// </summary>
inline ~scopeguard()
{
if (valid())
{
release(data);
}
}
/// <summary>
/// Tests whether the resource being protected is valid
/// </summary>
inline bool valid() const
{
return good(data);
}
/// <summary>
/// Returns a reference to the resource
/// </summary>
inline Resource& resource()
{
return get_data();
}
/// <summary>
/// Returns a const reference to the resource
/// </summary>
inline const Resource& resource() const
{
return get_data();
}
/// <summary>
/// Implicitly converts to a reference to the resource
/// </summary>
inline operator Resource&()
{
return get_data();
}
/// <summary>
/// Implicitly converts to a const reference to the resource
/// </summary>
inline operator const Resource&() const
{
return get_data();
}
};
}
}
|
Online Sports Council
For the first time since the waning days of the George W. Bush administration, the San Francisco Giants didn’t win the World Series in an even year.
Now, as we prepare to inaugurate President Donald J. Trump, San Francisco will look to usher in an era of odd-year dominance.
First, they’ve got spring training issues to sort out, including position battles in left field, at third base and the back end of the rotation, where a former franchise cornerstone is trying to resuscitate his career. |
Q:
Change sql query to LINQ
How I convert this sql query :
Select ID, first_name, last_name, phone_number, room_type, room_floor, room_number, break_fast, lunch, dinner, cleaning, towel, s_surprise, supply_status, food_bill
from reservation
where check_in = '" + "True" + "' AND supply_status= '" + "False" + "'"
into LINQ
A:
You can try something similar to this:
var rows = from r in reservation
where r.check_in == "True" && r.supply_status == "False"
select r;
|
p53 family in development.
The p53 family network is a unique cellular processor that integrates information from various pathways and determines cellular choices between proliferation, replication arrest/repair, differentiation, senescence, or apoptosis. The most studied role of the p53 family is the regulation of stress response and tumor suppression. By removing damaged cells from the proliferating pool, p53 family members preserve the integrity of the genome. In addition to this well recognized role, recent data implicate the p53 protein family in a broader role of controlling cell proliferation, differentiation and death. Members of the p53 protein family with opposing activity perform coordination of these processes. Imbalance of p53 protein family may contribute to a significant proportion of congenital developmental abnormalities in humans. |
Q:
Can rsync preserve directories information?
I would like to rsync only certain files within a directory, but I would like to preserve the directory format. I am using this with crontab to back up certain files only.
For example:
home/dir1/file1
home/dir1/file2
home/dir2/file1
The command I am using is
rsync -av /home/dir*/file* backup/
However, it only sends all the files to the same backup directory. Is there a way to specify to split these? Sorry if this is super basic.
A:
I believe you want the -R option, as in rsync -avR /home/dir*/file* backup/
Then instead of [I presume] everything ending up "flat" under backup, you should get:
backup
home
dir1
file1
file2
...
dir2
file3
file4
...
dir...
|
Tackling dementia in patients with Parkinson's disease.
Dementia more than one year after the onset of motor features associated with Parkinson's disease is defined as Parkinson's disease with dementia (PDD). If it develops within one year of the motor features, the term dementia with Lewy bodies (DLB) is used. Since clinical and pathological features are similar, it is generally accepted that both represent a continuum of the same disorder. PDD together with DLB account for around one fifth of all cases of dementia in the elderly. Studies suggest that most patients with Parkinson's disease would eventually develop dementia if they lived long enough. The diagnosis of PDD in the presence of long-standing pronounced motor features rarely poses a diagnostic dilemma. However, the diagnosis of DLB may be more difficult. It relies on the revised consensus clinical criteria which require the presence of at least two of the following three syndromes: persistent visual hallucinations, fluctuating defects in cognitive and functional ability, and parkinsonism. An early referral to a specialist clinic may not only help to confirm the diagnosis, but also to co-ordinate the group of professionals working with the patient. Well lit rooms and the use of glasses and hearing aids can help to reduce hallucinations. Cholinesterase inhibitors used in Alzheimer's disease have a role in DLB and PDD. Trials show moderate improvements in cognitive function in patients treated with rivastigmine. The greatest impact, however, seems to be on the psychotic features of the disease. Patients with DLB are less likely to have a good motor response from L-dopa than patients with Parkinson's disease or PDD. |
Mix, a program for pseudorandomization.
In psychological experiments involving multiple trials, the order in which individual trials presented to participants influences the results obtained. For this reason, experimenters often create carefully constrained experimental lists or check randomly generated lists to avoid known causes of order artifacts (e.g., short-term stimulus or response repetition). Creating appropriately structured pseudorandom lists can be a difficult and time-consuming task in generating psychological experiments. Mix is a Windows program that can generate pseudorandomized orders according to complex, user-specified constraints. Mix can be used to generate a novel item order for each individual participant, even for complex experiments in which stimulus and/or response repetition is an experimental variable of interest, or for which automated randomization would not normally be possible. The program also contains a number of other practical features for generating files for use with a variety of experiment control software. A Mix executable for Windows, a complete manual, and terms of use are available at www.mrc-cbu.cam.ac.uk/personal/maarten.van-casteren/Mix.htm. Use is limited to academic or other nonprofit applications. |
Just starting, and I'll be doing some trout fishing in Northern Cal. (Klamath, Trinities, Sierras) this summer in both streams and lakes. I'd appreciate some advice on a modest selection of versatile flys to collect. Especially helpful would be a few words on when and where to use each. |
Comparison of the results of preimplantation genetic screening obtained by a-CGH and NGS methods from the same embryos.
Chromosomal aneuploidies are known for being the main cause of abnormal development of embryos with normal morphology, their implantation failure and early reproductive losses in IVF treatments. Preimplantation genetic screening (PGS) allows selecting embryos with normal chromosomal content and increases IVF treatment efficiency due to higher implantation rates and less frequent early pregnancy losses. New technologies used for PGS allow making genome-wide analysis of the presence of all chromosomes in embryos. This article presents our study of evaluation of two techniques used for PGS: previously developed and used in our laboratory a-CGH assay based on Agilent technology and newly tested semi-conductive NGS technique (Torrent technology). |
I run the metabolomics facility as part of Glasgow Polyomics, and I'm a researcher into novel techologies for metabolomics. Metabolomics is a key enabling technology for synthetic biology, as it allows us to analyse metabolism - the biochemical processes that drive living things. Manipulating these processes are the targets of synthetic biology: engineering microorganisms to make fuels, drugs and industrial chemicals. We can explore these pathways, deriving information that suggests tweaking a particular enzyme, excluding a toxin or enhancing a specific byproduct, then evaluating these changes. |
<?php
namespace Webkul\BookingProduct\Contracts;
interface BookingProductAppointmentSlot
{
} |
A teacher who sparked protests at a New Jersey high school when she told a Spanish-speaking student he should instead "speak American" has made a school-wide apology and has returned to the classroom.
Cliffside Park School District officials say English teacher Laura Amico returned to work Tuesday after delivering an apology to staff and students over the school's public address system.
Dozens of students at the high school in the heavily Hispanic district walked out of school earlier this month after a video clip surfaced in which Amico admonished a student for not speaking English.
The teacher said on the video: "Men and women are fighting. They are not fighting for your right to speak Spanish. They are fighting for your right to speak American." |
Construction of tetralin skeletons based on rhodium-catalysed site-selective ring opening of benzocyclobutenols.
Tetralins (tetrahydronaphthalenes) are synthesised from benzocyclobutenols based on the rhodium-catalysed site-selective ring opening followed by intermolecular/intramolecular conjugate addition of the resulting arylrhodium species to electron-deficient alkenes. The produced structures make a remarkable contrast with those available from the same compounds under thermal reaction conditions. |
Get the story to fuel your conversation today.
‘Rogue One: A Star Wars Story’ Teaser Trailer Is Here and Fans Are Losing Their Minds
It feels like Star Wars fans are still collectively recovering from the nostalgia-filled joyride that was The Force Awakens, but already, we have ourselves a teaser trailer for a new Star Wars movie. Rogue One: A Star Wars Story, the first of three anthology films set to expand the Star Wars universe, was unveiled Thursday on ABC's Good Morning America, and there's a lot of exciting details to comb through.
Rogue One is set to take place prior to the events of A New Hope, though not by much. In fact, Rogue One should — to some extent — lead into the opening sequence of A New Hope, as the film should reveal how Princess Leia and the Rebels initially received the plans of the Death Star, which led to the Empire hunting them down, starting off the series' narrative.
Notably, the teaser prominently featured Felicity Jones' character, and it's evident that she'll have a large part to play in the Rebels capturing the plans. Also visible are staples of the Empire we've come to expect, including Stormtroopers, AT-AT Walkers and, of course, the Death Star.
This should come as no surprise, but Star Wars fans in the Twitterverse were very excited for the trailer.
ROGUE ONE TRAILER OH MY GOD I'M CRYING
Today's question: can I get burned out on Star Wars stuff? Today's answer: if the ROGUE ONE trailer is any indication, not goddamn yet. |
Bluegrass Songs - You are what I am
You are what I am
You make time stand stil
Do it now and you always will
You take me as I am
You make me feel like a bland new man
Every time I fall down
I never get stuck
You get the combination, girl
To get me right back up
You are what I am
Loving you forever if I can
Think about the times we've had
We've never been blue
You got the combination, girl
To keep me straight and true
You are what I am
Loving you forever if I can
I know I'm lucky too
Without two or three just you and me
'Cos you are what I am
Loving you forever if I can |
Q:
Best way to get collect pounds or kilos in android from user?
I am going to write a BMI app and I would like to allow the user to enter weight and height in either U.S. units or metric. I am not sure what is the best way to go about this because I would also like to be able for the user to save their preference. Should I use a switch widget? Thanks in advance. Also not sure if I am asking in the right place.
A:
Use Radio Buttons to get the user preference.
Save the user preference in SharedPreferences.
|
Get some dope in your inbox
Get some dope in your inbox
Researchers from the University of London have discovered that cannabinoids can bolster chemotherapy treatment and decrease the growth of new tumor cells.
Of all the medical conditions that cannabis has been proven to be a viable treatment for, cancer remains one of the most common and fatal diseases to make the cut. However, the illegal status of the plant has continually hindered research, leaving most of the evidence supporting these benefits as strictly anecdotal.
Prior to this research, cannabis was already recognized as alleviating the nausea that is often experienced after chemotherapy sessions. The researchers have also found evidence that cannabinoids can increase the potency of chemotherapy and combat the growth of new tumor cells and tumor-feeding blood vessels.
The team observed cancer cells within their laboratory, trying out different combinations of cannabinoids on leukemia cells. The study aimed to sort out whether or not chemotherapy treatments worked more effectively alongside cannabinoids, as well as to determine which order they should be taken in.
These findings prove that highly concentrated cannabinoids were much more beneficial when taken after chemotherapy, rather than prior to the treatment. After using cannabis-based extracts on animals, the research team also discovered that these cannabinoids may be equally effective on glioblastoma, considered to be the most aggressive form of brain cancer.
It’s important to note that the efficacy of cannabinoids in this study are related to highly concentrated and purified extracts. According to the research team, simply smoking cannabis will not have the same impact. The study, entitled “Anticancer mechanisms of cannabinoids,” was recently published in the International Journal of Oncology.
Researchers from the University of London have discovered that cannabinoids can bolster chemotherapy treatment and decrease the growth of new tumor cells.
Of all the medical conditions that cannabis has been proven to be a viable treatment for, cancer remains one of the most common and fatal diseases to make the cut. However, the illegal status of the plant has continually hindered research, leaving most of the evidence supporting these benefits as strictly anecdotal.
Prior to this research, cannabis was already recognized as alleviating the nausea that is often experienced after chemotherapy sessions. The researchers have also found evidence that cannabinoids can increase the potency of chemotherapy and combat the growth of new tumor cells and tumor-feeding blood vessels.
The team observed cancer cells within their laboratory, trying out different combinations of cannabinoids on leukemia cells. The study aimed to sort out whether or not chemotherapy treatments worked more effectively alongside cannabinoids, as well as to determine which order they should be taken in.
These findings prove that highly concentrated cannabinoids were much more beneficial when taken after chemotherapy, rather than prior to the treatment. After using cannabis-based extracts on animals, the research team also discovered that these cannabinoids may be equally effective on glioblastoma, considered to be the most aggressive form of brain cancer.
It’s important to note that the efficacy of cannabinoids in this study are related to highly concentrated and purified extracts. According to the research team, simply smoking cannabis will not have the same impact. The study, entitled “Anticancer mechanisms of cannabinoids,” was recently published in the International Journal of Oncology. |
Visitor
My Link
Windows Protected Mode is one of the cardinal road to swamped the problematic windows. When a computer disputed point now viruses, software opening, is incompatible keep from certain programs, or other problems, regularly we blame fix by occupation into Sheltered Mode. But what if we culpability not enter Defended Mode?. Not a few viruses that damage the Windows Unharmed Mode to dissuade us entertain into defended mode and bleed the virus or fix unaffected from experienced. When we power not excite into Unharmed Mode, and so right could substitute a squeeze, being the early step to repairing or analyze windows charge not imitate done.
If you trial something approximative that, like now we blame handling a scanty and picnic software ( for chargeless and and portable ) to fix sheltered mode, Protected Mode Fixer ( SMFixer ). This software will save Windows Defended Mode to embody active and. Its way is easily done, in that it’s software ( tool ) has unrivaled three buttons, namely: Fix, Hand and Exit. To fix the defended embodiment fair-minded insight Fix, accordingly the computer will restart promptly, and when live restarts press F8 guide ( burden produce several times to throw together convinced we contract carry into Safe Mode snack possibility ).
Note: over this software is a software security ( security ) associated suppress the file system, registry systems and applications ( processes ) currently running, accordingly the application devoir drop reserve executive permissions. Several other security software may again block these applications, equivalent due to Avira, therefore if you produce not succeed, unfeigned is advisable to turn guillotine security software coextensive through Antivirus and Firewall initial. |
Culture brings us!
Culture is a good way to overcome language barriers through its traditions and symbols, which should be known all over the world. The project is the exchange of materials on our students, school, city and country. The materials will be presented in agreement with the partner school, which will develop students' language skills. Then, they will use the information received to make an album |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.