Deleting data from a table containing LOBs did not reduce the amount of data reported INTERNALLY by the table or database

Running SQL Server 2012 standard, using both replication data and log shipping. Transaction log backups are created every few minutes.  This question is NOT about the amount of space reported by the file system.  We have a log table with four VARCHAR(max) columns. The table currently holds roughly 180 GB of data.  The table grows at a rate of roughly 10 GB per month.    In an attempt to free up space for future growth, I recently deleted (in chunks over a 36 hour period) close to 30% of the data.  Based on the size of the table and the number of rows being removed, I expected the size of the table to be reduced by roughly 55-60 GB.  I verified this by taking a sample and calculating the average row size, and then multiplying that by the number of rows to be removed.  However, after finishing the delete, the table size has not changed.  While I am not looking to shrink the size of the .mdf file, I did check to see if the database had any free space that could be shrunk, but there is 0% free space.  So - I am confused.  I've verified the data that I deleted from the table is no longer there. I even compared it against a backup to get a before & after.  The number of rows in the database has changed, but the data space for the table has not decreased.    My questions then are:  1) Why did deleting data from the table not reduce the size of the table? 2) What can I do to actually reduce the size of the table?  EDIT:   I am determining the space used by the table by calling sp_spaceused 'tablename'. I have used dbcc updateusage (0, tablename) prior to calling sp_spaceused. I am NOT trying to free up disk space - although an analysis indicates that there is 0% space available to be reclaimed. I have run an index reorganize with ( LOB_COMPACTION = ON ). Fragmentation is below 1%. The table is not a heap. Table definition below.     CREATE TABLE [dbo].[LARGE_LOG_TABLE](   [ID] [varchar](36) NOT NULL,   [DOC_ID] [varchar](36) NOT NULL,   [REQUEST_DATA] [varchar](max) NULL,   [REQUEST_DATA_XSLT] [varchar](max) NULL,   [RESPONSE_DATA] [varchar](max) NULL,   [RESPONSE_DATA_XSLT] [varchar](max) NULL,   [ACTIVE_FLAG] [varchar](1) NULL,   [CREATED_BY] [varchar](100) NULL,   [DATE_CREATED] [datetime] NULL CONSTRAINT [DF_LARGE_LOG_TABLE_CREATE_DT]  DEFAULT (getdate()),   [USER_LAST_UPDATED] [varchar](100) NULL,   [DATE_LAST_UPDATED] [datetime] NULL CONSTRAINT [DF_LARGE_LOG_TABLE_LAST_DT]  DEFAULT (getdate()),  CONSTRAINT [PK_LARGE_LOG_TABLE] PRIMARY KEY CLUSTERED   ( [ID] ASC ) ON [PRIMARY] )   ON [PRIMARY]   TEXTIMAGE_ON [PRIMARY]    EDIT 2:  SELECT * FROM sys.dm_db_index_physical_stats (db_id(), OBJECT_ID('database..LARGE_LOG_TABLE'), default, default, default)    EDIT 3:  The answers provided to the question at  refer to freeing up space on disk / shrinking the physical size of the database. This question refers to removing rows containing LOB data and yet the database (internally) shows the LOB data has not been removed.  We removed 600000 rows of data, but the space used on the table level (not the file system level) was only reduced by a few bytes - not the expected 60 GB. This question is about removing the LOB data.


Kill background process bash not working from current shell

I'm doing trap to kill subprocesses of script and it's working perfectly: myscript.sh  trap "kill 0" EXIT  ./someProcessA &  ./someProcessB &  the problem that I don't understand why the following doesn't work if I run from my current shell : tail -F file& kill 0  the tail command doesn't exit , so why kill 0 works only in the script ?


Removal of statistically significant intercept term increases $R^2$ in linear model

In a simple linear model with a single explanatory variable,  $\alpha_i = \beta_0 + \beta_1 \delta_i + \epsilon_i$  I find that removing the intercept term improves the fit greatly (value of $R^2$ goes from 0.3 to 0.9). However, the intercept term appears to be statistically significant.  With intercept:   Call: lm(formula = alpha ~ delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.72138 -0.15619 -0.03744  0.14189  0.70305   Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept)  0.48408    0.05397    8.97   <2e-16 *** delta        0.46112    0.04595   10.04   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2435 on 218 degrees of freedom Multiple R-squared: 0.316,    Adjusted R-squared: 0.3129  F-statistic: 100.7 on 1 and 218 DF,  p-value: < 2.2e-16    Without intercept:   Call: lm(formula = alpha ~ 0 + delta, data = cf)  Residuals:      Min       1Q   Median       3Q      Max  -0.92474 -0.15021  0.05114  0.21078  0.85480   Coefficients:       Estimate Std. Error t value Pr(>|t|)     delta  0.85374    0.01632   52.33   <2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   Residual standard error: 0.2842 on 219 degrees of freedom Multiple R-squared: 0.9259,   Adjusted R-squared: 0.9256  F-statistic:  2738 on 1 and 219 DF,  p-value: < 2.2e-16    How would you interpret these results? Should an intercept term be included in the model or not?  Edit  Here's the residual sums of squares:  RSS(with intercept) = 12.92305 RSS(without intercept) = 17.69277


Why a protected method of parent class in one package cannot be accessed using the parent reference in its child class which is in different package. [A.java][[]]1][1]]


v a l i d a t i o n   I need to write the word as vertically. I use overleaf.


How to install Windows 10 on my laptop(Ubuntu 16.04)?

I want to install Windows 10 on my HP with current Ubuntu OS.I have made USB bootable   I have change boot order on my BIOS but when I insert USB nothing happens,I was expecting installation process.What is the problem?


Why do roads appear wet on hot days? I do not understand

Why do roads appear wet on hot days? I don't understand the bending of light rays in relation to the density fluctuations. How are they related? Why do we see mirror images of cars on road in hot days?


Set kernel.sysrq = 1 in /etc/sysctl.d/10-magic-sysrq.conf using command?

I wish to use a single command line instead of opening the text editor to change the parameter of the file /etc/sysctl.d/10-magic-sysrq.conf to kernel-sysrq = 1 from any current parameter, even if other lines are in that file.  Is there not something similar to a where?


I'm writing a story where my main character calls out for her mother, and I'm having trouble with what word I should be using.  The story is set around the 1660s London, my main character is of low class, and she's 17 years old.


What do we mean when we say that an approach is "Bayesian"?

I'm trying to explain to a nontechnical colleague of mine what a Bayesian approach is. I realized that despite having used Bayesian methods on more than one occasion in the past, I don't have an intuitive definition of what makes an approach Bayesian or not.   Based on several definitions I've seen in textbooks and online resources, the term "Bayesian" seems to mean:   Choosing a prior model, and then updating this prior model with new empirical data to obtain an improved posterior model.   This comes from applying Bayes rule to the context of modeling:   $P(Model\: |\: Data) \propto P(Data\: |\: Model) \:P(Model)$  But then isn't this just the definition of supervised machine learning in general?   What makes an approach specifically Bayesian and not just supervised learning? Or is it the case that all supervised learning really boils down to an application of Bayes rule?


Differential equations and creating slope field plot

I'm new to LaTeX and looking to create a slope field that matches the following description.  The slope field of $\dfrac{dx}{dt} = x^2 - t^2$ along with three solution curves. The top curve is the solution that goes through $(t, x) = (0, 1)$. The middle curve is the solution that goes through the curve $(t, x) = (0, 0)$. The bottom curve is the solution that goes through the curve $(t, x) = (0, -1)$.  I have tried using the template provided in the following question, but it is too complicated for me to reproduce.   I would appreciate it if someone could provide a template for these types of LaTeX plots. This way, I can also reproduce these plots in the future for other differential equations.   Thank you.


C++ Inheritance: Error: candidate expects 1 argument, 0 provided

in the following program, I want to derive a class from a base class. In my code everything seems to be OK. However, I am getting error shown in the below program. Please explain the reason for the error, and how to correct it.   #include <iostream> using namespace std;  struct Base {     int x;     Base(int x_)     {         x=x_;         cout<<"x="<<x<<endl;     } };  struct Derived: public Base {     int y;     Derived(int y_)     {         y=y_;         cout<<"y="<<y<<endl;     } };  int main() {     Base B(1);     Derived D(2); }   This is the error:  Output:   error: no matching function for call to 'Base::Base()  Note: candidate expects 1 argument, 0 provided


I know that my question is similar to this one "" but I'm using QGIS 3.0 and the issue is still actual.  When I reshape (add a missing part) of a line (1) it reshapes the other one as well (2) but I've selected to reshape only "left" one.    Does anyone know if it will be fixed in the near future?


How to disable nautilus from handling the desktop?

As it is the only way to activate transparent themes in Gnome-shell:   How to disable Nautilus from handling the desktop? Can I make it handle the desktop again? What will happen to the unity and desktop icons? How to handle the desktop icons without nautilus?


Short story about one side building better weapons for a space battle

I'm looking for a short story about a two factions engaged in a space war where scientists of one faction figured out a better weapon, but they decided not to waste effort producing it, because, by the end of designing that weapon, they figured out they can actually build an even better weapon. But, once they finished designing that second weapon, they figured they can make an even better one. This repeated until they came to the ultimate weapon, but by which time the other faction already defeated them using the plain old weapons from the beginning of the war.  The story is told from a perspective of an officer of the losing faction explaining why they lost.


How to count the number of columns in a table using SQL?  I am using Oracle 11g  Please help. t.


One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like to prepare for use, and I definitely want to make sure I have vector versions of these fonts (i.e not type 3/bitmapped versions). Is there a relatively painless way to do this ?


Suppose a shell script (/bin/sh or /bin/bash) contained several commands.  How can I cleanly make the script terminate if any of the commands has a failing exit status?  Obviously, one can use if blocks and/or callbacks, but is there a cleaner, more concise way?  Using && is not really an option either, because the commands can be long, or the script could have non-trivial things like loops and conditionals.


drawing at least 90% of colors from urn with large populations

My problem is: suppose I have an urn containing balls of $n = 10000000$ (i.e., $10^7$) different colors, with $1000$ balls of each color (so the total number of balls is $1000n = 10^{10}$). Suppose I draw $100000000$ (i.e. $10^8 = 10n$) balls. My question is:  how do I calculate the probability that I have drawn at least 90% (in this case $1000000$ or $10^6$) of the different colors?  Many thanks in advance


Cannot detect your screen, graphics and devices. Display unclaimed

I am really new to the Linux world. My system is running really slow since after installing Ubuntu 14.04. It is showing some type of error:  The system is running in low graphics mode. Cannot detect your screen, graphics and devices.   I am running the OS in low graphics mode and I have to go to boot options every time I switch on my PC and select the low graphics mode option in Advanced options for Ubuntu → Recovery mode.   How can I get my system working normally?  sudo lshw -c display  *-display UNCLAIMED description: VGA compatible controller product: C61 [GeForce 6150SE nForce 430] vendor: NVIDIA Corporation physical id: d bus info: pci@0000:00:0d.0 version: a2 width: 64 bits clock: 66MHz capabilities: pm msi vga_controller bus_master cap_list configuration: latency=0 resources: memory:de000000-deffffff memory:c0000000-cfffffff memory:dd000000-ddffffff memory:dff40000-dff5ffff


How do the comment replies (aka "pinging users") work?  Who can I send an @reply to? How do I respond to a specific user when entering my comment? Will they be notified? What do people mean when they talk about "pinging" another user?  Related:


Find 3x3 real matrix A such that $A^2 \neq I$ and $A^4 = I$, where I is identity matrix.

Find $3 \times 3$ real matrix A such that $A^2 \neq I$ and $A^4 = I$, where $I$ is identity matrix.  I first thought that there is no such matrix and tried to show that using determinants, but all I get is that A has to have $detA=1$ or $-1$. Next I actually found such Matrix A= $\left( \begin{matrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & -1 & 0 \end{matrix} \right)$, but I did it through random manipulations and do not have any idea how to coherently write the answer. Any help would be appreciated. Thanks!


Visual Studio 2013 - MSVCR110D.dll missing

I'm working on a program and it compiles fine, but it gives me a "MSVCR110D.dll is missing.."-error. I run Visual Studio 2013 on Windows 7 64bit, I also use boost 1.55.0 and SFML 2.1. Google and a fellow superuser post didn't help me out. I got told to install c++ redistributable  but that didn't help me either. I'm not that good with C++ yet so excuse me if I missed something.


Prove: $\int_\gamma \bar z \, dz=2i\operatorname{Area}(G)$

Let $G$ be a bounded, open and connected set and $\gamma$ be its boundary. Prove that if $\gamma$ is a closed, smooth curve, then:  $$\int_\gamma \bar z \, dz = 2i \operatorname{Area}(G)$$  What I have done so far: I proved that the statment is correct when $G$ is a triangle, and then when the boundary of $G$ is a polygonal chain. Now for the general case, I thought about approximating $\gamma$ with polygonal chains somehow, but I'm pretty stuck. Is my thinking correct? Any ideas how to move forward?


Is it possible to associate part of a drawing to a pdfcomment (or similar) interactive bubble?

It is apparently possible to put a TikZ drawing inside a pdfcomment (but using mbox).   Is is possible to associate only part of a drawing (e.g. a line) to a pdfcomment? Below it is the suggested code.  I am open to use other interactive packages (similar to pdfcomment) if that can solve the problem. The final goal is to associate individual curves in a pgfplot to a tooltip when dragging the mouse.  \documentclass[]{article} \usepackage{tikz} \usepackage[]{pdfcomment} \begin{document}  %ok \pdfmarkupcomment[]{     text }{     a paragraph }  % ok but needs mbox \pdfmarkupcomment[]{     \mbox{     \begin{tikzpicture}     \draw(0,0)--(1,1);     \draw(0,1)--(1,0);     \end{tikzpicture}} }{     a drawing }  %not ok (Error: Missing } inserted.) \begin{tikzpicture}     \pdfmarkupcomment[]{         \draw(0,0)--(1,1);     }{         a line     }     \draw(0,1)--(1,0); \end{tikzpicture}  \end{document}


failed compilation when #include .h file but succeeded when #include .cpp file

failed to compile C++ when using #include .h file  I have 3 files: linkedStack.cpp linkedStack.h and main.cpp.  g++ -o main linkedStack.cpp main.cpp   it failed to compile when I enter the command above,  but it worked when I changed #include "linkedStack.h" into #include "linkedStack.cpp". I wonder why?  The linkedStack.h file is as follows:  #include <stdio.h> #include <iostream> #include <string> #include <assert.h>  using namespace std;    template <class Type>  class stackADT  {  public:  virtual void push(const Type& newItem)=0;//to add newItem to the stack  virtual Type top() const=0;//to return the top element of the stack    template <class Type> struct nodeType {     Type info;     nodeType<Type>*link; };  template <class Type> class linkedStackType//:public stackADT<Type> { public:       virtual  void push(const Type& newItem);//add a new element      linkedStackType();//default constructor      ~linkedStackType();//destructor      virtual  Type top() const;//return the top element private:     nodeType<Type>*stackTop;  };   The linkedStack.cpp file is as follows:  #include "linkedStack.h"  template <class Type> linkedStackType<Type>::linkedStackType() {//default constructor     stackTop=NULL; }  template <class Type> Type linkedStackType<Type>::top() const {     assert(stackTop!=NULL);     return stackTop->info;  }//return the top element of the stack ,otherwise terminate the program if the stack is empty template <class Type> void linkedStackType<Type>::push(const Type& newItem) {//add a new element     nodeType<Type>* newNode;     newNode =new nodeType<Type>;     newNode->info=newItem;     newNode->link=stackTop;     stackTop=newNode; }   The main.cpp file is as follows:  #include <linkedStack.h> int main() {     linkedStackType<int> stack;     stack.push(34);     cout<<stack.top()<<endl;     return 0; }   The result is as follows :  g++ -o main linkedStack.cpp main.cpp  Undefined symbols for architecture x86_64:   "linkedStackType<int>::isFullStack() const", referenced from:       vtable for linkedStackType<int> in main0728-bb04be.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)


How to determine the characteristic polynomial of the $4\times4$ real matrix of ones?

$$\left[\begin{array}{l}1&1&1&1\\1&1&1&1\\1&1&1&1\\1&1&1&1\end{array}\right]$$  I am having difficulties with calculating this. Currently I'm stuck at finding the determinant of the following matrix:  $$\left[\begin{array}{l}\lambda-1&-1&-1&-1\\-1&\lambda-1&-1&-1\\-1&-1&\lambda-1&-1\\-1&-1&-1&\lambda-1\end{array}\right]$$  Is there a "smart" way/trick to get the result or should I just crunch the numbers through Gaussian elimination? Normally it is not that difficult to do this, but if all the elements of the matrix are the same, it somehow got me confused.


"Neither... nor..." and "either... or..."

I have some issues with this sentence:     I don't know Alex and Marla.   Is it correct to write it like this:     I don't know either Alex or(or it's "nor"?) Marla.   Or like this:     I don't know neither Alex nor Marla.   And another thing:  May I say something like     I don't know Alex nor Marla.   or     I don't know Alex or Marla.


'You are on the Featured tab' - but there's no Featured tab

Possible Duplicate:          The text of the page informs I am on the Featured tab, but the tab panel doesn't seem to confirm that.     When I saw this for the first time I was a bit lost. If you are interested, this happened after visiting some other tag's featured tab (then the server saves the information 'featured' was my last tab) and switching to some unpopular tag (with no bounties).


Why are the SRAM data and address pins numbered?

As far as understand, it would make no difference to the operation of an SRAM if you mixed up the order of the address or data pins.  E.g.   Removable non-volatile chips, such as PROMs and EEPROMs, have address and data pin numberings defined, as they need to be consistent across programmers and application circuits.  Why do SRAM chips have numbered data and address pins?  Is there any operation impact if I swap address pins around to make a PCB easier to route?


Using conjugates to find a limit with a cubic root: $\lim_{h\to 0}\frac{\sqrt[3]{h+1}-1}{h}$

I currently have $$\lim_{h\to 0}\frac{\sqrt[3]{h+1}-1}{h}$$  Now, I know that when you have square root instead of a cubic root it's easy. You just multiply by the conjugate and simplify afterwards. If it were a sqrt I know that the limit is 1/2. I know that the result here is 1/3 but I can't seem to get there. I always end up with 1/4 due to getting something like: $$\frac{h+1-1}{h(\sqrt[3]{h+1}+1)(\sqrt[3]{h+1}+1)}$$  After simplifying and evaluating the limit you end up with $$\frac{1}{(\sqrt[3]{0+1}+1)(\sqrt[3]{0+1}+1)}$$  which turns out to be $1/4$.  What am I doing wrong?


where does the energy for capillary action come from?

I think capillary action occurs because water molecules have a little magnetic field with poles so they can stack up on each other somewhat. When it happens though, where is the energy derived from to create this kinetic movement?


I have the following piece of text in Latex: \texttt{List<List<Integer>>} and it was rendering properly. Then, I decided to use beramono as my typewriter font, and I have a problem: >> is now rendered as a » character. How should I fix it? In a listing environment, >> is shown correctly.


I recently encountered  on MSO, where a user asks about why certain tags appear in the tag overview page.  This issue is caused by a synonym that redirects users to a non-existent tag.  I've created , and on Stack Overflow alone, a total of 60 approved synonyms exist that point to tags that don't exist. On other sites, I expect orphaned synonyms will exist too  These synonyms are still functional: they show up in the tag page, when searching for it you still get redirected, and if you try to use it in a new question, you will get a prompt if you want to create the synonym target (if you're >1.5K+ rep).  Could we destroy all synonyms too when destroying tags? Or add a separate cleanup script for synonyms?   Not sure if feature request or bug report, feel free to retag


Does my Spanish youth mobility visa automatically change to a tourist visa once it expires? or do i need to get a new stamp?

So I'm about to come to the end of my stay in Spain on my Youth Mobility Visa. Now I just married my partner and we have an appointment to get my residency card here, but it is after the expiry date of my visa. As an Australian, I get a 90-day tourist visa. Do I need to leave the country and get another entry stamp? or once my visa is expired, or do I just move onto the 90-day tourist visa?  Thanks for your help


Left out, store bought, Tyson sealed fully cooked chicken patties 20 hours

Came in from store but forgot to put up my Tyson fully cooked chicken patties. Never opened, seal not broken, 20 hrs later--do I trash em?


frozen meat and pork kept in freezer for 4 years never opened

I recieved a freezer full of frozen meat is beef or pork is still good if frozen for 4 years. never unfrozen still in package from store


Prove: $\mid\sum_{i=1}^{n} x_i\mid\leq \sum_{i=1}^{n}\mid x_i\mid$

$\mid\sum_{i=1}^{n} x_i\mid\leq \sum_{i=1}^{n}\mid x_i\mid$   If $n$ is even we will divide the sum into groups of $2$ $x$'s namely $\mid x+x \mid \leq \mid x\mid+\mid x \mid$ and will repeat the process to get $\mid\sum_{i=1}^{n} x_i\mid\leq \sum_{i=1}^{n}\mid x_i\mid$  If $n$ is odd, we will divide the sum into an even number of $x$'s called $a$ and the leftover $x$ called $b$, by using the proof for even $n$ and the triangle inequality   $\mid a+b\mid\leq \mid a \mid +\mid b \mid= \mid\sum_{i=1}^{n} x_i\mid\leq \sum_{i=1}^{n}\mid x_i\mid$  Is the proof valid?


Python 3 - Boolean not working within definitions

I've been working on a choose your own adventure-type game as my final project for a school assignment, but I noticed that boolean values don't work within functions, I've added some test code to show this:  tv = False def defin():     if if_stat == 'A':         tv = True if_stat = input("") print(tv)                      #Before anything is done defin() print(tv)                      #Definition result if if_stat == 'A':     tv = True print(tv)                      #If statement result   I don't see what's going wrong and I need these values to be changed by if statements within definitions for my project.


How can I avoid SQL injection in my code below?

I'm stuck thinking of how I can avoid SQL injection attacks on my code.   This is what I have now.  <?php session_start(); $email = $_POST['e-mail']; $fn = $_POST['firstname']; $ln = $_POST['lastname']; $cp = $_POST['cellphone']; $phn = $_POST['phone_number']; $comp = $_POST['company']; $prov = $_POST['province']; $brgy = $_POST['barangay']; $fadd = $_POST['address']; $sadd = $_POST['address2'];  $conn = mysqli_connect('localhost','root','','newcartdb')or die('Could not connect');  foreach($_POST['product'] as $product) {     $date = date('Y-m-d H:i:s');     $order_name = $product['item_name'];     $order_code = $product['item_code'];     $order_qty = $product['item_qty'];     $sub_total = $product['price'];      $query = "INSERT INTO `newcartdb`.`orders`(`Email`,`Firstname`,`Lastname`,`ContactNum`,`PhoneNum`,`Company`,`Province`,`Barangay`,`FAddress`,`SAddress`,`ProductName`,`ProductCode`,`Qty`,`SubTotal`,`datetime`) VALUES('$email','$fn','$ln','$cp','$phn','$comp','$prov','$brgy','$fadd','$sadd','$order_name','$order_code','$order_qty','$sub_total','$date')";     mysqli_query($conn,$query); }    mysqli_close($conn);  header('Location: order_confirmation.php'); ?>   How do I improve on this?


Why not just have a stack or just a heap alone?

Not sure if heap or stack is just in a Java, but why have two separate things to hold memory? Why not just have an unlimited stack, or just have a an unlimited heap? What’s the purpose of having them separate, or the reasoning to design it like that? I think I understand the difference between the two at a beginner level.


I'm trying to convert "9999999999999099" into a number/float in javascript. The problem is that both parseFloat(X) and Number(X) return 9999999999999100.  This is not the same number. Does anyone know why this happens and how to avoid it? Thanks in advance.


Beta site showing non-viewable, non-actionable flags in navigation bar

On Project Management SE, I currently have ~8k reputation; that's enough for 10k tools on this beta site. For my account, the navigation bar at the top shows a count of one flag in the queue, but clicking on the link takes me to , which:   Has no contents in the main section, so I can't do anything about the flags. Shows  in the column along the right-hand side. This link appears to do nothing when clicked.   This is a bug. Either I should see flags I can act upon, or the navigation bar shouldn't show me a flag count.


Bash: redirect command argument completion

When you have written in the shell $ somecmd and double tab, you get all the suggestions that apply for that command. How can you redirect this output?   I am aware of , it seems to be able to do what I want, but I can only make it print possible completions for the command name, but not for the command arguments.  Edit:  Just to clarify. As I mentioned above, I know how to get the list of all possible command name completions as is described in . The question here is how to get the completion list for an argument?  If you have in shell $ somecmd and then double-hit tab, it will show for example a, ab, abc.\  If you have in shell $ somecmd ab, double-tabbing returns ab and abc.


Hi I tried to install the package by  tlmgr install dsfont   but I only get  tlmgr: package repository http://ftp.gwdg.de/pub/ctan/systems/texlive/tlnet package dsfont not present in package repository.   I also installed the package doublestroke since I read somewhere that this package contains dsfont, but if I include dsfont I still get an error message..  Does anyone know how to help me?


How to select even or odd elements based on class name

if you create html layout like so

   and try to select odd elements with 'a' class like so $$('.a:odd') you will get empty array, and if you do $$('.a:even') you will get all four li elements with 'a' class.. It really strange.. But im new to mootools, maybe im doing something wrong..    So my question is how to select first and third li elements with a class. I know that i can do it with function like this  $$('.a').filter(function(item, index) { return index%2; }  but its too complicated for such small task as selecting odd or even elements..


Radiation of an electron in an atom in the Rutherford model

In the limitations of Rutherford atom model, it is said that electrons would radiate energy and fall to the nucleus if it rotates in any path other than the allowed circular path.  I want to ask, how does an accelerating electron radiate energy and how does it not radiate energy in allowed paths? I mean , in a circular path , displacement is perpendicular to force and so work done is zero . Then, how does it lose energy ...?  [Any conceptual explanation would be helpful.]


Explain Cohen's kappa in a simplest way?

I'm learning statistics but don't really understand the result of kappa value posted in the first sample    Is there anyone help me explain in English what the value 0.915 means? (observed proportionate agreement) and the kappa value 0.801. Does 0.915 is the value that both A and B agree with the totally 94 proposals? Or something?


Equivalent of head/tail command to show head/tail or a line

What is equivalent of head/tail command to show head/tail or a line?  head2 -2 "abcdefghijklmnopqrstuvwxyz"  => ab  tail2 -2 "abcdefghijklmnopqrstuvwxyz" => yz


Find all real functions $f:R\mapsto R$ satisfying the relation   $$f(x^2+yf(x))=xf(x+y).$$   My Answer: Putting $y=0$ we get, $f(x^2)=xf(x)$. o  Which implies $\frac{f(x^2)}{x^2}=\frac{f(x)}{x}$.  Let $g(x)=\frac{f(x)}{x}$.(Assume $x\ne 0$)  Hence, $g(x)=g(x^2)$.  Therefore, $g(x)=c$, Or $f(x)=cx$ (when $x \ne 0$)  And $f(0)=0$ (By putting $x=y=0$).  Is my answer is ask right?? If not then kindly tell me the mistake!


Good book resources (not websites) to learn number theory on my own?

Possible Duplicate:          I took number theory this semester and loved it but don't feel like I learned all that much. I am not going any farther in formal education in math so I would like to further investigate number theory on my own. Do you have any suggestions for good books? I need at least one that is pretty basic and preferably one that goes a little bit more advanced. (You can look at some of my other recent questions to see the level that I'm at, but I really don't understand much beyond Diophantine equations- pretty much have to start over).  I also would prefer if you didn't recommend current textbooks- I've got a pretty small budget. I was looking at , , and .   Thanks for the help and I apologize if this question is too broad/vague/or subjective.


When I was younger, it seemed most mountain bike shocks had rubber boots on them, but now most seem to be "naked."    How important were the shock protectors that covered the exposed part of the piston - either the generic rubber boots or the neoprene "lizard" protectors? Did they make a difference for most riding styles?   Why has naked become the new thing? Is this just value-engineering?    And is there any meaningful difference in performance between the two?


javascript includes method outputs incorrect result

<!DOCTYPE HTML>
Before the script...

...After the script.
       When I run the above code, it outputs "false", which isn't correct. If I change [[25,4]].includes([25,4]) to ['a'].includes('a'), it outputs the correct answer "true". Why does it do that?


How to keep my data when re-installing ubuntu

I have a laptop with Ubuntu installed and used the "Erase disk and install Ubuntu" option which means my system now only has 2 partitions: main and swap partition.   Now I need to install a new system,but want to keep some important data. I think the solution is creating a new partition a copy important data into that partition. But I don't know exactly what to do because I am new to Linux.


What equipment do I need for 360° virtual tour photography?

I am looking forward to make a 360 degree virtual tour photography of my locality. Could you please suggest the basic specifications of the camera that would be required to do so? What software can I use?


Proving Banach space is finite in Baire space

Let $B$ be a Banach space where the dimension of the underlying vector space is countable. using the Baire category Theorem, prove that the dimension of the underlying vector space is, in fact, finite.  Can you give me how I should approach this problem? Thanks  I have checked the answer of "." However, It seems they prove that Hamel basis is uncountable, whereas My problem is proving the dimension of the underlying vector space is finite.


Shouldn't ball has to move in the circle even after cutting the rope by which it was attached?

Since the tension force is a central acting force, the torque on an orbiting ball about that center is zero. But if the rope is cut down during motion the torque would still remain zero. This would mean that angular momentum of the orbiting ball should be conserved, but I find everywhere that ball will move in a straight line tangentially. What is wrong in my reasoning?


Coverting a Boolean object array to boolean primitive array?

I have an ArrayList of type Boolean that requires to be manipulated as a boolean[] as I am trying to use:  AlertDialog builder; builder.setMultiChoiceItems(items, checkedItems, new DialogInterface.OnMultiChoiceClickListener() { ... });   However, while I can create a Boolean object array, I cannot find an efficient way to covert this object array to a primitive array that the builder function calls for (the only method I can come up with is to iterate over the Object array and build a new primitive array).  I am retrieving my Object array from the ArrayList as follows:  final Boolean[] checkedItems = getBoolList().toArray(new Boolean[getBoolList().size()]);   Is there something I can do with my ArrayList? Or is there an obvious casting/conversion method that I am missing??  Any help appreciated!


Since Naruto failed the Genin exam so many times, doesn't that mean he's older than Sasuke and Sakura?

Naruto wasn't able to complete the Genin exam for some time. Either he was just a young starter and Sakura & Sasuke started after he failed, or a result that he was quite older. They say he was the same age, but never really told us to which day he started.  Doesn't that mean Naruto is older than Sasuke and Sakura?


Can a penalty kick be passed to a second player?

Is it possible for the penalty to be played by two players as a passed ball? Means the first player can pass the ball to the second player who will kick the ball in the goal.


What does `2` in `GETRLIMIT(2)` mean/come from?

I know GETRLIMIT(2) is used to control maximum system resource consumption.  What does 2 in GETRLIMIT(2) mean/come from?


How to redirect output of a program to a ZIP file?

I am running a script which is collecting a log of a server. I need to redirect this logs to a ZIP file. Right now I am collecting data into text file.  How can I redirect it directly to ZIP?


In , one learns two definitions of free groups associating with sets.        Let $A$ be a set, the free group of $A$, $F(A)$ is the initial object in the category $\mathcal{C}$, where \begin{equation} \operatorname{Obj}(\mathcal{C})=\{A\xrightarrow{g}G\}, \end{equation}where the codomain $G$ are groups, and \begin{equation} \operatorname{Hom}(\mathcal{C})=\{\text{Commutative Diagrams } A\xrightarrow{g_1}G_1\xrightarrow{\phi}G_2\xleftarrow{g_2}A\}  \end{equation} where $\phi$ are group homomorphisms.   Also $F(A)$ has the concrete construction with elements being non-redundant words with alphabet $A$, and the group multiplication being juxtaposition and reduction.      But what good are free groups? Why are they useful?  says they are useful in topology, but does not explain why explicity.   Can someone give some examples that an undergraduate can understand? I am asking about examples that can show the usefulness of this abstract construction. So I guess the identification of $\mathbb{Z}=F({a})$ does not really count.


MacTex 2012 v MacTex2014: Different behaviour combining \PreviewEnvironment{center} and beamer

Something changed between MacTex2012 and MacTex2014 in terms of how PreviewEnvironment and beamer interact.  This MWE used to produce a single page (by pdflatex in MacTex 2012), but now it produces two pages, the second blank.  \documentclass{beamer} \usepackage[active,tightpage]{preview} \PreviewEnvironment{center}  \begin{document} \begin{frame} \begin{center} test \end{center} \end{frame} \end{document}   I'm trying to track down why, but perhaps an expert out there can leap to the answer?


A function $f : \mathbb{R} \rightarrow \mathbb{R}$ is called even if $f(-x) = f(x)$ $ \forall x \in \mathbb{R}  $   A function $f : \mathbb{R} \rightarrow \mathbb{R}$ is called odd if $f(-x) = -f(x)$ $ \forall x \in \mathbb{R}  $   Let $U_{e}$ denote the set of real-valued even functions on $\mathbb{R}$ and let $U_{o}$ denote the set of real valued odd functions on $\mathbb{R}$.   Show that $\mathbb{R}^{\mathbb{R}} = U_{e} \oplus U_{o}$   This question from Q24 of "Linear Algebra Done Right" 3rd Edition - Chp 1.4 (Subspaces). The author of the book does minimal work with functions during the chapter. I have no idea how to approach the question.


I'd written a tiny c program. The code compiled successfully by GCC 4.8.5 20150623 (Red Hat 4.8.5-4) with -std=c99, but gave me a warning. I cannot deal with the warning, and I even don't known what's wrong with it. The code is here:  #include <stdio.h> #define COLS 4 int SumOf2DArray(const int array[][COLS], int rows); int SumOfArray(const int array[], int element_number); int main(void) {   int sum_of_array0, sum_of_2d_array, sum_of_array1;   int *array, (*dimensions)[COLS];   array = (int [2]){10, 20};   dimensions = (int [2][COLS]){{1, 2, 3, -9}, {4, 5, 6, -8}};   sum_of_array0 = SumOfArray(array, 2);   sum_of_2d_array = SumOf2DArray(dimensions, 2);   sum_of_array1 = SumOfArray((int []){4, 4, 4, 5, 5, 5}, 6);   printf("sum_of_array0 = %d \t sum_of_2d_array = %d \t sum_of_array1 = %d\n",     sum_of_array0, sum_of_2d_array, sum_of_array1);   return 0; } int SumOf2DArray(const int array[][COLS], int rows) {   int sum_of_2d_array = 0;   for (int rows_i = 0; rows_i < rows; rows_i++) {     for (int cols_i = 0; cols_i < COLS; cols_i++) {       sum_of_2d_array += array[rows_i][cols_i];     }   }   return sum_of_2d_array; } int SumOfArray(const int array[], int element_number) {   int sum_of_array = 0;   for (int i = 0; i < element_number; i++) {     sum_of_array += array[i];   }   return sum_of_array; }   And the warning is here:  chapter10_compound_literals.c: In function ‘main’: chapter10_compound_literals.c:25:3: warning: passing argument 1 of ‘SumOf2DArray’ from incompatible pointer type [enabled by default]    sum_of_2d_array = SumOf2DArray(dimensions, 2);    ^ chapter10_compound_literals.c:15:5: note: expected ‘const int (*)[4]’ but argument is of type ‘int (*)[4]’  int SumOf2DArray(const int array[][COLS], int rows);   Now, I assume I have a 2d-array: int array[2][3] = {{1, 2, 3}, {3, 4, 5}}, and I have a function: int SumOf2DArray(const int array[][3], int rows).   The way in the code above is using a pointer(int (*pointer)[3] = array), but get a warning, and I have tried to pass argument using array directly, but the same warning.  How I can pass the array to the function?


Every $R$-module is a quotient of a free module

I'm reading through my notes, and I have a theorem as the title says. As proof I have only a picture.    where $v:m\mapsto(0,...,0,1,0,...,0)$ and 1 is at $m$-th position. I know, that $\oplus_M R$ is a free module generated by set  $M$, but is this all? I do not see how the statement is proved.


Why does setTimeout in a while loop increment in order?

I had a question at the interview. I just don't get why this prints 5 6 7 8 9...  let i = 0;  while (i < 5) {   setTimeout(() => {     console.log(i++);   }, 0);   i++; }


How to insert a row with two columns modified

I didn't design this table; I just have to work with it. And modifying the design isn't really possible.  The table has ~50 columns. I want to copy a row, update two of the columns (a GUID and an int), and then insert it back into the table.  I can't seem to come up with how to do this without listing all the columns. Does someone have any techniques?


LED strip power supply 12V 2A vs. 12V 25A

I am using a white light LED strip in my 3D printer enclosure. And I would like to use the power supply of my 3D printer to power this LED strip.  The original power supply of the LED strip is 12V/2A The power supply of the printer outputs 12V/25A  Can I use the power supply of the 3D printer to power this LED strip, or will it overheat the LEDs?  Thanks


How to generate core dump file in Ubuntu

I would like to know how to generate a core dump file in Ubuntu. I am using Ubuntu 8.04.1 and gcc compiler 4.2.3. I have written a simple C program to generate a core dump. I have compiled the program as in --   gcc -g badpointer.c . When I run the program its gives segmentation fault but no core dump is generated. What additional things do i have to do to generate a core dump file ?


How do I get notified about updates to my questions?

it is a good idea to search before asking a question.   Let's say I want to know if I can be informed (not via email) that there is anything new happening in the question I posted or I added to my favourites. I tried to search for such question/info with no success.  Should I go through all pages in the search?  How many different searches should I perform?  How would you search for such info?


The definitive guide to form-based website authentication

Form-based authentication for websites  We believe that Stack Overflow should not just be a resource for very specific technical questions, but also for general guidelines on how to solve variations on common problems. "Form based authentication for websites" should be a fine topic for such an experiment.  It should include topics such as:   How to log in How to log out How to remain logged in Managing cookies (including recommended settings) SSL/HTTPS encryption How to store passwords Using secret questions Forgotten username/password functionality Use of  to prevent   "Remember me" checkbox Browser autocompletion of usernames and passwords Secret URLs (public  protected by digest) Checking password strength E-mail validation and much more about ...   It should not include things like:   Roles and authorization HTTP basic authentication   Please help us by:   Suggesting subtopics Submitting good articles about this subject Editing the official answer


Show that $\exp(\overline{z}) = \overline{\exp(z)} $

Given that $z \in \mathbb{C}$, I want to show that  $\exp(\overline{z}) = \overline{\exp(z)} $. For LHS I can see that we will get some real number as $\overline{z}$ is some real number. But should RHS be a complex number which is a complex conjugate of $e^z$? If so how can this equality hold?


We know that $2^4 = 4^2$ and $(-2)^{-4} = (-4)^{-2}$. Is there another pair of integers $x, y$ ($x\neq y$) which satisfies the equality $x^y = y^x$?


Homology of orientable surface of genus $g$

I came across the problem of computing the homology groups of the closed orientable surface of genus $g$.   Here  I found a solution via cellular homology. This seems to me like the natural way of calculating something of this sort although I know that it is also possible to do this using the Mayer-Vietoris sequence.  I understand the main calculations of the solution referred to above, however the CW-structure that the surface of genus $g$ is endowed with is a mystery to me.  I understand it for the case $g=1$ where it is quite conceivable in a graphic manner.   Could someone please explain what is going on for $g \geq 2$?  Thanks in advance for any help.


Why does the period of a pendulum decrease in an accelerating frame?

If there is a simple pendulum in a non-accelerating frame with period $T_1$, it will have period $T_2 < T_1$ when placed in a frame accelerating perpendicularly to the direction of gravity. Why?


If you are a multiclass spellcaster, does your save DC vary based on which class you got a spell from?

For instance, let's posit a character, sorc 1 wiz 1, that can cast Ice Knife through Sorcerer, and Burning Hands through wizard.  But their INT is 16, and their CHA is 18.  What would their save DC base off of, for Burning Hands?


To unlock the Untouchable AR challenge, I have to "perform 3 Critical shots in one drone tank battle". What is a critical shot and how do I make one?


Can't put windows on a flash drive, even with dd, winusb and unetbootin

How can i install my windows 7 iso to a flash drive? dd seemed to have worked, but when i booted it did not work, saying grub: no such partiton Which is odd, considering i did not remember installing grub. Does this mean that it's in the iso? or that it's persistent from a previous install, and even formatting won't remove it? Very confused.  Tried: unetbootin, than boot, just boot looped into 'default'  winusb: Failed with error code 512  dd, than boot  format, dd, than boot.  re-downloading the iso from Microsoft store, format, dd  format to ntfs, unetbootin version 494, boot, blinking line on the top left


Why is $e^{-i\theta} = \cos \theta -i\sin \theta$?

Yeah. I probably just missed it in lecture, but I totally missed why this is like this. Sorry. Thanks. A part of me wants to understand it as $$e^{-i\theta} = \cos (-\theta) + i\sin (-\theta)$$ But idk


Determining ethnicity according to ancestry?

My sister, cousins, and other relatives speculate that my mom's grandmother was Jewish (for various reasons). I've heard people say at times things like, for example, "I'm 50% German" or "I'm 25% Swedish." This has to do with their ancestry. But, how exactly is this calculated? Say for example that my mother's paternal grandmother was indeed 100% Jewish, what would that make me and my siblings, and how is it calculated?


Why is my output already sorted in python

prices = {     "banana": 4,     "apple": 2,     "orange": 1.5,     "pear": 3 } stock = {     "banana": 6,     "apple" : 0,     "orange": 32,     "pear": 15 }  for item in prices:     print item     print "price: %s" % prices[item]     print "stock: %s" % stock[item]   The outout of the following code gives the following output  orange price: 1.5 stock: 32 pear price: 3 stock: 15 banana price: 4 stock: 6 apple price: 2 stock: 0 None   I want to ask why is it displayed in this way (in sorted order) . Isn't banana should come first , then apple , orange and pear ?


Why is the direction of net force on an object and the direction of acceleration of that object different in this problem?

A $ 2.0 kg $ box of cucumber extract is being pulled across a frictionless table by a rope at an angle $ \theta=60° $ (from positive direction of $ x $ axis, we have taken horizontal surface of table as $ x $ axis) The tension in the rope is $ 12N $ and causes the box to slide across the table to the right with an acceleration of $ 3.0 m/s² $ But the direction of net force is along the rope. The direction of acceleration isn't. Why is that?


I'm planning to study Java EE but I do not know where to start.   Based on  there are technologies present in lower versions which are not available in the higher version. Do I need to learn J2EE 1.4 before learning Java EE 5 or 6? Or is it better to learn the latest version since their purpose of doing it is to improve the previous version.   Can you also suggest some resources on Java EE?


How exactly does NSInvocation work? Is there a good introduction?  I’m specifically having issues understanding how the following code (from Cocoa Programming for Mac OS X, 3rd Edition) works, but then also be able to apply the concepts independently of the tutorial sample. The code:  - (void)insertObject:(Person *)p inEmployeesAtIndex:(int)index {     NSLog(@"adding %@ to %@", p, employees);     // Add inverse of this operation to undo stack     NSUndoManager *undo = [self undoManager];     [[undo prepareWithInvocationTarget:self] removeObjectFromEmployeesAtIndex:index];     if (![undo isUndoing])         [undo setActionName:@"Insert Person"];      // Finally, add person to the array     [employees insertObject:p atIndex:index]; }  - (void)removeObjectFromEmployeesAtIndex:(int)index {     Person *p = [employees objectAtIndex:index];     NSLog(@"removing %@ from %@", p, employees);     // Add inverse of this operation to undo stack     NSUndoManager *undo = [self undoManager];     [[undo prepareWithInvocationTarget:self] insertObject:p                                        inEmployeesAtIndex:index];     if (![undo isUndoing])         [undo setActionName:@"Delete Person"];      // Finally, remove person from array     [employees removeObjectAtIndex:index]; }   I get what it’s trying to do. (BTW, employees is an NSArray of a custom Person class.)  Being a .NET guy, I try to associate unfamiliar Obj-C and Cocoa concepts to roughly analogous .NET concepts. Is this similar to .NET’s delegate concept, but untyped?   This isn’t 100% clear from the book, so I’m looking for something supplemental from real Cocoa/Obj-C experts, again with the goal that I understand the fundamental concept beneath the simple(-ish) example. I'm really looking to be able to independently apply the knowledge -- up until chapter 9, I was having no difficulty doing that. But now ...    Thanks in advance!


Probability that a quadratic equation with random coefficients has real roots

Consider quadratic equations $Ax^2 + Bx + C = 0$ in which $A$, $B$, and $C$ are   independently distributed $\mathsf{Unif}(0,1)$. What is the probability that the roots of such an equation are real?   This problem is from  Chapter 3 of Rice: Mathematical Statistics and Data Analysis (editions 1 through 3). Until recent printings of 3e, the incorrect answer 1/9 was given for this problem.   However, Horton (2015)  points out that the correct answer is slightly above 1/4, as can be verified by a simple simulation. (Horton and his colleagues are concerned with elements of an undergraduate curriculum to prepare students in the mathematical sciences to cope with modern data science.)  In a somewhat more practical setting, one might consider a discrete version of this problem. A program that produces random drill problems on quadratic equations $Ax^2 + Bx + C = 0,$ selects values for $A, B,$ and $C$ at random and independently from among the ten equally likely values $0.1, 0.2, \dots, 1.0$. What proportion of such equations have real roots? And what proportion have only one root?  The initial Answer sketches the exact analytic solution of the original problem and shows numerical and graphical results from simulation. A simulated result for the discrete version is also shown.  Additional answers using other methods or discussing related topics are welcome.


When trying to install pagespeed on my debian 7.1  Unpacking mod-pagespeed-stable (from mod-pagespeed-stable_current_amd64.deb) ... dpkg: dependency problems prevent configuration of mod-pagespeed-stable:  mod-pagespeed-stable depends on libc6 (>= 2.14); however:   Version of libc6:amd64 on system is 2.13-38+deb7u11.  dpkg: error processing mod-pagespeed-stable (--install):  dependency problems - leaving unconfigured   How to fix that ? (I guess I need to upgrade libc6, but no idea how)


The prompt is to find the ways there are to sit n people on k chairs standing in a row so that no 2 people sit next to each other.  Pigeon hole theorem is what I am using to attempt this problem. since there are k chairs, and n people. we must have at least $k-n+1$ chairs.   Assuming people to be X and chairs to be O, it can be visualized as XOXOXOX so at least n-1 unoccupied chairs are needed to occupy n people in a way that they aren't next to each other or vice versa.  So now we have $k-n+1$ holes and n pigeons to occupy these places, giving us ${k-n+1} \choose{n}$$n!$ ways to do this right since all people are unique.   Let's say we have 9 chairs and 4 people, we have $6\choose4$$4! = 450$ ways to do so.  Is this the correct way to approach a problem like this?


On the limit of some average of the function

Let $f$ be continuous, nonzero on $[a,b]$. For $p\in \mathbb R$, define $$\Phi_p(f)=\left(\frac{1}{b-a}\int_a^b|f(x)|^pdx\right)^{1/p}$$.  Show that  $$\lim_{p\to 0} \Phi_p(f)=\exp(\frac{1}{b-a}\int_a^b \ln |f(x)|dx)$$  I have no idea on it. Once I take L' Hospital formula, I got nonsense....


We're standardizing the sidebar width at 300px on all sites

Update: this change is now live across the network. You'll still see some narrow 220px ads because it's going to take us a good while to update all of the old ads, but if you see any other style issues, please report here on meta.   Stack Exchange sites are ad-supported. We run relevant, unintrusive ads that don't get in your way--but they help us keep the lights on. Even sites that don't have paid external ads usually have a few internal ones, used to promote other sites on the network and . We don't run a lot of ads, and , but the ones we do run have one crippling problem:   The sidebar ads are currently a weird non-standard size. Yes, standardized ad sizes are . And apparently if you ignore them, folks are more reluctant to advertise and have a tendency to make uglier ads. We don't like ugly ads, and we do like selling ad space. So starting next week, we will switch to the industry-standard size for sidebar ads. The new ad units will be 300x250 and the sidebar will be expanded to 300px wide to accommodate them. We won't be reducing content size or doing any sort of weird overlay; the ads and other sidebar content will just extend an additional 80 pixels to the right.  However, even though the sidebar is growing by 80 pixels, by reclaiming some margin space, the overall page width is only increasing by 60px. Here's what it's going to look like:     of Stack Exchange users won't be affected by this change. Either they already use a viewport big enough to accommodate the new width, or they already use a viewport too small to accommodate the existing width. (And those who do find themselves affected won't be losing any content, the juicy stuff we all come here to look at. They'll just see a bit of the sidebar cut off unless they scroll.)  We're planning to roll this out on Tuesday, January 12. (There will be a transition period after that date while we work on getting all ad types swapped over; you'll still see some of the old size ads during that time.) In the meantime, let us know your thoughts.


how do I break line if the file path is too long?

file_path =('C:\\Users\\zlq\Desktop\\python_crash_course\\书籍资料 \\chapter_10\\pi_digits.txt') with open(file_path) as file_object: contents = file_object.read() print(contents)   As I open file above in python 3, the path is too long and I want to break it two lines. But I tried several ways like adding""" , they won't work. So how do I break the path into two lines?


How to conduct a meta-analysis on studies that report results variously as odds ratios, hazards ratios, or rate ratios?

I'm doing a meta-analysis of some studies that report results variously as odds ratios, hazards ratios or rate ratios (all with confidence intervals). Is there any way to combine these together/convert between them so that I can do a meta-analysis of all the studies?


I need to create thumbnails from multiple .png files and would like to do this using ImageMagicks convert utility. To recursively find all files that are not thumbnails themselves, I am using the following call (split into two lines to make it readable):  find . -type f -name "*.png" -not -name "*thumb.png*" \   -exec convert {} -thumbnail 200x200 {}.thumb.png \;`   But this would of course create a file named a.png.thumb.png when running it on a file called a.png. How could I remove the .png extension from the second {} parameter passed to convert?


In class we've seen that $a$ (the weights) must satisfy $$X^T (y-Xa) =0$$  Here $X$ is a $(n\times d)$ matrix (so we have $n$ samples in $\mathbb R^d$)  let's denote the residuals $r = y-Xa$. In our class notes, it is written that     The normal equations require the residuals to be orthogonal to each of the columns of $X$.   Why?     Therefore, the solution of the linear regression is a projection of $y$ onto the subspace spanned by $v_1 , \ldots , v_d$ (the columns of $X$)   Can you please explain this?


Where to find license information on Soundcloud

Where do I find the license information for a track on soundcloud? I know this question has been asked here before, but I didn't find what was referenced here:   Maybe I am missing something painfully obvious. In that case, please forgive my ignorance.


Proof of inequality : $\frac{1}{a^3+b^3+abc}+\frac{1}{b^3+c^3+abc}+\frac{1}{c^3+a^3+abc}\le \frac{1}{abc}$

Can we use AM-GM inequality proof method? I need a hint for proof.  Similar question:   If $a,b,c \in \mathbb R$ and $a,b,c > 0$, then $$ \frac{1}{a^3+b^3+abc}+\frac{1}{b^3+c^3+abc}+\frac{1}{c^3+a^3+abc}\le \frac{1}{abc} $$


Incorrect line spacing when text is in curly braces

Consider this minimal working example:  \documentclass{article}  \begin{document} {     \Huge     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum }  \Huge Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum \end{document}   which produces the following output:    Notice how the line spacing looks awkwardly small in the upper part, where the text is inside curly braces. Why is this, and what to do about it?


A very recent and similar  was closed asks what "for good" means.  While general reference can answer the question, I became curious as to the etymology of the idiom.   around got me nowhere, which is unusual.  The closest I found was a thread in :     OED   for good (and all): as a valid conclusion; hence, as a final act, finally.    15.. Parl. Byrdes Aij, Than desyred al the Byrdes great and smal to mewe the hauke for good and all. 1603 in Crt. & Times Jas. I (1849) I. 25 D’Auval.. is gone for good and all. 1687 CONGREVE Old Bach. I. i, Ay, you may take him for good-and-all if you will. 1711 SWIFT Jrnl. to Stella 4 July, This day I left Chelsea for good, (that’s a genteel phrase). a 1732 T. BOSTON Crook in Lot (1805) 37 He was obliged for good and all to leave his country. 1850 J. H. NEWMAN Diffic. Anglic. 324 Throw off, for good and all, the illusions of your intellect. 1882 W. E. FORSTER Let. To Gladstone 10 Apr. in T. W. Reid Life (1888) II. viii. 421 This morning we released Parnell—not for good, but on parole.   However, this only traces some historical usages, and suggests that for good and all used to be a more popular version of the current idiom.  Is there anything more substantial?  Why did "for good" come to mean "forever"?


How to calculate $\lim_{(x, y) \to (0,0)} \frac{xy^2}{x^2 - y^2}$

How do I show that $\lim_{(x, y) \to (0,0)}\frac{xy^2}{x^2 - y^2} = 0$? I tried using polar coordinates, and arrived at $\lim_{r \to 0^+}r \tan{(2\theta)} \sin \theta$. But then, I couldn't find a nice way to prove that this is zero, because the function multplying $r$ isn't bounded. Does anyone have a nice, simple solution?


Once in a while I stumble on some question or answer with HUGE amount of upvotes (thousands for a question and multiple hundreds for an answer). Here is the perfect example:  What I found that most of such questions/answers are:  Quite old (dating back to 2008, 2009, sometimes to 2010) Very often these super high voted answers could be googled in 10 seconds in some other resources (meaning that both the question and the answer aren't THAT valuable).  Another thing which I found that there are users (Old timer's) who answered literally one such question 5 years ago. And these users can get more reputation each week doing nothing than a newcomer (like me) answering couple of questions each several days. So, I decided to investigate a little bit and wrote a query which calculates a ratio of Total reputation / number of posts (Answers + Questions). Here is it:  It's interesting to see how people got into 5k+ with 1 contribution to SO and there are even people with 10k+ (admin rights) with just 10 questions/answers. Generally speaking, I have nothing against old reputation. However, a person doing nothing for 5 years and still beating me in daily reputation - kind of pisses me off :) I just want to hear your opinion on this thing. Especially, it would be interesting to hear from other members who become active recently (I understand that for an admin with 30k reputation and thousands of answered questions it's not that big deal that somebody got 7k reputation from one answer). P.S. 8 years passed since this post. I am old timer now and I can sit and accumulate points (and badges) without doing anything, while some new comers are fighting to get their first 1000 points. On top of that I stopped contributing to SO probably 4 years ago.


In the process of replacing my gear cassette on my Trek 820 bike I took apart my rear wheel hub and bearings and I have no clue how the parts are supposed to go back together.


Calculate elevation change in point feature class

I have a point feature class with 130 rows that represent the vertices of a trail I generated. I calculated the z height for each verticy/row. Now what I want to do is calculate the elevation change from one row to the next.      so I want to add a new field called, Z change with the number being how many feet from the below row to the above one.


I see other people doing this, occasionally.   They'll add something like the following to the start of their terminal, sort of a welcome screen:    ____  _____    _  _  _____  __  __    _    _    __    _  _  ____    ____  _____    ____  __      __   _  _      __       ___    __    __  __  ____  ___ (  _ \(  _  )  ( \/ )(  _  )(  )(  )  ( \/\/ )  /__\  ( \( )(_  _)  (_  _)(  _  )  (  _ \(  )    /__\ ( \/ )    /__\     / __)  /__\  (  \/  )( ___)(__ )  )(_) ))(_)(    \  /  )(_)(  )(__)(    )    (  /(__)\  )  (   )(      )(   )(_)(    )___/ )(__  /(__)\ \  /    /(__)\   ( (_-. /(__)\  )    (  )__)  (_/ (____/(_____)   (__) (_____)(______)  (__/\__)(__)(__)(_)\_) (__)    (__) (_____)  (__)  (____)(__)(__)(__)   (__)(__)   \___/(__)(__)(_/\/\_)(____) (_)   It happens when the shell starts, and I would like to have it happen for me when the shell starts, too.   I am pretty proficient with vim for text editing, so I think I could figure out a way to do it.   If vim fails, I can use something like the following, but how do I make it come up not garbled when I start my new shell?   Please note that this question is not just about ASCII art, but is also about how to successfully add it to my bash, and about possible escapes required for the bash shell to get it to work properly.


I find that most of my clients are not documenting their databases at all and I find that pretty scary. To introduce some better practice, I would like to know what tools/process people are using.   How do you document your database? (SQL-Server)  What tool do you use?  Documentation Storage Format for database schema/meta-data?   Word documents Excel spreadsheet Plain Text  Documentation process or policies?   I am not talking about reverse engineering / document a existing database, but mainly on the documentation best practices while you develop your system/database.


Science Fiction (novel?) involving robotic feline pets named Pookas?

This was a case of me finding this in the process of doing research for my question, but I figured I'd post it. Somehow, the subject of  came up in a conversation at work, and I mentioned that, as a teenager, I associated that name with robots because of something I'd read where robotic cats were named that, and it got me to wondering what piece of fiction it was.  The main character had one, and it was a bit of a security blanket for her, originally given as a therapy pet, but which she continued to cling to as she became an adult. There's a scene that sticks out in my memory where she felt abandoned (I can't remember if she actually was), and it had her tightly hugging the "pooka", crying into its fur as it purred to try to console her. I think there was mention of having to replace its synthetic fur frequently because her constant handling of it was leaving it threadbare.


java.lang.NullPointerException when filling array

The goal: create array with x size by random numbers and sort numbers.  Array.java  import java.util.Random;  /**  * Created by cazorla19 on 05.03.16.  */ public class Array {      int myArray[];     Random rand;      Array() {     }      Array (int x) {         Array myArray[];         myArray = new Array[x];         for (int i=0; i<x; i++) {             myArray[i] = new Array();         }     }      int[] ArrayFill () {         for (int i=0; i<myArray.length; i++) {             int j = rand.nextInt();             myArray[i] = j;         }         return myArray;     }      int[] ArraySort (){         System.out.println ("Here is the Bubble sort!");         for (int i=0; i<myArray.length; i++) {             for (int j=0; j<myArray.length - i - 1; j++) {                 if (myArray[j] > myArray[j+1]) {                     int temp = myArray[j];                     myArray[j] = myArray [j+1];                     myArray[j+1] = temp;                 }             }         }         return myArray;     }      void ArrayPrint() {         for (int i=0; i<myArray.length; i++) {             System.out.print (myArray[i] + ", ");         }     }  }   ArrayDo.java  /**  * Created by cazorla19 on 05.03.16.  */ public class ArrayDo extends Array {      public static void main (String args[]) {         int x = 10;         Array labArray = new Array(x);         labArray.ArrayFill();         labArray.ArrayPrint();         labArray.ArraySort();         labArray.ArrayPrint();     } }   Kind of exception.  Exception in thread "main" java.lang.NullPointerException     at Array.ArrayFill(Array.java:23)     at ArrayDo.main(ArrayDo.java:10)   That's where I tried to use length of array. Tried to figured out through this issues [1][2]. It's thought I can't change array values from NULL despite of I did in array constructor. Did anyone force with similar issue? I know it should be pretty easy, but still can't realize what's wrong.


Pulling a CSV file from website into QGIS with ability to automatically refresh?

I am attempting to pull a CSV file from a website that is updated daily. I would like to have a process that can automatically perform the process and save daily as a new layer. The CSV file is related to tracking forest fires and has multiple attributes. The CSV download url is . I attempted to use the a vrt driver to load the file into QGIS as a layer but I was unable to pull the attributes as well as the lat/long locations.   I am fairly new to QGIS.


A calculator is broken so that the only keys that still work are the basic trigonometric and inverse trigonometric functions

A calculator is broken so that the only keys that still work are the $\sin$, $\cos$, $\tan$, $\cot$, $\sin^{-1}$, $\cos^{-1}$, and $\tan^{-1}$ buttons. The display initially shows 0. (Assume that the calculator does real number calculations with infinite precision. All functions are in terms of radians.) (a) Find, with proof, a sequence of buttons that will transform $x$ into $\frac{1}{x}$. (b) Find, with proof, a sequence of buttons that will transform $\sqrt x$ into $\sqrt{x+1}$. (c) Prove that there is a sequence of buttons that will produce $\frac{3}{\sqrt{5}}$.  This is a continuation of a closed problem a while ago. I have solved parts, a and b but c is a challenge. (a) We know that $\tan(\arctan(x))= x$ so inversing the equation, you get $\frac{1}{\tan(\arctan(x))}=\boxed{\cot(\arctan(x))}$ (b) We can solve this using right-triangle trigonometry. With legs, 1 and $\sqrt{x}$, the hypotenuse would be $\sqrt{x+1}$. To have $\frac{1}{\sqrt{x+1}}$, you would write it as $\cos(\arctan(\sqrt{x}))$. To transform $\sqrt{x}$ ot $\sqrt{x+1}$, you would have $\frac{1}{\cos(\arctan(\sqrt{x}))}$. From part (a), we can find the reciprocal of anything. All we need is the reciprocal which is $\boxed{\cot(\arctan(\cos(\arctan(\sqrt{x})))}$ How can we solve c when the initial display is 0?


Can we find a Borel measurable function $f:\mathbb{R} \rightarrow (0,\infty)$ such that $\int \mathcal{X}_I f d\mu = \infty$  for every nonempty open interval $I \subset \mathbb{R}$, where $\mu$ is the Lebesgue measure on $\mathbb{R}$ ? I think the answer is true; there is such a function, but with this condition "integral = infinity" this makes $f$ is unbounded almost everywhere, so not sure how to define it, if it exists.


Why fundamentally does classical mechanics lead to second order dynamics?

What's so special about second order equations in classical mechanics? I have a basic understanding of the Lagrangian and Hamiltonian formulations of classical mechanics, so I'm not looking for answers like 'because Newton's second law is a second order ODE' or 'because Euler-Lagrange equations act on a first time derivative of position'. I'm looking for a deeper physical reason - in the same sense that Energy conservation is not fundamental, it results from time translation invariance. I realise two boundary conditions are required to solve for the dynamics of a given system, but I see that more as a result of the equations being second order than the cause of them being second order. Is there a more fundamental organising principle that I am not aware of?


MySQL innodb_log_file_size causing problems starting MySQL

I have just restored a backup taken from xtrabackup (only for testing, so not critical luckily), and I am getting the following error:  InnoDB: Error: log file ./ib_logfile0 is of different size 0 125304832 bytes than specified in the .cnf file 0 262144000 bytes!   So I updated my my.cnf file to match this value:  [mysqld] . . .  innodb_log_file_size = 125304832   But I am stil getting an error:  log file ./ib_logfile0 is of different size 0 125304832 bytes than specified in the .cnf file 0 124780544 bytes!   But my my.cnf file is now set to 125304832 bytes so why does MySQL still think it is only 124780544 bytes?


I'm new to Ubuntu and have no idea how the terminal works. My main issue is Steam not loading and it keeps telling me to upgrade my system from 32-bit to 64-bit, but how?


Index Maintenance on SQL Server 2008 R2 Web edition

I've inherited of a couple of databases which indexes have never been maintained (rebuilt, reorganized).  I'm using Ola Hallengren's , I've used the following script to record the difference between the pre-maintenance and post-maintenance values.  Script :  SELECT  OBJECT_NAME(IPS.object_id) AS [TableName] ,     SI.name AS [IndexName] ,     IPS.Index_type_desc ,     IPS.avg_fragmentation_in_percent ,     IPS.avg_fragment_size_in_pages ,     IPS.avg_page_space_used_in_percent ,     IPS.record_count ,     IPS.ghost_record_count ,     IPS.fragment_count     -- ,IPS.avg_fragment_size_in_pages FROM         sys.dm_db_index_physical_stats(DB_ID(N'test_db'), NULL, NULL, NULL, 'DETAILED') IPS JOIN      sys.tables ST WITH (NOLOCK) ON IPS.object_id = ST.object_id JOIN      sys.indexes SI WITH (NOLOCK) ON IPS.object_id = SI.object_id                                  AND IPS.index_id = SI.index_id WHERE        ST.is_ms_shipped = 0 ORDER BY      3 Desc, 4 Desc   However, I didn't notice any changes on the various indexes having an avg_fragmentation_in_percent above 30%.   Are index maintenance tasks supported on SQL Server 2008R2 Web Editions?


"ignorance" can also mean a "willful disregard of something"?

I try to use the 2nd or 3rd definition of words (to slow down speed readers). However, I am not sure if "ignorance" has a 2nd definition.  (common meaning)  is "a lack of knowledge". With this meaning, no syllable is stressed.   My ignorance of hardware means I cannot build my own pc.   (2nd meaning?) If pronounced differently, I think that "ignorance" can also mean "a willful and careless disregard of something". The "nor" syllable in "ig-NOR-ance" must be stressed.     The French were aware of the strategic weakness of the Maginot Line, and their ignorance of it enabled the German blitz through the Low Countries.   My ignorance of my girlfriend's hourly text messages quickly caused our break-up.   In a dictionary, "ignorance" is only defined as "lack of knowledge". But, I am not talking about that "ignorance". I am talking about the "ignorance" that is derived from "to ignore" and thus pronounced just like "to ignore", and thus has the meaning of "to ignore". There is precedence for this:  "to accept" --- derive ---> "acceptance" "to ignore" --- derive ---> "ignorance" ....  Anyone agree with me?


$\int_{0}^{2\pi}\dfrac{d\theta}{a+b\sin\theta}$ where $a,b>0$  Supposedly a very simple residue theorem problem but I'm stuck with the pole(s).  Let $z=e^{i\theta}$ and $d\theta=\frac{dz}{iz}$. Then, $$\begin{align*} \int_{\mathbb{D}}\frac{dz}{\left[a+b\left(\frac{z-z^{-1}}{2i}\right)\right]iz}&=\int_{\mathbb{D}}\frac{2idz}{(2ai+bz-bz^{-1})iz}\\ &=\int_{\mathbb{D}}\frac{2dz}{bz^2+2aiz-b} \end{align*}$$  By quadratic formula, we can deduce that we have pole at $$z=\frac{-ai\pm\sqrt{b^2-a^2}}{b}$$ But I'm having trouble figuring out which, of the two is in fact in the unit circle. All we have is $a>0$ and $b>0$ and I feel like it could go so many different ways depending on the actual values that they take. Can anyone help me to proceed?


I'm accustomed to saving frequently using Ctrl+S in Blender. Each time I do this, Blender pops up the "Save Over?" button, which I have to click (or press Enter).  This gets in the flow of things. Is there a reasonably simple method to disable this behavior and just Save Over without prompting. (Reasonably simple meaning without modifying Blender's source code.)


Prove that $f(x)=x^2 \sin\left ( \frac{1}{x} \right )$ for $x \neq 0$, $f(0)=0$ is differentiable on $\mathbb{R}$.

How to I prove this?? The questions asks "Observe this function is differentiable on $\mathbb{R}$."


Should I tag the question with a similar tag?

For example, I have a question about C++11.  Then, should I also tag the question with a c++ tag? Are there any guidelines on this kind of situations?  Also, if I don't mention the c++ tag, will my question's title be prefixed with c++11 - etc.?


Is it possible to connect an embedded device to the internet through a USB internet Dongle?

In my country (Nigeria) we have very few wireless hotspots, most people connect to the internet via private USB dongles.  I was wondering if it is possible to use these dongles to allow an embedded system connect to the internet.  I know that involves knowing some form of USB protocol with which these devices communicate with a system, but I don't know if there is some standard for that or something to make it generic.


How can I find the current OS in Python?

Possible Duplicate:          As the title says, how can I find the current operating system in python?


R linear regression categorical variable "hidden" value

This is just an example that I have come across several times, so I don't have any sample data. Running a linear regression model in R:  a.lm = lm(Y ~ x1 + x2)   x1 is a continuous variable. x2 is categorical and has three values e.g. "Low", "Medium" and "High". However the output given by R would be something like:  summary(a.lm)               Estimate Std. Error t value Pr(>|t|)     (Intercept)   0.521     0.20       1.446   0.19         x1            -0.61     0.11       1.451   0.17 x2Low         -0.78     0.22       -2.34   0.005 x2Medium      -0.56     0.45       -2.34   0.005   I understand that R introduces some sort of dummy coding on such factors (x2 being a factor). I'm just wondering, how do I interpret the x2 value "High"? For example, what effect does "High" x2s have on the response variable in the example given here?  I've seen examples of this elsewhere (e.g. ) but haven't found an explanation I could understand.


Changing the resistor to be in front or behind an LED doesn't affect brightness?

Note: I am very new to the more advanced side of electricity. I do not have a firm grasp on the exact mechanics.  Lets say I have an example circuit:  5V Power Supply -> LED -> Resistor -> Ground  Now the LED is receiving 20ma and 5V. If I were to switch the LED and the resistor however, the LED should receive less voltage but the same current, so wouldn't it be dimmer? Or would it receive the same voltage?  I've looked at these two threads and their answer doesn't help.


Demonstration: If all vectors of $V$ are eigenvectors of $T$, then there is one $\lambda$ such that $T(v) = \lambda v$ for all $v \in V$.

Let $T: V \rightarrow V$ be a linear operator.  I need to demonstrate that if all nonzero vectors of $V$ are eigenvectors of $T$, then there is one specific $\lambda \in K$ such that $T(v) = \lambda v$, for all $v \in V$.  I understand that, if all nonzero vectors of $V$ are eigenvectors of $T$, then $T$ must be a scaling transformation. It just stretch or shrinks vectors, but doesn't change their  directions.  So, the statement says that if it happens, then, there is a single $\lambda$ such that $T(v) = \lambda v$. In other words, if there is such transformation, then it scales all vectors by the same scalar $\lambda$.  Applying the transformation to our standard basis vectors, we have: $$ T(e_1) = \lambda_1 e_1 \\ T(e_2) = \lambda_2 e_2 \\ \vdots \\ T(e_n) = \lambda_n e_n $$  I understand I need to prove that $\lambda_1 = \lambda_2 = \dots = \lambda_n$, but I can't see how!  EDIT  $$ v = c_1e_1 + c_2e_2 + \dots + c_ne_n \\ T(v) = \mu v = \lambda_1c_1e_1 + \lambda_2c_2e_2 + \dots + \lambda_nc_ne_n \\ $$  Since what's multiplying $v$ coordinates is $\lambda_i$, then all of them must be $\mu$. I'm not sure how to 'mathematize' this. Is this idea correct?  EDIT 2 Extending the left hand side of EDIT 1, we have: $$ \mu v = \lambda_1c_1e_1 + \dots + \lambda_nc_ne_n \\ \mu(c_1e_1 + \dots + c_ne_n) = \lambda_1c_1e_1 + \dots + \lambda_nc_ne_n \\ \mu c_1e_1 + \dots + \mu c_ne_n = \lambda_1c_1e_1 + \dots + \lambda_nc_ne_n \\ $$  And since $e_i$ are linearly independent, $\mu = \lambda_1 = \lambda_2 = \dots = \lambda_n$. Is this proof correct?


Not able to install *.run file in Ubuntu?

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI.  I have to install few softwares in Ubuntu which are as follow:   MPLAB X IDE version 1.90 XC8 Compiler and X32 Compiler Cadsoft from Eagle   I download there setup files, which are having extension *.run extension.  I searched on Internet and found that these files don't have executable permission, either one have to do it graphically by right clicking on the file and then under permissions tab check the Allow executing as program check box, or use chmod command to do so. I had tried everything but nothing works for me.  I used graphical method to change this, but as soon as I click on the check box, the check mark disappears. I tried command line methods too but nothing works for me:  sudo chmod u+x MPLABX-v1.90-linux-installer.run sudo chmod +x MPLABX-v1.90-linux-installer.run chmod +x MPLABX-v1.90-linux-installer.run sudo chmod 777 MPLABX-v1.90-linux-installer.run   When run:  sudo ./MPLABX-v1.90-linux-installer.run   the result is command not found.  sudo "./MPLABX-v1.90-linux-installer.run"   results in command not found.  I tried all these commands but nothing changes the permission to executable. Please help me as soon as possible.


Prove that there does not exist a group $G$ with a group of automorphisms isomorphic to $\Bbb{Z}$ or $\Bbb{Z}/n\Bbb{Z}$ with odd $n \gt 2$.

Prove that there does not exist a group $G$ with a group of automorphisms isomorphic to $\mathbb{Z}$ or $\mathbb{Z}/n\mathbb{Z}$ with odd $n \gt 2$.  I assumed the opposite, let there exist a group $G$ such that $\mathrm{Aut} (G) \cong \mathbb{Z}$ or $\mathrm{Aut} (G)  \cong  \mathbb{Z} / n \mathbb {Z}$. Since the subgroup of the cyclic group is also cyclic, $\mathrm{Inn}(G)$ is cyclic. $\operatorname{Inn} (G) \cong G / Z (G) $.  So $G$ is Abelian.  If $\mathrm{Aut}(G)$ has an element whose order is not equal to $2$, then we take the automorphism $p (x) = x^{-1}$. This is an automorphism of order $2$. There remains a case where the order of each automorphism is $2$. Help with this case.


I'd like to add a "normal" space, where the length of the space is the same as the length of the space between the words you are reading right now.   How can I accomplish this?


why doesn't the $(this).attr's work? They bring back 'undefined'

so I have a few buttons and because I don't want to code the same thing for each button I was trying to make a dynamic event handler that could manage all the buttons based on the .selected-pack class but all the $(this) attributes are coming back undefined although there is a value.  This is the js:  //Function In Test!  $('.selected-pack').click(function(event) {      if($("#mainconsole").val() == "") {         alert("Select Your Console!")         return;     }       if($("#paymentmethod").val() == "") {         alert("Select Your Preferred Payment Method!")         return;     }       $("#selectConsolediv").fadeOut("medium", function() {                     $("#choosePlatformLI").removeClass("active");            var packipn = $(this).attr('data-ipn');         var packipnpp = $(this).attr('data-ipnpp');         var packname = $(this).attr('data-name');         var packprice = "";                      console.log(packname);         if ($("#mainconsole").val() == "PS"){            packprice = $(this).attr('data-psprice');         }          if ($("#mainconsole").val() == "XBOX") {            packprice = $(this).attr('data-xbprice');         }           // Skrill         $("#mainamount").val(packprice);         $("#mainipn").val(packipn);         $("#maindesc").val(packname);         $("#maindiscount").val($("#discount1").val());           // PayPal         $("#mainamountpp").val(packprice);         $("#mainipnpp").val(packipnpp);         $("#ppitemname").val(packname);         $("#maindiscountpp").val($("#discount1").val());           $("#checkoutPackName").text(packname);         $("#checkoutCode").text($("#discount1").val());         $("#checkoutPrice").text("£" + packprice);                      $("#checkoutdiv").fadeIn("medium", function() {                         $("#checkoutLI").addClass("active");                     });      });  });   Do any of you spot an error? Please give me a comment as soon as possible, thanks in advance :)


When attempting to open an application over X11 forwarding over SSH, why is a local instance of the application opening?

I'm using SSH to access a jump-box, essentially.   I have two machines. The "local" machine, the one I'm physically seated in front of, is running Fedora 25. The "server" is running Cent OS 7. It sits behind a router, and I use it to hop into the network behind that router. Both machines have an identical user account, "user1."  I connect to the server by opening my favorite terminal emulator on the local machine and entering "ssh -X -p 2201 server-dns.net" where server-dns.net is the correct domain name of the server. I enter my password, and I reach a prompt. When I look at the prompt, I see that my username hasn't changed, but my hostname has.  This is where the confusion begins. Both machines have a copy of Firefox installed, but only the server has a copy of Chromium installed. When I launch Chromium once connected, the remote instance of Chromium appears, and I can browse the remote network. But when I launch Firefox, my local install of Firefox opens. Why? When I ssh in as a different user, and launch Firefox, the remote install of Firefox opens. I know this issue is related to the usernames being identical, but how?


Stone-Čech compactification. A completely regular topological space is locally compact iff it is open in its Stone-Čech compactification.

I would like to show that a completely regular topological space is locally compact iff it is (weak-star) open in its Stone-Čech compactification.  Does this hold in general?  I.e given a compact subset $X$ of a normed space, then is it true that if $\overline{U}= X$ then, U is open iff U is locally compact?


Calculating the longest distance within polygon in QGIS

I want to calculate the "diameter" of polygons in QGIS.  The "diameter" defined as the distance between the two most distant points of the polygon.  I couldn't find a fitting solution in the field calculator. Maybe you have some ideas?


Mark or don't mark required fields if all are required?

If all fields in a form are required should they be marked somehow (eg. with an asterisk)?  I see this done a lot and find it redundant?  There could be a difference in big forms and small forms, but in big ones I would add a note at the top that all fields are required, but I wouldn't necessarily do that on small ones.  What do you think is the right approach?


15.04 - Unity -   This morning, all my icons, as well as the top bar, went missing.   I've tried everything I've found here (commands for re-installing unity, etc) but nothing has helped.  I HAVE noticed that the GUEST profile works just fine. Everything displays great. So this would SEEM to indicate a problem with the configuration of my primary account, right?  Is there a way to locate and reset my main accounts Unity configuration using the Guest account? If not, I CAN log into my main account, and use CTRL-ALT-F1 to get to a login screen, where I can log in as my main account.  To be clear, the only thing that appears when I log in as my main user is the desktop background, and the mouse cursor. Nothing else.   This seems to be a common problem, but none of the fixes out there are working so far.  The system is an old HP Mini netbook. No fancy GPUs.  Help!


Separated references sections for appendix

The references in my document have the following requirements:   My references need to appear before my appendices.  My appendices contain new references. These references should not appear in the main references list (before the appedices). Instead, they have to appear after each appendix (for example, when appendix A is ended, the references related to this appendix must be shown, then appendix B should be started).    I have only one big bib file for both main refrences and appendices' references (separating them is almost impossible !!)  I've looked for it several days to find a solution but I was unsuccessful. I tried multibib package but it doesnt show anything.  Would someone help me please to fix this issue.


Why use "an" before a word that starts with a "L"

In this , it says:  An LTI (Linear, Time-Invariant) system, in a simplified sense, will exhibit two behaviors  Can someone explain why the use of "An" instead "a" is correct here?


How do I stop \write and \message from inserting a newline at 80 characters?

I have the following file:  \immediate\write16{abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKL 80 char split is right here -><- this is on the next line} \message{abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKL 80 char split is right here -><- this is on the next line} \end   ```  Both \write and \message split the line at the indicated point (80 characters). Is there any way to disable that behavior or set the line break point to something really high?  Same behavior happens with tex, etex, pdftex, pdflatex.


I have included libraries amsthm, amsmath, amssymb, mathtools and hyperref and I get an error when I use \left( or \right).  However, it doesn't happen in overleaf, which also includes graphicx, multicol and array.  So, my question is which library contains the \left( command ?


Omissions of "that" in a relative clause

I am not clear on when the word "that" can be omitted in a relative clause. I only know that when the modified noun is the object in the clause, the antecedent "that" can be omitted. Are there any other such situations? How about the following sentence:     Students should be skeptical about everything they are told.   I am not sure whether everything is the object, and if not, whether this sentence is correct.


How can I access cloth properties via python?

I want to manipulate options like Disk Cache with python:    Any Ideas?


How to permanently disable hibernation on Windows 10?

I want to use Wake-On-Lan for my working machine (it is a desktop machine). But it only works when the machine is in S3 (Stand By) state. It won't work in Hibernation or Hybrid Sleep state. So I have to disable hibernation.  First, I use powercfg /a to check all the possible sleep states:  The following sleep states are available on this system:     Standby (S3)     Hibernate     Hybrid Sleep     Fast Startup   I searched a lot and most methods use below command.  powercfg /hibernate off   With this command, the hibernation file hiberfil.sys is deleted from the C:\.  Then I use powercfg /a to check all the possible sleep states again:  The following sleep states are available on this system:     Standby (S3)   So we can see only Standby remains. This is what I want.  And then I also followed this  to enable below group policy:     Computer Configuration > Policies > Administrative templates > System > Power Management > Sleep Settings > Turn Off hybrid sleep (plugged in)   But unfortunately, with all these efforts, after I reboot my machine, the hibernation file always shows up again.  So how can I permanently disable hibernation?  I am using DELL Vostro 3670. Do I need to modify BIOS?  ADD 1 - 12:43 PM 2/13/2019  This is how I fix my Wake-On-LAN issue.  After I follow the above link to solve the hibernation file recreation issue, my wake-on-lan still doesn't fully work.  I can wake my computer with a magic packet sending tool only shortly after my computer go to sleep. If the computer sleeps for long, it cannot be waken.  I then downloaded the . And follow  to set it up. It suddenly works. It can even work without a magic packet sending tool. I just connect my computer with the remote desktop (mstsc). And then the computer wakes up.  ADD 2 - 12:49 PM 2/13/2019  It turns out enabling hibernation doesn't block the Wake-On-LAN. I re-enabled the hibernation with powercfg /h on. And then explicitly let the machine hibernate. And still, the remote desktop can wake it up.


How do I mount, edit and repack an .img file?

I have downloaded a .img file to use on my Android device.  I have to edit a file in the image in order to use it.  How can I mount the file so I can edit the text file and then re-pack the .img?


I'm trying to update the commands on a map to 1.13, every time I try to add a team with /team add Green Creeper Corp it wont accept the display name. I can use /team add Green, but I would like the name of Creeper Corp. I keep getting this error:     Invalid chat component: Use JSONReader.setLenient(true) to accept malformed JSON at line 1 column 2 path $[0] ...add Green [Creeper Corp]<--[HERE]   Is there a way to get it to accept the display name? and if so how?


Why does the Stern–Gerlach quantum spin experiment conflict with classical mechanics?

My understanding of the Stern–Gerlach experiment is that neutral (0 total charge) particles are sent through a non-homogeneous magnetic field, with the expectation that the field will push that particle's path higher or lower on a detector because of the collective spin of that particle. While the detector can detect particles in a two-dimensional surface, the results of the experiment are that particles appear in only two localized areas directly above the path of the particle stream, or directly below the path of the particle stream - spin up or spin down. The conclusions from these measurements are that the particle, when measured, will always have about the same magnitude.  Why does this not follow from classical mechanical theory related to magnetism? If you shot a magnet through a similar apparatus, I would expect the magnet to be rotated to align with the magnetic field in some way which, at high enough field strengths relative to the mass of the magnet, would cause us to measure basically the same magnitude as if the magnet entered the apparatus pre-aligned with the field.  How is my explanation incorrect?


Does the free will interpretation of evil contradict God's omnipotence?

Evil is often explained as a result (a byproduct, in a sense) of the free will God has given to us. Doesn't this notion contradict the idea of the omnipotent God (especially the God above laws of nature and logic many Christians advocate)?  By the free will interpretation of evil I mean the theory which says that the evil there is on the world is a necessary result of us having free will to decide to serve God or to turn against him. The problem I see here is that if God's truly omnipotent (in the sense he can do even things we cannot imagine - the God above logic), there wouldn't be anything necessary since God could create us both perfectly free and good.


How can I play as The Impostor more effectively in Among Us?

I love playing as The Impostor, however I am not good at it. Most of the time one of the following happens:  I self-report a body and lose because it's obvious who was with the body I run away from the body and someone reports it and lose because I'm running away from it I am caught venting and voted out  Sometimes, I am lucky and get away with it, but it's pretty unique that it will happen. Is it me, or are these strategies bad? If they are bad, what's a good straightforward useful strategy?


Array of Custom Class showing NullPointerException

I'm getting a NullPointerException by running the following code:  Main:  public class NeuralXOR {  public static void main(String[] args) {     double[] inputs = {1.0, 0.0};     NeuralNetwork network = new NeuralNetwork(2, 1, 3, 0.7, 0.9); }   }  Neural Network Classes: public class NeuralNetwork {  Node[] inputNodes; Node[] hiddenNodes; Node[] outputNodes;  Layer[] layers;  int noOfInputNodes; int noOfOutputNodes; int noOfLayers = 3;  public NeuralNetwork(int noOfInputNodes, int noOfOutputNodes, int noOfHiddenNodes, double learningRate, double momentum) {      this.outputNodes = new Node[noOfOutputNodes];     for (int i = 0; i < outputNodes.length; i++) {         outputNodes[i] = new Node(i);     }      this.hiddenNodes = new Node[noOfHiddenNodes];     for (int i = 0; i < hiddenNodes.length; i++) {         hiddenNodes[i] = new Node(i);     }      this.inputNodes = new Node[noOfInputNodes];     for (int i = 0; i < hiddenNodes.length; i++) {         hiddenNodes[i] = new Node(i);     }      layers[0] = new Layer(inputNodes);     layers[1] = new Layer(hiddenNodes);     layers[2] = new Layer(outputNodes);  }  public void setInputs(double[] inputs) {     if (inputs.length == this.inputNodes.length) {         System.out.println(inputs.length);         for (int i = 0; i < inputs.length; i++) {             this.inputNodes[i].activation = inputs[i];         }     } }  public double[] getOutputs() {     double[] outputs = new double[this.outputNodes.length];     for (Node outNode : this.outputNodes) {         outputs[outNode.nodeNumber] = outNode.activation;     }     return outputs; }   }  class Node {  int nodeNumber; double sum; // z double activation; //Output double deltaNode; double gradient;   double[] outWeights;  public Node (int nodeNumber) {     this.nodeNumber = nodeNumber; }  public void setOutWeights(int noOfOutNodes) {     this.outWeights = new double[noOfOutNodes];     for (int i = 0; i < outWeights.length; i++) {         this.outWeights[i] = Math.random();     } }  public double sigmoid(double x) {     return 1 / (1 + Math.pow(Math.E, -x)); }   }  class Layer {  double layerBias; Node[] nodes;  public Layer (Node[] nodes) {     this.nodes = nodes; }   }  The error points at the line "layers[0] = new Layer(inputNodes);" in the NeuralNetwork class. No red is showing nor any warnings...  I assume it's an error from lack of knowledge on how the JVM works. Until now I've tried separating the classes into public classes in their separate files, which didn't help (wasn't expecting it to). I haven't tried anything else. Any thoughts? Thanks in advance!


select query on Temp table is not returning data in correct order even after specifying index hint

In my code, I am creating a temp table using select * into #tempTable.  Temp table contains the huge number of records and I need to retrieve data from it many times in my code so I created a clustered index on it. But somehow I am not getting data in correct order as per created index.  I know I can do it simply by putting the order by clause, but my question is why I am not getting data in the correct order even if I am forcing the optimizer to use the particular index?  Below is my sample code:  ----------- Sample code ----------------------------  ;with CTE1 as (     select col1         ,col2         ,-- - -- - - from table1      union      select col1         ,col2         ,-- - -- - - from table2         -- few more tables in union --     )     , CTE2 as (     select *         ,RowNumber = RowNumber()              over (order by case                      when @sortOrder = 0                     then case                              when @sortColumn = 'Date'                             then [tdate]......some more dynamic order by conditions..........                          end                     end asc             )     from CTE1     inner join     from TABLE3 on -- some conditions     ) select * from CTE2 into #TempTable;   Then add the clustered index:  create clustered index IX_TempTable_RowNumber on #TempTable (RowNumber asc);  select * from #TempTable with (index (IX_TempTable_RowNumber));  ----------------- End of sample code ---------------------   Even I checked the table scheme and index details using  exec tempdb.dbo.sp_help N'#TempTable';  select * from tempdb.sys.indexes where name = N'IX_TempTable_RowNumber'   And it seems correct to me. What am I missing here?


From what I understand, the stock price is based on supply and demand. For example, if a stock that was priced at $0.01 was bought buy an investor who spent $5.00 (leaving him with 100 shares), it would drive the price of the stock up.  But I am wondering, who (or what) determines how much the price of the stock will go up, or down?  How do prices change? Is it a program that updates the price of every stock, every second, based on some formula? Or is it some speculating "geek" that hides in some wall street office, updating the prices on every stock he sees based on the market volume?  Thank you for any help. All help is greatly appreciated.


I would like to display two seperate equations with the same generated number and then the letter 'a' added to the first and the letter 'b' to the second.  Some text.     x=y                       (2a)   Some text.     y=z                       (2b)   Some text.   Then, later on, I will have to reference (2a) and (2b).