I am trying to install the tiger geocoder for postGIS. I am using the 2.1 version of postGIS on Windows 7. I am using  to do so.  I am confused by what they mean be edit the paths in the declare_sect column to those that fit your pg, unzip,shp2pgsql, psql, etc path locations.   Here's the code that I am using to do this.  INSERT INTO tiger.loader_platform(os, declare_sect, pgbin, wget, unzip_command, psql, path_sep,             loader, environ_set_command, county_process_command) SELECT 'ravimehta', declare_sect, pgbin, wget, unzip_command, psql, path_sep,         loader, environ_set_command, county_process_command   FROM tiger.loader_platform   WHERE os = 'windows';   @RyanDalton - I tried to do what you suggested. However, I got the following error.      ERROR:  unrecognized configuration parameter "unziptool." I'm not sure   what I am doing wrong.   Fixed problem by using:  UPDATE tiger.loader_platform SET unzip_command = 'C:\Program Files\7-Zip\7z.exe' WHERE os = 'ravim';


I'm designing a logo inspired by the .   My logo (inside the green zone) has nothing to do with the "dinosaur" logo of Mozilla. So the question is about the frame and the arrangement of the letters (IJK in my case).  Is it plagiarism if my logo looks similar to an existing one?


Retrieve SQL statements - No backup, No query tracing

I know that my question probably don't belong here but I would be really so thankful if someone has the skill for solving this out.  I have recently made several update statements that I shouldn't have done and would like to see their queries with parameters or at least something so I could retrieve the data back manually.   I'm able to access ::fn_dblog(NULL, NULL) and I would like to know if can I see the queries with parameters from there?  It could have been cca 200 statements.   I'm using SQL server 2012.  I don't have backup or query tracing ony my server.


Do the ideas that support the Suggestion spell persist after the end of the spell?

The  spell influences a creature by suggesting a course of action:     You suggest a course of activity (limited to a sentence or two) and   magically influence a creature you can see within range that can hear   and understand you. Creatures that can’t be charmed are immune to this   effect. The suggestion must be worded in such a manner as to make the   course of action sound reasonable. Asking the creature to stab   itself, throw itself onto a spear, immolate itself, or do some other   obviously harmful act ends the spell.      The target must make a Wisdom saving throw. On a failed save, it   pursues the course of action you described to the best of its ability.   The suggested course of action can continue for the entire duration.   If the suggested activity can be completed in a shorter time, the   spell ends when the subject finishes what it was asked to do.      You can also specify conditions that will trigger a special activity   during the duration. For example, you might suggest that a knight give   her warhorse to the first beggar she meets. If the condition isn’t met   before the spell expires, the activity isn’t performed.      If you or any of your companions damage the target, the spell ends.   The description suggests the idea that this course of action sounds reasonable to the target, in such a way that it could be a decision that the target took on his own. Furthermore, contrary to other illusion spells (e.g. Friends), the target won't notice that he has been charmed.  However, I am not sure whether the ideas suggested by the spell persist after the spell ends. Consider the following example:  A creature owns a magical item connected to evil forces. He is using that item for his purposes. Another creature casts Suggestion by saying: "You feel that this item is ruining your soul. You will get rid of it, and you will go praying for 2 hours in order to purify your soul."  Supposing that the target considers it reasonable, and gets rid of the item. Then, for some reason, the spell ends. Now, how will the target react? Will he keep considering that idea reasonable, or will he try to get the item back?  Do the ideas that justify the Suggestion spell persist after the end of the spell?


I use ubuntu 16.04 LTS and have 2 GB RAM and 320 GB hard disk space in which the allocated space for OS usage is 100 GB and swap space  and other for partitions. recently after updates while doing multitasking my screen freezes and I have to manually reboot my system from the start. any suggestions?  terminal output:  $ free -h                total        used       free      shared  buff/cache   available Mem:           1.8G        977M        157M        201M        746M        467M Swap:            0B          0B          0B   swapon  $ swapon   df:  $ df Filesystem     1K-blocks     Used Available Use% Mounted on udev              942524        0    942524   0% /dev tmpfs             192584     6120    186464   4% /run /dev/sda6      103936232 10980932  87652568  12% / tmpfs             962904    18980    943924   2% /dev/shm tmpfs               5120        4      5116   1% /run/lock tmpfs             962904        0    962904   0% /sys/fs/cgroup cgmfs                100        0       100   0% /run/cgmanager/fs tmpfs             192584       56    192528   1% /run/user/1000     blkid:  :~$ sudo blkid /dev/sda1: UUID="7C7E5116262411BD" TYPE="ntfs" PARTUUID="01468a4c-01" /dev/sda5: UUID="eed0dfa4-6e24-47fe-84bc-c598b144b116" TYPE="swap"  PARTUUID="01468a4c-05" /dev/sda6: UUID="14a87b2f-9da8-487c-a6f5-03ddcea8bb25" TYPE="ext4"  PARTUUID="01468a4c-06"   cat /etc/fstab:  ~$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name  devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda6 during installation UUID=14a87b2f-9da8-487c-a6f5-03ddcea8bb25 /               ext4     errors=remount-ro 0       1 # swap was on /dev/sda5 during installation UUID=4acee253-61f3-4f36-857e-9cb045346e7b none            swap    sw               0       0   after doing the mentioned step 2  step 2:  $ swapon -a $ swapon NAME      TYPE      SIZE  USED PRIO /dev/sda5 partition   2G 67.6M   -1 ~$ free -h      total        used        free      shared  buff/cache   available Mem: 1.8G        1.1G        297M        159M        468M      367M Swap:1.9G         67M        1.9G


Only wallpaper, no icons or menus after update

While away from the UK in Zambia my wife ran the update through package manager and now we have no icons.  We have the wallpaper but cannot do anything!


How many Decimal Places are Needed For Accuracy to a Given Number of Significant Figures?  For example: $1234/3.141 = 392.8$, but $1234/3.14159$ changes the result to $392.7$, so how do I am using enough digits of $\pi$ for my result to be accurate to a given number of significant figures?


Pacman: cannot update my Linux packages (Arch/Manjaro): failed to commit transaction (conflicting files)

Trying to update my Manjaro system, I get "error: failed to commit transaction (conflicting files)" This is pacman's output: ~> sudo pacman -Syu  Total Download Size:    4269.83 MiB Total Installed Size:  17929.01 MiB Net Upgrade Size:       1517.05 MiB  :: Proceed with installation? [Y/n]  :: Retrieving packages...  iana-etc-20200720-1-any                         390.3 KiB  3.81 MiB/s 00:00 [############################################] 100%  filesystem-2020.05-1-x86_64                      21.1 KiB  3.44 MiB/s 00:00 [############################################] 100%  glibc-2.31-5-x86_64                               9.8 MiB  5.13 MiB/s 00:02 [############################################] 100% ...  lib32-libva-mesa-driver-20.1.4-1-x86_64           2.6 MiB  3.50 MiB/s 00:01 [############################################] 100%  lib32-mesa-demos-8.4.0-2-x86_64                 107.8 KiB  2.85 MiB/s 00:00 [############################################] 100% (1363/1363) checking keys in keyring                                         [############################################] 100% (1363/1363) checking package integrity                                       [############################################] 100% (1363/1363) loading package files                                            [############################################] 100% (1363/1363) checking for file conflicts                                      [############################################] 100% error: failed to commit transaction (conflicting files) cmake: /usr/share/bash-completion/completions/cmake exists in filesystem cmake: /usr/share/bash-completion/completions/cpack exists in filesystem cmake: /usr/share/bash-completion/completions/ctest exists in filesystem Errors occurred, no packages were upgraded.  During the process, when asked whether to swap a package with another one, I always picked the default action. What do those errors about cmake at the end mean? How can I update my system?


I was recently asked why I used the word notoriety in a sentence about Alex Honnold. In this case - I believe the sentence was "Alex Honnold achieved increasing notoriety after the 60 Minutes interview with footage of his free solo of Half-Dome.  I meant to use notoriety in a totally positive way - and I don't know of any better alternative.  Is there a more appropriate term than notoriety? Is  notoriety incorrect?


I frequently come across questions that don't actually read like questions, for example, "How to ask a question?" which to me, reads more like a direction than an actual question. I mostly see it when the writer is either from Europe or Asia.   It's something I see often enough that I'm wonder if it is correct in certain contexts. If not, I would appreciate alternative phrasings. My first thought in this example would be something like, "How do you ask a question?" or "How should you ask a question?" But in certain contexts, the use of the second person is inappropriate and I have no idea what to do there.   Any help or insight will be greatly appreciated. Thank you.


Evaluate collisions in classification problems

Short Introduction  In a classification problem, the objective is to identify to which of a set of categories a new observation belongs, on the basis of a set of examples whose category membership is known.  The bottom-line of any solution to this problem is to find a set of features that describes the classification of the examples into the corresponding categories (hypothesis).  When the size of the set of categories is large, we need more information to distinguish among the different categories (e.g., we could look for more features). Also, if the examples for a particular category have high variance (intra-class variance), it is more difficult to find the discriminant due to the existence of collisions between members of different classes.  Question  I'd like to know if there exists a quick exploratory method to evaluate how difficult a learning problem is. For example, I'd like to evaluate the number of collisions between different categories. The problem of training a classifier and performing some sort of cross-validation is that the solution is dependent on the choice of the learning model.


Why is a ConcurrentModificationException thrown and how to debug it

I am using a Collection (a HashMap used indirectly by the JPA, it so happens), but apparently randomly the code throws a ConcurrentModificationException. What is causing it and how do I fix this problem? By using some synchronization, perhaps?  Here is the full stack-trace:  Exception in thread "pool-1-thread-1" java.util.ConcurrentModificationException         at java.util.HashMap$HashIterator.nextEntry(Unknown Source)         at java.util.HashMap$ValueIterator.next(Unknown Source)         at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:555)         at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)         at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)         at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)         at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)         at org.hibernate.engine.Cascade.cascade(Cascade.java:130)


Macro expansion with colortbl and tabular

I would like to alternate row colors in a tabular environment. I found colortbl useful. To simplify writing, I built the following macros to alternate row colors (see MWE below). However, I cannot understand why the \crc macro cannot coexist with a \multicolumn, whereas \rca or \rcb work like a charm.  And, more important, how can I simplify writing such as I always use the same macro name to alternate colors, even when I'm using \multicolumn?  \documentclass {article}      \usepackage {colortbl}  \begin {document}  % define row colors A and B \def\rca{\rowcolor [rgb] {0.90, 0.95, 1.0}} \def\rcb{\rowcolor [rgb] {0.80, 0.90, 1.0}}  % This one works like a charm \begin {tabular} {|l|l|} \hline     \rca \multicolumn {1} {|c|} {one} & 1 \\ \hline     \rcb two & 2 \\ \hline     \rca three & 3 \\ \hline \end {tabular}  % use current row color and set color for next row \def\cseta{\gdef\crc{\rca\csetb}} \def\csetb{\gdef\crc{\rcb\cseta}} \cseta          % (re)set \crc to the row color A  % This one does not want to compile! % ! Misplaced \omit. % \multispan ->\omit %                   \@multispan % l.23     \crc \multicolumn {1} {|c} {one} %                                          & 1 \\ \hline \begin {tabular} {|l|l|} \hline     \crc \multicolumn {1} {|c} {one} & 1 \\ \hline     \crc two & 2 \\ \hline     \crc three & 3 \\ \hline \end {tabular}  \end {document}


I was born in Bosnia and grew up in Bosnia but the thing is that ever since my birth, my mom (who is NOT a native English speaker) has been speaking English to me.  Another thing is that half of my family lives in the USA and just because of that we use English 60% of the time.  I met my first English speaking friends when I was 3-4 years old, we kind of grew up together and when we grew old enough to discover Skype and other apps, we continued communicating through them all. My best friend is from Cuba, living in Miami, and other people I spend time with every day are not from Bosnia and they don't live here either, which means I've been using and listening to English 90% of the time.  I started teaching English when I was 15 and established my own online English school last year.   Even though I am a Bosnian who lives in Bosnia, I cannot speak Bosnian well at all. I always need people to translate words from Bosnian into English for me and from English into Bosnian when I'm trying to speak.  Now what bothers me is that many people keep saying that I am not a native English speaker just because I wasn't born in the US and because I am not an American.  I mean, does it matter? Does our nationality really have something to do with the language we speak? There are tons of Chinese people who cannot speak Chinese at all.  Are there any professionals out there who can explain this?


How do Jedi ensure there are ample supply of future Jedi given that Jedi are forbidden to marry?

This celibacy rule among the Jedi is illogical. Permitting Jedi to marry will ensure a steady supply of future Jedi which are so rare and so hard to train. Why have this rule which obviously weaken the Jedi order? Look at Anakin's offspring. Every single one of his children had Jedi powers even without much training. If Anakin had obeyed this illogical rule, the Jedi would have been weakened. Why did the Jedi have this rule and how do they ensure the Jedi do not go extinct over time as a result?


How do I unistall steam?  sudo apt-get remove steam returns Package 'steam:i386' is not installed, so not removed This response seems odd because this is a 64 bit system and I steam runs fine when I open it in a terminal.  Steam shows up in the software center when I search for it but clicking more info it says Not Found.  What is going on?


I was trying several method but none of them worked particularly. Also as this is a finite sum I thought of doing mathematical induction too. But it seems like there isn't a general term. I saw in a book that if you take the infinite series then there is the following relationship$$\sum\limits_{r=1}^{\infty}\frac{2r+3}{3^r(r+1)}=-3\left(-1+2\log\left(\frac{3}{2}\right)-\log\left(\frac{27}{8}\right)\right)$$ But I really cannot see how they obtained that either Appreciate your help


I have a problem with Hotmail provider, all mail sent from my server goes to SPAM folder. I Have added a correct SPF to my domain example.com but into the headers is not used (spf=none) and the token smtp.mailfrom is ambiguos (example.com@mailserver.com)      x-store-info:4r51+eLowCe79NzwdU2kR3P+ctWZsO+J     Authentication-Results: hotmail.com; spf=none (sender IP is *.*.*.*) smtp.mailfrom=example.com@mailserver.com; dkim=none header.d=example.com; x-hmca=none header.id=info@example.com     X-SID-PRA: info@example.com     X-AUTH-Result: NONE     X-SID-Result: NONE     X-Message-Status: n:n     X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02     X-Message-Info: 11chDOWqoTkBYPj0PkrvLTnWXZD58brruBYhQMQX0c2K8hTlww0C/c26ZToT9/NwYg889VtfffaVfjH7UvFaHNfBqJpEZIUovILiBhGqKUNkCLXCqUsgCBGcbeYOCSzEkog3t7lAJ4PGbJTnUCyuU8ijLlHkSu0stWqrgum9Pi128HZHu+C63o7P08aJG+jyoxpCvrJ6OFMIH//i+v3sD8qLWQ26dlMkmMk1DiwuXwFHByZPO2vyeQ==     Received: from mailserver.com ([*.*.*.*]) by COL004-MC5F33.hotmail.com with Microsoft SMTPSVC(7.5.7601.23143);  Fri, 4 Mar 2016 06:41:13 -0800     Received: by mailserver.com (Postfix, from userid 1012) id 81AAE4B2D5; Fri,  4 Mar 2016 15:41:11 +0100 (CET)     To: mymail@outlook.com     Subject: the subject     X-PHP-Originating-Script: 0:test.php     From: info@example.com     Reply-To: webmaster@example.com     X-Mailer: PHP/5.5.9-1ubuntu4.11     Message-Id: <20160304144111.81AAE4B2D5@mailserver.com>     Date: Fri,  4 Mar 2016 15:41:11 +0100 (CET)     Return-Path: example.com@mailserver.com     X-OriginalArrivalTime: 04 Mar 2016 14:41:13.0476 (UTC) FILETIME=[E692AC40:01D17623]      hello   What's wrong into this header? Mail sent to others provider (ex. gmail) are correctly setted.


need to copy images from 1000 subfolders into one single folder

How can I copy around 1000 subfolders each having 4000 images into one single folder named all_images?  I tried the following:  $ cp upload/*/* all_images/   and got the following error:  bash: /usr/bin/cp: Argument list too long   Please note that I tried this on two small subfolders and it worked.


Electric Field from charged sphere within another charged sphere does not reinforce?

Lets say I have a positively charged conducting sphere of Q. The electric field outside the sphere is  $$E = \frac Q{4\epsilon\pi r^2}.$$  Now suppose this sphere is enclosed inside another hollow conducting sphere of -Q charge. By Gauss law, the electric field is still the same?  Won't the negatively charged outer sphere reinforce the electric field, causing it it be larger?  In another example,  The field from a infinite sheet of charge is  $$ E = \frac \sigma{2\epsilon}. $$  But the field between 2 oppositely charged infinite sheets is  $$ E = \frac \sigma{\epsilon}. $$  Why is this not the case above?


I am trying to install .NET frameworks on an Ubuntu system in Wine.  wine --version 1.6.2 winetricks --version 20140302   The wine is a 32bit version. I get either of two errors:   unable to find a volume for the file extraction, please verify that you have proper permissions.  Since this is running inside wine, I don't need sudo, so why is it throwing this error (e. g. when winetricks dotnet20sp1). Not enough disk space is available for extraction and installation.  I have 20GB free space in my home directory (which should be enough, right?), tried installing on another disk, which is multiple TBs, still giving same error. The Linux system is completely NFS, but this shouldn't be a problem I think. Anyone got an idea on how to solve this?


Microscopic people that live inside a person?

Here’s all I remember about this: it was a shorter book [150 pages max? Couldn’t have been more]—~20 years old at most? with kinda surreal illustrations. There was some sort of civilization of microscopic people [people??] that lived within this massive person. They might’ve been centered in the kidney/liver. One person has to go on a voyage to the eye, perhaps motivated by the illness go a family member [maybe mother?] and goes to various other body parts before reaching the eye including the nipple. One detail that struck out in particular was that, at the nipple, there’s a little hole through which these people can view the world outside this person they’re stuck in. The book ends with these people having reached the eye—now they can see the world outside of this large person they live in.


Convergence in $L^p$ of $f_n$ implies convergence in $L^1$ of $|f_n|^p$ and $f_n^p$

I have the following question about $L^p$ spaces:  Suppose that $f,f_1,f_2,\ldots$ are functions in $L^p$ for some $p \geq 1$ and the sequence converges in $L^p$ to $f$, i.e. $||f_n-f||_p \to 0$. Does this imply that the sequence $|f_1|^p,|f_2|^p,\ldots$ converges in $L^1$ to $|f|^p$? Is it also true if we remove the absolute value? That is, the sequence $f_1^p,f_2^p,...$ converges to $f^p$, in case $p$ doesn't create problem with power (for example $p=3$).  I am using necessary and sufficient condition from the Vitali's convergence theorem and it seems to work. Do you have some advices or some references for this result? Many thanks


Let $a_n \neq 0 \;\; \forall n \in \mathbb{N}$ and $\exists L = \lim |\frac{a_{n+1}}{a_n}|$. Show that, if $L<1$, then $\lim a_n = 0$  Please verify if my attempt makes sense and how could I fix it. I also would appreciate to see another ways of solving this exercise.   Choose $c$ such that $L<c<1$. Then $\exists n_1 \in \mathbb{N}$ such that $n \geq n_1 \implies |\frac{a_{n+1}}{a_n}|<c$ (already verified this)  $\implies|a_{n+1}| < c|a_n| \implies\frac{|a_{n+1}|}{c^{n+1}} < \frac{|a_n|}{c^n}$  Then $\frac{|a_n|}{c^n}$ is monotonically decreasing for $n \geq n_0$.  Since $\frac{|a_n|}{c^n} \geq 0$, this sequence is limited, then there is $n_1\geq n_0$ such that $\exists M>0$ such that $0 \leq \frac{|a_n|}{c^n} \leq M \implies 0 \leq |a_n| < Mc^n$. By squeeze theorem, $\lim |a_n| = 0$.  But I'm failing to conclude $\lim a_n = 0$, all I can see is that $\lim a_n \leq 0$.


... when I compile with XeLaTeX this preamble  \documentclass[11pt]{book} \RequirePackage{luatex85} \usepackage[paperwidth=142mm, paperheight=210mm,top=25mm, bottom=20mm, left=17mm, right=22mm]{geometry} %\usepackage{fontspec} \usepackage{fancyhdr} \usepackage{fourier-orns} \usepackage{graphicx} \usepackage{chngcntr} \usepackage{tocloft}  \usepackage{charter}  \usepackage[T1]{fontenc} \usepackage{xltxtra} \usepackage{polyglossia}  \begin{document}  text  \end{document}   I get this error  \Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.cfg") ! Undefined control sequence. <argument> \LaTeX3 error:                             Erroneous variable \c__fontspec_shape_n_n_tl used! l.3806 \emfontdeclare{ \emshape, \eminnershape }


Adding word 'Table' before each entry in list of tables

I need to prefix each entry in list of tables and figures with appropriate text - table or figure for each. Also I need to remove chapter numbers from list, because tables are numbered consequently through the whole report.  I managed to do everyting I need with this simple commands:  \renewcommand{\thetable}{\arabic{table}} \renewcommand{\thefigure}{\arabic{figure}}  \makeatletter \providecommand\phantomsection{}% for hyperref  \newcommand\listoftablesandfigures{%     \chapter*{List of Tables and Figures}%     \phantomsection %\addcontentsline{toc}{chapter}{List of Illustrations}% %\section*{Figures}% %\phantomsection %\addcontentsline{toc}{section}{\protect\numberline{}Figures}% \@starttoc{lof}% \bigskip %\section*{Tables}% %\phantomsection %\addcontentsline{toc}{section}{\protect\numberline{}Tables}% \@starttoc{lot}} \makeatother   Now only one thing remains: to be consistent with text in list of tables and figures.


what I think is the difference VS what I think the difference is

Recently, I've stumbled upon a sentence that seems to be in contrary to what I've been taught about the word order in positive sentences. At some forum, a guy asked a grammar question, and one of the answers started with the following sentence:  "I've already said what I think is the difference when an ing-verb follows."  As this is clearly a positive sentence, shouldn`t it be more like:  "I've already said what I think the difference is, when an ing-verb follows."


Meaning of "$\exp[ \cdot ]$" in mathematical equations

I am reading book "Fuzzy Logic With Engineering Applications, Wiley" written by Timothy J. Ross. I am reading chapter 7 and in this chapter, "Batch Least Squares Algoritm" has been defined. It illustrates the development of a nonlinear fuzzy model for the data in Table 7.1 using the Batch Least Squares algorithm.    At the page 218 there is a mathematical equation:     I have two questions:  1- As you can see, there is a "exp" phrase (in the red rectangle). What is this? Is it the exponential function? ()  At the link, "" it was stated at the link that it is an exponential function, but I noticed that ordinary paranthesis has been used. In my equation, square brackets is used.  2- What is the purpose of the equation?   Thanks in advance.


I have similar problem as described in  Answer there is to hook into save_post and change post type. How can I do it? I try to use wp_transition_post_status but it doesn't work for me...  function myHook( $post_ID, $post ) {      wp_transition_post_status('pending', $post->post_status, $post );  }  add_action( 'save_post', 'myHook', 10, 2 );   Edit: I have clear wordpress installation without any plugins, additional code and similar


Show that $A∩B∩C= ∅$ is only true when  $A∩B = ∅, A∩C = ∅$ or $B∩C = ∅$ or show a counterexample.   My answer: True, Let set A={a,b,c,...}, set B={1,2,3,...} and set C={-1,-2,-3...}. Then there is not common elements in A, B or C. Thus, A∩B∩C= ∅. A∩B = ∅, A∩C = ∅ or B∩C = ∅.  Is my prove right?


What package rebrands Ubuntu to Ubuntu Studio?

Ubuntu 20.04, I wanted to use Ubuntu Studio file icons, so I installed some packages, (so I can change file icons in Gnome Tweak Tool)but the boot flash screen now displays Ubuntu Studio, what is the package to remove so it goes back to Ubuntu?


I am not native English. My question regards the conditional form of the verb have to, must. I was wondering if I could use in interchangeable way the expressions "If I were to have" and "If I should have" and "If I would have". Thank you for your help. Massi


How can I check if SQL Server 2019 Standard is activated on Server Core?

I installed SQL Server 2019 Standard on Windows Server 2019 Core from an ISO that I downloaded from our . It specifically stated that there is "No product key required" when I downloaded it. Since I installed it on Server Core, I followed . If you look at the instructions, there is an /PID argument that is needed to tell the setup, what Version of SQL Server to install (e.g Express, Developer, Standard etc.) However, I did not find a Product ID for the Standard Version of SQL Server 2019. Not in MSDN, not in VLSC and nowhere else on the internet. The instructions state that:  SQL Server Setup Control  /PID Specifies the product key for the edition of SQL Server. If this parameter is not specified, Evaluation is used.  Which makes me believe that my SQL Server is now in Evaluation mode. I would like to check now, If my SQL Server is licensed, and also how it is licensed (I should have a license for 4 Cores). The thing is a bit complicated, since another VM that has an SQL Server with 4 Cores, licensed in another license agreement, is running on the same physical machine, I read that physical cores must be licensed, not Virtual Machine Cores. is my new SQL Server on my new VM now also using the same License as the other VM? However, my thing is I don't know if my SQL Server is now licensed. I ran the following queries: PS C:\Users\Administrator\Documents> Invoke-SqlCmd -Query "SELECT @@Version" | fl *   Column1   : Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)                 Sep 24 2019 13:48:23                 Copyright (C) 2019 Microsoft Corporation                 Standard Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)  RowError  : RowState  : Detached Table     : {} ItemArray : {Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)                 Sep 24 2019 13:48:23                 Copyright (C) 2019 Microsoft Corporation                 Standard Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor)             } HasErrors : False  and also this: PS C:\Users\Administrator\Documents> Invoke-SqlCmd -Query "SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')" | fl *   Column1   : 15.0.2000.5 Column2   : RTM Column3   : Standard Edition (64-bit) RowError  : RowState  : Detached Table     : {} ItemArray : {15.0.2000.5, RTM, Standard Edition (64-bit)} HasErrors : False  However, I am very confused now. It says it's the Standard Edition of SQL Server which seems to be correct, but where did it get the license for it? Is it even licensed? It doesn't say it specifically. How does it know, how many cores it can use? Thanks for your help!


I just designed this MPPT solar charge controller which outputs 4.2 V regulated via MPPT, it uses the SPV1040 IC. This will be used on a satellite with 4 side panels, each with 8 solar cells in parallel outputting 2.6 V at approximately 122 Ma. Each panel will have this exact circuit and all the outputs will be connected in parallel to a 3.7 V lithium ion camera battery.  When active only 1 solar panel will be active and the other MPPT circuits will be offline or providing a very low amount of current. How should I connect the 4.2v to the battery, just directly or using some sort of controller to stop charging at 4.2v? Keep in mind the battery will always have a load and it will charge for around 50m in a 90m cycle due to being eclipsed. I would obviously like the battery to last as long as possible so I am not sure what are the implications of constantly having a battery connected to 4.2 V during 50m. Thanks.   The schematic was made based off a simulation made using the ST Edesignsuite directly from the provider.  Excuse my previous question about this, wasn't properly worded.


Does anything else happen if I continue to throw candy on the ground?


Exact sequences of $1 \to A \to SO(N) \to B \to 1$, special orthogonal group

Inspired by the  and , apart from SU(N), now I am particularly looking into the exact sequences of SO(N), but I will like to loosen the conditions of the previous ,     Q1. $$1 \to A \to SO(N) \to B \to 1$$   where any of $A$,$B$ can contain finite group or discrete groups.  I am further interested in just three cases SO(8), SO(9), SO(10),  -     Q2. $$1 \to A \to SO(n) \to B \to 1$$    I wonder whether, when there is any example such that $A$    $$A=U(1) \times SU(2) \times SU(3)\;\;\; \text{or} \;\;\;A \supseteq U(1) \times SU(2) \times SU(3)?$$   (there can be an additional discrete finite group parts for $A$ such as additional $\mathbb{Z_N}$)   or whether there is any example such that $B$    $$B=U(1) \times SU(2) \times SU(3)\;\;\; \text{or} \;\;\;B \supseteq U(1) \times SU(2) \times SU(3)?$$   (there can be an additional discrete finite group parts for $B$ such as additional $\mathbb{Z_N}$)


I am wondering if there is a way to get advice\feedback here about the following: I am about to start a MS physics program. I am interested in quantum computing and my department has the option of pursuing a thesis as a graduation route. I am new to this topic and would like to see if I can get some suggestions - papers, books, topics, etc - to think about to be able to craft a project in quantum computing for a beginner like me that can in a two-year period scale into something with more insight in the topic.   Thank you.


Page Rank, Page Autority, Domain Autority

wanted to know how long does it take for Google to update the pagerank of a site and verify the relationships created in web (backlinks).  Another thing, create a relationship with a page that has the authority page very low and Domain Authority very good. That kind of relationship would add to the positioning of my site?  Greetings,


I have used following code for email validation. It is running fine but i don't want to validate it when field will be empty.      var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;     var sEmail = $(this).val();      if (!filter.test(sEmail)) {         value = false;         $(this).css('border', '1px solid red');         $(this).attr('error','true');     }else{         $(this).css('border', '');         $(this).removeAttr('error');     }


[WebMethod] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] public ServiceResponse abc() {     ServiceResponse sr = new ServiceResponse();     return sr; }   but when I hit  in browser I get back xml  <ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"> <success>false</success> <message>Error</message> </ServiceResponse>   But I want it to produce json (which i can do from mvc controller easily, but i am bound to use asmx)  What could i do to produce json frommy webservice.asmx ?  I picked up a working function from my mvc and added to service and decorated it like  [WebMethod] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] public object bcd() {     return new { message = "Success", success = true; data : {} }; }   It gives following error  System.InvalidOperationException: There was an error generating the XML document. ---> System. InvalidOperationException: &lt;&gt;f__AnonymousType5`1[System.Int32] cannot be serialized because it does not have a parameterless constructor.   So I use this class for returning response, this is object type to which i want to get as json  public class ServiceResponse {     public ServiceResponse()     {         success = false;         message = "Error";     }     public ServiceResponse(string mesg)     {         success = false;         message = mesg;     }         public bool success { get; set; }     public object data { get; set; }     public string message { get; set; } }


Figure going too much into right in xelatex, not in latex

My problem is somewhat similar to  . I tried the answer given there but it didn't solve my problem.  The problem is that my figure goes too much into right, even though I have used \centering command. This problem only comes on compiling with XeLaTex and not with Latex; I don't know why. The MWE will illustrate this. Here is code:  \documentclass[14pt,a4paper]{extbook} \usepackage{float} \usepackage{graphicx} \usepackage[top=2.7cm, bottom=2.7cm, left=2.2cm, right=2.2cm]{geometry}  \begin{document} \date{}  123456789123456789123456789123456789123456789  \begin{figure*}[htbp]  \centering       \includegraphics [scale=0.5] {MWE.eps}  \caption{Using centering}  \end{figure*}  123456789123456789123456789123456789123456789  \begin{figure*}[htbp]  \centering  \vbox{\vspace{1.8em}\includegraphics [scale=0.5] {MWE.eps}}   \caption{Using centering and vbox and vspace\{1.8em\}}  \end{figure*}  123456789123456789123456789123456789123456789  \begin{figure*}[htbp]  \centering  \hbox{\hspace{-0.4em}\includegraphics [scale=0.5] {MWE.eps}}   \caption{Using centering and hbox and hspace\{-4em\}}  \end{figure*}  \end{document}   Here is the output using XeLatex (on windows)   Here is the output using Latex (on linux)   Here is the  which is used in the example:


PYTHON ERROR: IndentationError: unindent does not match any outer indentation level

When running this piece of code:  #timestamp, capture, and tweet an image def stamp_cap_tweet():         timestamp = time.strftime("%d%m%Y-%H%M%S")     os.system("fswebcam -r 960x720 -d /dev/video0 " + timestamp + ".jpg") #save image to disk     twit.update_status_with_media(timestamp + ".jpg", status = "@shahidrogers " + timestamp) #tweet image @username     print "Tweeted image at " + timestamp #make a record in the Python output   I get the error     File "tweetpicture.py", line 17                                         os.system("fswebcam -r 960x720 -d /dev/video0 " + timestamp + ".jpg")                                                                                ^                                                   IndentationError:       unindent does not match any outer indentation level   What could this possibly mean? I have searched around and people have said that there's a mix of tab and spaces, but I do not understand this at all as I am still very new to Python and this is my first few lines of coding.  Thanks!


Recreating Kate Moss, Life Is A Joke. What lens and lighting?

I want to recreate this Kate Moss, Life Is A Joke image with a friend (and later photoshop in a moustache). I'm unfamiliar with beauty/studio photography. The hair and make up I can wing.  Am I right in thinking one top down soft light; and maybe a 85mm lens?  Edit: I got my lighting answer from this detailed post


I was studying the concept of variable scope in JS, found this example on it:  (function() {     var foo = 1;     function bar() {         var foo = 2;     }     bar();     console.log(foo) //outputs 1     if(true) {         var foo = 3;     }     console.log(foo) //outputs 3 })();   output of this function is  1  3   Now I am confused how come foo gets gets value 3 in second log. even when foo is declared by using var in if statement. shouldn't the foo declared in if will have a new instance as it gets in bar()??


Help with $\sum_{d\mid n}τ(d)^2=\sum_{d \mid n}τ(d)^3$

I am doing some exercises on number theory on multiplicative number theoretic functions and I have some problems with the multiplication on sums like the sum $\sum_{d\mid n}(\tau(d))^2$ where $d$ is a divisor of $n$ and the sums like:  $$\sum_{d\mid n}τ(d)^3$$  same thing except that the function $\tau$  is on $3$rd power..I have to prove  that:  $$(\sum_{d\mid n}\tau(d))^2=\sum_{d \mid n}\tau(d)^3$$  where the $\tau(n)$ is the number of positive divisors of $n$ (and where the sums range over all positive divisors $d$ of $n$).


What is the main Computer Memory Addressing Mechanism for Semi-Conductor Memory?

Most semiconductor memory is organized into memory cells or bistable flip-flops, each storing one bit (0 or 1).  How exactly are the needed '1's or '0's taken from Memory? What mechanism or algorithm?


Could the missing antimatter lie outside the observable universe?

While I was reading a  asking if other galaxy could be made of antimatter, to which the answer was: if they were, we should detect the radiation from matter interacting with antimatter on that sort of scale. But what if the missing antimatter lies outside the observable universe. Wouldn't that result in the matter dominated observable universe we live in, without any of the radiation from the antimatter lying outside it being detected?


Find the side of an equilateral triangle given only the distance of an arbitrary point to its vertices

Triangle $ABC$ is an equilateral triangle and $P$ is an arbitrary point inside it. The distance from $P$ to $A$ is $4$ and the distance from $P$ to $B$ is $6$ and the distance from $P$ to $C$ is $5$. How to find the side of an equilateral triangle from this information?


i'm trying to install nordvpn on Ubuntu 20.04, but i get 'NOSPLIT'. I tried multiple solutions here in the stack but it seems I can't get an answer. here what I get after the apt update.     Get:1 http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [317 B]     Err:1 http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease               Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB] Get:4 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [107 kB] Reading package lists... Done                                                   E: Failed to fetch http://repo.nordvpn.com/deb/nordvpn/debian/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: The repository 'http://repo.nordvpn.com/deb/nordvpn/debian stable InRelease' is not signed. N: Updating from such a repository can't be done securely and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  after sudo dpkg -i nordvpn-release_1.0.0_all.deb  seems it didn't add nord repo to sources.list so i add them manually to /sources.list.d/nordvpn.list deb [arch=amd64] http://repo.nordvpn.com/deb/nordvpn/debian stable main deb [arch=i386 ] http://repo.nordvpn.com/deb/nordvpn/debian stable main  and I tried to use different network wifi and provider but no light :(. thanks for any help. .


Split Equation not working in trivial case in Overleaf

I,m quite new at LaTeX and I've been having problems with the split equation environment with error messages on every line in my environment. I'm trying to isolate the problem and I've reduced to simply testing out the split environment by copying a template, and I still get the same errors. Here's an example:  \documentclass[12pt]{article}  \usepackage{amsmath}  \begin{document}      \begin{equation*}          \begin{split}          a & = 1 \\           & = 2          \end{split}      \end{equation*}  \end{document}    In this very simple case, it doesn't even align, and I get 13 error messages. All error messages are of the type runaway argument, missing $, missing {, misplaced alignment tab &,  display math should end with $$, etc. What's going on? I'm literally following a template. Is there any particular formatting I'm supposed to do for this environment?


Is it OK to publish research that was in someone else's future work?

Very recently, a paper has been published that says: I plan to incorporate X into my research in the future.  The aforementioned paper was published recently, so the follow up containing X is not published (nor do I know if the author is working on it right now). Would it be OK for me to then to do the research suggested in the paper? The idea to incorporate X into the research was an idea I developed independently, but it also happened to be in the "future work" of another paper, if that makes any difference.


i am new to java and as a project i an developing a chess game. i have all the piece moving but when i move the king out of the chess bounds i get the error :  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  at ChessProject.checkBlackOpponent(chessproject.java:149) at ChessProject.mouseReleased(chessproject.java:559) at java.awt.Component.processMouseEvent(Component.java:6527) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6292) at java.awt.Container.processEvent(Container.java:2234) at java.awt.Component.dispatchEventImpl(Component.java:4883) at java.awt.Container.dispatchEventImpl(Container.java:2292) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) at java.awt.Container.dispatchEventImpl(Container.java:2278) at java.awt.Window.dispatchEventImpl(Window.java:2739) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:719) at java.awt.EventQueue$4.run(EventQueue.java:717) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:716) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


The project is to encoding decoding： abcdefghijklmnopqrstuvwxyz kngcadsxbvfhjtiumylzqropwe at first, program should asks the user to enter a key string like above. The program will then read the file and output to the console its encoded contents.Capital letters are mapped the same way as the lower case letters above, but remain capitalized.For example, with the key above, every 'A' becomes a 'K' when encoding a text. Numbers and other characters are not encoded and remain the same. For example, with the mapping above, every 'a' becomes a 'k' when encoding a text, and every 'k' becomes an 'a' when decoding.  Run 1: Enter encoding key: maxnrslkbpwfzjidouetchgvyq Enter the file name: sampleInput.txt ************** Encoded Contents **************** Grfxizr ti XE 20A! Xizdctrue mur liin mt siffigbjl bjetucxtbije, act jit mt urmnbjl yicu zbjn. Bs yic mctizmtr m zree, yic lrt mj mctizmtrn zree.    Good Bye!  I get error : Exception in thread "main" java.lang.NullPointerException  on line char outputFile= hmap.get(FileChar);  C:\Users.....\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1  which I want assign input file to hash map get value.   is it the reason because I dont make key value about other characters except [a-z] in hashmap like“， ！ ," etc, then it dont have this key value then make null exception?  Here is some code for hashmap :  HashMap<Character,Character>hmap = new HashMap<>();   for(int j =0; j<26; j++){        if(Character.isUpperCase(originalResult.charAt(j))){                hmap.put(originalResult.charAt(j),Character.toUpperCase(inputResult.charAt(j)));       }       else{       hmap.put(originalResult.charAt(j),inputResult.charAt(j));       }   }   Here is  some code I think the problem:  while((Fileline =bin.readLine())!=null ) {     char[] FileArray = Fileline.toCharArray();      for(int j=0;j<Fileline.length();j++ )     {         FileChar =FileArray[j];           char outputFile= hmap.get(FileChar);   ////here is the problem        }      System.out.println( String.valueOf(outputFile)); }   I think the problem might be the char when I print like:  while((Fileline =bin.readLine())!=null ){      char[] FileArray = Fileline.toCharArray();     for(int j=0;j<Fileline.length();j++ ){           FileChar =FileArray[j];            s = new String(String.valueOf(FileChar));    }    System.out.println(s);   the result is nothing:  y  .  but when I print in the loop，it looks each line only have one letter,and lots of line：  while((Fileline =bin.readLine())!=null ){      char[] FileArray = Fileline.toCharArray();     for(int j=0;j<Fileline.length();j++ ){           FileChar =FileArray[j];            s = new String(String.valueOf(FileChar));          System.out.println(s);   }


"Linked" images get re-hosted by imgur - without any warnings!

I have added a picture to my answer. I did so by providing a link from my own web server and pasting the link to the image into the form ("from the web"). The software in the background silently however takes the image off my server, copies it over to imgur.com an hosts it from there - without informing me about it, and subjecting my image to the copyright and publishing rights of imgur - without my consent.  I think this is highly controversial. In my opinion one or more of the following should be happeneing:   Linked images should not be re-hosted at a 3rd party There should be a notice about that when uploading an image there should be a notice about the distribution/copyright issues when uploading an image   Further I see an issue with linking images from 3rd-party websites to SE. I wonder how this is an issue in terms of copyright. I have myself linked pictures in answers from 3rd party sites. And I am not sure how this action is legal from my side, and how it is legal from imgur to host these images, as well how the situation for SE is.


Suppose $X$ is a metric space and $S \subseteq X.$ Then, $S^o=\{x \in X~|~dist(x,S^c)>0\}$.

Suppose $X$ is a metric space and $S \subseteq X.$ Then, according to my textbook, $S^o=\{x \in X~|~dist(x,S^c)>0\}$.     (Notations Used: $S^o$ refers to interior of $S$ . If $x \in X, dist(x,S) = \{\inf (d(x,s)~|~s \in S)\}$  )     I think that $S^o$ should be instead equal to $\{x \in S~|~dist(x,S^c)>0\}$.   $S^o$ is defined as $S - \partial S~~~~~..(1)$   where $\partial S = \{~x \in X ~|~dist(x,S)=0=dist(x,S^c)~\}~~~...(2)$  So, to obtain $S^o$, remove all those points from $S$ which satisfy $dist(x,S^c)=0$.  This yields $S^o=\{x \in S~|~dist(x,S^c)>0\}$.    Is it possible that my textbook has a possible error with respect to this definition?  Thank you very much for your help.


Make the flag and suggested edit indicator colors consistent across sites

This is the flag indicator and the suggested edit indicator on Stack Overflow:    This is what they look like on Meta Stack Overflow:    And on Super User:    This is a flag indicator on sites where it hasn't been customized:    This is a suggested edit indicator on sites where it hasn't been customized:    This is Ask Ubuntu. Is that more of a default suggested edit orange or more of a Stack Overflow flag orange?    All these indicators have retained their color from back when each site has its own theme in the top bar. But now the top bar is uniform on every site. It doesn't make sense to vary the indicator colors.  Please make the indicator colors uniform across sites. And pick a color with good contrast — the beta suggested edit indicator has pretty bad contrast now, and the SO colors could use a bit more distinction. My preference goes for the default flag color with the SO suggested edit color.


I'm looking at buying a new SLR body. I have an old film Nikon entry-level SLR (about ten years old) with a kit lens. If I buy a Nikon body, how likely is it that my old lens will work on it? Would I be better off buying a new lens?


I get the Year and Month using this Query given below  select CAST(YEAR(GETDATE()) AS VARCHAR )+'0'+CAST(MONTH(GETDATE()) AS VARCHAR)   But for this Month is printing Correctly but for 10 month its printing 010 can any one help on this.


I connect my iPhone 5 IOS 10.3.1 but my Ubuntu 16.04 doesn't seem to detect it

I'm new to Ubuntu.  I'm trying to transfer pictures and videos from my iphone 5 IOS 10.3.1 to my Ubuntu 16.04 system but when I plug the phone in, it doesn't even show that I connect the phone to the computer.   How can I fix it? Is there something I could do that doesn't require installing a windows virtual machine?


Can a single dose of poison applied to an edged weapon be used multiple times?

If a fighter applies a single dose of regular poison to his sword, but he can make two attacks per round, does that mean that he can make twenty attacks (2 attacks × 10 actions/minute) with poison damage before the poison dries? Or does it only mean that he must make his attack within one minute of applying the poison, and after that single attack the poison is lost?


apt-get upgrade has no errors but no effect

I'm trying to upgrade to the latest version of ubuntu, it isn't working and I'm also not seeing any error messages... so I'm not really sure what the issue is or where to start looking... Any help would be appreciated.  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.5 LTS Release:    12.04 Codename:   precise $


Removing 12-hour time from Windows 10 login screen at startup (24-hour already set)

So my problem is somewhat minute, and the main problem was addressed , but when I first turn my computer on, it always shows the 12h format. The account I log into is the admin account, and once I log in (due to my settings), the lock screen shows 24h. But before I do, it always shows 12h.  It's not a huge deal, I just find it annoying since I think the 12h system is annoying to begin with if I'm not reading an analog clock. I'd guess there is some "default" value its adhering to (presumably the American ones Windows generally assumes by default) -- is there some sort of way to change this?


How to Move points according to distance and azimuth?

How to Move points according to distance and azimuth ?


import java.util.*; public class test {     public static void main(String [] args) {         Scanner scn = new Scanner(System.in);         double s = 253.3;         while(s > 9) {             s = s/10;         }         System.out.println(s);     } }   Why the output is 2.5330000000000004 and not 2.533?


My 8GB Toshiba USB drive became 4mb in size how can i restore it?

My 8gb USB drive just became 4mb. I already tried the diskpart method, bootice, HP USB Storage Format. But still the capacity still the same. Is there other way?


Will not run correctly! Taking in the assignment types, and grades until negative number is entered to find the weighted grade. C programing

Here is the code...  #include <stdio.h>  int main(void) { //identifiy variables     float grade, total;     total = 0;     char type; //prompt user for type of assignment     printf("Please enter the type of Assignment: ");     scanf("%c", &type); //prompt user for grade     printf("Please enter grade:(##.#) ");     scanf("%f", &grade); //while grade>=0     while (grade>=0) {     //if Homework         if (type == 'H') {         //calculate grade             grade = grade * 0.3;         //calculate total             total = grade + total;         //prompt user for type of assignment             printf("Please enter the type of Assignment: ");             scanf("%c", &type);         //ask for new grade             printf("\nPlease enter grade: ");             scanf("%f", &grade);     }     //if Lab         else if (type == 'L') {         //calculate grade             grade = grade* 0.15;         //calculate total             total = grade + total;         //prompt user for type of assignment             printf("Please enter the type of Assignment: ");             scanf("%c", &type);         //ask for new grade             printf("\nPlease enter grade: ");             scanf("%f", &grade);         }     //if Quiz         else if (type == 'Q') {         //calculate grade             grade = grade* 0.2;         //calculate total             total = grade + total;         //prompt user for type of assignment             printf("Please enter the type of Assignment: ");             scanf("%c", &type);         //ask for new grade             printf("Please enter grade: ");             scanf("%f", &grade);         }     //if Exam         else if (type == 'E') {         //calculate grade             grade = grade* 0.2;         //calculate total             total = grade + total;         //prompt user for type of assignment             printf("Please enter the type of Assignment: ");             scanf("%c", &type);         //ask for new grade             printf("\nPlease enter grade: ");             scanf("%f", &grade);         }     //if Final         else {         //calculate grade             grade = grade* 0.15;         //calculate total             total = grade + total;         //prompt user for type of assignment             printf("Please enter the type of Assignment: ");             scanf("%c", &type);         //ask for new grade             printf("\nPlease enter grade: ");             scanf("%f", &grade);         }      } //print grade total     printf("%f", total); //check to see the final letter grade     //if total>=90     if (total>=90){         printf(" A");     }     //if total>=80     else if (total>=80) {         printf(" B");     }     //if total>=70     else if (total>=70){         printf(" C");     }     //if total>=60     else if (total>=60){         printf(" D");     }     //else     else{         printf(" F");     }  }   Heres the issue...  The computer allows you to input the assignment type and a grade. Then the computer prints the "Please enter the type of Assignment:" but dose not allow the user to input a type. It just skips straight to asking the user for a grade and allowing a grade input.


I am trying to have a picture positioned within the normal text flow. The problem is that it is positioned on the next page and different text is moved before it. I used \begin{figure}[h] using the [h] in the thought that it would be within the text flow. But it is not.   \begin{figure}[h]     \includegraphics[width=0.8\textwidth, center]{img/mypicture.png}     \caption{Some caption text here}     \label{myreference01} \end{figure}   Why is the picture outside of the text flow and not within? I thought using [h] does exactly that. What must I do to force the text flow?


Correct syntax for array of static class method pointers

I'm new to function pointers and am getting hung up on syntax. What I'm trying to do is define, within a class, an array of functions to do string matching. The matching functions and their storing array will be static since they will be shared by all instances of the class. The functions are stored in an array so I can iterate through within match() and try different ones. Also, I'm trying to typedef the function pointer globally because similar matching functions will be used in many such classes. I've found some stuff suggesting that the signature should maybe be bool(Money::FP)(char str) but, if true, is there no way that I can define this globally (i.e. for classes other than "Money")?   The code below does not compile so please consider it as pseudocode for what I'm trying to accomplish.   Money.h:  typedef bool(*FP)(char* str);  class Money {  private:     static FP matchers[3] = {         Money::m1,         Money::m2,         Money::m3     };      static bool m1(char* str);     static bool m2(char* str);     static bool m3(char* str);  public:     static void match(char* str); };


In Now You See Me, when Morgan Freeman explains to the detective on how the Four Horseman robbed the bank, he mentions that they replaced the real money (while in the secured transport truck) with flash paper.  This does not explain how the paper in the bank got ignited, and no ignition/stimulator left in the scene as evidence.  Who/What/When ignited the flash paper in the bank on time?   There had to be some timer/delay mechanism on the platform, or something similar - but in the frames we see - there is nothing.


What is the recommended way to destroy mold?

Back in the day I've heard that bleach is a good way to kill mold. The other day a home inspector suggested that Dawn dish soap actually works much better than bleach. I've heard from another home inspector to use the store-bought mold killer.  Does anyone know what really works and what doesn't for a DIYer?


Microsoft Word 2013 (and other softwares) titled line effect?

I have a question about a titled line effect like so:  --------------------- Heading --------------------- but with actual lines. I know Microsoft Word 2013 has the ability to make horizontal lines but I cannot figure out how to center a word in it. I would like to have this effect with a real line, not hyphens like my little example. If anyone could offer some help or recommend a better word processor that has this function, I would be appreciative.  Thanks!


How could I make this sprinklish colourful dot material from this picture?    Source:


Could a man float in a large enough magnetic field to simulate zero gravity?

I know the magnetic field would need to be very large, but if an organisation like NASA with huge funding and resources could build a large enough device, could a man float in that magnetic field to simulate zero gravity?  I would love to know how large the device may need to be, though presumably it would be in relation to it's power (are we talking 747's or football fields?).  My idea is that this would be safer than astronauts training under water in their enormous pools (and reduce risk of drowning as per recently in the news), and would help them train for the International Space Station etc. without the stop/start effects on the zero-G airplanes.  We can levitate frogs and other small insects (video here: ) so presumably it would be possible to scale everything up for a man or woman - possibly wearing clothing/apparatus to help achieve the zero gravity effect.  I guess the next question would be are there any health effects should a large enough magnetic device be produced?!


Edit link missing on question (even though I have more than 2k rep)

I encountered a weird issue now, for the first time - there is  for which I didn't see an edit link at first. However when I manually crafted an edit URL with this post ID and submitted a tiny edit to test it, it worked and now I do see the edit link. I checked existing meta questions about missing edit links (, , ) and none of the answers seem to apply here because a) I was logged in, b) I have more than 2k rep (so all the points related to the editing queue should be irrelevant), c) it's not a tag wiki. This is how it looked initially:  What happened there? EDIT: I just realized something even stranger happened. My edit now seems to contain someone else's changes (I just added a colon, not reformatted everything!) plus an edit summary that I didn't write! It would seem as if there was a pending edit and I implicitly did "improve edit" on it but normally in this case the link is there and I get a message about the pending edit with options about what to do with it...


I'm working on a simple tool that transfers files to a hard-coded location with the password also hard-coded.  I'm a python novice, but thanks to ftplib, it was easy:  import ftplib  info= ('someuser', 'password')    #hard-coded  def putfile(file, site, dir, user=(), verbose=True):     """     upload a file by ftp to a site/directory     login hard-coded, binary transfer     """     if verbose: print 'Uploading', file     local = open(file, 'rb')         remote = ftplib.FTP(site)        remote.login(*user)              remote.cwd(dir)     remote.storbinary('STOR ' + file, local, 1024)     remote.quit()     local.close()     if verbose: print 'Upload done.'  if __name__ == '__main__':     site = 'somewhere.com'            #hard-coded     dir = './uploads/'                #hard-coded     import sys, getpass     putfile(sys.argv[1], site, dir, user=info)   The problem is that I can't find any library that supports sFTP.  What's the normal way to do something like this securely?    Edit:  Thanks to the answers here, I've gotten it working with Paramiko and this was the syntax.  import paramiko  host = "THEHOST.com"                    #hard-coded port = 22 transport = paramiko.Transport((host, port))  password = "THEPASSWORD"                #hard-coded username = "THEUSERNAME"                #hard-coded transport.connect(username = username, password = password)  sftp = paramiko.SFTPClient.from_transport(transport)  import sys path = './THETARGETDIRECTORY/' + sys.argv[1]    #hard-coded localpath = sys.argv[1] sftp.put(localpath, path)  sftp.close() transport.close() print 'Upload done.'   Thanks again!


prove that a non constant periodic, continuous function has a "smallest period"

Let $\ f:\mathbb{R}\to\mathbb{R} \ $ be a non constant, continuous and periodic function. Prove that $f$ has smallest/minimum period.  The definition of period that I work with is:  $p$ is a period of a function $f$ if $\ p\gt0 \ \land \ \forall x\in\mathbb{R}:f(x+p)=f(x) $.


What is the difference between CPU and Microprocessor?


Why aren't my equations "pretty" (italicized)?

I'm making a presentation in LaTeX using beamer. I have typed up the Navier-Stokes equations, but for some reason many of the variables (the superscripts and subscripts, Y, T, x, etc.) are not italicized. Why might this be happening?    Example:  \documentclass{beamer}  \usepackage{graphicx} \usepackage{amsmath} \usepackage{xmpmulti}  \begin{document} \title{\LARGE title} \author{author}  \frame{\titlepage}   \frame{\frametitle{Table of contents}\tableofcontents}   \section{Section}  \subsection{Navier-Stokes Equations} \frame{\frametitle{Navier-Stokes Equations}     \begin{itemize}         \item The compressible, reacting Navier-Stokes equations for an ideal gas can be written as     \end{itemize}     \begin{align*}     \frac{\partial \rho^d}{\partial t^d} + \frac{\partial\rho^d u_{j}^d}{\partial x_{j}^d}      &= 0,\\     \frac{\partial{\rho^d Y^d_k}}{\partial t^d} + \frac{\partial{\rho Y^d_k u^d_j}}{\partial x^d_j}      &= \frac{\partial}{\partial x^d_j}\left(\rho^d D^d_k \frac{\partial Y^d_k}{\partial x^d_j} \right)+\dot{\omega}^d_k,\\     \frac{\partial \rho^d u_{i}^d}{\partial t^d} + \frac{\partial\rho^d u_{i}^du_{j}^d}{\partial x_{j}^d}     &= -\frac{\partial p^d}{\partial x_{i}^d} + \frac{\partial \tau_{ij}^d}{\partial x_{j}^d}, \\     \frac{\partial \rho^d E^d}{\partial t^d} + \frac{\partial (\rho^d E^d+p^d) u_{j}^d}{\partial x_{j}^d}     &= \frac{\partial\tau_{ij}^du_{i}^d}{\partial x_{j}^d} + \frac{\partial}{\partial x^d_j}\left(\mu^d\frac{c^d_p}{Pr}\frac{\partial T^d}{\partial x^d_j}\right)+ \sum\limits_{k=1}^{N}Q^d_k\dot{\omega}^d_k \\      p^d &= \rho^dR^dT^d = \rho^d \frac{R_u}{W^d}T^d     \end{align*} }   \end{document}


Canon 60D - exposure compensation with auto ISO in Manual mode

I'm sure someone will be able to answer this conclusively fairly quickly, but as per the thread title, is there a way to set exposure compensation when using M mode but with the ISO set to automatic? In other words, lock the shutter and aperture but have the camera decide the ISO based on something other than a +/- 0 bias?  The reason I ask is that I'm shooting some friends' wedding soon, and during the low light sections in the church I would like to be able to keep my aperture and shutter constant (because the camera has a nasty tendency to lower these in preference to boosting the ISO resulting in soft shots), and spot meter off skin tones with a +1 exposure compensation affecting only the ISO.  Hopefully someone either tell me how to have the camera do this for me or else provide some tips for quickly and accurately doing this by hand.


What is needed for a game's stats to be saved?

Last night I played a few games with my friend. While in the last game, I suddenly remembered something I had to do and was about to leave but my friend told me that I would lose my progress if I did so. I stayed until the end, through the scoreboard screen and quit while the next map was loading. Taking a look  now, I can't see any of yesterday's games. I don't remember how much XP I had yesterday so there is no sure way for me to check that. I had gotten a dozen ribbon and I don't see them in the feed, but there could be specific conditions to be showing them.  My questions then.   If you quit a game early, do you lose progress / XP? What if you quit on the scoreboard? Do you need to wait for the next map to load to save your progress? Any idea why the games aren't showing up? Some of them I definitely waited for the next map to load. Is there a delay for them to be shown on Battlelog?   Thanks.


The question is to find in the space $\mathrm{Mat}_{3\times 2}(\mathbb{\mathbb{R}})$ a non-zero matrix that is orthogonal to $$ A= \begin{pmatrix} 1 & 2\\       3 & 4\\       5 & 6\\ \end{pmatrix}.$$  The inner product is $\langle A, B \rangle = tr(A B^T) = tr(B^T A)$.  Any hints or clues on how to start this?


Health supplements/Vitamins bringing into Malaysia

Malaysian returning home after holiday in Australia, is there any restriction in bringing back health supplements & vitamins that we bought.


If $A^3=O$ is the matrice $A^2-A+I$ invertible?

Is the matrice $A^2-A+I$ invertible?  $A^2=A-I /\cdot A$  $ A^3 = A^2 - A$  $A^2=A$  Thus I conclude that $\lambda=0$ is one of the eigenvalues of this matrice and it isn't invertible, my conclusion comes from the fact that the eigenvalues of the matrices $A,A^2,...$ are all connected, and if $A^3=O$ that means that those two have the same eigenvalues.


I have a script that I want to run at startup and on shutdown.  I have placed the file in /etc/init.d and named it testscript.sh  Then I changed permissions sudo chmod 755 testscript.sh  Then I made link ln -s /etc/init.d/testscript.sh /etc/rc2.d/S99testscript.sh  So far so good, now the script runs at startup. I tried doing the same but making the links in rc0.d and rc6.d but that didn't work, the script still won't run at reboot/shutdown.   What am I doing wrong?  I'm running Ubuntu on putty client.


Can't install xfburn, unable to locate package

when i try to install xfburn it comes with this message:    It says, it is unable to locate package xfburn


I want to ask between the mvp and mvc  i have a two part  1.can i use a web crawler to compare mvp and mvp in performance? 2.can give an other example study case to compare mvp and mvc?


How did Hagrid retrieve baby Harry when the home was under Fidelius Charm?

After Harry's parents died, Dumbledore sent Hagrid to retrieve baby Harry from the Potter Cottage. But, the Potter Cottage was under Fidelius Charm at that time.  How was Hagrid able to locate the Potter Cottage and retrieve the baby Harry?


Midpoints of Three Straight Lines are Collinear.

In quadrilateral $ABCD$, let $AB$ and $CD$ meet at $E$ and $AD$ and $BC$ meet at $F$. Then prove that the midpoints of $AC,BD$ and $EF$ are collinear.  What I Tried:- Here is a Picture :-  First extend $GH$ to meet $CE$ at $J$. Now I applied Menelaus Theorem on whatever triangles I found suitable :- $$\rightarrow \frac{BI}{ID} * \frac{DJ}{CJ} * \frac{CL}{BL} = 1.$$ $$\rightarrow \frac{AK}{KD} * \frac{DJ}{CJ} * \frac{CH}{HA} = 1.$$ $$\rightarrow \frac{FG}{GE} * \frac{EJ}{CJ} * \frac{CL}{LF} = 1.$$ $$\rightarrow \frac{FG}{GE} * \frac{EJ}{DJ} * \frac{DK}{KF} = 1.$$ From here I got some results, like $\frac{AK}{KD} = \frac{CL}{BL}$ , but I do not know how to proceed further. Can someone help me? Thank You.


How to backup the software installed via Ubuntu Software Center?

So I used to hate Ubuntu Software Center (SC) in 14.04 and 16.04 because it was very buggy and nothing really worked. Now with 18.04 everything works perfectly and installing flatpak plugin for it opens the door to a lot more software and newer. So, snaps, flatpaks, and the other ones, SC is a great and super easy tool to find pretty much anything. I moved away from installing via the terminal as I used to, but I lack something now: I used to also backup my sources.list so when I would install Ubuntu again I could easily reinstall all of my software again. Not anymore now since I install them via SC.  My question is: how do I backup all of my installed software that is done via SC? Would love to see something as simple as "reinstall all your apps" option. SC should have such an option.  Thanks!


Can't get Diablo 3 to work on Ubuntu 14.04 LTS

I've tried launching Diablo 3 through playonlinux and it always crashes after "Retrieving Hero List"   I have the latest version of Wine and I've tried:   using the Setarch command putting "-opengl" in the arguments.    And it still crashes. I'd really like to play the game.  I am VERY NEW to Ubuntu 14.04 and any Linux based operating system so if you tell me to put in some kind of command in the terminal please if you can go into detail because I am almost clueless as to how I even get to things on here. Just a fair warning I'm a bit of a noob when it comes to Ubuntu


Passing a type instead of a value when using reflection

I'm trying to use reflection to manually build a ts file, but can't seem to figure out how to do it the correct way. I have a property which will be a list of enum class names (types). For each of these I will call a method with creates a ts file. Method creating files (start):  public static bool CreateJsonFiles<T>(object item, string filePath = null) {     try     {         var type = item.GetType();         var values = Enum.GetValues(type).Cast<T>();         if (filePath == null)         {             return false;         }   Beforehand I used the T generic parameter, by calling the function like   EnumsBuilder.CreateJsonFiles<LocatieType>($"{Server.MapPath("/")}");   The problem is that I wish to call the method for multiple value now (in an iteration). I've tried two things that both do not work:   Change generic method to remove  parameter, and use typeof(item):  var type = item.GetType(); var values = Enum.GetValues(type).Cast<type >();   This gives an error on the Cast function. Try to obtain the type of the items in the list in the iteration and try to pass this along:  public static List<Type> EnumList { get; set; }   public static void BuildEnums(string serverPath)  {     foreach (var item in EnumList)     {         var type = item.GetType();                  CreateJsonFiles<type>(type, serverPath);     }   }   This also gives an error, because this is not allowed either.   Could anyone explain me the correct way to do this?


Maximum number of threads per process in Linux?

What is the maximum number of threads that can be created by a process under Linux?  How (if possible) can this value be modified?


How do I calculate sales tax to many items?

I'm wondering how to calculate sales tax when this situation.  Item price is 14.97 and quantity is 7. Sales tax is 9%.   14.97 * 7 * 0.09 = 9.4311 = 9.43 14.97 * 0.09 = 1.3473, rounding up: 1.35 * 7 = 9.45   What's right?


Besides $3x - 1$, $5x + 1$, which variants of the $3x + 1$ problem have been proven conclusively one way or the other?

Months ago, I asked  I think it's fairly easy to adapt the arguments given in the answers to that one to prove that $x - 1$ always reaches $1$ as well.  It's also well known that $3x - 1$, $5x - 1$ and $5x + 1$ all have readily found cycles that don't include $1$. I think I also found cycles for $7x + 1$ but I seem to have misplaced the relevant notebook.  My question today is: which other variants of $3x + 1$ have been studied and proven to always or not always reach $1$? And is there a paper or a book that gathers a lot of the available research on the variants?


I am very begginer with blender, as you see when I press F to create faces it creates automaticly creases in that place only, in the upper part that I made before it made everything smooth, what am I doing wrong?


Let $G=\Bbb Z\oplus \Bbb Z$ and $H=\left$. Determine the order of the factor group $G/H$.

Let $G=\Bbb Z\oplus \Bbb Z$ and $H=\left<(2,2)\right>$. Determine the order of the factor group $G/H$.  I know that $\Bbb Z$ has infinite order. So the external direct product of $\Bbb Z$ is another group with infinite order. It follows that G has infinite order.  What about $H$, I can say that it is a subgroup of $G$.  $H=\left<(2,2)\right> = \{ (x,y) | x,y \in 2\Bbb Z \}$ So H has infinite order. $G/H$ is infinite over infinite!   Is anything wrong in my explanation? Thank you


Why is the PHP equality check only looking at the start of a string when checking against a number?

I'm wondering why this works the way it does:  var_dump(5 == "5 AND SOME TEXT");   output:  bool(true)   This same output is also achieved when comparing floats like this:  var_dump(1.234 == "1.234 AND SOME TEXT");   This must be an intentional effect since it's quite a basic thing and works in multiple PHP versions. I just don't see how this could be intended.


I've just updated to macOS 10.12 and when I try to execute srm in Terminal, it says -bash: srm: command not found.   Is srm removed? How to fix this?


Electric fields in continuous charge distribution

My question may be very basic, but I can't think of a reasonable explanation for this.  Consider a solid charged sphere. Now, we have an electric field inside the solid sphere, but at any particular point there are charges infinitesimally close to the point. As I see it, these charges should contribute to an infinite value of the electric field.  One might possibly argue that at any given point, infinitely-close charges are distributed uniformly everywhere and hence their effects cancel out. But at the surface of the sphere the uniformity of infinitely-close charges is not present and hence here we must have infinite field, but that is not the case as well! Where are we going wrong?  Also, if we think of electric field at that point in continuous charge distribution, the contribution of electric field might exist finitely from nearby charges with both charge and distance between them tending to zero, but for the very small charge present exactly there, the electric field contribution from itself must be infinite with charge being finitely small and distance being exactly 0. What's wrong here?  I have strong suspicions, is it sensible and correct to define electric fields at such a close vicinity of other continuous charges?


I followed all the instructions stated at this , but am encountering some problems with the last part of it.  I actually have version 6.22 of java and would like to update to version 6.30.  So after moving the extracted directory java-6-oracle into /usr/lib/jvm I do not know what to do, since the script that is pointed out in the answer above updates from java 5 to java 6.  For sake of clearness here is output if I do an ls in dir /usr/lib/jvm:  $ ls -l /usr/lib/jvm total 8  lrwxrwxrwx  1 root root   14 2011-07-12 15:18 default-java -> java-6-openjdk lrwxrwxrwx  1 root root   14 2011-07-12 12:19 java-1.6.0-openjdk -> java-6-openjdk  drwxr-xr-x 10 root root 4096 2012-04-12 12:06 java-6.31-oracle  drwxr-xr-x  7 root root 4096 2012-02-24 14:43 java-6-openjdk   What should I do now?    ADDED PART  Under the suggestion of @fossfreedom I ran the script anyway and actually it updated the java version.  In fact if I run command java -version output will be the following:  $ java -version java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode)   There is still a problem, if Irun javac -version it gives me the old version installed:  $ javac -version javac 1.6.0_22   And if I use the tester at this  it will tell me that version is   Java Version 1.6.0_22 from Sun Microsystems Inc.   What's going wrong?  It seems that Java Runtime Environment has updated, but Java Compiler and Java plugin for browser have not.  How can I update them?    OTHER ADDED PART  sudo update-alternatives --config java will return following output  $ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java).    Selection    Path                                      Priority   Status ------------------------------------------------------------ * 0            /usr/lib/jvm/java-6.31-oracle/bin/java     1062      auto mode   1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode   2            /usr/lib/jvm/java-6.31-oracle/bin/java     1062      manual mode  Press enter to keep the current choice[*], or type selection number:   these makes sense with the fact that JRE is correctly updated to version 6.31, issues are on Java Compiler and Java browser plugin.  Any ideas?


Suddenly having a problem with out of focus or very very soft images.   Doesn't matter if I use a Canon 50mm f/1.8 or a Sigma 70-200 or 24-70.   I'm guessing user error or camera.   Example image from a Canon 6D 50mm Canon f/1.8 lens, ISO320, f/3.2 1/200.   Using back button focus, seems to focus fine and then I look at the image, zoom in and it's terrible.   What in the world could be the problem?    I would think a shutter speed of 1/200 for a 50mm shouldn't produce camera shake?


hello guys I want ubuntu 14.04. Anybody can give me a download link please? since in order to install one software named 'kalipetty' i need ubuntu 14.04. while installing on 17.04 it is showing ' your os is not supported'. please help


Understanding quotients of $\mathbb{Q}[x]$

In general, I struggle working with quotients of polynomial rings, so I was hoping someone might be able to help with the following exercise:  Show that $\mathbb{Q}[x]/(x^2-2x)$ is isomorphic to $\mathbb{Q}[x]/(x^2-1)$, but the latter is not isomorphic to $\mathbb{Q}[x]/(x^2)$.  Mostly I want to understand what these quotients all "look like." We did few examples in class and few homework problems with such quotients, and the ones we do work with are much simpler (typically involving $\mathbb{Z}_2$ or $\mathbb{Z}_3$ or $\mathbb{R}$ instead of $\mathbb{Q}$). Any help is appreciated, thank you!


I have a circuit which has an input of voltage of the order of micro. I want to convert it into volt order. I am using an instrumentation amplifier AD620 with gain of 1000 to first convert it into milli order. And then I am using TL084cn as a comparator whose one input is the milli order voltage and the other is grounded. The +Vcc and -Vcc is 10 V. Also the frequency of operation is between 8-40 Hz. The question is that theoretically this is possible but before I implement it practically I would want to know whether I could face some issue for such sudden abrupt change in the order of the voltage.  Also, keep in mind please that I don't actually care about the shape of the signal cause in my project the information is in frequency and not in amplitude.


I am confused on how to think about potential energy stored in capacitors

Energy stored in capacitors is represented by $$U = \frac{1}{2} QV$$ Now I have heard 2 reasons why there’s a half factor, unlike the general potential energy equation, which is $U = QV$.  Capacitors should’ve stored $QV$ amounts of energy. But, because electrons are being pushed to a negative plate, and electrons are being pulled off from an increasing positive plate, work is being done and half of $QV$ is needed to do work. The remaining half is the energy stored in capacitors. When you are discharging a capacitor, voltage keeps on decreasing as charge keeps on decreasing. As a result, energy keeps on decreasing and the sum of the energy transferred happens to be half of $QV$.  I don’t really know what’s the correct way to approach this. Both sound equally valid to me.


What are the available attributes in the attribute node?

What are All the attributes I can access through the attribute node. I know of a few like density, flame, a UV map etc, but I'm curious as to what else there is.


Which clock will dilate when one is moving towards the other

Suppose two children are standing 100m apart one of them starts running towards the other with relativistic speed...which clock would be slower?  Note- I thought this was similar to the twins paradox but according to the solution i found for the paradox some time is unaccounted because of change in velocity....this is obviously not the case here


How to install the MPEG-4 AAC decoder and the H.264 decoder?

Where do I get the MPEG-4 AAC decoder, and the H.264 decoder.  How to install them and play the multimedia?


Solve: $x^x = x\quad (*)$ I can only solve it when $x > 0$ $(*)\Leftrightarrow \ln(x^x) = \ln x$ $\Leftrightarrow x\ln x - \ln x = 0$ $\Leftrightarrow \ln x(x -1) = 0$ Then $x = 1$ How can I solve it with $x \leq -1$ ? If it's possible, please show me how to find its domain also. Thank you for helping!!!


Bijection which preserves convergent series

Does there exist a bijection $f: \mathbf{N} \to \mathbf{N}$ such that $$ \forall A \subseteq \mathbf{N}, \quad  \sum_{n \in A}\frac{1}{n}<\infty \Longleftrightarrow \sum_{n \in A}\frac{1}{\sqrt{f(n)}}<\infty\,\,? $$


how can I find out the general solution of Jensen's functional equation?   The Jensen's functional equation is :  $$ \frac{f(x)+f(x^{\prime})}{2}= f(\frac{x+x^{\prime}}{2})$$  I need the general solution, i found something on $\mathbb{Q}$ but i need general, so i need te proof


Hot and Week tabs not shown to non-logged in users (except on SO)

Visiting a SE site without logging in, one can no longer access the tabs Hot and Week (except on StackOverflow). I believe this change hides the feature from those most likely to use it: casual, but repeated, visitors. A number of people visit SE sites such as Travel or Mathematics just to read the content. They have no intention to post, and consequently, no reason to register. It makes little sense to hide the Hot and Week lists from them.   I propose that the tabs  ... Hot | Week | Month should again be made visible to anonymous visitors on SE sites, as they are on StackOverflow.


What should be the resolution of images in 24ft x 5ft Banner?

Please tell me the various resolution in different sizes.


Should I have used "is" or "are" when telling a friend "Jennifer and Amy is going"?

Its all in the title. I messaged a friend on Facebook the other day. I told him "Jennifer and Amy is Going" Should I have used are or is?


Is it possible to send mail to other domain without ssl authentication?

we are using Postfix 2.11.3 on Ubuntu 15.10  Here is configuration file:  smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)   biff = no   append_dot_mydomain = no   readme_directory = no   smtpd_use_tls=yes   smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache   smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache   myhostname = server.ip-5.ru   alias_maps = hash:/etc/aliases   alias_database = hash:/etc/aliases   virtual_alias_domains =  virtual_alias_maps = hash:/etc/postfix/virtual   myorigin = /etc/mailname   mydestination = $mydomain   mynetworks = 0.0.0.0   mailbox_command =    mailbox_size_limit = 0   recipient_delimiter = +   inet_interfaces = all   inet_protocols = ipv4   home_mailbox = Maildir/   soft_bounce = yes   header_checks = regexp:/etc/postfix/header_checks   smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination,permit   smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,permit     Now, I send mail to local user from local user inside our domain "ip-5.ru" The send and delivery is successful. name@ip-5.ru -> other@ip-5.ru  If I send mail to local alias connected to remote mailbox, it is also succeessful. name@ip-5.ru -> other@ip-5.ru -> name@gmail.com    The problem come, when I send mail from local user to remote mail box in gmail.com. name@ip-5.ru -> name@gmail.com    I get:   NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 454 4.7.1 <name@gmail.com>: Relay access denied; from=<name@ip-5.ru> to=<name@gmail.com> proto=ESMTP helo=<[yy.yy.yy.yy]>   I read that we need use SSL for get relay privileges... So why I can relay via local alias? The problem that SSL is very hard for configuration now... I tried to configure it and get much errors...    I want put your attention, that user names and passwords are provided for SMTP authentication, so my server isn't target for spam and unlimited relay, I just want find some way around SSL!  Is it possible to send from local mailbox directly to remote without making alias and without SSL?


Can a laptop with a Core I5-7200U be limited to 16GB RAM max?

I recently bought a new laptop, a HP ProBook 430 G4 with an Intel I5-7200U CPU and 8GB RAM. The laptop has two RAM slots and was delivered with a single 8GB 2133 MHz / PC4-17000 SO-DIMM. I've upgraded it to 16GB with a second 8GB SO-DIMM. The specs for this laptop say that it can be upgraded to 16GB, but other laptops with the same CPU and chipset can be upgraded to 32GB.  So, if the chipset and CPU support 32GB RAM, can the motherboard limit this to 16GB max? I haven't opened the laptop to look at the motherboard, and I haven't found the motherboard specified yet. What else may HP have done to limit the maximum supported RAM of this laptop to only 16GB? Both the RAM slots are available, so I can easily replace both units with single 16GB SO-DIMMs.  I haven't got two 16GB SO-DIMMs available to try, has anyone else tried?


I am just starting with Java and I have a baffling problem. I have a short piece of code, and somehow my IF statement is skipped over. Here it is:  import java.util.Scanner;  public class helloworld {  private static Scanner s;  public static void main(String[] args) {      s = new Scanner(System.in);      //Question what's your name + validation         System.out.println("Hello guy, What's your name?");         String name = s.nextLine();         System.out.println("Are you ok for " + name + "? (answer by yes or no)");          String ok = s.nextLine();  // capture ok response and print to screen to show that value is read         System.out.println(ok);   // below is ignored!                 if(ok=="no")                 {                 System.out.println("What do you mean? You don't know your name? Bye!");                 }                  if(ok=="yes")                 {                 System.out.println("thank's " + name + "I have a question...");                     System.out.println("Is my first program good?");                         String goods = s.nextLine();                                 //validation question programme                             if(goods=="no")                             {                                 System.out.println("so i will update my performance!");                             }                             if(goods=="yes")                             {                                 System.out.println("thank you for your answer guy! ;-)");     }                }                    } }   Even when I reply "no" , the IF statement is not executed, but the response is captured and shown on screen; Can someone help me with that IF statement,  Thanks!  T


Is it feasible to start writing a question and SE could find which forum is best for the question?

I had questions on several different topics like computer progrtamming, geogrphy, history, english, music etc. Could it work with some tool that can help me find the most suitable sub-site for a question based on content?


I've tried to search whether I should use "outshined" or "outshone".    My spellcheck underlines "outshined", but dictionary.com suggests I can use either.  Which one should it be?


I'm using a dual-booted system with Win10. However, every time I log in I have to go and mount the partitions from Nautilus.  I've been looking through some ways to automate this at bootup but some methods are too complex. I've been through this  but it seems too complicated and also tends to use sudo at times.    I'm wondering if I can just click at a drive and mount it without sudo, can I do the same with a script?


C++ linker error - cannot see why its not linking? (full complete code example included)

This is my code and I am getting a linking problem on the constructor:  #ifndef LOCKFREEQUEUE_H #define LOCKFREEQUEUE_H  #include <atomic> #include <memory>  template<typename T> class lock_free_queue {     private:         struct node         {             std::shared_ptr<T> data;             node* next;             node():next(nullptr){}         };          std::atomic<node*> head;         std::atomic<node*> tail;          node* pop_head()         {             node* const old_head=head.load();             if(old_head==tail.load())             {                 return nullptr;             }             head.store(old_head->next);             return old_head;         }          lock_free_queue(const lock_free_queue& other);         lock_free_queue& operator=(const lock_free_queue& other);      public:         lock_free_queue();         ~lock_free_queue();         std::shared_ptr<T> pop();         void push(T new_value); };   Source file:  #include "lock_free_queue.h"  template<typename T> lock_free_queue<T>::lock_free_queue(const lock_free_queue& other) { }  template<typename T> lock_free_queue<T>& lock_free_queue<T>::operator=(const lock_free_queue& other) { }  template<typename T> lock_free_queue<T>::lock_free_queue():head(new node),tail(head.load()) { }  template<typename T> lock_free_queue<T>::~lock_free_queue() {     while(node* const old_head=head.load())     {         head.store(old_head->next);         delete old_head;     } }  template<typename T> std::shared_ptr<T> lock_free_queue<T>::pop() {     node* old_head=pop_head();     if(!old_head)     {         return std::shared_ptr<T>();     }     std::shared_ptr<T> const res(old_head->data);     delete old_head;     return res; }  template<typename T> void lock_free_queue<T>::push(T new_value) {     std::shared_ptr<T> new_data(std::make_shared<T>(new_value));     node* p=new node;     node* const old_tail=tail.load();     old_tail->data.swap(new_data);     old_tail->next=p;     tail.store(p); }   Main:  #include "lock_free_queue.h"  int main(){     lock_free_queue<int>* my_queue = new lock_free_queue<int>();     my_queue->push(3);     return 1; }   Linker error:  Main.obj : error LNK2019: unresolved external symbol "public: __cdecl lock_free_queue<int>::lock_free_queue<int>(void)" (??0?$lock_free_queue@H@@QEAA@XZ) referenced in function main Main.obj : error LNK2019: unresolved external symbol "public: void __cdecl lock_free_queue<int>::push(int)" (?push@?$lock_free_queue@H@@QEAAXH@Z) referenced in function main   I can't see why these aren't linking?


Combinations between one element of each list of combinations

I have about 12 lists [a, b, c, ... , z] with arbitrary elements and i´ve got a series of combinations through itertools.combinations(iterable, n) resulting in lists of combinations that match each of the original list.   The great deal now is to get a list with all the possible combinations, picking one element(combination) of each combinations list.  One simplified exemple would be:  A = [a,b,c] B = [d,e,f] C = [g,h,i]  my_iterable = [A, B, C]   And the output should be:  >>> foo(my_iterable) (a,d,g), (a,d,h), (a,d,i), (a,e,g), (a,e,h), ... , (c,f,i)   The input iterables, e.g. 'A, B & C', may have variable lengths and foo() may be a generator function.


Can a script modify an environment variable of its calling shell?

I am setting my JAVA_HOME in my ~/.bashrc file.  Now, I need to create a script that will change the JAVA_HOME just for the current terminal, so that I can start an app that needs java 5.  I have created this script to do this task, but after finishing, I can see that JAVA_HOME is not updated  export JAVA_HOME=/usr/lib/jvm/java-5-oracle/ export PATH=$PATH:$JAVA_HOME       Here is the result  $ ./javaHome5.sh $ echo $JAVA_HOME /usr/lib/jvm/java-6-oracle/   I think that the reason this is not being applied, is that a script is executing in it's own terminal, so when the script ends, the current terminal will not be affected.  Currently, the only way I've found around this is:   Edit my ~/.bashrc and change the JAVA_HOME var Run source ~/.bashrc to apply the changes in current terminal. Which again cannot be applied in a script, as the source command needs to be run in the current window.   Needless to say, this change applies to all new terminal windows, so I practically need to do this twice: One before starting my app, and one more time right after this, just to restore the environment vars to their default. That's not really convenient.  Do you have any ideas how can I change this var using a script?


Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 points using their coordinates and a DEM input. This is very time-consuming so is there is a quicker more efficient algorithm which would allow me to input the whole vector file for the point data to simultaneously output the upslopes for all the points at once?


Why is it that whenever I decide to answer some question on Stack, some of the questions do not pop answer box for me to contribute in the solution? Do I need reputations even to answer a question!!


I have a valid uk visit visa that will expire in 2020 , will i be able to visit the uk for 6 months and return back to my home country then after a month visit the uk again for another 6 months and so on?  My husband is a british citizen so i am staying with him for 2 years visa and i am planning to return to my country every  6 months but the question is that i heard that i can stay only for total of 6 months the whole two years..   Can someone confirm pls?


I fitted lasso regression to "diabetes" data from Efron paper (2004).  I had the plot of the coefficients path, but how to know which the best model from this fitting/plot?


Global inbox message not updated after comment edit

At the moment, I have the latest notification in the global inbox, content of which does not correspond either to the comment itself or the copy of it on "recent responses" page. This seems like the comment was edited and the updated version was not copied to the global inbox.    ETA: OK, now this looks more coherent.