text stringlengths 16 69.9k |
|---|
Q:
'mutable' variable mutable only by one of the const methods?
today I have learned about the mutable keyword in C++ and would like to use it in my code.
I have a class with many const methods and one of them should be able to modify some of the object's variables (conserving the logical state of the object). However I don't want to let all the const methods to modify the variable, only the selected one. Is there any way of doing that? Maybe with const_cast?
(The code I am talking about is an implementation of the Union-Find structure. The Find operation does not change the logical state of the structure (it only searches for a root of a tree), but changes the physical state by doing so-called path compression)
Thanks!
EDIT: I have added an excerpt from the code I am referring to:
class UnionFind {
public:
void Union(int a, int b) {...}
int Find(int x) const {
// logically, this method is const
while(x != parents[x]) {
// path compression
// the next three lines modify parents and sizes,
// but the logical state of the object is not changed
sizes[parents[x]] -= sizes[x];
sizes[parents[parents[x]]] += sizes[x];
parents[x] = parents[parents[x]];
x = parents[x];
}
return x;
}
int someOtherMethodThatAccessesParents() const {
// this method does access parents, but read only.
// I would prefer if parents behaved like if it was
// not 'mutable' inside this method
...
}
private:
// these have to be mutable if I want the Find method
// to be marked const (as it should be)
// but making them mutable then does not enforce
// the physical non-mutability in other const methods :(
mutable std::vector<int> parents;
mutable std::vector<int> sizes;
};
A:
On first glance this can't be achieved unless you use a nasty const_cast. But don't do that since the behaviour on attempting to modify a variable following a const_cast that was originally declared as const is undefined.
However, it might be feasible to achieve what you want using friendship since that can be controlled on a function by function basis whereas mutability, as you correctly point out, cannot be.
Put the variable you want to modify in a base class and mark it private. Perhaps provide a "getter" function to that member. That function would be const and would probably return a const reference to the member. Then make your function a friend of that base class. That function will be able to change the value of that private member.
|
BERLIN — Supporters of rebels fighting to topple Syrian President Bashar Assad expressed disappointment Tuesday at President Obama's insistence that the United States needs more facts about Assad's use of chemical weapons before ordering American response.
"Obama will never get the concrete evidence he wants unless there's a full U.N. investigation, to which Assad will not agree," said Abdulwahab Omar, a Syrian anti-Assad activist based in London. |
Q:
Nodejs callback with parameter
My friend and I have been struggling with Node.js callbacks since yesterday. We have the following function:
// helperFunction.js
function foo(param) {
request.get({
url: <url>
headers: {<headers>}
}, (err, response, data) => {
array = []
obj.forEach(function (entry) {
// do stuff with array
};
});
return array;
});
}
module.exports.foobar = foo;
then we call that from our app.js.
Since yesterday, we have updated the code to wait for the callback by using a function, like so:
// app.js
//var bar = require('./helperFunction');
//console.log(helperFunction.foobar('param')); // prints undefined
function bar(){
console.log('Log something')
}
foo(bar);
but we don't know how to pass the parameter to foo. I tried to add param (which is a string) to bar but it doesn't work.
For the record, I'm aware of other posts such as this, but I cannot make it work on my code.
A:
In foo you just add a callback parameter and instead of returning you call this function. As a convention, the first parameter of the callback function is the error object. If no error occurred, this object is null and the following parameters are the actual result of the function. Your code didn't include error handling so I added it. If error exists you won't receive any data and foo can't calculate whatever it tries to calculate. In this case, foo should either try to solve the problem itself or propagate the error to its caller.
function foo(param, cb) {
request.get({
url: <url>
headers: {<headers>}
}, (err, response, data) => {
if (err) {
return cb(err);
}
array = []
obj.forEach(function (entry) {
// do stuff with array
};
});
cb(null, array);
});
}
function bar(err, data){
console.log('Log something')
}
foo('some param', bar);
|
Q:
Find edge-disjoint paths (not the number, the paths)
given a directed graph we can use edmonds-karp or ford-fulkerson algorithms to find the maximum number of edge disjoint paths in a directed graph.
Say there are k edge-disjoint paths in G, how can one find the actual paths in polynomial time? My best choice is BFS and once a path is found mark those edges as used.
Thanks a lot!
A:
You can use flow decomposition. It goes like this:
Let's run a depth-first search from the start node and ignore the edges that have a zero or a negative flow.
Once you reach the terminal node, subtract one from the flow through all edges on the path from the start node to the terminal one and print them (they form a path).
Keep doing this as long as the terminal node is reachable.
Each run uses a polynomial amount of time and finds and removes one path from the graph. The number of disjoint paths is clearly polynomial, so this algorithm has a polynomial time complexity.
You can also use breadth-first search, too (you still need to ignore edges with a non-positive flow).
|
Show HN: Codec-beam – Generate Erlang VM byte code from Haskell - hkgumbs
https://github.com/hkgumbs/codec-beam
======
sargun
Cool!
Just curious, what's the use case? Are you trying to integrate Haskell and
Elixir / Erlang? From my understanding GHC produces faster code than the speed
at which BEAM can interpret code.
~~~
hkgumbs
Thanks for taking interest! Honestly, my "use case" is just curiosity about
language implementation. I'd been hearing quite a bit of excitement around
BEAM, so I wanted to explore its viability as a standalone compilation target,
without relying on the existing Erlang toolchain.
|
import Component from 'components/component';
import cx from 'classnames';
import forEach from 'lodash/forEach';
import React from 'react';
import PropTypes from 'prop-types';
import styles from './index.less';
export default class Button extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
onClick: PropTypes.func,
className: PropTypes.string,
style: PropTypes.object,
primary: PropTypes.bool,
full: PropTypes.bool,
big: PropTypes.bool,
noBackground: PropTypes.bool,
bordered: PropTypes.bool,
grey: PropTypes.bool,
small: PropTypes.bool,
thin: PropTypes.bool,
smallFont: PropTypes.bool,
disabled: PropTypes.bool
};
static defaultProps = {
primary: true,
full: false,
big: false,
noBackground: false,
bordered: false,
smallFont: false,
disabled: false
};
render () {
const {onClick, className, ...classes} = this.props;
let resultClassName = cx(styles.button, className);
forEach(classes, (value, key) => {
if (styles[key] && value) {
resultClassName = cx(resultClassName, styles[key]);
}
});
return (
<button className={resultClassName} onClick={onClick} style={this.props.style}>
{this.props.children}
</button>
);
}
}
|
Q:
A Polymorphism Problem
it works when :
list<ItemFixed> XYZ::List()
{
list<Item> items = _Browser->GetMusic();
list<ItemFixed> retItems = _Converter->Convert (items);
return retItems;
}
but not :
list<ItemFixed> XYZ::List()
{
return _Converter->Convert (_Browser->GetMusic());
}
Any suggestions?
thanks
A:
Are you passing the list<Item> as non-const reference to Convert function? In that case it will not compile as you can not pass temporary object by non-const reference in C++.
|
{
"layers": {
"AIRS_L3_Surface_Skin_Temperature_Monthly_Day": {
"id": "AIRS_L3_Surface_Skin_Temperature_Monthly_Day",
"title": "Surface Skin Temperature (L3, Day, Monthly)",
"subtitle": "Aqua / AIRS",
"description": "airs/AIRS_L3_Surface_Skin_Temperature_Monthly_Day",
"tags": "",
"group": "overlays",
"product": "AIRS3STM",
"layergroup": [
"airs"
],
"daynight": [
"day"
]
}
}
} |
Site Navigation
Search form
Site Navigation
WELCOME TO
David K. Dahlgren Funeral Home
Our Funeral Home has made a commitment to serve our community. All of the families that we serve are important to us. We constantly strive to offer a wider variety of options to each and every one of them.
Take time to review the pages of our website. Integrity and quality service have always been our top priority when dealing with grieving families. We are here to assist you with the preplanning of a funeral or help families plan a service to celebrate the life of a loved one.
Selecting the type of funeral, whether it’s traditional or a more unique and personalized reflection and celebration of one's life, we offer many options along with personal guidance from one of our experienced funeral planners. We will help you to choose the service which best reflects your family’s desires for a service to remember and a memory to cherish.
Finding the best information and people you can work with is tough. We've compiled some information to help you prepare a unique and personalized service for your loved one. Our knowledgeable and experienced staff is here help.Click here to contact us with any questions.
“Grief is the feeling of reaching out for someone who’s always been there, only to discover when I need her [or him] one more time, she’s no longer there.”Anonymous
When someone you care about dies, it is one of life’s most painful events….perhaps even the MOST painful event you might experience. Our reaction to death is many faceted and extremely difficult to discuss. In many circumstances, those engulfed in grief are left alone to cope with their pain...especially after the initial couple of weeks have passed.
During the funeral service, common sense and empathy for those grieving are expected in today’s society. When someone you care about is struck with a death in their family, your natural instinct is to lend your heart and hand in any way. We have put together a guide to help display caring and appropriate behavior, giving you the confidence in knowing your gestures are well received and in good form.
The next steps are often difficult to plan. Who to call, where to start with memorial invitations, where to hold the reception.. We know there is a lot to do and we are available for all your needs. To help with the next steps of the planning process, our funeral care professionals have created a checklist to help guide you along the way. |
Da qui a seguire la via e' preclusa a chiunque,
se non al Prescelto. Devi proseguire tu, Justin.
Confessa le tue speranze agli spiriti.
Non appena essi verranno toccati dai tuoi desideri...
...il mondo...l'umanita', una nuova volta, cambiera'.
Non conosco bene queste cose, percio' te lo dico:
non ci sto capendo un BEL NIENTE!
Ma su UNA cosa sono sicuro.
Jus...tu sei OK!
Tutto questo parlare di "verita' " e "armonia"
mi va a genio. Tu...puoi farcela, Jus!
Percio' fai quello che devi fare
e poi torna qui, va bene!?
E' stato un lungo viaggio.
Ma eccomi qui.
Pronto a conoscere le risposte.
Sono qui per capire cosa hanno perso spiriti
e uomini, nei tempi antichi...e cosa dobbiamo proteggere insieme.
Voglio sapere cosa dobbiamo fare per costruire
insieme un futuro migliore!
Questo e' il mio ruolo!
Noi umani...
...non abbiamo fatto altro che ripetere
i medesimi errori, ancora e ancora.
Come per i leggendari icariani!
Noi abbiamo...abbiamo lasciato morire LEEN!!
E ora Feena...per colpa nostra la tragedia
sta per compiersi di nuovo!
Siamo davvero cosi' deboli?!
Non siamo nemmeno in grado di CAMBIARE le cose?!
IO SO CHE POSSIAMO!!
Possiamo cambiare il nostro destino!!
Basta con tutto questo!!
Basta sacrifici inutili!!
Io non posso sopportare la vista
di altri visi sofferenti!
Voglio liberare questo mondo dalla catena di dolore
e costruirne uno nuovo, nell'armonia di voi spiriti!
Quindi, per favore...AIUTATEMI!!
Non possiamo piu' andare avanti cosi' !
Datemi il potere di combattere Gaia!
Datemi il potere di costruire un nuovo futuro!!
Ce l'hai fatta, Jus!!
IO LO SAPEVO!!
Le antiche leggende stanno per compiersi, Justin.
Hai finalmente ottenuto
il potere che venne donato agli icariani
per riunire l'umanita' al mondo!
ORA capisco!
Gli spiriti hanno sempre cercato di tenderci la mano...
...per costruire insieme un NUOVO FUTURO!!
Sono sicuri che il loro volere riuscira' a raggiungere
entrambi, Feena e Mullen!!
Ma come...?
Pare che Gaia abbia raggiunto la fase finale
della propria metamorfosi.
Le spore di Gaia si stanno disperdendo a ogni
angolo del mondo, non ci e' rimasto altro tempo!
Se non ci opporremo presto Gaia avra'
conquistato il globo!
NON LO PERMETTEREMO!!
Rapp, Liete, coraggio! I passaggi sotterranei
della base dovrebbero portarci vicino a Gaia!
Justin, Rapp...lo sentite?
L'edificio e' stato sfondato.
Gaia sta crescendo!
Deve esserci un modo per raggiungerne
il cuore stesso!
Che sia di qua?!
Ci portera' da Gaia. Ne sono sicura.
Cosa aspettiamo!? Forza, Jus!!
|
Evaluation of two AIDS prevention interventions for inner-city adolescent and young adult women.
Two hundred and fourteen young women received acquired immunodeficiency syndrome (AIDS) prevention interventions at an inner-city family health center serving minority patients predominantly. The community in which the health center is located has a high incidence of intravenous (IV) drug abuse. Either a peer or a health care provider delivered the intervention. In the peer-delivered intervention, a trained peer educator reviewed with patients an AIDS "Rap" videotape and several AIDS brochures, which imparted information about human immunodeficiency virus (HIV), its transmission, and prevention. In the provider-delivered intervention, family practice residents, attending physicians, and nurse practitioners used a patient-centered counseling approach to convey the same information. Questionnaires administered immediately before and after the intervention and at one month follow-up evaluated changes in knowledge, attitudes, and behavior. Analyses of data from both combined intervention groups revealed significant improvements in several areas of knowledge, including the effectiveness of using a condom and cleaning IV drug implements with bleach to prevent transmission of HIV. Many improvements were retained at the one-month follow-up. In addition, subjects in both groups who were sexually active stated immediately after the intervention that asking a sexual partner about past sexual experience would now be less difficult, and at one-month follow-up they reported a significant decrease in the frequency of vaginal sex. Our findings suggest that counseling by physicians can achieve more changes in knowledge of sexual risks, whereas peer education can achieve greater changes in knowledge about IV drug use. Results show that both approaches to AIDS prevention used in this study can significantly affect knowledge, attitudes, and sexual behavior. |
Q:
Where can I find the logs for my Electron app in production?
I've built an app with Electron and used Electron-Builder to create a Squirrel windows installer and updater. It all works great but I'm having trouble debugging the production version of my app.
Are the logs created by a console.log written somewhere on disk when using the production version? If so, where can I find them? Or are those all removed when compiling the executable? There must be some kind of log file for my app right?
I've found the SquirrelSetupLog in C:\Users\Tieme\AppData\Local\MyApp\SquirrelSetupLog but that's not enough for debugging my production-only problem.
Just came across electron-log. That could work if regular console logs are indeed not written to disk somewhere..
A:
If you mean console from within the webapp, then this applies :)
You need to make a callback for this to work. Read more about them here: http://electron.atom.io/docs/api/remote/
Here is a short example:
In a file next to your electron main.js, named logger.js, add this code:
exports.log = (entry) => {
console.log(entry);
}
And then in your webapp, use this to call this log method callback:
// This line gets the code from the newly created file logger.js
const logger = require('electron').remote.require('./logger');
// This line calls the function exports.log from the logger.js file, but
// this happens in the context of the electron app, so from here you can
// see it in the console when running the electron app or write to disk.
logger.log('Woohoo!');
You might also want to have a look at https://www.npmjs.com/package/electron-log for "better" logging and writing to disk. But you always need to use callbacks.
|
using System.Windows.Forms;
namespace XenAdmin.Wizards.NewVMWizard
{
partial class NewVMWizard
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewVMWizard));
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWizard)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.XSHelpButton)).BeginInit();
this.SuspendLayout();
//
// pictureBoxWizard
//
resources.ApplyResources(this.pictureBoxWizard, "pictureBoxWizard");
this.pictureBoxWizard.Image = global::XenAdmin.Properties.Resources._000_CreateVM_h32bit_32;
//
// XSHelpButton
//
resources.ApplyResources(this.XSHelpButton, "XSHelpButton");
//
// NewVMWizard
//
resources.ApplyResources(this, "$this");
this.Name = "NewVMWizard";
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWizard)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.XSHelpButton)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
}
}
|
[Military surgery: an additional "emphasis" in surgery?].
The German armed forces and the civilian help organisations need competent and well-trained general surgeons to deal with the specific problems of war or other casualties. This is in contrast to the modern training modalities which are going into extreme specialisation. The term "mission surgery" comprises a very specific training for surgeons under the adverse conditions of war or catastrophe. It is not intended to create a new subset within the different surgical specialties, but to elucidate the skills which are needed for mission surgery. To achieve these objectives, the young surgeon should undergo basic training with a broad clinical spectrum. It is recommended that the requirements of trauma or orthopedic surgery should be fulfilled. |
It looks like a regular belt, works like a regular belt, but acts as a money belt giving you ingenious travel security during your trip. You see, it has a secret zippered compartment for folded up bills and documents that you want to keep out of sight and hidden. |
import homeReducer from './home';
import * as actions from '../constants/homeActions';
describe('home reducer', () => {
it('should return the initial state', () => {
expect(homeReducer(undefined, {})).toEqual(
{
isFetching: false,
error: null,
users: [],
impersonatedUser: null,
},
);
});
it('should handle FETCH_USERS_REQUEST', () => {
expect(homeReducer({}, {
type: actions.FETCH_USERS_REQUEST,
payload: {
isFetching: true,
},
})).toEqual(
{
isFetching: true,
error: null,
},
);
});
it('should handle FETCH_USERS_SUCCESS', () => {
expect(homeReducer({}, {
type: actions.FETCH_USERS_SUCCESS,
payload: {
isFetching: true,
data: [
{ identifier: '9834kdjshg', name: 'Buyer One' },
{ identifier: 'dfsdf34563', name: 'Buyer Two' },
],
},
})).toEqual(
{
isFetching: true,
users: [
{ identifier: '9834kdjshg', name: 'Buyer One' },
{ identifier: 'dfsdf34563', name: 'Buyer Two' },
],
},
);
});
it('should handle FETCH_USERS_FAILURE', () => {
expect(homeReducer({}, {
type: actions.FETCH_USERS_FAILURE,
payload: {
isFetching: false,
error: {
message: 'Not Found',
},
},
})).toEqual(
{
isFetching: false,
error: {
message: 'Not Found',
},
},
);
});
it('should handle SET_IMPERSONATED_USER', () => {
expect(homeReducer({}, {
type: actions.SET_IMPERSONATED_USER,
payload: {
impersonatedUser: { identifier: 'kdjs333', name: 'Buyer One' },
},
})).toEqual(
{
impersonatedUser: { identifier: 'kdjs333', name: 'Buyer One' },
},
);
});
it('should handle LOGOUT_USER', () => {
expect(homeReducer({}, {
type: actions.LOGOUT_USER,
})).toEqual(
{
impersonatedUser: null,
},
);
});
});
|
[Approaches to evaluating the status and development of the health facility network].
The author confronts the perspectives of demands on health care of the population in the CSSR with the contemporary state of the network of health facilities. From this confrontation he draws some conclusions and submits suggestions for the future function and organization of health care. |
I cut patterned paper from the Itsy Bitsy Polka Dots Paper Pack into a square and added it underneath the frame with angle. After I gold embossed the sentiment, I adhered three stripes of colored card stock (Daffodil, Orange Zest, and Ripe Raspberry) and the frame. A couple of Clear Droplets were added for the finishing touch.
Head on over to the MFT blog for more inspiration from the fabulous DT! Don't forget to leave a comment on each of their blogs for your chance to win a prize. ;) |
Generation of integration-free neural progenitor cells from cells in human urine.
Human neural stem cells hold great promise for research and therapy in neural disease. We describe the generation of integration-free and expandable human neural progenitor cells (NPCs). We combined an episomal system to deliver reprogramming factors with a chemically defined culture medium to reprogram epithelial-like cells from human urine into NPCs (hUiNPCs). These transgene-free hUiNPCs can self-renew and can differentiate into multiple functional neuronal subtypes and glial cells in vitro. Although functional in vivo analysis is still needed, we report that the cells survive and differentiate upon transplant into newborn rat brain. |
[Effect of dopaminergic substances on the antinocifensive action of arecoline].
Based on earlier studies that revealed the analogical influence of noradrenaline and serotonin on morphine analgesia and the antinocifensive effect of arecoline, it was tested whether under the influence of dopaminergic substances the inhibition of nocifensive reactions is being altered by arecoline like the action of morphine. In fact, arecoline could be amplified in a dose dependent manner by apomorphine and amphetamine, which alone had no antinocifensive effects. On the other hand, no antagnoism of the dopamine receptor blockers, chloropromazine ahd haloperidole, against arecoline was demonstrable; only the additive effect of apomorphine and amphetamine could be abolished. Therefore it is concluded that dopamine is not directly involved in the spinal mechanism of the antinocifensive effect of central cholinomimetics, but that only supraspinal influences can be varied by the function of dopaminergic neurons. |
{% extends 'OroActionBundle:Operation:form.html.twig' %}
{% block form %}
{% set buttonOptions = operation.definition.buttonOptions %}
{% set pageComponentOptions = {} %}
<div class="widget-content">
{{ form_start(form, {
'action': app.request.uri,
'attr': {
'id': form.vars.id,
'data-collect': 'true',
'class': 'form-dialog',
'data-page-component-module': 'oroui/js/app/components/view-component',
'data-page-component-options': {view: 'oropromotion/js/app/views/coupon-generation-preview-view'}|json_encode
}
}) }}
<fieldset class="form-horizontal">
{{ form_widget(form.couponGenerationOptions) }}
<div class="control-group attribute-row">
<label class="control-label">{{ 'oro.promotion.coupon.generation.codePreview.label'|trans }}</label>
<div class="controls">
<div id="coupon-code-preview" class="control-label">{{ oro_promotion_generate_coupon_code(actionData.couponGenerationOptions) }}</div>
</div>
</div>
</fieldset>
<div class="hidden">
{{ form_rest(form) }}
</div>
<div class="widget-actions">
<button type="reset" class="btn">{{ 'oro.order.shipping_tracking.action.cancel'|trans }}</button>
<button type="submit" class="btn btn-success">{{ 'oro.promotion.coupon.generation.action.generate'|trans }}</button>
</div>
{{ form_end(form) }}
{{ oro_form_js_validation(form) }}
</div>
{% endblock %}
|
It's an infantry regiment in which this happens. Basically the port starts at one end, passes to the left and you pour your partner's glass, but it must NOT touch the table until everyone's glass is full.
I just think there are some strange little traditions that probably date back ions!
Best guess (no real evidence to support it; luckily my regiment are pretty relaxed about most mess things):
The port has to go one way so that everyone gets a go(if it gest passed both ways all the decanters might end up in the middle, next to the fat drunken bloke who will hog it all for himself). I suspect that the Navy may have picked left as easy to remember (Port being left in matelot - why the hell is that? Now there's a question).
I also suspect that not putting it on the table may have been expedient, rather than a custom, in the wardroom of a ship riding out heavy weather. Infantry units that served as marines may have picked up the custom and hung onto it. You could blow this theory out of the water by checking to see if your regiment ever had a spell at sea.
Port not touching the table is a custom in many Messes although it seem more common in infantry Messes. It is done to ensure camaraderie. The loyal toast should not be conducted until all have a glass of port/Madeira (or water only allowed substitute for those who don't drink). The PMC can see the place of the port decanter as it is passes from person to person and if it rests on the table he know all glasses are full and can continue.
In our Mess we don't have that tradition, but no two port decanters are allowed to catch each other as they are passed around the table, a heft fine lands on anyone caught. So fill your glass quick and pass it on
Passing to the left has arisen from etiquette associated with posh dinner parties...............
Seating plan at such a party: Guest of Honour was always seated to the right of the host.
Port decanter would be placed in front of the host and he would pour the drink for the chief guest, on his right. Thereafter everyone else pours their own.
This means that the host, having next poured himself a glass needs to send it around the table. The guy to his right already has some, and rather than stretch across him it makes sense to pass it to the left instead. I imagine this is where the next most important guest would be too.....and so it carries on clockwise.
Voila!
The only Mess I have been in where the port doesn't touch the table is an RAF one - and the claim there (not sure on the truth of it) was that it represented the 'flying' aspect of the RAF!!!
I believe that in Navy wardrooms the decanter is not meant to leave the table and port is poured by tilting decanter with base firmly on the ground. In one wardroom I know it is forbidden to pour your own port - anyone caught doing so is fined........ not sure if this true across the Navy. |
Oiling
Oiling may refer to;
Oiling (leather processing)
Applying a drying oil finish to wooden items
Lubrication of mechanical parts with oil |
Strange Attractors - pacaro
http://pollrobots.github.io/strange.html#GKISQQMCTDLATCLQUPMOCVTOTRRIMA
======
pacaro
Notes:
This finds and displays a quadratic strange attractor in three dimensions. The
Z dimension is used to choose a color by mapping to hue.
The search button will find different attractors, the code makes some effort
to ensure that it finds "interesting" parameters.
Increasing the density will make the image clearer at the expense of compute
time.
View in 3D will show the same parameters as a particle cloud.
------
gus_massa
The "search" button is something like "random"?
~~~
pacaro
Yes. It’s randomly searching the state space for interesting parameters.
|
Arthroscopic double-bundled posterior cruciate ligament reconstruction with quadriceps tendon-patellar bone autograft.
An arthroscopic technique for double-bundled reconstruction for posterior cruciate ligament with quadriceps tendon-patellar bone autograft is presented. Anterolateral and posteromedial tunnels were created to simulate and reproduce the double-bundle structure of the posterior cruciate ligament. The bone plug is situated at the tibial tunnel and fixed by a titanium interference screw. Each of the bundles of tendon graft is rigidly fixed at the femoral tunnel with a bioabsorbable screw. |
# install ZeroMQ
cd /usr/ports/devel/zmq
make
make install
# install sqlite3
cd /usr/ports/databases/sqlite3
make
make install
# install mongrel2
cd /where/you/extracted
gmake freebsd install
|
Q:
Books or/and tutorials for android programming for PHP developer
I am PHP developer and I would like to start programming simple apps for my android smart phone. Any good suggestions on tutorials or books for PHP developer?
A:
Have you ever used java?
if not you'll probably need to get the basics of it down before Android. Until then Check out sl4a and their wiki page. That will let you bang out some basic programs as scripts much quicker and without too much work.
If you are familiar with java then check out the commonsware books. For a few great tutorials and lots of good info.
|
Spurs may make striker move
Tottenham manager Andre Villas-Boas has confirmed he is considering the possibility of signing a striker in the final two days of the transfer window.
The speedy recovery of Jermain Defoe from injury and the imminent return of Togo striker Emmanuel Adebayor from the African Cup of Nations will relieve Villas-Boas’s alarming striker shortage, but he has hinted that a fresh arrival may be on his agenda ahead of the transfer deadline on Thursday night.
Tottenham’s shock FA Cup exit at Leeds on Sunday exposed a flaw in the make-up of Villas-Boas’s squad as he was forced to start with attacking midfielder Clint Dempsey as his lead striker in the absence of Defoe and Adebayor and while he insists he can plot a path to success this season, it seems he is eager to bolster his options in the next couple of days.
Even though he has ruled out an expensive move for Sevilla striker Alvaro Negredo and distanced himself from rumours linking Spurs with a bid for Celtic’s Gary Hooper, Villas-Boas seems to be open to a new hit-man being added to his ranks.
“We are happy to take the risk and stay with the strikers we have at the moment, but that doesn’t mean we are not looking at other possibilities,” stated the Tottenham boss, who has again been linked with Brazilian forward Leandro Damiao in recent days.
“We have had good news on Defoe’s injury and it is not true that he will require surgery, so this is extremely important for us and I am also extremely happy with the way Clint Dempsey is playing in the forward position.
“The goal that he scored on Sunday against Leeds showed that. It was a striker kind of goal and he made the run in the first place to score.
Obviously, he hasn’t been used to often in this position in England, but it doesn’t mean he can’t play it.”
He has also opened the door for Jake Livermore to make a move to QPR in this transfer window after confirming his midfielder has been given a chance to make a decision on his own future.
“It is open for him to decide on his future because he hasn't been involved a lot. This is a situation we are considering. We also have a commitment from the player to fight for his place here.” |
Abstract Network
Photographic Prints (Portrait)
Also Available as
Product Details
Artists Description
Abstract Network
Using the finest lustre photo paper, our photographic art prints add a shine to your favourite design. The thick paper makes for a sturdy print, so you can enjoy your poster for years to come. |
Megatron w/ Predacon Ship & "The Gathering" Comic in other sections:
Toy Gallery:
Tags:
Tags:
Tags:
Megatron with Predacon Ship & "The Gathering" comic:
An insane, hyper-intelligent criminal mastermind who led a group of renegade Predacons to Earth in search of the Energon they would need to conquer Cybertron, Megatron became so much more than a petty felon. He launched an assault to Time itself, seeking to change history to his benefit. He nearly destroyed Cybertron in his mad quest to exterminate the Transformers, and he was stopped only when Optimus Primal brought him down. Now, he has returned, and his battle with the Maximal leader rages across the multiverse. |
export * from './preview';
declare const module: any;
if (module && module.hot && module.hot.decline) {
module.hot.decline();
}
|
The University of Nottingham
Focus:
An investigation into brown adipose tissue development using a range of non-invasive techniques to assess its thermogenic response to dietary and thermal challenges in children and adults together with the influence of gender and current body weight. These studies will be complemented by animal studies in which the influence of environmental challenges on the short and long term recruitment of brown fat thermogenesis will be examined.
An investigation into the impact of maternal body weight and diabetes on the placenta with regard to its ability to partition nutrients to the fetus. This will focus on energy sensing, mitochondrial function, lipid and carbohydrate handling and the extent to which changes in placental function may contribute to increased fat mass in the offspring. These studies will be complemented by animal studies in which the influence of maternal weight loss during pregnancy on placental function will be examined.
Interdisciplinarity opportunities:
Integration of basic and clinical science.
Physiology, molecular biology and epigenetics
Infrastructure and resources:
Our multi-disciplinary research group utilises a range of human, large and small animal and in vitro models aimed at examining the impact of changes in the early life environment on later health and disease. We are thus focussed on a range of organ systems and physiological control mechanisms ranging from adipose tissue, the brain, heart, gut, heart, kidney, liver and lung. The pathways currently being examined include growth, metabolism, inflammation, appetite control, cardio-respiratory function and epigenetic regulation. These adopt a developmental focus in order to elucidate the extent to which changes in the metabolic environment in early life may reset growth of a particular organ such that offspring is at increased risk of metabolic disease in later life. For example, it is known that brown adipose tissue has a unique role in enabling the newborn to effectively adapt to the cold challenge of the extrauterine environment, but given the more recent discovery that brown fat persists into adulthood an increased understanding of the mechanism by which this tissue is recruited at birth may have important implications for energy metabolism in adults. This is important in the context of the current obesity epidemic for which we have developed a range of unique models aimed at examining the influence of diet in early life on later responsiveness to obesity together with the extent to which this may be further determined by gender. Fellows joining our group will thus join an established and expanding group of young, enthusiastic and highly productive clinical and basic scientists that are well funded and will, therefore, have direct access to a range of unique laboratory facilities. |
Q:
Simple Question! Trying to install Xubuntu! Which file do I extract in WinRAR to do so?
OK
Here goes
Downloaded Ubuntu - not working (ISO error?) OK - skip that - try Xubuntu instead - OK - downloads - OK needs me to extract something in WinRAR - OK - not at all clear what to extract? Can't find help in forums? Seems basic question??
HALP?@!QQ?
A:
you do NOT use RAR.
you check the ISO (md5checksum) and burn the contents of the ISO to either a DVD or onto an USB with an appropriate tool.
|
var Global = "global"
Fn.new {
System.print(Global) // expect: global
}.call()
|
Vehicle safety belts typically include a retractor mechanism which causes the belt to automatically wind onto a spring loaded reel when not in use. The retractor also insures that the belt remains flush against the person's body as the person changes seated positions, thus allowing the person to move freely without having to manually adjust the belt. In order to secure the person in the event of an emergency, the retractor also has a locking mechanism which senses the emergency condition and locks the reel, thus preventing further extension of the belt and keeping the person secured against the seat.
Typically a retractor responds in an emergency situation by sensing the deceleration of the vehicle, or the rotational acceleration of the reel. In an example of an acceleration sensing mechanism a freely rotating inertia element senses the belt unwinding, angular acceleration of the reel. As the reel accelerates, the rotation of the inertia element lags behind the rotation of the reel assembly. The relative change in position causes the inertia element to move a locking or braking mechanism into position and brake the reel. Some retractors, have locking means which respond to both the acceleration of the belt and the deceleration of the vehicle.
The locking mechanism in some prior art involves a ratchet attached to one or both sides of the reel which is surrounded by teeth. There is also either a bar or a pawl which is capable of locking the reel by engaging the ratchet teeth, and which moves into this locking position upon sensing the emergency condition. The ratchet teeth may be located either on the radial interior or exterior relative to the retractor housing. That is, the ratchet may be designed as a wheel with teeth pointing outward on the outside of the wheel or as a ring with teeth pointing inward on the inner circumference of the ring. Inwardly extending teeth or locking elements offer certain advantages, but such systems have other complexities concerning the mounting of components. |
[Primary hyperparathyroidism diagnosed as a multicentric giant cell tumor of bone--case report].
In this paper the case of hyperparathyroidism with clinical features of multicentric giant cell tumor of bone is reported. The pathological, radiological and clinical differences between these two entities are discussed. |
Standard King
Columbine Inn
Star Rating
Located slopeside at Powder Mountain Ski Resort in Eden, Utah, the Columbine Inn, cabin and condo rentals allows you to have a skiing and mountain experience that you will not soon forget. You can ski as much or as little as you like with the conveinence of access to the slopes literally right out your front door. |
Synergistic effects of encoding strategy and context salience on associative memory in older adults.
Older adults' deficits in memory for context and memory for inter-item associations are often assumed to be related, yet typically are examined in separate experiments. The present study combined associative recognition and list discrimination into a single task with conditions that varied in terms of item, pair, and context information, and independently manipulated context salience and encoding strategy between subjects in order to examine their effects on memory for associative information in young and older adults. Older adults' memory for pairs was found to be less affected than that of young adults by manipulations of context and associative information, but the age difference in context effects on pair memory was influenced by an interaction of encoding strategy and context salience. The results provide novel evidence that older adults' deficits in associative memory involve interactions between context and inter-item associations. |
[Numerical and experimental study of radial support capacity of intravascular stent].
The radial support capacity of intravascular stent is usually evaluated by the planar compression or the radial compression methods. Based on FEM simulation, the planer and radial compression methods are compared, and the agreement of the evaluation for the radial support capacity between these two methods is found. Moreover, the planer compression method is used to study the geometric parameters' effect on the radial support capacity by numerical simulations and experiments. Results show that, at the beginning of the compression process, the radial support capacity is mainly influenced by the metal-to-artery surface ratio; at large compression rate, the radial support capacity will decrease sharply with the increment of post-expansion diameter and decrement of the thickness and metal-to-artery surface ratio. The results provide guidance to the design and test of stents. |
Q:
Is there a difference between "ascendants" and "ancestors"?
Without noticing myself, I've mixed the use of "ascendants" and "ancestors" in some documentation I've written.
In an arbitrary hierarchy (of either people or things), what would be the most correct term to use, to describe my parent(s) parent(s) parent(s), etc.?
That is, descendants would be my children, their children, and so forth. In the exact reverse order, would ascendants and ancestors be interchangeable, or would one be preferred over the other?
Both TheFreeDictionary.com and Dictionary.com lists ancestor as a synonym of ascendants, though neither precisely defines it in the context of a hierarchy per se.
A:
Ascendant does have the meaning you use here, but it is rare, and many may not know that sense of the word, so you should favour ancestor.
(The other senses of ascendant do also have descendant as an antonym too, so if you look up the antonym of descendant you may find ascendant cited for that reason more than for this rare sense).
|
For over forty years, asbestos has been used in cementitious mortar formulations to improve workability and water retention. Asbestos fibers have the ability to absorb more moisture and to hold it longer than any other known natural or synthetic fillers. In addition to asbestos' ability to retain moisture, asbestos fibers also provide great plasticity and workability for cementitious mortars. Specifically, these properties allowed mortars to be easily moved through mechanical pumps and further to easily achieve a variety of finishes after application.
However, because of the dangers caused when asbestos fibers are inhaled, governing agencies in the United States and other countries have banned asbestos for many usages. The asbestos ban has left a void to be filled by a product to replace asbestos in use in cementitious mortars. |
A2 road (Jersey)
The A2 road in Jersey is a dual carriageway also known as Victoria Avenue, and named after Queen Victoria. This coastal road runs east to west from St. Helier to the area known as Bel Royal in St. Lawrence, spanning part of St Aubin's Bay.
It is the only dual carriageway in the Channel Islands, and was originally constructed as a single carriageway road.
See also
Roads in Jersey
References
External links
A2 (Jersey) at Roader's Digest (SABRE)
Category:Roads in Jersey |
The purpose of this research is to examine how increased personal control and participation in the work setting will affect mental health. Although there has been considerable research examining the impact of control on mental health, very little of this research has focused on control and participation at work, a setting of considerable importance. Specifically, the aim of hte proposed research is to determine how self- directed work groups (a rapidly growing employee participation intervention) influence indices of negative and positive mental health (e.g., general health questionnaire, depresion, anxiety, self esteem). The study will also examine the role of potential mediators (e.g., perceived job characteristics, social support) of the work design-mental health relationship. The investigation will employ a powerful quasi- experimental, repeated measures design, assessing the above variables in both an experimental adn control group, prior to conversion to self- directed work groups, several months after conversion, with at least one year after conversion. With this methodology, strong inferences can be made about the impact of participation in the work setting on mental health, and upon the processes involved. |
Q:
ngStorage ($localStorage) dosen't work in .then()
I have problem with ngStorage. When I use my factory for jQuery's $ajax, I can't use $localStorage in .then() (it dosen't work).
$scope.updateProfile = function () {
updateProfileFactory.init($scope.dataProfile).then(
function (data)
if (data.status == "success") {
$localStorage.currentUser.fullname = $scope.dataProfile.u_fullname;
}
}
)
}
If I use $localStorage outside .then(), it work's fine, but I must put it inside.
$scope.updateProfile = function () {
$localStorage.currentUser.fullname = $scope.dataProfile.u_fullname;
updateProfileFactory.init($scope.dataProfile).then(
function (data) {
if (data.status == "success") {
// code
}
}
)
}
Where is the problem?
A:
Why don't you use Angular's $http library to do your AJAX stuff? Mixing jQuery and Angular proves to give unpredictable results.
I can see that you already use Angular in your application. So there really is no reason why you shouldn't go the Angular way completely. The $http service provides all of the functionality that jQuery's $.ajax provides and more.
When you use Angular functions within vanilla Javascript or jQuery functions, Angular doesn't know that these are called, as they are outside it's scope. Here you can possible use Angular's $apply, but that is not ideal and is hacky.
Here your problem might be that the callback function of your $.ajax is not aware of $localStorage as it is not passed in as a dependency.
|
Q:
How to check state of one thread from another in a thread safe way?
Background:
While debugging an application I came across this function
boolean IsThreadGood(Thread t)
{
return t.IsAlive && t.ThreadState == ThreadState.Running || t.ThreadState == ThreadState.WaitSleepJoin;
}
I considered this to be a bug since the logical comparisons happening in the return statement are not atomic and therefore I thought the Thread t could change states while the expression was being executed. To check this idea I changed the code to the following code so I could place breakpoints:
bool IsThreadGood(Thread t)
{
if (t.IsAlive)
{
if (t.ThreadState == ThreadState.Running)
{
return true;
}
if (t.ThreadState == ThreadState.WaitSleepJoin)
{
return true;
}
}
return false;
}
I placed breakpoint on the inner if statements and saw pretty quickly what I suspected. When the code reached the first breakpoint Thread t had a ThreadState of WaitSleepJoin and when I stepped over the code to the next if statement Thread t had switched states and had a ThreadState of Running, thus failing both tests and returning false from the method when it should return true.
My Question:
How can I make can I check the state of a thread from another thread in a thread safe way?
My ideas and what I've researched:
If I could make the statement atomic it would work. I Googled some things like 'how to make a statement atomic in c#' and got a lot of results involving locks - not what I want because as I understand it locks don't make code atomic.
If I could suspend Thread t from the thread executing the method, then I could safely check its state. What I found here are the obsolete functions Suspend and Resume. Microsoft strongly recommends not using these.
Changing Thread t in some way to implement syncronization. Not an option. The code is reusable code that has been reused by different clients in different ways and Thread t is the client code. Changing all of the clients won't be possible.
I'm not a multi-threading guru, so if any of my assumptions are incorrect or my understanding of multi-threading is incorrect, please feel free to point that out.
A:
I’m pretty sure that a thread which state is either Running or WaitSleepJoin cannot be not-alive. So you could just get the state (which is an atomic operation), and then check against those two values:
boolean IsThreadGood(Thread t)
{
ThreadState state = t.ThreadState;
return state == ThreadState.Running || state == ThreadState.WaitSleepJoin;
}
Note that the documentation explicitely points out that you should only use the thread state for debugging purposes, not for synchronization:
Thread state is only of interest in debugging scenarios. Your code should never use thread state to synchronize the activities of threads.
Since you are interested in an atomic operation, I doubt that you want this for debugging purposes (otherwise you wouldn’t need to care about it being super precise). So you should probably think about solving your actual problem in a different way.
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
namespace Microsoft.Protocols.TestSuites.ActiveDirectory.Drsr
{
/// <summary>
/// The enum of FSMO roles.
/// </summary>
[Flags]
public enum FSMORoles : byte
{
/// <summary>
/// None
/// </summary>
None = 0x00,
/// <summary>
/// The Domain Naming Master Role
/// </summary>
DomainNaming = 0x01,
/// <summary>
/// The Schema Master Role
/// </summary>
Schema = 0x02,
/// <summary>
/// The infrastructure Master Role
/// </summary>
Infrastructure = 0x04,
/// <summary>
/// The Rid Allocation Master Role
/// </summary>
RidAllocation = 0x08,
/// <summary>
/// The PDC master role
/// </summary>
PDC = 0x10
}
}
|
Whatever your high school experience was like, we doubt it was tougher than the one at Hope's Peak Academy. In Danganronpa: Trigger Happy Havoc, only the elite of the elite get admitted. Every student wants to get away with murder, but here, that desire is quite literal. Who needs friends when they're all trying to kill you? |
Chronic constipation in the elderly.
Constipation is one of the most frequent gastrointestinal disorders encountered in clinical practice in Western societies. Its prevalence increases with age and is more frequently reported in female patients. Chronic constipation has been associated with considerable impairment in quality of life, can result in large individual healthcare costs, and represents a burden to healthcare delivery systems. This review will focus on the definition, epidemiology, diagnostic approach, and non-pharmacologic as well as pharmacologic management of chronic constipation in the elderly, including an overview of new medications currently under clinical investigation. |
package sysinfo
import (
"io/ioutil"
"log"
"os"
"path"
"github.com/docker/libcontainer/cgroups"
)
type SysInfo struct {
MemoryLimit bool
SwapLimit bool
IPv4ForwardingDisabled bool
AppArmor bool
}
func New(quiet bool) *SysInfo {
sysInfo := &SysInfo{}
if cgroupMemoryMountpoint, err := cgroups.FindCgroupMountpoint("memory"); err != nil {
if !quiet {
log.Printf("WARNING: %s\n", err)
}
} else {
_, err1 := ioutil.ReadFile(path.Join(cgroupMemoryMountpoint, "memory.limit_in_bytes"))
_, err2 := ioutil.ReadFile(path.Join(cgroupMemoryMountpoint, "memory.soft_limit_in_bytes"))
sysInfo.MemoryLimit = err1 == nil && err2 == nil
if !sysInfo.MemoryLimit && !quiet {
log.Printf("WARNING: Your kernel does not support cgroup memory limit.")
}
_, err = ioutil.ReadFile(path.Join(cgroupMemoryMountpoint, "memory.memsw.limit_in_bytes"))
sysInfo.SwapLimit = err == nil
if !sysInfo.SwapLimit && !quiet {
log.Printf("WARNING: Your kernel does not support cgroup swap limit.")
}
}
// Check if AppArmor seems to be enabled on this system.
if _, err := os.Stat("/sys/kernel/security/apparmor"); os.IsNotExist(err) {
sysInfo.AppArmor = false
} else {
sysInfo.AppArmor = true
}
return sysInfo
}
|
Accessories
Dremel has created a range of multi tool accessories to suit all your needs, including the EZ SpeedClic system to change your accessories quick, easy and keyless.
To help you select the right accessories, Dremel has created a colour coding system: every colour represents a category of applications. No matter which materials you want to work with, Dremel has a solution for you. |
The Royal Thai has succesfuly maintained the high standards of service, food presentation and value for money which diners have come to expect from them during the years they have been open. Conveniently located in Pineslopes with plenty of parking right outside the door, the Royal Thai is well positioned to attract diners from Sandton and North Riding. The interior is intimate with an open plan kitchen and staffs attired in traditional dress welcome you with true Thai hospitality. The ambience is warm and inviting with peach walls, white tablecloths and cane chairs complemented by leafy palms.
Main courses dishes include curries and stir fries served with a choice of jasmine rice or egg noodles.
Recommendations are Prawn Penang curry - prawns cooked with lemongrass, garlic, shallots galangal and coconut milk. Also popular is the delicious chicken peanut butter curry and lamb red curry.
Vegetarians are well catered for with favorites like Pad-Ba-Mee-Je stir fried noodles with vegetables and bean curd and Vegetable Green Curry and Geang Pak vegetable curry with coconut, mushrooms and lime leaves.
Directions
please wait: loading map ...
From the N1 Western Bypass take the Montecasino turnoff at William Nicol Drive. Continue up William Nicol and turn right into Witkoppen Road and left into The Straight. We will be in the Pineslopes Shopping Centre on your left. |
Q:
Como alterar o proprietário da conta para o Visual Studio Team Services?
Iniciei um projeto no Visual Studio Team services com uma conta associada ao meu e-mail pessoal, agora quero alterar o e-mail proprietário desta conta para e-mail do meu cliente, o que faço?
A:
Acesse seu projeto
https://{suaconta}.visualstudio.com/_projects
clique no ícone da engrenagem
vá em Settings
clique em Change (Current owner)
|
Q:
Select selected value in drop down list
I have an enum which looks something like
public enum Department
{
Admin,
HR,
Marketing,
Sales
}
From this I am trying to create a drop down list in the controller and I do it like
public SelectList GetDepartmentDropDownList(string departmentName = null)
{
var departments = Enum.GetValues(typeof(Department));
SelectList ddl = new SelectList(departments);
return ddl;
}
Which works fine. But as you can see I can pass in the opitional parameter. This optional parameter is passed in when the dropdown value is saved to the database and the user comes back to edit the section. What I am trying to achieve is whatever the user originally selected, when they come back on the edit screen that particular item is select i.e if they selected HR when they come back HR should be selected.
If I do new SelectList(departments, departmentName, departmentName); I get the following error:
DataBinding: Enums.Department' does not contain a property with the name 'HR'
Can someone suggest how to achieve this please.
In the view I am making using of Html.DropDownListFor() as
@Html.DropDownListFor(m => m.Department, Model.DepartmentDdl, "Please select a Department", new { @class = "form-control", @required = "required" })
The property in my model is
public IEnumerable<SelectListItem> DepartmentDdl { get; set; }
And in the controller create action I do
model.DepartmentDdl = GetDepartmentDropDownList();
And in the controller edit action I do
model.DepartmentDdl = GetDepartmentDropDownList(departmentName); //department name here is read from the db
A:
Model binding works by binding to the value of your property. You need to set the value of property Department in the GET method before you pass the model to the view, for example
var model = new YourModel
{
Department = Department.HR,
DepartmentDdl = GetDepartmentDropDownList()
};
return View(model);
Note that there is no need for your parameter in the GetDepartmentDropDownList() method. Internally, the DropDownListFor() method builds a new IEnumerable<SelectListItem> and sets the Selected value of each SelectListItem based on the property your binding to (i.e. setting it in the SelectList constructor is ignored).
|
array_contains(array, value) - Returns TRUE if the array contains value.
|
[Advanced skull defect repair].
It is presented case report of successful repair of advanced combined defect of parietal-temporal-occipital scalp over one-half of skull vault with an excellent cosmetic result. To do this, the authors used a staged expander dermal tension, i.e. repeated stretching of the remaining scalp tissues combined with cranioplasty using mesh titanium implant. |
A Seamless, Client-Centric Programming Model for Type Safe Web Applications [pdf] - lelf
http://haste-lang.org/haskell14.pdf
======
al2o3cr
"Seamless" appears to have lost most of its meaning - personally, it doesn't
really apply if you can't even get through "Hello World" without spamming
"this is server code" and "this is client code" everywhere...
~~~
jarcane
I think the problem is that the web as we know it was not fundamentally
designed to be seamless.
We decry it now, but it was the reason that Flash took off in the first place:
you could just make your app in Flash, and all you needed to know otherwise
was just enough of a template to load the plugin content.
Compare that to today, where the browser is an amalgam of at least three
different languages (more if you're using something like this), and I struggle
to understand how 'seamless' is likely to be possible.
|
Kevin B. McCarty discovered that the feynmf.pl script creates a
temporary "properly list" file at the location "$TMPDIR/feynmf$PID.pl",
where $PID is the process ID.
Impact
A local attacker could create symbolic links in the directory where the
temporary files are written, pointing to a valid file somewhere on the
filesystem that is writable by the user running Feynmf. When Feynmf
writes the temporary file, the target valid file would then be
overwritten with the contents of the Feynmf temporary file. |
Consumer TechConsumer technology is going to exist indefinitely, perhaps for as long as the human species exists. At CleanTechnica, we try to feature consumer technologies that help to reduce global warming pollution and other types of pollution. For example: electric cars, solar panels, bikes, energy efficient appliances and electronics, and green smartphone apps. Keep an eye on this category for all sorts of fun and cool, helpful consumer technology.
DARPA Funds a Robot that Moves Like a Worm, But Why?
DARPA, the U.S. Defense Advanced Projects Research Agency, is the financial force behind a new biomimicry robotics project from MIT. The end result is Meshworm, a small, soft robot that looks like a moldy lint sock, moves like an earthworm, and holds its own under various stressors, even when “bludgeoned with a hammer.” The question is, why?
Resilient Robots for the U.S. Military
Meshworm has the ability to survive a frightening degree of misuse, and that provides one clue into DARPA’s interest in the new technology.
As described by writer Jennifer Chu, the field of soft robotics is of growing interest to engineers. With little or no need for bulky hardware, soft robots are more durable and lend themselves to miniaturization more easily than their mechanical counterparts.
In terms of military purpose, soft robots like Meshworm could be air-dropped, launched or thrown over relatively long distances, land without damage, and set about crawling silently around, squeezing through tight openings and conducting surveillance.
That kind of unobtrusive mobile robot could also be useful in environmental monitoring, among other applications in the civilian world.
The Inner Workings of a Robotic Worm
One particular challenge for soft robots is developing a means of propulsion that adds little or no bulk. The MIT team overcame this by integrating propulsion into the infrastructure of the robot.
Earthworms provided the inspiration because they move along by teaming longitudinal muscles with another set of muscles that wrap around their bodies in circles.
To mimic these muscles, the team developed a springy mesh tube (yes, just like a link sock) and wrapped it with wires made of a “very bizarre material,” a nickel-titanium alloy.
Chu explains:
“Depending on the ratio of nickel to titanium, the alloy changes phase with heat. Above a certain temperature, the alloy remains in a phase called austenite — a regularly aligned structure that springs back to its original shape, even after significant bending, much like flexible eyeglass frames. Below a certain temperature, the alloy shifts to a martensite phase — a more pliable structure that, like a paperclip, stays in the shape in which it’s bent.”
A miniature battery and circuit board provided the juice to heat and cool the alloy, and a series of stress tests (the aforementioned hammer, plus a stomping) proved its durability.
The Future of Soft Robotics
Phase-changing material like MIT’s alloy fall into the programmable matter category, so look for many more Meshworm-type devices to make an appearance as this field develops apace with soft robotics.
It’s also worth noting that one key advantage of small robots, soft or hard, is their ability to perform tasks while using a minimal amount of energy.
Along those lines, engineers at Virginia Tech have been working with the U.S. Navy to develop Robojelly, a robot that swims like a jellyfish. Energy is provided by a fuel cell that scavenges power from seawater, with an assist from a platinum catalyst.
About the Author
Tina Casey Tina Casey specializes in military and corporate sustainability, advanced technology, emerging materials, biofuels, and water and wastewater issues. Tina’s articles are reposted frequently on Reuters, Scientific American, and many other sites. Views expressed are her own. Follow her on Twitter @TinaMCasey and Google+.
Wind Energy
Search the IM Network
The content produced by this site is for entertainment purposes only. Opinions and comments published on this site may not be sanctioned by, and do not necessarily represent the views of Sustainable Enterprises Media, Inc., its owners, sponsors, affiliates, or subsidiaries. |
Plot
The Getaway is split into two plots with various different characters. The plots run in parallel and often intersect with each other. The first part of the game follows Mark Hammond, a retired member of the Soho-based Collins Crew. Mark was recently released from prison and has settled down with his wife, Susie and their son, Alex. One day, Hammond awakes to find his wife murdered and son kidnapped by members for a gang known as the Bethnal Green Mob. After following them to a warehouse he is ambushed by Charlie Jolson, leader of the Bethnal Green boys, who is holding Hammond's son hostage. Mark is blackmailed to doing jobs for Charlie to get his son back.
The second half of the game lets you play as Flying Squad officer, DC Frank Carter as he attempts to take down Jolson and his gang. Carter's scenario takes place parallel to the events of Hammond's scenario, causing the two to come into contact on several occasions.
Gameplay
In The Getaway you can drive and shoot on foot. The game features no HUD so the player doesn't know things like ammo count or health however you can rest against a wall when hurt until you recover. You can free aim with any weapon or lock on and can pick up new weapons dropped by people you have killed, However the weapons in the game are fairly limited. The game allows players to carry out each mission with about forty available vehicles. The Getaway features real vehicles, created by real manufacturers such as MG Rover, Saab, Renault, Lotus and Mazda. The game takes players across a sprawling virtual representation of London. |
Over the weekend, British newspapers ran stories suggesting Scotland Yard had given President Obama the codename "Chalaque" -- a Punjabi word the Daily Mail translated as "smart alec" - in conjunction with his state visit to Britain this week. The story was picked up in several places, including Yahoo News and The Drudge Report.
Which is why we're taking some time to quickly point out that it isn't actually true. A Metropolitan Police spokesperson in Britain told CBS News' Tucker Reals that "Chalaque" isn't Mr. Obama's codename but rather "the operational name for the state visit."
And there wasn't a lot of thought that went into the choice. According to the spokesperson, the names for operations are selected "in sequential order from a randomly selected list."
In other words: The British police did not give Mr. Obama a code name meant to "denigrate someone who we think is too clever for their own good," as one Punjabi speaker told the Daily Mail.
This shouldn't come as much of a surprise. Security forces tend not to come up with derogatory codenames for visiting dignitaries. But that didn't stop a wide variety of news outlets from repeating the story without checking it out. |
HELP
BILL
CONTACT
Let us do the work for you
SMART
We have a simple goal – to cut your power bill.
The energy arena is very confusing. There are competing messages and approaches that claim success. Our team of energy engineers can cut through that complexity. Our job is to make life easier for you in dollars and commonsense.
SIMPLE
We target savings. There's no point buying more than you need.
What do you need? An extra solar panel or lights you never use won't achieve your savings goal. We know what's achievable and how the elements interact. Importantly, we also know product shelf lives, and most are way too short.
SAVINGS
The key: don't choose the wrong elements and don't over-invest in the right ones. Also look into robustness and longevity. There's a huge difference in the effective life of some solution elements. Always consider this as a part of your investment decision. |
Q:
Why Google's BigTable referred as a NoSQL database?
From Wikipedia:
Notable production implementations
[of NoSQL databases] include Google's
BigTable, Amazon's Dynamo and
Cassandra.
But Google's BigTable does have some variant of SQL, called GQL.
What am I missing?
A:
NoSQL is an umbrella term for all the databases that are different from 'the standard' SQL databases, such as MySQL, Microsoft SQL Server and PostgreSQL.
These 'standard' SQL databases are all relational databases, feature the SQL query language and adhere to the ACID properties. These properties basically boil down to consistency.
A NoSQL database is different because it doesn't support one or more of these key features of the so-called 'SQL databases':
Consistency
Relational data
SQL language
Most of these features go hand in hand.
Consistency
Consistency is where most NoSQL databases differ from SQL databases. You can pull the plug from a SQL database and it will make sure your data is still consistent and uncorrupted. NoSQL databases tend to sacrifice this consistency for better scalability. Google's Bigtable also does this.
Relational data
SQL databases revolve around normalized, relational data. The database ensures that these relations stay valid and consistent, no matter what you throw at it. NoSQL databases usually don't support relations, because they don't support the consistency to enforce these relations. Also, relational data is bad for performance when the data is distributed across several servers.
An exception are graph databases. These are considered NoSQL databases, but do feature relational data. In fact, that's what they're all about!
SQL language
The SQL language was designed especially for relational databases, the so-called 'SQL databases'. Since most NoSQL databases are very different from relational databases, they don't have the need for SQL. Also, some NoSQL databases have features that simply cannot be expressed in SQL, thus requiring a different query language.
Last, but not least, NoSQL is simply a buzzword. It basically means 'anything but the old and trusty MySQL server in the attic', which includes a lot of alternative storage mechanisms. Even a simple text file can be considered a NoSQL solution :)
A:
When people say "NoSQL" what they generally mean is "non-relational". To the best of my knowledge BigTable does not feature primary / foreign keys, JOINs, or relational calculus of any type.
The fact that BigTable features a query syntax that includes the words "SELECT" and "WHERE" does not mean it adheres to the principles of relational databases. It's more of a convenience, or a "hook", to make single-entity-type matches more familiar to programmers coming from relational databases.
|
Content-Aware Caching
for vBulletin, unfortunately, every guest visitor will be set cookies, so it'll not working as you expected. caching vBulletion for guest users is a bit more complicated, but it's possible under litespeed. In fact, we've tried to cache this vBulletin (litespeed suport forum) for guest visitors for a few weeks and looks working well. We can open an new thread to discuss our implementation to cache vBulletin under litespeed. |
Increasing use of soyfoods and their potential role in cancer prevention.
The United States produces approximately half of the world's soybeans. Although most of what is produced is used as animal feed, soy-protein products (eg, soy-protein flour, concentrates, and isolates) are used extensively by the food industry, primarily for their functional characteristics, such as emulsification. During the past decade, however, there has been a marked increase in the use of both traditional soyfoods, such as tofu and soymilk, and second-generation soyfoods, products which generally simulate familiar American dishes. Recently, attention has focused on the possible role of soybean consumption in reducing cancer risk. Soybeans contain, in relatively high concentrations, several compounds with demonstrated anticarcinogenic activity. Two of these compounds--protease inhibitors and phytic acid--have traditionally been viewed as antinutrients. The scientific community has begun to appreciate the potential importance of nonnutritive dietary compounds (phytochemicals) in foods such as soybeans. Dietitians need to become more aware of the phytochemical content of foods and the possible effect of phytochemicals on health and disease. |
sneakers
Pass The 'Dutch Blue' Diadora V7000 Premium
There’s something about these ‘Dutch Blue’ Diadoras that really tickles our fancy. Perhaps it’s the bold colour blocking, the primo materials or the vibrant shades of red and blue, or maybe it’s just how fresh they look on-foot. But who are we to question the nature of attraction? People can find beauty in strangle places, so it’s no surprise that the V7000 shoots the right sparks through our grey matter so as to make us yearn for their foot-based embrace.
The Diadora V7000 Premium ‘Dutch Blue’ is available now from select stocksits, including online from Afew. |
(Photo: Adrian Kinloch / Flickr)What kind of community fracking bans make sense?
Federal and state governments largely have embraced the oil-and-gas boom sparked by hydraulic fracturing. Fracking is a key part of Obama’s “all of the above” energy strategy. States such as Texas have long touted its economic benefits, while the candidates for governor in Pennsylvania have moved the debate past the question of whether to frack to the question of how to make the most money from it.
But fracking looks different to the places hosting gas wells, pipelines and compressor stations. At the local level, it transforms from a matter of energy policy to a matter of land-use policy as it leaves the abstract realm of commodity and enters the lived place of community. Fracking brings jobs, but it also brings hazardous industrial activities that are uniquely invasive, because they feed on minerals regardless of what lies above them – even when it is neighborhoods, public parks, playgrounds or schools. The fact that the surface estate is subservient to the mineral estate makes it difficult for local governments to protect the health and safety of their citizens and to ensure compatibility of neighboring land uses.
In the face of such challenges, an increasing number of towns and cities have decided to ban fracking. Indeed, municipal bans have become the hottest flash point in the jurisdictional battle over the authority to write the rules for fracking. Much will depend on whether they can survive legal tests of pre-emption and regulatory takings.
Proponents of local bans often justify them on the basis of rights, especially the right of local self-determination. This framing makes intuitive sense – if a well is planned near your home or your child’s school, you have a right to be involved in that decision.
But the idea of local self-determination is riddled with quandaries. Modern cities are not that “local” to begin with; they are made possible by materials harvested from around the world. This position of utter dependence makes any appeal to “self-determination” problematic. Can cities in the age of globalization exercise sovereignty over energy systems?
A look at the actual language of several municipal fracking bans further muddies the assessment. Many cities have adopted a “community rights” approach. This often involves lofty prose about the various rights possessed by residents of a city. Here is a typical excerpt from the recently passed fracking ban in Lafayette, Colorado:
All residents and ecosystems in the City of Lafayette possess a fundamental and unalienable right to breathe air untainted by toxins, carcinogens, particulates, nucleotides, hydrocarbons and other substances introduced into the environment.
But wouldn’t this outlaw just about everything? Wouldn’t it make operating a weed whacker a human rights violation? The same language can be found in this ban about a right to clean water, which would seem to make it illegal to fertilize your lawn. In short, how does this ban target only fracking rather than the entirety of the modern human condition?
There are other problems with the community-rights language. For example, the Lafayette ban states that the municipal corporation is subordinate to “the people” “in all respects at all times.” At the very least this seems like a rebuke of representative government. But it also implies a kind of anarchy – if I am “the people,” then I don’t have to obey that school zone speed limit? Couldn’t I even drill for gas?
The phrase “tilting at windmills,” from Don Quixote, often is used to describe courses of action based on misplaced heroic, romantic or idealistic justifications. With their strong community rights bans, many towns and cities seem to be tilting at gas wells.
This is not to say there are no good justifications for fracking bans. The town of Dryden, New York, for example, banned fracking because this industrial activity is incompatible with its rural character. And its ban has survived two court battles without the flowery rights language.
Bans also can work in cities that have other industries. Pittsburgh, the first city to ban fracking, uses some rights-based language. It leans more heavily, though, on an appeal to the police powers of municipalities to protect public health, safety and welfare. And the crux of its argument is the following: “meaningful regulatory limitations and prohibitions concerning natural gas extraction, along with zoning and land use provisions, are barred because they conflict with certain legal powers claimed by resource extraction corporations.” In other words, Pittsburgh is justified in singling out this industry for special treatment, because it is already treated as a special case by state and federal laws.
The most artful way to ban fracking is to not ban it, that is, not overtly. The city of Southlake in Texas has such a strict ordinance that the industry had to pack up its rigs and leave. Strangulation by regulation creates a de facto ban, which is much more difficult for the industry to fight, because the city can rightly claim that it welcomes oil and gas development … as long as it is conducted according to the city’s terms. To write such an ordinance takes cunning and moxy. But when it is done well, it can show that the most effective way to defend community rights is to not mention rights at all. |
Q:
Automatically run 'make check' if 'make install' is executed in autotools
Is it possible to execute 'make check' prior to 'make install' and abort the install if check failed?
The behavior should be like this:
User runs 'make install'
'make check' is run.
If check failed install is not executed. Otherwise install is executed.
edit:
I got it working by overriding the install rule in the top level Makefile.am like this:
install: check install-recursive
But I would rather have a solution that does not override the install target.
A:
You can hook into the install process using the install-exec-local or install-data-local targets:
install-exec-local: check
|
Vote down?
This article is fantastic. Not only is it a great introduction to isomorphic JS with React, but also to writing node/express and other server-side JavaScript in ES6. There aren’t many resources out there yet. |
Title: The Notes for the Course of Algorithms by David Mount
Authors: David Mount
License: N/A
Description:
The Notes for the Course of Algorithms by David Mount has its focus on how to design good algorithms, which is about the mathematical theory behind the design of good programmes.
The book also gives a good understanding and explains the design of an algorithm as a well-described computational process that takes a few values input and produces a few values as output. Like a cooking recipe, an algorithm provides a step-by-step technique for fixing a computational problem.
The book encompasses three major sections on mathematical tools essential for the evaluation of algorithms focusing asymptotics, summations, recurrences. This book also talks about the algorithmic problem of sorting a list of numbers.
The context shows a number of distinct techniques for sorting and use this problem to observation in different techniques for designing and reading algorithms.
It also introduces a group of diverse algorithmic problems and solution strategies and the idea of NP-completeness. NP-complete problems are those for which no efficient algorithms are recognized, however, nobody knows for sure whether solutions may exist. |
Jill Young, chief executive of the Golden Jubilee Hospital in Clydebank, West Dunbartonshire, said: “We think this is possibly the first ever festive admission to hospital caused by the consumption of Brussels sprouts.” |
Core A (Administrative Core), led by the Program's Principal Investigator, Joe G. N. Garcia, MD, will provide essential administrative and secretarial support and ensure overall direction and organization of the entire Program. In addition, this Core will provide accounting support that will ensure appropriate fiscal and scientific oversight, monitoring and compliance with federal and institutional grant management regulations, the latter through several formal mechanisms. The objectives of the Administrative core are (i) centralization of all administrative actions and financial recording keeping, (ii) to provide statistical and data processing support for the projects (iii) to prepare scientific and financial reports as required by the university and the NHLBI, (iv) to ensure that the PPG research meets the highest standards through periodic review by the internal and external review panels, (v) to facilitate the use of common resources, (vi) to foster exchange of scientific information and ideas and (vi) provide the projects and cores with a review of all expenditures on a monthly basis and deal with University Accounting and Grants offices concerning grant budgets. Core A will coordinate the inter-project, inter-departmental, and inter-institutional collaborative arrangements and evolve new arrangements as deemed necessary for the scientific progress of the Program Project as a whole. Core personnel will orchestrate monthly meetings of the project leaders that will be held to discuss scientific and administrative matters. Core A will organize regular research seminars on Monday mornings which will allow PPG investigators to present their work in progress to other researchers. Coordinated administrative services will ensure optimal purchasing practices, facilitate communications, and promote scientific interaction. |
Germ-line selection ensures embryonic autoreactivity and a positive discrimination of self mediated by supraclonal mechanisms.
It is necessary to clarify principles and mechanisms of natural tolerance to body tissues, in order to derive appropriate diagnostics, therapeutics and prognostics of autoimmune diseases (AID). I will argue that AIDs result from deficits in autoreactive regulatory T cell generation and/or function, and propose a model that explains why relatively few prototypes of AID exist, as well as their organ-specificity or systemic nature. The model suggests that natural tolerance is achieved through evolutionarily selected developmental genetic programs: (i) for patterns of V-region expression early in life that ensure auto(multi)reactivity at the outset of the system; (ii) for a cellular composition of thymic stroma that 'breeds' and activates regulatory (autoreactive) T cells in early development; (iii) for lymphocyte differentiation and population dynamics, that results in peripheral 'education' of regulatory tissue-specific cells, while allowing for 'unregulated' clonal responses to nonself. In the present model, S/NS discrimination is 'supraclonal' and 'dominant', related to other 'systemic' properties such as the regulation of total lymphocyte numbers, the 'open-endedness' of repertoires, and their differences in health and disease. Dominant tolerance models in general, also solve the paradox that pathogenic autoreactivity is rare, in spite of the extensive V-region degeneracy of lymphocyte recognition and the high frequency of cross-reactivity between S/NS; in short, it is astonishing that we are not autoimmune every time we get infected. As in other areas of biomedical science, time is perhaps ripe to move from component (clonal) analysis to system's biology, as some have proned for years. |
Tom Tremblay has spent decades advocating for the prevention of sexual assault and domestic violence, first as a police officer in Vermont and now as a consultant. Much of his work focuses on how to improve law enforcement practices to make it easier for victims of sexual assault to come forward and report crimes.
The fact that it took some women decades to report Donald Trump’s alleged sexual misconduct doesn’t surprise him at all.
“Victims may wait days, weeks, months, years, decades,” he says. “When one victim comes forward, it’s not at all uncommon to see other victims come forward, who are thinking, ‘Well, they came forward; now it’s not just my word.’ And then we see the next victim says the same thing.”
Victims wait to report assault, Tremblay says, because of the power dynamics often at play in these crimes.
“Oftentimes [power and control are] purposefully leveraged during the assault and afterward, with things like, ‘Nobody is going to believe you, I’m an important person in the community,’” he says.
Tremblay and I spoke Thursday afternoon about why women often wait long periods before reporting sexual assault, what law enforcement could do to better assist victims, and how the language the media uses can often disadvantaged victims. What follows is a transcribed version of our conversation, edited for length and clarity.
Sarah Kliff
What do we know about how victims of sexual assault do and don’t decide to speak publicly about the sexual violence they’ve experienced?
Tom Tremblay
We know from research and our own experience that sexual assault and rape are the most underreported crimes. And part of the reason they’re underreported is that victims are concerned about whether they’re going to be believed or not. That prevents a lot of folks from coming forward, as well as the trauma of the experience.
So we see this delayed reporting in many instances, because victims are so traumatized. For one, it’s hard for them to believe that this happened to them. Two, they don’t want to acknowledge that they’ve in fact been a victim. It’s often someone the victim knows and trusts.
The most common thing you hear, and the most common thing you see in the research, is that victims don’t think they’re going to be believed or supported.
Sarah Kliff
Can you speak a bit more about the point you made there, about why trauma would lead women to delay reporting of a sexual assault?
Tom Tremblay
One issue is the science of trauma and what happens to the brain and body during something traumatic. Nobody wants to wear the label of victim of rape or sexual assault, so they often struggle to understand what happened, what really occurred. There are so many myths and misconceptions around sexual assault. There are all these messages that it was somehow your fault. We blame victims more than we do [with] any other crime for what they were wearing, how much they drink, why did the victim do this, why did the victim do that.
Many of these messages, which victims have heard over and over again, are some of the first thoughts to go through their mind. They’re wondering, Am I going to be blamed for this, and trying to figure this out in a brain that has just been traumatized.
So when someone experiences trauma, their memories can become fragmented, and rational thoughts can be impaired. It’s really a complicated issue.
Sarah Kliff
What have you learned in your work about those who perpetrate sexual assault?
Tom Tremblay
I do a lot of training on these issues, and I do a segment on offender behavior. One of the things you see in offenders who have been studied is a sense of entitlement. That they are entitled to exercise whatever power and control they have, and that they can do what they want. Often the sense of entitlement is based on patriarchal views that have been part of our society a long time. That sense of entitlement is a big piece of sexual offenders who have been studied.
Rape doesn’t happen, sexual offenses don’t happen, unless they think they can get away with it. Sexual assault and rape are choices.
A lot of times, these crimes are committed by individuals who are using power and control over someone. You shouldn’t confuse power and control with physical violence. It’s not always that. Instead, it’s the suspect or offender who is leveraging some sort of power or control over someone. Maybe it’s their position, maybe it’s their stardom, maybe it’s their wealth. It’s not just physical power. It could be something like an age difference or experience difference that is used.
Sarah Kliff
That power dynamic is obviously leveraged during the assault, but what about afterward? How does it play out that the offender might be in a position of power related to the victim?
Tom Tremblay
Oftentimes, it’s purposely leveraged during the assault and afterward, with things like, “Nobody is going to believe you, I’m an important person in the community.”
That sense of entitlement — that I’m such a good guy that nobody would believe I would do anything like this — they promote that kind of image and use it as leverage over their victims. That stays with victims.
Sarah Kliff
Is it surprising to you that some women are just now coming forward to report sexual misconduct by Donald Trump, when those incidents happened years ago? Some on the Trump campaign have questioned why these allegations are coming out so close to the election.
Tom Tremblay
No, this is not uncommon at all. The more power and control someone has, the more devastating it is for a single victim to feel like they could come forward and report this. It’s like, who the hell is going to believe me when it’s this big, powerful person?
So when one victim comes forward, it’s not at all uncommon to see others think, “Well, they came forward; now it’s not just my word,” and then the next person says the same thing. We often see that offenders are serial offenders. They are entitled for a long period of time. So it’s not uncommon to see someone say, I’m going to come forward because this person did. |
Q:
Why ajax button calls submitForm?
I have no problems with using Ajax in every form element other then button. When I'm clicking this button
'#type' => 'submit',
'#ajax' => [
'callback' => '::ajax_function',
'wrapper' => 'my-button-wrapper',
],
it reloads the page ... well it does what would normal submit button do - calls submitForm(). And I don't need that. I need this button only to call ajax_function()
A:
In Drupal, the submitHandler() method of your form definition will always be called UNLESS you have a custom handler attached to the submit button that is clicked. In the case of #ajax buttons, you add your own custom handler, then rebuild the form in that handler.
'#type' => 'submit',
'#ajax' => [
'callback' => '::ajax_function',
'wrapper' => 'my-button-wrapper',
],
'#submit' => ['::ajaxButtonSubmit'],
Then:
public function ajaxButtonSubmit(array &$form, FormStateInterface $form_state) {
$form_state->setRebuild(TRUE);
}
By doing this, the default submit handler is not called, and your ajax submit handler is called instead, which then ensures the form is rebuilt instead of reloaded.
|
What a Difference a DA Makes is a first-of-its-kind public education campaign in Massachusetts. Powered by a network of partner organizations, this campaign seeks to highlight the key role that the Commonwealth’s district attorneys play in determining the effectiveness and fairness of the criminal legal system – and to inform and educate Massachusetts residents so they are more aware and engaged in their local district attorney elections.
OUR PARTNERS
Greater Boston Interfaith Organization
UU Mass Action
NAACP, New England Area Conference
Charles Hamilton Houston Institute for Race and Justice
EPOCA – Ex-prisoners and Prisoners Organizing for Community Advancement
Families for Justice as Healing
National Association of Social Workers
Mass Incarceration Working Group of the First Parish Unitarian Universalist of Arlington
Citizens for Juvenile Justice
Action Together Massachusetts
Massachusetts Bail Fund
Prisoners’ Legal Services of Massachusetts
The Real Cost of Prisons Project
Criminal Justice Policy Coalition
New England Innocence Project
#WeNeedToKnow
GET INVOLVED
Sign up below to get updates from the What a Difference a DA Makes campaign and learn about opportunities to get involved |
Differential effects of unilateral optic tract transections and visual cortical lesions upon a pattern discrimination in albino rats with removal of one eye at birth.
Previously we have demonstrated that adult rats with one eye removed at birth (OEB) relearn a black-white discrimination faster than control rats monocularly enucleated at maturity (OET), when relearning is conducted after lesions of the visual cortex contralateral to the remaining eye. This faster relearning phenomenon is considered to be one behavioral expression of the functioning of the expanded uncrossed visual pathways resulting from monocular at birth. The present study was concerned with the question of whether the same phenomenon can be observed in the discrimination between alternating black and white stripes oriented horizontally and vertically. Two experiments were carried out. In the first experiment, which is a replication of one of our previous studies, relearning was conducted after the visual cortical lesions contralateral to the remaining eye. The results were consistent with those of the previous one in which neither OEBs nor OETs were found able to relearn the discrimination. In the second experiment, relearning was conducted after transections of the optic tract contralateral to the remaining eye. It was shown that under this condition both OEBs and OETs could relearn the discrimination, and furthermore, that OEBs restored the habit faster than OETs. Possible mechanisms underlying the difference in the results from the two experiments were discussed. |
Q:
How to show firstname of the user in grails with shiro
i am new to grails and trying to show the firstname of the user with: "shiro:principal property="firstName"
but it gives me the following error:
Error executing tag 'shiro:principal': No such property: firstName for class: java.lang.String
If i just to use "shiro:principal" it does print the username, but i need first name.
the domain class looks like this:
class ShiroUser {
String firstName
String lastName
String username
thanks for your help!
A:
You can see the code here: https://github.com/pledbrook/grails-shiro/blob/master/grails-app/taglib/org/apache/shiro/grails/ShiroTagLib.groovy#L119
It looks to me that you might have to include type="ShiroUser" so that it gets a principal with the correct class.
So your GSP tag would be <shiro:principal type="ShiroUser" property="firstName" />
Update:
I've had a look at our code and it turns out we don't use this feature (I thought we did). We actually wrote our own tag library to achieve what you are asking about. So maybe this was a problem for us too?
So this is a tag library which we created:
UserTagLib.groovy
def loggedInUser = { attrs, body ->
def user = _currentUser()
if (!user) return
def prop = user[attrs.property]
if (prop) out << prop.encodeAsHTML()
}
def _currentUser() {
def principal = SecurityUtils.subject?.principal
if (!principal) return // No-one logged-in
return User.get(principal)
}
An example usage:
<user:loggedInUser property="fullName"/>
|
For several years I’ve been a member of a San Francisco group called the Luncheon society. Every month or so, the organizer invites some notable person — an author, a scientist, a politician, an astronaut — to join the group for lunch at a local restaurant.
The guest is introduced, he/she talks for a minute or two, and then we all sit down to have a good discussion over lunch. That’s been the format for everyone I’ve seen come to these luncheons.
Except Christopher Hitchens.
Hitch stood.
We were in a private, upstairs room at a downtown restaurant. Hitch was invited to sit, but he said he’d prefer to stand. He then opened a couple windows, pulled out a pack of cigarettes, stood behind his chair, repeatedly lifted a glass of scotch to his lips, and proceded to lecture on a variety of topics for about two hours, interrupted only by a waiter who hopelessly informed him that this was a non-smoking restaurant.
We had to expect that the lunch would be a little different with Hitchens as the guest. Everything about Christopher Hitchens was, after all, different. His timing, his humor, his positions on the topics of the day, and of course, the magnitude of his intellect.
We were, for those two hours, riveted. After lunch, a handful of us walked across the street to sit at some outdoor tables and continue the drinking. This was back in the earlier days of the Internet, before the age of follows and likes, and at the time Hitchens knew very little about topics like blogging and linking. So he asked me questions on human history’s only subject matter about which I knew more than him.
There we were, buzzed at an outdoor cafe on a sunny San Francisco afternoon, and for two minutes, I was explaining something to Christopher Hitchens who puffed and sipped in that beige linen suit he wore everywhere in those days. Those are two minutes I’ll never forget.
And I’ll never forget the urgency with which I would head to sites that featured Hitch’s essays anytime something really big happened in the world. I’d refresh the pages over and over until I could read some analysis by a guy with the firepower to back up his positions (whether you agreed with them or not, they were always well-argued).
Now that Hitch is gone, I find myself returning to those sites and to the pages of magazines where I used to find him. I keep refreshing the sites and turning the pages looking for that one article that would be smart and funny enough to put his passing into perspective. But it’s no use. The only guy who could write that article was Hitch himself. But his furiously prolific words have stopped, and the world’s IQ has dropped about ten percent because of that.
I’ve spent many moments next to people who make one feel awe. Great athletes, famous celebrities, charismatic politicians, leaders of companies. Those moments are always memorable. But the moment is different when the awe you feel is for a person’s mind. And so the moments were always a little different with Christopher Hitchens.
Looking back, I guess it all made perfect sense. In a situation where everyone else sat down, Hitch stood. |
Fibrous tumors of the pleura.
Fibrous tumor of the pleura is a rare tumor arising from mesenchymal cells underlying the visceral or parietal pleura. The tumor may have benign or malignant histological features, but these do not always predict the clinical behavior of the tumor. In most cases, the tumor appears pedunculated, and simple resection of the tumor is curative even if significant cellular atypia is present. In contrast, some tumors with a broad base of attachment may recur and occasionally become malignant. Complete surgical resection is the mainstay of therapy for both benign and malignant fibrous tumors of the pleura. When resection is incomplete or impossible, external radiation therapy with or without chemotherapy is recommended. |
import pytest
import pikepdf.codec
def test_encode():
assert 'abc'.encode('pdfdoc') == b'abc'
with pytest.raises(ValueError):
'你好'.encode('pdfdoc')
assert '你好 world'.encode('pdfdoc', 'replace') == b'?? world'
assert '你好 world'.encode('pdfdoc', 'ignore') == b' world'
def test_decode():
assert b'A'.decode('pdfdoc') == 'A'
assert b'\xa0'.decode('pdfdoc') == '€'
|
Q:
Are filtered events in Process Monitor stored in memory or on disk?
When filtering events in Process Monitor, does it store the filtered events in memory or on disk, or does it just give you a filtered count?
The reason I'm asking is, we're trying to figure out what process / machine is writing to a a directory on a server, and I'm afraid of maxing out the memory on a server. I may even be going about this the wrong way, but I'd like to find out what is writing to the directory.
A:
By default, Process Monitor stores everything, including both visible and invisible events (hidden by filters) in virtual memory. This is also clearly indicated in the status bar: “Backed by virtual memory”.
To drop invisible events completely, you can activate the “Drop Filtered Events” option in the “Filter” menu. Depending on how strict your filters are, this will greatly reduce the amount of data.
To store data on disk instead of memory, you can use the “Backing Files” dialog, available in the “File” menu. Naturally, this will reduce performance of Process Monitor.
|
External Enslavement
External Enslavement is slavery which is made inescapable by physical
forces rather than the slave's internal psychological state. Legally or
socially enforced slavery is an example of External Enslavement. Most
historical slavery took this form. |
Q:
show that if $f$ is non constant and entire , $e^f$ is transcendental
Entire function that is not a polynomial is called an entire transcendental function.
I know that $\infty$ is an essential singularity of $f$ iff $f$ entire transcendental function. Hence, I only need to show that $e^f$ has an essential singularity at $\infty$. Any hints?
A:
Simpler: $e^f$ is zero-free, so by the fundamental theorem of algebra $e^f$ can't be a non-constant polynomial. (For a complete solution you should also show that $e^f$ is constant implies that $f$ is constant.)
|
[E]Please allow me
to intro-[D]duce myself. Iím a [A]man
of wealth and [E]taste.Iíve been around for a [D]long,
long year. Stole [A]many a manís soul and
[E]faith.And I was Ďround when [D]Jesus
Christ had His [A]moment of doubt and [E]pain.Made damn sure that [D]Pilate
washed his [A]hands and sealed his [E]fate.
[Bvii]Pleased
to meet you. [E]Hope you guess my name But whatís [Esus4]
puzzling you is the [E]nature of
my game.
[E]Stuck around St.
[D]Petersburg when I [A]saw
it was a time for a [E]change.Killed the Czar and his [D]ministers;
Ana-[A]stasia screamed in [E]vain.I [D]rode a tank,
held a [A]generalís [E]rank,When the [D]blitzkrieg
raged and the [A]bodies [E]stank.
[Bvii]Pleased
to meet you. [E]Hope you guess my name But whatís [Esus4]
puzzling you is the [E]nature of
my game.
I [E]watched with
glee while your [D]kings and queens
fought for [A]ten decades for the gods
they [E]made.I shouted out [D]ďWho
killed the KennedysĒ when [A]after all it
was you and [E]me.Let me please intro-[D]duce
myself, Iím a [A]man of wealth and [E]taste.And I lay traps for [D]troubadours
who get [A]killed before they reach Bom-[E]bay.
[Bvii]Pleased
to meet you. [E]Hope you guess my name But whatís [Esus4]
confusing you is the [E]nature of
my game.
Just as [E]every cop
is a [D]criminal, and [A]all
the sinners, [E]saints.As heads is tails, just call me [D]Lucifer,
Ďcause Iím in [A]need of some re-[E]straint.So if you meet me have some [D]courtesy,
have some [A]sympathy and some [E]taste.Use all your well-learned [D]politesse,
or Iíll [A]lay your soul to [E]waste.
[Bvii]Pleased
to meet you. [E]Hope you guess my name But whatís [Esus4]
puzzling you is the [E]nature of
my game. |
:reference
FLI type descriptor
Summary
Passes a foreign object of a specified type by reference, and automatically dereferences the object.
Package
fli
Syntax
:reference
type
&key
allow-null
lisp-to-foreign-p
foreign-to-lisp-p
Arguments
type
The type of the object to pass by reference.
allow-null
If non-
nil
, if the input argument is
nil
a null pointer is passed instead of a reference to an object containing
nil
.
lisp-to-foreign-p
If non-
nil
, allow conversion from Lisp to the foreign language. The default value is
t
.
foreign-to-lisp-p
If non-
nil
, allow conversion from the foreign language to Lisp. The default value is
t
Description
The FLI
:reference
type is essentially the same as a :pointer type, except that
:reference
is automatically dereferenced when it is processed.
The
:reference
type is useful as a foreign function argument. When a function is called with an argument of the type
(:reference
type
)
, an object of
type
is dynamically allocated across the scope of the foreign function, and is automatically de-allocated once the foreign function terminates. The value of the argument is not copied into the temporary instance of the object if
lisp-to-foreign-p
is
nil
, and similarly, the return value is not copied back into a Lisp object if
foreign-to-lisp-p
is
nil
.
Example
In the following example an
:int
is allocated, and a pointer to the integer is bound to the Lisp variable
number
. Then a pointer to
number
, called
point1
, is defined. The pointer
point1
is set to point to
number
, itself a pointer, but to an
:int
. |
Boehner announced the seven Republicans who will serve on the Benghazi select committee. And Rep. Darrell Issa was noticeably missing from the list. Rep. Joseph Crowley, Joan Walsh and Luke Russert discuss. |
Consistency, accuracy, precision are all characteristics associated with athletes and the sports they participate, but most people overlook darts as a competition because it’s seen mostly as a hobby where people just joke around. While many people are unaware of the sport itself, its unique requirements make the game challenging while providing the opportunity for competitors to be highly competitive and pursue championships matches across the country. School provided a way for biology teacher Hayley Ask, algebra teacher Paul Ruiz, and senior Sara Ruiz-Payan to find the sport of darts.
“Another teacher brought me into darts,” Ruiz said. “When I first started working here, Mrs. Zalmanek invited me out one night because I was a new teacher, and I’ve been playing in the league since.”
Dart players can compete when different dart leagues form and get sponsored by a venue.
“Each team has their own dart venue, which creates a home and away location for teams to play,” Ruiz said. “You get a restaurant to sponsor you and your team plays out of that venue.”
After being invited to play darts with a group of friends and enjoying it, Ask joined Ruiz’s league.
“We watched them play,” Ask said, “and eventually that night I picked up a set of darts and started throwing and became pretty obsessed after that. I think I had my first pair of darts within a week.”
Darts is a unique sport in its uncommon nature and little knowledge people know about it.
“I like that darts is different,” Ruiz said. “Everybody shoots pool, but darts takes a little bit of skill, and you can be competitive with it as much as you want. You can do it for fun, or be involved in competitive tournaments, leagues, and get the chance to meet new people. It’s actually pretty cool.”
Dart competitions are distinguished by league play and tournaments, both providing different forms of competition.
“I mainly play in the league competitions,” Ruiz said. “There are different leagues that run year round and are normally four person teams. If you get to the end rounds, you qualify for the final tournaments. Tournaments are a little bit of a different format because they are double elimination and are normally much more large scale.”
Participation in darts has allowed the team to meet new people who they never would have met otherwise.
“I’ve gotten the chance to meet so many new people,” Ask said. “Dart people are always really nice, and I’ve enjoyed meeting people that aren’t just from the College Station area through away tournaments.”
League play, tournaments, or even pick-up games can happen anywhere. Due to the accessibility of darts, a game can be found in almost any city.
“We have gone to a lot of out-of-town tournaments,” Ask said. “When you go to places like Houston, Dallas, and Austin, you are going to find a tournament. Sometimes we have been traveling in different towns and have found a dart tournament to enter.”
While metal-tipped darts are the traditional darts used in play, there are also soft tipped darts which are used with an electric board.
“In College Station, most competitions are steel tipped,” Ask said, “but soft-tipped can be used too and are cool because you can hook it up to the internet and play people across the world.”
Participating in darts has also provided Ruiz a way to bond with his daughter, Sara.
“As I grew up, my dad would take me to play darts, which was so much fun,” Sara said. “I got better and better just by playing him because he would never take it easy on me or let me win. Now when I play him, I’ll occasionally win and won’t let him hear the end of it.”
Rather than just playing for fun, Ruiz and Sara have taken their competitive nature and applied it to tournaments to earn several first place finishes.
“Last spring we played on a team together and ended up winning the championship,” Ruiz said. “We are currently on a team now that is one of the top teams so hopefully we can repeat our championship again this year.”
While darts can be competitive, the sport provides players with an outlet for stress and a way to spend free time with friends and family.
“I love having darts as a hobby,” Sara said. “Playing in tournaments every now and then is something I enjoy and will definitely continue.”
Sara sees darts as a way to meet new people, enjoy a hobby, and learn about life.
“I like the people,” Sara said. “I definitely would not have met any of them if it wasn’t for darts. I appreciate all the strategies they have taught me about darts and about life. It’s nice to have something unique in common with people and grow off of that.” |
How to Clean Your Kitchen and Bathroom Fast
Photo Credit: YouTube - Jeff Patterson
Cleaning tile grout in your bathroom shower or floor is usually a tedious task, but Jeff Patterson’s video, on his youtube channel, ‘The Home Repair Tutor’, has an excellent invention to get the job done. His bathroom cleaning hacks can be applied to the kitchen as well and is ideal for cleaning hard-to-reach places, like tile grout or sink drains. Jeff’s easy method for cleaning kitchen and bathrooms involve attaching a brush to a drill, so that when you turn on the drill, the brush moves at high speed, cleaning your grout, tiles, or drains. With Jeff’s ingenious method for cleaning difficult places in your home, cleaning your bathroom and kitchen will become a breeze.
Bathtub cleaning is often the most difficult type of cleaning in your bathroom because soapy grime adheres to the sides of the bathtub and shower very well. The brush Jeff uses, will be soft enough not to scratch the finish on your bathtub, but also work hard enough to remove any built-on dirt in your tub. The way how to clean a bathtub will never be as easy as using a soap dispensing brush that can cut through the grime on your bathtub and shower, and by attaching the brush to a drill, the brush will move a lightening speed making it an efficient tool for all your bathroom cleaning needs. The drill and brush idea can extend well beyond this, however, and be used for cleaning your bathtub taps and showerhead as well.
If you have extremely severe build-up in your shower or tub, it may take a little more effort than the drill and brush to remove the grime, although the drill will be a useful tool in all your bathroom cleaning endeavours. Jeff indicates that using a mixture of Oxiclean and water is one of the most effective ways of removing dirt from tile grout when paired with the drill and brush. Oxiclean is a product that does extremely well at removing stains and Oxiclean has several products from laundry supplies to household cleaners to help you get your jobs done. It is a chemical cleaning product, however, so if you feel better about a natural cleaning product, consider trying a mixture of baking soda and vinegar, then spraying it on the grout or whatever surfaces need cleaning. The chemical reaction will cause the mixture to foam and break down stains easily.
If you don’t own a drill, don’t worry, since you can purchase some varieties for reasonable pricing and it would be an excellent investment for more traditional household tasks like hanging pictures. You could even borrow a drill from a neighbour or family member while sharing with them this unique bathroom cleaning trick. Many hardware stores will also give you the option of renting a drill for a reasonable fee. Thank you to Jeff Patterson, the videographer of the ‘Home Repair Tutor’ video blog, for sharing his method for how to clean your kitchen and bathroom fast. ** |
Q:
Without AJAX call simple post method is not working in Laravel, I'm not using AJAX simple form
route ::post()is not working fine on the other hand route::get() is working fine and other method is working, just post method is not working
Route::get('/', 'HomeController@index');
this route is working:
Route::post('/posts', 'Cdesignation@index');
but this route is not working
use same form:
<form action="/form/process" method="POST">
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div> <input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
<input type="submit" class="btn btn-default" value="Submit">
</form>
how to resolve it
A:
if you notice that the route in the form is /form/process it should be /posts
|
Lack of correlation between trace metal staining and trace metal content of the rat hippocampus following colchicine microinjection.
Following the intrahippocampal injection of colchicine, the trace metal staining with Timm's method is shown to change in the hippocampus. The histochemical examinations were supplemented with atomic absorption spectrophotometric measurement of the trace metals (Zn, Fe, Cu). It was found that intrahippocampal colchicine treatment induces the temporary disappearance of the trace metal staining of the pyramidal cells of the regio superior, while there is a considerable reduction in the staining in the granular cells of the area dentata and in their mossy fibre terminals. Simultaneously, in contrast with the histochemical results, quantitative studies on the trace metal levels showed that colchicine does not lead to evacuation of the trace metals from the hippocampal formation. The combined atomic absorption and trace metal staining investigations prove that there is no correlation between the trace metal staining and the quantitative amounts of the trace metals. |
(defstruct dlist head tail)
(defstruct dlink content prev next)
(defun insert-between (dlist before after data)
"Insert a fresh link containing DATA after existing link BEFORE if not nil and before existing link AFTER if not nil"
(let ((new-link (make-dlink :content data :prev before :next after)))
(if (null before)
(setf (dlist-head dlist) new-link)
(setf (dlink-next before) new-link))
(if (null after)
(setf (dlist-tail dlist) new-link)
(setf (dlink-prev after) new-link))
new-link))
(defun insert-before (dlist dlink data)
"Insert a fresh link containing DATA before existing link DLINK"
(insert-between dlist (dlink-prev dlink) dlink data))
(defun insert-after (dlist dlink data)
"Insert a fresh link containing DATA after existing link DLINK"
(insert-between dlist dlink (dlink-next dlink) data))
(defun insert-head (dlist data)
"Insert a fresh link containing DATA at the head of DLIST"
(insert-between dlist nil (dlist-head dlist) data))
(defun insert-tail (dlist data)
"Insert a fresh link containing DATA at the tail of DLIST"
(insert-between dlist (dlist-tail dlist) nil data))
(defun remove-link (dlist dlink)
"Remove link DLINK from DLIST and return its content"
(let ((before (dlink-prev dlink))
(after (dlink-next dlink)))
(if (null before)
(setf (dlist-head dlist) after)
(setf (dlink-next before) after))
(if (null after)
(setf (dlist-tail dlist) before)
(setf (dlink-prev after) before))))
(defun dlist-elements (dlist)
"Returns the elements of DLIST as a list"
(labels ((extract-values (dlink acc)
(if (null dlink)
acc
(extract-values (dlink-next dlink) (cons (dlink-content dlink) acc)))))
(reverse (extract-values (dlist-head dlist) nil))))
|
Dilbert: We are going to try something called Agile Programming... - nickb
http://www.dilbert.com/comics/dilbert/archive/images/dilbert2666700071126.gif
======
champion
Man, developers in my office _loved_ this...
------
sammyo
Posted over the sink!
|
package com.github.jknack.handlebars.i367;
import java.io.IOException;
import org.junit.Test;
import com.github.jknack.handlebars.AbstractTest;
import com.github.jknack.handlebars.Handlebars;
import com.github.jknack.handlebars.Helper;
import com.github.jknack.handlebars.Options;
public class Issue367 extends AbstractTest {
@Override
protected void configure(final Handlebars handlebars) {
handlebars.registerHelperMissing(new Helper<Object>() {
@Override
public Object apply(final Object context, final Options options) throws IOException {
return "nousers";
}
});
}
@Test
public void missingHelperOnVariables() throws IOException {
shouldCompileTo(
"{{#userss}} <tr> <td>{{fullName}}</td> <td>{{jobTitle}}</td> </tr> {{/userss}}", $, "nousers");
}
}
|
The City of Vancouver has announced a new capital grant program for Downtown Eastside organizations. The program is open to not-for-profit social service, child care and arts and culture groups that are planning a capital project.
The Downtown Eastside (DTES) Capital Grant Program is led by Planning and Development Services with assistance from the City’s Social Policy Grant Team. Funding is available to projects located within the DTES boundaries.
Vancouver-based non-profits, cultural, community service or childcare organizations, or charities registered with Canada Revenue Agency including organizations in City-owned or leased facilities, are eligible. |
Description
Thank you for playing my game! It was fun to make. But now it's open sourced for the public! What happens when you mix The Roblox Plague, R2D,TF2, VH, Super Check Point, #### MC, Super Mario, and other game mechanics into one game? You get this mess. That kind of mess you like to play with and comfortable. So that's what Project R is. A Zombie (TRP alike) Survival game with tons of Arcade elements which makes this a fun crazy game. The objectives are: Survivors: Kill the toxic to advance the next round. Toxic & Monsters: Kill all the humans by ######## ##### The game has some bugs. One of the skyboxes by rootx |
Announced this week, the plan is backed by historians, activists and neighborhood residents. It calls for the creation of an outdoor museum and memorial district, as well as the construction of a canal extension that supporters say would celebrate the now-buried Shockoe Creek and address storm water management issues in the flood-prone area. (Read the full outline of the plan here.)
It's the first time that what has been a disparate mishmash of ballpark opponents has come together behind a single counterproposal. The coalition calls it a starting point, with its members planning a series of community meetings to further shape it.
The group hopes to change the way people look at the debate.
"Up until this point people have only seen one idea illustrated," says Ana Edwards, a longtime stadium opponent with Richmond Defenders for Freedom, Justice and Equality. "We are very hopeful that this gives people another way to visualize what can happen in Shockoe Bottom."
The group that put together the plan includes such organizers as Edwards and her husband, Phil Wilyato, along with Waite Rawls, executive director of the Museum of the Confederacy, Randolph Bell, former president of the First Freedom Center, a group of Church Hill residents and some black activists.
They propose that the baseball stadium remain on the Boulevard, and that the commercial development the mayor has called for in Shockoe Bottom be allowed to go forward without a stadium. Instead of a sports facility, the plan calls for the two blocks bounded by Broad, 17th and Franklin streets to be dedicated to a memorial district that could take the form of park marked by monuments.
The park includes what the group is calling the Shockoe Creek Canal Extension, which would run along the east side of the railroad tracks and represent the "historic connection between Shockoe Creek, the Kanawha-Haxall canals and the James River," and help the city meet the Environmental Protection Agency's mandate that the city separate storm water and sewage.
The proposed footprint leaves existing businesses intact, the proponents say, and that proper planning for parking on the Boulevard will offer the same amount of space for new, private development as the mayor's proposal. Thus, they say, the plan could be financed in the same way as the mayor's ballpark proposal — with new tax revenue and bonds backed by a tax incremental funding district.
"What we're suggesting is, you can do the same kind of development that the mayor's plan is suggesting, minus the baseball stadium," says David Herring, a member of the city's Slave Trail Commission. "What this is, is an alternative to show that you can have development in the Bottom equal to what the mayor's plan is suggesting but also be respectful of the history." |
Mutual interaction of ion uptake and membrane potential.
The concentration dependence of cation uptake by the cell may be considerably complicated when this uptake is accompanied by a depolarization of the cell membrane. In case of carrier-mediated transport deviations from Michaelis-Menten kinetics may come to the fore comparable to those found in a dual mechanism of cation uptake or when substrate inhibition is involved. This remains true when only the maximum rate of uptake and not the Km is dependent upon the membrane potential. We have proven this by means of computer simulation of cation transport mediated by a non-mobile carrier. Under restricted conditions still apparent Michaelis-Menten kinetics may be found despite the fact that the membrane potential varies with increasing substrate cation concentration. But even then there are still differences with 'normal' transport kinetics. A non-competitive inhibitor does not only affect the maximum rate of uptake but also the apparent Km. Depolarization of the cells by a cation which passes the cell membrane by means of diffusion, affects the uptake of the substrate cation almost in the same way as a non-competitive inhibitor does and causes both a decrease in the maximum rate of uptake and an increase in Km. In the case of competitive inhibition the apparent affinity of the inhibitor for the carrier depends upon the rate of transfer of this inhibitor through the cell membrane. The mutual influence of cation uptake and membrane potential is dealt with for uniport of either monovalent or divalent cations and for cotransport of monovalent cation with protons, as well. Possible effects of the surface potential are accounted for. |
The interstitial cells control the sexual phenotype of heterosexual chimeras of hydra.
The three stem cell populations in hydra, the epithelial cells of the ectoderm and endoderm, which make up the body of the hydra, and the interstitial cells, which give rise to nerve cells, nematocytes, and gametes, were tested for their effects on determining the sexual phenotype of individuals. This was done by creating epithelial hydra, which are devoid of interstitial cells and their derivatives, of one sexual type and repopulating them with interstitial cells from individuals of the other sexual type. The resulting heterosexual chimeras were found in all cases to display the same sexual phenotype as that of the interstitial cell donor, indicating this cell type is responsible for the sex of the animal. The epithelial tissue had no influence in determining which gamete type was produced. |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
function MeuObjeto() {}
console.log(MeuObjeto.prototype)
const obj1 = new MeuObjeto
const obj2 = new MeuObjeto
console.log(obj1.__proto__ === obj2.__proto__)
console.log(MeuObjeto.prototype === obj1.__proto__)
MeuObjeto.prototype.nome = 'Anônimo'
MeuObjeto.prototype.falar = function() {
console.log(`Bom dia! Meu nome é ${this.nome}!`)
}
obj1.falar()
obj2.nome = 'Rafael'
obj2.falar()
const obj3 = {}
obj3.__proto__ = MeuObjeto.prototype
obj3.nome = 'Obj3'
obj3.falar()
// Resumindo a loucura...
console.log((new MeuObjeto).__proto__ === MeuObjeto.prototype)
console.log(MeuObjeto.__proto__ === Function.prototype)
console.log(Function.prototype.__proto__ === Object.prototype)
console.log(Object.prototype.__proto__ === null) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.