Moment.js not working on dynamically loaded elements

I'm using  for local time formatting. It's working fine with initially loaded elements but when the elements are loaded via ajax, the time formatting (moment.js) is not working. My initializing code for moment.js: $(function () {     var htmlLang = $('html')[0].lang;     moment.locale(htmlLang);     $( "[data-time-format]" ).each(function() {         var el = $( this );         switch(el.attr("data-time-format")) {             case "time-ago":                 var timeValue = el.attr("data-time-value");                 var timeAgoStr = moment.utc(timeValue).fromNow();                 el.text(timeAgoStr);                 break;         }     }); });  my ajax loader would look like: $.ajax({         url: "/path/loadData.php",         type: "POST",         data: { jsondata:jsondata },         dataType: "html",         success: function(response) {           $("container").append(response);           //I guess I have to reinitialize moment.js         },         error: function() {           alert("Data not loaded.");         }       });


Horror/Creepy TV series, cartoon, decades odd ago (likely cable/teletoon)

TV series, cartoon, sort of twilight zone for kids. I remember the intro scene had one of the main characters at one point say "now things get creepy" or words to that effect. The intro scene had a ghostly carriage (drawn by skeletal horses, driven by the reaper) and a beating heart in it. I remember one episode was about a boy who never took care of his pets, a shop keeper that turned out to be a toad he had has a pet that came back for vengeance turned him into a small rodent like creature. I remember at one point his mother is burying a goldfish her neglected and he says he'd like something cool like a dolphin.


Prove that $(n!)!$ divisible by $(n!)^{(n-1)!}$

I was trying to think of a situation and use combinatorics to solve the problem. Any other arithmetic solution is also appreciated.


What is the git command to list ignored files?

My netbeans IDE shows ignored files on a different color. I presume, the IDE is knowing this by using some git command.  I wish to know what files on a project folder and subfolders are being ignored.  What command should we use?


What type of bicycle rack should I buy for my car?

I have been biking for a while now but mostly for my commute to work. Now, I am interested in doing longer rides and trails as summer is almost there :). I need a bike rack for my car, which is a sedan (Toyota Corolla). I have a road bike, and a mountain bike, so I might carry one or the other or both at times.   What should I consider when buying bike rack / carrier for my car?


I need to reinstall 18.04 (due to ongoing problems) and was wondering as to the best way to partition. I have a 1TB HD. I want a separate /home directory so I was wondering what's the best way to go about it to allow enough space for /boot, /, etc.? Right now my /home directory is 173.8 GB. Can I let Ubuntu take care of the other sizes when I get to the "Something Else" screen?  EDIT:  I don't believe the question is a copy as I would have skipped that answer in a search as it also deals with Windoze.


How to calculate average slope in a grid?

This is actually a two part question:   Which methods are there to calculate average slope by unit (say km²) for a given area? Are there any special requirements on the data - like additional information besides height measurements? Which open source GIS implement methods usable to calculate average slope on a grid (e.g. TIF file)?


How to print the longest line in a file?

I'm looking for the simplest method to print the longest line in a file. I did some googling and surprisingly couldn't seem to find an answer. I frequently print the length of the longest line in a file, but I don't know how to actually print the longest line. Can anyone provide a solution to print the longest line in a file? Thanks in advance.


\documentclass[12pt,aspectratio=169]{beamer}  \usepackage{bookman} \usetheme{Madrid} \graphicspath{{Arquivos/}} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx}  \newcommand{\CO}{Contexte scientifique et objectif} \newcommand{\I}{Introduction} \newcommand{\MM}{Modèle mathématique} \newcommand{\SM}{Simulation numérique} \newcommand{\C}{Conclusion} \AtBeginSection[] { \begin{frame}<beamer>{Table of Contents} \tableofcontents[currentsection,currentsubsection,      hideothersubsections,      sectionstyle=show/shaded, ] \end{frame} } \title{...............}  \author[.....]{......} \institute[IPT]{\large{;............} } \date{May 20-24, 2019}   \begin{document}  \begin{frame} \titlepage \end{frame}     \section{\CO} \begin{frame}{\CO}\pause  \end{frame}  \section{\I} \begin{frame}{\I}\pause  \end{frame}  \section{\MM} \begin{frame}{\MM}  \end{frame}  \section{\SM} \begin{frame}{\SM}\pause     \cite{FV} \end{frame}  \section{\C} \begin{frame}{\C} \cite{CrPas} \end{frame}  \begin{frame}{Référence}         \bibliographystyle{plain}          \bibliography{biblio}  \end{frame}  \begin{frame} \Large{\textbf{Merci pour votre attention}} \end{frame}  \end{document}


Why is it there is no “favourites” choice here? I know we can filter for a specific tag in a number of ways. But why not offer to just show all favourite tags?


Before I start, this is going to be a general question but with specific cases. I've been trying to understand GIS tools and applications to achieve the following:   Build my own basemap Publish the basemap online Add my own data layers to the online basemap Perform analysis (on-the-fly)  Add interactivity to the map   So, In my first attempt, I built a spatially enabled database on PostGIS, queried this using PHP, overlayed it on google maps using their API and added interactivity using their api itself. I carried out analysis like area, denisty etc. on the fly using postGIS functions.  For my next attempt, I downloaded TileMill and rendered some really beautiful maps and added zoom level functions to it. I also exported my MBtile files. When I came across trying to publish this online, I hit quite a few names, but got lost and confused:   TileStache TileCache TileStream Mapserver Mapnik GeoServer Mapbox   So, I understand these are mapservers. But what exactly does a mapserver do? Why is it used? Why can't i server my tiles from a normal web Apache server? And for MBtiles, how many servers are out there which lets you publish it directly?  I can also export my basemap as a png/vsvg format. Can these formats be used to make a basemap through a mapserver?  When researching interactivity I came across:   Leaflet ModestMaps OpenLayers Mapstraction   I understand these are Javascript Mapping API's. But on what base map can I use these? Can it be used on Google maps? Can I use them on my own base maps too?   I basically want to understand the differences between these tools and which would be the best software stack to build a fully customized, interactive map with my own basemap.  Sorry if my question sounds to general. I will definitely be here to clarify my questions


New Golden Ratio Construction with Two Adjacent Squares and Circle. Have you seen anything similar?

The below Golden Ratio Construction results in a ratio of PHI (1.6180...) between the blue line and red line, as found in Geogebra.  This seems like a simple construction of the golden ratio, yet so far I have not found anything similar.  If you know of a similar golden ratio construction, please do share!  Thanks!  This Golden Ratio construction is made in the following manner:   Draw two adjacent squares Square1 and Square2. Draw a circle with radii equal to the side of the Square, placed at the  corner of Square2 as drawn below. A line passing through the two opposing corners of the two adjacent squares will then define the golden cut in conjunction with the circle, as shown below.  The ratio of segment t to segment s, (or the blue segment to the red segment), is the golden ratio PHI.     Has anyone come across anything the same or similar?  And of course trigonometric and geometric proofs of the golden ratio construction are always welcome!


App crashing because of NullPinterException

I'm trying to make an Intent to start the NewEventActivityunfortunately the app crashejn when the floating action button is pressed. Here is my code:  MainActivity:      public class MainActivity extends AppCompatActivity {         @Override         protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);              }             public void newEventIntent(View v){                 Intent intent = new Intent(this, NewEventActivity.class);                 startActivity(intent);         }     }   activity_main.xml:          <android.support.design.widget.FloatingActionButton         android:onClick="newEventIntent"         android:id="@+id/add_event_fab"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignParentRight="true"         android:layout_alignParentBottom="true"         android:layout_marginRight="20dp"         android:layout_marginBottom="20dp"         android:src="@drawable/baseline_add_24"/>   LogCat:  java.lang.RuntimeException: Unable to start activity componentInfo{com.example.deadline/com.example.deadline.NewEventActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   I made sure that both activities are in the manifests.


I'm not sure where to ask a question about a Filezila, server and html document related issue?

What Stack Exchange community is suitable for the following question?     It's Pretty straightforward. When I download an HTML file from my   server it becomes corrupted with bunch of Chinese characters I didn't   put there. I don't know what's the problem, the encoding of the file   seems fine, and it shows up nicely in the browser.      That is, unless I put the downloaded file back on the server, then   it's all screwed.


The following is Exercise 2.4, in Chapter 1 of Liu, Algebraic Geometry and Arithmetic Curves:  Let $I$ be a finitely generated ideal of $A$:   $A/I$ is flat. $I^2 = I$. $I = (e)$ where $e^2=e$.   I can show that $2\iff 3$ and that $1 \implies 2$, and I remember proving the other way before but cannot recall it now. That is, I would like to show that $A/I$ is flat assuming that it is principal and generated by an idempotent.


How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time:  os.system('sudo sh -c "echo date \'+%s\' -d \'+ \        24 hours\' > /sys/class/rtc/rtc0/wakealarm"')   How can I run this script without sudo asking for the password every time?


How can I switch to new window using webdriver?

I have clicked an image in a slide show and it generates a new window. Once the window opens I need to bring focus on new window and do some stuff. I have attached my code below, but it is not successful.  @Test public void testCreateAccount() throws Exception{  //OPEN manorama online  url driver.navigate().to("http://www.manoramaonline.com/cgi-bin/MMOnline.dll/portal/ep/home.do?tabId=0&BV_ID=@@@");  // to click a link inside a slide show  while (!driver         .findElement(                 By.xpath("/html/body/div[2]/div[2]/div[4]/div/div/div/div/center/div/div[2]/span/div/a/img"))         .isDisplayed()) { } driver.findElement(         By.xpath("/html/body/div[2]/div[2]/div[4]/div/div/div/div/center/div/div[2]/span/div/a/img"))         .click();    String newwindowTitle = driver.getTitle();  switchWindow(newwindowTitle);  }  protected static boolean switchWindow(String title) throws IOException {      String currentWindow = driver.getWindowHandle();     Set<String> availableWindows = driver.getWindowHandles();     if (!availableWindows.isEmpty()) {     for (String windowId : availableWindows) {     if (driver.switchTo().window(windowId).getTitle().equals(title)) {     return true;     } else {         driver.switchTo().window(currentWindow);     }}}      return false;        }


Is a polynomial expression with unit coefficients guaranteed to be invertible in a ring?

I'm working through a proof of Amitsur's Theorem, that if $\mathbb{K}$ is a field and $A$ a $\mathbb{K}$-algebra with $\dim_{\mathbb{K}}A<|\mathbb{K}|$, then $J(A)$ (the Jacobson radical) is nil (all it's elements are nilpotent). We let $a\in J(A)$. In the final step of the proof, we arrive at $$ 0 = a^k\underbrace{(b_0 + b_1a + ... + b_m a^m)}_{=: p(a)},\quad b_i\in\mathbb{K}, b_0\neq 0 $$ My prof says $p(a)$ is invertible "since each $b_i$ is a unit", but I fail to see how this is true. Is it true, in general, that if each $u_i$ is a unit of a ring $R$, and each $u_i$ commutes with $a$ along with every other $u_j$, then $u_0 + u_1a + \cdots + u_n a^n$ is also a unit? I know that if $u\in R^\times$, $a\in R$ is nilpotent, and $ua = au$, then $u + a\in R$, but this cannot be applied in our case as we cannot assume a priori that $a$ is nilpotent (this is what we are trying to show). If the general statement is false, what could be "special" about our $p(a)$ above which guarantees it's a unit?


Can I resume a job in the background and redirect its standard output to a file?

I have stopped a job by pressing Ctrl-z. Can I resume the job with bg, yet have the output redirected to a log file instead of stdout? Doing the following: bg > log.txt  Only writes the initial printed line (e.g. [1]+ <<job_name>> &) to the log file.


17. 10 - PC freezes when cusor over VLC media players bottom bar

As I say on title, when I move cursor over the vlc media player's bottom bar, my pc freezes ? Do you have any advice ?


Mining cryptocurrencies with Ubuntu and sgminer

What are the steps for setting up a Ubuntu machine for mining of crypto-currencies?  I am looking for a full guide to follow - from installing Ubuntu to how to config and start the miner itself.


Showing that $i$ is neither negative nor positive

Show that $i$ is neither negative nor positive.  Proof: Assume that $i<0$ $i×i>0×i$    Since $i<0$ $i^{2}>0$ Since $i^{2}:=-1$ So, $-1>0$ which doesn't hold and hence this is a contradiction to the fact. Next, assume that $i>0$ $i×i>0×i$ since $i>0$ $i^{2}>0$ Since $i^{2}:=-1$ So, $-1>0$ which again doesn't hold and hence this is a contradiction to the fact. This establishes the proof. Is this valid proof?


Why is Ubuntu One going to be shut down?

I just received an e-mail from Canonical warning me that the Ubuntu One service is going to shutdown. Is this real? Has anyone else got the same e-mail? Why is this happening?  Any information would be appreciated :S  Email:     Hi,      We are writing to you to notify you that we will be shutting down the   Ubuntu One file services, effective 1 June 2014. This email gives   information about the closure and what you should expect during the   shutdown process.      As of today, it will no longer be possible to purchase storage or   music from the Ubuntu One store. The Ubuntu One file services apps in   the Ubuntu, Google, and Apple stores will be updated appropriately.      As always, your content belongs to you.  You can simply download your   files onto your PC or an external hard drive.  While the service will   stop as of 1 June, you will have an additional two months (until 31   July 2014) to collect all of your content. After that date, all   remaining content will be deleted.      If you have an active annual subscription, the unused portion of your   fees will be refunded. The refund amount will be calculated from   today's announcement.      We know you have come to rely on Ubuntu One, and we apologise for the   inconvenience this closure may cause.  We've always been inspired by   the support, feedback and enthusiasm of our users and want to thank   you for the support you've shown for Ubuntu One. We hope that you'll   continue to support us as together we bring a revolutionary experience   to new devices.      The Ubuntu One team


Trying to understand re.search() vs re.findall()

I'm trying to understand a seemingly easy case while learning regular expressions.  Suppose I have a code like this:  import re  a = "Eventin queue contains 5 elements, first element is 20 minutes old" b = re.search(r"Eventin queue contains \d+ elements, first element is \d+ minutes old", a) print(b)   For some reason, bonly returns this result: <_sre.SRE_Match object; span=(0, 66), match='Eventin queue contains 5 elements, first element >  As you can see, it's not a full result that I was expecting. However, if I use re.findall() I get ['Eventin queue contains 5 elements, first element is 20 minutes old']  Am I misunderstanding something here? Shouldn't re.search() return the full match as well?


can I enable android on my device which is of Samsung Rex s3802?

I am trying to enable this on my device for an hour but nothing's working!


Having trouble with iterating through an ArrayList (Java)

I don't understand why the following if statement never hits, I've verified through the log that movie and films.get(i).getTitle() are the same string:  List<Film> films = new ArrayList<Film>(); films = filmDB.getAllFilms();    for(int i = 0; i < films.size(); i++)                  if(movie == films.get(i).getTitle())                 {                     Log.d("TITLEMOVIE", films.get(i).getTitle());                     ;                 }             else                 {                     Log.d("NOMATIC", films.get(i).getTitle());                 }


Let Q(n) be the sum of digits of n. Prove that Q(n) = Q(2n) implies 9|n

I don't know how to approach this question any hint would be appreciated .


If $$\left\{x_{n}\right\}\mid x_{1}=5,x_{n+1}=x_{n}^{2}-2,\forall n\geq 1$$ find $$\lim_{n\to\infty}\frac{x_{n+1}}{x_{1}x_{2}\cdots x_{n}}.$$  If someone could help me out with tags, it'd be lovely. I think this is calculus and real-analysis, but I'm not sure--I had the problem scribbled down on a post-it, and I forget where it's from.


Airport transit visa for Germany for holders of an EU temporary residence permit

First of all, I searched for info about this on travel.stackexchange and various websites but I can't seem to find a definite and unambiguous answer.  I'm an Afghan citizen traveling to Finland and my flight has a stop in Germany. I have a Finnish residence permit for study, but I haven't entered Finland yet so there is no stamp or anything on my passport.   Will I require a transit visa for the stop? Where can I find more info on this?


VS 2019 to SQL 2019 deployment issue - SELECT permission was denied on the object 'server_principals'

Good day, We are currently facing an issue with SSIS deployment from Visual Studio 2019 to SQL Server 2019. Using the Visual Studio "Integration Services Deployment Wizard" to deploy even a blank project, results in the following error: The SELECT permission was denied on the object 'server_principals', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229) Screenshot:  I use my AD account (Windows Authentication) to deploy from VS 2019. My AD account has db_owner access across the server and databases. We have also attempted to deploy the dtsx file from SSMS 2019 itself which also results in the same error I am struggling to find any online resources which specifically make reference to the SELECT issue on "Server_principals" Has anyone perhaps experienced something like this or can anyone please advise where the issue could lie or where to troubleshoot next? Thanks in advance


passing function parameters without type, then declare pointers to variables with same names

I was reading through  and came across this function definition:  int timeval_subtract (result, x, y)  struct timeval *result, *x, *y; {     //do stuff     return result; }   I have never come across this argument passing before.  -There is not type for the variables within the parenthesis (). -OK the type "struct timeval" comes later, but using the same variable names?   Is the above entirely equivalent to   int struct_timeval(struct timeval *result, struct timeval *x, struct timeval *y){      //do stuff }   or not?


Is it possible to upvote question and then downvote that question again and upvote again ad so on ? If yes, what is the consequences of this action ?


Linear transformations: left and right inverses

I want to prove the following statement.  Let $V$ and $W$ be $n$-dimensional vector space and $T \in \mathcal{L}(V,W)$. Prove that $S \in \mathcal{L}(W,V)$ is a left inverse if and only if it is a right inverse.  My first thought was that I can use the following facts: (1) A function $f: A \to B$ is injective if and only if it possesses a left inverse and is surjective if and only if it possesses a right inverse. (2) A linear map $T \in \mathcal{L}(V)$ is injective if and only if it surjective if and only if it is invertible. The first statement seems valid, but the 'link' between surjectivity and injectivity breaks down, I believe, because $V$ and $W$ only have the same dimension, but are not necessarily the same vector space. Finite-dimensional doesn't imply finite, so I cannot use the usual fact for functions that if $f: A \to B$ where $|A| = |B| = n$ is injective, then it is surjective (and vice-versa). I also can't use the fact that a function is bijective if and only if it is invertible because having a left or a right inverse says nothing about invertibility (with the key word being 'or'). Any help would be appreciated. I'd like to think I'm on the right track.


I understand that some isotopes of an element have a shorter half life, and decay more quickly into other elements. Other isotopes are described as stable and no half life is stated. For elements that have a stable isotope, does this isotope still have a half life, just a very long one? Are there isotopes which do not decay spontaneously, or do all isotopes have a half life?


astrophotography with Nikon D3300 is possible?

i have Nikon D3300 DSLR with Nikon 18-55mm (VR2) lens  and i want to shoot astrophotos.  i wanna know if this possible with my camera or lens   and if not , what should i upgrade ? and what to ?  Thanks


Update (March, 2012): This has been rolled out to all sites in the network.    Behind the scenes we've been hard at work making some changes to how we track reputation.  Here are some of the issues we're aiming to address with these changes:   Reputation Skew (your actual reputation doesn't match what's shown) Up/Down votes oddities (mostly with the daily rep cap, the magical +2) Historical Deletes (not impacting rep immediately, contributing to skew) Unaccepts (display issues in the profile) User Deletion (magically missing rep, another skew contributor)   To be clear: reputation values are not changing, every action in the system is still worth the same amount.   Here’s what will be different:   Your reputation will be correct at all times Deletions will have a much more immediate effect on reputation, not waiting on a recalc  (but reputation sync takes up to 5 minutes on a delete/undelete action; as to not block the user's response thread, it's offloaded to a background queue) Recalcs will no longer be necessary Up/Down vote reversals will restore the correct reputation amount Up/Down vote reversals will correctly adjust to the reputation cap The reputation history in your profile will be more detailed and accurate (e.g. when a post is deleted, you'll see that in the reputation tab of your profile)   This means your reputation will go up and down more than it has previously, but it will be in sync.  To think of it more easily: imagine that a recalc will be done after every action in the system.  Probably the biggest impact many will be concerned with is that you may see your reputation drop in cases where it didn't seem like it did before  This was effectively happening before, but the results of that change were not applied immediately, but on the next rep recalc.  Post deletion is the biggest factor here, previously it didn't (immediately) account for the reputation impact...that will no longer be the case.  Reputation changes from the deletion will now be applied within the hour, and most other changes will be instant.  Now the part that will make everyone throw vegetables our way:  this will require a global recalc to get everything in sync.  We'll be rolling it out first here on meta, then the rest of the network...the enabling of the detailed rep view and global recalc on each individual site will coincide.  During the rollout you will see empty reputation tabs on profiles as we transition to the new storage behind the scenes, they'll be restored as the recalc rolls though each user.  We’ll put up a blog post on  before the network-wide rollout.  If you have any questions about this change or details I may have left out, please do so in answers below so that we can clear up as much as possible before this rolls out.


The magnitude of the normal force on an inclined plane in two different coordinate systems

After years of solving this problem over and over again as a tutor, this is the first time I came across this question. Solving this could be useful if a future student asks this. Let's say there's a block on an inclined plane of mass $m$, we have the following two coordinate system in which we can represent the forces on the block:   As you can see, we have two different expressions for the magnitude of the normal force. I don't know how to justify this because if we assume each coordinate system is orthonormal, then one would be just the rotation of the other and the magnitude of the normal should be the same in both of the coordinate systems. Obviously I'm missing something or something is wrong with my reasoning.


Android JsonObject -- I do not know what to do

I can not use the data from the method. I do not know why. Where did the mistake? I have the following json:  {"code":"1","status":"Basarili","login":"OK","kullanici":"1"}  JSONObject veri_json; try {     veri_json = new JSONObject(response);      try {         String code,status,login,kullanici;         code = veri_json.getString("code").toString();         status = veri_json.getString("status").toString();         login = veri_json.getString("login").toString();         kullanici = veri_json.getString("kullanici").toString();          if(code=="1") {             etKullanici.setText(status);         }      }      catch (JSONException e) {         // TODO Auto-generated catch block         e.printStackTrace();       } }  catch (JSONException e) {     // TODO Auto-generated catch block     e.printStackTrace(); }   Debugger note:     code="1" login="OK" status="Basarili" kullanici="1"   but doesn't work      if(code=="1") {     etKullanici.setText(status); }   I am sorry for my bad English.


Probability a bit in a bit string is 1 after swapping

Stuck on a homework question, so I could use all the help I could get.  Let $x = x(1), \dots , x(n)$ be a bit string containing exactly $m$ occurrences of 1. Consider the following operation on $x$: we choose a random pair of indices $(i,j),$ and we swap $x(i)$ and $x(j)$ so that $x'(i) = x(j),$ $x'(j) = x(i),$ while $x'(k) = x(k)$ if $k \neq i$ and $k \neq j.$ (If $i = j,$ therefore, then we change nothing.) Let $X_1 = x,$ and let $X_2, \dots, X_N$ be obtained by such a sequence of operations (always swapping a new random pair) that so $X_{r+1} = X_r$. The number of 1s remains $m$ in each iteration. Show for each $i$, we have $P(X_N (i) = 1) \rightarrow \frac{m}{n}$ as $N \rightarrow \infty$.  We're given this hint: Consider the last time $i$ was swapped.   I've gathered that the probability that $i$ is swapped on any given iteration is $1-(1- \frac{1}{n})^2$. I've also figured out that the probability $i$ is 1 after a swap is $\frac{m}{n}$, as there are m choices for i to change to (including itself) after being selected for a swap, but I'm not sure how to apply this.


I've lost a command block, how can I find it?

I've placed a command block making it day all the time. I want to turn it off, but I've lost it. What's the quickest way to find it?


I'm trying to prove this following theorem:      If $x, y \in \mathbb{Z}$, use the cancellation law for $\mathbb{Z}$ to demonstrate that $xy = 0 \implies$ $x = 0$ or $y = 0$   The proof I came up with doesn't quite seem definitive enough. I know how to prove this without using the cancellation law, but this requirement seems to make things much more difficult.   So, clearly $0 = 0 \cdot x = 0 \cdot y$ $\forall x, y \in \mathbb{Z}$. So, we can clearly say that this holds for $x \neq 0$ and $y \neq 0$.   So, first we can write that $xy = 0 \cdot x$ for $x \neq 0$. So, by the cancellation law, $y = 0$. Similarily, we can write that $xy =0 \cdot y$ for $y \neq 0$, so $x = 0$ by the cancellation law.   It seems to me that we can write $xy = 0 \cdot a$ for any integer, so this doesn't quite "prove" anything, though in such a case we wouldn't be able to use the cancellation law, so that wouldn't at all be a pertinent fact.   How does this sound?


How to convert text into numbers for chmod?

I need to chmod something into drwxrwx---. What is drwxrwx--- in number form?


How do I accept Oracle's license agreement while installing JDK?

I am trying to install Java on Ubuntu 18.04. by running:  sudo apt install oracle-java14-installer   But when I reach the part where I have to accept the license agreement there is link leading to the Oracle page, but when I click on that link it's "Page not found". I'm stuck on this page?    How do I accept the license agreement? I'm using .


I've been trying to do someting with LaTeX. I have some emails that I want to insert in a document. I've searched all over the web but can't find a valid solution. What I want to do is to have those emails looking like typewriter emails, with line breaking. Right now I'm using lstlistings with the following options :  \lstset{     language=,     basicstyle=\ttfamily,     breaklines=true,     frame=single,     breakindent=0pt, }   I get a fairly god result, but the problem is that the line breaks don't break words, they check for overflowing words and return them to the line. It works, but there are trailing spaces (at the end, and sometimes at the beginning of lines).  I just want every line to start on the left (i.e. to be aligned and touching the left). I want spaces at the beginning of lines to be removed if there are any.  I tried adding these options :  \lstset{     %...     columns={l}, % this doesn't change anything     keepspaces=false, % I tried this too, but it doesn't change anything either     showstringspaces=false % tried this too }


How to block / deny linux user from accessing a site with htaccess?

My site got hit ddos several times till now, i found that ddos traffic generally comes from linux os ... then, i wonder how to block linux users / traffic from accessing a site with htaccess?? Please advice..


Slow Network Printing over OpenVPN / Windows Server 2008

Our setup is as follows:  Two offices (A and B) connected with OpenVPN Access Server.  One Windows Server 2008 R2 Standard    Housed in remote datacenter. Terminals at both offices connect through RDP in order to use a particular piece of software concurrently. Network Connected printers (Deployed with GPO) that are connected to separate terminals at each office (and shared) are used with this software to print things throughout the day.   We are experiencing extremely slow printing times.  Opening printer properties can take 30-60 seconds and printing times range from 30-180 seconds with no apparent reason.  File sizes remain < 1mb.  This happens with each of our printers.  All different models.  The server massively underutilized with a 6-core AMD, 16GB ram, 4x 120GB SSDs, and a 100 megabit port.  Our VPN does not seem to be a bottleneck either.  I've been attempting to find ways to increase print speed.  So far no success.  What can you advise?


I was wondering someting : Doing a XOR with a fixed length key on txt files is not secure. Basically :  My key is "abc"          abc|abc|abc|abc|abc|abc          Thi s i s s ome dat a  THIS, is not safe. BUT ! I was asking myself : why can't I just make a self generating infinite length key ? The user gives me a password, and I just hasing it to create a key, and whenever the length of the file is bigger then the key, i just re-hash the key itself to create a new one ! Example : Let's take a 192 Bytes message. Use SHA256 hashing algo create 48 Bytes keys.  This solution resolve the ciphere vineger problem. SO MY QUESTION ( here it is :p ) : Is this one safe ? Thanks ! ~Amperclock


Consequences for publishing final-version PDF, in violation of publisher policies?

Are there consequences that are typically enforced when an author puts the publisher’s PDF on a personal website or social media (e.g. ResearchGate) in violation of the publisher’s policy? I see many journal policies which prohibit uploading the final-version PDF on repositories (see ). But at the same time, I see many final-version PDFs freely available if you look on ResearchGate, Academia.edu or an author’s website.  If these are cases of technically breaking the publisher’s rules, are there typically consequences for researchers?


Creating matrix newenvironment with arraystretch

I want to create a new matrix environment with different spacing for a matrix instead of manually typing arraystretch locally for each matrix. I am new to more advanced LaTeX coding, and have not quite figured this out. I thought that I could just do \newenvironment{dbmatrix}{     \renewcommand*{\arraystretch}{1.5}     \ensuremath{\begin{bmatrix}  \end{bmatrix}} }}  But then, after searching through Stack, I thought maybe I need to use \bgroup,\egroup or \makeatletter, \makeatother type commands, but have not figured out how these commands really work and failed using them. It would also be great to have maybe an additional environment that took an argument to adjust \arraystretch, like \begin{dbmatrix}{1.5} \end{dbmatrix}. Would love some help and suggestions.


MBPro 10.14.6 Mojave. Ubuntu on 32G USB key.   Boots and works fine but all modifications and downloads go unsaved. On next boot, it's like new again.  I hear of "persistence"?


Given a square matrix A of order n, prove $\operatorname{rank}(A^n) = \operatorname{rank}(A^{n+1})$

Given $A\in F^{n \times n}$ prove:  $$\operatorname{rank}(A^n) = \operatorname{rank}(A^{n+1})$$  $\operatorname{rank}(A^{n+1}) \leq \operatorname{rank}(A^n)$ is easy, just from:    But how can I prove the other direction? or should I do it otherwise?


Is there an everywhere discontinuous increasing function?

Does there exist a function $f : \mathbb{R} \rightarrow \mathbb{R}$ that is strictly increasing and discontinuous everywhere?  My line of thought (possibly incorrect): I know there are increasing functions such as $f(x) = x$, and there are everywhere-discontinuous functions such as the Dirichlet function. I also know that when there is a discontinuity at a point $c$, there is a finite gap $\epsilon$ such that there are points $d$ arbitrarily close to $c$ such that $|f(d) - f(c)| > \epsilon$. This is where my thinking gets unclear - does it make sense to have a "gap" at every real number?


Which one of the following is commonly used in daily British English conversation?        The story could be true, but I don't think it is.   The story might be true, but I don't think it is.   The story may be true, but I don't think it is.


How to tune MCMC with unwieldy posterior

Let's say I have $n$ observations of a random variable, $X_1, \dotsm, X_n \sim \mathcal{N}(0, \sigma^2)$. I also assume $\sigma^2$ has a Gamma(1,1) prior distribution, $\pi(x) = \exp(-x)$.   I'm now attempting to use Metropolis-Hastings to sample from the posterior distribution (which I believe is):  $$f(\sigma | X) \propto \frac{1}{(2\pi\sigma^2)^{n/2}}\exp{-\left( \sigma^2 + \sum\limits_{i=1}^n\frac{X_i^2}{2\sigma^2}\right)}$$  However, for larger $n$, this unnormalized density produces usually either quite small or quite large values, making it difficult to get the Markov chain to mix well.   My question is: in general (and for the MH algorithm), what are my options for attempting to sample with such an unwieldy distribution?


I upgraded to Ubuntu 14.10 from 14.04 LTS about a month ago. I have my computer encrypted already, so I have to put a password in when starting up my computer. But I also have to login each and every time. This seems redundant to me. How can I make my computer auto login?


I've got a few questions on induction and electromagnetic fields. My current understanding of induction and electromagnetic fields is that, when electricity/current flows through a wire, it creates an electromagnetic field. If you twist that wire into a coil then you can concentrate that field. You can then induce current into a different coil by placing it inside of the electromagnetic field created by the first coil.  So here are my questions:  Q1. Does the electromagnetic field contain any energy?  EDITED QUESTION  Q2. Electromagnetic fields are the same as waves, so does that mean that when current is induced, they get the energy from electromagnetic waves being exchanged, or do they induce current directly from the electromagnetic field?   Q3. If electromagnetic fields and waves are the same, then doesn't that mean that you can induce current from waves? Therefore transferring electricity over long distances?  Q4. What spectrum of light are the electromagnetic waves that are in a field created by electricity?  Q5. Finally, why is it not possible to induce current from the Earth's magnetic field? I thought Maxwell said that electric fields and magnetic fields were the same thing.   Thank you to anyone who answers.  Edited Q2: So my original question (although asked poorly) still stands. Where does the current that gets induced in the secondary coil come from? How does the electricity transfer from the primary coil to the secondary? For example, is it taken from the stored energy in the e.m field? Does the field just act as a bridge between the 2 coils? Or do the 2 coils exchange e.m waves which carry the electricity that is being transferred from coil 1 to coil 2? Or is it none of these things and something completely different?


How to use unnumbered chapters with KOMA-script?

I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} because I want it in the table of contents (see example).  But then the link in my PDF viewer gets it wrong and also the automatically created header is no longer correct (see picture). The table of contents shows the right page number (p.1) but the link is also wrong.   What is my mistake here?  \documentclass{scrbook}  \usepackage{hyperref} \usepackage{blindtext} \usepackage{glossaries}   \makeglossaries  \newacronym{eg}{e.g.}{% for example }   \begin{document}   \frontmatter  % abstract before the table of contents \chapter*{Abstract} \addcontentsline{toc}{chapter}{Abstract} \blindtext  \tableofcontents  % chapter with acronyms \cleardoublepage \phantomsection  \printglossary[type=\acronymtype] \addcontentsline{toc}{chapter}{Glossary}  \cleardoublepage \mainmatter   \phantomsection % \chapter{Introduction} % with this everything is correct but I don't want the number \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction}  \blindtext  \pagebreak  \blindtext  % first chapter \chapter{Chapter1}  \gls{eg} \blindtext  \pagebreak  \blindtext   \end{document}


Query to collect the recent unique TimeSampled rows using inner joins for multiple servers in MS SQL

Dears, I have written below inner join query to get the data from my database tables. But output of this data is coming up with almost 3k lines. Output is below. I need data in only unique recent "TimeSampled" rows    select DISTINCT DisplayName, ObjectName, CounterName, InstanceName, SampleValue, max(TimeSampled) as TimeSampled from PerformanceDataAllView pdv with (NOLOCK) inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId where ObjectName = 'Processor' AND TimeSampled >= DATEADD(MINUTE,-5,GETDATE()) AND DisplayName Like '%' group by  [PATH], [DisplayName], [ObjectName], [CounterName], [InstanceName], [SampleValue]   How I can retrieve results with only last Time Sampled rows with respect to DisplayName. I have almost 5k servers (DisplayName) like this to retrieve the data.  Request to need to a help to achieve this.


Are there any tools, plugins or methods in QGIS which allows for an analysis of the best path between two points using least cost path method? As shown below ArcGIS has several distance tools.


How to get a closed form for $\sum_{i=1}^n \frac{3^i}{2^i}$

How can I get a closed form for:  $$\sum_{i=1}^n \frac{3^i}{2^i}$$  I have just started studying closed forms for summations and I am still lost on this matter so I would appreciate if you guys could explain that step by step or suggest me some references for me to study.  Thanks in advance.


I get this code:  #include<stdio.h>  #include<stdlib.h>  void main(void)  {      char *ptr = (char*)malloc(10);       if(NULL == ptr)      {          printf("\n Malloc failed \n");          return;      }      else      {          // Do some processing          free(ptr);      }       return;  }    It compiles successfully in Visual C, but do not compile in gcc, I get "error:'main' must return 'int'". So is the return type 'int' of main() function is a convention(which is for compiler to define), or a rule of C?


Equipment operating on negative voltage instead of positive voltage

Why do some devices, Carrier grade base stations for WISPs and cell towers for example, operate on a -48v system instead of a +48v system?  A few of our higher end devices operate on a -48v system instead of a +48v system. Why would these companies choose to operate these devices on a negative polarity? are there benefits to this? and to power these devices does your power supply need to specify that it can operate this way?


Remove line containing certain string and the following line

I use this  cat foo.txt | sed '/bar/d'  to remove lines containing the string bar in the file.  I would like however to remove those lines and the line directly after it. Preferably in sed, awk or other tool that's available in MinGW32.  It's a kind of reverse of what I can get in grep with -A and -B to print matching lines as well as lines before/after the matched line.  Is there any easy way to achieve it?


Ubuntu isn't recognizing any use of the super key(s). Keyboard works 100% otherwise, just not registering at all when I press it. Happens with two different keyboards...  It's been working perfectly fine for a few months, I haven't consciously messed with the bindings or keyboard config. Just has completely stopped being recognized as of today. Tried restarting computer, resetting settings... nothing.   Even when I open keyboard layout under Settings > Region & Language > keyboard icon, where the layout can be seen and the keys light up on the screen when you press them, both super keys don't register.  Any ideas?


What should I do if there's a mistake in my textbook regarding anatomy?

Some information in my college level Anatomy and Physiology textbook is about a decade (if not more) out of date? The information does not only cause a lack of understanding, but also encourages a misunderstanding.   What should I do? If I contact the publisher, how should I do it?  I'd prefer not to give specifics, as this is a fairly popular publisher.  P.S: I included "book-recommendation" as a tag as it was the most appropriate tag available.


Could a super conductor actually be used to repel gravity?

I've always been interested in anti-gravity and how you could do it. I know that it would make space travel easier because less fuel would be required, but is it possible?


Prove that if $R/I$ is a field then $I$ is maximal

Let $I$ be an ideal in a commutative, unital ring $R.$ Prove that if $R/I$ is a field, then $I$ is maximal.   Here's my take on this problem.  Suppose $R/I$ is a field. Then every nonzero element is invertible. We first show that $I$ is proper. If $1\in I,$ then $I=R\Rightarrow R/I$ is not a field (as it is the trivial ring, which is assumed to be nonunital for the purpose of this problem). We now show that $I$ is maximal. Suppose there exists an ideal $J$ such that $I\subsetneq J\subsetneq R.$ Take $0\neq a\in R/I.$ Then $\exists a^{-1}\in R/I$ such that $aa^{-1}=a^{-1}a=1\in R/I.$ By assumption, $J$ contains an element other than $1$ that is not in $I$ (otherwise $J$ would not be a proper ideal of $R$). So there exists $b\in J$ such that $b\neq 0\in R/I.$ However, since $R/I$ is a field $\exists b^{-1}\in R/I$ such that $bb^{-1}=b^{-1}b=1.$ Since $b^{-1}\neq 0, b^{-1}\in R\setminus I.$ Hence $bb^{-1}=1\in J,$ which is a contradiction. Hence $J=R$ and $I$ is maximal.     I know I did a lot of unnecessary steps in my proof (like recalling definitions), but other than that, are there any major flaws in my logic or ways to shorten the proof?


Prevent gedit from creating files with the '~' (tilde) suffix

I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit.  I understand the need for a temp file (eg. in case of a crash), but vim for example deletes the extra file it creates, when I close it.  Is there a way to do the same with gedit? Some configuration perhaps?


What kind of edits contribute to the editor badges?

The descriptions for the editing badges are:     Editor:    Strunk & White:    Copy Editor:    Does "posts" include your own questions/answers, or are these badges just for edits to other people's stuff?  Other questions about how editor badge works:   What if I edit only a question's tags, but not its body? What if I edit both a question's tags and its body? Do edits to Community Wiki posts count? Do edits to answers count? Do edits to tag wiki pages count? Do edits to comments count? (Moderators can edit other users' comments, even outside of the usual five minute window.)


Possible Combinations in a Yahtzee Straight?

Happy Sunday, I was wondering how to calculate how many combinations could be rolled in the game of Yahtzee in getting a large straight. A large straight is when you roll and the dice com out 1,2,3,4,5 or 2,3,4,5,6. Can any one give me some guidance???


How did temperature exist at the moment of Big Bang?

As we know at the moment of big bang ($10^{-43}$ seconds or Planck time) the temperature was $10^{32}~\rm K$. I hope for temperature to exist there should be some medium or matter needed.    Is it possible for temperature to exist even without particles? How big bang temperature existed before even the particle getting created?


Are tourist visas given to people with only family ties?

I am an Indian citizen. I plan to visit Ireland as a tourist this July, and so I am applying for a short term stay type C visa. From the INIS website (), I need to prove ties to India in the form of 1) a job, 2) education and 3) family.  I have finished my college education and I do not have a job waiting when I return (my aim is to take a gap year). I do, however, have family - my father, who is elderly (but not retired), and who was ill earlier this year. Have other Indians managed to get an Irish tourist visa using only family ties?


Invisible text for related questions in the sidebar

On the sidebar titled Related, the first two entries are invisible. There is a link, but no visible text. Tried visiting the same page on Chrome, Edge, and IE, on my Windows 10 laptop. Same issue remains.  This was noticed when I was checking .


A pencil approach to find $\sum \limits_{i=1}^{69} \sqrt{\left( 1+\frac{1}{i^2}+\frac{1}{(i+1)^2}\right)}$

What is the fastest, paper-pencil method of finding $$\sum \limits_{i=1}^{69} \sqrt{\left( 1+\frac{1}{i^2}+\frac{1}{(i+1)^2}\right)}?$$  This is actually a quantitative aptitude problem, and hence the solutions should be fast enough and probably under a minute.  ; however, I am not sure how to find this quickly in the paper-pencil way.


not sure if it is an appropriate  post if not feel free to tell me and I will delete it but I can't find any other resources that answers that...does anyone know if photoshop CS3 will work after i upgrade to windows 10? any info is appreciated


I have a JSON file that is a mess that I want to prettyprint. What's the easiest way to do this in Python?  I know PrettyPrint takes an "object", which I think can be a file, but I don't know how to pass a file in. Just using the filename doesn't work.


When I log in on a Windows 8 machine for the first time with my Microsoft Account (by providing an e-mail address), a new user folder is created:  C:\Users\dzinx_000   In previous versions of Windows, I could choose the name of this folder (it was equal to my username). As I use the commandline often, it is quite annoying to me.    Can I somehow rename it to dzinx?  Does simply renaming the folder break everything?


How can I estimate a principal component from incomplete data?


Say, I'm given a filename like libasound.so.2. Is there a way to query the package manager to correlate the filename with its corresponding package?  I'm interested to get answers for any package manager, but my primary focus is on apt and yum.


Ubuntu 16.04 LTS Radeon HD 7500M/7600M Series drivers

on 16.04 and the amdgpu doesn't support HD7500M/7600M series we are in a wee bit of a pickle when using some softwares.  This is my card:      otakupup@otakupup-HP-Pavilion-g6-Notebook-PC:~$ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (rev ff) otakupup@otakupup-HP-Pavilion-g6-Notebook-PC:~$ sudo lshw -C video   *-display                       description: VGA compatible controller        product: 3rd Gen Core processor Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 09        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:29 memory:63000000-633fffff memory:50000000-5fffffff ioport:5000(size=64) memory:c0000-dffff   and this what is supported by amdgpu:  SUPPORTED HARDWARE    The radeon driver supports PCI, AGP, and PCIe video cards based on the following ATI/AMD chips    (note: list is non-exhaustive):     R100        Radeon 7200    RV100       Radeon 7000(VE), M6, RN50/ES1000    RS100       Radeon IGP320(M)    RV200       Radeon 7500, M7, FireGL 7800    RS200       Radeon IGP330(M)/IGP340(M)    RS250       Radeon Mobility 7000 IGP    R200        Radeon 8500, 9100, FireGL 8800/8700    RV250       Radeon 9000PRO/9000, M9    RV280       Radeon 9200PRO/9200/9200SE/9250, M9+    RS300       Radeon 9100 IGP    RS350       Radeon 9200 IGP    RS400/RS480 Radeon XPRESS 200(M)/1100 IGP    R300        Radeon 9700PRO/9700/9500PRO/9500/9600TX, FireGL X1/Z1    R350        Radeon 9800PRO/9800SE/9800, FireGL X2    R360        Radeon 9800XT    RV350       Radeon 9600PRO/9600SE/9600/9550, M10/M11, FireGL T2    RV360       Radeon 9600XT    RV370       Radeon X300, M22    RV380       Radeon X600, M24    RV410       Radeon X700, M26 PCIe    R420        Radeon X800 AGP    R423/R430   Radeon X800, M28 PCIe    R480/R481   Radeon X850 PCIe/AGP    RV505/RV515/RV516/RV550                Radeon X1300/X1400/X1500/X1550/X2300    R520        Radeon X1800    RV530/RV560 Radeon X1600/X1650/X1700    RV570/R580  Radeon X1900/X1950    RS600/RS690/RS740                Radeon X1200/X1250/X2100    R600        Radeon HD 2900    RV610/RV630 Radeon HD 2400/2600/2700/4200/4225/4250    RV620/RV635 Radeon HD 3410/3430/3450/3470/3650/3670    RV670       Radeon HD 3690/3850/3870    RS780/RS880 Radeon HD 3100/3200/3300/4100/4200/4250/4290    RV710/RV730 Radeon HD 4330/4350/4550/4650/4670/5145/5165/530v/545v/560v/565v    RV740/RV770/RV790                Radeon HD 4770/4730/4830/4850/4860/4870/4890    CEDAR       Radeon HD 5430/5450/6330/6350/6370    REDWOOD     Radeon HD 5550/5570/5650/5670/5730/5750/5770/6530/6550/6570    JUNIPER     Radeon HD 5750/5770/5830/5850/5870/6750/6770/6830/6850/6870    CYPRESS     Radeon HD 5830/5850/5870    HEMLOCK     Radeon HD 5970    PALM        Radeon HD 6310/6250    SUMO/SUMO2  Radeon HD 6370/6380/6410/6480/6520/6530/6550/6620    BARTS       Radeon HD 6790/6850/6870/6950/6970/6990    TURKS       Radeon HD 6570/6630/6650/6670/6730/6750/6770    CAICOS      Radeon HD 6430/6450/6470/6490    CAYMAN      Radeon HD 6950/6970/6990    ARUBA       Radeon HD 7000 series    TAHITI      Radeon HD 7900 series    PITCAIRN    Radeon HD 7800 series    VERDE       Radeon HD 7700 series    OLAND       Radeon HD 8000 series    HAINAN      Radeon HD 8000 series    BONAIRE     Radeon HD 7790 series    KAVERI      KAVERI APUs    KABINI      KABINI APUs    HAWAII      Radeon R9 series    MULLINS     MULLINS APUs   AMDGPU-PRO supports newer cards only.   So my question/s are:   Can I use the AMDGPU driver for my card although it ain't listed Can I use the 15.04 or earlier drivers for my version available for my card Is there anything else I can do other than switching my graphics card?


Why am I getting "function func has internal linkage but is not defined" on mac

In the main.cpp I have   #include "helper.h" #include <list> using namespace std; int main(int argc, const char * argv[]) {      //switch between list and vector     list<int> a = {0, 1};     list<char> b = {'a', 'b'};      func(a, b);      return 0; }   My helper.h looks like  template <class C1, class C2> void func(C1 &a, C2 &b)   and my helper.cpp looks like  #include <list> #include "helper.h"  template <class C1, class C2> void func (C1 &a, C2 &b) {     //do stuff }   Then building it in Terminal on Mac with g++ main.cpp mysort.cpp -o sorting -std=c++11 generates the error "function func has internal linkage but is not defined" and Undefined symbols for architecture x86_64:   "void func<std::__1::list<char, std::__1::allocator<char> >, std::__1::list<int, std::__1::allocator<int> >, main::$_0>(std::__1::list<char, std::__1::allocator<char> >&, std::__1::list<int, std::__1::allocator<int> >&, main::$_0)", referenced from:       _main in main-202a16.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)


Consider the following class:  \NeedsTeXFormat{LaTeX2e} \ProvidesClass{sampleclass}  \LoadClass[ paper=a5, chapterprefix=true ]{scrbook}  \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrbook}} \ProcessOptions\relax   and the following document:  \documentclass[ ]{sampleclass}  \begin{document}     \chapter{Test} \end{document}   I am making the observation that the option chapterprefix=true has an effect on the document, while the option paper=a5 does not.  If I include the paper option in the document like this:  \documentclass[ paper=a5 ]{sampleclass}  \begin{document}     \chapter{Test} \end{document}   then it works. What is going on?  Edit: In the chat it was suggested the problem might be connected to the KOMA class so I just add the tag here to attract the KOMA experts.


I am trying to print a picture on a canvas, I would like the canvas to be 16x24 in size. I was told that my picture is 75 DPI, is the resolution good enough for the canvas to be nice and clear?


Is it possible to search for users of stack exchange network within certain country

Looking for people to hire, I was wondering if is there any way to search for person of one particular country and maybe contact them.  Is there a place for that ?  Thanks, and sorry if this question is out of topic, I wasn't sure after reading the FAQ.


I'm afraid my parents will split up, help.. I'm a teen under the age of 15

My dad and brother got into a big fight on wednesday, it got physical. My dad and brother haven't been talking and Thursday morning my mom told my dad to live with my grandpa. Hes staying in our camper tonight but I'm scared my parents will split up, I've been crying nonstop and I dont know what to do. My life is falling apart and I know my mom is upset with everything that happened and that she misses my dad. They haven't had a real conversation in a while and I'm so scared.. please help me


Snap vertex to edge in only one direction

I'm trying to snap a vertex to the edge right above with with axis locked to z. But it just slides along the edge. Going to vertex mode doesn't help either. This should be possible though as there is only one solution for blender to accomplish this really... idk if this could be a feature request? It's not the first time I'm encountering this problem.  Is there a way to make it work?


Is there any difference between CIDR & VLSM?

As I understand it, the terms Classless Inter-Domain Routing (CIDR) and Variable-Length Subnet Masking (VLSM) effectively refer to the same thing.  Is there any noteworthy difference between the proper definitions of these terms?  What is the history or relation between the two?


How to appeal to undelete an answer deleted by moderator?

How can someone make an appeal to un-delete an answer that was deleted by a moderator?    There should at least be an appeal/vote process, if the deletion was unfair. Moderators are humans like rest of us, and they can be unjust.


I am new to blender and this forum so be gentle. I am designing a planet with the typical "Saturn-ring". I put some stones via particle-system onto the ring. Now I want to only show the stones not the circle mesh I put them on. How can I do that? Thank you!


Can anyone give me a short, concise lore summary on One Piece?

I got into anime from watching Death Note; then moved on to My Hero Academia, during the hiatus between season 3 & 4, I'm looking for an anime to watch. I heard about One Piece from a friend; all I know about it so far are devil fruits(sort of?), but can anyone give me a short simple explanation on the show and its lore. Thanks!


Can I run Ubuntu 18.04 or 20.04 on this motherboard and BIOS without issues?

(New to Ubuntu) I want to run a Minecraft server under a machine with this motherboard- Supermicro X8DTE-F which has a 32Mb SPI Flash EEPROM w/ AMI Bios. This system hovers in the ‘08 to ‘11 era based on research I found. Is it possible to use the newest versions of Ubuntu on a system this old? Preferably without any major tinkering? Thanks in advanced!


Why is the tracker in Pokémon GO not working?

I've been playing Pokémon GO for a few days now, and have noticed that the in game tracker appears to not work. All the Pokémon on the tracker are shown to be 3 footsteps away, even if they are visible on the map. Why is this happening, and what can I do to fix it?


Explain the following equation...  $$ r^{\prime}_d = \dfrac{26\mathrm{mV}}{I_D} + r_B $$  Explain from where and how this equation comes out . Also elaborate the terms used in above mentioned equation.


pthread_create() fails after 260 threads

I have about 500 threads that I want them to run simultaneously. I read that the default glibc allows only about 300 threads to run simultaneously. How did they got to this number? (I'm on 32 bit system)


I need to get the object that was selected second/last and set its location to the object that was selected first. Ideally I would access the array of selected objects, but I have no idea how to do it. I've tried this: selection = bpy.context.selected_objects and selection[1].data to access data from objects selected in order, but it doesn't work and sometimes it appears that order in which I added objects to the scene matters.


What is the trajectory of a photon moving through a vacuum?

Since electromagnetic energy is carried by photons and moves in forms of waves, does it mean that a single photon when propagating through space doesn't follow the straight path but instead always moves up and down, up and down like a wave. If so another question arises the speed of propagation of light in vacuum is fixed meaning that it will always take the same amount of time for it to travel from point A to point B, but if a photon always moves up and down it will also mean that it travels longer distance than the distance between A and B and so it ill travel faster than light propagates, is it even possible, could you please clarify these concepts for me?


Can the laws of mechanics be framed without invoking coordinate systems?

To a mathematician a vector is a geometrical entity in space that can be defined perfectly well without establishing up a set of x,y,z,t axies.  In other words, mathematically we can work with vectors as entities without the need to determine their components in some basis.  My question is, can the laws of physics also be framed in this way? Of course we can write $$\vec{F} = m\vec{a}$$ but how useful is that unless we also talk about inertial frames of reference?  So, can we define frames of reference without  making the coordinates primary to our definition (or establishing basis vectors, which amounts to the same thing)?  [I don't believe this is a duplicate question.  The other fellow was asking for a book recommendation - I am asking about the framework for the laws of physics]


I have created a generalised function using requests ratelimit and backoff libraries. The objective of this function is to implement the following logic:   if the status of the returned object is not 200 nor 404 => raise error (so that if I have connection errors backoff can try up to a certain amount of times) if the status of the returned object is 404 => return error dictionary else return r.json   here's my function  import requests from requests import ConnectionError from ratelimit import limits, sleep_and_retry from backoff import on_exception, expo   @sleep_and_retry  # if we exceed the ratelimit imposed by @limits forces sleep until we can start again. @on_exception(expo, ConnectionError, max_tries=10) @limits(calls=500, period=FIVE_MINUTES) def call_api(url, api_key):     r = requests.get(url, auth=(api_key, ""))      if not (r.status_code is 200 or r.status_code is 404):         r.raise_for_status()      elif r.status_code is 404:         return dict({"error": "not found"})      else:         return r.json()   What actually happens is that if I have a 404 r.raise_for_status() gets activated - which hints me that there is something wrong with my logic.  I made an abstraction of this logic and indeed:  def logic_try(value):      if not (value is 200 or value is 404):         print("stopped with value {}".format(value))      elif value is 404:         return dict({"error":value})      else:         return dict({"correct": value})  # calls  logic_try(200) § {'correct': 200}  logic_try(404) § stopped with value 404 # should return {"error":value}  logic_try(400): § stopped with value 400    I would like the function to first check that the r.status i not 200 nor 404 and raise the error status so the decorator can call again. Then check if r.status is 404, in which case return an error dictionary which I store in a pg table, finally, all other case should simply return r.json() as i assume the r.status is a 200.


I have an old Excel file in the USB drive, unfortunately, i accidentally copied it into a folder that contains a newer version with the same name and overwrote the new version. I want to get my old excel back and can anybody help me?


How to open the terminal with specific command already run? Best at Unity Launcher!

I know how to add a command to the Unity Launcher, but don't know how to have automatically opened terminal for the command.  Especially needed when sudo command needs password or command result should be seen.


What (if any) is the shortest evolutionary process observed by humans?

So when I think of evolutionary processes, I think of it taking millions of years to happen. Like how humans evolved from monkeys or birds evolved from dinosaurs (I know that is super-duper simplified). Or how humans have parts that we don't need or use (the appendix, for example), but we don't have any records of a time when it was. But I wonder if there have been any evolutionary processes that happened on a human timescale or if we have evidence of something evolving in, say, thousands of years instead of millions? I think this would be interesting to learn about.


I have created a method which takes data from SQLite and displays in a textview but when l press a button show the app crashes. The Code:  public void ViewData(){     btnControler.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             Cursor data = peopleDB.showData();             if (data.getCount() == 0) {                 display("","");                 return;             }             StringBuffer buffer = new StringBuffer();             StringBuffer buffer2 = new StringBuffer();             while (data.moveToNext()) {                 display(buffer.append("Name:\t " + data.getString(1) + "\n").toString(),buffer2.append("Email:\t " + data.getString(2) + "\n").toString());              }         }     }); }  public void display(String name, String email){     TVusername.append(name);     rphone.append(email); }   The error is appointed to the fifth line Cursor data = peopleDB.showData();  05-25 23:37:03.439 916-916/info.devexchanges.googlelocation E/AndroidRuntime: FATAL EXCEPTION: main                                                                               Process: info.devexchanges.googlelocation, PID: 916                                                                               java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor info.devexchanges.googlelocation.DatabaseHelper.showData()' on a null object reference                                                                                at info.devexchanges.googlelocation.LocationActivity$5.onClick(LocationActivity.java:473)                                                                                at android.view.View.performClick(View.java:5184)                                                                                at android.view.View$PerformClick.run(View.java:20910)                                                                                at android.os.Handler.handleCallback(Handler.java:739)                                                                                at android.os.Handler.dispatchMessage(Handler.java:95)                                                                                at android.os.Looper.loop(Looper.java:145)                                                                                at android.app.ActivityThread.main(ActivityThread.java:5951)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at java.lang.reflect.Method.invoke(Method.java:372)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)


Beamer : Do not center vertically text in frame

I am using the beamer class and consider the following frame:  \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item blabla \end{itemize} \end{frame} \end{document}   It appears that the text "blabla" is vertically centered on the slide. I would like to avoid this so that this text "blabla" appears on the first line of the slide.  A global change on all slides is suitable for me.   Thanks


How can I prove that if $2^x+1$ is prime, then $x$ is a power of $2$? Can someone help me prove this?


Let's say I have a bash script with the following:  #!/bin/sh gedit rm *.temp   When I execute it using sh ./test.sh, gedit pops-up but the rm part does not run until after I close gedit.  I want the script to continue running even if gedit isn't closed; like the gedit isn't blocking the bash execution.  The example I gave is just an example (putting the rm first won't work in a real situation).


I am trying to order posts by tag count. I want to order posts with no tags first and posts with highest count last.  I tried and got posts with no tags only.       $tags = get_tags();     $tag_ids = wp_list_pluck( $tags, 'term_id' );      $args1 = array (        'orderby'          => 'DEC',        'post_type'        => 'post',        'pagination'       => true,        'posts_per_page'   => '1',        'tag__not_in'      =>  $tag_ids,        'meta_key'         => '_thumbnail_id',     );   How do I order posts based on the tags count?


arcpy.SelectLayerByLocation_management gives ERROR 000368?

I have 2 shape files. One is a polygon while other is polyline. I need to select all the polylines that are completely inside the polygon. However this doesnot seem to work in any way.  NewLinks = "NewLinks.shp" Buffer = "Buffer.shp" Buffer1 = "Buffer1.shp" arcpy.MakeFeatureLayer_management(Buffer, Buffer1)  arcpy.SelectLayerByLocation_management(NewLinks, "COMPLETELY_WITHIN", Buffer1, "", "NEW_SELECTION", "NOT_INVERT")   Error:  Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\management.py", line 7860, in SelectLayerByLocation raise e arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000368: Invalid input data. Failed to execute (SelectLayerByLocation).


Can we do something about misleading message and link on locked questions?

Locked questions get unhelpful messages like this:    My problem with this is that it implies that if I go to meta, I'll get more information about why that specific question is locked, perhaps finding a discussion of its merits.  However, the link just sends me to the main meta page, where I eventually realize there's nothing specific to the question.  Can we improve this situation?  Here are some suggestions (roughly in descending order of preference):   make the link point to an actual discussion, on meta, of that question make the link point to the site-specific FAQ, specifically the portion that covers what is/is not acceptable content make the link point to some discussion/documentation of what happens when a question is locked, and how the process is resolved/closed change the wording of the message so it doesn't imply that there is any specifically relevant discussion on meta remove "For more info visit meta" bit altogether


What bonuses do improved familiars give? Can I keep my basic familiar's bonus?

I want to take the feat Improved Familiar to get a familiar that can use wands and other such magic items, but I really enjoy the +4 initiative my current familiar gives.  I haven't seen anything listing bonuses the various improved familiars give. Do they give bonuses? Do I keep my original familiar's bonus?


Is the temperature of a gas affected by the motion of its container?

Is temperature a reference frame dependent quantity?


Question -     Let $x, y, z$ be distinct real numbers. Prove that   $$ \frac{x^{2}}{(x-y)^{2}}+\frac{y^{2}}{(y-z)^{2}}+\frac{z^{2}}{(z-x)^{2}} \geq 1 $$   My work -  first i apply directly C-S and after simplification i have to prove that  $4(xy+yz+zx)>x^2+y^2+z^2$ which i am not able to prove ..  then multiplying $x^2,y^2,z^2$ to numerators and denominators of corresponding fractions respectively i again apply C-S and this time we have to prove that after simplification  $(xy)^2+(yz)^2+(zx)^2 + 2x^3y+2y^3z+2z^3x > 0$ which again i fail to prove ...  I try to do with other inequalities but none of them working.  any help will be helpful  thankyou


I want to use a new modem-router to replace one fried by a power surge.  Snake-bit by that, I checked out the voltage for the new unit's adapter.  It's supposed to be 12V, 600ma.  Using a volt-ohmeter, I get 17V, no-load.  Input is 120-121V AC.  If I plug this in to the modem-router, will the load take care of this higher-than-needed voltage?


How can I browse windows 8 system files with Ubuntu? Whenever I try to access it it says error 14 and does not let me browse the files like in windows 7.


Hypothetical: Can I determinate if my room is moving by measuring the time it takes for a photon to reach the oposite wall?

Problem I am locked in a room with no windows and I need to tell if the room is moving, I only have a lamp. According to my professor I cannot tell if the room is moving because of the Special Relativity Theory. My thought What if the room moves to a speed very close to the speed of the light and I can see that the beam of light takes more time to reach the wall in the direction the room is moving. The speed of light is always the same no matter the initial frame of reference. Can I tell the room is moving? I guess my idea does not work because Galileo Theory of Relativity, but I still don't understand


I throw a coin 10 times, and I get all heads, what is strange here?

I take a coin and with the assumption that it is a fair coin. I throw it 10 times and I get a sequence of 10 consecutive heads. I feel something is unusual and strange, may be the coin is not fair. But the outcome I got is as likely as any other sequences of heads and tails. However there is something really strange here, the probability of getting no tails in 10 throws of a fair coin is really small. So indeed there is something strange here. And common sense says the coin is probably not fair. But isn't "containing no tails" just an arbitrary property of my outcome? May be my outcome is not unusual considering lots of other properties? Or may be you can come by an unusual property for any sequence of heads and tails? My question is why seeing no tails in 10 throws is a good reason to doubt fairness of the coin? P.S.: To abide with the laws of stackexchange my formal question is what I stated above. But my real question is something more general and vague: when we see something strange on what grounds we can say what we saw is just a low probability result of the way I think the world works or I should change my view about how the world works? Are there certain things that I should check before changing my view? I would be grateful if you can help me with my real question too.


Careers Automatic tag suggestions' layout is broken in Chrome 38

The "Tag suggest" functionality when editing Open Source projects in one's Careers 2.0 profile is broken (i.e. the layout is broken, you can still "use" the feature) when using Chrome 38 on Windows (did not test other browsers).  See this screenshot:


How does one move the Unity Launcher to the bottom in Ubuntu 16.04

How do you move the Unity Launcher to the bottom of the screen in Ubuntu 16.04.


So, this code snippet works very conveniently, but I'm a little amazed at how it works the way it does.  var makeTree = function(h,s) {     var height = h;     var season = s;      tree = {};      tree.getHeight = function()     {         return height;     }      tree.getSeason = function()     {         return season;     }      return tree; }   As you can see, I'm trying to make a class tree to make tree objects, but in order to make all the properties safe, I have a makeTree function which returns the tree object to me, and I can only access its properties through getHeight and getSeason.  It is important to note that the tree object does not contain the fields height and season at all.  So, say I do this:  var banyan = makeTree(100,"summer"); var apple = makeTree(50,"winter");   I am able to access fields of both objects like so:  banyan.getSeason(); //"summer" apple.getHeight(); //50   My question is how in the world is this happening?  So, I thought about this and guessed that maybe this is how it works: When I called makeTree to make banyan, I called it with argument 100, and the makeTree function returned to me an object with a constant function getHeight that would always give me 100 on calling it. (No memory of any sort)  But then I did this:  var makeTree = function(h,s) {     var height = h;     var season = s;      tree = {};      tree.getHeight = function()     {         return height;     }      tree.getSeason = function()     {         return season;     }      tree.changeHeight = function(new_h)  //added this     {         height = new_h;     }      return tree; }   And voila!  banyan.changeHeight(60); banyan.getHeight(); //60!!!!   OK, to make my question very clear, since each object does not have any fields at all for storing values, where are every individual object's height and season stored?  I've done Python, Java and C before, so if anyone could compare and contrast while explaining, that would be great!


How to make ArcCatalog recognize numbers in a csv/text file as numbers?

I am creating feature classes from  in ArcCatalog (10.2). When I do this with the file for Bolivia (bl.txt), the feature class is created correctly. When I try to do this with the file for Argentina, the columns LONG and LAT are recognized as Text instead of Double, so I cannot assign them as X and Y fields.  The formats for both files are identical. Both ar.txt and bl.txt contain only numeric values in the columns LONG and LAT, with . as decimal separator. I cannot identify any differences between the two files to explain the different behavior. Is there a way to force ArcGIS to recognize these columns as double precision fields?  As a workaround I can import the txt  files in an Excel spreadsheet and create the feature class correctly from that, but I believe I shouldn't have to.


Let $A$ be an $n \times n$ matrix and $k$ be a scalar. Prove that $\det(kA)=k^n\det A$.   I really don't know where to start. Can someone give me a hint for this proof?


What is the probability of a random variable larger than or equal to any other independent random variables?

Suppose random variables $X_1$, $X_2$,..., and $X_n$ are independent and normally distributed (with varied means and variances), what is $P(X_i\ge \max_{j\in [1,n], j\neq i} \{X_j\})$?


Solving an exponential equation with different bases

Solve the equation $2^x + 5^x = 3^x + 4^x$. I can figure out two special solutions $x=0$ and $x=1$, and I try to prove that they are the only two solutions. However, I find it hard to do so because I can't prove the monotony given there are also exponential in the derivative. Any hints to that?


I'm interested in Unity indicators and wonder if there is any tutorial on how to program them. I can use the sources of the existing ones as last resort, but I'd prefer a more friendly approach because my programming skills are quite limited.


Cannot boot Linux Mint after installing Windows (First) and Linux Mint (Second)

I can't boot my Linux Mint after installation of Windows. First I installed Windows and then installed Linux Mint with the option of "Install along with windows". But after I completed the Mint install only Windows is booting.  I have done some search on the web and found that installing Grub from the Live CD will help on this issue. I have done that also (but I'm not sure whether I have done this correctly). After that Windows is also not booting and I am stuck on this.


What is a good way to keep my tires from going flat easily?

Title says it all, how do I keep my bicycle tires from going flat easily? I live in an area with a lot of sharp stuff (think glass shards, nails, cactus, etc)...


Convert your days alive to use dialog command and a calendar for date of birth select and current date   Hint:  dialog --stdout --title "Today" --calendar "today" 0 0 0 0 0 | awk -F/ '{ print $2"/"$1"/"$3 }'   Also add You have been alive X years(s) Y days(s) Z hour(s) A minute(s) B second(s) thats what I have but I keep getting errors from reading the date from dialog  (Date entered: . ^[[M#<6)  #!/bin/bash #daysalive #using hard coded date calc days between two days date  : ${DIALOG=dialog}  USERDATE=`$DIALOG --stdout --title "CALENDAR" --calendar "Please choose a date..." 0 0` | awk -F/ '{ print $2"/"$1"/"$3 }'  case $? in   0)     echo "Date entered: $USERDATE.";;   1)     echo "Cancel pressed.";;   255)     echo "Box closed.";; esac   DOBDATE=$($USERDATE \+%S) NOWDATE=$(date +%s) echo -n "daysalive" DAYSALIVE="$(($NOWDATE- $DOBDATE)" / 86400 ) echo $DAYSALIVE


Enter 3 numbers in an empty array in java

I have an empty array, I would like to enter 3 numbers and stock these values inside.  int[] tab = new int[3];  for(int i=0;i<3;i++){     System.out.print("Enter your number : ");     int number = enter.nextInt();     tab[i] = number; }  System.out.print(tab);   I have an error message => I@4eec7777 I don't understand ?  Thank you for your help.


Find parameters that satisfy two conditions of an equation

There is the following equation.  $$x^{2}+2(m-a)x+3am-2=0$$  a) Find $a$ such that the equation has real roots, $\forall m\in \mathbb{R}$  b) Find $m$ such that the equation has real roots, $\forall a\in \mathbb{R}$  The discriminant is $m^{2}-5am+a^{2}+2\geq 0$ and $a^{2}-5am+m^{2}+2\geq 0$  I found that $a,m\in (-\infty , -\sqrt{\frac{8}{21}}]\cup [\sqrt{\frac{8}{21}}, +\infty)$ but I don't know why $|a|\leqslant \sqrt{\frac{8}{21}}$and $|m|\leqslant \sqrt{\frac{8}{21}}$  Yes, I saw that question but I don't understand why in that answer the discriminant of the new quadratic in $a$ is $\le0$. For radicals I know that it should be $\ge0$.


How to get the new direction of 2 disks colliding?

I'm developing a 2D game including collisions between many disks. I would like to know how I can get the angle corresponding to the new direction of each disk.  For every disk I have this information : direction (integer), speed (float), and position ($x$;$y$, which are both integers).  Of course I know that the new direction will be the opposite of where the collision happens (disk hit on the bottom-left will go to the top-right), but I don't know how to calculate exactly the new angle.


"before" and "want" for the same systemd service?

In  of a systemd unit file:  # systemd-timesyncd.service ...  Before=time-sync.target sysinit.target shutdown.target Conflicts=shutdown.target Wants=time-sync.target   systemd-timesyncd.service should start before time-sync.target. This defines an .  But at the same systemd-timesyncd.service wants time-sync.target. So time-sync.target is it's   What is the use case for this relation and why aren't they in some conflict with one another?


How do I format my bootable USB Flashdrive?

It's not my flash drive, it's actually a friends flash drive that I borrowed, and everytime I open my Files, I see two things where Ubuntu 18.04 or 03, the latest one, Everytime I try to format the USB Drive, I can't figure it out, I mounted the flash drive with Linux Mint where you right click and it says make a bootable USB. Like I said it's a friends, and he had some files. Is there something simple I can do, or a simple terminal command, or something, everytime I try it says This partition cannot be modified because it contains a partition table; please reintialize layout of the whole device. (udisks-error-quark, 11) this is a friends USB, I'd hate to get him another one because I needed a better OS than Linux Mint(On my computer, when I installed mint the internal wifi thing on my laptop didn't support Linux Mint, Ubuntu did so that already made it better) sorry I'm long winded lol


there is no line here to end how to introduce space of a line

I am having following code section  Security Centre uses following technologies \newline  \subsection{Intelligent threat intelligence}  \newline It looks for bad actors by using    I get error there is no line here to end. I want to know how can I introduce gap of a line in my pages so that I can generated things with space in between text.I know if in microsoft word I press enter key it generates a new line I want something similar in this.


Tools for automating document compilation

A lot of people write makefiles that say something like  paper.pdf: paper.tex         pdflatex paper         bibtex paper         pdflatex paper         pdflatex paper   To handle re-running TeX to get new/changed references and so forth. Is there a better way to do this?


Weak convergence, together with convergence of norms, implies strong convergence in a Hilbert space.

Let $(x_n)$ be a weakly convergent sequence in a Hilbert space $H$. If $\| x_n \| \to \| x \|$, show that $x_n$ converges strongly to $x$. Context This problem comes from a question in my exam paper; the original problem was incorrect.


What are the good reasons proving that someone is not infringing trademark?

John has got a problem: There is a company with registered trademark: Example. The company sells shoes. It owns the domain example.com. So whenever someone wants to buy this company's shoes they go to example.com. John is a programmer who one day while searching through the web found that the domain example.io was not reserved. He bought the domain with mixed mind. Now, John doesn't want to sell or return the domain. Instead he wants to use it as blog for writing reviews on Example's products. To avoid confusion for visitors, he has placed a disclaimer page and also placed a line in header and footer of the blog saying: We are not associated with "Example.com" in any way. But he is still worried and wants to know Each one of the good reasons why John is not infringing trademark of Example.com and thus is not accountable to any lawsuits???


Results of a complete DNA sequencing - are they 100% reusable?

Is that correct that a complete DNA sequencing (the whole genome) need only to be done once (per person)?   After that is done, it the complete genome can be stored and once the new genes (and their purposes are confirmed) are discovered, the scientist can simply go back to a previously sequenced data and to find it this particular person has this new gene or not.


How to use input to get a particular element in a list?

I'm new to Java/programming and I'm trying to write a simple program that gets an element from a list IF that element is equal to some user input. I'm using a for-loop and if-statement to achieve this but even though the user input and element matches up the programming won't print the element to screen. If someone could explain why this is not working it would be very appreciated. Cheers   public static void main(String[] args){      ArrayList<String> names = new ArrayList<String>();     String tempObject;      String findName;      names.add("John");     names.add("Ronny");     names.add("Gona");     names.add("Gina");      Scanner Input = new Scanner(System.in);     System.out.print("Search list for: ");     findName = Input.nextLine();      for (int i = 0; i < names.size(); i++){         tempObject =  names.get(i);          if (tempObject == findName){             System.out.print("\n" + tempObject);         }     } }


If/Then Statement in ArcMap to Remove Duplicates

I need help writing an if/then statement in ArcMap 10.5.  Scenario: I generated a near table, but since the closest features (polylines) were mostly all overlapping with the input (multipoints), the table "ranked" the outputs as tying since the distances were zero.  I would like to re-rank these values so that the rank # is always unique, as I need to convert this near table into a pivot table next. It doesn't matter what ranking they get, as they're technically all the same distance.  Any ideas for an expression to rewrite the ranking # if there are duplicates, or a different workaround?  Example: IN_FID 2 found three features that were within my search radius. Instead of listing them as rank 1, 2, 3 it's listing it as 1, 1, 2 because the Near_Dist is 0. I just want a way to re-rank these so that the table doesn't have rank numbers that tie, like how this example has two "1"s. These can be arbitrary numbers, and don't need to be in this field. I just need a field to give a unique number between 1 and 3 for every IN_FID in this Near Table.


Non-volatile storage system made up of logic gates

So, I don't want all my data blown away every time I turn off my system, so how would I create a storage system that doesn't use batteries but also keeps the data that I have stored?


How to get class property name with spaces?

I have a class:  MyClass {    public int Id{set;get;}    public string MollName{set;get;}    public string MollAddress{set;get;}    public string MollPRG{set;get;} }   i use it for generate report in Excel. I makw a whole document programaticaly so i no have any templates. For make a report's columns names i use:  var fields = typeof(MyClass).GetFields(             BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); var names = Array.ConvertAll(fields, field => field.Name).ToList();  var trimedNames = names.Select(name => name.Substring(1, name.IndexOf(">", StringComparison.Ordinal) - 1)).ToList(); foreach (var fieldName in trimedNames) { //**some code }   And i get report with column names:  Id MollName MollAddress MollPRG   How can i get it with spaces?:  Id Moll Name Moll Address Moll PRG


I'm using this JS regex text.match(/|(https:.+?path.+?)|/)[1] to get a regex of a URL that is in between pipe | characters but it's not working.  The text is ||https://url.com/path/value|| but I can't seem to extract the URL from it. I need to have path in the middle to identify this particular URL since there are other URLs in the file.  It doesn't have to be a URL that I'm extracting. I mainly would like to know how to extract something from between a pair of characters (| in this case).


Method invocation 'extras' may produce NullPointerException

Why does this cause the error?  if (extras != null) {     if (extras.getString("ActionBar") != null) {         if (extras.getString("ActionBar").equals("NO")) {             if (bar != null) bar.setDisplayHomeAsUpEnabled(false);         }     } }   I check to make sure that it is not null first.


Transforming geometry PostGIS column with unknown geometry type?

I run PostgreSQL 9.1 and PostGIS 2.0. I have a table that contains one geometry column.   But that column contains point, polygons lines, etc.   So I set it like so,   ALTER TABLE jake ADD COLUMN jake_geom geometry;  and then I setted some constraints to make it geometry enabled, but not limited on a single geometry type  ALTER TABLE jake   ADD CONSTRAINT enforce_dims_geom CHECK (st_ndims(jake_geom) = 2);  ALTER TABLE jake   ADD CONSTRAINT enforce_srid_geom CHECK (st_srid(jake_geom) = 900913);   Now, I want to reproject the geometries in that column to 4326.   According to , for the transform to work, I need to set a geometry type.  (the TYPE geometry(MultiPolygon,2163) part)  but my column does not have certain geometry type. How do I proceed?  Or I can simply do  ALTER COLUMN geom USING ST_Transform(geom,2163);  avoiding to set a type?


Draw a line of desired length and bearing in OpenLayers?

How can I create a straight line when I know the coordinates of the first point, and I know the distance and angle to the end point but I don't know the coordinates of the end point?   Example:    Start point 1: -44.14984703 -19.82517271  End point 2: (unknown lat and long) distance => 200km (note: at 75 degrees from point 1)   Note: if there is also a way in which I can discover the lat and long based on the distance from point 1 and the degree (75º), I think it would work too, I just don't know how to apply.  (Translated from Portuguese using .)


Is it possible to use a Cleric's Melee power with a Non-Melee weapon?

So I'm still pretty new to 4e and I had a concept for a primarily "spellcaster" Human Cleric that uses a bow instead of a regular melee weapon. (A close comparison is Kikyo/Kagomae from Inuyasha.) Basically what I'm looking for is either a way to utilize a ranged instead of a melee weapon to execute powers such as "Righteous Brand" or "Healing Strike" that have a melee keyword. If that's impossible, then I'd like to look for a way to either (bless/enchant/use a ritual) to put the spell on my arrows OR find poisons/enchantments with similar effects. Either solution solves my problem.  My cleric also carries a dagger and isn't that squishy, but I'd still prefer her to stay out of the main fight if possible. I have access to most of the books but I would need help finding enchanted arrows, rituals, or poisons.    P.S. And forgive me but no, I wouldn't want to play another class because that would require learning a new class in the middle of our campaign.


A block floating on water is pushed inside until it touches the bottom. Will the block come back?

A block floating on water contained in a vessel is pushed inside until it touches the bottom of the vessel and then released. Will the block come back?   Bouyant force acts because the pressure on the bottom of the block is more than that at the top.   If the block was cubical and its top surface is at a distance $h$ from the surface of water, and had a side length $a$, then the pressure on top will be $P_0+\rho gh$  Pressure on bottom surface will be $P_0+\rho g(h+a)$  Pressure difference = $\rho g a$.   Force acting is = $\rho g a\cdot a^2=a^3\rho g$  If the bottom surface of the cube were to touch the bottom of vessel, then there is no water beneth it to exert  pressure upwards. So won't the block remain in the bottom even if its density is less than that of the liquid?


Sarkhan the masterless +1 ability. It becomes a 4/4 dragon with flying. Can it attack that turn? Does it depend if the planeswalker was on the field already or just played?


Say we have two integers $n$ and $k$, such that $0 < k < n$ and $gcd(n, k) = 1$.  Why is it that if we take every integer $x\in\{0,\dots, n-1\}$ and compute $k\cdot x \ (mod \ n)$, we get as remainders all numbers from $0$ to $n-1$, with no repeats?  In other words, why is $\ f:\{0,\dots,n-1\}\rightarrow\{0,\dots,n-1\}$, $\ f(x)=k\cdot x\ (mod\ n)$ a bijection for $k,n\in\mathbb{N},\ gcd(k,n)=1$?


Ubuntu 18 - how to ungroup apps in dock?

I want to make Ubuntu dock like Windows taskbar  Ubuntu:    Windows:    (as you see Windows has three Explorer icons and Ubuntu has only one Files icon  Is it possible to uncombine/ungroup apps in Ubuntu?


Is Baron and Kenny method for mediation now outdated? This is because I got a comment from reviewer saying asking me to refer to Rucker, D.D., Preacher, K.J., Tormala, Z.L. & Petty, R.E. (2011). Mediation analysis in social psychology: Current practices and new recommendations.


Here are two ways I can optimise mapping of a text field with several other attributes to question and answer. First approach is, creating a map table with both question_id and answer_id in which either of them will be null, and while querying I will query using column. In the second approach is normal like we would do normalisation.    Second approach will add one more table but in first approach there will be empty values against question_id and answer_id. Questions-   Is it a good practice to leave cells blank? Will it have any performance issue? Will it violate any normalisation rule? ...


Does dell vostro 3500 support ubuntu 14.04.2?

I have a Dell Vostro 3500 laptop with Intel I3 processor with 4GB RAM. Can you please tell if I will be able to run Ubuntu 14.04.2 on my laptop? It has Intel Core i3 CPU M380 @ 2.53 Ghz. Installed memory is 4GB(2.93GB usable). System type is 32-bit operating system. Please inform if my laptop will be able to run Ubuntu smoothly. I had earlier used Ubuntu 10.04 on my desktop pc running with Intel Atom processor and 1GB of RAM. Waiting for your reply. Thanks


Two independent Big Sur installations on the same device

Assume I have a MacBook Pro 2019 with Big Sur installed. My goal is to have two different partitions on the same physical SSD. I want to have two separate installations of Big Sur. My question is: How can I make sure, that nothing I do on either of the partitions has an effect on the other partition? Assume I install some software with admin rights on partition B. Can it be made sure, that the program installed on B has no possibility to read or manipulate any data from partition A, for example system files?


I'd like to switch to Ubuntu Gnome from Ubuntu 16.10 but haven't found any working . The answers on askubuntu are outdated as well.  I went with the following:  sudo apt-get install ubuntu-gnome-desktop^  sudo apt-get remove ubuntu-desktop sudo apt-get remove unity sudo apt-get remove lightdm sudo apt-get purge ubuntu-settings sudo apt-get purge --auto-remove 'unity*' sudo apt-get purge --auto-remove 'libunity*'  # thanks @Sergiy Kolodyazhnyy: sudo apt-get remove compiz jayatana  # reinstalls the parts of Unity required by Ubuntu Gnome sudo apt-get install ubuntu-gnome-desktop^   Is there anything I missed that can be uninstalled? Like packages that are installed by Ubuntu but that are not present in Ubuntu Gnome?


I incorrectly rejected some edits, what to do?

The first edit I rejected had changed the FAQ links in my answer () to refer to ISO CPP site instead of the original C++ FAQ.  I mistakenly thought that was a too enthusiastic but uninformed user inadvertently vandalizing my answer, and so I reject not just that but also the next edit that popped up (about apparently the same), and so on.  However as it turns out the ISO CPP FAQ is based on the original, with the help of Marshall Cline and e.g. Andrei Alexandrescu, and even contains a broken link to my old correct C++ tutorial, just as in the original FAQ. Apparently Marshall has okayed moving the FAQ from his website to ISO CPP. With Usenet more or less dead there is no more question of real updates to the FAQ resulting from community discussions, so referring to ISO CPP is in my opinion now correct and I should not have rejected the updates. Can I undo the rejections? I am not sure what all answers I rejected updates for.


Why isn't $\sqrt{2} = \frac{\sqrt{2}}{1}$ rational?

Well, I know that $\sqrt{2}$ is an irrational number and I am also familiar with the proof by contradiction method, but I'm confused by this notation as we can divide $\sqrt{2}$ by $1$ (as $\sqrt{2}$ is a real number and for a real number it is possible) and will get $\sqrt{2}$, so can't $\sqrt{2}$ be written as $\frac{\sqrt{2}}{1}$, and in that case $\sqrt{2}$ should be a rational number.