search display template filter query

Question: I've created a search query to get all SharePoint Sites where I have access to.
This was made with the results webpart and a search query. When I'm trying to search in this list the results won't be reduced. With managed properties in the search box for example title:Testsite everything works fine.
Maybe someone has an idea how to fix it.
Comment: Can you clarify your question? What is your query? Are you searching for Sites or items in a list of sites? Which version of SharePoint?
Comment: Hi.
The query is **{searchboxquery} contentclass=STS_Web contentclass=STS_Site EGGPBSiteType=Project -Path:https://sp.egger.com/templates EGGPBProjectStatus<>Closed**
The EGGPBSiteType and EGGPBProject Status are custom managed properties. With this Query I'm getting all our active project sites. If somebody is searching for a bracket of a name e.g. test the search results without doing with a managed property e.g. "Title:test" the search results webpart also displays all results like before. In some cases I saw that the results were reduced by 1 item.
Comment: you are missing * in your query, and use {searchTerm}* instead of {searchboxquery}
Answer: You may want to try removing the Site Collection from your query. More than likely you can also remove the Web too since you are using the very specific EGGPBSiteType=Project.
Answer: It should be
{searchTerm}* (contentclass=STS_Web contentclass:STS_Site EGGPBSiteType=Project -Path:"http://sp.egger.com/templates" EGGPBProjectStatus<>Closed)

Make sure you have quotes around the URL and managed properties are correct.
The first answer has a good point that you don't need the contentclass because your custom properties are very specific.
Comment: Thank you for your answer.  I changed the query and removed STS_Site, STS_Web and Path and everything worked. The main problem is that I implemented a sorting at the search results webpart without the "Relevance" sorting. Without this the search results won't be changed if somebody is searching a site. The main request was to filter the search results which were provided by the above mentioned query but this is only possible with refinements (cause I haven't found any other solution).

search display template filter query


How to define a vectorized function in R

Question: As the title, I'd like to know how to define a vectorized function in R.

Is it just by using a loop in the function?
Is this method efficient?
And what's the best practice ?
Answer: A loop at the R level is not vectorized. An R loop will be calling the same R code for each element of a vector, which will be inefficient. Vectorized functions usually refer to those that take a vector and operate on the entire vector in an efficient way. Ultimately this will involve some form of loop, but as that loop is being performed in a low-level language such as C it can be highly efficient and tailored to the particular task.
Consider this silly function to add pairwise the elements of two vectors
sillyplus <- function(x, y) {
    out <- numeric(length = length(x))
    for(i in seq_along(x)) {
        out[i] <- x[i] + y[i]
    }
    out
}

It gives the right result
R> sillyplus(1:10, 1:10)
 [1]  2  4  6  8 10 12 14 16 18 20

and is vectorised in the sense that it can operate on entire vectors at once, but it is not vectorised in the sense I describe above because it is exceptionally inefficient. + is vectorised at the C level in R so we really only need 1:10 + 1:10, not an explicit loop in R.
The usual way to write a vectorised function is to use existing R functions that are already vectorised. If you want to start from scratch and the thing you want to do with the function doesn't exist as a vectorised function in R (odd, but possible) then you will need to get your hands dirty and write the guts of the function in C and prepare a little wrapper in R to call the C function you wrote with the vector of data you want it to work on. There are ways with functions like Vectorize() to fake vectorisation for R functions that are not vectorised.
C is not the only option here, FORTRAN is a possibility as is C++ and, thanks to Dirk Eddelbuettel & Romain Francois, the latter is much easier to do now with the Rcpp package.
Answer: A vectorized function will return a vector of the same length as one of its arguments. Generally one can get such a function by using combinations of built-in functions like "+", cos or exp that are vectorized as well.
vecexpcos <- function(x) exp(cos(x))
vecexpcos( (1:10)*pi )
>    vecexpcos( (1:10)*pi )
# [1] 0.3678794 2.7182818 0.3678794 2.7182818 0.3678794 2.7182818 0.3678794 2.7182818 0.3678794 2.7182818

If you need to use a non-vectorized function like sum, you may need to invoke mapply or Vectorize in order to get the desired behavior.
Comment: The internal vectorized sum can be accessed with `'+'` (for example, `outer(a, b, '+')`). A slower Vectorized()` `sum()` function can be written: `sumV <- Vectorize(function(x, y) sum(x, y))`
Comment: @M.Viking My point was that one can nest a group of already vectorized functions. I'm uncertain whether `outer` is vectorized. I suppose if it is I would need to revise my answer.
Comment: Having re-read https://stackoverflow.com/q/28983292/10276092 and https://stackoverflow.com/q/2275896/10276092 I don't think anything in R is vectorized any more. :) :( I mostly wanted to document the way to write sumV
Comment: Both of those questions involved one of the *apply functions and describes "loop hiding".  Generally loops withe the same core algorithms will pert the same as the apply functions these days. R vectorization uses optimized internal functions that would otherwise need loops.
Answer: The purpose of the Vectorize function is to enhance the capability of a normal function to consider the concept of vectorization in R.
For instance, consider the function below for subtraction:
difftemp <- function(x){
    if(x > 10)
        return(x*10 - x)
    else
        return(x)
}

This is a simple function that will return a value that is less than 10 times the input if the value is greater than 10. If the input value is less than 10, then it will simply return the same value.
> difftemp(100)
# [1] 900

But when you will apply the same function over a vector, then it will fail.
> difftemp(mtcars$mpg)
# Error in if (x > 10) return(x * 10 - x) else return(x) :
#  the condition has length > 1

This is because the function does not support vectorization. To make this function Vectorized, we need to use the Vectorize function in R. For example:
# Vectorize difftemp function
> difftemp_v <- Vectorize(difftemp)

> difftemp_v(mtcars$mpg)
# [1] 189.0 189.0 205.2 192.6 168.3 162.9 128.7 219.6 205.2 172.8 160.2 147.6 155.7 136.8  93.6  93.6 132.3 291.6 273.6 305.1 193.5 139.5
# [23] 136.8 119.7 172.8 245.7 234.0 273.6 142.2 177.3 135.0 192.6

Keep Coding!
Comment: very useful information - great example. Keep answering!
Comment: @user12256545 thank you so much for the complement. Happy to help! :)
Answer: Late to the party, but I think the question is still highly relevant and there some new methods gained popularity recently. So here's one more way to vectorize functions in R, using tidyverse methods.
First, define some data:
x <- c(1,2,3)
y <- c(1,2,4)

Now, assume, we'd like to perform some computation element-wise on these two vectors such that f(x,y).
For instance, computing the sum for each (pair of) element of x and y should yield: 2,4,7.
Let's use map2_dbl from purrr (a package from the tidyverse ecosystem):
x <- c(1,2,3)
y <- c(1,2,4)

library(tidyverse)
map2_dbl(.x = x,
         .y = y,
         .f = sum)
#> [1] 2 4 7

As can be seen, the result is vectorized in the sense that the sum was computed for each pair of elements from x and y.
In sum, using map() and its variants is a convenient way to vectorize functions, at least in some situations.
Comment: The `map` function is isomorphic to the mapply function, hence not vectorized.


Present simple vs past simple

Question: If somebody call me,after hey hello,what should I say ,
1.what was the reason of your call?
OR
2. What is the reason of your call?
Comment: why don't you ask a why question? "why are you calling me?"
Comment: Usually, after your greeting, the person called starts explaining why they are calling. You could say "I am listening (to you)" to make the caller talk.
Comment: What's the situation? Expectations of telephone manner depend on where you are - home, workplace, etc. If workplace, the sort of workplace. Also, what do you think it should be? Why are you unsure?
Answer: As you want to ask the question during the call, which is happening in that current time, then you should use the present simple tense like this:

What is the reason for/of your call?

If it happened that you finished the call and met that person in a later time, then use the past simple tense as the call had been completed in some time in the past regardless of how much time had passed. It could be only a few minutes or seconds. As long as the event/action has finished, the past tense is used.

What was the reason for/of your call?

Both of and for work, but "for" sounds better.
Answer: I think "reason for your call" sounds better than "reason of your call", but either verb tense works fine.
The act of placing the phone call was a single event which was completed in full, so from that point of view, the "call" is in the past, and you can ask, "what was the reason for your call?"
But you can also take the view that the "call" is a lasting activity that is going on throughout the conversation. If this is your interpretation, the "call" is in the present, and you can ask, "What is the reason for your call?"
So both "is" and "was" are equally correct. It just depends on your meaning for "call": making/placing the phone call? -- or conversing during the phone call?

Present simple vs past simple


Impulse on a Gyroscope

Question: I've been studying gyroscopes, and I understand why a fast spinning gyroscope doesn't fall. However, I don't understand why a slow spinning gyroscope does fall, or why a large enough impulse to a fast spinning gyroscope will cause it to fall (ie if I push a gyroscope down with my hand, it will fall). If a gyroscope is spinning, it must have angular momentum outward or inward, along the radial axis, due to the spinning wheel/disk. If a slow spinning gyroscope (or a fast spinning one experiencing a large impulse) falls, this angular momentum must change direction. Only torques cause changes in angular momentum, which means this gyroscope must be experiencing a torque perpendicular to the angular momentum vector of the spinning wheel. However, I can't see where such a torque might be coming from; none of the torques that I've considered act in this direction.
Answer: When you are working from the frame of reference of the center of mass of the gyroscope , which is at the center of the disc, the torque due to gravitational force is zero and when the gyroscope is fully upright even the torque due to the normal force by the ground is zero.This is the case for ideal conditions(smooth floor,no irregularities,no dissipative forces such as friction).
In real world conditions the normal force vector moves around the base of the gyroscope due to irregularities in the surface on which it is kept.So a small torque is produced which slowly tilts the axis of rotation.This torque increases in magnitude as the axis makes a larger and larger angle with the vertical till the gyroscope finally topples.Smaller the angular velocity, lesser is the resistance of the body towards this torque.
Hope this helps!If you need me to give a diagram please tell me.
Comment: A diagram might be useful; I attached my own diagram, however, so if its correct, no need for another one.
Comment: Your diagram is accurate.The torque due to the normal is pointing into the paper, so it will produce an angular acceleration in the clockwise sense in the plane of the paper.Refer to my diagram.
Answer: First: you describe two cases, distinguishing between them, but making that distinction isn't necessary.
The two scenarios you describe:

A slow spinning gyroscope
A fast spinning gyroscope that you push by hand, exerting a sufficiently strong force to make it topple over.

Here is a circumstance where the slow spinning gyroscope would remain close to upright: when there is only a very small gravitational force, such as when positioned on the surface of an asteroid (so that the gravitational acceleration is only centimeters per second squared.)
Conversely, if you would place a gyroscope in an environment with a far stronger gravity than on Earth then a spin rate that would be sufficient on Earth to remain upright (for quite a while) would be insufficient in that high G case.
The point of view that unites the two cases is the following: it's about the ratio of capacity to remain upright and the magnitude of the force that tends to topple it over.
For every spinning gyroscope there is an amount of force that is sufficient to make it topple over immediately. It's a rule of proportion: the faster the gyroscope spins, the larger the required force to make it topple over immediately.
With that distinction out of the way I move to a more general discussion.
I assume you are thinking about the case where the initial orientation of the gyroscope spin axis is as vertical as you can possibly get it. It's as if you are trying to balance a pencil on its tip. If the initial orientation is very close to perfectly vertical then maybe you get a bit of "hesitation" in tipping over.
So let's say the gyroscope is initially very close to perfectly vertical, so close to perfecly vertical that even if it would not be spinning you would see a slight "hesitation" to topple over. No matter how close to perfectly vertical, in the end the spin axis will start to move away from vertical. (In the case of the actual Earth, the Earth's rotation underneath the gyroscope will make the local surface rotate relative to the gyroscope's axis of rotation.)
Once the gyroscope spin axis is no longer vertical the center of mass is no longer straight above the point of support, so you get a torgue from gravity that tends to topple the gyroscope. In response to the exerted torque a precessing motion commences.
The ability to oppose being toppled over is proportional to the spin rate. When the spin rate is very fast a slow precession rate is sufficient to prevent being toppled over. The slower the spin rate, the faster the required precession rate.
So if you would try this setup multiple times, each time with a slower spin rate you will arrive at a spin rate where there is not enough time and not enough kinetic energy available for the gyroscope to transition to a precessing state.
The precessing motion itself has a corresponding kinetic energy and a corresponding angular momentum, and those two have to be obtained from somewhere else.
When the spin rate is close to critically slow then you really have to scrape the barrel to obtain the necessary energy and momentum. If you have a gyroscope I encourage you to try and find that critical case, and watch it many times.
The slower the spin rate, the faster the required precession rate. So in the critical region the gyroscope can barely get up to the required precession rate. By the time the precession rate is large enough the gyroscope has toppled over through a siginificant angle. In fact, the source of the kinetic energy corresponding to the precessing motion is the move of toppling over. As the gyroscope topples through some angle some gravitational potential energy is converted to kinetic energy. Likewise the angular momentum corresponding to the precessing motion comes from the change of angular momentum as the gyroscope wheel topples through some angle.
The transition to precessing motion is not instantaneous. I have discussed the mechanics of that transition in a 2012 answer here on Stackexchange, to a question titled What determines the direction of precession of a gyroscope?
[Later edit]
The following was initially a comment, but it is too long for a comment.
The following may or may not be relevant to your case. There is a widespread overgeneralization that goes something like this:
"When you exert a torque on a spinning gyroscope wheel then that gyroscope wheel will respond with an infinite opposition to yielding to the applied torque. Instead the gyroscope wheel will move around an axis given by the vector cross product of the spin axis and the axis of the applied torque."
In fact: the gyroscope does yield to the applied torque. It's a matter of proportion. The faster the spin rate the stronger the response of the gyroscope wheel to changing axis orientation. In demonstrations is it common, of course, to push to a very high spin rate; that gives a vivid demonstration. When the spin rate is very high the gyroscope will yield only a little bit, imperceptible to the unaided eye. So at a very high spin rate it's an acceptable approximation to describe the gyroscopic effect as turning around an axis that is perpendicular. This is valid (in approximation) only for high spin rate; it doens't generalize.
That is why it is crucially important to try a range of spin rates, down to spin rates where the gyroscope is just barely able to get to the required precession rate, the case that I referred as 'the critical case'.
If you understand all of the motion that you see in the critical case then you are in a position to understand the motion of the gyroscope in all cases.
Comment: This was very insightful, but I still don't think my original question has been answered; what torque causes the wheel's L to change direction? I attached a diagram to help showcase my concern. Also; is there a way to mathematically derive the critical speed of the gyro, at which it falls over?
Comment: There is a very odd confusion going on here. It is as if you are asking: "If I push a gyroscope, so that the torque that I exert makes it topple over, I don't understand where the torque that made it topple over came from." Of course, that is not what you literally mean, but reading literally that is how it comes across to me. As far as I can tell: somehow you are wrongfooting yourself badly. It appears there is a hidden assumption in your thinking that is throwing you off.
Comment: My problem is that when I push the gyro, the torque that I apply points out (or into) the page. However, as the gyro falls, the change in the direction of the torque of the spinning wheel is not out of the page; rather, it changes from pointing toward the upper corner of the page to pointing to a lower point on the page. I do not doubt that I wrong footing myself somehow, but I cannot see how.

Impulse on a Gyroscope


why there is no add method in Iterator interface

Question: In Iterator Sun added the remove method to remove the last accessed element of the collection. Why there is no add method to add a new element to the collection? What kind of side-effects it may have to the collection or iterator?
Comment: I think you have a duplication:

http://stackoverflow.com/questions/993025/java-adding-elements-to-a-collection-during-iteration
Comment: @mihaisimi -- no, this is really a different question.
Comment: Yes, you are right. Still coobird provided a good answer to this on that thread.
Answer: Okay, here we go:
The answer is clearly stated in the design faq:
Why don't you provide an Iterator.add method?
The semantics are unclear, given that the contract for Iterator makes no guarantees about the order of iteration. Note, however, that ListIterator does provide an add operation, as it does guarantee the order of the iteration.
http://docs.oracle.com/javase/1.4.2/docs/guide/collections/designfaq.html#10
Comment: Sorry for being late to answer. But for example LinkedHashSet does maintain insertion order. Why didn't they make Iterator for it then? `Add()` method in that case would work fine, right?
Comment: @Stefan read this question: https://stackoverflow.com/questions/26277042/no-listiterator-in-linkedhashmap-and-linkedhashset which covers that case
Answer: The sole purpose of an Iterator is to enumerate through a collection. All collections contain the add() method to serve your purpose. There would be no point in adding to an Iterator because the collection may or may not be ordered (in the case of a HashSet).
EDIT: While working on another problem, I came up with another reason that Iterator lacks an add() method. Looking under the hood of ArrayList (line 111), and HashMap (line 149), we see that the implementation is just a few methods surrounding an array of objects. Now we consider how arrays are treated in memory.

This is an array of 5 elements. However, there are six indices. The letter "a" in this array is listed as element 0 because in order to read it, left to right like a computer does, you have to start at index 0. Now, if we are iterating through this array (yes, collection, but it boils down to an array), we will start at index 0 and continue to index 1. At this point in the Iterator, we want to call add("f");. At this point, let's compare the implications of add() and remove(). remove() would leave a space in the array, which is easy to jump over, because we can immediately recognize that it isn't a member. On the other hand, add() would put a new element in which wasn't there before. This will affect the length of the array that we're iterating through. What happens when we get to that last element? Can we even guarantee that it is there (that is, that the array hasn't exceeded the maximum size)?
All in all, the arguments one way or another both have valid points, but the bottom line is that the behavior of an add() method is not well defined in all cases. Sun had to make a choice where to limit functionality, and they chose not to include this method.
Comment: But then there wouldn't be a point in removing from an `Iterator` either. Yet `remove()` exists to make it (optionally) possible to remove elements without invalidating the `Iterator`. Shouldn't `add(E)` exist to make it possible to add elements without invalidating the `Iterator`? Of course you can add elements to the `Iterable` after the iteration. But the same goes for removal of elements. I think `Iterator` has a `remove()` method because generally it's efficient, easy to implement and defined clearly in contrast to `add(T)`.
Comment: A HashSet gives no guarantee for the order of its members. If you are iterating through it to try to find a point at which to insert a value, you've just defeated the point of an Iterator.
Comment: "because the collection may or may not be ordered" - do you please elaborate it a little. Thanks
Comment: I got your statement :-) . Thanks
Comment: @Robert It's a shaky argument, I admit, but I agree with your last sentence. As jontro links in his (second) answer, the design FAQ doesn't even give a good explanation. I believe a `remove()` method has more of a place in an `Iterator` than an `add(T)` method. The bottom line is that, for some reason, Sun chose to limit an `Iterator`'s capabilities at that particular point.
Comment: But then ListIterator has add method. Then these points goes same for listiterator as well
Answer: If you are working on a list you could use ListIterator which provides both add and remove operations.
Comment: Doesn't answer the question actually. But yes, `Iterator` doesn't implement `add` because it's not `ListIterator`.
Answer: I would like to add one more point.
ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add("aa");
arrayList.add("ab");
Iterator<String> iterator = arrayList.iterator();
while (iterator.hasNext()) {
    String string = (String) iterator.next();
}

Here the iterator takes max to max 2 iterations to complete it's iteration.
So the iterator will take a definite time to complete it's iteration in N time.
But what if we add the add() method:
while (iterator.hasNext()) {
    String string = (String) iterator.next();
    iterator.add("adding this data means iterator will always have next
                    element.")
}

So adding add() in the iterator will have a chance to run an infinite loop.
And simply we use iterator to traverse over the element, to not get in an infinite loop.
Answer: Iterator have a pointer to the next element only. where as ListIterator have pointers to the previous element also(remember, it can traverse backwards).
Answer: Because ListIterator maintains the insertion order and so you can get to a point where you want to add. Iterator doesn't care about order and so what if it adds the object in past values while iterating than that would be a disaster. That's the reason iterator is only given remove() method because you have a particular object and place from where to remove.
Answer: I cannot think of any theoretical reason why add() could not have been included in Iterator. Just as the Iterator can allow for elements being removed from the collection through itself, it could be designed to handle elements being added in the same way.
But I will say that in all my years of programming in Java -- over 15! -- I have never wanted an Iterator.add() method. So I suspect it's simply not all that useful.


Where to put planned master's degree on resume

Question: I am a senior studying computer science, but I am going to a career fair looking for an internship, not a full time job, since I am planning to pursue a master's degree in the computer science next year. Where do I put this planned master's degree in my resume to let employers know why I am looking for an internship and not a full-time job?
Comment: If you have not started it, it shouldn't be on your resume, because in 6 months your plans might change.  If you have started it, while your plans can change, at least you have made progress.  If you are looking for a internship apply to those jobs, don't apply, to full time jobs.
Answer: Preferably the cover letter, or the "Objectives" section of your resume.  Be sure to explain that you are looking for an internship and not a full time job.
At a college career fair, most of the recruiters/companies will likely be very understanding of your situation, so when you meet face-to-face at the career fair, be sure to explain this as you hand them your resume.
Comment: You have tripped my Objectives sensor. [Do not include such a section on your resume.](http://workplace.stackexchange.com/questions/1/should-i-include-a-career-objective-on-my-resume)
Comment: +1 for cover letters - resumes are for listing what you have done, cover letters are where you put your intentions/objectives
Comment: In general I agree with not including an objectives.  In this case though, the objective is non-obvious (most graduates will be looking for full time jobs), and I can't remember EVER handing a cover letter out at a campus job fair.


Which foods or drinks reduce headache?

Question: Which type of food or drinks reduce headache quickly?
Comment: Are we talking migraine level, a slight headache, or somewhere in between?
Comment: And the kind of headache or especially cause can make a huge difference.
Comment: Kindly explain your question. What type of headache you have? Is it generated from stress or any other kind of headache?
Answer: To mention the medicine:

Paracetamol, obviously.
Ibuprofene, which works even better for me, but should be taken during some meal.

 Now to answer your question:

Infusions work very well for me. Just to name a few: tea, rooibos, chamomile, tilia, verbena…

The only downside is that it's indeed diuretic. Drinking an infusion even several hours before going to bed is a big no-no for me. I prefer a small headache over having to get up multiple times before even falling asleep.
Also, sometimes I'm just not in the mood to drink an infusion :)
 But the above solutions are only symptomatic. You may want to consider long-term solutions, actually fixing the causes:
Physically:

You may be dehydrated to some level. Get the habit to drink more water during the day. Dehydration can be checked in blood tests, think about taking the opportunity of a future exam to ask to add a check for this.
Fresh air is a big plus. The most you can, avoid breathing tobacco, pollution, chemicals…
Wrongly eating (excess of sugar, etc.) causes headache. Improve this, if applicable.

Mentally:

Try to determine if events trigger the headache. In my case, these are: annoying and recurrent noises, angsting thoughts… Solve these root causes the most you can.
If there are situations where you feel good, headache-less, such as being in some places or doing some things, increase the duration of these situations. This increased "recovery time" will mechanically bring a better and more durable recover.
Comment: peppermint is meant to be good to relieve headaches, so a peppermint tea could work for some people.
Answer: I suffer from migraines and headaches in general. In my answer I am going to assume you are talking about a headache and not a migraine (the latter being so complex you could write a book full of advice).
What to drink really depends on why you have a headache. I usually drink water, but it doesn't really help too much to be honest - the cause of my headaches are not dehydration. Water can really help with a headache caused by a hangover.
Another common cause of a headache is caffeine withdrawal. This is commonly known as the "weekend headache" because you are getting up later and drinking less caffeine. In these cases you could drink a cup of coffee or tea - and in fact many headache tablets actually contain caffeine. For these reasons I have a strict routine of drinking black tea (one in the morning and one in the afternoon) which I adhere to every day of the week. If I can't find a tea or coffee I will drink a soda/cold drink with caffeine in it (e.g. Coke) but I will always follow with a meal to avoid a sugar rush and subsequent sugar crash headache.
If your headaches are accompanied by stress in your body (e.g. a sore neck) then you can try a warm compress and a/or massage. You can try take a magnesium tablet too.
If your headaches are caused by sinus trouble, you can try push your pressure points which you can find around your eyes. One is at the center point of your eyebrow and the others are in a diagonal line down from the corners of your noise. See this article about headache pressure points: https://www.healthline.com/health/pressure-points-for-headaches
I alsp find that regular deep breathing for about 10-15 minutes can really help. Breathe in for a count of 4, pause, then break out for a count of 4 (through your nose).
If all else fails I will take an aspirin or ibuprofen tablet because paracetamol doesn't work for me. Always ensure you have something to eat with a headache tablet to avoid giving yourself stomach ulcers.
Foods that soothe (or at least not aggravate) a headache are:

bananas is known to fight headaches (due to the high quantities of vitamin B6)
plain yoghurt
plain potato
whole grain bread

It is important to eat when you have a headache because low blood sugar (i.e. not eating) can cause a headache too!
Answer: To cure a headache you need to know the cause- or test options based on a suspected cause.
Tiredness => sleep.

If you can't sleep get antioxidant and electrolyte rich stuff.
avoid coffee. Drink/eat real fruits and veggie based stuff and gatorade helps.

Dehydration=> need water. Just any pure liquids. Avoid Coffee because that will only make you more dehydrated.
Hungry => eat food and rest a bit.
Answer: Half a glass of water with one lemon's juice reduces pain quickly.
Comment: It may happen from high blood pressure. If you drink such a water then it may effect your blood pressure.
Comment: citrus fruit causes migraines, so plain water is probably better

Which foods or drinks reduce headache?


Can I use edamame pods to make a vegetable broth?

Question: I'm currently saving various vegetable scraps to make veggie broth. I have a bunch of leftover edamame pods that I would normally just compost, but I'm wondering if they would work well in my broth. Would that taste okay?
Comment: Sometimes edamame is served heavily salted as a snack. If your pods are covered in salt I would rinse them so they don't make the stock too salty.
Answer: I wouldn't expect them to have much effect on your broth either way.  The pod shells are fairly fibrous and don't have much flavor of their own.
Comment: @Evan93 Unless you are cooking them into a pulp, no probably not. If you did cook them that far down, I highly doubt it would make for a tasty broth, probably quite the opposite. Things like these pod shells are far better used in compost, to make your garden soil more fertile. If you don't have a garden, or a composter, you should simply discard.
Comment: Would they at least add more fiber to a broth? Thanks!
Answer: yes, i reuse pods  to make like a broth, but with a bullion 1/2 cube , onions, and scallions , basil , and oregano fresh garlic, salt, and pepper, if your making small pot just for yourself like i do , you can use again the pods just suck on them one more time and then toss them in garbage or use in garden soil, they are tasty second time around, don't swallow though unless you have strong stomach, mixed in with broth ingredients you will love it
Comment: Welcome and thanks for sharing your thoughts. I noticed that you are suggesting a recipe that uses a bullion cube, however the asker wonders about making a vegetable broth from scratch, where the vegetables are creating the broth, not cooked on a broth.


Can you lose something that you don't care about?

Question: I'm new to philosophy and as of now, I don't have any knowledge related to what he said in order to properly redirect him to a source that mentions something similar. His philosophy goes like this:
If you lose something that you truly didn't care about, you didn't lose anything, but mentioning the fact that you lost it implies that you actually DO care about what was lost.
If in fact this is a loop that doesn't have any arguments against it, what is it called and are there any works that have similar core logic such as this one?
It's open to any interpretations.
Comment: Sometimes though, a thing is not truly appreciated until it is lost.
Comment: "*Freedom's just another word for: nothing left to lose*" - "*You don't know what you've got 'til it's gone*"
Comment: Heraclitus famously said something very deep while seemingly illogical like *"being exists and exists not"*, thus once you *name* the being you lost, the said  thing spontaneously exists at least in your *conventional* Husserlian homeworld as two faces of a coin which means you do care about since per phenomenology any mentioned being-in-itself was necessarily intentioned *about* by its lifeworld's possible (intersubjective) mind(s)...
Comment: It is strange how something can seem plausible (I've lost something important) but in fact not be the case (I had nothing important to lose). But anyway, apathy and feelings of helplessness are associated with loss.
Comment: You can lose something you don't care about, but perhaps unknowingly need. EG: You might lose a boss who aggravated you, but who had a lot of wisdom to impart that you will now no longer benefit from.
Answer: It makes me think of involuntary mental imagery, like where you say 'Don't think of an orange penguin' as a challenge.
Or 'The Game', a mind_game where if you think about the game, you lose the game.
You can give a simple counterexample: Ask if there anything he doesn't care about. If by his own criteria he admits there can be nothing in the category, he hasn't performed a clarification, he's performed a redefinition.
People do this when they say 'Reality is an illusion', of 'The self isn't real'. These statements sound what Dennet calls deepity, but when you look closer they just redefine 'real', and 'self'.
Your friend's quip just redefines 'care'.
Comment: I think the 'deepity' statements are like little thought grenades intended to blow up people's stuck thinking.
Answer: Your friend's philosophy is about loss, and it's really a profound question because life is really all about big and small losses.
Seneca said we cannot deceive loss, we can only conquer it. He suggested to his mother to study the liberal arts to take her mind off of loss.
The loop you speak of is grief. We grieve the loss of mere things too. Even small things. Time heals all, but it does leave scars.
Happiness is beneficial to the body, but it is grief that develops the powers of the mind. -- Marcel Proust (1871-1922)
Answer: Think, by analogy, of ending a relationship without telling the other person it's over ("ghosting", or an extreme version of it).
You can lose something you didn't want, but it's probably a process (with or without deception)
Comment: It's over... I will un-ghost myself from my imaginary stalker gf hahah. Peace / good luck
Answer: Since I don't know anything about the arguments or works you mentioned, I shall try to answer your main question only.
In normal case 'you' means the body even though actually it is not.  If 'I', 'you' etc., represent the body,  we lose something.  Otherwise, (or truly) we do not gain or lose anything ultimately even if we cared about or not.
If the possessor and the possessions vanish at the same time (or the possessor … a moment before), do we say that the possessor lost his possessions?
Usually when people lose their eye sight they say that they lost their eye sight.  When people lose their memory they say that they lost their memory.  That means even though we do not feel we have something, people feel loss when they lose essential parts like these.
Answer: It may be helpful to draw a distinction between emotional and material loss.
It is possible for a material object to no longer be accessible (loss of an object), and not have emotional attachment to that thing. The lack of that object is an experience of loss, regardless of any emotional reaction to that experience.
If I go to get a pencil and that pencil is not there but another one is, I have lost that first pencil but have no sense of disappointment since the need is fulfilled by the other pencil.
But generally speaking when someone uses the word loss it is used in an emotional context. Loss of a friend or family member, for example. There is an implied emotional connection in the relationships in that context. Therefore we have a necessary emotional reaction to that lose.
Unless I am incorrect it seems possible to me that we can lose something (material loss) while not experiencing emotional loss.


How to modify category tree in Magento admin?

Question: I want to add custom icon/text in category at selected place in screenshot. I don't know which file I need to edit to modify the category tree. Can anyone help me in getting out of this?
Comment: You can start from here magentoroot/js/extjs/ext-tree.js
Comment: @EmiproTechnologiesPvt.Ltd. I am unable to understand where i need to change in this file. Please suggest.
Comment: In this file there is html code for add folder icon and after that there code of display category name , after that you can add your html code for display icon, search in file "x-tree-node-icon" that code is for display folder icon so you can start from there.
Answer: if you want to add a text with the category name you can just over ride the class Mage_Adminhtml_Block_Catalog_Category_Tree.
In that class you can find a function like
<code>public function buildNodeName($node)
{
    $result = $this->escapeHtml($node->getName());
    if ($this->_withProductCount) {
         $result .= ' (' . $node->getProductCount() . ')';
    }
    return $result;
}
</code>
You can just add your text like.
<code>$result.='Your Text';
</code>


Securely moving from Ghostnet to Mainnet

Question: Are there any important things to do or check before moving a dApp from Ghostnet to Mainnet?
Answer: I would say it always depends on the specific use case. E.g. is it a DeFi protocol? Then you might want to have your contracts audited too before moving to mainnet.
If there is a contract bug it is not possible to just fix it, you need to migrate. Besides that if the application is well tested on Ghostnet and even covered with unit/integration tests you are probably good to go.


Getting a Conserved Quantity from a Lagrangian

Question: So I've been messing around with the implications of Noether's theorem, and though I conceptually get what it's saying, I'm having a hard time actually using it to retrieve a conserved quantity from a given Lagrangian. Procedurally if someone could show how to go about finding energy conservation from a generalized Lagrangian, and then using that procedure explain how I might derive the conservation of parity or charge from it, it'd do me a lot of help.
Comment: Possible duplicates: https://physics.stackexchange.com/q/94381/2451 and links therein.
Answer: Let's assume that our Lagrangian depends on quantities $t, q$ and $\dot{q}$. We start by finding the change in Lagrangian
$$ \frac{d}{dt}L = \frac{\partial L}{\partial t}  \frac{dt}{dt}+  \frac{\partial L}{\partial q}  \frac{dq}{dt} + \frac{\partial L}{\partial \dot{q}} \frac{d \dot{q}}{dt}$$
By adding and subtracting
$$\frac{d}{dt}\bigg( \frac{\partial L}{\partial \dot{q}}\bigg) \frac{dq}{dt}$$
Now the change in Lagrangian can be written as
$$\frac{d}{dt}L = \frac{d}{dt}\bigg( \frac{\partial L}{\partial q}\frac{d q}{dt} \bigg) $$
Hence we define
$$ H =\frac{\partial L}{\partial q}\frac{d q}{dt} -L$$
as the Hamiltonian which is conserved. Noether's Theorem has a similar approach.


My Anatomy and Physiology professor is charging for the outline

Question: My class already requires two books for the lecture and one for the lab. Is it actually legal to charge $15 for the course outline, written by the professor and published by the community college. I think its unreasonable and kind of suspicious considering it could easily be uploaded to blackboard these days...at no cost and no excuse for any student not looking at the doc or powerpoint. Also, who would i need to speak to at my college concerning the matter and try to persuade for the syllabus.
Comment: If the document is in any form other than handwritten, (i.e. it's an electronic document), why in the world isn't the professor *giving away* free pdfs?  This smells fishy to me.
Comment: Who exactly are you paying? The professor directly in cash? Or the university bookshop? The first is suspect, the second not.
Comment: You should have an academic adviser that is by default appointed to you. That would be a good first contact. Else the university should have an Ombudsman that can also be of help!
It is indeed completely preposterous what is happening...
Comment: There are a lot of possible duplicates. I will point you to a since revised answer of mine https://academia.stackexchange.com/posts/15113/revisions as well as https://academia.stackexchange.com/questions/110454/ethics-of-making-students-purchase-lecture-notes
Comment: @Zenon: What do you mean by "you should"? That in all universities worldwide, one has such an advisor? Or that one should find a senior academic (eg a relative) who helps You with those matters?
Answer: My view is that this would be unethical if the professor profited from sales of the notes to the students, but not otherwise. I've done this sort of thing myself, writing an extensive set of notes for an important course and having the university sell it at the cost of duplication.
The reason that it was important to do it this way was that I needed to quickly refer to the notes by page (and line) number for certain discussions. It also made it possible for students to use the printed notes as a means of keeping their own notes, by annotating the printed version. But I never "earned" anything from the sale.
While it wasn't "required" in the sense that you were forbidden to take the course if you didn't have a copy, it was essential enough and referred to often enough that the students got their money's worth.
My opinion also, is that if a professor requires a book that s/he wrote in a course, then the professor should refund to the students any net revenue that they receive from the sale. Usually a $90 textbook would yield around $5 or so to the author(s). But, if no revenue to the prof occurs, then this case doesn't apply.


Lord of the Rings Online & emulation

Question: How well does Turbine's Lord of the Rings Online work in an emulated Windows XP installation using VMWare Fusion, Parallels or other emulation systems?
Comment: unplayable in my experience. anything with graphics is going to suck on a VM.
Answer: In a VM it's completely unplayable. Think in terms of measuring framerate in seconds per frame, not the other way around.
HOWEVER... LotRO runs just fine on a Mac in Bootcamp. I played for well over a year on a 2.6 GHz MacBook Pro, running WinXP in Bootcamp. The downside is you have to reboot your machine into Windows instead of running it alongside OS X, but the upside is that any other Windows games will run just fine that way as well.
Answer: I run LOTRO with VMWare Fusion 3.0 on a Macbook Pro with a Windows 7 guest OS and I can run the game just fine.  Definitely playable.
Answer: In general you're going to get mediocre performance when attempting to run GPU intensive games in a virtual machine. In most cases this will hurt the playability of the game and put you at a disadvantage when playing against others in a multiplayer environment. I would recommend against attempting any serious gaming in a VM.
That being said, a few VMs do support accelerated graphics. VMWare and VirtualBox come to mind. MS Virtual PC does not. I can't really comment on any other VMs. Since most VM software supports some form of rollback/undo disks, I would suggest trying it out on an undo disk. That way if it turns out to be unplayable its a simple matter to delete the undo disk and you haven't filled your VMs virtual disk with files.
Note: Using an undo disk has a slight performance impact as well. So once you've determined if the game is playable merge the undo disk back into the main virtual disk to get the best performance.
Answer: If, by emulation, one might include Wine (with or without a helper like Lutris, Play on Linux, or Play on MAC, then yes, the game is very playable on such a system, though accelerated graphics support is largely required.  While 32-bit has been supported for a very long time, at the end of 2022, use of a 64-bit client will be required.  Lutris has been used for both 32-bit and 64-bit clients (scripts to install are provided), and the LOTRO forums have a fair amount of information about getting it working.
Yet another Linux option might be Bottles as mentioned in a LOTRO Forum post related to issues with getting the game working under DX9.
Be aware that there are caveats.  Some players have configuration and stability issues even when not running under emulation.  At one point in time, my game became largely unplayable until I was able to figure out how to enable DX11 support ... which was not a trivial affair since at the time, the option of selecting DX11 was greyed out.  Achieving a functional game with occurrences of this nature may put the game out of reach for some who find technical things daunting.
As for running under VMware, I was able, on a high-end laptop, to get the game to play.  That said, it was very difficult to configure.  I had all sorts of issues with mouse input, camera control, etc.  It is easy to see how some would give up and consider it unplayable.  I posted how I succeeded on the LOTRO forums:
vmware-Workstation-16-and-Win-10-Pro-x64-with-underlying-Intel-iRISxe-Graphics-(works-fine)
A summary follows:  Both DX9 and DX11 were tried and didn't make much difference with respect to playability though I found better success with playing full-screen.  At first, I had to set Options | Input | Mouse Look Sensitivity to 0.00. Even 0.01 was too twitchy!  I also ramped up Options | Input | Mouse Look Sensitivity to 0.50 or higher.  With these settings I was able to wander around and mostly play except that it was still too easy to get my camera view off. It was important to use the WASD keys more than the mouse. Setting Camera Aligns to Slopes [x] helped a lot.  Other things were tried, but didn't seem to improve the situation.  I could landscape relatively well, but there's no way the configuration was suited to heated battle.
After digging around a bit, I stumbled across How to disable mouse integration in VMware Workstation Player?.  I edited the .vmx file and added a line (after another one that also started with "mks."):
<code>mks.gamingMouse.policy = "gaming"
</code>
After that the game was perfectly playable.  Again, a challenge for folk who find digging around for obscure workarounds, but definitely possible.
On MacOS, the situation is, as I read it, somewhat challenging, at least without procuring a commercially supported Wine environment.  This is partly due to the "Mac" client containing a very old Wine, and will only get more difficult considering obsolescence of the 32-bit client.  All that said, the LOTRO support forums definitely have knowledgeable people posting methods to make the game work, and at least some posters are remarkably patient at working through even very difficult cases.
Mac-Technical-Support
Though I have no experience with Play on MAC, I have successfully used Play on Linux
WineBottler: Run Windows-based Programs on a Mac might be yet another option for some.
I realize that by answering this 12 years later, the landscape has changed since some other answers were written, but the question is still legitimate, and merits some newer information for others that have the same question.

Lord of the Rings Online & emulation


Marketing Cloud to s3

Question: I have an s3 bucket I would like to transfer data to daily via automation. It currently doesn't look like there is a native way to transfer data into s3 via a file transfer activity. Has anyone had any success with passing data from marketing cloud to an s3 bucket?
Answer: You can't do this directly between SFMC and S3. However, AWS has launched their fully managed SFTP service for S3 last year. If you have management access to the AWS environment and can configure this service, establishing a connection between S3 and SFMC should be straightforward.
Answer: Update to anyone finding this topic today: Salesforce Marketing Cloud released a S3 File Location during the April Release 2021 where you should be able to pickup any files directly from AWS S3 via import activities, though the automations would have to be scheduled.
Comment: Hi @Alex, I've posted this question on the S3 integration topic here in the Salesforce StackExchange, and am wondering if you can help me understand some details, please? https://salesforce.stackexchange.com/questions/361067/how-to-create-a-public-private-key-for-aws-s3-to-be-used-as-sfmc-file-location
Answer: What I understood so far is we need the direction SFMC to S3. For the other way around we have, as mentioned, the file location feature.
Answer: Sorry about the 2 year delay in answering the question!
Please follow these steps in order to transfer from Salesforce Marketing Cloud into Amazon S3 using Automation Studio:

Setup an AWS S3 File Transfer Location (FTL)
https://help.salesforce.com/s/articleView?id=sf.mc_overview_set_up_amazon_s3_location.htm&type=5

Create an Automation with Start Source Schedule - Daily (also, I recommend not starting at the top of the hour, that is the default and over 99% of automations are scheduled this way, you'll have improved success if you start at the 50 minute mark)
https://help.salesforce.com/s/articleView?id=sf.mc_as_automation_studio.htm&type=5

Create a File Transfer Activity
https://help.salesforce.com/s/articleView?id=sf.mc_as_using_the_file_transfer_activity.htm&type=5

Hope this helps - with this approach files can be transferred from Salesforce Marketing Cloud into any FTL, today we support the following:
Amazon S3, Google Cloud Storage, or Microsoft Azure Blob Storage, Marketing Cloud Enhanced FTP Site, Marketing Cloud Safehouse, External FTP, SFTP, or FTPS, and Salesforce Objects and Reports
Reference: https://help.salesforce.com/s/articleView?id=sf.mc_overview_file_locations.htm&type=5

Marketing Cloud to s3


Understanding crest factor of a voltmeter

Question: I was studying signals and systems and came across the crest factor which is defined as the ratio of Vmax of the signal to the rms value of the voltage with the dc component removed. It then proceeds to says that a voltmeter with high crest factor is able to read accurately rms values of signals whose waveforms differ from sinusoids, in particular, signals with low duty factor. My question is what does this mean, as far as I knew crest factor was defined for periodic signals, how do I relate to the crest factor of a voltmeter?
Answer: For a sinusoid, the peak or "crest" is sqrt(2) times higher than the RMS value.  For other waveshapes, it can be much higher.  The crest factor spec is telling you how high the peaks of a signal can be relative to the RMS of the signal for the voltmeter to still accurately measure the RMS.
Many modern RMS voltmeters sample the waveform many times per cycle, and perform the RMS calculation in firmware digitally.  Each reading is squared, these square values low pass filtered, then the square root taken of this low pass filtered result.
The individual readings are linear, and have some fixed resolution and maximum value that can be converted.  To get RMS, samples at the peaks of the waveform still need to be within the measurement range.  However, the average can't be so low relative to the peaks that you get significant quantization noise.  The meter manufacturer has done all these calculations and is telling you how extreme the peaks can be for the meter to still live up to whatever accuracy it is claiming.
Comment: How do meters behave when measuring a frequency components which are high relative to the sample rate?  I would think that a meter which took "snapshot" samples of unfiltered signals at "random" times could do a pretty good job of taking RMS measurements of any frequency the sample-and-hold amplifier could handle, but I have no idea if they do any such thing.
Comment: @Supe: The sample frequency needs to be "high" relative to the signal frequency to get good RMS. Put another way, the harmonics of the signal matter in determining RMS, so the signal needs to be sampled fast enough to properly measure the highest relevant harmonic. Since it's hard to know that that is, higher is better.  Usually you want to sample at a few kHz at least to get good RMS of 60 Hz power signals, for example.  100 samples/cycle is on the low end.  1000 samples/cycle is much better.
Comment: Given a repeating signal that's much faster than 60Hz (e.g. in the multi-kHz or MHz range), is it necessary to have dozens or hundreds of samples from one cycle, or could one simply take a thousand randomly-timed samples and figure that they'll probably be more-or-less distributed over the waveform?  One would end up with a 1/sqrt(N) noise component, but if one wants to update the display four times per second, getting N high enough for clean readings might be easier than having a sample rate that was many times higher than the input frequency.
Comment: @supe: Yes, but only if two conditions are met: 1 - The samples must not be correlated to the signal being measured, else you get aliases instead of random noise.  2 - The input signal must be regularly repeating.
Answer: All this is with reference to periodic waveforms.
Here is a list of various waveforms and their crest factors.
For "low duty cycle", consider a PWM signal with a low "on" time in relation to the period.

A PWM signal has a crest factor of \$\sqrt{T\over t_{ON}}\$, so if you have a periodic PWM at 5kHz (T= 200\$\mu\$sec) with a 5\$\mu\$sec \$t_{ON}\$ (2.5% on time), the crest factor is 6.3.
You can calculate that from the RMS value and the peak value. The crest factor stays the same regardless of the amplitude, so say the amplitude is 1. Then the peak value is also 1, and the RMS value is \$\sqrt {t_{ON} \over T} \$, so the crest factor is just the inverse of the RMS value.


Can I Create a Static-Content Site With WordPress?

Question: Hi I'm evaluating wordpress to implement a rather static website (http://www.eddaconsult.se) that now uses static html that I think could be advantageous to do with wordpress since it would make updates and administration easier. Do you agree with me that it's possible to implement these quite simple webpages with wordpress? I started a project to do this at http://eddaconsult.wordpress.com not getting very long since I didn't see how to upload a logo image etc but I'm sure that it can do all or most of what is required.
Answer: Yes of course you can recreate that site using WordPress.  You gain the benefit of managing all the pages from the WordPress admin, and gain consistency across all the pages due to the templated nature of WordPress pages.
You can start by finding or creating a very basic theme that mimics the look of the existing site.  Then just copy your content into WordPress Pages (copy and paste.)  You can even make it look like the pages are HTML by adding the .html extension to your permalink structure.  You can redirect traffic to your old pages to the new pages, if the names are different.
So long at the host that hosts www.eddaconsult.se supports PHP 5.2.4 and MySQL 5.0, you can run WordPress without a problem.  Here are the requirements for WordPress version 3.2.
Without a doubt, you can do this project with WordPress.
Comment: Thanks for the informative answer! I consider hosting with wordpress.com ie eddaconsult.wordpress.com, building up the site with their hosting and then redirecting my domain in a way that very little shows that it's actually wordpress powered. I want to avoid installing PHP and MySQL myself and use worpress hosting from wordpress.com which I hope and believe is possible.


What kinds of sets are reasonable to place on the continuum?

Question: Warning: I don't know anything about set theory so I wouldn't really know how to spot an existing answer if it were around.
Suppose I want to model some economic good or product. I would like to classify the good by the attributes it has. For example, maybe I want to model fruits and I start thinking about the attributes that fruits have:

Attribute 1: Color
Attribute 2: Shape
Attribute 3: Nutritional information

I look at this model and I think: what about the different ways that we can describe color, like hue, saturation, etc? What about all the shapes that fruits could have? What about all the different ways we could break down nutritional information? So I try to dis-aggregate all the attributes as best I can but I keep finding that there are more ways to dis-aggregate. I would like to think of some way to index all the attributes and assign each one a bounded value in $\mathbb{R}$ to describe the product like $Fruit=\sum{a_i\hat x_i}$ but this seems like it's a problem because I am not convinced that I can even index all the ways you might describe a fruit.
I could just give up and say, well, let's just capture the stuff that's really important to what I am trying to study. But suppose that I was not really even all that interested in the specific attributes - just more of the relationships between different fruits $a_i$ distributions - really I just want some canonical way to describe fruits.
Is it in any way reasonable to think that I could place the uncountably many attributes that describe the fruit on some real interval and consider the bounded function $a(x)$ instead? Then, if I wanted to compare two fruits $f_1$ and $f_2$, I could just compare the shapes of $f_1(x)$ and $f_2(x)$. One problem seems that even if you could place the attributes on an interval, it doesn't really make sense to think of $a(x)$ as being necessarily continuous - but if the goal is just to compare two functions there could be some ways to get around that.
It seems very reasonable to place something like "number of coins" on the real line, but pretty absurd to place attributes of objects on the real line. What exactly is the difference and how would you go about describing something like attributes with coefficients in a meaningful way?
(The reason I am asking is because I think I have seen something roughly like this before in a few economics papers.)
Answer: There are models that achieve basically what you are asking for. In general equilibrium theory with differentiated commodities, commodity bundles are often modeled as signed measures of bounded variation on a compact metric space of characteristics.


Where do I get the Legionnaire Imperial armor set to solve "Missing in Action"?

Question: I want to solve the "Missing in Action"-quest non-violently. It's said that I need an Legionaire Imperial armor set, my selfcrafted Imperial one failed. But where to get the items?
Comment: Kill an Imperial Legionaire from one of the warcamps / random encounters?
Comment: @Raven Not very non-violently :) I want to buy, earn, or find it laying around somewhere. Stealthy stealing also may be an option as a last resort. But I do not want to aggressively attack someone who has no beef with me.
Comment: Besides, I went to an Imperial camp, killed one of the guards, took his armor but still nu luck with the guards of the Missing in Action quest.

I also tried killing everyone in the camp to see if I could get the Legate's armor set, but no such luck.
Answer: You can't. The linked answer is incorrect; such armor does not exist.
It's actually not possible to complete this quest peacefully. There is an Imperial Decree that is not available without the use of the console that appears to be the key to this quest, but it was apparently excluded from the game as the result of a bug or some other unknown reason. Not only is it not present in the actual game, but the console-obtained version doesn't do anything.
Source: UESP Quest Page
Answer: The strategy guide says that there are 3 options.

You kill everyone and rescue Thorald.
You bring Avulstein Gray-Mane with you and kill everyone and rescue Thorald.
You stealthily sneak into the Keep through the north side door that is a master lock.
Comment: Actually this answer is correct. There is no such armor in game, so these are your only three options.
Comment: I've never had a good experience with the Prima Guides.
Comment: I just realized that the Prima Guide is really bad and doesn't have the correct answers because they didn't have enough time with the game.
Comment: There absolutely is armor called Imperial Legionnaires Armor, and I have read somewhere that it's the kind of armor you need to talk the Thalmor at Northwatch Keep to let Thorald go. Not sure if it works, but you can get a set of the armor when you start the game, i had sold mine though :( Went back to helgen to try and find some, but i couldnt, and i also tried the traders in solitude, with no luck.
Comment: You could possibly try buying it back from whoever you sold it to, but I doubt they will still have it.
Answer: Edited. UESP has conflicting information, attempted and failed. The option isn't available, but should be. Some programming error or something keeps it from working right. So, no not until it's patched or fixed either by Bethesda or modders. No peaceful solution exists, and there is no such armor. A book related to the quest can be gained using console commands, but it does nothing aside from take up inventory space.
Comment: Pics or it didn't happen
Comment: Well, UESP contradicts itself here, on the same page no less. However, it is correct that there is no peaceful way to do this as of yet. There is no such armor, only Imperial heavy armor. The 1.4 patch hasn't fixed the issue, and I noticed it was taken off the list of fixes slated for this patch. I suspect it will be addressed, as it was briefly amongst the list of things that was supposed to be addressed. Short answer, the only way to complete this peacefully is to wait for Bethesda to patch it, or mod the game later on with a fix for it from the ES Nexus. Neither option exists as of yet.
Comment: Working on confirming it, will link to screenshots if it works. This is one of the things the 4.1 patch is supposed to fix, and I've got the beta patch installed. I started a new game recently, so I have to go through the entire quest line to confirm it.
Comment: Do you want to edit your answer to reflect what is in your comment?  As it is, the answer still looks wrong.
Answer: You can't obtain the Imperial Legoinaire Armor as it doesn't exist. But however, there is another way to release Thorald without bloodshed.
Release Without Bloodshed, Step 1
What you'll need to do is join the Imperial legion and you need to start the rescue quest. Talk to General Tullius in the Castle Dour in Solitude to release the prisoner at Northwatch Keep. He will give you the Imperial Orders you need to give to the Thalmor at the front gate. This will cause the Thalmor at Northwatch Keep to become unhostile.
Release Without Bloodshed, Step 2
Now, go to Northwatch Keep. Talk to the Thalmor at the front gate and persuade him to release Thorald Grey-Mane and give him the Imperial Orders. He'll lead you inside the keep and you need to talk to Thorald to tell him he'll be rescued. then he'll follow you all the way outside. Don't worry, as the Thalmor will still become unhostile for the rest of the gameplay.
Release Without Bloodshed, Step 3
Now you released Thorald without having to kill the Thalmor. Talk to Fraila to complete the "Missing in Action" quest.
You can't obtain the Legionaire Armor to relase him, but you do want to do what is above. That's how you do it. The Wiki says:

-If the Dragonborn speaks to the front guard of Northwatch Keep and tells him that they've come for Thorald, the guard will refuse to confirm whether they hold a prisoner by that name, and say that a prisoner can only be freed by order of the Imperial Legion. General Tullius in Solitude can be asked to release Thorald, but he will only say this would cause too many problems (This option is glitched and there is currently no way to use it on PS3 or Xbox, and needs mods on PC.). He will only allow Thorald to be pardoned after finishing the Imperial Legion questline.

But if you have the Unofficial Patch,

-"Missing in Action" can now be completed using the non-violent method Bethesda had partially implemented.

Then you can release Thorald without bloodshed and but no Legionnaire Armor!
Comment: What's the source of these peaceful solutions? Did you test them yourself? If so, what version of Skyrim are you using?
Comment: I tried this on P.C. I had Unofficial patch.


calculated value in sharepoint list

Question: I'm creating a form whereby I want the date field to prepopulate to 3 business days from Today's date (exclude weekends). I'd also like to block the ability for users to select any days earlier than the 3 business days.
In the calculated value field I used the formula =Today+3 which seems to work but it also includes weekends. How do tweak it to ensure it only calculates business days?
In the column validation field I used =[Due date]>(TODAY()+3) which works but again I'd like it to only factor in business days.
Can anyone help?
Answer: For the Calculated value for the column try this:
<code>=IF(TEXT(WEEKDAY(TODAY()),"dddd")="Wednesday",TODAY()+5,IF(TEXT(WEEKDAY(TODAY()),"dddd")="Thursday",TODAY()+5,IF(TEXT(WEEKDAY(TODAY()),"dddd")="Friday",TODAY()+5,IF(TEXT(WEEKDAY(TODAY()),"dddd")="Saturday",TODAY()+4,TODAY()+3))))
</code>
For your column validation formula try this:
<code>=AND([Due Date]>=TODAY()+3,NOT(TEXT(WEEKDAY([Due Date]),"dddd")="Saturday"),NOT(TEXT(WEEKDAY([Due Date]),"dddd")="Sunday"))
</code>
Comment: Thanks so much! Would you be able to modify the code to include wed, thur and fri? Meaning if today is wed then the date should prepopulate to next Mon (3 bus days).
If today is thur then it should list next tues. And if it's fri it should display next Wed. All of these instances would push the date out to 3 business days.
Today is fri but when i apply the code its still spitting out Mon as the due date.
Comment: Yeah I had that all wrong sorry. I've updated the formula in my answer. Can you please try the new one?
Comment: Brilliant! Thank you so much for your help with this!

calculated value in sharepoint list


How did the "erogation" word end up on displays of coffee machines?

Question: According to many dictionaries, erogation comes from the Latin for "the art of giving out or bestowing", but currently seems to be heavily linked to the coffee business. I'd like to know how this happened.
Comment: Why? I'm interested about the change of the meaning of erogation through the History, but not limited to an english-centric point of view.
Comment: You should ask on [English.SE] instead.
Answer: A quick Google search turned up a (slightly broken) page with a blog post about this very topic.
The author was curious about that word in the context of an espresso machine's LED display. The author's hypothesis, which I find quite plausible, is that the word is a mistranslation of the Italian verb erogare, meaning 'to deliver, to supply (water, electricity, gas)'.  In the author's words:

"Who makes coffee machines? Italians. What do they speak? Italian..."


Euler's theorem and Cobb-Douglas

Question: When I apply Euler's Theorem onto the Cobb-Douglas equation I receive the Cobb-Douglas equation back. That is, there is no change after applying the theorem. Can someone please explain what the intent and point of this is, seeing no difference?
Comment: Mathematical operations do not exist in a vacuum. Why are you using Euler's Theorem? Is it maybe that something is equal to the full derivative of the function? One might also say that there is no point in differentiating $e^x$ as the derivative is the same. True, unless one actually needs the derivative for something. Are you doing a PhD? Rather than trying to cram through the math try to think about what you would do and why. Mathematics is merely a tool.
Answer: You are probably talking about Euler's homogeneous function theorem http://mathworld.wolfram.com/EulersHomogeneousFunctionTheorem.html , which shows that you can decompose a function into its partial derivatives based on its homogeneity.
So a typical Cobb Douglass $U(x,y)=x^ay^{1-a}$
This function is homogeneous of degree 1 because when we multply each argument by a scalar:
$U(cx,cy)=(cx)^a(cy)^{1-a}=cx^ay^{1-a}=cU(x,y)$
So if we apply the theorem to this function we get:
$U(x,y)=xU_x+yU_y=xax^{a-1}y^{1-a}+x^ay(1-a)y^{-a}=x^ay^{1-a}$
So the result that we get back the original utility is expected.

Euler's theorem and Cobb-Douglas


What's best for attic insulation

Question: I want to improve my attic insulation. What is the best option to use - Fiberglass batts or blowin insulation? The code says R-30, but will R-38 or higher be better option (New York area and also plan to air seal the attic). I currently have batts which I believe would be R-20.  What would be best option? Thanks
Comment: Where are your ducts etc located?  Also, when you say 'New York area", are you talking about NYC or upstate?
Comment: There are no HVAC ducts in attic. New York City area, not upstate.
Answer: Blown in insulation fills the cracks better. For that reason, as a second layer it has big advantages.
Downside: You have to borrow/rent the blower, which, if you are in my situation, you need to plan two trips to the hardware store an hour away.
Upside: Blown insulation goes in very fast. My stepson and I did one section of my house, 28 x 40 feet in about 1.5 hours, once we were set up.
Downside: This is a really dirty job. You need to wear goggles and a good dust mask. The coffee filter cones aren't adequate for this. It also gets in your clothes, hair, ears...
Downside: It takes two people: One to break bundles and put them in the blower, one to crawl around in the attic.
Batts: My experiences with batts in attic spaces has been dismal. Lots of places where gaps were left either because of blocks nailed to trusses, or batts that were sloppily installed. Batts are for walls.
You have a choice of either fiberglass blown in, or cellulose. The latter is in essence finely shredded newsprint treated with a fire retardant. It's R value tends to be lower than fiberglass, but it's also substantially cheaper. Also is more sustainable.
Answer: You should also consider Rock-wool batts. They are more costly, but in my opinion, are far superior to fiberglass. They are higher density and provide acoustic noise reduction as well.
Closed cell Spray foam is also a great option if cost is not prohibitive for your budget.

What’s best for attic insulation


intel gpu and nvidia swaping each other during game

Question: Laptop dell g5 5587.
Integrated gpu uhd 630 and discrete 1050 ti mobile.
Have latest drivers and updates windows 10.
Via Nvidia Control Panel I've set in which programs to use nvidia gpu.
Even set "Maximum perfomance" in intel graph settings in "Power"(battery) when plugged in.
Used DDU in safe mode to reinstall drivers.
Via msconfig I have disabled all services except Microsoft and then enabled only nvidia services. Highest temp was 86* for gpu.
The issue didn't disappear. I still have carrousels while game is running Like for 1 minutes the game use intel gou and i got lags and the next 1 minute it's all smooth cause it's running on nvidia gpu. Here u can see screens from task manager and usage of gpus - i get also lags outside the game when intel gpu is on high usage. https://drive.google.com/open?id=1WsId7ds_-eqnah4jausqycgjMLux3qmE
nvidia gpu wasn't overloaded or overheated
Answer: Disable your (intel) on-board video via your BIOS. If you don't how to do that. I suggest looking up videos on how to do that or calling DELL and asking the how it's done for your specific laptop.

i couldn't regulate brightness and night-light (win 10 option making screen bit orange) didn't work.

You can control this in the nvidia software settings. Put it this way. Your nvidia chip and software can do ANYTHING your on-board video can do.
Comment: I didn't disable it via bios. But I did it via device manager, and got issues - i couldn't regulate brightness and night-light (win 10 option making screen bit orange) didn't work. Nvidia sup told me that manufacturer of laptops with 2 cards integrate some functionality in intel graph card - that wont be accessible with disabled card. OS and games are on ssd (forgot to mention this)
Comment: Try using the Nvidia software to select the high performance mode (Nvidia). It shouldn't change modes (to Intel) regardless of the per program settings.
Comment: I downloaded dell support assistant and got bios update despite windows update didn't suggest me that update. The issue was resolved (cards don't change each other while playing but now I get stable lags each few seconds will reinstal game if won't help - reinstal display drivers).
Comment: Windows update has nothing to do with bios update.
Comment: Honestly, this question is out of my depth, i've never heard of a laptop using 2 different video cards at once. I don't even understand how this is possible. You either are using 1 or the other. If your computer somehow is switching between the 2 cards. THIS IS A HUGE BUG that needs to be addressed with DELL. In 20 years i've never once experienced this or heard that such a thing is possible. And to be perfectly honest, I think your lack of computer knowledge is hindering me from understanding what exactly is going on here.


Is my reason for not gambling justified?

Question: I don't gamble because I worry that I might win. The problem is that by winning I am exhausting my quota of good karma/luck for non-essential material procession (like iphone or money) without which I could still live a respectable life. Is this line of reasoning valid in Buddhism.
Answer: In Buddhism, gambling is not welcome. Buddha's teachings emphasize that gambling can lead to corruption and various problems. Gambling is seen as a high-risk activity that can either make someone wealthy or push them into poverty. Therefore, Buddhism advises against gambling to maintain a balanced and virtuous life, avoiding the potential negative consequences it can bring.
Comment: https://suttacentral.net/dn31/en/sujato?lang=en&layout=linebyline&reference=main&notes=asterisk&highlight=false&script=latin#11.1
Answer:
I don't gamble because I worry that I might win.

I don't think gambling is your problem, then. You worry that by having lots of money, you wouldn't be able to control how you spend it. I'm not sure what that has to do with money, but more your relationship to money.
A Buddha say's lots of things about money, even how to enjoy money, to make yourself comfortable. Here are a couple of very wise suttas about money.
To Dighajanu
Debtlessness
One can enjoy sensual pleasures, but not more than is good for you...

These two extremes should not be cultivated by one who has gone
forth. Indulgence in sensual pleasures, which is low, crude, ordinary,
ignoble, and pointless. And indulgence in self-mortification, which is
painful, ignoble, and pointless. Avoiding these two extremes, the
Realized One woke up by understanding the middle way, which gives
vision and knowledge, and leads to peace, direct knowledge, awakening,
and extinguishment.

With Rāsiya
Answer: I'll answer you based on the Dharma Sermons I have heard.
A Buddhist does not avoid something out of worry or fear. Also not perform something out of fear. Fear or Worry falls under Dwesha (Anger) out of the 3 — Raga (Lust), Dwesha (Anger), Moha (Delusion) — because you're uncomfortable with winning from gambling assuming it'll exhaust your Good Karma. Goal of a Buddhist is to uproot those 3 things from arising in his mind/thoughts.
Therefore, I'd say your reason for not gambling isn't exactly matching with why a Buddhist would avoid gambling.
A Buddhist's goal is to attain Nirvana by uprooting Raga, Dwesha, Moha. So he doesn't focus on doing stuff that doesn't support his goal unless it's required to survive. Here Buddhist means someone already in the Road-to-Sotapanna phase to Arihat phase.
If "Winning" spends out your Good Karma, why do you assume it'll only happen while you're gambling?
Everyday you're alive is a day you won. Karma spent!
Every moment you feel happy, comfortable is a Good Moment you won. Karma spent!
Almost every good thing happening to you arise from Good Karma.
So, it'll get spent even if you try to save it for another day. If it gets spent without you having control over it, why worry about it? I guess now you can stop worrying about winning.
If "Winning" spend out your Good Karma, AND you can create more Good Karma, why do you worry about a depletion?
More Money means more ways you can create Good Karma. Donate money, food, shelter, clothes, or whatever you can think of to generate new Good Karma. Since you're asking this question in a Buddhism forum, why not spend that money to donate the same for Buddhist Monks? This alone will create a huge Good Karma.
I'd say learning more about true Buddhism will give you more reasons why you shouldn't worry about having a lot of money. It'll also help you find the control you're looking for when it comes to spending money. Hope this answer helps you!


Refraining from studying Torah on Christian holidays?

Question: Apparently, some Jews mark the Christian holidays by refraining from studying Torah.  Does this practice have any roots in halacha?  Do the rabbis sanction it?  References?  The only such restriction I know is studying only the "sad" parts of traditional texts on Tish'a b'Av.
Comment: The idea is not to study torah on the winter solstice which is the longest night of the year not on the 25th or what is today the tekufa. It seems he was really born then and brought great darkness to the world. Not to give him any zechusim.  This idea called 'nittel' predates chasidim.
Comment: God, at least, doesn't sanction it (Joshua 1:8). Don't know about everyone else.
Comment: What about this one? https://judaism.stackexchange.com/q/50873/15256
Comment: @Kazibácsi -- I keep hearing that it's a "custom".  I know that.  But did any halachic authority say it has the force of halacha?  Most Jews don't observe it.
Comment: That answer is packed with sources claiming that no such custom (ק"ח halakhah) exists.
Comment: @Kazibácsi As well as sources claiming that such a custom does exist. The Lubavitcher rebbes and the Satmar rebbes count as sources, do they not?
Answer: The Lubavitcher Rebbe in Shaarei Halacha U'Minhag (Yoreh Deah) mentions here and says that the practise is to refrain from learning Torah so that "כדי שלא להוסיף חיות" - "To not add any life" - i.e. to not give a sense of vitality to the life of Jew who deserted his Jewish background.
Comment: @DoubleAA I'm not familiar with the cited book, but if it's intended/used as a Halachic source, then citing it is facially a valid answer.
Comment: Does this answer the question?
Comment: He asked if the Rabbis sanction it. The Lubavitcher Rebbe seems to be saying that it is not practised as by doing so is 'adding life' to Yoshke?
Comment: I just see here a reason for the practice, which wasn't the question.
Answer: It's not about multiple non-Jewish holidays, or else that would be in the obvious place -- Tractate Avodah Zarah. (In fact, one would study that tractate and conclude that one could study Torah but not sell to non-Jews those days, when in fact many have the opposite practice.) It's specifically about Christmas.*
As stated previously and you saw in the Lubavitcher Rebbe's answer here, some say it's about whatever spiritual forces or whatnot; but many historians suggest it was just about not going out to the study hall/synagogue (people didn't have a lot of books at home), or to the mikveh, because there were drunk anti-Semites on the prowl. Somehow that eventually mutated into "don't study Torah" when it was really just "stay home."
I put an asterisk on "Christmas" above because conveniently, Jews in Catholic and Protestant lands observed the "no Torah" whatnot (perhaps claiming dark spiritual forces or the like) on December 25th, while Jews in Eastern Orthodox lands observed the exact same thing on whatever day the locals celebrated as Christmas. Which would make a lot of sense if the whole point was "stay home and stay safe."


physics.addBody() with custom shapes in Corona SDK

Question: Does the physics.addBody() only work with Circles and Rectangles? Or is it possible to physics.addBody() on vector shapes or sprites or with masks or something?
Answer: It works with more than just circles and rectangles. To be more specific,

[physics.addBody()] Allows you to turn any Corona display object into a simulated physical object with one line of code, including the assignment of physical properties.

The full explanation, along with examples including a rectangle, circle, and polygon, can be found here.
Answer: If you want an irregular physics object, you have to specify the x and y coordinates of the physic body.  Complicated, but possible.
Or you can use a third-party tool like PhysicsEditor.


List Item should be non-editable once created by the user

Question: I have a list and have contributor access to it. I want when an I create an item into it after that it should not be allowed to edit.
Comment: who shouldn't be allowed to edit? anyone other than the one who created it or everyone?
Answer: You have multiple ways to achieve this:
Approach 1:

Create a custom permission level with access only to create item and not delete, edit.
Break permissions if you want no one to edit the item.
Create a SharePoint Group and add users who are supposed to create items in the list or library.

Now only users will be able to create items and not able to edit or delete it. If want other users to be allowed remove or edit item, do not break permissions inheritance.
Approach 2:

Create a SharePoint Designer Workflow
Make the workflow to run only on item creation
Use "Remove permissions" action, select the creator of item. Do not use 'Replace Permissions" action if you have huge no of user groups or users outside groups. Also if you do not want no one to edit or delete items.
Now Use Assign permissions action to set read only access to the creator of item.

Now this item will be allowed to be edited or deleted by anyone except creator. If want to restrict from all, use Replace Permissions action in step 3.
Answer: You should be able to set up a permission level which only allows users to Add items.  Just make sure Edit Items, Delete Items, etc. isn't checked when creating the permission level.
Answer: Create a simple SharePoint Designer workflow to remove permissions from the item.
Use the Replace List Item Permissions to remove contribute access and replace it with read access.


How come roblox has the ''Change Age'' Choice on their roblox support program if they wont even let you change your age?

Question: I was born in 2007, when I was a kid and created my roblox account I just typed in a random birthday (I typed in 2015.) Ever since then, I had to deal with hashtags and all kinds of other stuff. I dont wanna create another account because if I did. I would lose all my progress in my groups, My games and all my robux, aswell as friends. So I emailed roblox and chose the ''Change age'' choice. When they emailed me back they said they cant due to COPPA laws. So Im confused on why they would even add that choice if they wont even let you change your age.
I know this is long but i really need a answer.
Comment: Does this answer your question? [How do you change age settings on ROBLOX?](https://gaming.stackexchange.com/questions/341248/how-do-you-change-age-settings-on-roblox)
Answer: This page should give some explanation:

Age Under 13

The age setting can not be changed.

Roblox is committed to providing safety and privacy protection for our users. For this reason and because of COPPA regulations, users under the age of 13 can not change their age setting. If the birth date on the account is correct, the privacy settings will update automatically to 13+ on the user's 13th birthday. Updating age to under 13 will enable Privacy Mode. You will not be able to change the age back to 13+.

Basically: the change age feature works just fine if you put your current age in as thirteen or older, but does not function for users under thirteen; if you start out with an age of under thirteen or change your age to under thirteen, you lose access to the change age function immediately. Since you have your age on the site listed as five, your only choices are to make another account or wait eight years for the account to age up naturally.
The "why" of this is complicated and outside the scope of Arqade, but for the simplest version of an explanation: COPPA laws mean Roblox could be fined massive $$$$$$ if they're caught advertising to kids under thirteen years old, so in order to save themselves from possible fines they have to keep you in Privacy Mode no matter what if you ever tell them you're under thirteen.
Comment: Can you contact support with proof of age to set your age above 13? Say I have a photo ID with my birthdate.
Comment: @ExpertCoder14 You can always try to contact them with a picture of your ID to provide substantial evidence you're older than 13. Just claiming you are will likely not work.
Comment: I told that I can have my parents confirm I am 13, But providing a ID will most likely work, Thanks for the help.


When referencing attached documents at the end of a sentence in parenthesis do you capitalize the first letter?

Question: The aging reports are used by management to determine what files should be worked on first (see aging reports attached).
Comment: In the instant case, the sentence does not terminate in a period before the opening parentheses, therefore the parenthetical is a part of the sentence and does **not** being with a capital letter. The same meaning can be conveyed by terminating it and then opening the parentheses with a capital letter. In other cases, it depends on what is intended to convey.
Answer: It depends.
Is the term aging reports in the parentheses the title of the documents attached or merely a description of those documents? If it is a title, capitalize. If not, don't.


Can two 4P4C rj11 socket turned into one rj45 socket?

Question: I have been planning to set up a wireless network in my room. But due to old cables installation. I couldn't do it. So I thought of an idea of combining two rj11 port into one rj45 port. Is it possible? If its yes, how would be the connection speed? I think the old cable installation most probably cat3. Thank you
Comment: You must make sure that the Category-3 telephone cable is not tapped anywhere along the path. It usually is. This will not work for network connections if it is.
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: As stated, you can actually run Ethernet over any two or four twisted pairs. The higher the speed and the distance, the better your cable needs to be. Any splice or tap will severly reduces cable quality and possible speed and distance.
Gigabit (1000BASE-T) actually works on four-pair Cat.3 but only over a very short distance (a few meters). Fast Ethernet (100BASE-TX) requires only two pairs and is much more lenient, I used a 15+ m run of Cat.3 for a while without problems. 10 Mbit Ethernet (10BASE-T) runs over close to everything for a few dozen or even more than a hundred meters.
Note that Ethernet ports don't automatically link at a lower speed when the cable is sub-standard, you need to configure the ports down. If you do so, do it on both sides or auto configuration will fail and may easily cause a duplex mismatch.
Also note that you can't run a productive link over such a cable without very close monitoring of the error rate.
Answer: For ethernet, you need at least 2 pairs of copper wires. Either one of your cables should have that, so you shouldn't need to use two cables. If your cable is indeed cat3, it should support 10BASE-T Ethernet, which would give you 10 MB/s.
If you want to try, you'll need the rj45 connectors and a crimping tool. Then connect both ends using the four wires on the pins 1, 2, 3 and 6 (the numbers should be printed on the rj45 connector or on the manual for that) and you are ready to try it out.
Answer: I spoke with Rob Ryan one time.  He had Ascend Communications and has a small ranch near here.  He told me that Ethernet is pretty resilient and you can get away with a lot, including violating the distance rule (ethernet between the house and the ranch office is way beyond the maximum distance...).
I'm curious if you try two different cables, due to 2 pairs not being in the same cable so we don't have to worry about crosstalk between the pairs.  Pin it out so TX and RX are on different cables.  Depending on length and other EMI, you might be able to get higher speed, maybe even Gigabit.  In a pinch, I'd give it a go if you can't pull in a length of Cat-6.
Answer: Well. You can run Ethernet over at least 2 pairs of copper wires. Cat3 UTP was used for 10BASE-T Ethernet, and can carry data up to 10 Mbit/s. If you want to get higher speed, cat 5e or cat6 is recommended (https://www.fs.com/c/cat5e-patch-cables-593). The price is very reasonable. And right now cat3 is rarely used.


Best laptop for elemental os

Question: There may any one help me with a laptop choice because am new to elemental os
Answer: There aren't many laptops that have any sort of official support for elementary OS.
There are brands of laptops that come with a Linux distribution pre-installed. Those likely also work fine with elementary OS. For example:

https://entroware.com/
https://slimbook.es/en/
https://system76.com/

The majority of laptops that come with Windows preinstalled can run Linux distributions like elementary OS with little to no problems. Some may require additional fixes to get Wi-Fi and such working. Very new laptop models that come with cutting-edge hardware might not fully function on Linux (yet) or require you to install a newer Linux kernel.
To find information about the compatibility of a specific laptop model you'll have to do some research yourself, and/or ask the manufacturer.
elementary OS is based on Ubuntu, so if a laptop works well with Ubuntu, it likely works well with elementary OS as well.
Answer: https://puri.sm/ will prob work fine since it comes with PureOS pre-installed, which is also a fork of Ubuntu afaik.
Answer: For what is worth, I have a Dell XPS 9550 and elementary OS works perfectly out of the box on it. Everything like WiFi, F keys, touchpad, Bluetooth, external ports... not a single problem or additional drivers needed.

Best laptop for elemental os


Where to find Qt's commits?

Question: There's a regression in Qt 4.6.2 on Windows (setting border color from stylesheet does not work) that I decided to fix myself.
This bug was originally reported in Qt 4.4, and was fixed in Qt 4.5, around December 2008. Unfortunately I cannot find the corresponding commit in http://code.qt.io/cgit/, probably because the commit is anterior to the switch to Git (or it was made during the transition).
Where I can find this commit?
Cheers,
Franz

For reference:

New ticket for the regression: https://bugreports.qt.io/browse/QTBUG-10785
Answer: It seems like the older repository ("qt-history") has never been public, and doesn't exist anymore:
https://blog.qt.io/blog/2010/03/27/happy-birthday-mr-repository/
Answer: Can you narrow down the Qt versions, to find one where the problem existed, and then a later one, where it was fixed? If you can find a reference to the bug in the Qt Version Changes page, this will you give you the exact pair of versions you want.
If so, I've found that, with this information, I can usually locate the changes for a bug-fix by downloading the source code for 2 different versions of Qt, and then comparing the relevant source files.
A diff'ing tool like Meld or Araxis Merge can be really useful for this.

Where to find Qt's commits?


File that handles raw thumbnails in Files

Question: Where is the file that handles camera raw thumbnails in Files? I want to add a mimetype (image/x-sigma-x3f) and see what other adjustments I can make. (I don't think it's the file <code>/usr/share/thumbnailers/evince.thumbnailer</code>.)
Answer: Maybe a hint for you, I have just been reading this answer explaining how to enable/disable thumbnails by editing the file etc/xdg/tumbler/tumbler.rc
In that file you can see that file types (uri-scheme / mime-type combination) are managed by plugins...


Trouble with loading cells from UITableView

Question: I am developing an application with a list of objects in a UITableView. The problem occurs when I am in landscape mode where I use a split view (TableView on the left, View on the right). When I select an object it loads the middle of the view instead of the top. I want the view to appear from the top when I select a new object from the tableview.
It seems like it has something to do with autosizing. It works when I remove autosizing (the l---l on the top) on a textview in my View, but then my windows get messed up. Anyone know the solution?
Thank you.
Answer: I think you should set to UIViewAutoresizingFlexibleTopMargin of that view and set the view.frame.origin.y = 10. It must solve the problem


How often forks occur?

Question: How often do forks occur in the block chain? I'm interested in the small, one block forks that happen when two miners create a block at the similar time.
Answer: Blocks are orphaned once in a while, roughly every few hundred blocks:
http://blockchain.info/orphaned-blocks
There used to be a blockexplorer-provided list of chain reorganizations which can occur upon such events (might become available again someday):
http://blockexplorer.com/q/reorglog
These chain reorgs used to happen a few times per month.
Comment: The reorglog is not very indicative of blockchain forks or orphaned nodes as a reorg only happens if a fork happens *and* the node was expecting the other branch to be the winner. Therefore most forks are not detected as the node already chooses the correct block on which the longest chain will be built.
Comment: http://blockexplorer.com/q/reorglog gives a HTTP 404 error. Is there a new location where this information can be found?
Comment: "not very often" is a relative term, and doesn't mean a lot to me. It would be worth providing a ball-park figure on this question.
Comment: You can check that by using the link provided. They happened 3 to 9 times a month since July.
Comment: @Flow: the whole site seems to be down. Dunno when/if it will be back soon.
Answer: I don't think the blockexplorer reorglog catches all blocks. http://blockchain.info/orphaned-blocks shows  1-2 detached blocks per day.
Answer: Update for everyone who stumbles up on this question. There is a paper that shows why it is hard to figure out the actual fork rate.

it's from this paper "Echoes of the Past:
Recovering Blockchain Metrics From Merged Mining"
https://eprint.iacr.org/2018/1134.pdf
Comment: It's worth adding that increases in block propagation speed (esp in the last 2.5 years) have further suppressed the propagation of stale blocks.  Blocks which are stale before the source ever announced them don't propagate, so speeding up the network causes you to see fewer of them and things like BIP152 and fibre have made the network a lot faster.
Answer: Both of the links in the previous two answers aren't working.
Historic data (both, until March 2014) can be viewed on the internet archive.
The last snapshot from blockexplorer.com: https://web.archive.org/web/20130313092352/http://blockexplorer.com/q/reorglog
The last snapshot from blockchain.info can be found in a similar way (stackexchange doesn't allow me to post more than 2 links, since I don't have enough reputation...).
An updated information, that unfortunately contain few details, is available in Organ Ofcorti's blog.
See, for example, http://organofcorti.blogspot.com/2014/05/may-11th-2014-weekly-hashrate.html , Table 2.
The information is presented per week, in an image (not as text - which makes it a bit harder to analyze).
Comment: You can see in the chart above that more recent times (e.g. post height 403200, 2016-03) look a lot different than 2014, however.

How often forks occur?