Hot tea with lemon juice and fat free milk: how to prevent curdling?

Question: So I know it may sound a bit weird, but I like milky tea with some lemon juice added. I pop a teabag into the mug, fill it about 2/3 with boiling water, let seep a bit, remove teabag, add some freshly-squeezed lemon, then slowly add cold fat-free milk (and add stevia for sweetness). How can I make myself a cuppa without the milk curdling?
Comment: If it's for the taste, try infusing the lemon's zest instead of the juice.
Answer: I don't think this is practically possible with lemon juice, as milk protein will curdle in the presence of acid (in this case, citric acid in the lemon juice)—and the process happens much more quickly at hotter temperatures, as in tea.
A pinch of salt may slow the process, but is likely to be unpalatable.
You could neutralize the acid with baking powder, but getting the right balance would be difficult, and again, the result is likely to be disconcerting and unpalatable.
If it is not the acidic balance that you appreciate in your tea, but rather the flavor of the lemon, you might try making a simple syrup with lemon zest, and using that to sweeten your tea.  It will give the lemon flavor, without the acidity, and so not trigger the curdling.
Comment: @Ros you may be losing those benefits already by mixing [tea, and milk](http://www.guardian.co.uk/science/2007/jan/09/medicalresearch.medicineandhealth) and likely lemon.
Comment: Thanks for the syrup suggestion - while I do like the flavour of the lemon, I read somewhere it's good to start the day with warm water and lemon. I don't really like that, so thought I could just add some lemon juice to my morning tea. I'm not sure a syrup made from lemon zest would have the same health benefits!
Comment: @MandoMando You're probably right!
Answer: I use lemon zest in my tea while its steeping, then I strain it through a fine strainer. Gives you all the benefits and no curdling.
Answer: You can seek out non-dairy creamers, such as coconut milk coffee creamer, rice milk creamer. These have added stabilizers that prevent coagulation in acidic coffee, which I think would work in your lemon tea.
Answer: Have you tried adding a couple of squares of white chocolate to your lemon tea?  It gives it that milky flavour without curdling.
Answer: I do this too.
I add lemon, plus I add honey to the water first before pouring it over the tea. Sometimes a smidgen of sugar. The sugar and honey help take away some of the acidity but it has to be in the water first and mixed up.
Then steep the tea.
Then after the tea is made and steeped, I'll add a little bit of milk.
**Also if you put a lot of lemon in it, this won't matter. How much lemon can affect this. I normally don't like the way it tastes if there's too much in it and too much tends to curdle the milk regardless.
Comment: Also if the tea is too hot it will curdle the milk too.
Answer: Try adding the milk first then the lemon. For some reason my milk doesn't curdle when I do it in this order...Actually trying to find the reason why this happens.
Answer: I've found that using good, organic essential oils in cooking works quite well. Try adding a drop of lemon essential oil to your milky tea. No curdling to fear. Lemon is a very inexpensive oil.
Answer: Well, I make masala tea by adding ground spices (cloves, cinnamon, cardamom, pepper, cumin seeds) and a generous amount of grated ginger, all of which have been slightly roasted, into boiling water, then adding the tea leaves and a very small amount of lemon juice. Then I alternate between letting it simmer and boil for a few minutes before adding some sugar. After that I add in freshly boiled, sweetened milk... no curdling whatsoever. Most probably because of the ginger and sugar.
Answer: well now, call me barmy, but I actually rather like the milk curds. They're fresh, it's not as if the milk has gone to rot? Isn't that how you make mozzarella cheese?
Comment: That does not actually answer the question does it? Anyway, welcome to Seasoned Advice.


Kneser theorem about the Klein bottle

Question: I know that in $1923$ H. Kneser showed that a continuous flow in a Klein bottle without singular points has a periodic trajectory. The original article is this, but does anyone know another old or new proof of this result? (So far I have found the article by Kneser, the article by Nelson G. Markley and some works that use the results of these articles, I am looking for some other idea focused on proving the result mentioned at the beginning) I would really like to read this result, I tried to do it from your original article but the language is too complicated for me. I searched on the internet but found almost nothing about the proof. I asked here but I didn't find any answer even with bounty. I hope to have some help it would help me a lot.
Comment: I would imagine it to be a contradiction argument.  If there is no closed orbit, you argue that the forward-time flow of a point must be clustering in a thin Moebius band, and the same kind of argument as in Poincare-Bendixson tells you the centre of that Moebius band is a closed orbit.  You could probably avoid repeating the Poincare-Bendixson argument  by covering the Moebius band with an annulus, which is planar.
Comment: @RyanBudney Thank you very much for the idea, it is interesting I will try it, if you have time you give it more form as an answer and in case I manage to finish it I will write it too.
Answer: The answer below was given to the question as asked originally.

For a more modern, english language proof of Kneser's result, see The Poincaré-Bendixson Theorem for the Klein Bottle, by Nelson G. Markley:

In 1923 Kneser showed that a continuous flow on the Klein bottle
without fixed points has a periodic orbit. The purpose of this paper
is to prove a stronger version of this theorem. It states that the
Klein bottle cannot support a continuous flow with recurrent points
which are not periodic.
Comment: hmm, I'm confused: your question does ask for  _"another old or new proof of this result"_ doesn't it?
Comment: @Zaragosa Please note that changing a bit a question after an answer is given is considered a bit unfair/ungracious. Also, not giving a complete information on the problem (e.g. a reference) may result into a waste of time for the answerer.
Comment: I know I'm sorry. But I also know that the above answer will get a good upvote, so I don't think it feels a bit unfair. I hope someone can really help me with my question. Greetings.
Comment: Yes, I did find that article (very interesting, it even puts it as a corollary 5.2) and I also found a thesis based on that article, but I was referring to more current articles (for example after 2000). What I am looking for are new ideas regarding the traditional proofs of this theorem, maybe and just maybe the proof of this theorem has been refined with new tools and in that case I would love to know them.
Comment: Sorry, it was my rush to write. Now I'm going to correct that a bit.
Answer: It sounds like you are looking for a textbook.  I have read bits of Introduction to the geometry of foliations: Part A by Hector and Hirsch.  It is well-written, with pictures! They give Kneser's theorem on pages 62-65, after developing the necessary theory.

Kneser theorem about the Klein bottle


Solr, how to use the new field update modes (atomic updates) with SolrJ

Question: Solr 4.x has this nice new feature that lets you specify how, when doing an update on an existing document, the multiValued fields will be updated. Specifically, you can say if the update document will replace the old values of a multivalued field with the new ones, or if it should append the new values to the existing ones.
I've tried this using the request handler, as described here:
http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22field.22
I've used curl to send xml where some fields used the update=add option:
<field name="skills" update="add">Python</field>

This works as expected.
However I can't get how to do this the Java API (SolrJ).
If I do something like this:
SolrInputDocument doc1 = new SolrInputDocument();
doc1.setField("ID_VENTE", "idv1");
doc1.setField("FACTURES_PRODUIT", "fp_initial");
solrServer.add(doc1);
solrServer.commit();

SolrInputDocument doc2 = new SolrInputDocument();
doc2.setField("ID_VENTE", "idv1");
doc2.setField("FACTURES_PRODUIT", "fp_2");
solrServer.add(doc2);
solrServer.commit();

The value for the field "FACTURES_PRODUIT" becomes "fp_2" (the initial value is lost).
I've also tried:
doc2.addField("FACTURES_PRODUIT", "fp_2");

but the result is the same. I've also looked into the SolrInputField class but haven't found anything similar to this.
So, my question is, how can I use the Solr 4 Java API to updated values into a multiValued field by appening (not replacing) the new values?
Comment: What is the type of filed "FACTURES_PRODUIT" ? multivalued?
Answer: Ok, I solved it after debugging a bit the SolrJ code. You have to do this:
    SolrInputDocument doc2 = new SolrInputDocument();
    Map<String,String> fpValue2 = new HashMap<String, String>();
    fpValue2.put("add","fp2");
    doc2.setField("FACTURES_PRODUIT", fpValue2);

Comment: Thanks! One last thing (might catch others) to put in the above is:

doc2.setField("ID_VENTE", "idv1");


Live-Usb: udev requires hotplug support not started

Question: I tried to run kali from USB on my laptop, I clicked run from USB. At the kali menu -> Kali live.
Then the system started to load things allot of Lines..
Then an Error occurred:

"udev requires hotplug support not started. ... failed! failed!"

and its continued to load things (its didnt get to the green [ok]-s)
https://i.imgsafe.org/9574f7f57b.jpg
And then it's throw me to terminal tty1 and ask for login, I couldnt login..(I tried root-toor, and also root-root noting worked)

"progress linux 1.9 localhost.localdomain tty1"

https://i.imgsafe.org/9574d2822a.jpg
Necessary details:

Kali version kali-linux-2016.2-amd64
Kali installation USB-live
Specific hardware models you are having trouble with HP ay-101nj:

Intel® Core™ i5-7200U Processor
8 GB ram - ddr4
SSD 256GB
AMD Radeon™ R5 M430
Bios InsydeH2O F.23
OS windows 10. The Laptop came with FreeDOS2.0
Comment: try this answer http://stackoverflow.com/a/27412488/5848185
Comment: didnt worked @GAD3R
Answer: i had the same problem with my hp. try to download the newest weekly release of kali. http://cdimage.kali.org/kali-images/kali-weekly/ it helped me.


What is the Definition of a Lisp Cons Cell?

Question: What exactly is the definition of a Common Lisp Cons Cell? How is a Cons Cell different than a standard linked list item? After all, both the cons cell and the linked list item have a value and a pointer to the next cell or item... or is this understanding wrong?
Comment: I just wanted to clarify that I am comparing above between a Common Lisp List and its Cons Cells and a regular Lisnked List and its Items as implemented in a language like C, C++ or Java.
Comment: every list (except `nil`) is a cons cell, but not every cons cell ist a list (if its `cdr` is not a list)
Answer: Cons cells in general hold two pointers that can point to anything. General usage of course is to point to a "value" with the left one, and to another Cons cell (or nil) with the "right" one.
Comment: cons cells also can hold values directly, without holding pointers. Ac cons cell made from (cons 1 2) will have pointers to the numbers, but can store them directly (same for some other small items like characters).
Answer: A cons cell is closer to a binary tree node than a linked list node.  car and cdr return the two children, which can be nil, atoms, or other cons cells.
Comment: To emphasize the distinction here, there's no requirement that the second element must be another cons cell. `('tofu . 1)` is a valid cons cell.
Answer: In Lisp, a cons cell holds a pair of values.  If the cons cell is in the variable c, then (car c) returns the first value and (cdr c) returns the second.
By convention, a list consists of cons cells where the car of the cell contains the node value and the cdr contains the reference to the next node or nil (the empty list) to indicate the end of the list.  When the primitive functions return or accept lists, this is the format in which the list is presented.
Therefore, for the list l, (car l) gives the first element (the value in the first cons cell) and (cdr l) returns the tail of the list (the next cons cell in the list).
Answer: A cons cell is one third of a contract consisting of cons, car, and cdr, with the requirement being that they behave as pairs, as others have mentioned.
The reason for leaving out the words "reference", "pointer", etc. from this definition is to recognize that those are implementation details. If you wanted to, you could build a cons out of thin air, as Abelson and Sussman did:
(define (cons a b) (lambda (x) (x a b)))
(define (car x) (x (lambda (a b) a)))
(define (cdr x) (x (lambda (a b) b)))

This definition lives entirely inside Lisp's world of definitions and functions, and doesn't even stop to consider whether the objects are stored as values or references; yet these can serve as a drop-in replacement for the primitive objects (not considering mutability or other special uses).
Answer: I think the other answers here, while accurate, aren't explicit about one thing.
In a traditional C++ linked list implementation, the two fields (val and next, say) are typed. next is defined as pointing to another node in the list, with null being the terminator. You can't point to anything but another node with next.
Lisps are dynamically typed, so either field in a cons cell can be anything (either an atom or a reference). You can implement a linked list with cons cells (that's all a Lisp list is: a chain of cons cells with a nil terminator), but you can also put arbitrary values in each field, using a cons cell as a coordinate pair, a tree node, etc.
You can even combine these; e.g., a list of x y coordinates:
;; (cons foo (cons bar nil)) == (list foo bar)
(cons
  (cons 5 4)
  (cons (cons 9 10) nil))
=>
((5 . 4) (9 . 10))

A cons cell is thus strictly more general than a linked list node; it's closer to an "applied pair", so to speak. All of the standard list processing functions (map, dolist, etc.) are simply functions that assume you're putting values in car and another list in cdr.
All this means that — if you wished — you could define lists backwards, with car pointing to the next cons cell and cdr pointing to the value! To do that with a linked list node you'd have to redefine the class or data structure to alter the types.


How do you train concepts for breath work during an actual fight for self-defense?

Question: What can you tell me about breath work for times of self-defense? How would I prepare and train for a sudden ambush? There are current concepts I could call technology except it is in the form of skills and techniques, and principles and concepts. I have heard of James Nestor and also of Brian MacKenzie, current experts on breathing. They both teach that we need plenty of carbon-dioxide in order for the oxygen to be released to the body. Have any of you ever had a violent encounter and noticed your breathing?
Comment: Honestly, any time I have had to use self defence (or even situations that come close to it) - adrenaline spikes and I do what I have to do - the same applies to championship spars. Afterwards I am exhausted, mentally and physically. I don't focus on breathing, or even trying to stay calm as such. I've been breathing my whole life so far - and will continue for the rest of it - in those moments all concentration will be elsewhere.
Comment: People produce carbon dioxide as a waste product. You don't need *any* of it. You can breathe pure oxygen and get all the oxygen you need.
Comment: @MichaelFoster I would not advise it. Breathing pure oxygen can lead to tissue and nerve damage, blindness in particular.
Comment: @PhilipKlöcking, maybe long-term, but it is actually indicated in some medical situations, such as to counter carbon monoxide poisoning. The point is carbon dioxide isn't necessary for oxygen intake. I don't recommend sparring or self-defense while using oxygen tanks.
Comment: @MichaelFoster You should look up what breathing experts are saying now. They are saying that carbon dioxide is needed to in order for oxygen to be released from red blood cells.
Comment: That's because the permeability is best at certain partial pressures.
Answer: If you are training breathing, don't focus on self-defense. You will not have the attention available for breathing when something happens, you will simply use whatever foundation you have built. You breathe all day, and improvement of this basic human function will improve performance, self-defence or otherwise.
Stress causes changes in breathing. In general, breathing rate goes up with stress, though it's often unclear which is the cause and which is the effect. At high levels of stress, however, it's common for people to hold their breath, which is not good for an encounter that lasts more than a few seconds.

we need plenty of carbon-dioxide in order for the oxygen to be released to the body

I have read James Nestor's book Breath: The New Science of a Lost Art. I would not characterize the message as this. Under normal circumstances, a person will get all the oxygen they need regardless of whether they are breathing well or not. Nestor argues that health improves with breathing slower/less. One explanation for this is the level of carbon dioxide in the blood goes up, which he explains can improve blood flow and chemistry.
I have personally trained in the Daoist style of breathing, which in the basic form is simply long, even, continuous, and quiet. It's simultaneously boring and life-changing. Anecdotally, I think breath training provides major advantages in sparring situations, but progress is slow initially and it's very hard to convince someone they should do it.
Comment: Fun fact: my breath rate in rest is between 6 and 9, "norm" is 10 to 14...I've been treated as a freak in my physiotherapist class when it  came to breath work hehe
Comment: @PhilipKlöcking 6-9 breaths per minute?
Comment: Yeah, HR is equally low in rest (44-53)
Comment: Huh. 14 is about my average breathing rate when sleeping. Never thought to test it while resting otherwise. I'm a singer, so long breaths are pretty much the norm.
Answer: Just like muscle conditioning and flexibility, the best way to ensure available breath is to train in mild to moderate stress for your current health level. Build up your general cardiovascular health via exercise and drills, and train in situations where you have to react quickly to unpredictable stimuli via sparring. Short of actually training in a situation where you get attacked randomly, it's not a perfect solution, but it will get you 90% there.


Explanation of trivial zeros of the Riemann Zeta Function

Question: Why do negative even numbers plugged into the Zeta function produce a zero? The Riemann Hypothesis implies that the non-trivial zeros are connected to the primes, so how does that fit with negative even numbers?
Comment: That's an analytic continuation of $\zeta$, which is not very related to its series definition on $\left]1,+\infty\right[$ so dont be surprised if negative even numbers are zeros. If you want a proof, it uses the Gamma function 's analytic extension.
Comment: this answer is not so simple. Take a look [here](https://proofwiki.org/wiki/Trivial_Zeroes_of_Riemann_Zeta_Function) for a proof.
Comment: For your second question, the effect of a zero $\rho$ of the zeta function  on the distribution of the primes is, roughly speaking, to put a term $\sim x^\rho$ into the explicit formula for the Chebyshev function (and thus an analogous term in the explicit formula for the prime counting function). The nontrivial zeros have $\Re(\rho)>0$  so they are important at large $x.$ Whereas the trivial zeros have $\Re(\rho)<0$ so they don't contribute anything at large $x.$
Answer: The functional equation of the zeta function, needed to extend anatically that function to $\;\Bbb C\setminus\{1\}\;$ and one of the most astonishingly beautiful equations in mathematics, is
$$\zeta(s)=2^s\pi^{s-1}\,\sin\frac{\pi s}2\,\Gamma(1-s)\,\zeta(1-s)$$
Well, now for $\;s=-2n\;,\;\;n\in\Bbb N\;$ , you get $\;\zeta(-2n)=0\;$ ...
Answer: For example, the zeta function at $-2$ is $1^2 + 2^2 + 3^2 + ...$ which is trivially equal to 0.
Similarly, the zeta function at $-4$ is $1^4 + 2^4 + 3^4 + ... $ which is also trivially equal to zero.
It is trivial to see that the same holds for the function at $-6$, $-8$, ... etc. For that reason, these are considered the trivial zeros of the Zeta function.
Comment: Also, it is trivial to see that 1 + 2 + 3 + 4 +... (the sum of all positive integers) is equal to -1/12.


Does defense bonus from class increase as you level up?

Question: In the Star Wars revised saga edition, classes gain a defense bonus. My question is do they increase as they level up, or do they constantly stay the same unless you multiclass?
Answer: In Saga Edition they do not go up as you level. Nor do they stack if you multiclass, you get the highest for each defence.
Saga Edition Core rulebook, page 36:

"Class bonuses do not stack; you only apply the best bonus from all your classes to each defence score. Continuing the previous example, if you were a scout 6/soldier 2 you would have a +2 class bonus to your Fortitude defence (this is the better bonus, granted by being a solider), and a +2 class bonus to your Reflex defence (also the better bonus, granted by being a scout). If you later added a level of noble, you would also gain a +2 class bonus to your Will defence."
Answer: Saga Edition provides defense bonuses as a feat-like class ability, not as a level dependent feature. None of the SWSE corebook classes indicate any increases at higher levels.
This is different from the earlier d20 System Star Wars, which gave them as level dependent features.
Note: I'm only aware of 3 WOTC editions of Star Wars:

Star Wars d20
Star Wars d20 Revised
Star Wars Saga Edition


Are we Sankaras ( संकर according to Bhagavat Geeta Chapter 1).?

Question: In the first chapter of Sri mad Bhagavat Geeta, Arjuna said to Sri krishna that if this war happens then everyone in the world will become Sankara ( संकर)(Bhagavat Geeta 1.41-44) And later war occurred. Does it mean that we all are Sankara ( संकर).?
Comment: I would suggest you to read the BG with word-to-word translation along with commentary by any reputed acharya and not make up your own interpretations if you you are a novice in Sanskrit....eg: you can read online on Gita supersite.Some good commentaries could be that of HH Sripad Shankaracharya's; Sripad Ramanujacharya's; Sripad Madhavacharya's; Shri Madhusudana Saraswati's; Sant Jnaneshwar's Gudarth Dipika; Swami Mukundananda's etc...
Comment: BG 1.41 states "adharmābhibhavāt kṛiṣhṇa praduṣhyanti kula-striyaḥ
 strīṣhu duṣhṭāsu vārṣhṇeya jāyate varṇa-saṅkaraḥ" Meaning:- "With the preponderance of vice, O Krishna, the women of the family become immoral; and from the immorality of women, O descendent of Vrishni, unwanted progeny are born."
Comment: @devibhakt the verse 1.43 refers to **varṇa-saṅkara** which in the context means unwanted progeny. "doṣhair etaiḥ kula-ghnānāṁ varṇa-saṅkara-kārakaiḥ

    utsādyante jāti-dharmāḥ kula-dharmāśh cha śhāśhvatāḥ" Meaning:-"Through the evil deeds of those who destroy the family tradition and thus give rise to unwanted progeny, a variety of social and family welfare activities are ruined"
Comment: 1.42 states "saṅkaro narakāyaiva kula-ghnānāṁ kulasya cha patanti pitaro hy eṣhāṁ lupta-piṇḍodaka-kriyā"
 Meaning - "An increase in unwanted children(saṅkaraḥ) results in hellish life both for the family and for those who destroy the family. Deprived of the sacrificial offerings, the ancestors of such corrupt families also fall"
Comment: In the above verses Arjuna is trying to convince Lord Krishna to stop the war and the following verses elucidate on what happens when a dynasty gets destroyed(stated by Arjuna)....
Comment: @Rāmachandra Makes sense, thx !
Comment: @Rāmachandra Oh ! my comment is so irrelevant and incorrect here (what's new hahaha:D) I will delete it real quick, thx for pointing this out  Edit, I removed it. My Sanskrit/Hindi skills are freakin awful. New Years resolution for 2023 is to get those up to speed. Very necessary
Answer: Varṇa-saṅkara means mixing between different varnas. It essentially means the collapse of varṇāśrama-dharma.
It is true that most people in the modern day are a result of varṇa-saṅkara due to the mahābhārata war that happened about 5000 years ago. It also increased due to huna, yavana/mleccha invasions that happened in bhārata. In modern-day India, it is happening freely.
The solution is the re-establish the varṇāśrama-dharma in society on the basis of guṇa-karma as śrī-kṛṣṇa teaches in Bhagavad-gītā 4.13.

catur-varnyam maya srstam guna-karma-vibhagasah tasya kartaram api mam
viddhy akartaram avyayam

TRANSLATION

According to the three modes of material nature and the work ascribed to them, the four divisions of human society were created by Me. And, although I am the creator of this system, you should know that I am yet the non-doer, being unchangeable.

Once the varṇas are re-establish then people marrying within the same varṇa will attract a same-varṇa soul in the mothers womb.
Answer: There is no pure endogamous jati today. Name based varna and associated Gotra is a fantasy. No Hindu today really knows his varna.
For example, take a look at this shloka from Garuda Purana.
Brahmana-hood is rare

The soul obtains human body after passing through series of births. O
bird, in human body too, his birth as a Brahmana is rare event.

Garuda Purana, Dharma Khanda, Chapter XIX
Most of the people who think they are Brahmana because of a Brahmana name is not really of Brahmana Varna.
Why is this so?
Hindu scripture says that this is due to intermarriage between people with different Varnas. This is the reason why conduct should be used to determine Varna and not name.
Yudhisthira's view on Varnashram dharma

Yudhisthira said, " In human society, O mighty and highly intelligent
serpent, it is difficult to ascertain one's caste, because of
promiscuous intercourse among the four orders. This is my opinion. Men
belonging to all orders (promiscuously) begat offspring upon women of
all the orders. And of men, speech, sexual intercourse, birth and
death are common. And to this the Rishis have borne testimony by using
as the beginning of a sacrifice such expressions as -- of what caste
server may be, we celebrate the sacrifice. Therefore, those that are
wise have asserted that character is the chief essential requisite
.... Whatsoever now conforms to the rules of pure and virtuous
conduct. Him have I ere now designated as Brahmana.'

(Mahabharata Aranya Parva Section CLXXIX)
Puranas complain about intermarriages.

Said the Fire God: Pusakara narrated to Parashrama (the tenets of
faith and the laws of conduct to be observed by the different castes
of people as laid down by the different Manus, which were disclosed to
him by the god Varuna and a knowledge whereof imparts enjoyment of
good things in this world and salvation in this next. Puskara said: "I
shall presently discuss the articles of faith and the laws of conduct
which should be adapted and observed by the four castes of people in
their every day life, which were approved of, even by the god Vasudeva
and which carry the sanction and authority of the different Manus.
Cessation of all killing propensities, truthfulness, mercy, kindness
toward all created beings, serving god, Brahmins and one's own parents
and respectable relations, worship of one's ancestors, veneration
towards the King, perusal of good and pious literature, forbearance,
fortitude in suffering and theism are the virtues which should be
cultivated by members of the four castes and by men in general.
Since the investiture with the holy thread, a member of the twice-born
caste is supposed to take a second spiritual birth and I shall
describe the castes which children born of parents not members of the
same caste, would respectively belong to. A child born of parents
belonging to different castes would get the caste of its mother, but
on the contrary a child born of a Sudra father by a Brahmin mother
would be candala. Similarly a child born of a Kshatriya father by a
Brahmin mother is called a Suta, while one born of a Vaisya father by
a Brahmin mother would belong to a Devala caste. Similarly a child
born of a Sudra father by a Kshatriya mother is known as a Pukkasa,
while the one born of a Vaisya father by a Kshatriya mother is known
as a Magadha. A son born of a Sudra father by a Vaisya mother is
called a Ayogava and thousands of different castes have been known to
have originated out of intermarriages between Vaisya girls and youths
belonging to the above said hybrid castes.
............................ Thousands of hybrid castes have arisen
out of intermarriages between Vaisya men and brides of other Pratiloma
castes. A member of the Dashika community should earn the livelihood
by means of women or by serving as a guard of the female
apartments..... A man by renouncing this life (or the welfare of a
Brahmin or for the forbearance of the common weal, becomes exempted
from all subsequent re-births. The hybrid races should be looked
upon as the off-springs of the cravings of flesh of their respective
parents.

Agni Purana Chapter 151


How do you delete Screens from the .blend file?

Question: Part of my code makes a new screen and so every time I test run my code it adds a new screen to this list. But I can't seem to delete them from the list? I highlight them and hit delete and nothing happens. How do I remove them? There are over 90 in this file now. I suppose I could rewrite my code so that I can use it to delete a bunch of screens instead of create them and just run that periodically, but that seems unnecessarily complex and tedious. How are you supposed to delete these Screens directly from the UI with no coding?
Comment: you meant screens, no 'scenes'... just answered how to delete your scenes :p
Answer: your title said 'scenes' so I answered how to delete scenes..! for screens it seems to be different, you just clear its users and the screen should be gone on save/reload... here's an example of clearing all screens with a dot in the name
<code>import bpy
screens = bpy.data.screens
kill = [s for s in screens if "." in s.name]
for x in kill: x.user_clear()
</code>
to delete from gui you can right click on the tab name > delete
hope this helps, sorry for confusion
Answer: The solution is to go to the Outliner and choose the Data API sub-editor, then untwirl the Screens and search for and check  Runtime Data checkbox for the screens that you want to delete.
After this, save the file and reload and it'll be cleaned.


Installing custom ROM in Android studio AVD

Question: Is there any way for installing a custom ROM in Android studio Android emulator?
I have Resurrection Remix Naught 7.1 ROM downloaded on my computer.
In Android studio, I didn't found any option for choosing downloaded ROMs.
Please help....
Answer: It is very unlikely that regular custom ROMs will work in the emulator:
For the android emulator special device drivers like display and other fake drivers/services (e.g. for telephone, GPS with is usable but there is no GPS chip) are needed. Regular custom ROMS don't contain those drivers and therefore can't be loaded in the emulator.
If you want an adapted ROM for the emulator you need an image that bases on the AOSP emulator image.
Comment: Even I have that kind of ROM, how do I install it on Android studio? I didn't found any button saying "install ROM from storage". Is there any ?
Comment: If you have a ROM that is prepared for the emulator I would assume that the creator includes an AVD file to run in the emulator. Otherwise if i remember right the AVD files is an INI file which links the different system image files together. It should be possible to create a standard emulator and then replace the different image files with those from your ROM.


How to find overridden master page elements?

Question: Via CTRL+SHIFT+click one can override master page elements of an InDesign element, and by deleting it and re-applying the master page one can undo the overriding. But how can one find the overridden elements other than just "knowing" which elements should be from the master page but are editable on the current page?
Answer: Start setting up dedicated master layers when creating masters. Even though the master layers are visible in layers panel when working in a regular page, only the items you have released from master can be selected / will be listed in your master layers.
Comment: Simple but effective, I like it. Too bad that won't work retroactively...
Comment: yeah, a lot of things are like that in Indesign! I find often the most time is spent figuring out how to do stuff and not actually do them. Rebuilding a document can be a pain but also very satisfying when it works just the way you want it. Good luck.
Comment: Unfortunately so... The catch is this means one has to manually merge the master-layer into another one if one wants to export to a PDF with layers, and then _not_ save the InDesign document.
Comment: ..What kind of document / project are you making?
Comment: Documentation that is printed on a form by us but must contain that form itself as well, thus two layers.


openldap make sure password does not contain username

Question: Is there a way using openldap to ensure that a user's password does not contain their name or their username?
I know that you can use the ppolicy overlay pwdCheckModule by writing a C function to do password checking, but is this the best approach? It doesn't seem like many folks are doing password quality checking this way--the only example I've found is a github example which only does basic checking.
Answer: It's not only the best approach, it's the only approach.


Hp procurve HP-5406zl log

Question: What does this error and how can I fix?
Comment: The simple/quick solution: `no lldp run` (turn off lldp) Might not fix the problem, but it will make that message go away. :-)
Comment: I changed the transcerver, and the message stopped appearing for now, I'll see how it behaves in the next days.
Comment: If you're sure that changing the transceiver actually stopped the messages, please post an answer and accept it after confirming this fact.
Answer: This isn't necessarily a misconfiguration, but likely is.
LLDP carries primary vlan id in one of its attributes to help switches identify mismatches like this.
We have a number of cases were VLAN ids are only locally significant in our equipment and on completely untagged ports, with lldp enabled, the procurves will log these messages periodically because the ports have different VLAN ids on the two switches.  It doesn't matter, though because the vlan id numbers are only locally significant on each switch.  I wish I could turn off this message in these situations, but alas, I'm stuck with the noise.
In the typical case, where VLAN ids are more than just locally significant, this likely does represent a misconfiguration where traffic could jump from one VLAN to another if the primary VLAN on a port is sent untagged (while other VLANs are tagged).
Comment: I would suspect there's more at fault here as one of the switches is claiming it's PVID is zero, which is invalid. Also that it thinks every port on SW1 is connected to port 24 on SW2.
Comment: Thank you @Jeff McAdams    The problem was this. there was an untagged vlan to door, in the other was not as untagged.
Answer: I observed this behaviour when I connected an (A-Series) HP 5800 to a procurve 5400 with a tagged interface carrying 3 VLANs.
Is this a tagged Port? One way to solve it is to transmit one of the VLANs without Tag. PVID on both sides needs to be the same in this case.
If it is untagged, PVID must match anyways.
If you do not want to transmit any untagged VLAN (as I did) you can turn out the log message on the procurve with the command:
setmib 188.8.131.52.18.104.22.168.126.96.36.1998 –i 1
Comment: I changed the transcerver, and the message stopped appearing for now, I'll see how it behaves in the next days.

Hp procurve HP-5406zl log


Does a weapon with a percent of its damage returned as life proc from spells or melee hits only?

Question: I have a weapon on my wizard that converts a small portion of damage dealt to life.
Does this work for spell damage I do, or only on melee hits?
Answer: It works for spell damage as well as melee damage - the game is very much focused on you using your spells moreso than your weapons.
My Witch Doctor favors equipment with this enchantment - high DPS attacks can keep him alive in even the most challenging areas.
The Diablo 3 Wikia states:

Life and Mana steal only work on Melee, and physical ranged attacks.

I believe this means that only abilities that do a percentage of your weapon damage count, which would line up with my experiences so far.


Can Notepad++ convert multiple opened files to ANSI (encoding)?

Question: I have 50 text files which need to be converted from utf-8 bom to ANSI. In Notepad++ We can do it with single file, but I want all opened files to be converted to ANSI in one short way. Is there any option there?
Comment: It seems that u need a way in command line to do it. Have you looked for a powershell solution?
Comment: i did not try., im not a power user or script writer. just looking for a tool that could do this job. any other way?. if it can be done in command line please let me know how to do it.
Answer: Suppose that your utf8bom files are in c:\temp\utf8\
I am saving the ansi files to c:\temp\ansi\
At command line,
> powershell
PS> get-item c:\temp\utf8\*.* | foreach-object {get-content $_ | out-file ("c:\temp\ansi\" + $_.Name) -encoding default}
PS> exit
>

What it does is that for each file in c:\temp\utf8, get its content and output to a file with the same filename in c:\temp\ansi with the Windows system default encoding, which is equivalent to ANSI you meant.
get-content command here can read the text without you specifying utf8 with or without bom.


I am removing a switch from a gang box. What is the appropriate way to cap the circuit?

Question: In my new house I have a couple rooms where the wall switch controls the outlets. I would like to remove the switch and cap the wires and then install a blank wall plate. What is the proper way to cap the wires? I have not opened the box yet but I would gather that the switch has two blacks and a ground.
Answer: If the switches are basic (not 3-way and not having some special feature needing a neutral), you are correct.
The simplest way to remove the switch and leave the outlets always live is to twist the two wires (other than the bare or green ground wire) from the switch together and cover with a wire nut. These will most likely be both black, black and red, or black and white (but the white will be hot, and if code was followed, marked with black tape, paint or marker).
The ground wire can simply be removed and pushed to the back of the box, but to avoid the risk of a bare wire touching a live wore or terminal, you may want to add a wire nut to the end of the ground as well.
You can then put a blank cover plate over the switch box.


Which of the following is grammatically correct?

Question: Talking on the phone or Talking on phone.
Do they have different nuances? If so, then which one should be used when and under what circumstances?
Answer: The nuance is that talking on phone is just not correct everyday English. You need a definite article there. The reason why is because to talk on the phone is a set phrase that can't be changed. You can, however, replace on with over:

I was talking over the phone with my friend from San Fransisco the other day and he said that they were expecting a minor earthquake.
Answer:
"I am talking on the phone.

...is the better choice of the two options.
Other common variations:

"I am on the phone."
"I am making a phone call."
"I'm talking to Tom on the phone."
"I'm talking with Tom on the phone."
"I'm on the phone with Tom."
"I'm calling Tom."
Answer:
Talking on phone

and other expressions that do not use articles where we would expect them are written in a style  called headlinease1. This type of writing is characterized by the removal of words that do not, by themselves,  contain "content". For example, as Professor  John Lawler has stated, the in and of itself does not mean anything.
So, you could use talking on phone anytime you want to communicate bare  content. Like in a text or on a sign:

Talking on phone. Please wait.

Using headlinese style in an ordinary conversation might be considered abrupt or  strange.
The other  clause, with  the definite article, is  an example of conversational deletion, in which  the clause's subject  is deleted because it is understood; so it can  be used without the subject explicitly stated, as in

{I'm/he's/she's/they're/Clare's/Shivam's} talking on the phone.

For example:

What's John doing?
  Talking on the phone.

You don't need to explicitly state John in the reply,   because it's clear from context that you're talking about John.
As the name conversational deletion implies, this sort of thing is used in everyday conversation. It's not necessary to use it, though. It's a little informal. One probably wouldn't say it in formal situations, such as when you're talking to someone in authority.
Otherwise we would expect to encounter the string  talking on the phone in everyday usage with the subject explicitly stated:

She's talking on the phone.

So,   they're both "grammatically correct" when used in the proper context.

1 I dislike using Wikipedia entries as references  because they are often unreliable and contain outdated information, but I can't find an alternative readily available source. The pdf Article drop in English headlinese might be of interest.


Can I use a song lyric as the title of my theatre production?

Question: I'm starting a theatre company and one of the ideas I have thought of for a production is an ongoing series of monologue/scratch evenings. I want to have the premise of each night to latch onto the theme and revolve around the use of a song lyric and actors have to create their own original writing using this lyric as inspiration. For example, the lyric "All flowers are pretty when they're dying" is a taken from a Rina Sawaymama song called 'To Be Alive'. Would I be able to use this lyric as the title of the production?
Comment: Does this answer your question? [Is it legal to use a song lyric on the back of a wine label if we give attribution to the creator?](https://writing.stackexchange.com/questions/24220/is-it-legal-to-use-a-song-lyric-on-the-back-of-a-wine-label-if-we-give-attributi) There are [many other questions on this site](https://writing.stackexchange.com/search?q=song+lyric) about using song lyrics for different purposes. It is likely that one of the answers there answers your quesiton as well.
Comment: Here are a few: https://writing.stackexchange.com/questions/60977/what-are-the-exact-steps-for-requesting-permission-to-quote-and-attribute-a-song, https://writing.stackexchange.com/questions/27568/can-i-legally-use-these-song-lyrics-as-book-chapter-names, https://writing.stackexchange.com/questions/6797/are-music-lyrics-copyrighted, https://writing.stackexchange.com/questions/21848/borrowing-or-stealing-phrases and so on.
Comment: The gist of all answer is: Because song lyrics are so short, citing even one verse can be a breach of copyright, especially in a commercial context. (And please note that "commercial" doesn't mean that the event has to make anyone money directly. An event is also commercial if it gives artists exposure that will result in more invitations for performances that will eventually lead to someone buying a recording or paying for a ticket.) So you should always try and get written permission or use songs for which the copyright has expired or that are in the public domain.
Answer: There are two principles in copyright law that seem most germane to your question.
Lyrics are rigorously protected by copyright since by their nature they are very creative. But, the notion that dying flowers are beautiful is a long standing poetic theme.  It comes in poems by Homer which predates the artist who wrote the song you are interested in.
If the refrain from the song is a simple restating of an old idea, then it might not be considered a highly creative work, therefore a short phrase might not rise to infringement.
Assuming it is regarded as a highly creative work, then if your use of the phrase expresses them same sentiments as the prior work, then you'd likely have a problem claiming fair use. In other words, if you are saying the same thing in your play as the artist said in their song, using the artist's words you might be infringing on their work.
But if your play takes the notion in a different direction than is established in the song, then your work might be considered transformational, and thereby covered by fair-use.
Copyright law is subtle and hard to predict. You can always ask for permission. But it doesn't matter unless the play is actually published. If it  is only performed on one weekend in a dinner theater in East Hoboken, it doesn't really matter.


Has anyone seen a simplex library for javascript/nodejs

Question: I've been writing a lot of my scripts in NodeJs, but I need to use something like the GLPK libraries in order to handle some of the optimizations in my scripts.  Has anyone heard of a javascript driver?  I wonder how hard it would be to port coin to a V8 library.. probably above my pay grade.
Answer: Not sure if its what the OP is looking for, but I'm working on something here that might work. You would use it like this:
var solver = new Solver,
    results,
    model = {
    optimize: "profit",
    opType: "max",
    constraints: {
        "Costa Rican" : {max: 200},
        "Etheopian": {max: 330}
    },
    variables: {
        "Yusip": {"Costa Rican" : 0.5, "Etheopian": 0.5, profit: 3.5},
        "Exotic": {"Costa Rican" : 0.25, "Etheopian": 0.75, profit: 4}
    }
};

results = solver.solve(model);
console.log(results);

Where the results would end up being:
{feasible: true, Yusip: 270, Exotic: 260, result: 1985}

Its probably not the fastest solver in the world, but its easy enough to work with.
Answer: Javascript Simplex Libraries

SimplexJS
SimpleSimplex
YASMIJ.js

YASMIJ Example:
var input = {
    type: "maximize",
    objective : "x1 + 2x2 - x3",
    constraints : [
        "2x1 + x2 + x3 <= 14",
        "4x1 + 2x2 + 3x3 <= 28",
        "2x1 + 5x2 + 5x3 <= 30"
    ]
};
YASMIJ.solve( input ).toString();
// returns
"{"result":{"slack1":0,"slack2":0,"slack3":0,"x1":5,"x2":4,"x3":0,"z":13}}"

Comment: I have tried all of these and they are junk unfortunately :(
_SimplexJS_ is for mixed-linear program (doesn't actually implement the Simplex method, seems to have just chosen that name for fun).
_SimpleSimplex_ has `document.write` in the code... not something you are going to use inside another project, just a demo.
_YASMIJ.js_ never made it out of beta and you pass the objective function in as a string, which can't be a good sign...
Comment: There are two completely different optimisations algorithms that both go by the name "simplex algorithm":  The linear programming optimisation problem where the space is bounded by a simplex and the solution point is moved from vertex to vertex, and the Nelder-Mead simplex algorithm for optimising an arbitrary function in a continuous space by repeatedly making a simplex and estimating the integral within that simplex.  Super-confusing!  Stumps many people searching for implementations.  The example above is a linear programming problem.  https://en.wikipedia.org/wiki/Simplex_algorithm
Comment: Be careful - YASMIJ.js works only for maximization (type: "maximize"). Moreover, currently is not supported - it is written in the readme.
Comment: SimpleSimplex is a nelder mead optimizer, not a linear programming solver.
Answer: I don't know if this will help, but please have a look at numericjs.com. It's a javascript numerical analysis library that I'm working on that has a rudimentary implementation of a linear programming algorithm.
Comment: numericsjs is seriously busted and hasn't been updated since 2012. Don't use it.
Answer: GLPK has actually been ported to JavaScript using emScripten. The resulting js is about 1 MB minified and 230 KB zipped.
As of today August 2018
1) Last committed Dec 2015:
https://github.com/hgourvest/node-glpk
2) Last committed Dec 2017:
https://github.com/jvail/glpk.js
Try them out!


Save/Export image from compositing tab in Blender 2.81

Question: Any way to save the pre-rendered picture as JPG/PNG from the compositor?
Answer: One way is to connect the Viewer Node.
Then just open your Image Editor, select Viewer Node and save the image.
You can save to any format you need .jpg/.EXR are all supported.

Note:
If the Viewer node doesn't show any image, just toggle one of your nodes off/on.
Viewer/Composite nodes refresh only when there's a change in the compositor.
Comment: @Jachym wow, that worked, thanks!
Comment: Happy to help :). I had to figure it out because I often edit external .exr files.
Answer: There are a couple ways to interpret your question.
If you mean save out your render before the composite; go to your compositor then 'shift+a > output > file output' and connect it directly to your render output node.
If you mean that you rendered the image and are compositing using the live view after: There isn't an instant way of doing that presently. You can maximize the node editor using ctrl+space and do a screenshot or re render the frame. If its just for a preview image that you want to save you can turn down your resolution or ray count (be sure to have denoise in your composite node tree if you do that) to make it faster if time is an issue. The back image in the compositor is just a preview, it is not meant to be a final render product.
Comment: Thanks @Jeremy, I should've been more precise, my situation is closer to the second option. That's sad, I have a highres EXR file in my compositor and the only thing I want to change is the background color.
Answer: The way I save any scene is to use the print screen button on the keyboard. Click it then  open up a picture editor like Microsoft paint because it loads fast, and paste, crop picture if you want, and then click save as. For more options on editing the picture use a program like Gimp to past the picture into.


What is the easiest x86 Embedded Linux?

Question: I want to play around with some embedded linux. I want it to be able to run on an x86 processor (for start, it will be running on my regular PC). I have looked online, but the ones I have found seem hard to setup or lack proper documentation. So what are some good embedded x86 compatible linux distros that are easy to setup or have good documentation on how to get things setup?
Answer: Since the definition of "embedded" vary depending on who you talk to, what is considered an embedded Linux distribution will also vary.
As other have said, you can go with distribution building tool kit, like :

T2 SDE
OpenEmbedded
LinuxFromScratch
Buildroot

You can also use any "standard" Linux distribution, which can often be customized for an embedded environment.  They have the advantage of being heavily tested in their normal environment.  So you can choose any of :

Fedora (with Revisor, Instalinux)
OpenSuse (with SuseStudio, Instalinux)
Debian (with Reconstructor, Instalinux)
Ubuntu (with Reconstructor, Instalinux)
Gentoo
Slackware (with NimbleX)
CentOS (with Instalinux)
gNewSense (with Builder)

Finally, you can also build your own completely, from source.  In that case, BusyBox will probably be helpful since it provide a lot of functionalities and common application.  To help you with that, there is the nice 3 parts series : Building Tiny Linux Systems with Busybox (part 1, part 2, and part 3)
Comment: I would add that the "easiest" will also depends.  Easiest to install?  Easiest to customize (to your need)?  Easiest to get support for?
Answer: You may want to take a look at the OpenEmbedded project. It is a meta-distribution, meaning it's more of a distribution construction kit rather than ready distribution. But using it may take effort on your part. The same applies to all embedded solutions, though.
Answer: BusyBox
BusyBox is designed to be a small executable for use with the Linux kernel, which makes it ideal for use with embedded devices. It provides a fairly complete environment for any small or embedded system.
Answer: What do you actually mean by "Embedded Linux"? It depends what you want to run on that.
For example you can use OpenWRT, but there are surely others which might better fit your purpose.
If you want to build some multimedia thing, Moblin might be a solution as well.
Comment: Just as a thought, I was thinking of making a dedicated game machine. Basically a linux that is built specially for 2d or 3d games.
Comment: Then Moblin might be good choice for you. But don't expect something to play 3d games to be really small, because of all required libraries for that.
Comment: Built especially for 2d or 3d games is kind of tricky, because that implies having opengl drivers and those are not (completely) free and hardware specific - and you'd need Xorg as well.
Answer: You might want to look at the Beagle Board.
It's not x86, but decent community of developers, and it will give a good idea how to build and run embedded Linux.(i.e. flash file system, somewhat limited RAM...)  and its real cheap!
I can also recommend these two books:
Building Embedded Linux Systems and
Embedded Linux Primer
Answer: I'd start by having a look at the output of the buildroot tool which comes with busybox.
You are suggesting that you want to make your own Linux distribution, this is fine but you really need to know how to use an existing one first. I am assuming you understand fully how Linux boots and works on a basic level. You'll need

Some kind of boot media (in some cases this CAN be a rom, but usually isn't) that the firmware can boot from (in most cases the firmware on x86 is some kind of bios, or bios-like - except on things like Macs)
A boot loader - I like to use syslinux because it's easy (and boots from a dos filesystem)
A kernel
A root filesystem of some kind - you can use an initramfs for this in which case, it's loaded by the bootloader and expanded at boot time. Initramfs is cool, it avoids the need for a "real" root fs or block device drivers etc (at the expense of some ram, but ram is easy).
A C library (unless all your exes are static linked)
Some userspace software

I'd strongly recommend using an emulator (such as vmware) to test this, it reduces turnaround time a lot. A development system will need to have rather a lot of disc space, as you'll probably need to compile everything in the above list, and possibly some other tools as well (such as gcc and C library) which aren't small. Your build box will probably need to be running a proper Linux distribution.
I have done this and it's good fun, but frustrating at times (debugging can be a mission in itself)
Happy hacking :)
Answer: Busybox + LFS, Gentoo, Arch all do the job well
First to you'd compile your stuff in a chroot jail on dev computer, last you don't need to compile but you need to mirror/keep your own repository because you can't get old packages from official arch repositories.
Answer: I suggest debian

What is the easiest x86 Embedded Linux?


Sphere rolling shader like ice cream

Question: now I can make cylinder shape with shader. But what I want to do is like picking up ice cream with an ice cream scoop. How can I do this?
Comment: The first image is a vertex shader that rolls up the mesh? You'd probably have to define a scoop shape and apply that to the verts so they roll in a more rounded shape. Then write a fragment shader that gives the ice cream texture. Maybe applying a texture with some time-based distortion would work well enough? Not sure how to generate the overflow tufts at the edges of the scoop. I'd probably occasionally spawn additional pieces and scale them up as a first shot.
Answer: Here's a sketch of how I'd approach an effect like that:

When the scoop contacts the surface of the ice cream, spawn a decal at that position that overwrites the ice cream's normals to look like it's bulging (like a classic ground pound effect). As the scoop presses deeper, expand/increase the intensity of this decal.

As the scoop passes a threshold depth, spawn/reveal an ice cream textured sphere just under the surface of the ice cream. Scale this sphere so it's a narrow spindle at first, lying perpendicular to the scoop direction.

As the scoop moves, gradually grow the sphere back to uniform scale and slide it into position in the center of the bowl. While doing this, pan the ice cream texture along the sphere so it looks like the ice cream is rolling. Adjust the texture tiling so that the details remain the same size as the sphere gets bigger.

Behind the scoop, extend the distortion decal into a ribbon, similar to drawing skid marks behind a car tire. You can use a parallax displacement effect in the decal shader to make it look like a concave hollow.

If you need to take multiple overlapping scoops out of the same ice cream surface (not specified in your question), then the decal fakery won't hold up, and you may want to draw the ice cream surface using a heightmap instead, like terrain. Where the scoop travels, lower the heights in the heightmap to leave a trough shape.

Sphere rolling shader like ice cream


Displaying a cloud page for sign up in external website

Question: I have created a sign up cloud page in marketing cloud and I want that page to be embedded in some other website. I know there are options like iFrame or DEmanager but iFrame are not that good for mobile devices and I want the data to be stored directly into salesforce not in any DE so DEmanager is also not an option.
So is there any way to do that?
I was also thinking to create a Lightning component and use Lightning Out to use it externally but it is also causing some problem.
So is there any solution to achieve this or maybe any workaround for that?
Answer: I would advise you to a confirmation page as a Cloud Page, which accepts submitted values from a form you create natively on your landing page. This will use CreateSalesforceObject to upsert data and RequestParameter to fetch your submitted values:
<code>%%[
var @email, @firstName, @lastName, @SFRecord

set @firstName = RequestParameter('firstName')
set @lastName = RequestParameter('lastName')
set @email = RequestParameter('email')

   set @SFRecord = CreateSalesforceObject(
    'Account', 3,
    'FirstName', @firstName,
    'LastName', @lastName,
    'Email', @email)

]%%
</code>
Alternatively, you could create a JSON code resource with more or less similar code, allowing you to perform the POST using AJAX, keeping your visitor on your native website instead of redirecting to Cloud Pages.
Comment: Yeah..but what I want is that the signup form should be made from marketing cloud or salesforce that should be embedded externally.
Comment: May I ask why, @AnkurNigam? Do you have any logic in the cloud page form? I would normally just place the processing of the data on SFMC, and not the form itself.
Comment: Yeah I also do the same but the thing is here the team that handles the website is different and in the signup form there is block that is dynamic and that needs to be modified often. So for doing this we need to be depended on that team and will take time thus I wanted to make this page in marketing cloud or salesforce only so that we can make changes by ourselves only
Comment: That probably brings us back again to an iframe, hosted as a cloud page in sfmc. Like Lukas said tho, you can write data directly into salescloud using the function above.


Keep particles from fluid simulation in render?

Question: When I bake a mantaflow fluid simulation, Blender displays it as colored particles before the mesh is baked. Is there a way to keep these particles without baking a mesh and have them in the final render?
Answer: You can sort of do that, using the viewport render:
1) Disable all overlays and set the view mode to rendered:

2) In the domain's material settings panel, set the Blend Mode to Alpha blend and make sure Show Backface is checked:

3) Change the domain's material to Transparent BSDF:

4) If you don't want to see the viewport's background, check the transparent option in the render tab, Film panel:

5) In the viewport, go to the View menu, and make a viewport render:

And here's the result:

You can use this in compositing if you need it to see it in your full feature render. Though I can't think of a way to make it look not overlayed on top or bellow.


What does Gideon say Barry Allen is the founding member of?

Question: When Barry, Cisco, and Caitlin first finds Gideon, she tells them about Barry saying "Founding member of..." but is interrupted by Barry. What exactly will Barry be the founding member of?
Answer: Most probably the Justice League.
From the preview comic for Episode 20 of Season 1 of the Flash, The Trap on the CW's twitter, they reveal that Gideon was cut-off after she said he was the" Founding member of the Justice..."

From the CW twitter account
Comment: @Shreedhar Most online communities (reddit etc.) seem to agree this was simple fan-service and not actually anything to look forward to.
Comment: I don't know if this will happen but i wonder how they are gonna present the Justice League in the CW-verse. Because the original leaguers do not exist in the same universe :| (nonetheless i hope they show something like this in the future seasons)
Comment: that's disappointing but its true.
Comment: @Shreedhar but Nora arc still dropping similar bombs and DCEU failing to make JL2 means arrowverse might get chance to do it
Answer: Whereas Batman aka Bruce Wayne is the founder of the Justice League in the DCEU, Barry is the founder of the Justice League in the Arrowverse.  In fact, Barry has been the one behind at least two or three Arrowverse crossovers - as far as I know.  He was the one who arranged for both Team Flash and Team Arrow to battle Vandal Savage in the fall of 2015.  He was the one who arranged for Team Flash, Team Arrow, the Legends and Supergirl to form a team and battle the Dominators' invasion in the fall of 2016.  It was his wedding to Iris West that led to the gathering of the Arrowverse heroes to battle the Earth X villains in the fall of 2017.  And in the end it was Barry who literally formed the Justice League following Crisis, using STAR Labs' hangar as the League's future headquarters.
Comment: Could you edit this to give some evidence to this being the case?
Comment: She cited the the specific incidents where this happened. There's wanting evidence and then there's being ridiculous about wanting evidence.
Answer: Founding member of the Justice League. In the comics he's also a founding member. The founding members are the ones who were first in the Justice League so that would be: Batman, Superman, Wonder Women, The Flash, Green Lantern, Martian Manhunter/Cyborg.
Comment: Welcome to SF&F Lena. Although your answer is correct, I don't see anything to support your answer (check Edlothiad's answer, that can give you some ideas).
Comment: To add on to the above comment you can [edit] your answer to give some supporting evidence (i.e. quotes, comic panels, etc.) to help show why your answer is correct.


Starting up a node

Question: I just started looking at Shimmer network and I wanted to setup a node.  I'm on Ubuntu.  I've followed the setup guide but when I run the command "wasp -c wasp-node', 'wasp' command not found.
Answer: A few things to note:

You've successfully built the binaries.
The location of your binaries.

You can follow the guide here to install properly: Installing Wasp on Wiki.
If you're setting up using make build then the binaries ideally stay in the root directory. In which case, you'd need to run: ./wasp instead of wasp.
If you've run make install, then the binaries should be on the global path and be accessible using wasp. If you do not have go path setup, follow this.
Comment: Thank you for responding.  I followed the instructions here, https://wiki.iota.org/shimmer/smart-contracts/guide/chains_and_nodes/installing-wasp.  Though my PATH for Go is '/usr/local/go/bin/go', I can still run the 'go' command from anywhere.  I used the 'make install' command.  When I run 'wasp', I get 'no such file or directory'.  If I run './wasp', I get a 'Command 'wasp' not found, did you mean:...' but no command example for 'wasp'.

Starting up a node


How to properly set QT_STYLE_OVERRIDE env var in GNOME on NixOS?

Question: I have a question about theming for Qt apps on Gnome.
I'm running NixOS with Gnome, using Home Manager and Flakes.  My theme is Adwaita-dark, but I've noticed that some Qt apps such as VLC do not have a dark theme applied.
I tried tweaking all qt related settings in home.nix, but it didn't work.
I got a clue to what the issue was when I ran qt5ct and it showed this message:
Please remove the QT_STYLE_OVERRIDE environment variable (current value: adwaita).

The QT_QPA_PLATFORMTHEME environment variable is not set correctly (current value: gnome, required value: qt5ct).

I finally found a workaround by adding the following to configuration.nix:
  environment.variables = {
    "QT_STYLE_OVERRIDE" = pkgs.lib.mkForce "adwaita-dark";
  };

And now it works, Qt apps have the dark theme.
However, this feels like a messy hack and I'd like to understand how to do it properly, if possible.  Has anyone dealt with this before?
Answer: qt.style = "adwaita-dark" should be a bit cleaner I think.  I only found it now in docs: https://search.nixos.org/options?show=qt.style
EDIT: oops, that's NixOS option, not Home Manager's like you asked.


In music what is style as it relates to instruments?

Question: In music what is style I mean accompaniment styles? How does one play with style as it relates to instruments? Like make their own 16 ballad style.   https://musicterms.artopium.com/s/Style.htm obviously you guys didn't see accompaniment style on keyboard. I want to know how audio accompaniments are made with style and what makes it a style. Come on people work with me here.
Comment: Do you mean the piano style of Chopin, Liszt, or harpsichord style in the time of Bach and Händel? Guitar style like Flamenco and Gypsy? Baroque trumpet? Maybe you are  looking for dances or Suites?
Answer: There are many ethnic styles of music that use instrumentation that is native to the part of the world that the style originates from. East Indian music is one style and uses a lot of sitar. Then there is African Music that incorporates a lot of percussion instruments. Perhaps you might consider Choral music a style, it uses primarily voices as its instrumentation, or maybe church music which until recently was associated with organ music. There are just too many examples for a person not to notice, Marching Bands, Symphonies, Polka Music, Skittle Bands, Harmonica Bands, Folk Music, Klezmer music, Elevator music. I think we need a little help in narrowing down the question to a sharper point in order to give a decent reply.


Should I use .NET? (IronPython?)

Question: I asked in another question about where a good place to start learning programming was and I came to the conclusion with the many helpful answers, that I would like to go with Python. So now, would there be a benefit to using a .NET implementation like IronPython or should I just do Python? My understanding is I would get a better grasp of fundamentals without relying on .NET, is that accurate?
Comment: IronPython is really just handy if you want to use .NET classes from Python or vice versa. If you just want to learn Python, learn Python.
Comment: I don't know. Do you want to? Unless you have a specific need then this question is off topic.
Comment: @Anna Lear: IronPython *is* Python, just as much as CPython is Python. Both are implementations of the same language spec.
Comment: @Jorg Depending on what you do, it has some platform-specific differences. I don't recall specifics anymore, but we've run into file path handling differences on Windows vs Linux with IronPython. Not saying IronPython is unusable or anything, but if one's gonna learn, might as well just use the "real" thing.
Answer: Straight Python. If you're going to learn Python, start at the bottom. Python can be extremely concise on its own. Sticking to the core should help you avoid confusing language features with .NET libraries. You also have the benefit of totally portable code (Windows, Mac, Linux are all supported). There are a ton of resources out there, so get to know the basics. Good luck!
Comment: Thanks :) It's a bit daunting but exciting too.
Answer:
Learn Python with CPython (because It's the official implementation).
When you have sufficient knowledge, learn about the different implementations.
Select the correct implementation for each development.
You shouldn't learn only one implementation. In the future you can need know others (jython, pypy, etc).

Should I use .NET? (IronPython?)


Gas water pipe corrosion.... Can It be fixed?

Question: My gas water heater pipes have corrosion at the copper to galvanized metal connection. Can it be fixed, and if so with what and how?
Comment: Hello, and welcome to Stack Exchange. First thing: **get your gas turned off!** That section of pipe could fail at any moment, which would likely destroy your house and/or kill people. Then, come back and we may have a good answer for you.
Comment: Is that a water pipe that's corroded or a gas pipe?
Answer: Are you sure that's galvanized? Everything else (I know it dirty and hard to see) looks like black pipe. Which makes sense. But galvanized and gas is a huge no no. If it's a water pipe, then turn off water heater and everything else and unthread that piece of pipe and get a new piece from a home improvement store.
Answer: Water is apparently leaking from the bottom fitting of the galvanized union and causing corrosion of the galvanized steel pipe. Remove the union, clean the threads , apply pipe dope ( I prefer teflon tape) and reassemble tightly to prevent future leaks. The rusted pipe could be wire brushed clean and will not rust if kept dry.
Answer: It appears that this is a water connection and if it is a water connection I'd suggest upgrading the pipes to either copper or PEX.
Iron (Galvanized or not) will always deteriorate with water and in a few/couple years you will have another leak.


What is the difference between source based tree and shared cost-based tree?

Question: In case of multicast routing, I encountered source based tree and shared cost based tree.What is the difference between source based tree and shared core based tree? In which case they are used? what is reverse path forwading and how is it used?
Comment: You need to provide more context... bear in mind that programming questions are off-topic here, and should be asked on Stack Overflow.
Comment: Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
Answer: Source-based tree: A non-shared multicast distribution tree (forwarding/replication state on intermediate routers) is built for every SOURCE,GROUP pair. Source-based tree is unidirectional.
Shared tree: A per-group multicast distribution tree is built on routers, shared by all group's senders and receivers. The shared tree might be bidirectional.
Answer: Source Tree
have their root at the source
shortest path tree (SPT) notation of (S, G)  where S is the IP address of the source and G is the multicast group address
The (S, G) notation implies that a separate SPT exists for each individual source sending to each group
Shared Trees
shared trees use a single common root placed at some chosen point in the network.
This shared root is called a rendezvous point (RP).
shared tree is unidirectional.
(*, G) * means all sources, and G represents the multicast group
PIM Dense Mode (PIM-DM)
uses a push model
supports only source trees—that is, (S, G) entries and cannot be used to build a shared distribution tree.
PIM Sparse Mode (PIM-SM)
uses a pull model
Only network segments with active receivers that have explicitly requested the data will receive the traffic.
The router closest to the source registers with the RP and then creates a source tree (S, G) between the source and the RP Data is forwarded down the shared tree (*, G) towards the receiver from the RP.
Bidirectional PIM (Bidir-PIM)
The shared trees that are created in PIM Sparse Mode are unidirectional. This means that a source tree must be created to bring the data stream to the RP (the root of the shared tree) and then it can be forwarded down the branches to the receivers.
Source data cannot flow up the shared tree toward the RP—this would be considered a bidirectional shared tree.
traffic is routed only along a bidirectional shared tree that is rooted at the RP for the group.
Data from the source can flow up the shared tree (*, G) towards the RP and then down the shared tree to the receiver. There is no registration process and no source tree (S, G) is created.
Answer:

so what is PIM? is this a routing protocol? not exactly.
PIM is out there to make the tree. its all about the tree.
one site of tree is 'root' and the other side is 'leaf'. in our tree, leaf side is clear. its "receiver" every time.
what about root site of the tree?
some times root of the tree is RP(rendezvous point) and we call it Shared Tree some times root of the tree is Source and we call it Source Tree
there are 3 variants of pim: ASM (any source multicast) SSM (source specific multicast) BIDIR(Bidirectional). and also two sub variant of ASM. those are DENS and SPARSE.
-
PIM
##1.    ASM
###1.A  Dense-Mod                   to_make --->    Source Tree
###1.B  Sparse-Mod                  to_make --->    Shared Tree
##2.    SSM  (IGMPv3)         to_make --->    Source Tree
##3.    BIDIR  (inline-RP)    to_make --->    Shared Tree
-
simple to say, if there was an RP our PIM works to make the Shared Tree if there is no RP, PIM make the Source Tree.
and also in PIM (ASM) DENSE mode just a few multicast data packets (3 or 7) goes to receiver via RP after a few packets and if there was any other preferable path, tree switchover from shared to source. you can disable it if you want.


How will Git merge this?

Question: John and Tom clone the same remote repo.
The content of remote repo is like this:
FileA.c

John make a local commit like this, ie, it moves the FileA.c into a folder named John and commit it locally.
John\FileA.c

Tom also make a local commit like this, ie, it moves the FileA.c into a folder named Tom and commit it locally.
Tom\FileA.c

If Tom and John both push their local repos to the remote repo, say GitHub, how will Git merge this?
I hope I made myself clear.
Thanks!
Answer: When you do git commit but don't do git push, the changes are added in your local repository and are not committed to the global repo. So, whosoever pushes his changes first, he won't get any conflicts since the remote server doesn't know about the changes made by other user that are not yet pushed. Later when the next user tries to push the changes, git will give error that the global repo has been changed and you must pull the changes first. Since, the changes are in the same file and the location has been changed, There will be a conflict, which would not be resolved by git itself.
The next user will have to make the changes again and push it so as to update the global repo.
Answer: Git/SVN/etc, do a merge as best as possible: if they see that separate, non interfering lines of code have been added/deleted/modified, then it will simply combine those changes made by John/FileA.c and Karen/FileA.c (its become practice to make someone in your example a girl =P). If the merge script see's that the same lines of code have been edited then it will mark it as conflict in the file.
I think this point has been made, but this process occurs locally; either by Karen or John, depending on who was the person to try and push last. The person who pushed last will be notified to pull from the remote repo and resolve any conflicts before pushing their own changes.
Answer: Git will never merge during push. One of the two devs (the poor one who tries to push last) has to resolve the conflict locally and tell git where to move the file. Git cannot know where the file should end up without human intervention.
# dev1
git clone …
mkdir John && git mv FileA.c John/FileA.c
git commit -m 'move file to john subdir'
git push origin master

# dev2
git clone …
mkdir Tom && git mv FileA.c Tom/FileA.c
git commit -m 'move file to tom subdir'
git push origin master
# git errors out: non-fast-forward, pull first to resolve potential conflicts
git pull origin master
# merge conflict in FileA.c
# tell git which file to delete and which file to keep:
git rm Tom/FileA.c && git add John.FileA.c
git commit # creates a merge commit
git push origin master

Answer: A second push operation will fail; merge has to be done locally. In this case there will be a conflict that must be resolved manually.
Answer: The nice thing about git is that it's easy to try these things out for yourself without affecting any servers.  The result for the last guy to push is:
02:32:54 ~/desktop/tom
$ git push
To /cygdrive/h/desktop/test
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to '/cygdrive/h/desktop/test'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.

02:32:54 ~/desktop/tom
$ git pull
remote: Counting objects: 3, done.
remote: Total 2 (delta 0), reused 0 (delta 0)
Unpacking objects:  50% (1/2)   Unpacking objects: 100% (2/2)   Unpacking objects: 100% (2/2), done.
From /cygdrive/h/desktop/test
   307f68a..2539f44  master     -> origin/master
error: refusing to lose untracked file at 'John/FileA.c'
error: refusing to lose untracked file at 'John/FileA.c'
CONFLICT (rename/rename): Rename "FileA.c"->"Tom/FileA.c" in branch "HEAD" rename "FileA.c"->"John/FileA.c" in "2539f448bb15d10f14bef74688dc3470975c2dbf"
CONFLICT (rename/rename): Rename "FileA.c"->"Tom/FileA.c" in branch "HEAD" rename "FileA.c"->"John/FileA.c" in "2539f448bb15d10f14bef74688dc3470975c2dbf"
Automatic merge failed; fix conflicts and then commit the result

Git is nice and asks which rename is the correct one.  Note that not all version control systems are capable of detecting this kind of rename/rename conflict.
Answer: The key point from the other answers is that git doesn't guess what should happen [using some pre-coded presumption], rather it will warn the user of the difficulty because it can't mind read the various user intentions.
Most other systems which claim the ability to do such merges fail the clairvoyance test - they don't know what you really wanted. Let the intelligent folk (that's you and me ;-) make the decisions.

How will Git merge this?


Loss of extrusion in Stratasys FDM liquefier

Question: I am running a Stratasys Dimension 768 SST, with a "rebuilt" extruder (dual setup includes support + model). This extruder, basically, follows the OEM design with exception to the tubing diameter (few mils smaller for rebuilt, although there is a generous inlet taper and/or bushing, larger than the filament diameter feed stock) and the way the tubing has thermal contact with extruder body and cartridge heaters. The OEM design, apparently, had some thermal epoxy to "bed" the 2 nozzle tubes, which are brazed into the nozzle tip block. The approach, I am using, is Al foil packing around the SS tubes, tight to the Al extruder body (still brazed connection to the nozzle tip block). I had no choice but to recondition the extruder, because of a breached nozzle tube. In any case, with a cleared out nozzle inlet to start each time, I do get transient extrusion at standard temperatures of 250 (support) and 280 (model ABS), and in an adjusted temperature range, with some preliminary experiments. I clear out the nozzle inlet with a metal pin, down to the tube bend (I don't get why the design had this problematic 90 deg bend radius close to the cold end, feed wheel!) For the support, the extrusion goes for about 5 secs, then slows down, and the support filament feed stock stalls and strips out the filament, turning it into white debris.  For the model, the extrusion goes longer for about 20 secs, and also slows down, and, in this case, the model feed stock splits and gets fed outside the nozzle tube inlet, but no white debris in this case. This cycle may be repeated by cleaning out the inlet clogging with the stiff metal pin.
I realize this is not a perfect description of the system, but I am hoping that someone who knows this extruder configuration or a similar one (system is quite old, unfortunately), may chime in here with suggestions. I will add, that I am running the system in a so-called maintenance mode and have some minimal adjustment of the firmware (like the hot end temperatures - defaults mentioned before) for the build mode (which is only during actual part run).
Thanks in advance for your help or suggestions!
Here are some diagrams/link to descriptions for the extruder as well:
My exact extruder (i.e., head) system:
http://www.amtekcompany.com/pdf/dimension_bst_sst_elite_768_head_clog_guide.pdf
A similar extruder (showing heaters, extruder body to isolate model & support paths, tips, and thermocouples)
https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwifyLnJsu7OAhVIOCYKHaSIDLQQjRwIBw&url=http%3A%2F%2Fwww.3dprintforums.com%2Fshowthread.php%3Ft%3D2237&psig=AFQjCNGM1BTAiWzUn4fNJ8-z5HDWxa6OEQ&ust=1472824417165187
This site shows another user take apart/redesign the extruder in question (pay attention to the 90 deg bend in the nozzle tubes)
(see attached picture)
I also have a few documents: user manual, service manual, etc. that I may share, if I knew how to upload to this website.
Comment: Hi MF1, and welcome to 3D printer SE! For users who don't know the insides of this specific printer, your question can be very difficult to follow. Could you for instance add a simplified drawing of the part of the system that doesn't work?
Answer: This isn't a "turn this knob and all will be well" answer, because your machine setup sounds pretty unique to what most people will have experience with. Not being familiar with the older Stratasys printheads, but based on my overall experience with 3D printers, there are three things that could be an issue:

The nozzles are obstructed. The way you talk about clearing the jams of pushing a tool up through the nozzle end would not effectively clear a jam, it would only push the debris back into the print head, just waiting to be pushed by the plastic back into the nozzle. It could even be a piece of aluminum foil from the rebuild process. The typical way jams like this are cleared is to do a "cold pull" where you heat up the hot end just enough to be able to pull the plastic out, before it has really had a chance to liquify, hopefully trapping the debris in the plastic, then cut the end of the plastic off and reload. The 90 degree bend in their design may make this very hard if not impossible to do.
Heat creep. The tubes are a slightly smaller diameter, and if heat is creeping up the print head and letting the filament expand in these tubes, it may be expanding enough that it will no longer move through the print head. Diagnose this by letting the printer jam, then cool off for a few hours. If you can print again for a short time period before it jams again, this may be your issue, where as an obstructed nozzle would not allow any more filament out. Either turn down your temps, or increase your cooling on the print head to address (or get the original size tubes if possible).
Print head temperatures too low for the print speed. The Stratasys Fortus 250mc I use runs ABS at about 300 degrees. Many of the reprap printers run even higher than this for ABS. The other thing to remember when ever you see people mention what temperatures they use, is that this is relative, and only a guide, as what the temperature reads at the thermocouple or thermistor is usually slightly off from the temperature that is melting the plastic based on heater location in relation to the plastic and thermistor. This can be diagnosed by printing until it jams, pause the print for something like 30 seconds to let the hot end melt more plastic, and then resume printing. If resumes proper printing this may be your issue (and it will jam again shortly if you do not adjust temps).


Imac 2006 Snow leopard Disk Image Restore Problem

Question: I have installed a new internal hard drive due to old one failing. I had made a complete Disk Image of the old Drive.
I re installed snow Leopard, and then tried to restore disk Image from External hard drive, it allowed me to pick the source of the restore "disk Image" but would not allow me to choose the Internal hard drive.
Can any one help with this problem
Thanks
Nicholas
Comment: what are you booted from? You can't change the volume from which you are booted, you need to boot from something else, DVD, USB, Recovery etc
Answer: Are you trying to restore onto the partition from which you booted (it sounds like installed Snow Leopard on the internal drive, then booted that and tried to overwrite it)?
Instead try booting from the Snow Leopard CD.  The install screen has a menu, from there you can choose the disk utility.  Run that and try to do the image restore from there.


Did Gary Mitchell require food and water?

Question: After Gary Mitchell was transformed into a superhuman matter manipulator ("Where No Man Has Gone Before"), is there any evidence that he still required physical food and water to survive? The idea of that souped-up version of Mitchell having to take in nourishment seems strange to me.
Comment: Wasn't food among the things he materialized?  I don't think it would really bother him if he did need it
Answer: Gary Mitchell was a man with "esper" abilities.

KIRK: In the sick bay you said you if you were in my place you'd kill a mutant like yourself.
MITCHELL: Why don't you kill me, then?  Mr. Spock is right and you're a fool if you can't see it.  Man cannot survive if a race of true espers is born.  In time you'll understand that.

Despite his awakened talents Mitchell was still a man, and as such he still needed to take care of his human metabolism.  Toward the end of the episode he conjured up food for himself and Dr. Dehner.  Apparently Rhine's experiments had not been sufficiently discredited by the late 1960's, as esper abilities were a recurring theme on Star Trek.
Comment: I forgot about Mitchell's creating of food. Thanks.
Answer: I don't think he was Gary--at least not in the sense that he was the same man that Kirk knew. He seemed to be "possessed" by some kind of entity that had access to his memories--similar to the life form that possessed Picard in "Lonely Among Us". Remember not only was the alien energy/entity burning out his body (as evidenced by the graying hair), but when he temporarily returned to normal after walking into the forcefield--he recognized Kirk--and seemed surprised to be where he was. So his body was being used by the alien, but the body still needed water ("I'm thirsty") and food (producing fruit-bearing plants on Delta Vega). The tragic part about this theory is that in the final fight Kirk really was fighting his friend to the death and Gary probably didn't even know why!
Answer: In his "advanced" form, Gary Mitchell uses his newfound powers to create both food and water. There's no special reason to assume that his powers have grown beyond the need to consume food although by the same token, there's no reason to assume he couldn't simply make food appear in his own stomach to appease any hunger pangs.

DEHNER: It would take almost a miracle to survive here.
MITCHELL: Then I shall make one. Behold. (creates an oasis with flowers and a spring) You'll soon share this feeling, Elizabeth. To
be like God, to have the power to make the world anything you want it
to be.
DEHNER: What's wrong?
MITCHELL: A visitor. A very foolish man. You'll enjoy being a god, Elizabeth. Blasphemy? No. Let there be food. Kaferian apples.
Whenever we visited that planet, I always favoured these. Can you
hear me, James? You cannot see me. I'm not there. You follow the right
path, James. You'll come to me soon.

In the alternate Star Trek 'Abram-verse' canon comic Star Trek #001 we meet Gary Mitchell again. As you can see, he's clearly in need of liquid refreshment:

however, once his transformation is completed, McCoy indicates that he no longer need to eat or drink.
Comment: ""Leaving you Herre".*  Say what?
Comment: @Oldcat - From the Norwegian, obviously.


If multi valued functions aren't functions how can they be differentiated and integrated

Question: I recently learned that relations like $f(x)=\sqrt{x}$ and $f(x)=\arcsin(x)$ are not actually functions but multivalued functions, since they take multiple outputs for a single input. So how come we can write formulas such as $$\frac{\mathrm{d}}{\mathrm{d}x} \big(\arcsin(x) \big)=\frac{1}{\sqrt{1-x^2}}$$, as far as I know, the derivative is defined as $f'(x)=\lim_{h \rightarrow 0} \frac{f(x+h)-f(x)}{h}$, which is defined for functions. We can also write $$\int_a ^b \sqrt{x}\mathrm{d}x$$, and it is well defined. My question is, what's going on? How can we apply a limit to something that isn't a function?
Comment: Possible duplicate of [Inverse Trig Functions Domain Restrictions](https://math.stackexchange.com/questions/2542440/inverse-trig-functions-domain-restrictions)
Answer: The confusion happens when you do not distinguish between the functions $y= \sqrt x$ which is the positive branch of $x=y^2$ and the negative branch which is $y=-\sqrt x$
These are two different well defined functions.
For example $\sqrt {25}= 5$ and $-\sqrt {25}= -5$
For $arcsin(x)$ you pick the branch  which satisfies $-\pi /2 \le \arcsin (x)\le \pi/2$  and that is well-defined.
For example $\arcsin ( 1/2)=\pi/6$


Custom Cover Flow Implementation in iOS

Question: Instead of Images in coverflow, I want to have a list buttons in a scrollView(For each of the image in the coverflow), clicking upon them should navigate to the other page, which again contains a list of buttons inside scrollview.
Answer: You can use iCarousel an open source library which accept UIViews as components :)
Hope this helps
Comment: This is fantastic, as it also allows custom animations.
Answer: Use - https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/AFOpenFlow/AFOpenFlowView.m
And override the touchesEnded event in AFOpenFlowView.m
This might help you.

Custom Cover Flow Implementation in iOS


Bind DataGrid to Dictionary in ASP.NET

Question: In ASP.NET, binding a DataGrid to a list of objects is super-easy.
I end up with a row for each object in the list, and any cell in a given row is bound to a property of the corresponding object.
However, suppose one of the properties of my object is a dictionary, and each is expected to contain a specific key.  Is there any way to bind one of my DataGridColumns to that dictionary key?
Thanks.
Answer: If you add a handler for DataGrid.ItemDataBound, you can explicitly set a column value from your Dictionary. The very simplest example:
protected void OnItemDataBound(object sender, DataGridItemEventArgs e)
{
    myclass mine = (myclass) e.Item.DataItem;

    int cellindex = 5;
    e.Item.Cells[cellindex].Text = mine.mydict["thekey"];
}

Answer: I am not familiar with the works of the DataGrid bindings but binding in general can be done on any public property. Try binding to Key and Value on the Dictionary
Answer: Another option is to add a property to your class that returns the value for that specific key.
public string TheKey
{
    get { return MyDictionary["thekey"]; }
}

(The purists out there might not like the idea of adding a property to your object for this reason, but it makes for a simple solution.)
Comment: That is pleasantly simple, but what if I don't know "thekey" until runtime?

Bind DataGrid to Dictionary in ASP.NET


Managing a secure drop site between companies

Question: At my place, we have a Linux machine where our people and outside companies can drop off and pick up data. At the moment we allow only ssh, scp, and sftp. Unfortunately, we deal with large amounts of drops and data, and people never delete the files when they are done, leading to storage problems. There is a lot of risk leaving sensitive data in a machine that can be accessed by the outside and we are already implementing data retention policies. I know this situation isn't that rare, so is there any software that was developed for managing such a situation?
Answer: I think that your underlying problem is a matter of policy and not necessarily a technical issue. Truthfully, this is an issue that I've had to deal with and the following is how we resolved the issue.

An employee needs to make a file accessible to the outside world. They request for this to happen and IT sets up a folder which an external worker can access the document(s)
In order for this to happen a form must be filled out. Form information includes who the external person is, why they need access to the files, and exactly how long they need it for. This timeline is strictly enforced. Extensions can be given if IT is provided notice and if that's the case then the form is updated with a new "cut-off" date.
If the cut-off date arrives and the deadline for the files has not been extended, the account is cut off and the external world loses access to that particular file.

All of the files are stored in a locked down storage area on the server and the user is only ever given exactly what files they need access to. We keep the sftp logs and audit them on occasion. Disk space is not as much of a concern for us, however this matter could be resolved by an admin making a note to delete the file when the deadline passes or writing a simple script and scheduling it for that time.
While people were a bit hesitant at first, we made sure we stuck to the policy and enforced it. You could even write a simple bash script that notifies you of disk usage on your machines and automatically delete files that haven't been accessed in X amount of days.
Comment: I remember being in a similar situation where access by FTP was demanded. I set up an FTP server at HQ on it's own subnet and only allowed limited access through firewall. That way even if it somehow got hacked, it was effectively isolated from the rest of the office.
Answer: DKNUCKLES Has a great solution depending on your size; though be sure to consider scalability - a high overhead process that works for 10 users could become a problem if it grows to 200 users.
He's also extremely poignant in pointing out that this is, in large part, a policy issue as well.  How an internal IT organization decides to open its resources up to the outside world is an extremely important question that deserves a well thought out answer in today's cyber-threat environment.
That being said, there are a few technologies that may be worth mentioning, though again, depending on your size may not be applicable:
1.) A web based file sharing/a generic drop box service.  This could be external (like DropBox itself), or for ease of use and increased security, could perhaps be controlled and hosted internally, with a policy driven access model
2.) A federated security model between your company and outside entities.  If you're a large organization that wishes to allow for sustained interaction between your intranet, and that of a well known and trusted entity (like a supplier, subsidiary, etc.), there are federated systems that allow for cross intranet trusts (check out https://www.pingidentity.com/)
3.) Following up with DKNUCKLES recommendation, if you decide to go with a closely managed share, I might recommend the use of a DMZ'd area of the network for your special file share if you haven't considered it already.  And be sure to audit the hell out of it :)
Answer: Faced with the same situation I wrote a script which deletes all files that have not been accessed for 3 months, run as a cron job.
Document sensitivity should be covered by access rights. e.g. On our system all private folders require authentication. The only practical risk, other than the human factor, is the obvious one of the system being compromised, which must be addressed separately.


jupyter-server keeps asking for token login

Question: Ι have set up a jupyter server instance on kubernetes. The login prompt screen is the following

I exec into the pod, run jupyter notebook list, and in the two boxes at the bottom of the screenshot I enter the token returned by the above command and a password.
I then log in, log out and I am prompted again with the same screen
When I insert the password / token I created in the previous step in the Password or token field at the top of the screen, I get an invalid credentials response.
How can I set up a password-only authentication?
The links in the screenshot point to 404 pages.
jupyter --version
jupyter core     : 4.6.3
jupyter-notebook : 6.1.4
qtconsole        : not installed
ipython          : 7.18.1
ipykernel        : 5.3.4
jupyter client   : 6.1.7
jupyter lab      : 2.2.8
nbconvert        : 6.0.7
ipywidgets       : 7.5.1
nbformat         : 5.0.7
traitlets        : 5.0.4

Answer: Jupyter has been updated to notebook 7. Maybe you should update it and check if it solves your problem.