Would HgTe be a topological insulator?

Question: In "Quantum Spin Hall Insulator State in HgTe Quantum Wells", researchers observed a 2D topological insulator by sandwiching HgTe between CdTe.  Is the CdTe really necessary?  Would Vacuum/HgTe/Vacuum itself be a topological insulator?
Answer: Well, the answer is yes and no. The band inversion between the $s$-like (conduction) band $\Gamma_6$ and $p$-like (valence) band $\Gamma_8$ in HgTe is primarily responsible for its topologically nontrivial band structure. The bulk band structure of HgTe with (right) and without (left) spin-orbit coupling is shown in the figure below. There are a total of eight bands (including spin) shown in both figures. Since we're interested in the physics close to the $\Gamma$ point, we can approximately ignore bulk inversion asymmetry. Under this assumption the spin up and down bands are degenerate as clearly seen from the figure. From this point on I will not consider spin explicitly when talking about bulk band structure; i.e. there are a total of four bands (ignoring spin) in the figures below. Note: Please don't focus on the quantitative details of the left figure. It is a hypothetical scenario introduced purely for pedagogical purposes.

You can notice that, in the figure on the left (without spin-orbit coupling), the heavy hole (HH) and light hole (LH) bands are degenerate. When you turn on spin-orbit, the $\Gamma_6$ and $\Gamma_8$ bands reverse their order, the $\Gamma_8$ band splits its degeneracy, and the LH band gets inverted. The Fermi energy sits at the intersection point of the LH and HH bands. But notice that, despite LH and HH acting as the conduction and valence bands (right figure) respectively, there is no gap between them! You cannot get a topological insulator without a bulk gap. If you could somehow induce a gap between the LH and HH bands (say) by straining HgTe then it could, in fact, be turned into a 3D topological insulator!
Now, there were several (experimental) advantages in creating a CdTe/HgTe/CdTe quantum well. First of all, since it's a quantum well you would have sub-bands (not bands unlike bulk materials) due to quantum confinement in the out-of-plane (say $z$) direction. As a result, a single band in the bulk will split up into several sub-bands, each corresponding to a different quantized $k_z$, as you shrink the thickness of the material in the $z$-direction. Now, you can notice (in the figure below), unlike the bulk, the electron (conduction) and hole (valence) sub-bands do have an energy gap.

This plot obviously shows the minima (electron) or maxima (hole) of these sub-bands; they still disperse in k-space. And as you may know the inversion of the sub-bands will occur when you cross the critical thickness (as shown in the figure below).

Another very important advantage of using a quantum well structure in doing your experiments is that, unlike a bulk sample, you can electrically tune your Fermi energy using a gate. You could both tune your Fermi energy to intersect the electron (or hole) sub-band or keep it in the gap, and observe the change in conductance. When you are in the quantum spin Hall regime you will never stop conducting as your Fermi energy goes from the electron (or hole) sub-band to the gap; this is due to the topologically protected (due to time-reversal symmetry) edge states inside the bulk gap (here bulk means not on the edge of the well). In a bulk sample (bulk meaning not quantum confined) you would probably have performed some sort of controlled doping (assuming the gap has already been induced somehow) to control your Fermi energy. In that case you would probably have to fabricate different samples for different values of Fermi energy; that's certainly very inconvenient.
In summary, you need to somehow induce a gap in HgTe, by either quantum confinement or induced strain to turn it into a 2D or 3D topological insulator. CdTe is not responsible for the key physics, i.e. band inversion, which gives rise to a topologically nontrivial band structure in HgTe. It is interesting to note that the HgTe quantum well was not the first proposal by Bernevig, Hughes, and Zhang. The experimental difficulty of working with strained HgTe led them to revise their proposal and predict a topological insulator in the quantum well instead! This was back in 2006; people have now managed to experimentally create 3D topological insulators out of strained HgTe.
Comment: Wow excellent!  This clears up a lot of confusion.  I'll keep thinking about this.  One question though: why can we ignore inversion asymmetry near the $\Gamma$ point?
Comment: Check the figure at:
Comment: http://www.annualreviews.org/na101/home/literatum/publisher/ar/journals/content/conmatphys/2011/conmatphys.2011.2.issue-1/annurev-conmatphys-062910-140538/production/images/large/co20040.f4.jpeg

Observe the bulk sub-bands for a HgTe strip (blue), which is finite in the $y$-direction, and the Dirac-like dispersion of the edge states (red). You can note that the edge dispersion only exists in $-|k_{{\rm max}}|\le k\le|k_{{\rm max}}|$. This $k_{{\rm max}}$ is typically very small. Hence the key physics away from the $\Gamma$ point is not very relevant.
Comment: Murakami et. al (http://prb.aps.org/abstract/PRB/v76/i20/e205304) have considered the effect of bulk inversion asymmetry on the location of gap closing in k-space. But this is simply a mathematical exercise; the qualitative physics is still unchanged.
Answer: For the vacuum/HgTe you'd have 2D TI somewhere on surface of HgTe which is not very convenient for study of this state. In addition, surface defects will make the result hardly usable even for experiments, don't even think of applications. In CdTe/HgTe/CdTe QW you have a good control on the properties of the system, it has a perfect lattice, etc.
Answer: Actually, the main reason is that because HgTe is a zero-gap semiconductor. Of course, Graphene is also a zero-gap semiconductor but which is made out of carbon elements—a light element with a weak spin-orbit interaction. At this point, better to look at other materials with strong spin-orbit interactions, made from heavy elements.
Comment: There are plenty of zero-gap semiconductors that are *not* topological insulators, starting with graphene.

Would HgTe be a topological insulator?


Rotating both hands downwards

Question: I found my answer some days ago but I forgot how to reproduce it again, my character is in T-pose, and in the final Idle pose both of his hands must be down near his legs. I tried rotating around individual origins, tried R > Y > Y, there was that one option in the menu that allowed me to do what I intend but can't remember which one it was, it worked in pose mode and there was no need for mirroring every time because it happened automatically. Please help.
Answer: I don't know if is this that you are looking for, but there is an option to move the mirrored bones if they have names like arm.L/arm.Left and arm.R/arm.Right.
Its named X-Axis mirror and you can find it in the Options Tab when pressing T while in the Edit Mode.

Rotating both hands downwards


Precise definition of a 'biased sample'?

Question: Is there a precise definition of what a biased sample is? Or is it just a somewhat loose notion used in everyday parlance, but which does not have a precise mathematical definition?
Answer: Bias is usually defined in the negative, in that we ask whether a sample is unbiased, and an unbiased sample has the following characteristic:

Each member of the population has an equal chance of being selected by the sample

If you need that as a math equation:
$$
P_i(S) = p  \forall i \in Pop,
$$
where $P(S)$ is the probability of being selected, $p$ is some probability s.t. $\sum_{i}^N p_i = 1$
So a biased sample is any sample for which that isn't the case.
Comment: @Dimitry well, sure, I was working from the simplest case, but you're totally right. For cases of clustered/stratified sampling, you could extend it to say within each cluster, the probability of being sampled should be the same.
Comment: I am pretty sure you definition would designate complex survey data (with sampling weights, one or more stages of clustered sampling, and stratification) as biased, which is surely not always the case.


2000s bizarre cartoon show about magic cubes?

Question: Does anyone remember a cartoon show from probably somewhere in 2000 to 2015? It involved magic cubes, a yellow robot sidekick, a big Mexican mechanic, and a girl who couldn't sing.
Comment: Hmm. [_Yo Gabba Gabba!_](https://en.wikipedia.org/wiki/Yo_Gabba_Gabba!) (2007-2015) had a yellow robot friend. I don't see the cubes, mechanic, or non-singer, but the show included many characters who appeared only once. Here is a sample on [YouTube](https://www.youtube.com/watch?v=SLwkQf52RzU).
Answer: Di-Gata Defenders (2007).
From TvTropes:

The series follows the travels and adventures of six teenage children, part of an organization called the Di-Gata Defenders. Their mission as heroes is to defend the planet Ra Dos against evil factions. Seth, Melosa, Erik, Kara, Rion and a Sixth Ranger must defeat the evil Lord Nazmul and his Order of Infinis before they take over Ra Dos. The team meet many friends and allies along the way but also encounter enemies. Knowing just who is friend or foe is vital if the Defenders are to succeed in their mission.

Also from the same page:

Dreadful Musician: Mel loves music, but she's a terrible singer.

The opening has the summoning cubes and the yellow robot:

Remembered from my own answer to Show like Pokémon, but with dice that have runes.


"I am select for the job" "I got/became select for the job"

Question: Considering "select" as an adjective. Could we say "I am select for the job" and "I got/became select for the job"
Comment: It isn't an appropriate adjective here - see [this definition](https://www.oxfordlearnersdictionaries.com/definition/english/select_2).
Comment: What is your intended meaning? Do you mean that you are suitable for the job, or that you were chosen to do the job?
Comment: I was  **offered** the position (job).
Comment: @alphabet as an adjective as in state/condition
Answer: The adjective select, in modern use, usually means "extra special". It is not used for things (or people) which have just been selected for some particular purpose.
Comment: Also worth noting that _select_ as an adjective is like _several_ or _some_ in that it cannot be used predicatively. "It is select" is ungrammatical.
Comment: @AndrewRay There may be a grey area: His select choices/taste -> his choices/taste are/is very select...
Comment: In fact, in modern retail marketing, "select" means no more than "some, and we decide which".
Comment: @CCTO: yes, I wondered whether to mention that. I would say rather that in marketing "select" means nothing at all, but is meant to make you think that somebody has carefully selected the items.
Comment: @Peter-ReinstateMonica See, I would have to say that his taste is very _selective._
Answer: I hazard a guess that this is some kind of homework: write a sentence using "select" as an adjective.
So, English isn't as simple as it looks. The past tense of "select" is "selected", so the sentences you wrote would have to look like this to be corect:
"I was selected for the job" and "I got selected for the job"
("became selected" is not something a NS would say, however correct it might look.)
Now, if you want to use "select" as an adjective, try this sort of thing:

As one of the select few he received a job.
The office was manned by a select collection of volunteers.
A basket of select brands of chocolates

But I must say, it's hard to find examples which don't look strange.
Comment: As the examples demonstrate, "select" as an adjective is typically applied to a collective noun.  It conveys that the members of the collection were selected specifically for it, generally according to some high standard, though that selection process can sometimes be metaphorical.
Comment: I agree about past tense.  In formal speaking, one usually should avoid 'get' also.  Informally, get/got is OK, however.
Comment: "Selected" is the past tense of "select", but in the cases provided you are using the *past participle*, which is a different construction. In this case is also "selected". But for other verbs the past tense and the past participle can be different forms.
Answer: No, one is either select or not select; a person isn't generally select "for" something. (Also, the adject "select" is usually used attributively, not predicatively, although the latter isn't necessarily wrong.) It would be better to say:

I have been selected for the job.
I was selected for the job.
I got selected for the job.
I am being selected for the job.
Etc.

(You didn't ask specifically about the verb, but note that some verb forms work better than others, depending on the intended meaning.)
Comment: Why are you writing about the verb "select"?  The question is about (and tagged for) the _adjective_.
Comment: @TobySpeight My first paragraph directly addresses the adjective "select" and why it doesn't work in OP's proposed sentences. The rest of the answer addresses how to fix the problem, and a natural way to do so is to use the verb "select" instead.
Answer: The only case that I am aware of in which the adjective select is commonly used is in the phrase a select few, such as in "The luxury of traveling by private jet is only available to a select few." Select basically modifies few then and means "of only the best type or highest quality, and usually small in size or amount" .
If you're trying to say that you're (one of) the best candidate(s) for the job, I'd say something like

I'm the ideal candidate for the job
I'm well-suited for the job
I'm uniquely qualified for the job


Friction with balls rolling down a funnel

Question: I have made a funnel with some balls that are set to move sideways to begin with. Once they hit the funnel, they immediately stop and roll towards the centre. They seem unwilling to roll in the funnel itself. All is rigid. no bouncing. friction is set to almost zero.
How can I make them roll more willingly?
Comment: What have you set the collision 'Shape' for in your Rigid Body properties for the balls? Are you using 'Mesh' or 'Convex Hull' perhaps? Try changing that to 'Sphere' and see if that helps. I've managed to get a simulation working where it's rolling but had to use 'Sphere', otherwise the edges/corners seem to cause collisions and it loses momentum.
Answer: I  don't know ... in theory right curvature (what is right?), enough weight and initial speed should work, but didn't for me either. It is loosing speed too quickly. Some low Friction helped a bit, so its not such slippery.

add Vortex force field, Strenght 20, Inflow -2 and
lower Gravity to -4

to make it work. Even this is not going in spiral, but in oval. I'm not happy about that, but probably better something than nothing.

Also there seems to be some collision margin, but I checked sphere and collider, there is almost notnihg.

Notes: Initial ball velocity is given by animation (first 10 frames). To make it work for riggid body you have to ad two keyframes to two animate checkbox frame zero on/ frame 10 off (Physics Properties > Riggid Body > Settings > Animated)
Comment: Consider to accept the answer @JohnEHals How this site works: https://blender.stackexchange.com/tour
Comment: Thank you very much for your input. It brought me a lot closer. I also remodelled the funnel and it worked much better.
Answer: I believe your problem is due to the collision 'Shape' of the ball - the uneven surface is preventing it from rolling correctly and is causing additional friction.
I created a scene to mimic your setup and ran the simulation. Here is the result with the collision set to 'Mesh' :

This produces results very similar to your - the ball starts to roll around but quickly loses speed and then drops towards the centre.
Next I tried with the default of 'Convex Hull'. I was expecting this to produce the same result as for Mesh, since a UV Sphere is effectively the same shape as it's already completely convex. However, it produced very erratic movement (presumably the generation of the convex hull for collision produces a more irregular surface than 'Mesh') :

Next I tried with collision set to Sphere. This should produce much more accurate results since collision is considered a perfect sphere rather than that approximated by the mesh :

This produced much more effective rolling.
In short, any inaccuracies in the interaction between the surfaces will produce friction and affect the simulation. Choose the collision shape most appropriate to the mesh for more accurate simulations.


Online time-series smoothing algorithm for sparse data

Question: I am working on building a real-time system for processing and aggregating somewhat sparse and irregular survey measurements (ranges from 0-100, usually on the order of 20-100 measurements). I am looking for a way to remove the noise and smooth out this data so our end users can see the overall trend. The main constraint of the problem is that the data needs to be normalized online — past measurements cannot change as a user should be able to reference historical data. Are there any good algorithms to do this? I was thinking about a simple moving average, but it tends to be pretty volatile if an outlier enters/exits the averaging window. Thanks so much!
Answer: Try a median filter: for each data point, take a window about that data point of a size you will need to experiment with, and let the new value for that data point be the median of all the points in the window. This is very robust to outliers, since medians are robust to outliers. It also has the virtue that, if your windows always include an odd number of data points, the result consists entirely of actual data points. They may shift about slightly from left to right or vice versa, but never farther than your window size. I think you will find that this filter crunches noise down very effectively.
One note: on the edges, you will need to have lop-sided windows, most likely. That shouldn't be too much of a problem - I'd still recommend having some algorithm ensure that every window has an odd number of data points in it.
One implementation detail is important: when you start replacing data points with medians of data points, don't allow the new median values to influence subsequent windows. Keep calculating medians based on the original data only.
Comment: Hey Adrian, thanks for the answer. I am a little confused on how this would work on the edges (which it is always going to be as we receive new data). The median (unless the window was of size 1 or 2), wouldn't incorporate that new data, right? Am I misunderstanding?
Comment: We still do want to incorporate all of the data points - they should have some effect, but it shouldn't be as pronounced in completely changing the value. Does that make sense?
Comment: First comment: on the edges, your window would have to be one-sided. So, for the first data point, you would examine the first 11 data points, say, and use the median of those as your first point. For the last data point, your window would have to look back in a similar fashion. Second comment: any filter you use will change the data somehow. And all the data points in my proposal are having an effect in choosing medians. It's true that the largest data point you have can be increased as much as you want without changing anything. But that's only because it was already the largest.
Comment: Understood. The only issue with the median approach is that it reduces the amount of data points we have (which are already quite irregular and sparse). It would be great if there was some methodology that did something similar to the median filter, but we didn't end up losing data.
Comment: Amrit: Look, you're asking to smooth the data, which by definition means altering it. But you want to do that without "losing data"? That's a contradiction right there - impossible by definition. Any smoothing algorithm is going to lose data - that's a 100% guarantee. Just consider an outlier: you would want your smoothing to change that point, right?

What you really ought to be doing is improving your data rate! You haven't mentioned over what timescale your 100 measurements are taken, but increasing your data rate can only help, if it's at all possible.
Comment: Thanks Adrian for your comment... sorry I was a tad unclear. What I meant was that I would like outliers to have some effect on the underlying score, but they shouldn't completely skew the smoothing. But I totally understand what you are saying. Thanks so much!


How to make more then one character from one rigged mesh

Question: Is it possible to create one mesh character (all rigged with rigify) then change the mesh to look like a new character and adjust the rig? I'm making a comic book and that would save me a lot of time making all the characters in my story. I'm not doing animation just yet. Only pose.
Answer: Adjusting a Rigify rig is not impossible but it's quite complicated, due to the presence of lots of machinary and auxiliary bones, that can be revealed turning on all the bone layers of the armature.
The best way to achieve your result is to adjust the metarig to the new copy of the character, and generate a new rig (change the name of the first rig before generating the second).
If you don't want to redo the wheights assignement, you can use all weight already present, just bear in mind that the new rig will have a new name, and you will have to set this new name in the object field of the armature modifier.


Transform a set of 2d images representing all dimensions of an object into a 3d model

Question: Given a set of 2d images that cover all dimensions of an object (e.g. a car and its roof/sides/front/read), how could I transform this into a 3d objdct?
Is there any libraries that could do this?
Thanks
Answer: These "2D images" are usually called "textures". You probably want a 3D library which allows you to specify a 3D model with bitmap textures. The library would depend on platform you are using, but start with looking at OpenGL!
OpenGL for PHP
OpenGL for Java
... etc.
Comment: Hi thanks for the links. I am using C# and need to do this from the web (asp.net).
Comment: I don't know this platform, but as I know M$ it will have its own library (like some DirectX.... I really don't know). But you might also try OpenGL, just try google.
Answer: What there is currently that can do anything close to what you are asking for automagically is extremely proprietary.  No libraries, but there are some products.
This core issue is matching corresponding points in the images and being able to say, this spot in image A is this spot in image B, and they both match this spot in image C, etc.
There are three ways to go about this, manually matching (you have the photos and have to use your own brain to find the corresponding points), coded targets, and texture matching.
PhotoModeller, www.photomodeller.com, $1,145.00US, supports manual matching and coded targets. You print out a bunch of images, attach them to your object, shoot your photos, and the software finds the targets in each picture and creates a 3D object based on those points.
PhotoModeller Scanner, $2,595.00US, adds texture matching. Tiny bits of the the images are compared to see if they represent the same source area.
Both PhotoModeller products depend on shooting the images with a calibrated camera where you use a consistent focal length for every shot and you got through a calibration process to map the lens distortion of the camera.
If you can do manual matching, the Match Photo feature of Google SketchUp may do the job, and SketchUp is free. If you can shoot new photos, you can add your own targets like colored sticker dots to the object to help you generate contours.
If your images are drawings, like profile, plan view, etc. PhotoModeller will not help you, but SketchUp may be just the tool you need. You will have to build up each part manually because you will have to supply the intelligence to recognize which lines and points correspond from drawing to drawing.
I hope this helps.
Answer: I've heard of the program "Poser" doing this using heuristics for human forms, but otherwise I don't believe this is actually theoretically possible. You are asking to construct volumetric data from flat data (inferring the third dimension.)
I think you'd have to make a ton of assumptions about your geometry, and even then, you'd only really have a shell of the object. If you did this well, you'd have a contiguous surface representing the boundary of the object - not a volumetric object itself.
What you can do, like Tomas suggested, is slap these 2d images onto something. However, you still will need to construct a triangle mesh surface, and actually do all the modeling, for this to present a 3D surface.
I hope this helps.


Why would you express a time series as deviations from the mean?

Question: I have been trying to learn time series analysis on my own and in a textbook I came across the idea that one could express each data point in a stationary time series as deviations from the mean in order to isolate the stochastic components. Since taking the first difference of a time series removes stochastic trend why would someone want to do this? Are the stochastic components still there after differencing?
Comment: Do you think differencing makes time series deterministic?
Comment: @Aksakal No. But from what I had read differencing removed the stochastic component and only the deterministic component remained. Is that correct?
Comment: If you've found the answer by @Aksakal at least a bit helpful, please don't to forget to upvote and/or accept it.
Comment: @MartinModrák Thank you for the reminder.
Answer: Suppose, you ran into a pure unit root process: $x_t=x_{t-1}+\varepsilon_t$, where $\varepsilon_t$ is a random shock. All that differencing does is: $\Delta x_t=\varepsilon_t$, so it did isolate the stochastic component (noise) into the new differences series. Now, you can study this noise.
This was the simplest case with a unit root. Look at the random walk with a deterministic trend: $x_t=x_{t-1}+a_t+\varepsilon_t$, differencing will render: $\Delta x_t= a_t+\varepsilon_t$. In this case the differenced series had a stochastic noise and thx deterministic drift $a_t$.
The real problem in practice is not differencing and fitting a model but selecting a model. In these silly examples we knew the data generating process (dgp) then applied proper differencing to extract the stationary part from the nonstationary series. In practice we rarely know the true process. We often end up applying differencing where it is not appropriate or do not apply where it had to be applied, or we mistake the deterministic drift $a_t$ for stochastic because it often does look like it etc.
Comment: Okay, so if a time series requires differencing (i.e. has a unit root) then the resulting data are all stochastic deviations from the mean? If a time series does not have a unit root then any trend that is visible is deterministic?


What is the meaning of 'Power of the Death'?

Question: What is the meaning of the word 'power of death' which Satan was holding as in Heb 2:14.?
Answer: The Devil is considered a prince of a kingdom.  To be a prince he must have some kind of power that he wields over his subjects.   If we said a king has the power of wealth, we mean he has a lot of money and that he exerts a lot of influence by it. In the same way the 'power of sin' or 'power of death' is something one can have and exert influence with.  The Devil having introduced sin into the world and through sin death, became a prince of the world having a lot of destructively powerful sin and death in himself. Like a disease, the Devil, with the power of death, causes sin and death to spread through his influence.  He according to this power works his desire to destroy and kill. He by his daily temptations increases death in the world, a world under his power as a result of being made subject to death.
The Devil by tempting Adam and Eve brought all men under a power of death

Therefore, just as sin entered the world through one man, and death through sin, and in this way death came to all people, because all sinned —(NIV, Romans 5:12)

He is a prince over the kingdom of the world which resulted from death entering into it

As for you, you were dead in your transgressions and sins, in which you used to live when you followed the ways of this world and of the ruler of the kingdom of the air, the spirit who is now at work in those who are disobedient. (NIV, Ephesians 2:1-2)

Although there may be nothing legitimate about his power of sin and death, he nevertheless has great power in his rebellion as the prince of this world and is in that sense like a powerful Lion:

Be alert and of sober mind. Your enemy the devil prowls around like a roaring lion looking for someone to devour. (NIV, 1 Peter 5:8)

Therefore to conclude with a pointer from the obvious beginning, God said the moment Adam ate from the fruit he would die but this could not have been primarily physical as he did not die. Also that they felt ashamed, hid from God and this proves they did die inwardly. The bible does not treat physical death as serious as spiritual death anywhere.
Comment: @taurivalor - Sure why not. In addition to those provided above I would starts with the obvious beginning. God said the moment Adam ate from the fruit he would die. This could not have been primarily physical (though including it) as he did not die.  Also that they felt ashamed, hid from God ect., proves they did die inwardly. The bible does not treat physical death as serious as spiritual death anywhere.
Comment: Mike, thanks for the explanation, but, does the word 'Death' signifies Physical Death or Spiritual Death? Is it right to understand it from Eph 2:1-2 that this is Spiritual Death?
Comment: I personally see no textual reason to limit it to physical death. Physical death is just one aspect of the death that the Devil introduced into humanity in the Garden of Eden. It is primarily a spiritual death, i.e. power to deceive and lead people away from God into sin. In fact it would have to be spiritual because those in the world are not physically dead, yet they are in his 'kingdom' under his 'power', so the power of death must be spiritual in its primary definition.
Comment: Mike, is that your self observation? if you have any biblical references as pointers on your conclusion that this is spiritual death, please let me know so that I can research more on this.
Comment: Mike, if you accept, I edited your reply adding your comment to mark it as correct answer. Thanks.
Comment: @taurivalor - sure ok.
Comment: In your last paragraph, you stated that Adam did not die. Do you mean to say that God lied to him? Romans 5:12 NASB "Therefore, just as through one man sin entered into the world, and death through sin, and so death spread to all mankind because all sinned—
Answer: Question Restatement: "Power" seems to be ambiguously translated in this context, leaving one to ask: Does this term imply: Authority (ἐξουσίαν), Divine Might/Miraculous (δύναμιν), or Strength (κράτος).

Heb. 2:14 - Inasmuch then as the children have partaken of flesh and blood, He Himself likewise shared in the same, that through death He might destroy him who had the power of death, that is, the devil,
Heb. 2:14, BYZ - Ἐπεὶ οὖν τὰ παιδία κεκοινώνηκεν σαρκὸς καὶ αἵματος, καὶ αὐτὸς παραπλησίως μετέσχεν τῶν αὐτῶν, ἵνα διὰ τοῦ θανάτου καταργήσῃ τὸν τὸ κράτος ἔχοντα τοῦ θανάτου, τοῦτ' ἔστιν τὸν διάβολον,
Answer: Power, in this text should be "Strength (from κράτος)."  More specifically, this also relates to the "Agony of death" (below).  Another valid translation would be: "That he may [render irrelevant/powerless] the one who has the Strength of Death, that is, the Devil.
The Agony of Death:
Consider it the "Death Power" ...

Luke 16:24, NASB - And he cried out and said, 'Father Abraham, have mercy on me, and send Lazarus so that he may dip the tip of his finger in water and cool off my tongue, for I am in agony in this flame.'
Acts 2:24, NASB - But God raised Him up again, putting an end to the agony of death, since it was impossible for Him to be held in its power.
Answer: Mike: It seems to me that you have missed the purpose and intent of the verse.  Why would the author of Hebrews say that Jesus might destroy (aorist active subjunctive) he who had the power of death? What else was the purpose of the crucifixion other than to "finish the work" (John 19:30) that God intended from the foundation of the world? The "rest" that God promised in Hebrews 4:3 is the rest that the Jews refused to enter into.  Indeed, most Christians today, I might add, are still waiting for God "to do something" which He has already accomplished.  He means for us to accept the work as accomplished and "enter into His rest."
Answer: Death is the physical evidence or manifestation of one that is in the domain of the devil,death are in stages sickness, disease, corruption, decay and its final blow "death" to separate one from the soul and out of the earth.
Comment: Thank you for your post. It appears this is one of your first, if not your first. So welcome to the forum. What you have provided might be a good answer except that it doesn't have any supporting evidence. How can you prove that what you are saying is more than just an unfounded opinion? For example, what do you mean by "separate one from the soul"? Where do the scriptures speak of "separation from the soul"? Please pretend you're writing an essay for school and show your work. Thanks. For now I'll down vote but hopefully you'll improve the post and get an upvote.


How to Index new keywords

Question: My question is I had changed My Websites Keywords and submitted it to the google i.e verified by the google MetaTag. and Google is indexing that keywords. I have changed my keywords, But google indexing older keywords not the recent keywords,
 Will I need to re-verify by the google MetaTag
or please suggest me any other solution which will index my new keywords
Answer: The google crawler doesn't run everyday. Sometimes it can take up to a week for new keywords to be indexed. It's just a matter of waiting. They'll show up.
If you have pages where the content changes frequently, when you provide google with your sitemap, you can stipulate this. A simple tool that will auto generate this for you is http://www.xml-sitemaps.com/
Just alter the change
Answer: The keywords meta tag is not important. Search engines don't pay any attention to it anymore. I wouldn't waste my time worrying about.
Here's a quote from SEOmoz's Beginner Guide to SEO (http://guides.seomoz.org/chapter-4-basics-of-search-engine-friendly-design-and-development): "The meta keywords tag had value at one time, but is no longer valuable or important to search engine optimization."
Instead, I would worry about making sure the content on your site is well-written, relevant to your topic, and keyword-focused (but not keyword-crammed...sound natural). Make sure your title tags are appropriate to what's on each page. That will get you farther than meta keywords.
Additionally, it takes time for search engines to index changes. Be patient on any changes you make to your site.

How to Index new keywords


How (and why) could a post be "removed from network questions"?

Question: A recent question's edition history shows that it was "removed from network posts" by one of the moderators. Why is it possible for doing this, and what are valid reasons for which a moderator might be able to do it?
Answer: Some questions attract the wrong attention.
When a question attracts too many bad answers from being a hot network question or just is an ill fit to be an ad for a site, that status can manually be revoked. It is a more extensive step than just protecting the question against users with less than 20 reputation.
Reasons for it can be:

What kinds of question titles put a site's HNQ presence at risk? - SOME question types put the sites privilege to have Hot network questions at all at risk. The Interpersonal Stack is stuck with this.
As an answer on that same question explains, certain content is automatically ineligable for HNQ. It doesn't invalidate the question, but advertising for such content is problematic. Among other things, forced intercourse is such a topic, as are any other topics that can be triggered.
Does SE have some general, non-website-specific guidelines of removing questions from the HNQ network? - this cites the original post that talked about removing from HNQ, and the proposal there is, emphasis mine:

In general, we recommend that you exclude questions that attract negative attention to your sites, that is, questions that are controversial, start large amounts of debate or arguments or even edit wars. Removing a question should not be a substitute for fixing it! Remember that it may take several hours for a moderator to respond to a flag so do what you can, first:

If the title seems click-baity or doesn't adequately describe the question, edit it!
If the body is full of spelling or grammatical errors, fix them!
If the body contains unnecessary detail or salacious content, see if it can be removed without impacting the question.
If the question is unclear or broad, vote to close it. In most cases it will be better to close a question and wait for it to be improved rather than asking for it to be removed.

THAT question in particular
The question was decidedly about a type of hate crime. Hatecrime is a trigger to many, and problematic as no matter how it is phrased it is always attracting the wrong crowd: people who have no idea of the law, and then vote for answers that cater to their group, or write bad answers.
Remember, that a question is not suitable as a Hot Network Question, and thus ad for the community does not mean that it is a bad question. It just means, that the question is not suitable to be used to point to our community.
Comment: Yes but what criteria should be used to decide if something is an ill fit to be an ad for a site?
Comment: @TylerDurden Included all the links you need.

How (and why) could a post be “removed from network questions”?


How to start Firefox multiple isolated sessions with same profile?

Question: I use proxychains utility with firefox. I want to start the firefox profile twice, but with other proxychains parameters. But I can't, when I try to run the second instance of firefox with the same profile, it's just opens a new window of exiting session.
I have tried this commands: firefox -P profile %u, firefox -P profile --new-instance, firefox -P profile --no-remote, firefox -P profile --new-window. Nothing worked.
Hope for your help!
Comment: You cannot. Firefox will not start another instance with the same profile.
Answer: Are you trying to have separate cookie sessions? If so checkout the multi-account container. It is an add-on

Go to Firefox menu -> Add-ons.
Search for "Firefox Multi-Account Containers"
Add to Firefox

It looks like below.

Link: https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/
Comment: Thanks, but no. I want to run firefox profile with different proxies using proxychains linux utility. It means that I need to run new firefox process, but not only new window.


Create an excel/word document using SPFX web part in SharePoint Online

Question: I have one requirement about preparing excel and word document based on SharePoint list data and download it for user in SharePoint Online using SPFX web part.
My question is: Can we create SPFx web part in which it creates a document using code and download it from web part? OR even is it possible with SPFx web part to create a document using coding?
Answer: SPFx works using client-side JavaScript, meaning you can utilize any solutions out there that employ JavaScript.
For Word documents, you could use this tutorial explaining how to generate a Word document from some basic HTML, and download it using an a element.
For Excel documents, you could create a CSV file (a basic spreadsheet) using a similar method in this StackOverflow answer.


How to do a transaction rollback in corda

Question: How can I do a transaction rollback in corda. Let's say I've a complex flow which includes 2 flows. I want to rollback the previous transaction if the last one failed how can I do that in corda? Or I need to re-design my complex flow or invalidate the previous state created myself? eg: I've a main flow.in that I created subflow which creates a new state (or updates some state). now suppose for some reason the main flow fails how do I rollback transaction created by my previous subflow?
Comment: Can you give more details on the use case? That will help condition the answer.
Comment: hmm.. lets say I created a state using finality flow(to notarize and vault in respective participants), then it needs to be broadcasted to all nodes that hey new state got created.now if the broadcast fails (for some reason). I don't want that state present to be valid.do I now manually invalidate this state(not sure how) or is there a way to rollback after using finalityFlow.
Answer: Once a transaction has been notarised, it is final and cannot be rolled back. However, depending on how the transaction's contracts are written, it may be possible to consume the newly created state to create the old state again.
Regarding your comment, the broadcast cannot "fail" in Corda unless one of the nodes permanently leaves the network. ACKs are used to ensure messages between nodes are always received.
Comment: I think I'll have to come up with a better scenario. but thanks for clarifying. Once Notarized cannot be rolled back. In real life scenario there will certainly be a case where we would want to rollback.... for instance if I've a flow that updates a state(suppose sets status of state to processed) and creates another state response. Since I should be calling finality flow only once I need to create 2 seperate txbuilders in the same flow for update and create and get their signedTranscation ? now once I have that I call FinalityFlow to notarize them independently ? is this the way to go?
Comment: if that's the way I think Finality Flow should accept a list of signed Transaction as well.


How to get the HTML's input element of "file" type to only accept pdf files?

Question: is there any way that html element file
<input name="file1" type="file" style="width:300px">

only accept PDF files and when we browse its only show PDF files...
Thanks
Answer: To get the HTML file input form element to only accept PDFs, you can use the accept attribute in modern browsers such as Firefox 9+, Chrome 16+, Opera 11+ and IE10+ like such:
<input name="file1" type="file" accept="application/pdf">

You can string together multiple mime types with a comma.
The following string will accept JPG, PNG, GIF, PDF, and EPS files:
<input name="foo" type="file" accept="image/jpeg,image/gif,image/png,application/pdf,image/x-eps">

In older browsers the native OS file dialog cannot be restricted – you'd have to use Flash or a Java applet or something like that to handle the file transfer.
And of course it goes without saying that this doesn't do anything to verify the validity of the file type. You'll do that on the server-side once the file has uploaded.
A little update – with javascript and the FileReader API you could do more validation client-side before uploading huge files to your server and checking them again.
Answer: The accept attribute value is a string that defines the file types the file input should accept. You can use the accept attribute like:
<input name="file1" type="file" accept="application/pdf">

or you can specify a unique file type specifier:
<input name="file1" type="file" accept=".pdf">

MDN Reference
Browser Compatibility Check
Answer: Not really. See File input 'accept' attribute - is it useful? .
Comment: +0. I would agree if you instead had said "yes, but not really". Especially now that Chrome supports it, and I think Opera might too.
Answer: No way to do that other than validate file extension with JavaScript when input path is populated by the file picker. To implement anything fancier you need to write your own component for whichever browser you want (activeX or XUL)
There's an "accept" attribute in HTML4.01 but I'm not aware of any browser supporting it - e.g. accept="image/gif,image/jpeg - so it's a neat but impractical spec
Comment: +1. Also, Chrome now supports this. I read that Opera has supported it for a long time, but I don't have it to check.
Answer: The previous posters made a little mistake. The accept attribute is only a display filter. It will not validate your entry before submitting.
This attribute forces the file dialog to display the required mime type only.
But the user can override that filter. He can choose . and see all the files in the current directory. By doing so, he can select any file with any extension, and submit the form.
So, to answer to the original poster, NO. You cannot restrict the input file to one particular extension by using HTML.
But you can use javascript to test the filename that has been chosen, just before submitting. Just insert an onclick attribute on your submit button and call the code that will test the input file value. If the extension is forbidden, you'll have to return false to invalidate the form. You may even use a jQuery custom validator and so on, to validate the form.
Finally, you'll have to test the extension on the server side too.
Same problem about the maximum allowed file size.
Answer: Not with the HTML file control, no. A flash file uploader can do that for you though. You could use some client-side code to check for the PDF extension after they select, but you cannot directly control what they can select.
Answer: No.
But you can check out SWFUpload and Ajax Upload
Answer: It can be useful to prevent the distracted user to make an involuntary bad choice, but in any case, you have to do the check on the server side anyway.
The best way is to be clear in the upload page. After that, if the user stupidly upload a big file with the wrong type, that's their loss of time, no?


Is Kanha/Kanhaiya name of Krishna?

Question: As per the original Vishnu Sahasranamam as detailed in Anushasana Parva of Mahabharata, names like Gopal, Rama and Govinda are mentioned for Lord Krishna/Vishnu, but not Kanha/Kanhaiya. So, from which scripture, the names Kanha/Kanhaiya came from when they are not in Vishnu Sahasranamam?
Answer: Kaṇha and Kaṇhā (feminine) are the Pāli equivalents of the Sanskrit words Kṛṣṇa and Kṛṣṇā (feminine) so it's unlikely you will find these names in Hindu scripture.
The Pali Text Society's Pali-English Dictionary has the following meaning:

Kanha (adj.) [cp. Vedic kṛṣṇa, Lith. kérszas] dark, black, as attr. of darkness, opposed to light, syn. with kāḷa (q. v. for etym.); opp. sukka. In general it is hard to separate the lit. and fig. meanings, an ethical implication is to be found in nearly all cases (except 1.). The contrast with sukka (brightness) goes through all applications, with ref. to light as well as quality...

Just as Kṛṣṇa and Kṛṣṇā are used in the Mahābhārata to refer to Kṛṣṇa (s/o of Vāsudeva) and Draupadī, the Buddhist Jātaka tales use Kaṇha and Kaṇhā in a similar way. From Dictionary of Pāli Proper Names by G. P. Malalasekera:

3. Kaṇha.–Another name of Vāsudeva (J.iv.84, 86; vi.421; PvA. 94 ff.); the scholiast explains that he belonged to the Kaṇhāyanagotta.
4. Kaṇha.–Son of Disā, a slave girl of Okkāka [Ikṣvāku]. He was called Kaṇha because he was black and, like a devil (kaṇha), spoke as soon as he was born. He was the ancestor of the Kaṇhāyanagotta (D.i.93). Later he went into the Dekkhan and, having learnt mystic verses, became a mighty seer. Coming back to Okkāka, Kaṇha demanded the hand of the king's daughter Maddarūpī. At first the request was indignantly refused, but when Kaṇha displayed his supernatural powers he gained the princess. D.i.96f.; DA.i.266.
...
1. Kanhā.–Daughter of the king of Kosala. Before she was born, Brahmadatta, king of Benares, killed her father and carried off her mother. When the child was born, Brahmadatta adopted her as his own daughter; she is, therefore, called dvepitikā (=having two fathers). The king promised to grant her a boon, and she held a svayaṃvara, at which she chose as her husbands all the five sons of King Paṇḍu; Ajjuna, Bhīma, Nakula, Yuddhitthila, and Sahadeva. (According to the Mahābhārata, Draupadī, daughter of the Pañcāla king, was the wife of these five princes.)
By her strong passions she won the love of them all. Not satisfied with them, she also made love to a hump-backed slave who was in her service. One day, when she was sick, all her husbands were gathered round her, and she made signs to each of them to show that she loved him best. Ajjuna, however, was suspicious, and by questioning the hump-back, learnt the truth. The five brothers left her and retired to the Himālaya, where they became ascetics. The story was related by Kunāla, who is identified with Ajjuna. (J.v.424, 426f.)
Comment: Names Kanna, Kannaiah are also seen in Tamil, Telugu languages.
Comment: You have knowledge in  wide range of subjects. Upvoted.@sv.
Comment: @srimannarayanakv Not really. The question seemed interesting so I just googled and wrote the answer!
Comment: @Sarvabhouma so that shows that pali and ancient tamil were contemporary

Is Kanha/Kanhaiya name of Krishna?


What possible vulnerabilities exist for dual submitted CSRF tokens (cookie and form field)?

Question: In this question (CSRF cookie vs session based tokens), folks recommend against storing the CSRF token in a cookie, saying that storing it in the session server-side is more secure. What vulnerability exists for storing the token in a cookie as well as in a form field, then confirming these match server side when processing the POST?
Comment: Does this answer your question? [Double Submit Cookies vulnerabilities](https://security.stackexchange.com/questions/59470/double-submit-cookies-vulnerabilities) This exact question, as well as variations on it, has been asked many times before (the relevant search string is "double submit" but "cookie csrf" will get you plenty of info too). The TL;DR: cookie planting attacks, cookies handling subdomains oddly, and there just being generally better approaches available (even without requiring extra server-side state).
Answer: A) Token as a hidden field and token in the cookie
OWASP points out to some vulnerabilities:

CSRF tokens should not be transmitted using cookies
... CSRF tokens in GET requests are potentially leaked at several
locations, such as the browser history, log files, network appliances
that log the first line of an HTTP request...

B) Token as a hidden field and token ins the session
This approach is called also Synchronizer Token Pattern. It has no inherent vulnerabilities. But nevertheless there can be some problems:

This works well if you use form submit, because there are no any efforts needed on the client. Browser will just send all the fields in the form including the token. But nowdays more often AJAX is used. There are no fields that will be sent implicitly. Also there is no trivial way to set such a field on the server side. That's why you need some efforts to transfer the token from the server to the client, to make sure that the client has an up to date token (in case you refresh it with each request), to send this token within each unsafe/modifying request to the server. Check, if the client framework that you use has built-in CSRF protection.
This approach is not applicable if the server is stateless.

C) Consider other solutions
The OWASP web site recommends different approaches to implement CSRF protection. One of the is SameSite. The answer you refer was posted in 2012. The SameSite attribute was introduced in 2016. That's why the state,statement in the answer that browser automatically sends all cookies is not quite correct. It depends on the SameSite attribute. SameSite is easy to use, it does not need any code on the client side. But it protects only if you control the subdomains. See further protection principles on the OWASP web site.


How do I get the Revolution Slider in the header on the homepage, but not the blog index page?

Question: I am trying to get a carousel slider from the Revolution Slider Addon into the header on the homepage only. And I want it under the header bar (where the menu is). However, the template I'm using doesn't inherently support the slider. So I decided to go into the header.php and input the code myself to put the slider over the top of the default header image. However, when I do this, it also puts the slider in the header on the blogs post page. It doesn't appear anywhere else on the site besides the home (desired) and the blogs post page (undesired).
Is there a way to restrict this code to ONLY the website homepage and not appearing in the header anywhere else? Maybe some kind of if-conditional?
Here is the code section where I put the slider in header.php:

        <header class="clearfix<?php if($sonus_opt['podcast-mode'] == 1){ if(!is_home()){ if(is_single()){ if($this_is_podcast == 1){echo " single-header";} }elseif(is_front_page()){echo " home-header"; }}} ?>">

            <?php add_revslider('funky-slider','homepage'); ?>

Answer: you can conditionally display it only in front page by  is_front_page()
reference: https://developer.wordpress.org/reference/functions/is_front_page/
Try:
if (is_front_page()) {
    add_revslider('funky-slider','homepage');
};


MySQL Workbench on MySQL 5.6.19

Question: I tried to install MySQL Workbench 6.1.7 on Ubuntu 14.04 after installing Mysql 5.6 library, but get the following: error:
Package dependencies cannot be resolved
This error could be caused by required additional software packages which are missing or not installed. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
The following packages have unmet dependencies:
mysql-workbench:

Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but 1:2.24.4-1ubuntu1 is to be installed
Depends: libpcrecpp0 (>= 7.7) but 1:8.31-2ubuntu2 is to be installed
Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package
Depends: mysql-workbench-data (= 6.0.8+dfsg-2) but 6.0.8+dfsg-2 is to be installed

According to this bug, there has been an error before but should being solved with the MySQL-Workbench 6.1.7 +

Fixed as of the upcoming MySQL Workbench 6.1.7 release, and here's the change-log entry
On Ubuntu 14, the dependency check was updated to allow any of
mysql-client, mysql-client-5.6 or mysql-community-client client libraries.
Previously, the dependency check could fail.

I have tried to install the workbench vie Software-Center and also tried the version from mysql.com
if i grep mysql-client i get the following output
ii  mysql-client-5.6        5.6.19-0ubuntu0.14.04.1   amd64   MySQL database client binaries

ii  mysql-client-core-5.6   5.6.19-0ubuntu0.14.04.1   amd64   MySQL database core client binaries

For me it seems that the bug is not solved, or that there is maybe a problem with the mysql version 5.6.19 !?
Or could it be that another package dependency occurs this problem?
Any suggestion or workaround to get the workbench running on mysql 5.6.19 would be great!

UPDATE
I couldn't figure out why the installation of MySQL Workbench 6.1.7 does not work with mysql 5.6.19 , but with the latest Workbench Development Release [Version 6.2.2 rc] everything works fine.
Comment: Nope. I just installed the latest development release and that version works for me. Also workbench 6.* is now officially released and should work. I just did a regular update without any problems. http://dev.mysql.com/downloads/workbench/
Comment: Did you get solution for this?
Answer: Install gcc and python in your machine and try again
sudo apt-get install -y gcc python2.7

MySQL Workbench on MySQL 5.6.19


How to switch activity with item specific data sent

Question: I've had a look around, and it might be because I'm not sure what I'm looking for, but I can't find out how to do something I presume should be quite easy with android.
I have an array of data to display on the screen. This data is a class that holds a database key, name and image.
I'm currently displaying this data as an ImageView and a TextView. I loop through the array and add a new row to a TableLayout containing the image and text.
I'd like both the image and text to be clickable, changing to a new activity.
This new activity needs to know the database key of the row clicked in order to display the correct data.
Here's what I have so far:
private void fillSuggestionTable(TableLayout tabSuggestions, Suggestion[] arrToAdd)
{
    for(int i = 0; i < arrToAdd.length; i++)
    {
        /* Create a new row to be added. */
        TableRow trSuggestion = new TableRow(this);
        trSuggestion.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));

        /* Create objects for the row-content. */
        ImageView imgDisplayPicture = new ImageView(this);
        ImageHandler.loadBitmap(arrToAdd[i].strImageURL, imgDisplayPicture);
        imgDisplayPicture.setLayoutParams(new LayoutParams(50,50));

        TextView txtArtistName = new TextView(this);
        txtArtistName.setText(arrToAdd[i].strName);
        txtArtistName.setTextColor(Color.parseColor("#000000"));

        /* Add data to row. */
        trSuggestion.addView(imgDisplayPicture);
        trSuggestion.addView(txtArtistName);

        /* Add row to TableLayout. */
        tabSuggestions.addView(trSuggestion, new TableLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
    }
}

Answer: To pass extra data to another Activity, you need to add extra information with the Intent.putExtra(name, value) methods.
For example, to send the Intent:
Intent i = new Intent([pass info about next Activity here]);
i.putExtra("databaseKey", databaseKey);
startActivity(i);

To get the data out again:
public void onCreate(Bundle savedInstance)
{
    // Do all initial setup here

    Bundle extras = getIntent().getExtras();
    if (extras != null && extras.containsKey("databaseKey"))
    {
        int databaseKey = extras.getInt("databaseKey");
        // Load database info
    }
    else
    {
        // No data was passed, do something else
    }
}

EDIT: To find out when the table's row is clicked, you'll need to implement View.OnClickListener and set the onClickListener for the TableRows you use.
For example:
/* Create a new row to be added. */
TableRow trSuggestion = new TableRow(this);
trSuggestion.setOnClickListener([listener]);

The only problem you'll have is relating a View's ID to the related database row ID. A HashMap should help.
Comment: I've seen this method for passing data. The issue I'm have most problem with is knowing which item was clicked and getting the data specific to that item.
Answer: Is there a reason you're using a TableView? it seems like what you want to accomplish would be much easier with a ListView & custom CursorAdapter, where the adapter can handle translating from the database to the ListView row.  At that point starting a new activity that knows the database ID is trivial:
mListView.setOnItemClickListener(new OnItemClickListener() {
  @Override
  public void onItemClick (AdapterView<?> parent, View view, int position, long id) {
    Intent i = new Intent(MyActivity.this, MyOtherActivity.class);
    i.putExtra("database_id", id);
    startActivity(i);
  }
});

And in MyOtherActivity:
private int dbId;
protected void onCreate(Bundle savedInstanceState) {
  //do stuff
  dbId = getIntent().getIntExtra("database_id", -1); // the -1 is the default if the extra can't be found
}

Comment: No, the only reason I'm using Tableview as it made the most sense to me at the time.

I presume id would be the id of the itme in the list? So when I fill the ListView as long as I set the id for the list item to the database key, then I can get the id out easily?
Comment: It's even easier than that - just extend CursorAdapter like is described below, and when you pass your cursor from the DB, provided you named your SQL columns the way it likes, it sets the ID property of every view in the listView for you.   http://droiddevelop.tumblr.com/post/12322798864/part-136-making-a-custom-cursor-adapter
Answer: This is a pretty simple procedure. This blog explains it in simple terms.
Comment: I've seen this method for passing data. The issue I'm have most problem with is knowing which item was clicked and getting the data specific to that item.
Comment: You can attach data to a view using `view.setTag(Object)`, then retrieve it using `view.getTag()`.


Absolutely continuous and rectifiable boundary

Question: Assume that $\gamma$ is a Rectifiable curve in $\mathbf{C}$ and ssume that $f$ is a bounded holomorphic function on the unit disk $U$ such that
if $z_n$ converges to a boundary point of $\mathbf{U}$, then $f(z_n)$ up to a sub-sequence converges to a point $w\in\gamma$. The question arises is this mapping $f$ absolutely continuous on $\partial U$.
Answer: The answer is "yes". (I assume that your curve is meant to be Jordan, i.e. a simple closed curve? Otherwise, some more thought would need to be put into the argument.)
If $\gamma$ is the unit circle, then your function $f$ is a proper self-map of the unit disc, and hence a finite Blaschke product.
In general, we can write $f=\phi\circ\tilde{f}$, where $\tilde{f}$ is as above and $\phi\colon U\to V$ is a conformal map, where $\partial V$ is a rectifiable curve.
The boundary behaviour of conformal maps is well-understood. Since the boundary is locally connected by assumption, the map $\phi$ and hence $f$ extends continuously. If $\gamma$ is $C^{\infty}$, then $\phi$ is $C^{\infty}$ on $\partial U$, if $\gamma$ is Dini-smooth, then $\phi$ is $C^1$. (See e.g. Pommerenke, Boundary Behaviour of Conformal Maps.)
The case of rectifiable boundary is covered by a theorem of F. and M. Riesz, which states indeed that the map $\phi$ is absolutely continuous on $\partial U$ (see e.g. Collingwood and Lohwater, The Theory of Cluster Sets, Theorem 3.3).
Comment: I know that the answer is YES for Jordan curves, and this is an easy case.


Why is it wrong for google to show its own other products in its search results?

Question: Google is facing antitrust probe in India. I don't know about other countries but what Indian law is broken in google search? Google search is a private free product. Why is it bad to prefer its own other products like google-maps instead of bing-maps?
http://economictimes.indiatimes.com/tech/internet/antitrust-probe-into-google-moves-into-next-phase/articleshow/48751439.cms
Answer: Its just free enterprise, right?
Well ... except when there is a law that says its not allowed. I am unfamiliar with Indian law but the relevant law in Australia is the Trade Practices Act which deals with this under the category of Misuse of Market Power. In a nutshell:

A business with a substantial degree of power in a market is not allowed to use this power for the purpose of eliminating or substantially damaging a competitor or to prevent a business from entering into a market.

By preferring their products over a competitor's in their search engine they are "... eliminating or substantially damaging a competitor ...".
Answer: I cannot add comments yet (darn low reputation), so I'm saying this here:
This same issue is very big in the EU. Google us under scrutiny for not providing equal advertisement/favoring their own products. According to many New York Times articles, this is the EU trying to promote their own businesses and decrease reliance on US companies; it is definitely not just righteousness. I am not sure if this is the same or even similar scenario in India.
At least in the U.S., this issue is known as net-neutrality.


Installing a Printer Driver in Snow Leopard

Question: I have a new mac which is now running Snow Leopard, I live on campus at BYU in the dorms, I wanted to print to an on-campus printer but I was unable to download the printer driver from BYU.edu. I need to if there is a way to print from my computer.
Comment: This question is to localized and should be closed as such, however look at rewording it to something more along the lines of installing a printer driver in Snow Leopard.
Answer: I attend BYU and have a Mac too, so here's how I got it to work (on 10.6.1):

Go to http://software.byu.edu and log in with you BYU NetID and password.
Click on the "Software" tab towards the top of the page.
From the software popup menu, choose "Open Access Print Driver (Mac OS X)"
Download the driver and install it.

When you go to print, you'll see two new printers in your print dialog: Campus_Black_and_White and Campus_Color.  Use the one corresponding to your needs.  When you print something, a dialog will pop up (this can take a minute) where you'll enter your NetID and a job name.  This is what associates the job with your account so you can retrieve it when you go to a printer and swipe your card.
Comment: The BYU MUG (Mac Users' Group) also has a very helpful list for such topics. https://mac.byu.edu/mailman/listinfo/byumug-discuss
Answer: You will need to provide more details than just what you gave up there - what is the printer model? How are you connected to the network? Is there any network authentication involved? Do you have the IP address for the printer?
More information is DEFINITELY needed before we can help you, but your best bet is BYU's tech helpdesk.
In short - try your campus library.
Answer: The easiest way you can do this is to go to the optional installs on the Snow Leopard disk, then install printer drivers. This will waste about 4 GB of space, but mean you can print to almost any printer without having to download drivers.
Normally, though, if you try to print to a specific printer you don't have drivers for, Snow Leopard will download the drivers (from the Apple servers). Your first step should be trying to connect to that printer to actually print something. This is the part the BYU helpdesk can help you with. If you want to try yourself, start with the Print and Fax preference, and try adding the printer you want to use.


What is a reasonable amount of time to wait before family visits your new baby?

Question: My wife and I are preparing to negotiate with our families about visiting our first baby. We want to take some time to recover and feel like we have a comfortable routine before taking visitors. We had discussed waiting a month but our families have already expressed a lot of interest in coming sooner.  I'd love to hear about others' experience with this.
Comment: I think it all depends on how much everyone likes each other. I couldn't blame any of our parents for wanting to see our kids the day they were born.
Comment: Both sets of new grandparents came within the first month for our first. Your routine will likely get broken when they come; may as well get it out of the way.  An extra set of hands during the first month always comes in handy too...
Comment: My parents came (from 5000 miles away) as soon as they could - within a week for both kids. It was so wonderful to have them there to help out (cooking, cleaning, laundry, baby holding). In addition, there will be almost no routine with a newborn, and today most pediatricians recommend baby led schedules for feeding and sleeping for newborns.
Comment: We let them visit while the baby was still in the NICU. But we were picky on who could hold her. Lots of hand sanitizer! By many bottles and have them always around for guests.
Answer: If you're having to describe this process as a "negotiation" then I get the impression that relations between your family and your parents/in-laws aren't always the most hospitable.  Perhaps I'm reading more into the word than was intended.  Are they the types of people who tend to over-stay their welcome?  Show up unannounced?  Have unreasonable expectations of you and your wife when they come to visit?
Before you have these conversations with your families, make sure that your wife and yourself are absolutely on the same page, and agree that changes can be made after baby arrives if necessary.  Sure, it sounds like a good idea to say "No visitors until baby is 1 month old" until you get to week three of no sleep.  Suddenly, having someone who could watch the baby for two hours so you can grab a cat-nap sounds like the best thing in the world.  And you can have different rules for different family members.  She might want her mom around more during the first few weeks than she wants your mom around.  Or vice versa.
As previous posters have pointed out, any "routine" you have within the first month is going to be tenuous at best on a good day, and the second month improves somewhat.  There will be days when baby sleeps most of the day and wakes only to eat and go right back to sleep and then is up most of the night.  There will be cluster feedings.  There will be days when baby is surprisingly alert during the day and sleeps pretty great at night.  And about the time you think you have a routine, something happens to disrupt it.  Parenting, in general, is all about having a general routine and then working around the disruptions.
So I guess it's more a question of whose routine you are more concerned about disrupting?  You will more easily fall into a routine than your child will, and, for the most part, that routine will revolve around responding to what your child needs when he/she needs it.  In this case, it doesn't matter who's present.  When baby needs to eat, he/she needs to eat.  Or have a diaper change.  Or sleep.  But the likelihood of a visitor disrupting a baby's non-existent schedule is slim in the first month to two months of life.
Barring any of the things I mentioned in the first paragraph (over-stayed welcome/unannounced visits/unreasonable expectations), and assuming that everything is going all right with feeding (I'm assuming your wife is going to try to breastfeed, if she isn't then that's a different situation), then sometimes it's easier to gird your loins and just get it over with quickly (like, within 2 weeks).  Certainly with the grandparents at least.  Just because you allow close family over does not mean you have to allow the whole neighborhood in.
Remember that, for the most part, these people care about you, are happy for you, and probably want to help you in whatever way they can.  Surround yourself with the caring, loving people and disregard the malicious ones as best you can.  And remember:  YOU are the parent.  YOU call the shots.  If it's a bad day and you'd rather not have visitors, then don't accept visitors.  No rules are set in stone unless you make them so.
Comment: Two weeks into it and my wife and I were grateful for ANYONE coming over to the house and sit with the baby while we took a nap and had a decent meal together. It was great and I am very thankful for those that visited with us.
Comment: Well, and after about a week of self-imposed isolation, cabin fever sets in.  Realistically, the only place you're going in the first two weeks is the pediatrician's office and it can get maddening not having much social interaction with anyone but your spouse and your (beautiful and amazing but non-verbal and much-sleeping) baby.  Even if you don't get to leave the house, just having someone else to have an adult conversation with can be a life saver!
Comment: I will say that if family is visiting from further away, saying, "I'm sorry today is not good" can be more challenging.
Answer: Short visits in the hospital or at your home from relatives who live nearby are rarely an issue, as long as they call ahead first.  I'll focus my remarks on either extended visits from far enough away that the visitors can't sleep at their own house, or when someone lives close but wants to visit for several hours a day to help out.
In my experience, these kinds of visits are an annoying intrusion for the husband and a godsend for the wife.  Especially if she is breast-feeding, and therefore unable to hand off feeding duty to you, she will be constantly exhausted for at least a month.  Even if your wife has babysitting experience, she will find being responsible for a child 24/7 to require an almost completely different skill set.
No matter how prepared she feels now, your wife will want her mother's help and advice.  The second best people to help and advise your wife are her sisters who have children or your mother, depending on their relationship.  You will feel like your role as supporter is being supplanted, but you plain don't have the necessary experience yet.  My advice is to accept the help graciously and enjoy the extra rest.  You will have plenty of time after the visitors leave to bond with just the three of you.
Our first child was in the hospital for three months, so visits weren't much of an issue.  We adopted our second child when he was a year old, and no one really asked to visit for some reason.  Our third child was kind of the first one we had to deal with visitors, and I think what we came up with worked pretty well for us.
My mother-in-law lives 1500 miles away.  While we were in the hospital, she stayed at our house and watched our other two kids.  After leaving the hospital, she stayed with us during the week, and  during the weekends went to stay with her other daughter who lives near us.  This arrangement gave a helper for my wife while I was at work, and helped me get enough sleep so I could actually make it to work, but then on weekends gave us a break from the stress of hosting visitors, and gave my mother-in-law time to relax and recharge.  We did this for a few weeks until my wife felt able to resume her normal duties with our other children during the day.
My mother-in-law argued against that arrangement at first, but commented afterward that she thought it worked better than similar previous visits for my nieces and nephews where she felt like she was "on duty" nonstop.  My wife liked that she was never left alone when I had to work, and I liked that we had enough time with just us so I could feel like a real father.  Of course, we were already experienced parents at that point, but the other benefit was my wife was very confident about knowing when she was ready to do without her mother's help, because she had "trial runs" on the weekends.
Answer: We were delighted to have both sets of parents visit while in the hospital, but of much greater value was having them stay for two weeks each, giving us some much needed support in that first month while we were learning our way.
Your parents are an excellent resource to help make your lives easier, they can babysit, provide their experience, go to the shops or cook meals for you, or just generally be an extra couple of pairs of hands.
Answer: Once mom and baby are settled (eg, through first nursing), we are happy to have very close people drop by the hospital.  Typically we will see Grandparents first day, maybe some aunts and uncles, and possibly very close friends.  Others come over the days and weeks that follow.
It really has to do with how close you are to people.  I am not a fan of doing things from obligation -- but rather doing it from relationship.
Try to put yourself in their shoes and do what makes the most sense for both parties.  If this was your first grandchild, would you want to see him/her asap?
I will caution you that a 1 month old is barely a baby compared to a 1 day old.  So if they mean anything to you from a family point of view, I would let them visit asap, but not be a burden on mom or baby.
Negotiate?  Seriously?  This is your family and your baby.  This is not their decision AT ALL.  You can be kind and thoughtful, or you can be unkind and disregard them, but either way, it is still your choice.
So... figure out who you care about, and see what they would like, then let them know what makes sense to you.
Comment: +1 for "it's your choice", which is very well balanced with the first part of your answer.
Answer: Although it's been hinted at in some of the other answers, your main concern should be setting the expectations for anyone that comes to see you.  No one should be "visiting" new parents, because visiting implies that you are the hosts and will care for them along with your baby.  Friends and relatives should only "come to help" - anyone coming into your house should expect to cook, feed you, clean up for you, perhaps even make a shopping run.  And for the record, "holding the baby" is not "helping".  That is the mother's job, and everyone else's job is to do things for the mother.
If you can get your relatives to accept that message, you should not have to fear them coming over, and indeed they should be relieving more burden than they impose.
Answer: There are a lot of factors that can play into this decision, so its hard to give a specific answer.
Delaying access to your relatives by more than a few days, or perhaps as much as a week, runs the risk of hurting their feelings, unless you give them specific reasons why.
That's not to say there aren't good, specific reasons to hold off on visitors.
While it is true that, as other posters have mentioned, having relatives over to lend a hand during the first couple of weeks can be a huge help, it also has the potential to be the source of stress and conflict (depending upon your relationship with them), neither of which are worth risking when you should be focusing on bonding with, and learning how to care for and interact with, your first child (or any subsequent children, really).
Another factor to consider is the birth itself.  Some women are able to get back to a normal routine very quickly after giving birth.  However, this is not something you should count on, as a difficult birth, c-section, postpartum depression, or simply the emotional and physical drain may make a reduction of interruptions and distractions particularly helpful to the mother (or the father!).
If you are having your baby in a hospital, my suggestion would be that you offer to let your family visit in the hospital before discharge, if they can make it, and then scheduling a longer visit later, at a time to be decided after you get home.
The advantages of having the visit in the hospital are that it is much easier to control the duration, while eliminating any frustration your relatives may have about having to wait.  You have the option of claiming exhaustion to clear them out when you want them to leave, or, if you are concerned about the personalities involved overstaying their welcome, you can ask the hospital staff ahead of time if they could impose a time-limit (i.e. ask them to come in 15 minutes, 30 minutes, etc. after your guests arrive and announce that the mother and baby need sleep, and that all visitors need to leave).
Even a brief visit will usually tide people over, particularly if they know they'll get more time to spend with the baby in the near future.
Asking to schedule the longer visit after you get home allows you to gauge just how you feel about company.  Maybe the thought of assistance, even for an hour or two, becomes much more attractive after a few days with your newborn.  Or maybe you quickly fall into a routine that where visits would be unpleasantly disruptive.  Either way, you will have more specific reasons that you can present to your relatives when scheduling the follow-up visits.
Answer: I think a month will be bit long for your close parents to wait to come visit you and see the next wonder. But you are right : too soon is not a good choice. It's nice that you think about it, already for your first kid. I made the mistake to let friends and family come when they wanted and we had a bunch of visits at the hospital : it was exhausting. Even if each visit doesn't last long, the sum of them makes your day really hard. So personally I never visit friends at the hospital anymore.
My personal hint would be : plan to have visits, but not a lot of them on the same day. So a simple trick is to ask people to bring the meal. This way you have an excuse to ask for delay (they have to choose a date that is still free) AND you don't have to worry about cooking (which is a nice gift during those days when you have some much to do and are so tired)
Answer: Thanks, Everyone gave some good feedback and since I didn't specifically follow any one person's advice, I'll answer for myself.
In the end, we first talked came to a conclusion internally that made sense. The first week we'll be in hospital for most of that then at home for a couple of days getting our bearings. My wife's mom will come the second week and will focus on helping mom and baby. Then we have a week without visitors to take it all it and be amazed/sleepy/bored. Finally, we're inviting other family to come out after 3 weeks. Since we're planning on breastfeeding for the first 3 weeks, no bottles, this will also be more convenient timing.
All of that is subject to change if there are any complications of course. We might update this to allow short visits in the interim as an option, but since everyone lives out of state, I don't know how likely people are to take us up on that.
I think the most important thing in all of this was to talk it out and be on the same page before discussing it with the family. This also helps when you can give solid reasons to the relatives so they don't feel insulted.
Answer: There is no quarantine period. It's up to you.
Newborns are at increased risk for infection-- especially this time of year (October - March)-- because of RSV, so you can ask visiting family and friends to wash their hands before holding or touching your baby and and ask that they touch the cute little feet instead of your baby's hands or face.
Answer: At first: congratulations and the best wishes for you and your newborn!
This is an exciting step and for sure a big change for your life as a couple/family!
What's your concern about the visit? What do you think might happen, that disturbs you or your new daily routine?
Do your parents live far away and have a long journey, or could they "just come over" for some hours? - probably not...
I'd agree with gahoo, Rory alsop and the comment of DA01:
if there is no general problem with the relation between you and your parents, you should give them the choice to see the baby - at least for a short time.
Conditions are clear:

YOU decide how long and what will happen.
You do not have to be as hospitable as in other situations (this visit shall not make more work for you!),
so you don't have to clean windows or prepare a great meal for your guests, but maybe your guests could cook something and bring it to you, so that you can have a meal together or you could find other ways how they can help you with the baby or the housework

Sure the visit might break your fragile daily rhythm with the baby for some time, you can always remind the guests to be respect your wishes and do not disturb the baby when it is sleeping or in a bad mood..
.. but if you wait for one months, the baby will not be the same as now, so give your parents a chance to see it as it was born, if there are no severe counter-arguments.
Answer: Have someone throw you a "Sprinkle!" (Shower for meeting baby after it is born).
We allowed everyone to come to the hospital and tried to clump related family together (I had a C-section so was there a few days for our first two). We had a ton of family visit (but everyone lives in town so no overnighters--that would've been too much for me while recovering from the C-section). They visited at home as well. Although and can feel exhausting, it was worth it to for the memories (especially for those who visited us, there's nothing so special as a brand new baby and we don't all get them that often, it's really a once in a lifetime event for many extended family as well). Their feelings matter too.
I second that there is a huge difference between meeting a newborn baby and meeting a 1 month old. We have met many babies at the hospital or within the first day or two of their lives and those babies (people!) are forever etched in my heart. We've also recently been instructed that we can't meet completely healthy, breast feeding baby cousins (on different sides of the family) until 'they're at least 3 months old'--this as orders from the Dr they say! This is so incredibly hurtful no matter how we reason or how much we want to respect parents wishes (of course we do!). It's greatly damaged both sides of the family, to the point of tearing them apart.
I would encourage you not to wait for more than 2 weeks or 3 at the very most and second the idea of allowing people to meet baby at hospital for all the reasons others mentioned.
Build permeable boundaries that meet your needs (not walls) but don't isolate your baby from the rest of the world. People really do want to help, so put them to work if need be. But whatever you do and despite all hesitations, allow for relationships. This is hard if yourself doesn't normally tend to have a lot of relationships--but now is a good time to start building them or to better the ones you have. You hold the golden egg in your hands--a new baby is everything!
Other ideas...
We had a 'Sprinkle'for our second. We had about 14 close women family/friends, held in a large enough house that I wasn't particularly nervous about spreading germs to baby, there was enough space for air to circulate. It was one of the best memories ever for me. I wrapped baby up in her blanket so she wouldn't catch sickness (I remember being a little nervous) but I shared my feelings and everyone was so respectful. Some people held her, some didn't. My mom made a baby table cloth that people could sign (a few of them have already passed away, 7 years later, so I treasure this). Highly recommend Sprinkles! Have someone else throw it for you, all you have to do is show up, be pampered for an hr or 2...or maybe longer if you're enjoying yourself and head home! Baby has just met all the people that really wanted to meet your newborn baby and they all feel so special. Dad doesn't have to come (or would be welcome, either way!).


Keyboard shortcut in Excel for Mac 2016 to paste and match destination formatting

Question: Is there a keyboard shortcut shortcut to paste and match destination formatting in Excel for Mac 2016? If there isn't, can I create one?
Answer: There isn't any direct shortcut for what you are asking. However, you could try one of the following methods.
1. Use Paste Special dialog
When pasting text from some other application, open Paste Special dialog with ctrl+⌘ cmd+v, choose "Unicode text" with ↓ down arrow (if not already selected) and then hit ↩ return. (If you have set Full Keyboard Access in System Preferences on, you have to hit ⇥ tab first in Paste Special dialog.)
When pasting formulas or values inside Excel, open Paste Special with the same shortcut ctrl+⌘ cmd+v and then hit either f to select Formulas or v to select Values depending on what you want to paste. Then hit ↩ return.
2. Create a macro
Record a macro in Excel with commands explained above. You can assign a custom shortcut for your macro and save it to your Personal Macro Workbook so that it's available whenever you use Excel. This is probably the easiest method.
Another possibility is to write a Visual Basic script.
3. Edit cell and paste
Start editing the cell with F2 (or fn+F2 if you haven't changed the behavior of the function keys) and then paste normally with ⌘ cmd+v.
Note that when pasting a formula, only the value will be pasted.
Also note that if there's line breaks in the pasted text, all the lines will be pasted into the same cell instead of pasting them to different rows.
In addition, this method doesn't replace the existing cell value. After hitting F2, the cursor will be placed after the existing content.
4. Create an Automator service
Create a service with Automator that receives no input in Excel and has one Run AppleScript action with the following code:
on run {input, parameters}
    tell application "Microsoft Excel"
        paste special on worksheet active sheet format "Unicode text"
    end tell

    return input
end run

Note that this only works when pasting text from some other application. It doesn't work with Excel formulas.
Also note that if the language of your user interface is not English, you have to replace "Unicode text" with what is displayed in Paste Special dialog.
If you want to paste formulas inside Excel with a script, instead of paste special... line above, use:
paste special active cell what paste formulas

And the values of formulas inside Excel can be pasted with the following code:
paste special active cell what paste values

Of course, you can create a new workflow for each of the three cases.
After creating the service, you can assign a shortcut for the service in System Preferences.
You should be able to check the contents of the clipboard in code and then decide which command to run, but I couldn't get the get clipboard formats command of Excel to work as expected so I'm not sure how to implement that.
Answer: I finally got a macro to work on my mac (to paste into the currently selected cell and match destination formatting)!
First go copy something into the clipboard to be able to paste... and then
Record the macro:

Start recording a macro with

Tools -> Macro -> Record New Macro...

Give it a name, store it in Personal Macro Workbook, give it a keyboard shortcut, and description.
Click "Ok"
Do the keystrokes for Paste Special, Unicode Text:
Ctrl+Cmd+v and ↓+↓+↓+Enter
Stop recording the macro:

Tools -> Macro -> Stop Recording

Now edit the macro:

With

Tools -> Macro -> Macros

Highlight the macro you just created
Click on "Edit" (the VBO window will open)
Replace this code
ThemeEffectScheme.PasteSpecial Format:="Unicode Text", Link:=False, _
DisplayAsIcon:=False

with this instead:
ActiveCell.PasteSpecial xlPasteValues

Close the VBO window
Try it out!