text stringlengths 16 69.9k |
|---|
Q:
Existe diferença entre as plataformas Java?
Em:
Java Desktop
Java Mobile
Java Web
As linguagens são diferentes, ou é padrão mudando apenas o ambiente?
A:
A linguagem é a mesma, o que muda é o entorno dela, as bibliotecas extras (as básicas são as mesmas). Agora, quando fala em mobile, talvez esteja falando de Android, aí tem que tomar um pouco de cuidado porque nessa plataforma a implementação costuma estar atrasada e não ter tudo que está disponível nas versões mais novas da linguagem, tem que sempre verificar o que já pode usar. Se a linguagem mudar fora do padrão, não pode usar o nome Java.
A coisa é um pouco mais complicada. Hoje existem diversas implementações da plataforma onde o Java roda.
|
Q:
Adding Attachment Display Settings in custom media frame
I made my own custom media frame :
$('.add').bind('click', function(event) {
event.preventDefault();
// Create the media frame.
file_frame = wp.media.frames.file_frame = wp.media({
title: 'Select image to insert',
button: {
text: 'Insert',
},
multiple: true
});
file_frame.open();
});
It opens the media manager alright but Attachment display setting part is missing. How can i get that?
A:
Just add
frame: 'post',
to wp.media attributes.
|
Global Warmists Admit They’re Really Book Burners
The Portland Public Schools board is going to need to buy carbon offsets to compensate for its global warming book-burning campaign.
Well, okay, it’s not actually planning to burn the books, so it’s in the clear on the emissions. Perhaps it will use a more ecologically sensitive solution like composting. Either way, the politically incorrect books are on the way out.
Last week, the Portland, Oregon, public schools board voted to “abandon the use of any adopted text material that is found to express doubt about the severity of the climate crisis or its root in human activities.”
This is the party of “science” at work. Because the rigorous suppression of doubt and skepticism is the essence of a good science education, right?
But don’t worry, Jonathan Chait is on top of this and informs us that it’s all just in the imaginations of “anti-science conservatives” because “the story does not actually describe a book ban. It describes a ban on ‘textbooks and other teaching materials that deny climate change exists or cast doubt on whether humans are to blame.’” Which is a totally different thing, somehow.
PPS banished any language that implies the smallest amount of doubt in man-made global warming. In other news, Chait is strongly against political correctness when it targets people like him. The rest of us are fair game.
Actually, the story is even worse than what conservative news sites have reported. It’s not just that Portland banished from its schools any active denial of catastrophic, man-made global warming; it’s that they banished any language that implies the smallest amount of doubt. Bill Bigelow, a former teacher now working for the activist group that pushed this resolution, explained its rationale in testimony to the school board:
Bigelow said PPS’ science textbooks are littered with words like ‘might,’ ‘may,’ and ‘could’ when talking about climate change. ‘Carbon dioxide emissions from motor vehicles, power plants and other sources, may contribute to global warming,’ he quotes Physical Science published by Pearson as saying. ‘This is a section that could be written by the Exxon public relations group and it’s being taught in Portland schools.’
It reminds me of the old dictum attributed to Lenin: first you target the counter-revolutionaries, and then you target the insufficiently enthusiastic. This is no longer about suppressing us global warming “deniers.” It’s about erecting the global warming catechism as a dogma that cannot be given anything short of enthusiastic consent. You have to embrace it the way you love Big Brother.
But it gets worse. Bigelow is the co-author, conveniently, of his own alternative global warming textbook, “A People’s Curriculum for the Earth,” which lays out a course in “climate justice.” What does that mean? Another report from a site called Inquistr (which sounds like The Quibbler, looks like BuzzFeed, and reads like Pravda) explains:
Climate justice is a social justice issue that frames climate change not in physical or environmental terms, but as a social, ethical and political issue. Climate justice is based on the idea that climate change has a disproportionate effect on low-income and minority communities, which will now be taught to students in the Portland Public School system.
So this is an attempt to use global warming as a delivery device for old-fashioned Marxism, and it will indeed now be Portland public school policy. The school board resolution mandates the adoption of “curriculum and educational opportunities that address climate change and climate justice in all Portland Public Schools.”
This is about erecting a dogma that cannot be given anything short of enthusiastic consent. I supposed we should at least be happy that the cards are on the table. For years, some of us have described the promoters of the global warming hysteria as “watermelons”: green on the outside, red on the inside. It’s nice to hear them confirm that “climate” is no longer to be thought of in “physical” — i.e., scientific — terms but is really a “political issue.” That is what we’ve been saying all along.
But that leads me to the most ominous part of the story: that the school board’s resolution was adopted unanimously (at a sparsely attended meeting that feels a bit like an extended “Portlandia” sketch). There was not a single person who saw anything wrong with it and was willing to say so. On the school board. And judging from Chait’s reaction, the whole of the “pro-science” left will march along happily with this bit of Lysenkoism.
Explaining why all of this is wrong and deeply unscientific almost seems to be beside the point, so I’ll leave the job of rebuttal to two of my heroes. Carl Sagan:
The suppression of uncomfortable ideas may be common in religion or in politics, but it is not the path to knowledge, and there is no place for it in the endeavor of science.
This used to be not just basic scientific ethics, but also basic liberalism, back when there was still such a thing as liberalism. |
Tested the Software inventory and checked for the Not Installed option and still get inaccurate info. I randomly selected a device listed by the Not Installed option and checked the services running and Safeboot is running in auto mode. |
#import <Foundation/Foundation.h>
#import "TLObject.h"
#import "TLMetaRpc.h"
@class TLInputGeoPoint;
@class TLcontacts_Located;
@interface TLRPCcontacts_getLocated : TLMetaRpc
@property (nonatomic, retain) TLInputGeoPoint *geo_point;
@property (nonatomic) bool hidden;
@property (nonatomic) int32_t radius;
@property (nonatomic) int32_t limit;
- (Class)responseClass;
- (int)impliedResponseSignature;
@end
@interface TLRPCcontacts_getLocated$contacts_getLocated : TLRPCcontacts_getLocated
@end
|
namespace NetArchTest.TestStructure.NameMatching.Namespace2
{
public class ClassA3
{
}
}
|
p25rum1 orders S phase and mitosis by acting as an inhibitor of the p34cdc2 mitotic kinase.
p25rum1 from the fission yeast S. pombe is shown to act as a specific in vitro inhibitor of the p34cdc2/p56cdc13 mitotic kinase. It is also shown that early G1 cells contain p25rum1, which associates with and inhibits the mitotic kinase, and maintains p56cdc13 mitotic B cyclin at a low level, ensuring that these cells do not undergo a premature lethal entry into mitosis. A high level of p25rum1 in G2 cells inhibits the p34cdc2/p56cdc13 kinase that removes the block preventing a further S phase and leads to repeated rounds of DNA replication. Thus, the cyclin-dependent kinase inhibitor p25rum1, acting on the p34cdc2 mitotic kinase, plays an important role in ensuring the correct sequence of S phase and mitosis during the cell cycle. |
Dens evaginatus on occlusal surface of maxillary second molar: a case report.
Dens evaginatus is a rare dental anomaly characterized by the development of a tubercle on the occlusal surface of the tooth and can cause pulpitis, pulp necrosis, and periapical periodontitis due to tubercular fracture or attrition. Unlike with caries, pain caused by dens evaginatus may manifest itself in a distant location. Therefore, diagnosing the cause of that pain may prove problematic. Dens evaginatus usually occurs in the mandibular premolars. We report a successfully treated case in which dens evaginatus was difficult to diagnose due to distant radiation of pulpitis-induced pain. This pain occurred as a result of fracture of a tubercle located on the occlusal surface of the maxillary second molar, which is very rare. |
Can't find what you're looking for?
Big
& tall
Tools & tips
Similar stuff
Look your best in the selection of quality men's suits online at Sears Canada. We have everything from outerwear and men's
dress wear in a variety of cuts and styles, to men's wedding suits to have you looking your best on your special day. You'll
also find ties, shoes, socks, and other accessories to complete your look. |
Segmental renal artery embolization for treatment of pediatric renovascular hypertension.
Selective intrarenal arterial embolization was used to treat three children with documented renovascular hypertension. Embolization resulted in complete cure (ie, elimination of all antihypertensive medicines) in all three patients and caused only minimal loss of renal parenchyma. Renal vein renin sampling, including sampling after furosemide administration, correlated well with the location of identified vascular lesions and helped direct selective angiography when lesions were not found initially. Intrarenal arterial embolization is a safe, effective alternative to surgical resection in the treatment of renovascular hypertension in children who have identifiable intrarenal arterial lesions not amenable to balloon angioplasty. |
# sqlite
* [【源码】CursorWindow读DB](https://github.com/ahangchen/windy-afternoon/tree/0ed76feaed07a46585e67528211ae55b520e232d/android/sqlite/sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.md)
* [Sqlite在Android上的一个Bug](https://github.com/ahangchen/windy-afternoon/tree/0ed76feaed07a46585e67528211ae55b520e232d/android/sqlite/sqlite/SQLITE在ANDROID上的一个BUG.md)
|
Hyperalgesia produced by intrathecal opioid antagonists depends on receptor selectivity and noxious stimulus.
Opioid antagonists selective for delta-, kappa- and mu-receptor subtypes were administered intrathecally in rats prior to determination of response thresholds to noxious heat, pressure and chemical visceral stimulation. All antagonists induced hyperalgesia differentially with two or more stimuli but delta- and mu-blockade failed to alter writhing activity. Thus, the extent of involvement of an opioid receptor subtype in antinociception depends on the type of noxious stimulation. |
Paving the Way Toward Complex Blood-Brain Barrier Models Using Pluripotent Stem Cells.
A tissue with great need to be modeled in vitro is the blood-brain barrier (BBB). The BBB is a tight barrier that covers all blood vessels in the brain and separates the brain microenvironment from the blood system. It consists of three cell types [neurovascular unit (NVU)] that contribute to the unique tightness and selective permeability of the BBB and has been shown to be disrupted in many diseases and brain disorders, such as vascular dementia, stroke, multiple sclerosis, and Alzheimer's disease. Given the progress that pluripotent stem cells (PSCs) have made in the past two decades, it is now possible to produce many cell types from the BBB and even partially recapitulate this complex tissue in vitro. In this review, we summarize the most recent developments in PSC differentiation and modeling of the BBB. We also suggest how patient-specific human-induced PSCs could be used to model BBB dysfunction in the future. Lastly, we provide perspectives on how to improve production of the BBB in vitro, for example by improving pericyte differentiation protocols and by better modeling the NVU in the dish. |
Denim On Denim, Can It Be Done? Stars Show Off Do's & Don'ts For Working The Trend!
Before you try out this look read my pointers so you manage to score a chic, not bleak, get-up!
Denim on denim only seems to work on the uber stylish, but with jeans popping up in bright new colors and washes it’s definitely way more wearable than it was in the past! So, how do you pull off the trend without looking like you got dressed in the dark? Read on to learn how and check out Whitney Port and Ashley Greene — while the Twilight star unfortunately missed the mark, Whitney looks so cool in the trend!
The key to making this look work is really varying the type of denim — opting for a variety of washes and creating a contrast will transform your look from dated to undeniably cool. While Ashley opted for two different washes, I wish she would’ve tucked in the top or maybe added a blazer or belt to break up the look — instead it just looks mismatched. If her shirt was a bit bigger and she had rolled up the sleeves and showed off some bangles I might have felt differently about her get-up.
Whitney, on the other hand, turned up looking effortlessly chic in M2F colored skinny jeans and a tucked in denim top. Colored denim seems to be everywhere for spring — and even if you don’t think a pair of bright jeans would work on you, why not opt for something neutral, like white jeans? I like how Whitney also played with proportions, wearing an over-sized shirt.
Strategic accessories and playing with proportions and washes is key to making this look work — wearing a super-light, deconstructed, over-sized top with dark jeans is the easiest way to pull it off. Leaving an extra button open and having a light, floral, or lace cami on display is another way to break up the get-up. Don’t overdo it with the denim — instead, compliment the look with accessories. Add some jewelry and a nice messenger bag to compliment the look and kick up the cool quotient.
Denim on denim isn’t so hard to pull off after all! Is this a look you plan on trying out? |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests.extensions;
import com.microsoft.graph.requests.extensions.IWorkbookFunctionsIrrRequest;
import com.microsoft.graph.requests.extensions.WorkbookFunctionsIrrRequest;
import com.microsoft.graph.models.extensions.WorkbookFunctionResult;
import com.microsoft.graph.core.BaseActionRequestBuilder;
import com.microsoft.graph.core.BaseFunctionRequestBuilder;
import com.microsoft.graph.core.IBaseClient;
import com.google.gson.JsonElement;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Workbook Functions Irr Request Builder.
*/
public class WorkbookFunctionsIrrRequestBuilder extends BaseActionRequestBuilder implements IWorkbookFunctionsIrrRequestBuilder {
/**
* The request builder for this WorkbookFunctionsIrr
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
* @param values the values
* @param guess the guess
*/
public WorkbookFunctionsIrrRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions, final com.google.gson.JsonElement values, final com.google.gson.JsonElement guess) {
super(requestUrl, client, requestOptions);
bodyParams.put("values", values);
bodyParams.put("guess", guess);
}
/**
* Creates the IWorkbookFunctionsIrrRequest
*
* @param requestOptions the options for the request
* @return the IWorkbookFunctionsIrrRequest instance
*/
public IWorkbookFunctionsIrrRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) {
return buildRequest(getOptions(requestOptions));
}
/**
* Creates the IWorkbookFunctionsIrrRequest with specific requestOptions instead of the existing requestOptions
*
* @param requestOptions the options for the request
* @return the IWorkbookFunctionsIrrRequest instance
*/
public IWorkbookFunctionsIrrRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
WorkbookFunctionsIrrRequest request = new WorkbookFunctionsIrrRequest(
getRequestUrl(),
getClient(),
requestOptions
);
if (hasParameter("values")) {
request.body.values = getParameter("values");
}
if (hasParameter("guess")) {
request.body.guess = getParameter("guess");
}
return request;
}
}
|
A former British diplomat and past colleagues have come forward with new information about Chris Steele, the ex-spy whose memos included allegations that Russian operatives claimed to have compromising information about Donald Trump. CNN's Nic Robertson reports. |
The present invention relates to the field of variable-lift devices using a gas that is lighter than air for rising in the atmosphere. More precisely, the invention relates to variable-lift devices provided with a tank for storing the lighter-than-air gas under pressure, such as helium, neon, methane, ethane, or hydrogen.
A variable-lift device can be used for moving or lifting heavy objects or objects of sizes that are too bulky for them to be transported by truck, train, or airplane.
In general, variable-lift devices are constituted by a balloon containing helium and a gondola attached to the balloon. The gondola contains various accessories needed for navigation. The balloon is constituted by a flexible envelope supported by a rigid structure. The rigid structure consists of an assembly of beams, a beam being an element that is long in one dimension relative to the other two dimensions. The shape the rigid structure gives to the flexible envelope is selected so as to be aerodynamic.
In the prior art, the gondola attached to the balloon contains the helium tanks, together with other accessories. The shape of the helium tank is selected so as to store a large quantity of helium while reducing the size and the weight of the tanks.
The present invention proposes making use of hollow beams to constitute at least a portion of the rigid structure which supports the flexible envelope constituting the balloon, and to store helium under pressure inside the hollow beams.
The present invention provides a variable-lift device using a gas that is lighter than air, the device comprising an outer envelope supported by a more rigid structure, the device being characterized in that said structure comprises a hollow beam having internal volume that is used as a tank for storing said gas. The hollow beam may be covered in a cloth that is leakproof relative to said gas and that thermally insulates the internal volume of the hollow beam. The hollow beam may be a hollow torus. The hollow torus may comprise at least two torus portions assembled together.
In a first variant of the invention, the structure of the device comprises at least two hollow toruses whose internal volumes are in communication. In a second variant of the invention, the structure of the device comprise at least two hollow toruses whose inside volumes are not in communication.
The present invention provides a saving in weight and reduces the space occupied in the gondola since the helium tank and the rigid structure are one and the same element. |
Q:
Extend SharedPreferences to use a different backend (JSON/Sqlite)
I need to create a complex configuration activity for my app with dynamic modules and i would like to store all the settings into JSON because using sharedprefs XML backend would make things too complex (modules are indipendent and i could have conflicting preference names so i need something able to store an hierarchy of preferences and understand the module concept, i also need to export/import from external files / internet easily).
Each module will have its own "preferencescreen", a module could appear multiple times (with different "ids") and i need to have the same file backend for all of them. Another option would be using many sharedpreferences files and export/import to json when needed.
So, do you think it would be ok to extend SharedPreferences and make it use a different backend so i can keep using PreferenceFragments avoiding to reinvent the wheel? Has anyone tried yet?
A:
This is becoming utterly complex so i have decided that the best way to do this is to use multiple SharedPreferences by passing an unique ID to each PreferenceScreen "module", i then export/import everything using JSON but always going through SharedPreferences standard XML backend. If someone does not post a better solution i will mark this as correct because probably there are not better ways to do that.
|
×
Find A Stylist
Color Street brings revolutionary real nail polish strips to your fingertips through our Independent Stylists. When you connect with an Independent Stylist, you’re connecting with a passionate product expert dedicated to giving you the best possible shopping experience and customer service. |
package com.bugsnag.android.mazerunner.scenarios
import android.content.Context
import com.bugsnag.android.Bugsnag
import com.bugsnag.android.Configuration
/**
* Sends a handled exception to Bugsnag, which contains metadata that should be filtered
*/
internal class ManualRedactKeysScenario(config: Configuration,
context: Context) : Scenario(config, context) {
init {
config.autoTrackSessions = false
config.redactedKeys = setOf("foo")
}
override fun run() {
super.run()
Bugsnag.addMetadata("user", "foo", "hunter2")
Bugsnag.addMetadata("custom", "foo", "hunter2")
Bugsnag.addMetadata("custom", "bar", "hunter2")
Bugsnag.notify(generateException())
}
}
|
Q:
Passing a dictionary to Ajax
I have an Ajax call on a on('click',) event. The data passed from my HTML is value= '{{y.id }} {{ y.id }}'.
Ajax passes it to my views.py in python server side as a str .
Is there a way to get it straight as a list or dictionary? Or do I have to extract it and convert it in my views.py?
My html:
{% if user.is_authenticated %}
<form class="add_btn" method='post'>{% csrf_token %}
<button class='added btn' value='{{x.id }}{{ y.id }}' ><i class=' fas fa-save'></i></button>
{% endif %}
My Ajax:
$(".added").on('click', function(event) {
event.preventDefault();
var prefered = $(this).val();
var url = '/finder/add/';
$.ajax({
url: url,
type: "POST",
data:{
'prefered': prefered,
'csrfmiddlewaretoken': $('input[name=csrfmiddlewaretoken]').val()
},
datatype:'json',
success: function(data) {
if (data['success'])
console.log(prefered);
}
});
});
My views.py
def add(request):
data = {'success': False}
if request.method=='POST':
prefered = request.POST.get('prefered')
print (prefered)
print (type(prefered))
user = request.user
print (user)
data['success'] = True
return JsonResponse(data)
A:
As you said, your server side running python will receive the AJAX data in a stringified JSON format, and the parsing is all left to the application layer.
Which means you will have to do the parsing inside your views.py in your case. But, with the help of packages like json or simplejson it should be fairly easy.
Note that the parsing might take place inside a middleware layer in some situations, thus making it easier for the application (views.py for example), but setting up a middleware layer is an overhead that you typically want to avoid for small projects.
|
Preston
-----
fun fact: Preston is a blue brindle - blue is a dilute of black, if his color wasn't "diluted" he would've been a red brindle. The grayish tinge of the "Blues" are what people often think of when they think of Greyhounds - however that is a fairly rare color for them to come in. The "grey" of Greyhound is a refernce to ancient words meaning "shining or bright." |
CSRCS += lv_arc.c
CSRCS += lv_bar.c
CSRCS += lv_cb.c
CSRCS += lv_cpicker.c
CSRCS += lv_ddlist.c
CSRCS += lv_kb.c
CSRCS += lv_line.c
CSRCS += lv_mbox.c
CSRCS += lv_preload.c
CSRCS += lv_roller.c
CSRCS += lv_table.c
CSRCS += lv_tabview.c
CSRCS += lv_tileview.c
CSRCS += lv_btn.c
CSRCS += lv_calendar.c
CSRCS += lv_chart.c
CSRCS += lv_canvas.c
CSRCS += lv_gauge.c
CSRCS += lv_label.c
CSRCS += lv_list.c
CSRCS += lv_slider.c
CSRCS += lv_ta.c
CSRCS += lv_spinbox.c
CSRCS += lv_btnm.c
CSRCS += lv_cont.c
CSRCS += lv_img.c
CSRCS += lv_imgbtn.c
CSRCS += lv_led.c
CSRCS += lv_lmeter.c
CSRCS += lv_page.c
CSRCS += lv_sw.c
CSRCS += lv_win.c
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_objx
VPATH += :$(LVGL_DIR)/lvgl/src/lv_objx
CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_objx"
|
---
title: adoptopenjdk
keywords: library, sample, adoptopenjdk
repo: adoptopenjdk
layout: docs
permalink: /samples/library/adoptopenjdk/
hide_from_sitemap: true
redirect_from:
- /samples/adoptopenjdk/
description: |
Official Images for OpenJDK + HotSpot and OpenJDK + Eclipse OpenJ9 binaries built by AdoptOpenJDK.
---
Official Images for OpenJDK + HotSpot and OpenJDK + Eclipse OpenJ9 binaries built by AdoptOpenJDK.
{% include library-samples.md %}
|
I/O Modules and Racks
Grayhill offers I/O modules in the industry standard sizes of mini, standard and G5. Grayhill also offers its unique Open-Line style I/O module that offers two input/output points per snap-in module. This not only saves space but also offers quick and tool-free assembly and modification. Grayhill’s I/O Racks are available in industry standard size as well as a miniature footprint size to save panel space.
Grayhill’s Control and I/O Systems allow manufacturers and integrators to build custom control systems from standard components. If your application requires it, we can put our expertise in the following areas to work for you: |
The subject matter disclosed herein relates to gas turbine engines.
Gas turbine engines are used in a wide variety of applications, such as power generation, aircraft, and various machinery. Gas turbine engines generally combust a fuel with an oxidant (e.g., air) in a combustor section to generate hot combustion products, which then drive one or more turbine stages of a turbine section. The turbine stages, when driven by the hot combustion products, create torque to drive a shaft. The rotating shaft, in turn, drives one or more compressor stages of a compressor section, and can also drive an electrical generator to produce electrical energy.
Compressor sections can include, as an example, wheels attached to the rotatable shaft of the gas turbine system. The wheels may be attached to airfoils that, when rotated with the wheels, act upon and compress a working fluid. These airfoils may be subjected to various mechanical and environmental stresses, such as the pressure and heat generated from compression of the working fluid, as well as water condensation that occurs during the compression. The operating life of the airfoils may at least partially depend on their ability to withstand these mechanical and environmental stresses. |
[A study on simultaneous and successive Delboeuf illusions from the standpoint of the theory of set].
An attempt was made to examine whether or not the simultaneous Delboeuf illusion and the successive one were based on the same perceptual process. By the method of the fixed set, the subject's inner process (set) during the occurrence of the illusions was investigated in Experiment I. The results indicated that his set toward the Delboeuf illusion figure was not changed when only the inducing circle was presented first, but that his set was changed at the moment the inducing circle disappeared and the two circles of identical size were presented. Experiment II examined his perception when there was a time delay between the presentations of the inducing circle of the Delboeuf illusion figure and the other two circles. In that situation, the simultaneous Delboeuf illusion and the successive one should occur successively. The results of Experiment III suggested that the transitional change from the simultaneous Delboeuf illusion to the successive one, which had been observed in the previous study, was due to a change in the judgement of the subject who experienced these two different phenomena successively. |
Q:
How do I hide the multi-select edit gui for certain cells in UITableView?
I am using UITableView, setting editing true, and using these options in interface builder:
This shows a nice selection UI whose style I can modify and events I can react to:
I want to turn this off, but only for certain cells. I've seen this and many similar questions, but they refer to a different type of selection in UITableView. UITableViewCellSelectionStyle.None and willSelectRowAtIndexPath do not allow me to block this type of selection.
A:
Did you try to implement
func tableView(_ tableView: UITableView,
canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool
in your delegate ?
I believe it will allow you to obtain the results you are trying to achieve.
|
Credentials
Education
Studio
Microphone
Computer & Software
iMac / Audacity
Delivery Methods
MP3, WAV
Turnaround Time
within 24hrs / as quickly as possible (depending upon length of project)
Service Description
copy editing
Payment Terms
Hire Gabrielle as a voice actor.
Payment is made through Voices.com SurePay, an escrow service that guarantees your work is done to your satisfaction.
Send payment securely by Visa, Mastercard or PayPal through Voices.com then download your files from the website. |
#region Using directives
using System.Threading.Tasks;
using Blazorise.Stores;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Routing;
using Microsoft.JSInterop;
#endregion
namespace Blazorise
{
public partial class Bar : BaseComponent, IBreakpointActivator
{
#region Members
/// <summary>
/// Used to keep track of the breakpoint state for this component.
/// </summary>
private bool isBroken;
private Breakpoint breakpoint = Breakpoint.None;
private Breakpoint navigationBreakpoint = Breakpoint.None;
private ThemeContrast themeContrast = ThemeContrast.Light;
private Alignment alignment = Alignment.None;
private BarCollapseMode collapseMode = BarCollapseMode.Hide;
private Background background = Background.None;
private DotNetObjectReference<BreakpointActivatorAdapter> dotNetObjectRef;
private BarStore store = new BarStore
{
Mode = BarMode.Horizontal
};
#endregion
#region Methods
protected override async Task OnInitializedAsync()
{
if ( NavigationBreakpoint != Breakpoint.None )
NavigationManager.LocationChanged += OnLocationChanged;
await base.OnInitializedAsync();
}
protected override async Task OnFirstAfterRenderAsync()
{
dotNetObjectRef ??= JSRunner.CreateDotNetObjectRef( new BreakpointActivatorAdapter( this ) );
if ( Rendered )
{
_ = JSRunner.RegisterBreakpointComponent( dotNetObjectRef, ElementId );
if ( Mode != BarMode.Horizontal )
{
// Check if we need to collapse the Bar based on the current screen width against the breakpoint defined for this component.
// This needs to be run to set the inital state, RegisterBreakpointComponent and OnBreakpoint will handle
// additional changes to responsive breakpoints from there.
isBroken = BreakpointActivatorAdapter.IsBroken( Breakpoint, await JSRunner.GetBreakpoint() );
if ( Visible == isBroken )
{
Visible = !isBroken;
StateHasChanged();
}
}
}
await base.OnFirstAfterRenderAsync();
}
protected override void BuildClasses( ClassBuilder builder )
{
builder.Append( ClassProvider.Bar() );
builder.Append( ClassProvider.BarBackground( Background ), Background != Background.None );
builder.Append( ClassProvider.BarThemeContrast( ThemeContrast ), ThemeContrast != ThemeContrast.None );
builder.Append( ClassProvider.BarBreakpoint( Breakpoint ), Breakpoint != Breakpoint.None );
builder.Append( ClassProvider.FlexAlignment( Alignment ), Alignment != Alignment.None );
builder.Append( ClassProvider.BarMode( Mode ) );
base.BuildClasses( builder );
}
internal void Toggle()
{
Visible = !Visible;
StateHasChanged();
}
public Task OnBreakpoint( bool broken )
{
// If the breakpoint state has changed, we need to toggle the visibility of this component.
// broken = true, hide the component
// broken = false, show the component
if ( isBroken == broken )
return Task.CompletedTask;
isBroken = broken;
Visible = !isBroken;
StateHasChanged();
return Task.CompletedTask;
}
protected override void Dispose( bool disposing )
{
if ( disposing )
{
// make sure to unregister listener
if ( Rendered )
{
_ = JSRunner.UnregisterBreakpointComponent( this );
JSRunner.DisposeDotNetObjectRef( dotNetObjectRef );
}
if ( NavigationBreakpoint != Breakpoint.None )
NavigationManager.LocationChanged -= OnLocationChanged;
}
base.Dispose( disposing );
}
private async void OnLocationChanged( object sender, LocationChangedEventArgs args )
{
// Collapse the bar automatically
if ( Visible && BreakpointActivatorAdapter.IsBroken( NavigationBreakpoint, await JSRunner.GetBreakpoint() ) )
Toggle();
}
#endregion
#region Properties
protected BarStore Store => store;
protected string CollapseModeString
{
get
{
if ( Visible )
return null;
return ClassProvider.ToBarCollapsedMode( CollapseMode );
}
}
/// <summary>
/// Controlls the state of toggler and the menu.
/// </summary>
[Parameter]
public virtual bool Visible
{
get => store.Visible;
set
{
// prevent bar from calling the same code multiple times
if ( value == store.Visible )
return;
store.Visible = value;
VisibleChanged.InvokeAsync( value );
DirtyClasses();
}
}
[Parameter] public EventCallback<bool> VisibleChanged { get; set; }
/// <summary>
/// Used for responsive collapsing.
/// </summary>
[Parameter]
public Breakpoint Breakpoint
{
get => breakpoint;
set
{
breakpoint = value;
DirtyClasses();
}
}
/// <summary>
/// Used for responsive collapsing after Navigation
/// </summary>
[Parameter]
public Breakpoint NavigationBreakpoint
{
get => navigationBreakpoint;
set
{
navigationBreakpoint = value;
DirtyClasses();
}
}
[Parameter]
public ThemeContrast ThemeContrast
{
get => themeContrast;
set
{
themeContrast = value;
DirtyClasses();
}
}
/// <summary>
/// Defines the alignment within bar.
/// </summary>
[Parameter]
public Alignment Alignment
{
get => alignment;
set
{
alignment = value;
DirtyClasses();
}
}
/// <summary>
/// Gets or sets the bar background color.
/// </summary>
[Parameter]
public Background Background
{
get => background;
set
{
background = value;
DirtyClasses();
}
}
/// <summary>
/// Defines the Orientation for the bar. Vertical is required when using inside Sidebar.
/// </summary>
[Parameter]
public virtual BarMode Mode
{
get => store.Mode;
set
{
if ( store.Mode == value )
return;
store.Mode = value;
DirtyClasses();
}
}
[Parameter]
public BarCollapseMode CollapseMode
{
get => collapseMode;
set
{
collapseMode = value;
DirtyClasses();
}
}
[Parameter] public RenderFragment ChildContent { get; set; }
[Inject] protected NavigationManager NavigationManager { get; set; }
#endregion
}
}
|
Riedel's thyroiditis associated with Hashimoto's thyroiditis, hypoparathyroidism, and retroperitoneal fibrosis.
A patient with Riedel's struma (invasive fibrous thyroiditis) with hypothyroidism, hypoparathyroidism, and retroperitoneal fibrosis is reported. This disorder appeared to emanate from Hashimoto's thyroiditis in this case. The possible relationship of the two entities is discussed. |
In most of the prior art network abnormal condition detection technologies using traffic, a network (or system) address, a protocol, a port number, and the number of packets, and the like are used to analyze the state of the corresponding item. As another method, data is represented in a coordinate plane or a geometrical figure depending on a certain rule to display abnormal conditions. For example, in a two-dimensional (2D) coordinate system, an X-axis is set as an address (or port) of a source, and an Y-axis is set as an address (or port) of a destination to display the correlation between the source and destination of traffic or represent the occurrence frequency, thereby predicting and detecting an abnormal condition.
In this method, a displayed network state image or graph is used to represent only whether abnormal traffic occurs (that is, multiple normal servers and network attacks are included). Since it is difficult to accurately classify and represent a normal server providing a network service and traffic causing an attack, it is difficult to provide countermeasures for abnormal conditions. As a result, it takes a lot of time for the administrator to find harmful traffic causing the abnormal conditions and to provide countermeasures for the abnormal conditions, causing great damage.
In addition, when multiple attacks, rather than a single attack, are simultaneously made, or a new attack other than the existing attacks occurs, it becomes much more difficult to detect and display the attacks. |
Bearings utilized in pulleys, sheaves and like rotating mechanisms may be held in position about the center or rotational axis of the mechanism in various ways. One common method of holding a bearing or the like involves a press fit construction wherein the bearing is pressed into an opening provided in the center of the rotatable mechanism. When plastic materials are utilized in this construction, a considerable amount of material is required for strength and to prevent premature failure. In addition, separate seals and shields must be provided in the bearing to contain lubricants and to prevent the entrance of contaminating materials. |
Field
Aspects of the present disclosure relate generally to wireless communication systems, and more particularly, to sharing channel access across multiple radio access networks (RANs).
Background
Wireless communication networks are widely deployed to provide various communication services such as voice, video, packet data, messaging, broadcast, and the like. These wireless networks may be multiple-access networks capable of supporting multiple users by sharing the available network resources. Such networks, which are usually multiple access networks, support communications for multiple users by sharing the available network resources. One example of such a network is the Universal Terrestrial Radio Access Network (UTRAN). The UTRAN is the radio access network (RAN) defined as a part of the Universal Mobile Telecommunications System (UMTS), a third generation (3G) mobile phone technology supported by the 3rd Generation Partnership Project (3GPP). Examples of multiple-access network formats include Code Division Multiple Access (CDMA) networks, Time Division Multiple Access (TDMA) networks, Frequency Division Multiple Access (FDMA) networks, Orthogonal FDMA (OFDMA) networks, and Single-Carrier FDMA (SC-FDMA) networks.
A wireless communication network may include a number of base stations or node Bs that can support communication for a number of user equipments (UES). A UE may communicate with a base station via downlink and uplink. The downlink (or forward link) refers to the communication link from the base station to the UE, and the uplink (or reverse link) refers to the communication link from the UE to the base station.
A base station may transmit data and control information on the downlink to a UE and/or may receive data and control information on the uplink from the UE. On the downlink, a transmission from the base station may encounter interference due to transmissions from neighbor base stations or from other wireless radio frequency (RF) transmitters. On the uplink, a transmission from the UE may encounter interference from uplink transmissions of other UEs communicating with the neighbor base stations or from other wireless RF transmitters. This interference may degrade performance on both the downlink and uplink.
As the demand for mobile broadband access continues to increase, the possibilities of interference and congested networks grows with more UEs accessing the long-range wireless communication networks and more short-range wireless systems being deployed in communities. Research and development continue to advance the UMTS technologies not only to meet the growing demand for mobile broadband access, but to advance and enhance the user experience with mobile communications. |
Neither pretty nor fancy, the Clop is nevertheless a purpose built ship of war valued in colonial space for its reliability and decent operations time. While not officially a part of the Solar Union military inventory it still manages to find its way into more than a few UMFL companies. Surprisingly even some TEM companies have found themselves bogged down in theater and requiring cheap (relatively speaking) Clops to expand operations. Naturally the frigate has found its way into the forces of the Free Colonies and Ijad as well, although whether through 'liberation' or purchasing through backwater channels is up to debate and lawsuits. |
Advertisements
President Obama obliterated the great Republican lie. The president said that the ACA isn’t about a website. It’s about giving millions of Americans the same chance to get affordable healthcare.
Video:
Advertisements
Transcript:
PRESIDENT OBAMA: Now, let me close by addressing some of the politics that have swirled around the Affordable Care Act. I recognize that the Republican Party has made blocking the Affordable Care Act its signature policy idea. Sometimes it seems to be the one thing that unifies the party these days. (Laughter.) In fact, they were willing to shut down the government and potentially harm the global economy to try to get it repealed. And I’m sure that given the problems with the website so far, they’re going to be looking to go after it even harder. And let’s admit it — with the website not working as well as it needs to work, that makes a lot of supporters nervous because they know how it’s been subject to so much attack, the Affordable Care Act generally. But I just want to remind everybody, we did not wage this long and contentious battle just around a website. That’s not what this was about. (Applause.) We waged this battle to make sure that millions of Americans in the wealthiest nation on Earth finally have the same chance to get the same security of affordable quality health care as anybody else. That’s what this is about. (Applause.) And the Affordable Care Act has done that. People can now get good insurance. People with preexisting conditions can now afford insurance. And if the launch of this website proves anything, it’s that people across the country don’t just need that security, they want that security. They want it. (Applause.) And in the meantime — I’ve said many times — I’m willing to work with anyone on any idea to make this law perform even better. But it’s time for folks to stop rooting for its failure, because hardworking, middle-class families are rooting for its success. (Applause.) And if the product is good, they’re willing to be patient.
Republicans have been trying to make Obamacare all about the website not working as well as it should. They have adopted this talking point to try to discourage people from signing up for the ACA, and to distract from the real purpose of the health care reform law, which is to provide the uninsured with access to affordable health care.
The Republican Party doesn’t want to have a serious discussion about health care. A serious discussion would require their own ideas for reforming healthcare, and a consensus within their own party to actually pass legislation. Neither one of those things exists. The Republican idea for improving the health care is to make sure that tens of millions of Americans can’t see a doctor, or afford to get sick.
President Obama should be out in front of the cameras every single day reminding people what this is really about. The mainstream press is mostly lazy bunch that will happily attach themselves to any ready made story that Republican Party is willing to sell them, so it is up to President Obama to take the lead and force the media to put the message out there that the ACA isn’t about a website. It is about improving healthcare for all Americans, and allowing tens of millions of our citizens affordable access to lifesaving and prolonging care.
The new great Republican lie is that the ACA is failing because of the website, but Obamacare is about so much more. Republicans aren’t trying to kill the ACA because it is bad. They are trying to destroy it because it is good.
The media will keep repeating the great Republican lie, but the numbers tell a different story. If the ACA is so bad, why are so many people trying to sign up? |
ALL_HTTP_METHODS = (
'GET',
'HEAD',
'POST',
'PUT',
'DELETE',
'OPTIONS',
'PATCH',
)
|
Q:
Issue with Conditional Logic - Ruby on Rails
I am having a problem with some conditional logic with Ruby. Admittedly I am a newbie to all things Ruby.
This code is causing the site not to load:
<body style="background-image:url("<%= if @is_home_page.present? '/images/bg-main-power-bg.jpg' else '/images/bg-inner-power-bg.jpg' end %>"); background-repeat:repeat-x;">
Without the conditional the CSS loads just fine.
What am I doing wrong?
Thanks
A:
Use the ternary operator for inline conditionals.
condition ? branch_a : branch_b
a == b ? "foo" : "bar"
# is the same as
if a == b
"foo"
else
"bar"
end
For your specific case:
@is_home_page ? '/images/bg-main-power-bg.jpg' : '/images/bg-inner-power-bg.jpg'
|
Letter to the Editor: Please don’t kill the iguanas
I hear what you are saying and understand that many people might feel the same way, but regarding the [iguana] defecation issue [covered in the August Coastal Star], it’s no different and no worse than dog feces. Would you kill a dog for pooping outside or on your deck?
You claim iguanas are disgusting creatures. That’s a matter of opinion. Many, including me, would agree that iguanas are ancient relics of the past — living history — and I am fascinated by them.
Iguanas are clever animals that should not be thoughtlessly slaughtered. I think it is safe to say that the number of people hugely outnumbers the number of iguanas. They won’t hurt you, so why hurt them? Their droppings potentially hold nutrients for the ground, they add to the scenery and are a learning point for the younger generation.
They are also, in my opinion, very beautiful. So, they should not have to die if no one is being physically hurt by them. So, I beg you, don’t hurt them, please! |
-
name: 'Custom changelog'
description: 'Create a changelog with a custom filename'
code: 'gren changelog --generate --override --changelog-filename=RELEASE_NOTES.md'
|
Q:
OpenMP threads, data access latency and STL data containers
While using OpenMP threads,
Each thread can declare its own set of private variables. Is it correct to assume,
that fetching data, which are private to each thread, has lower latency than fetching data visible
to all threads. In other words, are the thread local variables cached ?
Say each thread, wants to use a thread private STL data container like std::vector. In single threaded C++
code, data in the std::vector is stored on the heap. What about the multi-threaded case ?
Are the data of the thread-private std::vectors still stored on the heap ?
A:
Unless you're using a NUMA machine, memory is uniform.
Is it correct to assume, that fetching data, which are private to each
thread, has lower latency than fetching data visible to all threads.
Thread-local storage isn't inherently "faster" than memory that is visible to all threads. However, memory that is only used by one thread is less likely to suffer from cache coherency effects - since it is only accessed by a single thread.
In other words, are the thread local variables cached?
Not necessarily. And it definitely won't be the case if it doesn't fit in the CPU cache. It is also possible for shared data to be in the caches of multiple cores at the same time.
What about the multi-threaded case ? Are the data of the
thread-private std::vectors still stored on the heap ?
Yes, they will be in the heap regardless of the number of threads.
A:
Private and shared variables are implemented differently in virtually all widely used OpenMP runtimes.
private automatic variables reside on the stack of each executing thread and threadprivate variables reside in the TLS. Automatic private variables can also be optimised to register ones as usual.
shared variables of a parallel region are usually implemented as a structure that is passed by address as an argument to each thread function and then additional pointer dereference is used to access each shared variable. Besides some compilers treat shared variables as implicitly volatile and issue the full spectrum of load/update/store instructions although OpenMP provides a relaxed memory model that allows for some degree of inconsistency between the visible values of the shared variables in the different threads up to certain synchronisation points, one such point being the explicit flush directive (still flush is the most widely misunderstood OpenMP feature and even the language makers cannot get their examples on its usage right in the standard document).
As for allocating data on the heap in the multithreaded case, heap operations are inherently serialised as most heap implementations use linked lists or similar data structures. Besides usual allocators don't care if data allocated by different threads might end up sharing a cache line and if this might lead to false sharing and the associated performance penalty. There are specialised multithreaded allocators like hoard, ptmalloc, umem, tcmalloc, etc. that try to tackle those problems at the expense of more memory used. Some of them (e.g. tcmalloc) are also NUMA-aware. tcmalloc docs claim that it does some sort of "magic" to make STL containers use its allocator instead of the default one but I cannot concur as I'm not a heavy user of both tcmalloc and C++.
One thing to consider when running on NUMA systems is thread binding. Some OpenMP runtimes already include provisions to control binding of threads to cores and forthcoming OpenMP standards will most likely include standard framework for specifying binding properties as it is now being discussed in the language committee.
|
$: << File.dirname(__FILE__) + '/../lib'
require 'rubygems'
require 'spec'
require 'action_mailer'
require 'mail_style'
def flatten_parts(parts)
nested = !parts.empty? ? parts.map { |p| flatten_parts(p.parts) }.flatten : []
[parts, nested].flatten
end
# Extract HTML Part
def html_part(email)
flatten_parts(email.parts).select{|part| part.content_type == 'text/html'}.first.body
end
def css_rules(css)
@css_rules = css
# Stubs
File.stub(:exist?).and_return(true)
File.stub(:read).and_return(@css_rules)
end
# Debugging helper
module Kernel
if ENV.keys.find {|env_var| env_var.match(/^TM_/)}
def rputs(*args)
puts( *["<pre>", args.collect {|a| CGI.escapeHTML(a.to_s)}, "</pre>"])
end
else
alias_method :rputs, :puts
end
end |
In its petals, it holds life; and, in its thorns, it holds death. It has been over a year since the adventures of Mist Island, and Trixie Rose is slowly settling into her old life. However, on the night of her sixteenth birthday, she receives a phone call from her Uncle Alfred who has many secrets to tell. Not only has he created the first transdimensional teleporter, but he has successfully sent video cameras to another world, Orcania.
However, Orcania is not a peaceful place. From a video feed, Trixie sees Starla and Leo desperately needing help. The world is at war over a rose, the Sapphire Rose to be exact. Legend says whoever posesses the Sapphire Rose rules Orcania. This is exactly what Dirdrom plans to achieve with his captive, Glade, Quarteze’s spirits of plants.
Trixie must join her friends and find the Sapphire Rose before it is too late. However, Trixie soon learns an important rule about this new world... In Orcania, nothing is what it seems. |
Q:
java, initialize SubClass from SuperClass
public class Base {
//long list of attributes
// no Constructor using fields
// no init methode
// i cannot change this class
}
now i extended the Base Class like:
public class subClass extends Base{
private boolean selected;
...
getter und setter
...
}
i become a list of Base object List<Base>
but i need the same list but as List<SubClass>
is there a way to initialize the Subclass from the Base Class?
example:
for(Base b: list){
SubClass sub = (SubClass)b; // Thats wrong i know
if(...){
sub.setSelected(true);
}
newList.add(sub);
}
i try to avoid the manual init of each Attribute of the Base Class to the SubClass
i update my Question as requested in the Comments:
the Design above is just an example. my QUESTIN EXACTLY IS:
why converting BaseClass into SubClass (sence Subclass extends BaseClass) is not Possible? why Java dosn't allow me to do the following:
example:
Class Base{
private String name;
.....
}
Class SubClass extends Base{
private String title;
}
then
Base b = DBController.getById(...);
SubClass sub = (SubClass)b;
after that the Object sub should have the Attribute Name from the Object b
and the title Attribute is null
why is this not the case in java?
sorry for my bad english,
thanks
A:
If you have a List<Base>, then you cannot convert it to a List<SubClass>. This is mainly because the list may not contain instances of SubClass. The best you can do is:
List<SubClass> newList = new List<SubClass>();
for(Base b: list){
if (b instanceof SubClass) {
SubClass sub = (SubClass)b;
. . .
newList.add(sub);
}
}
Generally, however, when you find yourself doing this kind of thing, there's something wrong with your design. You might want to avoid subclassing Base and using composition instead.
EDIT Based on your comments, it sounds like you want to construct a list of SubClass instances using a list of Base instances as a start. One approach is to define a constructor for SubClass that takes a Base as an argument.
public class SubClass extends Base{
private boolean selected;
public SubClass() {
// default constructor
}
public SubClass(Base original) {
// copy constructor -- initialize some fields from
// values in original, others with default values
}
...
getter und setter
...
}
Then you can construct your new list with:
List<SubClass> newList = new List<SubClass>();
for(Base b: list){
SubClass sub = new SubClass(b);
. . .
newList.add(sub);
}
A:
There is a way: Various Java Beans spec based manipulation.
For example:
Commons BeanUtils
for( Base base: list ){
SubClass sub = new SubClass();
PropertyUtilsBean.copyProperties( sub, base );
if(...){
sub.setSelected(true);
}
newList.add(sub);
}
This works based on get/setters of the same name. Doesn't copy internal fields.
If you needed to copy internal fields, it's actually not that hard to implement using javax.lang.reflect.
|
Gavin Weightman
I am a social historian with a special interest in the rise of industrialism and its impact on Britain and the world. I worked for New Society Magazine in the 1970s before I began a career as a producer-director of documentaries, working mostly for ITV. For nine years I ran my own television production company. Although I still act as a consultant for film companies I spend most of my time writing about social history. |
What is integrated care?
We have joined forces with our partner organisations to develop an integrated care animation.
It illustrates in layman’s terms the vision of joining health and social care across the district to deliver: right care, right place, right time.
Raf Rashid, GP and clinical board member, Bradford City CCG, said: “Integrated Care for Adults will encourage co-working and communication between the different organisations that provide support to our residents. It will provide a joined-up, holistic approach to care within communities and prevent the need for stays in hospital. This short DVD explains our vision to achieve ‘joined up’ care.”
*Integrated Care for Adults programme is run by local providers of health and social care, including our three clinical commissioning groups (CCGs), Bradford District Care Trust, Bradford Teaching Hospitals NHS Foundation Trust, Voluntary Services, and the City of Bradford Metropolitan District Council. |
Translation of a tumor microenvironment mimicking 3D tumor growth co-culture assay platform to high-content screening.
For drug discovery, cell-based assays are becoming increasingly complex to mimic more realistically the nature of biological processes and their diversifications in diseases. Multicellular co-cultures embedded in a three-dimensional (3D) matrix have been explored in oncology to more closely approximate the physiology of the human tumor microenvironment. High-content analysis is the ideal technology to characterize these complex biological systems, although running such complex assays at higher throughput is a major endeavor. Here, we report on adapting a 3D tumor co-culture growth assay to automated microscopy, and we compare various imaging platforms (confocal vs. nonconfocal) with correlating automated image analysis solutions to identify optimal conditions and settings for future larger scaled screening campaigns. The optimized protocol has been validated in repeated runs where established anticancer drugs have been evaluated for performance in this innovative assay. |
(WATCH IN HD) Hey loves!! I hope ya’ll are having a great day already(: So I wanted to talk to ya’ll about my personal experience using medical marijuana and how it has helped me with anxiety and life after cancer…
Walmart Tried Selling a Marijuana Christmas Tree This Year Original Source: https://goo.gl/X8TQZZ Walmart Tried Selling a Marijuana Christmas Tree This Year In the famous words of Bob Dylan, “The times they are a changin’…” As more Americans revise their opinions… |
Is there any chance that DPC will allow people to make mods for mini metro? As well as being fun to play with they could potentially take some strain off you lovely devs, if someone requests X feature you can point them Y mod.
It would be super lovely if we were set up to allow mods, but the game really isn’t built to allow for it and would require a pretty major overhaul to do so. When we started building the game, we didn’t quite expect people to be interested enough to want to mod it. Needless to say, we know better, and it is something we will definitely be factoring in for our future games. |
Q:
Should mapping value be declared in a constant or as an enum?
I see this scattered throughout code base:
@RequestMapping(value = "myValue")
I would prefer to use something like this:
@RequestMapping(value = Constants.myValue)
It seems to break DRY using the actual String value within @RequestMapping instead of constant.
But is this good code practice? Should I use an enum instead?
I may need to use Constants.myValue elsewhere in the code base.
A:
Should I use an enum instead?
You can't. Annotation variables must be compile-time constants. Enums and String literals both are, but you can't create an enum that is a String and @RequestMapping needs a String (and if your enum has a method that returns a String or a String field, that's not a compile-time constant). Since there are multiple rounds of annotation processing it does work when the constant is in another class.
That said: yes, I'd say using a dedicated constants class (perhaps several, for different types of constants) is a good practice that I use whenever I can (and it works with annotations as long as the constant a) is not defined inside the same compilation unit that has the annotation and b) is initialized in the declaration (as opposed to a static initializer block)).
Here's an example:
Controller
@Controller @RequestMapping(value = Mappings.CUSTOMER_PAGE)
public class CustomerPageController{
// methods here
}
Constants class
public static final class Mappings{
private Mappings(){}
public static final String CUSTOMER_PAGE = "path/to/customer/page"
// more constants
}
And here are some versions that won't work:
a)
@Controller @RequestMapping(value = CUSTOMER_PAGE)
public class CustomerPageController{
private static final String CUSTOMER_PAGE = "path/to/customer/page";
}
This won't compile because the annotation references a constant inside the class it annotates. This can't work because during compilation, annotations are processed in a separate round before the rest of the code, while the class needs the annotation to already be processed for compilation (i.e. there's a cicular dependency between annotation and constant)
b)
public static final class Mappings{
private Mappings(){}
public static final String CUSTOMER_PAGE;
static{
CUSTOMER_PAGE = "path/to/customer/page"
}
// more constants
}
Although this is a static final field, it is not a compile-time constant, hence it can't be used as an annotation parameter
|
Home electronic appliances or electronic apparatuses being currently presented on the market absolutely include a remote controller. The remote controller adopts an infrared communication method having simple implementations and low costs except for a wireless mouse or a keyboard. This remote controller is provided with additional buttons for performing motions of home electronic appliances or electronic apparatuses. A user has to search for a corresponding button for performing a desired motion, and has to locate the remote controller towards a corresponding home electronic appliance or electronic apparatus.
The conventional home electronic appliances or electronic apparatuses are being developed into an integrated type having integrated functions. One of the integrated type home electronic appliances or electronic apparatuses is a smart television. This smart television is being developed to implement various contents in the conventional TV function.
When implementing map contents, photos, web pages and menu icons through this smart television, converting the image, i.e., enlargements and reduces of images are required. However, it is not preferable to apply a touch screen due to characteristics of a television. Furthermore, using two remote controllers is not efficient in the aspect of costs and a user's convenience. |
The neurologic side effects of chemotherapeutic agents.
Neurologic dysfunction is a common side effect of many chemotherapy drugs. For several agents neurotoxicity is common, severe, and can be dose limiting. As the list of newer chemotherapy agents and systemic targeted therapies grows, so does the number and variety of potential neurotoxicities. This article reviews the clinical features of chemotherapy-induced syndromes involving the central and peripheral nervous systems. |
Q:
Transform a string to a hash
Is there any way/lib to transform a string to a hash ?
I have such string
{"hello"=>["world","perl"],"foo"=>"bar"}
and I would like to access the different values like if it was a hash
Thank you
A:
Convert the string with Perl data structure to a string with JSON data structure by substitute => with : and decode it with JSON package.
#!/usr/bin/env perl
use warnings FATAL => 'all';
use strict;
use Data::Dumper;
use JSON qw(decode_json); # use JSON::XS for more performance
my $string = '{"hello"=>["world","perl"],"foo"=>"bar"}';
$string =~ s/"=>/":/g;
print Dumper(decode_json($string));
Output
$VAR1 = {
'hello' => [
'world',
'perl'
],
'foo' => 'bar'
};
A:
Using eval():
#!/usr/bin/env perl
use strict;
use Data::Dumper;
my $string = qw( {"hello"=>["world","perl"],"foo"=>"bar"} );
print "String: $string\n";
my $hash = eval($string);
print "Hash: ", Dumper($hash), "\n";
Output
String: {"hello"=>["world","perl"],"foo"=>"bar"}
Hash: $VAR1 = {
'foo' => 'bar',
'hello' => [
'world',
'perl'
]
};
Using reval() and Safe if you are at all concerned about the input:
#!/usr/bin/env perl
use strict;
use Safe;
use Data::Dumper;
my $string = qw( {"hello"=>["world","perl"],"foo"=>"bar"} );
print "String: $string\n";
my $compartment = new Safe;
my $hash = $compartment->reval($string);
print $@ ? "reval error: $@" : ("Hash: ", Dumper($hash)), "\n";
|
Beauty Benefits of Vitamin C
We all know that Vitamin C is good for our health as it protects our immune system and helps us fight diseases but did you know that Vitamin C is also loaded with beauty benefits?
Vitamin C’s benefits extend to more than just our body health, it is also loaded with other benefits that will help us look good.
Skin Anti-Aging
Vitamin C helps the body in attaining full production of collagen- a protein that keeps the skin and other organs together, the element that is responsible for our skin’s elasticity and strength, thus, a regular intake of vitamin C equates to a younger and brighter-looking skin.
Vitamin C also helps in the creation of ligaments and scar tissue by reducing the rate of free radicals, thereby slowing the aging process and reduces the visibility of wrinkles, skin dryness and fine lines.
Benefits for Nails
The benefit of Vitamin C doesn’t stop there as the same effect extends to your nails. It helps strengthens the connective tissues that fortifies the nail bed and helps our nail to grow faster. It also prevents hang nails by assisting collagen formation.
Hair health
Vitamin C plays a pivotal role in growing and strengthening our hair as it helps in absorbing Iron – an element that keeps our hair strong and healthy. And as mentioned earlier, it also help absorb collagen that stimulates the hair follicles which helps your hair grow faster.
In achieving the above benefits, an optimum level of Vitamin C is needed. Bewell-C (Sodium Ascorbate) contains all the vitamin C your body needs minus the acidity. Bewell-C (Sodium Ascorbate) is a non-acidic Vitamin C supplement that is rapidly gaining popularity among the public as a high quality and effective brand. Bewell-C is the next generation vitamin C that provides all the benefits of vitamin C without the risk of hyperacidity.
For those who need both Vitamin C and Calcium, Bewell-C plus calcium is also available in the market. Just like Bewell-C, this product also uses non-acidic vitamin C paired with organic calcium fortified with Vitamin D for stronger bones and teeth. |
<%@ Application Codebehind="Global.asax.cs" Inherits="ToDo10240Service.WebApiApplication" Language="C#" %>
|
Drug Release from Pharmaceutical Co-Crystals: Are Therapeutic and Safety Properties of Active Pharmaceutical Substances Retained?
|
Q:
Deleting all words matching a regex pattern
I would like to remove the character sequences like "htsap://" or "ftsap://" from a String. Is it possible?
Let me illustrate my needs with an example.
Actual input String:
"Every Web page has a http unique address called a URL (Uniform Resource Locator) which identifies where it is located on the Web. For "ftsap://"example, the URL for CSM Library's home page is: "htsap://"www.smccd.edu/accounts/csmlibrary/index.htm The basic parts of a URL often provide \"clues\" to htsap://where a web page originates and who might be responsible for the information at that page or site."
Expected resulting String:
"Every Web page has a http unique address called a URL (Uniform Resource Locator) which identifies where it is located on the Web. For example, the URL for CSM Library's home page is: www.smccd.edu/accounts/csmlibrary/index.htm The basic parts of a URL often provide \"clues\" to where a web page originates and who might be responsible for the information at that page or site."
Patterns I tried: (not very sure it is a right way)
((.*?)(?=("htsap://|ftsap://")))
and:
((.*?)(?=("htsap://|ftsap://")))(.*)
Could anyone please suggest here?
A:
Since you're escaping your quotes within your sample Strings, I'll assume you're working in Java.
You should try:
final String res = input.replaceAll("\"?\\w+://\"?", "");
Here is a link to a working example of what does this regex match exactly!
How it works:
It matches and removes any sequence of alphanumeric characters (and underscores), followed by :// and possibly preceded and/or followed by ".
EDIT: How to achieve the same result using a Matcher?
final String input = "Every Web page has a http unique address called a URL (Uniform Resource Locator) which identifies where it is located on the Web. For \"ftsap://\"example, the URL for CSM Library's home page is: \"htsap://\"www.smccd.edu/accounts/csmlibrary/index.htm The basic parts of a URL often provide \"clues\" to htsap://where a web page originates and who might be responsible for the information at that page or site.";
final Pattern p = Pattern.compile("\"?\\w+://\"?");
final StringBuilder b = new StringBuilder(input);
Matcher m;
while((m = p.matcher(b.toString())).find()) {
b.replace(m.start(), m.end(), "");
}
System.out.println(b.toString());
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace mojoPortal.Web.UI.Pages {
public partial class ClosedPage {
/// <summary>
/// pnlOuterWrap control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.OuterWrapperPanel pnlOuterWrap;
/// <summary>
/// ctop1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.Controls.CornerRounderTop ctop1;
/// <summary>
/// pnlInnerWrap control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.InnerWrapperPanel pnlInnerWrap;
/// <summary>
/// heading control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.HeadingControl heading;
/// <summary>
/// pnlOuterBody control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.OuterBodyPanel pnlOuterBody;
/// <summary>
/// pnlInnerBody control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.InnerBodyPanel pnlInnerBody;
/// <summary>
/// litSiteClosedMessage control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal litSiteClosedMessage;
/// <summary>
/// divCleared control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.UI.EmptyPanel divCleared;
/// <summary>
/// cbottom1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mojoPortal.Web.Controls.CornerRounderBottom cbottom1;
}
}
|
These studies are concerned with the cell and molecular mechanisms involved in target cell lysis mediated by human lymphoid cells in vitro. These are complex reactions, but there appear to be three common steps; a) recognition - promoted by lymphocyte and target cell membrane interaction; which results in b) activation of the lymphocyte to become the effector cell; and c) lysis of the target cell, which can be either rapid or delayed. These studies have been predominantly directed toward understanding the mechanism(s) involved in cell lysis. Human lymphocytes, once activated, can secrete a family of protein in vitro which are cell-toxins. Physical-chemical studies reveal that LT molecules are proteins and can be separated on the basis of physical-chemical properties into four families, each with submembers. This situation appears to be the result of condensation of three monomer units to form dimers and tetramers. Antisera has been generated which will neutralize individual members or whole families of human LT molecules. Studies with purified IgG or Fab fragments provided definitive proof that these molecules are major lytic effectors in target cell lysis in vitro mediated by mitogen activated human lymphocytes. Initial data also suggests they participate in immune lytic reactions. LT molecules are present on the aggressor lymphocyte membrane, and the lymphoid cell may employ LT to cause cell lysis by two mechanisms, direct contact or secretion. Finally, initial studies have demonstrated that alpha and beta-LT molecules are present in the sera of human patients with various forms of ongoing cell mediated immune tissue destructive reactions. |
There are electric loads requiring for their starting-up or switching-on a current, known as “start-up current”, which can reach values which cannot be supplied by some types of power devices adapted to drive loads. Particularly, lateral flow power transistors, such as those manufactured by the BCD technology (Bipolar CMOS DMOS), as opposed to VIPower transistors, may not be capable of sustaining start-up currents of some types of loads, such as those used, for example, on motor vehicles, incandescent lamps or, generally, linear loads. These power transistors, operating as switches, manage the starting-up or switching-on step of the load by applying the auto-recovery mode.
According to the auto-recovery mode, when the current absorbed by the load reaches a predetermined threshold value, the power transistor is switched many times between the switching-off and starting-up, to supply the load with a current having a PWM-type trend and taking a maximum value not greater than the threshold value. The average current supplied to the load in the auto-recovery mode is such as to take it, during a suitable time range and without anomalies, to the standard operation. Indeed, when the maximum current absorbed by the load in a PWM cycle is less than the threshold value, the auto-recovery mode is interrupted and the power transistor remains switched to supply a nominal current to the electric load.
Electronic circuits on which power devices for driving electric load are integrated, offering the capability of operating in an auto-recovery mode, are often managed by a microcontroller outside the integrated circuit, such as, for example, the central unit of a car. Typically, such an outer or external microcontroller is capable of adopting protection provisions entailing the switching-off of the power devices in the presence of particular abnormal conditions.
Moreover, power devices, such as MOSFETs, driving loads have the capability of switching off when non-sustainable junction temperatures are reached, by performing a so-called thermal shut down. The occurrence of abnormal operation conditions are observed in which the power transistor does not supply the load which it was designed for, but instead supplies a short-circuit or an overload.
According to standard driving techniques, the short-circuit or overload conditions leading to an overcurrent state, are managed based on the auto-recovery mode until the occurrence of a temperature increase such as to cause the thermal shut down. |
Photo : Helen Sloan ( HBO )
Not everyone on Game Of Thrones got the satisfying conclusion they probably deserved, but it’s tough to argue with the way that Ser Jorah Mormont went out. After eight seasons of pining for Daenerys and then revealing he was actually there to spy on her, catching Greyscale, getting cured of Greyscale, surviving Jon Snow’s Suicide Squad, and then making it to Winterfell in time for the fight against the Army Of The Dead (and in time to meet up with the little girl entrusted with running his family’s house), Jorah went out defending his beloved Queen Daenerys from a horde of zombies just about five minutes before Arya shut the whole thing down. It was, essentially, the perfect way for Jorah Mormont to die. According to writer Dave Hill, though, the original plans for the show’s final season involved Jorah making it all the way to the end.
Speaking with Entertainment Weekly, Hill says that “for a long time” the writers “wanted Ser Jorah to be there at The Wall in the end,” with him coming out of the tunnel and going off to live in the wilderness along with Jon and Tormund in those very final moments. However, in what may be seen as a rare moment of foresight for the Thrones writers, Hill says they recognized that there’d be no way to easily justify the amount of narrative logic they’d have to “bend” in order to have Jorah be at The Wall when Jon gets there, especially since it would’ve probably required Jorah leaving Dany’s side at some point, either before or after her death, and aligning himself with the guy who killed her.
Entertainment Weekly, having unfettered access to all famous people, actually asked Jorah’s actor Iain Glen about this, and he seems happy to have gone out the way he did—if only because Jorah never had to see Daenerys destroy an entire city. “It’s a blessing for him that he never found out what happened to her,” Glen said, and it’s better that he died defending Winterfell because “his death served a greater purpose” than his survival would have. As for where Jorah’s story could have gone if he hadn’t died, Glen’s answer seems like the kind of take we would’ve actually expected from the Game Of Thrones writers: “Fuck if I know.” |
Temporal expression patterns of rainbow trout immune-related genes in response to Myxobolus cerebralis exposure.
Infection of salmonids by the myxozoan parasite Myxobolus cerebralis can cause whirling disease, which is responsible for high mortalities in rainbow trout hatcheries and natural populations in the United States. Although considerable research has provided insight into disease pathology, host invasion, and inheritance patterns of resistance, the causal genetic variants and molecular mechanisms underlying host resistance or susceptibility remain elusive. A previous study found that expression changes of specific metallothionein genes following M. cerebralis infection are implicated in whirling disease resistance. The present study examines the dynamic transcriptional response to infection of several upstream regulators of the metallothionein gene family (IL-1β, KLF2, STAT3, STAT5), along with innate immune response genes (IFN-γ, IRF1 and iNOS). Pathogen loads and gene expression were compared across multiple time points after M. cerebralis exposure to elucidate how resistant and susceptible rainbow trout strains transcriptionally respond to early invasion. IL-1β, IFN-γ, IRF1, and iNOS all showed increased expression following M. cerebralis exposure for one or both strains across multiple time points. The interferon-related genes IFN-γ and IRF1 had consistently increased expression in the susceptible strain in comparison to the resistant strain, likely due to a less effective initial immune response. STAT3 was the only gene with consistently increased expression in the resistant strain following infection while remaining unchanged in the susceptible strain. Given its pleiotropic effects on immune response, STAT3 is an excellent candidate for future research of whirling disease resistance mechanisms. |
Liquid crystal display (LCD) devices obtain a normal display state through controlling deflection of a liquid crystal (LC). The deflection of the LC incurs a response time, thus, display quality of the LCD device is determined by response speed of the LC. If the response time of the LC is long, some display defects are formed, such as a smear.
Usually, a voltage applied in the LCD device is improved to shorten the response time of the LC, thus, a driving circuit of an LCD panel needs to be improved, but a physical limit of the deflection of the LC has not been changed in the above-mentioned method. The LCD device needs be further improved to obtain better display quality. |
Q:
Tricky Curved Hardsurface, suggestions? (mandalorian helmet)
I'm stuck trying to figure out how to model this part of the mandolorian hemlet without sculpting.
any help, tips, references is greatly appreciated!
A:
In my opinion it would help if you had a side view, and use both images as background.
Begin with the right side, build a very simple topology that follows the lines. Switch to front view, move the vertices one by one to make them fit to this new view.
Fill the faces, add edge loops to sharp the angles.
|
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": false,
"experimentalDecorators": true,
"lib": [
"dom",
"es2017"
],
"moduleResolution": "node",
"module": "esnext",
"target": "es2017",
"noUnusedLocals": true,
"noUnusedParameters": true,
"jsx": "react",
"jsxFactory": "h"
},
"include": [
"src",
"types/jsx.d.ts"
],
"exclude": [
"node_modules"
]
}
|
Q:
Wrap parentheses
I'm trying to wrap parentheses around string in ruby, only if it isn't wrapped yet:
"my string (to_wrap)" => "my string (to_wrap)"
"my string to_wrap" => "my string (to_wrap)"
I've tried something like:
to_wrap = 'to_wrap'
regexp = Regexp.new "(?!\()#{to_wrap}(?!\))"
string.sub(regexp, "(#{to_wrap})")
but it does not work.
Thanks in advance!
A:
You are very close. Your first negative lookaround is a lookahead, though. So it looks at the first character of to_wrap. Just make that a lookbehind:
"(?<!\()#{to_wrap}(?!\))"
And just to present you with an alternative option to escape parentheses (it's really a matter of taste which on to use, but I find it more easily readable):
"(?<![(])#{to_wrap}(?![)])"
|
Q:
How to get WHICH WHOAMI result into variable in CSH
I want to put WHICH WHOAMI result into variable in c shell. I know I can make it like this in bash:
x=$(which whoami)
echo $x
But I have no idea how to achieve this in c shell.
Thanks in advance
A:
As answered previously here on Stack Overflow you may use the backtick in combination with set or setenv. As such:
set x = `which whoami` # Ordinary variable
setenv x = `which whoami` # Environment variable
Please use the search box in the top right corner of this very page next time, with a simple query like: "csh command output in variable" before posting a question.
|
Export function
The Export function is an idea used in economic theories to measure exports. The total amount of exports, E, in a nation is mainly affected by two variables, see import, the total foreign absorption and the real exchange rate.
E = E(A*,σ) Where A* and σ are variable functions related to the total foreign absorption and the real exchange rate.
For an explanation of the positive and negative relationship between exports and absorption and the real exchange rate, see import
See also
Import
export
elasticity (economics)
Notes and references
Category:Export |
Ascent Trip Report
Started up the Gorge Brook Trail from the Ravine Lodge trailhead up to the Moosilauke summit - then set out along the Carriage Rd trail to the South Peak - descended the Snapper Trail to return to trailhead. |
Luke has no name writes: Yesterday we discussed [MySQL founder] Monty Widenius's objections to the acquisition of MySQL by Oracle. Today, Oracle released a statement to address some of these issues. Among the facts, Oracle intends to continue releasing MySQL under the GPL, allow vendors to produce "any-license" third party engines, maintain the Reference Manual, invest millions into the product, and create a "customer advisory board". Thanks to LWN.net for the link. |
software
NoExit HyperCard Utility
No exiting or changing this stack!(unless you know the secret word is 'secret'!)This stack contains two simple handlers (scripts), designed to prevent unauthorized departure from (or changes to) your HyperCard stack.(If you need to ask why this would be desirable, you obviously have never dealt with the cleverness of young scholars in an academic setting!) |
Q:
Override approval page
I have object MyReports and I generate pdf attachment after data of record is approved.
Right now, after approval, I'm handling pdf creation with REST call in trigger, is there way to override whole approval page or just Approve button to allow pdf creation without REST?
A:
Yes, you can create custom approval process button. One of the ways is to create custom JavaScript button that will just redirect to submit page.
Something like this:
navigateToUrl('/p/process/Submit?id={!yourObejctId}&retURL=%2F{!yourObejctId}');
Other is to create button that will redirect to custom page and you can submit for approval in controller. check: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_process_example.htm
|
Role of nuclear receptors in the adaptive response to bile acids and cholestasis: pathogenetic and therapeutic considerations.
Cholestasis results in intrahepatic accumulation of cytotoxic bile acids which cause liver injury ultimately leading to biliary fibrosis and cirrhosis. Cholestatic liver damage is counteracted by a variety of intrinsic hepatoprotective mechanisms. Such defense mechanisms include repression of hepatic bile acid uptake and de novo bile acid synthesis. Furthermore, phase I and II bile acid detoxification is induced rendering bile acids more hydrophilic. In addition to "orthograde" export via canalicular export systems, these compounds are also excreted via basolateral "alternative" export systems into the systemic circulation followed by renal elimination. Passive glomerular filtration of hydrophilic bile acids, active renal tubular secretion, and repression of tubular bile acid reabsorption facilitate renal bile acid elimination during cholestasis. The underlying molecular mechanisms are mediated mainly at a transcriptional level via a complex network involving nuclear receptors and other transcription factors. So far, the farnesoid X receptor FXR, pregnane X receptor PXR, and vitamin D receptor VDR have been identified as nuclear receptors for bile acids. However, the intrinsic adaptive response to bile acids cannot fully prevent liver injury in cholestasis. Therefore, additional therapeutic strategies such as targeted activation of nuclear receptors are needed to enhance the hepatic defense against toxic bile acids. |
[Hyperintense punctiform images in the white matter: a diagnostic approach].
The presence of hyperintense punctiform images in the white matter in T2 weighted magnetic resonance (MR) sequences is a very common finding and is occasionally a diagnostic challenge for the radiologist. The present article attempts, using an anatomical approach to the brain circulation, as well as from histopathology correlation studies, to simplify the task of interpreting these images from the description of the three main patterns of hyperintense punctiform images in the white matter: vascular pattern, which corresponds to microvascular lesions; perivascular pattern, which represents inflammatory disease of which the paradigm is multiple sclerosis; and a non-specific pattern, which has to be a microvascular disease. From the various semiological elements in the MR images, a predominant pattern can be determined in each case and, in this way, helps in the differential diagnosis. |
[Awkward bodies, but not forgotten: representations of women and men about their wounded bodies].
In this qualitative study, which aimed to capture and analyze the representations of the body injured, it were collected, through in-depth interviews, the discourses of eighteen adults, with chronic wounds, users of an outpatient service of a public hospital in the city of Salvador-BA, that cares of wounded individuals. From the analysis of the statements, through Thematic Content Analysis, emerged the following categories, related to the wounded body: It is a strange that promotes suffering; It is constantly watched; It is rejected; It is a prisoner; It is vulnerable to violence; It requires special care, and It is a body in grief. Such representations are anchored in negative images and suffering, and reveal that, very different from the idealized body, the wounded body promotes mixed feelings and self-deprecating. The results showed that people with chronic wounds consider their own bodies as awkward; they experience negative feelings about their image, and mobilize alternatives for self-care and personal presentation, distinct from those activated before chronic state. |
Bioinspired Photonic Pigments from Colloidal Self-Assembly.
The natural world is a colorful environment. Stunning displays of coloration have evolved throughout nature to optimize camouflage, warning, and communication. The resulting flamboyant visual effects and remarkable dynamic properties, often caused by an intricate structural design at the nano- and microscale, continue to inspire scientists to unravel the underlying physics and to recreate the observed effects. Here, the methodologies to create bioinspired photonic pigments using colloidal self-assembly approaches are considered. The physics governing the interaction of light with structural features and natural examples of structural coloration are briefly introduced. It is then outlined how the self-assembly of colloidal particles, acting as wavelength-scale building blocks, can be particularly useful to replicate coloration from nature. Different coloration effects that result from the defined structure of the self-assembled colloids are introduced and it is highlighted how these optical properties can be translated into photonic pigments by modifications of the assembly processes. The importance of absorbing elements, as well as the role of surface chemistry and wettability to control structural coloration is discussed. Finally, approaches to integrate dynamic control of coloration into such self-assembled photonic pigments are outlined. |
Khenpo Tsultrim Lodrö
Khenpo Tsultrim Lodrö (Tib. མཁན་པོ་ཚུལ་ཁྲིམས་བློ་གྲོས་, Wyl.mkhan po tshul khrims blo gros) is one of the most important teachers currently living in Tibet. The main Dharma heir of Khenpo Jikmé Phuntsok, he teaches in Larung Gar. |
Binding specificity of recombinant odorant-binding protein isoforms is driven by phosphorylation.
Native porcine odorant-binding protein (OBP) bears eleven sites of phosphorylation, which are not always occupied in the molecular population, suggesting that different isoforms could co-exist in animal tissues. As phosphorylation is a dynamic process resulting in temporary conformational changes that regulate the function of target proteins, we investigated the possibility that OBP isoforms could display different binding affinities to biologically relevant ligands. The availability of recombinant proteins is of particular interest for the study of protein/ligand structure-function relationships, but prokaryotic expression systems do not perform eukaryotic post-translational modifications. To investigate the role of phosphorylation in the binding capacities of OBP isoforms, we produced recombinant porcine OBP in two eukaryotic systems, the yeast, Pichia pastoris, and the mammalian CHO cell line. Isoforms were separated by anion exchange HPLC, and their phosphorylation sites were mapped by MALDI-TOF mass spectrometry and compared to those of the native protein. Binding experiments with ligands of biological relevance in the pig, Sus scrofa, were performed by fluorescence spectroscopy on two isoforms of recombinant OBP expressed in the yeast. The two isoforms, differing only by their phosphorylation pattern, displayed different binding properties, suggesting that binding specificity is driven by phosphorylation. |
A TSA inspector decided to get a closer look at some American Eagle jets at O'Hare, so he climbed up on them, using a fragile, vital instrument (the Total Air Temperature probes) as handholds. He damaged the craft so badly that the regular maintenance crew grounded them — and if they hadn't noticed, the lives of everyone on-board could have been endangered. Remember, folks, the "S" in TSA stands for "Security."
Citing sources within the aviation industry, ABC News reports an overzealous TSA employee attempted to gain access to the parked aircraft by climbing up the fuselage… reportedly using the Total Air Temperature (TAT) probes mounted to the planes' noses as handholds.
"The brilliant employees used an instrument located just below the cockpit window that is critical to the operation of the onboard computers," one pilot wrote on an American Eagle internet forum. "They decided this instrument, the TAT probe, would be adequate to use as a ladder." |
You are here
Income and Benefits
The Office of the Ombudsperson receives complaints about the public’s access to public funding and benefits, typically income and disability assistance.
Related resources – including those concerning access to housing and healthcare - are cross-referenced and may be accessible under Income and Benefits.
If you have been treated unfairly by the provincial government, a local government, or any other public body, the B.C. Ombudsperson is here to help. Information on our convenient and confidential contact options here. |
Q:
Can two profile types be created with one role?
I have created two profile types Self Employee and Salaried Employee for the role Employee.
I want to present these profile forms inside the user account edit form. For that, I'm using the Account Profile module. However, it's only showing the Self employee form.
Is it possible to show multiple profiles for role?
A:
Yes, with Account Profile, multiple profiles can be embedded for given role. In order to make this happen, you need to:
Make sure both profile types have the Show this profile as part of user account form. checked on profile settings page (i.e. the edit links in /admin/structure/profiles).
Make sure the role in question has both the Edit own profile & View own profile permissions set for each profile type.
|
Q:
Term for how the Landlord makes sure he's covered
When a landlord rents a property, he can insure himself in one of two ways:
Security Deposit - an item or amount of money that is in the possession of the landlord and can be used to cover damages or failure to pay rent
Guarantor - a person or body that accepts the responsibility to pay if the tenant is not able
What word can be used to group these terms together?
I am trying to find a good name for a tab in which the user can define whether the Contract uses one (or both) of these methods.
So far I have financial protection. Any other suggestions?
A:
These are both sureties:
security against loss or damage or for the fulfillment of an obligation, the payment of a debt, etc.; a pledge, guaranty, or bond.
a person who has made himself or herself responsible for another, as a sponsor, godparent, or bondsman. - Dictionary.com
|
MagicBricks: In a scenario where individuals are considering property as an investment option, how do they ensure safety of property while leasing it out?
Asha Basu: Firstly do check the antecedents of the tenant. Get the tenant verification form filled up. Also ensure that the lease deed contains all the necessary clauses relating to rent, term of the lease, reasons of termination and repairs. All these clauses will have to be stated quite clearly in the agreement. |
Q:
Where does an Easy Extends version of Sonata Page Bundle put ORM mappings by default?
Our team generally uses annotations in our entity definitions to define ORM relationships.
I am now adding to a project in which Easy Extends was used to extend the Sonata Page Bundle.
It looks like my Page.php entity definition includes annotations for the JMS Serializer utility, but not for ORM relationships.
Is there a place where ORM relationships are placed by default when this set of tools is used?
A:
Sonata by default uses .xml for mappings, you can find PageBundle mappings in src/Application/Sonata/PageBundle/Resources/config/doctrine.
|
Who can resist those brown eyes when your dog is staring up at your waiting for the smallest bit of food to hit the floor. It’s hard to resist giving your dog a few scraps while you’re eating. Can just a small piece of human food really hurt your dog? The answer is, possibly yes. Here are a list of foods that can be dangerous to your dogs health. |
The present disclosure generally relates to grade of service, and more particularly to a grade of service control closed loop.
Grade of Service is typically implemented using Classes of Service in hardware, for example in networking devices such as a router or switch. However, class of service implementations vary depending on the vendor of the hardware. Specifically, depending on the hardware chosen and the type of services offered (e.g., managed router service, virtual private network, cloud services, etc.), different hardware devices are used. However, each hardware device has its own limitations and capabilities that is to be considered in defining the class of service behavior and the underlying service. |
Share via
Buying property on Bond Street in London is as secure and lucrative an investment as buying gold, thanks to soaring rents and values in Europe’s most expensive street.
Research by the global property services group DTZ comparing the capital value and investment returns from buying gold with those of buying bricks and mortar in the Mayfair street show a similar level of performance.
That could explain why rich investors concerned about threats to the eurozone and volatility in the global equity and debt markets are increasingly targeting property in the street, which is home to luxury shops such as Tiffany, |
Factors influencing the commercialisation of cloning in the pork industry.
Production of cloned pigs using somatic cell nuclear transfer (SCNT) is a repeatable and predictable procedure and multiple labs around the world have generated cloned pigs and genetically modified cloned pigs. Due to the integrated nature of the pork production industry, pork producers are the most likely to benefit and are in the best position to introduce cloning in to production systems. Cloning can be used to amplify superior genetics or be used in conjunction with genetic modifications to produce animals with superior economic traits. Though unproven, cloning could add value by reducing pig-to-pig variability in economically significant traits such as growth rate, feed efficiency, and carcass characteristics. However, cloning efficiencies using SCNT are low, but predictable. The inefficiencies are due to the intrusive nature of the procedure, the quality of oocytes and/or the somatic cells used in the procedure, the quality of the nuclear transfer embryos transferred into recipients, pregnancy rates of the recipients, and neonatal survival of the clones. Furthermore, in commercial animal agriculture, clones produced must be able to grow and thrive under normal management conditions, which include attainment of puberty and subsequent capability to reproduce. To integrate SCNT into the pork industry, inefficiencies at each step of the procedure must be overcome. In addition, it is likely that non-surgical embryo transfer will be required to deliver cloned embryos, and/or additional methods to generate high health clones will need to be developed. This review will focus on the state-of-the-art for SCNT in pigs and the steps required for practical implementation of pig cloning in animal agriculture. |
obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o
obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o
|
Knowing and acting in the clinical workplace: trainees' perspectives on modelling and feedback.
In this article we discuss clinical workplace learning using a dual approach: a theoretical one and an empirical one. Drawing on the philosophical work of Aristotle, Polanyi and Schön we posit that the 'knowing and acting' underpinning day-to-day medical practice is personal and embraces by nature a tacit dimension. Consequently, imparting and acquiring this knowledge type necessitates personal interaction between trainer and trainee. The tacit dimension particularly influences modelling and feedback. In our empirical exploration we explore these educational routes in two disparate disciplines: surgery and paediatrics. We use a longitudinal design with in-depth interviewing. Our conclusion on modelling is: modelling is a dynamic and fragmented process reflecting discipline bound characteristics and working styles. On feedback it is: 'feedback' serves as vehicle for three distinctive forms of commenting on performance, each holding a specific power of expression for learning. We propose to view clinical workplace learning as: an interactive master-apprenticeship model encompassing modelling and feedback as natural educational routes. We conceptualise modelling and feedback as 'function' of interaction (developing grounded theory). Modelling function and feedback function may serve to study these routes as didactical components of ongoing interaction between trainer and trainee rather than an educator-driven series of unrelated events. |
Q:
How to tell if iPhone application was launched by backgrounding or not
My application uses NSUserDefaults to store some values so that it can restore them on application update or if backgrounding is quit. Backgrounding automatically saves my integer values, but if the user quits the application from the launcher, the numbers are lost too, and the ViewDidUnload method I guess doesn't evoke when entering backgrounding. Is there a way that I can save the NSUserDefaults any time the application unloads. Also, the ViewDidLoad method had the same problem, it doesn't evoke from backgrounding. What's a way around this?
P.S. So far the only data my application needs to save is an int for an on-screen count.
UPDATE: UIApplicationDidEnterBackgroundingNotification works great with your suggestions!
A:
You can't save data right before it eventually gets killed, but you can save state 'just in case' in your applicationDidEnterBackground: app delegate.
There's also applicationDidBecomeActive:, but there's no reason to load your save data from there, since when it's invoked from an app that was in the background, the data will have been preserved any way.
|
EVEN the ancient legend that is Madame Arcati finds herself astonished. I thought I’d heard and seen it all. Hugh Grant – yes, the man who is the current incarnation of British movie upper class cock-cunter – has saved the New Statesman. His naughty article on how he stitched up a former News of the World hack (see previous post) on illegal phone hacking in the Murdoch empire is now trending on Twitter. This is thanks to the feature going online (not from purchase!) – drawing in tens of thousands of new readers and reinventing the magazine in the process.
The mag now understands that celebrity power is its future, particularly since it is Stephen Fry who’s leading the battle tweet (with a link to the mag that doesn’t work). I tweeted first, natch. Also, countless people now know of the skulduggery at the Screws even though much of Hugh’s nuggets are not new. |
The present disclosure relates to a ceramic dielectric composition able to be used in automotive electronics and having excellent mechanical strength and electrostatic discharge (ESD) protection characteristics, and a multilayer ceramic capacitor containing the same.
In general, electronic components using a ceramic material, such as capacitors, inductors, piezoelectric elements, varistors, or thermistors, or the like, include a ceramic body formed of a ceramic material, internal electrodes formed in the ceramic body, and external electrodes mounted on surfaces of the ceramic body to be connected to the internal electrodes.
Among ceramic electronic components, multilayer ceramic capacitors commonly include a plurality of stacked di electric layers, internal electrodes disposed to face each other with respective dielectric layers interposed therebetween, and external electrodes electrically connected to the internal electrodes.
Multilayer ceramic capacitors have been widely used as components of mobile communications devices such as tablet computers, personal digital assistants (PDA), mobile phones, and the like, due to inherent advantages thereof, such as a small size, high capacitance, ease in the mounting thereof, and the like.
Particularly, multilayer ceramic capacitors for automotive applications should have excellent mechanical strength and excellent electrostatic discharge (ESD) protection characteristics.
Generally, a dielectric material satisfying X7R characteristics as a ferroelectric material, or a C0G-based (C-zero-G) paraelectric material, have been used as a ceramic dielectric composition applied to a multilayer ceramic capacitor having electrostatic discharge (ESD) protection characteristics.
A ferroelectric material has a high degree of permittivity, and thus provides an advantage in that a dielectric layer may be designed to be relatively thick. However, when evaluating electrostatic discharge (ESD) protection characteristics, electrostrictive cracks may occur under a high electric field environment or capacitance may be decreased due to DC-bias characteristics, such that a higher voltage may be actually applied to the capacitor, thereby deteriorating the ESD protection characteristics.
The C0G-based paraelectric material has a low permittivity, such that a dielectric layer should be relatively thin, and thus, withstand voltage characteristics may be deteriorated, such that ESD protection characteristics may not be satisfied.
Therefore, research into a dielectric material having relatively high permittivity due to permittivity that remains unchanged regardless of a direct current (DC) electric field, while having excellent DC-bias characteristics, as a dielectric composition of an automotive electrostatic discharge (ESD) protection capacitor, has been required. |
Postoperative pneumonia in the intensive care unit.
Postoperative pneumonia in the surgical patient may occur from atelectasis and inadequate postoperative TV, from ventilator-associated pathophysiology and from aspiration. Each process ultimately elicits the proinflammatory responses from the lung in the effort to eradicate the infectious pathogens. Postoperative pneumonia is best prevented by maintaining a clear understanding of the biologic basis for infection in the lung. Therapy requires aggressive tracheobronchial drainage strategies and antibiotic therapy directed toward the pathogens that are producing the pulmonary inflammatory response. |
A field effect transistor (FET) is a three-channel circuit device comprising a gated channel region between a source and a drain. FETs have numerous applications in integrated circuitry. For instance, FETs may be utilized in memory; and may be, for example, utilized in combination with capacitors to form dynamic random access memory (DRAM) unit cells; utilized as select devices relative to NAND strings; utilized as select devices for controlling access to programmable metallization cells (PMCs); etc. Additionally, or alternatively, FETs may be utilized in logic.
There are continuing goals to develop improved FETs and improved methods of forming FETs. |
Oh, I should really do an olympics Korrasami series next time they come around.
The Republic City Rebels Football team is kind of canon I think? Its from a game cartoon network released on their site. So these were official designs. |
Anxiety medications flushed down toilets in our pee causing heightened appetite and boldness in fish. Soon the global water supply will be a giant soup of antidepressants. Via the Los Angeles Times:
Pharmaceuticals may be affecting the behavior of wild fish as [the drugs] filters out of our bodies, through our toilets and into treated wastewater that is released into natural water sources, according to a new study.
The findings, which examined the effect of trace levels of the anti-anxiety medication oxazepam on wild European perch, have implications for the survival rates of fish and the delicate food web in aquatic ecosystems.
Scientists have known for years that such “micropollutants” end up in natural waterways like streams and rivers after being flushed through human systems into wastewater. But current research hasn’t really looked at whether psychotherapeutic drugs can affect the behavior of aquatic creatures.
The researchers’ findings could well reflect reality in waters worldwide: Their low concentrations in the lab were roughly equivalent to levels found in wild fish in the River Fyris in Sweden. The study may require humans to rethink the idea of pollutants, lead author Tomas Brodin, a researcher at Umea University in Sweden. |
Colin Pesyna
Academics
I am a medical student with a strong interest in computer science,
statistics, and applied mathematics. Rather than applying these quantitative
tools to basic research problems, I am excited about their potential to help us
better understand how care is delivered in hospitals and clinics, how patients
relate to their diseases and the healthcare system, and how medical
professionals do their jobs. I maintain a particular interest in organizing and
mining the massive amounts of data produced every day at all levels of the
healthcare system with an eye towards patient safety and quality
improvement.
I am excited to be applying for the match in emergency medicine.
Organizations
Present
Past
Board member, Emergency Medicine Interest Group
Personal Projects
Aggregate Knowledge In order to keep my techy/quantitive side
happy, I worked part time as a computer scientist for Aggregate Knowledge. My role there
was to do proof-of-concept engineering and basic research into potential ways to
solve some of the technical challenges faced by a company handling data
generated on the scale of billions of events per day. I learned a lot, and
developed exactly the sorts of skills that I hope to bring to my medical
research in the future. You can read a little bit about our work on the company blog.
Analyzing the Student Doctor Network (SDN) forums: The SDN is a
"nonprofit educational community for students and doctors spanning all the
health professions." One of the services they provide is a forum where medical
school applicants can discuss the current application cycle in an aggregate or
school-by-school manner. I wrote some code to scrape these forums and
have been playing around with some of the data I've gathered. Once the school
year settles down a little bit, I plan to write up some of this work and post
it here. For now, unfortunately, the undocumented code on github, and this are all that I can
offer you.
Balluminescence:Willy Chyr
and I, along with a few friends built some massive balloon + LED sculptures
which were put on display in the Biological Sciences Learning Center at the
University of Chicago. You can see a write-up of the work here and
pictures of the sculptures on Willy's site. The project was eventually featured
at LabFest! in Millenium Park, but I had moved out of Chicago by that point. |
Q:
Multi-Test TestNG.xml file results in java.lang.NullPointerException
Multi-Test TestNG.xml file results in java.lang.NullPointerException
Hello Quality Team,
I need help getting TestNG to run multiple tests from one XML file. So far my efforts to do this result in a java.lang.NullPointerException OR the test(s) fake_execute="says it ran...but how can it have run if it didn't start selenium?"
One final note: All of the tests run SUCCESSFULLY when run using a stand-alone XML file
Below is my XML file
<test name="Simple example">
<groups>
<run>
<include name="groupA" />
<include name="groupB" />
</run>
</groups>
<classes>
<class name="test.LoginPageTest"/>
<class name="test.PurchaseItemTest"/>
</classes>
</test>
</suite>
When TestNG/Selenium throws the Null Pointer Error it is always failing on a selenium.open(URL), selenium.windowMaximize(), selenium.windowFocus().
I use a SeleneseTestNGHelper file that starts Selenium and handles some base-level selenium functionality.
Here is the command from the Test that my test is failing on
@Test (dataProvider = "Login_Test", groups = {"groupA"})
public void testLoginPage(String string1, String string2) throws Exception {
// Super-size & Focus on Selenium Test Window
//selenium.windowMaximize();
//selenium.windowFocus();
// Start your motors and get to testing
try { selenium.open("http://www.google.com"); }
catch(Throwable e)
{e.printStackTrace(); }
}
Here is the method called
public void open(String string) {
selenium.open(string);
selenium.windowMaximize();
selenium.windowFocus();
}
A:
I don't see any code that actually initializes your selenium field, where is this happening?
Wherever it is, make sure it's initialized in a @BeforeMethod or @BeforeClass.
Also, here is some relevant documentation:
http://testng.org/doc/selenium.html
|
{% extends "admin/delete_selected_confirmation.html" %}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.