It is well known that natural numbers start in 1. However, sometimes people work with a "widened set" of natural numeres plus zero, $\mathbb{N}\cup\lbrace 0\rbrace$. That is, all non-negative integers. Is there a specific symbol for this set? such as $\mathbb{N}^{*}$, $\mathbb{Z}^+$ or anything similar? Thank you

I would like to specify the set $\{0, 1, 2, \dots\}$, i.e., non-negative integers in an engineering conference paper. Which symbol is more preferable?   $\mathbb{N}_0$  $\mathbb{N}\cup\{0\}$  $\mathbb{Z}_{\ge 0}$ $\mathbb{Z}_{+}$


l_test_word = 'in €' print(l_test_word)  if re.match(pattern=r'[£$€]+', string=l_test_word):      print("Match") else:      print("No Match")   I am trying to match if a string contains curency symbols. The code snippet above when runs returning "No Match". Unable to figure out why? I am using python 2.7.13.  Thanks.

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


I am doing my PhD in data mining and I want to start writing my thesis. Is there any acceptable percentage of similarities between the final thesis and the used published research to create the final thesis? For example, one of my research papers is published by IEEE as full research paper and at the same time I extended that paper and got published with a journal. Now, I plan to include them in my thesis and I almost ran out of phrases and words to describe the work without having duplication from the two works.

I am a final year PhD in UK in a scientific discipline and I am writing my thesis. I have already published 2 journal papers and I have submitted 2 more papers for publications. My department does not allow a "publications-based" thesis so I need to write a thesis in the context of a book etc.   As I write my thesis in a couple of places, especially in the literature review, I tend to reuse sentences from my publications. I try to restate them a bit, maybe change some words for their synonyms etc. but it is practically me writing about what I wrote before. It goes without saying that I cite/quote me at the end of a passage if I say something non-obvious (I found that slightly funny. :) ). The problem is that occasionally I am just explaining for instance how a certain estimation technique works; in that case I cite the original authors and not myself. The syntax in those occasions though is practically the same as the original passage I used in my publication; as I have explained it once and was consider good, I find no reason to reinvent myself (I do a mild rewording as I mentioned but that is quite insignificant). Same things goes for listings. I do cite my paper in the beginning of a big list as the list's source but the list itself is almost identical as the one in "my" paper; in those cases I don't use quotations, just attribution "[]".  Is there an obvious guideline? The basic definition of plagiarism "reproducing the work of another person's as your own" is not (directly) applicable to me because I am the other person (almost *); if I am using other people's work I do cite them but I don't cite myself, citing them, in quotation marks!  I am a bit "fuzzy" about how not to plagiarize myself in my thesis (I have had no problem regarding my journal publications).  (* In all publications mentioned I am the first -but not sole- author.)


This is question 1 from the 2009/10 issue of the BMO, and it reads as follows: There are   $2010^{2010}$    children at a mathematics camp. Each has at most 3 friends at the camp, and if A is friend with B, B is friend with A. The camp leader would like to line up the children such that there are 2010 children between any pair of friends. Is this always possible? I was wondering is anyone had any clues/hints on how to solve this?

There are $2014^{2014}$ children at a mathematics camp. Each has at most three friends at the camp, and if A is friends with B, then B is friends with A. The camp leader would like to line the children up so that there are at most $2014$ children between any pair of friends. Is it always possible to do this?  I thought maybe the pigeon hole principle. Obviously the 2014 is arbitrary. I googled it looking for a solution and it turns out it is from the BMO round 2. there it is 2010. Any help would be much appreciated.


Hi so I was creating something in cycles and then I realized that I needed to use the halo material for an effect and so switched back to blender render but now when I try to render the picture it comes out as black and white (it came out in color in cycles) I have the render settings set to RGBA but it doesn't work in RGB either.   Please help Cheers  Also a side question, although cycles is better than blender from what ive read they both have different unique features so which is better for what?

How does Cycles work and how is it different from Blender Internal?  Which is better?


What is sanitation? What does he do? I'm not look for the why. Does it have something to do with garbage? The garbage compactor?

Finn tells Han that he worked in "Sanitation" on Starkiller.  FINN The flooding tunnels are over that ridge. We'll get in that way. HAN What was your job when you were based here? FINN Sanitation. HAN Sanitation? Then how do you know how to disable the shields? FINN I don't. I'm just here to get Rey   It just occurs to me - the "I was in sanitation" line given to Han seems to be the only actual canon evidence of "Sanitation" job.   But was it the truth"?!?!  Finn is always trying to create a positive impression of himself with the Resistance, from the get-go:   He tells Poe that he's rescuing him because that's the "Right thing to do" (with Poe quickly seeing through the fib: "You need a pilot!") He tells Rey that he's Resistance (she buys that because she's a romantic 19 year old still playing with X-Wing pilot helmet) He tells Han that he's Resistance (that one lasts about a minute - Han was not a romantic 19 year old even at 19 :)   In reality, we know that he was 1% of his class, model stormtrooper cadet, personally groomed for promotion by Captain Phasma (; ).  However, I am pretty sure telling Han "Hey, I was 1% of my class, model stormtrooper cadet, groomed for promotion by Captain Phasma"  isn't high on his list of brand management plans.  Far better to pretend to be a lowly "sanitation" worker than top-flight cadet that he really was.  So, my question is - do we have any direct canon evidence proving that the "sanitation" job was real and not a fib to make himself look better to Han/Resistance?  Knowing where trash compactor was isn't direct evidence, though it is circumstantial one.


Let $\left\{x_n\right\}$ be a sequence where $x_n = \frac{1}{1\cdot3}+\frac{1}{2\cdot5}+...\frac{1}{n\cdot(2n+1)}$   I have to calculate, to which point does the sequence $\left\{x_n\right\}$ converge, using Euler's constant($\gamma$). That is, I have to use the fact that the sequence $\left\{\gamma_n\right\}$ converges to $\gamma$, where $\gamma_n =1+\frac{1}{2}+...+\frac{1}{n}-\log n$.  But I cannot reduce $x_n$ to any form relating $\gamma_n$. Please help me solve it. Thanks in advance.

$$\frac{1}{1 \times3} + \frac{1}{2\times5}+\frac{1}{3\times7} + \frac{1}{4\times9}+\cdots $$  How to find sum of this series?  I tried this: its $n$th term will be = $\frac{1}{n}-\frac{2}{2n+1}$; after that  I am not able to solve this.


On my camera, a Canon PowerShot G1X, I can select picture sizes from S to L.   Now I wondered, if I select a smaller picture size, that would theoretically lead to more sensor surface per pixel, possibly making the camera perform better in low-light or other 'harsh' conditions.   However, when I try this, I can't notice any difference in behaviour. The end result just looks like a resized version of the larger picture, and there are no differences in shutter speed and ISO to get to that result.  So, it looks like the camera just takes a large picture and then downscales it, which was against my expectations (or at least against my hopes).   Pixel Binning  The term that I think I am looking for is  also known as ,  or .   It certainly has advantages over downscaling by software, because it makes more efficient use of the hardware (faster reading, better noise reduction).  I think the answers below don't really answer my question. Neither do the answers of the supposedly 'duplicate' of this question, although the  came closest by at least suggesting that a camera might support this 'hardware-level binning', which allowed me to continue my search.  So far I couldn't find evidence that the Canon G1X supports binning, so I'm afraid it does not. But if someone know if it does (or maybe knows a hack or trick to enable it), please let me know. Previously I had a Canon PowerShot SII, and there was a way to install 3rd party firmware to unlock extra features. Maybe something like that is possible for the G1X as well?

Suppose you want to store your photos at some lower resolution, let's say about ~1 MB large.  You own a camera able to make photos at 5 MPix and more.  And, you want to have the maximum quality at the smaller size.  Would it be better to make a photo at highest resolution and then resize it with PC software (with a good filter of course), or to directly set the camera to make photos at 2 MPix only?


My site is indexed in google with too different domain names , one with http and another with https .  I was just wondering that if there is something I should do like trying omit one , or there is no problem and Google will take it . Thanks.

I have one website. I have two domain names that I want to point to the same site install.   So whether you go to name-one.com or name-two.com you see the exact same site.  Now, I can either set up name-two.com to serve 301 redirect header redirecting to name-one.com – or, I can set up name-two.com as a CNAME in the DNS pointing to name-one.com  What is the different implications for SEO on this? What is recommended?  I would guess it's better for branding to use a 301 redirect, so that visitors will see one consistent url for my site, right?  The reason I want the two domains is that I want a version with regional letters ('ö' instead of 'oe' ) in the name.


Suppose $f, g: [0,1] \rightarrow [0,1]$ are continuous functions, such that for each $x$ from $[0,1]$ the identity $f(g(x)) = g(f(x))$ is true. Does there always exist $y\in[0, 1]$, such that $f(y) = g(y)$?  That statement seems to be true, but I do not know how to prove it.  Any help will be appreciated.

Let $f$ and $g$ be continuous functions and map from $[0,1]$ to $[0,1]$. Also let $f(g(x)) = g(f(x))$ . Prove that there exists $c$ from $[0,1]$ such that $f(c)=g(c)$.   I will try with contradiction. Let $h(x) = f(x) - g(x) > 0$ for all $x$ from $[0,1]$. Since $f(x)$ maps from $[0,1]$ to $[0,1]$ and is greater then $g$ for all $x$ from $[0,1]$ then this implies that $g(x)$ is not an element of $[0,1]$ for all $x$ from $[0,1]$. This is a contradiction, so there exists $c$ from $[0,1]$ such that $f(c)=g(c)$. Problem here is that I never used fact that  $f(g(x)) = g(f(x))$ which bothers me. Is proof correct or there is hole somewhere?


Frankly, this is an old topic, but I am hoping this is a new perspective. Though it is been a while, I am pretty familiar with PCA and all the linear algebra/math beneath it.  I was thinking about using PCA for some task today and was following the standard recipe to normalize features before performing PCA, but couldnt wrap my mind around one detail.  Intuitively, if the dataset is multivariate Gaussian, the contour is an ellipsoid. What PCA does is removing the shorter orthogonal axis after a linear transformation. See image below.    The part that is unclear is that after you standardize your variables, the ellipsoid becomes a ball. All the orthogonal axis have the same length. What is the point of doing PCA then?

What are the main differences between performing principal component analysis (PCA) on the correlation matrix and on the covariance matrix? Do they give the same results?


While browsing through the question list the questions themselves should contain the date/time the question was asked. This feature is on desktop, but on the app it currently shows only edited times.    If this feature is already on the app, how can I see the time questions were asked?

In question results list, the dates/timestamps should be shown the same way as they are on the site. I.e., when sorting by newest, then show the "asked" date, but sorting by activity should show the last modified date.   In other words, show the user the date that the app is actually sorting by.  (Adding "asked" or "modified" before the date might be good, if space-consuming.)      Example of how the site does it:


I was predicting time series using auto.arima () in R and I found something I don't know how to interpret.  For a certain number of time series, auto.arima () indicated that the best arima model was ARIMA (0,1,0)    And as you can see, the prediction is a constant line. Why is this happening? what interpretation can i give to the line?  PD: about my time series: they are series of 38 data, seasonal with data grouped into quarters of the year

I ran the auto.arima()command in R on a set of data and it chose the appropriate model to be ARIMA(0,1,0).  I know ARIMA(0,0,0) is just white noise, but what does ARIMA(0,1,0) mean?


Just wondering why there is no option in Ubuntu's desktop environment to open a program, for example Nautilus, as root. I know that I can accomplish this in the terminal, but wouldn't it benefit the Ubuntu's usability to allow this to be done by simply right clicking on a program?

Why does Ubuntu not allow the GUI users to login as root at the time of system start up like administrator in Windows?  Why they are restricting us to login only through the terminal?


I've recently started on the maintenance of a mature product and littered throughout I see switch statements used like such: switch (true) {     case true when object.firstBoolValue:         // do something         break;     case true when object.secondBoolValue:         // do something         break;     case true when object.thirdBoolValue:         // do something         break; }  Personally, I would have preferred to write it like this: if (object.firstBoolValue)     // do something     return; if (object.secondBoolValue)     // do something     return; if (object.thirdBoolValue)     // do something     return;  // do default return;  Primary question: which is better for readability? Secondary question: which design (if any) is more performant?

What is the benefit/downside to using a switch statement vs. an if/else in C#.  I can't imagine there being that big of a difference, other than maybe the look of your code. Is there any reason why the resulting IL or associated runtime performance would be radically different? Related:


Ubuntu 16.04  I can enable Desktop Sharing and it works great.  If the system is rebooted, I cannot VNC to the login prompt, I have to have someone log in first.  I could enable auto login, but I have heard this may not work if you need CUDA loaded.  Is there a good way to just have a VNC server running all the time where I can use a basic VNC client and connect, login and use the computer?

Is it possible to remotely (via ssh) make a login to GDM? I'll explain a situation in which I'd need this: I'm on my laptop and connect to my desktop via ssh. I realize there are some updates available. I install them all, but I need to reboot the computer. The problem is that once the desktop has rebooted, there will be no GDM session available, since it's necessary to log in. Can I somehow perform the GDM login remotely from my laptop?  Edit: I can't find FreeNX for Maverick, and I haven't been able to configure x11vnc + vncviewer to work. Isn't there an easy way?


So I'm trying to complete some of the project Euler challenges in Python3.6 and I've run into this problem:  def divisors(n):     divisors = []     for i in range(2, round(n/2)+1):         if n%i == 0:                 divisors.append(int(n/i))     divisors.append(1)     return sum(divisors)  def checkAmicable(n):     if divisors(divisors(n)) == n:         if divisors(n) != n:             return True     else:         return False  def main():     amicables = []     for i in range(1,20000):         if checkAmicable(i) == True:             if (divisors(i)+i) not in amicables and divisors(i)<10000:                 amicables.append(divisors(i)+i)     print(sum(amicables))  main()   This is my solution to problem 21 (euler21.py), it works and gives the sum of the amicable pairs as asked. I want to be able to import the function "divisors(n)" into another file of code (in this case euler23.py).  From my understanding this should work:  from euler21 import divisors print(divisors(220))   And this should simply print 284, however, when executing it, the entire euler21 code executes and I get the results of that program, plus the 284 at the end, like this:  31626 284   Any suggestions? Could it be due to me using my command line as opposed to the IDE?  TL;DR: imported file executes entire code, not the specifically called function.

Given the following code, what does the if __name__ == "__main__": do?  # Threading example import time, thread  def myfunction(string, sleeptime, lock, *args):     while True:         lock.acquire()         time.sleep(sleeptime)         lock.release()         time.sleep(sleeptime)  if __name__ == "__main__":     lock = thread.allocate_lock()     thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))     thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock))


Let $f$ be a holomorphic function on unit disc $D:|z|<1$.  (a) $z_1, z_2, ..., z_n$ are the zeros of $f$ on $D$. Suppose that $|f(z)|\leq M$. Show that $$|f(z)|\leq M \prod_{i=1}^{n} \frac{|z-z_i|}{|1-\bar{z_i}z|}$$ I know that $\frac{z-z_i}{1-\bar{z_i}z}$ maps the unit disc to itself, and maps $z_i$ to 0. So $\frac{|z-z_i|}{|1-\bar{z_i}z|}$ should be no greater than 1. But it's the wrong direction.  I think that Schwarz's lemma should be used(but I don't know how). Thanks for help.

Let $f$ be analytic in $B(0;1)$, and suppose that $|f(z)|\leq M$ for all $z\in B(0,1)$. If $f(z_{k})=0$ for $1\leq k \leq n$. Show that  $$|f(z)| \leq M\prod_{k=1}^{n}\frac{|z-z_{k}|}{|1-\bar{z_{k}}z|}$$ for $|z|<1$.  What I have done is proved the result when  $k=1$. That is if $f(z_{1})=0$, with $|f(z)|\leq M$ on $B(0;1)$, I have proved that  $$|f(z)|\leq M \frac{|z-z_{1}|}{|1-\bar{z_{1}}z|}$$ for $|z|<1$.  Now I tried to consider this function:$g:B(0;1)\to \mathbb{C}$  $$g(z)=\frac{f(z)}{\prod_{k=2}^{n}\frac{|z-z_{k}|}{|1-\bar{z_{k}}z|}}$$  Now $g$ has removable singularity at the points $z_{2}, z_{3},.... z_{n}$. So after removing these singularities we can consider $g$ to be analytic. Now wanted to invoke the result I have proved above since $g(z_{1})=0$. But couldn't do so because $g(z)$ might not be bounded by $M$ on $B(0;1)$. How can I work this problem out.   Thanks in advance!!


I followed  and managed to build a distro:  However it only boots with VirtualBox, and this guide is hopelessly out of date. Searching around the net, I found this handy tutorial on  Now I managed to get something sort of working. There are still problems and the guide is not complete.  However the question still remains- where can I find this info?  Where is the source repository for Ubuntu with the build guide?

I would like to customize Ubuntu live CD by installing some additional packages. I have followed   but it doesn't seems to work. Can anyone provide clear instructions?   Note: I do not prefer Remastersys, manual way will be appreciated.  Customization  Packages that I want to install:   Thunderbird    Samba    SSH       Changes that I need:   Remove Games menu from the Application menu Firefox shortcut on Desktop Radiance as the default Theme Different default Ubuntu Wallpaper   Configuration file changes   I want the panel to be placed at the bottom I want to paste my Samba configuration file instead of default Samba configuration I have few Firefox shortcuts and folders I would like to show that in Desktop Also it will be nice if you say me how to change the icon sets   Recent Updates   I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue? Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.


If the number of buyers and sellers has to be equal, because when one buys other sells, then how come there are times of buyers or sellers markets?  At any moment of trading what does it mean when the market has more buyers than sellers? Or vice versa?

I often hear/read technical analysts looking at volume and price action on a chart and claiming that there are "more buyers than sellers" or vice versa.  Since every trade requires a buyer and a seller, how can volume/price signify more of one than the other?  What does that actually mean?  When I hear that there are "more buyers," I get the impression they actually mean more "professional" or "institutional" buyers, but I could just be imagining that meaning.  But wouldn't this "more buyers" situation actually represent a smaller number of large buyers placing multiple orders? (and those orders would be matched by a larger number of smaller investors on the other side of the trade?)  Maybe I have my assumptions backwards and "more buyers" is what they say when they actually mean "more retail buyers and less institutional buyers"?  Or maybe the expression has nothing to do with number of buyers/sellers at all and is just some arbitrary technical analysis situation?  What situation is it that they're trying to describe?  If the "smart money" traders had placed larger orders, then there would have to be equally large sellers on the other side of that large trade, right?  I know trades often get broken up, but if the trades had been broken up it would be equivalent to "large traders placing multiple orders" scenario described above.  If the trades were not broken up, then there would not be an imbalance in the "number" of "smart" vs. retail buyers/sellers, right?  UPDATE/EDIT: I usually see this stated in reference to technical indicators such as RSI.  I don't typically hear people saying "there are more buyers than sellers" in the situations you guys are describing with more unfilled orders on one side of the (potential) trade (though that would make more sense if that was what they were talking about).  See for example:


Look for tips on how to load the Windows 7 operating system into RAM. In a word of introduction, I will describe what I want to achieve. I would like to have a built computer without a hard drive in which the motherboard, processor and adequate amount of RAM will be installed. Components such as a keyboard, touchscreen and router will be attached to the computer. It seems that the computer will recover from the power cut. To be precise, I would like to connect the pendrive with the system to the computer, run it, wait for the system loading, and then disconnect the pendrive and get the computer working with a fully functional operating system in the RAM memory. How can I create (what programs do I need) a self-image of the system that will self-load into RAM?

Is it possible to put the entire operating system on a ram disk? If I have 16 GB of RAM and it is an Intel Xeon. I don't have an SSD and my hard drive is killing my boot time. So can I just allocate some of my ram to work as if it were an SSD and install windows and vital software on it, to gain super fast speed. Or is it more trouble then its worth and would be better off just buying an SSD?


Is it possible to have a case within a case, I have seen examples of people using many ifs  if ($check1=1);then     if ($check2=2);then         if($check3=3);then         fi     fi fi   I'm not sure how do i put this example into the case within a case.

Have I got enough (or perhaps too many) ;; terminators in this bash script containing nested case's?  case "$1" in OK)     # Nothing needs done     echo -n "OK:1" ;;  CRITICAL)      case "$2" in     SOFT)         case "$3" in         1|2)              soft_reset_pool.sh ;;         esac ;;      HARD)         case "$3" in         1|2)             hard_reset_pool.sh ;;          3|4)             hard_reset_service ;;          esac ;;     esac ;;       esac   It's been a few years since I did any bash in anger.


Last friday I received an email from my potential supervisor that my application was positively reviewed and that they will further progress with my application if I'm still interested. I replied that I'm happy to hear that and that I'm still interested. However, up until now, I didn't hear from them anymore. Is this normal? I though they would invite me for an interview as soon as possible. I know I might be panicking, but I'm afraid they forgot me. Can I send a second email to ask what the next steps are? Or should I just be patient...

When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)


Integrate $$\int^{\pi/4}_{0} \frac{x^2}{(x \sin x + \cos x)^2}dx$$  How can I integrate this ?   Question asks us to re-arrange the numerator

The question:      Compute$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} $$   Tried integration by parts. That didn't work.  How do I proceed?


I need to run tasks in parallel and transfer about 3-5 parameters to them, but now I transfer 2 parameters to the task, and as a result, I always see the value 100 in the console. Tell me what am I doing wrong? and how to correctly pass parameters to the task? class Program {     static void Main(string[] args)     {         /// Init         string file_name = "unknown.dat";         Action<string, int> action = (msg, count) => Load(msg, count);          /// For         for (int i = 0; i < 100; i++)         {                Task.Factory.StartNew(() => action(file_name, i));          }          /// End         Console.Read();     }      public static void Load(string aFileName, int aCount)     {         Console.WriteLine("Index: {0} ", aCount);     }  }

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I have a lenovo g505s laptop and after successfully install of Ubuntu. When I booted it up for the first time it shows a background image and then nothing happens.   What should I do now?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


This is a simple question but I cant seem to find a concrete definition.  What is the meaning of a time series "season"?  Quoting from  blog on determining the period of a season, "...the “frequency” is the number of observations per season."

I'm using R(3.1.1), and ARIMA models for forecasting. I would like to know what should be the "frequency" parameter, which is assigned in the ts() function, if im using time series data which is:  separated by minutes and is spread over 180 days (1440 minutes/day) separated by seconds and is spread over 180 days (86,400 seconds/day).  If I recall right the definition, a "frequency" in ts in R, is the number of observations per "season". Question part 1: What is the "season" in my case? If the season is "day", then is the "frequency" for minutes = 1440 and 86,400 for seconds? Question part 2: Could the "frequency"  also depend on what I am trying to achieve/forecast? for example, in my case, I'd like to have a very short-term forecast. One-step ahead of 10minutes each time. Would it then be possible to consider the season as an hour instead of a day? In that case frequency= 60 for minutes, frequency = 3600 for seconds? I've tried for example to use frequency = 60 for the minute data and got better results compared to frequency = 1440 (used fourier see link below by Hyndman)  (The comparison was made by using MAPE for the measure of forecast accuracy) In case the results are complete arbitrary, and the frequency cannot be changed. What would be actually the interpretation of using freq = 60 on my data? I also think it's worth mentioning that my data contains seasonality at every hour and every two hours (by observing the raw data and the Autocorrelation function)


I have just written  containing extensive quotes from the ECMA-262 specification. One of the elements quoted is a table. xyzzy |foo|bar| |:-|:-| |a|b| |c|d| The table displays correctly in the preview, but in the actual post, raw Markdown appears. Can this be fixed? (By the way, is there a way to have a table <caption>?)

When I edited an answer to add a second markdown table, both the first and second tables rendered correctly in preview, but the second table does not render. I've waited about 10 minutes in case there is some cache/refresh issue, and also tried both Chrome (87.0.4280.88 64-bit win10) and Firefox (84.0.1 64-bit win10) with equivalent result. I think the actual problem is that the preview works even if there is no blank line before the table header row. Simple table (looks good in preview) but no blank line before table header: | Question | Date Created | Date Closed | | -------- | ------------ | ----------- | | xxxxx | xxxxx | xxxxx | | xxxxx | xxxxx | xxxxx | Simple table (looks good in preview) with blank line before table header:     Question Date Created Date Closed     xxxxx xxxxx xxxxx   xxxxx xxxxx xxxxx     Simple table (looks good in preview) but no blank line before table header: | Question | Date Created | Date Closed | | -------- | ------------ | ----------- | | xxxxx | xxxxx | xxxxx | | xxxxx | xxxxx | xxxxx | Simple table (looks good in preview) with blank line before table header:     Question Date Created Date Closed     xxxxx xxxxx xxxxx   xxxxx xxxxx xxxxx     My earlier thought process is here, OK to stop reading at this point:  Image of Second table as seen in edit preview (correct):  Image of Second table as rendered in posted answer (incorrect):  Second table as rendered here (looks correct in preview):     Question Date Created Date Closed      2020-03-31 00:13:44 still open    2019-08-23 19:44:14 still open     Second table as rendered here, again (looks correct in preview):     Question Date Created Date Closed      2020-03-31 00:13:44 still open    2019-08-23 19:44:14 still open     Both instances of this table in markdown look correct in the preview here on meta... let me see if they render correctly once posted... After posting, both instances look incorrect. Is the table malformed? Second table as rendered here (looks correct in preview):     Question Date Created Date Closed      2020-03-31 00:13:44 still open    2019-08-23 19:44:14 still open     Simple table without links (looks good in preview):     Question Date Created Date Closed     xxxxx xxxxx xxxxx   xxxxx xxxxx xxxxx     Simple table without links, missing space before vertical bars (looks good in preview):     Question Date Created Date Closed     xxxxx xxxxx xxxxx   xxxxx xxxxx xxxxx     Simple table (looks good in preview) but no blank line before table header: | Question | Date Created | Date Closed | | -------- | ------------ | ----------- | | xxxxx | xxxxx | xxxxx | | xxxxx | xxxxx | xxxxx | Simple table (looks good in preview) with blank line before table header:     Question Date Created Date Closed     xxxxx xxxxx xxxxx   xxxxx xxxxx xxxxx     Can it please be made so that the preview also doesn't render tables if there's no blank line between the table header and the line of text above it, so it matches the actual post rendering?


I have a table with 6 columns one of which is a NVARCHAR (65) datatype.  All of the entries in this table have the format XXXXX-nnnnnn.  I want to be able to use the '-' as a delimiter and construct a query that pulls out the value after the '-' into a temporary table so I can run another query against a column containing just the nnnnnnn values.  I believe PATINDEX needs to be in there somewhere but it all seems hard and difficult.

I wrote a Table Valued Function in Microsoft SQL Server 2008 to take a comma delimited column in a database to spit out separate rows for each value.  Ex: "one,two,three,four" would return a new table with only one column containing the following values:  one two three four   Does this code look error prone to you guys? When I test it with   SELECT * FROM utvf_Split('one,two,three,four',',')    it just runs forever and never returns anything. This is getting really disheartening especially since there are no built in split functions on MSSQL server (WHY WHY WHY?!) and all the similar functions I've found on the web are absolute trash or simply irrelevant to what I'm trying to do.  Here is the function:  USE *myDBname* GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[utvf_SPlit] (@String VARCHAR(MAX), @delimiter CHAR)  RETURNS @SplitValues TABLE (     Asset_ID VARCHAR(MAX) NOT NULL )  AS BEGIN             DECLARE @FoundIndex INT             DECLARE @ReturnValue VARCHAR(MAX)              SET @FoundIndex = CHARINDEX(@delimiter, @String)              WHILE (@FoundIndex <> 0)             BEGIN                   DECLARE @NextFoundIndex INT                   SET @NextFoundIndex = CHARINDEX(@delimiter, @String, @FoundIndex+1)                   SET @ReturnValue = SUBSTRING(@String, @FoundIndex,@NextFoundIndex-@FoundIndex)                   SET @FoundIndex = CHARINDEX(@delimiter, @String)                   INSERT @SplitValues (Asset_ID) VALUES (@ReturnValue)             END              RETURN END


When my wife has retired later this year we intend to hit the road big time. We are aiming to travel light (single hand luggage bag) so I want a compact rather than my DSLR. I also insist on AA batteries as cannot guarantee access to recharge options. Having trouble finding almost anything that isn't rechargeable batteries. Is there anything decent? Or will I have to buy an older second hand model?

I'm looking for a new compact camera that:   has a  is small enough to be mountable on a  and, runs on AA batteries. good flexibility   Requirement (3) stems from the fact that I may be hiking in the wild for weeks on an end, with no opportunity to change a Lithium-Ion battery. If another solution permits me to take thousands rather than hundreds photographs on full charge, I may consider that as well.  Additionally, it would be nice (but not essential) to have:   the ability to handle high dynamic range a viewfinder physical buttons — I live in a cold climate, and don't like to use touch-screens   The upper price range for compact models is still good for me, and I don't mind a pricerange of €400–€800 (but I don't mind cheaper either, if still of good quality).  I've been the happy user of several models in the , but now my PowerShot A650 IS has died. Starting from , it seems requirement (3) kills of many cameras: the , (might also fail (2)), the , the , the ... Although enough models meet requirements (1), (2), and (4), as well as the (non-essential) additional features I listed, it seems in the past 5 years, cameras have moved away from using AA batteries. What camera models still exist that meet my requirements?    Last photograph taken with my Canon PowerShot A650 IS, taking on Christmas Day 2012 in the Caldera de Taburiente, La Palma, Canary Islands, Spain.


I need to convert EPSG4326 lon/lat tuples to EPSG24373 (Kalianpur 1880 / India zone III).  However, when using the Python bindings of OGR and PROJ.4 (pyproj), I get different results.  I wrote the following code:  LON, LAT = 76.661217, 15.183595  import numpy as np from osgeo import ogr, osr  src_epsg = 4326 dst_epsg = 24373  source = osr.SpatialReference() source.ImportFromEPSG(src_epsg)  target = osr.SpatialReference() target.ImportFromEPSG(dst_epsg)  trans = osr.CoordinateTransformation(source, target)  point = ogr.CreateGeometryFromWkt("POINT ({} {})".format(LON,                                                          LAT)) point.Transform(trans) print("OGR result: {}".format(point.ExportToWkt()))   from pyproj import Proj, transform proj = Proj(init="epsg:{}".format(dst_epsg)) x1, y1 = proj(LON, LAT, radians=False)  print("pyproj result: {}".format((x1, y1)))   which yields the results  OGR result: POINT (2607326.263296442106366 542082.358424285310321) pyproj result: (2384135.3043296584, 495679.3120856479)   From my expectation, the results should be identical, but they aren't.  What am I missing here?

I'm writing a python script that reads multiple XML files containing x and y coordinates and combines them all into a single csv file.  Latitude and Longitude are required fields in the csv, but I am having difficulty converting the x,y coordinates in Ohio North State Plane usFt to WGS84.  >>> p = Proj(r'+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=us-ft +no_defs') #Nad83 State Plane Ohio North US Feet Proj object using parameters >>> p(739400.91,2339327.3,inverse=True) (-80.138057868777224, 60.278230707978487) >>> p1 = Proj(init="epsg:3734") #Nad83 State Plane Ohio North US Feet Proj object using EPSG code >>> p1(739400.91,2339327.3,inverse=True) (-80.138057868777224, 60.278230707978487)   Both methods above return the same result, however this lat long is somewhere in Hudson Bay.  When I plot the coordinates in ArcMap, the correct lat long is: -81.142311,41.688205.  *Notice all lat longs are provided long,lat as this is the order Proj uses  Does anyone know why I would be getting the wrong coordinates from Proj.4 and pyproj?


Problem statement: Suppose $f$ is continuously differentiable on $[0,1]$, and that $\sup_{x \in [0,1]}|f'(x)|\le M< \infty$. Show that $$\big|\int_0^1 f(x) - \sum^n_{i=1}f(i/n)\cdot 1/n\big| \le M/n.$$  My attempt at a solution: To start with, I was trying to get the derivative involved, somewhere, so I wrote $$f(i/n) = f(0) + \int^{i/n}_0 f'(x)$$ which gives  $$\big|\int_0^1 f(x) - \sum^n_{i=1}f(i/n)\cdot 1/n\big|  = \big|\int_0^1 f(x) - \sum^n_{i=1}\int_0^{i/n}f'(x)\cdot 1/n\big|.$$ I was hoping then to bound the integral using the bound on $f'$. But, there's that pesky minus sign in front of the sum that I'm working with, and even if there weren't, the bound doesn't seem to result in anything useful there, since we end up with $$1/n \cdot \sum^n_{i=1}\int_0^{i/n}f'(x) \le f(0) + M/n \sum^n_{i=1}i,$$ which doesn't seem useful to me. I would really appreciate some hints as to the right way to attack this problem!

$f$ is differentiable in $[0,1]$ ,$\sup_{x\in[0,1]}|f'(x)| \le M\lt+\infty $ . Prove $$ \left|\sum_{i=0}^{n-1} \frac{f(i/n)}{n}-\int_{0}^{1}f(x)\,\mathrm{d}x\right|\le\frac{M}{2n} $$ I tried to write $\int_{0}^{1}f(x)\,\mathrm{d}x$ as Riemann sum by partition $[0,1]$ into equal $2n$ parts. And want to use Mean Value Theorem. But I can't get $\frac{1}{2n}$ out of the absolute value. Come to seek some help ... Thanks and regards!


How do I define the amount of vertical space there are after all new lines? I am looking for something that works like this:  \define{x = 4}  blah blah blah blah \\[x pt] blah blah \\[x pt]   Where I can with one modification change the amount of vertical space after all new lines. I don't care whether it uses \\, \newline, \linebreak, or something else.

What is the difference between \par, \newline, \\ and blank lines? When should I use which one?


I have setup a function called quickfigure which has the purpose of inserting a centered image with a one-line command:  \newcommand{\quickfigure}[2] {     \begin{figure}[H]         \centering         \includegraphics[width=0.6\linewidth]{#1}         \caption{#2}     \end{figure} }   This function is used as follows;  \quickfigure{img/testImage.png}{Test image}   I would like this function to accept optional arguments to define width and height of the image, as well as a label. The syntax is desired to be something like;  \quickfigure[width=0.6, label=img:test]{img/testImage.png}{Test image}   How would I go about setting this up? I need a push in the right direction. Thanks!  Edit: Thanks everyone for the ideas, this is my solution;  \includepackage{keyval} \includepackage{ifthen}  \newlength{\qf@width} \define@key{quickfigure}{width}{\setlength\qf@width{#1}} \define@key{quickfigure}{label}{\def\qf@label{#1}}  \newcommand{\quickfigure}[3][] {     \setkeys{quickfigure}{width=0.6\linewidth,label=\@empty}     \setkeys{quickfigure}{#1}     \begin{figure}[H]         \centering         \includegraphics[width=\qf@width]{#2}         \caption{#3}         \ifthenelse{\equal{\qf@label}{}}{}{\label{\qf@label}}     \end{figure} }

I am trying to create a command that the user can enter keys for values. How can I create one, for example:   \myparbox[width=50,height=10,color=blue, align=left -10px]{}


I'm trying to highlight rows/columns/diagonals in a matrix. I came across , which looks very clean. Unfortunately, it seems to cause some issue with spacing in the matrix, and I can't figure out why. Below is a MWE and the output:  \documentclass{article} \usepackage{amsmath} \usepackage{tikz}  \newcommand{\tikzmark}[2]{     \tikz[overlay,remember picture,baseline]      \node[anchor=base] (#1) {$#2$}; }  \begin{document}  No highlighting: \begin{equation}   A =   \begin{bmatrix}     a_{11} & 0 & 0 \\     0 & a_{22} & 0 \\     0 & 0 & a_{33}\\   \end{bmatrix} \end{equation}  Highlighting: \begin{equation}   A =   \begin{bmatrix}     \tikzmark{top}{a_{11}} & 0 & 0 \\     0 & a_{22} & 0 \\     0 & 0 & \tikzmark{bottom}{a_{33}}\\   \end{bmatrix} \end{equation} \begin{tikzpicture}[overlay,remember picture]   \draw[opacity=.4,line width=3mm,line cap=round] (top.center) -- (bottom.center); \end{tikzpicture}  \end{document}     What is the \tikzmark command doing, and is there anything that can be done to preserve the standard matrix spacing?

I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i want to create exactly the same figure using latex.  I've searched and read a few topics about highlighting elements and diagonals in matrix but it does not work in this case. I want to add plus signs and minus signs as in the picture, and highlight elements in the matrice with elements outside the matrice.  I appreciate all your help and your advice. Thank you in advance !


How should I use came and just now together to say: I have already come but only a few minutes back?   I came just now.   or   I just now came.

For example:     The word rarely turns up outside of those contexts.      The word turns up rarely outside of those contexts.   Which one is correct and why?


I stored a freshly cut onion with butter spread over the top and wrapped it with aluminum foil. It stayed fresh for three weeks. Is this a safe way to store onions

I've been making garlic butter for years, storing it for months at a time. When I read that garlic-in-oil can grow dangerous amounts of botulinum toxins after similar lengths of time, I wondered how safe garlic butter is and why.   Evidently, the  specifically target storage in oil. I couldn't find a satisfactory explanation for butter not being mentioned with a preliminary search. The first Google result turns up a grossly unhelpful Yahoo! Answers page whose sources do not mention butter at all.  To the point: is garlic butter safer than garlic-in-oil, and why? Is butter not also an anaerobic environment, so that the same precautions should apply as with oil?


I'm possibly too lazy to find how to do it without minted, but since I already use minted and I want top keep it's styles it applies to code boxes (like background color, the line break features, typewriter-style/same-width text etc.), I want to do it with minted. \inputminted requires the language as the first required argument, so I cannot omit it, and pygments does not have a "plain text" style option as it seems, so I cannot use that there. So when i just want to input a plain-text block with minted (without any syntax-highlighting), how can I do that? Use case: I could not find a proper syntax highlighting for arbitrary console output (on GitHub you e.g. have console for Markdown.) I have , but it's not about minted, but getting HTML code or so.

How do I turn off syntax highlighting in minted?  Defining my DSL with a CFG and then a PEG; and the syntax highlighting is getting in the way.


I would like to know why particles follow a circular path in a magnetic field, what path they trace and how this path is measured and controlled?

The Lorentz force on a charged particle is perpendicular to the particle's velocity and the magnetic field it's moving through. This is obvious from the equation:  $$ \mathbf{F} = q\mathbf{v} \times \mathbf{B} $$  Is there an intuitive explanation for this behavior? Every explanation I've seen simply points at the equation and leaves it at that.  I can accept mathematically why $\mathbf{F}$ will be perpendicular to $\mathbf{v}$ and $\mathbf{B}$ (assuming the equation is correct, which it is of course). But that doesn't help me picture what's fundamentally going on.  Trying to create an analogy with common experiences seems useless; if I were running north through a west-flowing "field" of some sort, I wouldn't expect to suddenly go flying into the sky.  I'm hoping there's a way to visualize the reason for this behavior without a deep understanding of advanced theory. Unfortunately, my searching for an explanation makes it seem like something one just has to accept as bizarre until several more years of study.


I'm working for a company in India. I have an onsite interview for a company in the Schengen area. I have to apply for a short-stay business visa. The application requires me to mention my current employer's name and details and submit documents like employment form, compensation statement etc related to it.  It is embarrassing to tell my employer about an interview elsewhere. All costs are being paid by the other company. Can I mention that company (prospective employer) as my employer in pt. 20 of the form?    I don't know why the embassy would want to know my current employer, when this employer is nowhere a part of the transaction.  Even if the embassy allows to mention the prospective employer as current employer for the purpose of this application, will it create issues when I am trying to enter the country later?  What is the best way to deal with such a situation?

I am travelling to Austria for a job interview (for 2 days). Which type of visa should I apply for?  My home country is India and the visit to Austria will be be sponsored by the inviting company. The company will also provide me with an invitation letter.


While trying to write the ISO on an USB stick I get the following error "It looks like this is not a bootable image"    (Note: I can write Ubuntu 16.xx without any problem with the same software)

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


Started about 2 weeks ago with 3D modeling and just finished creating this spartan styled helmet for my characters in Unity. When imported and looking at the face of the helmet, you can see the sky from the backside of the helmet, making the helmet look like it has a hole on the backside. I took pictures of both to show there is no hole on the backside and to show the sky coming through the mask. If any additional information is needed to help answer the question, let me know.

I have created a model which requires some faces to be dual sided.  I intend to import this model into Unity. Reading about this, it seems that the recommendation is to duplicate the polygons and then flip the normals.  What I have done so far is simply to duplicate the all of the relevant faces using Shift+D and then flip the normals. I don't like this method though as it hampers any future alterations to the model itself.  What is the best way of doing this?


I am currently getting "Sorry, we are no longer accepting questions from this account.” when I try to ask a question and have tried my best to edit my questions and have gotten rid of the the poor ones. I have recently tried fixing , and have made a case as to why it is not a duplicate, but since I do not have a high enough reputation, I cannot flag it for a moderator to reevaluate it.  I am trying to lift the ban on my account and it seems editing my questions is not enough as noted from  in the Help Center. Because I am very new to this site, I wasn't aware of many of the full particulars and conventions of the Stack Exchange sites. I am making an earnest effort to lift the ban on my account and do not have the clout to flag a question because my reputation is not high enough. What can I do to solve this issue?

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


In fact, I want to change the name of the listoffigures but I wasn't able to do it even if I have used the appropriate command  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{array} \usepackage[francais]{babel} \graphicspath{ {figures/} }  \renewcommand{\listfigurename}{Liste des figures}    \begin{document}     \listoffigures  \listoftables  \clearpage   \end{document}

I'd like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from "Figure" to "Fig.", and my \tableofcontents sectioning heading shouldn't read "Contents", but "Table of Contents". How can I do that?  \documentclass{article} % \usepackage[english]{babel} \begin{document} \tableofcontents \section{foo} \begin{figure}[h] \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure} \end{document}


I am building a timeline widget which has 2 interactions on web.  Hover to see a particular duration's details like duration, start time, assigned name. Click to edit details of the timeline  However, the primary use of the timeline widget is on a tablet (touch device). What could be some ways to achieve these interactions on a touch device?

Came up recently in a 37signals podcast:    The straightforward, "brute-force" solution is to just use the first touch on a UI object as the hover.    It works. But are there other, more elegant solutions? For instance, could the hardware ever be made to support actual finger hovering?


I've installed a wordpress site in a dedicated server with Windows 2008 server running IIS7 but I'm a little confused on what's the most secure way to set the appropriate file settings.  The thing is the automatic update and automatic plugin installation only works if I give Full Control permission to the Everyone user in the root folder where wordpress is installed.  I'm not sure how dangerous this setting is, but I can imagine it's not the best scenario. That being said, what's the user I should use in the application pool used by this site, so that I can set a more restrictive security permission in the folders used by wordpress?

I have a dedicated server using Windows 2008 and IIS7 running 5 blogs with Wordpress. I can't use the autoupdate feature of the wordpress neither the automatic plugin instalation.  I believe I must set writing permissions in some temporary folder, the question is which one. Do you have any idea?


I am trying to understand how do we form a Jordan Normal Basis and more specifically why the chains are linearly independent. I saw some relevant question, but still, I can't figure that out.  We start with a highest order eigenvector and form its Jordan chain. Then, if we haven't had yet a basis, we take another eigenvector of highest possible order and form its Jordan chain and we continue like this. Why will two jordan chains we obtain be linearly independent?  Thanks in advance  edit:In this , he says:   The other method is to first determine the lengths of the chains (there are formulas you can use to find them). If the longest chains have length kk, then you find linearly independent vectors in $(T−\lambda I)^{k−1}$ that are not in $(T−\lambda I)^{k−2}$. Then you apply $(T−\lambda I)$ to them, and if necessary find linearly independent vectors from the ones you have so far that are in $(T−\lambda I)^{k−2}$ but not in $(T−\lambda I)^{k−3}$. You continue this way, always selecting linearly independent vectors, until you are down to finding enough linearly independent vectors in $(T−\lambda I)$ besides the ones you already have; you will be guaranteed they are linearly independent because at each stage we are always selecting vectors that are linearly independent.  My question is actually, how do we know that after applying $(T−\lambda I)$ to the vectors we already have selected, we get a linearly independent set of vectors?

Firstly, I know this question might seem slightly vague, but I can't find any examples or specific questions to specify it.   My question is in regards to finding the Jordan Canonical Form of a matrix, more specifically when you have two Jordan chain of length greater than $1$ for a particular eigenvalue. After you've found the eigenvectors, are these eigenvectors always linearly independent? Also, if they are, is it possible to find eigenvectors which form Jordan chains which are 'wrong' because they aren't linear independent?


i have this code  <?php   if(isset($_GET['qry'])) {    echo $_GET['qry'];   }  else if(isset($_GET['ct'])) {    echo $_GET['ct'];   }  else if(isset($_GET['sct'])) {    echo $_GET['sct'];   }  else if(isset($_GET['brand'])) {    echo $_GET['brand'];   }  else {   echo "";  }  ?>   how do i properly protect the value i get from the page url from sql injection or other things since i use the value on the page or database.   I have searched and am seeing different method, please which do you think is the best way.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


An object cannot escape the event horizon by catapulting it outside the black hole. However, what if instead of relying on escape velocity, the object was tethered to a ship orbiting well outside the event horizon? The object needs not to be pulled out at speeds higher than $c$, but rather can be pulled slowly.  Assume the gravity gradient between the ship's orbit and the tether's other end is manageable, the mass of the object is small enough to be pulled without too much burden on the ship's engines, and the tether is strong enough. (Or it's just a loose end). Would such an object be pulled-out of the event horizon?

No long explanation is needed,  What would happen if I were to allow one end of a rope to fall past the event horizon of a black hole while I held the other end?  Would I be able to pull it out? Would the rope feel extremely (infinitely?) heavy?


According to  , it's considered a best practice to configure a domain controller to use another DC as its primary DNS server, and itself as the secondary one. However, according to  , the reverse is true, or should at least work anyway without problems.  What are the pros and cons of both solutions? What risks can each solution have? What is the potential issue with replication everyone keeps talking about without actually never explaining it?    And, last but not least, which solution should be used?

This is a  about Active Directory DNS Settings. Related:     Assuming an environment with multiple domain controllers (assume that they all run DNS as well):  in what order should the DNS servers be listed in the network adapters for each domain controller? Should 127.0.0.1 be used as the primary DNS server for each domain controller? Does it make any difference, if so what versions are affected and how?


Context  So I've been looking around at camera bodies and gear and noticed the more expensive ones have "weather sealing". From posts like , I understand how it is implemented. However unlike , I haven't seen DSLR/mirrorless camera bodies with IP codes or have an standards of such with any code (exception of smaller point and shoots?)  From this I can conclude they are defined per manufacturer and since they don't have any "standards" I can assume they may survive better but it doesn't mean they will. Since they don't have IP codes, I assume cameras going into water is bad, goes without saying I suppose. Given how vague they are, I don't know how beneficial it is?  Question  Are "weather sealed" gear tested for how good their "weather sealing" is?  Or is it more of the mentality of the, "every little bit helps" even if it's not a huge or noticeable amount?  Reference

What is the structural and mechanical differences between a weather sealed body and a non weather sealed body? Is weather sealing still effective if the lens isn't weather sealed?


My filesystem says I have:    While gparted says:    And if I run disk analyser on root partition only:    it mentions I only have 6Gb in total, instead of 15 from gparted.  I guess gparted is right, but I also understand I only can use the available memory seen by the system. Which means there might be some leak/miscalculation somewhere. How can I unify those? Should I do some kind of defragmentation?   Thanks    EDIT:  Here are my terminal outputs:  ▶ sudo fdisk -l [sudo] password for augustin:   Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000ecc64  Device     Boot     Start       End   Sectors  Size Id Type /dev/sda1        62566400 209952767 147386368 70.3G 83 Linux /dev/sda2       241467392 250068991   8601600  4.1G 82 Linux swap / Solaris /dev/sda3  *    209952768 241467391  31514624   15G 83 Linux /dev/sda4            2048  62566399  62564352 29.9G  5 Extended /dev/sda5            4096  30785535  30781440 14.7G 83 Linux /dev/sda6        30787584  62566399  31778816 15.2G 83 Linux  Partition table entries are not in disk order.  ▶ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda3        15G   14G  373M  98% / udev             10M     0   10M   0% /dev tmpfs           774M  9.7M  764M   2% /run tmpfs           1.9G  195M  1.7G  11% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup /dev/sda6        15G   11G  3.1G  79% /media/partition2 /dev/sda5        15G  7.7G  6.0G  57% /media/partition1 /dev/sda1        70G   56G  9.6G  86% /home tmpfs           387M   36K  387M   1% /run/user/1000   And my full gparted, to make it clearer:    So my /home repository is not in the same partition as my /.  Also I use Docker, which might have something to do with memory usage I think.

While creating a 250GiB backup partition for my data, I have noticed lots of discrepancies between reported partition size and free space in Nautilus, gParted, df, tune2fs, etc.  At first I thought it was a GiB / GB confusion. It was not.  Then I thought it could be ext4's reserved blocks. It was not.  Im completely puzzled. Here are some images. Here are the steps:   First, NTFS. 524288000 sectors x 512 bytes/sector = 268435456000 bytes = 268.4 GB = 250 GiB.      Nautilus say "Total Capacity: 250.0 GB" (even though its actually GiB, not GB). Apart from that minor mislabeling, so far, so good   Now, same partition, formated as ext4 with gparted:     First, Last and Total sectors are the same. It IS the same 250GiB partition. Used size is 4.11GiB (reserved blocks maybe?)    Nope. Looks like reserved blocks are 12.7 GiB (~5%. ouch!). But... why Total Capacity is now only 246.1 GiB ???. That difference (sort of) matches the 4.11 GiB reported by gparted. But... if its not from reserved blocks, what is it? And why gparted didnt report that 12.7GiB of used space?  $ df -h /dev/sda5 Filesystem            Size  Used Avail Use% Mounted on /dev/sda5             247G  188M  234G   1% /media/BACKUP   df matches Nautilus in reported free space. But.. only 188M used? Shouldnt it be ~12GB? And total capacity is still wrong. So i ran tune2fs to find some clues. (irrelevant output is ommited)  $ sudo tune2fs -l /dev/sda5 tune2fs 1.41.12 (17-May-2010) Filesystem volume name:   BACKUP Filesystem UUID:          613d592e-47f5-4206-96a7-210090d340ef Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags:         signed_directory_hash  Filesystem state:         clean Filesystem OS type:       Linux Block count:              65536000 Reserved block count:     3276800 Free blocks:              64459851 First block:              0 Block size:               4096   65536000 total blocks * 4096 bytes/block = 268435456000 bytes = 268.4 GB = 250 GiB. It matches gparted.  3276800 reserved blocks = 13421772800 bytes = 13.4 GB = 12.5 GiB. It (again, sort of) matches Nautilus.  64459851 free blocks = 264027549696 bytes = 264.0 GB = 245.9 GiB. Why? Shouldnt it be either 250-12.5 = 237.5 (or 250-(12.5+4.11)=~233) ?  Removing reserved blocks:  $ sudo tune2fs -m 0 /dev/sda5 tune2fs 1.41.12 (17-May-2010) Setting reserved blocks percentage to 0% (0 blocks)  $ sudo tune2fs -l /dev/sda5 tune2fs 1.41.12 (17-May-2010) Filesystem volume name:   BACKUP Filesystem UUID:          613d592e-47f5-4206-96a7-210090d340ef Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags:         signed_directory_hash  Filesystem state:         clean Filesystem OS type:       Linux Block count:              65536000 Reserved block count:     0 Free blocks:              64459851 Block size:               4096   As expected, same block count, 0 reserved blocks, but... same free blocks? Didnt I just freed 12.5 GiB ?  $ df -h /dev/sda5 Filesystem            Size  Used Avail Use% Mounted on /dev/sda5             247G  188M  246G   1% /media/BACKUP     Looks like I did. Avaliable space went up from 233 to 245.9 GiB. gparted didnt care at all, showing exactly same info! (useless to post an identical screenshot)  What a huge mess!  I tried to document it as best as I could... So, please can someone give me any clue on what's going on here?   What are those misterious 4.11 GiB missing from NTFS -> ext4 formatting? Why there are so many discrepancies between gparted, Nautilus, tune2fs, df? What is wrong with my math? (questions in bold scattered this post)   Any help is appreciated. While I can not figure what is going on, I am serilously considering giving up on ext4 in favor of NTFS for everything but my / partition.  Thanks!


I am trying to make a simple document, showing MATLAB code, and some images. This is my template that I am using.   \documentclass{article} \usepackage{graphicx} \usepackage{float} \usepackage{amsmath} \usepackage{amsfonts}  % Correct bad hyphenation here \hyphenation{}  \begin{document}  I want to put MATLAB code here.  \begin{figure}[H] \begin{center} \includegraphics[width=6in]{case2Rect.png} \caption{Blah} \label{fig1} \end{center} \end{figure}   \end{document}   The problem is that MATLAB code is full of comments that use '%', and so when I try to compile using pdfLaTeX, it crashes. I am using TexMaker btw. Anyway, I was wondering what technique might be used to go around this problem. I simply need to show MATLAB code, along with some images. I am relatively new to LaTeX.   Thanks.

This question led to a new package:      Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode package emerged as a possibility, but it seems to be unmaintained...  I have a ton of equations in my code, so I'd prefer a solution that avoids having to use $ to denote equations.  Also, if possible, if there's a way to keep all of MATLAB's "natural" coding colors (e.g. green for comments), that would be great...  Any idea?


Input :  MAKTG|MAKTX|MANDT|MATNR|SPRAS ARALDITE AV 5308 |araldite AV 5308 |910|132252374801|E HARDER HV 5309 |harder HV 5309 |910|132252374901|E BAYFLEX 5965 I|Bayflex 5965 I|910|132252380101|E KUPFERPULVER FEIN 2703|kupferpulver fein 2703|910|132252382701|E   Needed Output:  MAKTG|MAKTX|MANDT|MATNR|SPRAS ARALDITE AV 5308|araldite AV 5308|910|132252374801|E HARDER HV 5309|harder HV 5309|910|132252374901|E BAYFLEX 5965 I|Bayflex 5965 I|910|132252380101|E KUPFERPULVER FEIN 2703|kupferpulver fein 2703|910|132252382701|E

I am looking for away contact lines based on the next line. So far the only way I see is to create a shell script that will read line by line and will do something along these lines:  while read line     if $line does not start with "," and $curr_line is empty          store line in curr_line     if $line does not start with "," and $curr_line is not empty         flush $curr_line to file         store $line in $curr_line     if $line starts with "," append to $curr_file, flush to file empty curr_line done < file   So I am trying to understand if could be achieved with sed or even grep with redirection. the rules of the file are simple.  There is at max one and only one line starting with "," that needs to be appended to the previous line.  ex:  line0 line1 line2 ,line3 line4 line5 ,line6 line7 ,line8 line9 line10 line11   The result file would be  line0 line1 line2,line3 line4 line5,line6 line7,line8 line9 line10 line11


How would i find out Alices or Bobs private number from the details exchanged in public.  prime - g = 7  primitive root - n = 3  Alice - A = 3  Bob - B = 4  The details visible in public exchange are:  g = 7  n = 3  Ya == 27 mod 7  Yb == 81 mod 7  How would one go about finding Alices secret number A or Bobs secret number B from the exchange usings only the visible details exchanged in public space. Please provide an explanation to notation as well as a practice solution to the scenario I've provided.

I started to read about Diffie-Hellman exchange and I encountered a problem which I don't know how to solve.  Given $g=3$, $p=131$, $g^x\bmod p=112$, $g^y\bmod p=74$, compute $g^{xy}\bmod p$   $113$ $110$ $112$ $111$   How could I compute $g^{xy} \bmod p$? Or at least verify which one is correct. Any idea?


Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


I am at level 15 and have 200 Pokemon. I am not able to catch any Pokemon. They come out and run away just after they get in the Pokeball. I am not able to get anything from PokeStops either. How can I fix it?

I'm level 10 on Pokemon Go. I've caught at least 150 Pokemon, and had no problems. Now, every time I try to catch a Pokemon, no matter the level, it just rolls twice in the pokeball, breaks free, then runs away. Can anyone provide some insight on how to fix this problem?


When I open a hdri image for a world background , I get an extremely enlarged image on the screen  , showing only a very small part of the image . What can I do to fix that problem ?

When I load an HDR image into an environment texture using Cycles Render, only a small fraction of the image appears. I have a feeling it's an easy fix, but I can not find what needs to be changed.


To avoid deletion in the future, questions that might lead to opinionated answers, with multiple good solutions like:     I recently started to read about SAGA pattern in the context of   distributed transactions for microservices and found out that is   actually an old concept that inspired the WS-* specs , more concretely   WS-Reliable Messaging,WS-AtomicTransaction, WS-Coordination, and   WS-BusinessActivity.      I searched for some concrete samples to understand better these   standards but despite their latest update in 2009 OASIS I did not   found much.      Do you know some implementation of the above mentioned WS standards?      Are they still actual as I mentioned before last update was like 10   years ago...?   Is there a site where I can ask the above question?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I posted this question:  and wasn't able to figure out my issue with the answers I was given and cannot find anyone else asking anything similar, so I imagine it's something quite simple that I'm just missing.  The issue I am having is that I am trying to use blender to reduce the filesize of a 3D model in obj mtl format to export it to three.js in json format, however whenever I export or render it, it exports and renders without the texture and I have narrowed it down to the fact that I have not assigned the model a material and texture within blender.  I do not have the texture, as importing the obj mtl files constructs the texture from a separate format, so from my understanding the texture is entirely encapsulated within blender and is displayed perfectly well in the editor, but during the render it is not there, presumably because I can't give it a material and texture.  Am I missing something obvious here?  Is there a way to construct a texture file from what I currently have?  Sorry if posting two questions is not appropriate etiquette, but I feel as though I understand the issue more now and the nature of the question has changed.  EDIT:  I will try editing here to fully explain what I believe the problem is with the answer I was given.  When I was given the scan, I was given 3 files.  I have a .obj file, a .mtl file and a .png file that contains the texture.  However, the mapping of the texture in the .png file relies entirely on the obj and mtl files to construct it.  If I map the png file directly onto the mesh, this is what happens:    However, the texture is correctly constructed within the blender environment.  I need to find a way to attach the texture as it is displayed in the editor to the mesh so that it is displayed in the render using the texture that was constructed by blender when I imported it.  It is not simply an issue of not applying the texture to the material, but rather that I don't have a texture to apply to the material, but blender does.

I am new to blender and I have a 3D scan of a stone tablet (which I am unfortunately not able to share, so I will try to be as detailed as possible) which was imported as OBJ and MTL files.  The editor displays the texture and mesh perfectly, but when I render the scene (pressing F12) the texture is not there.  I am trying to use blender to reduce the file size of the tablet for use in a three.js visualizer for a website.  I have tried exporting the file as a JSON file (as well as several other file formats to the same effect) for use in my three.js webapp and thought it was an issue with three.js, but after seeing that blender did not render the tablet with the texture I now believe it is an issue with my blender configuration. I am unable to find within blender or online any way to check what current resources I have displayed and what options I have with them.  I have not applied a mesh or texture to the object, but when I do so it renders with the generated texture applied in the default pink.  I am confused as to where the disconnect is between the editor and the renderer. I am still figuring out what is important and where to find all the relevant information, so any help on that regard would be very much appreciated.  Here is what blender looks like for me with the sensitive parts censored (can't be too careful these days):   I have looked at this question:  And there is no material overwriting the texture - I have not assigned a material to the tablet at all. EDIT: In regards to the duplicate answer, I looked at that one as well and the issue I have is that it doesn't have an actual texture file that I can just put on it.  The OBJ MTL files come with their own file that can't be applied directly to the model.  Blender read the OBJ MTL files and recreated the object inside blender algorithmically - and now I need to know how to get blender to tell me where that texture is and how I can get it to show up in the render.  The texture is not on my hard drive, but entirely within blender which is the issue I am having.


a relative living with me does not hold a EU passport because he is not a citizen, and moreover he has an expired passport of his origin country. He went to the consulate in order to renew it. We have to head in Belgium with FlixBys and come back in Italy, so is it possible for him to travel only with a receipt of passport renewal and Italian PR since there's no border control in EU and we'll be traveling via coach?

I am currently located in the Netherlands and have lived here for 4 years. I have a working visa for the Netherlands and would like to go on vacation to another country in Europe. I however do currently not have my passport as i sent it to an embassy for a visa application. Will I still be able to travel inside of Europe without a passport if I have my residency ID?  I have a resident permit, not a true Dutch ID. And I own a passport that is currently in transit.  I have called with the KLM and the service employee's conclusion was that I do need to carry my passport with me when i am going to fly, so it seems all I can do is wait and hope my passport is returned to me in the next few days as the amsterdam US consulate (who currently holds my passport) is incredibly difficult to contact for urgent matters.


The hum at 60Hz stops as soon as an audio source is connected and came with a 2 pin connector. I tried to connect any part of the subwoofer with the ground of a socket. The buzzing stops when no device is connected. I can then connect my phone normally with an aux cable and listen to music. When I try to do this with my laptop, a strange beeping sound is emitted. The problem occurs on all sockets and therefore I suspect that the power supply has a problem. It is important to note that the subwoofer is a few years old. In the pictures you can see the components of the device. Which component could be the source of the problem?

The hum stops as soon as an audio source is connected or any metal part of the subwoofer is connected to the ground of a socket. Does anyone have any idea what the problem is?


I'm sometimes confused about the difference between present perfect and simple past sentences such as the ones in the title. In what kind of situation  do you guys say "Where have I parked my car" or " Where did I park my car?"   Thanks in advance.

If I seem tired, can I say: "I haven't slept last night"? If not, why have I been told that we use present perfect for actions that have present effects?


My application crashes because of this method. Please help :=)  public void sortedList() {     String goodLetter = "B";      for (String myItem : myArrayList) {         String myFirstChar = myItem.substring(0, 1);         if (myFirstChar != goodLetter) {             myArrayList.remove(myItem);         }     } }

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


Which of the following is correct:  'There are two types of girl' or 'there are two types of girls'?

When speaking precisely or technically, one would say that "Homo erectus and homo sapiens are two species of hominid" rather than "Homo erectus and homo sapiens are two species of hominids." The hominid here should be singular because we are speaking about instances of a single class ("class" being used here in its broader sense, not in the sense of taxonomic grouping).  Now let's consider more common parallel constructions replacing the word species with other words.      Tide and Wisk are two brands of detergent.       Tide and Wisk are two brands of detergents.      Cats and dogs are two types of pet you can buy at Pets-R-Us.       Cats and dogs are two types of pets you can buy at Pets-R-Us.   I feel that using the singular noun to specify the class is more grammatically correct, but sounds stilted in conversation. Almost everyone I hear making these constructions uses the plural form. What are your thoughts about singular vs. plural here?  Edit  Here's a more extreme example that may help clarify the issue. Consider the following sentence:     It was my first attempt at calming an angry crowd, and I just        stood there while people were hurling all kinds of insults at me.   Here I think the singular insult sounds strange, if not downright wrong.  Further Edit  I just noticed in A Treasury for Word Lovers (Morton S. Freeman, 1983) a section entitled "Types of Errors." This is a book about (American) English usage by an English professor and editor, which purports to be a "practical guide for serious writers and readers." I wish I could say this discovery satisfies the question, but in fact I now feel somewhat farther from the truth, if there is any single "truth" in this matter. But at least I don't have to worry about being wrong when using the plural form of the class in these constructions.


I'm trying to work out the schema for a system where users will be able to order items in an (unlimited length) list by drag and drop. Is there any kind of standard way of storing this ordering information, without updating every record with every change?  So far I've come up with two possibilities:   Using a float field, with default value for adding to the end of the list being higher than the last item in the list, and updating the any moved element to have a value halfway between the one above and the one below - the problem here is it'd be possible for ever-more precise values to cause problems as they reach the limits of the field. Advantages are it's easy to sort. Having a before_id (with the topmost element set to null), set to the id of the preceding element. Sorting in this case would take an extra step or joins.   Is there a better way of doing this I'm missing?

I have a common scenario in app design, where I need to store an ordered list, and make the ordering easily accessible and adjustable via an application UI.    The ordering operations are simple and operate on only one item at a time - move to top, move to bottom, move up one position, or down one position.  These positioning operations may be interspersed in with typical add / edit / delete list operations.  For discussion, this is a single-user app and db store.  Because the objects can be highly complex, I'd like to avoid caching the entire list client-side, and tracking newly created objects in memory until a big save operation occurs.    I am using MS-SQL almost exclusively on these projects, and I'm wondering if there are db features, SQL features, or design patterns I should be using to better support the management of ordered lists.    My current approach is to use a DECIMAL column to store the list positions, which become fractional during the item move process.  Then I sort the list and re-generate integer positions to normalize list.  Following this operation, it's ready for another item move.   In an example implementation, I create a column named Seq for position tracking.  Once decimal place is enough for the .5 storage.   [Seq] [decimal](10, 1) NOT NULL   When an item is re-positioned in the app UI,    I UPDATE that record with new Seq value I retrieve the full table, sorted ascending by Seq and regenerate all Seq values in the table from a 1-based integer series   The new Seq value is easily calculated-    Move to top = 0 Move to bottom = MAX(Seq) + 1 Move up = subtract 1.5 from the current Seq value Move down = add 1.5 to the current Seq value   As lists get longer, updates get slower, since I'm doing N UPDATE statements, where N is the number of rows in the table, so it seems only suitable for small tables.    Is there some kind of in-built capability for managing an ordered list in SQL or MS-SQL? Is there a means to update multiple rows in one call?    A far more performant approach would be to allow more decimal places, and then position at the median of the two adjacent items, with no re-sequencing on the list.     Move to top = Min(Seq) - 1 Move to bottom = MAX(Seq) + 1 Move up = median of the 2 previous item Seq values Move down = median of the 2 following item Seq values   This approach only requires one SELECT (containing 2 rows max) and one UPDATE.    However with enough re-positions I imagine the field would run out of decimal places. For example, if I start with items at positions 10 and 11, and keep moving items down the list from position 9, they'd be given sequences of 10.5, then 10.25, then 10.125.  After 10 moves, the positions get lengthy... 10.0009765625.    UPDATE #1 - IMPROVED RE-SEQUENCING OF THE LIST  Regarding re-sequencing, I'm more caught up on row_number(), OVER, and WITH capabilities in MS-SQL.  It's nice to find that there's a much smoother way to re-sequence the list in a single UPDATE operation;  with OrderedItems as  (     select         ItemID,         Seq,         row_number() over (order by Seq asc) NewSeq     from          Items ) update OrderedItems set Seq = NewSeq


Given the congruence $x^3 \equiv a$ (mod p), where $p \geq 5$ is a prime and gcd($a,p$)=1, prove the following  a. If $p \equiv 1$ (mod 6), then the congruence has either no solutions or three incongruent solutions modulo p.  b.If $p \equiv 5$ (mod 6), then the congruence has a unique solution modulo p.  How to solve it...by using the theory of indices.

Given the congruence $x^3 \equiv a \pmod p$, where $p \geq 5$ is a prime and $\gcd(a,p)=1$, prove the following:   If $p \equiv1 \pmod 6$, then the congruence has either no solutions or three incongruent solutions modulo $p$ If $p \equiv5 \pmod 6$, then the congruence has a unique solution modulo $p$   Help me...  I don't know what I learn because Prof teaches so quickly.  So I need your help to organize my thoughts.


Hi Can someone help on how to validate if the Time is between the time for example if a person1 has a scheduled time 1PM to 4PM then the person2 must not have scheduled between those time how can i validate it? i can only validate if the person2 time is equal to person1 time.

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?  As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2.


Opening up a question page on any stack exchange site crashes Opera Mobile 12.10.9 on Android 2.3.  This used to work. I noticed the crashing yesterday.  The browser (com.opera.browser.classic) can be downloaded here:  ()

Which browsers are officially supported by Stack Exchange?  Also, what else is needed in order to use every feature of the site?


I want to write a SQL statement to include the same data row:  Index            name       column  ----------  ----------  -------- 1           test1       1 1           test1       2 1           test1       3 2           test2       2 2           test2       3 3           test3       4 3           test3       5 3           test3       6   Output  Index            name       column  ----------  ----------  -------- 1           test1       1,2,3 2           test2       2,3 3           test3       4,5,6   How do I write such a SQL statement?

I have a database table that contains a list of contacts, some of those contacts might have multiple records, e.g.  CustomerID, CustomerName, Vehicle 1, Dan, Mazda 1, Dan, Suzuki 2, John, Ford 3, Dasha, Volvo 3, Dasha, Ford   Can I write a select query to return the distinct customerID and CustomerName, and a list of vehicles in 1 record? i.e.  1, Dan, Mazda+Suzuki 2, John, Ford 3, Dasha, Volvo+Ford   Thanks


I would like to recreate something like this    How would a header like that be achieved, would it be with the \maketitle command?  \documentclass{exam} \usepackage{graphicx}  %============================================================== \begin{document} %% %% \thispagestyle{empty} % \noindent \begin{minipage}[l]{0.1\textwidth}% \noindent \includegraphics[width=\textwidth]{logoUnimal.jpg} \end{minipage}% % \hfill \begin{minipage}[l]{0.9\textwidth}% \begin{center}  {\normalsize \bfseries PANITIA UJIAN AKHIR SEMESTER JURUSAN TEKNIK MESIN UNIMAL \par  \normalsize SEMESTER GANJIL 2015-2016\\[2pt]   \par}   \vspace{0.5cm}   \centering \begin{tabular}{lllllll} \textbf{Mata Kuliah}   & \textbf{:} & \textbf{Sitem Kendali}  &           & \textbf{Sifat}  & \textbf{:} & \textbf{Tutup Buku} \\ \textbf{Dosen Penguji} & \textbf{:} & \textbf{Fauzan, ST, MT} & \textbf{} & \textbf{Durasi} & \textbf{:} & \textbf{60 menit}   \end{tabular}   \end{center} \end{minipage}% \par  \end{document}

I would like to insert a logo for the exam questionnaire on the upper right where the title is placed but i dont know how.. i would like to appear it this way.


I see someone mentioned copying the c:\esri folder and pasting in/on Windows 7 64 bit. Sounds easy enough; however, I thought the installation process partly consisted of putting certain files in certain places in order for the whole thing to work? Oddly enough, I work as a GIS Specialist and know little about the computer. My oversight, excuse me.  So, I have to be led by the nose (really good and thorough intructions).   Could I really just copy my ESRI folder on my xp machine to an external drive and then transfer it to my new machine?  Otherwise, can I use my original installation disks?  Thanks in advance for the education  John

How do I install ArcView 3 on 64bit Windows?   There are numerous threads on the Esri forums for how to accomplish this, but the solutions are scattered, inconsistent and disjointed.   This is a request to post integrated and "cleaned-up" solutions, don't just copy and paste. Please indicate if the method is specific to x64 XP, Vista, or 7 (and post seperately, e.g. win7 method in one answer, vista in another).


The referenced answer that stated in the closed message is not answering my question as you can see from my original post, I followed that answer and was not able to enable hibernation. I am trying to follow  But when I run this command: cat /sys/power/state  I am getting this result: freeze mem  Αnd for that reason, I can not hibernate. What is the problem and how I can fix it? Τhe output of installing pm-utils and hibernate is the following: $ sudo apt install pm-utils hibernate Reading package lists... Done Building dependency tree        Reading state information... Done hibernate is already the newest version (2.0+15+g88d54a8-1). pm-utils is already the newest version (1.4.1-19). 0 to upgrade, 0 to newly install, 0 to remove and 9 not to upgrade.  Also, the swap partition exists and its size is 19 GB (I have 16 GB RAM). $ swapon -s Filename                Type        Size    Used    Priority /dev/sdb1                               partition   19104764    0   -2

I tried different options to enable hibernate in Ubuntu 20.04 but nothing is working. How can I enable hibernate option in Ubuntu 20.04?


Since I installed Ubuntu I was unable to install video Codecs I get the following errors: The following packages have unmet dependencies:          The following packages have unmet dependencies:      gstreamer1.0-libav: Depends: libavcodec-extra-54 (>= 6:9.13) but 7:1.2.5-1~trusty1 is to be installed                         Depends: libavformat54 (>= 6:9.1-1) but 7:1.2.5-1~trusty1 is to be installed                         Depends: libavutil52 (>= 6:9.1-1) but 7:1.2.5-1~trusty1 is to be installed                         Depends: libc6 (>= 2.14) but 2.19-0ubuntu6 is to be installed                         Depends: libglib2.0-0 (>= 2.37.3) but 2.40.0-2 is to be installed     gstreamer1.0-libav:i386: Depends: libavcodec-extra-54 (>= 6:9.13) but 7:1.2.5-1~trusty1 is to be installed                              Depends: libavformat54 (>= 6:9.1-1) but 7:1.2.5-1~trusty1 is to be installed                              Depends: libavutil52 (>= 6:9.1-1) but 7:1.2.5-1~trusty1 is to be installed                              Depends: libc6 (>= 2.7) but 2.19-0ubuntu6 is to be installed                              Depends: libglib2.0-0 (>= 2.37.3) but 2.40.0-2 is to be installed   However, I was using VLC. I had to uninstall VLC for a reason, now I'm unable to reinstall it. When I try to install VLC it gives me the following errors:  The following packages have unmet dependencies:  vlc : Depends: vlc-nox (= 2.1.4-0ubuntu14.04.1) but it is not going to be installed        Recommends: vlc-plugin-notify (= 2.1.4-0ubuntu14.04.1) but it is not going to be installed        Recommends: vlc-plugin-pulse (= 2.1.4-0ubuntu14.04.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I've tried all the solve for this kind of problems, none of the worked for me. I've also tried aptitude which also didn't worked. Installation from source also failed.   apt-get update gives me an error:  W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I have read about LaTeX2rtf, but installing it on a Mac looks a bit intimidating, so in the meantime I am trying to use the workaround of using TeX4ht to convert my TeX into an ODT file and then saving to Word format. Anyway, in case this makes any difference I have been playing around with the SimpleTeX4ht GUI implementation of TeX4ht. When I convert the following code, the Tarski citation shows up as empty brackets [] in the output ODT file.  \documentclass{article} \usepackage{natbib} \begin{document} According to \cite{Tarski:1935}, you can have your cake an eat it, too. \bibliography{bibfile} \bibliographystyle{plainnat} \end{document}   When I convert this file to HTML, the citations all look normal, but for some reason they get screwed up when converting to ODT. Any ideas?

When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other drawbacks. How to set up conversion to LibreOffice properly?  I'm using Ubuntu 12.10 with packaged TeXlive 2012 and LibreOffice 3.6.  The code required to replicate this (shown below) can be  or . To compile, use make texput.odt.  texput.tex:  \documentclass{scrartcl} \pagestyle{empty} \bibliographystyle{plain}  \begin{document}   \section{First} \label{sec:first}   \cite{test}    \ref{sec:first}   \bibliography{texput} \end{document}   texput.bib:  @article{test,   author = "Anyone",   title = "Something",   year = 2010, }   Compilation command, according to :  latexmk texput.tex htlatex texput.tex "xhtml,ooffice,bib-" "ooffice/! -cmozhtf" "-coo -cvalidate"   Resulting output:    Direct compilation:    Analysis of the generated content.xml file (inside texput.odt which in fact is a ZIP archive) shows mysterious <t4htlink> elements, I'm not sure they're part of the Open Document specification... Removing the opening and closing tags fixes the issue, at least for the reference to the section. The citation needs some more fixing. (The results don't change if I omit the bib- switch for the compilation.)


I'm buying a compact digital camera for travel usage by a person not very good with computers. The purpose is to shoot pictures better than with a phone and nothing else, meaning that it should be cheap enough (less than $100) to not worry if it gets some sand on it or gets stolen. I managed to narrow the choice to two candidates: .  The main difference seems to be the sensor: CCD vs CMOS.   My questions:   Which sensor would you recommend for this purpose? Which camera would you recommend?

I keep reading articles about CCD vs CMOS image sensors. What is the difference between these two types? What exactly do these sensors do in terms of photography?  Is a CCD-based camera going to be able to compete in the future? If I buy one, can I count on using it for some years or would it be better to upgrade to a camera with a CMOS based sensor?