Trade-off between image quality and compactness

I realise I am asking what will be one of the most common questions among first-timers looking to purchase cameras, but comparing statistics is not very useful and I am after some personal opinions: feel free to offend with harsh reality.  I will be travelling soon, mostly backpacking and need a camera. In a perfect world this camera would fit in my pocket so I don't also need to carry around a camera bag/take up lots of room for camera gear. But I also don't want a camera that is only marginally going to improve my iPhone pictures.  So in short, do I basically need a DSLR for "optimum" image quality? I have a budget of around £450-500; I was looking at the Nikon 5300 and similar, entry level DSLR's. Then I thought, how much of a sacrifice in image quality is it to get something small like the Sony RX100 or Canon G9x for ultimate smallness.  Should I just deal with the extra weight and embrace my ascendance into the world of non-phone photography?


Installed NVidia 610 now, no menu on left

I'd like to use MythTV so I purchased an NVidia 610 and installed in my Ubuntu Server tower.  First boot, no issues, so I update Linux while installing NVidia drivers from "Additional Drivers".  After restart, the resolution was reduced. Once I log in and startx I see nothing but the blank desktop (resolution is correct).  No menu on left side.  I can right click or use power button to shut down.  What happened???


Is setting a higher nice level for a process an effective way to reduce its impact on system load/CPU time?

I have an rsync cron job which is pushing the server load and triggering monitor alerts.  If I set the job to be run with a high nice level, would that effectively reduce the impact it has on system load values?


What's the best (Pythonic) way to remove certain duplicate elements from a list?

Consider the following example:  In [1]: lst = list(range(10)) * 2  In [2]: lst Out[2]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]  In [3]: for i, x in enumerate(list(lst)):    ...:     if i > 10 and x % 2:    ...:         lst.remove(x)    ...:           In [4]: lst Out[4]: [0, 2, 4, 6, 8, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]   So this strategy doesn't work, as it removes the first occurrence of item in the list, which is not what I want.  In [5]: lst = list(range(10)) * 2  In [6]: for i, x in enumerate(list(lst)):    ...:     if i > 10 and x % 2:    ...:         del lst[i]    ...:          --------------------------------------------------------------------------- IndexError                                Traceback (most recent call last) <ipython-input-6-bbec803a1844> in <module>()       1 for i, x in enumerate(list(lst)):       2     if i > 10 and x % 2: ----> 3         del lst[i]       4   IndexError: list assignment index out of range   My other strategy doesn't work either, because the copy of the initial list eventually has larger index, as the original list has items constantly removed from it.  The following does work:  In [7]: lst = list(range(10)) * 2  In [8]: idx = 0  In [9]: for i, x in enumerate(list(lst)):    ...:     if i > 10 and x % 2:    ...:         lst.pop(i-idx)    ...:         idx += 1    ...:           In [10]: lst Out[10]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8]   And also this one:  In [11]: lst = list(range(10)) * 2  In [12]: idx = 0  In [13]: for i, li in enumerate(x for x in lst.copy()):     ...:     if i > 10 and li % 2:     ...:         lst.pop(i-idx)     ...:         idx += 1     ...:           In [14]: lst Out[14]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8]   Is any of the working methods better than the other? Is there a better way to achieve what I want? What if I have or statement in the if test?  In [15]: lst = list(range(10)) * 2  In [16]: idx = 0  In [17]: for i, x in enumerate(list(lst)):     ...:     if i > 10 and (x % 2 or x // 5):     ...:         lst.pop(i-idx)     ...:         idx += 1     ...:  In [18]: lst Out[18]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4]


Finding the infinite series: $3 \cdot \frac{9}{11} + 4 \cdot \left(\frac{9}{11}\right)^2 + 5 \cdot \left(\frac{9}{11}\right)^3 + \cdots$?

I'm trying to find the infinite sum that is defined by:  $$ 3 \cdot \frac{9}{11} + 4 \cdot \left(\frac{9}{11}\right)^2 + 5 \cdot \left(\frac{9}{11}\right)^3 + \cdots $$  However, I do not know of any known formula to do this. Am I missing something really simple? Thanks!


Why $\{ \emptyset \} $ is not a subset of $\{ \{\emptyset \} \} $

Following are two statements from Enderton's book on set theory, I fail to understand that if empty set is a subset of every set then why can't it be a subset of $\{ \{ \emptyset \} \} $  (1) $\emptyset \subseteq A $, ($\emptyset$  is a subset of every set)  (2) $\{ \emptyset \} \nsubseteq \{ \{ \emptyset \} \} $·  $\{ \emptyset \} $ is not a subset of $\{ \{ \emptyset \} \} $ because there is a member of $\{ \emptyset \} $, namely $\emptyset$, that is not a member of $\{ \{ \emptyset \} \}  .$


Ok so well Im struggling to find examples for the first two parts and for the last, well I don't think it is open but can't again find an example. Thanks.


Try as I might, I can't figure out why this server randomly timestamps syslog entries with bad time.  Here's a 5-minute stretch of syslog from a few minutes ago.  You'll notice there are two places where the time is logged wrong.  Once where it logs it as January 10th (off by ~4 days) and another where it logs it as November 16th (either ~2 months behind or ~10 months ahead--can't tell since syslog doesn't log the year):  Jan 14 18:25:01 tetrad CRON[15482]: (root) CMD (zfs-auto-snapshot -q -g --label=frequent --keep=12  //) Jan 14 18:25:01 tetrad CRON[15483]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:25:03 tetrad zfs-auto-snap: @zfs-auto-snap_frequent-2015-01-15-0225, 1 created, 1 destroyed, 0 warnings. Jan 14 18:26:54 tetrad puppet-master[31196]: message repeated 2 times: [ Could not find default node or by name with 'kvm4.virt.pne.local, kvm4.virt.pne, kvm4.virt, kvm4' on node kvm4.virt.pne.local] >> Jan 10 00:00:01 tetrad CRON[18094]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:27:01 tetrad CRON[18094]: (root) CMD (/usr/local/bin/lockrun --lockfile=/root/updatecw.lock -- /root/sqlworkbench/updatecw.sh > /dev/null) Jan 14 18:28:02 tetrad fetchmail[7149]: message repeated 51 times: [ Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)] >> Nov 16 23:45:01 tetrad CRON[20554]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi) Jan 14 18:29:04 tetrad fetchmail[7149]: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!) Jan 14 18:29:58 tetrad kernel: [7713426.484590] ip_set: protocol 6   I have verified the timezone settings are correct on the box, and I've completely stopped rsyslogd and started it again.  I can even leave a loop running on the box for hours without an error:  while true; do date; sleep 1; done   ...so it doesn't appear to be an issue with the clock.  Reviewing 10,000+ lines of 'date' output in the console sucks!  ;)  I should point out that I've only ever seen it when logging a CRON action.  The cron jobs are not long running, and I've even tested by commenting out all the jobs in cron for a day.  No false time entries.  Any thoughts?


How to adjust the rotated box of the table to the center

\begin{landscape} \begin{table}[htbp] \caption{Units for Magnetic Properties} \label{tablsssss} \centering %\bfseries \begin{tabular}{|p{4pt}|p{40pt}|p{80pt}|p{100pt}|p{200pt}|p{10pt}|} \hline \rotatebox[origin=c]{90}{\raisebox{-5pt}{year}} &  Ref &  Alg & Goal & Appr  &   Test  \\ \hline \rotatebox[origin=c]{90}{\raisebox{-5pt}{2019}}& 33&  39.66&  39.66&  39.5&65 \\ \cline{2-6}  &Moy Pages cibles & 25.66&  62&  100&  33 \\  \cline{2-6}  &Moy Pages cibles & 25.66&  62&  100&  33 \\  \cline{2-6}  &Moy Pages cibles & 25.66&  62&  100&  33 \\ \hline \end{tabular}\hspace*{-2cm} \end{table} \end{landscape}


NullPointerException when trying to point to a different instance

I am trying to access the edited poly node when making and checking combining.degree, however I get a NullPointerException, how can I fix this? I want to use the poly that was edited in the while loop instead of the poly made outside of the while loop that was made null. This is a     public static Node multiply(Node poly1, Node poly2) {     Node poly3=poly1;     Node poly4=poly2;     Node poly=null;     while (poly3!=null)     {         while(poly4!=null)         {             float x;             int y;             x=poly3.term.coeff*poly4.term.coeff;             y=poly3.term.degree*poly4.term.degree;             poly=new Node(x,y,poly);             poly4=poly4.next;         }         poly4=poly2;         poly3=poly3.next;     }          Node finalpoly=null;     int i=poly.term.degree;     float csum=0;     Node combining = poly;     while (i>=combining.term.degree)     {         while (combining!=null)         {             if (i==combining.term.degree)             {                 csum+=combining.term.coeff;             }             combining=combining.next;         }         if (csum!=0)         {             finalpoly = new Node(csum, i, finalpoly);         }         i--;     }


A collection of pairwise disjoint open intervals must be countable

Let $U$ be a collection of pairwise disjoint open intervals. That is, members of $U$ are open intervals in $\mathbb{R}$ and any two distinct members of $U$ are disjoint. Show that $U$ is countable.  My attempted proof:  Let $U \subseteq \mathbb{R}$ be a collection of pairwise disjoint opern intervals. Let $(a,b) \subseteq U$ be one such interval. Since $\mathbb{Q}$ is dense in $\mathbb{R}$, there exists a rational number $q_{a,b} \in (a,b)$. Define $f: U \to \mathbb{Q}$ by $f((a,b))=q_{a,b}$. As $f(a_1,b_1)=f(a_2,b_2)$, or $q_{a_1,b_1}=q_{a_2,b_2}$, implies $(a_1,b_1)=(a_2,b_2)$, we deduce that $f$ is injective. It was proved already in my lecture class that $\mathbb{Q}$ is countable, and that union of countable sets is countable. Thus, we deduce that $U$ is countable. (End of attempted proof)  I feel confident about my proof except the injectivity part. I was looking for help there, assuming the rest of my proof is cogent. If not, please let me know how I can improve on it.


I looked it up and 'remove doubles' should be under Mesh in 2.8.    I can't find it.


Ring with 10 elements is isomorphic to $\mathbb{Z}/10 \mathbb{Z} $

How do I prove that a finite ring $R$ of order 10 is isomorphic to the ring $\mathbb{Z}/10 \mathbb{Z}$?    I know that as a group under addition, $(R,+)$ is isomorphic to the group $(\mathbb{Z}/10 \mathbb{Z}, + )$, but the multiplication is rather mysterious to me.


I want to replace a line in my file with new line(actually I have to insert some content in the line). The line actually contains AC_CONFIG_FILES([]) I have to replace this line with a new line by adding some makefile arguments based on some list. Then I constructed a new string and did replacement in the file. Is there any efficient way of doing this?  # 'subdirs' is the list which contains makefile arguments rstring = "AC_CONFIG_FILES([Makefile" for t in subdirs:     rstring = rstring+' src/'+t+'/Makefile' rstring += '])' print rstring # 'fname' is the file in which replacement have to be done #  i is used for indexing in 'insert' function # 'rline' is the modified line fname = 'configure.ac' i = 0 with open(fname,'r') as f:       modlines=[]       for line in f.readlines():           if 'AC_CONFIG_FILES' in line:                   modlines.insert(i,rstring+'\n')                   i = i+1                   continue           modlines.insert(i,line)           i = i+1 with open(fname,'w') as out:       for i in range(len(modlines)):           out.write(modlines[i])


I saw a thing called VPN connections under the Internet button at the top of my screen.   So I would like more info on this, and possibly instructions on how to set one up. Thanks!


Google shows "search instead for" when searching for our website

Our website is new and the name is similar (only one letter different than another website) completely different type and company though.  searching for xxxxxA works OK in Google and we find relatively good results.  However searching xxxxxA.com finds results for the other website and gives us the following options:  Showing results for xxxxxE.com Search instead for xxxxxA.com (hyperlink when clicked then it is correctly searching for our site)   Questions:   Do we need to contact Google to correct this and if yes how ? if not will it be corrected automatically when the site becomes more popular and what is the process?  How do we make the process quicker?


Question about the practical use of super dense coding in information transmission: We know that by using super dense coding it is possible to transmit 2n classical bits transmitting n qubits, belonging to a set of 2n entangled qubits.  Problem is, it is necessary, before starting the transmission, to deliver n qubits to Alice and n qubits to Bob, entangled together. In my opinion this fact makes super dense coding of no practical interest because normally in a transmission system the sequence of information (classical) bits is of indefinite length and consequently the length n of entangled bits given to Alice (the transmitter) should be equally of indefinite length. Which is practically very difficult! Am I correct or am I missing something? Thanks.


Should cracks and water in the crawl space concern me when buying a house?

I am looking at a house that with a crawl space (see image). The crawl space has the full height of a basement, windows and a door leading outside in the back. It has French Drains along the downhill base of the house and plastic lining covering a rock floor. I saw water on top of the plastic in a few places. The foundation walls are footing and stem walls (I think). They appear nice but have some vertical cracks in several places upon closer inspection. The house was built in 2002. Is the water concerning given the French drains installed? Are the wall cracks normal for the crawl space foundation... should they concern me?


How do I transfer a file from a guest account on a MacBook Air?

I'm logged into the guest account of a borrowed MacBook Air which is running OS X Version 10.9.2 and I've been trying to transfer a 2.19GB video file to an admin account, a USB or external hard drive, or online.   1. Transferring the file to the admin account: Apparently if I log out of this guest account, the file will be deleted. So, I tried transferring it to a shared folder, but I can't find/access a shared folder... perhaps because I'm on a guest account? I tried using Terminal and codes I copy-pasted from Google, but they all require the password of the admin account, which the owner can't remember. We've been working together the whole afternoon to try to remember the password, but the owner says he'd be able to guess it if he had the "password hint". Unfortunately, we only know how to view the "password hint" by logging out of the guest account, which we obviously can't do, or else the file will be deleted. Transferring to the admin account: FAILED :(  2. Transferring the file to a USB or external hard drive: I've tried both ports with 3 different USB's, and none of them were recognized by the Mac. I've also tried plugging in a WD external hard drive in both ports, but neither recognized the hard drive. All in all, nothing between 3 USB's and 1 external hard drive showed up on the Mac. Could this have anything to do with being logged into a guest account? Transferring the file to a USB or external hard drive: FAILED :(  3. Uploading online: I've had two tabs open for the past 15 minutes: YouTube and Google Drive. Neither are showing any progress towards the upload. As I'm typing, both currently remain at 0%. I've also tried uploading the file through email, but Yahoo crashes before the upload even begins. In addition to this, I've tried uploading with Filemail.com multiple times. Each time it says it has "problems uploading"... Uploading online: FAILED :(  Is there anything I can do? Is there another method I can try? Perhaps theres a way to view the password hint without logging out of the guest account? Is there another way to access the "shared files" folder without needing the admin password? Is there anything that can be done about the USB's and the hard drive that won't show up? Is there a reason why the file won't upload online? I would really, really appreciate your help. Thank you in advance!


I'm trying to create a three-dimensional cube with OpenGL. Dimensional cube is obtained. Trying to add another side of the cube. And here I see this error:  LogCat tell's me that       triangle1Buffer = NULL       FATAL EXCEPTION: GLThread 270     java.lang.NullPointerException             at com.google.android.gles_jni.GLImpl.glVertexPointer(GLImpl.java:1122)             at com.podlinov.elseapp.app.Renderer.onDrawFrame(Renderer.java:94)   Code:  public class Renderer implements GLSurfaceView.Renderer {      @Override     public void onSurfaceCreated(GL10 gl10, EGLConfig eglConfig) {      }      @Override     public void onSurfaceChanged(GL10 gl, int width, int height) {          gl.glViewport(0, 0, width, height);         float ratio = (float) width / height;         gl.glMatrixMode(GL10.GL_PROJECTION);         gl.glLoadIdentity();         gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);     }      float [] triangle = {             0, 0, 0,   // A             1, 0, 0,   // B             0, 1, 0 ,  // C              1, 0, 0,   // B             1, 1, 0 ,  // D             0, 1, 0 ,  // C     };      float [] triangle2 = {             0, 0, 0,   // A             1, 0, 0,   // B             0, 1, 0,  // C     };       FloatBuffer triangleBuffer;     FloatBuffer triangle1Buffer;      public Renderer() {          ByteBuffer bb = ByteBuffer.allocateDirect(6*3*4);         bb.order(ByteOrder.nativeOrder());         triangleBuffer = bb.asFloatBuffer();         triangleBuffer.put(triangle);         triangleBuffer.position(0);          ByteBuffer bb2 = ByteBuffer.allocateDirect(3*3*4);         bb2.order(ByteOrder.nativeOrder());         triangleBuffer = bb2.asFloatBuffer();         triangleBuffer.put(triangle2);         triangleBuffer.position(0);      }      @Override     public void onDrawFrame(GL10 gl) {          gl.glClear(GL10.GL_COLOR_BUFFER_BIT);          gl.glMatrixMode(GL10.GL_MODELVIEW);         gl.glLoadIdentity();         gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);          gl.glColor4f(1,0,1,1);         gl.glTranslatef(-1.5f, 0.5f, -3f);         gl.glVertexPointer(3, GL10.GL_FLOAT, 0, triangleBuffer);         gl.glDrawArrays(GL10.GL_TRIANGLES, 0,6);           gl.glColor4f(0,0,1,1);         gl.glTranslatef(1.5f, 0, -3f);         gl.glVertexPointer(3, GL10.GL_FLOAT, 0, triangle1Buffer); // NULL POINTER EXCEPTION triangle1Buffer =NULL         gl.glDrawArrays(GL10.GL_TRIANGLES, 0,3);     }  }


How do I restore my iPhone from an iCloud backup?

I just installed iOS 5 on my iPhone 4 several days ago, and I backed it up to iCloud. After performing a sync with my PC, it deleted a bunch of apps. I'd like to restore these from the iCloud backup.  I tried searching Apple's site and Google to see how to restore from a backup, but all the examples are for newly activated phones, not existing phones. I couldn't find any options relevant to this in the settings app.  I tried pressing "Restore" in iTunes, which deleted all the data on the iPhone. When it started up again, it took me through some basic configuration steps, but none of the steps asked me if I want to restore the phone from an iCloud backup. The only thing close to this was when it asked me if I want to backup to iCloud or my PC. I chose iCloud.  How can I force my iPhone to download all the data that was backed up to iCloud?  Update: according to , it says that I need to go through the setup assistant and choose to restore from iCloud. The problem is that the setup it took me through was the standard iOS 5 setup which just asks you to enable/disable services such as location and iCloud backup. It doesn't seem to be the same setup assistant that appears on brand new phones. So the question is how to force the setup assistant to show on a non-new phone.


I am a beginning indie developer, and I want to get the word out about my game. What sites can I go to to ask about reviews of my game, and where might I be able to talk about and get feedback on my game from players?


How to keep the field separator when printing $0 with awk

I try to modify one column of my file, then print the result.  awk -F"|" '{ if(NR!=1){$5 = $5+0.1} print $0}' myfile   It does what I want, but when printing, only the first line keeps its field separator.( the one, i don't modify).  So I could use print $1"|"$2"|"$3"|"$4"|"$5"|"... but isn't there a solution using $0 ? (For example if I don't know the numbers of column)  I believe, I could solve my problem easily with sed, but I try to learn awk for now.


File system for external hard disk that supports access from Windows and Mac OS X

What is the file system for external hard disk that supports access from Windows and Mac OS X? Also, I would like to backup using Mac Time Machine application, and use the disk to store other data.  I'm currently using Seagata Backup Plus Portable as the external hard disk. Windows OS: Windows 10 Mac OS: OS X El Capitan


RAW, are undead and constructs affected by disease?

I can't find any information on constructs or undead having a disease immunity. The Contagion spell gives diseases. Could someone, RAW, cast Contagion on a stone golem, for example, and give it fleshrot, despite it not having any flesh to rot?


Boot Camp Assistant removal successful, still can't reinstall

I installed Windows 10 via Boot Camp Assistant with no problems yesterday, but needed to uninstall to make the partition larger. I uninstalled it also using Boot Camp Assistant and received no error message. It was successful and Windows was removed. I now want to reinstall, however BCA cannot find the space. I only have one APFS container which contains all of my space and Terminal displays plenty of unallocated space.  I have been searching for four hours and I've encountered a lot of people with problems who didn't use BCA or got an error using it, but I don't know what to do when BCA was successful.  I am on a mid-2012 MBP running Mojave. I understand there are some differences in older and newer Macs when using Boot Camp.  I know I can clean install Mojave and restore from Time Machine before I used Boot Camp the first time, but I would rather avoid it and also I worry about using BCA again, when I had a problem even when it encountered no errors. I want to install Windows again.  diskutil list:     #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         250.8 GB   disk0s2  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +250.8 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            111.1 GB   disk1s1    2:                APFS Volume Preboot                 43.9 MB    disk1s2    3:                APFS Volume Recovery                509.5 MB   disk1s3    4:                APFS Volume VM                      2.1 GB     disk1s4


I got an anonymous type inside a List anBook:  var anBook=new []{  new {Code=10, Book ="Harry Potter"}, new {Code=11, Book="James Bond"} };   Is to possible to convert it to a List with the following definition of clearBook:  public class ClearBook {   int Code;   string Book;  }   by using direct conversion, i.e., without looping through anBook?


I'm trying to make a cloud with some displace, the first with a Voronoi and the second with a cloud, finishing it with a simple volume scatter shader, but when I'm rendering the cloud get same artifacts, it isn't occurring when I use only the Voronoi or cloud but when both are on this thing appear, I try something like turning up the max bounce value but made no difference, does someone know how to fix it?


I have created an ArcGIS enterprise geodatabase. There are i5, i6,... i30 tables in the sde schema of my geodatabase. What do these tables do?


Computing a confidence interval for the difference between regression coefficients

A commercial real estate company evaluates vacancy rates, square footage, rental rates, and operating expenses for commercial properties in a large metropolitan area in order to provide clients with quantitative information upon which to make rental decisions. The attached data on age (X1), operating expenses and taxes (X2), vacancy rates (X3), total square footage (X4), and rental rates (Y) are taken from 81 suburban commercial properties that are the newest, best located, most attractive, and expensive for five specific geographic areas.  Fit a first-order regression model with the four predictor variables to the data.  Estimate the correlation between the effect of age and total square footage on rental rates.  Compute a 95% interval estimate of the difference $\beta_1 - \beta_2$. Based on your estimate, is there any evidence that $\beta_1 = \beta_2$?   Answer: I have Parts 1 and 2 completed.  However, my problem is that I have never seen a confidence interval formula for  $\beta_1 - \beta_2$. Any suggestions?


How do I enable system protection from the command prompt in the system repair screen?

I had disabled system protection trying to download DirectX 10, because my graphics can't support directDirectX 11. Some Windows updates started after I turned off my computer,  I figured it wouldn't be a problem until my computer started back up again and gave me the "failure configuring  windows updates" error, and is in a continuous loop.  It happened before, but I had restored it to a previous session. I can't do that again because system protection is off and itis saying it doesnt have  restore points,  though i do believe it does.   Windows 7 ultimate


Should I prefer higher IV totals or higher max CP?

I have 2 Grimers with the following stats:   89% (15/13/12) with a max possible CP of 2677  93% (13/15/14) with a max possible CP of 2676   I have read that the CP formula values Attack more than Defense or Stamina, this is why the lower percentage Grimer has an overall higher CP. Question is, should I also value Attack and therefore CP more? Which Grimer is better?  NOTE: I am not asking about CURRENT CP vs IVs like , I am asking about MAXIMUM CP at level 40 versus IV%.


Parallel connecting USB power for higher currents

I am trying to find any way in which I can have a higher power output from a USB power bank, by combining multiple USB ports in parallel. The USB power bank has 3 outputs, one rated at 2.1A and the other two rated at 1A. How do I do this exactly?  One idea would be to use a splitter cable and then combining multiple ports to one, but how would the power be distributed across the wires? I don't think a thin USB power wire is able to handle > 4 amps. Any solution to resolve this issue?


Open file or folder location directly when searching for it - Nautilus

I currently use nautilus as my default file manager. When I search for some file or folder, I also need to switch to the directory that contains the particular file or folder. It feels tedious to go to the properties then copy the path and open the same path. How can I save time, could there be some shortcut to switch to the directory that contains the file (or folder) being looked upon.


In search of story: Survivor of war game can do no wrong

I'm trying to help a teacher friend of mine with finding a short story he read when he was a teenager and has not been able to find since.  He described the story in the following way:  In a post-war world there is a setup in which Soviet/Russian soldiers are required to fight against American soldiers in an arena in which both sides have equal setup: a forest, a lake, etc. The winner of the 'game' has the right to govern for the next several years.  It's told from a first person point of view like you're watching the Olympic games and one American soldier gets shot, but is not killed.  He falls and other bodies fall on top of him so it seems the soviets win, however their last two soldiers happen upon him and he kills them first, rendering the United States victorious.  Given that he was the only survivor he has a sort of political amnesty in which he can do no wrong legally. He returns home and he essentially suffers from a form of PTSD.  The story ends with him watching a young girl next door get off the school bus; he walks to the neighbor's home, goes inside and, in front of the girl's parents follows the girl into her room and shuts the door, leaving the reader to assume whatever happens behind the door.  He's been looking for this story in different anthologies for some time.  Can anyone help?  Thanks so much! :)


HTML/JavaScript: Add new row at a table after click a button

I have a problem after add new row. When I click 'ADD NEW', the new row successfully added. The problem is, all 4 button at column 'Action' cannot run well. I set button 'view' to go to google.com after clicked but it only successful at the first row. Second row and onwards are fail. Below is my code.    $("#add_new").click(function () {       $("#maintable").each(function () {          var tds = '
';         jQuery.each($('tr:last td', this), function () {             tds += '' + $(this).html() + '	';         });         tds += '
';         if ($('tbody', this).length > 0) {             $('tbody', this).append(tds);         } else {             $(this).append(tds);         }     }); });  document.getElementById("myButton").onclick = function () {     location.href = "dashboard.php"; };

             Roll No	             First Name	             Last Name	             Action

                                      <input type="text" name="rollno<? $i ?>" />                 	                                      <input type="text" name="firstname<? $i ?>" />                 	                                      <input type="text" name="lastname<? $i ?>" />                 	                                      <button type="button" id="myButton">View</button>                     <button type="button">Edit</button>                     <button type="button">Delete</button>

<button id="add_new">ADD NEW         </button>      Can I know what's the problem?


Sum of the squares of a sequences converge, does the product?

If we know that $\sum_{n=1}^{\infty}(a_n)^2$ and $\sum_{n=1}^{\infty}(b_n)^2$ both converge can we say that $\sum_{n=1}^{\infty}(a_nb_n)$ converges?


Android App Text Encoding Bug (Unicode Symbols don't Display Properly)

Stack Exchange Android App Version 1.0.63  Samsung Galaxy S4 SPH-L7200T Android 5.0.1 Lollipop  There is a pretty odd bug I noticed today with the Stack Exchange App: certain Unicode strings do not appear properly.    As you can see in the preceeding screenshot, the text ᔕᖺᘎᕊ does not appear properly. This issue is not limited to just the Question and Answer text bodies, but also usernames.  The characters appear as the general invalid replacement character.     This issue makes it impossible to perform certain tasks. (Like tagging the aforementioned user.) I had to post this question from my desktop as the app won't properly copy/paste the user's name.  I'm curious if this isn't a font issue, though I have switched to the various fonts available on my device and none of them have fixed it. That said, when I edited this question from my Android device, it still correctly saved the username included above back to the database, which would indicate a font issue.  Also, and unrelated, the ask question icon is a tad blurry in the Android App, though this is beyond the main scope of this question.


What is the best way to add custom JavaScript to the standard Create/Edit/Details pages like Contacts, Accounts etc

I need to add some JS to some salesforce standard edit pages to allow us to add functionality to aid in data entry.  I would like to do it the "correct" way and my salesforce knowledge isn't great. I have however read all I can find and established that up to recently (last few days?) you could add a widget to the sidebar that would inject JS onto every page or edit pages etc but this seems very hacky and as I mentioned seems to have been disabled now.  The option that seems to be the best and most supported is to add a new VisualForce page and that uses the standardController for the page you want (for example "Contact") then include the default page for example:  <apex:page standardController="Contact">     <apex:detail inlineEdit="true" /> </apex:page>   and then throw in the JS to do the work or maybe some kind of include of the JS resource? like:  <apex:includeScript value="{!$Resource.example_js}"/>   Now a few quick tests using something like:  <apex:page standardController="Contact">     <apex:detail inlineEdit="true" />      <script type="text/javascript" language="Javascript">         alert('Do stuff here...');     </script> </apex:page>   Which appears to work fine for the in-line edit option but I really want to use it for both the main edit page and the new page (might be the same). This is where I have hit a brick wall as I can't find out how to build a page the "inherits" the standard edit/new page.  I don't want to be creating custom pages as this would mean that any already configured custom fields wouldn't be there and would make adding/removing fields require the VisualForce page to be updated (not the easy drag and drop of the standard page editor!)  So to conclude: I want to add custom JS to a lot (all if easier?) new/edit forms the "right" way. I don't mind creating custom VisualForce pages for each of the edit pages BUT the new pages MUST just have the same layout etc as the original pages and update when they do. :) I'm SURE that's not to much to ask? ;)  Thanks  P.S. Please assume I have no knowledge of salesforce and point me to any info required for the solution as I really only started using salesforce Monday! ;)


Is there any way to view the number of users online at any given time (or even an approximation)?  This could be really useful to provide an indication of whether your question is likely to get answered any time soon.  It could also provide a bit of an indication for why your question is getting very low views - if there are only a few users online, then that could be the reason for little interest in a question, whereas if there are lots of users online and the question still doesn't garner many views, then maybe it needs to be rephrased or something.  I know that this can't be used definitively, but it could be used as a rough guide, and could also just be an item of interest.  Perhaps it could show the number of users that have been seen in the past 5 / 10 minutes? (Shouldn't be too hard, since each user page already shows the last time that they were seen).


I am new to programming. Just have a quick question. What a difference between int main() and just a main(). Because in my book example, the author didn’t write int in a program and when I wrote that program in a codeblock. I was asked to put int main() and program ran. Thanks


Type Erasure in Java contradictory: how does the compiled class file ensures type checking?

During the type erasure process, the Java compiler erases all type parameters and replaces each with its first bound if the type parameter is bounded, or Object if the type parameter is unbounded.  But when we refer methods withing compiled class, compiler ensures type check at compile time.  For. e.g. if I use generics on class A compile it and then refer it through a class B, during compilation it will ensure type checking.  If java erases type on compilation, then how does the compiled class file ensures type checking?


I've found several piles of Redstone in , but I can't seem to find a coherent explanation as to what it does or how to use it.  Does anyone know what it's used for, and how to use it correctly and strategically?


Probability of no mutual friends between two groups of n people

I came across a probability question from the interview book and does not have a solution from the top of my head. I was thinking of directly counting the number of choices for each user, but it will incur a lot of cases to discuss in separate whether the user's potential mutual best friend has already been taken or not. Can anyone give me some suggestions on how to approach this question? The question is pasted below: There are two groups of n users, A and B, and each user in A is friends with those in B and vice versa. Each user in A will randomly choose a user in B as their best friend and each user in B will randomly choose a user in A as their best friend. If two people have chosen each other, they are mutual best friends. What is the probability that there will be no mutual best friendships? Thanks!


How to find the xyz location of objects in minecraft?

I am still creating an adventure map for minecraft, but in order to do it I need to make a chest pop up with items in it. I have the code for that already, but I don't know where the chest is located in my world. I was wondering if anyone knew how to find an object's location in minecraft. I know how to find the player's location, but not a chest's. Thanks!


What is the difference between following sentence constructions?     It has been developed   vs.   It is being developed      It has been held   vs.   It is being held   is being: what is the grammar used here and when is it used?


Testing whether an executable can be run on Linux?

In my Ubuntu packages, I install a hook with a one liner script:  if test -x /usr/bin/snapsignal then     /usr/bin/snapsignal "snapmanagerdaemon/DPKGUPDATE hook_action=\"$DPKG_HOOK_ACTION\"" fi   (broken original line on multiple lines so it's easier to read here)  The problem is that /usr/bin/snapsignal uses libraries which once in a while get replaced (i.e. old package gets removed just before the new version gets installed). When that happens, the snapsignal tool fails running.  The signal is not super important, so I don't mind if it doesn't run. What I'm wondering is whether there is a simple command to know that a library is missing and thus the tool won't run.  As we can see, I try to verify that the snapsignal file is an executable, but that only means the x flag is set on it. Not that it can indeed be executed.  I also tried ldd /usr/bin/snapsignal. That shows the missing library, but it still exit(0) so it's useless to test whether I can indeed execute that command. Any other idea?  I would prefer to avoid using set +e to ignore the errors altogether because there could be other errors and I want to catch them.


In  I have found that the bounds for $n$-th prime is given by, $$n(\ln n+\ln \ln n)>p_n>n(\ln n+\ln \ln n-1)$$ for all $n\ge6$. Are there even stronger bounds for the $n$-th prime?   If possible (of course if the answer is affirmative) in the answer (or comment) please give the link of the paper in which it first appears.


is it just for me or is the review option missing from stack overflow? Has it been removed or is it a real bug because i searched everywhere but i couldn't find the review option anymore.! I used to edit and review "first posts" and "Late Answers".


I want to check if user exists based on some profile2 field. I have tried the following. Works fine. I want to know if it is proper or not. If it is not proper, is there any other way around?  function checkUserExistsByProfile($company_id){          $query = 'SELECT field_somefield_value         FROM {field_data_field_somefield} AS fn         WHERE fn.field_somefield_value  =:rids';         $result = db_query($query, array(':rids' => array($company_id)));          $field_value = $result->fetchCol();         return count($field_value);      }   Please suggest.  UPDATE:  I have tried solutions suggested by  Mołot, Bulat as follows.  Profile Field name is field_ngouniqueid  $query = new EntityFieldQuery(); $query->entityCondition('entity_type', 'user') ->fieldCondition('field_ngouniqueid', 'value', (int)$company_id, '='); $results = $query->execute();  $users = user_load_multiple(array_keys($results['user']));   But users is an empty array always. But it has a record with value $company_id  Solution: it should be $query->entityCondition('entity_type', 'profile2')


SQL Server uses more memory than maximum setting

Recently I have added more memory to my VM which has SQL Server installed (now it has 32 GB).  I have set the limit in SQL to 24 GB.  A few days later I see in my process window that the SQL Server process is using 26 GB.  Why is the limit overridden? Will this process increase even more?


In R, how would you test for the joint significance of a set of parameters?

I have performed a simple linear regression which consists of an intercept and 20 variables in R. The variables can be seen as two groups, call the parameters for the first group the alpha group and for the second group the beta group. I now wish to test if the beta group as a whole is insignificant, and if the reduced model (only containing the alpha parameters) is not significantly worse than the full model. If I would look at the parameter's p-values alone, I might discard too many parameters. On the other hand, I could look at the F statistic alone, but then that would determine if the full model as a whole is significant.  How would one go about doing this in R?


Persisting ArcGIS Network Analysis Route Layer?

I'm using ArcGIS 10.0.  I'd like to be able to specify the location (path) where to create the route layer, for network analysis, when I click on Network Analysis -> New Route. Is that possible?  If it is not, how can I have access to the location where the route layer is created?  I'm using the route layer in a task of a geoprocessing service, and I'd like to give to the task the exact location (absolute path) of the route layer.  Could anybody help?


If else statement not working for comparison Java

I tried my code in several ways (using equals(), trim()) but the following code block seems to be not working despite the fact it executes the else block only. I am working on several arrays to get the confusion matrix in cross validation.      for (int x=0; x< clsNames.length; x++)     {          System.out.println("class: "+clsNames[x].trim());          for (int y=0; y<oftarray1.length ;y++)           {             System.out.println("first validation");                                         System.out.println(clsNames[x]);                                    System.out.println(oftarray1[y]);                                        System.out.println(clsName[y]);           if (oftarray1[y]==  clsNames[x] && clsName[y]==oftarray1[y])          {             System.out.println("tp...");             truePositives++;             System.out.println("tp : "+truePositives++);                                          }           else if (oftarray1[y]==clsNames[x] && clsName[y]!=oftarray1[y])         {                                                                      System.out.println("fn...");             falseNegatives++;             System.out.println("fn : "+falseNegatives++);          }          else if (oftarray1[y]!=clsNames[x] && clsName[y]==oftarray1[y])         {                                             System.out.println("fp...");             falsePositives++;             System.out.println("fp : "+falsePositives++);           }           else           {             System.out.println("tn...");             trueNegatives++;             System.out.println("tn : "+trueNegatives++);          }       }    }


How to find the sum $\sum\limits_{n=1}^{\infty}\frac{1}{n!(n^4+n^2+1)}$


I really like the font used in this article and want to use it in my documents. Does anyone have any idea of how I can do so?    EDIT: I've found out that the font is URW Nimbus Roman (thanks for pointing me towards the posts telling me how to figure it out). So my question is how can I get this font? What packages do I have to load etc? Sorry, complete amateur here! Thanks for the help!


Unit Test - Simple assert is giving null pointer exception error

I am writing a unit test to verify that both the ISO8601Utils (deprecated class which I replaced with SimpleDateFormat) and SimpleDateFormat has the same format.  My class:       public static class ISO8601DateFormat extends DateFormat {      public static final long serialVersionUID = 3549786448500970210L;      public ISO8601DateFormat() {}      @Override     public StringBuffer format(Date date, StringBuffer       toAppendTo, FieldPosition fieldPosition) {         DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-         dd'T'HH:mm:ss.SSS'Z'");         String value = dateFormat.format(date);         //This used to be ISO8610Utils.format(date, true) which           //is now deprecated and I replaced it with the new one. I           //want to verify this part so that the newly replaced          //dateFormat still returns the same formatted output as the          //ISO8610Utils          toAppendTo.append(value);         return toAppendTo;     }      public Date parse(String source, ParsePosition pos) {         pos.setIndex(source.length());         return ISODateTimeFormat.dateTimeParser().parseDateTime(source).toDate();     }      public Object clone() {         return this;     }      public String toString() {         return this.getClass().getName();     } }   My test method:    @Test     public void testDateFormat() {      df = new DefaultHttpClientUtil.ISO8601DateFormat();      Date date = new Date();      //df.setTimeZone(TimeZone.getTimeZone("GMT")); I'm getting NPE         for this line      assertThat(df.format(date)).isEqualTo(ISO8601Utils.format(date,      true));   }   However, I am getting null pointer exception for the commented line. I assume it has to do with injecting or mocking object, but I am not sure how I should approach this problem.


I would like to use OSGeo4W shell with Python3 but when typing python3 I get the following error:  Fatal Python error: Py_Initialize: unable to load the file system codec   File "C:\OSGEO4~1\apps\Python27\lib\encodings\__init__.py", line 123     raise CodecRegistryError,\                             ^ SyntaxError: invalid syntax   How can I use Python3?


How do I find $\int_{0}^{\infty} \frac{\sin^4 x}{x^2}\,dx$?

I need help evaluating the following integral $$\int_{0}^{\infty} \frac{\sin^4 x}{x^2}\,dx$$ which should probably be equal to $\frac{\pi}{4}$  Using some trigonometric manipulations I got $\frac{3}{8} - \frac{\cos{2x}}{2} + \frac{\cos{4x}}{8}$ which using integration by parts doesn't lead me to anything pretty.  Update: Not sure if I should post this as a separate question but getting explanation why $\int_{0}^{\infty} \frac{\sin{ax}}{x} = \frac{\pi}{2}$ for a positive integer $a$ could help me solve this question.


How do I recover my data from an encrypted home directory?

I have a big problem. When I made a upgrade from 10.10 to 11.04 I lost all my data in home directory. I have only data from my home encrypted directory. What can I do? Thanks Martin


How to lower case a Visual Studio Code Snippet variable?

I've build some snippets to generate a fields for a setting class. I'm now using 2 variables - $setting$ and $Setting$ - to generate names for the property and the backing field. I like to use a single variable, because the only difference is that the backing field is always a lower-cased version.  Current code:  string $setting$;  /// <summary> /// Gets the $bigComment$. /// </summary> /// <value>The $smallComment$.</value> public string $Setting$ {     get     {         if (String.IsNullOrEmpty($setting$))         {             $setting$ = CFW.Common.Configuration.GetAppSetting("$Setting$", $defaultValue$);         }          return $setting$;     } }   Is this possible?


Permute supremum and limit in the upper semicontinuous case

Let $n\geq1$ and a sequence of upper semi-continuous functions $f_n:E \to \mathbb{R}$ where $E$ is some space (we can suppose it compact).  Let $f:E \to \mathbb{R}$ be an upper semi-continuous function and assume that $f_n \xrightarrow[n\to\infty]{}  f$. Are there conditions I can add in order to say $$\sup_{E} f_n \xrightarrow[n\to\infty]{} \sup_{E} f \quad ?$$  Is an uniform convergence on $E$ helpful ?


Tricky induction proof: pile of stones split into n groups

So I understand setting up this proof and the basis step just fine, however, it is the induction step where I am completely lost. I went and asked the math tutors at my school, the the tutor that spoke with me even had a tough time with this problem... it is supposed to be tricky, any help would be appreciated, thank you!  Suppose you begin with a pile of n stones (n ≥ 2) and split this pile into n piles of one stone each by successively splitting a pile of stones into two smaller piles. Each time you split a pile you multiply the number of stones in each of the two smaller piles you form, so that if these piles have p and q stones in them, respectively, you compute pq. Show that no matter how you split the piles (eventually into n piles of one stone each), the sum of the products computed at each step equals n(n − 1)/2. (Hint: use strong induction on n.)  My attempt at this question makes no sense, and I just couldn't make sense of the tutors words in the time I had with her. Again, any help would be much appreciated!


Prove that $f$ is convex if and only if $f\left(\frac{a+b}{2}\right)\leq \frac{1}{b-a}\int_a^b f(x) dx$

Prove $f:\mathbb{R} \to \mathbb{R}$ is convex if and only if $f\left(\frac{a+b}{2}\right)\leq \frac{1}{b-a}\int_a^b f(x) dx$ for any $a,b \in \mathbb{R}$.   The context of this result is proving that in $\mathbb{R}$, a function is $C^0$-subharmonic if and only if it is convex. We have a few equivalent definitions of $C^0$-subharmonic but I thought the above would be the  most logical to try to prove. But I'm not sure how to prove either direction. One can interpret the RHS as the average value of $f$ on $[a,b]$ and then the forward direction is at least visually clear, but I don't know how to express this mathematically. Help/hints would be appreciated.


Submit Buttons on the Left or the Right?

We have been puzzling over where to put the submit button, on the left or the right. In researching, we noticed that many sites put buttons on the bottom right in dialogue boxes, and on the bottom left in forms.  It makes sense: in a dialogue box it seems to denote finality, being in the endpoint of the window for left–right readers; in a form, the bottom right could be in a different position relative to the rest of the form if the window is resized.  It seems to be a convention, but I don't see anyone talking about this specific phenomenon in the following questions, nor the articles referenced therein:        So, is this level of button position optimization worth it if it creates an inconsistency in button placement? Is this a good way to go?


how to use the terminal with linux 13.10?

I would like to know how can I use the terminal? The functionality of commands. I don't know how can I use the terminal for download movies or software.


How to navigate to a specific post in the mobile app?

There doesn't seem to be a way to navigate to a specific question using the . If there is, then it wasn't obvious to me. I tried entering the question number or URL into the search field, but it didn't work.


possible ambiguity of 'he' when two nouns are in use

I want to express that Brahma explained to Indra the mistake Indra had committed. Is it proper to say it like this?     Brahma explained to Indra the mistake he had committed.   Is there any grammatical rule that says which of the two people (Brahma and Indra) does 'he' refer to?


Is my direct proof correct for $ \prod_{i=2}^{n} \left(1- \frac{1}{i^2}\right) =\frac {n+1}{2n} $ good/correct?

I need to show via direct proof that: $$  \prod_{i=2}^{n} \left (1- \frac{1}{i^2}\right) =\frac {n+1}{2n} $$ We first note that  $$1-\frac{1}{i^2} = \frac{(i-1)(i+1)}{i\cdot i}.$$ Then \begin{align} \prod_{i=2}^{n}  \left(1- \frac{1}{i^2}\right)&=\prod_{i=2}^{n} \frac{(i-1)(i+1)}{i\cdot i}\\ &=\frac {(n-1)!\cdot \frac{(n+1)!}{2} } {n!\cdot n!}\\ &=\frac {(n-1)!\cdot(n+1)!}{2\cdot n!\cdot n!}\\ &=\frac {(n+1)}{2n}. \end{align} Direct proof end. Is that sufficient enough for a direct proof? Any critique would be helpful! Thanks!


jquery event does not work on ajax result like table

I created a table with radio button using ajax request. I want to get value from radio button by click event. But jquery event doesn't work on radio button. my created table by ajax below    I have called this ajax result by bellow code  <code> <script type="text/javascript">     $(document).ready(function(){         $(".todayTask").click(function(){             var employee = '<?php echo trim($userID);?>';             $.ajax({                 url: "ajax_call.php",                 type:"POST",                 data:{userID:employee},                 success: function(result){                     $('#taskList').html(result);             }});         });     }); </script> </code>   Now I want to get value from radio button which stay in ajax result... by below code but does not work...  <code> <script type="text/javascript">     $(document).ready(function(){         $("#s").click(function(){             var status_val = $(this).val();             alert(status_val);         });     }); </script> </code>


Taylor series in exponential curve (Desperate for help)

I am a high school student writing a report about Newton’s law of cooling. Due to environnemental effect, the temperature of the environment might vary therefore I am planning on exploring how such problem could be applied and what math should be used. Would it be possible to use Taylor series as we would expect a sine graph for the variation in temperature. Please let me know what you think and thanks a lot. Website used for the idea:


mysqli select queries through href links

I am currently switching my site made in Dreamweaver which used a lot of mysql over to mysqli for better security.  my site starts out with a prepare statement:   if (!isset($_GET['orderby']) or ($_GET['orderby'])=="Something") {     $orderby = "Something Else"; } else {   $orderby = $_GET['orderby']; }  if ($stmt = $local->prepare("SELECT * FROM Table ORDER BY ? ASC LIMIT 0,10")) {     $param = "Table." . $orderby;     $stmt->bind_param('s', $param);     $stmt->execute();     $Recordset1 = $stmt->get_result();     $row_Recordset1 = $Recordset1->fetch_assoc();     $stmt->close(); }   this gets called and the table is made on my website. I used to have 4 HREF links above the table that would change the column selected(where the '?' is) and refresh the page(PHP_self) with the new query.  <?php   echo 'Popularity';  ?>   Whenever I click on the links now, it adds the "?orderby=Up" to the address but doesn't refresh the query. Am I setting up the prepared statement in the wrong way for this to be accomplished?


Prove  $(A^c)^c$ = $A$  $(A^c)^c = \{x|x\in (A^c)^c\}$  $(A^c)^c = \{x|x\notin A^c\}$ by definition of complement  $(A^c)^c = \{x|\ (x \in A)\}$ by definition of complement  Therefore   $(A^c)^c=A$  Is this proof ok, I'm not sure if its valid? thanks


If I publish under a pseudonym, can I still take credit for my work?

Is it possible to publish under a nom de plume (pen name, pseudonym)? ... and still take credit for the work?   I may have a chance to publish with the professor I am working with soon and if I am on the list of authors I would like to use a nom de plume, but I would also like to use the publication to apply to graduate schools next time. Is it possible to have my cake and eat it in the case?  EDIT: Sorry for missing this out; The reason for wanting to publish under a nom de plume is that I would merely want my career to be tracked under a different name. Not to hide identity; I am perfectly fine with what EnergyNumbers was suggesting.


Is there any way to get a cantrip from a book outside your PHB+1?

I understand that when you are creating your character in Adventurers League (AL) that you may only use options from the Player's Handbook and one other book (PHB+1).  If I use Xanathar's Guide to Everything (XGtE) as my +1, is there any way for me to learn a cantrip from the Sword Coast Adventurer Guide (SCAG)?  Do any of these options (or something I missed) work in AL?   Leveling up and being allowed to choose a new cantrip Taking a feat, such as Magic Initiate (PHB p 168) or Spell Sniper (PHB p 170) Being a Pact of the Tome Warlock (PHB 108) where you can choose cantrips from other classes   While I think I am out of luck (the rule below seems to deny the options above), I am hoping that maybe there is some rule or FAQ answer that I have overlooked along the lines of this (for wizard spells or rituals):     Which Spells Can I Learn?      Spells are a class option; any new spells learned by advancing in a class or by feats are subject to PHB+1.   Characters that prepare spells from a spellbook may copy spells even if those spells aren’t normally found in your character’s PHB+1.   I don't think the answer will depend on what class we are talking about (since cantrips aren't prepared from a spellbook), but I was specifically thinking about my warlock.  However, I am still very interested to learn whether any class can manage this.


I'm triying to write an equation on Latex with overleaf with the following code :  \begin{equation}  \dfrac{1}{n}\sum_{i = 1}^ {n}x_{i} ^{2} + \widehat{x}_{i} ^{2} + y_{i} ^{2} + \widehat{y}_{i} ^{2} = \: <|E_{x}| ^{2}> + <|E_{y}| ^{2}>  \end{equation}   However when I do, I got 9 warnings mostly about missing $ and the numbering is behind my equation instead of being next to it.  I don't understand the source of the warnings does anyone know ?


Sorting Strings that contains number in Java

I have problem with default comparator for Strings (in SortedSet). The problem is that default comparator doesn't sort good String that contains numbers i.e.: In set i have:  room1, room2, room100   Natural ordering should be like above but in set I have:  room1, room100, room2   I know why it is but I don't know how to change it.


This javascript regex needs to extract "131PS" from "this is (131PS) for now". Then I need to get "131" as a number and "PS" as a string. Any suggestions? thx   myString.match(/\(([^\)]+)\)/ig)[0]   returns (131PS) which is not what was expected.


How can I merge two mp4 files without losing quality?

I have two high-quality mp4 files, which are of two parts of the same show.  I want to merge them together into 1 file, and I usually use VirtualDub to merge my files... But it doesn't seem to support mp4.  What alternatives are available (especially ones that don't require re-encoding)?


Correct way to read a text file into a buffer in C?

I'm dealing with small text files that i want to read into a buffer while i process them, so i've come up with the following code:  ... char source[1000000];  FILE *fp = fopen("TheFile.txt", "r"); if(fp != NULL) {     while((symbol = getc(fp)) != EOF)     {         strcat(source, &symbol);     }     fclose(fp); } ...   Is this the correct way of putting the contents of the file into the buffer or am i abusing strcat()?  I then iterate through the buffer thus:  for(int x = 0; (c = source[x]) != '\0'; x++) {     //Process chars }


I can open Thunderbird but as soon as I click on any file thunderbird freezes. Went to tools can see first page of settings but thunderbird freezes.  Ran norton 360 & rebooted too   Went to firefox website to download thunderbird Version 3.1.9 (3) program downloads and then freezes while norton checks for viruses....  Any suggestions?


Is it possible to witness a circular rainbow?

What conditions would make it possible to see a naturally occurring fully 360° circular ? Would it even be possible?


Linear Programming 3 decision variables (past exam paper question)

This is an exam question I was practising. I have the general understanding of Linear programming, but how would you go about finding the Decision Variables, Objective function and Constraints for this?  My Opinions: Decision variables: $M_1$- # of Model $1$ to be produced $M_2$ and $M_3$(similar definition as $M_1$)  Objective function: I'd Multiple the Cost to make in house by cost to buy from subtractor  to get Minimise: $3900M_1+7500M_2+27300M_3$  Constraints: $3M_1+1.5M_2+2M_3\ge0$  $1.25M_1+2.5M_2+0.75M_3\ge8500$  $M_1,M_2,M_3\ge 5500$  No idea where number order would go? Do I use it in the Constraints and multiply by the Hours?  Now, am I on the right track?


Fantasy book that turns out to be post-apocalypse, set several millennia after a nuclear war

I really want to reread a book I read years ago. I can't remember the title, but I remember that for most of the book it just appears to be a classic fantasy book, but part way through the main character finds a ruined city and a robot, and it turns out it is a post-apocalyptic future several millennia after a nuclear war. Does anyone know what book this is? I really want to read it again.  As a side note, it could be by Philip K. Dick, but I'm not positive on that one.


I call my API with following Code (as well for other Websites):  $(function () {      $("#hb_api").load("http://api.site.de?apikey=71290473059");     $("#hb_api").load("http://api.site.de/src/controller.js");  })   controller.js contains following Code:      $(function () {      $('#btn1').on('click', function () {        var vars = {         test:     $('#test').val(),         action:     'POST'       }         $.ajax({             url: "http://api.site.de/src/api_controller",             data: vars,             type: "POST",             dataType: "json"         }).done(function (d) {             var outp = d.response.post;             var outs = d.response.status;             $('#outp').html(outp + ", " + outs);         }).fail(function (xhr, textstatus) {             console.log(xhr);             console.log(textstatus);         })     }) })   And the index site this:  $api_key = $_GET['apikey'];  if (!isset($api_key)) {   header('HTTP/1.0 404 Not Found', true, 404);   exit(); }  require 'src/database.php';  $stmt_api = $pdo->query("SELECT `api_key` FROM `api` WHERE api_key = '{$api_key}'"); $q_api_key  = $stmt_api->fetch();  if (!$q_api_key >= 1) {   header('HTTP/1.0 404 Not Found', true, 404);   exit(); }      <input type="text" id="test" value="test">
Senden
   I can bind in the HTML Structure, but when i click the button, nothing happens. No Network activity or error code.  Is there a restriction, if i click the button? So how can the button call the AJAX Event, when it's clicked?


How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?

So I'm working on an exceedingly large codebase, and recently upgraded to gcc 4.3, which now triggers this warning:     warning: deprecated conversion from string constant to ‘char*’   Obviously, the correct way to fix this is to find every declaration like  char *s = "constant string";   or function call like:  void foo(char *s); foo("constant string");   and make them const char pointers.  However, that would mean touching 564 files, minimum, which is not a task I wish to perform at this point in time.  The problem right now is that I'm running with -werror, so I need some way to stifle these warnings.  How can I do that?


Top Bar is zoomed on start-up Ubuntu 20.04

When I boot the Ubuntu 20.04 my screen boots to this zoomed top bar. I need to scale it to 200% and back to 100% in order to get back normal sized top bar in 100%. Is there any way to fix this issue? Also this is not only the top bar. Desktop icons are a little bigger as well. Only Desktop is zoomed, other places are completely normal. 100% in startup:  100%, after scaling to 200% and back to 100%:


What can you call a 3rd person who's gender is unknown?  He - Male She - Female  I've never heard of an unisex word for 3rd person.


When someone asks 'No milk?' How should I answer if I don't want milk?

At the cafe..  I : Coffee please. Staff : No milk?  In that case, how should I answer if I don't want milk?  No. Yes.


Sometimes, when booting, I get:   grub ubuntu purple background Grey backlit screen Black screen   And nothing else. It does seem that Ubuntu is correctly booted. To fix the issue, I can put the computer to sleep and back again, and then the screen will be OK. I am certain that ubuntu is booted because, during the black screen, I typed enter, then my password, then I poped a terminal. After that, I did the "fix" routine and confirmed that I had an open terminal in my session.  I am unsure where to look at as most questions related to this cannot boot at all. I did a  of the failed boot, I suspect this is clearer than my explanation.  Here are the 4 lines that flashes, from dmesg:   [   20.065643] ACPI Error: Needed type [Reference], found [Integer] 00000000214ff4c5 (20181213/exresop-69)   [   20.065656] ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [Store] (20181213/dswexec-427)   [   20.065700] No Arguments are initialized for method [RPPC]   [   20.065704] ACPI Error: Method parse/execution failed  \_SB.PCI0.LPCB.EC0.RPPC, AE_AML_OPERAND_TYPE (20181213/psparse-531)   [   20.065716] ACPI Error: Method parse/execution failed  \_SB.PCI0.LPCB.EC0._Q04, AE_AML_OPERAND_TYPE (20181213/psparse-531)   Looking these up didn't yield anything helpful for me but I might have missed crucial information as I've got no idea what's happening. I've seen driver related answers, telling to install them from Ubuntu's "additional drivers" tool if they appear; there's nothing here for me.  Questions are therefore:   What other information can I provide to diagnostic what happens? How to fix this?   Edit 1: I tried both kernel options at boot: 5.0 and 4.18, didnt' help


Prove that $\operatorname{trace}(A^TA) = 0\ \iff\ A = 0$.

Given that $A_{m \times n}$ has real entries, I want to prove that $\operatorname{trace}(A^TA) = 0$ if and only if $A = 0$. In other words, I want to show that the only way for the trace of $(A^TA)$ to be zero is if $A$ is a zero matrix, and that if $A$ is a zero matrix then $A^TA$ has a trace of zero. Intuitively this makes sense to me. My idea is that in order to get zeros on the main diagonal of any product of matrices I'd need at least one of the matrices to have zeros on its main diagonal. In this case, because the product is between $A$ and its transpose, I figure it $A$ does indeed need to be a zero matrix. However, I'm having difficulty turning my intuition into an actual proof.


Prokhorov metric vs. total variation norm

Let $(S,d)$ be a metric space and let $\mathcal P(S)$ denote the space of Borel probability measures on $S$ endowed with the  $\pi:\mathcal P(S)\times \mathcal P(S)\to \mathbb R_+$ given by $$   \pi(P,Q):=\inf\{\varepsilon\geq 0:P(F)\leq Q(F^\varepsilon)+\varepsilon \text{ for all closed } F\subset S\} $$ where the $\varepsilon$-inflation of a set is given by  $  F^{\varepsilon} = \{x\in S:d(x,F)<\varepsilon\}.$  Another useful metric on $\mathcal P(S)$ is induced by the total variation norm, i.e.  $$   \rho(P,Q):=\sup\limits_{A\in \mathfrak B(S)}|P(A) - Q(A)| $$ where $\mathfrak B(S)$ is the Borel $\sigma$-algebra on $(S,d)$. I wonder if there are any interesting relations between these two metrics, $\pi$ and $\rho$. In particular, I know that convergence in $\rho$ implies the weak convergence and hence if $S$ is separable than it implies the convergence in $\pi$.   I wonder, however, if under some additional assumptions it is possible to derive some non-trivial bounds on $\rho$ if I know upper bounds on $\pi$. Or at least, if it is possible to upper-bound $|P(F) - Q(F)|$ for closed $F$ using $\pi$.


Please STOP trying to convert ! to ? on all sites and not just the orginal trilogy?

Some days ago, I wrote this .  But as peoples are pointing it out, employers will still be encouraged to post non‑developers jobs on the new system. So I wanted to addin practice !in the title.  This wasn’t a problem for . However, each time I correct , the ! mark is converted to a ? mark.  Even if this is the normal wanted behaviour, then there is still a bug because nothing prevented me to title  Please don’t make Careers programmers only in practice!. If it’s the normal behaviour then it should have been titled toPlease don’t make Careers programmers only in practice?like . So 1 of the 2 cases isn’t the normal behaviour.  There were a  with a. But as the network evolved, it currently only concerns the original trilogy. Moreover, a post title ending by a !isn’t a strong signal of a bad title in the case of a. So it’s safe to add an exception whenis used.  Please extend  to all sites !


How can I write a double expression below de comand \argmin for explain the range of two variables?


How to run multiple Linux commands in Python file

I use these three Linux commands one after each other in terminal to enable monitoring mode on Raspberry Pi 3.  iw phy phy0 interface add mon0 type monitor  ifconfig mon0 up  airudump-ng -w mon0   I want to run this these commands in Python file instead of on terminal.   I have little idea about subprocess module but don't know how to do this.   Please suggest me a way to do this.


How can I create a recovery drive for Windows 8.1?

I just installed Windows 8.1 on my computer. I am trying to create a recovery drive.  I click start, type "recovery", hit "Create a recovery drive". I click next once, and this is what I see:     We can't create a recovery drive on this PC      Some required files are missing. To troubleshoot problems when your PC   can't start, use your Windows installation disc or media.   This seems to be a common problem with Windows 8.1, but so far I haven't found a solution.


I was reading about how to find the buoyancy force when I came across this explanation:  Imagine a box submerged in a tank of liquid. The distance from the surface of the liquid to the bottom surface of the box is greater than the distance from the surface of the liquid to the top surface of the box. In short, $h2 > h1$. Because $p = \rho g h$, the pressure on the bottom surface due to the liquid must be greater than the pressure on the top surface. This results in there being more force on the bottom surface of the box than there is on the top surface. The difference between these two forces causes there to be a net force upwards called the buoyancy force.   (source: ) I understand how the force acting downwards onto the top surface of the box is found. This is simply due to the column of water above the box. But how is the force acting upward onto the bottom surface found? I specifically want to to understand where the force acting onto the bottom surface of the box, upwards, derives from.


Problem:   Is there a polynomial $p(x)$ with integer coefficients such that    $p(2013)=1789$ and $p(1515)=1830$?   My attempt:  After ruling out polynomials of degree 1, 2 and 3, and with further inspection, it appeared to me that such a polynomial doesn't exist.   Is my below proof accurate?    Suppose that $p$ exists, and let   $q(x)=p(x)-1789$ and $s(x)=p(x)-1830$  then,  $q(2013)=0$ and $s(1515)=0$, so clearly,  $q(x)=(x-2013)f(x)$ and $s(x)=(x-1515)g(x)$,   for some polynomials $f$ and $g$ with integer coefficients.   Let $a$, $c$ and $d$ be the constant terms of $p$, $g$ and $f$, respectively, and observe that the constant terms of $s$ and $q$ are    $-1515c=a-1830 \ $  and  $-2013d=a-1789$, $ \ $ respectively. $  \ \ \ \  \ \   (*)$   Thus,   $a \equiv 1830 \equiv 315 \pmod{1515}$  and $a \equiv 1789 \pmod{2013}$.  But this system of congruence doesn't have a simultaneous solution (since $ \gcd(1515, 2013)\not\mid 1789-315$).  Hence, there's no integer value of $a$ that satisfies $(*)$, which is a contradiction. Therefore, $p$ doesn't exist.    If the above is correct, is there perhaps a more direct way of proving this?


Prove that $X$ and $Z = Y^2$ are independent random variables if X, Y independent

Suppose that $X$ and $Y$ are independent random variables. I wish to prove that $X$ and $Z = Y^2$ are also independent.  I know from the definition of independence that $P({X \in A}$ and $Y \in B$) = $P({X \in A})$$P({Y \in B})$, but I'm not sure how to apply this to the above problem.


How do I format an Integer using current locale in Delphi

var i : integer;  i := 1234567;   Given the above, I want the string "1,234,567" as output (assuming UK locale). IntToStr just gives me "1234567". I'm sure there's a one-liner for this, but I can't find it...


A question on how to get the proper slope in a drain.  Let's say you have two section of drain line that must be plumb to each other. To connect these lines by code a 1/4" down slope is needed per foot.  The two section are 8' apart so they need to have a 2" slope end to end.   Fittings are made with the ports square to each other. The port on a 90 degrees elbow is 90 degrees apart. To me, that means the pipe has to exit or enter the fitting at 0 degrees difference to each other.  But, because of the slope there is no way the the connecting pipe can enter or exit the port square and bottom out. They don't make 95 or 100 degree fittings?


I have created the above formula to accomplish a sum of 20 number value picklists and it came out to 6,233 characters. As you all know, the compile limit is 5000. What can I do to circumvent this?  IF(ISPICKVAL(Contract_Rating_Form__c, ""), 0, VALUE(TEXT(Contract_Rating_Form__c)))+  IF(ISPICKVAL(Contract_Rating_Contract_Language__c, ""), 0, VALUE(TEXT(Contract_Rating_Contract_Language__c)))+  IF(ISPICKVAL(Contract_Rating_License_Grant__c, ""), 0, VALUE(TEXT(Contract_Rating_License_Grant__c)))+  IF(ISPICKVAL(Contract_Rating_Content_Options__c, ""), 0, VALUE(TEXT(Contract_Rating_Content_Options__c)))+  IF(ISPICKVAL(Contract_Rating_Exclusivity__c, ""), 0, VALUE(TEXT(Contract_Rating_Exclusivity__c)))+  IF(ISPICKVAL(Contract_Rating_Term__c, ""), 0, VALUE(TEXT(Contract_Rating_Term__c)))+  IF(ISPICKVAL(Contract_Rating_Termination__c, ""), 0, VALUE(TEXT(Contract_Rating_Termination__c)))+  IF(ISPICKVAL(Contract_Rating_Pricing_for_Multiyear__c, ""), 0, VALUE(TEXT(Contract_Rating_Pricing_for_Multiyear__c)))+  IF(ISPICKVAL(Contract_Rating_Payment_Terms__c, ""), 0, VALUE(TEXT(Contract_Rating_Payment_Terms__c)))+  IF(ISPICKVAL(Contract_Rating_Invoicing__c, ""), 0, VALUE(TEXT(Contract_Rating_Invoicing__c)))+  IF(ISPICKVAL(Contract_Rating_Service_Level_Agreement__c, ""), 0, VALUE(TEXT(Contract_Rating_Service_Level_Agreement__c)))+  IF(ISPICKVAL(Contract_Rating_Rep_Warranty__c, ""), 0, VALUE(TEXT(Contract_Rating_Rep_Warranty__c)))+  IF(ISPICKVAL(Contract_Rating_Limitation_of_Liability__c, ""), 0, VALUE(TEXT(Contract_Rating_Limitation_of_Liability__c)))+  IF(ISPICKVAL(Contract_Rating_Indemnity_Hold_Harmless__c, ""), 0, VALUE(TEXT(Contract_Rating_Indemnity_Hold_Harmless__c)))+  IF(ISPICKVAL(Contract_Rating_Assignment__c, ""), 0, VALUE(TEXT(Contract_Rating_Assignment__c)))+  IF(ISPICKVAL(Contract_Rating_Code_App_Ownership__c, ""), 0, VALUE(TEXT(Contract_Rating_Code_App_Ownership__c)))+  IF(ISPICKVAL(Contract_Rating_Data_Ownership_if_SVU__c, ""), 0, VALUE(TEXT(Contract_Rating_Data_Ownership_if_SVU__c)))+  IF(ISPICKVAL(Contract_Rating_Change_of_Control__c, ""), 0, VALUE(TEXT(Contract_Rating_Change_of_Control__c)))+  IF(ISPICKVAL(Contract_Rating_Choice_of_Law_Venue__c, ""), 0, VALUE(TEXT(Contract_Rating_Choice_of_Law_Venue__c)))+  IF(ISPICKVAL(Contract_Rating_Insurance_Obligations__c, ""), 0, VALUE(TEXT(Contract_Rating_Insurance_Obligations__c)))    Thank you.


What is the difference between equation and formula?

Sometimes equation and formula are used interchangeably, but I was wondering if there is a difference.  For example, suppose we can calculate a car's fuel efficiency as:  mpg = distance traveled in miles / the fuel used in a gallon   Is that an equation or formula?


I have the following cron job command running once daily on my NAS device:  find /nfs/rpiggott/complete -mtime +45 -exec rm {} \;   I am wondering if there is a way to pipe a list that will result in the cron sending an e-mail to me showing what file it delete and / or any errors experienced.


Isn't there anything/something you can do

Isn't there anything you can do to get her back? Isn't there something you can do to get her back?  Are these equally natural and used interchangeably?  Which one sounds more frustrated on behalf of the person who the speaker is saying this to?


What is the use of reduced row echelon form (not a row echelon form)?

There is raw echelon form and reduced raw echelon form:    The row echelon form is used to solved the system of linear equations. What is the practical use of reduced raw echelon form?  Previous question in the forum was related to row echelon form (and not to reduced row echelon form):   Thanks


Arbitrary circles equal to polar coordinates

$\alpha$ is an arbitrary (random) circle that passes through the origin.   Show that there are real numbers $s$ and $t$ such that $\alpha$ is the graph of $r = 2s \cos (\theta + t)$.  I believe that $r = 2s \cos (\theta +t)$ can be simplified down to $r = x^2+y^2$ using Cartesian coordinates. What next?


I'm running Ubuntu on Oracle VM VirtualBox. The VM was initially set up with 8GB of storage but now I've run out of space. I used VirtualBox's vboxmanage modifymedium function to resize the virtual disk, and I can see the unallocated space in GParted. Now I'm trying to extend the partition sda5 but I don't seem to get the option to extend it out into the unallocated portion of the drive. What am I missing here?


Read the contents of a zipped file without extraction?

How can I read the contents of a particular file in an archive without extracting the .zip it is contained within? I'm using the Linux command line.  An earlier  asks about viewing the directory of the archive. But for me it is not enough to see just a list of the files in the archive, I need to see the contents of a file in the archive.


How do I stop Windows 10 from updating my graphics driver?

Every time Windows 10 runs updates (which I see no way to control), it updates my graphics driver.  I like the old one because it is faster.  So, I have to reinstall it.  This is getting to be a pain.  Is there any way to stop Windows 10 from updating it again?


Is the following correct, or is there more to it?  "I forgot his name" — I knew his name, but I forgot it.  "I forget his name" — I keep forgetting his name. Where using "forget" basically means that you tried to remember this information before as well, but you couldn't then either.


JavaScript function with parameters declaration

Having this confusion with react-native (javascript) function declaration  _onclick = (resp) => { //some functions }   and,  _onclick(resp){ //some functions }   what is the difference between both declarations? or they are actually the same?


How to explain the difference between "affect" and "effect"?

I don't know how to explain the difference between effect and affect to someone. I've tried explaining that effect is a noun, and affect is a verb, that to affect is to make a change, and effect is the change that was made, but these explanations haven't made sense. (They're 17 and very intelligent, so please don't be rude.) Could you please suggest other ways of explaining this?


I played a variant of Solitaire long ago (20+ years) but don't remember the name of it or the specific rules.  It was played with a single deck of cards, which you held in your hand face down. You drew 4 cards face up, keeping them in that same hand. Cards were removed / discarded through some matching criteria (which I don't remember), and if no cards could be removed, new cards were drawn one at a time. Each time a new card was drawn, the matching criteria were applied again. This repeated until the deck was empty. You won if you were left with no cards in your hand.  I remember it being quite difficult to win, but it was neat in that you didn't need a table or other flat surface. The game was played entirely in your hand(s).


Why is it 'a United States' in this sentence instead of 'the United States'?

Japan, Turkey, and Poland will each be facing a United States even   more confident than it was after the second fall of the Soviet Union.      Source: The Next 100 Years by George Friedman   I used to see a definite article - "the" with "United States". Even more peculiar it makes that fact that "States" is a plural noun and plural nouns don't take an "a" article.


Let $\lambda , \mu$ $\in$ $\mathbb{C}$. Define $T:$ $\mathbb{C}$ $\to$ $\mathbb{C}$ by $T(z)=\lambda z + \mu \bar{z}$ for every $z \in \mathbb{C}$. Show that if  $\vert T(z) \vert = \vert z \vert$ then $\lambda\mu =0$  I'm doing the first thing that comes to mind:  $\vert \lambda z+\mu\bar{z}\vert ^2=\vert z \vert ^2$ So we have $(\lambda\mu+\mu \bar{z})(\overline \lambda \overline z + \bar{\mu}z)=z\bar{z}$  How can I conclude the proof? Thanks.


I said out loud, "I will ride my boat....not if it is raining....if the wind speed is 5mph” Does this mean: I will ride my boat if it is not raining outside and if the wind speed is 5mph. That is, the 2 conditionals “not if it is raining” and “if the wind speed is 5mph” are equal to each other. Or is the 2nd conditional serving as a conditional to the first conditional: If the wind speed is 5mph, then I will not ride my boat if it is raining outside?


Does it make sense to combine PCA and LDA?

Assume I have a dataset for a supervised statistical classification task, e.g., via a Bayes' classifier. This dataset consists of 20 features and I want to boil it down to 2 features via dimensionality reduction techniques such as Principal Component Analysis (PCA) and/or Linear Discriminant Analysis (LDA).  Both techniques are projecting the data onto a smaller feature subspace: with PCA, I would find the directions (components) that maximize the variance in the dataset (without considering the class labels), and with LDA I would have the components that maximize the between-class separation.  Now, I am wondering if, how, and why these techniques can be combined and if it makes sense.  For example:   transforming the dataset via PCA and projecting it onto a new 2D subspace transforming (the already PCA-transformed) dataset via LDA for max. in-class separation   or    skipping the PCA step and using the top 2 components from a LDA.   or any other combination that makes sense.


How to Recover Ubuntu default file system permissions

I made a big mistake..  When I trying to give some permissions to localhost project  In terminal I typed   'sudo chmod -R 755 /'   Now nothing work. I tried to fix this By this commands  mount -o rw,remount /   Now I Can't access to GUI


Finding of $\hat{\theta}_{MLE}$ of $f(x; \theta) = (\theta + 1)x^\theta$

Let $X_1, \cdots, X_n$ be a random sample from the PDF: $f(x;\theta) = (\theta + 1) x^{\theta}$ with $0<x<1$ and $\theta > -1$.  The likelihood function is: \begin{align} L(\theta) &= f(x_1, \cdots, x_n; \theta) \mathbb{1}\{0<x<1\} \mathbb{1}\{\theta >-1\}\\ &= \prod_{i=1}^{n}{f(x_i ; \theta)}\mathbb{1}\{0<x<1\} \mathbb{1}\{\theta >-1\}\\ &= \prod_{i=1}^{n}{(\theta+1)x_i^{\theta}}\mathbb{1}\{0<x<1\} \mathbb{1}\{\theta >-1\} \\ &=(\theta+1)^n \left( \prod_{i=1}^n{x_i}\right)^\theta \end{align}  We look at the log likelihood $l(\theta)$ and take the derivative of this since it is easier to deal with and it is allowed because the log is monotonic:  \begin{align} l(\theta) = n\log(\theta+1) + \theta \left( \sum_{i=1}^n{\log(x_i)} \right) \end{align}  $\implies \frac{d}{d\theta} = \frac{n}{\theta+1} + \sum_{i=1}^n{\log(x_i)} = 0$  $\implies \hat{\theta}_{MLE} = -\frac{n}{\sum_{i=1}^n{\log(x_i)}} - 1$  However, this doesn't look right.


Check if value exists in the array (AngularJS)

Currently I'm using the forEach()-method of angular to check the new value with the array of objects. But that's the wrong approach because for example in the list are 20 objects. When I'm creating an object with an existing article then the if-statement in forEach tells one time the article is existing and 19 times it isn't.  The following code:  var list = [];  articlelist.forEach(function (val) {    list.push(val.artNr); });  $log.info(list);   The articlelistcontains all 20 objects. For comparing I only need the artNr. Because when the User create a new article then should be an if-Statement to check if the added artNr is already exists.  $scope.createItem = function (createItem) {   if(list.artNr === createItem.artNr) {       $scope.message = 'artNr already exists!';   } ... };   The problem is, that list.artNr returns me "undefined" because the list variable is an array:     list output in console => Array ["AB001", "AB002", "AB003", "AB004"],      createItem output: => Object { artNr: "AB001", description: "New Article" ...}   How can I compare the new created object with the array from the list variable?


Why isn't there a proper solution on internet on this sum:  $$\sum_{i=1}^{n} \frac{1}{i}$$  Can you help me with your solution?


CMD.exe Emulator in Ubuntu to run .cmd/.bat file

Possible Duplicate:          The title says it all.  I need to create batch files and run and test them. I dont have any Windows machine. If there was any cmd.exe emulator in Ubuntu I would have worked on it.   So do you know emulator that can run .bat/.cmd files?  I know I can use vmware, virtualbox-ose. But to use it I need existing Windows which I dont have.


Blocking websites on C# WebBrowser through arrays

I'm attempting to block websites in windows form application C# using the WebBrowser Tool for a child browser project. So currently I'm able to block the predefined websites, however, I want to be able to add to the array which isn't possible. So I was wondering if there was another way?  private void webBrowser1_Navigating(object sender,WebBrowserNavigatingEventArgs e)         {                 String[] BlockList = new String[5]; //Array list stores the block list      BlockList[0] = "http://www.google.com";     BlockList[1] = "http://www.google.co.uk";     BlockList[2] = "http://www.gmail.com";     BlockList[3] = "http://www.yahoo.com";     BlockList[4] = "http://www.bing.com";      for (int i = 0; i < BlockList.Length; i++)     {         if (e.Url.Equals(BlockList[i]))         {             e.Cancel = true;             MessageBox.Show("Booyaa Says No!", "NO NO NO", MessageBoxButtons.OK, MessageBoxIcon.Hand); // Block List Error Message         }     } }


Using cURL, How can I fetch a numerical string which contains commas and spaces and convert such to a NON COMAFIED string

Example: Google's Outstanding Shares are 670,000,000 and this value is collected in a txt file from Yahoo Finance API using the below script.   The issue is; that numbers WITH commas or spaces are near impossible for the text wizard and Excel to delimit when I pull this txt file into Excel to complete my work.  Ie the delimiter wants to break 670,000,000 into three separate values AND spread this across three columns which is a joke and renders my work futile.  Thus: I need the prospective script to bring all numerical strings that originally contained commas and spaces back to the txt file WITHOUT such. Ie no commas or no spaces.  So rather than 670,000,000 being brought into the txt file, I need 670000000 so that Excels antiquated delimiter may render the data into columns properly.  I have asked this question 4 times on here and each time the code provided by the super user has not worked.  cd desktop/quoteUpdate while true do   curl -o quotes.txt -s "http://download.finance.yahoo.com/d/quotes.csv?s=goog,aapl&f=nsl1j2" echo UPDATED: date sleep 10 Done


I have an old, used Panasonic LX100 (Point and Shoot) that I plan to use as my main all-use video camera. I just started noticing that dust spots are visible in the image on apertures larger than about 4, and they become sharper as aperture is increased. I have a couple of questions. First of all, would this indicate that the dust is on one of the lens elements, on the sensor, or either? Second, if I were to have this commercially repaired, would either repair be substantially harder than the other? I'm keeping cost in mind as I might just get an ND filter to avoid using the higher apertures if the cost is too high for my practicality (at least until I save up to have the repair done).


Design an 8x4 memory chip using 2x1 memory chips?

I have been given this task to design a single 8x4 memory chip using only 2x1 memory chips. I have been searching everywhere on google for some decent information or example of how this is done, but sadly came up empty handed. Can anyone please help me out or at least point me in the right direction?


I used to say "sharp sign" to refer to the # sign.   Today a friend told me that the correct term is number sign or hash sign or even just hash.  What is the difference between these options and what's the correct usage of the names for this sign?


How are attack bonuses calculated in dnd 5e?

I am new to dnd, and all of my other characters were told what the attack bonuses are for their weapons, but now that I am on my own, I need to figure out the attack bonus for the quarterstaff, and how to calculate them in the future. Thank you in advance!


Tricky Regular Expression with a Alphanumeric pattern in uppercase

Okay this might not be tricky at all for some but at the moment really screwing up with my head.   First of all i don't know what engine i am dealing with, but it doesn't seem to identify uppercase.   I have a string for example  Circuit Ref      Service Type      A End Address      Z End Address            52GD J32SD41 O2AE EVC001      Evolve Internet   And I am only trying to extract the string "52GD J32SD41 O2AE EVC001". I have already tried quite a few combinations like    [0-9A-Z]{4}\s[0-9A-Z]+\s[0-9A-Z]+\s[0-9A-Z]+ [A-Z0-9]{4}\s\W+\s\W+\s\W+ [A-Z0-9]{4}\s[A-Z0-9\s]*[A-Z0-9\s]*[A-Z0-9\s]*   Nothing seem to work...I want to keep the expression fairly flexible as the expression can change order of the letters and digits. but the pattern is mostly same. Any nudge in a right direction will be greatly appreciated.  Thanks


Is every open subset of $ \mathbb{R} $ uncountable?

Is every open subset of $\mathbb{R}$ uncountable?  I was crafting a proof for the theorem that states every open subset of $\mathbb{R}$ can be written as the union of a countable number of disjoint intervals when this question came up.  I feel like the answer is yes, but I'm not sure how to go about proving it or whether there is a crazy construction (like the Cantor Set)  that creates a countable, open subset of $\mathbb{R}$. Any ideas?


Alright so i spilt a bit of water on my keyboard while back. It was very little so i didn't really try to do anything. However a few minutes later i realised that some of the keys on my keyboard won't working very well. So I switched the laptop off and kept it upside down. I turned it on after half an hour and although things have improved, I'm very  concerned...  For example, the A key doesn't work. Pressing 1 or 2 types out both etc.   Rest everything seems to work as usual.   Do I need to do anything except wait this out?


What is a good idiom for telling someone something that they already know a lot about?

Like when you're in a conversation with someone about something and you're telling them about XYZ, but it turns out they are already experts in the subject matter, an idiom like trying to teach the teacher.


How to auto-sync a USB thumb drive with folders on the PC?

In my job we are not guaranteed to keep using the same computer forever. Also, I need to keep the files at arm's reach when traveling. This is screaming a "cloud" solution, but here in Brazil mobile connectivity is still an issue, and relying on company networks there is always the firewall and network policy issue, so cloud is no-go.  So I started using a 16GB flash drive to store all my personal and work documents. But I am afraid someday the thumb drive will die on me and I will lose everything. Also I have a hard time when I forget it at home and can't access my files.  So I am looking for some utility/script that will run on my home and work computers and whenever I connect the thumb drive, it detects it as my thumb-drive and synchronizes with folders on the computer, kinda like rsync.   These are the needed features:   Securely recognizes the thumb-drive (using a special "key" file or volume serial numbers) Update only modified files (no dumb-copying, as it's several GB) If a file was modified on both on the thumb-drive and the computer, ask for which one to keep. I may choose which folders to sync (do not want to sync the music folder, for example) Non-annoying operation, just ask for a decision on conflicts if needed (but a progress indicator would be nice).   Desirable but not required, are syncing being done automatically before removal (instead of at insertion).  Is there a ready-made Windows tool for this job? This could be pulled out with a batch file but I wanna know if there is something on the market already.  Thanks!  Update for future viewers..  SyncToy is very good, but has the flaw of needing Administrator account for installation. I needed to sync with na old XP work computer, with limited permissions. I've settled for Unison  . It is a command-line app, but matches all my requirements, and does not need  to be installed.


I am trying to create a formula that will put a 1 in a hidden field if the value of a picklist is equal to a specific value.  I keep getting stuck here and I can't figure out what I am missing?  IF(ISPICKVAL( Examiner_Type__c ="Pending Examiner Status","1","",))


For Fibonacci sequence, $f_{m+n+1}=f_m f_n+ f_{m+1}f_{n+1}$ [Proof Verification]

Please check my below proof. Thank your for your help! Theorem:  For Fibonacci sequence, $f_{m+n+1}=f_m f_n+ f_{m+1}f_{n+1}$  Proof:  Let $P(n)$ is the statement $\forall m \in \mathbb{N}(f_{m+n+1}=f_m f_n+ f_{m+1}f_{n+1})$. It is clear that $P(0)$ is true. Assuming that $P(k)$ is true i.e. $\forall m \in \mathbb{N}(f_{m+k+1}=f_m f_k+ f_{m+1}f_{k+1})$. Since $P(k)$ is true for all $m$, then $P(k)$ is true for $(m+1)$ too. Substitute $(m+1)$ for $m$, we have $f_{(m+1)+k+1}=f_{m+1} f_k+ f_{(m+1)+1}f_{k+1}=f_{m+1} f_k+ f_{m+2}f_{k+1}$. $\iff f_{(m+1)+k+1}=f_{m+1} f_k+ f_{m+2}f_{k+1}$ We now prove $P(k+1)$ is true. $f_{m+(k+1)+1}=f_{(m+1)+k+1}=f_{m+1} f_k+ f_{m+2}f_{k+1}$ $=f_{m+1} f_k+(f_{m+1}+f_m)f_{k+1}$ $=f_{m+1} f_k+f_{m+1} f_{k+1}+f_m f_{k+1}$ $=f_{m+1}(f_k+f_{k+1})+f_m f_{k+1}$ $=f_{m+1} f_{k+2} + f_m f_{k+1}$ $=f_m f_{k+1}+f_{m+1} f_{k+2}$ $=f_m f_{k+1}+f_{m+1} f_{(k+1)+1}$. To sum up, $f_{m+(k+1)+1}=f_m f_{k+1}+f_{m+1} f_{(k+1)+1}$. This implies $P(k+1)$ is true. By principle of induction, $P(n)$ is true for all $n \in \mathbb{N}$.


Delete n lines after pattern and m lines before pattern

NOTE: I'm aware of this question: .  Mine is not a duplicate as had been previously cited, the answers to that question also deletes the pattern, while in this question the pattern itself must be preserved.     I am trying to delete n lines after a pattern and m lines before a pattern (without deleting pattern). For example, if the file is:  1 2 3 4 5 6 7 8 9   If, Pattern = 5, and n = 2 and m = 3. Then:  1 5 8 9   Could you please suggest how to do this?    Bonus: It would be great if we could set either m or n = 0 in the same code. For example. If we set m=0 and n=1, in the above example, we should get:  1 2 3 4 5 7 8 9


Probability that $xy = yx$ for random elements in a finite group

let $G$ a finite group, not abelian. I don't know if a short proof of this fact exists :   $$\mathbb{P}(xy = yx) \leq 5/8$$ $x,y$ are randomly picked.  Edit : If possible, i want to know if there is a shorter proof than this one :   (in french sorry)


Cartesian product of connected spaces with a common factor

Suppose $U$, $V$ and $W$ are connected topological spaces. Is it possible for $U \times V$ and $U \times W$ to be homeomorphic but for $V$ and $W$ not to be? It seems like it should not always be true but I am unable to find a counterexample.


WHERE ISNULL doesn't bring though records where target value IS NULL

The title only explains my first attempt, I couldn't think how to word the issue/my need exactly. I have table job: CREATE TABLE [dbo].[job]  (     [jobId]      INT IDENTITY(1,1) PRIMARY KEY,     [contractId] INT NOT NULL,     [districtId] INT NULL,     [address]    NVARCHAR (255) NULL );  I'm trying to create a function where all of the column values can be optionally passed through to do a filter search. So far I have: DECLARE     @jobId          INT,     @contracId      INT,     @districtId     INT,     @addressPart    NVARCHAR(255)  SELECT      [jobId],     [contractId],     [districtId],     [address]    FROM     [dbo].job WHERE      jobId = ISNULL(@jobId,jobId)     AND contractId = ISNULL(@contracId, contractId)     AND [address] LIKE '%' + ISNULL(@addressPart, [address]) + '%'  This works, however because the districtId can be null in the Job table doing the same ISNULL where clause as for contractId results in the query to only ever return records where districtId is not null, as the '=' condition doesn't work for null values. I've tried using COALESCE AND COALESCE(districtId, 0) = COALESCE(@districtId, 0)  But that results in the query only selecting records where districtId is null if no districtId is specified. It does select the the row with the districtId if a 'district' is set. But this is ultimately no good as if any other variable is set which would match a record, if that record has null districtId it won't be selected. I've also tried using OR AND (districtId = ISNULL(@districtId, districtId) OR districtId IS NULL)  But this returns everything when the districtId is null, but then if a districtId is set, it'll get that record, but also still return all records that have districtId null. I can't even think how to do this with a dirty CASE statement, as I'd need to do districtId = and as soon as I do that '=' its not going to work as it need to on some level check for null is null which '=' can't do.


So, within the DS9 universe, there were the Prophets that lived within the wormhole.  What sort of beings were they?  What were their powers?