SEO impact of using regional TLDs like .me

It is common that people use regional TLDs with a fake meaning to register a good-looking website. A famous example is .me, which is popularly offered by most of registrars alongside generic domains.  As far as I know, search engines somehow weight the regional websites. For example, a .ca is supported to be targeted in Canada. I understand that search engines are adjusted to the market popularity, but I am curious, if a regional TLD such as .me is considered as a generic TLD when targeting globally?  In general, my question is that how much TLD affects the SEO for global audience?


Why is my sudo PATH different than my normal user PATH?

I'm having trouble with my PATH.  I have a clean instance of an Amazon Linux virtual server and I set this in /etc/profile  M3_HOME=/usr/local/maven JAVA_HOME=/usr/java/latest PATH="$PATH:$M3_HOME/bin:$JAVA_HOME/bin"   In my myuser (my own user) account, I set this in my ~/.bash_profile  PATH=$PATH:$HOME/bin   And then when I output the "env" as my user I get  PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/maven/bin:/usr/java/latest/bin:/home/myuser/bin   But when I output it as sudo I get  sudo env PATH=/sbin:/bin:/usr/sbin:/usr/bin   How do I get my sudo user to use the same path as my normal user?


What's a good pay rate per level for a party for hire?

I've been running a campaign for a couple of sessions where the PCs are employed by a "Heroes' Guild" a la Fairy Tail or Fable. I don't have a huge grasp on how the game's economy works since I've only been running it for a short amount of time, and as we start taking on paid quests at level 2, I'd like to get a good figure on how much money the quests should be worth.  I know that the DMG has tables for money rewards per individual monster, and per hoard, but what about per adventuring day?  Obviously the rate should go up with the party's level as the quests get harder. I just haven't been able to find a table for that. So, assuming I replace most if not all of the coin a GM is supposed to dish out from session to session and compile it into a lump sum for a party of 4, what would that formula or table look like?


What LaTeX system should I use for an Ubuntu/Win7 dual boot environment?

I have a fresh install of a dual boot system with Windows 7 and Ubuntu 10.10. They live in separate partitions of the hard drive, invisible (unmounted...) to eachother, but have a common data partition which they can both reach.  Now, I want to be able to use LaTeX regardless of which OS I've booted. I've previoulsy used MiKTeX and TeXWorks on Windows, and been pretty satisfied with it, but I'm new to LaTeX on Ubuntu, so I have no prejudice on editors etc for this half. What I liked most about TeXWorks was the ability to compile the document without leaving the program, and the split view (source code on one half of the screen, output from latest compile run on the other), so if that's available in an Ubuntu IDE that's a plus.  The most important thing is that they share a package repository. In MiKTeX, packages I hadn't used before were automatically downloaded from CTAN when used the first time, which made things a lot simpler. I also had my own little collection of packages, in a separate root folder. Any setup that doesn't share all packages between the two operative systems, makes my life harder than it has to be =)  How do I best set up this? On which OS should I install what, and how? Does the installation order matter?  Any tips are welcome!


Variables correlated but not significant predictors of dependent variable in multiple regression

Two of my independent variables are correlated with the dependent variable but in multiple regression they turned out to be insignificant predictors of the same.   Is it possible? and how to report this difference in data interpretation?


So, the cut down vim-tiny is installed by default in Ubuntu. I don't mind using it, but I can't find documentation and most of the commands I'm used to from normal Vim don't work. So far I've discovered that :n and :N go between buffers and :split splits the screen (but Ctrl-W+S does not), :close closes a split, and Ctrl-W+W hops between splits.  What other commands am I missing?


What is the maximum size for a MySQL table? Is it 2 million at 50GB? 5 million at 80GB?  At the higher end of the size scale, do I need to think about compressing the data? Or perhaps splitting the table if it grew too big?


I have the following beginning on my tex file:  \documentclass[a4paper]{amsart} \usepackage[utf8]{inputenc} \usepackage[finnish]{babel} \usepackage{url}   Now I need to put an URL to the document that contains the letter ä. I tried to do this  \url{http://www.address.fi/kälä-example}. \url{http://www.address.fi/k\"al\"a-example}.   but this won't work in my system. Can I see those addresses properly somehow?


How many times may a character attempt a skill roll for the same test?

We have a rogue locked in a cell and he is trying to escape.   How many attempts does he get to try and unlock the same door with the same hairpin if no outside influences ever change?  I have a vague memory somewhere of a rule from maybe 2nd edition D&D that unless conditions change the character's roll (and hence their caged status) does not change no matter how long the character waits and they may only re-roll if something happens to improve their situation. For instance: their skill level improves from leveling up, they find a set of proper lockpicks, a second character is helping work the lock, etc.  I know many DMs that allow characters to re-roll these types of skill checks once a day, or every hour, or sometimes every 15 minutes. Is there a hard rule on this?


How to clear or remove domain-applied group policy settings after leaving the domain

It is a win7 ultimate x64 machine. The machine was in a domain where it got those group policy settings. Now it has left the domain but it still receives the settings from the group policy. For example, the power options. I set a certain power option but soon it will be reset to another power option which is endorsed by the domain.  Is there a way to remove the settings?


How to get random Decimal number from range?

I'm looking for a way how to generate random Decimal number within some range. For example -   >>> random.choice(range(Decimal(1.55,3.89)))  >>> 1.89   Is it possible to do that with random? I want to preserve 2 decimal places.   random.choice(range(Decimal(1.55,3.89)))    returns >>> 0


How do I resolve "%1 is not a valid Win32 application"?

Environment: Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1)  I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the "ASP.NET" tab isn't added to any of the sites in IIS.  In the IIS Web Service Extensions section, I have both "ASP.NET v2.0.50727" (Allowed), and "ASP.NET v2.0.50727 (32-bit)" (Prohibited).  The site in question has script-execute enabled.  Problem:  I created a super-simple ASP.NET/C# website: Default.aspx with a label id="Label1", and a code-behind with: Label1.text = "Hello World"; and the error I'm getting is:     %1 is not a valid Win32 application.


Typically mobile devices that have a mains-powered supply will accept voltage that is multiple of some single battery voltage. For example, 4.5 volts is 1.5 volts (AA primary battery) 3 times and 36 volts is 3.6 volts (Li-Ion battery) 10 times.  Now there're laptops that use external power supplies rated at exactly 19 volts. That isn't a multiple of anything suitable. Puzzles me a lot.  Where does this voltage originate from?


"It is ___ that/who + verb." pleonasm vs. "___ + verb."

Is there a place for using these pleonasms:  "It is John who runs." (instead of: "John runs.")  "It was congress that legislated." (instead of: "Congress legislated.")   ? It would seem to have its use only when what comes after the "that" is a long clause: Example from the intro. of :  It is an old observation that the best writers sometimes disregard the rules of rhetoric.  could be rewritten as:  That the best writers sometimes disregard the rules of rhetoric is an old observation.  But this isn't conciser.


Sitemap.xml doesn't seem to be working properly

I have a sitemap.xml on one of my domains. It contains the following:  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url>     <loc>http://www.domain.com</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.8</priority> </url> <url>     <loc>http://www.domain.com/blog</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url> <url>     <loc>http://www.domain.com/blog/blog-post-title-1/</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url> <url>     <loc>http://www.domain.com/blog/blog-post-title-2/</loc>     <lastmod>[date in 2013]</lastmod>     <changefreq>monthly</changefreq>     <priority>0.5</priority> </url>     Google in caching http://www.example.com perfectly but for some reason, it doesn't seem to be caching /blog very well. I would expect that the /blog would appear in the same search results that the search phrase for domain.com does - but it doesn't. It doesn't appear anywhere near the first couple pages for that search phrase (the search phrase is my personal name and it's a unique name so there's not much competition).  When I search "firstname lastname blog" - it comes up, but when I search "firstname lastname" only domain.com comes up.  Am I correct in thinking that something might be wrong with my sitemap.xml? I suspect that Google is not correctly caching /blog for some reason.


How to prove that UFD implies normal? or is there is a reference containing this proof? a ring $R$ is a normal ring if $R$ is an integral domain that is integrally closed in $\operatorname{frac}(R).$ And $R$ is integrally closed in a commutative ring $S$ iff the integral closure of $R$ in $S$ (int($R$)) equals $R$. And int($R$) consists of all $x \in S$ that is integral over R. And note that an element is integral over $R$ if there exists a monic polynomial $f(x) \in R[x]$ such that $f(x) = 0.$


Should "differentiate" be plural in this sentence?

What we know how to do and what we have done differentiate us from others.   or  What we know how to do and what we have done differentiates us from others.  Can anyone explain to me which is correct and why?


What happens if I "sleep" windows 10 while programs are running?

Suppose I click "sleep" to windows 10, I'm wondering for example, suppose these programs were busy at the moment of sleep, for example:  *Google drive uploading a recently locally edited file.  *a program running a process, such as a program calculating PI, or a video editor rendering.  What happens to this processes? Do they have to finish before sleeping? Do all the information saved to start from the same point when awake? Do they have to get killed before sleeping?


Why are A, B, C, and D not aligned? (tasks in beamer)

\documentclass{beamer} \usepackage{tasks} \begin{document} \begin{frame}[allowframebreaks]     $1+1=$(\makebox[2cm]{})         \begin{tasks}[counter-format = tsk[A]. ](2)             \task one             \task two             \task three             \task four         \end{tasks} \end{frame} \end{document}


Is it need or needs?        Highway 68 and Robinson Canyon Road need your support.   Highway 68 and Robinson Canyon Road needs your support.      I voted needs.


How to disable emoji substitution for pictographs/symbols in special characters?

When I try to insert a special character/symbol/pictograph that has an emoji equivalent, it always changes into the emoji instead. Is there a way to make it not do this? I am not asking about how to disable emoji substitution when typing smileys in Messages. This is happening wherever I try to insert a symbol--in Safari, TextEdit, and I even tried symbol and text substitution in System Preferences but the symbols turned into emoji there also.


I'm running Ubuntu 11.10 on a desktop, so I don't have fn, and the option doesn't appear in under System Settings > Screen as it apparently only appears if your computer is detected to be a laptop.  Is there any way to change screen brightness?


What does it mean "information can't be cloned"?

Information can never be lost. But what does it mean when it's said that information can't be cloned?


Someone recently downvoted something on stackoverflow, and then the user was deleted. Because of the deletion, I'm not sure what was downvoted or why, as there is no link provided like there are for every other action in my timeline. is there a way to figure out what was downvoted? this seems like a pretty easy way to troll someone.


How is the mahalanobis distance like the euclidean distance?

Let's say $\vec{x}$ is an $n$ dimensional observation, $\vec{\mu}$ the $n$ dimensional mean of the sample that $\vec{x}$ is from and $\Sigma$ the $n \times n$ covariance matrix of that sample.  Then the mahalanobis distance is defined like this $$ mahal(\vec{x}) = \sqrt{(\vec{x} - \vec{\mu})^T \Sigma^{-1} (\vec{x} - \vec{\mu})} $$ Intuitively this function does this   Center $\vec{x}$ around the mean $\vec{\mu}$ "Remove" the covariance and variance integral to $\vec{x}$ with $\Sigma^{-1}$ Compute dot product between the left $(\vec{x} - \vec{\mu})$ and the right transformed $(\vec{x} - \vec{\mu})$ Compute the square root of the dot product from 3. which amounts to the euclidean distance   The problem I see is that it only "removes" the covariance from the right $(\vec{x} - \vec{\mu})$ but not the left. Which means that this isn't the euclidean distance in the space with base $\Sigma$ since the left hand side didn't change base to $\Sigma$ like the right hand side.  As I see it the the mahalanobis distance would have to be defined like this for it to be like the euclidean distance $$ mahal'(\vec{x}) = \sqrt{(\Sigma^{-1} (\vec{x} - \vec{\mu}))^T (\Sigma^{-1} (\vec{x} - \vec{\mu}))} $$  I also tried to decompose $\Sigma = E \Lambda E^{-1}$ where $E$ are eigenvectors of $\Sigma$ and $\Lambda$ its eigenvalues. Then the mahalanobis distance could be written like $$ \begin{align} mahal(\vec{x}) &= \sqrt{(\vec{x} - \vec{\mu})^T \Sigma^{-1} (\vec{x} - \vec{\mu})} \\ &= \sqrt{(E^{-1} (\vec{x} - \vec{\mu}))^T \Lambda^{-1} (E^{-1} (\vec{x} - \vec{\mu}))} \end{align} $$ This fits my intuition of euclidean distance much more, except the right hand side is scaled by $\Lambda^{-1}$ which makes it not the same as euclidean distance.


Devil damage resistance: is silver and magical in "or" or "and" relation?

In monster manual it states     bludgeoning, piercing, and slashing   from non magical attacks not made with silvered weapons   I think it means "non-magical" or "not silvered", meaning either can overcome, but can you help with RAW?


Conditionally run a view if another view has no results

I have a client who has an Upcoming Events view. However, when there are no upcoming events, he wants to show another view (Past Three Events) which shows the past 3 events. Basically he doesn't like it when the page doesn't show any events so he wants to show something.  I thought of attaching another block of the Past Three Events to the bottom of the main view (Upcoming Events) and then using jQuery to hide it if the main view (Upcoming Events) is populated.  But I was hoping that someone knows a more elegant solution where perhaps either I can conditionally run a view (perhaps using EFQ which I know nothing about) or somehow adjust views to combine 2 queries in one.


Kdenlive's website . The command I used is   flatpak --user install flathub org.kde.kdenlive  which give this error on Ubuntu 18.04  error: Remote "flathub" not found  I have installed Flatpak previously and don't know what went wrong. Do you?


Include images from pages in wp search.php results in default wp search

Is there a way to include page images in wp search? Like I want to search through my sites images on pages not in posts by caption/alt text and display them in the results page as thumbnails.


Which Exception to throw when a method try to use a field that can be null?

I am actually working on a Framework development, which means require a really strong coding methodology.  I am facing a problem where I do not know which System.Exception derivated class I need to throw. Basically the case is when I have a class with fields that can be optionnaly initialized by the constructor and that have methods using these fields. Which exception must I throw if the user did not initialized these fields? (which means they are null)  Here is an example:  public class MyConnection {     private Uri endpointUri;      public Uri EndpointUri     {         get         {             return this.endpointUri;         }          set         {             this.endpointUri = value;         }     }      public MyConnection()     {     }      public MyConnection(Uri endpointUri)     {         this.endpointUri = endpointUri;     }      public FileStream GetFile()     {         if (this.endpointUri != null)         {             // My doer methods         }         else         {             throw new TheExceptionINeedToThrow("endpointUri", ...);         }                     } }   Note that I have been reading the whole  chapter concerning exception handling and throwing and that I did not found any solution fitting this exact case. Or maybe I misunderstood something ...  Thanks for your help.  EDIT : The fact that I provide an empty constructor seems a bit confusing regarding my problem but it is completely voluntary. In some objects that have to comply with a range of different states that cannot be duplicated in multiple objects it is sometimes useful.


The Node Editor won't work for the object selected

I'm still learning, but I'm trying to follow a tutorial to apply texture to a model. I only want to apply the texture to one object in the scene, so I selected it, unwrapped it, and painted over it. Now I selected it in the Edit Mode (I can't select it in the Object mode because all is locked together) and went into Node Editor, but the nodes are greyed out.  Why?


Installing Skype failed; code 1638 when trying to upgrade Skype

My Skype version is 6.20.0.104. When I open it on Windows 8.1 with Update, it cues me to upgrade:     The latest version of Skype is ready to install now. It won't take long to upgrade - and you'll get all the latest improvements and fixes.      After going through the next > next > next of the upgrade, Skype complains as follows.      Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs in     When looking in Add/Remove Programs, Skype is not listed:     How can I upgrade Skype to get all the latest improvements and fixes?


Seeking Mobile GIS applications for Android Tablets?

I know that , but does anyone know of any other GIS apps that are available for Android tablets?


Can't view more than 30 answers on Android app

In the Android app, the "View XX Answers" button displays the correct number of answers, but only the first 30 answers are viewable. For example, on my , the button says "View 34 Answers" but only the first 30 questions are shown. (Note: this is not  a duplicate of )


MongoDB hashtable namespace index max chain reached error after machine crash

I have a database machine running standalone MongoDB v2.6.12 on Ubuntu 14.04. It is running well until the machine crashed (by power failure).  MongoDB won't start since then outputting the following error in log.  2017-11-07T16:19:12.149+0800 ***** SERVER RESTARTED ***** 2017-11-07T16:19:12.151+0800 [initandlisten] MongoDB starting : pid=1978 port=27017 dbpath=/edx/var/mongo/mongodb 64-bit host=external-db 2017-11-07T16:19:12.151+0800 [initandlisten] db version v2.6.12 2017-11-07T16:19:12.152+0800 [initandlisten] git version: d73c92b1c85703828b55c2916a5dd4ad46535f6a 2017-11-07T16:19:12.152+0800 [initandlisten] build info: Linux build5.ny.cbi.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49 2017-11-07T16:19:12.152+0800 [initandlisten] allocator: tcmalloc 2017-11-07T16:19:12.152+0800 [initandlisten] options: { config: "/etc/mongod.conf", net: { port: 27017 }, security: { authorization: "enabled" }, storage: { dbPath: "/edx/var/mongo/mongodb", journal: { enabled: true }, smallFiles: true }, systemLog: { destination: "file", logAppend: true, path: "/edx/var/log/mongo/mongodb.log" } } 2017-11-07T16:19:12.154+0800 [initandlisten] journal dir=/edx/var/mongo/mongodb/journal 2017-11-07T16:19:12.154+0800 [initandlisten] recover begin 2017-11-07T16:19:12.154+0800 [initandlisten] info no lsn file in journal/ directory 2017-11-07T16:19:12.155+0800 [initandlisten] recover lsn: 0 2017-11-07T16:19:12.155+0800 [initandlisten] recover /edx/var/mongo/mongodb/journal/j._0 2017-11-07T16:19:12.155+0800 [initandlisten] recover cleaning up 2017-11-07T16:19:12.155+0800 [initandlisten] removeJournalFiles 2017-11-07T16:19:12.156+0800 [initandlisten] recover done 2017-11-07T16:19:12.466+0800 [initandlisten] error: hashtable namespace index max chain reached:1335 2017-11-07T16:19:12.469+0800 [initandlisten] error: hashtable namespace index max chain reached:1335 2017-11-07T16:19:12.469+0800 [initandlisten] error: hashtable namespace index max chain reached:1335 2017-11-07T16:19:12.472+0800 [initandlisten] waiting for connections on port 27017 2017-11-07T16:19:12.483+0800 [IndexRebuilder] Fatal Assertion 16253 2017-11-07T16:19:12.487+0800 [IndexRebuilder] 0x121df81 0x11bd689 0x11a019d 0xa2d5e5 0xa2d703 0x904f70 0xba15e4 0xba24b8 0x11a3532 0x1262d49 0x7f8f424c9184 0x7f8f417cdffd   It is unable to run with --repair which will result in this error BadValue Can't have journaling enabled when using --repair option.  And I don't think it is really a namespace problem, because a clone machine from the snapshot before the crash will run without any problem.  The other question you guys marked that I'm "duplicateing" is in completely different situation. As I'm not even able to start MongoDB, how can I run command in it?  Also I tried to disable journal and get the following error.  You specified --repair but there are dirty journal files. Please restart without --repair to allow the journal files to be replayed. If you wish to repair all databases, please shutdown cleanly and run with --repair again.   And if I remove --repair I get the same error: hashtable namespace index max chain reached:1335 errors in the log as in the beginning.


What will be the variance of the following Random variable

We have the following Random variable:  $Y=\frac{\log Z}{\log Z+\log (1-W)}$ where both $W$ and $Z$ are $U(0,1)$. The question asks to calculate the variance of the random variable $Y$.   I think the random variable $Y$ will follow the exponential distribution with parameter $2$. How I obtained this result is as follows:  First, after a little simplification, the random variable $Y$ turned out to be $\log ZW$ which can further be written as $\log Z+ \log W$. Each of which follows exponential distribution. Hence, the variance of the random variable$Y$ can be obtained as $\frac{1}{4}$. What is wrong in this approach? Because at the back, the answer is $\frac{1}{12}$ as they are saying that $Y$ will follow uniform distribution.


Error on installing downloaded Chrome .deb

I have downloaded Chrome on 14.04 as .deb package. Whenever I try to install it, it gives error  "Dependency is not satisfiable".


How to find the minimum of $n$ when we know $a$, to satisfy:  $a^n<n^a$  $a^m>m^a$  for each $m>n$  $n$ and $m$ are natural numbers.


Inheriting non-implicit constructors on Apex classes

If I have an abstract parent class like this:  abstract class Vehicle {     public Vehicle(Person driver) {         //     } }   and then I create a child class like this:  public class MagicCarpet extends Vehicle {     //this won't compile }   I encounter the following Compile Error:     Error: Parent class has no 0-argument constructor for implicit construction at line ... column ...   Obviously I can explicitly re-declare a constructor on the child class toget it to compile:  public class MagicCarpet extends Vehicle {     public MagicCarpet(Person driver) {         super(driver);     } }   But I feel this isn't DRY. Not sure what's actually going on under the covers here.  How can I get a constructor (other than the implicit 0-argument one) to be inherited by a child class?


What fallacy dismisses a conclusion because supporters give invalid arguments for it?

A person dismisses an otherwise valid argument, because some of its proponents support it for the wrong reason.  How is this fallacy called?  EDIT: Here is an example. A person defends the idea that the earth is flat. In an interview he asks several skeptics and each one of them responds "The earth is round because if you dig deep enough you'll reach the other side". The person then shows that this is a circular argument and then concludes that the earth is flat.


Why should boostrap sample size equal the original sample size?

When searching the internet on the sample size of for boostrap samples I generally find that the size should equal the original sample size. However, I can't find any explanation on why this should be the case.   In what way is it bad to use a smaller sample size? Is it always better to use a larger sample size?   Some of the sites which report this:


Texture showing up in rendered view but pink color in texture view

I have a mountain textured with three different textures by using two mix shaders. I am using Blender 2.80.75. In texture view I can only see a pink color but in render view I see the correct result. Is this a bug or what? Thanks in advance


My housemate often manages to pick up reduced meat from the local supermarket (Sainsbury's in the UK) at the time he comes home.  It's usually silverside, topside or brisket of beef. Occasionally it's pork shoulder.  Without fail however my meat ends up "tough". Here's the exact procedure I follow for my standard "roast":   Take frozen joint of meat out of the freezer around 8-10AM. Prepare 2 onions, celery, carrots and half bulb garlic. Throw them in my roasting pan. Season joint with salt and pepper, pour extra virgin olive oil over it, sear it in a frying pan. Cook at 20degC less than the suggested temperatures for the suggested times according to my MasterChef book, specifically for that cut of meat. For instance tonight's brisket was 900g - I cooked it at 160degC for 1h30m. Rest for 10-15m while I make the gravy and finish off the potatoes in another pan.   I cook it at 20deg less because it's a fan oven.  Can anyone explain the factors that affect how tough the meat becomes? Am I not searing properly? Is the meat prone to being tough because it's not fresh (reduced stuff)? Is it not defrosting for long enough?  Thanks in advance,


Bash script to open multiple terminal widows?

I want to open multiple terminal windows (20 to be specific) through a bash script. Can someone help ?


Feature "There are n users working on an answer" notification

Sometimes I come across a question that interests me and I go forward and start writing my answer.  Occasionally I'll be finishing up my answer, and someone else has posted an equally lengthy & accurate answer. If the other persons answer not too far off from my own, I tend to abandon my answer, upvote the other persons answer, and leave a comment on their answer if anything minor was missed.  I would like to have a feature where I can view the active number of people answering the same question before I begin to write my answer. I can favorite the question and check back later once those answers have been provided and then asses if I should spend time adding my own alternate answer or commenting on the existing answers.    There is a duplicate here   This question can be closed, I couldn't find that one. However.  I don't agree with the accepted answer - I don't really care who is answering the question, I just want to know how many others are. I agree with the comments provided below that the algorithm to determine this would take some time to perfect.  How long till a user is considered inactive and no longer answering the question? How many characters need to be entered before an answer is considered "in progress" (obviously, more than the minimum character limit). These things add complexity, but add for a more richer experience and a feature that I would welcome. Implementing it? Not trivial in the least.


What 80s movie features a mad scientist building an inter-dimensional portal in his attic?

From what I can remember of the movie, it features an increasingly isolated loner building or inheriting a machine in his Attic that starts bringing back monsters from outside reality when he turns it on.  I think it was from the early 80s and it had a Lovecraftian vibe to it.  The movie is like 'The Fly' in that it features a story that slowly descends into dark horror.  Does anyone have any clue what I'm talking about?  I'll try to add more details if I can remember anymore.


Sample Selection Bias in Logistic Regression

I'm working on a classification problem where I expect   $True\ Positive\ Rate =0.999$   $True\ Negative\ Rate = 0.001$   To model this data, I have created a training set with an equal proportion of true positives and true negatives. I am using this data in a logistic regression model, from which I receive probabilistic classifications. These classification probabilities, however, do not reflect the distribution of the unbiased data. Is there a way to correct this bias without creating an unbiased data set and refitting?   Thank you!  EDIT: After doing some research, I have come across this reference as a starting point:   EDIT2: The above paper and its associated  provide a means of correcting sample selection bias by regressing upon a learned model of the sample selection bias. The exact implementation, however, assumes normality of the joint distribution of the error terms. I'm not sure if this assumption holds for logistic regression.  EDIT3: The assumption of normality for the error terms in logistic regression does not hold because there is in fact no error term in logistic regression. For explanation see .  Side note: I'm not sure what the etiquette here is regarding answering your own question, but I suppose I'll do that and mark it as accepted.


I have been seeing some dust of Fiberglass(?) floating in the air. Is breathing it, in unhealthy? I was unaware of the equipment in the attic, which I discover all the wrong  wiring connections from the lights. i have work as a electrician and i have never see anything like this. Alot of fiberglass and tapes.


ASP.Net MVC: Save dynamically created txt file

There's an interesting thread on stackoverflow about it:   This post explains how to show the content of a txt file on a url, but not how to save the content of that url to the client's disk.  Is there any possibility to save (on the client side) a file that (pratically) doesn't exist? There's just plain text, and the idea would be to download this plain text to a TXT file.


Why did he pick the HV to be the side where he applied the voltage? Usually open circuit test voltage is applied at the LV side. So, from the question how can I know which side he performed the open circuit test on?  SOURCE: Basic Electrical and Electronics Engineering-I Fifth Edition, 2015 Abhijit Chakrabarti Sudipta Debnath McGraw Hill Education (India) Private Limited ISBN (13): 978-93-392-2204-8 ISBN (10): 93-392-2204-0


Illustrator: how to rotate object by specific amount

I want to have a text box oriented at an arbitrary angle. I know that I can rotate a text box relative to a current orientation, but can I specify the angle of the final orientation? I know that this information exists in Illustrator because if I turn smart guides on and perform a free rotation, a context box tells me the current angle. I would like to be able to do the same thing for a line.


How do I show that $\int_{0}^{1} \frac{1}{x^{x}} = \sum_{k=1}^{\infty} \frac{1}{k^k}$. Also, how do I show that $\int_{0}^{1} \frac{1}{1-x} + \frac{1}{ln(x)} dx = \lim_{n \rightarrow \infty} (\sum_{k=1}^{n} \frac{1}{k}) - ln(k)$


I have a new MacBook Air and I keep bumping the caps lock key. As you can imagine this is really frustrating.   Is there a way to totally disable the caps lock key without having to install software or mucking around with Terminal?


Transit Visa Almaty for Indian Citizens?

I am an Indian citizen. I will be travelling to Russia but I need to wait in Almaty airport 13 hours for my next flight to Russia. I will not be leaving Almaty airport. So in this case do I need a transit visa ?


We have a few Win32 applications (coded in Delphi 2006) where sometimes the user gets an error message saying "System Error. Code: 8. Not enough storage is available to process this command.".  From the stacktrace it looks like it is always during CreateWnd call  Main ($1edc): 004146cc +070 app.exe SysUtils               RaiseLastOSError 00414655 +005 app.exe SysUtils               RaiseLastOSError 004ce44c +130 app.exe Controls               TWinControl.CreateWnd 00535a72 +022 app.exe cxControls             TcxControl.CreateWnd 004ce82a +016 app.exe Controls               TWinControl.CreateHandle 00553d21 +005 app.exe cxContainer            TcxContainer.CreateHandle 00586ef1 +005 app.exe cxEdit                 TcxCustomEdit.CreateHandle 005c331d +005 app.exe cxDropDownEdit         TcxCustomDropDownEdit.CreateHandle 004ceaf0 +074 app.exe Controls               TWinControl.UpdateShowing 004ceb1e +0a2 app.exe Controls               TWinControl.UpdateShowing 004cebdc +03c app.exe Controls               TWinControl.UpdateControlState 004d118a +026 app.exe Controls               TWinControl.CMVisibleChanged 004cb713 +2bb app.exe Controls               TControl.WndProc 004cf569 +499 app.exe Controls               TWinControl.WndProc 004b727d +4c1 app.exe Forms                  TCustomForm.WndProc 004cb3a0 +024 app.exe Controls               TControl.Perform 004c9f6a +026 app.exe Controls               TControl.SetVisible 004b6c46 +03a app.exe Forms                  TCustomForm.SetVisible 004baf1b +007 app.exe Forms                  TCustomForm.Show 004bb151 +14d app.exe Forms                  TCustomForm.ShowModal 007869c7 +0d3 app.exe UfrmPrice      770 +19 TfrmPrice.EditPrice 0078655d +009 app.exe UfrmPrice      628  +0 TfrmPrice.actNewBidExecute 00431ce7 +00f app.exe Classes                TBasicAction.Execute 004c2cb5 +031 app.exe ActnList               TContainedAction.Execute 004c397c +050 app.exe ActnList               TCustomAction.Execute 00431bb3 +013 app.exe Classes                TBasicActionLink.Execute 004af384 +090 app.exe Menus                  TMenuItem.Click 004b059f +013 app.exe Menus                  TMenu.DispatchCommand 004b16fe +082 app.exe Menus                  TPopupList.WndProc 004b164d +01d app.exe Menus                  TPopupList.MainWndProc 004329a8 +014 app.exe Classes                StdWndProc 7e4196b2 +00a USER32.dll                     DispatchMessageA 004bea60 +0fc app.exe Forms                  TApplication.ProcessMessage 004bea9a +00a app.exe Forms                  TApplication.HandleMessage 004becba +096 app.exe Forms                  TApplication.Run 008482c5 +215 app.exe AppName        129 +42 initialization   I've never been able to get to the bottom of what causes this and as it happens fairly seldom I haven't been to concerned, but I would like to find out what causes it and hopefully rectify it...  EDIT: Full Stacktrace  EDIT 2: More info... The client who experienced this today has had my app installed for about 4 months and it is running on his PC 8 hours a day. The problem only appeared today and kept reappearing even though he killed my app and restarted it. None of the other apps on his system behaved strangely. After a reboot the problem goes away completely. Does this point towards the heap shortage that Steve mentions?  EDIT 3: Interesting msdn blog post  and  on the topic of the desktop heap. Though I'm not sure whether this is the cause of the problem it certainly looks likely.


How can I return top 10 rows from each state

How can I return the top 10 rows for each category?  Say I have a table named xyz. It has a column called state, in the political unit sense of the word.  I want the top 10 rows from each state. Do I use case so that one can see from which state the row is?  I am using SQL Server 2012.  The top 10 would be from FCFS, the order in which they are entered.  Columns are  FirstName, LastName, Address, city, state, zip, phone etc.   For example, I have rows in my table from states AL, CT, NY etc. I want the top 10 rows based on FCFS from each state.


I need to change the X glyphicon,glyphicon-remove from  to a check glyphicon,glyphicon-ok if the input email is valid. So my question is how to know if an email inputed and checked by keyup is valued.  var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i          document.getElementById("Email").addEventListener("keyup",          function() {             var email = document.getElementById("Email").value;             if (emailRegex.test(email)) {                 document.getElementById("EmailValidate").classList.remove('glyphicon,glyphicon-remove');                 document.getElementById("EmailValidate").classList.add('glyphicon,glyphicon-ok');             }         });


What devices are used in a proton accelerator to separate the protons from their electrons and send the protons into the vacuum chamber?

I understand the general idea of how they accelerate the protons once they get them isolated in the chamber, but what's the device they use to isolate them to begin with even called?


Find all natural numbers $n$ such that $2^n$ divides $3^n -1$   I think that the only solutions are $n = 0,1,2,4$, but I have no idea on how to prove it.  I tried to write $3^n-1$ as $1+3+3^2+...+3^{n-1}$ and manipulate the sum but found my self at the equally hard problem of finding the power of two dividing $3^k+1$


Handler class if lead is created or updated then check the email of lead is already there in existing contacts then through an error

trigger DuplicateEmailsInLead on Lead (before insert, before update) {     map<String,Contact>  mapOfContact = new map<String, Contact>();     list<Contact> con = [select id,email from contact];     for (contact c:con) {         mapofcontact.put(c.email,c);     }     for(lead l : trigger.new) {         if((l.email != null) && (trigger.isInsert || (l.email != trigger.oldmap.get(l.id).email))) {             if(mapofContact.containsKey(l.email)){                 l.Email.addError('Email already exists');             }         }                    } }  How to write trigger & handler Class for this /////////////////////// This is what i tried /////////////////////// Handler: public class Handler_checkiftheemail {     public static void TriggerHandler(List<Lead> newLeadList,map<string,contact> oldmapcontacts){         map<String,Contact>  mapOfContact = new map<String, Contact>();         list<Contact> con = [select id,email from contact];         for (contact c:con){             mapOfContact.put(c.email,c);         }         for(lead l :newLeadList){             if((l.email != null) && (trigger.isInsert || (l.email != oldmapcontacts.get(l.id).email))){                 if(mapofContact.containsKey(l.email)){                     l.Email.addError('Email already exists');                 }                               }                        }     } }  Trigger: trigger checkiftheemail on Lead (before insert,before update) {            if(trigger.isinsert && trigger.isupdate){         Handler_checkiftheemail.TriggerHandler(Trigger.new,Trigger.oldMap);     } }


What is the method finding the closed form of $\displaystyle\sum_{k=1}^{n}\frac{2k-1}{2^k}$?


What was the exact shape of Harry Potter's scar?

So on a lot of HP merchandise the exact details of Harry's scar are different. The scar is a lightning bolt in a 'N' shape and not the other way around, right?   And does anyone know is Rowling made Harry's scar shaped like the Nordic sowilo rune on purpose?


Find value of $\int_{0}^{\frac{\pi}{2}} \log ^2(\sin x)dx$

Find value of $$I=\int_{0}^{\frac{\pi}{2}} \log ^2(\sin x)dx \tag{1}$$  I tried using property $\int_{a}^{b} f(x)dx=\int_{a}^{b}f(a+b-x)dx$ we get  $$I=\int_{0}^{\frac{\pi}{2}}\log^2(\cos x)dx \tag{2}$$  Adding $(1)$ and $(2)$ we get  $$2I=\int_{0}^{\frac{\pi}{2}}\left(\log(\sin x)+\log(\cos x)\right)^2-2 \log(\sin x)\log(\cos x)dx$$  any clue here?


How to get Saudi Arabian transit visa for road travel?

Is it now possible for a Kuwait resident (engineer) along with family to get a transit visa to travel by road through Saudi Arabia to Bahrain? If so, which agency helps to process the transit visa in Kuwait?  Please advise how to get a by-road transit visa through Saudi Arabia.  (note: I have a multiple entry visa to Saudi Arabia, however I have to get the transit visa for my family with that.)


I've got a bunch of properties which I am going to use read/write locks on. I can implement them either with a try finally or a using clause.  In the try finally I would acquire the lock before the try, and release in the finally. In the using clause, I would create a class which acquires the lock in its constructor, and releases in its Dispose method.  I'm using read/write locks in a lot of places, so I've been looking for ways that might be more concise than try finally. I'm interested in hearing some ideas on why one way may not be recommended, or why one might be better than another.  Method 1 (try finally):  static ReaderWriterLock rwlMyLock_m  = new ReaderWriterLock(); private DateTime dtMyDateTime_m public DateTime MyDateTime {     get     {         rwlMyLock_m .AcquireReaderLock(0);         try         {             return dtMyDateTime_m         }         finally         {             rwlMyLock_m .ReleaseReaderLock();         }     }     set     {         rwlMyLock_m .AcquireWriterLock(0);         try         {             dtMyDateTime_m = value;         }         finally         {             rwlMyLock_m .ReleaseWriterLock();         }     } }   Method 2:  static ReaderWriterLock rwlMyLock_m  = new ReaderWriterLock(); private DateTime dtMyDateTime_m public DateTime MyDateTime {     get     {         using (new ReadLock(rwlMyLock_m))         {             return dtMyDateTime_m;         }     }     set     {         using (new WriteLock(rwlMyLock_m))         {             dtMyDateTime_m = value;         }     } }  public class ReadLock : IDisposable {     private ReaderWriterLock rwl;     public ReadLock(ReaderWriterLock rwl)     {         this.rwl = rwl;         rwl.AcquireReaderLock(0);     }      public void Dispose()     {         rwl.ReleaseReaderLock();     } }  public class WriteLock : IDisposable {     private ReaderWriterLock rwl;     public WriteLock(ReaderWriterLock rwl)     {         this.rwl = rwl;         rwl.AcquireWriterLock(0);     }      public void Dispose()     {         rwl.ReleaseWriterLock();     } }


I have been looking for, and have had trouble finding the following font. Anyone care to help identify? Appreciated.


I did not set swap memory, will that affect the way Ubuntu runs?

My PC has 8Gb DDR3 RAM. I use Ubuntu 16.4.   I did not set swap memory due limitations of my HDD (which allows me only 4 active partitions).  Do I need swap? What difference does it make to my PC? What do I get from swap memory?


How does Cooper get out of the black hole?

In the movie Interstellar,  Cooper (played by ) enters a black hole and sends a message to Murph (his daughter). Later, he is found by rangers, but I don't understand how he gets out of the black hole?  As far as I know, nothing can get out of a black hole, as it has extremely high gravity.


It's easy to set inline CSS values with javascript. If I want to change the width and I have html like this:

   All I need to do is:  document.getElementById('id').style.width = value;   It will change the inline stylesheet values. Normally this isn't a problem, because the inline style overrides the stylesheet. Example:

   Using this Javascript:  document.getElementById('tId').style.width = "30%";   I get the following:

   This is a problem, because not only do I not want to change inline values, If I look for the width before I set it, when I have:

   The value returned is Null, so if I have Javascript that needs to know the width of something to do some logic (I increase the width by 1%, not to a specific value), getting back Null when I expect the string "50%" doesn't really work.  So my question: I have values in a CSS style that are not located inline, how can I get these values? How can I modify the style instead of the inline values, given an id?


@track vs @api (Lightning Web Components)

Let's say we have this code for a LWC:   <template>
         <lightning-input name='firstName' label="First Name" onchange={handleChange}></lightning-input>         <lightning-input name='lastName' label="Last Name" onchange={handleChange}></lightning-input>
Uppercased Full Name: {uppercasedFullName}

 </template>   and this is the JS file:  // helloExpressions.js import { LightningElement, track } from 'lwc';  export default class HelloExpressions extends LightningElement {     @track firstName = '';     @track lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   firstName and lastName have been decorated with @track. Now as per the documentation, decorating a property with @track makes it private and reactive, while to mark a property public and reactive, use @api.  So if I just change the decorator to @api for both these variables, it should work. I am referring these from the same component only. But it's not working.  UPDATE: 27th Feb -------------------- Somehow it's working today. I just changed the decorator of the variables to api.  import { LightningElement, api } from 'lwc';  export default class HelloExpressions extends LightningElement {     @api firstName = '';     @api lastName = '';      handleChange(event) {         const field = event.target.name;         if (field === 'firstName') {             this.firstName = event.target.value;         } else if (field === 'lastName') {             this.lastName = event.target.value;         }     }      get uppercasedFullName() {         return `${this.firstName} ${this.lastName}`.toUpperCase();     } }   So it's working.


I study with Friedberg's Linear Algebra 4th edition.  I'm hesitating for my way to study linear algebra.  Should I try to solve all problems in textbook or some choosen problems?  Please give me an advise.  Thank you.   I major in physics and I also interested in mathematics. I want to build bases for my later learning physics and mathematics.


Let $f:D\subset\mathbb{R}^2\rightarrow\mathbb{R}$ be a function with $D$ open and connected set such that $\nabla f=\bar{0}$ for all $x\in D$ Proof that $f$ is a constant function.  Hi! I have some problems with this exercise. I think that I have the proof, but, in this, I never use the fact that $D$ is a  connected  set. Can anyone help me? Please.  My proof:  First, since $\nabla f=\left(\displaystyle\frac{\partial f}{\partial x},\displaystyle\frac{\partial f}{\partial y} \right)=(0,0)$, then, $\displaystyle\frac{\partial f}{\partial x}=0$ and $\displaystyle\frac{\partial f}{\partial y} =0$. Hence, the partial derivatives are bounded, i.e., there exist a $K,M\in\mathbb{R}^{+}$ such that $\left|\displaystyle\frac{\partial f}{\partial y}  \right|\leq K$ and $\left|\displaystyle\frac{\partial f}{\partial x}  \right|\leq M$ (I think that anything $K$ and $M$ it works, because the partial derivatives are $0$).  Now let $a = (a_1,a_2)$ and $b = (b_1,b_2) \in D$. Then we have: \begin{align*} f(a) - f(b) &= f(a_1,a_2) - f(b_1,b_2) \\ f(a)-f(b) &= f(a_1,a_2) - f(a_1,b_2) + f(a_1,b_2) - f(b_1,b_2) \end{align*} Then, by the triangle inequality: $$|f(a)-f(b)| \leq |f(a_1,a_2) - (a_1,b_2)| + |f(a_1,b_2) - f(b_1,b_2)|$$ And since the partial derivatives exist, we can use the one-dimensional Mean Value Theorem to show that there exists some $c$ such that: $$\frac{f(a_1,a_2)-f(a_1,b_2)}{a_2-b_2} = \displaystyle\frac{\partial f}{\partial y}(a_1,c)$$ And noting how we defined $K$, it follows that $$|f(a_1,a_2) - f(a_1,b_2)| \leq K|a_2 - b_2|$$ And similarly $$|f(a_1,b_2) - f(b_1,b_2)| \leq M |a_1-b_1|$$ And using the statement we got from the triangle inequality, we have that $$|f(a)-f(b)| \leq M|a_1-b_1| + K|a_2 - b_2|$$ And by the Cauchy-Schwarz inequality, we have that $$M|a_1-b_1| + K|a_2 - b_2| \leq  \sqrt{M^2 + K^2}\cdot \sqrt{(a_1-b_1)^2+(a_2-b_2)^2} = \sqrt{M^2 + K^2} \cdot ||a-b||$$ Whereby $$|f(a)-f(b)| \leq \sqrt{M^2 + K^2} \cdot ||a-b||$$ So $f$ is Lipschitz with $L = \sqrt{K^2 + M^2}$.  Hence, the function is continuous. But, $M=K=0$ works, we can consider $L=0$ and the nex equality $$0\leq|f(a)-f(b)| \leq 0$$Then $|f(b)-f(a)|=0$ and we can conclude that $f(b)=f(a)$ for all $a,b\in D$. Then, the function is constant. But, in the proof, I never used the connected of $D$. Where is the wrong? Can anyone help me? Thanks.


Is it correct? "You may call me in your convenient any time."

I am confusing whether I could use "convenient" and "any" at the same time.  Also, I'd like to know the different nuance between may and can, in this sentence:     You may call me in your convenient any time.


The metric Tensor inside a massive shell

Given a fixed shell with the mass of $M$ and a radius $R$ ,  what would be the metric tensor for $r<R$?  I do know that using Birkhoff Theorem the metric for $r>R$ should be schwarzschild.  I'm not sure how to solve $G_{\mu\nu}=0$ for the inner part, and I'm not sure if I can demand continuity at $r=R$.


Choose what to compile without uncomment long texts

How can I select which section I want to compile and which section I do not want to compile? I am using XeLatex to compile the document. Sometimes the text in each section is long and I don't want to comment and uncomment all of the text inside the section every time I run the script. Every time I am running, need to compile different set of sections. It would be easier to have an easy way to do it. Or just comment/uncomment a particular section line instead of comment/uncommenting the whole text inside.  The question , suggests to break the file in to multiple files and then run the main script (within the main script one can choose the desirable file(s) to compile). However, I am interested to know is it possible to do it within a single file?  \documentclass[a4paper,10pt]{article}  \usepackage{xunicode,xltxtra,url,parskip} \usepackage[usenames,dvipsnames]{xcolor}  \usepackage[big]{layaureo} \usepackage{hyperref}  \definecolor{linkcolour}{rgb}{0,0.2,0.6}  \hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour}  \usepackage{titlesec}  \titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] \titlespacing{\section}{0pt}{3pt}{3pt}   \usepackage{tabularx}             \begin{document}  \pagestyle{empty}   \section{Personal Data}  some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here   \section{Education} some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here  \section{Work Experience}  some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here   \section{Hobbies} some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here  \section{Interests} some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here  \section{Skills} some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here  \section{MISC} some text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text heresome text here  \end{document}


How can I make this metal material look more realistic?

I am new to Blender and I want to make this metal look more realistic.  I am using a PBR method but the handle on this sword looks like it is missing something.  Any tips would be appreciated.     Let me know if you would like the .blender file or a screenshot of the nodes.


Prove there are infinitely many *primitive* solutions to $x^2 + y^2 = z^4$

For x, y, z $\in \mathbb N $ where $\gcd(x,y) = 1$  These solutions must also be primitive.   If we let $ w = z^2 $ so that $ x^2 + y^2 = w^2$  I have that for r, s $\in \mathbb N$  where $\gcd(r, s) = 1$ (coprime), with opposite parity:  Let $ x = r^2 - s^2\\      y = 2rs \\     w = r^2 + s^2 $  Now for $t, u \in \mathbb N$ where $\gcd(t, u) = 1$ (coprime), with opposite parity:  let $ r = t^2 - u^2\\        s = 2tu\\         z = t^2 + u^2 $  Where $r,s,z$ are coprimes with $r$ odd and $s$ even (by definition).  So we have: $ x = ( t^2 - u^2)^2 -(2tu)^2\\ y = 2( t^2 - u^2)(2tu)\\ w = z^2 = ( t^2 - u^2)^2 + (2tu)^2 $  Hence $x, y$ and $z^2 $ is a primitive solution.  Any mistakes here?


I need to remove locally spaces arround (especially before) punctuation signs. This spaces are added by french polyglossia.  \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{french}  \newcommand{\nospace}[1]{\texttt{#1}}  \begin{document} \nospace{a:b} \end{document}     Thanks for help.


Javascript Local Variables Accessible from Methods After Instantiation?

So I'm brushing up on my vanilla Javascript, specifically for animation, and I came across a tutorial with the following code:  function sprite(options){          var spr = {},             frameIndex = 0,             tickCount = 0,             ticksPerFrame = options.ticksPerFrame || 0,             numberOfFrames = options.numberOfFrames || 1;          spr.context = options.context;         spr.width = options.width;         spr.height = options.height;         spr.image = options.image;         spr.loop = options.loop;          spr.render = function(){             console.log("render");             //console.log("height: ", spr.height);             //console.log("width: ", spr.width);             //console.log("context: ", spr.context);             //console.log("image: ", spr.image);              // Clear Canvas             spr.context.clearRect(0, 0, spr.width, spr.height);              // Draw animation             spr.context.drawImage(                 spr.image,                 frameIndex * spr.width / numberOfFrames,                 0,                 spr.width / numberOfFrames,                 spr.height,                 0,                 0,                 spr.width / numberOfFrames,                 spr.height             );         };          spr.update = function(){             tickCount += 1;              if (tickCount > ticksPerFrame){                 tickCount = 0;                  if (frameIndex < numberOfFrames - 1){                     frameIndex += 1;                 } else if (spr.loop) {                     frameIndex = 0;                 }             }         };          return spr;     }   I understand all of the logic and everything, but how are    frameIndex tickCount ticksPerFrame numberOfFrames   accessible from the render() and update() methods after spr has been returned? As far as I can tell, they're local functions to the sprite function and shouldn't be accessible after instantiation.


How exactly do Wolverine's claws come out?

In answering this question  I couldn't find anything that actually described what caused Wolverines claws to pop out. I've seen pictures of x-rays and there doesn't seem to be extra bones to help. I would assume that there are extra muscles involved but this is never mentioned. His claws are a part of his mutation not surgically inserted like it was previously believed. So what makes them work?


Mac Mini: No sound except for startup chime

I have a Mac Mini (mid 2010) and out of nowhere the sound has completely stopped working, the only exception to this is the startup chime when turning on the machine.  I have already checked to see if I just muted the sound, that the internal speakers are selected in system preferences, reset the PRAM, restarted the computer, and wiggled a jack inside of the headphone jack hole.  I have no idea what is going on with the sound! I know the speakers are not broken because the startup chime works, also I've tried using external speakers but those don't solve anything either.  Any thoughts?


Edits that shadow a suggested edit inconsistently reject but include the suggestion

I have the edit privilege. If I edit a post which has a pending suggested edit, then:  My edit starts from the version resulting from the suggested edit. I'm not notified of that, or even of the existence of the suggested edit. (There's actually a clue, but it's easy to overlook — the edit summary field is pre-filled with the summary from the suggested edit.) The suggested edit is marked as rejected by Community with the message “This edit conflicted with a subsequent edit.” The suggester is not credited in the edit history, my revision combines the suggested edit with my modifications.  This can happen if an edit is suggested while I have the page open: I click on “edit”, and think I'm editing the version that I was just reading, but in fact I'm editing somebody's suggested edits. It also happens if I deliberately visit /posts/12345/edit, which . Examples: a  that I approved and then wanted to ; a  where I . There are two bugs here, but I'm making a single report because they're very closely linked.  I'm not told about the suggestion, so my edit includes content that I'm not aware of, yet is attributed to me. The suggestion is marked as rejected and the suggester is not credited in the edit history, yet the suggested changes are made.


"That is the lady (which / that / who / whom) I told you about." Which is correct?

That is the lady [which / that / who / whom / (none of these)] I told you about.  I failed this test question when I used none of the options, saying: "That is the lady I told you about". Some constructive criticism would be most welcome.


Can I travel to New Zealand with a valid visa on an old/expired passport?

I recently renewed my passport (Brazil). I also have an expired passport, which has my New Zealand visa (permanent resident). I am planning to visit New Zealand.  Since my valid New Zealand visa is in my old/expired passport, do I need to renew/transfer my New Zealand visa or can I simply travel with valid visa in old passport?


point which minimises the sum of the distances from the sides in a triangle (not a duplicate)

I want to know the point in the plane for which the sum of the perpendicular distances from the three sides of a general triangle is minimized. Also, is the point unique?


How should I do this proof? should induction be used?  So far I have thought about using:  $\sum_{k=0}^n {n \choose k} = 2^n$ and $\sum_{k=0}^n k^2 = \frac{1}{6}n(n+1)(2n+1)$   but I cant break up that summation so I'm not sure how to proceed.


Which of the Death Eaters survive after the final battle?

So after the final battle, lots of people die.  But not everyone! Even people from the bad side had to have survived.  So who did?


python PIL resize image maintaining EXIF metadata

I'm using a combination of exiftool and PIL to geotag and resize imagery. I've geotagged the full resolution images and now want to create lower resolution images for web hosting. Using PIL I have resized them but it looses the Geotag data. does anyone know of a way to maintain the EXIF metadata on the img.save  many thanks  basewidth = 3680 img = Image.open(INPUTFILE) wpercent = (basewidth / float(img.size[0])) hsize = int((float(img.size[1]) * float(wpercent))) img = img.resize((basewidth, hsize), PIL.Image.ANTIALIAS) img.save(INPUTFILE + "_LowRes.jpg")


I have installed 14.04. After installing my wifi was not working, so i went to software & updates and in additional drivers i selected broadcomm driver My wifi worked for a week. Then now again it is not working. Here is an image of additional drivers


Callback function from URL is not working

When I create the function like this:     and whenever I put this script in any HTML element, it shows the recent post which is correct:     This is the  for the above one its working. But I want to manipulate the script src attribute but I cant achieve the result from it:

   This is the  for second one but not working.


Investigating the convergence of a series using the comparison limit test, Part II

I posted this question earlier, but as I don't know if a comment reply or edit will refresh this so people actually see, I'm going to post it again in hopes that someone knows what's going on. Here's the initial question:  Replacing the sequence:  $x_{n}=1+\frac{1}{\sqrt{2}}+...+\frac{1}{\sqrt{n}}-2\sqrt{n},\,\,\,\, n=1,2,....$  By the corresponding series, invesigate it's convergence.  Hint: Take $a_{1}=x_{1}$ and $a_{n}=x_{n}-x_{n-1}$ for $n>1$. Then $x_{n}$ is a sequence of partial sums for $\sum_{k=1}^{\infty}a_{k}$. Use an expicit formula for $a_{n}$ and use the comparison in limit test to show that the series converges.  Solution: Computing $x_n - x_{n-1}$, we get:  $x_{n}-x_{n-1} = \left(\sum_{k=1}^{n}\frac{1}{\sqrt{k}}-2\sqrt{n}\right)-\left(\sum_{k=1}^{n-1}\frac{1}{\sqrt{k}}-2\sqrt{n-1}\right)$  $a_{n} = \left(\sum_{k=1}^{n-1}\frac{1}{\sqrt{k}}+\frac{1}{\sqrt{n}}-2\sqrt{n}\right)-\left(\sum_{k=1}^{n-1}\frac{1}{\sqrt{k}}-2\sqrt{n-1}\right)$  $a_{n} = \frac{1}{\sqrt{n}}-2\sqrt{n}+2\sqrt{n-1}$  Now, the comparison test states that:  If $\lim_{n \to \infty} \frac{a_n}{b_n} = c$ for some limit $c$, then either both $a_n$ and $b_n$ converge or diverge. Trick is, I'm really struggling to find a series $b_n$ that lets me show that $a_n$ diverges (i.e. that my fraction has a finite limit, hence $a_n$ diverges).


Why is the bonus 100 points set for 200 points in a single site and not set to a combination of sites?

The stack exchange umbrella is getting wider and for some of us living just on one site is not ideal.    When questions that used to be housed on one board are now housed on two boards.  For example:  could have been put on the Ubuntu site.  By spreading points around different sites it is possible to earn more than double the 200 point barrier and not have the most basic privileges on new sites.  Why have we limited the 100 point bump to just a single site?  I am wondering if there was some reasoning for this not being implemented or if it just hasn't been proposed yet.


My bounty is about to expire and I didn't get a good answer, just my own workaround

I posted a  about an unusual issues I desperately needed help fixing. When I didn't get any relevant answers and the project deadline was approaching, I created a 500 point bounty. Since then I have received only one other answer, and it was just a suggestion on how to clean up my code, it had nothing to do with the core issue.  The project went live even with the issue. I found a workaround, but it's far from perfect. I posted my own workaround as an answer, hoping that it would provide more information about the issue, and that if anyone finds the question in the future at least there is a workaround in case no answer is found.  The bounty expires in 4 hours. My own workaround has received +1 votes so far. I doubt anyone will provide an answer in the next 4 hours. My question is, what is the best action for me to take? Should I just let the bounty expire? Should I accept my own answer, even though it's incomplete? Should I accept one of the other answers even though they had nothing to do with the issue, just so that the 550 rep points don't go to "waste"?


How do I convert a light circuit with a single pole switch to use two 3-way switches?

I have a box in the hall which includes a 3-way switch (with another switch at the other end of the hall), a single pole switch to the garage lights and a single pole switch to the exterior lights on the garage.  The single pole switch to the garage is wired with a 3 wire plus ground. The white and black wires feed the garage lights from the switch and the red wire feeds the garage ceiling outlets and is hot all the time.  In the garage I would like to add a 3-way switch for the garage lights and another 3-way switch for the exterior garage lights.  In other words I would like to be able to turn on both of those light locations from both the inside hall and the garage as well. I know that I will of course have to replace the existing single pole switches in the hall with 3-way switches and add a junction box in the garage with 2 3-way switches in it.  The thing that I don't know is what wiring connections I need to make.  Can you help?


Do I need transit visa in Frankfurt to claim my check- in luggage to transfer to another airlines? I'll be travelling to Canada via Frankfurt.


I am looking to identify a story that I read around 2001 (it is probably much older).  Someone showed me the story on pages printed from the internet, and it was attributed to Isaac Asimov (although I cannot state that is the true author).    The story is told in glimpses at different points of time in the future.  In each glimpse, humans are asking a more and more "intelligent" computer how to prevent the universe from collapsing into a singularity in the future, and the computer states it needs more computational power and resources to solve this problem.  At some point, man becomes one with the computer, and the computer exists in hyperspace (or subspace?).    In the final glimpse, it is the end of time and the universe is collapsing into a singularity.  At the instant the universe reaches the singularity, the computer figures out how to prevent it and says "Let there be light" and the universe begins to expand again.  Is anyone familiar with this story?


Our syntax highlighting page should link to the syntax highlighting FAQ for prettify options

I'm referring to the  section in our editing help.  It includes this helpful line:     You can use either , like lang-cpp or lang-sql, or you can specify a tag, and the syntax highlighting language associated with this tag will be used:   However, the link takes us to an answer on , which contains no list of prettify language codes. That answer in turn links to the FAQ question , which does contain the list, and which the previous question is closed as a duplicate of.  There's no value now in linking to that intermediate page, so could the help article be updated to  directly link the FAQ question?


I am trying to allow my Windows 10 virtual machine access to my USB devices. This seems pretty straightforward, according to . I need to install the Guest additions which I did by clicking Devices in the Virtual machine > Insert guest additions cd > and then double clicking it in file explorer and going through the install wizard. However, When I go to the USB settings and try and check "Enable USB 2.0 (EHCI) Controller" I get an error message  Invalid settings detected USB Page: USB 2.0 is currently enabled for this virtual machine. However this requires the Oracle VM VirtualBox Extension Pack to be installed. Please install the Extension Pack from the VirtualBox download site or disable USB 2.0 to be able to start the machine.  Easy enough, I head on over to  and download the 4.3.36 extension pack. Then install it with: sudo vboxmanage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack this says it installs successfully. I restart VirtualBox andddd... I still have the error about invalid settings detected and am unable to use a USB within windows. I've done quite a bit of searching on this issue and pretty much everything says I need to either install the guest additions cd or install the extension pack, both of which have already been done.


Effect of redshift on energy conservation

Light coming from galaxies that are going away from us is redshifted. Since the energy of a photon is purely dependent on its frequency one may conclude that the energy of these photons decreases. The same light coming from the same star in the same galaxy will be seen to a planet in that galaxy as it "actually" is. So dependent on the relative motion the energy will be seen, differently. How does this not conflict with the conservation of energy? Or the "total" energy of the universe depend on the frame?  I was thinking that the light coming to us is located on a larger range since its period is larger. So the light carries the same energy for both observers. Even if its average energy is smaller total energies are same.  However, I could not convince myself and I think I am making wrong interpretations.


Why can't I delete a file even though I have write permissions?

The shell session should say everything: I can't delete a file (movie.avi) although I have write permissions. I don't get what the problem is. Have I missed something?  confus@homeserver:/home/narur$ id uid=1000(confus) gid=1000(confus) groups=1000(confus),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),106(lpadmin),117(sambashare),118(debian-transmission),1001(narur)  confus@homeserver:/home/narur$ ll | grep movie.avi  -rw-rw----  1 narur narur 1,4G Jan 11 09:42 movie.avi  confus@homeserver:/home/narur$ rm movie.avi  rm: cannot remove `movie.avi': Permission denied  # # # # SOME INFOS ON MY SYSTEM: confus@homeserver:/home/narur$ lsb_release -dc Description:    Ubuntu 12.10 Codename:   quantal confus@homeserver:/home/narur$ uname -a Linux conserve 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


I would like to use both insert and remove in the same sentence. However, I would like to know how I will use the prepositions because the verbs have different prepositions into/from.  There are some posts about this issue; however, mine is a little bit different because there is an object after my verbs as seen below.     This method either inserts or removes some parameters from queries.   What is the correct way of writing this sentence? I am not sure because both insert and remove needs some parameters.     This method either inserts into or removes some parameters from queries.   I think the above does not sound well,   or     This method either inserts or removes some parameters into or from queries.   Thanks


Must an ideal generated by an irreducible element be a maximal ideal?

If you have an irreducible element say $b$ in a ring, is the ideal $\langle b\rangle$ a maximal ideal?


sorry for asking if it's already asked. I could not found when I search.  Here is the situation.  If I want to log-out from SO with current id, and then another guy want to log in to SO with their account, we need to clear the browser cookie and cache.  Otherwise, when I log-out and try logging in, it will automatically log in with older account.  Why is that so? Why not all session and other information are not removed when we log-out?


Is there any special symbol to write "C++ programming"?

Is there any symbol to write    C++ programming   I had tried:   $C++$   The output is a wide space.


Convert PolygonZ to ordinary Polygon Shapefile

I'm using QGIS version 2.18.11  When looking in properties > metadata of a layer it says PolygonZ. I would like it converted to Polygon instead so I can merge the PolygonZ shapefile with another. At the moment I generate an error when using vector > data management tools > merge...hence if there is an alternative means to merge the two layers which would be easier than converting that would be fine.


Why is the review-needed indicator red for an empty queue on ELL?

I just noticed that the Close Votes review-needed indicator is red for me on ELL:    When I click on it, however, it shows that the queue has been cleared:    I've read the explanation about how the review-needed indicators work, but I didn't see anything that could explain what's happening:    I've tried refreshing the page in Firefox, and I've tried loading the page in Chrome, all with the same results.  Any idea what's going on?


I have multiple text inputs on a HTML page with the class="min_value", I need to add some validation to these text inputs with jQuery, the basic validation is shown, essentially is a value is entered below 250.00 the value of the textbox is set to 250.00 .  This works well with a single text input with the class "min_value" but not when multiple text inputs exist with the class name. Is it possible to alter this code so the validation is done on each text input, and only the value of that text input is changed?  jQuery(function ($) {      $(".min_value").each(function(){          $(".min_value").change(function(){               var min_value = $(".min_value").val();              if(min_value <= 250){                 $(".min_value").val('250.00');                   alert('The Minimum Value can not be less the 250.00');             }         });     }); });


Php multidimensional array sort by column of other array

I have first array of ids:  $ids = [10,12,8];   And I have array of data:  $arr = [         12=>[             'content'=>'test1'         ],         10=>[             'content'=>'test2'         ],         8=>[             'content'=>'test3'         ]     ];   How can I sort array $arr by $ids values, so as result I need have this:   $arr = [         10=>[             'content'=>'test2'         ],         12=>[             'content'=>'test1'         ],         8=>[             'content'=>'test3'         ]     ];


How do we know what natural numbers are?

Do I get this right? Gödel's incompleteness theorem applies to first order logic as it applies to second order and any higher order logic. So there is essentially no way pinning down the natural numbers that we think of in everyday life?   First order logic fails to be categorical, i.e. there are always non-standard models. Second order logic is categorical here, but does not allow us to prove all its true statements? Defining the numbers from set theory (e.g. ZFC) suffers from the same problem as all first order theories, i.e. there are non-standard models of ZFC which induce non-standard natural numbers?   How do we even know what natural numbera are, if we have no way to pin down a definition. What are the standard natural numbers? Or do we accept that second-order logic gives us this definition and we just cannot prove all there is?    LATER:   I think I can summarize my question as follows:     How do the mathematicians that write standard natural numbers have formal consensus on what they are talking about?


How to check/know the highest run queries

I would like to gather statistics on the highest run queries in my database.   For that I need to know how I can track queries so I can create views or materialized views to cache the results of the highest run queries since I have a big DB.


How to translate the results from lm() to an equation?

We can use lm() to predict a value, but we still need the equation of the result formula in some cases. For example, add the equation to plots.


How can I avoid this camera tracking error? "Some data failed to reconstruct (see console for details)"

I'm currently following Sebastien Konig's Match Track Blend DVD and have encountered a problem where despite matching camera type, lens type and trying to solve for distortion, I'm getting the following console messages when I try to Solve Camera Motion:  bpy.ops.clip.solve_camera() Some data failed to reconstruct (see console for details)   And I'm getting an average Solve Error of 0.9561, where I'm used to getting .4 and below. So what's going on?  The related files can be found .  This may be related to another question I've asked on the site -  I figured that the issues were different enough that I should give them different questions.  Many thanks to everyone who built and everyone who visits this site. StackExchange/Answers style-sites are very useful to me and I appreciate any time spent trying to answer the questions people ask here. (Thus ends that digression!)


How can I generate turn-by-turn directions using PgRouting?   At the moment, I have a web-page where a user can enter and start/end location and a route is generated on a map (using PgRouting and OpenStreeMap). I know how to list all of the street names, but I don't know what the best approach for stating which direction the user should take at intersections.   I have read through previous questions on this site:  and  but both of these questions are over two years old, and several of the answers link to sites that no longer exist.


I am getting the following error at the time of booting my laptop, I am unable to understand what is the problem in the system.


What does Wittgenstein mean when he says "there are no numbers in logic"?

From the Tractatus:     5.453 All numbers in logic stand in need of justification. Or rather, it must become evident that there are no numbers in logic. There are   no pre-eminent numbers.   What does Wittgenstein mean by saying that there are no numbers in logic? To some extent he was an adherent of Frege and of Russell who both gave logcial constructions of numbers. And elsewhere in the Tracatus he gives statements which touch on the logical construction of numbers, eg:     6.03 The general form of an integer is [0, ξ, ξ +1].   So what does Wittgenstein mean in 5.453?


I was doing this and worked perfectly fine:  def b64_image(filename):     with open("static/img/"+filename, 'rb') as f:         b64 = base64.b64encode(f.read())         return b64.decode('utf-8')   But now I uploaded the images to an S3 Bucket so I edited the code:  def b64_image(filename):     with open("https://mybucket.s3-sa-east-1.amazonaws.com/" + filename, 'rb') as f:         b64 = base64.b64encode(f.read())         return b64.decode('utf-8')   And I'm getting the fllowing error:  FileNotFoundError: [Errno 2] No such file or directory:   How can I make this code work? How can I make the code to look for the actual URL image? Thanks in advance.


I have wifi usb adpter. It has a RTL8188EUS, it is the WN725N from TP-LINK.  I'm running ubuntu server 20.04. I have tried to install a bunch of driver, but they are not able to compile, I think it is too old for the  linux generic headers, at least I read it at a blog or something. If I type in lsusb it shows up. I'm really new to ubuntu. Can anybody send a working driver for this? OS: Ubuntu Server 20.04 Chipset: RTL8188EUS Adapter TP-LINK WN725N Edit: Dear guy who linked the other post, that is the one that is not working for me.


I have been using Latex for a few years, and have several articles written in Latex. I want to share some of these articles on blogs, and I am very new to the blogging world.   Just wondering if there are any blogs which support a latex file/folder upload? If not, may be a way to get an output and upload it to the blog with hyperlinks etc?  Ideal would be a package that can publish directly from my Eclipse / RStudio UI to the blog, or even a command line tool would be just awesome.  Many thanks.


How to read value of variable, where the name of variable is the value of another variable

I think an example is in order. Consider I have these two environment variables setup (by a Continuous Delivery tool): PACKAGE_VER=1.2.3 and USE_VERSION_FROM=PACKAGE_VER.  What I want now is a script that can't predict the name of the variable pointing out 1.2.3, only USE_VERSION_FROM. And so, I'm looking for a way to get my script to know the version to use (1.2.3) without knowing anything other than that USE_VERSION_FROM points out the name of the variable that holds the version number.  My naïve non-working first attempt:  #!/bin/bash VERSION_TO_USE="${${USE_VERSION_FROM}}"


just a few days ago i purchased a dell inspiron laptop with pre-installed ubuntu 14.04 LTS. i was installing the software center and updating in the software updater and it was just completed upto 85% and then  it's just goes unresponsive . after this i tried to shutdown but it won't so i just forcefully shutdowned using the power button.when i restarted it's showing a black screen and it's showing the following-              GNU GRUB version 2.02~beta2-9ubuntu1.3   Minimal BASH-like line editing is supported.for the first word,TAB   lists possible completion. Anywhere else TAB lists possible device or file completion.  grub>_   please help me to step forward!


Is there a way to render single frame using network rendering in Cycles?

I'm working on architectural visualisations, and I can't imagine more useful feature. How render farms for rent do that?


I've an issue with my Google Cloud compute VM. It's running Ubuntu 14.04, Apache2, PHP and Percona MySQL.  The server won't respond to TCP connections on port 80. I can connect via SSH, and the server appears to be normal.   I found a couple of dodgy looking files which I've attached [Not attached any more], they seem to have been some kind of data gatherers. I've removed the files, and am assuming Google have blocked my instance from it's network for web traffic.  I'm at a bit of a loss as I've no idea where to go from here. The server is being hammered by lots of different IP with requests for these files.  Any advice is much appreciated.  EDIT: This question isn't about how to deal with a compromised server. It's about how to get Google to allow traffic to the VM again. As I've not got any notifications, statuses or anything to go by in my GCC control panels.


Stack Exchange profile: “This user prefers to keep an air of mystery about them”

When a user does not fill his "about me" section in his profile, the following sentence appears:     Apparently, this user prefers to keep an air of mystery about them.   To my knowledge (which are restricted I admit), it should be     Apparently, this user prefers to keep an air of mystery about him/himself.   I'm pretty sure that I'm wrong, however I really don't understand the use of plural in "them".  Could you please explain me the underlying grammar rule that justifies such a term? Also, I'd be happy to know if replacing them by him or himself would be correct.


A couple of years ago, a former coworker told me a trick in Bash that I completely forgot how to do it. The idea is that when you type a path, in the next command you can use some shortcut to automatically put that path there as well.  Let's say I create the directory /tmp/test. If then I want to move a file there, I could mv file [shortcut that puts /tmp/test]  What's that shortcut?


Showing $[0,1]$ is compact w.r.t to cofinite topology

Let $\tau:=\{A\subseteq \mathbb R: \mathbb R\setminus A \operatorname{finite}\}$  Show that $[0,1]$ is compact.  Let $(A_{n})_{n}$ be an open cover of $[0,1]$  I had two ideas:   $1.$ Since $[0,1]\subseteq\bigcup_{n \in \mathbb N}A_{n}$ there exists an $x \in [0,1]$ and an $\alpha \in \mathbb N$ so that $x \in A_{\alpha}$  I want to claim that since $A_{\alpha}\in\tau\Rightarrow\mathbb R\setminus A_{\alpha}$ is finite and thus $[0,1]\subseteq A_{\alpha}$ but I have not been able to show this directly.   Then I came to second idea:  $2.$ By contradicton, assume that the $A_{\alpha}$ chosen in $1.$ does not contain all of $[0,1]$ and since $\mathbb R \setminus A_{\alpha}$ is finite, $[0,1]$ is at most not covered by $A_{\alpha}$ by finitely many points, and thus we can find a finite subcover.   Any ideas/suggestions/corrections, are well-received.


Is there offside when the ball deflects off an opponent?

I was refereeing a 10 year old's junior game today and this situation happened. The home team's defender attempted to  pass from their own half to their forward who was in an offside position beyond the halfway line.  I was going to blow the whistle but the ball deflected off an away defender and then went to the originally offside attacker who put the ball wide.  I viewed this as onside at the time because the ball struck the away team player, however now I think it was offside because at the time of pass, the home player was offside.  Is this offside or not?


What is the current state of research about the Hayden-Preskill circuit?

Can someone summarize as to what are the problems and/or the open questions with the ? (in the context of understanding black-holes or as a computer science question)It gives a framework to see how the black-hole can thermalize in a $log (entropy)$ time scale. What next?   To start off,   The sort of problem with the Hayden-Preskill circuit is that it works via random unitary transformations on disjoint pairs of qubits and hence doesn't have an Hamiltonian interpretation. I believe one has always believed that matrix models (of matrix size $\sqrt{entropy}$) can saturate this logarithmic thermalization bound via Hamiltonian evolution.    Has this above belief about the matrix models been proven yet?  Is there an intuitive explanation as to why a theory with finite dimensional matrices should behave like an infinite dimensional system?


Is there any rule for pronouncing words beginning with “re-”?

It’s hard for me to guess how to pronounce words beginning with re- correctly.   Sometimes it is /rɛ/ as in reference, but sometimes it is /ri/ as in report.  Is there any rule about this?


I installed GeoServer 2.12.1 on windows 8.1 x64 and I am trying to design a custom "login" form using AngularJS5 with Node.js, but when I make a request to geoserver it rejected by CORS, and get the error:     Cross-Origin Request Blocked: The Same Origin Policy disallows reading   the remote resource at . (Reason:   CORS header ‘Access-Control-Allow-Origin’ missing).   I read several questions here and follow the steps to enable CORS in geoserver by: downloading the matching "Jetty-Utility Servlets" jar file and putting it in the path:  C:\Program Files (x86)\GeoServer 2.12.1\webapps\geoserver\WEB-INF\lib   and also I uncomment the filters in the web.xml file and then restart geoserver .. but all that not worked with me.  I don't know what is wrong. As I said above I read several post about the problem but no luck.Like this question:     The Solution: I used in my request headers, the Authorization header which doesn't allowed by default by CORS, so I added it explicitly in the web.xml file:  <init-param> <param-name>allowedHeaders</param-name> <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,Authorization</param-value> </init-param>


How should I handle search engines auto-correcting the spelling of a site's name?

A client's site and company is called 'Tranin Communications' (Tranin is her last name). It ranks well in searches for her name but rather poorly in searches for the name of her site/company.  I realized that this is largely due to* search engines (Google especially) assuming that the query was misspelled and automatically including results for both 'train communications' and 'communications training'. Both of those queries yield many high-ranking sites that completely drown out hers. Sometimes Google even shows results for 'communications training' instead of 'tranin communications', hiding her site altogether.  Is there a way to report an incorrect auto-correction to Google or something I can do to discourage this behavior (e.g. a meta tag)? My searches have come up cold, any suggestions would be appreciated.  *I've come to this conclusion because her site ranks very highly when the same queries are put in quotes.


Is it safe to power a PC fan (12V 0.30A) with an adjustable power adapter (3 -12V 2A) for an extended period? (8 hrs/day, 365 days/year)

I bought a DIY air purifying kit that uses a PC fan to pull air through a HEPA filter. A blade broke and so the fan needs to be replaced. I want to buy a better quality fan, for example from Noctua.  Here is an example kit, though mine is slightly different:   Adjustable power supply: 12V 2A ()  Fan: 12V 0.30A brushless  My questions:   In general, is it safe to use an adjustable power adapter on a PC fan? Conditions: the fan pulls air through a filter, runs 8 hours / day, 365 days/ year.  Can I use any PC fan with the adjustable power adapter? Or should I look for certain things when choosing a fan? The ideal fan being brushless and having a high static pressure rating. Assuming the fan is rated below 12V 2A.


C converting 8 bit values into 16 bit values

I have a situation where I pass an array containing 2 1 byte values to a function, but somehow the function thinks the array is 4 bytes long, which messes up my bit manipulation big-time. I even tried explicitly casting each array value as a uint8,but to no avail. Any ideas about what might be happening? Using cygwin's gcc tools on Eclipse Mars.1.  typedef char uint8; //char is 1 byte in my system.  void setBitArray(uint8 bitArray[], int first, int last, uint8 type) {     if(first >= 0 && last < sizeof(bitArray) * 8) { // If the block is in bounds         ...     } } ... int main() {     uint8 bitArray[2] = {(uint8)0, (uint8)0};     setBitArray(bitArray, 0,10, 1);     return 0; }   EDIT  One more thing. sizeof(bitArray) yields 2 bytes in main().


How do I connect to a pc through another pc using ssh

I have three Computers.  PC1 and PC2 is on a private LAN, where PC1 is known to PC2 as 192.168.0.2  PC2 and PC3 is on a another  LAN, where PC2 is known to PC3 as 192.168.123.101  How can I connect to PC1 from PC3 with SSH.  Is there something like:  ssh user@192.168.0.2 -via user@192.168.123.101


Dynamic Table partitioning on a daily basis

I have a SQL Server database which contains two tables -- Acks and Logs.  These two tables are related in logic but not in a relational database way. Basically, every message that comes in gets saved in the Log table and, if our server acknowledges it, then that ack gets stored in the Ack table.  We are storing around 5 million Acks and 3 million Logs a day. I am trying to partition these two tables on a daily boundary so that we can easily remove older partitions from the table, and also improve query performance.  I haven't done table partitioning before, so I have been reading some on-line tutorials, however I am stuck on one thing. All the tutorials I have followed seem to manually add filegroups and manually add boundaries.  I want SQL Server somehow to do this daily, and this is what my question is about. I need it to create the new filegroups for the next day, every day at, say, 22:00. Then at 24:00 the inserts should start filling up the new day's partition.  Can anyone point me in the right direction on how to achieve this? Either a comprehensive tutorial or some good old advice will do as well.  My second question: can I somehow apply the same partition function to the two different tables?  They both have a datetime(2) column on which I want to partition, and the same rules  will apply.  How does that then fit in with my filegroups? Do I need a single filegroup for the day? Will each table have a file in that filegroup, or will both tables save to the same file in the filegroup?  Do I have to make a .mdf and .ldf for each filegroup? Or is there still one log file for the entire database?


Im trying to add multiple holes within my mesh, so I divided it up, and then used cylinders shapes to make the holes. On the top image I used the Boolean operation. And on the bottom image, I subdivided one of the rectangles and used the looptool method with the circle. Once I add a subdivision modifier I am getting weird result with the Boolean but the operation holes, but the bottom Hole looks more acceptable once cleaned up. Is one or the other method the correct way?


What would be a good introductory book for ODEs and PDEs with good concepts?

I have reasonable undergraduate and graduate background(just ode & pde part is horrible).I want an introductory book that doesn't just list some ways to solve a bunch of equation.I want it to give me ideas necessary to make the ways feel reasonable and also keep things rigorous.I have no problem using different books for rigor and ideas.Also,a book of geometric flavor or connecting geometry to it would be very good.As, geometry is the main reason I am studying it.Thank You.  edit:it's not duplicate.I think I asked for something more than the answer's there provided.


When I log in, it hangs until crng init done

When I log in with LightDM on my laptop running Debian Unstable, it recently started to hang for around 2 minutes until journalctl shows the message kernel: random: crng init done. When I press random keys on my keyboard while it hangs, it logs in faster (around 10 seconds). Before I didn't have this issue, is there any way I can fix it?  Edit: using linux-image-4.15.0-3-amd64 instead of linux-image-4.16.0-1-amd64 works, but I don't want to use an older kernel.


Do I need "the" before the name of my university?

Possible Duplicate:          I was updating my LinkedIn tagline and thinking about whether I should put the article before the name of the university.     Student at the University of […].   Student at University of […].   I am leaning towards the former but I am not sure.


How can i write text between some pre-defined coordinates in tikz?. As shown in the attached figure, i want to write text between a-b-c-d coordinates.


Mark 90 degree angle in tikz in german convention

What's the best way to denote a 90 degree angle with german convention like on the following picture in tikz:    Suppose I start with something like this:  \documentclass{article}  \usepackage{tikz}  \begin{document}  \begin{tikzpicture}    \coordinate (O) at (0,0); %    \coordinate (A) at (1,1); %    \coordinate (B) at (1,-1); %     \draw (O) -- (A); %    \draw (O) -- (B); %  \end{tikzpicture}   \end{document}


Who owned the starship that abandoned Rey on Jakku in her vision?

When Rey was left on Jakku, she faintly remembers seeing a starship leave Jakku.  We're given a little glimpse of the Starship in Star Wars: The Force Awakens.  Who owned that Starship?  As in, was it a First Order / Empire Starship or a "good guys" Starship?   Obviously this would be a huge clue into who left her there (maybe), but I do understand that there may not be an answer for it at this time.


"EOFError: EOF when reading a line" Using raw_input() in ArcMaps Python Console

I am writing a python script to automate some ArcMaps data processing.  I am getting hung up at raw_input().  I am using raw_input to get input from a user.  A folder will be created with the folder name based on the user input.  I don't understand why this isn't working. I've viewed tutorials, read the manual, etc... and I still can't figure out why I am getting this error for raw_input().  I've managed to be able to get user to select files and directories suing the Tkinter toolkit should I look into using this toolkit to get text from a user prompt as well?


let's say that I have a following file structure:  ~/DIR1 -fileA -DIR2 --fileB   Then, being in ~, I run this script:  cp DIR1 NEWDIR2   And just an error happens:  cp: omitting directory ‘DIR1’   I understand why nothing from DIR1 gets copied (because I didn't use -r switch that would enforce recursion) but I'd expect the DIR1 folder itself copied to NEWDIR2 (so practically a creation of a new "NEWDIR2" in ~ or a creation of ~/NEWDIR2/DIR1).  Could someone explain to me why is my expectation wrong?


increase resolution by taking several pictures - is it done?

What if I took two or more picture of the subject quickly one after another, then used these images to increase resolution?  It seems to me that if I take two pictures of the same thing, then my pixels will be aligned slightly differently with the image of an object. So it must be possible to process these images and achieve higher resolution than the camera's physical capabilities. Does anyone know of such software applications?


Does the blacksmith craft monk-specific gear?

In leveling up the blacksmith, he will definitely craft some gear that is of no use to the monk (for example, a two-handed sword).  Does he eventually craft gear that is monk-specific?  Is it worth leveling the blacksmith to the point where such gear becomes available?


Correct way to perform cross-validation when PCA is involved

What is the correct sequence to perform PCA + cross-validation out of these two?   Perform PCA and then perform k-fold cross validation on the reduced features. Perform k-fold cross validation in outer loop and perform PCA internally.


Defining class derived from template class is not enough

"A.h"  template<class T> struct A  {     void foo(); };  template<class T> struct B : A<T> {};   "A.cpp"  template<class T> void A<T>::foo() { }  template struct B<int>;   When I call method foo of B in other source files it doesn't build because of unresolved external symbol. Why isn't A defined with B? I find that weird at least. Is there a way to force A definition from definitions of B? I tried adding "using A::foo;" to struct B but it didn't change anything.  I know I can simply define A but I don't want to because in my real code "A" contains more template parameters than "B" and I am worried than I will make mistake that will not be detected until someone writes code that requires those unresolved methods. Also I am very curios as to why it doesn't work.


How can I improve the performance of an older iMac?

I've got an older iMac running macOs Mojave. It is terribly slow and I am interested to see if we can improve the performance. Can you recommend steps to consider to improve the performance?   The performance issues I see impact the operating system and all applications. It's not specific to a single app.  When viewing the About modal:   MacOS Mojave Version 10.14.6 (18G103) iMac 27-inch, Late 2012 Processor: 3.2 Ghz Intel Core i5 Memory: 8 GB 1600 MHz DDR3 Graphics: NVIDIA GeForce GTX 675MX 1GB   Looking at the System Report, I see:   Status on Memory Slots is OK. Has 2 4GB 1600 DDR3 cards. Hard Drive: I have about 500GB of available storage on 1TB hard drive   Other than these basic stats, I'm not sure what would be relevant to help diagnose the performance issues on this machine. What information could I provide to help determine the issue? Thank you.