After running our normal automated tests against a test area, we releasing the change to production then run some additional tests against production to verify the roll-out ran correctly and to test some conditions that we can reasonably duplicate in testing. This testing is intended to catch errors after they are released, but before too many users see them.  Is there a standard term for this testing? I'm tempted to call it a smoke test, but that term is already used for testing packages.  Looks like this a duplicate of:

I'm thinking of live production sites here, where there is a continuous community or much content being updated, sort of like a newspaper site or community site (the one I work at is a healthcare improvement company) and we have news articles, programs and so on.  While the underlying code is tested and released there are often production issues that come up, maybe certain pages stop working, style sheets suddenly don't appear like they did due to a service patch or some tweak done to improve production security or performance.  There is Acceptance Testing for when a deployment goes out to make sure things work right, Regression Testing to make sure nothing has been broken since previous releases.  Considering we've done these types of tests and things are working fine what would you call testing, or checking, the site to make sure things still work fine?  To be sure new pages are being crawled for search indexing?  To check that newly added pages are using plug-ins correctly?  Or so on.  My manager and I were discussing some issues that have cropped up and decided we needed to do something like this, but then to sort of note it in our status reports we didn't really have a name for it.  Anyone done this and have a term that might be good?  Or would you consider it covered by something like Continuous Acceptance Testing or some such term?


The train is running at a speed of 65 kms per hour. The train is running at a speed of 65 kms an hour. Which one is grammatically correct?

1.The train runs 60 miles an hour. 2.The train runs 60 miles per hour. What is the differen between the two sentences.


I would like to apply for Ph.D. programs in history, but I am a graduate of a science program. Do I need another degree in order to apply to history Ph.D. programs?

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


Redirecting stderr to file and duplicating stdout to both file and terminal is easy:    $ prog 2>error.log | tee output.log   tee will duplicate stdout, printing it to both terminal and output.log.  But what about redirecting stdout to file, and duplicating stderr to both terminal and file? How can that be accomplished? is there a tee equivalent that will duplicate stderr instead of stdout?

I don't quite understand how the computer reads this command.  cat file1 file2 1> file.txt 2>&1  If I understand, 2>&1 simply redirect Standard Error to Standard Output.  By that logic, the command reads to me as follows:    concatenate files file1 and file2.  send stdout from this operation to file.txt. send stderr to stdout. end?   I'm not sure what the computer's doing. By my logic, the command should be   cat file1 file2 2>&1 > file.txt   but this is not correct.


I need to create a producer and consumer of IBM MQ using the binding file. The producer is working fine, but I am facing issues with the consumer. I am getting NullPointerException while consuming data from IBM MQ using binding file in java. Below is my code:     try {               String MYCF_LOOKUP_NAME = "file:C:/IBM MQ/JDA-client-jars/JDA-client-jars/JDA_TEST";              Hashtable hashtableEnvironment = new Hashtable();              hashtableEnvironment.put(Context.INITIAL_CONTEXT_FACTORY,                     "com.sun.jndi.fscontext.RefFSContextFactory");              hashtableEnvironment                     .put(                             Context.PROVIDER_URL,                             "file:C:/IBM MQ/JDA-client-jars/JDA-client-jars");              InitialContext initialContext = new InitialContext(hashtableEnvironment);              MQQueueConnectionFactory cf = (MQQueueConnectionFactory) initialContext                     .lookup(MYCF_LOOKUP_NAME);                    MQConnection connection = (MQConnection) cf.createConnection("SVCtestmq2","***********");              Session session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE);              MQQueue queue = (MQQueue) initialContext.lookup("TESTQ.FOR.JDA");                    MQMessageConsumer consumer = (MQMessageConsumer) session.createConsumer(queue);             Message str = consumer.receive(10000);                      connection.close();             initialContext.close();          } catch (NamingException namingexception) {             namingexception.printStackTrace();         }   Below is the exception I am getting:  java.lang.NullPointerException     at com.sams.logistics.jndi.jndiContext.HelloWorldMessageJNDI(jndiContext.java:79)     at com.sams.logistics.jndi.jndiContext.main(jndiContext.java:25)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


How do I increase the loop cut amount on macOS? I have no where in the UI where I can change it.  Mouse wheel doesn't work, page up/down doesn't work, and numbers don't work.

The tutorial I read is based on 2.79. So I'm not sure if it's still the same name in 2.8. But I can't find anything providing similar functionalities.


I have the following code, which i need to perform the javascript test() operation based on the var "p" value. The following sample doesn't resolve correctly. I know if i replace "p" with "hello", it will work, but i want it to resolve based on a particular value given in variable "p". How do i use variables along with the test() function? Please help.   var arr = new Array(); arr=[1,2,3,4,"hello"]; var p="hello";  if(/p/g.test(arr)) { arr=arr.join('\n'); alert(arr);  }

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


In my paper I have a number of t-tests. I am thinking of representing some graphically. What is the best way of doing that in R?

What are the most accepted ways to visualize the results of an independent two sample t-test? Is a numeric table more often used or some sort of plot? The goal is for a casual observer to look at the figure and immediately see that they are probably from two different populations.


Recently I've witnessed some very trigger-happy down-voting on answers that had only just been posted and were still in the process of being edited. In one case I had just posted an answer with a couple of minor mistakes and within the 30 seconds it took me to edit the answer into shape I'd received two down-votes (with no explanatory comments of course). I've seen this happen to other people today too, so I don't think it's just me feeling victimized. The result of this knee-jerk down-voting is an otherwise useful answer which might as well be deleted, since no one is going to take much notice of an answer that already has a -2 rep.  So, a possible feature-request: disallow down-voting (or perhaps any voting?) until, say, 30 seconds after an answer has been posted or last edited ?

There needs to be a timer or something on upvoting/downvoting.  I posted an answer to a question and as soon as the page loaded, my answer was already down voted. There is no way someone had the time to read the answer < 10 seconds after it was posted.


I have this problem  $:~/media_build$ ./build Checking if the needed tools for Ubuntu 18.04.1 LTS are available ERROR: please install "Proc::ProcessTable", otherwise, build won't work. You should run:         sudo apt-get install  libproc-processtable-perl Build can't procceed as 1 dependency is missing at ./build line 274.   But when I run it I get error  E: Unable to locate package libproc-processtable-perl   I also try   sudo apt-get update   But without success

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?


I  here on MSO today, but it was found to have been asked .  I'm not concerned by this (better to be found by more than one user) but, I noticed that the wording in the closure statement is factually incorrect:    No it doesn't have an answer - Not even a sniff of one!  This statement, logically, should be factually accurate and reflect the existence of answers and include singular/plural references to them - or at a minimum use language that covers both scenarios.  Edit: As a result of my question,  and the bug in question has been remedied, but this question still remains valid.

This request was sparked . The vote to close as a duplicate on meta, in contrast to the main site, does not require for the duplicate to have an answer. Yet, the closure message still says:     This question has been asked before and already has an answer.    ...even when this is not the case. Perhaps we should either only show this particular sentence if there is indeed an answer, or remove this altogether for meta.   Note: I fear this might be a duplicate request, but I was unable to find one. (Not even one without an answer :) )


How to change the label to make Windows 7 to be a default on this screen?

How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as standard instead of Ubuntu?


Can someone help me make the following batch file only process files that are older than 365 days?  @echo off SetLocal EnableDelayedexpansion  set "Folder=C:\Test Folder" set "exclude=.dll.exe.bat.zip.jpg.bmp.pdf.mp4.vbs"  FOR /f "delims=" %%x IN ('dir /b /s "%Folder%" ') do if "!exclude:%%~Xx.=!"  equ "%exclude%" ( "7za.exe" a -sdel -stl "%%~dx%%~px%%~nx.zip" "%%x" )

I am looking for a way to delete all files older than 7 days in a batch file.  I've searched around the web, and found some examples with hundreds of lines of code, and others that required installing extra command line utilities to accomplish the task.  Similar things can be  in just a couple lines of code. It seems that something at least remotely easy could be done for batch files in Windows. I'm looking for a solution that works in a standard Windows command prompt, without any extra utilities. Please no PowerShell or Cygwin either.


From activity_settings.xml  <EditText android:id="@+id/editText" android:text="text" /> <Button android:id="@+id/button" android:text="button"/>   From MyActivity.java  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_settings);     this.findViewById(R.id.button).setOnClickListener(         new View.OnClickListener() {             @Override             public void onClick(View view) {                 EditText txt = (EditText) view.findViewById(R.id.editText);                 Toast.makeText(view.getContext(),txt.getText(), Toast.LENGTH_SHORT).show();            }         }); ...   If I click the button I get   java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference   Just for test I tried and succeeded  @Override public void onClick(View view) {     EditText txt = (EditText) view.findViewById(R.id.editText);     Toast.makeText(view.getContext(),txt.getText(),Toast.LENGTH_SHORT).show();     } }   I don't get why button is ok but editText is null.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm trying to solve the following exercise from an introductory statistics textbook:  Let $X_1, \dots , X_m$ denote a random sample from the exponential density with mean $\theta_1$ and let $Y_1 ,\dots , Y_n$ denote an independent random sample from an exponential density with mean $\theta_2$ .  (a) Find the likelihood ratio criterion for testing $H_0$ : $\theta_1=\theta_2$ versus $H_a$ : $θ_1\neq   θ_2$ .  (b) Show that the test in part (a) is equivalent to an exact F test.   I'm fine with part (a), I got simply a test of the form $\frac{X^mY^n}{(X+Y)^{m+n}}\leq k$, where $X=\sum X_i$ and $Y=\sum Y_i$. However, I have no idea how to transform this into an F-test.

I am trying to solve this complicated Generalised Likelihood Ratio Test problem for 2 samples as part of my independent study course. However, the book that I am using does not talk about 2 samples at all; all the examples provided are 1 sample questions.  The question:      Assume that $X_1, ...,X_m$ is a random sample from $\theta_1e^{-\theta_1x}I_{(0,\infty)}(x)$ and $Y_1, ...,Y_n$ is a random sample from $\theta_2e^{-\theta_2y}I_{(0,\infty)}(y)$. If we assume the samples are independent. What is the GLR for testing   $H_0:\theta_1=\theta_2$  vs. $H_0:\theta_1\ne\theta_2$?   So far I just got to $$\Lambda=\frac{L(\theta,\theta)}{L(\theta_1,\theta_2)}=\frac{\theta^{m+n}\exp[-\theta\sum x_i+\sum y_i]}{\theta_1^m\exp[-\theta_1\sum x_i]\theta_2^n \exp[-\theta_2\sum y_i]}$$  However, I don't know what I should do for the next step. They say it should be an F test but I just can't see it.   I appreciate your time and help!


As a precalculus student interested in teaching myself calculus, where should I start and how should I go about learning?  This question is different than past questions as I am not solely interested in finding a book.

Well I have not started calculus yet but I am really keen to. I would love if you suggest some books.  Points to be noted:   I really don't like the way textbooks are written so please no "textbooks"  I am COMPLETELY beginner in calculus. I know a little bit of trigonometry and what functions are but not really in depth.The book should start from the base, I mean really from the base. I may require a precalculus book too if the books don't cover that. I would really love if the book shows how calculus was developed, why it was developed and things like that.   Well,thanks in advance!


Which one is correct:     My manager told me that I was not doing great at work.   or      My manager told me that I am not doing great at work.

What's the difference between the following examples:   I noticed that the clock had stopped.  I noticed that the clock has stopped.    Some of them say that if the emphasis is laid on the subordinate clause then present perfect tense can be used, while some say if the emphasis is laid on 'noticing' then past perfect tense is to be used. How correct is this explanation?


I've been watching the Dragon Ball Super series from the release date and I keep hating it more and more. I don't know if you guys have noticed it but all battle animations are terrible.  Here's an example:    Is there a logical explanation why a 2015 anime is so poorly animated compared to DBZ?

A lot of shows nowadays are significantly censored or badly drawn for TV release. When the home media versions come out, they are uncensored and in some cases redrawn in certain areas.    Kagerou Project TV - BluRay Comparison  Part of this is of course the rush to release, but when the BluRays / DVDs come out, these are some of the main selling points of the shows in order to engage previous viewers.   Tokyo Ghoul TV - BluRay Comparison  Is this something unique to anime and its market? I haven't seen anything like it in Western media


How do I show that this inequality holds for all $x \in (0, 1)$ and $n \in \Bbb N$?     $$ (1-x)^n<\frac{1}{1+nx}.$$

Prove using induction that $\forall n\in\mathbb N, \forall x\in \mathbb R: 0<x<1: (1-x)^n<\frac 1 {1+nx}$   My attempt:   Base: for $n=1: 1-x<\frac 1 {1+x}\iff 1-x^2<1$, true since $0<x<1$.  Suppose the statement is true for $n$, prove for $n+1$:  $(1-x)^{n+1}=(1-x)(1-x)^{n}\overset{i.h}<\frac{(1-x)}{1+nx}$  Now I got stuck, maybe another induction to show that $1+nx+x<1+nx$? Is there another way?  Moreover, I was told it's wrong to begin with $(1-x)^{n+1}$ and reach to $\frac 1 {1+(n+1)x}$ but why? Is it assuming what I need to prove?


I have been using the [Value] * Count notation in Python for initializing a list. For eg., [False] * 3 results in creation of list [False, False False]. I tried using the same notation for initializing a list of lists.  >>>a = [[0] * 2] * 3 >>>print a [[0, 0], [0, 0], [0, 0]] >>>a[0][1] = 23 >>>print a [[0, 23], [0, 23], [0, 23]] >>>id(a[0]) 139978350226680 >>>id(a[1]) 139978350226680 >>>id(a[2]) 139978350226680   As we can see, the elements of a refer to a single list thrice instead of referring to three different lists.  1. Why does this happen? 2. What is the correct way to initialize a list of lists?  The same behavior has been pointed out in an answer previously:

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


For some reason the icon for visual studio code in spotlight doesn't work. And it's only for visual studio code. See attached picture.  Is there a way to fix this?

I have downloaded  on my new Mac mini, but the icon seems to be some random dots. My Mac mini has the M1 Chip. Here is a picture of the icon in Spotlight:  A few steps I have tried:  Restarting the Mac Reinstalling VS Code Trying with a different user Contacted Apple Support, response was, "it is not our product (vs code) so we can no fix it"  Is there anyway to fix this?


According to ubuntu-drivers devices I have this:  == /sys/devices/pci0000:00/0000:00:0c.0/0000:02:00.0 == modalias : pci:v000010DEd00000647sv0000106Bsd000000BCbc03sc00i00 vendor   : NVIDIA Corporation model    : G96M [GeForce 9600M GT] driver   : nvidia-340 - distro non-free recommended driver   : xserver-xorg-video-nouveau - distro free builtin   When trying to install it (sudo ubuntu-drivers autoinstall), though, I get this:  The following packages have unmet dependencies:  nvidia-340 : Depends: lib32gcc1 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I'm on Xubuntu 19.04, on an old MacBook Pro from 2009.  How to get around this problem? Can it be done? Thx for any hints.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


This question, and ones like it, seem to defy satisfactory explanation for non-physicists. PEP is referred to as Pauli "repulsion", or Pauli "pressure", while it is simultaneously denied to be a force, or result in a force. Comparisons are made to ideal gases. Apologies have been offered for technical jargon being mistaken for the lay person's notion of "force". Copious math Is done to describe acceptable and forbidden behavior of particles. Yet none of the four fundamental interactions, nor indeed a fifth force, is said to be responsible for keeping electron clouds from overlapping too much (solidity of matter questions), or neutrons from collapsing further in a neutron star.   Ideal gas behavior is straightforward and intuitive enough. It's easy to see that many small fast moving particles exert an average force on their container and vice versa. But at the particle level (can we assume hydrogen gas in a balloon?), the same question arises: what force, during the impulse time of an H atom collision with the container wall, changes the particle's momentum? Again, PEP would appear to be the cause, because this is really no different than the solid object question. But, PEP is not a force, so how does a particle undergo a change in momentum without a force?

It is commonly stated that there are four fundamental forces, or interactions, in nature. It is natural to consider which of those is responsible for the normal force we meet in elementary physics. What is the nature of the force exerted on a body by the floor on which it rests?  Of the four forces, the only one that seems relevant is the electromagnetic force, and I always assumed the repelling force in question is ultimately the EM one. The Wikipedia article on  seems to agree:     Molecular and quantum physics show that the electromagnetic force is the fundamental interaction responsible for contact forces.    An alternative explanation is that the force results from Pauli's Exclusion Principle; however, reasonable as it may seem, it doesn't seem to answer the question of what force is actually at play here. The exclusion principle isn't a force, or at least it's not normally described as such.  I've recently come across a rather forcefully presented argument that states that the normal force is a macroscopic force that is not directly reducible to the EM force, or to any of the other forces; rather, it does indeed result from Pauli's Exclusion Principle by way of interaction of electron wave functions. The argument further claims that attempts to correct the Wikipedia article have met with the usual "source needed" objections, and that this topic is either misunderstood by or poorly covered in the standard texts.  (The argument can be found ).   Which way is it?


I am facing a rather strange problem. Machine learning gives us a probability of a data point belonging to either class (classification) or the actual estimate of the dependent variable given independent variables (regression).   I am interested in building a model that has output such as $P(y \leq \hat{y} | x)$, that is, the 'probability of actual value to be less than or equal to predicted-value given x'.   I have gone through confidence intervals and predictions intervals for Logistic Regression. Are they best, I can do? Is there stream of research or machine learning, which I am missing.

I am interested in finding out how confident my model (say Logistic Regression) is in predicting the label of a new data point. For example, if it is not confident, I better abstain from making a prediction.   Logistic Regression outputs probabilities, which gives you a notion that there is confidence in prediction. But in fact, it is not. $P(y|x)$ being 0.3, doesn't tell me that the model is confident in its prediction or not. All, we can say is that it believes 100% that class A is 0.3 and other class is 0.7.  Can we use confidence intervals of LR as some sort of confidence in prediction? E.g., larger the difference between upper and lower bound for a particular data point, less confident it is, and vice-versa?  If not, how can we build confidence in our prediction? Can anybody guide me to some paper or field of study?


I am tring to use parseInt in a map, but some strange behavor happened, here is code:  ["1","2"].map(parseInt)   the result is:  [1, NaN]   but when I wrap the parseInt function:  ["1","2"].map(function(n){ return parseInt(n)})   it works fine, the result is:  [1, 2]   why?

From the :  [1,4,9].map(Math.sqrt)   will yield:  [1,2,3]   Why then does this:  ['1','2','3'].map(parseInt)   yield this:  [1, NaN, NaN]   I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE).  I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt.  ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3]


I run 14.04 and recently downloaded an iso file of 15.04 to install for a friend. Since then, update Manager tries to install updates for 15.04 and tells me to insert a CD. How can I correct this? Thanks

Possible Duplicate:          I had a little problem with the sources of my update, I'm running Ubuntu Natty Narwhal and I was tinkering with binaries for installing a Firefox add-on called fire sheep and I think that some how my update sources were altered and evertime I try to upate I get this error message  An unresolvable problem occurred while initializing the package information.  Please report this bug against the 'update-manager' package and include the following error message:  'E:Type 'See' is not known on line 2 in source list /etc/apt/sources.list'


I have simple select query:  Select * from ABC where title like N'%[text] xxxxx%'   => return nothing.  Select * from ABC where title like N'%xxxxx%'  => correct record   '[text] xxxx'   My table has some records with content contains [xxx] ..... and i have to compare them with other content from source outside the database, and the content from the source also may contains square bracket.  e.g: i could have thousands of titles from othersource to compare:   [text] content content       2 formats, just don't know how to compare with the title in Database because i dont know beforehand its structure.  How can I pass in a content that possible contains a square bracket and still get the correct result ?

I am trying to filter items with a stored procedure using like. The column is a varchar(15). The items I am trying to filter have square brackets in the name.  For example:  WC[R]S123456.  If I do a LIKE 'WC[R]S123456' it will not return anything.  I found some information on using the ESCAPE keyword with LIKE but I do not understand how to use it to treat the square brackets as a regular string.


Hi guys i have a NullPointerException when i run this code ,and its pointing on the model = (DefaultTableModel) DbUtils.resultSetToTableModel(rs) , and i have imported the net.proteanit.sql.DbUtils , any ideas ?  public void setTableValues(){          try {              cn.start();              String sql = "select id,first_name as Firstname,last_name as Lastname,email,phone,description as AllergyInfo from clients where isDeleted=0";              rs = cn.executeSelect(sql);              model = (DefaultTableModel) DbUtils.resultSetToTableModel(rs);              jTable1.setModel(model);              rowSorter = new TableRowSorter<>(jTable1.getModel());              jTable1.setRowSorter(rowSorter);              cn.stop();          } catch (SQLException ex) {              Logger.getLogger(Clients.class.getName()).log(Level.SEVERE, null, ex);          }     }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


In the emails I keep seeing someone responding with "I will do X and revert" asked them what do they mean by that, they said it means respond back. It doesn't seem right to me, I have been looking for usages of revert, all I see that makes sense is to return to previous state ( which doesn't mean anything to me ). Is it preferable to use "I will do X and respond (back)" to "I will do X and revert"?

I am a native speaker of American English, and I have only ever heard this usage of the word revert from one person.  This person is not a native English speaker (he is from India), so he may just be mistaken, but I'm curious if anyone else has seen/heard this usage.  He will write an email, bringing up a point for discussion.  He will explain the issue, and then end the paragraph with something like Please do analyze and revert on the status.   The best I can tell, he is asking for a response, and not asking for the something to be undone, or changed back to the way it was before (which is the meaning that I associate with the word revert).  Is revert used with different meanings outside the US?


Basically, when a dweller becomes pregnant, I can usually send them back to their work stations from the Residence room. For some reason, that doesn't apply to all of them, since sometimes they get stuck in said Residence room, i.e. I'm not able to select them and drag them to a different room as the green silhouette (that appears when you drag dwellers around) disappears as soon as I drag it (but is still there if I just hold my finger over said pregnant dweller). What gives?

I am playing Fallout Shelter, have 3 kids in my shelter, all going well, thought I would make one more kid with big strength numbers and decent agility/perception (kids take on SPECIAL stats from their parents). All the women who are pregnant work in my shelter, apart from this one. She can not me put to work, can not be moved from the living shelter, can not be moved to a job via the clipboard short cut.  TL;DR One of the NPC females who is pregnant can not be put to work, can not be moved from the living shelter room, she just walks about as if she is carrying a mammoth inside her. I have NOT moved the shelter, have not let the dad die, have not done anything at all.


I have the following sentence:     One of the most widely used theoretical frameworks for modelling food webs is/are the Lotka-Volterra equations.   Should it be is, referring to "the one most used framework" or are, referring to "the equations"?  I'm leaning towards is, but it sounds a bit weird with "equations" following it.  Thanks.

My fish's native habitat is rice fields. My fish's native habitat are rice fields.   Which one is correct? I'm pretty sure it's the first, since 'is' modifies 'habitat,' but it still sounds weird...


I am trying to pivot data. The column names have to be dynamic based on the row values for subject_id column.  Table  Sid  marks subject_id 101   20    3 101   25    2 101   60    1 104   22    3 104   54    2 104   45    1   I need the data in this format:  Sid   3   2   1  101  20  25  60  104  22  54  45


I installed a large update and haldway through it crashed. After leaving it for an hour I reset the machine and now it boots to a black screen stating the following:  Ubuntu 16.04.1 LTS Stephen-NM70-M tty2 Stephen-NM70-M login:  No idea how to recover from this. Please help.  Thanks,

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have been attempting to solve the above differential equation for some time now, and I remain stuck on one step. After substituting $u=x+y$, separating the variables, and integrating both sides, I am left with $$\frac{\sin(u)-1}{\cos(u)}=x+c$$ I have to solve for $y$, and thus, for $u$, but I cannot think of any identity which helps me here. Any help would be appreciated.  I followed the step in the solution, and set $$\frac{\tan(\frac{u}{2})-1}{\tan(\frac{u}{2})+1}=x+c$$ Then, I used the substitution $z=\frac{1}{1+\tan(\frac{u}{2})}$, which led to $1-2z=c+x$, which in turn, simplified to $z=\frac{1}{2}-\frac{c}{2}-\frac{x}{2}$. Then, substituting back: $$u=-2\arctan\left(1-\frac{1}{\frac{1}{2}-\frac{c}{2}-\frac{x}{2}} \right)$$ Thus, for all $n \in \mathbb Z$, the solution of the differential equation is $$y=-x-2\arctan\left(\frac{c+x+1}{c+x-1}\right)+2\pi n$$ Is my process correct, and do I require the $2\pi n$ generalization in my final expression?  Edit: The solution can also be expressed in indefinite form as $$\tan(x+y)-\sec(x+y)=x+c$$

One whose solution never makes me happy is the following: $$y'(t)=\sin(y+t)\text{.}$$ I would start by substituting $z(t)=y(t)+t$ to get an ODE in $z(t)$, but then I'm not sure about how to substitute back my solution to check if it's correct or not$\dots$


I got a question about the usage of generalization of collocations.  There is a word such as "bird of prey" to refer to birds eating animal flesh.  And one way to generalize reference of a noun is to put "the" in front of the word, especially for animals, plants, recent inventions; the lion is the king of the animal world of Africa / the smartphone is nowadays a required item.  Then my question is whether this kind of expression below is also okay to show generalization;  The bird of prey is a bird that eats animal flesh.  For other nouns, such as "man of steel," when someone says "the man of steel," a native English speaker would think some particular or specific man of steel since there are several possible possibilities; Stalin, or the Superman in the recent movie, etc.

Considering the sentence  Nearly anything can be a weapon in a martial artist’s hands., the indefinite article a indiciates that this can be any martial artist out of all in the world.  Next, consider The wise warrior stops a ranged attack before it nears him. Here, the definite article the is used, but still, I am quite certain that the sentence talks about any "wise warrior", or that one would even qualify as a "wise warrior" by performing the named action (among others, probably).  Is this a correct usage of the, indicating one out of a group of many? What is this usage called properly?  Finally, consider Through judicious placement of wounds, the marksman ensures that his enemy cannot escape him. I am wondering whether this could be the same kind of use for the definite article as in the second example, or whether to a native speaker this sentence indicates a specific individiual (that is a "marksman") that would be clear from context.


parcelCount = int(arcpy.GetCount_management("Parcels_lyr").getOutput(0)) print parcelCount while parcelCount < 200:     arcpy.SelectLayerByLocation_management("Parcels_lyr","WITHIN_A_DISTANCE",\                                            "Parcels_lyr","150","ADD_TO_SELECTION")     parcelCount = int(arcpy.GetCount_management("Parcels_lyr").getOutput(0))     print parcelCount   The above was part of code. I don't understand the use and the need of getOutput(0). A reference said "because parcelCount is a python object and not a simple variable, you must add .getOutput(0) at the end of the object to reference the value's index number." I am totally confused. I look up online, including python doc, but seems not so much helpful info available.  I also searched this site. There is 1 post mentioning it, but not much.  Can anybody explain it?

I am trying to get a number by counting how many points are in a shapefile. And this works, except I then am running into trouble using that number somewhere else. Eventually, I'll be using that count in some math (field calculator), but while debugging I'm running into an error that will end up causing me trouble later on.   This code:  TotalPoints = arcpy.GetCount_management(Path_Pts) arcpy.AddMessage(">>>> PROCESS: COUNT PATH POINTS {" + TotalPoints + "}")   gives this error:  TypeError: cannot concatenate 'str' and 'Result' objects   I tried casting it as a int, which it ALSO doesn't like:  TypeError: int() argument must be a string or a number, not 'Result'   So I've got a 'Result' object and need to turn it into a number.   How can I do that -- or is using the ArcPy function unnecessary or overly complicated here?


For example, such a test:  [Test] public void Test_With_Many_Random_Words() {   var randomWords = new string[100];   for (var i = 0; i < 100; ++i)     randomWords[i] = GenerateRandomWord();    var trie = new PrefixTrie();   for (var i = 0; i < 100; ++i)     trie.AddWord(randomWords[i]);    Assert.AreEqual(100, trie.CountOfWords);   foreach (var word in randomWords)     Assert.IsTrue(trie.ContainsWord(word)); }  private string GenerateRandomWord() {   var random = new Random();   var builder = new StringBuilder();    var length = 1 + (random.Next()%100);   for (var i = 0; i < length; ++i)   {     var charCode = random.Next()%26;     builder.Append((char) ('a' + charCode));   }   return builder.ToString(); }   Or it will be better to create tests with few known words like "testword1", "alsotestword2", "notword3" and check code for correctness with them?

I have a coworker who writes unit tests for objects which fill their fields with random data. His reason is that it gives a wider range of testing, since it will test a lot of different values, whereas a normal test only uses a single static value.  I've given him a number of different reasons against this, the main ones being:   random values means the test isn't truly repeatable (which also means that if the test can randomly fail, it can do so on the build server and break the build) if it's a random value and the test fails, we need to a) fix the object and b) force ourselves to test for that value every time, so we know it works, but since it's random we don't know what the value was   Another coworker added:   If I am testing an exception, random values will not ensure that the test ends up in the expected state random data is used for flushing out a system and load testing, not for unit tests   Can anyone else add additional reasons I can give him to get him to stop doing this?  (Or alternately, is this an acceptable method of writing unit tests, and I and my other coworker are wrong?)


We know the following:  Two masses are attracted to one another, as represented by Newtonian gravity $F = \frac{GMm}{R^{2}}$  Light is massless and bends in the curvature of space-time which can be created by a mass, where the deflection is calculated with Einstein's general relativity and is twice that calculated by Newtonian gravity, .  $E = mc^{2}$, where m is the relativistic mass.   Is there something special about mass energy that produces a curvature of spacetime? If that rest mass energy were converted to light energy (say, by annihilation of an equally large amount of matter and anti-matter, a planet sized "anti-matter bomb"), would the spacetime curvature resulting from the originating mass essentially instantaneously disappear? The inverse process, say through a "pair-production bomb," could instantaneously create space-time curvature. Of course, "instantaneous" here is nearly achieved anyway since the light source is traveling at the speed of light toward the about-to-be-born mass. Of course, this also answers the question of whether light attracts itself (through "gravity").

I have read this question:     where Safesphere says in a comment:     Actually, photons themselves don't bend spacetime. Intuitively, this is because photons can't emit gravitons, because, as any massless particles not experiencing time, photons can't decay by emitting anything. The latest theoretical results show that the gravitational field of a photon is not static, but a gravitational wave emanating from the events of the emission and absorption of the photon. Thus the spacetime is bent by the charged particles emitting or absorbing photons, but not by the photons themselves.        where John Rennie says:     as far as I know there has been no experimental evidence that light curves spacetime. We know that if GR is correct it must do, and all the experiments we've done have (so far) confirmed the predictions made by GR, so it seems very likely that light does indeed curve spacetime.   Now this cannot be right. One of them says photons do bend spacetime, since they do have stress-energy, but it is hard to measure it since the energy they carry is little compared to astronomical body's stress-energy. So they do bend spacetime, it is just that it is hard to measure it with our currently available devices.  Now the other one says that photons do not bend spacetime at all. It is only the emitting charge (fermion) that bends spacetime.  Which one is right? Do photons bend spacetime themselves because they do have stress-energy or do they not?


I need to identify the type of polynomial that a polynomial is based on the power of the leading coefficient. (Example $x^2$ = quadratic, $x^3$ = cubic, $x^4$ quartic). In this case, it is $x^6$. What is the name of the type for $x^6$? Thanks in advance.

I would very much like to have a complete list of the types of polynomial functions. I know that theres:  Quadratic :                      (AX^2 + BX + C) Cubic     :               (AX^3 + BX^2 + CX + D) Quartic   :        (AX^4 + BX^3 + CX^2 + DX + E) Quintic   : (AX^5 + BX^4 + CX^3 + DX^2 + EX + F)   What are the names of polynomial functions to the further powers? Sexstic? Septic? Octic? I'm not sure, so if someone could enlighten me, then that would be great. Please provide a list that goes at least to the seventh power, but it would be nice if you could go further. Thanks.


I have the following script in my user's bin directory; let's pretend the filename is 'myScript':  #!/bin/bash  python3 /myPath/myProgram.py "$@"   From the commandline, if I type myScript, it launches my myProgram.py. If I type sudo myScript, however it gives me this error: sudo: myProgram: command not found.  Why doesn't this work? How can I make it work?  Thanks!

I've modified my .profile to include a folder if a flash drive is plugged in. When running the command as the user it works fine but tells me the scrip must be run by sudo (this is what i want). However, when i try to run it with sudo i get "command not found"  I have a symlink (flash) in my /var/www folder pointing to my /media/flash drive. (nevermind this setup since is just for dev)  this is my user's .profile :   # set PATH so it includes flash scripts if [ -d "/var/www/flash/scripts" ] ; then     PATH="/var/www/flash/scripts:$PATH" fi   when trying to run as sudo i get:  sudo: script: command not found       any ideas?


I recently installed Ubuntu 14.04 LTS it works fine but I want to remove the guest account login.

How do I disable the guest session in Ubuntu 11.10 or higher? I don't want people to be able to use my computer without using a password to log in!


The temperature of a body varies with the KE of its particles. The maximum KE can be obtained by making the atoms move about near the speed of light. Let us take the body as a gas so that the body can move about and not just vibrate to simplify the question.  Taking a maximum KE value, wouldn't there be a fixed temperature for each gas above which it cannot be heated ie, when the atoms reach the speed of light? If we cannot take atoms individually as they will break apart ( to plasma ) at high temperature then consider them just as particles.

In many presentations of statistical mechanics where we have a system of particles having mass, such as the molecules of an ideal gas, the temperature is often equated to the average relative velocity of the particles. However no such velocity can exceed that of light. Is there therefore an absolute upper bound to temperature as well as an absolute zero?


I have iPhone 6. Can I back it up without WiFi? Is there any other way? I do not have access to WiFi.

I'm new to iTunes and everything doesn't make sense for me. I need to do backup of contacts, photos and music on my iPhone.  I've tried to follow several manuals how to do backup on my Windows PC but can't pass few steps.   My iPhone is connected by USB cable and is detected by iTunes I can't select anything from iTunes -> File -> Devices as all functions are grayed out In many manuals peoples refer that I have to turn off iCloud. I dont't see iCloud anywhere on iTunes or iPhone


I have two layers that are related. My current manual process is as follow;  a.  Add the layer 1 to the table of contents  b.  Open the attribute table then Switch selection to select all layer 1 records  c.  Click relates and select layer 2 This will select all layer 2 records related to the layer 1  d.  Switch selection This will display all layer 2 records not related to the layer 1  e.  Export the table to excel  I want to automate this using ModelBuilder.  This is where I am using ModelBuilder;  Layer 1 > Select Layer By Attribute (Switch selection) > Calculate Field (I require a python script that is able select all related layer 2 records) > Select Layer By Attribute (Switch Selection) > Export to Excel

I'm not sure how to do this as I don't' think there are any ModelBuilder tools for this task.  I'm not real savvy with Python but basically I want to relate field1 in table A to field2 in table B with a one to many relationship.  So I want all records in table B that match Table A.


By default the file manager has several links in the left column:   Recent Home Desktop Documents Downloads Music Pictures Videos Trash   Can I make an option for 'Programming' in that list?  What steps would I need to do?    I specifically want to draw attention to the fact that I am using Ubuntu 16.10.  The link challenging this as a 'duplicate' question was for an older version of Ubuntu.  I am asking for instructions specific to Ubuntu 16.10

In Ubuntu 11 I just dragged the folder there.  This seems to be not possible on my new Samsung ultrabook with Ubuntu 12.04   I've tried Ctrl+D and using the top menu but nothing happens and no error messages, just nothing.  How can I add a bookmark?


I have noticed in cycles I render faster with .tga image textures than .png image textures. Is there a loss in render quality because of using targas instead of pngs? Which should I use?

When rendering [in 2.80], I have discovered that video streams save much faster than rendering to PNG files. This is frustrating to me because I have learned that the safety of image frame rendering then compiling them is well worth it. But the difference between maybe one hour and days in rendering time isn't worth it, even considering the problems that may be encountered.   Q: Is there a faster format to use than PNG?


I had my taxes prepared by H & R BLOCK. I have for three years. Their payment would always come from my refund.   This year I owe taxes, $1300, and there has to be some type of mistake.  I want to get my tax forms back from them --just my original forms, not any work or figures from them, so I can do it myself.  Am I obligated to pay for their service?

I have been doing my taxes for 25 years with TurboTax.  Like others, I was a bit upset at them for doubling the price of their software, so I decided I would make an appointment with H&R Block, thinking it would be a good idea to boycott TurboTax for one year, and perhaps it was time for a tax "professional" at Block to do my taxes this year since I've been doing them so long by myself.  So I went in with all my papers in order, and sat there as I basically told the person what numbers to put where.  At one point, I almost said "move aside" because I could have plugged in the numbers more quickly.  They wouldn't tell me the price of their fee until it was over, and to my surprise it was $220.  They provided me with absolutely no professional tax advice, and on top of that my refund was about $500 less than I normally get.  I told the person that she was not to file my taxes, I had to think about it.  So I came home, and redid my taxes in about 15 minutes on the online TurboTax website. While doing this I discovered that I had overlooked one piece of paperwork, which resulted in about $500 more of a refund.  I did not file yet.  Long story short, am I obligated to go back to H&R Block and have them add the new deduction that I discovered and pay them the $220 for something I could do myself online for $50?  Again, I wouldn't mind paying if they had 1) been up front about the fee and 2) provided me with even a tiny bit of professional advice, which they did not.


I am having a problem printing something using the awk command on Linux. I have a file and i use the following line: x="something";awk -v x="$x" '{print $0,x}' myfile.txt  I want to print the whole file ($0) and then at the end of every line the x variable. However this x variable for some reason goes at the beginning of the file and not at the end. This is a sample of my file and the output.  I don't know what is the problem but it is really getting on my nerves!! Thanks!!

If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once?


Have a look at . It's well structured, it's got 200+ votes and the accepted answer also has 200+ votes. Even so it's been protected by 'Community' for low-quality answers. I don't know about you, but that does not look like it has any low-quality answers. They may be short but they are concise and well-thought.      Obviously if you are being asked which you use in an interview, you say IList, smile, and both look pleased at yourselves for being so clever. Or for a public facing API, IList. Hopefully you get my point. - part of an answer by Arec Barrwin   That is funny, not low-quality. What is with the 'protection'? Is it autonomous and if so, shouldn't it be fixed? If not, why would these answers be classified as low-quality?

There are a few "automatically protect questions" requests out there, but I'd like to add another twist.  I'd like to request that questions that have three or more deleted answers by users with <50 rep be automatically protected.  The reasoning behind this is that we have lots and lots of "not an answer" flags in the mod queue.  But we cannot protect a question from the mod queue, so we have to open each answer, evaluate if the question needs protecting, then protect it.    This process takes a long time, and can definitely be automated, as the only thing you really need to check is how many new users are posting non-answers or are spamming their awful products.


As to improve user experience, what is the standard line height for a 12 px font size? And what is the standard space between paragraphs for 12 px (font size) body text?

When styling text on web pages, both font size and line height can be set. For example, the text of this post will be displayed using a font-size of 14px and a line-height of (about) 18px, set using the value 1.3em.  Looking at other websites, it seems that a ratio around 1.2 is a common practice.  What is the best practice regarding this? What are some good resources from which I can learn more on the subject?


I'm about to set-up a raspberrypi in a remote location (300+km to me). It will connect via GSM since there's no landline on 3G/4G. I need a way to "ssh" inside the pi to manage some stuff. Since GSM has no port forwarding my idea was to use  to tunnel the shell connection.   The only problem is that SSH is too heavy to run on a 600+ms connection. Mosh seems good and robust but I need to set a static key and port and I don't know if it's possible.   Telnet is also an option since ngrok encrypts the tunnels. Any alternative? I also need to upload/download some small files (x/zmodem?)

Most of the week I live in the city where I have a typical broadband connection, but most weekends I'm out of town and only have access to a satellite connection. Trying to work over SSH on a satellite connection, while possible, is hardly desirable due to the high latency (> 1 second).  My question is this: Is there any software that will do something like buffering keystrokes on my local machine before they're sent over SSH to help make the lag on individual keystrokes a little bit more transparent? Essentially I'm looking for something that would reduce the effects of the high latency for everything except for commands (e.g., opening files, changing to a new directory, etc.).  I've already discovered that vim can open remote files locally and rewrite them remotely, but, while this is a huge help, it is not quite what I'm looking for since it only works when editing files, and requires opening a connection every time a read/write occurs.  (For anyone who may not know how to do this and is curious, just use this command: 'vim scp://host/file/path/here)


I am currently learning about Vectors in the equivalent of High School. I know how to compute determinants to find the cross product. However I do not know what it is exactly that I am doing. I tried watching the video by 3 blue 1 brown but it still does not explain to me a) How the formula comes about b) How it links to the cross product

In my linear algebra class, we just talked about determinants. So far I’ve been understanding the material okay, but now I’m very confused. I get that when the determinant is zero, the matrix doesn’t have an inverse. I can find the determinant of a $2\times 2$ matrix by the formula. Our teacher showed us how to compute the determinant of an $n \times n$ matrix by breaking it up into the determinants of smaller matrices. Apparently there is a way by summing over a bunch of permutations. But the notation is really hard for me and I don’t really know what’s going on with them anymore. Can someone help me figure out what a determinant is, intuitively, and how all those definitions of it are related?


I'm currently trying to write a program that get a stringified json object from steam and uses the object to determine if I can buy an item on the steam market or not.   It works, however I seem to be getting massive memory leaks and I have no idea how to solve this problem as I'm a beginner programmer. Here is the code:  import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.Scanner;   public class SteamMarketAlert {      @SuppressWarnings("unused")     private JAlertWindow alert;     private URL jsonUrl;     private float walletValue;     private boolean itemBuyable;      public SteamMarketAlert(URL itemUrl, float walletValue)     {         this.itemBuyable = false;         this.jsonUrl = getJSONurl(itemUrl);         this.walletValue = walletValue;     }      private URL getJSONurl(URL itemUrl)     {         String jsonString = itemUrl.toString();          String firstPart = jsonString.substring(0, jsonString.indexOf("market/") + "market/".length());          String appid = jsonString.split("/")[5];         String marketHashName = jsonString.split("/")[6];          String secondPart = "priceoverview/?currency=2&appid=" + appid + "&market_hash_name=" + marketHashName;          try {             return new URL(firstPart + secondPart);         } catch (MalformedURLException e) {             System.err.println("Failed to create json url");             return null;         }      }      public void checkMarket()     {         Thread thread = new Thread(){             @Override             public void run(){                 try {                     while(!itemBuyable)                     {                         sleep(5000);                                                 if(isBuyable(getPagehtml()))                             itemBuyable = true;                     }                     alert = new JAlertWindow();                 } catch (InterruptedException e) {                     e.printStackTrace();                 }             }            };          thread.start();       }      private boolean isBuyable(String pagehtml)     {         int firstIndex = pagehtml.indexOf(";") +1;           float marketValue = Float.parseFloat(pagehtml.substring(firstIndex, firstIndex + pagehtml.substring(firstIndex, pagehtml.length()).indexOf("\"")));          return (marketValue <= walletValue)? true:false;     }      private String getPagehtml(){          try(Scanner scanner = new Scanner(jsonUrl.openConnection().getInputStream())) {              scanner.useDelimiter("\\Z");             return scanner.next();         } catch (IOException e) {                            e.printStackTrace();             return null;         }      }      public static void main(String[] args)     {         try {             float walletValue =  82.64f;             URL itemUrl = new     URL("http://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20P90%20%7C%20Asiimov%20%28Factory%20New%29");             SteamMarketAlert sma = new SteamMarketAlert(itemUrl,walletValue);             sma.checkMarket();           } catch (MalformedURLException e) {              e.printStackTrace();         }      } }   I've narrowed the problem down to the checkMarket() method. However, I can't seem to figure out what is going on. Can you please point out how I can fix this (and possibly point out all the flaws in my code), Note the JAlertWindow object just displays a JFrame with "CAN BUY" on it - nothing special.  edit: I updated the code since posting and users informed me that try-with-resource blocks existed. Thank you to everyone who has helped me understand how java garbage collection works. :)!

How do you find a memory leak in Java (using, for example, JHat)? I have tried to load the heap dump up in JHat to take a basic look. However, I do not understand how I am supposed to be able to find the root reference () or whatever it is called. Basically, I can tell that there are several hundred megabytes of hash table entries ([java.util.HashMap$Entry or something like that), but maps are used all over the place... Is there some way to search for large maps, or perhaps find general roots of large object trees?  [Edit] Ok, I've read the answers so far but let's just say I am a cheap bastard (meaning I am more interested in learning how to use JHat than to pay for JProfiler). Also, JHat is always available since it is part of the JDK. Unless of course there is no way with JHat but brute force, but I can't believe that can be the case.  Also, I do not think I will be able to actually modify (adding logging of all map sizes) and run it for long enough for me to notice the leak.


My Ph.D. training is mostly in applied mathematics. I'm interested in learning materials of linear statistical models, especially their applications in data science or statistical machine learning. Is there a good reference book to start with?

I watched several videos on linear regression, mainly from . As I have no background in statistics, I thought this was a good way to get an idea of the topic. However I'm currently writing a bachelor thesis on Structural Equation Modeling and I want to get a deeper understanding of Regression Analysis.  The Book should roughly include these topics:   linear least squares regression variance, covariance regression coefficient coefficient of determination residual analysis (esp. leverage effect) multiple regression   I especially enjoyed the videos on khan academy, of the proof of minimizing the squared error to the regression line or illustrations like this one from Wikipedia:    I don't like it when books only present a formula and some common rules etc. without any further explanation of these.  F.e. Residuals should be normally distributed.  However I'm also not comfortable with strictly mathematical books, so I'm searching for something in between. A plus would be example code in R, but definitely not a must have.


I want to use section numbers with the following sequence:  1 Section  1.1 Sub Section  1.1.1 Sub Sub Section  1.1.1.1 Sub Sub Sub Section   I have found a way to do this using the following code but when I am getting to the 1.1.1.1 level the text is following on from the title rather than below it. I'm guessing it is to do with the fact i use \paragraph to get the section numbering I want but I don't know how to fix it.  I have tried adding various \vspace commands in but nothing I have tried has worked so far.  \documentclass{article} \usepackage[utf8]{inputenc}  \setcounter{secnumdepth}{5} %allows for sections 1.x where x = {x} \begin{document} \section{Section} Some text. \subsection{Sub Section} Some text. \subsubsection{Sub Sub Section} Some text. \paragraph{Sub Sub Sub Section} Some text.  \end{document}

I want to format paragraph to work as a regular title  \paragraph{title} text goes here   output of that is:  title text goes here    how can I change the output to force line break and use the usal indentation of 1st line?  title  text goes here  __  edit1: this is for a thesis and I'm using the document class - book. I don't want to use \subsubsection because this is the structure of the document. I just simply need one level of headers deeper.  And that is why I wanted to use \paragraph as a heading not as paragraph.  edit2: clarification: I'd like paragraph to behave like a header like section subsection subsubsection etc


Fusion of quarks release 8 times more energy than hydrogen fusion, so I was wondering if quark star exists and before quark degeneracy pressure kicks in wouldn't these tightly packed sea of quarks start fusing and eventually becoming a miniature neutron star?  I think in normal scenario due to the short range of strong force and quark/neutron cannot be found alone in nature compare to the condition of quark star where quarks should easily fused with each other and outshines almost everything in the night sky.

A quark star is a hypothetical type of compact exotic star composed of quark matter. These are ultra-dense phases of degenerate matter theorized to form inside particularly massive[citation needed] neutron stars. -Wikipedia   If you add enough mass to a neutron star it forms a black hole but how much mass is needed to form a quark star? When do neutrons and protons start to break down into a mush of quarks and gluons?


When I click on an external USB disk in Finder's Sidebar it shows it is still encrypting (which is expected):    diskutil shows only Encrypted: Yes in CLI and GUI.  Is there any way to check the current status of encryption (percentage complete)?

Mountain Lion allows one to encrypt any disk by right-clicking on the disk in the Finder and selecting Encrypt  from the contextual menu.  Is there anyway to check on the progress of this encryption process?


I am currently setting up a Linux server for a WIFI access-point. When ever someone who is connected to the hotspot/access-point? tries to reload a page they get forced onto the one page. Note: this wont have internet access!  ie: user tries accessing www.google.com => it returns 192.168.1.200 or example.domain  I've read that "dnsmasq" can be used to redirect any external addresses to an internal address. but haven't had any luck. Anyone have an example of a config for "dnsmasq"?  I have also read that this can be done through a proxy?

I'm running Ubuntu server on a computer used as a wireless AP, but this AP should resolve all DNS requests to an internal IP address rather than actually performing the lookup.  I want to do the same thing that paid public WiFi hotspots do - you can connect but if you attempt to load any websites they show a default page. I've noticed that they do this by resolving all domains to an internal IP address.  I've added these lines to /etc/dnsmasq.conf:  # Add domains which you want to force to an IP address here. # The example below send any host in double-click.net to a local # web-server. address=/com/192.168.2.1 address=/uk/192.168.2.1 address=/org/192.168.2.1 address=/gov/192.168.2.1 address=/net/192.168.2.1 address=/us/192.168.2.1   which works fine for those TLD's, but I'd like to be able to do it with all domains so I can sleep at night.


How to correctly write "A series of tests IS performed" or "A series of tests ARE performed". My thinking is that the verb "performed" is related to the noun "a series", which is singular, because it has "a" in front of it. However If I google (for instance  ) I see that both scenarios are used.

According to Garner's fourth edition  Though serving as a plural when the need arises, series is ordinarily a singular noun. But it is also a noun of multitude, so that phrases such as a series of things take a plural verb. However, the collocation there {has been - is} a series has predominated in print sources. Common nouns of multitude: lot, majority, mass, minority, multitude, percentage, proportion, variety.  However,  reads  When it has the singular sense of "one set," it takes a singular verb, even when series is followed by of and a plural noun: A series of lectures is scheduled.  Are these dissimilar usages stylic advice? Secondly, the inversion after there also chooses singular elsewhere; why is it so?  When the verb precedes the noun percentage, a singular verb is required. That is, a higher percentage of them are, but there is a higher percentage of them.


dynamically how to convert single row transposed into multiple columns.

Let's say I have Table A: BookingsPerPerson  Person_Id    ArrivalDate    DepartureDate 123456       2012-01-01     2012-01-04 213415       2012-01-02     2012-01-07   What I need to achieve with a view is the following:  Person_Id    ArrivalDate    DepartureDate    Jan-01    Jan-02    Jan-03    Jan-04    Jan-05    Jan-06    Jan-07 123456       2012-01-01     2012-01-04       1         1         1         1 213415       2012-01-02     2012-01-07                 1         1         1         1         1         1   The system is for events, so each hotel booking could take anything between 1 to 15 days but no more than that. Any ideas would be very much appreciated.


I have the following \input{mytable.tex} in my thesis document.   %% LaTeX2e file `mytable.tex' %% generated by the `filecontents' environment %% from source `thesiss' on 2016/10/11. %% \begin{table} \centering \bgroup \def\arraystretch{2.0} \begin{tabular}{|c|c|c|} \hline  $\mu \in X$& Condition applied on $\delta_{\mu}$  & Implication upon lifting \\ \hline $-4$ & $\bigg(\dfrac{13\cdot1789}{q}=-1\bigg)$  & $n \not\equiv k-4 \pmod{2k}$  \\ \hline $-3$ & $\bigg(\dfrac{5\cdot29}{q}=-1\bigg)$  & $n \not\equiv k-3 \pmod{2k}$  \\ \hline  $-2$ & - & - \\ \hline $-1$ & $\bigg(\dfrac{5\cdot29}{q}=-1\bigg)$  & $n \not\equiv k-1 \pmod{2k}$  \\ \hline $0$ & $\bigg(\dfrac{2}{q}=-1\bigg)$  & $n \not\equiv k \pmod{2k}$  \\ \hline $3$ & $\bigg(\dfrac{5333\cdot97324757}{q}=-1\bigg)$  & $n \not\equiv k+3 \pmod{2k}$  \\ \hline \end{tabular} \egroup \caption{Conditions following from pushing up modulus.\label{condition}} \end{table}   and in my thesis :  \documentclass[12pt,a4paper,twoside]{report} \usepackage{amsmath} \usepackage{amsthm} \usepackage{tabularx,ragged2e,booktabs,caption} \usepackage{tabu} \usepackage{amssymb,bm} \begin{document} \noindent Thus, the four conditions in the table above given by $\bigg(\dfrac{\delta_\mu}{q}\bigg)=-1$, with $\delta_\mu=\{2, 5 \cdot 29, 13 \cdot 1789, 5333 \cdot 97324757\}$  implies that $n \not\equiv k+\mu \pmod{2k}$. \qed  \input{mytable.tex} \qed \end{document}   And this table appears not at the right position where I have placed it in my thesis. Is there anything that can fix it. For example, maybe I can use something like \begin{XXX}[htpb!]

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


I have a query who return something like it :  Name   Gender Job         date of hire John   M      mechanic    2012-05-08 John   M      electrician 2010-01-01 Vicky  F      scientific  2012-11-11 Bob    M      NULL        NULL   I need to have the name, gender and jobname of first job of each person. But i don't know how. My query look like this :  select name,gender,jobname,hiredate from person p left join job j on p.personid = j.personid   I'm on Microsoft SQL Server 2000  I need this as result :  Name   Gender Job          John   M      electrician Vicky  F      scientific  Bob    M      NULL


I'm trying to calculate combination or different amount of variation we can have. E.g subway have 37 million different variations of sandwiches. I'm trying to calculate similar maths for my burger joint and want to know how many combination or variation of burger I have.. 3 different meat 9 different cheese 13 different filling 6 different salad 12 different sauce  I would be grateful if anybody can help Thanks

What would be my variation   E.g subway have 37 million different variations of sandwiches. I'm trying to calculate similar maths for my burger joint and want to know how many combination or variation of burger I have  3 different meat  9 different cheese  13 different filling  6 different salad  12 different sauce  Your able to pick 1., 2 or all 3 meat  Also 1,2,3 or all cheeses together and so on..   I would be grateful if anybody can help Thanks


How could I calculate this sum:  $$\sum\limits_{k=0}^{\lfloor \frac{n}{2}\rfloor} {n \choose 2k}$$

What is the closed formula for finding      $$ \sum_{i=0}^{k} \binom{n}{2i}=?\quad ,k\leq \lfloor{n/2}\rfloor $$   I need summation only up to some intermediate  $k$ where $k\leq \lfloor{n/2}\rfloor$ .  SAY I need a closed formula to calculate $\binom{8}{0}+ \binom{8}{2}+\binom{8}{4} +\binom{8}{6}$  HERE $n=8$ and $k=6$


How do i create gradient between two materials in one mesh? (second screenchot was edited in PS)

I have created this with cycles:  But the edge between the glowing and non glowing materials is very sharp. The material was manually applied to faces in edit mode. Is there any way I can smooth the edge between them in cycles?


I am finishing a basement and want to enclose the 200a service box and wiring with a framed cabinet of some sort.  Is there any requirements for clearances and what you can enclose it with?  I am in PA. Thx!

I am currently in the process of planning a room remodel to convert an existing bedroom into a home office and storage room.  One thing that makes this conversion a little bit tricky, is the existence of a breaker box at the rear corner of the room.  As you can see in the image below, we plan to have the back 5' of the room become a storage area (there would be 2' deep shelving units along the back wall, stopping short of the breaker box, we would use this area to store Christmas decorations, misc. stuff, etc..).  I know it is illegal to place a breaker box in a closet that will store clothes or other combustibles.  So my questions would be: 1) how would one define a storage room vs. a closet (i.e.- could this be classified as a walk in closet somehow?) and 2) with > 36" clearance in front, and 30" around, would this be legal?


Is there a query we can run to view when the stats have updated automatically (either sync or async) for given table?

We've been having a number of issues with our indexes lately which our DBA team has attributed to statistics not having been run recently. This has made me wonder - how can I check if statistics have been recently updated via SQL Management Studio?  I apologize if this question isn't explaining this very well - I've only been introduced to statistics until now and prior to this would look to indexes whenever I've had performance related issues.  Edit:  I'm using the following but receiving a syntax error:  use *databasename* exec sp_autostats *schema.tablename*   The error I'm receiving is:  Msg 102, Level 15, State 1, Line 2 Incorrect syntax near '.'.   Why is this?


$$ \sum_{b=1}^{n} \left\lfloor\frac{n}{b} \right\rfloor $$   I can't figure out how to convert this into a closed form.  Edit: I often come across summations I'm unable to solve. Is there some resource from which I can learn/practice solving complex summations. I hate asking numerous small questions of the same type repeatedly so if you could give some advice, I would be really grateful.

$$ \sum_{i=1}^N\left\lfloor\frac{N}{i}\right\rfloor $$ Is there a closed form expression to the above sum? (Mathematica doesn't give me anything)


One well known fact about matrix norms is the following:  If $\lambda_1\geq \dots\geq \lambda_n$ are eigenvalues of a square matrix $A$, then:  $$\frac{1}{||A^{-1}||} \leq |\lambda|\leq ||A||$$  If we take our matrix norm to be the matrix 2-norm, and recall that the matrix 2 norm gives us the largest singular value, i.e. $||A||_2=\sigma_1$, then the upper bound implies:  $$|\lambda_1|\leq \sigma_1$$  My question is: are there necessary and sufficient conditions for when equality above holds? I vaguely remember something like: $|\lambda_1|=\sigma_1$ iff $\lambda_1$ is non-defective, i.e. its algebraic multiplicity equals its geometric multiplicity. However, I have not been able to find a reference or prove this. Can someone point me to a reference or provide a proof. Thank you in advance for your time.

For $A\in \mathcal{M}_n(\mathbb{C})$, define:  the spectral radius   $$ \rho(A)=\max\{|\lambda|:\lambda \mbox{ is an eigenvalue of } A\} $$  and the norm   $$ \|A\|=\max_{|x|=1}|A(x)| $$ where |.| is the Euclidean norm on $\mathbb{C}^n$.  Problem: Find all $A\in \mathcal{M}_n(\mathbb{C})$ such that $\rho(A)=\|A\|$.  Thank you very much!


I have solved the problem in just 2 lines using a theorem which asserts that  "Let ${u_n}$ be a real sequence such that $u_n > 0 \forall n \in \mathbb{N}$ and $\lim_{n \to \infty} \frac{u_{n+1}}{u_n} = \ell$ (finite of infinite). Then $\lim_{n \to \infty} (u_n)^{1 \over n} =\ell$ "  To prove the aforesaid limit, I fix $u_n={n^n \over n!}$. Then $u_n>0 \forall n \in \mathbb{N}$ and $\lim_{n \to \infty}\frac{u_{n+1}}{u_n}= \lim_{n \to \infty}(1+{1 \over n})^n=e$.  Then it follows from the above theorem that $\lim_{n \to \infty} (u_n)^{1 \over n} =e$  i.e. $ \lim_{n \to \infty} \frac{n}{(n!)^\frac{1}{n}} = e $. (Proved)  But I am trying to prove it without using the theorem. I am trying to get a generic proof.  Can anyone provide a proper wayout for this?  Thanks for your help in advance.

I'm trying to find  $$\lim_{n\to\infty}\frac{n}{\sqrt[n]{n!}} .$$   I tried couple of methods: Stolz, Squeeze, D'Alambert  Thanks!  Edit: I can't use Stirling.


I was given Illustrator templates for a trade show booth. Dimensions are roughly 150inches - 250inches and must be 150DPI. Whenever I try to import images, such as a logo or background, Illustrator bogs down and inevitably returns with a memory error. Not to mention that IA can barely process anything beforehand.  I need recommendations on working on large scale IA files properly.    Edit:  Using Macbook Pro with 8gigs of ram and Adobe CC

My .psd file has a resolution of 6m x 3m @ 150 DPI. This makes it 35433px x 5906px in size. Photoshop CS6 saves the file as .tiff or .psb only. When I first import into Illustrator I get an error that the file is not readable but I have tried many options. Last one is not supported by AI.  So I'm puzzled... is there a way to link large images into Illustrator?


I have an application that will be writing integers into a file, line-by-line, at a rate of every 5 seconds.      I would like to use an program other than Notepad.exe, where I can reload the text file while it's being written to  . This way, I can see the changes easily as they're happening, instead of closing/reopening the file.

Say, for example, that there's one process that's writing to a file. While the process is running, I opened the file in notepad. The process keeps  writing to the file.   Other than closing and reopening the file, is there any way for me to "refresh" the data that notepad is showing?


On Windows 7 Home Premium, I sometimes need to reboot my system, but I don't want to lose the URLs in the various Firefox open windows and tabs. Basically, I would like to save the layout of the firefox windows so that upon finishing the reboot process, when I relaunch firefox, I can restore the saved state of windows and tabs. The same might also go for other running applications before rebooting.  To achieve this, I usually resort to killing Firefox, rebooting, and then restoring the windows from the "Well, this is embarrassing." window that says "Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page." when I relaunch Firefox, and I press the "Resotore" button to get my windows and tabs back, but this is not a very clean solution.  Anyone have a better idea of how to achieve the effect of restoring application windows and tabs to a previous state after system reboot?  Thanks.    EDIT:  The behavior I'm asking for is application-specific and the place where the "Save Desktop Layout upon Quitting" functionality can be enabled varies from application to application. However, in Firefox 34.0.5 to use this setting one must enable it in `Menu icon -> General -> When Firefox starts: Show my windows and tabs from last time -> OK".  Regards.

I find that at the end of a long day, I sometimes have a large number of programs running. All which I will need to use tomorrow. Normally, this isn't an issue, I can simply lock the machine and come back tomorrow. My problem arrises when windows update launches in the middle of the night and force restarts my computer. That in turns closes all my open software. I of course save everything regularly so I don't loose anything, but I waste time reopening all of those resources whenever there is a restart.   [EDIT]  I should clarify that I still want to be able to restart my computer when an update comes down. Preventing the restart only delays the problem until later. I should have been more specific in that I want to be able to recover my working environment after a restart for any reason. Things like scheduled maintence, power loss, updates, and software installs.  [EDIT]  I can't simply have them setup to launch at startup becasuse those files change from week to week. So I need something that monitors what I have open, and gives me the option to "recover" those software sessions when I log back in.  Anyone have any suggestions on what I can do? I'd even be willing to purchase software to do this for me if that is the only option.  Thanks


Notice: the very same vulnerability has been discussed in , but the different setting of the problem (in my case I don't need to store the passphrase) allows for a different solution (i.e. using file descriptors instead of saving the passphrase in a file, see ).  Suppose I have a symmetrically encrypted file my_file (with gpg 1.x), in which I store some confidential data, and I want to edit it using the following script:  read -e -s -p "Enter passphrase: " my_passphrase gpg --passphrase $my_passphrase --decrypt $my_file | stream_editing_command | gpg --yes --output $my_file --passphrase $my_passphrase --symmetric unset my_passphrase   Where stream_editing_command substitutes/appends something to the stream.  My question: is this safe? Will the variable $my_passphrase and/or the decrypted output be visible/accessible in some way? If it isn't safe, how should I modify the script?

I am tasked with automating a gpg decryption using cron (or any Ubuntu Server compatible job scheduling tool). Since it has to be automated I used --passphrase but it ends up in the shell history so it is visible in the process list.  How can I go about automating decryption while maintaining good (preferably great) security standards?   An example will be highly appreciated.


I need to run a script when my laptop starts working on battery. Is there a log event or something like this?

I need to create a task in TS based on battery level change. Let's say my battery drops from 67% to 66%. How can I run a task based on this event. Does Windows log this at all? I couldn't find this information anywhere.


How do I install ubuntu server system from a usb stick?

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


Here is an image of my current model:  Now I must smooth everything a little bit...But I don't want to use subdivision surface. Then I get this result:   If you need to see how it should look like, here is a reference image:

I frequently come to the problem of having a mesh with parts I would like to render smooth and "hard" edges connecting them.   How can I set the mesh to show the sharp edges but render everything else smooth?  In the example I would like the sides of the individual cylinders render smooth but the intersection between bottom and top to be sharp/flat


Let $\mathbb{C}_p$ be the $p$-adic complex numbers, i.e. the completion of an algebraic closure $\overline{\mathbb{Q}_p}$ of $\mathbb{Q}_p$. How can one show that $\mathbb{C}_p$ is not locally compact? I know that by scaling and translation, $\mathbb{C}_p$ is locally compact if and only if the closed unit disc $\overline{D}(1):=\{x\in\mathbb{C}_p\ |\ |x|\leq 1\}$ is compact. So in order to prove that $\mathbb{C}_p$ is not locally compact, one has to show that $\overline{D}(1)$ is not compact, which by completeness amounts to showing that $\overline{D}(1)$ is not totally bounded. But how would one go about proving this?

I have known for a finite extension $E\supseteq Q_p$, the ring of integers $O_E$ is a profinite group as an additive group. And $O_E^\times$ is also profinite as a multiplicative group.  Questions: For the p-adic complex field $C_p=\widehat{\overline{Q_p}}$, is $O_{C_p}$ a profinite group or compact? And what about ${O_{C_p}}^\times$ ?  Thanks in advance!


I am facing below issue while creating a question for all Stack Exchange sites. Please have a look. Screenshot:

Originally posted on Stack Overflow:   Requirements to reproduce:  Windows 7 x64  Firefox 71.0 x64  Steps to reproduce:   Go to the ask question section Write something to the title field Start scrolling similar questions Change the title field Start scrolling the similar questions again


I'm using a backlit keyboard and need to enter this every I start the computer.   #!/bin/bash if [ -f /tmp/keyboard_light ]; then xset -led 3 && rm /tmp/keyboard_light else xset led 3 && touch /tmp/keyboard_light fi   How do I make it to start every time I start my computer?

How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?


I'm new to ubuntu, does it come with a firewall installed or will I have to install one, if so which one is best.

Does Ubuntu come with a preinstalled or automatic firewall? If not, do I need one?   I've read some articles about the advantages of Linux over other operating systems about security (no need to have antivirus, ...) but would like to be sure.


Started some beef short ribs yesterday morning at 185f for 24 hours, went to bed with about 11 hours left on the sous vide but when I woke up this morning the water was only at 133f according to the sousvide, and my other thermometer in the water read 127.5f. I put them in an ice water bath right away for about 20 minutes until they were cool and they're now in the fridge. Are these still safe to eat? I have no idea how long they've been in the water at under 130f, but it's probably 10L of water and it's wrapped in towels and had a lid on it to keep the heat in so I assume it took a long time to get down to that temp.

If I leave fully-cooked food (particularly meat) out at warm temperature - say on the counter or in a crock pot that's been turned off -  how long will it stay safe to eat?  Does it make any difference if I re-cook the food afterward?


Is there an official (or standard) order for footnotes in a single page or article?  The first footnote is usually marked with a: * (asterisk).  The second with a # (hash mark).  I've seen the third marked with a triangle but I can't seem to figure out what it's called.  Is there a list of offical footnote marks based on order?

The  (†) has several meanings. Possibly its most common use is as a footnote marker.  According to  (, 1953), when it is used for this purpose, it must be used for second footnotes only; the first footnote should be indicated by an asterisk (*), the third a double dagger (‡) and further footnotes other symbols or numbers.  Where does Patridge's rule fall on a scale of one to ten, where one is "this is just one guy's random opinion" and ten is "this is a widely accepted rule of English and any deviation from it is unarguably incorrect"?  This question was inspired by  about the use of daggers on Stack Exchange site .


I'm trying to make an alphabetically ordered bibliography for my report. Currently I have:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[margin={2cm,2cm}]{geometry} \usepackage{multicol}     \setlength{\columnsep}{1cm}\ \usepackage[ backend=biber, style=apa, sorting=ynt ]{biblatex}     \addbibresource{sample.bib}     \DeclareNameAlias{default}{last-first}\     \title{How do we know what the inner structure of planet Earth is like?} \begin{document}     \maketitle     \begin{multicols}{2}         \section{Introduction and Theoretical brackground} \cite{lehmann}         \printbibliography     \end{multicols} \end{document}   with my .bib file:  @article{lehmann,   author =   {Lehmann, I.},   title =    {P'},   journal =  {Publications du Bureau Central Sismologique International, Série A, Travaux Scientifique, 14},   year =     1936,   pages =    {87-115} }   When I compile, the reference shows:     Lehmann, I. (yearmonthday). P'.Publications du Bu-   reau  Central  Sismologique  International,  Série   A, Travaux Scientifique, 14, 87-115.   How can I make it display just the year (1936), instead of (yearmonthday). I'm using the APA style because I want a comma between the author and the year in the references.

As in  I'm trying to use apa6e and biblatex-apa together and having problems.  Before I arrived at these problems, over the course of many hours of much reading, I first managed to get BibTeX working as expected in a simple input file (by modifying sample2e.tex). Then I managed to get apa6e working as expected based on the author's example in apa6e.pdf (which uses apacite). But when I try to get apa6e working with biblatex-apa, I end up with problems.  Here's my input file:  \documentclass{apa6e}  \usepackage[american]{babel} \usepackage{csquotes}  % biblatex \usepackage[style=apa]{biblatex} \bibliography{biblatex-apa-test-references}  \title{An Example Document} \shorttitle{Psychology: the end} \author{Silly Name}  \authornote{\dots} \abstract{\dots}  \begin{document}  \maketitle  This is an example input\cite{7.01:2} file.  Comparing it with the output it generates can show you\cite{7.01:3a} how to produce a simple document of your own.  \printbibliography  \end{document}   Attempting to typeset this in TeXShop by running LaTeX, then BiBTeX (which based on console messages, does seem to correctly call biblatex rather than BiBTeX), then LaTeX again, I get the following error message which I am having great difficulty (no doubt due to my lack of experience with TeX and co.) decoding.  (./test6.aux) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ptm.fd) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (./test6.bbl) Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Silly Name   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Author Note  [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Abstract  [2] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 25--25  []\OT1/ptm/b/n/12 References  ./test6.tex:25: Undefined control sequence. <argument> \mkbibdateapalongextra  (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1pcr.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omlztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omsztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omxztmcm.fd) Overfull \hbox (8.03372pt too wide) in paragraph at lines 25--25 [][]  \OT1/ptm/m/n/12 Gilbert, D. G., Mc-Cler-non, J. F., Ra-bi-novich, N. E.,  Sugai, C., Plath, L. C., As-gaard, G., ... Botros,  ./test6.tex:25: Undefined control sequence. <argument> \mkbibdateapalongextra                                    {year}{month}{day}\iffieldundef {endyear}{... l.25   I tried many different sources in several different *.bib files before eventually trying the .bib database shown above and included with biblatex-apa. All trials gave a similar error.  Can someone help? I'm impressed that the poster above was able to do anything with apa6e and biblatex-apa, and if I only had her problem of having the reference page title show up in bold, I'd be really happy.  If you need to know, my tools are from a fresh installation of MacTeX that I immediately updated using the TeX Live Utility. I've checked my versions for apa6e (v0.3) and biblatex-apa (v4.2), and I think these are current.


Is there a word for a person who find errors with anything and everything and/or is difficult to please?   Example: I do everything David tells me to do, and he is still not pleased.   Or: Matthew complains about everything. No matter what I do and no matter what I speak to him about, he complains that it is wrong or not good enough.

I'm looking for a single word, for someone who...   keeps seeing everything that is wrong with everybody else.  never seems to see the good of other people, only the bad things. points at others, as if he forgets he has weaknesses himself. does not brag about himself, he just seems to be dissatisfied with everyone else.   I prefer a word that is as unambiguous and clear-cut as possible.


If a character like Pharah or Junkrat hurts themselves in spawn, before the round starts, and Mercy/Zenyatta/Lucio heals them, will it count towards their healing stats for that game?

In Overwatch, there is short countdown for a few minutes before the match begins. During this time, the defending team is allowed to roam the map to set up their defenses, while the attacking team sits in a small lobby until the game starts and the doors open. (Or in KotH-type maps, both teams wait in a lobby.)  While players wait, it's not uncommon for them to fire off random shots, especially since a lot of the environment is destructable (it's entertaining to watch plush onions sail through the air in the arcade).   Do shots fired before the match starts count towards accuracy statistics at the end of the game?


I'm trying to 'deep copy' a string so that I can perform operations on one copy, while retaining the original copy. This is the base example that I've got and for some reason the strncpy call causes a segfault. Please help #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h>  int main() {     char* stringA = "someVeryinTeresTingString";     char* stringB = malloc(sizeof(char) * strlen(stringA));          printf("A: %s, B: %s\n", stringA, stringB);          for (int i = 0; i < strlen(stringA); i++) {         stringB[i] = tolower(stringA[i]);     }          printf("A: %s, B: %s\n", stringA, stringB);          strncpy(stringA, stringB, strlen(stringA) - 1);          printf("A: %s, B: %s\n", stringA, stringB); }

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


While following along I was able to use UV mapping for the eyes but once it came to the eyebrows something seems wrong. The example shows eyebrows that look like hair because they have transparency to them. When I mapped the eyebrows, I can see the texture on them but it seems almost as if there's something wrong with the transparency because it's as if they have a black background.  I've watched many many videos about UV mapping and they all seem to show the way that I am doing it and I've retried with a new project and it does the same thing no matter what I do.      If you would like to see the project I have uploaded it here:   I appreciate any suggestions or help.  Thank you!

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


I am trying to create an SMS message for customers to pass their last ordered number in a URL as a dynamic value so on click the customer will be redirected to the cart page. The entire URL looks very long and we would like to cut short it like bitly links. As far I know bitly can cut short only static URLs but not the URLs with dynamic values. Is there a way to cut short the URL that has dynamic value in it?

I am trying to schedule an SMS in the journey to the subscribers who did not open their email. I want to redirect the subscribers to their hosted email page.  I am using the below code to populate hosted email link in email.  %%=RedirectTo(CloudPagesURL(383,'Id',@Id))=%%   In the message, it's showing up.        How can I shorten this URL?


I have visualforce page which is downloaded as .xls file using contentType="application/vnd.ms-excel#excelFile.xls". I want to make this file as password protected. Is there any way to make excel file password-protected?

Is it possible that a Visualforce page rendered as pdf can be password protected?  I am using Messaging.SingleEmailMessage to send mail with attachment, but I need the attachment password protected.


I have dict like this: d = {'A1': 200,  'A2': 150,  'A3': 100}  I want to multiply each element by 2 but the newvalue can't be more than 300. for above example my output will be.. d_final = {'A1': 300,  'A2': 300,  'A3': 200}  Can this be done using lambda or map??

I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary.  I can sort on the keys, but how can I sort based on the values?  Note: I have read Stack Overflow question here  and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.


Help for my son.  My math is a bit rusty and I'm trying to remember how to go about answering this question:  "There are 3 times as many bicycles in the playground as there are tricycles.  There is a total of 81 wheels.  What is the total number of bicycles and tricycles in the playground?"

I am teaching an elementary student. He has a homework as follows.     There are $16$ students who use either bicycles or tricycles. The total   number of wheels is $38$. Find the number of students using bicycles.   I have $3$ solutions as follows.  Using a single variable.  Let $x$ be the number of students in question. The number of students using tricycles is $16-x$. The total number of wheels is the sum of the total number of bicycles times $2$ and the total number of tricycles times $3$.  $$ 2\times x + 3 \times (16-x) = 38 $$  The solution is $x=10$.  Using $2$ variables.  Let $x$ and $y$ be the number of students using bicycles and tricycles, respectively. It implies that  \begin{align} x+y&=16\\ 2x+3y&=38 \end{align}  The solution is $x=10$ and $y=6$.  Using multiples  The multiples of $2$ are $2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22,24, 26,28,30,32,\dotsc$  The multiples of $3$ are $3,6,9,12,15,18,21,24,27,30,33,36,\dotsc$   The possible wheel combinations with format $(\#\text{bicycle wheels}, \#\text{tricycle wheels})$:  $\hspace{6cm} (32,6)$ but there are $18$ students  $\hspace{6cm} (26,12)$  but there are $17$ students  $\hspace{6cm} (20,18)$ there are $16$ students  $\hspace{6cm} (14, 24)$ there are $15$ students  $\hspace{6cm} (8, 30)$ there are $14$ students  $\hspace{6cm} (2,36)$ there are $13$ students  Thus the correct combination is $10$ bicycles and $6$ tricycles.  My question  Is there any other simpler method?