Find the integers $n$ and $m$ that satisfy this equation:  $$ n^2-m^2=28 $$  I tried to use ideas of diophantine equations, but it goes to something too complicated for something found in a textbook.


Get total amount of time between records when changed state

I have a table, showing the status (healthy, broken) for each device at a given timestamp. I need to get the total amount of time of a whole breakdown.  So the data is stored like this:  device_owner   device_id    timestamp          status owner1         device_1     2001-01-01 09:00   0 owner1         device_2     2001-01-01 09:15   0 owner1         device_1     2001-01-01 09:30   1 owner1         device_2     2001-01-01 09:45   1   and so on.  The example above shows    device_1 was down from 09:00 to 09:30 (total 30 mins),   device_2 was down from 09:15 to 09:45 (total 30 mins)   What I need  Need to calculate the total amount of time for the whole breakdown for owner_1 will be 45 mins (from 09:00 to 09:45) instead of 60 mins (30 + 30).  device_owner   total_breakdown_min owner_1        45   What I've done  Currently I can define a breakdown time for each device separately (device_1 = 30mins, device_2 = 30mins). For this I transformed the table using LEAD over partition by device_owner, device_id and date part from timestamp:  device_owner  device_id     timestamp        status lead_timestamp   lead_status owner1        device_1     2001-01-01 09:00   0     2001-01-01 09:30     1 owner1        device_1     2001-01-01 09:30   1     NULL                 NULL owner1        device_2     2001-01-01 09:15   0     2001-01-01 09:45     1 owner1        device_2     2001-01-01 09:45   1     NULL                 NULL   So the datetime difference between timestamp and lead_timestamp in sum gives me the total breakdown time for a device.  ;WITH LeadStatus AS (     SELECT         D.*,         lead_status = LEAD(D.status) OVER (PARTITION BY D.device_owner, D.device_id, D.date ORDER BY D.datetime ASC),         lead_timestamp = LEAD(D.datetime) OVER (PARTITION BY D.device_owner, D.device_id, D.date ORDER BY D.datetime ASC)     FROM         #DeviceStatus AS D ) SELECT * FROM LeadStatus   It is the same device list for any owner. The data snapshot is to be taken between 2 dates (StartDate, EndDate). The records are written to a DB each n seconds and also when the device status changes.


multiple figure environments spanning across page

I am using the IEEEtran package and have three figures A,B,C which are propper figures (\begin{figure}...\end{figure}) containing pgfplots. I now want to display A,B,C next to each other spanning the page:  +-------+ | A B C | |.......| |.......| |.......| +-------+   I cannot remove the figure environment from either of the figures as they all need different captions and different labels  As a working example:  File test.tex  \documentclass[conference]{IEEEtran} \pagestyle{plain}  \usepackage{multicol} \usepackage{pgfplots} \usepackage{tikz}   \begin{document}  \begin{figure*}[t] \begin{minipage}{0.33\textwidth} \centering \input{fig-test} \end{minipage} \begin{minipage}{0.33\textwidth} \centering \input{fig-test} \end{minipage} \begin{minipage}{0.33\textwidth} \centering \input{fig-test} \end{minipage} \end{figure*}  \end{document}   File fig-test.tex  \begin{tikzpicture} \begin{axis}[ xlabel={X}, ylabel={Y}, legend style={cells={align=right},at={(.5,0.975)}}, legend columns=1,     ymin=0,     ymax=1.1,     legend columns=1,     xmin=0.9,     xmax=1, ] \addplot[line width=1] table {./general-test.txt}; \legend{A,B,C,D,E} \end{axis} \end{tikzpicture} %} \caption{This is a caption.} \label{fig:reduce-type}   File general-test.txt  Stable  number 0.242   0.1 0.900   0.1 0.905   0.1 0.910   0.1 0.915   0.1 0.920   0.1 0.925   0.1 0.930   0.1


Failed to fetch ... Hash Sum mismatch. tried rm apt/list but didn't work

as you saw on the title, I got the "Failed to fetch... Hash Sum mismatch" Error. I have tried this method:  sudo rm -rf /var/lib/apt/lists/* sudo apt-get update   But it didn't work. I still got the same error.  Err http ://vn.archive.ubuntu.com trusty-updates/universe amd64 Packages Get:99 http ://vn.archive.ubuntu.com trusty-updates/universe amd64 Packages [1,789 B] Get:100 http ://vn.archive.ubuntu.com trusty-updates/main i386 Packages [1,789 B] Fetched 28.3 MB in 5min 15s (89.8 kB/s)  W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/source/Sources  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/i18n/Translation-en  Hash Sum mismatch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/i18n/Translation-en  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.   Please help! Thank you a lot!


In QGIS print composer, pdf in CMY/RGB, dosen't show correct colore after print

By color setting in QGIS, I can only set RGB color but not CMY, so I've taken the cmy color from FreeHand, converted to RGB in Adobe Photoshop. Then exported the map as PDF (in QGIS). Before printing this PDF, I've controlled the color using of Adobe Photoshop, it shows me wrong cmy. Is this the problem with a printer or it is possible to get correct cmy or rgb color before print?


How do you get the current process ID in Mac kernel extension code?

I was initially trying to use getpid() in my kernel module for OS X/macOS, is there a way to get the PID (process ID) of the process in whose context my kext is running in the kernel? Is there an existing function or variable that I can use ?


I have an executable. I want to execute the executable in terminal with name only like other commands.  I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work.  What is better?  Is there  any difference?


I am a windows user and I am new to ubuntu. I use rufus on windows to create bootable usb drives from iso images of oses. What is a good ubuntu software for doing that?  Link to rufus:


How do I send HTML email using linux 'mail' command?

mail -s "subject" xxxxx@gmail.com <test.html works, but only for plain text email.  What is the correct way to send HTML email using the Linux command mail?


I'm making pdf bookmarks with hyperref and cleveref packages. However, the pdf bookmarks show the label I defined, rather than the theorem name the label refers to. Here's the code:  \documentclass{article}  \usepackage{hyperref} \usepackage{cleveref}  \newtheorem{theorem}{Theorem}  \begin{document}  \section{Section 1} \begin{theorem}\label{some label}     This is a theorem. \end{theorem}  \section{Proof to \Cref{some label}}  \end{document}   And here's the pdf:   Any idea how to change the label to "Proof to Theorem 1" instead of "Proof to some label"?


What's the correct way to place theorems and pictures side by side?

Okay so I have a definition using the amsthm theorem environments, and a tikzpicture which I want to see side by side. The material inside the definition is not too big, so I expect the final height of the two to be about the same. wrapfig does not work inside the definition environment because it's a list. I could not get cutwin to work, it puts the picture right after "Definition." and the text below.  Then I tried tabularx (tabular gives me some missing \item error) which seems to approximate what I want the best, but somehow places the two on different rows, even though the code is like the following:  \documentclass{article}  \usepackage{tabularx,amsthm,tikz} \newtheorem{definition}{Definition}  \begin{document}  \begin{tabularx}{\textwidth}{X r} \begin{definition} Blah blah blah  \end{definition} & \begin{tikzpicture} \draw (0,0) grid (1,1); \end{tikzpicture}\\ \end{tabularx}  \end{document}   Is there a good way of doing this?   (P.S. I'm not sure what tags are appropriate for this.)


Does a Filipina need a transit visa for South Korea?

I'm a Filipina going home to the Philippines this coming April 27 by Jeju Air via Muan (MWX). Do I need a transit visa?


How can I use Touch ID for messages like this?


Why can't The Doctor save his own planet from destruction?

Once The Doctor told Rose that his planet was destroyed before its time. They were at war. He was emotional too just to show how much he missed his planet.  The Doctor is a Time Lord but he didn't talk like a Time Lord. Why can't he save his planet from destruction before time?


I'm having a little issue, I can't go for bash v.4 I'm stick to use bash 3.2.57. I'm inputting my script in this form logs_logs_2017-04-{02..06}.tar.bz2 but since bash 3.2.57 doesn't support brace expansion with leading zeroes the script is feeded with the following logs_logs_2017-04-2.tar.bz2 logs_logs_2017-04-3.tar.bz2 ..... and these file names don't exist.  Any idea ?  Thanks !


I have one function some where in the code as i specify below  $(function () {    function triggerSortable() {              //Here is some some code    } });   Now inside   $(document).ready(function () {  triggerSortable(); });   I have tried to call the function but is shows me below error.  Uncaught ReferenceError: triggerSortable is not defined


Contact Us works on local machine, but not on bluehost.com

How can I track down why an email is not generated from my new web site when I click Contact on the Contact page?  I turned on maillog and devel. What I get is      maillog =>         ... (Array, 6 elements)  ... (Array, 6 elements)  Subject (String, 23 characters ) [Website feedback] test From (String, 22 characters ) sam.stamport@gmail.com To (String, 22 characters ) sam.stamport@gmail.com Reply-To (NULL) Header (Array, 7 elements) Body (String, 128 characters ) admin (http://columbiablooms.org/users/admin) s...      Krumo version 0.2.1a | http://krumo.sourceforge.net     [Click to expand. Double-click to show path.] Called from     /home5/columck5/public_html/sites/all/modules/maillog/includes/maillog.mail.inc     , line     90  Your message has been sent.   Error message:     Unable to send e-mail. Contact the site administrator if the problem persists.


Aligned, hanging indents in non-monospaced code

I want to typeset a piece of code containing line breaks.  New lines should indent to a specified point in the previous line.  Here is a monospaced example to illustrate what I mean.  Notice how 'case' and 'of' line up below, as well as 'let' and 'in':  swap : forall a, b. Tuple a b -> Tuple b a swap a b x = case x              of tuple a b y z. let x' = tuple b a z y                                in x'   The code I want to typeset is not monospaced, so I can't just use a verbatim environment to get what I want.  The actual LaTeX of the first line, for instance, is  \mathsf{swap} : \forall\alpha,\beta.\;\mathsf{Tuple}\;\alpha\;\beta\to\mathsf{Tuple}\;\beta\;\alpha   How can I align some text to a specific point in the previous line?


Comments with specific emoji combination breaks the iOS App when viewed

A comment with many emojis breaks the iOS App [blank screen & Request Failed] when viewed.  I'll attempt to recreate the scenario in this question.  Done. This question can no longer be viewed from the iOS app.     In the comments below, a user posts 2 comments with emojis:   The first emoji comment includes spacing that avoids certain breaking of specific emojis. This case does not break the app.  The second emoji comment does not include these spaces, and results in unusual behavior, while breaking the iOS app:     The difference is likely the key to figuring out the bug.


Is there any way to change windows scaling in Ubuntu 17.10 just like in the other versions? May be a terminal command?


How can I change the icon of an application in the Unity launcher?

I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.  I can change the theme but that's not what I want.   I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.


After upgrade from Xenial to Bionic and after first restart, no letters in any window. How can I fix it? Thanks for your help.


Find the last $3$ digits of $13^{1201}$.

I believe I am supposed to use a mod in this problem. I am unsure exactly how to do so. Help would be much appreciated and thanks in advance!


I have Windows XP and Ubuntu 12.04 on my laptop.  I've had XP on the laptop for years, and installed Ubuntu 12.04 a few months ago.  For some reason, Ubuntu 12.04 has stopped working.  When I power on the laptop, I get the GRUB menu, and I can select Windows XP or Ubuntu 12.04.  If I select Windows XP, it boots up perfectly and I can use it as normal. However, if I select Ubuntu 12.04, It just displays a terminal type blank screen with no text except the blinking cursor, but no commands execute if I try typing something in.  How do I fix this so I can boot back into Ubuntu 12.04?  I know I can try a reinstall, but I don't want to lose the files I have in Ubuntu 12.04.  Is it possible to somehow do a repair?


Update all related records when a record is updated

Use Case: If I update a Agreement record ,then all the related Agreements to be updated with Termination Date on Parent agreement record.  On Agreement we have Relationship from and Relationship To Related list. This is nothing but Related agreement records and these are Related Agreement object. Where we have Relationship from and Relationship To Lookup fields. Relationship from is the parent agreement record and Relationship To is child Agreement Record.  If Update Parent agreement(Relationship from) then on Relationship To agreement(child agreement) should be updated with same Termination date field value on Parent.  I have this trigger  am getting records for Related Agreement record. But line no 11 gives null value for Termination Date.  Class:  public class TerminationDate {     public static Boolean isFirstTime = true;    }   This is the  trigger . Related agreement query returning records but @11 getting null value for Termination Date.            if(TerminationDate.isFirstTime){         TerminationDate.isFirstTime = false;          Map<Id,Date> acc = new Map<Id,Date>();         for(Apttus__APTS_Agreement__c a:Trigger.New)    {     if(a.Apttus__Status_Category__c=='Terminated') {         Apttus__APTS_Related_Agreement__c ar=new Apttus__APTS_Related_Agreement__c();         acc.put(a.id,ar.Apttus__APTS_Contract_From__r.CLM_Agreement_Termination_Date__c);         system.debug(acc);     } }    List<Apttus__APTS_Related_Agreement__c> relagrmt=[select id,Name,Apttus__APTS_Contract_From__r.id,Apttus__APTS_Contract_To__r.id,Apttus__APTS_Contract_From__r.CLM_Agreement_Termination_Date__c,Apttus__APTS_Contract_To__r.CLM_Agreement_Termination_Date__c,Apttus__APTS_Contract_To__r.Name from Apttus__APTS_Related_Agreement__c where Apttus__APTS_Contract_From__c in: acc.keyset()];          for(Apttus__APTS_Related_Agreement__c ag:relagrmt){            ag.Apttus__APTS_Contract_To__r.CLM_Agreement_Termination_Date__c=acc.get(ag.Apttus__APTS_Contract_From__r.id);             update ag;             system.debug(ag);               }      }  }


Can't access wireless network after modify /etc/network/interfaces - Ubuntu 15.10

I have just installed Ubuntu 15.10 on my PC and I want to reconfigure network interfaces. I added /etc/network/interfaces file as follows:  auto wlan0 iface wlan0 inet static     address 192.168.1.4     netmask 255.255.255.0     gateway 192.168.1.1   However, after change, I restart network-manager service, my network interfaces not working:     But when I delete the above script, everything is fine. Anyone have problems like me?  PS: I can't also find /etc/udev/rules.d/70-persistent-net.rules. Where is it?


Find the eigenvectors and eigenvalues for this linear operator  $A:M_{n\times n }\mapsto M_{n\times n}$ defined with $A(X)=X^{T}$  How does the matrix of this linear operator look like?


Why destructor is not called on exception?

I expected A::~A() to be called in this program, but it isn't:  #include <iostream>  struct A {   ~A() { std::cout << "~A()" << std::endl; } };  void f() {   A a;   throw "spam"; }  int main() { f(); }   However, if I change last line to   int main() try { f(); } catch (...) { throw; }   then A::~A() is called.  I am compiling with "Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86" from Visual Studio 2005. Command line is cl /EHa my.cpp.  Is compiler right as usual? What does standard say on this matter?


Interpreting Residual and Null Deviance in GLM R

How to interpret the Null and Residual Deviance in GLM in R? Like, we say that smaller AIC is better. Is there any similar and quick interpretation for the deviances also?  Null deviance: 1146.1  on 1077  degrees of freedom Residual deviance:  4589.4  on 1099  degrees of freedom AIC: 11089


Why do my objects have white dots on them?

What are these dots and how can I remove them?    I am using version 2.79b.


I am really struggling with my proofs class, I don't really understand how to prove a statement like this, or what the epsilon is standing for..  Suppose that $(s_n)$ converges to s.  Prove that $(s_n^2)$ converges to $s^2$ directly without using the fact that $lim(s_nt_n)=st$  Suppose that $(s_n)$ converges to s. Then, since $(s_n)$ is convergent, there exists an $M_1$ such that $|S_n|<M_1$, for all $n\in \!\,\mathbb{N} \!\,$. Let $M=M_1+|S|$ (I don't completely understand this step...). Then given $ε>0$, there exists N such that n>N implies that $|s_n-s|<ε/M$. Thus for n>N, we have $|s_n^2-s^2|=|s_n-s|*|s_n+s|<(ε/M)(M)=ε$. Hence, $s_n^2$ converges to $s^2$.


Omnikey is a very useful Safari extension that allows searching user-selected webpages by entering user-selectable keys preceding the search term. For example, entering "w Los Angeles" in the Safari address bar on my computer and pressing return opens a new Safari window in Wikipedia that's searching for "Los Angeles." This is both easier and faster than navigating to the page you wish to search, entering the search term, then hitting return.  Here's a screenshot of the searches I've added to Safari on my Macs:    Unfortunately, Omnikey doesn't work with Safari 13.  Omnikey is very useful. Are there any other Safari extensions that provide the same functionality?


Suppose $X_{n}^{(1)}$ and $X_{n}^{(2)}$ are martingales w.r.t. a filtration $F_{n}$. I have do determine whether $Z_{n}=e^{X_{n}^{1}+X_{n}^{2}}$ is a martingale, submartingale or supermartingale. I thought that because $X_{n}^{1}+X_{n}^{2}$ is a martingale I can use Jensen to say that $E[Z_{n}|F_{n-1}]\geq e^{E(X_{n}^{(1)}+X_{n}^{(2)}|F_{n-1})}=Z_{n-1}$. But I have to check whether $Z_{n}$ is integrable and I don't know how.


Partition Type: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF no backup

trying to delete a disk partition, the disks utility has given an error and now the Macintosh HD volume was not in APFS.  But of course, being different, does not match anything with mine. It also seemed to me that the information would not be lost, since it is still in the partition this is badly done  I attach a photo.


Searching for some help with this exam review proof. If we let $x$ be a eigenvector for $Q$, that is, a non zero vector satisfying $Qx=cx$ for some scalar $c$. How do I show that $c= \pm1.$   EDIT: $Q$ is a matrix with orthonormal columns


The difference between various typedefs of structures

i was wondering as to what is the difference between these two definition of structures one having the structure name(Books) and its instantiation(Book) while the other has only the instantiation(complex).


I currently have a successfully created a login following my recent post -   I've encrypted the password, but unsure on how I can offer protection from SQL injections, could anyone please offer some suggestions or resources on how I can protect my script please ?   $user = stripslashes($user); $pass = stripslashes($pass); $password = md5 ( $pass ); $sql = "SELECT * FROM members WHERE email='$email' AND password='$password'";  $result = mysqli_query( $connect, $sql);  $row = mysqli_fetch_array($result);  if(!$row){          echo "Incorrect Username or password";      }     else{         echo "Logged in";     }   mysqli_close( $connect );


I am learning about setuid and setgid where the user executing the script will inherit the owner's permission while running the script. To test this, I created a bash as user fiverr in /home/fiverr/test.sh with permision 4755.  rwsr-xr-x 1 fiverr fiverr 39 Dec  6 13:47 /home/fiverr/test.sh   It contains the following:  #!/bin/bash touch /home/fiverr/raza.txt   I logged-in as me (raza) and try to execute it but I get permission denied. How come?  touch: cannot touch ‘/home/fiverr/raza.txt’: Permission denied


Do magic items replenish at dawn even if, in your current place, there is no such thing as dawn?

There are many magic items with charges that replenish at dawn. However, there are places where there is no dawn, like in the Feywild.  I'd think this way of phrasing it was only meant to make sure it restored once per day. But you could argue that since it's specifically phrased to be at dawn, it doesn't restore in the Feywild.  Do they actually replenish at some point if there's no dawn, or will they not replenish at all?


Assume that $(\text{X}, T)$ is compact and Hausdorff. Prove that a comparable but different topological space $(\text{X},T')$ is not.

Say that a topological space is CH if it is both compact and Hausdorff.   Let $T$ and $T'$ be two topologies on the same set X that are comparable   but different, i.e., $T$ is either strictly smaller or strictly larger than $T'$.   Assume that $(\text{X}; T )$ is CH. Prove that $(\text{X}; T')$ is not CH.   I just can seem to get started, so I was wondering if anybody could give me a hint...  If $T' \subsetneqq T$, then the identity $id: (\text{X},T) \rightarrow (\text{X}, T')$ is continuous and surjective. This implies that $id(\text{X},T) = (\text{X},T')$ is also compact. So in order to show that $(\text{X},T')$ is not CH, I need to show that it is not Hausdorff, right? But I'm stuck...


I want shots of the night sky with my Nikon D5600. Even in bulb mode and on manuel, and on a tripod, I can’t get the shutter to open. I just get that annoying “subject is too dark” message! I set focus to infinity, but still no shot!


We're trying to track down a performance issue in our PostgreSQL database. We suspect of some under-performing queries, but which? Is it possible to find the most popular queries being executed on the database? What about their performance, how long they're taking? It's PostgreSQL 11, hosted in Google Cloud's CloudSQL.


The railway station is far away.    Where is the adverb here, and what does it modify? My answer was "away", but I am not quite sure if it's correct.  I am also confused by      I would rather wait   as i don't know what "rather" modifies.


I voted to close as a dupe/too localized and then answered the .   My solution is correct, It got +1/-4 but OP accepted it. the comments on my answers are saying you should not answer a dupe, or you answered and closed, so that I will earn points. Few thinking as answer is incorrect so got downvotes.  Now I want to delete the answer, I commented and asked OP to un-accept but he is not doing so, can I flag it to moderator?


How to store the tree based hierarchical data in [mysql] DBMS?

User Groups:  user 1 creates users 2,3,4.  user 2 creates users 5,6,7.  user 6 creates users 8,9,10,...etc  finally, user 1 can manage all users. and 6 can manage 8,9,10.  I am planned to store like this,  user - created_by  2   -        1  3    -      1  4    -      1  5    -      2      is this correct way of store data in MySQL database? anybody can help me to improve this database structure. Thank you.


Check or falsify: there is a $C^\infty$ surjective map $S^1 \to S^1 \times S^1$.

Check or falsify: There is a $C^\infty$-map  $S^1 \to S^1 \times S^1$ that is surjective.  Comments: I think it's not true, because $\dim S^1 = 1$ and $\dim S^1 \times S^1 = 2$ but I do not know how to justify.


standardized coefficient interpretation in logs from beta function

How can I interpret the beta regression from regressing lny on lnx, or lny on x etc. For example in Stata I make this regression using beta function: reg lny lnx z t, beta robust  this gives me usual coefficient estimates which can be interpreted as elasticity, but it also gives standardized betas.  I know for a regression of y on x, the standardized betas are interpreted as a one standard deviation of x from its mean have a beta standard deviation change in y, for example:  reg y x z t, beta robust  But what happens if variables are lny and lnx form? How does it relate to usual elasticity interpretation in log-log regressions?


Update Javascript Object only if there is a change

I have a javascript object on my DB, its personal data, this is the structure: const storedUserData = {       name: "John",       sirname:"Doe",       phone: "666-666-66666",       streetName: "Fake Street",       streetNumber: "123",       zipCode: "90125" }  and I have a separate object, which has the same structure, which basically is on the front end, and its the result of reading form data. const formData = {       name: "John",       sirname:"Doe",       phone: "666-666-66666",       streetName: "Fake Street",       streetNumber: "123",       zipCode: "90125" }  Basically, when the user clicks submit I want to check if there are differences between the stored object storedUserData, above, and the new object, formData. If there are differences, save the differences to the DB. Of course, I could go on like this for each property, since there are few: if(storedUserData.name !== formData.name) {    pushDataToDb() }  but its the lazy approach, and I want to do it correctly. I've been reading into object keys, but I cant figure it out. How could I successfully loop between each property of both items comparing them, and then only if there is a change between the two properties I would push to DB. Thank you.


Can anybody explain  this paragraph from the chapter " Fourier series and transform " of the book  by  M l Boas?     "If you strike a piano key you do not get a sound wave of just one frequency . Instead  you get a  fundamental accompanied by a number of overtones (harmonic) of frequencies 2, 3, 4, ... times the frequency of fundamental".


What to do about deprecated questions & answers?

Sometimes I hit some questions with code samples in the question or some of the answers that are deprecated.  Example:   In this question from 2009 about some feature of Ruby on Rails we find several details in the code samples which are deprecated in the latest versions of Rails.  For example:  def before_destroy   should now be  before_destroy :do_something  def do_something   ... end   or this one:  errors.add_to_base("A project with effort logged cannot be deleted")   should now be  errors.add(:base, "A project with effort logged cannot be deleted")   I'm sure other questions and technologies have similar problems. Is there a recommended way what to do about this? While an experienced developer won't have too much of a problem here, for some people it may be quite confusing if he tries to run some of this code and gets strange error messages or deprecation warnings from Rails.


Multiple-entry Schengen Visa – can I enter the second time into another country?

I have a multiple-entry Schengen Visa issued from the Italian Embassy. I have entered one time from Italy; can I enter into any other Schengen country during my second entry?


CSS - Footer to stay at bottom of the page

I have a footer in my page and it although it goes at the bottom  - it stays at the bottom of the screen and then is fixed there, so if i scroll down it stays half way down page. below is what I have currently although I have tried loads of different things and searched on Google a lot!! #footer { position: absolute; right: 0; bottom: 0; left: 0; padding: 1rem; background-color: #00608F; text-align: center; }  Footer appears at bottom to start with but when I scroll  Its stays in the same position...


continuous and convex imply the weakly upper semicontinuous

$X$ is a Banach space. $f$ is a function (may not linear) on $X$.We call $f$ is weakly lower semicontinuous if the set $\{x:f(x)≤c\}$ is weakly sequently closed.We call the set $A$ is weakly sequently closed if any ${x_n}$ belongs to $A$,$x_n$ weakly converge to $x_0$,then $x_0 ∈ A$.  Show that $f$ is weakly lower semicontinuous iff $x_n ∈ X$, $x_n$ weakly converge to $x_0$ implies $f(x_0)≤$the lower limit of $f(x_n)$. $f$ is continuous (may not linear) and convex $$(0≤t≤1,f(tx+(1-t)y)≤tf(x) + (1-t)f(y))$$ imply that $f$ is weakly lower semicontinuous.


business competition purposefully attack the competition

What is it called when competition businesses purposefully attack or slander the competition?


My question is related to the thread .  I often get negative AIC values from the software I use.  I notice it most when I'm doing time series.  But here is what I don't get.  When defining the AIC like   $$AIC = 2k-2\ln(L)$$  $L$, the likelihood, is a joint probability and to my understanding must be bound between 0 and 1.  Mathematically this implies the $AIC$ must be positive.  So I don't know what my software is giving me for the value labeled $AIC$.  Any thoughts?


So, "Some advice" or "some advices"? Which is correct?

"Some advice" or "some advices" as in "I got some advice / advices for you"? So, Which is correct?  In , "advice" is uncountable noun, so "Some advice"  is the correct one.  However, googling "some advices" returns 400K results and in fact many formal English articles / news use "some advices" as in this article on Yahoo News: "".     Although graduating from college is a great accomplishment which should be recognized, it is not the end. In fact, it is just the beginning of a totally new phase in life which the graduates are unfamiliar with. Below are some advices for the new graduates that are not thought in schools.   So, I think "some advices" could be accepted as an alternative to "some advice" though it is not 100% accurate.


I want to do something like String.Format("[{0}, {1}, {2}]", 1, 2, 3) which returns:  [1, 2, 3]   How do I do this in Python?


Append to global variable inside a loop?

I have a global variable $EMAIL. I want to loop through several files and for each that meets a criteria I will add it to $EMAIL for report generation.  The problem is when I redefine $EMAIL inside the loop it only changes $EMAIL at the scope of the loop iteration. The global version of $EMAIL remains empty.  This is a simplified version of my program:  #!/usr/bin/env bash  EMAIL="I echo without 'nope'" ls | while read line; do   if [ 73523 -lt 86400 ]   then     echo "Hasn't been backed up in over a day"     EMAIL="$EMAIL nope"   fi done  echo $EMAIL   How can I modify my script so that I can add to $EMAIL from inside the loop?    Edit/Update  I wanted to further simplify the example so I tried changing   ls | while read line; do   to:  for i in {1..2}; do   Strangely with this change nope is appended to $EMAIL, maybe I'm misunderstanding what is going wrong here?


Define the real valued function $f(x)$ by $f(x) = e^{-1/x^2}$ if $x \ne 0$ and $0$ if $x = 0$.    How do you show that $e^{-1/x^2}$ is differentiable at $0$? How do you show that this function is infinitely differentiable?


I think the title is pretty self explanatory.   The question is how can I create an alias in a Windows cmd that will also work after I close and then reopen it. For example I would like an alias called ip to call the command ipconfig or an alias ls -l to call Dir.  My operating system is Windows 10, in case that makes a difference.


What's the best way to store Eldritch Horror with all the expansions

I was wondering what the best method of storing Eldritch Horror including all the expansions that also allows for a faster set-up time. Thanks!


When does one need to export a variable?

Eons ago, when I first started assigning variables in bash, it was something along the lines of:  export EDITOR=nano export PS1=something   ...and the likes. And the habit of exporting has kinda stuck with me.  However, now that I'm older, and hopefully a tad wiser, I know that it's not required, so my question is then: When is it required? When is it not? I rarely do variable assignments outside of simple .bashrcstuff, as any scripts I write are done in perl instead.


Why isn't my LAN world working in Minecraft 1.9?

My friend and I wanted to play together on my singleplayer world opened to LAN but we couldn't.   It kept displaying this message endlessly, but no matter how many times we tried to restart the worlds, Minecraft, or the computers, we still couldn't find my LAN world.     Scanning for games on your local network   We have both checked the most basic things (we are within the same network, we were playing on the same version (1.9) and our firewalls are allowing everything), we didn't have mods on, and we were each using a separate paid MC account.   I've searched around a little, and it seems like this is a very common problem for players on Minecraft 1.9 so I was just wondering if it was a problem with the new 1.9 update?


So, currently I want a section such: \section*{...}  But it won't appears on my table of contents. And I know if I use \section{...} instead, it will appears on the table of contents, but it shows number and I don't want it. My point is, I want to use section without number in front of it and it includes on my table of contents. I'll sketch what I mean: Table Of Contents Foreword ..........................  i Endorsement page ..........  ii Acknowledgement ........... iii Chapter I ...........................  1 1.1 Section 1 ....................  2 Chapter II ..........................  3 Forgive me to not typing on codes cz I don't know the code. But that's not my point. So, I'm using \section*{...} "on Foreword" until "Acknowledgement" and \chapter{...}, \section{...} on Chapter I, II, III My problem is Foreword until Acknowledgement didn't appear on my table of contents. So, how to set them and put them into my contents? Thanks! I know this is basic question, cz I'm really newbie. I need your help. I've tried to search about this but I couldn't find it.


How to remove local (untracked) files from the current Git working tree

How do you delete untracked local files from your current working tree?


Completion of rational numbers via Cauchy sequences

Can anyone recommend a good self-contained reference for completion of rationals to get reals using Cauchy sequences?


Does George Lucas have any plans for more Star Wars sequels or prequels? Proper movie sequels, not any supplementary animated shows or stories.


Still usage without are or is and the -ing form, not related to adjective without a verb

"People are still coming out the church." or "People still coming out of the church."  I've seen people using both, but I'm not sure if they are both correct? Can you use still + ing without any other verb? "She still crying." "He still eating.", "Games still coming out", etc.


Hooking up a 50A hot tub breaker to a 60A subpanel

I am considering adding a hot tub to my backyard. Most of the ones I've seen require a 240v 50A breaker, presumably with #6 4-wire.   It would be most convenient to run the line for this from my subpanel in my detached garage. I had an electrician put in the subpanel just a year ago (so it is up to modern standards; previously it was knob-and-tube! house built in 1927) and he set it up as a 60A subpanel. This consists of a 60A breaker at the main panel in the house, run underground to the subpanel in the garage, which has room for eight GE Q-line miniature breakers. Due to the number of available spaces, I'm guessing the breaker panel could handle more than 60A, but it's just limited by the breaker at the main panel and by the amp rating of the wire going between the panels.  There isn't a lot of load in the garage usually, just a couple lights and outlets. I think we could have gotten away with using two 20A circuits, but he wired up two 20A circuits and two 15A circuits, using 4 of the breaker spaces. This adds up to 75A, but from what I understand this is okay since once it hits 60A it would trip the breaker at the main panel and shut off the entire garage. Occasionally we will run a 12A electric lawn mower or other similar electric lawn tools from the outlets. The lights are motion lights on the outside, and switched fluorescent shop lamps on the inside.  Okay, now for the the question: Would it be okay and up to code to run a 50A 2-pole breaker in two of the remaining 4 slots in the panel and hook the hot tub up to it?   I'm assuming that the hot tub isn't going to be drawing close to 50A under normal conditions otherwise it'd regularly trip the breaker. But even if someone is sitting in it with the jets on and say it draws 40A, it seems like I could still run the lawn mower at 12A and have a couple lights on and not trip the 60A breaker at the house. (Related: does anyone know how many amps a typical hot tub would draw at peak and during regular operation?) I assume this line of thinking is why the electrician was able to put 75A worth of breakers on that 60A panel.  But, if any of this screams "could cause a fire" or "not up to code", please let me know! Thanks in advance!


Short trip Schengen visa: Can two be combined?

I am applying for a Schengen visa for a 10 day business trip in Spain + France + Germany. Spain will be the visa issuing country (being both the point of entry & the largest chunk of the trip).  All the docs etc are in place and I've had previous visas so barring any unforeseen problems I should have that visa soon.  Now after the trip is done I may go and visit a friend for another 3-4 days in Italy. But that isn't sure yet. But will be decided prior to entering EU. I just don't want to delay the application for the business visa for this.   Supposing I have the first visa but then want to tack on 3-4 more days  can I just apply to the Italian consulate & get another visa; thus covering the entire duration of my trip but in two separate visas?   What other options do I have?  Note, I'm not asking for ways to extend my visa after I have landed in EU but before the trip starts.   Its only a matter of 3-4 days but with the authorities issuing very tight date-windows the first visa may not suffice.


What is the IPv6 equivalent of 192.168.xxx.xxx?

I have a server which responds differently to requests from the general internet as opposed to the intranet. For IPv4 I can simply check if the address begins with 192.168. This works for my needs. What is the equivalent for IPv6?


Salesfoce client side updated content (d3 chart) not showing on subsequent loads

I am trying to create a d3 Chart from third party JavaScript file, calling the JavaScript function from Salesforce lightning component on afterScriptsLoaded event.  <ltng:require scripts='/resource/nv_d3_min_js,'           afterScriptsLoaded="{!c.loadD3Chart}" />   and from loadD3Chart component function I am calling third party JavaScript function for generating the chart.  It's working perfectly fine when I load the page first time but when I come back to the page from another page it's not loading the chart on the page.  ex. In the home page, the chart is working fine but when I go to another page suppose Opportunity page and then come back to the home page by clicking Home menu, that time the third party JavaScript function is called but chart is not loading on the page.  I am new in Salesforce Lightning.


Epson Perfection V600 Photo Scanner 64-bit

It works with Ubuntu 12.04 (32-bit) but in 16.04 (64-bit) the V600 do not work for me.  $ scanimage -L device `epkowa:usb:001:013′ is a Epson (unknown model) flatbed scanner   Iscan or XSane do not work for me.  Installed:   Sane Epson data package Epson core package Epson plug-in package   In epkowa.conf added line: usb 0x04b8 0x013a (this was not needed in epkowa for 12.04 32-bit)  Is there a problem with the Epson 64-bit driver or what do I do wrong?  I use Epson Scanner Driver Version 1.0.1 Release date 07-04-2016   All other connected USB units works, keyboard, mouse, bluetooth and kvm-switch.  Scanner connected to USB2 at Motherboard.  Motherboard Asus H170M-PLUS  XHCI disabled.  From Bios Manual:  XHCI Hand-off [Disabled]  [Enabled]       Enables the support for operating systems without an XHCI hand‐off feature. [Disabled]       Disables the XHCI Hand-off support.


Is it possible to include SVG code into LaTex? If it's possible how can I do that ? Short Example:  <svg xmlns="http://www.w3.org/2000/svg" version="1.1">     <path d="M150 0 L75 200 L225 200 Z" /> </svg>   I do not have a file with extension .svg, and I have access only to its code. For result I want to display svg "image".


If we connect a long wire to a battery, will battery produce more electrons?

I actually have three related questions: An open circuit chemical cell separates charges creating a surplus of electrons on its negative terminus and a shortage of electrons on its positive terminus. The separation of charges is conducted by chemical reactions. As electrons accumulate on the negative electrode, they repulse each other, so it takes more work to put any additional electrons in the negative electrode, so eventually, after a certain potential difference is achieved, the chemical reactions are inhibited and stopped.  1) If we connect a long wire to the negative terminus, the accumulated electrons will evenly distribute themselves along the wire, because of their mutual repulsion. Thus, the charge density at the negative electrode will decrease. Will this cause the battery to relaunch the chemical reactions and put more electrons in the negative electrode?  Let's say we connected two long wires to a chemical cell, one to it's negative electrode, another to it's positive electrode (the wires do not connect to each other). The negative wire will thus acquire some extra electrons, the positive wire will have a shortage of electrons.  2) If now we disconnect the wires from the battery, will they remain charged? And how is this charge mathematically related to the emf of the battery?  If we connect the wires to the battery as described above, the potential difference between their termini will be about the same as the emf of the battery.  3) If we disconnect the wires from the battery and they remain charged, what will be the potential difference between the wires?  Thank you.


How do I backup all the notes on my mac at once?

I have over 100 notes on my Mac from this year but stupidly I didn't put them on my I cloud as I had though it posed a securaty risk but I think I was being overly carful/paranoid.  I want to make sure there backed up encase anything happends to my Mac.  I satered moveing them manualy but I'm "lazy" so I dont want to have to move over 100 + notes manualy.  Is there a way to copy them all over at once?


Suggest a word for teenish for my teen-ish fantasy

Hi Sita, got fascinated after reading your review of "All the light we   cannot see" and would like to add you as a friend. Your review seemed   totally original and written from heart. I would say that though your   language was foul and teen-ish I enjoyed every bit of it. Your name   suggests you are from India but your style of writing and flurrying   the F-words makes me guess otherwise.   Just sent a friend request to Sita on  but was dismayed when my Mac showed teenish as spell-error when I thought its a proper word with its meaning well conveyed. I would be delighted if the meaning of suggested word matches with what I want to convey in the quote above.


what should be done on questions where low rep users have answered in question text?

I suppose this is an extension to   First off, I'm presuming that new users cannot answer their own questions? Is this correct?  So they can self answer, but I've seen quite a few occasions where they don't!  In this  the user, has edited the question to include an answer. I've seen this quite a lot. I've always flagged this as      Unclear what your asking   For me, the user editing the question in this manner invalidates the question. Is this the correct thing to do?  Could/should we make the answer my own question link more obvious?  Did have a quick browse about meta but couldn't see anything specific to this scenario.


Display date/time in user's locale format and time offset

I want the server to always serve dates in UTC in the HTML, and have JavaScript on the client site convert it to the user's local timezone.  Bonus if I can output in the user's locale date format.


Is there anyone who has 0 questions but lots of answers? Why?

Why do some users have many many answers but no questions of their own? How does that benefit them? Can it prevent suspensions?


Boolean 'NOT' in T-SQL not working on 'bit' datatype?

Trying to perform a single boolean NOT operation, it appears that under MS SQL Server 2005, the following block does not work  DECLARE @MyBoolean bit; SET @MyBoolean = 0; SET @MyBoolean = NOT @MyBoolean; SELECT @MyBoolean;   Instead, I am getting more successful with  DECLARE @MyBoolean bit; SET @MyBoolean = 0; SET @MyBoolean = 1 - @MyBoolean; SELECT @MyBoolean;   Yet, this looks a bit a twisted way to express something as simple as a negation.  Am I missing something?


2 persons should meet between 9-10.Each one is coming in a random time and waiting to his mate for 10 mins. What is the probability that they'll meet?

A probability question:     Two friends agreed to meet in a coffee shop in the time interval of $9:00AM-10:00AM$. Each one is coming on a random time in this interval, and stays for 10 minutes.      What is the probability that they will meet?   My try:     Denote $X$ as first friend coming time and $Y$ as second friend coming time. $X, Y$ ~ $U(0,60)      I need to find $P(|X-Y| < 10) = P(X - Y < 10) + P(Y - X < 10)$      Start: $P(X - Y < 10) = (X < 10 + Y)  $      Drawing a triangle gives a probability of $\frac{12.5}{200}$.   But it's not one of the possible answers. Can you help me please? Thanks in advance.


Logging generic interface for Backgroundjob

I am trying to log just errors in Backgroundjobs in Aspnet zero.  I can do it with given example in ;      Configuration.Auditing.Selectors.Add(     new NamedTypeSelector(         "Abp.ApplicationServices",         type => typeof (IApplicationService).IsAssignableFrom(type)     ) );   but when I am trying to do this with Backgroud jobs it doesn't work.   Configuration.Auditing.Selectors.Add(           new NamedTypeSelector(               "BackgroundJobs",               type => typeof(IBackgroundJob<>).IsAssignableFrom(type)           )       );    It works just specific classes;  Configuration.Auditing.Selectors.Add(               new NamedTypeSelector(                   "BackgroundJobs",                   type => typeof(IBackgroundJob<TestClass>).IsAssignableFrom(type)               )           );    What I want is just log all errors occured in classes implemented by IBackgroundJob<>.


To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do anything else.  What is the best way to make bold math symbols, in particular Greek letters and \nabla?


Non-linearity and self-coupling of gravity

I have heard that non-linearity of  has to do with the fact that gravity self-couples. What does non-linearity have to do with self-coupling?


How can I find out which authors are influenced how strongly by a certain academic author X?


how to get column values to comma seperatedly including id

I have a requirement where my current table has  id     value 1      newyork 1      boston 1      dallas   I need the following output  id      value 1       newyork, boston, dallas


Existence of continuous angle function $\theta:S^1\to\mathbb{R}$

Let $S^1\subseteq\mathbb{C}$ be the unit circle and let $U\subseteq S^1$ be open. How to show that there exist a continuous function $$\theta:U\to\mathbb{R}$$ such that $$e^{i\theta(z)}=z$$ for all $z\in U$ if and only if $U\neq S^1$?  I have been able to show the $\Rightarrow$ direction but not the other one.  $(\Rightarrow)$ If such a continuous $\theta:S^1\to\mathbb{R}$ exist, then it is injective and so $\theta(S^1)$ is a subset of $\mathbb{R}$ that is homeomorphic to $S^1$. Now, $S^1$ is compact and connected so $\theta(S^1)$ is a closed interval $[a,b]$. But removing a point from $[a,b]$ gives two connected components, while removing a point from $S^1$ still gives a connected space. Hence, $[a,b]\not\cong S^1$, so $\theta$ doesn't exist.  How would you show the $\Leftarrow$ direction?  Edit:  This is an exercise in topology with no assumed prior knowledge of complex analysis. Note that we only need to show continuity of $\theta$ (not analyticity). The question is phrased in terms of complex numbers for simplicity of notation, but it is to be interpreted in terms of subspace of $\mathbb{R}^2$.


SQL server, how to concat a dymanic (unknown) amout of strings with a single query

I know how to concact two strings, but this one will be a bit more complicated, i guess it's a duplicate but i could not find it after an hour of search so....  Suppose i have a table like this :  ExempleTable ____________________   ID   |  TEXT      | ___________________ |  1     |  'hello '  |  2     |  'how are '|  3     |  'you ?'   |   I need a select that would return a single line containing :  'hello how are you ?'   I thought something like this would exist :  CONCATTEXT( SELECT text FROM ExampleTable) as sentence   But no... maybe it's a GROUP BY matter ? I can't figure it out...


Inkscape filters are not rendering correctly

I'm running Inkscape 0.92.4 on Ubuntu Linux 19.10. My graphics driver is from NVidia. I'm given to believe that Inkscape's filters should work and render fairly similarly to how filters work in GIMP. My expectations are based on this image which shows various filter effects which ship with Inkscape:    However, when I apply filters to even very simple shapes, I get horrible pixelated garbage like this:      Can anyone help me understand what is wrong and how to correct it? Thanks!


Let $(X, \mathfrak{B}, \mu)$ be a measurable space, possibly not $\sigma$-finite, and $f_1, \cdots, f_n \colon X\to (-\infty, +\infty)$ be integrable functions on $X$. Does $$(\int f_1d\mu)^2+\cdots+(\int f_nd\mu)^2\leq(\int \sqrt{f_1^2+\cdots+f_n^2}d\mu)^2$$ holds? (Since $\sqrt{f_1^2+\cdots+f_n^2}\leq |f_1|+\cdots+|f_n|$, note that integrand in RHS is integrable.)  My first attempt was to apply the Fubini's theorem and Cauchy-Schwarz to the LHS:  $\begin{align}(LHS)&=(\int f_1(x)d\mu(x))(\int f_1(y)d\mu(y))+\cdots+(\int f_n(x)d\mu(x))(\int f_n(y)d\mu(y))\\&=\int f_1(x)f_1(y)+\cdots+f_n(x)f_n(y) d(\mu\otimes\mu)(x,y)\\ &\leq\int \sqrt{f_1^2(x)+\cdots+f_n^2(x)}\sqrt{f_1^2(y)+\cdots+f_n^2(y)}d(\mu\otimes\mu)(x,y)\\&=(RHS)\end{align} $  However this approach is valid only if $X$ is $\sigma$-finite.  Note that the inequation is equivalent to the following: If $f\colon X\to \mathbb{R}^n$ is integrable, $$|\int f d\mu|\leq \int|f| d\mu$$


Can I combine Wifi and Ethernet internet connections?

Can I make my computer use both Ethernet and Wifi connections to download files from multiparts supported servers simultaneously or download torrents faster and use both connections to download different parts of torrent file simultaneously, thus increasing my total speed for specific multipart supported download operations.  Note: I have 2 Internet services at my home both have their own routers so I want to use both of their speed at the same time to boost my total connection speed can I do that, if so how?


Does catch streaks increase the odds of finding a shiny in Pokémon go?

I can’t find a clear answer to whether catch streaks increase or do nothing to the odds of finding a shiny


I created an Apex class (global) containing Webservice methods-> generated WSDL out of it->consumed it in a different org. While instantiating the webservice callout, I set the http header to contain the authorization information as Authorization=>Bearer + Access Token.  Just wanted to clarify here, I obtained the Access Token via connected app (username, password+token, consumer secret and client id) and after successfully obtaining it I passed that as an HTTP header before calling the generated wsdl method as follows:  CaseCreationUtility.CS_CaseCreationUtility stub = new CaseCreationUtility.CS_CaseCreationUtility(); stub.inputHttpHeaders_x = new Map<String, String>(); //Setting a bearer authentication header stub.inputHttpHeaders_x.put('Authorization', 'Bearer  '+oauth.access_token);   I tried the following as well but no luck:     stub.inputHttpHeaders_x.put('Authorization', 'Basic    '+oauth.access_token); stub.inputHttpHeaders_x.put('Authorization',   'OAuth  '+oauth.access_token);   Finally, the error comes when the webservice method is called as follows:     stub.createCase('CS_Order','1234','','','','','','','','','','','','','','','',''); // ==> GENERATNG the error: System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=   It seems there's something wrong with the autogenerated Apex class as its not able to create/set the session required for communication.      Does it mean I need to use the Enterprise/Partner WSDL rather than   just downloading the WSDL directly for the Apex class containing   webservice methods?   If not, could you please look into the following WSDL file that I used:   After consuming the above WSDL, following wrapper class is autogenerated regarding Session,      Is there anything wrongly parsed or anything wrong?   public class SessionHeader_element {         public String sessionId;         private String[] sessionId_type_info = new String[]{'sessionId','http://soap.sforce.com/schemas/class/CS_CaseCreationUtility',null,'1','1','false'};         private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/CS_CaseCreationUtility','true','false'};         private String[] field_order_type_info = new String[]{'sessionId'}; }


I am a noob with blender. Please be as specific as possible. College students have been doing this for me, but I am unable to understand them.


i have just heard about Ubuntu..I am totally new to it...But I am impressed by the os features..but I have windows 7 installed in my Toshiba laptop...I have some questions to be answer before installing Ubuntu in my laptop..   Can I use windows 7 along with Ubuntu? Will my original windows os will be deactivated post the installation? What are the benefits or better features seen in Ubuntu as compared to those in Windows   Also I have bada os(Samsung wave 3) in my phone, will I will able to install Ubuntu on it?


How to sort HashMap entries values by multiple properties Java8

How sort HashMap entries by multiple properties.  Suppose I have a map with key String and value as Object.  Map<String, UserMetrics> map = new HashMap<> map.put("user10",new UserMetrics(1,100,111)); map.put("user3",new UserMetrics(10,330,444)); map.put("user11",new UserMetrics(333,100,555)); map.put("user1",new UserMetrics(1,111,433));   public static class UsageMetrics implements Serializable {         private long param1;         private long param2;         private long param3;....  }   I want to sort users first by "param1" and then after by "param2"  result expected:<>  user10, UserMetrics(1,100,111) user1,  UserMetrics(1,111,433)) user3,  UserMetrics(10,330,444)); user11, UserMetrics(333,100,555))


I want to delete all page indexed in google and use url seo to index my page again using url seo and delete old urls. I tried  <meta name="robots" content="noindex">   but does not work.  for example i'm using mybb platform and thread urls is:        after install google seo plugin my thread url is:        I want to update google and replace old url with new url. or delete all google indexed page in bulk.  please help.. thanks in advance


Proof check of a real analysis problem which i am almost done with

It would be very helpful if you checked my progress on a problem in real analysis.  Problem : If $(a_n)_{n=1}^{\infty} \rightarrow 0$ (in $\mathbb R$) then $\lim_{n \rightarrow \infty} \frac{a_1+a_2+\cdots +a_n}{n}=0$  Proof : Let us define each partial sum $S_n = \sum_{n=1}^{N} \frac{a_1+\cdots a_n}{n}$. We need to show that the sequence $(S_N)_{N=1}^{\infty}\rightarrow 0$.  But as $(a_n)_{n=m}^{\infty} \rightarrow 0$  hence for small $\epsilon$ $\exists M | \forall t\geq M$ we have $|a_t|\leq  \epsilon$. Hence, by the triangle inequality, we have $|\frac{a_M+a_{M+1}+\cdots a_{M+k-1}}{k}|\leq \epsilon$. But we have $|S_{M+k-1}-S_{M-1}| = |\frac{a_1+\cdots +a_{M+k-1}}{M+k-1}-\frac{a_1+\cdots +a_{M-1}}{M-1}| \leq |\frac{a_M+a_{M+1}+\cdots a_{M+k-1}}{M+k-1}|\leq |\frac{a_M+a_{M+1}+\cdots a_{M+k-1}}{k}| $ (suitable choice of $k$) $\leq \epsilon$ implying the sequence described is Cauchy and as Reals are a complete metric space hence we have that it converges.  But how to show it converges to zero? I tried to show that $|S_m|\leq \epsilon$ $\forall$ small $\epsilon > 0$ by using triangle inequality but obviously it holds for a $t>1$ usually, so i cannot start the sum with $a$'s index being $1$ exactly each time.


Is 'the majority of' singular or plural?

I have the following question:     The majority of fund studies has or have agreed that a common attribute for superior performance is due to managers' skill.


Parse simple array and save it on a file

If I've an array:  stuff = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]   How can I save it on the following format? 5 values + coma + other 5 values + coma, etc.  12345, 678910, 1112131415   What I've tried and it's not giving me the desired solution:  f = open('file.txt') for item in stuff:   for i in xrange(5):       f.write("%s", item)   f.write(", ") f.close()   Thanks in advance.


Find all $f$ such that $f(x+y)=f(x)f(y)f(xy)$ for all $x,y \in \mathbb{R}$

Question -   Find all $f : \mathbb{R} \to\mathbb{R}$ such that   $f(x+y)=f(x)f(y)f(xy)$ for all $x,y \in \mathbb{R}$.  My try -   Putting $x=y=0$ I get three cases $f(0)=0$,$f(0)=1$,$f(0)=-1$  For $f(0)=0$ we get by putting $y=0$ in equation, $f(x)=0$ for all $x$ ...I guess other two solutions are $f(x)=1$ and $-1$ but not able to prove it using induction on there corresponding values of $f(0)$...  Any hints ?


How can I avoid advancing a loop until a condition is met?

I wrote the following program:  numb= ["First", "Second", "Third"] players=[] n = '' score=[]  for i in numb:     print("Type the score of the name of the", i, "player:")     answer = n = str(input(' '))     players.append(d)  for a in players:     for b in numb:         a = int(input("Type the", b, "score of", a))         if a!=0:             score.append(a)         else:   I want to avoid advancing the inner loop for b in numb: as long as a is 0.  For example: if the first score is 0, the program will print again "Type the first score...".


I cannot enter my password when using sudo to install Sophos AV for Linux

I cannot type my password as shown below. After successfully unlocking root account in Ubuntu 12.04 LTS.  saintmichael@ubuntu:~$ sudo  usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user             name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user             name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u             user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u             user name|#uid] file ... saintmichael@ubuntu:~$ sudo ./sophos-av/install.sh [sudo] password for saintmichael:


Why does every server I try say it can't connect?

I just re-purchased Minecraft (because my old profile stopped working so I bought it) after not playing it for a couple of months. I've added a bunch of servers, but almost every one says "can not connect."  I know its not because the server is not 1.7.2, because I checked that they'd update. It will say "server can't connect" after a long time. I don't know if its me or the servers.  My server screen looks like this (notice the one at the bottom – it's still loading!):


Group G with $\left(\forall g \in G: g^2=1_G\right) \implies \text{G is abelian}$

I have the following task:  Be $G$ a group with $\forall g \in G: g^2=1_G$ Prove that $G$ is abelian.  I proved it this way: $\forall g \in G: g^2=1_G$ implies $\forall g \in G: g=g^{-1}$ Be $g,h \in G$. It is $gh \in G$ and $(gh)^{-1} = h^{-1}g^{-1}$ since $(g(hh^{-1})g^{-1})=1_G=(h^{-1}(g^{-1}g)h)$ Hence: $$gh = (gh)^{-1} = h^{-1}g^{-1} = hg \quad \square$$ This is the first proof with groups I've ever done in my life, hence I am a bit unsure if everything is correct. It would be nice when someone could tell me if my proof is complete.


How do I colour a 3D terrain based on its height?

How do I colour a 3D terrain based on the height? Say, bottom green, and gradually to brown in the middle and white at the top.  When I use colour ramp node, I can see gradient colour across the 3d terrain along x-y plane, but I'd like to have the gradient upwards, in x-z, y-z plane.  Edit  Currently, my setup is using cycles and nodes like this:  Color ramp (c) -> (c) Diffuse BSDF (BSDF) -> (Surface) Material output


Why is the determinant of the all one matrix minus the identity matrix n-1?

Context (skippable)  I was asked (by a friend who is preparing for an exam) whether there was a special trick to compute the determinant of the following matrix. I didn't see anything beyond using the standard computations (like using "Gauss" to compute the value).  Then I asked another math student who, while quite bright, is a bit rusty in linear algebra and using sagemath we empirically found the below formula. Of course we were both confused as to a) whether it actually always holds and b) why it holds.  Actual question  Let $n\in\mathbb N$ be a positive integer. Let $I_n\in\mathbb R^{n\times n}$ be the identity matrix and let $1_n\in\mathbb R^{n\times n}$ be the all-one matrix, that is, the matrix for which every entry is $1$. Now I am confused as to why the following (empirically found) statement holds (or does not):  $$\forall n\in\mathbb N:\det(1_n-I_n)=(-1)^{n-1}(n-1)$$    For illustration purposes, here is the matrix for $n=4$ (with the determinant being $-3$): \begin{pmatrix} 0&1&1&1\\ 1&0&1&1\\ 1&1&0&1\\ 1&1&1&0 \end{pmatrix}


Is there an explanation for the contradiction between "Voyager" and "The Undiscovered Country"?

In the Star Trek: Voyager episode "Flashback", Dimitri Valtane is killed. In Star Trek VI: The Undiscovered Country, he is shown to still be alive at the end of the film on board the Excelsior.  Is there an in-universe explanation for this contradiction to canon?


Identify Story: Dystopian Children's Novel About Subterranean Class System

This is a book that haunted me for years.  A girl lives on a very low level of an ant-hill-like society where most people live underground (supposedly due to a polluted surface). Most of the people around her are bred to be low-intelligence or are possibly the descendants of political prisoners. She is intelligent so she often gets in trouble. The levels of the underground world correspond to a class system, with the aristocracy living on the highest levels. There is a classroom scene where she is forced to watch videos over and over about how to tie her shoes.  A boy mysteriously shows up from the surface of the planet (his parents are farmers?) and together they escape to the surface and she learns everything she has been told is wrong and she was actually part of a subterranean slave society.  Ring any bells?


Is it possible to view Featured Question via the mobile site and iOS/android app?

On the mobile site and iOS/android app, I'm unable to find how to view featured questions for particular tags. I can see the choice for Active, Newest, Votes etc, but Featured isn't in the list. Would it be possible to add this feature?


In Pirates of the Caribbean, whoever has the Aztec gold gets cursed.  But Elizabeth had the gold coin with her which Bootstrap gave to his son Will before he was tied to a cannon and dropped to the ocean floor.  Barbossa states that they were cursed because of Aztec gold.  Also in the fight between Jack and Barbossa, Jack takes a gold coin and he was also cursed.  Why didn't Elizabeth get affected? Or was she also cursed and nobody noticed?


I have two versions of VLC installed on the same system

There are two VLCs:   VLC (The ultimate media player) - version- 3.0.0 VLC media player (Read, capture, broadcast your multimedia streams) - version - 2.2.6-6   I am worried that one of them may be fake. Which one is safe?


how to remove unwanted space between pages

I am writing a thesis in LaTeX with predefined styles which works fine. However, sometimes, when I finish a sub-section and start writing the new sub-section, LaTeX automatically stretches the text and adds more space (between paragraphs) in order to put the new title on the next page. Once I use \clearpage at the end of the current sub-section, it removes the spaces in between and makes it fine, but again starts the new part in the next page while there is still some space left at the last page before the new sub-section.


Blender .fbx to unity. textures not working

So i`ve made a low poly tree and make the tree crown using an object info and a color ramp.   The problem is that when i`m exporting the model to unity the only texture that shows up is the log witch is a flat color, the crown goes grey.    I`m new to unity and exporting, so sorry if this is a simple question. And aalso sorry for the bad english


How do I improve my chances of getting silk touch when enchanting?

I'd like to have an item enchanted with silk-touch, but of course the enchants are all random.  Is there a combination of enchantment level and item material that would give me the best odds of getting the silk touch enchantment?


I want in a document of mine to keep a lot of notes so I would like to create a custom counter so every note to be numbered like this:  0001  0002  0003  0004  (They are deliberately bold as this is the style I would like)  I would like the counter to work like the enumerate environment so to add a keyword in front of the note I want to number and also to be able to reset it.  The reasons I don't use the enumerate environment are:   I want the numbers to be bold I want custom formatting of the numbers i.e. 0001 etc... I really want to see how I can create something like that.


Which adventure books have information pertinent to non-adventure play?

I am trying to find out which books have all of the extra non-adventure content. I have found , so I know which books are supplement-only.  Are there adventure books that have extra classes/races/spells/equipment and rules for DMs for new mechanics (not including things like unique magic items or monsters that are part of the story of a campaign supplement)?  I want to eventually get all of the supplement books, but I don't really care for the adventures.


how to generate a table as below in latex?

I am new to latex and working on my thesis. Can anybody show me the codes how to build this table, I want to do exactly the same thing as in the picture


Why can only the Higgs particle have a non-zero expected value in a vacuum?

What does the phrase “Due to Lorentz invariance, only the Higgs particle can have a non-zero expected value in a vacuum” mean?


Suppose that $f$ is differentiable on $\mathbb{R}$ and $\lim_{x\to \infty}f'(x)=M$. Show that $\lim_{x\to \infty}f(x+1)-f(x)$ exists and find it.

I've been stuck on this question for a long time now and was wondering if anyone could show me how it's done. So far I have done the following: Since $\lim_{x\to \infty}f'(x)=M$ then $\forall \epsilon ,\exists A >0$  s.t. if $x>A$ then $|f'(x)-M|<\epsilon$. So we have that $M-\epsilon<f'(x)<M+\epsilon$. By MVT on $[x,x+1]$ for $x>A$, $\exists c\in (x,x+1)$ s.t. ${f(x+1)-f(x)\over 1}=f'(c)$. Therefore, $M-\epsilon<f(x+1)-f(x)<M+\epsilon$. However, I do not know what to do after this.


For any real positive numbers $a, b, c$, prove that $3(a^2b+b^2c+c^2a)(ab^2+bc^2+ca^2) \geq abc(a+b+c)^3$

My progress is that I applied Hölder’s for this,  $3(a^2b+b^2c+c^2a) \frac{(ab^2+bc^2+ca^2)}{abc} \geq (a+b+c)^3$   whereas  $3(a^2b+b^2c+c^2a) \frac{(ab^2+bc^2+ca^2)}{abc} =  (1+1+1)(a^2b+b^2c+c^2a)(\frac{b}{c} + \frac{c}{a} + \frac{a}{b})$  And I was lost here. Can anyone check or continue this proof?


Inductive proof of: $3^n ≥ 1 + 2^n $, every $n\in\mathbb{N}$.

How can I prove by induction that $3^n ≥ 1 + 2^n$ for every $n\in\mathbb{N}$?


How do I implement branching dialogue in javascript?

I'm making a very basic  type of game in JavaScript. I'm a beginner, so I'm just doing this for fun and learning, and due to bad planning I have run into a bit of a problem when you get to a branch in dialogue.  Currently I hold the script for the game in a string variable and I break up each scene with a tag such as "#~" into smaller arrays so that the game script looks like this:  var script = "Hello World!#~How are you today?" var gameText = script.split("#~"); //gameText[0]= Hello World!   This works great for linear stuff, but how should I handle a branch in the dialogue tree? This method seems very complicated, as I would have to know exactly how long each path is and then if I ever needed to change anything it would be a headache.  How can I do this in a simpler way? I'm trying to stick to vanilla JavaScript as I'd like the game to work with Web Run Time.


Example how maximizing and minimizing a function can be equivalent?

I don't understand how sometimes given an optimization problem, a function could get its optimal solution by minimizing or sometimes just by reformulation it becomes maximizing. Can you please give me an example for this?


find a chance that all N points lie on the half circle.

We are given a circle with N randomly allocated points on it. Task is to find a chance that all N points lie on the one half of circle.  I have drafted some solution: 1. Since there are no way to put two points on circle, so that they were not on the same half-circle, $P_1$ and $P_2$ picked randomly and didn't affect the chance. So, required probability is: $P(P_3) \cdot P(P_4)\: \cdot ... \cdot P(P_n)$, where $P(P_i)$ is the chance that i-th point lays on the proper half of circle. 2. Let's visualize what's $P(P_3)$, $P(P_4)$ look like: Grey sector highlights forbidden part of circle. It's obvious from pictures, that $P(P_i)$ approaching 0.5 as point amount increases   For this specific example, we could write: $P(P_3) = 1 - \frac {\Delta(\theta_2,\theta_1)} {2\pi}$ $P(P_4) = 1 - \frac {\Delta(\theta_3,\theta_1)} {2\pi}$. 3. Then if we generalize, $P(P_i) = 1 - \frac {\Delta_i} {2\pi}$, where $\Delta_i$ is a difference of angles of the most distant points. And I'm understand that here I should introduce some generalized formula but I don't see it and don't want to make guesses. So I would appreciate any help.


Arabic support in Babel switches the TOC page numbering style

My thesis format requires that pages appear before the first chapter to be numbered with Roman numerals and the main content of the thesis to be numbered with Arabic numbers. It seems that the arabic support in babel allows the Table of Contents to switch the page numbering style for the later appear pages to Arabic. My thesis content relies heavily on arabic content so I can not switch the babel support.  This is the shortest example that produces the problem. Notice that the number of the TOC page is "5" instead of "V". If we remove arabic from babel the problem will be fixed.  \documentclass[12pt]{book} \usepackage[arabic,main=english]{babel}   \begin{document}  \pagenumbering{gobble} \title{\bf{Title of Dissertation}}  \vspace*{3\baselineskip} \centerline{\bf{Polyglot: A Massive Multilingual Natural Language Processing Pipeline}} \vspace*{1\baselineskip} \centerline{A Dissertation presented}  \newpage  \pagenumbering{roman} \setcounter{page}{2}  \centerline{\bf{Stony Brook University}} \vspace*{1\baselineskip}  \newpage  \centerline{Abstract of the Dissertation} \vspace*{1\baselineskip} \centerline{\bf{Polyglot: A Massive Multilingual Natural Language Processing Pipeline}}  \newpage \vspace*{4\baselineskip} \centerline{\textit{Dedicated to the refugee children across the world.}}   \tableofcontents  \listoffigures   \listoftables     \newpage \renewcommand{\thepage}{\roman{page}} \centerline{\bf{List of Abbreviations}} \vspace*{4\baselineskip} \begin{tabular}{ll} NLP & Natural Language Processing \\ NER & Named Entity Recognition\\ POS & Part of Speech\\ OOV & Out of Vocabulary \\ RNN & Recurrent Neural Network\\ LOC & Location \\ ORG & Organization \\ PER & Person \end{tabular}   \newpage \centerline{\bf{Acknowledgements}} \vspace*{4\baselineskip} I am grateful to have my PhD advisor  \newpage \centerline{\bf{Publications}} \vspace*{2\baselineskip}  \mainmatter   \chapter{Introduction}  \end{document}   Here is the wrong output    Here is what it should look like


I am looking for interesting classroom material.  Google is both the name of a company and also a verb.  Is there a name for this type of verb?  Are there any other examples of this type of verb?


How to backup files in multiple directories with git?

The example below is simplified to show the core of the problem, not the problem itself(my file tree is more complicated than that).  Let's say that I have two files I want to back up; one in ~/somedir/otherdir, the other in ~/otherdir/somedir/. I want to backup files from both directories in one git repository. How can I do this? Soft links only carry information about where file is stored, not the actual file, whereas hard links are somewhat foreign to me. Is this a case where hard links should be used?  Clarification: I want to use git because of four reasons: I want to store dotfiles/scripts/configurations that are text files and keep track of changes over time, I know git, I have a private git repository I could use to store them, and I want to be able to share these files across multiple PCs.


Exporting QGIS Field Calculator user defined function

I have created many Python functions in QGIS Field Calculator Function Editor. How can I export the user defined functions to use in other computers or share to other people? My QGIS is 3.12.1 on MacOS 10.15.7


Access 2007 Work in a separate file using ACCDE

Have been working in an Access 2007 application for over 3 weeks and it should be ready now. Anyway, I know (and tried) that "Make ACCDE" can actually split the raw data from the application itself so you can run it using the Access RunTime.  The question is... can I deploy my app for general use and modify a separate copy of the forms/views inside the application to deploy it when it´s ready without touching the data?


early 2015 13 inch macbook air shuts off when disconnected to power

my macbook air shuts down 0-30 seconds after I unplug it from the magsafe.   the computer says it's at 90%, and charging; I did an SMC reset, ran apple diagnostics (no issues detected), cleaned the port, tried using a new magsafe cable, and the system report on the battery is as follows:  Model Information:  Serial Number:    D8651634CATF90JA9  Manufacturer:   SMP  Device Name:  bq20z451  Pack Lot Code:    0  PCB Lot Code: 0  Firmware Version: 511  Hardware Revision:    000a  Cell Revision:    1210  Charge Information:  Charge Remaining (mAh):   5735  Fully Charged:    No  Charging: Yes  Full Charge Capacity (mAh):   6441  Health Information:  Cycle Count:  478  Condition:    Normal  Battery Installed:    Yes  Amperage (mA):    283  Voltage (mV): 8226  The I/O board was replaced a few months ago, so I don't think thats the issue.


Prove that the Gaussian rationals is the field of fractions of the Gaussian integers

I'm looking to prove that $\Bbb Q[i] = \{ p + qi : p, q \in \Bbb Q \}$ is the field of fractions of $\Bbb Z[i] = \{p + qi : p, q \in Z\}$.  I am familiar with definition of a field of fractions. For example, I understand that if one has an integral domain $D$, it can be embedded in a field of fractions $F_D$, and every element of $F_D$ can be written as the quotient of two elements in $D$. However I have been confused by two questions:  (1) If one has a field $F$, and one can show that any element in $F$ can be expressed as the quotient of two elements in an integral domain $D$, does that imply that $F$ is the field of fractions of $D$?  (i.e. Would it suffice in my case to show that every element in $\Bbb Q[i]$ can be written as a the quotient of 2 elements of $\Bbb Z[i]$?)  (2) How can I show that element in $\Bbb Q[i]$ can be written as a the quotient of 2 elements of $\Bbb Z[i]$? When I write an element of $\Bbb Q[i]$ like  $$q = \frac ab + \frac cdi$$  I get mixed up trying to come up with 2 elements of $\Bbb Z[i]$ that could equal that. I set $z = u+vi$ and $w = x+yi$, equate $q = z/w$ and I end up with these equations like this:  $$a = ux + vy; b = x^2 + y^2; c = vx - uv; d = x^2 + y^2$$  This doesn't strike me as the way to go. Possibly there is a way to take advantage of fact that the elements are equivalence classes, but I'm not seeing it. Thank you very much!


Convert save game to a different platform

Since it's , is it possible to convert a savegame from one platform (PC, XBox, PS3) to another platform?  By doing so, this might allow to switch from one platform to another to enable playing with a friend (supposing you have two retail copy on the same platform).


Not able to get multiple echos from PHP to JS

I am trying to get all rows with same name from my MySQL database to my HTML table. So basically, my php script called getRequestToShow.php echoes value to .js file (which asks php script for values by using XMLHttpRequest). Then this .js file adds the rows in HTML table. I am echoing MySQL rows from php like this: $conn = new mysqli($servername, $username, $password, $db_name);  if ($conn->connect_error){   die("Connection failed: " . $conn->connect_error); } $id = $_GET['id']; $id = mysqli_real_escape_string($conn,$id); $query = "SELECT * FROM `requests` WHERE `name`='$id'"; $result = mysqli_query($conn,$query);  while($row = mysqli_fetch_array($result)) { echo json_encode(array('first'=>$row['name'],'second'=>$row['amount'],'third'=>$row['date'],'fourth'=>$row['state'])); }  ..but I am able to get only from value from my database to HTML table. If there is more than one row with same name, it will not show anything on HTML table. function showUser45(str) {     var tableRef = document.getElementById('customers').getElementsByTagName('tbody')[0];     var newRow   = tableRef.insertRow(tableRef.rows.length);     var xmlhttp22 = new XMLHttpRequest();     xmlhttp22.onreadystatechange = function() {       if (xmlhttp22.readyState == 4 && xmlhttp22.status == 200) {           if(xmlhttp22.responseText === "") {             var newCell  = newRow.insertCell(0);             var newText  = document.createTextNode("No earlier withdraws");             newCell.appendChild(newText);           } else {             var h2 = JSON.parse(xmlhttp22.responseText);             var newCell1  = newRow.insertCell(0);             var newText1  = document.createTextNode(h2.first);              var newCell2  = newRow.insertCell(1);             var newText2  = document.createTextNode(h2.second);              var newCell3  = newRow.insertCell(2);             var newText3  = document.createTextNode(h2.third);              newCell1.appendChild(newText1);              newCell2.appendChild(newText2);             newCell3.appendChild(newText3);             if (h2.fourth == 1) {                 var newCell4  = newRow.insertCell(3);                 var newText4  = document.createTextNode("Completed");                  newCell4.appendChild(newText4);             } else {                 var newCell5  = newRow.insertCell(3);                 var newText5  = document.createTextNode("Pending");                  newCell5.appendChild(newText5);             }           }     }     };     xmlhttp22.open("GET","getRequestToShow.php/?id="+str,true);     xmlhttp22.send(); }  and here's HTML table's HTML.

 Username	 Amount	 Date	 State

  Thanks in advance!


A box contains $731$ black balls and $2000$ white balls. The following process is to be repeated as long as possible.  (1) arbitrarily select two balls from the box. If they are of the same color, throw them out and put a black ball into the box. (We have sufficient black balls for this).  (2) if they are of different colors, place the white ball back into the box and throw the black ball away.  What will happen at last? Will the process stop with a single black ball in the box or a single white ball in the box or with an empty box?  I am unable to decide how to start and in which direction? should we apply probability or what?


Show your chosen tags first under the initial/default list of questions

The initial questions page after login should be the ones showing those questions on your added/favorite tags. Since they are your favorites, it sort of works as the tags you follow.  Every time I go to any Stack Exchange site, I would always need to go to tags again and again.   This feature would sort of work like Facebook's news feed/timeline, but instead you get the latest questions from the tags you are following. I know the questions tab needs to be retained as is but couldn't we have another tab that would display the ones I mentioned above as the default?   Anyway, in my own experience, since I don't know much about other languages like Ruby or Python (I'm more of a PHP guy), then seeing Ruby or Python questions doesn't seem useful in the default page. Instead having a default page of PHP and all other tags I added would seem more helpful. If users insist to look for other questions, there is the old question tab or the old tags tab which users can navigate to.


What is this two-columned selection dialog called?

What is the name, if there is one, for the following dialog type?    Are there any alternatives?


How do thrown weapons interact with the Extra Attack feature?  Can you throw more than one weapon per turn?  How about two-weapon fighting?  Do you need the Dual-Wielder feat to throw two weapons every turn?


HashMap vs Hashtable (get & put) Implementation

I've been going through Java API java.util.HashMap and java.util.Hashtable  I've understood the internal implementation of get(Key k) and put(Key k, Value v)methods of HashMap, and Hashtableseems almost same to me in terms of get(k) and put(k,v)method.  Please tell me does Hashtable internally work in the same way as it is in HashMap or differently?  I know other stuff about synchronization, default capacity and null key/values, but apart from these does it differ in terms of its internal implementation of get and put method.  I've already checked java source code for the mentioned class and also visited this link:  I'd like to know about the internal get and put method implementations of the classes.  Please share your knowledge. Thanks!


NullPointerException error occurs while converting byte[] to ImageIcon

I am trying to put byte[] to JLabel on netbeans maven Project. I read some solutions and then implement it for me. However when I start application it gives me error lists such as;   Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at javax.swing.ImageIcon.<init>(ImageIcon.java:228)     at org.tutev.envanterys.gui.finger.FrmFinger.btnShowImagesActionPerformed(FrmFinger.java:104)     at org.tutev.envanterys.gui.finger.FrmFinger.access$000(FrmFinger.java:29)     at org.tutev.envanterys.gui.finger.FrmFinger$1.actionPerformed(FrmFinger.java:55)     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)   Could you please kindly help me where is my mistake and how can I avoid this? Here is my code:    try {             Finger finger = new Finger();             FingerService fingerService = new FingerService();              finger = fingerService.getImage(Long.parseLong("1"));              byte[] image1 = finger.getImage1();              ByteArrayInputStream bais = new ByteArrayInputStream(image1);             BufferedImage img = ImageIO.read(bais);              lblFinger1.setIcon(new ImageIcon(img));          } catch (IOException ex) {             Logger.getLogger(FrmFinger.class.getName()).log(Level.SEVERE, null, ex);         }   When I debug application I see that byte[] and bais has data but BufferedImage img is null.


How to form "if ... or ... then" conditionals in TeX?

I feel really stupid for asking this, but how do you form more complex if conditionals in TeX? I'm looking for something like:  \ifnum\x=1 OR \ifnum\x=14     {do this} \else     {do that} \fi   I don't want to have to resort to copy-pasting the entire condition just to change the expression when the body is the same.


Looking for title of short story, travelers come to Urth looking for help from an advanced civilization, against aliens, discover Urth inhabited by essentially backward farmers.  At the end of the story the people agree to help- by moving the planet to follow the aliens home.


In a particular cell of a column, I would like to have a timestamp of the last date any cell of that column was modified. Specifically: G31 would show a date of last modification on any cell of the G column.  My question is quite similar to this one, but I can't seem to apply it to my situation :   I have tried this :    function onEdit()  { var DEVIS_COMPLET_2018 = "MySheet";  var s = SpreadsheetApp.getActiveSheet();  if (s.getName() !== DEVIS_COMPLET_2018) return;  var r = s.getActiveCell();  if( r.getColumn() != G ) { //checks the column  var row = r.getRow();  var time = new Date();  time = Utilities.formatDate(time, "GMT-08:00", "MM/DD/yy"); SpreadsheetApp.getActiveSheet().getRange('G31').setValue(time); }; };    I don't get any error message but nothing happens.   I have tried enclosing G, still no luck :  function onEdit() { var DEVIS_COMPLET_2018 = "MySheet"; var s = SpreadsheetApp.getActiveSheet(); if (s.getName() !== DEVIS_COMPLET_2018) return; var r = s.getActiveCell(); if( r.getColumn() != "G" ) { //checks the column var row = r.getRow(); var time = new Date(); time = Utilities.formatDate(time, "GMT-08:00", "MM/DD/YY"); SpreadsheetApp.getActiveSheet().getRange("G31").setValue(time); }; };


Using \colon gives correct spacing for a map $F\colon C\to D$ in one direction. But writing $L\colon C\rightleftarrows D\colon R$ for a couple of maps in both directions (e.g. for an adjunction) gives disturbingly asymmetric spaces near first and second colons (like if D were a map from R, not the other way round). Probably, it should be fixed (e.g. some other command should be used) — but how?


Show that $\left(2^{xy}-x\right)|\left(x^y-2^{xy^2}\right)$ for $\left(y=1\:\wedge \:x\ge 3\right)\vee \left(y\ge 2\:\wedge \:x\in \mathbb{N}\right)$

I don't quite know how to prove this. If I e.g. insert y=1 then the numerator and denominator cancel out so it's equal to -1 regardless of any x, but it should be for $x \ge 3$ So what now?


I'm using xmonad, and I would like to open a nautilus window to a certain directory, because I like the convenience of browsing inside an encrypted zip file without unzipping it, which nautilus allows.   however, opening nautilus, even with a path argument starts a desktop on the monitor I'm using (There are 8 xmonad monitors) The desktop is inoperative and renders that monitor useless until nautilus is killed.  Is there any way to open just a nautilus window without any desktop starting?


Add ability to sort by flag status in profile

Currently, the only way to determine the status of a flag is to look at your flagging history in your profile. This is a time consuming process, as the flags are ordered by the time the flag was issued. If you wish to see only flags that have been disputed or declined, you need to go through multiple pages of flags.  In the UI, I propose making the information the right, in the flagging history, links that filters the flags to the appropriate flags.  By making these two options links, I could quickly see which flags were declined or disputed.


Which of the numbers 0,1,2, ..., 60 is 10 ^ {60 \ cdot 2 ^ {100} +2} congruent with modulo 61?

Question:   Which of the numbers $0,1,2, ..., 60$ is $10 ^ {60 \cdot 2 ^ {100} +2}$ congruent with modulo $61$?  How should you think about this? I know that you should think think that you should break it out a little more like $x ^ {a * b} = (x ^ b) ^ a$ use modolo in the parentheses, so as to always get smaller parts of the number as far as possible, etc, etc. .   But be a little thoughtful if that's how you should do it. also have the idea that you can put all numbers in a list, up to mod 60, and see which numbers are congruent.   But since 61 is the quite high number, it feels excluded.   Also $10 ^ {60 * 2 ^ {100} +2}$ is also a large number.   So need a little push


I was contemplating the design of a game (translating a boardgame to the computer, specifically, which I suppose is relevant in this case) and it occurred to me that it might make sense to build the 'game' separate from the 'display.'  It would allow me to prototype something quickly with a simple text interface, and then go pretty it up later. It would also let me port the game to other media more easily.  Is this sort of compartmentalization common in games? Should I try to break things down further? Are there complications I might be missing?


How can the age of the universe be calculated as $1/H$, with $H$ the Hubble constant, when its expansion has been far from linear?    The $1/H$ comes from Hubble’s law, and implies that the universe expanded like a cone, as opposed to the above.  Also, wouldn’t the Hubble constant naturally change over time? Has the change since its discovery been negligible? I know it’s changed in terms of the recognised value due to improvements in the way we measure it—I mean the actual value.


This may sound like a simple question but I have never used the || operator to check for NULL with another possible value.  Is there a difference in how C# responds to:  if (a == "Hello" || a == null)   versus:  if (a== null || a == "Hello")


This is a bit naive question bu help me out here. We know that in Arithmetic,  we follow the BODMAS rule where first preference is given to Brackets then Exponent then Division and so on. My question is how did we arrive at the conclusion to give the following preference. Was it conventional or has some theoretical twist in it?


Remove all the lines before the first line that contains a match?

Using the regexp string, how can I remove all the lines before the first line that contains a match?  e.g How can I change this:  lost load linux loan linux   into this:  linux loan linux   I tried:  echo "lost load linux loan linux" | sed -e 's/.*^li.*$//g'   but it returns this, not changing anything:   lost load linux loan linux   I'd like to make it work so that it won't output anything when there's no match.


What is the Big O compexity of this algorithm?

I just need to check my understanding of how to analyze big - O complexity. Is this algorithm N^2 or N^3? I'm aware of the many online resources explaining how to analyze an algorithm. I'd like to confirm my understanding.  for(int i=0; i<n; i++)  for(int j=0; j<n*n; j++)  sum++


How do I remove chapter number at the start of each chapter without affecting the subchapters?

How can I Remove the "Chapter 9" text and number in front on the chapters. see "chapter 9" below in the picture. I want to keep the numbering for the sections and subsections in the text and in the table of content.   I have seen methods to remove chapter number, however the section count will then continue from the past chapter. For instance 9.1 Chapter overview will be changed to "8.12 Chapter overview"    \documentclass[12pt,twoside]{report} %\documentclass[draft]{article} \usepackage{graphicx} \graphicspath{{images/}} \usepackage{caption} \usepackage{subcaption} \usepackage{textcomp} \usepackage{gensymb} \usepackage[utf8]{inputenc} \usepackage{nomencl} \makenomenclature  \begin{document}  \addcontentsline{toc}{chapter}{List of Tables}  \chapter{Results section overview \& Reservoir Characteristic} \input{chapters/Reservoir_Characteristic.tex}


How can I read the status of the battery on my MacBookPro from my own application?  Googling has so far only revealed APIs for device drivers to handle power events - there's nothing about user-land processes accessing this information.  thanks.


No unity after login to main user account

Yesterday my computer stayed open all night and then when battery was empty it turned off. Its normal for my computer. But when at morning I turned it on, there wasn't login screen. It crashed everytime. After reinstalling Xorg, lightdm, ubuntu-desktop and doing some other things login screen appeared. But after login I can see only my desktop and System crashed warnings that appears in ubuntu from times when unity came. In guest mode everything works well. I created new user and assigned him as admin (All privilages) and logged in to his account. Now I'm writing from that user account and everything works very well. So, How I can restore my main account?  Selecting Unity Plugin from ccsm not worked (login to user account, go to tty1 and entering export DISPLAY=:0 and then ccsm + switching to F7). + reinstalled ccsm Half of space in SSD is empty, so its not memory problem. Wallpaper in its place :D


how to adjust a render to match the 3d view?

I have a beautiful soccer ball model and it looks great in the 3d ortho - edit views. I love it!   But when I go to use the renderer - Blender Render comes up blank and Cycles render looks like this. Not so sharp, filling with dots of white. Not sure what happened. What can I do to adjust it to match how it looks in when I edit it?


How to match * with hidden files inside a directory

How to match the hidden files inside the given directories   for example   If I give the below command it's not giving the result of the hidden files,     du -b maybehere*/*   how to achieve this simple using a single command instead of using   du -b maybehere*/.* maybehere*/*   as I need to type maybehere twice.


"Your idea's sounding great" or "Your idea sounds great"

What is the difference in meaning between the following two sentences?  (1) Your idea's sounding great. (2) Your idea sounds great.  To me, as a non-native speaker both sound grammatical, with the second one being more general. Am I right?


Create a Ubuntu Server bootable USB doesn't work using Startup Disk Creator or dd

These instructions () doesn't work for Ubuntu Server iso. Doing dd if=ubuntuserver.iso of=/dev/sdb neither. In both situations, after installer boots correctly, it claims it doesn't found any CD drive and stops. Thanks


Approximate the second largest eigenvalue (and corresponding eigenvector) given the largest

Given a real-valued matrix $A$, one can obtain its largest eigenvalue $\lambda_1$ plus the corresponding eigenvector $v_1$ by choosing a random vector $r$ and repeatedly multiplying it by $A$ (and rescaling) until convergence.   Once we have the first eigenpair, is there a similar way to estimate the second eigenpair?


Why do these points send me to the middle of the ocean or middle of nowhere?

I've been beating my head against the wall trying to map some points using Leaflet + OSM.   I put in some sample points (near Bellingham, WA, USA).  I've checked the JSON with JSfiddle and GeoJsonlint.  It's valid.  But they both send me to the middle of the ocean or to the bottom of the map.  Any idea what I'm missing here?    GeoJson  { "type": "FeatureCollection", "features": [     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -122.488225             ]         },         "properties": {             "name": "ABBOTT NEIGHBORHOOD PARK",             "address": "1300  SPRUCE ST"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -121.488225             ]         },         "properties": {             "name": "DOUBLE OAKS CENTER",             "address": "1326 WOODWARD AV"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -123.488225             ]         },         "properties": {             "name": "DOUBLE OAKS NEIGHBORHOOD PARK",             "address": "2605  DOUBLE OAKS RD"         }     },     {         "type": "Feature",         "geometry": {             "type": "Point",             "coordinates": [                 48.759553, -124.488225             ]         },         "properties": {             "name": "DOUBLE OAKS POOL",             "address": "1200 NEWLAND RD"         }     }]}


My 2 month old baby keeps looking into light

I have noticed that during evening when we have the lights on in the house, my 2 month old daughter will keep on staring into the lights. Most of the light bulbs in the house is exposed (ie. no covers around them), making them very bright.  Is this harmful to her eyes, or can I find peace in the fact that she perhaps can't focus very far and thus only sees a blurry light that fascinates her?