Index of the subgroup $\operatorname{Im}(f)$

In a course of group theory an exercise is left with no indications :      Let $A$ be an abelian group of finite type and $a_1,\dots ,a_n$ a $\mathbb{Z}$-basis of $A$. Let $f : A \to A$ be a group homomorphism. Les $M=(m_{ij})$ be the matrix (invertible) defined by $\displaystyle f(a_j)=\sum_{i=1}^n m_{ij}a_i$ with $\det (M)\neq 0$. Show that $[A:\operatorname{Im}(f)]=|\det M |$, i.e the index of $\operatorname{Im}(f)$ in $A$ as a subgroup is precisely $\det (M)$.   I am not able to prove this fact, and need a bit of help. In fact I do not see where I can make $\det (M)$ appear. Can you give me some hints ?   Thank you


can I cut (delete) a portion from a Linked List by index? For example, if the input is "100", I want to delete the first 100 elements from a linked list. Currently, my code deletes them one by one.  public void remove(LinkedList<String> queue, int count){     if (count > queue.size()) {         System.out.println(ERROR);         return;     }      for (int i = 0; i < count; i++) {         queue.remove(0);     } }


It's clear to me that there was no clean solution in Python 2 to unload a module, and this was a known bug, that was set to be corrected.   The posts:     of the year 2009 and 2010 confirm this lack of support for unloading a module.  I wonder if this was solved in Python 3.x. When I do, import os, del os, dir(), the os module is not there (at least not visible, usable). Is it gone?


Ubuntu 17.04 64bit  I use only my spdif output for sound. I recently changed my monitor and this one is plugged int the DisplayPort.  Now, everytime I turn the screen on, Ubuntu switch from the spdif to the Displayport audio output. It's really annoying.    The Unity control center has noting to select a default output or to disable an output.  I was told to use Pavucontrol, strangely it only display the output selected by Unity-control-center. It won't display both output at the same time and the "set as fallback" switch does nothing (and by it's label only I'm not sure what it should do).    What can I do to keep spdif always selected?


How do I identify identify if a resistor is 300 or 1k?

I got an Arduino-compatible board from this  and the kits come with 10 330-resistors and 10 1k-resistors, but I don't know how do I identify which resistor is which. The  are broken (try to register/login), then I cannot ask there.  The resistors have color patterns printed, but I don't know what they mean.


Email from IOS with attachments larger than 7.5Mb gets stuck in outbox and constantly tries to resend. Costs us hundreds in data fees

We have an on premise Exchange 2013 server. When sending email with large attachments from ActiveSync accounts on IOS devices, the email gets stuck in the outbox and won't send. It keeps trying to resend and can cause our users to blow their data allowance and start costing hundreds in data fees. It does not do this when sending from a Gmail account linked on the phone, or from a windows 8 phone.  I've narrowed down an attachment size of about 7660870 bytes before the issue starts occurring. For a few bytes over this limit, the email will have a failure message, but will still be sent through without the attachment. If you add a few more bytes on, we get the failure message but no email goes through and it gets stuck in the outbox. These sizes are under our allowed size limits for internal and external mail. Additionally, I'm guessing the behavior of this issue depends on the total size of the message including header, body, etc., not just the attachments.  Has anyone seen this happen before, or have any idea what could be causing this?


Installing a Chilli HotSpot with phpmyprepaid

I'm installing a Chilli hotspot on Ubuntu Server and I'm trying to use it with phpmyprepaid, but I can't get it working.  The Chilli part is fine, but i can't access the install of phpmyprepaid. I'm downloading it and unzipping in /var/www but it always tells me that it's not found.  Would anyone have an idea?


Let $K$ be an extencion of $F$ and let $a,b\in K$. If $a$ is not algebraic in $F$, but it is in $F(b)$, show that $b$ is algebraic in $F(a)$.   $F(x)$ is the smaller subfield of $K$ containing $F$ and $x$.  I'm not used to problem abouth field extentions and algebraic numbers, I just know the definition, so I need some help with this problem. Thanks.


Is there a geometrical interpretation to the notion of eigenvector and eigenvalues?

The wiki  on eigenvectors offers the following geometrical interpretation:     Each application of the matrix to an arbitrary vector yields a result which will have rotated towards the eigenvector with the largest eigenvalue.   Qn 1: If there is any other geometrical interpretation particularly in the context of a covariance matrix?  The wiki also discusses the difference between left and right eigenvectors.  Qn 2: Do the above geometrical interpretations hold irrespective of whether they are left or right eigenvectors?


May I have a list of just my declined flags?

There is a helpful summary of one's flags just to the right of one's flagging summary:  Your flagging history  1024 moderator attention flags 1023 deemed helpful    1 declined  512 disputed  128 posts marked spam  64 deemed helpful   32 posts marked offensive  4096 comments flagged   32 deemed helpful   32 declined   I'd really like each of the "declined" and "disputed" to be hyperlinked to a filtered list of exactly the flags I cast that our moderators didn't find helpful, so that I can more readily learn from my mistakes.   means I've got skim through the list and look for the lines that don't say "helpful" among 14 pages of flags. (Your pages may vary.)


Convexity over a line given a convex interval

Let $f : \mathbb{R}^n \to \mathbb{R}_∞$ be a function.   I want to prove that $f$ is convex over the line $L_{v,x_0}$ iff $\psi : \mathbb{R} \to \mathbb{R}_∞$  $\psi(t) := f (x_0 + tv)$, is convex over $I (x_0, v )$.  where $L_{v,x_0}:= \{x_0 + tv : t ∈ \mathbb{R}\}$, and $I(x_0,v):=\{t \in \mathbb{R} : x_0 + tv \in C\}$  Any help is very much appreciated


Tips on basic electricity and magnetism books

I would like to study basic electricity and magnetism with a book with a good mathematical language (e.g. to calculate the thing with gauss law the book explain the importance of parametrization, coordinate change inside integral and so on...)


I'm testing out the iOS app for SE and I like it so far (in fact, I'm posting this from it), but I believe I've found a bug of some sort: I'm not allowed to edit posts. I can click on the edit link, but as soon as I press "preview" an error comes up suggesting that I don't have the reputation to do this.   I have 166 reputation on SO (which is where I tried to perform the edit), which allows me to suggest edits (and works fine on a desktop PC) but I can't do it on my iPhone 5.   Is this a bug? Or has something changed recently that I've missed?


put history command onto command line without executing it

I use !n where (n) is the line number for executing a line in the history file I want executed at the command prompt which I find via history|less.   But there is a command line history event I wish to manually modify. How can I insert into the command line a history events contents without it actually executing so I can modify and then press return?  Best,


Lucius Malfoy was a well known Death Eater and eventually Draco Malfoy became one as well. But what about Narcissa Malfoy, Lucius' wife and Draco's mother? She certainly spent a great deal of time around Voldemort and her husband, but I don't recall her ever being explicitly described as a Death Eater.   So was Narcissa Malfoy a Death Eater? Or was she a non-Death Eater permitted to be in the company of Voldemort?


What is the most suitable function for a heart?

I have seen some codes to plot heart on matlab, e.g.        How can I prove/find from the theory how to plot a perfect heart?


Can undergraduate students really post something on arXiv.org?

Are there any cases of undergraduate students posting something on arXiv.org? Can undergraduate student (or any arbitrary person) REALLY post to arxiv and if not, then how does the protection work?   In principle, the mechanism of  seems to allow such content to pass through.


I have a windows partition mounted in linux (setup with pysdm) with following options:  nls=iso8859-1,umask=000,gid=users,user,uid=my_user   I can access the data on the partition, write/read files, but when I try to run a shell script I get permission denied. The script has:  -rwxrwxrwx 1 my_user users 8419 Aug 11 14:06 test.sh   How can I please setup the partition so that I can read/write files (like now) and run scripts under my user as well as my cron/anacron jobs also being able to run commands writing to this windows partition? (i.e. full extent of functionality as my native linux partition?)   Thank you!


Overfull box and broken pagination with page that contains only section headings

I'm working on a large document in Emacs (23.2.1) org-mode (7.8.06) which I export to LaTeX. At present, the outline/structure of the document has been created, but not any of the content. The LaTeX version (which consists of \section, \subsection, \subsubsection and items mainly) has broken pagination, a blank page and text that runs off the page.  I shortened the document by moving \end{document} around to try to find the problem. In some cases, the document rendered correctly. This seems to be related to too many "section" types headings in LaTeX with no content.  To test this, I added  \usepackage[english]{babel} \usepackage{blindtext}   to my document and then inserted \blindtext "content" for most of the sections/subsections. The document now renders correctly.  The documentclass is article and the only package loaded is .  Are there any known issues with pdfLaTeX/pdfTeX where a document contains only/mainly section headings and not much, if any, content? The only relevant error message pdflatex generated was:  Overfull \vbox (333.44125pt too high) has occurred while \output is active [5] [6]   I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).  An example can be found . The only required package is hyperref.


If $R=K[X]/(X^n)$, can represent any element as polynomial with degree $<n$

Let $K$ be a field and $R=K[X]/(X^n)$ where $n \in \mathbb{Z}_{n\geq1}$ and $(X^n)$ is the ideal generated by $X^n$. We denote $x:=X+(X^n) \in R$, any equivalence class $r$ in $R$ has a representing element of the form: $$r=a_0+a_1X+ \dots + a_{n-1}X^{n-1}.$$  I am confused about the statement in bold. How would I find such an element for $X^3 \in K[X]$ if $n=2$ for example?


Im a bit lost here, I'm getting the error:  Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference   This is the code that matters:  public class MainActivity extends AppCompatActivity {      SeekBar chestValue;      @Override     protected void onCreate(Bundle savedInstanceState) {          super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          chestValue = (SeekBar)findViewById(R.id.chestValueSlider);  }   The line "SeekBar chestValue;" is whats giving the error according to the stacktrace. Any suggestions?


Identity concerning the gcd and lcm of three integers.

I saw this identity in some indian textbook and have no idea how to derive it, the textbook also suggest that a similar identity exists for 4 integers, so I'd appreciate any hint you can provide! Let a,b,c be positive integers; then: $$\left({\frac{lcm(a,b,c)}{gcd(a,b,c)}}\right)^2=\frac{lcm(a,b).lcm(b,c).lcm(a,c)}{gcd(a,b).gcd(b,c).gcd(a,c)}$$


I'm trying to make an app for my project on android studio, but when I'm trying to run this java file, this file is crashing and app stopped working on my emulator.Im simply trying to import images from my default gallery to my app.  import ....   public class tenant_profile extends Fragment {  private final int SELECT_PHOTO = 1; private ImageView imageView; public tenant_profile() {     // Required empty public constructor }   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {      // Inflate the layout for this fragment      super.onCreateView(inflater, container, savedInstanceState);      return inflater.inflate(R.layout.fragment_tenant_profile, container, false); }   @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);        Button pickImage = (Button) getView().findViewById(R.id.btn_pick);     pickImage.setOnClickListener(new OnClickListener() {     //enter code here         @Override         public void onClick(View view) {             Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);             photoPickerIntent.setType("image/*");             startActivityForResult(photoPickerIntent, SELECT_PHOTO);         }     }); }      @Override     public void onActivityResult ( int requestCode, int resultCode, Intent imageReturnedIntent){         super.onActivityResult(requestCode, resultCode, imageReturnedIntent);          switch (requestCode) {             case SELECT_PHOTO:                 if (resultCode == Activity.RESULT_OK) {                     try {                         final Uri imageUri = imageReturnedIntent.getData();                         final InputStream imageStream = getContext().getContentResolver().openInputStream(imageUri);                         final Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);                         imageView.setImageBitmap(selectedImage);                     } catch (FileNotFoundException e) {                         e.printStackTrace();                     }                   }         }     }    }   My exception is following:  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime: FATAL EXCEPTION: main  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime: java.lang.NullPointerException  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at com.example.sanchit.helloworld.tenant_profile.onCreate(tenant_profile.java:55)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.Fragment.performCreate(Fragment.java:1939)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:988)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1207)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572)  01-29 08:04:13.233 1796-1796/? E/AndroidRuntime:     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:493)   please help


Proof involving Poisson and Gamma distributions for two random variables

Prove that if $X_i \sim \text{Poi}(λ_i)$, $i = 1, 2$, are independent, the sum $X_1 + X_2$ has the Poisson distribution as well.   Prove that if $X_i \sim \text{Gamma}(\alpha_i,\beta)$, $i = 1, 2$, are independent, the sum $X_1 + X_2$ has the gamma distribution as well ($i$'s are meant to be subscript).  I am not sure how to go about solving these problems, help would be greatly appreciated!


I created a page (with slug "page-title" say), then deleted it.  I created a 2nd page with the same title, and it automatically saved itself with a page slug of "page-title-2".  The first page no longer exists, not in the trash either, but I can't rename the 2nd page's slug to "page-title".  How can I do so?


Java code doesn't run when subtracting from an int

for (i=1; i < 9; i++) {         for (j=1; j < 9; j++) {             if ( board[i][j] == "o" ) {                 j = j-1;                  if ( board[i][j] == "x" ) {                     do {                         j--;                     }                     while (board[i][j] != "-");                     board[i][j] = ".";                 }             }         }     }   I have this piece of code as part of a method, there are two versions, one as written above and one where j = j-1 is replaced with j = j+1 and j-- is replaced with j++  The positive version works perfectly fine but if I put in the negative version, the code compiles fine but when I attempt to run it nothing happens, the console just hangs and I have to close and reopen it. Can anyone tell me what I am doing wrong? Thanks in advance.  edit:  for (i=1; i < 9; i++) {         for (j=1; j < 9; j++) {             if ( board[i][j].equals("o") ) {                 j = j-1;                  if ( board[i][j].equals("x") ) {                     do {                         j--;                     }                     while (!board[i][j].equals("-"));                     board[i][j] = ".";                 }             }         }     }   I have edited the code as indicated but the problem persists


By considering $\sum_{r=1}^n z^{2r-1}$ where z= $\cos\theta + i\sin\theta$, show that if $\sin\theta$ $\neq$ 0, $$\sum_{r=1}^n \sin(2r-1)\theta=\frac{\sin^2n\theta}{\sin\theta}$$   I couldn't solve this at first but with some hints some of you gave, I was able to come up with my own solution. Here it is:  First, we want to consider what is given in the question, $$\begin{align} \sum_{r=1}^n z^{2r-1} & =z+z^3+z^5...\\ & = z + z(z^2)+z^3(z^2)+...\\ \end{align}$$ In Geometric Progression, sum is given by $$\sum_{r=1}^n z^{2r-1}=S_n = \frac{a (1-r^n)}{1-r}=\frac{z(1-(z^2)^n)}{1-z^2} = \frac {z-z^{2n+1}}{1-z^2}=\frac {1-z^{2n}}{z^{-1}-z} $$ Now, substitute $z = \cos \theta +i \sin \theta$  $$\begin{align} \sum_{r=1}^n z^{2r-1} & =\frac{1-(\cos (2n\theta) + i \sin(2n\theta))}{\cos\theta - i\sin\theta-(\cos\theta+i\sin\theta)} \\  & = \frac{1-\cos (2n\theta) - i \sin(2n\theta)}{-2i\sin\theta} \cdot \frac{(i\sin\theta)}{(i\sin\theta)}\\   & = \frac{i\sin\theta-i\sin\theta \cos (2n\theta) +  \sin\theta \sin(2n\theta)}{2\sin^2\theta} \\ \end{align}$$ Equating imaginary parts, $$\sum_{r=1}^n \sin(2r-1)\theta = \frac{\sin\theta (1 - \cos(2n\theta))}{2\sin^2\theta} = \frac{\sin^2n\theta}{2\sin\theta} $$


How to use the fact that $f:E\to F$ is an homeomorphism, if $cl(A)=E$ then $ cl(f(A)) =F $  I know that f is continuous then $f(cl(A))\subset cl(f(A))$ but how to continue? and where is used the fact that $f^{-1}$ is continuous?   thank you


In class, my professor just mentioned that some finite-amplitude water waves were satisfied by the KdV equation. Is there some reference which shows how to derive this from $1st$ principles, and also discusses other non-linear water waves?


How to write alias when the command includes file path

I have a command like python abc.py -p 'File Path' -c 'File path'.


Can external thesis examiner object to inclusion of so many unwanted co authors in published papers?

My friend is working on material science and he published 3 papers in very good SCI index journals. In all papers he is first author and second is his supervisor and rest are co-authors like incharge of lab where test were conducted, teacher of his supervisor who is working in other university, some other scientist from USA who suggested the problem to his supervisor but was not involved in work in any other way and last co-author is student of his supervisor from same semester working on slightly different problem. In each of three papers the order and number of authors is same.  Now he is afraid of external examiner of his PhD thesis who may according to him might raise objection on inclusion of so many coauthors. All the papers were communicated by his supervisor so there was no chance for him to decide of his own. I told him that, this is a usual practice and nothing to worry about. Am I right ?


For reference im using an AVR Atmega 328p, and the servo specs i'll be using says this:   Pulse Cycle: 20 ms (I assume this means the "period")  Pulse Width: 600-2400 µs   So from my understanding, using fast PWM and lets say a 1Mhz clock. I make the Width by setting 2 values. One when it reaches TOP-whatever width (lets pretend 1800 ms, I think people use ICR1 for this) and then the top (I think they usually use OCR1A here).   So the time between ICR1 and OCR1A (Which is the top) is where I turn the "Pin" to the Servo on correct? And then it turns off when OCR1A ends  IE: Turn on when it reaches ICR1, turn off when it reaches OCR1A. If I want a width of 1.8 ms i'd need to make that 1800 steps correct? Since 1800 "ticks" would be 1.8ms (If Im understanding my units correct)  The pulse cycle is where I get confused. That would just be the "TOP" value right? IE: if I need a 20ms pulse cycle. and every tick at 1MHz is 1/1000 of a milliseconds, so to do 20ms pulse cycle, ill need 20000 ticks. because every tick is 1/1000 of a ms  Am I thinking of this correctly? I think the "Ticks" with the CPU Frequency and then trying to get that figured out with cycles and widths is just sort of throwing me for a loop.


OS- Windows 7 Professional & Windows Server 2008 R2  In Event Viewer --> Application and Services logs --> Internet Explorer there is no log, it is always empty.  I need to check why my Internet Explorer crashes automatically, but I don't find any log.  I have also try some registry setting to enable log. but unable to do the same. below is the print-screen.


wp_delete_auto_drafts() deletes links in menus

Since yesterday the wp_scheduled_auto_draft_delete cron job somehow deletes all page entries from our menus. All entries in the table wp_postmeta with meta_key = '_menu_item_object' and meta_value = 'page' get deleted in the process. By tracing back the DELETE query I found out that the menu entries are deleted by a function called _wp_delete_post_menu_item. I got the following stacktrace for that function:  #0  _wp_delete_post_menu_item(3244) #1  call_user_func_array(_wp_delete_post_menu_item, Array ([0] => 3244)) called at [/srv/www/htdocs/biva/wp-includes/plugin.php:470] #2  do_action(delete_post, 3244) called at [/srv/www/htdocs/biva/wp-includes/post.php:2483] #3  wp_delete_post(3244, 1) called at [/srv/www/htdocs/biva/wp-includes/post.php:5645] #4  wp_delete_auto_drafts() #5  call_user_func_array(wp_delete_auto_drafts, Array ()) called at [/srv/www/htdocs/biva/wp-includes/plugin.php:546] #6  do_action_ref_array(wp_scheduled_auto_draft_delete, Array ()) called at [/srv/www/htdocs/biva/wp-cron.php:100]   But I'm stuck here, I'm not a wordpress developer and I have no clue why deleting old drafts results in deleting attached menu entries although the main pages still exist.  Workaround: As a workaround we added the following to the top of wp-config, wich will disable wp-cron:  /** Disable wp-cron to prevent menu from getting deleted. Detailed Bug description: http://wordpress.stackexchange.com/questions/145953 **/ define('DISABLE_WP_CRON', true);   If you are experiencing similar difficulties you might try locking the rows in the table wp_postmeta with meta_key = '_menu_item_object' and meta_value = 'page' and then tracing back the error message when WP trys to delete these rows, that's how we nailed down our error.  Reproduce the Error: It is definitely the stealth publish plugin that is causing our error, one can easily reproduce it, by doing the following:   Install a fresh Wordpress 3.9.1. Install the stealth publish plugin . Create a few test pages and add them to a new menu. Create a new page, with some dummy content, but do not save it!. Leave the page without saving. Change the system time 8 days into the future. The wp_scheduled_auto_draft_delete cron job will run because it runs daily and it hasn't run for 7 days as soon as you visit your page. It will then find your never saved dummy page delete it as it is older than 7 days and the menu will vanish. You might need to refresh the page a few times till the effect becomes visible.   I've recorded a screencast on how to reproduce the error (but I took not the time to comment it):


Understanding parameters of Beta distribution

I've heard that the $\alpha$ and $\beta$ parameters of the Beta distribution intuitively represent the number of successes and failures, respectively.   1) If so, what's the purpose of subtracting $1$ from them in the exponent?  2) If so, why would then $\alpha=1$ and $\beta=1$ represent a uniform distribution? Do we assume that there is one success and failure initially? Does this have anything to do with Laplace's Rule of Succession?  3) How can we intuitively understand positive real-valued shape parameters for the distribution?


Relation between Meissel–Mertens constant and Euler–Mascheroni constant

From the , the Meissel–Mertens constant $M$ is defined as the limit: $$M:=\lim_{n\to\infty}\left(\sum_{p\leq n}\frac{1}{p}-\log\log n\right).$$ Why is it  equal to $\gamma+\sum_{p}\left(\log(1-\frac{1}{p})+\frac{1}{p}\right)$? where $\gamma$ is the  Euler–Mascheroni constant defined by $$\gamma:=\lim_{n\to\infty}\left(\sum_{k=1}^n\frac{1}{k}-\log n\right).$$ I tried to prove this, but cannot work it out.


How can I create Light Streaks in Cycles?

I'm trying to make a light paths like there:    To achieve this light threads (streaks) I used a particles emmiter with shining icospheres and motion blur shutter like .  I got this result:    First of all I wish to get full path of the light: from rising to falling. And the second I wish to see the half circle path, but not the angle like now.  Maybe I should use another way to achieve the reference?  Blender 2.75, Cycles


I want my design to use as many common footprints as possible (eg. 0805/0603 for capacitors and resistors, powerSO8 for big switching MOSFETs, etc) so that I am less restricted by manufacturers and suppliers, and so that people in other countries etc. can build the design easier.  It appears that HC-49 is a very common footprint for crystals across a wide frequency range. I am also aware of a (less common) SMD version where it sits on a little plastic base and the leads are bent flat.  Are there any more compact SMD packages for crystals that have the broad support across many frequencies and suppliers? When I look on DigiKey it seems that all the smaller devices are in unique/manufacturer-specific packages with fairly narrow ranges of frequencies.  Am I just missing something? Is there a "go-to" package for small SMD crystals, like there is for resistors? Or perhaps a few different "go-to" packages for different frequency ranges (since lower frequency xtals probably need to be physically larger)?  (To clarify, I have no issues with reflow-only packages)


letter stretch too far after justification in illustrator cc

I'm learning illustrator today and when I start to justify a text. some words (F a c i l i si) start to stretch too far away. is there any option so I can fix this?


Is is possible to restore the MFT of a NTFS partition after a format?

I've searched through several questions but didn't quite find anyone treating mine.  So, I have a 1TB external hard drive I use for backup purposes with only 1 NTFS partition. Today using DiskPart I formated that partition by mistake (who would have thought the disc count started in 0 and not in 1). The complete command I used was:  format recommended override quick label=Windows   So I performed a quick format, and from which I've read after a quick format it's possible to recover the data stored there. Anyway, as soon as I realized it wasn't the partition I wanted to format the one I specified I removed the access to my external drive to minimize possible damages.  Now, the MFT is the metadata part where the file name, creation date, access permissions and contents are registered; and it's mirrored too (so there's a copy of it somewhere in the disk). What I don't know is if a quick format erases that MFT mirror too, I hope not.  I'm running a program to recover files on it but I'll have to save the files to another location (once it's finished scanning, ~12 hours from now) and I don't quite have over 900GB of free storage where to put the data.  I would like to know if there's a program or procedure by which I could restore the old MFT in-place and have all the data that used to be in there accessible once again.  Any help or light you could shed on how to proceed or what programs to use is really appreciated.


How to change the material of 1 or more faces of a object

I would like to change the material of two faces of a cube to be glass as opposed to changing the entire cube to be made from glass. Is this possible to achieve or does each object have to be wholly comprised of 1 material?


Why does breaking Bell's inequality rule out all local hidden variables theories?

It seems that a hidden variables theory could reproduce Bell's experiments results, preserving locality, as long as it accepts that the superposition state(or at least a faux superposition) existed at $t=0$ of the creation of entangled pair. In this case, the question "where and how were the particles previous to the measurement?" makes sense, but only up to the moment they were defined to be opposites. It could be that, while movement over time for a entangled particle is also described by a wave function, its spin for each vector remains constant over time (when considering the same direction measured), only being uncertain at t=0. There's even a global vertical direction that could be responsible for this: gravity.  Bell, in fact, accepts that $\vec\lambda\cdot\vec p >0$ could properly describe the possibly states for a single particle in a local hidden variable theory. Why can't it be that when the entangled pair is created, this measurement is ran over in a particle, which defines every possible vector for this particle (respecting the probability), then the result is transferred and reversed in the other particle? That's all this local hidden theory would need to accept. In this case, the particles only communicate at $t=0$, and never again.


Installing MATLAB 2016a onto ubuntu 16.04?

Hey I recently built a computer and put ubuntu 16.04 onto it. Now I'm going through and adding different software packages. One of them that I got is MATLAB 2016a which I have no idea how to install on a Linux system. I've really never used one before so please excuse the learning curve. Could someone point me in the right direction on how to go about doing this?   I have the downloaded the zip file but I can't seem to extract the file. That seem to be the portion I'm stuck on. Thanks in advance.


Why was my question closed and down voted, but not this one

Recently, I overreacted over a question ban thanks to this question     (Question Deleted), but I  was searching for a little while, and I found this.    While it was closed once, it was reopened, and has not gotten any bad criticism. I was trying to communicate almost the exact same thing in my question, but it was closed, deleted, and down-voted. Why was this question not attacked like mine??


Visualforce email templates- date time, and timezone rendering for a date field?

I have a field on my opportunity which is a date. when I add it to my email template, it renders as date time. obviously, i want just the date to render.  Help?  <messaging:emailTemplate subject="This is my subject" recipientType="User" relatedToType="Opportunity">     <messaging:htmlEmailBody >         close Date: {!relatedTo.closeDate}

     </messaging:htmlEmailBody>     <messaging:plainTextEmailBody >         close Date: {!relatedTo.closeDate}     </messaging:plainTextEmailBody > </messaging:emailTemplate>    Output   close Date: Thu Aug 22 00:00:00 GMT 2013   close Date: Thu Aug 22 00:00:00 GMT 2013


This is my first time of using Ubuntu. I am trying to install java jdk-15 in my lap.I applied following steps.  sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-15/bin/java 1 sudo update-alternatives --config java sudo gedit /etc/environment => I saved the path (JAVA_HOME = "/usr/lib/jvm/jdk-15" ) source /etc/environment ==> this step outputs "JAVA_HOME: command not found"  Why do I get this? Pls help me.


UTF-8 character encoding battles json_encode()

Quest  I am looking to fetch rows that have accented characters. The encoding for the column (NAME) is latin1_swedish_ci.  The Code  The following query returns Abord â Plouffe using phpMyAdmin:  SELECT C.NAME FROM CITY C WHERE C.REGION_ID=10 AND C.NAME_LOWERCASE LIKE '%abor%' ORDER BY C.NAME LIMIT 30   The following displays expected values (function is called db_fetch_all( $result )):    while( $row = mysql_fetch_assoc( $result ) ) {     foreach( $row as $value ) {       echo $value . " ";       $value = utf8_encode( $value );       echo $value . " ";     }      $r[] = $row;   }   The displayed values: 5482 5482 Abord â Plouffe Abord Ã¢ Plouffe  The array is then encoded using json_encode:  $rows = db_fetch_all( $result ); echo json_encode( $rows );   Problem  The web browser receives the following value:  {"ID":"5482","NAME":null}   Instead of:  {"ID":"5482","NAME":"Abord â Plouffe"}   (Or the encoded equivalent.)  Question  The documentation states that json_encode() works on UTF-8. I can see the values being encoded from LATIN1 to UTF-8. After the call to json_encode(), however, the value becomes null.  How do I make json_encode() encode the UTF-8 values properly?  One possible solution is to use the , but I'd rather not if it can be avoided.


I'm having trouble getting Pokemon GO to run on my phone, it's stuck on a loading screen that has the "Pokemon GO" logo at the top, a cancel button ("X") at the bottom and a spinny ball in the middle and never starts the game. I've played it many times on this phone (to level 36) so not sure what's going on. I've tried looking for information on line about it but there's nothing I can see that's similar.  Any ideas?  Thanks


Why can't we run through walls like Harry Potter?

This is a very simple and stupid question but ever since I watched the first Harry Potter and saw Harry and his friends run through a wall at King's Cross Station I have wondered what keeps us from just running through objects or falling through the floor? Is there some fundamental physical law/concept that prevents us from doing this?


How to combine tabular data and images for neural network training?


I am looking for a topological space that is separable but not Lindelöf. I am somewhat sure of it existence although I can be wrong. Also, given a saparable space, can you give necessary and sufficient conditions for the space to be Lindelöf? Thank you!


Where did C-3PO's fussy and worry-prone personality come from?

Droids . Purging the memory should clear the personality, too. Unfortunately, this didn't work on C-3PO. It looks like this personality is hardwired to him. In the prequel trilogy, he was fussy and worry-prone. In the original trilogy, he was again fussy and worry-prone despite having memory wipe.  If you look at the first version of C-3PO, you'll find that he had the same personality even that time. This brings the question: From where did kid Anakin get this fussy and worry-prone personality data to burn it as fail-safe default of C-3PO?


Which is better?  "You" vs. "Yourself" (referring to God)  "Draw us close to You." or "Draw us close to Yourself."  "Bring us back to You." or "Bring us back to Yourself."


Computer is replaying the same keystrokes I did a month ago - what could it be?

I was writing some text on my Windows 10 computer and suddenly characters and words that I wasn't typing showed up. I removed the mouse and keyboard dongle and turned on airplane mode but it didn't stop. Still, text that I soon recognized as a comment I wrote on some website one month ago continued to appear. It was written at the exact same pace I had, and all the operations I did were repeated, like writing some words, then going back to change them. Here's a little video I took after turning of the keyboard:  Unfortunately I didn't think about checking the running processes before restarting the computer. For now, the problem didn't come back. I did full scans with multiple softwares like Microsoft Defender, Malwarebytes, Sophos and Kaspersky Virus removal tools... but without any result. At first I though that it could be some kind of keylogger, but what would be the purpose of replaying these keystrokes on my computer? What could be the cause of this behaviour? Note: I see my question as been marked as duplicate of  but I'm not asking how to remove malicious spyware from my PC. I was just searching to understand this strange behaviour, as I would have expect from a keylogger to collect data without me knowing.


Bayes' Theorem or Bayes's Theorem? (Similarly, Charles' Law or Charles's Law?)

Possible Duplicate:     Which one is correct? I thought the latter would be correct but apparently the former is always used; why? Edit: Another (confusing) example:


Can I loop through a table inserting a value from each row in an insert statment?

I have a table with 260 rows of information (Im taking from an XML column in NAMES table) , I want to take the first names of each row of that table and insert to a new table USR_BBUSXMLTNS. My insert statement: begin try     -- handle inserting the data     insert into dbo.USR_BBUSXMLTNS         (ID, ADDEDBYID, CHANGEDBYID, DATEADDED, DATECHANGED,FIRSTNAME)     values         (@ID, @CHANGEAGENTID, @CHANGEAGENTID, @CURRENTDATE, @CURRENTDATE,         (SELECT  CAST(REPLACE(REPLACE(CONVERT(nvarchar(max), Data),          '<?xml version="1.0" encoding="utf-8"?>', ''),          ' xmlns="urn:books.RET.XDATA"', '') AS xml).value('(//Donor/FirstName/text()) [1]',          'nvarchar(max)') FROM Names) )      end try  I want the insert statement to loop through the Names table and get the name value for each row and add it to the insert , ideally I will have the 260 names in the USR_BBUSXMLTNS table when it completes. Ive searched the site and tried different solutions but not certain that they are designed for what I need. when I run this I get : Subquery returned more than 1 value. This is not permitted when the subquery follows =, as there is multiple results - Can I do a loop? Any advice would be great. David.


What are Fourier basis functions? And how do I prove that Fourier basis functions are orthonormal?


Is this the wrong way of initializing Singleton classes in Java?

I had my singleton class initially like this   private static MqttHandler instance = new MqttHandler();  private MqttHandler(){};  public MqttHandler getInstance(){     return instance;  }   Now in one phone it was working as expected, but in another, seems like it was creating many instances, since whenever I tried to log something, it did log multiple times. I have no idea why.  The second time I tried using this    private MqttHandler instance;   private MqttHandler(){};   public MqttHandler getInstance(){       if(instance==null) instance == new MqttHandler();       return instance;   }   Seems to be working, at least for now, not sure if its going to crash later, Does this mean that, in my first method, whenever I returned instance, it was calling   new MqttHandler();   thus creating new instances all the time? Why would it work on one device correctly, and then refuse completely on a different one?


What is the difference between "maybe" and "may be"?

What is the difference in meaning and usage between maybe and may be? Are they synonymous?


Can we have a guaranteed pipeline for responses from Stack Exchange?

I think we should have some mechanism that automatically flags certain meta posts (both child metas and here) for Stack Exchange staff attention when they get beyond a certain point. The thresholds would be something like (subject to tweaking):   Post is  or  Post has a score of 50 or more (possibly adjusts based on site).       OR   Post receives a bounty from 3 or more users (this will take weeks, I know, that's the point)   The idea is to prevent very highly voted posts from falling through the cracks. Here are some examples where this has happened (or, at the very least, a very long time passed between a staff response and an answer). These are just the some of the ones that eventually DID happen:             The bar for this should be very high. Possibly higher than the one I propose above. But it should exist, to handle the outlier cases that fall through the cracks, plus it will encourage more meta participation and voting (since it will add to the perception that voting really does matter), which can only be a good thing.         Could you expand on how you think this feature would help solve problems on the sites? It's not hard for us to slap  when we don't like a feature request or don't have time to work on it or when it's blocked by some other feature or when the request is unclear, etc. But I don't know if that will fix the underlying problem. (As an aside, it's strange to call out meta posts that have been addressed. Is the problem that they weren't fixed fast enough? If so, I don't see how your proposal addresses that.)   In at least two of those links, someone tweeted at @balpha before they got noticed. In a third, I custom flagged one for dev attention and @AnnaLear fixed it within three days later. Some of these are huge fixes, some of them are small; the bottom line is that I don't know what you have noticed and what you haven't, which is why I didn't link to questions that haven't been addressed. Searching for unaddressed things might turn up lots of stuff you've thought about but never got a , or it might turn up stuff that fell through the cracks.  However, these questions took six months or more before any dev response, at all, but they were things that Stack Exchange clearly did support, because they happened. A system that nearly guarantees a dev response for the most popular posts will serve to:   Prevent very easy things from falling through the cracks, like #1, #2, #5, and #7 above Facilitate communication "We love this idea, but it's very hard!" Like #6 above Increase morale and user participation on meta "hey my votes and bounties actually accomplish something!"   This is about fixing easy bugs faster / without missing any, and about increasing communication on the more difficult things.    Related, but not dupe (because this is a specific proposed solution, not a question):


Many pages get a triangle-shaped warning icon in Firefox

Many pages get a triangle-shaped warning icon even when connected over HTTPS due to the presence of insecure content. This is annoying and probably ought to be fixed.  Are there any plans to fix this annoying message?


I'd like some advice on how I can negotiate a Qualcomm Quick Charger up to a certain voltage. I have a "dumb" appliance which usually uses its own transformer/"wall wart" at 12V 1A. I also have a USB Quick Charge adapter which can supply 12V 2A, so in theory I can create a cable to adapt that USB charger and replace the wall wart. However, the charger won't output 12V unless a charge controller tells it that the device can use the extra voltage. This negotiation is usually performed by a charge controller on a smart phone.  Is there a simple device on the market that can do this? Alternatively, is there a circuit I can put together to accomplish this? Here is a diagram which illustrates the idea. Basically I need to output 12V to a "dumb" device, so an independent charge controller is needed.


Why are Deathclaws attacking my vault so much?

My vault seemed to be doing okay, I guess. I mean, I’m questing 24/7 and that gives me tons of stuff! That’s good, right? But then I got some Deathclaws and I thought: “Well, it’ll pass. My dwellers are really strong. They’ll make it.” And sure enough, they literally died on the first floor. After I finished another quest, and my people got in just in time, more Deathclaws attacked.   Now I get, like, four attacks per day and my dwellers keep complaining about not feeling well and I’ve spent about 86,000 caps on reviving people and my two Mr. Handy’s. Is there a specific reason, or amount of dwellers that causes your attacks to spike?


hover effect on navbar toggle dropdown not orking on dynamic data

I created a dynamic data for my navbar dropdown, but the problem I encounter is when it is on static mode the dropdown hover works.   However, when i load the data from my database and display it on my page, hover effect does not work.  Here is my script:                 $.ajax({                     url:'/api/navbarToggleDropdownMenu/getall',                     type:'GET',                     dataType:'JSON',                     // async:false,                     success:function (res) {                          for(i in res){                             myKey = i;                             myVal = res[i]                             for(o in myVal){                                nKey = o                                 nVal = myVal[o]                                  if(nVal.moduleId != undefined || nVal.moduleId != null){                                      $('[data-id="'+myKey+'"]').replaceWith('
'+                                                                                ''+nVal.moduleName+''+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+nVal.moduleName+'
'+                                                                                '
'+nVal.moduleName+'
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
'+                                                                                '
');                                 }                             }                         }                      }                 })   but when I resize my browser after AJAX request hover effect works.  What I want to do is to make hover effect work after my AJAX request loads.


VB.net reading serial ports opened by third party

I've a program that opens a serial port and sends ascii to an Epson printer using ESC/POS commands.  Want I want to do if possible is to capture the output of this com port, reformat it and send it to various places.  I've heard of programs/seen programs capture the data from an opened com port that they didn't open.  Star for instance have a service that can read a port and then fire it to their USB or Ethernet printers.  Can I do this in vb.net? I know I can make an instance of com 2 and open then read incoming, but how would I capture data from a port that's been opened by another program?  Won't it throw an exception that the port is already in use.  Anyone done anything like this before?


Can a squad use a leader or unit from another squad?

I've never played Warhammer. I have a close friend that does. I am looking for a gift to get her for the game.  Is it possible for a Blood Angels squadron to use a character like Sammael from ravenwing? If I were to get her that would it be useful in her game RAW? Also can a 40k 8th edition game, use units from 30k?


Let $X,Y$ be two topological spaces and $f:X \rightarrow Y$. Prove that $f$ is continuous on $X$ iff $int(f(A)) \subset f(intA)$.  My attempt: ($\Rightarrow$) Assume that $y \in int(f(A))$. I tried to prove $y \in f(int(A))$. We have $V$ is an open set : $y \in V \subset f(A)$. So there is an $x \in A$: $y=f(x)$. Because of the continuity of $f$, there is an open set $U$ containing $x$ and $f(U) \subset V$. It leads to $f(U) \subset f(A)$, but I'm not sure $x \in U \subset A$.  I wonder if we have $f$ is injective then can I say $f(U) \subset f(A)$ then $U \subset A$ ?   ($\Leftarrow$) I have already known the solution.  Is there any solution for this ? Thank you.


I have installed latex and compiled tex file using pdflatex command, the file did not compile. It is showing revtex4-1.cls not found. How to fix this, please any one can help me.


How to install Eclipse J2EE IDE from a tarball?

I have downloaded Eclipse 3.6.1 as a tar.gz file from eclipse site. Then I extract using  cmd: tar -zxvf eclipse-jee-helios-SR1-linux-gtk.tar.gz  after execute this cmd I got eclipse folder in this there is eclipse file. When I double click on this eclipse file I'm getting following error:     Could not display "/media/D-DEVELOPME/eclipse/eclipse".   There is no application installed for executable files   is there any solution for it?


Do you need identification to take the ferry from Belfast to Liverpool?

When taking the ferry from Belfast to Liverpool do you need identification?


"Is there any news" or "are there any news"?

Which is better? Which is grammatically correct?         Is there any news about my candidacy?    Are there any news about my candidacy?


How to break URLs in references into multiple lines

I am using a 2 columns IEEEtran template. I have some long URLs in the references section. One of the URLs exceeds the column's width and does not break properly. How can I force URLs to break into multiple lines if the URL exceeds the column width?  Here is my main script:  \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \usepackage{hyperref}   \begin{document}     \title{Title Here}       \maketitle     \begin{abstract}         Abstract here.     \end{abstract}      \section{Introduction}\label{sec:intro}     Some text here \cite{test}.  \bibliographystyle{IEEEtran} \bibliography{ref}  \end{document}   Here is the ref.bib script:  @misc{test,     author = {Xing, Wang},     title = {My Ref title},     date = {2018},     note = {Accessed Dec. 1, 208},     url = { https://www.zzzzz.com/article/gggggg-aa-zzzzz-aaa-qqq-rrr-tttt-yyyy-8888-vvvvvv-qqqqqq-lllll-xxxxxx-oooooo-pppppp/},     }


Click on the "Cancel" for "Start a bounty" scrolls page to the top

If I close "Start a bounty" window with a "Cancel" button, page scrolls to the top.        This is not happen if I choose close button (right top) or simply click anywhere on the page outside this window.


Why didn't Kabuto callback the reanimation of Itachi?

During Itachi Nagato vs Naruto in episode 298. We have seen Itachi's decision been changed by kotoamatsukami. Kabuto also noticed this. Why didnt he just closed his reanimation and close him in the wooden closet?


I just noticed the new Help Center's "Privileges" page.  I really like what has been done, except for one thing...  all the icons are the Facebook/G+/other sharing site icons.      In fact, right-clicking on the icon and selecting "view background image" shows this image:   I really don't think this is what was intended when the page was designed...


Why is cofinite topology on a countable set a second countable space?

Consider a countable set $X$ with cofinite topology.  the claim is that $X$ is second countable.  The simple argument is as follows :  $\color{red}{\text{Since $X$ is countable, the number of finite sets in $X$ are countable.}}$ Hence the number of open sets in $X$ are also countable. Since the topology itself is countable, the space is second countable.      Question: Why should it be true that the number of finite subsets of a countable set is countable?


Real analysis (probably easy) limit problem, restricting $\delta$.

Studying real analysis on my own. I've come across the following problem. $$f(x) = x^2 + 2x + 6; \text{ show } \lim_{x\to3}f(x)=21$$ The solution that was given was:  Choose $\epsilon>0$:   $|f(x)-21|=|x^2+2x-15|$ ...(so far so good we just subtracted the L value from the function)   $=|x-3||x+5|$   ...(normally I would just set $<ε$ and solve for $|x-3|$, but can't do that here as I would still have a variable term)  Then the solution says, restrict $\delta<1$, ..(where $\delta$ represents the size of the window we consider as $x$ approaches $3$. Here is the part that is troubling me. I don't understand why we can do this) The solution then says: we want $|x-3|<\delta<1$ $$\implies-1<x-3<1$$ $$\implies->7<x+5<9$$ $$\implies|x+5|<9$$ Then it says: $$|f(x)-21|=|x-3||x+5|<9|x-3|<\epsilon \text{ if } |x-3|<\epsilon/9$$ Take $\delta=\min(1,\epsilon/9)$ $$\text{Then if } |x-3|<\delta\implies|f(x)-2|<\epsilon$$ $$\lim_{x\to3}f(x)=21$$ I don't understand the intuition behind just restricting $\delta<1$. $\delta$ is the window we must be inside to enable us to get arbitrarily close to the limit value. Why do we and how can we restrict ourselves to the case where $\delta<1$? As I don't really understand this point, I don't understand much of the rest. I don't see why we are taking the minimum value either $\delta=\min(1,\epsilon/9)$ Can somebody help?


Does "Going Infinite" necessarily end the game?

I've seen a variety of combinations that will allow a player to "go infinite"* in life, power, toughness or simply create an endless loop**.  In the case of the endless loop, I understand why it necessarily forces a draw.  The game states can only proceed to states that feed the loop.     104.4b If the game somehow enters a “loop” of mandatory actions, repeating a sequence of events with no way to stop, the game is a draw. Loops that contain an optional action don’t result in a draw.   If a creature goes infinite in power or toughness, or a player goes infinite in life, does it necessarily signal a win/loss condition?    A particularly stubborn a player could require the now infinite player to only gain as much life/toughness/power as they are willing to physically perform the combo, but it would be poor sportsmanship, right?  * perform a combination where, at the end of the sequence, the combo may be performed again  ** a particularly specific setup involving 3 oblivion rings


Null pointer exception in for loop with random numbers

For some reason my code gives one random number but crashes after the second due to a null pointer exception. Does anybody know how I can fix this?  public void shownumbers() {     Timer MyTimer = new Timer();         MyTimer.scheduleAtFixedRate(new TimerTask() {             @Override             public void run() {                 Random r = new Random();                 TextView viewbox = (TextView) findViewById(R.id.textView);                 viewbox.setText(Integer.toString(r.nextInt(10)));             }         }, 100, 500);


How to transform a shapefile's projection in ArcGIS?

I am working with a series of shapefiles of France, which were created privately by someone (as opposed to an official institution). We can call them the P-maps. There is no .prj file associated with them. When I open them in QGIS or ArcMap, and set their coordinate system to be WGS84, they "look alright". However, they don't overlay with a correct shapefile of France in WGS84 (a map in WGS84 from the IGN, let's call it IGN) , so another projection was used (you can see the picture, the IGN shapefile is circled in blue; one of the P-maps is pointed in red).  I know I could potentially try to identify the correct projection by trying each individual projection one by one, by I am weary of using this method, as I am not sure that this person correctly georeferenced these P-maps. I think that they establish them by creating the shapefile from an image that was not georeferenced.   Is there a way to define a transformation to each file (I have around 50 P-maps, and they all align to each other) so that  GIS would define the right coordinates systems, having the comparison point of the IGN shapefile in the WGS84 projection? Something like when you georeference a raster map. Since all the  maps align, I could apply this transformation to each one of them.   The layer extent:  top 590.9218000 right 620.0 bottom 30.0 left 20.02860  And the file you can


Mapping multiple keys strokes to one key

I'm using both Windows 7 and XP (simulatnateously on two machines) and I'm getting frustrated with the fact that both versions use different keystrokes to move up the folder hierarchy in explorer.  Windows 7 uses [Alt+Up] and XP uses [Backspace].  I've had a look around and tried  but as it says:  Things that SharpKeys will not do:   Map multiple key presses to one key - e.g. it will not support an attempt to remap Ctrl+C to the F5 key    So, is there any solution?  TIA, Paolo


For each $c \in [0;2]$ I have to examine monotonicity and limit of the sequence $a_1 = c$, $a_{n+1} = 1 + \frac{(a_n - 1)^2}{17}$. I only solved equation $g = 1 + \frac{(g-1)^2}{17}$ and $g = 1$ or $g = 18$. Can you help me with the rest?


I put ubuntu-spinner-logo PT on my old Ubuntu 19.04 PC, how can I increse duration of it, PT last untill boot ends,but spinning logo last for aprox. 15s and PC need about 40s to boot up. I found ubuntu-spinner-logo.script in:  usr/share/plymouth/themes/ubuntu-spinner-logo/   but I do not know how to modify it, or am I allowed to modify it due to licence of it. Thank you on your time.


Why do graduate programs have comprehensive examinations (comps)?

I'm about to begin studying for the comprehensive examinations (comps) my masters program (Computer Information Systems) requires.  I'm curious as to the point of even having them in the first place.  I'm not concerned about whether or not I'll pass my comps.  I know that I will.  It just seems like a lot of wasted time in both preparation and the fact that I'll have to burn a precious day of vacation to take them.  I could understand if, as stated in another post regarding PhD programs, we were required to take them after our first year of the program as part of a larger weeding out process.  However, that isn't the case.  We're simply required to take them before graduation.  In four separate exams, we're tested on the four core courses for our program.  Didn't I pass those courses already?  Haven't I already earned a satisfactory/passing grade for each course?  Would someone please provide my ignornant mind with some insight into the possible reasons why?  It feels like double jeopardy...  Thanks!  EDIT: The exams are written by the same instructors who taugh the specific class I took.  For example, both Dr. Jones and Dr. Smith teach CourseX.  However, since I took Dr. Jones for that course, he is the person who wrote the comp for the course.  At least, that's my understanding of how they're written and by whom.  I apologize for leaving this nugget out.  I shouldn't write these questions while I'm sleep deprived...


Is there ArcPy tool for polygon resizing like Scale tool of Advanced Editing toolbar in ArcMap?

I am writing a python script for ArcGIS 10.3. I know about Scale tool in ArcGIS interface but I can't find such arcpy command. It exists?  As you can see on the picture the Scale tool works different than Buffer tool - it changes the form of original polygon. So the question is:   Can I use Scale tool (available from ArcGIS interface) using arcpy?


I need a explanation of this problem:       $$  \int \frac{1}{\sin^3 x}\,dx $$       Change the variable $$ t = \tan (x/2) $$   With use of $\tan$, $\cos$, $\sin$ and $\cot$, only.   So how do I think of this and what are the steps?   Progress  Well I have $\sin x = 2t/(1+t^2)$ and $t = \tan x/2$ gives  $$2 \arctan t = x,\quad  \frac{2}{(1+t^2)} dt = dx$$  This all gave me  $$\int \left(\frac{2t}{(1+t^2)}\right)^3 (2/(1+t^2))\,dt$$


Calculation of $\int_0^{\pi/2} \frac{dx}{(1+x^2)(1+\tan x)}$

I want to evaluate the following integral:  $$\int_0^{\pi/2} \dfrac{dx}{(1+x^2)(1+\tan x)}$$  I tried integration by parts, $u = \arctan x$ that leads to $\int_0^{\arctan \pi/2} \dfrac{du}{1+\tan(\tan u)}$, but nothing seems to work...


I cannot choose to go into Ubuntu. It boots me into windows automatically

I have a laptop with windows installed in 1TB hdd. I recently bought a new 256GB SSD(Gammix S5) and I installed ubuntu on it (I haven't allocated this to windows so only Ubuntu is present in it). So I have installed ubuntu only on the SSD and the installation process was successful. It asked me to restart and then remove the installation medium and I did so. Now it restarts and only boots to windows and it doesn't let me choose which OS to boot into (The grub screen doesn't show up).


2d pool collision with rotational motion

I'm trying to calculate a collision between two 2d disks with rotational motion. The collision is perfectly elastic: the sum of translational and rotational energy is conserved. In the instant of the collision the contact of disks' surface is without slipping. Could you give me hint for this calculation?  Thanks.


Find all units in the ring Z[i] = { a+bi : a,b ϵ Z }

Find all units in the ring $ Z[i] $= { $a+bi$ : $a,b$  ϵ $Z$ }.  I faced a similar problem to find all the invertible matrices in $Z$. I concluded the solution must be all matrices of det ($\pm1$). I don't know whether this solution is correct or accurate but I'm clueless for above problem.  Edit: The chapter was on matrices so I assumed the author was asking for such matrices, but author just said "Find all units" (He may have meant elements, idk).


echo -e 'one two three\nfour five six\nseven eight nine' one two three four five six seven eight nine   how can I do some "MAGIC" do get this output?:  three six nine   UPDATE: I don't need it in this specific way, I need a general solution so that no matter how many columns are in a row, e.g.: awk always displays the last column.


How to use Fermat's little theorem to find $50^{50}\pmod{13}$?

I don't understand how to use Fermat's little theorem to find remainders e.g if we are asked to find remainder of $50^{50}$ on division by $13$, what is a and what is $p$ in the formula?  Also I wanted to check can we use both congruence classes as well as Fermat's little theorem to find such remainders? How would be write $50^{50}$ on division by $13$ in terms of congruence classes to find the remainder?  I don't exactly understand what a congruence class is, what does it tell us and how is it related to this?


I need some help, I'm learning by myself how to deal with maps in Java ando today i was trying to get the sum of the values from a Hashmap but now Im stuck.  This are the map values that I want to sum.  HashMap<String, Float> map = new HashMap<String, Float>();  map.put("First Val", (float) 33.0); map.put("Second Val", (float) 24.0);   Ass an additional question, what if I have 10 or 20 values in a map, how can I sum all of them, do I need to make a "for"?  Regards and thanks for the help.


HTML form with multiple hidden control elements of the same name

Is it legal to have an HTML form with more than one "hidden" control element with the same name? I expect to get the values of all of these elements at the server. If it is legal, do the major browsers implement the behavior correctly?


How to view an encrypted view or stored procedure

I am working on a third party database.  When I try to view the definition of a view by right clicking, CREATE TO and then to NEW QUERY EDIT WINDOW, I am getting an error:     This property may not exist for this object or may not be retrievable   due to insufficient access rights. The text is encrypted.


Nouns can modify nouns: cat food, coffee cup, gold ring, laser surgery, flood insurance. It seems to me there are even cases where a noun sounds better than the corresponding adjective: sociology papers sounds a bit better than sociological papers.  Some noun-noun combinations don’t work. You wouldn't say America gangsters or measurement spoons or greed crimes. If you spilled water on your keyboard you probably wouldn't call it a keyboard spill or even a water spill.  Are there rules that tell which combinations are acceptable?


I'm looking for a way to parameterise unit tests for those cases that an input and its results change, but writing another test feels too tedious.  Suppose the str.isalnum function is under test. One could write a case for every character.  class TestIsalnum(unittest.TestCase):     def test_a(self):         self.assertTrue('a'.isalnum())      def test_dot(self):         self.assertFalse('.'.isalnum())      def test_comma(self):         self.assertFalse(','.isalnum())   There should be an easier way. Lo and behold: there is, with this well-named function below designed to not get recognised by the automatic execution of tests when using unittest.main().  class TestIsalnum(unittest.TestCase):     def tessst_with_params(self, char: str, value: bool):         self.assertEqual(char.isalnum(), value)      def test_not_alphanumerics(self):         chars = '.,_;*!'          for char in chars:             self.tessst_with_params(char, False)   All is well and the test is passed. But it's considered to be one test. Intuitively each call should be its own test case. Additionally, if one case fails, ones after are not executed and the traceback contains very little information.  Is there an established way of writing such tests? If not, how should these kinds of tests be implemented?  Having the functions on one line is a bit more concise, but I'm not sure about the style and elegance.  def test_dot(self): self.tessst_with_params('.', False) def test_comma(self): self.tessst_with_params(',', False)


How do I change login screen purple color to another one or image (if possible) on Ubuntu 17.10?

I want to know if it is possible to change the login screen background to an image, or if not, how to change the color from the default.


What port is this and what is is used for?

I have long wondered what this port is on some harddrives?  I assume it may be some sort of serial or factory programming port. The top-most hard drive in the stack pictured below is an SSD, it has the same pins, just not broken out on a connector.


How to make a series of rectangles follow a pen path

I am trying to get a series of shapes (rectangles) to follow a path (sine wave) that I made with the pen tool, but I have no clue how to do that or if it is possible.   I have tried warping a rectangle into the sine wave path, but it takes many different warped rectangles and it isn't smooth.  I thought  might work for rectangles, but it only works for text.


Ubuntu 18.04 : How to play sound before login

I remember an old time when the login screen played a drum sound before login (actually the dialog-question.ogg from Ubuntu sound theme). I found the sound useful to inform you the system was ready so that you should enter your password.  Is it still possible now with Ubuntu 18.04 and GDM?  Thanks.


Using If Statements to Change a String's Value

I am trying to understand and use if statements more in my code.    Say there's a String called answer with the value "yes".  Imagine there is also a boolean called yesOrNo.  I want to use an if statement to set the value of yesOrNo to true or false depending on the value of answer.  When I try the code below, I get an error that reads "Type mismatch: cannot convert from String to boolean."    boolean yesOrNo = false; String answer = "yes"; if (answer = "yes") {     yesOrNo = true; }   How can I change yesOrNo's value?


I heard often times that the Higgs-Boson/Higgs-Field is responsible for assigning particles their mass. My question is, if there already exists a particle responsible for mass, why do you need another particle such as the Graviton?


Where does the mass come from when you grow plants in water?

How do plants like green onions seem to grow forever when put in jar of water?  I understand that plants get a lot of their carbon from the air (as per ) but surely they need more than just carbon to grow new leaves.  The answer in the linked question mentions that plants in general get their mass from sources like water and nutrients like nitrogen and phosphorous, and ions.  However, if a plant is growing directly in [distilled] water where will it get those nutrients (like phosphorous and the ions) from?  Where does that extra mass come from?


Showing that irrational numbers have the same cardinality as real numbers

So I did this but I'm not sure if it is an actual proof because it is based on a hypothesis, and also I'm not sure if I understand the Continuum Hypothesis correctly.   Because $\boldsymbol{I} \subseteq \boldsymbol{R}$, l can have either the same or less cardinality than $\boldsymbol{R}$. By the Continuum Hypothesis, l can not have a lower cardinality than $\boldsymbol{R}$, so it must have the same cardinality.   Is this correct, and/or is there a more rigorous method?  Also, can I use the notation $\operatorname{card} A < \operatorname{card} B$?


Question on continuity and intermediate value theorem

Let $f : [0,1]\to ℝ$ be continuous  and such that $f(0)=f(1)$. Prove that there exists a point $c \in [0, \frac{1}{2} ]$ such that $f(c)=f(c+\frac{1}{2})$.


Number of necessary stickers to complete a sticker album

I have the following problem, and I was hoping you guys could help me solve it:     Consider a set of $t$ unique, collectable stickers (that accounts for the universe of collectable stickers, i.e., any sticker you buy is one of the $t$ unique stickers. Obviously, you can get repeated stickers - stickers that have the same unique identifier). You start with an album that is initially empty. You bought $c$ stickers. Assume the equiprobability of getting any sticker among the universe of $t$ different stickers. What is the probability of being able to complete the sticker album with the $c$ stickers you bought?   I know that if $c < t$, then such probability is $0$. I first tried solving the problem in the following manner: Given $f(1), f(2), ..., f(t)$ the number of stickers of $c$ that correspond to each sticker in $t$ (i.e., the number of repeated stickers you got for each of the $t$ possibilities), the linear equation I tried solving is:  $$f(1)+f(2)+...+f(t)=c \qquad \qquad \qquad (1)$$  Assuming that this can be modelled to the problem of counting the number of solutions of $(1)$ that are $\geq1$, and dividing by the number of solutions of $(1)$ that are $\geq0$. I got $\dfrac{c!(c-1)!}{(c-t)!(c+t-1)!}$ as the answer for that, but soon realised that the problem cannot be thought of as I assumed. For instance, say $t=c=2$. Then $1+1=2$ as the solution for $(1)$ doesn't have the same probability as, say, $0+2=2$. Any ideas on how to solve this? Any help is very much appreciated! Thank you!


I'm using MCP4725 () module, VCC is connected to a 4096V reference voltage. there's a steady 23mV offset:  0 - 23mV 50 - 73mV 100 - 123mV ...   How can I zero this offset error?  From the datasheet:


No panels, launcher, etc visible on desktop

My first time trying to use Ubuntu. I clean installed the Ubuntu 12.10-beta2 on an old Dell Dimension 4600 today. Install seemed to go fine, but after restarting and entering the requested passwords I'm taken to a purple screen with no panels, launchers or anything else--just a purple screen. I'm able to access the terminal from the screen with ctrl-alt-t, but I'm not sure at this point in my Linux training how to search for errors. Also have no Internet connection (I'm typing this on a mac), but I'll have to deal with that later. Would appreciate any suggestions.


I have two double values. I want to check if two double values are same or not. I have two way to compare this double values.   First way :   double a = 0.1; double b = 0.2; if(a == b) {     System.out.println("Double values are same"); }   Another way to compare :  if(Double.compare(a, b) == 0) {     System.out.println("Double values are same"); }   Which one is the best way and accurate? Are both ways the same for comparison double values?


I am having some trouble redirecting some old URLs to new ones.  This is the old path:  /index.php?loadpage=./includes/search.php&searchstring=KEYWORD   and I want it to redirect to this URL:  /search/node/KEYWORD   *where "KEYWORD" is a variable search string.  This is what I have tried so far:  RewriteRule ^/?search/node/([^/d]+)/?$ index.php?loadpage=./includes/search.php&searchstring=$1 [L,QSA]   and this:   RewriteRule ^/?search/node/([^/d]+)/?$ index.php?searchstring=$1 [L,QSA]   but the redirects don't work.   Can anyone please help or give me some guidance on how to fix these redirects?  Thank you in advance!


Why does TeX prefer an overfull box to hyphenating here?

Here is a short file which produces an overfull hbox:  \documentclass[12pt]{report} \usepackage[left=1.5in,right=1in,paperwidth=8.5in,paperheight=11in]{geometry} \begin{document} \trivlist \item[\hskip\labelsep{\bf2.3.12 Corollary [Isomorphisms are indexed bijections]:}] Consider the functions $f$ and $g$ \endtrivlist \end{document}   If I replace functions with func-\linebreak tions, the word is split across two lines, resulting in neither an overfull nor an underfull hbox. However, neither func\-tions nor func-tions produces this behavior. Why not? Is there a better way to convince TeX that it's okay to hyphenate this word to prevent an overfull box?


Several lines of formulas to the left of one curly brace pointing to equation number

How to make several lines of equations under one curly brace from the left side, such that it point to a reference number.  Now I do something like this:  \begin{align} \left. \begin{array}{ll} a = b + c \\ & \dots  \\ a = b + c \\ & \dots  \\ a = b + c  \end{array} \right\} \label{formulas}\\ \end{align}   But equation number appears in the bottom of curly brace.


Whenever I move an object in blender in unit mode(Imperial), it always make it in feet. For example, if I type G Y 12, it will move 12 feet. How can I make it move 12 inches instead?


Did Dumbledore believe that Sirius Black betrayed Harry's parents?

I think Dumbledore did believe at the time of Harry's parents' deaths that Black was guilty. So he didn't stand up for Black. But during the course of events in Harry Potter and the Prisoner of Azkaban, could Dumbledore have independently figured out that Black was innocent and this was merely confirmed by Harry. This would make sense Dumbledore, being a very intelligent man, wouldn't normally believe something without strong proof. Is there any evidence in the books for the same?


How to show Unity launcher in only one workspace?

I want to keep launcher active only in main workspace. E.g. I like to keep Citrix window in full display mode without launcher (in workspace II).


If $E$ is a connected space, then so is $\overline{E}$.

I have to prove that if $E$ is a connected space, then so is $\overline{E}$ (the closure of $E$) a connected space. I tried to prove the contrapositive. So suppose that $\overline{E}$ is not connected in a metric space $X$. This implies there are $A\subset X$ and $B\subset X$ such that $A\cap B=\emptyset$, $A\cap \overline{E}\neq \emptyset$, $B\cap \overline{E}\neq \emptyset$ and $\overline{E}\subset A\cup B$. I will try to prove that this $A$ and $B$ will also work for $E$. Suppose that $A\cap E=\emptyset$ and $B\cap E=\emptyset$, this implies that $A\cup B$ is a subset of the limit points of $E$, because $A\cap \overline{E}\neq \emptyset$ and $B\cap \overline{E}\neq \emptyset$. This contradicts the fact that $\overline{E}\subset A\cup B$, so we have to conclude that $A\cap E\neq \emptyset\neq B\cap E$. Since $E\subset\overline{E}\subset A\cup B$, we have that $E$ is also not connected.  My question is whether my proof is correct, because I have a little bit doubt. If it's not correct, what is the best I can do? Thanks in advance!   Edit1: The definition we use for a connected space $E$ in a metric space $X$ is that if $E$ is connected, then there are no open $A,B\subset X$ such that $A\cap B=\emptyset$, $A\cap E\neq \emptyset\neq B\cap E$ and $E\subset A\cup B$.  Edit2: $A$ and $B$ must be open.


The Harry Potter series discusses many spells created by particular wizards like Snape and Voldemort. What does it really mean to create a spell?   Does the creator select a befitting Latin phrase and certain wand movements to channel the magic inherent in him? More importantly, how does he/she seal these for use by all future wizards?  The first may be all right, since it seems suggested in the series that, in principle (i.e., with sufficient ability, expertise in channelling magic etc.), any spell could work non-verbal and wandless. It is the second subquestion above that demands an answer.  After all, every spell discussed had to be created at some point in the past, since Latin had a beginning in history.


How to prove that if $f:\mathbb{R} \rightarrow \mathbb{R}$ is continuous and $|f(x) - f(y)| > |x-y|$ for all $x,y$,then range of $f$ is $\mathbb{R}$

Question:      Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be continuous and $|f(x) - f(y)| > |x-y|$ for all $x,y \in \mathbb{R}$ and $x \neq y$. Prove that the range of $f$ is $\mathbb{R}$   Answer: I have a hard time writing this.  For any [$x_0, x_1$], it must be that the function within this interval is strictly increasing or decreasing. Otherwise, there is a max (or min) value $f(x_2)$ such that $x_2 \in (x_0,x_1)$. Applying the Intermediate Value Theorem on $[x_0,x_2]$ and $[x_2,x_1]$, then there exists a point $a \in [x_0,x_2]$ and $b \in [x_2,x_1]$ such that $f(a)=f(b)$, contradicting $|f(x) - f(y)| > |x-y|$ for all $x,y \in \mathbb{R}$.  Furthermore, for arbitrary $y_0, y_1, y_2$, if $|f(y_2)-f(y_1)| > |y_2-y_1|$ and $|f(y_1)-f(y_0)| > |y_1-y_0|$ then we have $|f(y_2)-f(y_0)| > |y_2-y_0|$. Otherwise it means that the function on $[y_0,y_1]$ and $[y_1,y_2]$ were not both strictly increasing or strictly decreasing, which leads to the same contradiction, that there exist a $c \in [y_0,y_1]$,$d\in [y_1,y_2]$ on each interval respectively where $f(c)=f(d)$.  Would I be able to then conclude that the range is $\mathbb{R}$? Logically it seems like I can, but it also doesn't seem to be based on any "theorem". I'm essentially just saying "dot dot dot and so on". I don't know if I'm missing anything, or if the arguments are not sound.  Is there a more rigorous way to prove this?


I have a table with 3 columns X, Y and Z with n rows. The range of the data is 0-255. But I wished to scale the values such that the range becomes from -p to +q (where I decide p and q). I randomly came upon a conversion like this one:  on this . I don't remember which matrix exactly did I use. Now this is how it changed the range (Blue: Initial range,  Orange: New Range, Ignore the Grey one)  How can I control this process of changing the range?


Can `function a() {}` be seen as a shorthand of `a = function a() {}`?

I did a series of experiments in nodejs console:  > function a(){} undefined  > a [Function: a]  > a.name 'a'  > b = function(){} [Function]               // see, the name is empty  > b.name ''                       // further proof  > b = function b(){} [Function: b]  > b.name 'b'                      // now b behaves just like it's defined                          // by "function b(){}"   Judging from what I can test, function a() {} serves as a shorthand of a = function a() {}. Is this how engines like V8 internally do? Is there a difference between a and b in the above experiment?


Why does notifyAll() raise IllegalMonitorStateException when synchronized on Integer?

Why does this test program result in a java.lang.IllegalMonitorStateException?  public class test {     static Integer foo = new Integer(1);     public static void main(String[] args) {         synchronized(foo) {             foo++;             foo.notifyAll();         }         System.err.println("Success");     } }   Result:  Exception in thread "main" java.lang.IllegalMonitorStateException         at java.lang.Object.notifyAll(Native Method)         at test.main(test.java:6)


What is the most efficient way to effect a voltage drop in a dc cct?

I have a 24V supply and need to drop the supply voltage to 19V to power a TV set.  The plug pack that powers the TV states the output as 19V and the current at 2.1A  I could use a resistor to drop the voltage but it would need to have a high power rating. Can anyone suggest a cct using easily obtained components to solve this problem?


How do I take a screenshot from the terminal?

I am using Lubuntu 14.04.  How do I - using the command line - take a screenshot of a window or my desktop?


The below is a snippet that updates a customers name using SQL*Plus. It works ok for all customers except for customers whose name contains a '&' symbol even though the name is 'enclosed'.   sqlplus -s $user/$pass@$db << EOF UPDATE order_address SET name = '$customer_name' WHERE address_type = '2' AND order_number = '$order_number'; COMMIT; EXIT; EOF   What should be done so that it works even on customers whose name contains a '&'?  Update: It seems it does actually work but wherever there is a '&' it puts 'COMMIT;' so the name shows as 'A COMMIT; B' instead of 'A & B'.


Is it advisable to travel 11 miles one way to office every day

I am in London. Is it a good idea to travel 11 miles (one way) from home to office.Google says it takes 56 minutes.  I wear office formal with out a suit and tie. What advice can you suggest on clothing?  My office hours are 9-5


Why are query's reputation and real reputaion not same?

While working with , I found a strange point: reputaion query shows is not equal to the real reputation. Here's my mcve:  SELECT Reputation FROM Users WHERE Id = 2729109  Result: 2600  Why does this dismatch happen?


Is it possible to stop a program in Python?

If I had a code like this:  a=input('#something') while True:     if a == 0:         #Stop the program here   How would I end the program?  Thanks


How to compare 2 series of ROC curves with AUC?

I am testing two predictive models,  Each of them in 10 experiments.  I therefore have 10 ROC curves (with AUC) for first experiment and 10 ROC curves for second experiment.  How to compare these series and see if difference between them is statistically significant ?   How to get confidence intervals / P value ?


Is there any logical system/method where impossible/illogical/inconsistent things can exist (like a solution to Russell's paradox that makes sense)?

Discussing with a philosopher about impossible things existing or being allowed within a particular logic system, he told me:  "This is a funny thing about logically impossible things. You can prove that they exist in any non-consistent or paraconsistent logic system. You might even be able to give a (nonsensical) description that satisfies some specific definition of said thing. But that still doesn't give you anything that makes sense. There, you are asking not only to prove that a very particular impossible thing exists, but you are asking for a detailed description of it to exist as well. I know of no method for doing that" (talking mainly about a solution that makes sense to Russell's set paradox)  So ia it there any method/logic system or anything else where impossible/illogical/inconsistent things would be allowed? For example, If a solution to Russell's set paradox cannot exist and it is impossible to exist, is there any method/logic system or anything else where this solution could exist?


I'm trying to add layer in group on QGIS using those code:  qgis_groups = QgsProject.instance().layerTreeRoot() path =  QgsProject.instance().readPath("./") operators_path = join(path, 'RSX') operators_content = [item for item in os.listdir(operators_path) if isdir(join(operators_path, item))] shp = qgis_groups.findGroup('SHP') for item in operators_content:     shp_path = join(operators_path, item, 'SHP')     for shp_file in glob.glob(join(shp_path, '*.shp')):         layer_name = basename(shp_file).replace(".shp", "")         layer = QgsVectorLayer(shp_file, layer_name, "ogr")         shp.addLayer(layer)   the layers loaded on QGIS become None only the last layer is worked, So I tried to call addLayer outside for It worked but the previous layer become None again. Then I tried with inserLayer(i, layer) but same problem.   Anyone has an idea about that?


I have posted a question about the use of sDNA in ArcGIS. It is said the problem is caused by non-ascii characters. I tired to modify the shapefile and kept the Object ID and Shape length only. However, the analysis still failed. Here is the attribute table of the data and the steps I tried.


How to recognise/thank great cabin crew?

Those of us who fly a lot will know that there is a bit of a variety in cabin crew. Some (sadly more common on certain airlines) do the very bare minimum to ensure a safe flight, but nothing more. Many (especially on airlines noted for good customer service) provide a good service.  Every so often though, you come across a flight crew who go the extra mile. These are the ones always friendly, always helpful, always thinking ahead and solving the problem before it has happened. One moment they're serving you your drink, the next reassuring a little old lady about the flight, the next magicing a colouring book to turn an impending toddler crisis into a happy small child, then answering queries on arrivals and immigration for a first time travaller, then back to offer you a top up of what you're drinking (which they've remembered exactly). Not very often found, but very much appreciated when you happen across them on your travels!  In the case when you do luck out and find yourself on a flight with a great cabin crew (who go well beyond what you normally experience as "good" on that airline/kind of airline), is there a standard/common way to recognise them at the end of the flight? Not just to thank them then and there, but also to let the airline know that this person/group are what the rest of their staff should be aspiring to. Is there any standard way, or does it vary entirely by carrier?


which of the  following  function are reimann integrable on the interval $[0,1].$?  $1)$ $f(x) =\begin{cases}   1,  &\text{if x is  rational }\\ 0, &\text{if  x is irrational }         \end{cases}$  $2)$ $f(x) =\begin{cases}   1,  &\text{if x } \in \{\alpha_1,\alpha_2,.......,\alpha_n\}\\ 0, &\text{otherwise }         \end{cases}$   i know  that  option $1) $ will not reimann integrable  because  it is not bounded.  im confused  about option $2)$  Any hints/solution


I have a caller function that invokes another function that send a HTTP POST with parameters. Now i want that this called function blocks execution until there is its "success" (so when its HTTP POST has been done).  This is my logical code:  var fingerprint = null; var janus_session = null; var inserted = "false";  $(document).ready(function() {       //stuff       fingerprint = FindFingerprint(jsep);        janus_session = janus.getSessionId();       inserted = SendSDPLine(fingerprint, janus_session);       console.log("**in MAIN: inserted= " + inserted);        //other stuff     }  function SendSDPLine(fingerprint, janus_session) {   var sdp = fingerprint;   //    var url = "http://localhost:8484/Shine/AccountController";   var action_type = "InsertSDPLine";   var sessionid = janus_session;    $.ajax({     type: "POST",     url: url,     xhrFields: {       withCredentials: false     },     data: {       "action": action_type,       "sdpline": fingerprint,       "sessionid": sessionid     },     success: function(data) {       if (data == "INSERTED") {         inserted = "true";         console.log("in SENDSDPLINE: inserted= " + inserted);       }       return inserted;       //        return checkFingerprint (fingerprint);     },     // vvv---- This is the new bit     error: function(jqXHR, textStatus, errorThrown) {       console.log("Error, status = " + textStatus + ", " +                   "error thrown: " + errorThrown);     }   });  }   In few words, i want that other stuff has been executed after that HTTP POST response has been checked. I've already seen another problem: initially, inserted has false value. In success(data) in HTTP POST response, it has true value. But, in the caller function, in the following console.log has undefined value.  So, i have two question:   how to return this value to the caller function how to stop execution of the caller function until HTTP POST response has been received?


Automatically initiate an outbound SSH connection on a server when a client connects

How can I automatically initiate an outbound SSH connection on a server when an internal client connects to that server on a specific port, for any given service, from a given IP range? Note that the connection should not start if it is already up.  It does not appear there is a non-scripting way to do this, as if the connection is already up, there would be no way to detect that using the Match and ForceCommand method to prevent ssh from attempting to reconnect (or needlessly open an entirely new outbound ssh session).  I therefore have thought of a script like (this is just a draft, to illustrate the idea):  #######auto_ssh-script.sh  ####### iptables rule logging all new incoming, unestablished, never before seen connections  iptables -I INPUT -p tcp --sport 22 -m state --state NEW -m state ! --state ESTABLISHED -m state ! --state SEEN_REPLY -j LOG --log-prefix CONNECT  #######background script  --> read log and look for a match to string CONNECT   cat /proc/kmsg | while read LOGGING  do        LOG='echo "$LOGGING" | grep 'CONNECT' '        if ["$LOG" = ' ' ]  &  UP= 'echo alxw | grep ssh '      if [ "UP" = ' '] then       fi    ssh -p 22 <user>@<somewhere-out-there.com echo "Connected" done   Isn't there a better way? If not, how can I improve this script?


Expected number of heads before it turns up tails five times

A fair coin is flipped repeatedly until it turns up tails five times. What is the expected number of heads before that happens? Based on the link given in the comment, I have found it can be solved using the recursion $E(n)=\frac{1}{2}(E(n)+1)+\frac{1}{2}(E(n-1))$ which is equivalent to $E(n)=E(n-1)+1$. Is it correct?


In conversational and spoken English, it's common to hear statements like     I only answer phone calls from people I know.   The "correct" form of this would be     I answer phone calls only from people I know.   In rare situations this can lead to ambiguity, but usually only in written English; when speaking, emphasis and intonation clears all doubt about what is 'only'. For instance, someone might say     You only run during the day.   Which of the possible meanings is intended could be clarified by adding more information or by changing the position of 'only':     (1) You only run during the day, but you also walk at night.   (2a) You run only during the day. or   (2b) You run during the day only.   It seems that 'only' moves only leftward, farther away from what it qualifies. A similar thing happens with 'either'.  Is there some sort of explanation for this movement?


How do you find the top rated user for a specific tag?

I'm trying to find the top rated users for specific tags, but I am not sure if I can do this. I see  but want something like  (which obviously doesn't work).


Let $f : X \rightarrow Y$ be a perfect map: a continuous surjective closed map such that $f^{−1}(\{y\})$ is compact for all $y \in Y$ . Prove that if $Y$ is compact, then  $X$ is compact.     How to use compactness on $Y$ to show it on $X$.  Thank you for any help.


Do I need UK transit visa when I travel from Ireland

I am an Indian citizen currently living in Ireland with Irish residence Stamp 1. I am planning to travel to Dubai from Ireland through the UK (Heathrow airport) with connecting flights.   Do I need any UK transit visa?


Let $X$ be compact and suppose that $Y$ is a Banach subspace of $C(X)$. If E is a closed subset of $X$ such that for every $g\in C(E)$ there is an $f\in Y$ with $f_{|_{E}}=g$. Show that there is a constant $c>0$ such that for each $g\in C(E)$ there is an $f\in Y$ with $f_{|_{E}}=g$ and $||f||\leq c||g||$.  For this I think about using the inverse mapping theorem for the functional $\phi:Y\to C(E)$ but it's not injective.  Please help me.


Prove that $\lim_{t\to \infty} t\mu(\{x:f(x)\geq t\})=0$

Problem  Suppose $f$ is a non-negative integrable function on a measure space $(X,\mathcal{A},\mu).$ Prove that $$\lim_{t\to \infty} t\mu(\{x:f(x)\geq t\})=0$$  Attempt  Let $E_t=\{x:f(x)\geq t\}$ Note that $f\chi_{E_t}\leq f$. Since $f$ is integrable, the Lebesgue dominated convergence theorem tells us that $$\lim_{t\to\infty} \int f\chi_{E_t}\rightarrow \int \lim_{t\to\infty} f\chi_{E_t}=0,$$ since $\lim_{t\to\infty} f\chi_{E_t}=0$ a.e. $\ ^{(1)}$ The result follows from the fact that $$t\mu(E_t)\leq\int f\chi_{E_t}.$$  Question  I am having trouble proving $(1)$. That is, how can I show that $f\chi_{E_t}\rightarrow 0$ a.e?


How can I give user or group write permissons to a folder? in terminal session. I allready know how to change folder permission/owner. I want to give user or group write permission to a folder without affecting the previous owner or permissions to the folder.  I guess the question is can you give multible users acces to a folder like you do in windows? or maybe just add the user to a group that allready has access?  :)


Is there any way to view an answer's score over time?

I'd like to see the time-graph of how many points an answer (or a question, I guess?) had.  Can I get at that data (even in a raw form, to shove into Excel!)


Filter article that has featured image to shown on homepage

How do I display article that has featured image uploaded?  I using premium theme. I found that all of the themes don't have this feature.  Am I need to configure this in php file?  Or there is another alternative way to fix this?  Hope this will not off topic.    I tried to add 'meta_key' => '_thumbnail_id' in the script below, but not working.
          <?php         $cats_to_show = get_sub_field( 'category_posts_per_page');         $cat_id = get_sub_field( 'category_section_name' );          $ti_cat_posts = new WP_Query(             array(                 'posts_per_page' => 5,                 'cat' => $cat_id,                 'no_found_rows' => true,             )         );   became
      <?php     $cats_to_show = get_sub_field( 'category_posts_per_page');     $cat_id = get_sub_field( 'category_section_name' );      $ti_cat_posts = new WP_Query(         array(             'posts_per_page' => 5,             'cat' => $cat_id,             'meta_key' => '_thumbnail_id'  // Added              'no_found_rows' => true,         )     );


I know this may have been answered previously, but I'm trying to use the suggestions that were given to no effect. The solutions I tried are from this last post:  and here:   I'd welcome any advice. I even tried changing the paper orientation to landscape.  \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{|l|l|l|l|l|l|} \hline \textbf{Article Info} & \textbf{Study Size} & \textbf{RV EDV} & \textbf{RV ESV} & \textbf{LV EDV} & \textbf{LV ESV} \\ \hline ASO Guidelines: Cardiac Chamber Quantification. Citation: "Age-, Body Size-, and Sex-Specific Reference Values for Right Ventricular Volumes and Ejection Fraction by Three-Dimensional Echocardiography" & 540 & \begin{tabular}[c]{@{}l@{}}Men: 35-87 mL/m2\\ Women: 32-74 mL/m2\end{tabular} & \begin{tabular}[c]{@{}l@{}}Men: 10-44 mL/m2\\ Women: 8-36 mL/m2\end{tabular} & \begin{tabular}[c]{@{}l@{}}Men: 34-74 mL/m2\\ Women: 29-61 mL/m2\end{tabular} & \begin{tabular}[c]{@{}l@{}}Men: 11-31 mL/m2\\ Women: 8-24 mL/m2\end{tabular} \\ \hline Reference right ventricular systolic and diastolic function normalized to age, gender and body surface area from steady-state free precession cardiovascular magnetic resonance. Table 2 and 3. Stratified by age. & 120 & \begin{tabular}[c]{@{}l@{}}Men: a) 20-29 y/o: 91 b) 30 - 39 y/o: 88 c) 40 - 49 y/o: 85 d) 50 - 59 y/o : 82 e) 60 - 69 y/o: 79 f) 70 - 79 y/o: 75\\ \\ Women: a) 20-29 y/o: 84 b) 30 - 39 y/o: 80 c) 40 - 49 y/o: 76 d) 50 - 59 y/o : 72 e) 60 - 69 y/o: 68 f) 70 - 79 y/o: 64\end{tabular} & \begin{tabular}[c]{@{}l@{}}Men: a) 20-29 y/o: 35 b) 30 - 39 y/o: 33 c) 40 - 49 y/o: 30 d) 50 - 59 y/o : 28 e) 60 - 69 y/o: 25 f) 70 - 79 y/o: 23\\ \\ Women: a) 20-29 y/o: 32 b) 30 - 39 y/o: 30 c) 40 - 49 y/o: 27 d) 50 - 59 y/o : 24 e) 60 - 69 y/o: 21 f) 70 - 79 y/o: 19\end{tabular} & Not measured in this study & Not measured in this study \\ \hline Reference Values for Real Time Three-Dimensional Echocardiography–Derived Left Ventricular Volumes and Ejection Fraction: Review and Meta-Analysis of Currently Available Studies. Table 2 & 2806 & Not measured in this study & Not measured in this study & \begin{tabular}[c]{@{}l@{}}Men: 54.3 mL/m2\\ \\ Women: 49.0 mL/m2\end{tabular} & \begin{tabular}[c]{@{}l@{}}Men: 20.8 mL/m2\\ \\ Women: 17.3 mL/m2\end{tabular} \\ \hline \end{tabular} \end{table}   Thank you all in advance!


I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` > 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible?


If $P(A_n) \rightarrow 0$ and $\sum_{n=1}^{\infty}{P(A_n^c\cap A_{n+1}})<\infty$ then $P(A_n \text{ i.o.})=0$.  How to prove this? Thanks.


ST_Contains(geometry A, geometry B) doesn't return polygons of B sharing external border with A

I have a large shapefile with 400k census sections in a table called census_poly. I want to return all the sections from census_poly contained in a district. Visually, the external border of districts matches perfectly with the borders of the census sections.       Still when I run this query  SELECT "census_poly".geom    FROM "census_poly"    JOIN "district_poly"    ON ST_Contains("district_poly".geom, "census_poly".geom)   I get this    which excludes all the bordering census districts (FALSE NEGATIVE) such as these    I wonder why they are excluded and how to tweak my query to include them.   I could use the centroids of the census sections but that would not indicate whether a section is truly over two districts (TRUE NEGATIVE). Should I define a small buffer around my districts?