Q:

I want to get domain details from “Entity” calling Azure API

I want to get domain details from “Entity” calling Azure API.
I used :

https://login.microsoftonline.com/<--tid-->/oauth2/v2.0/authorize --> For
  authorization
  https://login.microsoftonline.com/<--tid-->/oauth2/v2.0/token   --> For
  Token
https://graph.microsoft.com/v1.0/me/  --> Using token and api I got userdata.

Now I need domain details of perticular user, Please help me.
Here I use curl call to get userdata.
My code :
$ch1 = curl_init();
curl_setopt($ch1 , CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch1, CURLOPT_HTTPHEADER, array('Authorization: Bearer '.$access_token));
curl_setopt($ch1, CURLOPT_URL, 'https://graph.microsoft.com/v1.0/me/');
$result1 = curl_exec($ch1);

I go Json response :
{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
  "businessPhones": [],
  "displayName": "<displayName>",
  "givenName": "<givenName>",
  "jobTitle": "<jobTitle>",
  "mail": "<mail_id>",
  "mobilePhone": "<mobilePhone>",
  "preferredLanguage": null,
  "surname": "<surname>",
  "userPrincipalName": "<userPrincipalName>",
  "id": "<some_id>"
}

Is there Any way to get domain details inside this response or I have to call another API for it

A:

You can use $select to get onPremisesDomainName property like this
https://graph.microsoft.com/v1.0/me?$select=displayName,onPremisesDomainName

Refer to this document for more details.


AislingH
063.365 : Sunlit Stairs As part of our epic adventure over the weekend, we visit these old maltings. The central tower features these wonderful windows which frame an even nicer spiral staircase. If you’re extra nice I might upload a second angle of the stairs. Coming soon to my flickr, but in the meantime you can go see where else we visited on the same day!

ursula
I woke up Monday morning, and as I usually do, lay in my bed, pondering. I soon found myself contemplating it being Mother's Day, this Sunday. It didn't take long before I was drawn back to the many years I dreaded the coming of that awful day. Insomuch, that I honestly wished I could sleep through it and wake up Monday; as if it had never happened. It took a conscience effort to turn that attitude around, for which, today, I am deeply grateful that I made that decision to to do so...

sheena
Alden #405 Indy Boot, Leather Soul Hawaii "Ultimate Indy" version. Harrison Ford wore the 405 boot as Indiana Jones (hence the name Indy Boot); the Ultimate Indy version uses a darker brown leather than standard (which is similar to how Ford's looks on screen) and has a rubber commando sole instead of the standard neocork sole. I intend to wear these in the field and not to baby them (though I will take good care of them) which is why I'll need more than one pair of boots.

estelle
A lot of you are asking me about which eye shadows from @anastasiabeverlyhills @norvina #modernrenaissance Eye Shadow Palette I used for my recent eye look. I created this image hoping this answers all those questions. Please let me know if you guys have any other questions, I will try to get back to you as soon as I can ✨ Love you all

sherri
Fan's encounter-- "superduperllamacorn: I met this wonderful man today, after almost 8 hours of waiting in the boiling sun. When I first approached him, he knew as soon as he looked at me I was shaking and he laughed, asked my name, and I shook his hand. I told him that my heart was racing to which he replied with a laugh,’Why? I am only just a man.’ And in that moment of course he was"...<<only tom hiddleston would say that.


Trail running // Posts tagged as "Trail running"

Trail Running in Costa Rica – Photos

Here are some photos of the single track running trails at Playa Danta. Currently, there are 10 miles of trails that ribbon the headlands. Most of the trails offer astounding views of the bay – jungle running at its best! You can choose to stick to flat trails or opt for a hilly, but rewarding...


The fully endoscopic supraorbital trans-eyebrow keyhole approach to the anterior and middle skull base.
The purely endoscopic eyebrow supraorbital approach is an alternative to both the endoscopic endonasal and eyebrow microsurgical routes to the anterior and middle cranial base. It combines an enhanced visualization provided by the endoscope and the absence of cerebrospinal fluid (CSF) leaks and nasal complications. A trans-eyebrow 2-cm craniotomy is designed to allow the placement of a straight endoscope and visualize the skull base from the cribriform plate to the mesiotemporal lobe. Visualization is considerably improved, while the keyhole mini-invasive concept is respected. The purely endoscopic eyebrow supraorbital keyhole approach is a valuable and alternative minimally invasive route to anterior and middle skull base lesions.


---
abstract: 'Deep Inelastic Scattering and Drell-Yan experiments have measured a light flavor asymmetry in the proton sea. The excess of $\bar{d}$ over $\bar{u}$ quarks can be understood in many models, but the ratio $\bar{d}(x)/\bar{u}(x)$ measured by Fermilab E866 has not been successfully described. Fermilab E-906 will probe the kinematic dependence of this ratio with better resolution and extend it to higher $x$. We have developed a hybrid model that includes both perturbative and non-perturbative contributions to the proton sea. A meson cloud formalism is used to represent the non-perturbative fluctuation of the proton into meson-baryon states. We include perturbative processes by using a statistical model that uses Fock states of quarks, antiquarks and gluons to represent the parton distributions of the ‘bare’ hadrons in the meson cloud. We compare our results to the E866 data.'
author:
- Mary Alberg
- Tyler Matossian
title: 'Perturbative and Non-Perturbative Origins of the Proton Sea'
---

[ address=[Department of Physics, Seattle University, Seattle, WA 98122, USA]{}, altaddress=[Department of Physics, University of Washington, Seattle, WA 98195, USA]{} ]{}

[ address=[Department of Physics, Seattle University, Seattle, WA 98122, USA]{} ,altaddress=[Department of Chemistry, University of Southern California, Los Angeles, CA 90089, USA]{}]{}

Introduction
============

Asymmetry in the proton sea has been well-established by experiment [@NMC; @NA51; @E866]. Many theoretical models for the asymmetry have been proposed, based on Pauli-blocking, a meson cloud, chiral perturbation theory, instantons, or statistical processes. For reviews, see Kumano [@Kumano98], and Peng and Garvey . In this paper we examine both perturbative and non-perturbative contributions to the proton sea, and show that either will lead to an asymmetry. Since both contributions are present, we propose a hybrid model, and compare to experiment.

Non-perturbative contribution: the Meson Cloud
==============================================

As first suggested by Thomas [@Thomas83], and later by Henley and Miller [@HM], the meson cloud of the proton provides a natural explanation of the asymmetry. The fluctuation of the proton ($uud$) into a neutron ($udd$) and a $\pi^+$ ($u\bar{d}$) creates an excess of $\bar{d}$ over $\bar{u}$. The meson cloud is represented in a Fock state expansion of the proton in terms of mesons and baryons $$\mid p\rangle = \sqrt{Z}\mid p\rangle_{\rm bare} +
 \sum_{MB}\int dy\;
d^2\vec{k}_\perp\; \phi_{BM}(y,k_\perp^2)
\mid  B(y,\vec{k}_\perp) M(1-y, - \vec{k}_\perp)\rangle .$$ The leading term in the expansion is the ‘bare’ proton, taken to consist of valence quarks alone or valence quarks plus a symmetric light sea. Z is a normalization constant, $\phi_{BM}(y,k_\perp^2) $ is the probability amplitude for finding a physical nucleon in a state consisting of a baryon $B$ with longitudinal momentum fraction $y$ and meson $M$ of momentum fraction $(1-y)$, each with squared transverse relative momentum $k_\perp^2$. The quark distribution functions $q(x)$ are given by $$q(x) = q_{\rm bare}(x) + \delta q(x) \; ,$$ with $q_{\rm bare}(x)$ the quark distribution function of the ‘bare’ proton, and $$\begin{aligned}
\delta q(x) = \sum_{MB}
\left(\int_x^1 f_{MB}(y) q_M \bigg(\frac{x}{y}\bigg)\frac{dy}{y} \;
+\int_x^1 f_{BM}(y) q_B\bigg(\frac{x}{y}\bigg)\frac{dy}{y}\right).\end{aligned}$$

The splitting functions $ f_{MB}(y)$ depend on coupling constants, form factors, and cutoffs. Models differ in the number of meson-baryon states included in the expansion, the parton distributions $q_M$ and $q_B$, form factors, cutoffs and coupling constants. The dominant terms in the expansion are $p \rightarrow n \pi^+$ and $p\rightarrow p \pi^0$. The first term causes a sea flavor asymmetry. The second term contributes equal numbers of $\bar{d}$ and $\bar{u}$, so it will affect the ratio $\bar{d}/\bar{u}$, but not the difference $(\bar{d} - \bar{u})$. We have shown [@AHM] that the inclusion of the $\omega$ isoscalar contribution improves agreement with experiment, and Huang [*et al.*]{} [@Huang] find that an improved description of the data at higher $x$ is obtained if the $\sigma$ is included as well. However, the theoretical ratio still remains above 1 for large $x$. A full meson cloud calculation should include all higher order terms in the expansion, $p \rightarrow \Delta \pi,  N \rho, \Delta \rho, p\, \omega, ...$ In Fig. \[MCM\] we show our calculation with only 2 cutoff values, determined by a fit to the experimental integrated asymmetry [@E866] of $0.118 \pm 0.012$ . We can improve agreement with experiment by further adjustment of cutoffs, but the ratio remains above 1 for larger values of $x$.

Perturbative contribution: statistical model
============================================

Zhang [*et al.*]{} [@ZZY] have used a simple statistical model which is based on a Fock state expansion of the proton in terms of its quark and gluon states: $$|p> =\sum_{ijk} c_{ijk}|\{uud\}\{ijk\}>,$$ with $i$ the number of $\bar{u}u$ pairs, $j$ the number of $\bar{d}d $ pairs and $k$ the number of gluons. The probability of finding a proton in the state $|\{uud\}\{ijk\}>$ is $\rho_{ijk}=|c_{ijk}|^2$. Taking into account the processes $q \leftrightarrow q\, g$, $g \leftrightarrow q\, \bar{q}$, and $g\leftrightarrow gg$, detailed balance between any two states leads to $$\frac{\rho_{ijk}}{\rho_{000}} = \frac{2}{i!(i+2)!j!(j+1)!}\prod_{n=0}^{k-1}\frac{3+2i+2j+n}{(3+2i+2j)(n+1)+\frac{n(n+1)}{2}},$$ and an integrated asymmetry of 0.123, in remarkable agreement with experiment. Parton distribution functions are determined by a Monte Carlo simulation of the distribution of momenta among the $n$ partons in each Fock state.

In Fig. \[stat\] we show our calculation of the sea asymmetry, using this model at the starting scale and our evolution to the experimental scale. As for the meson cloud model, the difference is reasonable, but the ratio is relatively constant for larger $x$, in disagreement with experiment.

A hybrid model
==============

We have proposed that since both perturbative and non-perturbative processes contribute to the proton sea, a hybrid model should be used to incorporate both mechanisms. We use the statistical model to represent the the ‘bare’ proton parton distribution in the meson cloud model, which introduces an additional sea asymmetry. Our preliminary results are shown in Fig \[hybrid\]. Only 2 cutoffs were used, determined by a fit to the integrated asymmetry. The difference is well-fit, but the ratio is too flat. Calculations with further variation of the meson-baryon cutoff values are in progress [@AMhybrid].

Summary
=======

Meson cloud, statistical and hybrid models describe the ratio $\bar{d}(x)$/$\bar{u}(x)$ for $x\leq 0.2$, but fail to agree with the experimental trend to return to symmetry, or even $\bar{u}$ dominance at larger $x$. Higher statistics results from E-906/SeaQuest [@SeaQuest] should determine the magnitude of the disagreement between current theory and experiment.

This work has been supported in part by the RUI program of the National Science Foundation, Grant No. 0855656.

[9]{}

P. Amaudruz [*et al.*]{}, NMC Collaboration, *Phys. Rev. Lett.* **66**, 2712-2715 (1991).

A. Baldit [*et al.*]{}, *Phys. Lett.* **332**, 244-250 (1994).

E866 Collaboration, E. A. Hawker [*et al.*]{}, *Phys. Rev. Lett.* **80**, 3715-3718 (1998); J. C. Peng [*et al.*]{}, *Phys. Rev. D* **58**, 092004 (1999); R. S. Towell [*et al.*]{}, *Phys. Rev. D* **64**, 052002 (2001).

S. Kumano, *Phys. Rep.* **303**, 183-257 (1998).

J. -C. Peng and G. T. Garvey, *Prog. Part. Nucl. Phys.* **47**, 203-243 (2001).

A. W. Thomas, *Phys. Lett. B* **126**, 97-11 (1983).

E. M. Henley and G. A. Miller, *Phys. Lett. B* **251**, 453-454 (1990).

M. Alberg, E. M. Henley and G. A. Miller, *Phys. Lett. B* **471**, 396-399 (2000).

F. Huang, R. -G. Xu and B. -Q. Ma, *Phys. Lett. B* **602**, 67-72 (2004).

Y. -J. Zhang, B. Zhang and B. -Q. Ma, *Phys. Lett. B* **523**, 260-264 (2001); Y. -J. Zhang, B. -S. Zou and L. -M. Yang, *Phys. Lett. B* **528**, 228-232 (2002); Y. -J. Zhang, W. -Z. Deng and B. -Q. Ma, *Phys. Rev. D* **65**, 114005 (2002).

M. Alberg and T. Matossian, in preparation.

P. E. Reimer, E-906/SeaQuest Collaboration, *J. Phys.: Conf. Ser.* **295**, 012011 (2011).


Hot on the heels of the brand’s debut collection, Kazuki Kuraishi and The North Face Urban Exploration have rejoined for a second Black Series drop. Once again, the pair have delivered a range of appreciably wearable gear, informed by technical details and The North Face’s heritage.

Kuraishi’s inspiration for the new collection was the concept of “Seamless” clothing: “‘Seamless’ means that you can wear it to work, and also on the weekend,” he said. “So there aren’t really any boundaries.” Indeed, the new collection centers around understated items in mostly navy, olive drab and black colors, offering a bevy of pockets, straps and drawstrings for maximum functionality.

One reinterpretation of The North Face’s 1990 Mountain Jacket delivers GORE-TEX lining for extra weather resistance, while another blends buffalo plaid with 550 RDS grey goose down filling and a WindWall-secured interior. Elsewhere, a padded jacket and pants set utilize Cordura and Pertex fabrics for durability and Primaloft for an insulating lining, with collarless styling and zippered ankles informed both by military liner jackets and contemporary street tastes. A fleece jacket, pullover and Delta pants underline the effortlessness of the range, reinterpreting a ’90s Sherpa Fleece jacket into a trio of wearable pieces, accented by pull tabs and extra pockets.

The collaboration will exclusive release at Asian stockists on October 22, and European outlets on October 24; check The North Face Black Series’ website for more info.

Most recently, The North Face rejoined Supreme for another seasonal collaboration.


198 Mich. App. 691 (1993)
499 N.W.2d 439
BECHTOL
v.
MAYES
Docket No. 134469.
Michigan Court of Appeals.
Submitted January 6, 1993, at Grand Rapids.
Decided March 15, 1993, at 9:55 A.M.
Sinas, Dramis, Brake, Boughton & McIntyre, P.C. (by George T. Sinas and Deborah G. Adams), for the plaintiff.
*692 Plunkett & Cooney, P.C. (by James S. O'Leary), for the defendant.
Before: SAWYER, P.J., and HOOD and JANSEN, JJ.
JANSEN, J.
Plaintiff appeals as of right from the Clinton Circuit Court's November 1, 1990, order granting defendant's motion for summary disposition. Presumably, the trial court granted the motion pursuant to MCR 2.116(C)(7), because it concluded that plaintiff's claim was time-barred by Ontario, Canada's two-year statute of limitations. We affirm the order of the trial court.
The facts of this case are not disputed. Plaintiff was injured in an automobile accident on September 18, 1987, while riding in defendant's 1986 Pontiac automobile. Plaintiff and defendant were vacationing together in Ontario, Canada, at the time of the accident. Defendant's vehicle went out of control, left the road, and struck a tree. As a result, plaintiff was thrown from the vehicle and sustained bodily injury.
At the time of the accident, plaintiff was a resident of Hawaii, and defendant resided in Michigan. In November 1989, plaintiff filed suit against defendant in the United States District Court for Hawaii; however, that case was dismissed in April 1990 for lack of jurisdiction over defendant. Plaintiff then filed the present action on May 15, 1990, approximately two years and eight months after the accident.
Defendant moved for summary disposition, claiming that plaintiff's cause of action was time-barred pursuant to Michigan's "borrowing statute," MCL 600.5861; MSA 27A.5861. Defendant asserted that Ontario's two-year statute of limitations for actions for damages for injury in motor vehicle accidents controlled and, therefore, plaintiff's *693 claim was not timely filed. Plaintiff argued that Michigan's three-year statute of limitations applied, MCL 600.5805(8); MSA 27A.5805(8), and that his claim was filed before the expiration of the three-year period.
In ruling on defendant's motion for summary disposition, the trial court determined that Michigan's borrowing statute controlled. The court concluded "that the Ontario statute of limitations should apply, and not having been brought within the two-year period from the accrual of the cause of action, the defendant's motion for summary disposition is granted." Plaintiff now appeals as of right, claiming that the trial court improperly granted defendant's motion for summary disposition. We disagree.
Michigan's borrowing statute, MCL 600.5861; MSA 27A.5861, provides in relevant part:
An action based upon a cause of action accruing without this state shall not be commenced after the expiration of the statute of limitations of either this state or the place without this state where the cause of action accrued, except that where the cause of action accrued in favor of a resident of this state the statute of limitations of this state shall apply. [Emphasis added.]
This provision has been interpreted to mean that the limitation period applicable to a claim brought in Michigan by a nonresident shall be either the statute of limitations of Michigan or the applicable limitation period of the jurisdiction where the cause of action accrued, whichever bars the claim. Makarow v Volkswagen of America, Inc, 157 Mich App 401, 406; 403 NW2d 563 (1987); Smith v Elliard, 110 Mich App 25, 30-33; 312 NW2d 161 (1981). "Stated another way, if the statute of limitations of either state bars plaintiff's *694 claim, the action should be dismissed." Makarow, p 406. The Legislature's use of the disjunctive "or" indicates that a cause of action should be barred if either of the two pertinent periods of limitation has expired. Smith, p 30.
We are of the opinion that the trial court properly granted defendant's motion for summary disposition based on the expiration of Ontario's two-year statute of limitations. We are cognizant of 1978 PA 542, which rewrote MCL 600.5861; MSA 27A.5861. However, we agree with Smith, supra, which noted that the Legislature "amended the statute not with the intent of substantially altering its purpose and effect, but rather to make special allowances for Michigan residents." Id., p 31. The amendment sought to alleviate the adverse effect on Michigan residents occasioned by the preamendment version of the statute. Id. The existing statute merely protects a Michigan plaintiff from the more restrictive limitation periods of other jurisdictions.
We are of the opinion that when a suit, such as the present one, based upon a cause of action accruing in another state or jurisdiction, is commenced in Michigan by a nonresident of the state, it shall be time-barred upon expiration of either the applicable Michigan limitation period or the applicable limitation period of the other state or jurisdiction. Smith, p 33. As stated in Smith:
The use of the words "either" and "or" combined with the specific exception for Michigan residents indicates that the Legislature did not intend to extend the benefit of longer Michigan limitation periods to out-of-state plaintiffs, who would be more inclined to bring claims within the state because of forum shopping considerations. [Smith, p 33.]
*695 We are also of the opinion that plaintiff's reliance on Olmstead v Anderson, 428 Mich 1; 400 NW2d 292 (1987), is misplaced. In Olmstead, the Supreme Court resolved the issue of which state's law applied in a wrongful death action that was filed in Michigan, but arose out of an accident occurring in Wisconsin. In the present case, Michigan's borrowing statute is specifically designed to resolve questions regarding the applicable statute of limitations in cases where an action accruing in another jurisdiction is commenced in Michigan by a nonresident, or where an action accruing in another jurisdiction is brought by a Michigan resident in a Michigan court. The trial court properly granted defendant's motion for summary disposition pursuant to MCR 2.116(C)(7).
Our resolution of the above issue is dispositive. Therefore, we need not discuss the other arguments raised by plaintiff, which we find to be without merit.
Affirmed.


Q:

The best way to install python 3 on Mac OS X

What is better way to install python3.3 on Mac OS X?

via homebrew
or via official installer in http://python.org/download/

A:

Most people working in the Mac world will recommend homebrew or macports, I think.
I personally prefer homebrew. It doesn't install anything other than what you need, and it allows you an easy uninstall option, too. (brew uninstall blah). It also allows you to keep up with updates more easily.
Plus, (and I'm not sure if this is true with macports), you get pip for free.

That being said, you may have to get your hands dirty in your bash_profile and possibly your /usr directory---if you want to type python at the command line, and get your installed version of Python, you'll probably have to change some symbolic links.
I HATE/am not very good at fooling around with system settings, but I had my complete Python installation up and running in less than an hour, and it has been running without any issues for quite a while.


Judge rejects California city’s religious war memorial

(RNS) A California federal judge has rejected a proposed religious memorial at a publicly owned baseball stadium as a violation of both federal and state laws.

On Thursday (Feb. 27), U.S. District Judge Stephen V. Wilson of California’s Central District ruled that a granite monument depicting a soldier kneeling in prayer before a cross lacked “a secular purpose” and has “the unconstitutional effect” of endorsing religion over nonreligion.

The decision came nine months after a lawsuit was filed by the American Humanist Association, a national organization of nonbelievers. The memorial was planned for city property in Lake Elsinore, Calif., a community of about 53,000 people in Southern California’s Riverside County.

The monument was designed in 2012 by a 22-member committee appointed by Lake Elsinore’s City Council and included its mayor, members of a local veterans group and a representative of the city’s minor league baseball team, the Storm.

When the design was presented to the City Council for review, some residents objected to the memorial’s religious nature. Members of the City Council spoke in support of it, specifically citing its Christian nature as suitable for public property.

Councilwoman Melissa Melendez, a veteran, cited America as “a Christian nation” and proposed the city go ahead with the memorial to test its legality.

“I think at some point you have to take a stand,” she said, according to court documents. Melendez is no longer on the council.

David Niose, director of AHA’s Appignani Humanist Legal Center, supported the judge’s decision, which is open to appeal.

“I hope that if members of the city council still want to honor veterans, they will move forward with a monument design that represents everyone who fought for our freedoms,” he said in a statement.


#
# Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License").  You may not use
# this file except in compliance with the License.  You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html

# Tests start with one of these keywords
#       Cipher Decrypt Derive Digest Encoding KDF MAC PBE
#       PrivPubKeyPair Sign Verify VerifyRecover
# and continue until a blank line.  Lines starting with a pound sign,
# like this prolog, are ignored.

# These tests exercise the case insensitive handling of object names.
# They are contrived

# Some name is case insensitive tests
Cipher = Aes-128-eCb
Key = 2B7E151628AED2A6ABF7158809CF4F3C
Plaintext = 6BC1BEE22E409F96E93D7E117393172A
Ciphertext = 3AD77BB40D7A3660A89ECAF32466EF97

Cipher = AeS-128-cbC
Key = 2B7E151628AED2A6ABF7158809CF4F3C
IV = 73BED6B8E3C1743B7116E69E22229516
Plaintext = F69F2445DF4F9B17AD2B417BE66C3710
Ciphertext = 3FF1CAA1681FAC09120ECA307586E1A7

Cipher = aES-128-CTR
Key = AE6852F8121067CC4BF7A5765577F39E
IV = 00000030000000000000000000000001
Operation = ENCRYPT
Plaintext = 53696E676C6520626C6F636B206D7367
Ciphertext = E4095D4FB7A7B3792D6175A3261311B8

Cipher = AES-128-GcM
Key = 00000000000000000000000000000000
IV = 000000000000000000000000
AAD =
Tag = ab6e47d42cec13bdf53a67b21257bddf
Plaintext = 00000000000000000000000000000000
Ciphertext = 0388dace60b6a392f328c2b971b2fe78

Digest = shA512
Input = "abc"
Output = ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f


Q:

how can I do manifest request with WKWebView

I was trying to use the new WebView in my app, but it seems that
 WKWebView can't work with NSURLCache, and Manifest request didn't work, no request was loaded and also nothing was stored.
Everything seems to work better using WKWebView instead of UIWebView except for using NSURLCache and Manifest, so I wonder if there are some ways to solve this matter.
P.S. I've tried Private API _setOfflineApplicationCacheIsEnabled: and it does work, but app using non-public API will be rejected by apple... I'm now out of ideas.

A:

Right now, WKWebView instances will ignore any of the default networking storages (NSURLCache, NSHTTPCookieStorage, NSCredentialStorage) and also the standard networking classes you can use to customize the network requests (NSURLProtocol, etc.).
So the cookies of the WKWebView instance are not stored in the standard Cookie storage of your App, and so NSURLSession/NSURLConnection which only uses the standard Cookie storage has no access to the cookies of WKWebView (and exactly this is probably the problem you have: the „login status“ is most likely stored in a cookie, but NSURLSession/NSURLConnection won’t see the cookie).
The same is the case for the cache, for the credentials etc. WKWebView has its own private storages and therefore does not play well with the standard Cocoa networking classes.
You also can’t customize the requests (add your own custom HTTP headers, modify existing headers, etc), use your own custom URL schemes etc, because also NSURLProtocol is not supported by WKWebView.
So right now WKWebView is pretty useless for many Apps, because it does not participate with the standard networking APIs of Cocoa.


Trustees will also offer daytime sessions Dec. 6 on the college’s main campus in Building 2. These sessions will be open to the public as well, though geared toward employees and students. Trustees want to learn what specific groups are looking for in a president, so they are offering sessions targeted to each campus group:

9–10:15 a.m.: Classified staff

10:30–11:45 a.m.: Exempt staff

12:30–1:45 p.m.: Students

2–3:15 p.m.: Faculty

4:30–6 p.m.: Evening students and part-time faculty

Trustees will use what they learn at the sessions to help create the presidential profile. Profiles often outline general duties and desired qualities or characteristics.

Looking for a Leader

Highline’s Board of Trustees is responsible for selecting and employing the college president. It is composed of community members from the college’s service area of South King County: Dan Altmayer and Bob Roegner, both of Federal Way; Debrena Jackson Gandy, Des Moines; Fred Mendoza, Normandy Park; and Sili Savusa, White Center.


#N canvas 125 102 789 555 10;
#X obj 115 265 dac~;
#X floatatom 164 265 5 0 0;
#X msg 29 150 disconnect;
#X text 208 267 connection status;
#X obj 458 48 loadbang;
#X msg 458 71 \; pd dsp 1;
#X msg 99 76 connect yves puredata 8000;
#X text 96 55 connect <host> <mountpoint> <port>;
#X text 38 18 constructor : mp3amp~ <graphic flag = 0 | 1>;
#X text 151 127 connect to SHOUTcast server;
#X msg 157 145 connect localhost listen.pls 8000;
#X msg 176 165 connect localhost content/scpromo.mp3 8000;
#X text 399 141 <-- play livestream;
#X text 479 165 <-- play file;
#X msg 121 99 connect localhost kas 8000;
#X text 97 44 connect to ICEcast server;
#X text 38 7 mp3amp~ : an icecast/shoucast client for PD;
#X text 226 186 Another way of connecting;
#X msg 226 205 connecturl http://localhost:8000/kas;
#X msg 31 374 standby 0;
#X text 114 380 for CPU load reasons \,;
#X text 115 392 ability to freeze decoding;
#X text 114 405 ( packets are read and ignored );
#X msg 31 399 standby 1;
#X msg 353 230 connecturl http://216.235.81.7:20690/play?session=panjabiradio:0&amp\;lid=-1-fra&amp\;SaneID=212.198.0.97-1030988754258
;
#X msg 352 280 connecturl http://213.197.144.44:8000/;
#X msg 352 334 connecturl http://24.207.26.60:8000/;
#X msg 354 307 connecturl http://64.113.197.158:8000/;
#X msg 352 361 connecturl http://liveice.agria.hu:8000/radioeger-hq
;
#X text 406 511 Authors : Yves Degoyon ( ydegoyon@free.fr );
#X obj 115 196 mp3amp~;
#X msg 354 384 connecturl http://www.deliciound.net:8000/;
#X connect 2 0 30 0;
#X connect 4 0 5 0;
#X connect 6 0 30 0;
#X connect 10 0 30 0;
#X connect 11 0 30 0;
#X connect 14 0 30 0;
#X connect 18 0 30 0;
#X connect 19 0 30 0;
#X connect 23 0 30 0;
#X connect 24 0 30 0;
#X connect 25 0 30 0;
#X connect 26 0 30 0;
#X connect 27 0 30 0;
#X connect 28 0 30 0;
#X connect 30 0 0 0;
#X connect 30 1 0 1;
#X connect 30 2 1 0;
#X connect 31 0 30 0;


Singlet exciton fission-sensitized infrared quantum dot solar cells.
We demonstrate an organic/inorganic hybrid photovoltaic device architecture that uses singlet exciton fission to permit the collection of two electrons per absorbed high-energy photon while simultaneously harvesting low-energy photons. In this solar cell, infrared photons are absorbed using lead sulfide (PbS) nanocrystals. Visible photons are absorbed in pentacene to create singlet excitons, which undergo rapid exciton fission to produce pairs of triplets. Crucially, we identify that these triplet excitons can be ionized at an organic/inorganic heterointerface. We report internal quantum efficiencies exceeding 50% and power conversion efficiencies approaching 1%. These findings suggest an alternative route to circumvent the Shockley-Queisser limit on the power conversion efficiency of single-junction solar cells.


“I initially had concerns about the timeliness of the order as i needed the parts to meet state inspection. After speaking with a very nice rep for the company they seemed to take personal care for the order upgraded the shipping and i received the items almost 5 days prior to the expected date. The customer service was fantastic!

UPDATE: Stars are going down. for all the hard work it's really a wash because they shipped two sets of rear brakes when one part ordered was labeled front on the website.”


Q:

How to run .sql file from a batch file?

I am running sql server 2008 express and i need to schedule some stored procedures to run nightly...so i have built out these .sql files which i would want to run from .bat file...i need to know the command to execute these .sql files one by one and store their results i guess...can anyone help me out?

A:

I answered this in this other question:
You should invoke the sqlcmd command-line tool from your batch file. Assuming your sql file is "backup.sql", the command line would be something like:
sqlcmd -E -S yoursqlinstance -i backup.sql

-E uses trusted connection, replace with -U and -P if you need to specify a SQL username and password. See also this article with examples.

A:

See the sqlcmd utility:
http://msdn.microsoft.com/en-us/library/ms165702.aspx
This allows you to run sql scripts from the command line


Medicaid Malpractice

In September, I wrote about a proposed waiver to Kentucky’s Medicaid program, which would foist work requirements on recipients (among other patronizing indignities like premium payments and “health incentives”) and would devastate Kentucky’s large newly insured population. Those work requirements directly conflicted with the federal Section 1115 waiver guidelines, which govern what’s allowable in Medicaid waiver requests.

This week, at a National Association of Medicaid Directors conference, Seema Verma, head of the federal Centers for Medicare and Medicaid Services, indicated that states could request waivers that would permit officials to impose work requirements as a condition of receiving Medicaid. Which means, according to Kentucky’s Medicaid Director Stephen Miller, the state’s waiver request will be approved “soon.”

Verma defended the changes this way: “Believing that community engagement requirements do not support the objectives of Medicaid is a tragic example of the soft bigotry of low expectations consistently espoused by the prior administration,” she said.

The “soft bigotry of low expectations”? This phrase brings two thoughts to mind.

First, what about the hard bigotry of requiring people to prove their worth to receive health care? That’s what Medicaid “community engagement requirements” (read: work and volunteer requirements) represent. These requirements would force the poor and low-income people who would be subject to these rules (and most of whom are already working) to prove that they are worthy of assistance—in this case, worthy of having good health.

Such requirements often include difficult reporting requirements like documenting each hour of work, and limited flexibility if family or other emergencies arise. They are based on the flawed assumption that people in poverty are lazy—a stereotype that has been disproven again and again.

My low expectations have nothing to do with poor people who receive Medicaid, and everything to do with Republicans who make false claims about how “hard work” will improve people’s lives, based on inaccurate ideas of who is poor and why.

I have low expectations that unemployed people who receive Medicaid will be able to find good work—not because they aren’t motivated to find work, but because the abysmal unemployment that plagues many areas in Kentucky and other states will be ignored by Republicans.

The consequences (and causes) of poverty don’t help either, like limited formal education, lack of employable skills, and lack of access to transportation. And since the Trump administration ended rules that would have made it easier for people on welfare to participate in job training, I also have low expectations that Republicans will facilitate participation in such programs.

Plus, even though most people on Medicaid work, many of those jobs are in retail, food service, and construction—sectors that often have variable and inconsistent payroll hours. It’s challenging to meet arduous reporting requirements, like the 20 hours of work per week requirement proposed in Kentucky, if one week you’re scheduled for 25 hours but the next you get 10. And Kentucky nonprofits have already indicated they don’t have the capacity to create new volunteer positions for anyone who wants one.

In short, I have low expectations that any policy that is based on false assumptions about the poor will in any way help them in escaping poverty. Instead, these policies, which reinforce stereotypes of the lazy poor person, are designed simply to push people off of assistance programs in order to limit welfare, decrease the size of government, and save money.

Remember that under past administrations, work requirements were at odds with Medicaid waiver guidelines. So what did the Trump Medicaid officials do? They simply rewrote the rules. “Seemingly, they did that so they could push through Kentucky’s waivers and other waivers after that,” says Dustin Pugel, research and policy associate at the Kentucky Center for Economic Policy.

In her conference remarks, Verma said, “The thought that a program designed for our most vulnerable citizens should be used as a vehicle to serve working-age, able-bodied adults does not make sense.” The problem with this statement is that poor working-age, able-bodied adults are some of our most vulnerable citizens. But in Kentucky, Medicaid expansion allowed this population to finally access health care. New Medicaid recipients began accessing preventative services, and were more likely to seek care for chronic conditions like diabetes. The state got healthier.

The Trump administration is putting those gains into jeopardy—as it will for any Medicaid expansion state that is granted a waiver. In Kentucky, “the changes will result in at least 95,000 fewer people covered, primarily because they can’t keep up with the requirements,” says Pugel. Medicaid provides health care for low-income people. The Trump administration twists this objective into nothing more than shaming the poor.


Effects of exercise on lipoprotein(a).
Lipoprotein(a) [Lp(a)] is a unique lipoprotein complex in the blood. At high levels (> 30 mg/dl), Lp(a) is considered an independent risk factor for cardiovascular diseases. Serum Lp(a) levels are largely genetically determined, remain relatively constant within a given individual, and do not appear to be altered by factors known to influence other lipoproteins (e.g. lipid-lowering drugs, dietary modification and change in body mass). Since regular exercise is associated with favourable changes in lipoproteins in the blood, recent attention has focused on whether serum Lp(a) levels are also influenced by physical activity. Population and cross-sectional studies consistently show a lack of association between serum Lp(a) levels and regular moderate physical activity. Moreover, exercise intervention studies extending from 12 weeks to 4 years indicate that serum Lp(a) levels do not change in response to moderate exercise training, despite improvements in fitness level and other lipoprotein levels in the blood. However, recent studies suggest the possibility that serum Lp(a) levels may increase in response to intense load-bearing exercise training, such as distance running or weight lifting, over several months to years. Cross-sectional studies have reported abnormally high serum Lp(a) levels in experienced distance runners and body builders who train for 2 to 3 hours each day. However, the possible confounding influence of racial or ethnic factors in these studies cannot be discounted. Recent intervention studies also suggest that 9 to 12 months of intense exercise training may elevate serum Lp(a) levels. However, these changes are generally modest (10 to 15%) and, in most individuals, serum Lp(a) levels remain within the recommended range. It is unclear whether increased serum Lp(a) levels after intense exercise training are of clinical relevance, and whether certain Lp(a) isoforms are more sensitive to the effects of exercise training. Since elevation of both low density lipoprotein cholesterol (LDL-C) and Lp(a) levels in the blood exerts a synergistic effect on cardiovascular disease risk, attention should focus on changing lifestyle factors to decrease LDL-C (e.g. dietary intervention) and increase high density lipoprotein cholesterol (e.g. exercise) levels in the blood.


// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------

#include "stdafx.h"

using namespace std;
using namespace Common;
using namespace ServiceModel;

INITIALIZE_SIZE_ESTIMATION(ApplicationAggregatedHealthState)

StringLiteral const TraceSource("ApplicationAggregatedHealthState");

ApplicationAggregatedHealthState::ApplicationAggregatedHealthState()
    : applicationName_()
    , aggregatedHealthState_(FABRIC_HEALTH_STATE_INVALID)
{
}

ApplicationAggregatedHealthState::ApplicationAggregatedHealthState(
    std::wstring const & applicationName,
    FABRIC_HEALTH_STATE aggregatedHealthState)
    : applicationName_(applicationName)
    , aggregatedHealthState_(aggregatedHealthState)
{
}

ApplicationAggregatedHealthState::~ApplicationAggregatedHealthState()
{
}

Common::ErrorCode ApplicationAggregatedHealthState::ToPublicApi(
    __in Common::ScopedHeap & heap,
    __out FABRIC_APPLICATION_HEALTH_STATE & publicApplicationAggregatedHealthState) const
{
    // Entity information
    publicApplicationAggregatedHealthState.ApplicationName = heap.AddString(applicationName_);

    // Health state
    publicApplicationAggregatedHealthState.AggregatedHealthState = aggregatedHealthState_;

    return ErrorCode::Success();
}

Common::ErrorCode ApplicationAggregatedHealthState::FromPublicApi(
    FABRIC_APPLICATION_HEALTH_STATE const & publicApplicationAggregatedHealthState)
{
    // Entity information
    auto hr = StringUtility::LpcwstrToWstring(publicApplicationAggregatedHealthState.ApplicationName, true /* acceptNull */, applicationName_);
    if (FAILED(hr))
    {
        Trace.WriteInfo(TraceSource, "Error parsing application name in FromPublicAPI: {0}", hr);
        return ErrorCode::FromHResult(hr);
    }

    // Health state
    aggregatedHealthState_ = publicApplicationAggregatedHealthState.AggregatedHealthState;

    return ErrorCode::Success();
}

void ApplicationAggregatedHealthState::WriteTo(__in Common::TextWriter& writer, Common::FormatOptions const &) const
{
    writer.Write("ApplicationAggregatedHealthState({0}: {1})", applicationName_, aggregatedHealthState_);
}

std::wstring ApplicationAggregatedHealthState::ToString() const
{
    return wformatString(*this);
}

std::wstring ApplicationAggregatedHealthState::CreateContinuationToken() const
{
    return applicationName_;
}


Zac Efron Wreaks Havoc on Seth Rogen in New ‘Neighbors’ Trailer

Zac Efron shows off his sexy muscles in the brand new trailer for Neighbors.

Warning, the trailer is a red band trailer so it contains MATURE content!

Seth Rogen, Zac Efron and Rose Byrne lead the cast of Neighbors, a comedy about a young couple suffering from arrested development who are forced to live next to a fraternity house after the birth of their newborn baby.

Lisa is the founder & executive producer of Shine On Media. A self-proclaimed lover of all things nerdy, you'll usually catch her at the movie theater, watching TV or napping.
Sometimes dubbed "Human iMDb" by associates.


Q:

Trying to load lazy relationships after EntityManager closes

I have three spring+JPA projects...a Base project A, a plugin project B and the actual project C. In C, both of the other projects are imported as A.jar and B.jar. Each project have their own ApplicationContext.xml. The leaf project i.e. C has its persistence.xml in custom location as mentioned in appcontext.xml in proeject-A (while start up project A looks for the appcontext.xml and persistence.xml in entire classpath and hence able to load xmls from B and C).
below is my configuration,
ApplicationContext.xml - in project A
<bean id="jpaQueryManager" class="com.motherframework.base.dao.jpa.JPAQueryManager">
    <property name="jpaTemplate" ref="jpaTemplate"/>
</bean>

<bean id="jpaTemplate" class="org.springframework.orm.jpa.JpaTemplate">
    <property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>

<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <!-- <property name="persistenceUnitManager" ref="pum"/>
    <property name="persistenceUnitName" value="SchoolWebsitePersistenceUnit"/> -->
    <property name="persistenceXmlLocation" value="classpath*:configuration/xml/persistence.xml"/>
    <!-- <property name="persistenceUnitPostProcessors">
      <list>
        <bean class="com.motherframework.base.dao.jpa.EntityScanner"/>
      </list>
    </property> -->
    <property name="dataSource"><ref bean="dataSource"/></property>
    <property name="jpaVendorAdapter">
      <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
        <property name="showSql" value="true"/>
        <property name="generateDdl" value="true"/>
        <property name="databasePlatform" value="org.hibernate.dialect.MySQLDialect"/>
      </bean>
    </property>
</bean>

And this is my persistence.xml
<persistence-unit name="SchoolWebsitePersistenceUnit" transaction-type="RESOURCE_LOCAL">

    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <class>com.motherframework.plugin.school.entity.Account</class>
    <class>com.motherframework.plugin.school.entity.Module</class>
    <class>com.motherframework.plugin.school.entity.NavigationMenu</class>
    <class>com.motherframework.plugin.school.entity.User</class>

    <properties>
        <property name="dialect" value="org.hibernate.dialect.SQLServerDialect"/>
        <property name="hibernate.connection.autocommit" value="true"/>
        <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
        <property name="hibernate.show_sql" value="true"/>
        <property name="hibernate.archive.autodetection" value="class, hbm"/>
    </properties>

</persistence-unit>

Now from my client class (a main method) i am fetching a Entity (e.g. User) using @transactional Service-DAO layer.
User u = ((TestService) ApplicationContext.getBean("testService")).fetchUser();
// FROM User u WHERE u.id=1  (Note: no INNER JOIN u.account)

print(u.getAccount())

It should give me NULL, but it is throwing exception,
DEBUG DefaultListableBeanFactory:241 - Returning cached instance of singleton bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'
 DEBUG AnnotationTransactionAttributeSource:106 - Adding transactional method 'fetchUser' with attribute: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly; ''
DEBUG DefaultListableBeanFactory:241 - Returning cached instance of singleton bean 'jpaTxManager'
DEBUG JpaTransactionManager:365 - Creating new transaction with name [com.motherframework.plugin.test.service.TestService.fetchUser]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly; ''
DEBUG JpaTransactionManager:323 - Opened new EntityManager [org.hibernate.ejb.EntityManagerImpl@d964af] for JPA transaction
DEBUG JpaTransactionManager:355 - Exposing JPA transaction as JDBC transaction [SimpleConnectionHandle: jdbc:mysql://localhost:3306/schooldb, UserName=scott@localhost, MySQL-AB JDBC Driver]
DEBUG TransactionSynchronizationManager:183 - Bound value [org.springframework.jdbc.datasource.ConnectionHolder@45378f] for key [org.apache.commons.dbcp.BasicDataSource@181b3d4] to thread [main]
DEBUG TransactionSynchronizationManager:183 - Bound value [org.springframework.orm.jpa.EntityManagerHolder@29d65b] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@b8176d] to thread [main]
DEBUG TransactionSynchronizationManager:258 - Initializing transaction synchronization
DEBUG TransactionInterceptor:381 - Getting transaction for [com.motherframework.plugin.test.service.TestService.fetchUser]
DEBUG TransactionSynchronizationManager:139 - Retrieved value [org.springframework.orm.jpa.EntityManagerHolder@29d65b] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@b8176d] bound to thread [main]
DEBUG TransactionSynchronizationManager:139 - Retrieved value [org.springframework.orm.jpa.EntityManagerHolder@29d65b] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@b8176d] bound to thread [main]
DEBUG TransactionSynchronizationManager:139 - Retrieved value [org.springframework.orm.jpa.EntityManagerHolder@29d65b] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@b8176d] bound to thread [main]
Hibernate: select user0_.id as id3_, user0_.accountId as accountId3_, user0_.email as email3_, user0_.loginId as loginId3_, user0_.name as name3_, user0_.password as password3_ from User user0_ where user0_.id=1
DEBUG TransactionInterceptor:410 - Completing transaction for [com.motherframework.plugin.test.service.TestService.fetchUser]
DEBUG JpaTransactionManager:925 - Triggering beforeCommit synchronization
DEBUG JpaTransactionManager:938 - Triggering beforeCompletion synchronization
 DEBUG JpaTransactionManager:752 - Initiating transaction commit
DEBUG JpaTransactionManager:462 - Committing JPA transaction on EntityManager [org.hibernate.ejb.EntityManagerImpl@d964af]
DEBUG JpaTransactionManager:951 - Triggering afterCommit synchronization
DEBUG JpaTransactionManager:967 - Triggering afterCompletion synchronization
DEBUG TransactionSynchronizationManager:311 - Clearing transaction synchronization
DEBUG TransactionSynchronizationManager:229 - Removed value [org.springframework.orm.jpa.EntityManagerHolder@29d65b] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@b8176d] from thread [main]
DEBUG TransactionSynchronizationManager:229 - Removed value [org.springframework.jdbc.datasource.ConnectionHolder@45378f] for key [org.apache.commons.dbcp.BasicDataSource@181b3d4] from thread [main]
DEBUG JpaTransactionManager:548 - Closing JPA EntityManager [org.hibernate.ejb.EntityManagerImpl@d964af] after transaction
DEBUG EntityManagerFactoryUtils:329 - Closing JPA EntityManager
856 [main] ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at            org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:132)
at     org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:174)
Exception in thread "main" org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:132)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:174)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
at      com.motherframework.plugin.school.entity.Account_$$_javassist_3.toString(Account_$$_javassist_3.java)
at java.lang.String.valueOf(Unknown Source)
at java.io.PrintStream.println(Unknown Source)
at

You can find that my entity manager is closed, so it will give an exception if it tries to fetch account on user....that i understand...but if the entitymanager is closed then why it is trying to do that? how to stop it? Is there any problem with configuration?
One more thing, is the entitymanagerfactory that i am using is proper for a public webapplication in production environment (and in tomcat 7)?
Thanks in advance..:)
Thanks Nizet..you mean my PersistenceContext is already closed as EntityManager is closed. But if entity is really out of PersistenceContext then why should it try to fetch its relation?..it is then a simple POJO, not @Entity anymore..right?                      For the second issue, yes I missed that
<tx:annotation-driven transaction-manager="jpaTxManager"/>
<bean id="jpaTxManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory"><ref bean="entityManagerFactory"/></property>
    <property name="dataSource"><ref bean="dataSource"/></property>
</bean>

Please check my Entitymanager type and transactionmanager...are they proper for Production?
This is my DS:
<bean id="dataSource" destroy-method="close"   class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="${motherframework.configuration.db.driver}" />
<property name="url" value="${motherframework.configuration.db.url}" />
<property name="username" value="${motherframework.configuration.db.username}" />
<property name="password" value="${motherframework.configuration.db.password}" />

But do u want to mean that, though persistence context is closed, the "user" object still holds some property which makes it different from normal POJO class?

A:

Your user has an association with an account. The account is lazy-loaded. This means that the first time you call any method on the account (user.getAccount().getName()) for example, Hibernate will load the state of the account from the database, and return the name of the account. And it can only do that while the entity manager is open, else, it doesn't have any connection to the database anymore.
It can't return null: returning null would mean: this user doesn't have an account, which is wrong.
If you want to access the account after the entity manager is closed, then you need to initialize the account before closing it. There's no way around that.
Regarding your config, no, it's not ready for production:

showSql should be false
hibernate.show_sql should be false
generateDdl should be false
hibernate.connection.autocommit should be false
you haven't shown your datasource definition, which is a very important part


“If you love me….”

Last Sunday’s reading is the continuation of Today’s Gospel. We read last Sunday of Judas, (not Iscariot), inquiring about this question, “Lord, how is it that you will reveal yourself to us, and not to the world?”Jesus must have seen doubts in the hearts of his disciples, thus he said today, “Those who love me will keep my word, and my Father will love them, and we will come to them and make our home with them. Whoever does not love me does not keep my words; and the word that you hear is not mine, but is from the Father who sent me.” “I have said these things to you while I am still with you. But the Advocate, the Holy Spirit, whom the Father will send in my name, will teach you everything, and remind you of all that I have said to you. Peace I leave with you; my peace I give to you. I do not give to you as the world gives. Do not let your hearts be troubled, and do not let them be afraid.”

In this Gospel reading from John, the writer deals with the issue of the church living in a hostile world without the visible presence of Christ. He tells his community through these words attributed to Jesus that obedience and love are the conditions ruling the life of the church and therefore guaranteeing the sense of Christ’s living presence as God’s representative. John then goes on to make an additional promise that the Holy Spirit will teach them and bring to their remembrance all that Christ said to them.

Understanding the Love of God and obeying the commandments are difficult to attain without the help of the Holy Spirit who advocates the Love of God in Jesus Christ. Often times, we question the seeming absence of the Holy Spirit to interpret and give us signs on the meaning of all the things that are happening around us and in our lives. There’s so much hatred in the world. It’s easier to hate than to love. The worst result is when we give up on God and stop believing. When we stop believing, we shut our doors when God comes to us knocking and wanting to make a home with us.

On one Sunday morning, at 8 am, the mother started to worry why his son is not getting out of bed for Church. The mother knocked at his son’s room and said, “It’s already 8 in the morning, aren’t you going to Church today?” The door opened with the son still on his pajama. The son said to his mother, “I will tell you two reasons why I am not going to that Church: First, they don’t love me; Second, I don’t like them either.”

Then the mom blurted out and said, “Son, let me tell you two reasons why you are going to Church today: First, you are 43 years old, and second, you are the Priest.”

Sometimes we look at our coming to Church as an obligation or just a perfunctory work because our parents dragged us here or it may be that we don’t want to disappoint the priest or our friend thus we come anyway . Many times we make our reasons to excuse ourselves from Sunday Services because somehow we were successful in making excuses in our work place. These things continue to happen until we realized that we have shut our doors when God is trying to come and make a home with us. To love God is not to please those who are around you, but God alone. Your relationship with God depends on your pure intention to serve Him in any ways without complaining. (To love God is not like the puppy love you had in high school where you got crush on someone else and suddenly you just dumped her/him) Loving God is not asking the impossible to happen. I recall a favorite Tagalog ballad where a lady, after hearing the supplications of her suitor, tells him:

“Kung talagang tunay na ako’y mahal mo,

Magtanim ka muna ng niyog sa bato;

ngayon din bubunga, ngayon din bubuko,

ngayon din kukuha ng igagata ko.”

(If you really, really love me, plant a coconut tree. Right now it will bear fruit, right now it will bring me coconut fruit, right now, it will give me coconut milk to cook my food.)

We can plant coconut seedling now, but how in the world can we expect it to grow instantly and bear fruits and give us coconut milk right away? Even in this age of instant coffee and instant marriage, we cannot have instant coconut milk according to the prescription of the ballad.

Love of God is unconditional, it is revealed to us through the Holy Spirit. The love of Christ will be revealed to us only with the help of the Holy Spirit. This revelation will freely come to us when we open the doors of our hearts to welcome God and make a home with us.

One of the wonderful things I learned at the Clergy Reflection, Education, Discernment Opportunity (CREDO) in Texas was about the forgiveness of one’s self. Loving God is to be able to forgive others as well as forgive yourself. Being in Texas in the past two weeks for a 5 days clergy retreat, is a life giving opportunity and I thank you all for allowing me to participate. It opened my heart and mind on ways how to welcome God to dwell in me. Just being away for a week from life’s constant battle gave me the chance to unwind my burdens and renew my strength from various inspirations. Some of the plans and goals I came up from this retreat are of Financial Freedom, Work Load Management and Health Holistic plan. Financial burden, unmanaged work load and unhealthy life, to me, are the daily source of my stress in life. These three are not often talked about in public and even at home, and often times will result to a broken relationship if it is not dealt with Love. They are the culprits in the elevation of our blood pressure that may result to health complications and maybe early demise. These three, if not addressed earlier, will destroy the plans I have for my family, my community and myself. So i made resolved with good intentionality to address them and I would like to share them with you for your own reflections:

On Finance, some of the things I regularly buy outside such as coffee, tea, pastries and the expensive meals will have to be modified. I will start to cook at home (or ask my mom in-law to cook lunch for us). Start saving for the rainy day. You will never know what the future has in store. It’s good to be prepared. I will invite my family to plan with me for our monthly budget.

On Workload, I have to learn to say NO on requests when I know that I have other things to accomplish. Be able to manage calendars and reminders and being mindful of my personal and family needs. I will invite my family to plan with me for a quality family time and laughter.

On Health, I will set a walking sessions within the week for at least 1 to 2 hours thrice a week, participate in our Saturday HCSM Walkers at Lake Merced and a Golf twice a month. Regular deep breathing and relaxation sessions in between work, and oh! I would have to let go of my favorite cinnamon rolls, soda and ice cream. I will invite my family to go to grocery with me and choose healthy foods to cook. I will make sure I have a good sleep and be able to smile in the morning as i begin another blessed day.

Above all these, I have to learn to forgive myself. Refrain from blaming myself when I fail. Accept myself. Learn to say NO! Give myself freedom to change my mind. Become my own permission giver (It’s OK to relax, rest. Set a realistic limits. Under schedule myself.) Become my own best friend (Protect myself as I would my love ones.) Separate my past from my present (Future doesn’t have to be like the past. Control the present) Expect the best. Try not to anticipate the worst. And treat myself the way I want to be treated.

These things may not be made possible without the intervention of the Holy Spirit, our advocate, who constantly reminds me to do the right thing and stay focused. If God is love and I am His own and that my body is God’s temple, I must welcome God to dwell in me with all my heart, mind and spirit by taking care of myself.

How about you? Would you set a realistic goal for yourself now and be consistent with good intentionality? Should you rather choose to be at peace with God and yourself? Or dwell in the house of misery and despair?

Just as the Gospel today ended, I encourage you all to rise and let us be on our way to spread the love of God among others. Amen.

Shelter and Homeless feeding

EVERY 3RD SUNDAY OF THE MONTH
We need volunteer cooks and servers for Safe Harbor Shelter. Make it your thanksgiving offering for all the blessing received; For it is also in giving that we receive.
We welcome donations for food purchases.
Call Rev. Rebecca Goldberg at 650-291-5289. Or call the Church phone at 650-991-1560, or simpy click the donation link.
EVERY FRIDAY AT 6 PM, Peninsula Food Runners pick up at Genentech and drop off at Safe Harbor Shelter in North Access Road SSF. (Need volunteers. Please see Fr. Leonard)

Health and Wellness Center

Our Health and Wellness Clinic opens on Sundays at 1 PM to 3 PM, and Mondays at 7:30 am to 10 AM.
We provide the following:
1. Free Blood Pressure, Heart rate, Lung and Weight assessments and monitoring.
2. We refer those with no insurance , unemployed and low income individuals to health professionals and health partners for follow up and assistance.
3. We provide Free health education, nutrition and physical exercises. Every Last Sunday of the month from 1 PM to 2 PM, Medical Doctors and other health educators are invited for a forum on specific issues.
4. Arthritis exercises are offered every Monday at 8:30 AM to 9 AM with Dr. Ronald Mitchell, Chiropractor.
5. We are partners with ALLICE Alliance against Domestic Violence.
6. We provide spiritual assistance to complete our goal for Body, Mind and Spirit.
Contact us at 650-991-1560


The invention relates to a discharge lamp equipped with a gastight discharge vessel containing a gas and equipped with electrodes, at least one of the electrodes comprising
a first part that is suitable for connection to a pole of a supply voltage source and that during operation is capacitively coupled to the discharge in the discharge lamp,
a second part formed out of a first dielectric material, said second part being connected to the first part and during operation of the discharge lamp being in contact with the discharge.
Such a discharge lamp is known from U.S. Pat. No. 2,624,858. In the known discharge lamp the first part of both electrodes is formed out of metal or deposited graphite. The second part of the electrodes is relatively thick and the dielectric constant ∈ of first dielectric material is higher than 100. During operation of the lamp the operating voltage that is applied to the first part of the first electrode and the first part of a second electrode is coupled capacitively to the discharge by means of the second part of the first electrode and the second part of the second electrode. Both electrodes form capacitive impedances during the operation of the lamp. These capacitive impedances render the current/voltage characteristic of the discharge lamp positive so a separate external ballast element can be dispensed with. Since the dielectric constant ∈ of first dielectric material is higher than 100, the capacitive impedances of both electrodes are relatively low, so that the lamp can be operated at relatively low frequencies (e.g. less than 500 KHz). An important disadvantage of the known discharge lamp, however, is that virtually each material that has a high dielectric constant also has a relatively high electron affinity. Because of this high electron affinity electrons adhere relatively strongly to the surface of the second parts of the electrodes. This results in a relatively high lamp voltage, a corresponding low efficiency of the lamp and also to blackening of the wall of the discharge vessel in the vicinity of the electrodes.
The invention aims to provide a discharge lamp that during operation is capacitively coupled to a supply voltage source and can be operated by means of a low frequency (less than 500 KHz) supply voltage, with a relatively high efficiency and a relatively low amount of blackening of the discharge vessel.
In accordance with the invention the electron affinity "khgr" of the first dielectric material is negative.
It has been found that the negative electron affinity of the first dielectric material causes the efficiency of a discharge lamp to be relatively high. In practice the dielectric constant of the first dielectric material is very often relatively low, e.g. lower than 10. In order to keep the capacitive impedances of the electrodes acceptably low, it is often necessary to choose the thickness of the dielectric material in the direction of the lamp current relatively small, i.e. smaller than 100 xcexcm, whereas the best results have been obtained thicknesses smaller than 1 xcexcm.
Very good results have been obtained for discharge lamps in which the first dielectric material is chosen from the group formed by diamond, AlN, AlGaN and BN.
Since in practice the second part of the electrode is relatively thin it is often desirable to realize electrical insulation of the first electrode part from the discharge making use of a third part consisting of a second dielectric material having a dielectric constant ∈ higher than 100 and preferably higher than 1000, the third part of the electrode being situated between and in contact with both the first part and the second part of the electrode.
Preferably the first part of an electrode in a discharge lamp according to the invention has flat metallic layer while the second part comprises a sheet of the first dielectric material parallel to the flat metallic layer. In case the electrode comprises a third part, this third part can conveniently be realized in case it comprises a sheet of the second dielectric material parallel to the first and the second part of the electrode.
It has been found in practice that it is desirable for the electrode to comprise a carrier for rendering mechanical strength to the electrode construction, the carrier being in parallel with the second electrode part. The carrier can be a separate part of the electrode but it is also possible that the carrier is formed by the first electrode part.
In case the electrode comprises a third part, the carrier can also be formed by this third part.


Q:

Getting SettingWithCopyWarning warning even after using .loc in pandas

df_masked.loc[:, col] = df_masked.groupby([df_masked.index.month, df_masked.index.day])[col].\
            transform(lambda y: y.fillna(y.median()))

Even after using a .loc, I get the foll. error, how do I fix it?
Anaconda\lib\site-packages\pandas\core\indexing.py:476: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
  self.obj[item] = s

A:

You could get this UserWarning if df_masked is a sub-DataFrame of some other DataFrame.
In particular, if data had been copied from the original DataFrame to df_masked then, Pandas emits the UserWarning to alert you that modifying df_masked will not affect the original DataFrame.
If you do not intend to modify the original DataFrame, then you are free to ignore the UserWarning.
There are ways to shut off the UserWarning on a per-statement basis. In particular, you could use df_masked.is_copy = False.
If you run into this UserWarning a lot, then instead of silencing the UserWarnings one-by-one, I think it is better to leave them be as you are developing your code. Be aware of what the UserWarning means, and if the modifying-the-child-does-not-affect-the-parent issue does not affect you, then ignore it. When your code is ready for production, or if you are experienced enough to not need the warnings, shut them off entirely with
pd.options.mode.chained_assignment = None

near the top of your code.

Here is a simple example which demonstrate the problem and (a) solution:
import pandas as pd

df = pd.DataFrame({'swallow':['African','European'], 'cheese':['gouda', 'cheddar']})
df_masked = df.iloc[1:]
df_masked.is_copy = False   # comment-out this line to see the UserWarning
df_masked.loc[:, 'swallow'] = 'forest'

The reason why the UserWarning exists is to help alert new users to the fact that
chained-indexing such as
df.iloc[1:].loc[:, 'swallow'] = 'forest'

will not affect df when the result of the first indexer (e.g. df.iloc[1:])
returns a copy.


Retailers face omnichannel gap

18 March 2014

NEW YORK/LONDON: Consumers increasingly expect an omnichannel shopping experience but retailers are lagging far behind as they struggle with technological and organisational challenges, according to a new report.

Some 71% of shoppers expected to view in-store inventory online, while 50% expected to buy online and pick up their purchase in a physical store. But only 36% of the retail decision makers surveyed said that their companies were able to provide customers with in-store pickup of online purchases, online visibility of cross-channel inventory and store-based fulfilment of online orders.

And while retailers were aware that omnichannel maturity would act as an important brand differentiator – 46% already had a dedicated omnichannel team – almost all (94%) indicated that they faced significant barriers in their efforts to achieve that.

Technology was an inhibiting factor. Some 40% of retailers were having trouble integrating back-office technology across all channels. And the survey highlighted a key area for improvement, which was the ability to have a consolidated, accurate view of real-time inventory across stores and distribution centres.

In addition to the need to keep track of stock, companies needed to keep track of customers as retailers admitted difficulties in sharing customer data and analytics between channels, countries and locations.

Other internal issues that required action included the existence of conflicting priorities, organisational silos and a lack of in-store associate training.

"The research indicates that many retailers are operating with a 'false state of omnichannel comfort'," said Brian Walker, chief strategy officer at hybris.

"The reality is that the customer is way ahead of many retailers in defining what competitive shopping patterns are, not only across channels, but within each channel."

In-store pickup of purchases by consumers emerged as a key capability that brick-and-mortar retailers must be able to provide their customers if they expect to compete effectively against online-only retailers.

Nearly half (47%) of the consumer surveyed said they used in-store-pickup options to avoid online shipping costs, 25% chose it to be able to collect their orders on the day of purchase while 10% simply found it more convenient to collect items from a store than have them sent to their home.


Coronary revascularization in patients with renal insufficiency: restenosis rate and cardiovascular outcomes.
Several interventional trials have shown a lower success rate for coronary angioplasty and lower long-term event-free survival in patients with renal insufficiency, and data are conflicting about restenosis after coronary angioplasty. This study included 4,131 consecutive patients with coronary artery disease treated with coronary angioplasty (23%) or stenting (77%). Renal insufficiency is defined as a creatinine clearance (CrCl) less than 60 mL/min (<1.0 mL/s). Of 4,131 patients, 1,412 patients (34.2%) had renal insufficiency and 2,719 patients (65.8%) did not have renal insufficiency. The primary end point of the study is clinical restenosis, defined as the need for target-lesion revascularization. There was no difference in clinical restenosis rates between groups after 1 year (18.8% versus 18.4%; P = 0.75). The incidence of angiographic restenosis at the 6-month angiography was 32.7% in the group with renal insufficiency and 29.7% in the group without renal insufficiency ( P = 0.10). The composite end point of death and myocardial infarction was observed more frequently in patients with than without renal insufficiency (8.3% versus 3.2%; P < 0.001). Renal insufficiency was not independently associated with clinical restenosis (for 10-mL/min [0.167-mL/s]) decrease in CrCl, adjusted odds ratio, 1.03; 95% confidence interval [CI], 0.98 to 1.08; P = 0.198), but remained as an independent predictor for death or myocardial infarction (for 10-mL/min [0.167-mL/s] decrease in CrCl, hazard ratio, 1.29; 95% CI, 1.18 to 1.42; P < 0.001). Patients with renal insufficiency do not show an increased incidence of restenosis after coronary revascularization.


Best
of all, the Memory Point® brushes are perfect to use with water
colours, gouache and acrylic media and are well suited to use on canvas,
paper, glass and silk.Handmade in Germany, you will be very impressed with the quality, versatility and value that these unique brushes provide.

Click here for a solid review of the Memory Point® brushes by Leisure Painter magazine.

Discounts for bulk purchases of each brush size for schools, art groups and the like: - Save 5% for 6-11 units of the same brush size - Save 10% for 12+ units of the same brush size


1. Field of the Invention
The present invention relates to databases. More specifically, the present invention relates to a method and an apparatus for protecting private information within a database.
2. Related Art
Many organizations collect personal private information from individuals for various reasons, and store the information in a database. If this information should fall into the wrong hands, the information could be used to the detriment of the individuals.
For example, many organizations use an individual's Social Security Number (SSN) as an identifier for an individual, and also as a primary key in their database. This can be a problem because SSNs are one of the primary pieces of information used for identity theft. These SSNs, along with other personal private information, aggregated in a database make a compelling target for hackers and thieves. Consequently, many localities have passed laws forbidding organizations from using SSNs or not allowing them to store SSNs in plain text.
In many cases the SSN is not even useful as information to the organizations. The organizations simply use the SSN as a unique key to look up information associated with an individual in a database. SSNs are convenient to use for this purpose because they are guaranteed to be unique and most individuals have their SSN committed to memory.
One way to protect private information is to encrypt the private information before it is stored in a database. In this way, even if someone illegally accesses the encrypted data, they will not be able to use it. However, if an application is able to access encrypted information within a database, the keys for encrypting and decrypting the data must be located somewhere on or near the server. Otherwise, the encrypted data would be useless to the application. Because the keys are located so that they can be accessed directly or indirectly by the application, the database administrator and possibly the programmers also have access to the keys, and consequently, have access to the encrypted data.
Hence, what is needed is a method and an apparatus for securing private information in a database without the problems listed above.


Auditory and auditory-tactile processing in congenitally blind humans.
Studying blind humans is an excellent opportunity to investigate how experience might shape auditory processing. In everyday life, blind humans rely more on auditory information than sighted humans to recognize people, localize events, or process language. A growing number of studies have provided evidence that the increased use of the auditory system results in compensatory behavior in the blind. Blind humans perform better in perceptual auditory tasks, like pitch or duration discrimination, and in auditory language and memory tasks. Neural plasticity at different levels of the auditory processing stream has been linked to these behavioral benefits. In everyday life, many events stimulate more than one sensory system. Multisensory research has cumulated evidence that the integration of information across modalities facilitates perception and action control. Neurophysiological correlates of multisensory interactions have been described for various subcortical and cortical areas. There is evidence that vision plays a pivotal role in setting up multisensory functions during ontogeny. This article summarizes evidence for a reorganization of multisensory brain areas and reduced crossmodal interactions on the behavioral level following congenital visual deprivation.


Q:

dependent: :destroy - How does this work?

In an example where there is an association of Owner that is as fellows:
class Owner < ActiveRecord::Base
  has_many :buildings, dependent: :destroy
end

The other side of relationship:
class Building < ActiveRecord::Base
  belongs_to :owner
end

If I were to delete an Owner, would it destroy the associated Building(s) as well? How can I specify a dependent relationship so that the owner and primary key is no longer associated with any Building(s) if I delete an Owner?

A:

You probably want :nullify.  See the Rails docs for has_many.
:dependent controls what happens to the associated objects when their owner is destroyed. Note that these are implemented as callbacks, and Rails executes callbacks in order. Therefore, other similar callbacks may affect the :dependent behavior, and the :dependent behavior may affect other callbacks.
:destroy causes all the associated objects to also be destroyed.
:delete_all causes all the associated objects to be deleted directly from the database (so callbacks will not be executed).
:nullify causes the foreign keys to be set to NULL. Callbacks are not executed.
:restrict_with_exception causes an exception to be raised if there are any associated records.
:restrict_with_error causes an error to be added to the owner if there are any associated objects.
If using with the :through option, the association on the join model must be a belongs_to, and the records which get deleted are the join records, rather than the associated records.


Hm, I use the vanilla kernel rather than the gentoo one (not sure about
all the patches they apply). I'll try the official kernel and see if it
makes any difference.. thanks
James
On 5/3/2004 4:29 PM, Mario Benito Ríos wrote:
> I'm at 2.6.3-gentoo-r1 SMP kernel and all is correct: empty servers
> under 1% CPU. 32 bots server, like a full 32 players server, around
> 30-40% of one CPU. 100% CPU loading maps in 5-6 seconds.
>> Gentoo system built from stage 1.
>> At 01:12 04/05/2004, you wrote:
>>> I've read all the information I can find about the problems with the
>> BF server and SMP kernels, but I haven't found if anyone has a
>> workaround for this yet.
>>>> I have a server running on an SMP box with kernel 2.6.6rc2 (running
>> gentoo), and it uses about 20% cpu when there is no-one connected.
>> Also, during map changes, it spikes to 100% cpu for about a minute or
>> so, and then proceeds with the loading. Before we went SMP, the load
>> was much, much quicker than this and did not spike to 100%.
>>>> Has anyone got any suggestions for this? Perhaps a kernel compile
>> option which could be enabled/disabled? Based on various forum posts,
>> I tried disabling APM, but that made no difference. Obviously I can't
>> disable SMP, because then we won't have support for the hardware..
>>>> Cheers,
>>>> James
>>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3198 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://icculus.org/pipermail/bf1942/attachments/20040503/1d264347/attachment.bin>


use_frameworks!
platform :osx, '10.10'

target 'IGListKitExamples' do
  pod 'IGListKit', :path => '../../IGListKit.podspec'
end


Evaluation of a Home-Based Pulmonary Rehabilitation Program for Older Females Suffering from Bronchial Asthma.
Asthma is a disease that affects people of all ages worldwide. The aim of the study was to evaluate the effectiveness of a home-based pulmonary rehabilitation program, with one supervised session a week, for improvement of respiratory function, inspiratory muscle strength and physical fitness in older women suffering from asthma. The study involved 10 female patients (mean age 70.8) with diagnosed bronchial asthma in the slight and moderate stage. Before the program started, all the patients were in a stable phase of the disease. All the patients carried out a respiratory function test based on measurement of the flow/volume loop assessing FVC, FEV1, FEV1/FVC, PEF, MEF50 and MEF25/75. An inspiratory muscle strength test (PImax) was also performed. Agility was assessed by the Fullerton Functional Fitness test, which consists of sitting down on/standing up from a chair, bicep curls with weights, upper and lower body flexibility trials, a complex coordination trial and a six minute walk test (6MWT) to assess the patients' exercise capacity. To evaluate health-related quality of life, the Saint George Respiratory Questionnaire (SGRQ) was completed, and the Hospital Anxiety and Depression Scale was used to diagnose any signs of anxiety or depression. The main part of the program consisted of eight two-minute whole body exercises separated by one-minute intervals. Statistical significance was determined by the Wilcoxon test. Almost all the respiratory function parameters, PImax, exercise tolerance, lower body flexibility trial and 6MWT improved significantly after following the program for eight weeks. Among the parameters measured by the questionnaires and scales, only the component of the SGRQ related to symptoms of the disease has significantly improved. The home-based pulmonary rehabilitation program significantly improved all respiratory function parameters. The patients' PImax scores also significantly improved. Among the physical fitness parameters, the 6MWT and lower body flexibility trials significantly improved. The home-based pulmonary rehabilitation program can be used effectively in patients suffering from bronchial asthma.


Host-microbiota interactions in Caenorhabditis elegans and their significance.
As a useful genetic model, C. elegans can facilitate investigation of the genetic underpinnings of host-microbiota interactions. However, decades of feeding it with Escherichia coli left a gap in our understanding of its interactions with microbes, hindering such use. This is changing, with recent studies characterizing the gut microbiota of worms in their natural habitats, comparing them to those in their environment, and evaluating the significance of gut and environmental commensals. This work defined a shared core gut microbiota significantly influenced by host genetics, and unraveled bacterial contributions to life history traits. Establishing C. elegans as a new model of host-microbiota interactions will benefit from existing knowledge about bacterial modulation of worm physiology, and could draw mechanistic insights from characterized interactions between parasitic nematodes and their symbionts.


The Wednesday Recital

Paramananda Roy

Paramananda Roy

Born on 15th November 1991, Paramananda Roy was initiated into music by his father and eminent flautist, Pandit Gopal Roy, descendant of Pandit Pannalal Ghosh gharana, popularly known as Panna babu's gharana; from whom he received extensive taleem for over 19 years and continues to be guided by him. He has learnt a specific fingering technique which was first applied by Pandit Gour Goswami who learnt it from legendary sarodiya and multi-instrumentalist Baba Alauddin Khan.
Academically bright Paramananda has topped the instrumental department of Rabindra Bharati University in both B.A. and M.A. He has also received the Nikhil Banerjee and Nirod Boron memorial award presented by Rabindra Bharati University.
He is a direct 'B-High' grade artiste of All India Radio since 2013 and has performed extensively in Kolkata and outside West Bengal. A few of these performances include the Inter University Youth Festival, where he represented Rabindra Bharati University's department of instrumental music, once at Kalyani University in 2013 and the second time at Kurukshetra University in 2014. He has also performed at the Flute Lover's Association, 2014 which is an organisation established by Late Pandit Debaprasad Bandopadhyay .
He joined ITC SRA as a Scholar in March 2016, where he is training under Guru Pandit Partha Chatterjee.


first of all, if you have an intense love of rosemary, i strongly suggest you stop reading right now. just click the X and close out of this page. then run to your local produce department. once you get there, grab armloads of rosemary. throw it up in the air like you just don’t care. squeeze it between your fingers so the rosemary oil gets on your skin and then smell your fingers. that way holly and i can easily identify you. you, with the smell. sniffing your fingers in the supermarket. you ought to be ashamed of yourself.

so yeah, go ahead and buy all the rosemary in the world, we don’t even care. wanna know why? IT’S IN EVERYTHING ANYWAY. we can’t get away from it.

let me tell you a story. the story goes like this:

in my continuing effort to eat less grains in order to keep my blood-sugar steady, which therefore prevents me from getting hangry (i.e. so hungry you’re actually angry) while simultaneously helping me ward off type 2 diabetes, an affliction of the jews (the hiatal hernia i actually already have – OY. mental note: learn how to spell “hiatal” ), not to be confused with the bread of affliction. HEY OH! passover joke! (passover starts soon, biznatches! overeat pizza now so you don’t miss it. wait don’t. wait…nothing. forget i even said that.)

…so yes, in my continuing efforts to limit grains (SERIOUSLY I DON’T EVEN EAT PIZZA THAT OFTEN SHUT UP), i often purchase mary’s gone crackers, which, despite their odd name, are actually pretty good. they’re gluten-free and made of a variety of seeds, which, i don’t actually understand? regardless, they’re actually quite delicious. i usually buy the “original” crackers. they have served me well despite the fact that i continue to be confused about how they’re made.

at some point over the past two years, i decided to, you know, spice things up and picked up a box of the “herb” variety. BIG MISTAKE. listing “herbs” on an organic product (these crackers are organic like everything else we eat–yes, as i said years ago, we have truly become one of those households with nothing to eat, where you have to make everything. like a hippie. or a colonial person.) is not only vague but it’s also dangerous for those of us that don’t like rosemary. i feel like if an organic food lists “herbs” in its ingredient list, it probably contains enough rosemary to kill or at least choke a small to medium-sized mammal. oh and forget about salad bars. (YEAH WHOLE FOODS, I’M LOOKIN AT YOU. PEOPLE THAT DON’T LIKE ROSEMARY EXIST.) i’ll get to that in a minute.

anyway, as you can probably guess, the predominant flavor in these crackers was rosemary. it was like munching on a pine tree. ON A PINE. TREE. mary, (as in: of Mary’s Gone Crackers) would it be so hard to list ROSEMARY as an ingredient in your herb crackers? WOULD IT BE. SO HARD. no! i don’t think it would be!

i was recently reminded of this debacle yesterday when i delightedly opened a box of mary’s gone ALL NEW super seed crackers. which, hello, i was totally excited for! i mean, pumpkin seeds AND sunflower seeds AND poppy seeds in ADDITION to all the OTHER SEEDS. it was too much.

i bit into a cracker and at first i thought: oh my gosh. it’s almost like: an everything bagel! but then: NO. no no no NO. the familiar and unwelcome flavor of rosemary–of pine and soil itself–bloomed in my mouth. i shook the crackers at the sky. WHYYYYYYY. i shouted. WHYYYYYY.

no, i didn’t do that. who even shakes anything at the sky anymore? only people in biblical movies. i’d be more likely to throw the damn box across the room but i didn’t want to clean it up. anyway, it made me want to rant. so here i am.

why my intense dislike for rosemary? (oh hooo, this is going to get me in major trouble with some of you but whatever. it was bound to come out sooner or later.) first of all, if you break it up and toss it in things before you cook them–say, red-skinned potatoes, for example–it dries out and becomes these pokey little needles that can not only stab you in the throat, but choke you if they flip sideways in your esophagus! (go figure, i can spell esophagus.)

this very thing happened to me years ago. luckily, i was able to push the offending needle or needles down with a gulp of water or a slice of bread but it was touch and go there for a minute. it was touch and go. and it probably irritated my hiatal hernia.

and yes, if i wanted to gnaw on a pine needle, i’d gnaw on a pine needle. if i wanted to taste the earth’s rich, bountiful soil, i’d just eat a handful of rich bountiful soil.

and now for the kicker: THE WHOLE FOODS SALAD BAR. guys. c’mon. is it necessary to put rosemary in every single dish?? IS IT? i’ll tell you what: it’s not. because i don’t do it at home. this is the universe telling me to avoid the whole foods salad bar. it’s too damn expensive anyway. i already had words with the sushi guy. i should forget their prepared foods altogether.

so. in closing, does rosemary have its place? yes. but in small doses. (and YES, it can be good in a roasted chicken dish, so please don’t mention roasted chicken to me. i already know.)

if you are a manufacturer of something PLEASE list it on your ingredient list as not all of us want to eat pine sol. and chop the damn stuff up dammit! you want a lawsuit or something?? i should not have to review a heimlich maneuver chart before i eat your food.

next up: my recent-ish 30-minute flight from pittsburgh to baltimore, also known as I Took Too Much Xanax & Held a (Kind) Stranger’s Hand. until then, please don’t choke on rosemary. or at least avoid it if you’re with me because you know my ass isn’t gonna know how the hell to save you and before i can do anything, i’ll have to google “heimlich maneuver” and you know i’ll spell it wrong.


Dyson Racing Team Bentley will be running a second Bentley Continental GT3 in Pirelli World Challenge GT starting with this weekend’s Round 13 and 14 races at Sonoma Raceway. Accomplished driver Guy Smith will pilot the No. 88 car.

Earlier this season at Road America, Dyson entered the first Bentley Continental GT3 to run in the series with Butch Leitzinger behind the wheel of the No. 08 car.

Smith, the Yorkshire, England born and raised driver, joins the series for the final four races of the season. He previously won the 2003 24 Hours of Le Mans with Bentley, and the 2011 American Le Mans Series Drivers P1 Championship.

Additionally, Smith has back-to-back wins this year at Silverstone and Circuit Paul Ricard in the M-Sport Bentley Continental GT3 in the Blancpain Endurance Series.


Q:

How do I access the elements of a vector correctly?

int main() {

    vector <int> multiples(1);

    cout << multiples[0];

}

This returns 0 when I want it to be 1. This happens when I initialize the vector with one element, I can access the second element, however:
int main() {

    vector <int> multiples(1, 4);

    cout << multiples[1]; // 4

}

Moreover, when I try to access elements in the vector that do not exist, I get the value of the rightmost element (in this case, 4). But I cannot seem to get the first element however. Can anyone explain why?

A:

This
vector <int> multiples(1);

creates a vector of int with size 1. The single element is value initialized, which for ìnt means zero initialized. So you get a vector with one entry, with value 0. And this one
vector <int> multiples(1, 4);

creates a vector of size 1, this time with value4. If you try to access multiplies[1] you are going beyond the bounds of your size-1 vector, thereby invoking undefined behaviour. It you want to initialize a vector with two elements of values 1 and 4, in C++11 you can do this:
vector <int> multiples{1, 4};


/* Copyright (c) 2019 Rick (rick 'at' gibbed 'dot' us)
 *
 * This software is provided 'as-is', without any express or implied
 * warranty. In no event will the authors be held liable for any damages
 * arising from the use of this software.
 *
 * Permission is granted to anyone to use this software for any purpose,
 * including commercial applications, and to alter it and redistribute it
 * freely, subject to the following restrictions:
 *
 * 1. The origin of this software must not be misrepresented; you must not
 *    claim that you wrote the original software. If you use this software
 *    in a product, an acknowledgment in the product documentation would
 *    be appreciated but is not required.
 *
 * 2. Altered source versions must be plainly marked as such, and must not
 *    be misrepresented as being the original software.
 *
 * 3. This notice may not be removed or altered from any source
 *    distribution.
 */

using System.ComponentModel;
using ProtoBuf;

namespace Gibbed.Borderlands3.ProtoBufFormats
{
    [ProtoContract]
    public struct Vec3 : INotifyPropertyChanged
    {
        #region Fields
        private float _X;
        private float _Y;
        private float _Z;
        #endregion

        #region Properties
        [ProtoMember(1, IsRequired = false)]
        public float X
        {
            get { return this._X; }
            set
            {
                if (value != this._X)
                {
                    this._X = value;
                    this.NotifyOfPropertyChange(nameof(X));
                }
            }
        }

        [ProtoMember(2, IsRequired = false)]
        public float Y
        {
            get { return this._Y; }
            set
            {
                if (value != this._Y)
                {
                    this._Y = value;
                    this.NotifyOfPropertyChange(nameof(Y));
                }
            }
        }

        [ProtoMember(3, IsRequired = false)]
        public float Z
        {
            get { return this._Z; }
            set
            {
                if (value != this._Z)
                {
                    this._Z = value;
                    this.NotifyOfPropertyChange(nameof(Z));
                }
            }
        }
        #endregion

        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != this.GetType())
            {
                return false;
            }

            return (Vec3)obj == this;
        }

        public static bool operator ==(Vec3 a, Vec3 b)
        {
            return a._X == b._X &&
                   a._Y == b._Y &&
                   a._Z == b._Z;
        }

        public static bool operator !=(Vec3 a, Vec3 b)
        {
            return a._X != b._X ||
                   a._Y != b._Y ||
                   a._Z != b._Z;
        }

        public override int GetHashCode()
        {
            int hash = 37;
            hash = hash * 23 + this._X.GetHashCode();
            hash = hash * 23 + this._Y.GetHashCode();
            hash = hash * 23 + this._Z.GetHashCode();
            return hash;
        }

        #region INotifyPropertyChanged Members
        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyOfPropertyChange(string propertyName)
        {
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
        #endregion
    }
}