Android - Set fragment id

Question: How can I set a Fragment's Id so that I can use getSupportFragmentManager().findFragmentById(R.id.--)?
Comment: You can set it in layout xml file
Answer: You can't set a fragment's ID programmatically.
There is however, a String tag that you can set inside the FragmentTransaction which can be used to uniquely identify a Fragment.
As Aleksey pointed out, you can pass an ID to FragmentTransaction's add(int, Fragment) method. However, this does not specify the ID for a Fragment. It specifies the ID of a ViewGroup to insert the Fragment into. This is not that useful for the purpose I expect you have, because it does not uniquely identify Fragments, but ViewGroups. These IDs are of containers that one or more fragments can be added to dynamically. Using such a method to identify Fragments would require you to add ViewGroups dynamically to the Layout for every Fragment you insert. That would be pretty cumbersome.
So if your question is how to create a unique identifier for a Fragment you're adding dynamically, the answer is to use FragmentTransaction's add(int containerViewId, Fragment fragment, String tag)  method and FragmentManager's findFragmentByTag(String) method.
In one of my apps, I was forced to generate strings dynamically. But it's not that expensive relative to the actual FragmentTransaction, anyway.
Another advantage to the tag method is that it can identify a Fragment that isn't being added to the UI. See FragmentTransaction's add(Fragment, String) method. Fragments need not have Views! They can also be used to persist ephemeral state between config changes!
Comment: @TomDignan how about a fragment that will be added in a ViewPager? How can I set his tag? I can't use transactions in this situation.
Comment: Can the answer be edited a tiny bit to emphasize that you can set id in xml layout? Because I personally did not read other questions and was under impression that there is no way at all to set id to the fragment...
Comment: @GuilhE Activity provides an addFragment() method which you can reference from the viewpager. Keeping the tag before that could be accomplished with a hashmap.
Comment: If I use the tag and not the ID for the fragment, how would I use the replace call which needs a fragment resource id?
Answer: Turns out you may not need to know the fragment id.
From the docs:
public abstract Fragment findFragmentById (int id)

Finds a fragment that was identified by the given id either
when inflated from XML or as the container ID when added in
a transaction.

The important part is "as the container ID when added in a transaction".
so:
getSupportFragmentManager()
    .beginTransaction()
    .add(R.id.fragment_holder, new AwesomeFragment())
    .commit();

and then
AwesomeFragment awesome = (AwesomeFragment)
     getSupportFragmentManager()
          .findFragmentById(R.id.fragment_holder);

will get you whatever (awesome) fragment is held in R.id.fragment_holder.
Answer: In most cases you can use the fragment tag as well as the ID.
You can set the tag value in FragmentTransaction.add(Fragment fragment, String tag );.
Then you can use the command FragmentManager.findFragmentByTag(String tab) to find the fragment in question.
Answer: As Tom and others already mention, there are ways to put a tag on a fragment and use that tag for identification. A subsequent problem I've come across with those solutions is that the fragment doesn't get a tag until it's associated with the Activity (or, actually, the FragmentManager). What to do if one needs to identify a fragment before it has been tagged?
My solutions so far all rely on the oldest (Java) trick in the world: create a minimalistic template fragment which takes an id in one of it's constructors and provides a getFragmentId() method which returns that id. I then let those fragments that need early identification extend that template and; voila! Problem solved.
This solution might, unfortunately, require a set of template fragments, one for each fragment type, ListFragment, DialogFragment or plain old Fragment (POFO?!) that need early identification. But this is manageable in the case of fragments I think, considering the gains provided.
Sorry for tearing up healing wounds :-)
Cheers!
Answer: Use the following:
To add a fragment:
getFragmentManager().beginTransaction().add(R.id.fragment_container, fragmentToBeAdded, tag).commit();

To identify existing fragment:
getFragmentManager().findFragmentByTag(fragmentName);

Comment: Answer is not relevant to question. Please update the answer.
Happy Coding
Answer: When using a tag please do make sure to add the
fragmentTransaction.addToBackStack(null);

method so that your Fragment is resumed instead of destroyed as mentioned in the developer guides.

If you don't call addToBackStack() when you perform a transaction that removes a fragment, then that fragment is destroyed when the transaction is committed and the user cannot navigate back to it. Whereas, if you do call addToBackStack() when removing a fragment, then the fragment is stopped and is later resumed if the user navigates back.

You can find this at the end of this page.
I lost about 30 minutes trying to figure out why my Fragment was not being found through a simple findFragmentByTag(); call
Answer: In addition to Tom's answer, replace method also supports the fragment tag, in addition to add  method.

Android - Set fragment id


Do I have to host my company email with the same company that hosts my website?

Question: Do I have to host my company email with the same company that hosts my website?  If not, what are the advantages and disadvantages?
Answer:
Do I have to host my company email with the same company that hosts my
  website?

No

If not, what are the advantages and disadvantages?

Advantages

A dedicated email host can provide a lot of extra features and functionality that may not be available from a regular webhost. Usually this means emails won't eat up your web hosting space.
If your server is down your email is not down as well. This means support requests can continue to come in.

Disadvantages

Cost - You have to pay two providers for what you can get from one.
More logins and passwords to keep track of
Answer: If you're dealing with <10 users I would recommend google apps standard edition, it's free and you can upgrade at a later date.
Comment: No longer free unfortunately. :-(
Answer: I prefer to separate email and web hosting (and domain registration, for that matter). I agree with toomanyairmiles regarding Google Apps for Your Domain; I've used it many times for small businesses.
And I also agree with John Conde but would add a big advantage. If you want to switch hosting companies for whatever reason, it's a pain to deal with email that they also host. Keeping these separate means that there is no effect on email delivery and usage when moving the client's website to another host.
Comment: Very good point about migrating web hosts. That usually happens more often than the need to migrate email, and it's nice to have them decoupled. Also, it should be a great deal easier migrating from Gmail to other email services because of their great [data export features](http://support.google.com/a/bin/answer.py?hl=en&answer=57920) compared to most web hosts.


Cleanest way to replace np.array value with np.nan by user defined index

Question: One question about mask 2-d np.array data.
For example:

one 2-d np.array value in the shape of 20 x 20.
An index t = [(1,2),(3,4),(5,7),(12,13)]

How to mask the 2-d array value by the (y,x) in index?
Usually, replacing with np.nan are based on the specific value like y[y==7] = np.nan
On my example, I want to replace the value specific location with np.nan.
For now, I can do it by:

Creating a new array value_mask in the shape of 20 x 20
Loop the value and testify the location by (i,j) == t[k]
If True, value_mask[i,j]  = value[i,j] ; In verse, value_mask[i,j]  = np.nan

My method was too bulky especially for hugh data(3 levels of loops).
Are there some efficiency method to achieve that?   Any advice would be appreciate.
Answer: You are nearly there.
You can pass arrays of indices to arrays. You probably know this with 1D-arrays.
With a 2D-array you need to pass the array a tuple of lists (one tuple for each axis; one element in the lists (which have to be of equal length) for each array-element you want to chose). You have a list of tuples. So you have just to "transpose" it.
t1 = zip(*t)

gives you the right shape of your index array; which you can now use as index for any assignment, for example: value[t1] = np.NaN
(There are lots of nice explanation of this trick (with zip and *) in python tutorials, if you don't know it yet.)
Answer: You can use np.logical_and
arr = np.zeros((20,20))

You can select by location, this is just an example location.
arr[4:8,4:8] = 1

You can create a mask the same shape as arr
mask = np.ones((20,20)).astype(bool)

Then you can use the np.logical_and.
mask = np.logical_and(mask, arr == 1)

And finally, you can replace the 1s with the np.nan
arr[mask] = np.nan

Comment: your location is just meant as an example, **but** you can always select only "rectangles" by hardcoding the slices this way, so it won't be general enough...
Comment: @Ilja I use the  `arr[4:8,4:8]` as part of the `np.logical_and` solution I am presenting in my answer to the OP's question. That's what I mean by example.


Smelly water in between washer barrels

Question: My washer has water in between the 2 barrels after each load. The water leaves a terrible smell, what is causing this and how can I fix it. The washer is a "Amana" top load washer
Answer: Possible problems include:

pump bad (may be eating a sock or something)
control board bad
drain line has an issue
possibly a transmission issue if the spin isn't working

All, or virtually all, the water should pump out. In the short term, put in a cup of bleach and run a short cold cycle (no clothes or soap) to kill off the smellies.
I had a similar issue at one point and was pretty sure the pump was bad, but I wanted to remove it before ordering a replacement - when I did, I found an obstruction (in my case, some silicone rubber from a prior tub repair job, which I had done "inside and out" to "make sure" - the inside part peeled off, the outside part continued to work) lodged in the impeller. Removed the obstruction, reinstalled the pump, washer worked fine again. Unless it is eating an escaped sock, you probably won't get that lucky.
Answer: How much water are we talking about? I can't imagine more than half an inch or so at the bottom of the actual tub, inside which the perforated basket looks dry unless you really slosh the tub around on its mounts.
It's actually next to impossible for a traditional washing machine to evacuate every drop of water from the system. The drain pump, activated by an electronically-controlled clutch using power from the main motor, has to force the draining water up the drain hose to the elevated drain (the washer itself doesn't have any sort of drain plug to keep the water in the tub, so this elevated drain keeps the tub full until the pump forcibly removes the water) and not all of it will make it all the way.
First off, it helps if the drain hose is as short as possible. A lot of newer washers will come with a long hose designed to be fed down the drain, which reduces the chance of leaks over the older style of a rubber elbow clamped to the end of a shorter drain hose, but I find the longer hose tends to want to work its way back out of the drain.

Smelly water in between washer barrels


Subgroups Cochran's Q test

Question: I'm actually doing a meta-analysis to investigate the effect of an instructional method on learners' performance. I have calculated coehen's d and Hedges' g, the average global size, W (weight) for each study and cochran's Q test using : Q=wi(teta(i) - teta (average))2. I performed a grouping (moderators) and I have to calculate Q for each group. Anyone knows PLZ how to do it ? which formulate to use ??
P.S: I'm a computer science phd student, it's the first time I deal with such studies and I'm really lost.
Comment: You say you _have_ to compute it per group. Can you state why? It would be better to consider fitting a model to all the studies and then introducing your moderator in a meta-regression. Software is readily available to do this.
Comment: Thank you for your answer!
I totally don't understand that :D. I'm following a meta-analysis article where they calculate the average for all studiis. Then introduce moderators and calculate Average effect size for each group (weighted and unweighted), and Q test.
What do you mean by a model? and what software can I use for that
Comment: @QUIAME Perhaps you are looking for  ' rejecting data based on  imprecision .pdf This file shoull answer for the required formula for Q for subgroups etc.
Comment: Please edit  Q =  .... theta ... theta(AVERAGE )) /2. I suppose it has to have  division by 2. Also describe  theta 1 etc
Answer: The Q test has low power to reject the hypothesis that the studies are homogenous and this is particularly true if there are a small number of studies in the meta-analysis. Although people often break up their dataset into smaller and smaller sub-groups this is not a good idea as the estimates become more unstable. It is better to fit an overall model to all the studies and then introduce the moderator(s) in a meta-regression. This then gives an estimate for each level of a categorical moderator and by comparing with the model without moderator you can tell how much the moderator has reduced heterogeneity.
I use R and I would use the metafor package for this but you can use Stata
You have the choice between fitting a fixed effect model and a random effect model. The fixed effect model assumes there is a single underlying true effect and it is your job to estimate it. The random effect model assumes that there is no true singel effect but instead a distribution of them and it is your job to estimate the mean and variance of that distribution. You will often see statements that the choice should be based on the amount of heterogeneity observed but this is not strictly correct. Adding a moderator does not really change the principles. In your case you know the science better than I do but I would have thought that a random effect model was more appropriate here.
You might benefit from (re-)reading some introductory material on meta-analysis. The tag meta-analysis has some references, many of them can be freely downloaded.
Comment: Thank you so much. I'm doing some research about meta-regression and testing R software.
Comment: You said I have to fit an overall model to all the studies, I assume you mean fixed-effect or random-effect model. Can you please tell me how can I choose between the two models. And if my choice will change anything when introducing moderators. Thank you
Comment: @Ouiame I will edit my answer to add about model choice.
Comment: Thank you. I'm reading Bornstein book to better understand random effect model and the calculation I should do
Comment: @Ouiame there is also a wealth of material directed at the use of Wolfgang Viechtbauer's metafor package on http://www.metafor-project.org/doku.php

Subgroups Cochran's Q test


Do the laws of physics that apply to all observers also apply to a non-observer?

Question: The Timelessness of a photon
https://www.youtube.com/watch?v=5ELA3ReWQJY
An observer's laws of physics are time based. "When you're traveling at the speed of light, time does not exist" - Neil deGrasse Tyson. So a photon's laws of physics can not include time because it does not exist.
How does the Photon exist in "space-TIME", if Time doesn't exist for the Photon? The Photon would not exist in "space time", it would exist only in "space". The physics of "space time", which is where we are, would not apply to "space without time", where the Photon is.

The rules of physics are the same for all observers in uniform motion relative to each other.
The Photon is never in uniform motion relative to any or all observer.
A Photon in an observer's frame is not the same as a Photon in a Photon's frame.
The Photon must have "a frame" (although it is not compatible with our own), because the Photon occupies coordinates in space as a particle.
The Photon's frame would not define Time.
The Photon does not exist in any observer's frame, because the Photon is never in uniform motion relative to any observer, but the Photon does exist.
If the Photon does not exist in any observer's frame, then the Photon must have a frame of its own that it does its existing in.
The laws of physics for all Observers includes a definition for time.
The Photon's frame has no time coordinates, so time coordinates from any observer's frame can not be meaningfully associated with the Photon or the Photon's frame.

Time is relative to all "observers" but light is not an observer. Time can't be meaningfully applied to light because time doesn't exist to light. Time is not relative between an observer and light because they are not both "observers".
If one physicist says that a particle is instantaneous
And another physicist says the same particle takes 8 minutes to travel from the Sun to the Earth
That's a contradiction
8 Minutes > Instant
All physical laws should remain unchanged under a Lorentz transformation.
An observer's physical laws include time laws.
A Photon's physical laws do not include time laws.
All physical laws can't remain unchanged when transforming an observer's physical laws into a photons physical laws.
This would cause the application of time laws to the photon, but time laws and photons are incongruent.
Assume that "space time" is a prison. In the prison there are guards and inmates. Everyone in the prison follows rules, but the guards follow one list of rules and the inmates follow a different list of rules. Some of the rules for the inmates and the guards are the same, some of the rules for the inmates and the guards are not the same. Among the inmates, all inmates must follow all of the inmate rules, no inmate receives special treatment. Also among the guards, all guards must follow all of the guard rules, no guard receives special treatment. The two lists are written in different languages. All of the inmates speak different languages, but one inmate speaks the language that the inmate rules are written in, and all of the languages that the inmates speak. All of the guards only speak the language that the guard rules are written in.
It's possible for the one inmate who can read the inmate rules, to translate those rules into all of the languages that the inmates speak. And because all of the inmates follow exactly the same set of rules, the number of rules would be the same in each of the inmate languages. It's also possible for the inmate to translate the list of guard rules entirely into the language of the inmates, and the list of inmate rules into the language of the guards.
This doesn't matter though, because the inmates and the guards still follow different rules. Writing the rules of the guard in the language of the inmate does not allow the inmate to follow the rules of the guard, and writing the rules of the inmate in the language of the guard does not subject the guard to the rules of the inmate.
The laws of physics for any observer include laws that define the behavior of time. The entire system of physics for all observers then, is inherently based on the existence of time, and time is one of the defining features of the "existence" or "reality" that all observers occupy. It is the presence of time that allows an observer's laws of physics to establish a frame of reference. Because all observers follow exactly the same list of rules, like all inmates, all of the rules of "observer physics" can be translated (by the one inmate, "man") from one observer to the next, even though all observers speak a different language, or have differing personal frames of reference.
However, the laws of physics for "light" or "the speed of light", do not recognize the existence of time. The entire system of physics for "light", is inherently without time, and this lack of time is one of the defining features of the "existence" or "reality" of "light" or, "anything 'traveling' at the 'speed' of light". It is the lack of "time", and therefore the lack of a definition between "at rest" and "moving", which is THE REASON why a photon can't be assigned a frame of reference when trying to translate the photon's physics to the observer's physics.
It only APPEARS that photons exist by the same laws of physics as an observer because some of the laws cross over from one reality to the next. It appears that the physics of photons and the physics of observers are the same because the existence of time in our reality prevents you from observing the photon in it's "natural habitat" to see how we different we really are.
Comment: You seem to be trying to reason out the meaning of relativity in words without understanding the underlying math. That is a mistake. Words are blunt tool with imprecise meaning. The math matters, because that is where all the *answers* are. The answers to all the question you've been asking in such awkward ways are right there on the surface of the math. Insisting that you can scramble among the words and get valid answers that contradict the well tested math is only going to annoy people.
Comment: At this point you are not even wrong. Your wanting to impose your interpretation on the words that physicists use is pointless, because when we use those words they take the sense that we mean. Relativistic physics works. That's the final test from which there is no appeal.
Comment: 4. is completely false.
Comment: Haha. The question is, "Does your math, which requires time, apply to something that doesn't exist within the frame of time?" Or, "Can you apply time to something that is timeless?"
Comment: Relativistic physics works for all observers in uniform motion relative to each other but light is not included in that. Relativistic physics excludes light because it can't be framed so it can't be an observer.
Comment: It is not "my interpretation" of the word "timeless" that it means "without time", that is a well known and accepted interpretation of the word. I'm not sure why a well known physicist would choose to use that very well known and defined word to describe his understanding of the math unless that's what the math revealed. You should ask him.
Answer: No, it doesn't mean that.
One must distinguish two things: "laws of physics that apply to an object" and "laws of physics formulated from an object's viewpoint".
These are two different things. Laws of physics apply to all objects. And the behavior of the objects may be described relatively to many coordinate systems or "frames of reference". The special theory of relativity postulates that the form of the laws of physics is the same in all inertial systems.
The light – or anything else that moves exactly by the speed of light – doesn't have its own inertial system or frame of reference. The transformation needed to convert the data from a legitimate reference frame to the light's reference frame would be singular because the factor $$\gamma =\frac{1}{\sqrt{1-v^2/c^2}} $$
is singular (infinite) for $v=c$. So light isn't a valid "observer" from whose "viewpoint" we could describe all processes just like we do so from the viewpoint of the legitimate reference frames.
But light is still an object that behaves according to the laws of physics, and these laws are pretty much the same. In particular, light and other particles moving at the speed of light obey laws that may be obtained as the $m\to 0$ limit of the laws obeyed by massive (mass $m$) particles. For any nonzero $m$, we may actually use the massive particles' frames. It's just the strict value $m=0$, the limit, where the inertial system becomes singular.
One should point out that professional physicists sometimes do use the "light-cone coordinates" that are very similar (and could be interpreted) as the description of the world from the viewpoint of a light ray – and this coordinate system is actually very helpful and many things simplify in it. But these coordinates $x^\pm=(x^0\pm x^{3})/\sqrt{2}, x^1,x^2$ aren't organized in the same way as the usual coordinates used by a massive observer in a normal inertial system so we can't expect the exact form of the laws of physics in these coordinates to be "the same" as in the massive observers' inertial systems.
Comment: Dear Derek, I don't sufficiently understand what it means to "reinforce" your question. Instead, I tried to *answer* your question. Light doesn't have its own inertial system because it can't be at rest. It always moves at the speed $c$ relatively to any inertial system. This is not a contradiction with special relativity. Instead, it is one of the two fundamental postulates of special relativity, the constancy-of-speed-of-light postulate! As I have already told you, your (non-existent) "light's inertial system" isn't needed for anything in science. Light is understood without it.
Comment: "So light isn't a valid "observer" from whose "viewpoint" we could describe all processes just like we do so from the viewpoint of the legitimate reference frames."

Doesn't this reinforce my question? In the laws of physics, light can not be treated as anything else in this way, that it doesn't have a valid frame of reference in the current laws of physics? Or in other words, physics works for anything with a frame of reference but you will need some other system for understanding and explaining anything that doesn't have a frame of reference.
Comment: It's a simple logic argument:
If - The laws of physics are the same for all "observers"
And - Light is "not a valid observer"
Then - Why do you assume that the laws of physics are the same for light (non observer) as they are for anything else (observers)?
Comment: Dear Derek, the laws of physics have the same form for all observers - in all inertial systems. Light isn't an observer - it doesn't have any inertial system associated with it. There is no contradiction whatever in between the two sentences, is there? Light obeys the laws of physics we know but we don't formulate these laws from the light's inertial system because the latter doesn't exist. I have already answered this question of yours, now it's time for you to stop writing confused comments and read the answer.
Comment: There IS a contradiction in those two statements.
The laws of physics are the same for all "observers"
Light is NOT an "observer".
That is the contradiction.
Comment: Please learn basics of logic before returning to this server. There is no contradiction. It is just like saying "All fruits contain sugar", "butter is not a fruit", "butter contains no sugar". No contradiction.
Comment: Or it's like saying, "All fruit contain sugar", "sugar is not a fruit", "sugar contains no sugar".
Comment: It's not like saying that, but even in your triplet of statements, there would still be no contradiction. Whether sugar "contains" sugar is debatable :-) but otherwise your statements are still true.
Comment: Fine, "All fruit contain sugar, potato is not a fruit, potato contains no sugar"
Comment: Your argument doesn't work because while it is true that all fruit contain sugar, it isn't true that fruit is the only thing to contain sugar. So while it is true that the laws of physics apply to all "observers", it is not necessarily true that the laws of physics apply to something that is "not an observer", like light.
Answer: You vastly overestimate the meaning of frame.
A frame is a (local) choice of coordinates on the spacetime manifold $\mathcal{M}$. All physical laws can be directly formulated on the manifold itself, without referring to frames at all. That is at the heart of relativity, and that is what Lorentz invariance means. Let's go through your numbered points one by one:
$1.$ Partially true. The laws of physics do not require observers at all. Maxwell's equations, to take one example, are
$$ \mathrm{d}F = 0 \; \wedge \; \mathrm{d}\star F = J$$
and that is a coordinate free description of them. No mention of frames, no mention of observers, nothing. The specific way of calculating these things may be different in different coordinate system, but they do not depend on a single one of them. The laws of physics are invariant under arbitrary coordinate transformations, no matter whether the chosen frame is "inertial", "light cone" or whatever.
$2.$ True, if you ignore the part about "relative to observers". Uniform motion is defined by there being a reference frame in which the object considered is stationary, i.e. there must exist a frame whose coordinate is a multiple of the arc length of the worldline. As the arc length of the world line of a photon is $0$, such a frame cannot exist, thus the notion of uniform motion can never apply to a photon.
$3.$ False, a photon is a photon is a photon. It's description is different, but the photon itself lives on the spacetime manifold, which is indifferent to coordinate descriptions.
$4.$ False. Again, when we talk about the frame of an object, we mean the choice of coordinates in which the object is stationary. As such a frame does not exist for the photon, it has no frame.
$5.$ Meaningless, as the photon has no frame.
$6.$ False, as things exist if they have a world line. Again, this is independent of frames, since the worldline is just a map $[a,b] \rightarrow \mathcal{M}$, no frames necessary.
$7.$ Meaningless, as existence is not coupled to frames.
$8.$ False, the laws of physics when formulated on the spacetime manifold make no reference to particular choices of coordinates, especially not to those which have the arc length of a world line as a coordinate.
$9.$ Meaningless, as the photon as no frame.
One might quibble which of the things above I called false and which I called meaningless, but basically the answer to your whole confusion boils down to this: Frames (i.e coordinate choices on $\mathcal{M}$ which possess the arc length of a world line as a coordinate direction) are not the fundamental object in relativity, the insight that spacetime is a manifold endowed with the Minkowski metric is. All physics may be purely formulated on the manifold itself, without ever explicitly choosing a coordinate system. Of course, when you want to know what you will measure in any given situation, you have to choose the coordinates you use for the measurement - most often, these will be the coordinates constituting your own or any other inertial frame, but they need not be.
Comment: @Derek Roberts: "spacetime" is just a 4D manifold $\mathcal{M}$, some of whose 3D submanifolds you may call "space" and some of whose 1D submanifolds you may call "time" (though these choices *are not unambiguous*, and not every 3D submanifold is "space" and not every 1D submanifold is "time"). It is not simply "space" + "time", that's the entire **point** of relativity. You are constantly trying to argue with words whose meaning is simply not what you think it is.
Comment: I cannot decide if you are making fun of me, high, or simply that obstinate. Either way, this conversation is over.
Comment: When you apply the concept of time to the photon, you say that it travels, because that is how particles behave when they co-exist with time, when time is one of their dimensions. At one moment in the time, the particle is at one location in space, and at another moment in time, the particle is at another location in space. Now imagine that there is no time though, because for you, time does not exist. You would not be able to use time to distinguish where you were, from where you are, from where you will be.
Comment: How does the Photon exist in "space-TIME", if Time doesn't exist for the Photon? The Photon would not exist in "space time", it would exist only in "space". The physics of "space time", which is where we are, would not apply to "space without time", where the Photon is.
Comment: You're still in the box. All of what you just described is the reality where time exists, but that is not the reality where light exists, because light and time don't coexist.
Comment: Space time, all of it, all of the stuff that you described it as, is all where you are as an observer. And beyond the horizon of that place where you are, is another reality, where there is no time, and that's where the photon lives.
Comment: Well that explains why you're not understanding, you're not trying. You're trying to figure out my motives or something instead.


Alternatives to Toronto Book Corpus

Question: As the toronto book corpus is no longer available (or rather, only in lowercase), I am looking for an alternative dataset of comparable language variety, quality, and size.
Any suggestions? The Gutenberg Standardized Corpus is too big and still requires lots of preprocessing.
Answer: First, for context, I suggest other bypasses check the writeup of a researcher who also tried to find the Toronto Book Corpus.
There is a potential copy of the corpus shared by Igor Brigadir on Twitter , although it is not certain that it is the same exact corpus (see discussion). HuggingFace datasets hosts a copy of this corpus. As you noted, this version is in lowercase.
There are other people who have replicated the corpus to some degree, like Shawn Presser, who shared it on Twitter
(download link). Here is some context for this replication and more info on the matter. This replication is NOT in lowercase.
Also, here you can find the instructions and code to replicate it yourself.
Finally, there is this paper studying the problems of the Toronto Book Corpus and its replications.
Comment: Note that the replication by Shawn Presser is not in lowercase.
Comment: I edited my answer to clarify that.
Comment: Thank you for your answer. I am using the huggingface version, but it's in lowercase to my dismay. That is why I was asking for alternatives. Your answer may be still helpful for people looking for the corpus regardless of casing.

Alternatives to Toronto Book Corpus


Link value not updating after 'Save'

Question: I've got a content type that has a link field in it. I added this link: '
https://wwwdev.ebi.ac.uk/interpro/' and saved. Then I realised this was an old address. It should have been 'https://www.ebi.ac.uk/interpro/' so I went back in, added the new address, and saved again. But the value didn't change! It was still showing 'https://wwwdev.ebi.ac.uk/interpro/'. Here's what I've done:

Flushed the Drupal caches
Flushed the browser cache
Tried in a new private/incognito window in another browser
Checked the database - it has the correct value, not the one showing on the page
Tried another url in the link field (like 'www.google.com') and that works fine
I put the correct address back in the field and it shows as the wrong address, even though the wrong address doesn't exist in the database.
Tried adding the correct address to the body field and it was transformed to the wrong address!
In 'Manage display' I tried the different settings for the link field. 'Domain as link' resulted in the right domain showing in the link text  ('www.ebi.ac.uk') but with the link 'https://wwwdev.ebi.ac.uk/interpro/' in the href attribute.

Does anyone know what might be happening? I'm not using Conditional Fields, incidentally.
Answer: Okay, I fixed this. It was a legacy script in html.tpl.php. What I should have tried in my debugging was to switch theme. That would have at least narrowed it down to the theme layer.

Link value not updating after 'Save'


How to lock the keyboard in Mac OS X, but not the screen?

Question: I want to prevent users from typing anything on the keyboard, but still show the screen (so usual locking will not help). Unplugging the keyboard is not the answer I'm looking for, what other options do I have?
Answer: KeyboardCleanTool is a tool which 'locks' the keyboard. It can be enabled or disabled with the mouse.
Answer: Try MollyGuard:

MollyGuard is a small menu bar application that enables you to lock and unlock your keyboard and, optionally, mouse or trackpad with a hotkey combination. When locked, no input is accepted from the keyboard or mouse (other than the hotkey combination, otherwise you wouldn't be able to unlock your input devices).
Comment: Sadly no longer available.  Hasn't been updated in ages, and now even their web site is gone
Answer: I would recommend you KeyboardLocker for Mac. It fits perfectly to me.
Comment: No longer available


Can we upgrade the Name and Symbol of ERC20 Token

Question: Exploring Options: Can the Name and Symbol of an ERC20 Token be Upgraded?  Seeking insights from the crypto community! Considering a potential upgrade for our ERC20 token's name and symbol. Any guidance or experiences with this process? Share your knowledge and let's navigate this together!
Answer: TLDR : Usually no, but you could if you thought it through before deploying the contract.
Typically, the name and symbol of an ERC20 contract are set at or before deployment. In most if not all existing implementations of the ERC20 standard (like Openzeppelin's one), there is no function to change the name/symbol after deployment. One could have added a function to do it, something as simple  as
<code>function updateMetadata(string calldata newName, string calldata newSymbol) external onlyOwner() {
  _name = newName;
  _symbol = newSymbol;
}
</code>
would do the trick, and if your contract is set up behind a proxy, simply upgrading it to a new contract with the name and symbol changed accordingly would work too.
Let's assume that's not the case. Your only option left is migrating to another  contract. That implies creating another ERC20 contract with the required changes, and figuring out a way to get the new token's supply to the old token's holders, and the old token's liquidity to the new token's LP. As  for the exact process, it heavily depends on the specifics of your project and there are as many methods than there are projects out there.
Comment: OK Thanks i will use this.


Can the filter papers in coffee K-pods be used for composting?

Question: I already know it's a lot of trouble to remove them for composting, but does anyone know if the paper filters inside the K-pods are actually biodegradable?  We no longer use the old fashioned coffee maker so these pods are all I have access to and I hate to waste them. I also recycle the plastic part after I clean the coffee out.
Answer: If we investigate Abaca fiber in detail we find it comes from a species of banana, from the stems and leaf petioles. It is a very useful fiber because it is very fine and hard and wears very well. It is used in teabags and banknotes and high quality writing and art paper. Banknotes are renowned for their ability to stay in circulation for a long time and teabags need to be able to survive boiling, which they do very reliably. Unfortunately this means that they can survive in a compost heap, even a really hot one, and will survive quite nicely alongside oak heartwood in a Hugelkultur bed.
In an effort to pursue the science quite fully in this respect back in the summer I pulled a few teabags from a very old compost pile. They were perfectly intact after about four years. To see if it had improved inside the pile I tried to make some tea with one; it survived the boiling water but as expected the tea tasted of worms, weeds and dirt, a slight improvement over the original tea. I'm working on breeding worms with suitably sharp teeth but no luck yet.
My suggestion would be to open up the used pods/bags, compost the ground beans and tea dust, dry out the paper containers and use them to light the woodstove. Otherwise they will keep showing up in the compost. Year after year after year.
Answer: According to the Keurig site, Is there a filter in the pods? What is it made of?

All of our coffee and tea pods contain filters. Filters are made with
  abaca fiber, which is the same material that is typically used in tea
  bags and are considered unbleached.

Since Abaca fiber is a natrual plant material, it should be biodegradable.


Whats more obtrusive during a user interview, an audio recorder or a colleague taking notes.

Question: From experience, which has caused more of a barrier to a candiadate feeling relaxed or giving an acurate detailed answer?
Comment: Your question is a bit short and shows lack of your own research. Can you give a little more context?
Comment: You should ideally have both in all situations.
Comment: I have re-read this question several times, and I am still not sure what you're asking. I feel like using the word 'candidate' refers to someone you're interviewing for a job, not someone you're interviewing about their experience. Given that the topic and the content of your question are both relatively incomplete, this is a hard question to answer.
Answer: This is a tricky one.
Audio Recording: Audio recording is good and discrete, but you are recording only audio. In terms of data, you will have a lack of information in terms of facial and body expressions (reactions).
Video Recording: You will collect audio and video, so you'll cover answers and facial and body expressions (reactions).
Screen Recording: If we are talking about digital products, this is the must. Try to combine heatmaps as well with your product if it's possible.
Taking notes: Someone taking notes could hurt your interview process because the user can start paying attention to your colleagues who are taking notes. This can cause feeling that the user is doing something wrong every time when your colleagues write something.
Advice:

My suggestion is to combine Video Recording + Screen Recording and if
  it's necessary to take a few notes, but not more than that.
When you are doing user interviews user is already prepared to be
  "brain-raped", so video and screen recording should not affect to
  results.
I had a few situations where users started very carefully with the
  answers because they had felt being recorded, after a few minutes that
  feeling disappeared.
Give users clear explanation that they can't do anything wrong during
  the interview, and all "errors" are addressed to UX department.
Comment: "_I had a few situations where users started very carefully with the answers_" Could starting with two or three "throwaway" questions help with this? You'd want them to not sound "made up", but could be about some aspect you're not really interested in. By the time you get to the "real" questions, the user will hopefully have acclimatised.
Comment: You need to have the experience to handle user interviews.
To feel how the user feels, and to adjust the direction of the interview based on their feelings.
Also, the personality of the person is very important on both sides of the table .


Tough Chicken Skin

Question: Just roasted a chicken, olive oiled the skin, applied chicken rub and placed the chicken in a preheated 350 degree grill. It came to temperature in about two hours. Skin was very tough! What does it take to get a tender tasty chicken?
Comment: 2 hours at 350 seems like a lot unless it was a really big chicken. What internal temperature was it when you took it out?
Comment: You say the skin was very tough, but then you ask what it takes to get a tender, tasty chicken. Was it the skin that was tough or the flesh of the chicken? Were there problems with the flavor?
Comment: Was this in an outdoor grill? Propane? Charcoal?
Comment: Traeger pellet grill
Comment: Have you tried separating the skin from the chicken (run your fingers through the skin and chicken; not so much that you take it off however)
Answer: If you want crispy chicken skin, you need to begin with dry chicken and a hot oven.  When I roast a chicken, I spatchcock first.  Then salt liberally, and place in the refrigerator, uncovered, for at least 24 hours, and up to 48 hours.  This removes moisture from the skin.  I roast at a high temperature: 450F (232C) for about an hour and 10 minutes, but check the temperature in the thigh for best results.
I suspect that the low heat, wet and oiled skin, and likely overcooking caused your skin and chicken to be tough.

Tough Chicken Skin


Ambulance dataset needed

Question: Could I get a dataset that can classify ambulances?
I have searched everywhere, but, couldn't seem to get hold of a set of annotated images for ambulances.
Answer: Answering my own question here.
Looked at the Open Image Dataset by Google @ https://storage.googleapis.com/openimages/web/index.html
They provide image-level labels, object bounding boxes, object segmentation masks, and visual relationships.

Ambulance dataset needed


Sitecore content hub serialization

Question: We have a requirement to serialize content hub pages and got that we can do with Sitecore Content Hub CLI. Need some starting point for how to setup it for the content hub and how to achieve this.
Also, suggest if we can use anything else for the same.
Answer: With the CLI, you can manage content and media from a Content Hub instance. The CLI uses the SDK to communicate with Content Hub instances through the API, based on commands in the form of lines of text.
Before you can use the Content Hub CLI, you must:

Install and Run CLI
Login with the CLI

Read the Sitecore official document to setup.
https://doc.sitecore.com/ch/en/developers/42/cloud-dev/integration-tools--content-hub-cli.html
Hope this helps.
Answer: Before you begin, ensure, you review the prerequisites and initialize your working folder. (Link)
To use the Content Hub CLI, ensure you have the following installed:

.NET 6.0 SDK
Visual Studio Code
Visual Studio Code YAML extension
Content Hub CLI

These are the most common commands that you'll use when working with the Content Hub CLI to help you get started in no time.

Common CLI commands
You can run the Sitecore Content Hub CLI from any PowerShell or Command Prompt, or directly from the terminal in Visual Studio Code, by calling:
ch-cli
To get an overview of all available commands, you can call:
ch-cli -?
You can to do the same for individual commands to get more information on that command, for example:
ch-cli serialization -?

Setup endpoints
Add an endpoint to connect to a Content Hub instance:
ch-cli endpoint add --name dev-test --url https://<YOUR-SANDBOX-NAME>.sitecoresandbox.cloud/ --client-id CLI --client-secret <YOUR-CLIENT-SECRET>
Set an endpoint to active:
ch-cli endpoint select -n dev-test
Refresh the token for an endpoint (this will prompt you to login):
ch-cli endpoint refresh

Pulling resources
Pull all entity definitions (including taxonomy definitions):
ch-cli serialization pull ed
Pull all option lists:
ch-cli serialization pull ol
Pull all entities:
ch-cli serialization pull ent
Pull a specific entity definition (in this case, for M.Asset):
ch-cli serialization pull ed -n M.Asset

Pushing resources
Push a entity definition (or taxonomy definition, in this case EtB.TestTaxonomy) to the connected instance:
ch-cli serialization push entity-definition --name EtB.TestTaxonomy
Note: This command requires the Free Modelling license. If you don't have Free Modelling enabled, you will get an error: "[Error] At least one of these privileges (ModifyTaxonomyDefinitions) is required to perform the modify action on EtB.TestTaxonomy"

Hopefully, this overview is helpful for you to quickly get started using the Content Hub CLI. For more information on each individual command, please refer to the official Sitecore documentation.
Hope it helps!

Sitecore content hub serialization


Per-user TimeZones in a webapp using Spring

Question: I have a web application which has different users logging in to view transactions.  I want to be able to let the users set their own time zone and then have dates on forms be bound using the user's timezone so that they can search transactions in a database and have the results adjusted depending on what time zone the user is in.  IE I have a user in the mountain time zone searching between 8 am and 8 pm MDT, and I want them to be able to see transactions created between 8 am and 8 pm MDT.  I also have another user searching in the eastern time zone who wants to search for transactions between 8 am and 8 pm, and I want their search to return results for transactions created between 8 am EDT and 8 pm EDT.  I've tried having the editors resolved from the application using a custom FactoryBean that pulls the currently authenticated user and sets their TimeZone as the timezone used by the DateFormat used by Spring's editors, and this works initially, but by the time the calendars I'm using make it through Spring's binding system, the TimeZone is wiped out and replaced with (apparently) the system default.  Has anybody ever implemented this sort of thing before ? It seems like nothing short of an epic pain in the butt.
Answer: I cannot help you on your specific implementation problems but i feel that the general idea of implementing timezones is not ideal.
You should use UTC timestamps in your server and let the client display it in the timezone the client system is using. This should be the general concept to follow here.


Inline Editing v Section below grid to edit

Question: Is inline edit good UX? Which is a better way to edit a grid, providing an inline edit option or providing a view below the grid, (display additional details and provide editable fields)?
Answer: There's 2 factors to think about when deciding which type of editing format to use: Speed of Update and Complexity/Dependency within the data.

Speedy entry of simple independent data: use Inline Edit
If speed of updating individual pieces of information is important, then inline editing hands down beats editing sections. User can click into the section and directly edit a cell. Whereas with section edit, the user needs to reorientate themselves to find the field of interest before they can edit it.
Editing of more complex dataset with dependencies: use Section Edit
However, if the data you're dealing with is tightly coupled to other data fields and/or user tend to edit the info together as a whole, then section edit may be a better choice. Showing data as a group makes it easier to present dependencies (e.g. the data in one field affects valid values of another field) to the user and allowing them to better edit a set of fields as a group.
Answer: I think:
In systems where forms or data grids are used by Account Managers or data entry personnel, Inline Edit is very useful. Opening a Modal or a an expanded view creates multiple clicks for the user and is considered time consuming.
When the same information is presented to the End user, a view or modal may be the right thing to do.
Also it totally depends on the number of editable fields.


Is there anyway to mount a webpage?

Question: My professor requires me to go to the website and login and check the individual folders for updates. It is using http and I am wondering if there is a way to mount it as a drive similar to SSH and macfusion.
Comment: Possible duplicate: http://apple.stackexchange.com/questions/5209/how-to-mount-sftp-ssh-in-finder-on-osx-snow-leopard
Comment: That is clearly asking about ssh and sftp.
Answer: You can't mount a http/https server as a filesystem since it won't provide a directory table for you. (I left a comment on why httpfs isn't what you need)
The best way to do the task is to make a list of the URLs you need to check and use a shell script (run from Automator for convenience perhaps?)
You will need to USE curl or wget which will do the http downloading for you (they both provide post and http basic auth support for sending login info, however you probably need to install them on Mac Os X, off the top of my head I've forgotten.)
You can get fancy and use diff to check automatically for changes in the files, so that you only need to get personally involved with the process when you really have to.
Need more info, I'll happily expand on this.
References:

Wget and Curl
Diff
Answer: http://httpfs.sourceforge.net/
The webpage doesn't appear to have been updated since September 2006, but the downloads area has a release from a year ago.  Source code only, but reported to work on 10.4+.  You'll also need to install MacFUSE.
Comment: I wish macfusion had httpfs.
Comment: I'm not sure how can I "mount" with this?
Comment: Ok, httpfs is not suitable for your task, it will not mount a http directory structure, it will only mount fs style images like ISOs, DMGs etc.  What you need really is a script to grab the URLs you want.

Is there anyway to mount a webpage?


Using python 3.7 and installed pygame through pip3 but atom editor wont run pygame

Question: I am super super new to all of this python and programming in general. I am on a macbook pro with the latest OS and have python 3.7 working. pygame is installed because the idle will run a game or open a window for a game that i found on the internet. but atom doesnt. please help! i want to use atom and not the standard idle. thanks!! ia have picturs but it wont let me post them
Comment: this is what atom does when i run it. Traceback (most recent call last):
  File "/Users/granttarbell/Desktop/Untitled.py", line 1, in
    import pygame
ImportError: No module named pygame
Answer: I'm not sure if this will work but it's worth giving it a try. Open terminal and navigate to the folder where you file is using the command:
cd /somepath

Then use the command:
python3.7 filename.py

Hope this helps!
Comment: This probably works, but OP wants a solution within Atom if possible.
Comment: when i paste the first one,it says it does not recognize somepath :((( i somehow got pygane to import succesfully tho. i just installed it in a billion different ways hehe


What does token mean?

Question: I always hear the word token, eg. request a token.
I usually replace that word with "key".
But what does it mean exactly?
Comment: Great Question because i was preparing to ask totally same question :)
Answer: A token is a unit of information (as opposed to a unit of data witch could be an integer). It is the smallest chunk of data that composes information.
for instance, in a compiler tokenizer, the char array {'c', 'l', 'a', 's', 's'} would be a chunk of data composing the token "class" (Because a complete word is, in most cases, the smallest kind of information a compiler deals with).
Comment: Am I missing something or does this have nothing to do with an authentication token (which is what the OP indicated he was looking for)?
Comment: The OP gave an example. I don't think an example should be taken so strictly.
Answer: It depends on what kind of "token" you're talking about.
If you're talking about a hardware token, it's a piece of hardware that gives each user an identification number. That number is then paired with their username/password to provide an extra level of authentication.
If you're talking about a software token, then it's simply a piece of identifying information that is given to you after you authenticate with a system.
Once you have a token, you can provide that token to the authentication system to prove that you're already an authenticated user.
Answer: http://computer.yourdictionary.com/token

In authentication systems, a hardware
  device (e.g., smart card,
  calculator-line device, or flash
  drive), or software on a client
  computer, that stores the user's
  credentials and generates a one-time
  password. The authentication process
  commonly involves a challenge-response
  dialogue between the token and a
  dedicated authentication server. In
  conjunction with a personal
  identification number (PIN) and
  supplemental password, a token is an
  excellent security mechanism. See also
  authentication, password, and
  security.

What does token mean?


Render rotated symbols in Leaflet

Question: I have point with an attribute for each point's 0-360 direction. I need to render these points in Leaflet with arrows pointing in their respective directions. Is there a plugin or code I can use to accomplish this?
Answer: See https://github.com/bbecquet/Leaflet.RotatedMarker. Alternatively, use a L.DivIcon and apply CSS transforms to its contents.
Answer: What kind of arrows do you want to display? I have just created a Leaflet plugin which shows the direction and the speed of wind. So if per chance you would like to show wind data, you can use my plugin: https://github.com/JoranBeaufort/Leaflet.windbarb
Otherwise there is the marker rotate plugin: https://github.com/shramov/leaflet-plugins/blob/master/examples/marker-rotate.html which might be of help to you.
Cheers

Render rotated symbols in Leaflet


Excel VBA Macro from Pivot table

Question: I am trying to generate few reports from Excel Pivot Table where I have Pivot Table and trying to write a VBA code to develop Macro so that it automatically generate the report for 25 Branches where I need to send the report to. Possibly using Macro I can automate the email too.
Can any one help where to start from?
I got following code from Pivot table
Sub printit()
    Dim pt As PivotTable, pi As PivotItem, pf As PivotField
    Dim lLoop As Long

    Set pt = Sheet1.PivotTables(1)
    Set pf = pt.PageFields(1)

    For Each pi In pf.PivotItems
        Sheet1.PivotTables(1).PageFields(1).CurrentPage = pi.Value
        Sheet1.PrintOut
        lLoop = lLoop + 1
    Next pi
End Sub

Which I have changed to following according to my worksheet
Sub PrintAllPivotFilters()
    Dim pt As PivotTable, pi As PivotItem, pf As PivotField
    Dim lLoop As Long

    Set pt = Sheet3.Certifications
    Set pf = pt.Branch

    For Each pi In pf.PivotItems
        Sheet1.Certifications.Branch.CurrentPage = pi.Value
        Sheet1.PrintOut
        lLoop = lLoop + 1
    Next pi
End Sub

Comment: This,   lLoop = lLoop + 1, isn't doing anything.
Answer: You can use showPages method of pivottable

Info: PivotTable.ShowPages Method
Creates a new PivotTable report for each item in the page field. Each
  new report is created on a new worksheet.
Syntax expression . ShowPages( PageField )
expression A variable that represents a PivotTable object.
[Optional parameter of pageField.]

Code:
ThisWorkbook.Worksheets("Sheet1").PivotTables(1).ShowPages "name of pagefield"

For a fuller example see here or here.
You can then use simple code to loop over these sheets and send each sheet as an e-mail attachment. See the following for getting you started with then e-mailing
Mail from Excel with Outlook (Windows).
Remember you can easily reference each newly created sheet for export with your existing code
For Each pi In pf.PivotItems
    Worksheets(pi.Value) '<==pass this to sub that e-mails
Next pi

Excel VBA Macro from Pivot table


Item is not added into the list (from code)

Question: We have some strange problem here. We have feature event receiver, where we are creating custom fields -> content type -> list. After that, one default item is added. On my VM it was working just fine, but after moving into pre-prod environment, we got this strange behavior with no exception or error in logs.
First thing, item was created only sometimes, with no trace what happened. Mostly it was not created. I even experienced this: when I activated feature, I went to the list and so item there, but after refresh it was gone!
We tried to put there some Thread.Sleep() cycle (while debugging, item was in Items collection, but ItemsCount property of the list was always showing 0).
Now I am out of ideas what is wrong. It's not about execution time (maybe). Looks like, for some reason, SP is killing SPItem.Update before it is created for real and we don't know why. Any help is really welcome!
Answer: When you try to access sharepoint items from code and not have admin permissions to update/ delete them then set website website.AllowUnsafeUpdates = true; property
//Set AllowUnsafeUpdates = true to update the database / sharepoint list from code.
<code>    FormWeb.AllowUnsafeUpdates = true;

    NewItem.Update();

    FormWeb.AllowUnsafeUpdates = false;
</code>
you code should be like this to make changes in the list.. when you adding item to list.
Use Update statement in same manner when you accessing list and updating its data.
Check whether you updating the list correctly.. There may be some SharePoint security issue.
Reference Link:
http://blogs.msdn.com/b/infopath/archive/2010/04/01/add-items-to-a-sharepoint-list-using-managed-code.aspx.
You can check this [SPSecurity.RunWithElevatedPrivileges][1]
[1]: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx , link, link
you can check that what is going over there by adding your events in sharepoint..
Check this post and debug it..
http://developmentsolutionsjunction.blogspot.com/2011/06/adding-events-and-eventhandlers-in.html
Comment: This looked promising but didn't helped after all. "RunWithElevatedPriviliges" and "AllowUnsafeUpdates" didn't helped.
Answer: so I was finally able to find out where the problem was. After deeper study and trying that and this I found out that there was a third party feature. It was adding event to each created list and was deleting everything what wasn't consistent with CT defined by company. This is weird and I don't really understand why somebody wants this. But ok, they pay, their rules.
So if you encounter such problem, try also this possibility.
However, I also leard few things during this, e.g. if you are working with SP instances from web scope, use web scoped features, not site ones, also, SP has a nasty habit to silent som exceptions. Also, if you e.g. take instance of SPWeb from event properties, it doesn't necessarily means it is already created. It takes some time, also, Update() itself is a thing that DB has to perform. Sometimes it's better to alsways check if you really have instance and if not, threadsleep for a while.
Answer: Have you used .Update() method in your code??
Comment: Yes, I did, after change each SP instance (list, item etc.) Update() is called.


Exporting training samples object statistics in eCognition

Question: I have training samples collected for my four sites. I need to run CART for feature selection off eCognition. The only way I know is to recollect samples using manual classification which is not desired. Is there any way which I can directly convert samples to object statistics with classes and features? or at least convert samples to classification as it is easier to export from classification to object statistics. Please help.
Answer: Export>Export_Results>Export_Type select "statistics", you should have Edited and Applied NN standards;
I personally would use grass gis's i.segment + r.to.vect + v.rast.stats


How to interface an arduino to load sensor with darlington transistor?

Question: I have a load sensor for measuring weights , it has for wires labelled E+,E-,S+,S-. I assume S means sensor and E means excitation and the power is sent into E+ and E-.
The output of any load sensor would be the order of typically millivolts if it takes a load (depending on the weight of the load of course) so I guess amplifying it with a darlington would make its output useful for an interface to an arduino.
What would be a generic circuit using a darlington transistor (e.g. a TIP 120) that can make the load sensor output useful for building an interface to an arduino with the minimal number of components? Ans this circuit is to be as simple as possible.
Im trying to build a circuit with the components I have which does include a tip 120 and I have a lot of other common components.
Comment: Chris my understanding  of load cells is its simply a variation of a wheatstone bridge which is of course a configuration of four resistors. But it differs from the standard wheatstone bridge as the resistors are replaced by variable ones which detect strain converting to changes in rresistance-though the change is so small it needs suitable amplification. There's more to it than that of course but that basically how the sensor works.
Comment: You'd be better of with an opamp, if you have that.
Comment: First decide if you are trying to weigh something, design a product, understand load cells, or "golf" a TIP120 solution.  For the first, order an HX711 module, for the second or third do more research, and for the fourth see if you can find a meter stick and some string to go with your TIP120.
Comment: @Gerben Gerben I do have an lm358 opamp but isnt the gain of a tip120 sufficient? I dont have an hx711 module chris. Im trying to make a circuit that can weight betwteen 0 and 3000 grams. But I think there should be a generic circuit to do this.
Answer: What you have there is (or sounds like) a full wheatstone bridge.
You require either a special amplifier (such as the HX711) or a highly sensitive and accurate differential ADC (such as the MCP3428 - (on  a shield)).
Comment: Ok Ill try and get the HX711 or MC3428 if I can. Yes I think it is a full wheat stone bridge too. But cant you build it without special parts? Even just to detect rough weight measurements? I have lm358, tip120  to build it?
Comment: The best you could hope for is to build an [instrumentation amplifier](https://en.wikipedia.org/wiki/Instrumentation_amplifier) which consists of (at least) three op-amps. Yes, you could build an op-amp out of transistors and resistors, but it's far from easy (I wouldn't like to try it). Just get a HX711, it's the simplest option and there's plenty of tutorials.
Comment: I mean, this is the schematic for the internals of the LM741 - and you'd need three of those, and it would still be inferior to an HX711.  http://i.stack.imgur.com/JmQjc.png
Comment: I agree with you I would not build an op amp from scratch-I already have a few lm358's-what I had in mind it could be done with a few transistors to amplify the mill volts output by the load sensor and use a simple circuit to convert them to useful voltages. It just seemed like you could make simple circuit from 20 components maximum.


How do I combine two outcome measures from two different questionnaires into one variable?

Question: I have been asked by a journal editor to combine two separate measures of child disruptive behaviour into one variable. One meaure is parent rated and is from the 36-item Eyberg Child Behaviour Checklist. It is measured on a 7-point likert scale and gives a total score. The other measure is teacher-rated and is from the Total Difficulties score from the Strengths and Difficulties Questionnaire. It is based on a 3-point likert scale. They want me to combine these two measures into one variable, however I do not know how I should do this as they are separate measures from separate rating scales. I wondering about standardising these two variables but then  did not know whether an average of these two standardised variables would suffice. Your help would be very appreciated.
Comment: You should first ask yourself aren't these two measures apple and orange, to combine them. What is correlation between them as compared to the average correlation within them (i.e. between items constituting them)?
Answer: I'm not sure it's really sensible to combine these two measures as they are from different raters and different existing (and presumably validated) questionnaires. If the journal editor is concerned about the number of measures you're presenting, I think it would be more sensible to present only one set in the results, with a note that "results using the [other] measure were similar" (assuming they were). The other set of results could be included in an online supplement if the journal allows that.
Answer: Standardise the two measures into z-scores, and then simply add the values together into one single scale (you can either average or not the two z-scores). Don't need to worry about the original scores, standardisation means they would be measured in the same units! The two measures do seem to assess different aspects of a similar construct.


How to achieve softer and more realistic lighting from a chandelier?

Question: I created a crystal chandelier and wanted to use it to light up my scene, but I'm not getting the results I wanted. I want to achieve a more reflective and softer lightning. Now you can see the silhouettes of my lamps right through the chandelier. I am using small parts in the chandelier with emission materials on them. Has anyone got any tips or tricks for softer realistic lightning?
Comment: It's hard to guess what the "results you wanted" means... Can you edit your question to be more specific and expand on your intentions? Is your question about intensity, fireflies, color?
Comment: You can try adding images you can find on google images and describe the effect you are trying to achieve. I suspect  what you really need is to create area lights to recreate soft lighting and shadows around your scene.
Answer: Given the vagueness of the question I'll ramble a vague answer:
Reproducing light sources in blender (or in any photographic device) is a bit problematic: in order to get the level of brightness that we associate with them perceptually the emitters get so bright that they are just white with no detail.

Or if we want to get the detail on them there is not enough light on the scene

(more on the subject on this question)
The shadows produced by the glass can be less dense if you increase the samples and the number of bounces for transparency and transmission (note that your rendering time will increase dramatically)

Another trick if you don't want to render for such a long time is to have the glass be completely transparent to the light (maybe less realistic but will cut your rendering time)

Yet another option is to add an object that will light the scene but its invisible to the camera and reflections:

(to deal with noise read: How to avoid noisy renders in Cycles? and blender guru's article on how to reduce fireflies)


Automatic Transmission: Best practice when waiting at the red light - N or D?

Question: My main concern is the longevity of the engine and transmission. I see conflicting view points on the internet. Some say changing from D to N and back constantly will cause extra wear on the transmission. Others say staying on D will cause stress on the transmission.
Answer: I thought this question was answered under this question, but it has to do with coasting and not while stopped (though some of that answer still applies here).
I think you will continually get a bunch or opinion on this question. The truth of the matter is, an automatic transmission is designed to be left in gear while driving. By shifting out of gear at stop lights, you are creating more wear-n-tear on your transmission/shifter/linkage which would otherwise not exist by just leaving it in gear. When you slow your car down and the engine gets below a certain speed, the torque convertor no longer has enough fluid shearing going on to continue providing direct output to the transmission. It is designed to allow this to happen. Your transmission will not suffer any adverse effects by allowing it to happen. No additional wear occurs because of this.
Bottom line, leave your car in drive and let the transmission do it's work unimpeded.
Comment: So WHEN would you use N?
Comment: @dmc ... You utilize neutral on the way from Reverse to Drive or vise-versa. You are causing undue wear on your transmission to do otherwise.
Answer: The only stress on the transmission when left in D at a full stop is the shearing stress applied to the transmission fluid in the torque converter. There is no wear of mechanical components, nor contamination of the fluid when that is happening. The energy is dissipated as heat.
That said, I personally like to put the transmission in N and raise the hand brake at stop lights to stretch my legs and shift my position in the seat.
Comment: So, do you think there is not much wear-n-tear to put the transmission in N, during stops?
Comment: There is wear but it is minimal. Most of the energy is absorbed by the transmission mount, and that is the component which usually fails on vehicles treated in this manner. There is additional wear on the main shaft bearing as it slides in and out of position, and this is the next component to fail. It is designed for a specific amount of engagement / disengagement cycles, one per 'drive'. If you are doing ten times the engage / disengage cycles, then that bearing is more likely to fail during the service life of the vehicle.
Answer: Well if you were sitting a driving test in NZ you would get told off, cause you gotta think... What if some idiot behind me or the side comes at me? That extra time could save your life. Same with manuals never use N unless parked.


What is Monero current communication protocol?

Question: There is a lot of info about on-blockchain privacy, much less about actual peer to peer communications (or I'm extremely bad at finding it). What are the message types (the analogy to inv/addr/getdata/tx/block of Bitcoin)? How are the messages that will end up being TCP packets created? Are they encrypted? Can someone intercepting the packet on a routing path determine whether it's Monero related?
Comment: p2p vulnerabilities (as opposed to blockchain analysis) seems to have received too little attention in general. There is some discussion of a solution for bitcoin and I too wonder if there is something analogous for Monero: https://arxiv.org/pdf/1701.04439.pdf
Answer: Monero uses UDP for sharing the blockchain, although I'm unsure what it uses for actually broadcasting transactions.
To answer the content of your question though regarding privacy when doing p2p communication, in April 2020 (2 years after your post), Monero merged Dandelion++, a feature that changes how messages are propagated through the p2p network.
Dandelion++ is likely what you're looking for regarding a private p2p communication protocol, so feel free to read more it here: https://www.monerooutreach.org/stories/dandelion.html
Comment: This is incorrect. It uses TCP for all communications. The ideal configuration for a node has blocks being relayed on the clearweb, while relayed transactions are sent through TOR/I2P, however this is not the default out-of-the-box configuration.


Group By hour over large dataset

Question: Using MS SQL 2008 I am selecting an averaged field from 2.5 million records. Each record represents one second. MyField is an hourly average of those 1 second records. Of course the server CPU hits 100% and the selection takes too long. I need to possibly save those averaged values so that SQL does not have to select all those records on each request. What can be done?
  SELECT DISTINCT
         CONVERT(VARCHAR, [timestamp], 1)+' '+ CAST(DATEPART(Hh,[timestamp]) as VARCHAR) AS TimeStampHour,
         MIN([timestamp]) as TimeStamp,
         AVG(MyField) As AvgField
    FROM MyData
   WHERE TimeStamp > '4/10/2011'
GROUP BY CONVERT(VARCHAR, [timestamp], 1)+' '+ CAST(DATEPART(Hh,[timestamp]) as VARCHAR)
ORDER BY TimeStamp

Comment: Is TimeStamp part of a clustered index? It should be...
Comment: @antisanity - why? he is maxing out CPU not disk io
Answer: The part of the query is maxing out the CPU for long periods is the the functions in the GROUP BY clause and the fact that the grouping is always going to require an unindexed sort in this instance. While an index on the timestamp field will help the initial filter this operation has to be performed on every row that the filter matches. Speeding up this are using a more efficient route to do the same job as suggested by Alex will help, but you still have a huge inefficiency there because what-ever function combination you use the query planner is not going to be able to come up with something that will be helped by any index so it will have to run through every row first running the functions to compute the grouping values, only then can it order the data and compute the aggregates over the resulting groupings.
So the solution is to somehow make the process group by something it can use an index for, or otherwise remove the need to consider all the matching rows at once.
You could maintain an extra column for each row containing the time rounded to the hour, and index this column for use in such queries. This is denormalising your data so might feel "dirty" but it would work and would be cleaner than caching all the aggregates for future use (and updating that cache as the base data is altered). The extra column should be maintained by trigger or be a persisted computed column, rather than maintained by logic elsewhere, as this will guarantee all current and future places that might insert data or update the timestamp columns or existing rows result in consistent data in the new column. You can still get the MIN(timestamp) out. What the query will result in this way is still a walk down all the rows (this can not be avoided, obviously) but it can do it index order, outputting a row for each grouping as it gets to the next value in the index rather than having to remember the whole set of rows for an unindexed sort operation before the grouping/aggregation can be performed. It will use a lot less memory too, as it won't need to remember any rows from prior grouping values in order to process the one it is looking at now or the rest of them.
That method removes the need find somewhere in memory for the whole result set and do the unindexed sort for the group operation and removes the computation of the group values out of the big query (moving that job out to the individual INSERTs/UPDATEs that produce the data) and should allow such queries to run acceptably without needing to maintain a separate store of the aggregated results.
A method that doesn't denormalise your data, but does still require extra structure, is to use a "time table", in this case one containing one row per hour for all the time you are likely to consider. This table would not consume a significant amount of space in a DB or appreciable size - to cover a timespan of 100 years a table containing one row of two dates (the start and end of the hour, such as '2011-01-01@00:00:00.0000','2011-01-01@00:00:59.9997', the "9997" being the smallest number of milliseconds a DATETIME field won't round up to the next second) which are both part of the clustered primary key will take ~14Mbyte of space (8+8 bytes per row * 24 hours/day * 365.25 days/year * 100, plus a bit for the overhead of the clustered index's tree structure but that overhead won't be significant). With such a table you could do something like the following:
SELECT CONVERT(VARCHAR, [timestamp], 1)+' '+ CAST(DATEPART(Hh,[timestamp]) as VARCHAR) AS TimeStampHour
     , MIN([timestamp]) as TimeStamp
     , AVG(MyField) As AvgField
FROM TimeRangeByHours tt
INNER JOIN MyData md ON md.TimeStamp BETWEEN tt.StartTime AND tt.EndTime
WHERE tt.StartTime > '4/10/2011'
GROUP BY tt.StartTime
ORDER BY tt.StartTime

This means that the query planner can arrange for the index on MyData.TimeStamp to be used. The query planner should be bright enough to work out that it can walk down the tame table in step with the index on MyData.TimeStamp, again outputting one row per grouping and discarding each set or rows as it hits the next grouping value. No storing all the intermediate rows somewhere in RAM then performing an unindexed sort on them. Of course this method requires that you create the time table and make sure it spans far enough both backwards and forwards, but you can use the time table for queries against many date fields in different queries, where as the "extra column" option would require an extra computed column for each date field you needed to filter/group by this way, and the small size of the table (unless you need it to span 10,000 years of course, in which case it'll be around 1.4Gb) will mean it it likely to always be in RAM.
The time table method has an extra difference (that could be quite advantageous) compared to you current situation and the computed column solution: it can return rows for periods for which there is no data, simply by changing the INNER JOIN in the example query above to be a LEFT OUTER one.
Some people suggest not having a physical time table, but instead always returning it from a table returning function. This means the content of the time table is never stored on (or needs to be read from) disk and if the function is well written you never have to worry about how long the time table needs to span back and forth in time, but I doubt the CPU cost of producing an in-memory table for some rows every query is worth the small saving of hassle of creating (and maintaining, should its timespan need to extend beyond your initial version's limit) the physical time table.
A side note: you don't need that DISTINCT clause on your original query either. The grouping will ensure that these queries only return one row per period under consideration so the DISTINCT will do nothing other than spin the CPU a little more (unless the query planner notices that the distinct would be a no-op in which case it'll ignore it and use no extra CPU time).
Answer: See this question (floor a date)
Also, why bother with converting everything to string -- you can do that later (if you need to).
  SELECT DISTINCT
         dateadd(hour,datediff(hour,0,[timestamp]),0) AS TimeStampHour,
         MIN([timestamp]) as TimeStamp,
         AVG(MyField) As AvgField
    FROM MyData
   WHERE TimeStamp > '4/10/2011'
GROUP BY dateadd(hour,datediff(hour,0,[timestamp],0);
ORDER BY TimeStamp

Answer: Do you want make the query faster or you are asking how to make a data snapshot and save it?
If you want to make it faster, you definitely need an index on TimeStamp field.
Also, I would suggest using this to convert to hour:
select convert(varchar(13), getdate(), 121)

If you need to make a snapshot and reuse it later use insert into to create a new table with the results from your query. Index table according and use it. From what I understand you will need an index on TimeStampHour.
Also you can setup a job that aggregates daily data in your new aggregate table.
Answer: By converting your group by clause into a string like that, you're essentially making it an unindexed hit to every single row in the database.  This is what is killing your performance.  Any halfway decent server will be able to handle a simple aggregate like that on a million records just fine if indexes are used properly.  I would modify your query and put a clustered index on your timestamps.  That's going to solve your performance problem whereas calculating the data every hour is just putting the problem off.
Comment: -1 - no you are not "making it an unindexed hit to every single row in the database" - any index on `TimeStamp` will still be used to filter the rows
Answer: I would consider abandoning the idea of implementing this sort of calculation using a relational database model. Especially if you have many data points for which you collect values every second.
If you have the money you could consider purchasing a dedicated process data historian like:

Honeywell Uniformance PHD
Osisoft PI
Aspentech IP21
etc.

These products can store huge amounts of insanely dense time series data (in proprietary formats) while simultaneously permitting swift processing of data extraction queries. The queries may specify many data points (also called tags), long time intervals (months/years), and may additionally do a wide variety of summary data calculation (including averages).
.. and on a general note: I always try to avoid using the DISTINCT keyword when writing SQL. It is hardly ever a good idea. In your case you should be able to drop DISTINCT and get the same results by adding MIN([timestamp]) to your GROUP BY clause.
Comment: This isn't really accurate.  A relational database is perfectly fine for 2.5 million records.  And he's not even doing joins across a lot of tables.  The first indication that you either need to denormalize your data or move to a non-relational system is when you're doing large, complex joins across many tables.  The poster's data set actually sounds like a perfectly acceptable use of a relational database system.

Group By hour over large dataset


Best Eclipse version for Java development

Question: There are many editions of Eclipse for Java development.  I am trying out MyEclipse and am pretty impressed with the out-of-box experience.  Before I get too comfortable with it, I would like to find out if it is the best edition available.  Feel free to list free or commercial packages, but for the sake of other readers, please mention if there is a cost.
Considerations
I am mostly concerned with the code editing experience. Here is a list of some factors that would affect my decision:

Extensive support for refactoring
Code suggestions (like suggesting refactorings)
Easily configurable keyboard shortcuts
Easily configurable colours (I use dark colour schemes, and setting this up with MyEclipse was hell; that said, I only really need to do it once)
Excellent debugging support
Source control plugins (SVN or git if one exists)
Don't care about GUI designers

I am aware that there is a thread discussing the best IDE for Java development; however, most of the responses do not detail recommended editions of Eclipse.
Answer: I'm always just downloading classic edition and just add plugins I need. That way I keep Eclipse as lean as possible.
Answer: all of the above except the color stuff works great with vanilla Eclipse 3.4 + Subclipse. if you find an easy way to customize colors in Eclipse, please let us know.
Until then you're stuck with having to manually change each color.
Comment: Just in case anyone ends up on this old answer and is still looking for easy colors: http://eclipsecolorthemes.org/
Answer: Actually almost all the things you mentioned are present in the plain old "Eclipse IDE for Java Developers" (85MB) at eclipse.org. It has a much smaller footprint than some of the others like MyEclipse. You'll need to install an SVN plugin, though.
Answer: Agree with Marko and Epaga
I have Eclipse 3.4 (Ganymede) with following additional plugins (links are the update site URLs):

Subclipse for Subversion
Spring IDE for Spring. Favourite features: Advanced spring xml completion and bean visualisations.
m2eclipse for Maven. Favourite features: transitive dependency tree and graph visualisations.


Can I convert a LH inswing door into a RH inswing?

Question: I have a prehung exterior door that is a LH inswing (brand new not installed yet). Can I somehow switch it to make it a RH inswing? Would it work if I installed it as an outswing?
Comment: Do you speak of a wooden door?
Comment: An exterior door that swings out would expose the hinge pins to the outside.  Do you have any idea how easy it would be to break into your house if anybody could just pop the pins off the hinges from the outside?  What you describe is possible but it takes many hours and expert carpentry skills and tools.  It is probably better for you to replace the door.
Answer: It is impractical, if not impossible to make a pre-hung/pre-drilled door (for knobs and locksets) change swings. The exterior is different than the interior in most models and the hinge mortises are on the wrong edge of the door. If you install it backwards, or swing to the outdoors, you may have a problem with the threshold. Many thresholds slope to the outside to shed water. If you reverse it, then water could flow indoors. Another consideration is that you cannot install a storm door if the door swings out.
Comment: It is not necessarily impractical to change the swing, I have done it before, but it takes a good deal of carpentry expertise to do properly.  If you are not comfortable and do not have the right tools then it is very easy to screw this up.  It is certainly not impossible.
Comment: @maple: interior doors are fairly easy, but exterior doors often have different trims or finishes inside and out. Obviously have to check out the door in question.  One major cosmetic problem is filling all the pre-drilled mortises and lockset holes in the frame. Can get messy.
Comment: With a wooden door and frame and holes and mortises, I usually mix a bit of water in some wood putty to where it is a little thinner, and spread that inside.  I will sometimes use the flat end of a carpenter pencil and some tape to help with outside edges. When it dries I sand it smooth and touch up with paint.  You wouldn't notice it unless somebody pointed it out to you.
Answer: Outswing would make it a Right Hand Reverse door (RHR). Changing the hand to make it RH would require you changing these preps ( door hinges , frame hinge , Door hardware preps , frame hardware preps ) . However this may not be practical on certain HMD door scenarios. That being said I recommend you  exchange the door for the correct hand . If you are asking this question chances are good you are not equipped to pull this off


What was Minoru Tanaka's (from Death Note One Shot) goal?

Question: Unlike Light Yagami, Minoru Tanaka seemed to have a very different motive, what was his true goal?
Answer: Minoru was opposed to using the Death Note himself and his actions in the end boosted Japan's economy as a likely result of everyone under 60 getting 100 billion yen. while these might seem like him being virtuous and possibly altruistic, i believe Minoru's motivation was just to make himself money off the Death Note
this is evident in how he did not care in how the Death Note would be used by a buyer but rather how much they would pay for it, and the money going to the japanese people was just to hide his connection to the auction as Near had correctly deduced that the Auction-Kira would need to collect the money. being under 60 himself, Minoru would still get away with 100 billion yen from the sale but it being impossible to spot his account out of the millions that all received the same amount.


Refer to Ran-GEF as a coenzyme?

Question: Ran-GEF facilitates an exchange of GDP for GTP in the formation of Ran-GTP in the nucleus as part of gated import of proteins. Would I be correct in calling Ran-GEF or Ran-GAP coenzymes?
Answer: coenzymes are factors that bind to the enzyme so that enzyme can show its activity. In this case conversion between Ran GTP and Ran GDP are caused by hydrolysis and phosphorylation reactions. Ran GEF and Ran GAP are not binding to Ran GTP or Ran GDP.
Comment: *Cofactor* perhaps?

Refer to Ran-GEF as a coenzyme?


appointment for life term

Question: One of the directors of a company is being appointed as chairman. He shall remain so for his life term.  Is there a particular term/word to describe a person holding a position or office for life?
Comment: i've heard it called a 'lifer'
Answer: lifetime appointments
Example:
There's actually nothing in the Constitution that explicitly promises federal judges "lifetime appointments."
Comment: Sorry @Rahul, you posted your answer just as I was typing. +1
Comment: @ArchContrarian: Happens more often. **_☺_**
Answer: In academia, this is called being tenured.
http://www.dictionary.com/browse/tenured
That term isn't normally used in business, but the meaning would be unambiguous if used of a company chairman.
Elsewhere, whole-life-term appointments can be shown by just prefixing "life", for example a "life peer" in the UK's House of Lords.
However, the most standard way of expressing this is a phrase, rather than a single word: lifetime appointment

appointment for life term


sample size calculation for multivariable analysis

Question: How can I calculate the power or the adequate size of my population in a Cox multivariable regression analysis where I'm testing the association of different independent variables with my dependent variable (0/1)?
I have 843 patients 79 events and in my final multivariable model I have 4 variables (3 are 0/1; 1 is 0,1,2,3). I'm familiar only with SPSS and MedCalc.
Comment: It sounds like you have already collected your data. Why are you conducting a power analysis now?
Answer: SPSS Statistics currently doesn't offer anything designed to do any type of power or sample size analysis for a Cox regression model. Since the program has some general mathematical functions, distribution functions, and a matrix programming language, if you know the math you can program pretty much anything, but I assume that's not what you're looking to do.
I'm not very familiar with MedCalc, but based on a quick web search it looks like it offers power analysis (specifically calculation of required sample sizes) for logrank tests for survival analysis, but nothing for general Cox regression models. I might have missed something, but it doesn't look like it'll do what you're looking for either.


Auto-Hide Taskbar Malfunction...?

Question: I like to keep my taskbar hidden when it's not in use as to get my screen the ultimate space it can have, but sometimes after long periods of PC use, the taskbar glitches (I think it's a glitch) and although it's set to 'hide' it stays visible whilst overlapping whatever window happens to be open and there is no fixing this other than turning off auto-hide where the window will then realign to be under the taskbar or over it - for me, under as I prefer to have my taskbar on the top portion of the screen.
Answer: I am guessing that a program is notifying you and the program on the list will turn a orange yellow color and if you click the program then minimize it the task bar should go down.
PS. This happens to me all the time.
Comment: This does not work for me.

Auto-Hide Taskbar Malfunction...?


Clunking noise at back wheel

Question: My car(Ford puma) is making a clunking noise on the back passenger side wheel when I go over bumps and like a whering noise when I go round left hand corners?
Comment: A failed suspension bush could cause the tire to rub on something during cornering...
Comment: If the left side wheel is making the noise and it makes it when you make left-hand turn, it might be easy to see evidence that the tire is rubbing on the fender.
Answer: Check your rear wheel bearings.  As it makes noise turning left, I'd start with the right hand rear wheel.  You can check them by jacking that car up (safely, with axle stands) and checking the wheel for free play and a lack of smoothness when turning it by hand.

Clunking noise at back wheel


Freeswitch: Can't do video call/conference using H26x

Question: I using FS 1.6 . I've compiled it source codes. There is no problem when doing a video call using VP8 codec, but when I restrict the clients to use H263 or H264 codecs, no video is shown. After investigating FS logs and network packets, i found out that clients request H263 or H264 but FS does not negotiate it!
Following lines show that FS only compare H264 with VP8:
2017-01-25 05:58:07.132032 [DEBUG] switch_core_media.c:4843 Video Codec Compare [H264:108]/[VP8:99]
2017-01-25 05:58:07.132032 [DEBUG] switch_core_media.c:4843 Video Codec Compare [H264:99]/[VP8:99]

Although  H264 is loaded as show codec output in fs_cli is:
...
codec,GSM,mod_spandsp
codec,H.261 Video (passthru),mod_h26x
codec,H.263 Video (passthru),mod_h26x
codec,H.263+ Video (passthru),mod_h26x
codec,H.263++ Video (passthru),mod_h26x
codec,H.264 Video (passthru),mod_h26x
...
codec,VP8 Video,CORE_VPX_MODULE
codec,VP9 Video,CORE_VPX_MODULE

30 total.

This problem occurs in video conference call and point to point call.
Any solution?
Answer: Did you add H264 in /etc/freeswitch/vars.xml?
At this line:

Video has not worked for me while having both VP8 and H264 configured in this line so you might have to stick to only VP8 or H264.


How can I find scholarships for college in my area?

Question: There are tons of scholarship websites listed on Google, but they don't seen to contain the same data. Is there someplace I can go to view a more comprehensive database? I'm especially interested in finding scholarships available locally based on my home or college location.
Comment: Not sure how old you are, but if you're in high school, your high school will likely have a counselor who can direct you to useful information.  If not, then as DumbCoder said you may have luck asking at individual colleges.  For finding local scholarships, the best approach is to find knowledgeable people in your local area (e.g., counselors).  There is no truly comprehensive database since there is no centralized "register" of scholarships.
Comment: How about exploring the financial aid section on the college website ? Normally colleges providing aid have this section on their websites.
Answer: Financial aid offices on campus should be able to help you out a ton with that sort of stuff. Also, you might just want to try looking up random scholarships using search engines and/or specialized sites that keep up with that sort of info. A lot of scholarships don't necessarily require proximity to where they are housed and can be applied to from anywhere, regardless of locality.


Any testing tools that can test a PowerBuilder app and a webapp?

Question: I'm working on developing a webapp that will replace an existing PowerBuilder app. They should be functionality equivalent, and the requirements for the PB app are long gone. So the best way to test seems to be to input the same data into the same screens, and compare the output. If the PB output and the webapp output are the same, it's functionally equivalent.
Is there a testing tool/framework that can do this?
Answer: HP QuickTestPro, IBM Rational Robot are 2 tools that support both web testing and PowerBuilder apps.  You may want to peruse the test tool forums at sqaforums.
Answer: Not sure how deep you are into your development, but have you thought about looking at Appeon?  It allows you to deploy your PowerBuilder application directly over the browser.  I'm not talking about reconfiguring your application in order to deploy webforms.  Appeon will allow your app to run (for the most part) as is.  Your app looks completely the same.  Just in a browser.
Just thought I would throw that in here just in case you either had not started or were not too deep into anything yet.
Hope this helps.
Answer: We can test the PB Application through the PBUnit and PBTest its free from Sybase Code Exchange.
PBUnit - has some probs thats external ancestor script references
PBTest - it is working
Both are Test frame works it may helps you..


Maximum limitation for Choice fields

Question: I'm creating the list with choice field(Multi Selection). In this I'm having more than 300 options to be added in single choice field. So I want to know the maximum limitation of options for the choice field in SharePoint 2013
Comment: For such amount of choice options it is better to create a new custom list to save all values, and instead of using choice column create a lookup column to that list.
Answer: Choice field maximum value : 255 & size of column: 30 bytes
Choice (multiple selection) field maximum value: 350 & size of column: 22 bytes
Reference: Software boundaries and limits for SharePoint 2013
Comment: Is this is the maximum option count?I thought it is the length of the value we gave for options?
Comment: But what does it mean - 30 bytes ? I have choice column with 10 options, each option contains 50 characters. Why I am not facing any issues with limitation?

Maximum limitation for Choice fields