Why do people play a/h3?

Question: I am very low rated in chess (900 chess.com rapid) and when I play against higher rated players I often see moves like h3, a3 from white, and the equivalent from black. I don't understand why someone would play these moves, as it doesn't exactly take the centre or develop pieces, threaten pieces etc. I often see it in the opening as well, when you are supposed to treat the tempo valuably and not throw it away with useless pawn moves.
Comment: It's a way too general question. Usually it's to prevent a piece from going to b4/g4, or preparation to play b2-b4 or g2-g4. But it could be anything really.
Comment: also many of these "higher rated players" are still going to be fairly bad (sub 2000) so they can play a3/h3 even when it isn't good or there isn't a clear reason
Answer: @OP: Newcomers have a tendency to overgeneralize sensible hints.
a3/h3 is bad if

it wastes time (main reason)
it gives a hook for a pawn storm
it generally weakens your castling position
thousand other reasons having nothing to do with the general hint.

a3/h3 may be good if

the reasons in the other answer
it makes luft for the castled king
thousand other reasons having nothing to do with the general hint.
Comment: an interesting question is why a6 is played early in QGD. and magnus also adds an early h6. is it to stop Bg5 or some other plan?
Comment: @ cmgchess - h6: I guess, yes. Note that you will never have to worry about d5 becoming shaky. a6: Expanding on the queenside is Black's plan anyway, usually after a delayed dxc4. b5 and Bb7 will follow.
Answer: Some reasons why this might be done (answer assumes h3, flip it all for a3):

To prevent Bg4
To prevent Ng4 and allow stabily for a bishop on e3
To keep more pieces and cram the opponent
To prepare for g4
Answer: You say

I don't understand why someone would play these moves, as it doesn't exactly take the centre

These moves may be played to control the center.
For example, h3 may be play to prevent a Bishop landing on g4 which would pin a Knight on f3 weakening the knight's control of the center.

Why do people play a/h3?


Is there a device to prevent a main circuit breaker from tripping and give an added layer of protection?

Question: I would like to install some additional appliances in a room that already has a couple of heavy equipment machines running in it. These are sensitive machines, so instead of having the main circuit breaker trip when there is an overload, is there a device that I could connect to the outlet and then connect the new appliances to these devices? My goal would be to have power to these specific appliances cut off instead of tripping the breaker.
Comment: Not enough information. You write about "heavy equipment" that suggests high current and perhaps intermittent high currents. But you don't actually say that. Maybe so, maybe not. Then you write about "sensitive machines" but nothing about their current requirements, which so far as we know may be only a little or a lot. Then you ask us for a solution. I think we deserve a LOT more information/details.
Comment: Sure there is. They're called...wait for it...circuit breakers! Maybe you've heard of then. Specifically, they're called downstream circuit breakers which are just smaller breakers. Easy enough to mount a bunch of them on a DIN rail and connect a AC jack and AC plug to them, though I do not know what an electrician code would require.
Answer: The only viable solution is to add another circuit with its own breaker for the sensitive machines and NEVER MESS with a circuit breaker, its function is to PROTECT!
Answer: It is standard practice to have a main circuit breaker, followed by supplementary circuit breakers, to feed the branch circuits catering to individual machines.

The breakers are to be appropriately sized.
Answer: If you load is a motor, a VFD could be this device where you can set the max current.
I have used it myself on an asynchronous machine which was more than capable of pulling more current under high load than my utility company's service would allow and thus melt the fuses.
Answer: It is about what  we call discriminative tripping. divised into both:

current-level discrimination
time-based discrimination

The type of the circuit breaker defines the tripping. For type B, for instance, the current is 3 to 5 times the rated current for a time between 0.04 to 13 seconds. You can find the curve for each circuit breaker (inverse time curve).


Is there any methods available other than brute force and dictionary attacks?

Question: I am curious to know about the wifi attacks. And I have known a little bit about brute force attack and dictionary attack. Is there any other methods available other than these two...?
Comment: What Wi-Fi protocol are you talking about? There are several fatal attacks against WEP, and there is also a very damaging attack against WPA (and WPA2 with TKIP), both exploiting their use of RC4, which don't exist for WPA2 with CCMP.
Answer: To attack a black-box (i.e. you don't have access to the hashes), then you will be mostly limited Brute-Force and Dictionary Attacks. If you manage to get the hashes in question, then you can also perform a Rainbow Table Attack.
There is also an entire group of attacks known as Side Channel Attacks. However these are often very specific to an implementation, rather than a general attack.


What is the reward for completing the Frozen Artefacts in the new update?

Question: With the new update there are new artefacts to collect and usually there is a reward for collecting them all (e.g. a hat) but for the new frozen artefacts I have collected them all but haven't seen anything new to get?
Comment: There doesn't appear to be a reward. I finished collecting them all as well and received nothing.
Answer: For the January 11th 2016 update, to version 1.19.2, they added a hat for the Frozen Artifact collection reward, according to the What's New:

Added missing Hat for collecting all Frozen artifacts

And indeed, it is available.  It didn't appear right away for me, but after getting additional artifacts I got the customary "You have earned a new hat, do you want to wear it now?" message.
Answer: Seems like there's no hat reward. I've collected all the frozen artifacts and also did not receive a hat like I did when I collected all the christmas artifacts (ie. christmas hat).


How to disable windows authentication only for Web API inside a .net core MVC web application

Question: I have a .NET Core MVC web application and I have set windows authentication for that project.
Now I have added an API controller in the same project and for which I don't want authentication.
Is it possible to disable windows authentication only for API ?
The reason why I have created the application with windows authentication is to just log the current user details who is accessing my application via browser.
Comment: Does this answer your question? [ASP.NET Core disable Windows Authentication](https://stackoverflow.com/questions/54029878/asp-net-core-disable-windows-authentication)
Comment: I have seen that post but what I understood is he need to disable the authentication for the whole app and not for just API separately.
Comment: Sorry if my suggestion is uninformed but can't you just decorate the API controller with [AllowAnonymous] ?
Comment: Allowanonymous will just bypass authorization but not authentication..
Answer: After spending several hours I have found the following solution:
 In launchsettings.json set following values
<code>"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": true,
</code>
Add the following line inside startup.cs ConfigureServices
<code>services.AddAuthentication(IISDefaults.AuthenticationScheme);
</code>
add
<code>[Authorize]
</code>
attribute in controller where we need to get the user name
    using namespace
<code>(Microsoft.AspNetCore.Authorization)
</code>
Thus, I am able to hit the API without giving authorization and I am able to get the current user details in the MVC controller.
This one helped me in figuring out the solution : https://github.com/aspnet/AspNetCore/issues/2913


Cocos2d-x cross platform development

Question: I want to make a game with my friends on iOs, Android, WP operating systems. We decided to use a cocos2d-x and develop the core of the game on C++. What will be the right way of developing so that we can write the game all together simultaneously but just build the project differently on every platform. We thought of writing the core of the game in C++ in Visual Studio, but there is the problem: How can we test it fast on every platform? How people usually develop multi-platform projects?. Also we would really like to hear some recommendations about the source controlling of the whole project. Thank you in advance.
Answer: You can just write your code in C++ in Visual Studio. It is very easy to port your win32 application to Android or iOS with cocos2d-x. There are a lot of tutorials to teach you how to do it. If you create the project with the python scriptLINK . You will find there different project in the  folder. After you finish your C++ project, all cocos2d-x Android project needs is the Classes and Resources folder.
This link shows how can you set up cocos2d-x environment both C++ and Android project, but is in Chinese written by me. In brief,for Android project, you need Android SDK and NDK. And follow some step to set up your Android development environment. And you can debug your project.
If you want more details just @me.I am glad to help. PS.I am new in cocos2d-x, I really don't know how other people develop multi-platform projects.

Cocos2d-x cross platform development


How to use keyboard shortcuts to access MS Office 2013 QAT (Quick Access Toolbar) shortcuts using an Azerty keyboard?

Question: In MS Office 2010, keyboard shortcuts for the Quick Access Toolbar were immediate, even with a Azerty keyboard : ALT + [&] key (1 in CAPS)  --> means ALT+1 --> first icon in the QAT
In MS Office 2013, keyboard shortcuts for the Quick Access Toolbar does not work anymore in an easy & efficient way :
must do ALT (wait) then SHIFT+1 --> too slow !
Another question deals with custom one-key keyboard shortcuts using AutoHotkey, but I am in a big company where I cannot customize my standard laptop at all. I cannot install any 3rd party application.
Answer: I found a solution but it is not optimal: by using Caps Lock, the shortcut works correctly.
Obviously this is not ideal if I want to write after some text.


Monte Carlo method cannot be used

Question: This is an example from notes

I don't understand why we should think about the $E(x)$ and $Var(x)$ first?
Comment: is this a homework? please add self-study tag
Comment: I like how this book thinks that $\infty-\infty=\infty$
Comment: Basically, you should look up the reference for importance sampling which involves some assumptions about the functional. It should be straightforward why you *wouldn't* be using metropolis methods here.
Answer: Edit: I strongly recommend getting a new book to study from because this book is garbage by the looks of it. First off, there is a gross typo: the integral to estimate should be $\int_{-\infty}^\infty xf(x)dx$ as can plainly be seen in the explanation presented. Second, the expectation is NOT infinite, it simply doesn't exist, just like in the case of a Cauchy random variable.
In its most basic form, MC integration draws random samples $x_i$ such that:
$$\frac{(b-a)}{N}[g(x_1)+\cdots+g(x_N)]\approx \int_{a}^{b} g(x)dx.$$
Here $x_i$ are drawn in $[a,b]$, for example as a uniform distribution. When the interval is infinite, we can truncate it to a finite interval and rely on the tail integrals being small. The last sentence translates to $\int_{-\infty}^ag(x)dx+\int_b^\infty g(x)dx<\infty$.
Notice that the above expression is precisely $(b-a)E[g(X)]$ where $X$ is drawn from $[a,b]$. Thus you need the expectation to be finite.
When the expectation exists, but the variance doesn't, there is no good way of putting error bars on the MC estimate of the integral.
So in your case, $g(x)=xf(x)$, and the above methodology fails as the tail integrals of $xf(x)$ are NOT finite.
Comment: @AlexR. but how does MC integration estimate unbounded integrals? How does one sample uniformly across all reals? Over any interval $[a, b]$ if the density is truncated, you have a finite mean and variance. Even if the case that $f$ had finite moments, like a Gaussian curve, how would we integrate that?
Comment: @AlexR. don't be so quick to judge! For metropolis type algorithms you're right, but that's not the only way to use MC methods for integration. There are importance based sampling methods. You're right though, in saying it's a somewhat large omission on the part of the original question.
Comment: What expectation are you referring to?  The only expectation that actually appears explicitly in this answer is "$E[f(X)]$" (relative to a uniform variable on $[a,b]$), which is finite regardless of the values of $a$ or $b$.
Comment: @AdamO: Your comment made me realize the original question is deeply flawed. So if you have an infinite interval, yes you can truncate to a finite large interval, as for example in the case of a Gaussian. However, you still need the tail integrals to be finite. So of example if you have a Cauchy density, the tail integrals are undefined, hence the methodology won't work.
Comment: The OP clearly states this is from the "notes" and not a book. It could be an honest typo. Fair point about the expectation being undefined.
Comment: Note that *eventually* LLN will "kick in" when the expectation is assumed finite and nothing else is assumed. The issue is that it is not obvious how long this will take if we don't have some higher moment bound.
Comment: @AlexR. Can you elaborate on what you mean when you say "the expectation is not infinite, it simply doesn't exist?" What is the difference here?
Answer: There might be the need for a caveat for the question, in term of what is it that you call Monte Carlo integration.
You want to use Monte Carlo to estimate $\int_{-\infty}^{\infty} f(x) dx$, a quantity we know to be 1. One way to to do this is to find a pdf $g(x)$ such that you can sample from $g$, and then
$$\int_{-\infty}^{\infty} f(x) = \int_{-\infty}^{\infty} \dfrac{f(x)}{g(x)}g(x)dx  = E_g \left[\dfrac{f(x)}{g(x)}  \right].$$
So you can get $N$ numbers from $g$, $x_1, \dots, x_N$, and calculate
$$\dfrac{1}{N}\sum_{i=1}^{N}\dfrac{f(x_i)}{g(x_i)} \approx \int_{-\infty}^{\infty} f(x) .$$
Thus, your choice of $g$ will lead to different estimators. @Alex R. in their answer used the uniform distribution pdf
$$g(x) = \dfrac{1}{b-a} I_{a < x<b}. $$
However, in that case you are sampling from a Uniform distribution from the whole real line, and such a distribution does not exist, thus $g$ cannot be the pdf of a uniform distribution.
I believe there might a typo in the notes, since the following R code seems to suggest that a Monte Carlo estimate of $\int_{-\infty}^{\infty} f(x)$ can be obtained. Here I use $g$ to be the pdf of a $N(0,100)$, where $100$ is the variance.
<code>set.seed(1)
N <- 1e4
f <- function(x)
{
  y <- ifelse(abs(x) > 4, 1/x^2, 1/16)
  return(y)
}
# Draws from g
prop <- rnorm(N, 0, 10)
#Evaluate g(x)
g_prop <- dnorm(prop, 0, 10)
#Evaluate f(x)
f_prop <- f(prop)

mc_est <- sum(f_prop/g_prop)/N
mc_est
[1] 0.9502994
</code>
I can probably use a better $g$ to get a better estimate, but it looks like Monte Carlo integration is possible. Maybe the question wanted to say "... estimate the value of $\int_{-\infty}^{\infty} x f(x) dx$". In which case Monte Carlo is not possible since the quantity you want to estimate does not exist.

Monte Carlo method cannot be used


When does Wisp appear in Animal Crossing: City Folk, and where is he?

Question: I have looked at a bunch of websites similar to this one, and all of the answers are rather vague. I have collected 3 lamps now, and I have no clue where to find Wisp. I am pretty sure that it has to be after nine pm, but, other than that, I don't know how to find Wisp. Where should I search for him? What day of the week? Does weather affect when and where to find him?
Answer: According to this website:

He will appear in your town on a random day; any day of the week. The only time that you may find him is when it is late at night. However, there is a surefire way of knowing that he is in your town that day. If you see a genie lamp laying on the ground near a tree or a building, that guarantees that Wisp is in your town tonight. If you find Wisp before the lamp, then you must find the lamp after you talk to Wisp. If you find the lamp first, search around for Wisp - he is usually found near the beach but could be anywhere. Eventually a text box will pop up and Wisp will say "Psst ... come here." You will then have to play a game where he moves and you have to find him. After you catch up to Wisp yet again, he will say that he is scared and asks you to meet him in your attic. Proceed to your attic and rub your lamp. Wisp will appear and offer to grant you one of three wishes.


Making soap bubble input selection (like in apple music)

Question: The goal is to develop a widget where I can pass an array of strings and it generates the soap bubbles like in the video, including the physics effect when you drag them around. Does anyone know how to implement a widget like this, are there any libraries that provide the physics for the bubbles?
Here is the video I am talking about: https://youtu.be/ydYah_BXt9A?t=29
Answer: I had the same issue - ended up going with React Native and then embedding it into the flutter app
Here is an example project I found on GitHub that I used as foundation: react-native-bubble-select


JRuby and bindex: "ERROR: Failed to build gem native extension"

Question: I am trying to create a new Rails project (5.2.3), rails new test5. It fails during the "run bundle install":
Fetching bindex 0.7.0
Installing bindex 0.7.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

This then leads to further errors, with make not available, and it exits.
I am using JRuby (9.2.7), and that may well be why it fails to install native extensions, but I have no idea how to solve the issue. I have seen comments that suggest you can modify the gemfile so bindex is not required, but as this is a new project, there is no gemfile yet.
I can also see it if I do gem install bindex:
ERROR:  Error installing bindex:
        ERROR: Failed to build gem native extension.

    current directory: C:/jruby/jruby-184.108.40.206/lib/ruby/gems/shared/gems/bindex-0.7.0/ext/skiptrace

The background here is that I have an issue with Warbler on a fair sized project, and I thought it would be a good idea to see if I can use Warbler on a new project, to see if the project is the issue or Warbler. And then I failed at the first step... I have been using JRuby on Rails successfully in this project for 10 years (I am not a professional coder though!); it seems to be something that has updated recently.
I have also tried this (from here):
JRUBY_OPTS="-Xcext.enabled=true"
jruby -S gem install bindex

Also tried bindex 0.5.0 and 0.6.0.
I am on Windows 10 by the way.
Edited to add
I have tried changing the version of Java: Zulu 11 (64 bit), Zulu 8 (32 bit), 1.8.0 (on Win7). And the JRuby version: 9.2.7, 9.1.17.
If I remove Rails 5.2.3, and install 5.2.1, it will undate to 5.2.3 during the creation process, but does successfully create a new project. Trying to create a second project fails, because now it is on Rails 5.2.3 again.
Later, edited to add
I have tried this on a Windows 7 PC, with Java 8, JRuby 9.2.7 and Rails 5.2.3, and get the same error, so not somethung weird about my PC. And yet I still cannot see signs of other people with the error on the internet.
Comment: `jruby -S rails new blog --skip-listen` try to create application by using that command.
Comment: Does not work either, I get:`java.lang.IllegalCallerException: sun.nio.ch is not open to module org.jruby.dist
        at java.base/java.lang.Module.addOpens(Module.java:763)`
Answer: Disable the gem web-console in the Gemfile and the bindex requirement will also go away.


How can you replace a file on a raw device preserving filesystem integrity?

Question: Say I have a Linux system and want to write to a raw device. But I want to replace a certain file on this device with a new version. Can this be accomplished? I think with dd you could maybe write the new file starting from the offset of the old version. I guess if the new file has the same or smaller size as the old one everything should be fine. But what would happen if the new file is larger but the disk itself is not full? Would it overwrite other files and corrupt the filesystem? If so, can you prevent that? Can you replace files on compressed filesystems like btrfs too?
Comment: What (as in software, or driver etc) do you expect will confine your writes to the clusters/sectors occupied by your file? Short of implementing your own file system, it's very difficult. You are not saying what you are doing, so this is a pretty pointless discussion.l
Answer: You need to mount the filesystem. There is no such thing as "the offset of the old version": files can be fragmented. In order to modify the data, you would need to find the offsets and sizes of all the fragments. It would be even worse if the new version had a different size: you'd need to figure out where there is some free space for the extra data, and you'd need to update the directory data structures to indicate where the new blocks are.
You may find some code to do this in filesystem debuggers, but they are hard to use reliably and usually don't support writing much. The only easy-to-use, reliable code to modify data on a filesystem is the filesystem driver, which you access by mounting the filesystem.
A few filesystems (e.g. an optional feature of zfs and btrfs) even have file integrity data — they keep checksums of files or blocks to detect data corruption. With such filesystems, if you change the content of a data block in a file without changing the corresponding integrity data, you won't be able to read it, since the file will be corrupted.
There are a few cases where it may be possible to bypass the driver to overwrite a file's data without changing the file size, for example with some filesystems designed to be read-only (i.e. you prepare the filesystem, and then you write it to some flash memory and don't update it). If the data is compressed, it's only viable if the compressed size remains the same, of course. But generally speaking, mounting is the only way.
Comment: If you don't update the directory information and only overwrite the beginning of a file, the end will still be there. If you write more than the length of the file, you'll only see as much data as there was before, and it's Russian roulette regarding what you'd destroy.
Comment: I think with "mounting is the only way" you mean changing files on the the mounted filesystem? Or is there some way to use the information gathered by mounting the device and then writing on the raw device in a reliable way. A particular filesystem I had in mind when asking the question was the iso filesystem for cd/dvd images. This is read only by software. But when burned to an USB stick you can still write to the raw device. Do you see any chance to write to the iso image in a reliable way in this specific case?
Comment: @hid01 The ISO filesystem is a read-only-only filesystem, so it may be one of those places where it's possible as long as the file size remains the same, as I mention in my last paragraph. I didn't list it explicitly because I'm not familiar with it, so I don't know whether it would actually work.
Comment: Would it really need to be exactly the same size or could it be smaller too? In case the file would be larger would it destroy other files in each case or would it be like "russian roulette" ?
Comment: There is WinIso for manipulating ISO images. I am at a loss to understand why homegrowing something could be a better option.


Binomial Expansion to the power of a non-natural number

Question: What is the reasoning that $|x|$ has to be less than $1$ for $(1+x)^n$ when $n$ is not a natural number?
Comment: radius of convergence for taylor series.
Comment: Were |x| > 1, the terms in the expansion would grow without bound.
Answer: The radius of convergence $R$ of the power series $\sum_{k \geq 0} \binom{\alpha}{k} x^k$ is, by the ratio test,
$$ R = \lim_{k \to \infty} \left\lvert \frac{\binom{\alpha}{k}}{\binom{\alpha}{k+1}}\right\rvert = \lim_{k \to \infty} \left\lvert\frac{k+1}{\alpha - k}\right\rvert = 1$$
And so we are only guaranteed convergence for those $x \in \mathbb{C}$ satisfying $|x| < 1$.
Edit: I should add the caveat above that $\alpha \in \mathbb{C} \setminus \{0, 1, 2, \ldots\}$. If $\alpha$ is a nonnegative integer, then the sequence $\binom{\alpha}{0}, \binom{\alpha}{1}, \ldots$ is eventually zero, and the power series is just a polynomial, which converges everywhere.
Answer: If you want an intuitive explanation, then consider this scheme.
The Binomial expansion is a Taylor series at $x=0$.
The Taylor series is a polynomial that you can view as the polynomial that interpolates "a number" of points close to the origin.
Now, when $n$ is an integer, a polynomial of degree $n$ interpolating near the origin will also interpolate $(1+x)^n$ perfectly for $x \to \infty$.
If $n$ is not an integer, than for large $x$ $(1+x)^n \approx x^n$ and no polynomial of integral degree can approximate  a non integral power of x.


What is the upper limit of cake pan size before I definitely need a tube cake pan of angel food cake?

Question: I am actually making a giant cupcake and I have a paper mold that is about 6.5 inches and 7 inches high.  I am completely familiar with the mechanics of how angel food cakes and chiffons work, I just would like to know what the largest cake pan size I can use before I really NEED a center hole.
Answer: The answer, like most other things in life, is: "it depends". Angel food cake (and chiffon) can be very sensitive air pressure and humidity. You will find that on rainy days, the cake will rise higher and therefore have more of a tendency to collapse on you after baking. There really isn't a hard upper limit on when you'll need to use a tube pan.
That said, you might be able to get away with a 7-inch angel food cake if you do it at a low enough temperature and you're careful not to try baking it on a rainy day. You probably wouldn't get away with that using a 9-inch pan on any day, though. All you can do is try it and see what happens.


Could an electric centrifugal fan in space be used to propel a substance to create force?

Question:
Would an electric centrifugal-force fan (like that found in a blower motor) work in space to create force, by putting a substance (like silica sand or something slippery) through the centrifugal fan and directing the output like an engine?
Furthermore, could you then recapture the substance with a similar centrifugal-force fan spaced 1 or 2 meters apart with the input of the #2 fan directed toward the output of the first fan, and the #2's fan's output fed back to #1's fan as a closed looped design? Would this still create any type of force in space or a vacuum without gravity??
Answer: Answer to question 1:  I think Newton 3rd law would say that there will be a reaction force. So yes, I think it would work.
Comment: Please consider conservation of momentum in a closed system.
Comment: @PM2Ring It looks like this answer is just focusing on point 1, which would be fine I believe. Point 2 is where we get into trouble.
Comment: @Aaron Ok. Point 1 is fine. Point 2 is not.
Comment: Sorry if it was not clear, will edit the answer.
Answer: Point #1 is indeed how any "reaction motor" operates, including the small rocket thrusters normally used to do this.
Point #2 is ruled out by conservation of momentum: there is no way to make a "reactionless thruster" like this except in science fiction literature and movies. Here is an example which illustrates why:
Imagine that on our ship in space we have a big box of loose bicycle chain. we extend the end of that chain over a cog wheel connected to an electric motor. we turn on the motor so the cog wheel spits the chain out of the box and notice that this action produces a thrust force on the cog wheel, and our ship is propelled in the direction opposite the direction of the departing chain. That thrust lasts until we run out of chain.
Now imagine that we hook the two ends of the chain together so we never run out of chain, and turn on the cog motor. It spits chain out as before, but to recover the chain we must pull on it to reverse its direction and bring it back to the ship so we can spit it out again, right? The forces required to halt the chain's motion and reel it back in cancel the thrust generated by spitting the chain in the first place, and so this scheme cannot propel the ship.
Comment: To point 2, then. Say instead of a fan, we just put a big collection vessel behind the first motor a few meters after its output. There's no way we could use the material in that collection vessel again, as long as it's tethered to the first motor?
Comment: as long as that collection vessel is tied to the body of the ship in any way, it will apply a force to the ship which exactly cancels the thrust generated by the cog wheel throwing the chain.


Where's my recording on a Zoom H1

Question: I'm a novice recorder and was using my Zoom H1 for the first time yesterday.  I can't find the first meeting I recorded with it (omg) but I can find another longer meeting.  I had pushed the record button and saw the red light, but even after plugging the thing into my computer, that first file is nowhere.  I didn't delete it - where might it be?
Answer: Contrary to what Utopia said, you need to press the record button only once on the zoom H1. If you saw the red light (and the counter running), it was recording.
I have had a similar issue once with my H1, where after a series of recordings in recorder-unfriendly conditions (taped to the back of a car), one file became corrupt and the next one was missing.
I tried one of those drive rescue programs to see if the data was still on the memory card, but to no avail.
I'm guessing it happend because somehow the device switched off before it could write the latest recording to the card.
Comment: +1 on this comment.  Did the battery die?  If the battery goes dead before the recorder is stopped and can write to the FAT, then your data most likely went poof.  That happened to me with my H4n once.  Man, those things EAT batteries.
Answer: Zooms work this way:
You have to press the record button twice.
When you press it once, it goes into record ready mode and flashes red.
Press it twice, and it actually records...
That might be what happened and would explain the missing file.
Comment: actually the H1 is a little different.
as soon as you switch it on its monitoring and you only need to press record once.

as for the missing file, im not sure. you sure you didnt press the trash can button on the side?
Comment: Hmm - thanks for clarifying, @Jamie. I would plug the Zoom in and check inside every single folder on there. Is the second file named 02 or 01?
Comment: Thanks for writing.  Boy have I screwed up.  Glad I took notes during the meeting but now I need to hustle and make this somehow turn out.  Great learning experience for me.
Comment: The instructions didn't indicate pressing the record button twice, but now that I think of it, when using my guitar interface - it tells me to "arm" it before recording.  I didn't press the trashcan icon, but I probably did press the pause button.  I'm basically f'd at this point and have to scramble to remember everything everyone said (a bunch of recording artists!)  thanks again -
t

Where's my recording on a Zoom H1


(MetaMask) Changing the default gas

Question: I looked for a while on Google/here for if there's a way to manually set the default transaction gas fees, but couldn't find anything. Anyone know if this is possible in metamask? Basically I need super fast transactions all the time for time-sensative swapping on uniswap, so I want to set it to something like 160 gwei & 60000 gas limit so that I don't need to change the gas manually for every transaction. Anyone know if this is possible in metamask? If not, is there another way to achieve this?
Comment: Are you using remix to trigger transactions?
Comment: @EmrahSarıboz I just mean through the uniswap interface, if you think it'll be better to use remix I'll give it a go.
Answer: In metamask settings, advanced you can see this option that allows you to set up advanced gas settings at the time of sending of transaction. I don't think there is a way to have it be default at all times.
Comment: Yeah, got that on already, thanks for commenting.

(MetaMask) Changing the default gas


Importing blog articles from a WordPress site

Question: I am looking for a module to import any blog written on a WordPress site. Is there any module to do this?
Answer: Maybe WordPress Migrate is what you are looking for? Excerpt from its project page:

supports migrating WordPress blog exports (WXR format) into Drupal using the Migrate module. Import of posts, pages, comments, attachments, tags and categories is supported. Imports can be rolled back completely.
Answer: If you're looking for periodic imports from a WP site to Drupal, then one module solution is the Feeds module. It allows you to do periodic imports of RSS feeds. You can point it at your WP example.com/?feed=rss RSS feed and have it import in your content.
Comment: Let me try this. Do i have to add something else ?. I have just added added feeds module and passed the url of wp feeds with 15 minute of interval.
Comment: Thanks shawn it works. But i found it here aggregator/sources/1 how can directly post from wordpress blog to drupal post with url something like blog/test
Comment: That is from the Drupal core **Aggregator** module. It is similar, but different from **Feeds**. Aggregator allows you to _display_ RSS sources on your site. Feeds _imports_ content into the Drupal CMS. Follow this [tutorial](https://www.ostraining.com/blog/drupal/feeds/) for a detailed walkthrough of importing content through Feeds.


Would using activated carbon in a solar air collector help due to increased surface area?

Question: Basically put a light coat of activated carbon on the collector, because surface area is so great, but I cant find info on its ability to collect solar energy, esp. compared to other materials.   Im guessing not because its probably a poor thermal conductor.
Comment: Solar collectors usually have a coating designed to maximize absorbtion and minimize losses, how do you think adding a layer will help?
Comment: You've increased the surface area but will capture the same amount of sunlight. Each of those microscopic hills will have lower incident radiance on their slopes than on their tops. It won't work.
Answer: No, the carbon would just oxidize away. You add sunlight and air (including oxygen) to your carbon so you have all the ingredients to produce CO2.


A relative pronoun followed by a transitive verb like "find"

Question: The verb find + it is still valid in this type of sentence?
"I've used this type of syllabus which I don't find it suitable"
Should i omit the "it" in the sentence?
Comment: Yes, you should definitely omit *it*.
Comment: Yes, English does not use resumptive pronouns in relative clauses. The relative marker (_which_ in this case) refers to the same thing that _it_ does, but it's moved to the front to introduce the relative clause. When you ask a question with _which_ moved to the front, you don't put _it_ where _which_ used to be: _Which one did they ask you about?_ is OK, but not **Which one did they ask you about it?*
Comment: You would only use _it_ if you wrote it as an independent clause, e.g. _but I don't find it suitable_.
Answer:

I've used this type of syllabus which I don't find suitable.
*I've used this type of syllabus which I don't find it suitable. (ungrammatical)

This sentence has a relative clause which modifies the noun syllabus. The relative clause is this section here:

which I don't find suitable.

We understand which here as referring to the same thing as syllabus. If we take the rest of the clause after which as a normal sentence it will seem a bit odd:

I don't find suitable.

This is because there is a gap there where we would expect the object of the verb find. It must be empty in the full sentence. This gap tells us where the which fits into the clause. In other words we understand the gap as referring to the same thing as which and syllabus:

I've used this type of syllabus I don't find [ the type of syllabus.] suitable.

We can model the sentence like this:

I've used this type of syllabus1 which1 I don't find ___ 1 suitable.

In standard English that gap is important for showing where the antecedent noun and pronoun fit into the grammar of the clause. If we fill this gap with a pronoun it can make some sentences ambiguous as well as difficult to understand. In the Original Poster's particular sentence, although it's ungrammatical, it's understandable. This is because there is only one potential space for this gap - even though it has been filled with it (the word which cannot refer to I, because I is a person not a thing or a type of syllabus). However, when there is more than one potential gap, filling the actual gap with a pronoun can cause serious problems

You know Federer? *Well that man over there is the man I wanted him to beat him. (ungrammatical)

In the sentence above the speaker has filled the gap with the resumptive pronoun him. The problem here is that the gap could be in the place of either the  first him, or the second. So the sentence might mean either of the following:

That man over there is the man I wanted Federer to beat _____ .
that man over there is the man  I wanted _____ to beat Federer.

If we remove the ungrammatical resumptive pronoun, the meaning will be clear:

You know Federer? Well that man over there is the man I wanted to beat him.
You know Federer? Well that man over there is the man I wanted him to beat.

The Original Poster asks about whether there should be a resumptive pronoun it filling this gap, because the verb find is usually described as transitive. The answer, for standard Englishes, is No! The verb find actually is already transitive in this sentence. Depending on how you analyse the grammar, the word which or that gap in the sentence is functioning as the direct object of the verb find. We shouldn't insert an extra object here:

*I've used this type of syllabus which I don't find it suitable. (ungrammatical)
Answer: Not only are you omitting the "it" but also the "to be":

I don't find [it] [to be] suitable.

This is a typical and correct use of elliptical (omitted) phrases.


Relationship with special property.

Question: We say that a relationship $R$ has property $S$ when for $R \subset A \times A$ if for every $a \in A$ every path starts in $a$ has finite length.
Prove that it doesn't exist the such sentence $\phi$ in FO that $(A, E) \models \phi$ when $E$ has property $S$.
My solution:
Let assume that a such $\phi$ exists. Then, $\mathfrak{A} \models \neg \phi  \iff $ there exists infinite path starts in $a$ for any $a \in A$. Therefore we can differ two graphs:

The first one is finite "line".
The second one is infinite long line.
We can prove that it is not possible to differ them with Ehrenfeucht's game.
For $k$-round game we take the first one graph  and the second one of lenght $2^k+1$.
Right?

By Compactness theorem:
Let $\phi$ be an expected sentence. Let $\Delta = \{\phi \} \cup \Gamma$ . $\Gamma = \{e(c_i, c_{i+1} | i \in \mathbb{N}\} $ . Let's take finite $\Delta_0 \subset \Delta$. It is satisfable- it is easy to point a model:
$M = (A, \Sigma, E), \Sigma = \{ e, c_1, c_2, ...\}, A = \{ v_1, v_2, ..\}$
where $A$ is set of vertexes, $c_i $ are constant where $c_i = v_i$.
Just take a graph:
<code>* * * * * * *
</code>
And add to it edges by the following rule:
$e(v_i, v_j) \in E \iff e(c_i, c_j) \in \Delta_0$.
$\phi$ is satisfied because there is only finite number of edges so there exists only finite lenght path.
$\Delta_0 \cap \Gamma$ is also satisfied- it is a result from a construction of graph.
By compactness theorem $\Delta$ is satisfable. Contradiction. $\phi $ ensures that threre is no infinite length while $\Gamma$ enforces path: $v_1 \to v_2 \to v_3 ...$.
So, I proved it by showing that this property isn't axiomatizable. So, especially it is not definable. But, I would like to see how to show this more directly- I mean the situation when any property is axiomatizable but not definable. ( Do you know a such example as exercise?).
Answer: Your EF-solution does not work: spoiler can win in two moves (HINT: pick an endpoint of the long-but-finite line).
Compactness is the way to go here. Suppose $\varphi$ is true of exactly the relations with property $S$. Now, you want to build a model of $\varphi$ with an infinite path - do you see how to do this?  HINT: think about adding lots of new constant symbols $c_1, c_2, c_3, . . . $ and writing some sentences about them . . .
Comment: you obviously right. I edited. Now, I'll try to solve it using Compactness Theorem.

Relationship with special property.


Prove problem of Mathematical Reasoning

Question: The gcd of two integers $a$ and $b$ (both not zero) can be described as the smallest positive integer of the form $am+bn$, where $m,n \in \Bbb Z$. Prove that every positive $x$ of the the form $x=am+bn (m,n \in \Bbb Z)$ is an integral multiple of $d$= gcd$(a,b)$, i.e., prove that $$\{x|x=am+bn \text{ for some }m,n \in \Bbb Z \}=\{ x|x=cd \text{ for some }c \in \Bbb Z \}$$
(Use the Division Algorithm)
Comment: if $d=am+bn$ then $cd=cam+cbn$. For the other side it is enough to prove that $d|a$ and $d|b$. Commonly $gcd(a,b)$ is defined in such a way that it suffices these conditions.
Answer: Let $d=gcd(a,b)=am+bn$. Suppose $x=ap+bq$ where $p$ and $q$ are integers. If $x$ is not a multiple of $d$ then $x=cd+r$ where $c$ and $r$ are integers and $0<r<d$. Then, $r=a(p-cm)+b(q-cn)$ is less than gcd($a,b$) and contradicts definition of gcd.
Answer: This is actually what Bezout's Lemma states. It says that for a given integers $a$ and $b$, the equation:
$$ax + by = d$$
has an integer solution for $x,y$ iff the $d$ is a multiple of $(a,b)$. All values for $d$, i.e. all multiple of $(a,b)$ are called Bezout's coefficients for this equation. Also $d=(a,b)$ is the smallest possible value for which this equation has solution. Here's some details of the proof.
You can read the proof that's in the link that I've posted it's quite simple.

Prove problem of Mathematical Reasoning


Can't recall name of fantasy movie where a quest is completed and then a crystal shard for a crown is recovered

Question: I have a very faint memory of seeing a movie on TV, more than like in the early 80's, where the hero was completing quests which would result in crystal shards being restored on a crown.  When there was one shard left to collect, the hero's partner, a woman of course, sacrifices herself as she was the last shard.
Comment: Take a look at this [guide](http://meta.scifi.stackexchange.com/a/9337/68872) to help jog your memory and [edit] any more details. Specifically things like when you read it, or where? Also, take a look at our [tour] to get a better understanding of our site and earn your first [badge](http://scifi.stackexchange.com/help/badges)!
Comment: Sounds like The Dark Crystal. "On another planet in the distant past, a Gelfling embarks on a quest to find the missing shard of a magical crystal, and so restore order to his world." IMDB
Answer: This sounds a lot like the storyline that ran through Doctor Who's original 16th series/season, The Key To Time. They were theoretically gathering the six segments of the titular object. As with most of the show's series at that point, the 26 half-hours of the show were split into 6 stories, each one involving retrieving one of these six parts. The final part was the princess of a planet. She was not the lead character's partner; however, in the following series, the lead character's partner (Romana) regenerated, and in doing so chose to duplicate the form of the former princess.
Tom Baker played the Fourth Doctor, Mary Tamm played Romana during this series, and Lalla Ward played the princess, and Romana in the following two series of the show.  The show is a well-known BBC production. That series originally ran from September 1978 through February 1979. The show was frequently seen on US PBS stations through the 80's and 90's, and those may have had the option to show either the 26 individual episodes, or the 6 stories in their entirety.
UPDATE:
The titles of the six stories are:

The Ribos Operation
The Pirate Planet
The Stones of Blood
The Androids of Tara
The Power of Kroll
The Armageddon Factor (this would be the one you're remembering, where the princess turned into the sixth segment of the Key)
Comment: I do remember watching Dr. Who with Tom baker as the 4th doctor, so this is possible.  I'll have to find the episodes online, thank you.
Comment: FYI - Added the individual story titles - *The Armageddon Factor* is the last one, where the princess becomes the sixth segment of the Key.
Answer: Was it The Dark Crystal? It was a puppet movie by Jim Henson of Muppet fame.

On another planet in the distant past, a Gelfling embarks on a quest to find the missing shard of a magical crystal, and so restore order to his world. - imdb
Comment: Could you expand on this please, don't link us towards Wikipedia or any external site, rather bring the content here. Pointing out which points match the OP's criteria can help to improve this answer.
Comment: Negative, was not Dark Crystal; I remember the charters being human and live-action, not muppets.
Comment: Dark Crystal featured anthropomorphic-esque (ie - not fuzzy "Muppets" puppets) and was live action. The plot as described could easily be conflated with the plot of Dark Crystal. Might be worth giving the trailer a view at least unless you are entirely familiar w/ Dark Crystal and know absolutely certainly it is not it


Exception page on VisualForce

Question: I am using Salesforce community. The code was running fine until recently.
But, now if I open the same page I get the Exception page sying Error Occured While Loading the Page. When I check into debug, I am not able to understand what went wrong. I am not sure what the problem is. Or is there any way to atleast get the error message ?
Comment: Issue could be due to different problems, like null pointer, etc. Try opening same page as a admin, otherwise comment few lines of code in your controller to drill down the issue further.
Answer: When you create community you will get an Generic Excption page.
Edit the exception page and Change Site.Errormessage to Site.Errordescription and you will get actual message.
<apex:outputText styleClass="title" value="{!$Label.site.error}">
        <apex:param value="{!$Site.ErrorMessage}"/>

</apex:outputText>

change this into
<apex:outputText styleClass="title" value="{!$Label.site.error}">
      <apex:param value="{!$Site.ErrorDescription}"/>

</apex:outputText>

And from Winter 17  you need to set cookies to get proper debugs for guest user

Execute a command to set the cookie.
If you use a .force.com domain, use this command.
document.cookie="debug_logs=debug_logs;domain=.force.com";
If you use a custom domain (for example, yourCustomDomain.com), use this command.
document.cookie="debug_logs=debug_logs;domain=yourCustomDomain.com";
Answer:
I have written a blog post for troubleshooting such scenario, there are standard error pages for communities which we can override using custom vf pages to catch the exceptions and show the actual exception message which will be userfriendly.
Two options available on Force.com sites which gives the exact reason the particular error has pop-up are
$Site.ErrorMessage : Returns an error message for the current page if it's a designated error page for the site and an error exists; otherwise, returns an empty string.
$Site.ErrorDescription : Returns an error message for the current page if it's a designated error page for the site and an error exists; otherwise, returns an empty string.
     Ref: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_site.htm
Please refer following link this might help you to mitigate the issue, it has all the steps covered to create custom generic exception page.

Since this is a custom error page you can also customize this as per
  your need also you can handle different conditions (if there any) at controller side
  which adds more flexibility.

Error occurred while loading a Visualforce page
http://rubberduckingwithnachiket.blogspot.in/2017/01/error-occurred-while-loading.html
VisualforcePage : CustomErrorPage
<apex:page action="{!yourPageLevelAction}" controller="YourController" >
   <apex:outputText styleClass="title" value="{!failingPageResponse}">   </apex:outputText>
</apex:page>

Controller : YourController
public  class YourController {
    //Variable Declaration
    public String failingPageResponse { get; set; }

    public PageReference yourPageLevelAction()
   {
      failingPageResponse = Site.getErrorDescription();
      return null;
    }//yourPageLevelAction
}//YourController

Exception page on VisualForce


Vertical path of the michelson-morley experiment setup

Question: In an exercise I am asked to calculate the time taken for the light to travel the path $ct=\sqrt{L^2-v(\frac{t}{2})^2}\Rightarrow t=2\frac{L}{\sqrt{c^2-v^2}}$. Where the Pythagorean theorem was used to calculate the slanted path the light must travel with $L$ being the length of the vertical path from the first mirror (at the intersection paths) to the second mirror and $vt$ being the distance earth has traveled until the light reaches the second mirror.
Now what I don't understand is this: why can we equate the distance of the vertical path(s) to the slanted path(s) with $ct$ being the vertical path since $c$ is only the speed the light is traveling in the vertical path? Isn't the horizontal component of the light's velocity still $v$ if we assume or don't assume the existence of ether?
Answer: As the earth travels along, the light on the vertical path does not just go perpendicular. The photons travel every direction and the ones traveling diagonally will meet the first mirror further down the way. The photons still travel at the speed of light but follow a longer trajectory. The same is true for the photons returning.


How can I become a pilot in Tanzania?

Question: I am a student in Tanzania and it's required to take PGM (physics, geography and math) to qualify for studying as a pilot. After qualifying, what am I supposed to do to study for a CPL, and what help can I get if my financial status is limited? Are there any scholarships for people in this situation?
Comment: people, don't downvote just because the question is not a good fit for the site. have a bit of understanding for a new user who has to learn how the site works in addition to probably having to learn english as a second language.
Comment: @Federico In Tanzania, English is often a _third_ language. But I know many Americans with worse English than this person...
Answer: I don't really know how civilian or military pilot training takes place in Tanzania, but I might recommend that you make a visit to a fixed base operator at a local airport there in Tanzania and talk with the staff about flight training.  They may be able to assist your further on that path.
A basic Google Search for Flight Training in Tanzania turned up this place.  I don't know how close you are to Dar es Salaam, but they do have a private flight school out there and could better assist you.
As for scholarships for flight training, check these guys out.
Oh, and these guys as well.
Good Luck with your training.
Comment: I don't believe the AOPA or the "Fly Accelerated" site has any scholarships outside of the United States. Doing flight training in the United States is not outside the realm of possibility, but it isn't "in Tanzania".

How can I become a pilot in Tanzania?


Mining in the wallet

Question: Someone said me that I should give him my wallet email and then he will request for the mine from the mining network, after that he asked that you will receive email from that u will get code which u have to send me and then invest your bitcoin wallet with 50$.And after some hours I will get the profit in my wallet. Is this a scam?
Comment: If you did not create the bitcoin address to which the $50 must be sent, then most likely yes.
Comment: This is 100% a scam, mining **does not** work in the way this person has described to you. DO NOT EVER give out your password, private keys, seed phrases, login info, etc, to anybody. There is never any need to, anyone asking for that info is almost certainly trying to rob you.
Answer: Yes, it is a scam. You do not want to give the private key of your wallet to anyone. Do not deal with this person.
Answer: I'm not sure if you are talking about a private key, but if so NEVER give someone else your private key.
Either way, $50 worth of bitcoin doesn't matter to miners.  They just care about hash power.  Account holdings only matter in PoS.
In the end, yes this sounds like a scam

Mining in the wallet


What is a maintenance free battery?

Question: I have searched on Google but can't find anything. Could anyone please tell me what a maintenance free battery is? Perhaps some examples of maintenance free batteries and any good sites for further research could be provided.
Comment: https://www.google.com/search?q=battery+maintenance
Answer: The term "Maintenance Free Battery" is typically applied to sealed lead-acid batteries such as used for UPS units.
Traditional lead-acid batteries for automobiles needed the battery electrolyte topped up from time to time with distilled water, whereas the maintenance free ones neither need, nor support such maintenance.
Comment: @Pritesh No, the term is typically applied only to Sealed Lead Acid (SLA) batteries.
Comment: Thank you so much for answering could you please providing me some example of "Maintenance Free Battery"
Comment: https://www.google.com/search?q="maintenance+free+battery"&tbm=isch
Comment: @Anido Ghosh, Does Lithium and Ni-Cd battery are Maintenance Free Battery?  Thank you so much for answering Anindo bhai.
Answer: mantainance free bateries are the sealed ones, which you can't add clean water+sulphuric acid except in some cases i've seen people perforates the battery to reuse them mostly for a short time-period results as the sealed batteries have thinner lead plates which consume as fast as the chemicals so it would give you a margin of a months? until you replace them for newer ones

What is a maintenance free battery?


Greek letter shortcuts in Keynote 6.5

Question: I recently switched to Keynote for writing scientific talks. I use tons of greek letters and need a fast way to type them in. I have seen on other questions and forums that people just change the auto-correct settings to replace things like \lambda with the Greek letter. However, in Keynote 6.5 I cant seem to find the auto-correct settings to do this. Its looks like they moved it out of the preferences menu. Anyone know where this is, or have another solution?
Answer: Using the Keyboard System Preference, in combination with the Greek keyboard, I was able to get this to work.
Open System Preferences > Keyboard
Select the Keyboard tab and check Show Keyboard & Character Viewers in menu bar. The flag of your default language should now appear to the right of the Date/Time menu item.
Select the Input Sources tab > Add Greek keyboard
Select the Text tab > select then add \lambda to the Replace field
From the Character Viewer menu bar item, choose the Greek keyboard > Select the With field and type the 'l' key. This should insert the λ character in this field.

From the Character ViewSwitch back to the default keyboard.
Now, whenever you type \lambda you will see this replacement pop-up:

Repeat with other characters.
Comment: This worked great. Only weird thing for me was when I checked 'Show Keyboard & Character Viewers in menu bar', it showed some other symbol that brought up some sort of softKey window. Then when I unchecked this box the American flag popped up and everything worked as described. Maybe due to some other setting I have on somewhere. Thanks!
Answer: Another way is to modify whichever of  /System/Library/Input\ Methods/PressAndHold.app/Contents/PlugIns/PAH_Extension.appex/Contents/Resources/Keyboard*.plist your keyboard is using.  See also How to add characters to the press and hold character picker in OS X Lion?
Unfortunately, this requires disabling SIP, and you should save a copy to install again every time an OS update cancels your changes.  I updated mine to allow me to easily do pīnyīn along with a few other Polish/greek/French characters.  But changing the one in /Library (not SIP-protected) didn't work, and the one in /System/Library was overwritten by the next O.S. update.

Greek letter shortcuts in Keynote 6.5


What is the effect of robust estimators of covariance variance (Newey-West) on the VAR model?

Question: What will change in VAR model if I will introduce robust estimators of covariance variance (Newey-West)? Will only the interpretations change and the properties of the model remain the same? Or maybe nothing will change in the properties or interpretation of the model, but it will be resistant to autocorrelation?
Answer: The VAR is supposed to consider the auto correlation, if you suspect the correlation is still there test using more lags. Robust estimators (HAC and variants) usually do not change the estimated coefficients just the estimation of the error or confidence intervals. The interpretation is the same.
There is a related answer and a workaround here https://stats.stackexchange.com/a/390141.


No password prompt for serial connection

Question: I want to setup a password prompt (root user) when login through minicom (serial connection). After running passwd command (connected through ssh), i can setup a password for the root user. After that I will be asked for a password with every ssh connection. But unfortunately not when I connect serially. Any idea how I can setup password prompt for serial connection?
Comment: What are you presented with over that serial connection, instead?  You need to explain this in the question because the norm for local terminals on serial devices are a log on and a password prompt.  As long as you properly log off before switching off the terminal, that is.  https://unix.stackexchange.com/a/564944/5132
Answer: What are you presented with over that serial connection, instead?
1.) I run 'mincom' (on a computer that is serially connected to the device)
2.) then i see the minicom
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Nov 15 2018, 20:18:47.
Port /dev/ttyUSB1, 08:17:28
Press CTRL-A Z for help on special keys
3.) then I press Enter and am immediately connected serially on the device.
root@alfi:~# –


Possible to configure IntelliJ to invoke SmartType code completion without using a shortcut?

Question: Right now IntelliJ instantly pops-up a box with suggestions for code completion as I am typing. However the suggestions are just "basic", and not as "smart" as when I use the (Ctrl+Shift+Space) shortcut to invoke SmartType completion. Is there a way to configure IntelliJ to automatically invoke SmartType completion as I type?
Comment: There is no such setting. Note that this might not be a good idea. The list of smart type completion suggestions is smaller than the list of regular suggestions and does not include keywords and identifiers that you might need if you're retrieving a value of the expected type via a chained method call, array access or something like that.
Answer: It's not possible. No one asked for it, it provides only a few variants, it may suggest not what you want to write automatically and will produce unexpected results when completing automatically on space and dot.
Basic automatic completion is already designed to include smart variants at the top where possible.
Comment: Users interested in more details can refer to the [discussion here](http://youtrack.jetbrains.com/issue/IDEABKL-6716).


Conditional formatting in MS Project Online Desktop (2019?)

Question: I've created a new column that has "Status Notes" with the following dropdown. I'd like the background to be shaded based on the following (in brackets). Can I do this in MSProject?
I came across a similar post (but didn't want to hijack theirs)
Applying conditional formatting on task status!
0 - Not assigned (white - no shading)
1 - In progress (white - no shading)
2 - Waiting for input (yellow shading)
3 - Issue (red shading)
4 - Completed (green shading)
5 - Ongoing (no end date) (white - no shading)
6 - Cancelled (grey shading)
Answer: Conditional shading of a cell or row in Microsoft Project is not possible. What I would recommend is to add a graphical indicator to your "Status Notes" field. The graphical indicator won't shade the entire cell or row, but it will give a graphical indicator just like you are looking for. To do this, go to the Project tab --> Custom Fields and choose the field that you are using for your "Status Notes" field. Then click on the Graphical Indicator... button and set it as shown below:
Test - Equals
Value - 0
Image - Leave Blank or choose a white image
Test - Equals
Value - 1
Image - Leave Blank or choose a white image
Test - Equals
Value - 2
Image - Yellow dot
And so on...
Then, you just need to select your appropriate dropdown value in the cell and it will automatically display the appropriate colored dot. Not the ideal situation, but it does work.
You could also add the graphical indicator to a different field and just reference the "Status Notes" field in the formula field of the new field. For example, if your "Status Notes" field is Number1, then you would enter [Number1] into the formula box of the new graphical indicator field...
Hope that helps!


Can I use tasker to turn LTE/4G mode on/off on my Droid Bionic?

Question: I'd like to turn LTE on while I'm at work and off at home; I have the appropriate profiles, but I can't find an appropriate action.   Is this something that could be done with an intent?
Answer: I was hoping the "Wimax" or "Mobile Data 2G/3G" Net Actions would be what you need, but after looking around it doesn't look like Tasker supports 4G on/off switching. Per Tasker forum user Pent regarding this issue (on a different phone):

If this isn't currently a feature is there any way to implement it?

It isn't and there's no 'official' way to implement it. I was hoping
  there would be something in ICS, but don't think there is after a
  quick scan.
One day I'll have to do some research, but I prefer working on
  features that will still work going forwards and benefit everyone.
Pent

Sorry for the bad news.
Comment: Thanks.   I found [this writeup](http://developer.motorola.com/docstools/library/detecting-and-using-lte-networks/) on the Motorolo dev site that talks about how to detect the network type, but I found no sign of an API that would let you change the preference, so there's probably no way for Tasker to implement it.  :-(
Answer: Why don't you just go to settings then wireless and networks then mobile networks and change it from both 4G LTE/CDMA to just CDMA when you get off work? Problem solved, check it out.
Comment: The point of apps like Tasker is to automate tasks like what you describe. You can't do anything with Tasker you couldn't already do manually. So, your answer isn't really an answer.
Comment: Gina, that's what I've been doing, but @Al Everett is exactly right; I was hoping that Tasker could take care of it for me.


What graphical techniques are used in Structural Equation Modeling?

Question: I'm curious if there are graphical techniques particular, or more applicable, to structural equation modeling.  I guess this could fall into categories for exploratory tools for covariance analysis or graphical diagnostics for SEM model evaluation.  (I'm not really thinking of path/graph diagrams here.)
Comment: The term "SEM" is vague. It could also mean "Search Engine Marketing", for instance, for someone looking for statistical analysis techniques for studying ad click data or evaluating advertising effectiveness. Consider making the title more verbose.
Answer: I met Laura Trinchera who contributed a nice R package for PLS-path modeling, plspm. It includes several graphical output for various kind of 2- and k-block data structures.
I just discovered the plotSEMM R package. It's more related to your second point, though, and is restricted to graphing bivariate relationships.
As for recent references on diagnostic plot for SEMs, here are two papers that may be interesting (for the second one, I just browsed the abstract recently but cannot find an ungated version):

Sanchez BN, Houseman EA, and Ryan LM. Residual-Based Diagnostics for Structural Equation Models. Biometrics (2009) 65, 104–115
Yuan KH and Hayashi K. Fitting data to model: Structural equation modeling diagnosis using two scatter plots, Psychological Methods (2010)
Porzio GC and Vitale MP. Discovering interaction in Structural Equation Models through a diagnostic plot. ISI 58th World Congress (2011).
Comment: @ars So, I'd like to suggest the following papers from Father & Son: http://j.mp/dvEDgb, http://j.mp/csD1Yf, http://j.mp/dkEHq5.
Comment: @chl: thanks!  I remember plspm being announced on the semnet list -- for some reason PLS isn't as big on this side of the Atlantic, not sure why.  plotSEMM looks really interesting, can't wait to play with it.
Comment: @chl: btw, I meant to add that it's shame PLS isn't more noted here, since there seems to be a lot of exciting stuff happening around it, especially with tools being developed (e.g. SmartPLS in addition to plspm).  I read some of Wold's work a while back and some of his ideas are only just being realized (e.g. "having a conversation with your data").  I really need to set aside some time to explore it more.
Comment: @ars Do you want a list of recommend readings? I also worked with Arthur Tenenhaus who submitted a nice paper with his father (yes, Michel Tenenhaus) to Psychometrika: They are unifying all two-block methods (PCA, CCA, PLS, inter-battery, etc.) thanks to a very neat rewrite of the argmax constraint. I've been playing myself with penalized PLS/CCA (L1/L2) in genomics, but I feel it will bring more interesting on my biomedical data.
Answer: This is a very interesting question. Suppose that we have a 2 dimensional covariance matrix (very unrealistic example for SEM but please bear with me). Then you can plot the iso-contours for the observed covariance matrix vis-a-vis the estimated covariance matrix to get a sense of model fit.
However, in reality you will a high-dimensional covariance matrix. In such a situation, you could probably do several 2 dimensional plots taking 2 variables at a time. Not the ideal solution but perhaps may help to some extent.
Edit
A slightly better method is to perform Principal Component Analysis (PCA) on the observed covariance matrix. Save the projection matrix from the PCA analysis on the observed covariance matrix. Use this projection matrix to transform the estimated covariance matrix.
We then plot iso-contours for the two highest variances of the rotated observed covariance matrix vis-a-vis the estimated covariance matrix. Depending on how many plots we want to do we can take the second and the third highest variances etc. We start from the highest variances as we want to explain as much variation in our data as possible.
Comment: Srikant, thanks for the response!  I'm not sure what you mean by contour plots of covariances (obs v est) -- could you elaborate?  Thanks.
Comment: See this: http://en.wikipedia.org/wiki/Level_set. Let Sigma be a a 2 dimensional covariance matrix and Y ~ N(0, Sigma). An iso-contour line would plot the set of points Y for which f(Y|sigma) = c where c is a constant. Note that Y is a 2-dimensional vector. You would choose various values of c and hence obtain different iso-contour lines which would give you a sens of the spread of the distribution.
Comment: @Srikant, thanks for the suggestion.  I spent some time trying it out and it seems like a good start at getting a quick visual comparison, especially when the fit is bad.
Answer: I suppose you could do a multidimensional scaling of the correlation or covariance matrix. It's not exactly structural equation modelling, but it might highlight patterns and structure in the correlation or covariance matrix. This could then be formalised with an appropriate model.
Comment: Thanks Jeromy.  Just read the Wikipedia entry for MDS -- seems like it could lead somewhere.
Answer: If there is an interaction effect(or even otherwise) you could use the sofware ITALASSI v1.2 (free software) to get 2D and 3D views


$S_{0.5}$ vs $K_m$ values in enzyme kinetics

Question: What is the difference between $S_{0.5}$ values and $K_m$ values in enzyme kinetics?
Comment: What do you mean by S0.5? $K_M$ is the concentration of substrate at the point when the rate of the reaction is 0.5 of the maximal rate ($V_{max}$).
Comment: Km applies to a data set exhibiting MM kinetics, i.e. it has a "mathematical" underpinning. Presumably S0.5 is simply the observed substrate concentration for 0.5 x Vmax regardless of whether the data fit MM?
Comment: I edited the Mathjax into the title as well, as it seems to yield an appropriate URL slug: `http://biology.stackexchange.com/questions/5004/s-0-5-vs-k-m-values-in-enzyme-kinetics`
Comment: probably worth looking at http://biology.stackexchange.com/questions/3147/is-the-ec50-of-an-activating-protein-for-an-enzyme-a-good-indicator-for-the-bind
Answer: This expands my comment on the question to an answer.
If an enzyme exhibits Michaelis-Menten kinetics, then it is valid to define a KM and this equates to the substrate concentration when reaction velocity is 0.5 * Vmax.
However, many enzymes do not exhibit Michaelis-Menten kinetics. One example is when the enzyme shows a co-operative response to substrate concentration. In these circumstances the substrate concentration when reaction velocity is 0.5 * Vmax is still a useful parameter, but there is no KM.
See this paper for a discussion of the kinetic properties of the glucokinase of pancreatic β cells, which acts as the glucose sensor. This enzyme shows positive co-operativity with respect to its substrate glucose, and the authors develop a kinetic analysis in terms of various parameters. These include an S0.5 value for glucose, but a KM value for ATP (presumably because the kinetics with respect to ATP are simple Michaelis-Menten).


Howto record audio output on my Mac?

Question: How am I able to record the output on my Mac meanwhile I am listening it with earplug? i.e. listen something in browser in youtube and I want to record it as well?
Answer: Need two thing to be able to listen music and same time record it:

Download / Install Soundflower
Change Audio Midi Setup:

If you open OSX's 'Audio Midi Setup' program then from the Window menu choose 'show audio window', you can click the + button in the bottom left corner & create a multi-output device. Then you just check the boxes for both soundflower and the built in output and Bob's your uncle - you can hear it as well as record it.

Howto record audio output on my Mac?


Emerson Sensi Touch C wire help needed

Question: I am heating with a fuel oil boiler in the basement and a Unico air conditioning unit in the attic. I some help getting past the c wire issue. Air is using yellow, green and red-c and heat is using red-h and white. No c wire is coming from the boiler but the air conditioning unit is directly above the thermostat. I could pull a c wire if necessary. The problem is getting the Sensi Touch to control both heat and air. Is an isolation transformer a possibility? Emerson also tells me I can use an external transformer to power the Sensi Touch but it will only control heat or air but not both. Picture one is the Sensi Touch. Picture two is the wiring diagram from Unico. Is seems like this could work. Please help. We are pretty far out in the country and finding an A/C service tech who can help has proven to be impossible.
Comment: It appears your photos didn't post...
Answer: You just need to pull a C-wire from the AC air handler above the thermostat.  Most smart thermostats power themselves from Rc and C, and only use Rh to signal heating, so your setup is very "typical" and is what they design for.  I have seen a question where someone wanted to pull a C wire from the furnace (power from Rh and C), and that was more complicated and not "supported" by their thermostat, but you should be fine.

Emerson Sensi Touch C wire help needed


Hotspot dropping

Question: Ok guys, I serched all the internet for a solution and couldn`t find...
I found a couple of topics about hotspot problems here and there but none of them were exactly my problem or would fix my problem...
I have a Moto X Play, and when I create an wi-fi hotspot to use the internet on my laptop, every few seconds, sometimes minutes, the hotspot signal is gone, and than it comes back by itself...  after a while it doesn`t come back at all and I have to reset my phone,
When I enter my hotspot configs there's no such thing as "timeout option", as there are in other Androids,
I saw a guy saying that he fixed his problem by removing the screen block pattern and changing the sleep time to 15s. For me it doesn`t work..
What it looks like is that when my 4g signal is a bit low, the hotspot turns off and on again, maybe to try to get a better signal, but I don`t know.
Somewhere I found people saying that it was some config about battery-saving. I tried to change some of those configs on my battery options, as to change Android System for example from 'saving battery' to 'not save battery' but it also didn`t work..
If anyone has a tip or know how to fix it please let me know, Im desperate already. My laptop has few USB sockets and it`d be good if I didn't have to use 1 for USB-tethering.
Thanks in advance,
Answer: Scan and clean your mobile using Cache cleaner or Internet booster application may solve your issue

Hotspot dropping


Dynamic Select Boxes with forms

Question: I'm fairly new at Ruby and Rails and have been having some trouble trying to figure out an easy way of doing dynamic drop down list.
I've been trying to follow guide to do what I want to do, but I've stumble on a few issues and would like your guy's help.
So what I have is 4 tables [Client, Project, Category, MeetingMinute]
What I want to do is to create a form for MeetingMinute in such a way that the user would first select the Client which then would auto populate the Project dropdown list. And when a subset of the Project is selected, again, the category would be filtered specifically for the project.
I've been using this site as a reference http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/
I'm able to it to run on the example, but when I have the example used under a
<% form_for(@Project) do |f| %>
I'm not too sure how I can pass the |f| to the partial and use the
<%= f.select :project_id, options_from_collection_for_select ...
If anyone have a better reference or solution, please provide. I appreciate your time and help. Thanks.
Answer: This might be useful.
http://railscasts.com/episodes/88-dynamic-select-menus

Dynamic Select Boxes with forms


How long do breadcrumbs last?

Question: I'm currently trying to make a dish that calls for breadcrumbs, but the only ones I have expired on October 22 of 2019.  They are unopened and were kept in a cool dry place. It sounds stupid but are these still usable?
Answer: If they're the dried bought type, they keep almost indefinitely so long as they stay dry (even open; I use them very slowly) . The date is about quality not safety.
As always, if there seems to be anything wrong, such as signs of dampness on the container (at least here they're packed in cardboard), be more cautious
Comment: Perhaps, but I can get two types here, fully well-known, branded from the supermarket in a posh carton, or 'fresh in a sealed bag', from the local 'deli' [but still a proper commercial product, not  in any way home-made]. The former has a year on it to start with, the latter only a month. the former looks like 'breadcrumbs', the latter like actual crumbs of bread.
Comment: @Tetsujin they may be bought, but I reckon the second type aren't dried, and therefore aren't what I'm talking about. They could be partially dried to get a month's shelf life but I haven't seen those myself. I normally freeze home made crumbs, but have tried drying them. If further crumbled (food processor) after drying in a cool oven they look a lot like the supermarket ones, and keep just as well

How long do breadcrumbs last?


New featurs in SharePoint 2016 and office 365

Question: Hi what are the new features added in SharePoint 2016 as per office 365 and SharePoint online and adfs
Answer: For sharepoint 2016, there are many new features, some are as fellow

MinRole topology
Durable links, Resource-based URLs now retain links when documents are renamed or moved in SharePoint.
Encrypted Connections,SharePoint Server 2016 supports TLS 1.2 connection encryption by default.
Fast Site Collection Creation,The Fast Site Collection Creation feature is a rapid method to create site collections and sites in SharePoint.
Filenames - expanded support for special characters,SharePoint Server 2016 now supports using some special characters in file names that were blocked in previous versions.
Identify and search for sensitive content,SharePoint Server 2016 now provides the same data loss prevention capabilities as Office 365.
Large file support,SharePoint Server 2016 now supports uploading and downloading files larger than 2,047 MB.
Mobile experience,SharePoint Server 2016 offers an improved mobile navigation experience.
New controls for working with OneDrive for Business
New Recycle Bin in OneDrive and Team sites

Read complete list here
Answer: Regarding new features added in SharePoint 2016 as per office 365 and SharePoint online

Document conversations in OneDrive for Business and SharePoint Online
SharePoint Online Encryption "At Rest"
Site folders in OneDrive for Business and SharePoint Online
Data Loss Prevention in SharePoint Online
New Experience for SharePoint lists / Library.
Use Microsoft Flow to automate workflows
Use PowerApps to connect SharePoint lists and Libraries as a data source
SharePoint mobile app for iOS
Upload and manage videos with Office 365 Video

For more details check

Thrilling New Updates in SharePoint for Office 365
What's new in Microsoft SharePoint Online

If you asked about new features for SharePoint 2016 on-prem , Mr @Waqas have mentioned this also I have summaries most of the new and deprecated features at Simply, What's new and deprecated features in SharePoint Server 2016 ?


Force on moving mass from magnet and coil

Question: I have two parts:

The first part is fixed.
The second part can move with respect to the first part.

A permanent magnet is attached to the first part and a coil is attached to the second part.
When there is current in the coil, Lorentz force is applied to the coil from the magnetic flux induced by the magnet, and the same amount of force is applied on the second part, causing it to move.
My question is: Will the magnetic permeability of the second part affect the force that moves it.
The permeability definitely changes the magnetic flux flowing through the coil. So the force applied to the coil must change.
From here I have two theories:

According to Newton's 3rd law, the "difference" in the magnetic flux generates a reaction force that is applied to the moving part itself (hence not moving it) and not to the fixed part, so the force stays the same - it is not affected by the magnetic permeability of the moving part.
The permeability only changes the direction of the magnetic flux. The magnetic flux is generated by the permanent magnet so the reaction force is applied to the permanent magnet, hence the force that moves the second part also changes with respect to the permeability of the moving part.

Does someone know which one is correct?
Answer: The atomic dipoles in a ferromagnetic material will be subject to force when placed in a non-uniform external magnetic field.  The net force will depend on how well the dipoles align with each other and with the external field. This in tern depends on the permeability of the material.


Is there any published resource on how many words chapters should be?

Question: I'm aware of the rules of thumb (around 3,000 - 5,000 words, depending on whom you ask), but has this actually been written in a credible manual for writers that can be cited (not a website)?
Comment: You asked for something from a credible manual for writers to cite and specifically not a website. Frame challenge: I would argue that the following is a much more objective source than a writer's manual. The website Scribophile is a critique website where writers exchange critiques. They have hundreds of thousands of data points and they've discovered that people's attention spans are good for about 3,000 words. That's much more objective than an individual's opinion in a writer's manual.
Comment: There's a [number of](/questions/36349/) [questions](/questions/41/) [on the site](/questions/62015/) addressing chapter length, but none of the ones I scanned mention any book/paper as source for a given chapter length. Are you looking more for answers from how-to-write books from well-known authors, or more from the angle of academic research into writing/reading?
Comment: @towr this is for academic research, so I can't cite stackexchange or blogs. If there was some sort of credible writing organization that put some rules of thumb in writing, then I think that would do, but I'm having difficulty finding those online.
Comment: Have you tried [Google Scholar](https://scholar.google.se/)? There could be some articles there. (Most seem to cover specific authors or works.) You might also have some luck searching articles from your UNI library. But I question the scientific relevance of such a number since chapter lengths can vary wildly in fiction, as can scene lengths, even the word count of the whole book varies quite much even in the same genre.
Comment: @Erk I did, but nothing came up (in contrast, blogs and websites on the topic are easy to find). I suppose that nobody writes papers on the lengths of chapters per se, but it could be buried in some article that is on a completely different topic.
Answer: There are various factors which determine 'ideal' length - and these include cost factors, publishers' preferences/experiences, and readership preferences.
I wouldn't be surprised if an 'ideal' chapter:work length were to connect in some way to a mathematical part:whole ratio like the Golden Section, as Don Paterson argues in relation to sonnet structure in the introduction of his 101 Sonnets collection.
For referencing in an academic paper, however, I don't see a problem with citing Reedsy's articles on chapter length and novel length.
There is a short section on how to estimate length for a non-fiction book proposal (based on multiplying the average length of the sample chapters by the proposed number of chapters in the envisaged book), and giving an estimated page range for the MS based on a 'standard 250 words per double-spaced page' in Elizabeth Lyon's Nonfiction Book Proposals Anybody Can Write (Perigree: NY, 2002, 171).
You might contact Writer's Digest, who publish extensively on the topic of writing and publishing and put the question to them.
Comment: Awesome, thank you! I've read the Reedsy article but was unaware of how citable it was. I guess that will do for now.
Answer: If a manual wrote an answer to your question, I wouldn't consider it credible. There isn't an answer that fits every, or even most books, because writing is a craft that relies on people making decisions about things such as where to end chapters.
You don't specify if you are talking about fiction or non-fiction. If you are writing fiction you need to consider things like cliffhangers, pace and structure.
If you are writing non-fiction, you have to consider the genre: coffee table book, PHD thesis, etc.
Why do you need something that can be cited that isn't a website?
Comment: It's a reference for an academic paper, and I'm looking for chapter lengths for fiction (nonfiction would be good info too though if that's available). A website may be fine if it was from some credible writing organization, something like the Chicago Manual of Style.


Letter "p" in "consumption" word?

Question: The letter p "consumption" seems odd for me. Why does it not similar to "collect"+"ion"->"collection"? Is there any other similar noun?
Comment: This question might get better answers on [English Language & Usage](http://english.stackexchange.com), or in the Oxford English Dictionary or another etymological dictionary.
Comment: In Oald's pronunciation the p is pronounced. http://www.oxfordlearnersdictionaries.com/definition/english/consumption?q=consumption
Answer: Both consumption and collection are derived from Latin past participle stems, consumpt-, collect-. The -tion suffix is an extension of the PaPpl -txx stem.
The difference in the two lies not in the -tion forms but in the underlying verbs. Our verb consume is derived from the indicative consumo rather than the PaPpl consumpt-, whereas our verb collect is derived from the past participle collect- rather than from the indicative colligo.
The Latin PaPpl is most often constructed by adding -t- to the stem, which in many contexts changes the final sound in the stem.  For instance:

adding voiceless /t/ to a stem ending in voiced /g/ may result in /kt/ (spelled ‹ct›), with the /g/ "devoiced" to /k/. Compare correct and corrigible.
adding /t/ to a stem ending in voiced /m/ may cause the sound to be "closed" with the voiceless stop /p/ pronounced at the same point, anticipating the voiceless stop /t/. Compare redeem and redemption.
Comment: @PHPst Sorry, Past Participle.
Comment: I think "Past Participle" is generally abbreviated as "p.p."   Is it your personal style of writing that?
Comment: @PHPst Yes - 'pp' might also be 'present participle' or 'preposition phrase', so I prefer something less ambiguous.
Answer: I have no sources and I'm horribly unqualified, but... to me this is reminiscent of the German "Fugenelement," which is a sound that is added based on phonetic context.  In other words, in this example the "p" kind of rolls off the tongue anyway, so it is added to transition from the bilabial nasal [m] to the denti-alveolar stop [t].  A similar phenomenon: have you ever heard people pronounce "hamster" as "hampster"?
Again, don't quote me on anything; this is just food for thought.

Letter "p" in "consumption" word?


Are there any actions professors can take online to contribute towards "service requirements"?

Question: I would like to fulfill my service requirements for the tenure review process.  My question: Is it possible to help fulfill these requirements through on-line activities?  E.g. Mentoring students online, or participating in some sort of on-line collaborative community?
Comment: That's going to be up to whoever is implementing and reviewing this policy for your school. Ask them.
Comment: @scaaahu: The question was tagged *tenure track* from the beginning.
Comment: I voted to close as the service requirements very wildly by departments, divisions, and schools. It's impossible to give a definitive answer for the OPs particular case. The question should be written more generally.
Comment: Can you give more context to the question for better understanding.
Comment: @MrMeritology Although I voted to re-open this question because it makes some sense to me. But, I have a question for you: How do you know the service requirements is for the tenure review process? The OP did not say that.
Comment: I don't really understand the "online" restriction. In this day and age, practically every interaction between people will involve some online component. Are you saying you specifically want to avoid having to interact with people any other way? If so, why?
Answer: @keshlam's comment is correct:  this is a question for the folks in your department. There are activities (internal and external) that feel like "service" that are not viewed as "service" ... it varies by department and school.  Just like expectations for research and teaching.
And make sure you ask folks who are giving you fact-based, not opinion-based answers.  You should have a tenured faculty mentor (if you don't, get one!), but they might not know the facts on this.  There should be an RPT chair in your department or school:  ask them.  You might also ask your chair:  if they chair views what you are doing as reasonable service, they may be able to argue for it counting, even if it's unusual.
But, in the end, this is not a question for anyone outside your school.  We don't vote. :)


Find Acronym with Regular Expression Dreamweaver

Question: I have 2000 page website and it contains over 500 acronyms. What Regular expression could I use to find all the acronyms in the text only? I'm using dream-weaver. Some examples would be AFD, GTDC, IJQW and so on.. these are 2 or more capitals might be bounded or surround by other characters. Such example would be (DFT) or l'WQF - any ideas??
Answer: If dreamweaver has search via grep capability, you could just search for any string of letters with all capitals, including whatever necessary punctuation you need, e.g. [A-Z'-]{3,}. The 3 is the minumum number of letters in the acronym... you can change that as needed.
This would probably be better done via shell script, though, just for speed's sake. Let us know what OS you're using and someone else can leave a comment as to how to script that, as I probably don't know.
Comment: Running XP and I will try your suggestion.


Differences between two regular expressions

Question: Do anybody know why this regex:
/^(([a-zA-Z0-9\(\)áéíóúÁÉÍÓÚñÑ,\.°-]+ *)+)$/

works but this one doesn't:
/^(([a-zA-Z0-9áéíóúÁÉÍÓÚñÑ,\.°-\(\)]+ *)+)$/

The difference is the place where the parenthesis are... I tryed with some online PHP regex testers and got the same result. The second one simply doesn't work...
PHP returns:
preg_match(): Compilation failed: range out of order in character class at offset 44 in...

This is not a critic question because I've managed to make it work but I have the curiosity!
Maybe the unicode characters are changing something?
Comment: You need to escape `-` when using at the middle of char class
Answer: When the - character is used inside of brackets (indicating a character set) it indicates a  range unless it is the last character in the set, first character in the set, or directly after the opening negating character. Then it means a literal dash. By moving it from the end to the middle you changed its meaning. If you want to keep it in the middle you will need to escape it: \-.
Comment: Wow! I feel very dumb... Thanks for your answer!
Comment: `it indicates a range unless it is the last character in the set.` is incorrect. The hyphen can be included right after the opening bracket, **or** right before the closing bracket, or right after the negating caret.
Answer: If the hyphen is placed as the first or last character in the character class, it is treated as a literal - (as opposed to a range), and as a result do not require escaping.
These are the positions where the hyphen do not need to be escaped:

right after the opening bracket ([), or
right before the closing bracket (]), or
right after the negating caret (^)

In the second regular expression, you're placing the hyphen in the middle, and the regular expression engine tries to create a range with the character before the hyphen, the character after the hyphen, and all characters that lie between them in numerical order. As such a range isn't possible, an error message is triggered. See asciitable.com for the character table.
Putting the hyphen last in the expression actually causes it to not require escaping, as it then can't be part of a range, however you might still want to get into the habit of always escaping it.
Answer: At your first regex you've managed every thing correctly even that - hyphen which is at the end of it. well it should be there too! I mean it has two places if you don't want to escape it, one place is at the end of char class and the other one at the beginning of char class!
You guessed nice! otherwise you should escape it!


Are event accessory items unique, or can we use 2 of the same accessory?

Question: In the event The Shadow Lord Invades, there is a Shantotto-specific accessory called the Golden Hairpin. Since our tiny sorc has 2 accessory slots like everyone else, does this mean I can craft 2 hairpins given enough materials, and if equipping them onto the same character will their effects stack?
Answer: As far as I have seen, all accessories can be worn twice (I.E. 2 ribbons, 2 hairpins, etc.).
Accessories and equipment can be exclusive to certain characters, but it will tell you that under it's secondary effects (when looking at the item's stats).
The only items that are unique would be Materia. Those usually have a small number 1 on the corner, showing you can only equip 1 of them, and it will tell you in the item's description.
Answer: I did some searching on event information, and people are discussing equipping Shantotto with 2 hairpins, robes and a rod (all her exclusive items) which indicates that the hairpin is not unique for a slot.
Note this answer only addresses the specific example I had in mind, but I don't know if other event accessories may be limited to 1 per character (or does FFBE even have such a modifier on equipment?)


how can i override method save plugin joomla 4

Question: I have custom plugin and I want to do something when my plugin save in admin panel of Joomla 4 . How can I override save method in plugin ?
Comment: I think you would get an onContentBeforeSave event being triggered when you tried to save the changes in the admin plugin form. If you wrote another plugin which listened for that, would that meet your needs?
Answer: You could create a Content plugin and use the onContentBeforeSave method like Robbie Jackson suggested.
If for some unknown reason it does not work, you could always write a system plugin and use onAfterInitialise or onAfterRoute and do something there. Only use this when you cannot use anything else.
Do you use an IDE like PHPStorm or VisualStudio? If you combine it with XDebug, you could set break points, and step through Joomla's code to find the places that you could trigger to do something with your code.


Holy PvP Paladin Weapon/Gear Enchant

Question: What is the best enchant to focus on getting on weapon/gear for PvP as a holy paladin?
Comment: Be advised, the answer to this question will change *radically* in about 4 weeks once Cataclysm hits, so YMMV as to the value of answers contained herein.
Answer: In Cataclysm, you're going to have two chief contenders, Heartsong and Hurricane.
Heartsong increases your Spirit, and Hurricane increases your haste rating. Given the climate of PvP, I think that Hurricane will be situationally better, simply because haste will always be useful, while you're unlikely to be guaranteed a situation to make full use of the spirit proc every time.
On the otherhand, the material requirements of Hurricane are greater, so if you are strapped for cash, you might want Heartsong in the meantime (especially if you're using the same weapon to raid with, not unlikely when Cataclysm first releases)
Heartsong
Hurricane

Holy PvP Paladin Weapon/Gear Enchant


Etherscan -> logs -> data -> receiptId

Question: what is the reciptId section in the data section. How can you include it in a transaction? new to ethereum so sorry if this is a stupid question. I would like to include the name of a person in the receiptid section ... is that possible
Comment: This is very transaction-specific. Can you include an example?
Answer: By receiptId, are you referring to the receipt of a transaction?
If so, we cannot put custom data in a transaction.
If you are referring to a contract event/log, then if the contract allows to send a custom string to be added into an event and emit it, then it could be done.
For example, in the following simple contract, the function sendPayment acts as an intermediate between two parties, one that wants to send some eth to the other and log some custom data into an event:
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

contract Contract {

    event Payment(address indexed from, address indexed to, string recipientName);

    function sendPayment(address from, address payable to, string memory recipientName) public payable {
        to.transfer(msg.value);
        emit Payment(from, to, recipientName);
    }
}

If needed, we could add more custom data to the Payment event and accept it in the sendPayment function and emit the event with that data.
Then, with the sender or recipient address, we could query the blockchain and get the event and read the custom data in it.
We could also query that event with the transaction hash.
This is one of the uses of smart contracts, to extend the functionality of the blockchain.

Etherscan -> logs -> data -> receiptId